File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / configure
Revision 1.1.1.5 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Sun Jun 15 20:03:40 2014 UTC (10 years ago) by misho
Branches: php, MAIN
CVS tags: v5_4_29, HEAD
php 5.4.29

    1: #! /bin/sh
    2: # Guess values for system-dependent variables and create Makefiles.
    3: # Generated by GNU Autoconf 2.69.
    4: #
    5: #
    6: # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
    7: #
    8: #
    9: # This configure script is free software; the Free Software Foundation
   10: # gives unlimited permission to copy, distribute and modify it.
   11: ## -------------------- ##
   12: ## M4sh Initialization. ##
   13: ## -------------------- ##
   14: 
   15: # Be more Bourne compatible
   16: DUALCASE=1; export DUALCASE # for MKS sh
   17: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
   18:   emulate sh
   19:   NULLCMD=:
   20:   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
   21:   # is contrary to our usage.  Disable this feature.
   22:   alias -g '${1+"$@"}'='"$@"'
   23:   setopt NO_GLOB_SUBST
   24: else
   25:   case `(set -o) 2>/dev/null` in #(
   26:   *posix*) :
   27:     set -o posix ;; #(
   28:   *) :
   29:      ;;
   30: esac
   31: fi
   32: 
   33: 
   34: as_nl='
   35: '
   36: export as_nl
   37: # Printing a long string crashes Solaris 7 /usr/bin/printf.
   38: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
   39: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
   40: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
   41: # Prefer a ksh shell builtin over an external printf program on Solaris,
   42: # but without wasting forks for bash or zsh.
   43: if test -z "$BASH_VERSION$ZSH_VERSION" \
   44:     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
   45:   as_echo='print -r --'
   46:   as_echo_n='print -rn --'
   47: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
   48:   as_echo='printf %s\n'
   49:   as_echo_n='printf %s'
   50: else
   51:   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
   52:     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
   53:     as_echo_n='/usr/ucb/echo -n'
   54:   else
   55:     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
   56:     as_echo_n_body='eval
   57:       arg=$1;
   58:       case $arg in #(
   59:       *"$as_nl"*)
   60: 	expr "X$arg" : "X\\(.*\\)$as_nl";
   61: 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
   62:       esac;
   63:       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
   64:     '
   65:     export as_echo_n_body
   66:     as_echo_n='sh -c $as_echo_n_body as_echo'
   67:   fi
   68:   export as_echo_body
   69:   as_echo='sh -c $as_echo_body as_echo'
   70: fi
   71: 
   72: # The user is always right.
   73: if test "${PATH_SEPARATOR+set}" != set; then
   74:   PATH_SEPARATOR=:
   75:   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
   76:     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
   77:       PATH_SEPARATOR=';'
   78:   }
   79: fi
   80: 
   81: 
   82: # IFS
   83: # We need space, tab and new line, in precisely that order.  Quoting is
   84: # there to prevent editors from complaining about space-tab.
   85: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
   86: # splitting by setting IFS to empty value.)
   87: IFS=" ""	$as_nl"
   88: 
   89: # Find who we are.  Look in the path if we contain no directory separator.
   90: as_myself=
   91: case $0 in #((
   92:   *[\\/]* ) as_myself=$0 ;;
   93:   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   94: for as_dir in $PATH
   95: do
   96:   IFS=$as_save_IFS
   97:   test -z "$as_dir" && as_dir=.
   98:     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
   99:   done
  100: IFS=$as_save_IFS
  101: 
  102:      ;;
  103: esac
  104: # We did not find ourselves, most probably we were run as `sh COMMAND'
  105: # in which case we are not to be found in the path.
  106: if test "x$as_myself" = x; then
  107:   as_myself=$0
  108: fi
  109: if test ! -f "$as_myself"; then
  110:   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  111:   exit 1
  112: fi
  113: 
  114: # Unset variables that we do not need and which cause bugs (e.g. in
  115: # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
  116: # suppresses any "Segmentation fault" message there.  '((' could
  117: # trigger a bug in pdksh 5.2.14.
  118: for as_var in BASH_ENV ENV MAIL MAILPATH
  119: do eval test x\${$as_var+set} = xset \
  120:   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  121: done
  122: PS1='$ '
  123: PS2='> '
  124: PS4='+ '
  125: 
  126: # NLS nuisances.
  127: LC_ALL=C
  128: export LC_ALL
  129: LANGUAGE=C
  130: export LANGUAGE
  131: 
  132: # CDPATH.
  133: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  134: 
  135: # Use a proper internal environment variable to ensure we don't fall
  136:   # into an infinite loop, continuously re-executing ourselves.
  137:   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  138:     _as_can_reexec=no; export _as_can_reexec;
  139:     # We cannot yet assume a decent shell, so we have to provide a
  140: # neutralization value for shells without unset; and this also
  141: # works around shells that cannot unset nonexistent variables.
  142: # Preserve -v and -x to the replacement shell.
  143: BASH_ENV=/dev/null
  144: ENV=/dev/null
  145: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  146: case $- in # ((((
  147:   *v*x* | *x*v* ) as_opts=-vx ;;
  148:   *v* ) as_opts=-v ;;
  149:   *x* ) as_opts=-x ;;
  150:   * ) as_opts= ;;
  151: esac
  152: exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  153: # Admittedly, this is quite paranoid, since all the known shells bail
  154: # out after a failed `exec'.
  155: $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  156: as_fn_exit 255
  157:   fi
  158:   # We don't want this to propagate to other subprocesses.
  159:           { _as_can_reexec=; unset _as_can_reexec;}
  160: if test "x$CONFIG_SHELL" = x; then
  161:   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  162:   emulate sh
  163:   NULLCMD=:
  164:   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  165:   # is contrary to our usage.  Disable this feature.
  166:   alias -g '\${1+\"\$@\"}'='\"\$@\"'
  167:   setopt NO_GLOB_SUBST
  168: else
  169:   case \`(set -o) 2>/dev/null\` in #(
  170:   *posix*) :
  171:     set -o posix ;; #(
  172:   *) :
  173:      ;;
  174: esac
  175: fi
  176: "
  177:   as_required="as_fn_return () { (exit \$1); }
  178: as_fn_success () { as_fn_return 0; }
  179: as_fn_failure () { as_fn_return 1; }
  180: as_fn_ret_success () { return 0; }
  181: as_fn_ret_failure () { return 1; }
  182: 
  183: exitcode=0
  184: as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  185: as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  186: as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  187: as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  188: if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  189: 
  190: else
  191:   exitcode=1; echo positional parameters were not saved.
  192: fi
  193: test x\$exitcode = x0 || exit 1
  194: test -x / || exit 1"
  195:   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  196:   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  197:   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  198:   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  199: test \$(( 1 + 1 )) = 2 || exit 1"
  200:   if (eval "$as_required") 2>/dev/null; then :
  201:   as_have_required=yes
  202: else
  203:   as_have_required=no
  204: fi
  205:   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  206: 
  207: else
  208:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  209: as_found=false
  210: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  211: do
  212:   IFS=$as_save_IFS
  213:   test -z "$as_dir" && as_dir=.
  214:   as_found=:
  215:   case $as_dir in #(
  216: 	 /*)
  217: 	   for as_base in sh bash ksh sh5; do
  218: 	     # Try only shells that exist, to save several forks.
  219: 	     as_shell=$as_dir/$as_base
  220: 	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  221: 		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  222:   CONFIG_SHELL=$as_shell as_have_required=yes
  223: 		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  224:   break 2
  225: fi
  226: fi
  227: 	   done;;
  228:        esac
  229:   as_found=false
  230: done
  231: $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  232: 	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  233:   CONFIG_SHELL=$SHELL as_have_required=yes
  234: fi; }
  235: IFS=$as_save_IFS
  236: 
  237: 
  238:       if test "x$CONFIG_SHELL" != x; then :
  239:   export CONFIG_SHELL
  240:              # We cannot yet assume a decent shell, so we have to provide a
  241: # neutralization value for shells without unset; and this also
  242: # works around shells that cannot unset nonexistent variables.
  243: # Preserve -v and -x to the replacement shell.
  244: BASH_ENV=/dev/null
  245: ENV=/dev/null
  246: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  247: case $- in # ((((
  248:   *v*x* | *x*v* ) as_opts=-vx ;;
  249:   *v* ) as_opts=-v ;;
  250:   *x* ) as_opts=-x ;;
  251:   * ) as_opts= ;;
  252: esac
  253: exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  254: # Admittedly, this is quite paranoid, since all the known shells bail
  255: # out after a failed `exec'.
  256: $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  257: exit 255
  258: fi
  259: 
  260:     if test x$as_have_required = xno; then :
  261:   $as_echo "$0: This script requires a shell more modern than all"
  262:   $as_echo "$0: the shells that I found on your system."
  263:   if test x${ZSH_VERSION+set} = xset ; then
  264:     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  265:     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  266:   else
  267:     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  268: $0: including any error possibly output before this
  269: $0: message. Then install a modern shell, or manually run
  270: $0: the script under such a shell if you do have one."
  271:   fi
  272:   exit 1
  273: fi
  274: fi
  275: fi
  276: SHELL=${CONFIG_SHELL-/bin/sh}
  277: export SHELL
  278: # Unset more variables known to interfere with behavior of common tools.
  279: CLICOLOR_FORCE= GREP_OPTIONS=
  280: unset CLICOLOR_FORCE GREP_OPTIONS
  281: 
  282: ## --------------------- ##
  283: ## M4sh Shell Functions. ##
  284: ## --------------------- ##
  285: # as_fn_unset VAR
  286: # ---------------
  287: # Portably unset VAR.
  288: as_fn_unset ()
  289: {
  290:   { eval $1=; unset $1;}
  291: }
  292: as_unset=as_fn_unset
  293: 
  294: # as_fn_set_status STATUS
  295: # -----------------------
  296: # Set $? to STATUS, without forking.
  297: as_fn_set_status ()
  298: {
  299:   return $1
  300: } # as_fn_set_status
  301: 
  302: # as_fn_exit STATUS
  303: # -----------------
  304: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  305: as_fn_exit ()
  306: {
  307:   set +e
  308:   as_fn_set_status $1
  309:   exit $1
  310: } # as_fn_exit
  311: 
  312: # as_fn_mkdir_p
  313: # -------------
  314: # Create "$as_dir" as a directory, including parents if necessary.
  315: as_fn_mkdir_p ()
  316: {
  317: 
  318:   case $as_dir in #(
  319:   -*) as_dir=./$as_dir;;
  320:   esac
  321:   test -d "$as_dir" || eval $as_mkdir_p || {
  322:     as_dirs=
  323:     while :; do
  324:       case $as_dir in #(
  325:       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  326:       *) as_qdir=$as_dir;;
  327:       esac
  328:       as_dirs="'$as_qdir' $as_dirs"
  329:       as_dir=`$as_dirname -- "$as_dir" ||
  330: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  331: 	 X"$as_dir" : 'X\(//\)[^/]' \| \
  332: 	 X"$as_dir" : 'X\(//\)$' \| \
  333: 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  334: $as_echo X"$as_dir" |
  335:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  336: 	    s//\1/
  337: 	    q
  338: 	  }
  339: 	  /^X\(\/\/\)[^/].*/{
  340: 	    s//\1/
  341: 	    q
  342: 	  }
  343: 	  /^X\(\/\/\)$/{
  344: 	    s//\1/
  345: 	    q
  346: 	  }
  347: 	  /^X\(\/\).*/{
  348: 	    s//\1/
  349: 	    q
  350: 	  }
  351: 	  s/.*/./; q'`
  352:       test -d "$as_dir" && break
  353:     done
  354:     test -z "$as_dirs" || eval "mkdir $as_dirs"
  355:   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  356: 
  357: 
  358: } # as_fn_mkdir_p
  359: 
  360: # as_fn_executable_p FILE
  361: # -----------------------
  362: # Test if FILE is an executable regular file.
  363: as_fn_executable_p ()
  364: {
  365:   test -f "$1" && test -x "$1"
  366: } # as_fn_executable_p
  367: # as_fn_append VAR VALUE
  368: # ----------------------
  369: # Append the text in VALUE to the end of the definition contained in VAR. Take
  370: # advantage of any shell optimizations that allow amortized linear growth over
  371: # repeated appends, instead of the typical quadratic growth present in naive
  372: # implementations.
  373: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  374:   eval 'as_fn_append ()
  375:   {
  376:     eval $1+=\$2
  377:   }'
  378: else
  379:   as_fn_append ()
  380:   {
  381:     eval $1=\$$1\$2
  382:   }
  383: fi # as_fn_append
  384: 
  385: # as_fn_arith ARG...
  386: # ------------------
  387: # Perform arithmetic evaluation on the ARGs, and store the result in the
  388: # global $as_val. Take advantage of shells that can avoid forks. The arguments
  389: # must be portable across $(()) and expr.
  390: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  391:   eval 'as_fn_arith ()
  392:   {
  393:     as_val=$(( $* ))
  394:   }'
  395: else
  396:   as_fn_arith ()
  397:   {
  398:     as_val=`expr "$@" || test $? -eq 1`
  399:   }
  400: fi # as_fn_arith
  401: 
  402: 
  403: # as_fn_error STATUS ERROR [LINENO LOG_FD]
  404: # ----------------------------------------
  405: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  406: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  407: # script with STATUS, using 1 if that was 0.
  408: as_fn_error ()
  409: {
  410:   as_status=$1; test $as_status -eq 0 && as_status=1
  411:   if test "$4"; then
  412:     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  413:     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  414:   fi
  415:   $as_echo "$as_me: error: $2" >&2
  416:   as_fn_exit $as_status
  417: } # as_fn_error
  418: 
  419: if expr a : '\(a\)' >/dev/null 2>&1 &&
  420:    test "X`expr 00001 : '.*\(...\)'`" = X001; then
  421:   as_expr=expr
  422: else
  423:   as_expr=false
  424: fi
  425: 
  426: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  427:   as_basename=basename
  428: else
  429:   as_basename=false
  430: fi
  431: 
  432: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  433:   as_dirname=dirname
  434: else
  435:   as_dirname=false
  436: fi
  437: 
  438: as_me=`$as_basename -- "$0" ||
  439: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  440: 	 X"$0" : 'X\(//\)$' \| \
  441: 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  442: $as_echo X/"$0" |
  443:     sed '/^.*\/\([^/][^/]*\)\/*$/{
  444: 	    s//\1/
  445: 	    q
  446: 	  }
  447: 	  /^X\/\(\/\/\)$/{
  448: 	    s//\1/
  449: 	    q
  450: 	  }
  451: 	  /^X\/\(\/\).*/{
  452: 	    s//\1/
  453: 	    q
  454: 	  }
  455: 	  s/.*/./; q'`
  456: 
  457: # Avoid depending upon Character Ranges.
  458: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  459: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  460: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  461: as_cr_digits='0123456789'
  462: as_cr_alnum=$as_cr_Letters$as_cr_digits
  463: 
  464: 
  465:   as_lineno_1=$LINENO as_lineno_1a=$LINENO
  466:   as_lineno_2=$LINENO as_lineno_2a=$LINENO
  467:   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  468:   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  469:   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
  470:   sed -n '
  471:     p
  472:     /[$]LINENO/=
  473:   ' <$as_myself |
  474:     sed '
  475:       s/[$]LINENO.*/&-/
  476:       t lineno
  477:       b
  478:       :lineno
  479:       N
  480:       :loop
  481:       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  482:       t loop
  483:       s/-\n.*//
  484:     ' >$as_me.lineno &&
  485:   chmod +x "$as_me.lineno" ||
  486:     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  487: 
  488:   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  489:   # already done that, so ensure we don't try to do so again and fall
  490:   # in an infinite loop.  This has already happened in practice.
  491:   _as_can_reexec=no; export _as_can_reexec
  492:   # Don't try to exec as it changes $[0], causing all sort of problems
  493:   # (the dirname of $[0] is not the place where we might find the
  494:   # original and so on.  Autoconf is especially sensitive to this).
  495:   . "./$as_me.lineno"
  496:   # Exit status is that of the last command.
  497:   exit
  498: }
  499: 
  500: ECHO_C= ECHO_N= ECHO_T=
  501: case `echo -n x` in #(((((
  502: -n*)
  503:   case `echo 'xy\c'` in
  504:   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
  505:   xy)  ECHO_C='\c';;
  506:   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
  507:        ECHO_T='	';;
  508:   esac;;
  509: *)
  510:   ECHO_N='-n';;
  511: esac
  512: 
  513: rm -f conf$$ conf$$.exe conf$$.file
  514: if test -d conf$$.dir; then
  515:   rm -f conf$$.dir/conf$$.file
  516: else
  517:   rm -f conf$$.dir
  518:   mkdir conf$$.dir 2>/dev/null
  519: fi
  520: if (echo >conf$$.file) 2>/dev/null; then
  521:   if ln -s conf$$.file conf$$ 2>/dev/null; then
  522:     as_ln_s='ln -s'
  523:     # ... but there are two gotchas:
  524:     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  525:     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  526:     # In both cases, we have to default to `cp -pR'.
  527:     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  528:       as_ln_s='cp -pR'
  529:   elif ln conf$$.file conf$$ 2>/dev/null; then
  530:     as_ln_s=ln
  531:   else
  532:     as_ln_s='cp -pR'
  533:   fi
  534: else
  535:   as_ln_s='cp -pR'
  536: fi
  537: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  538: rmdir conf$$.dir 2>/dev/null
  539: 
  540: if mkdir -p . 2>/dev/null; then
  541:   as_mkdir_p='mkdir -p "$as_dir"'
  542: else
  543:   test -d ./-p && rmdir ./-p
  544:   as_mkdir_p=false
  545: fi
  546: 
  547: as_test_x='test -x'
  548: as_executable_p=as_fn_executable_p
  549: 
  550: # Sed expression to map a string onto a valid CPP name.
  551: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  552: 
  553: # Sed expression to map a string onto a valid variable name.
  554: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  555: 
  556: 
  557: 
  558: # Check that we are running under the correct shell.
  559: SHELL=${CONFIG_SHELL-/bin/sh}
  560: 
  561: case X$ECHO in
  562: X*--fallback-echo)
  563:   # Remove one level of quotation (which was required for Make).
  564:   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  565:   ;;
  566: esac
  567: 
  568: echo=${ECHO-echo}
  569: if test "X$1" = X--no-reexec; then
  570:   # Discard the --no-reexec flag, and continue.
  571:   shift
  572: elif test "X$1" = X--fallback-echo; then
  573:   # Avoid inline document here, it may be left over
  574:   :
  575: elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  576:   # Yippee, $echo works!
  577:   :
  578: else
  579:   # Restart under the correct shell.
  580:   exec $SHELL "$0" --no-reexec ${1+"$@"}
  581: fi
  582: 
  583: if test "X$1" = X--fallback-echo; then
  584:   # used as fallback echo
  585:   shift
  586:   cat <<EOF
  587: $*
  588: EOF
  589:   exit 0
  590: fi
  591: 
  592: # The HP-UX ksh and POSIX shell print the target directory to stdout
  593: # if CDPATH is set.
  594: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  595: 
  596: if test -z "$ECHO"; then
  597: if test "X${echo_test_string+set}" != Xset; then
  598: # find a string as large as possible, as long as the shell can cope with it
  599:   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  600:     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  601:     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
  602:        echo_test_string=`eval $cmd` &&
  603:        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  604:     then
  605:       break
  606:     fi
  607:   done
  608: fi
  609: 
  610: if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  611:    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  612:    test "X$echo_testing_string" = "X$echo_test_string"; then
  613:   :
  614: else
  615:   # The Solaris, AIX, and Digital Unix default echo programs unquote
  616:   # backslashes.  This makes it impossible to quote backslashes using
  617:   #   echo "$something" | sed 's/\\/\\\\/g'
  618:   #
  619:   # So, first we look for a working echo in the user's PATH.
  620: 
  621:   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  622:   for dir in $PATH /usr/ucb; do
  623:     IFS="$lt_save_ifs"
  624:     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  625:        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  626:        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  627:        test "X$echo_testing_string" = "X$echo_test_string"; then
  628:       echo="$dir/echo"
  629:       break
  630:     fi
  631:   done
  632:   IFS="$lt_save_ifs"
  633: 
  634:   if test "X$echo" = Xecho; then
  635:     # We didn't find a better echo, so look for alternatives.
  636:     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  637:        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  638:        test "X$echo_testing_string" = "X$echo_test_string"; then
  639:       # This shell has a builtin print -r that does the trick.
  640:       echo='print -r'
  641:     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  642: 	 test "X$CONFIG_SHELL" != X/bin/ksh; then
  643:       # If we have ksh, try running configure again with it.
  644:       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  645:       export ORIGINAL_CONFIG_SHELL
  646:       CONFIG_SHELL=/bin/ksh
  647:       export CONFIG_SHELL
  648:       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  649:     else
  650:       # Try using printf.
  651:       echo='printf %s\n'
  652:       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  653: 	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  654: 	 test "X$echo_testing_string" = "X$echo_test_string"; then
  655: 	# Cool, printf works
  656: 	:
  657:       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  658: 	   test "X$echo_testing_string" = 'X\t' &&
  659: 	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  660: 	   test "X$echo_testing_string" = "X$echo_test_string"; then
  661: 	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  662: 	export CONFIG_SHELL
  663: 	SHELL="$CONFIG_SHELL"
  664: 	export SHELL
  665: 	echo="$CONFIG_SHELL $0 --fallback-echo"
  666:       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  667: 	   test "X$echo_testing_string" = 'X\t' &&
  668: 	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  669: 	   test "X$echo_testing_string" = "X$echo_test_string"; then
  670: 	echo="$CONFIG_SHELL $0 --fallback-echo"
  671:       else
  672: 	# maybe with a smaller string...
  673: 	prev=:
  674: 
  675: 	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  676: 	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  677: 	  then
  678: 	    break
  679: 	  fi
  680: 	  prev="$cmd"
  681: 	done
  682: 
  683: 	if test "$prev" != 'sed 50q "$0"'; then
  684: 	  echo_test_string=`eval $prev`
  685: 	  export echo_test_string
  686: 	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  687: 	else
  688: 	  # Oops.  We lost completely, so just stick with echo.
  689: 	  echo=echo
  690: 	fi
  691:       fi
  692:     fi
  693:   fi
  694: fi
  695: fi
  696: 
  697: # Copy echo and quote the copy suitably for passing to libtool from
  698: # the Makefile, instead of quoting the original, which is used later.
  699: ECHO=$echo
  700: if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  701:    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  702: fi
  703: 
  704: 
  705: 
  706: 
  707: tagnames=${tagnames+${tagnames},}CXX
  708: 
  709: test -n "$DJDIR" || exec 7<&0 </dev/null
  710: exec 6>&1
  711: 
  712: # Name of the host.
  713: # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  714: # so uname gets run too.
  715: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  716: 
  717: #
  718: # Initializations.
  719: #
  720: ac_default_prefix=/usr/local
  721: ac_clean_files=
  722: ac_config_libobj_dir=.
  723: LIBOBJS=
  724: cross_compiling=no
  725: subdirs=
  726: MFLAGS=
  727: MAKEFLAGS=
  728: 
  729: # Identity of this package.
  730: PACKAGE_NAME=
  731: PACKAGE_TARNAME=
  732: PACKAGE_VERSION=
  733: PACKAGE_STRING=
  734: PACKAGE_BUGREPORT=
  735: PACKAGE_URL=
  736: 
  737: ac_unique_file="README.GIT-RULES"
  738: # Factoring default headers for most tests.
  739: ac_includes_default="\
  740: #include <stdio.h>
  741: #ifdef HAVE_SYS_TYPES_H
  742: # include <sys/types.h>
  743: #endif
  744: #ifdef HAVE_SYS_STAT_H
  745: # include <sys/stat.h>
  746: #endif
  747: #ifdef STDC_HEADERS
  748: # include <stdlib.h>
  749: # include <stddef.h>
  750: #else
  751: # ifdef HAVE_STDLIB_H
  752: #  include <stdlib.h>
  753: # endif
  754: #endif
  755: #ifdef HAVE_STRING_H
  756: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  757: #  include <memory.h>
  758: # endif
  759: # include <string.h>
  760: #endif
  761: #ifdef HAVE_STRINGS_H
  762: # include <strings.h>
  763: #endif
  764: #ifdef HAVE_INTTYPES_H
  765: # include <inttypes.h>
  766: #endif
  767: #ifdef HAVE_STDINT_H
  768: # include <stdint.h>
  769: #endif
  770: #ifdef HAVE_UNISTD_H
  771: # include <unistd.h>
  772: #endif"
  773: 
  774: ac_header_list=
  775: ac_subst_vars='LTLIBOBJS
  776: LIBTOOL
  777: NMEDIT
  778: DSYMUTIL
  779: STRIP
  780: AR
  781: ECHO
  782: PHP_VERSION_ID
  783: PHP_VERSION
  784: PHP_LIBS
  785: PHP_LDFLAGS
  786: PEAR_INSTALLDIR
  787: NATIVE_RPATHS
  788: INSTALL_IT
  789: EXTRA_INCLUDES
  790: INCLUDES
  791: ZEND_EXTRA_LIBS
  792: EXTRA_LIBS
  793: EXTRA_LDFLAGS_PROGRAM
  794: EXTRA_LDFLAGS
  795: EXTENSION_DIR
  796: DEBUG_CFLAGS
  797: program_suffix
  798: program_prefix
  799: php_abs_top_srcdir
  800: php_abs_top_builddir
  801: abs_srcdir
  802: abs_builddir
  803: PHP_INSTALLED_SAPIS
  804: EXPANDED_PHP_CONFIG_FILE_SCAN_DIR
  805: EXPANDED_PHP_CONFIG_FILE_PATH
  806: EXPANDED_LOCALSTATEDIR
  807: EXPANDED_SYSCONFDIR
  808: EXPANDED_DATADIR
  809: EXPANDED_LIBDIR
  810: EXPANDED_MANDIR
  811: EXPANDED_SBINDIR
  812: EXPANDED_BINDIR
  813: EXPANDED_EXTENSION_DIR
  814: EXPANDED_PEAR_INSTALLDIR
  815: INCLUDE_PATH
  816: INLINE_CFLAGS
  817: RANLIB
  818: SNMP_CONFIG
  819: PDO_OCI_VERSION
  820: PDO_OCI_DIR
  821: PDO_OCI_SHARED_LIBADD
  822: PDO_MYSQL_MODULE_TYPE
  823: ODBC_TYPE
  824: ODBC_LFLAGS
  825: ODBC_LIBS
  826: ODBC_INCLUDE
  827: OCI8_ORACLE_VERSION
  828: OCI8_DIR
  829: OCI8_SHARED_LIBADD
  830: MYSQL_INCLUDE
  831: MYSQL_LIBS
  832: MYSQL_MODULE_TYPE
  833: CXXCPP
  834: ac_ct_CXX
  835: CXXFLAGS
  836: CXX
  837: ICU_CONFIG
  838: OPENSSL_INCDIR_OPT
  839: PKG_CONFIG
  840: KRB5_CONFIG
  841: LTP_GENHTML
  842: LTP
  843: ALLOCA
  844: LIBOBJS
  845: PROG_SENDMAIL
  846: php_fpm_prefix
  847: php_fpm_localstatedir
  848: php_fpm_sysconfdir
  849: php_fpm_group
  850: php_fpm_user
  851: php_fpm_systemd
  852: SHLIB_DL_SUFFIX_NAME
  853: SHLIB_SUFFIX_NAME
  854: RE2C
  855: YFLAGS
  856: YACC
  857: AWK
  858: LN_S
  859: CPP
  860: OBJEXT
  861: EXEEXT
  862: ac_ct_CC
  863: CPPFLAGS
  864: LDFLAGS
  865: CFLAGS
  866: CC
  867: target_os
  868: target_vendor
  869: target_cpu
  870: target
  871: host_os
  872: host_vendor
  873: host_cpu
  874: host
  875: build_os
  876: build_vendor
  877: build_cpu
  878: build
  879: CONFIGURE_OPTIONS
  880: CONFIGURE_COMMAND
  881: SED
  882: EGREP
  883: GREP
  884: target_alias
  885: host_alias
  886: build_alias
  887: LIBS
  888: ECHO_T
  889: ECHO_N
  890: ECHO_C
  891: DEFS
  892: mandir
  893: localedir
  894: libdir
  895: psdir
  896: pdfdir
  897: dvidir
  898: htmldir
  899: infodir
  900: docdir
  901: oldincludedir
  902: includedir
  903: localstatedir
  904: sharedstatedir
  905: sysconfdir
  906: datadir
  907: datarootdir
  908: libexecdir
  909: sbindir
  910: bindir
  911: program_transform_name
  912: prefix
  913: exec_prefix
  914: PACKAGE_URL
  915: PACKAGE_BUGREPORT
  916: PACKAGE_STRING
  917: PACKAGE_VERSION
  918: PACKAGE_TARNAME
  919: PACKAGE_NAME
  920: PATH_SEPARATOR
  921: SHELL'
  922: ac_subst_files=''
  923: ac_user_opts='
  924: enable_option_checking
  925: with_libdir
  926: enable_rpath
  927: enable_re2c_cgoto
  928: enable_
  929: with_aolserver
  930: with_apxs
  931: with_apache
  932: enable_mod_charset
  933: with_apxs2filter
  934: with_apxs2
  935: with_apache_hooks
  936: with_apache_hooks_static
  937: with_caudium
  938: enable_cli
  939: with_continuity
  940: enable_embed
  941: enable_fpm
  942: with_fpm_user
  943: with_fpm_group
  944: with_fpm_systemd
  945: with_isapi
  946: with_litespeed
  947: with_milter
  948: with_nsapi
  949: with_phttpd
  950: with_pi3web
  951: with_roxen
  952: enable_roxen_zts
  953: with_thttpd
  954: with_tux
  955: with_webjames
  956: enable_cgi
  957: enable_gcov
  958: enable_debug
  959: with_layout
  960: with_config_file_path
  961: with_config_file_scan_dir
  962: enable_sigchild
  963: enable_libgcc
  964: enable_short_tags
  965: enable_dmalloc
  966: enable_ipv6
  967: enable_dtrace
  968: enable_fd_setsize
  969: enable_all
  970: with_regex
  971: enable_libxml
  972: with_libxml_dir
  973: with_openssl
  974: with_kerberos
  975: with_pcre_regex
  976: with_sqlite3
  977: with_zlib
  978: with_zlib_dir
  979: enable_bcmath
  980: with_bz2
  981: enable_calendar
  982: enable_ctype
  983: with_curl
  984: with_curlwrappers
  985: enable_dba
  986: with_qdbm
  987: with_gdbm
  988: with_ndbm
  989: with_db4
  990: with_db3
  991: with_db2
  992: with_db1
  993: with_dbm
  994: with_tcadb
  995: with_cdb
  996: enable_inifile
  997: enable_flatfile
  998: enable_dom
  999: with_enchant
 1000: enable_exif
 1001: enable_fileinfo
 1002: enable_filter
 1003: with_pcre_dir
 1004: enable_ftp
 1005: with_openssl_dir
 1006: with_gd
 1007: with_vpx_dir
 1008: with_jpeg_dir
 1009: with_png_dir
 1010: with_xpm_dir
 1011: with_freetype_dir
 1012: with_t1lib
 1013: enable_gd_native_ttf
 1014: enable_gd_jis_conv
 1015: with_gettext
 1016: with_gmp
 1017: with_mhash
 1018: enable_hash
 1019: with_iconv
 1020: with_imap
 1021: with_imap_ssl
 1022: with_interbase
 1023: enable_intl
 1024: with_icu_dir
 1025: enable_json
 1026: with_ldap
 1027: with_ldap_sasl
 1028: enable_mbstring
 1029: enable_mbregex
 1030: enable_mbregex_backtrack
 1031: with_libmbfl
 1032: with_onig
 1033: with_mcrypt
 1034: with_mssql
 1035: with_mysql
 1036: with_mysql_sock
 1037: with_mysqli
 1038: enable_embedded_mysqli
 1039: with_oci8
 1040: with_adabas
 1041: with_sapdb
 1042: with_solid
 1043: with_ibm_db2
 1044: with_ODBCRouter
 1045: with_empress
 1046: with_empress_bcs
 1047: with_birdstep
 1048: with_custom_odbc
 1049: with_iodbc
 1050: with_esoob
 1051: with_unixODBC
 1052: with_dbmaker
 1053: enable_pcntl
 1054: enable_pdo
 1055: with_pdo_dblib
 1056: with_pdo_firebird
 1057: with_pdo_mysql
 1058: with_pdo_oci
 1059: with_pdo_odbc
 1060: with_pdo_pgsql
 1061: with_pdo_sqlite
 1062: with_pgsql
 1063: enable_phar
 1064: enable_posix
 1065: with_pspell
 1066: with_libedit
 1067: with_readline
 1068: with_recode
 1069: enable_session
 1070: with_mm
 1071: enable_shmop
 1072: enable_simplexml
 1073: with_snmp
 1074: enable_soap
 1075: enable_sockets
 1076: with_sybase_ct
 1077: enable_sysvmsg
 1078: enable_sysvsem
 1079: enable_sysvshm
 1080: with_tidy
 1081: enable_tokenizer
 1082: enable_wddx
 1083: with_libexpat_dir
 1084: enable_xml
 1085: enable_xmlreader
 1086: with_xmlrpc
 1087: with_iconv_dir
 1088: enable_xmlwriter
 1089: with_xsl
 1090: enable_zip
 1091: enable_mysqlnd
 1092: enable_mysqlnd_compression_support
 1093: with_pear
 1094: with_zend_vm
 1095: enable_maintainer_zts
 1096: enable_inline_optimization
 1097: enable_zend_signals
 1098: with_tsrm_pth
 1099: with_tsrm_st
 1100: with_tsrm_pthreads
 1101: enable_shared
 1102: enable_static
 1103: enable_fast_install
 1104: with_gnu_ld
 1105: enable_libtool_lock
 1106: with_pic
 1107: with_tags
 1108: '
 1109:       ac_precious_vars='build_alias
 1110: host_alias
 1111: target_alias
 1112: CC
 1113: CFLAGS
 1114: LDFLAGS
 1115: LIBS
 1116: CPPFLAGS
 1117: CPP
 1118: YACC
 1119: YFLAGS
 1120: CXX
 1121: CXXFLAGS
 1122: CCC
 1123: CXXCPP'
 1124: 
 1125: 
 1126: # Initialize some variables set by options.
 1127: ac_init_help=
 1128: ac_init_version=false
 1129: ac_unrecognized_opts=
 1130: ac_unrecognized_sep=
 1131: # The variables have the same names as the options, with
 1132: # dashes changed to underlines.
 1133: cache_file=/dev/null
 1134: exec_prefix=NONE
 1135: no_create=
 1136: no_recursion=
 1137: prefix=NONE
 1138: program_prefix=NONE
 1139: program_suffix=NONE
 1140: program_transform_name=s,x,x,
 1141: silent=
 1142: site=
 1143: srcdir=
 1144: verbose=
 1145: x_includes=NONE
 1146: x_libraries=NONE
 1147: 
 1148: # Installation directory options.
 1149: # These are left unexpanded so users can "make install exec_prefix=/foo"
 1150: # and all the variables that are supposed to be based on exec_prefix
 1151: # by default will actually change.
 1152: # Use braces instead of parens because sh, perl, etc. also accept them.
 1153: # (The list follows the same order as the GNU Coding Standards.)
 1154: bindir='${exec_prefix}/bin'
 1155: sbindir='${exec_prefix}/sbin'
 1156: libexecdir='${exec_prefix}/libexec'
 1157: datarootdir='${prefix}/share'
 1158: datadir='${datarootdir}'
 1159: sysconfdir='${prefix}/etc'
 1160: sharedstatedir='${prefix}/com'
 1161: localstatedir='${prefix}/var'
 1162: includedir='${prefix}/include'
 1163: oldincludedir='/usr/include'
 1164: docdir='${datarootdir}/doc/${PACKAGE}'
 1165: infodir='${datarootdir}/info'
 1166: htmldir='${docdir}'
 1167: dvidir='${docdir}'
 1168: pdfdir='${docdir}'
 1169: psdir='${docdir}'
 1170: libdir='${exec_prefix}/lib'
 1171: localedir='${datarootdir}/locale'
 1172: mandir='${datarootdir}/man'
 1173: 
 1174: ac_prev=
 1175: ac_dashdash=
 1176: for ac_option
 1177: do
 1178:   # If the previous option needs an argument, assign it.
 1179:   if test -n "$ac_prev"; then
 1180:     eval $ac_prev=\$ac_option
 1181:     ac_prev=
 1182:     continue
 1183:   fi
 1184: 
 1185:   case $ac_option in
 1186:   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 1187:   *=)   ac_optarg= ;;
 1188:   *)    ac_optarg=yes ;;
 1189:   esac
 1190: 
 1191:   # Accept the important Cygnus configure options, so we can diagnose typos.
 1192: 
 1193:   case $ac_dashdash$ac_option in
 1194:   --)
 1195:     ac_dashdash=yes ;;
 1196: 
 1197:   -bindir | --bindir | --bindi | --bind | --bin | --bi)
 1198:     ac_prev=bindir ;;
 1199:   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 1200:     bindir=$ac_optarg ;;
 1201: 
 1202:   -build | --build | --buil | --bui | --bu)
 1203:     ac_prev=build_alias ;;
 1204:   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 1205:     build_alias=$ac_optarg ;;
 1206: 
 1207:   -cache-file | --cache-file | --cache-fil | --cache-fi \
 1208:   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 1209:     ac_prev=cache_file ;;
 1210:   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 1211:   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 1212:     cache_file=$ac_optarg ;;
 1213: 
 1214:   --config-cache | -C)
 1215:     cache_file=config.cache ;;
 1216: 
 1217:   -datadir | --datadir | --datadi | --datad)
 1218:     ac_prev=datadir ;;
 1219:   -datadir=* | --datadir=* | --datadi=* | --datad=*)
 1220:     datadir=$ac_optarg ;;
 1221: 
 1222:   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 1223:   | --dataroo | --dataro | --datar)
 1224:     ac_prev=datarootdir ;;
 1225:   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 1226:   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 1227:     datarootdir=$ac_optarg ;;
 1228: 
 1229:   -disable-* | --disable-*)
 1230:     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 1231:     # Reject names that are not valid shell variable names.
 1232:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 1233:       as_fn_error $? "invalid feature name: $ac_useropt"
 1234:     ac_useropt_orig=$ac_useropt
 1235:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 1236:     case $ac_user_opts in
 1237:       *"
 1238: "enable_$ac_useropt"
 1239: "*) ;;
 1240:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
 1241: 	 ac_unrecognized_sep=', ';;
 1242:     esac
 1243:     eval enable_$ac_useropt=no ;;
 1244: 
 1245:   -docdir | --docdir | --docdi | --doc | --do)
 1246:     ac_prev=docdir ;;
 1247:   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 1248:     docdir=$ac_optarg ;;
 1249: 
 1250:   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 1251:     ac_prev=dvidir ;;
 1252:   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 1253:     dvidir=$ac_optarg ;;
 1254: 
 1255:   -enable-* | --enable-*)
 1256:     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 1257:     # Reject names that are not valid shell variable names.
 1258:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 1259:       as_fn_error $? "invalid feature name: $ac_useropt"
 1260:     ac_useropt_orig=$ac_useropt
 1261:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 1262:     case $ac_user_opts in
 1263:       *"
 1264: "enable_$ac_useropt"
 1265: "*) ;;
 1266:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
 1267: 	 ac_unrecognized_sep=', ';;
 1268:     esac
 1269:     eval enable_$ac_useropt=\$ac_optarg ;;
 1270: 
 1271:   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 1272:   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 1273:   | --exec | --exe | --ex)
 1274:     ac_prev=exec_prefix ;;
 1275:   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 1276:   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 1277:   | --exec=* | --exe=* | --ex=*)
 1278:     exec_prefix=$ac_optarg ;;
 1279: 
 1280:   -gas | --gas | --ga | --g)
 1281:     # Obsolete; use --with-gas.
 1282:     with_gas=yes ;;
 1283: 
 1284:   -help | --help | --hel | --he | -h)
 1285:     ac_init_help=long ;;
 1286:   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 1287:     ac_init_help=recursive ;;
 1288:   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 1289:     ac_init_help=short ;;
 1290: 
 1291:   -host | --host | --hos | --ho)
 1292:     ac_prev=host_alias ;;
 1293:   -host=* | --host=* | --hos=* | --ho=*)
 1294:     host_alias=$ac_optarg ;;
 1295: 
 1296:   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 1297:     ac_prev=htmldir ;;
 1298:   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 1299:   | --ht=*)
 1300:     htmldir=$ac_optarg ;;
 1301: 
 1302:   -includedir | --includedir | --includedi | --included | --include \
 1303:   | --includ | --inclu | --incl | --inc)
 1304:     ac_prev=includedir ;;
 1305:   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 1306:   | --includ=* | --inclu=* | --incl=* | --inc=*)
 1307:     includedir=$ac_optarg ;;
 1308: 
 1309:   -infodir | --infodir | --infodi | --infod | --info | --inf)
 1310:     ac_prev=infodir ;;
 1311:   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 1312:     infodir=$ac_optarg ;;
 1313: 
 1314:   -libdir | --libdir | --libdi | --libd)
 1315:     ac_prev=libdir ;;
 1316:   -libdir=* | --libdir=* | --libdi=* | --libd=*)
 1317:     libdir=$ac_optarg ;;
 1318: 
 1319:   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 1320:   | --libexe | --libex | --libe)
 1321:     ac_prev=libexecdir ;;
 1322:   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 1323:   | --libexe=* | --libex=* | --libe=*)
 1324:     libexecdir=$ac_optarg ;;
 1325: 
 1326:   -localedir | --localedir | --localedi | --localed | --locale)
 1327:     ac_prev=localedir ;;
 1328:   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 1329:     localedir=$ac_optarg ;;
 1330: 
 1331:   -localstatedir | --localstatedir | --localstatedi | --localstated \
 1332:   | --localstate | --localstat | --localsta | --localst | --locals)
 1333:     ac_prev=localstatedir ;;
 1334:   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 1335:   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
 1336:     localstatedir=$ac_optarg ;;
 1337: 
 1338:   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 1339:     ac_prev=mandir ;;
 1340:   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 1341:     mandir=$ac_optarg ;;
 1342: 
 1343:   -nfp | --nfp | --nf)
 1344:     # Obsolete; use --without-fp.
 1345:     with_fp=no ;;
 1346: 
 1347:   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 1348:   | --no-cr | --no-c | -n)
 1349:     no_create=yes ;;
 1350: 
 1351:   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 1352:   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 1353:     no_recursion=yes ;;
 1354: 
 1355:   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 1356:   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 1357:   | --oldin | --oldi | --old | --ol | --o)
 1358:     ac_prev=oldincludedir ;;
 1359:   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 1360:   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 1361:   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 1362:     oldincludedir=$ac_optarg ;;
 1363: 
 1364:   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 1365:     ac_prev=prefix ;;
 1366:   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 1367:     prefix=$ac_optarg ;;
 1368: 
 1369:   -program-prefix | --program-prefix | --program-prefi | --program-pref \
 1370:   | --program-pre | --program-pr | --program-p)
 1371:     ac_prev=program_prefix ;;
 1372:   -program-prefix=* | --program-prefix=* | --program-prefi=* \
 1373:   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 1374:     program_prefix=$ac_optarg ;;
 1375: 
 1376:   -program-suffix | --program-suffix | --program-suffi | --program-suff \
 1377:   | --program-suf | --program-su | --program-s)
 1378:     ac_prev=program_suffix ;;
 1379:   -program-suffix=* | --program-suffix=* | --program-suffi=* \
 1380:   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 1381:     program_suffix=$ac_optarg ;;
 1382: 
 1383:   -program-transform-name | --program-transform-name \
 1384:   | --program-transform-nam | --program-transform-na \
 1385:   | --program-transform-n | --program-transform- \
 1386:   | --program-transform | --program-transfor \
 1387:   | --program-transfo | --program-transf \
 1388:   | --program-trans | --program-tran \
 1389:   | --progr-tra | --program-tr | --program-t)
 1390:     ac_prev=program_transform_name ;;
 1391:   -program-transform-name=* | --program-transform-name=* \
 1392:   | --program-transform-nam=* | --program-transform-na=* \
 1393:   | --program-transform-n=* | --program-transform-=* \
 1394:   | --program-transform=* | --program-transfor=* \
 1395:   | --program-transfo=* | --program-transf=* \
 1396:   | --program-trans=* | --program-tran=* \
 1397:   | --progr-tra=* | --program-tr=* | --program-t=*)
 1398:     program_transform_name=$ac_optarg ;;
 1399: 
 1400:   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 1401:     ac_prev=pdfdir ;;
 1402:   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 1403:     pdfdir=$ac_optarg ;;
 1404: 
 1405:   -psdir | --psdir | --psdi | --psd | --ps)
 1406:     ac_prev=psdir ;;
 1407:   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 1408:     psdir=$ac_optarg ;;
 1409: 
 1410:   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 1411:   | -silent | --silent | --silen | --sile | --sil)
 1412:     silent=yes ;;
 1413: 
 1414:   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 1415:     ac_prev=sbindir ;;
 1416:   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 1417:   | --sbi=* | --sb=*)
 1418:     sbindir=$ac_optarg ;;
 1419: 
 1420:   -sharedstatedir | --sharedstatedir | --sharedstatedi \
 1421:   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 1422:   | --sharedst | --shareds | --shared | --share | --shar \
 1423:   | --sha | --sh)
 1424:     ac_prev=sharedstatedir ;;
 1425:   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 1426:   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 1427:   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 1428:   | --sha=* | --sh=*)
 1429:     sharedstatedir=$ac_optarg ;;
 1430: 
 1431:   -site | --site | --sit)
 1432:     ac_prev=site ;;
 1433:   -site=* | --site=* | --sit=*)
 1434:     site=$ac_optarg ;;
 1435: 
 1436:   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 1437:     ac_prev=srcdir ;;
 1438:   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 1439:     srcdir=$ac_optarg ;;
 1440: 
 1441:   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 1442:   | --syscon | --sysco | --sysc | --sys | --sy)
 1443:     ac_prev=sysconfdir ;;
 1444:   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 1445:   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 1446:     sysconfdir=$ac_optarg ;;
 1447: 
 1448:   -target | --target | --targe | --targ | --tar | --ta | --t)
 1449:     ac_prev=target_alias ;;
 1450:   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 1451:     target_alias=$ac_optarg ;;
 1452: 
 1453:   -v | -verbose | --verbose | --verbos | --verbo | --verb)
 1454:     verbose=yes ;;
 1455: 
 1456:   -version | --version | --versio | --versi | --vers | -V)
 1457:     ac_init_version=: ;;
 1458: 
 1459:   -with-* | --with-*)
 1460:     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 1461:     # Reject names that are not valid shell variable names.
 1462:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 1463:       as_fn_error $? "invalid package name: $ac_useropt"
 1464:     ac_useropt_orig=$ac_useropt
 1465:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 1466:     case $ac_user_opts in
 1467:       *"
 1468: "with_$ac_useropt"
 1469: "*) ;;
 1470:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
 1471: 	 ac_unrecognized_sep=', ';;
 1472:     esac
 1473:     eval with_$ac_useropt=\$ac_optarg ;;
 1474: 
 1475:   -without-* | --without-*)
 1476:     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 1477:     # Reject names that are not valid shell variable names.
 1478:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 1479:       as_fn_error $? "invalid package name: $ac_useropt"
 1480:     ac_useropt_orig=$ac_useropt
 1481:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 1482:     case $ac_user_opts in
 1483:       *"
 1484: "with_$ac_useropt"
 1485: "*) ;;
 1486:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
 1487: 	 ac_unrecognized_sep=', ';;
 1488:     esac
 1489:     eval with_$ac_useropt=no ;;
 1490: 
 1491:   --x)
 1492:     # Obsolete; use --with-x.
 1493:     with_x=yes ;;
 1494: 
 1495:   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 1496:   | --x-incl | --x-inc | --x-in | --x-i)
 1497:     ac_prev=x_includes ;;
 1498:   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 1499:   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 1500:     x_includes=$ac_optarg ;;
 1501: 
 1502:   -x-libraries | --x-libraries | --x-librarie | --x-librari \
 1503:   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 1504:     ac_prev=x_libraries ;;
 1505:   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 1506:   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 1507:     x_libraries=$ac_optarg ;;
 1508: 
 1509:   -*) as_fn_error $? "unrecognized option: \`$ac_option'
 1510: Try \`$0 --help' for more information"
 1511:     ;;
 1512: 
 1513:   *=*)
 1514:     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 1515:     # Reject names that are not valid shell variable names.
 1516:     case $ac_envvar in #(
 1517:       '' | [0-9]* | *[!_$as_cr_alnum]* )
 1518:       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
 1519:     esac
 1520:     eval $ac_envvar=\$ac_optarg
 1521:     export $ac_envvar ;;
 1522: 
 1523:   *)
 1524:     # FIXME: should be removed in autoconf 3.0.
 1525:     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 1526:     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 1527:       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 1528:     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
 1529:     ;;
 1530: 
 1531:   esac
 1532: done
 1533: 
 1534: if test -n "$ac_prev"; then
 1535:   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 1536:   as_fn_error $? "missing argument to $ac_option"
 1537: fi
 1538: 
 1539: if test -n "$ac_unrecognized_opts"; then
 1540:   case $enable_option_checking in
 1541:     no) ;;
 1542:     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
 1543:     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
 1544:   esac
 1545: fi
 1546: 
 1547: # Check all directory arguments for consistency.
 1548: for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
 1549: 		datadir sysconfdir sharedstatedir localstatedir includedir \
 1550: 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 1551: 		libdir localedir mandir
 1552: do
 1553:   eval ac_val=\$$ac_var
 1554:   # Remove trailing slashes.
 1555:   case $ac_val in
 1556:     */ )
 1557:       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
 1558:       eval $ac_var=\$ac_val;;
 1559:   esac
 1560:   # Be sure to have absolute directory names.
 1561:   case $ac_val in
 1562:     [\\/$]* | ?:[\\/]* )  continue;;
 1563:     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 1564:   esac
 1565:   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
 1566: done
 1567: 
 1568: # There might be people who depend on the old broken behavior: `$host'
 1569: # used to hold the argument of --host etc.
 1570: # FIXME: To remove some day.
 1571: build=$build_alias
 1572: host=$host_alias
 1573: target=$target_alias
 1574: 
 1575: # FIXME: To remove some day.
 1576: if test "x$host_alias" != x; then
 1577:   if test "x$build_alias" = x; then
 1578:     cross_compiling=maybe
 1579:   elif test "x$build_alias" != "x$host_alias"; then
 1580:     cross_compiling=yes
 1581:   fi
 1582: fi
 1583: 
 1584: ac_tool_prefix=
 1585: test -n "$host_alias" && ac_tool_prefix=$host_alias-
 1586: 
 1587: test "$silent" = yes && exec 6>/dev/null
 1588: 
 1589: 
 1590: ac_pwd=`pwd` && test -n "$ac_pwd" &&
 1591: ac_ls_di=`ls -di .` &&
 1592: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 1593:   as_fn_error $? "working directory cannot be determined"
 1594: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 1595:   as_fn_error $? "pwd does not report name of working directory"
 1596: 
 1597: 
 1598: # Find the source files, if location was not specified.
 1599: if test -z "$srcdir"; then
 1600:   ac_srcdir_defaulted=yes
 1601:   # Try the directory containing this script, then the parent directory.
 1602:   ac_confdir=`$as_dirname -- "$as_myself" ||
 1603: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 1604: 	 X"$as_myself" : 'X\(//\)[^/]' \| \
 1605: 	 X"$as_myself" : 'X\(//\)$' \| \
 1606: 	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
 1607: $as_echo X"$as_myself" |
 1608:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 1609: 	    s//\1/
 1610: 	    q
 1611: 	  }
 1612: 	  /^X\(\/\/\)[^/].*/{
 1613: 	    s//\1/
 1614: 	    q
 1615: 	  }
 1616: 	  /^X\(\/\/\)$/{
 1617: 	    s//\1/
 1618: 	    q
 1619: 	  }
 1620: 	  /^X\(\/\).*/{
 1621: 	    s//\1/
 1622: 	    q
 1623: 	  }
 1624: 	  s/.*/./; q'`
 1625:   srcdir=$ac_confdir
 1626:   if test ! -r "$srcdir/$ac_unique_file"; then
 1627:     srcdir=..
 1628:   fi
 1629: else
 1630:   ac_srcdir_defaulted=no
 1631: fi
 1632: if test ! -r "$srcdir/$ac_unique_file"; then
 1633:   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 1634:   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
 1635: fi
 1636: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 1637: ac_abs_confdir=`(
 1638: 	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
 1639: 	pwd)`
 1640: # When building in place, set srcdir=.
 1641: if test "$ac_abs_confdir" = "$ac_pwd"; then
 1642:   srcdir=.
 1643: fi
 1644: # Remove unnecessary trailing slashes from srcdir.
 1645: # Double slashes in file names in object file debugging info
 1646: # mess up M-x gdb in Emacs.
 1647: case $srcdir in
 1648: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 1649: esac
 1650: for ac_var in $ac_precious_vars; do
 1651:   eval ac_env_${ac_var}_set=\${${ac_var}+set}
 1652:   eval ac_env_${ac_var}_value=\$${ac_var}
 1653:   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 1654:   eval ac_cv_env_${ac_var}_value=\$${ac_var}
 1655: done
 1656: 
 1657: #
 1658: # Report the --help message.
 1659: #
 1660: if test "$ac_init_help" = "long"; then
 1661:   # Omit some internal or obsolete options to make the list less imposing.
 1662:   # This message is too long to be a string in the A/UX 3.1 sh.
 1663:   cat <<_ACEOF
 1664: \`configure' configures this package to adapt to many kinds of systems.
 1665: 
 1666: Usage: $0 [OPTION]... [VAR=VALUE]...
 1667: 
 1668: To assign environment variables (e.g., CC, CFLAGS...), specify them as
 1669: VAR=VALUE.  See below for descriptions of some of the useful variables.
 1670: 
 1671: Defaults for the options are specified in brackets.
 1672: 
 1673: Configuration:
 1674:   -h, --help              display this help and exit
 1675:       --help=short        display options specific to this package
 1676:       --help=recursive    display the short help of all the included packages
 1677:   -V, --version           display version information and exit
 1678:   -q, --quiet, --silent   do not print \`checking ...' messages
 1679:       --cache-file=FILE   cache test results in FILE [disabled]
 1680:   -C, --config-cache      alias for \`--cache-file=config.cache'
 1681:   -n, --no-create         do not create output files
 1682:       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 1683: 
 1684: Installation directories:
 1685:   --prefix=PREFIX         install architecture-independent files in PREFIX
 1686:                           [$ac_default_prefix]
 1687:   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 1688:                           [PREFIX]
 1689: 
 1690: By default, \`make install' will install all the files in
 1691: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 1692: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 1693: for instance \`--prefix=\$HOME'.
 1694: 
 1695: For better control, use the options below.
 1696: 
 1697: Fine tuning of the installation directories:
 1698:   --bindir=DIR            user executables [EPREFIX/bin]
 1699:   --sbindir=DIR           system admin executables [EPREFIX/sbin]
 1700:   --libexecdir=DIR        program executables [EPREFIX/libexec]
 1701:   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
 1702:   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
 1703:   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
 1704:   --libdir=DIR            object code libraries [EPREFIX/lib]
 1705:   --includedir=DIR        C header files [PREFIX/include]
 1706:   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
 1707:   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
 1708:   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
 1709:   --infodir=DIR           info documentation [DATAROOTDIR/info]
 1710:   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
 1711:   --mandir=DIR            man documentation [DATAROOTDIR/man]
 1712:   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
 1713:   --htmldir=DIR           html documentation [DOCDIR]
 1714:   --dvidir=DIR            dvi documentation [DOCDIR]
 1715:   --pdfdir=DIR            pdf documentation [DOCDIR]
 1716:   --psdir=DIR             ps documentation [DOCDIR]
 1717: _ACEOF
 1718: 
 1719:   cat <<\_ACEOF
 1720: 
 1721: System types:
 1722:   --build=BUILD     configure for building on BUILD [guessed]
 1723:   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 1724:   --target=TARGET   configure for building compilers for TARGET [HOST]
 1725: _ACEOF
 1726: fi
 1727: 
 1728: if test -n "$ac_init_help"; then
 1729: 
 1730:   cat <<\_ACEOF
 1731: 
 1732: Optional Features and Packages:
 1733:   --disable-option-checking  ignore unrecognized --enable/--with options
 1734:   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 1735:   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 1736:   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 1737:   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 1738:   --with-libdir=NAME      Look for libraries in .../NAME rather than .../lib
 1739:   --disable-rpath         Disable passing additional runtime library
 1740:                           search paths
 1741:   --enable-re2c-cgoto     Enable -g flag to re2c to use computed goto gcc extension
 1742: 
 1743: SAPI modules:
 1744: 
 1745:   --with-aolserver=DIR    Specify path to the installed AOLserver
 1746:   --with-apxs=FILE      Build shared Apache 1.x module. FILE is the optional
 1747:                           pathname to the Apache apxs tool apxs
 1748:   --with-apache=DIR     Build Apache 1.x module. DIR is the top-level Apache
 1749:                           build directory /usr/local/apache
 1750:   --enable-mod-charset      APACHE: Enable transfer tables for mod_charset (Rus Apache)
 1751:   --with-apxs2filter=FILE
 1752:                           EXPERIMENTAL: Build shared Apache 2.0 Filter module. FILE is the optional
 1753:                           pathname to the Apache apxs tool apxs
 1754:   --with-apxs2=FILE     Build shared Apache 2.0 Handler module. FILE is the optional
 1755:                           pathname to the Apache apxs tool apxs
 1756:   --with-apache-hooks=FILE
 1757:                           EXPERIMENTAL: Build shared Apache 1.x module. FILE is the optional
 1758:                           pathname to the Apache apxs tool apxs
 1759:   --with-apache-hooks-static=DIR
 1760:                           EXPERIMENTAL: Build Apache 1.x module. DIR is the top-level Apache
 1761:                           build directory /usr/local/apache
 1762:   --enable-mod-charset      APACHE (hooks): Enable transfer tables for mod_charset (Rus Apache)
 1763:   --with-caudium=DIR    Build PHP as a Pike module for use with Caudium.
 1764:                           DIR is the Caudium server dir /usr/local/caudium/server
 1765:   --disable-cli           Disable building CLI version of PHP
 1766:                           (this forces --without-pear)
 1767:   --with-continuity=DIR   Build PHP as Continuity Server module.
 1768:                           DIR is path to the installed Continuity Server root
 1769:   --enable-embed=TYPE   EXPERIMENTAL: Enable building of embedded SAPI library
 1770:                           TYPE is either 'shared' or 'static'. TYPE=shared
 1771:   --enable-fpm              Enable building of the fpm SAPI executable
 1772:   --with-fpm-user=USER  Set the user for php-fpm to run as. (default: nobody)
 1773:   --with-fpm-group=GRP  Set the group for php-fpm to run as. For a system user, this
 1774:                   should usually be set to match the fpm username (default: nobody)
 1775:   --with-fpm-systemd      Activate systemd integration
 1776:   --with-isapi=DIR      Build PHP as an ISAPI module for use with Zeus
 1777:   --with-litespeed        Build PHP as litespeed module
 1778:   --with-milter=DIR     Build PHP as Milter application
 1779:   --with-nsapi=DIR        Build PHP as NSAPI module for Netscape/iPlanet/Sun Webserver
 1780:   --with-phttpd=DIR       Build PHP as phttpd module
 1781:   --with-pi3web=DIR     Build PHP as Pi3Web module
 1782:   --with-roxen=DIR        Build PHP as a Pike module. DIR is the base Roxen
 1783:                           directory, normally /usr/local/roxen/server
 1784:   --enable-roxen-zts        ROXEN: Build the Roxen module using Zend Thread Safety
 1785:   --with-thttpd=SRCDIR    Build PHP as thttpd module
 1786:   --with-tux=MODULEDIR    Build PHP as a TUX module (Linux only)
 1787:   --with-webjames=SRCDIR  Build PHP as a WebJames module (RISC OS only)
 1788:   --disable-cgi           Disable building CGI version of PHP
 1789: 
 1790: General settings:
 1791: 
 1792:   --enable-gcov           Enable GCOV code coverage (requires LTP) - FOR DEVELOPERS ONLY!!
 1793:   --enable-debug          Compile with debugging symbols
 1794:   --with-layout=TYPE      Set how installed files will be laid out.  Type can
 1795:                           be either PHP or GNU [PHP]
 1796:   --with-config-file-path=PATH
 1797:                           Set the path in which to look for php.ini [PREFIX/lib]
 1798:   --with-config-file-scan-dir=PATH
 1799:                           Set the path where to scan for configuration files
 1800:   --enable-sigchild       Enable PHP's own SIGCHLD handler
 1801:   --enable-libgcc         Enable explicitly linking against libgcc
 1802:   --disable-short-tags    Disable the short-form <? start tag by default
 1803:   --enable-dmalloc        Enable dmalloc
 1804:   --disable-ipv6          Disable IPv6 support
 1805:   --enable-dtrace         Enable DTrace support
 1806:   --enable-fd-setsize     Set size of descriptor sets
 1807: 
 1808: Extensions:
 1809: 
 1810:   --with-EXTENSION=shared[,PATH]
 1811: 
 1812:     NOTE: Not all extensions can be build as 'shared'.
 1813: 
 1814:     Example: --with-foobar=shared,/usr/local/foobar/
 1815: 
 1816:       o Builds the foobar extension as shared extension.
 1817:       o foobar package install prefix is /usr/local/foobar/
 1818: 
 1819: 
 1820:  --disable-all   Disable all extensions which are enabled by default
 1821: 
 1822:   --with-regex=TYPE       regex library type: system, php. TYPE=php
 1823:                           WARNING: Do NOT use unless you know what you are doing!
 1824:   --disable-libxml        Disable LIBXML support
 1825:   --with-libxml-dir=DIR   LIBXML: libxml2 install prefix
 1826:   --with-openssl=DIR    Include OpenSSL support (requires OpenSSL >= 0.9.6)
 1827:   --with-kerberos=DIR     OPENSSL: Include Kerberos support
 1828:   --with-pcre-regex=DIR   Include Perl Compatible Regular Expressions support.
 1829:                           DIR is the PCRE install prefix BUNDLED
 1830:   --without-sqlite3=DIR Do not include SQLite3 support. DIR is the prefix to
 1831:                           SQLite3 installation directory.
 1832:   --with-zlib=DIR       Include ZLIB support (requires zlib >= 1.0.9)
 1833:   --with-zlib-dir=<DIR>   Define the location of zlib install directory
 1834:   --enable-bcmath         Enable bc style precision math functions
 1835:   --with-bz2=DIR        Include BZip2 support
 1836:   --enable-calendar       Enable support for calendar conversion
 1837:   --disable-ctype         Disable ctype functions
 1838:   --with-curl=DIR       Include cURL support
 1839:   --with-curlwrappers     EXPERIMENTAL: Use cURL for url streams
 1840:   --enable-dba            Build DBA with bundled modules. To build shared DBA
 1841:                           extension use --enable-dba=shared
 1842:   --with-qdbm=DIR         DBA: QDBM support
 1843:   --with-gdbm=DIR         DBA: GDBM support
 1844:   --with-ndbm=DIR         DBA: NDBM support
 1845:   --with-db4=DIR          DBA: Oracle Berkeley DB 4.x or 5.x support
 1846:   --with-db3=DIR          DBA: Oracle Berkeley DB 3.x support
 1847:   --with-db2=DIR          DBA: Oracle Berkeley DB 2.x support
 1848:   --with-db1=DIR          DBA: Oracle Berkeley DB 1.x support/emulation
 1849:   --with-dbm=DIR          DBA: DBM support
 1850:   --with-tcadb=DIR        DBA: Tokyo Cabinet abstract DB support
 1851:   --without-cdb=DIR       DBA: CDB support (bundled)
 1852:   --disable-inifile         DBA: INI support (bundled)
 1853:   --disable-flatfile        DBA: FlatFile support (bundled)
 1854:   --disable-dom           Disable DOM support
 1855:   --with-libxml-dir=DIR   DOM: libxml2 install prefix
 1856:   --with-enchant=DIR     Include enchant support.
 1857:                           GNU Aspell version 1.1.3 or higher required.
 1858:   --enable-exif           Enable EXIF (metadata from images) support
 1859:   --disable-fileinfo      Disable fileinfo support
 1860:   --disable-filter        Disable input filter support
 1861:   --with-pcre-dir           FILTER: pcre install prefix
 1862:   --enable-ftp            Enable FTP support
 1863:   --with-openssl-dir=DIR  FTP: openssl install prefix
 1864:   --with-gd=DIR         Include GD support.  DIR is the GD library base
 1865:                           install directory BUNDLED
 1866:   --with-vpx-dir=DIR     GD: Set the path to libvpx install prefix
 1867:   --with-jpeg-dir=DIR     GD: Set the path to libjpeg install prefix
 1868:   --with-png-dir=DIR      GD: Set the path to libpng install prefix
 1869:   --with-zlib-dir=DIR     GD: Set the path to libz install prefix
 1870:   --with-xpm-dir=DIR      GD: Set the path to libXpm install prefix
 1871:   --with-freetype-dir=DIR GD: Set the path to FreeType 2 install prefix
 1872:   --with-t1lib=DIR        GD: Include T1lib support. T1lib version >= 5.0.0 required
 1873:   --enable-gd-native-ttf    GD: Enable TrueType string function
 1874:   --enable-gd-jis-conv      GD: Enable JIS-mapped Japanese font support
 1875:   --with-gettext=DIR    Include GNU gettext support
 1876:   --with-gmp=DIR        Include GNU MP support
 1877:   --with-mhash=DIR      Include mhash support
 1878:   --disable-hash          Disable hash support
 1879:   --without-iconv=DIR   Exclude iconv support
 1880:   --with-imap=DIR       Include IMAP support. DIR is the c-client install prefix
 1881:   --with-kerberos=DIR     IMAP: Include Kerberos support. DIR is the Kerberos install prefix
 1882:   --with-imap-ssl=DIR     IMAP: Include SSL support. DIR is the OpenSSL install prefix
 1883:   --with-interbase=DIR  Include InterBase support.  DIR is the InterBase base
 1884:                           install directory /usr/interbase
 1885:   --enable-intl           Enable internationalization support
 1886:   --with-icu-dir=DIR      Specify where ICU libraries and headers can be found
 1887:   --disable-json          Disable JavaScript Object Serialization support
 1888:   --with-ldap=DIR       Include LDAP support
 1889:   --with-ldap-sasl=DIR    LDAP: Include Cyrus SASL support
 1890:   --enable-mbstring       Enable multibyte string support
 1891:   --disable-mbregex         MBSTRING: Disable multibyte regex support
 1892:   --disable-mbregex-backtrack
 1893:                             MBSTRING: Disable multibyte regex backtrack check
 1894:   --with-libmbfl=DIR      MBSTRING: Use external libmbfl.  DIR is the libmbfl base
 1895:                             install directory BUNDLED
 1896:   --with-onig=DIR         MBSTRING: Use external oniguruma. DIR is the oniguruma install prefix.
 1897:                             If DIR is not set, the bundled oniguruma will be used
 1898:   --with-mcrypt=DIR     Include mcrypt support
 1899:   --with-mssql=DIR      Include MSSQL-DB support.  DIR is the FreeTDS home
 1900:                           directory /usr/local/freetds
 1901:   --with-mysql=DIR      Include MySQL support.  DIR is the MySQL base
 1902:                           directory, if no DIR is passed or the value is
 1903:                           mysqlnd the MySQL native driver will be used
 1904:   --with-mysql-sock=SOCKPATH   MySQL/MySQLi/PDO_MYSQL: Location of the MySQL unix socket pointer.
 1905:                             If unspecified, the default locations are searched
 1906:   --with-zlib-dir=DIR     MySQL: Set the path to libz install prefix
 1907:   --with-mysqli=FILE    Include MySQLi support.  FILE is the path
 1908:                           to mysql_config.  If no value or mysqlnd is passed
 1909:                           as FILE, the MySQL native driver will be used
 1910:   --enable-embedded-mysqli  MYSQLi: Enable embedded support
 1911:                             Note: Does not work with MySQL native driver!
 1912:   --with-oci8=DIR       Include Oracle Database OCI8 support. DIR defaults to \$ORACLE_HOME.
 1913:                           Use --with-oci8=instantclient,/path/to/instant/client/lib
 1914:                           to use an Oracle Instant Client installation
 1915:   --with-adabas=DIR     Include Adabas D support /usr/local
 1916:   --with-sapdb=DIR      Include SAP DB support /usr/local
 1917:   --with-solid=DIR      Include Solid support /usr/local/solid
 1918:   --with-ibm-db2=DIR    Include IBM DB2 support /home/db2inst1/sqllib
 1919:   --with-ODBCRouter=DIR Include ODBCRouter.com support /usr
 1920:   --with-empress=DIR    Include Empress support \$EMPRESSPATH
 1921:                           (Empress Version >= 8.60 required)
 1922:   --with-empress-bcs=DIR
 1923:                           Include Empress Local Access support \$EMPRESSPATH
 1924:                           (Empress Version >= 8.60 required)
 1925:   --with-birdstep=DIR   Include Birdstep support /usr/local/birdstep
 1926:   --with-custom-odbc=DIR
 1927:                           Include user defined ODBC support. DIR is ODBC install base
 1928:                           directory /usr/local. Make sure to define CUSTOM_ODBC_LIBS and
 1929:                           have some odbc.h in your include dirs. f.e. you should define
 1930:                           following for Sybase SQL Anywhere 5.5.00 on QNX, prior to
 1931:                           running this configure script:
 1932:                               CPPFLAGS=\"-DODBC_QNX -DSQLANY_BUG\"
 1933:                               LDFLAGS=-lunix
 1934:                               CUSTOM_ODBC_LIBS=\"-ldblib -lodbc\"
 1935:   --with-iodbc=DIR      Include iODBC support /usr/local
 1936:   --with-esoob=DIR      Include Easysoft OOB support /usr/local/easysoft/oob/client
 1937:   --with-unixODBC=DIR   Include unixODBC support /usr/local
 1938:   --with-dbmaker=DIR    Include DBMaker support
 1939:   --enable-pcntl          Enable pcntl support (CLI/CGI only)
 1940:   --disable-pdo           Disable PHP Data Objects support
 1941:   --with-pdo-dblib=DIR    PDO: DBLIB-DB support.  DIR is the FreeTDS home directory
 1942:   --with-pdo-firebird=DIR PDO: Firebird support.  DIR is the Firebird base
 1943:                             install directory /opt/firebird
 1944:   --with-pdo-mysql=DIR    PDO: MySQL support. DIR is the MySQL base directory
 1945:                                  If no value or mysqlnd is passed as DIR, the
 1946:                                  MySQL native driver will be used
 1947:   --with-zlib-dir=DIR       PDO_MySQL: Set the path to libz install prefix
 1948:   --with-pdo-oci=DIR      PDO: Oracle OCI support. DIR defaults to \$ORACLE_HOME.
 1949:                             Use --with-pdo-oci=instantclient,prefix,version
 1950:                             for an Oracle Instant Client SDK.
 1951:                             For example on Linux with 11.2 RPMs use:
 1952:                             --with-pdo-oci=instantclient,/usr,11.2
 1953:                             With 10.2 RPMs use:
 1954:                             --with-pdo-oci=instantclient,/usr,10.2.0.4
 1955:   --with-pdo-odbc=flavour,dir
 1956:                             PDO: Support for 'flavour' ODBC driver.
 1957:                             include and lib dirs are looked for under 'dir'.
 1958: 
 1959:                             'flavour' can be one of:  ibm-db2, iODBC, unixODBC, generic
 1960:                             If ',dir' part is omitted, default for the flavour
 1961:                             you have selected will used. e.g.:
 1962: 
 1963:                               --with-pdo-odbc=unixODBC
 1964: 
 1965:                             will check for unixODBC under /usr/local. You may attempt
 1966:                             to use an otherwise unsupported driver using the \"generic\"
 1967:                             flavour.  The syntax for generic ODBC support is:
 1968: 
 1969:                               --with-pdo-odbc=generic,dir,libname,ldflags,cflags
 1970: 
 1971:                             When build as shared the extension filename is always pdo_odbc.so
 1972:   --with-pdo-pgsql=DIR    PDO: PostgreSQL support.  DIR is the PostgreSQL base
 1973:                             install directory or the path to pg_config
 1974:   --without-pdo-sqlite=DIR
 1975:                             PDO: sqlite 3 support.  DIR is the sqlite base
 1976:                             install directory BUNDLED
 1977:   --with-pgsql=DIR      Include PostgreSQL support.  DIR is the PostgreSQL
 1978:                           base install directory or the path to pg_config
 1979:   --disable-phar          Disable phar support
 1980:   --disable-posix         Disable POSIX-like functions
 1981:   --with-pspell=DIR     Include PSPELL support.
 1982:                           GNU Aspell version 0.50.0 or higher required
 1983:   --with-libedit=DIR    Include libedit readline replacement (CLI/CGI only)
 1984:   --with-readline=DIR   Include readline support (CLI/CGI only)
 1985:   --with-recode=DIR     Include recode support
 1986:   --disable-session       Disable session support
 1987:   --with-mm=DIR           SESSION: Include mm support for session storage
 1988:   --enable-shmop          Enable shmop support
 1989:   --disable-simplexml     Disable SimpleXML support
 1990:   --with-libxml-dir=DIR     SimpleXML: libxml2 install prefix
 1991:   --with-snmp=DIR       Include SNMP support
 1992:   --with-openssl-dir=DIR  SNMP: openssl install prefix
 1993:   --enable-soap           Enable SOAP support
 1994:   --with-libxml-dir=DIR     SOAP: libxml2 install prefix
 1995:   --enable-sockets        Enable sockets support
 1996:   --with-sybase-ct=DIR  Include Sybase-CT support.  DIR is the Sybase home
 1997:                           directory /home/sybase
 1998:   --enable-sysvmsg        Enable sysvmsg support
 1999:   --enable-sysvsem        Enable System V semaphore support
 2000:   --enable-sysvshm        Enable the System V shared memory support
 2001:   --with-tidy=DIR       Include TIDY support
 2002:   --disable-tokenizer     Disable tokenizer support
 2003:   --enable-wddx           Enable WDDX support
 2004:   --with-libxml-dir=DIR     WDDX: libxml2 install prefix
 2005:   --with-libexpat-dir=DIR   WDDX: libexpat dir for XMLRPC-EPI (deprecated)
 2006:   --disable-xml           Disable XML support
 2007:   --with-libxml-dir=DIR     XML: libxml2 install prefix
 2008:   --with-libexpat-dir=DIR   XML: libexpat install prefix (deprecated)
 2009:   --disable-xmlreader     Disable XMLReader support
 2010:   --with-libxml-dir=DIR     XMLReader: libxml2 install prefix
 2011:   --with-xmlrpc=DIR     Include XMLRPC-EPI support
 2012:   --with-libxml-dir=DIR     XMLRPC-EPI: libxml2 install prefix
 2013:   --with-libexpat-dir=DIR   XMLRPC-EPI: libexpat dir for XMLRPC-EPI (deprecated)
 2014:   --with-iconv-dir=DIR      XMLRPC-EPI: iconv dir for XMLRPC-EPI
 2015:   --disable-xmlwriter     Disable XMLWriter support
 2016:   --with-libxml-dir=DIR     XMLWriter: libxml2 install prefix
 2017:   --with-xsl=DIR        Include XSL support.  DIR is the libxslt base
 2018:                           install directory (libxslt >= 1.1.0 required)
 2019:   --enable-zip            Include Zip read/write support
 2020:   --with-zlib-dir=DIR     ZIP: Set the path to libz install prefix
 2021:   --with-pcre-dir           ZIP: pcre install prefix
 2022:   --enable-mysqlnd        Enable mysqlnd explicitly, will be done implicitly
 2023:                           when required by other extensions
 2024:   --disable-mysqlnd-compression-support
 2025:                             Disable support for the MySQL compressed protocol in mysqlnd
 2026:   --with-zlib-dir=DIR       mysqlnd: Set the path to libz install prefix
 2027: 
 2028: PEAR:
 2029: 
 2030:   --with-pear=DIR         Install PEAR in DIR [PREFIX/lib/php]
 2031:   --without-pear          Do not install PEAR
 2032: 
 2033: Zend:
 2034: 
 2035:   --with-zend-vm=TYPE     Set virtual machine dispatch method. Type is
 2036:                           one of "CALL", "SWITCH" or "GOTO" TYPE=CALL
 2037:   --enable-maintainer-zts Enable thread safety - for code maintainers only!!
 2038:   --disable-inline-optimization
 2039:                           If building zend_execute.lo fails, try this switch
 2040:   --enable-zend-signals   Use zend signal handling
 2041: 
 2042: TSRM:
 2043: 
 2044:   --with-tsrm-pth=pth-config
 2045:                           Use GNU Pth
 2046:   --with-tsrm-st          Use SGI's State Threads
 2047:   --with-tsrm-pthreads    Use POSIX threads (default)
 2048: 
 2049: Libtool:
 2050: 
 2051:   --enable-shared=PKGS  build shared libraries default=yes
 2052:   --enable-static=PKGS  build static libraries default=yes
 2053:   --enable-fast-install=PKGS  optimize for fast installation default=yes
 2054:   --with-gnu-ld           assume the C compiler uses GNU ld default=no
 2055:   --disable-libtool-lock  avoid locking (might break parallel builds)
 2056:   --with-pic              try to use only PIC/non-PIC objects default=use both
 2057:   --with-tags=TAGS      include additional configurations automatic
 2058: 
 2059: 
 2060: Some influential environment variables:
 2061:   CC          C compiler command
 2062:   CFLAGS      C compiler flags
 2063:   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 2064:               nonstandard directory <lib dir>
 2065:   LIBS        libraries to pass to the linker, e.g. -l<library>
 2066:   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
 2067:               you have headers in a nonstandard directory <include dir>
 2068:   CPP         C preprocessor
 2069:   YACC        The `Yet Another Compiler Compiler' implementation to use.
 2070:               Defaults to the first program found out of: `bison -y', `byacc',
 2071:               `yacc'.
 2072:   YFLAGS      The list of arguments that will be passed by default to $YACC.
 2073:               This script will default YFLAGS to the empty string to avoid a
 2074:               default value of `-d' given by some make applications.
 2075:   CXX         C++ compiler command
 2076:   CXXFLAGS    C++ compiler flags
 2077:   CXXCPP      C++ preprocessor
 2078: 
 2079: Use these variables to override the choices made by `configure' or to help
 2080: it to find libraries and programs with nonstandard names/locations.
 2081: 
 2082: Report bugs to the package provider.
 2083: _ACEOF
 2084: ac_status=$?
 2085: fi
 2086: 
 2087: if test "$ac_init_help" = "recursive"; then
 2088:   # If there are subdirs, report their specific --help.
 2089:   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 2090:     test -d "$ac_dir" ||
 2091:       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
 2092:       continue
 2093:     ac_builddir=.
 2094: 
 2095: case "$ac_dir" in
 2096: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 2097: *)
 2098:   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 2099:   # A ".." for each directory in $ac_dir_suffix.
 2100:   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 2101:   case $ac_top_builddir_sub in
 2102:   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 2103:   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 2104:   esac ;;
 2105: esac
 2106: ac_abs_top_builddir=$ac_pwd
 2107: ac_abs_builddir=$ac_pwd$ac_dir_suffix
 2108: # for backward compatibility:
 2109: ac_top_builddir=$ac_top_build_prefix
 2110: 
 2111: case $srcdir in
 2112:   .)  # We are building in place.
 2113:     ac_srcdir=.
 2114:     ac_top_srcdir=$ac_top_builddir_sub
 2115:     ac_abs_top_srcdir=$ac_pwd ;;
 2116:   [\\/]* | ?:[\\/]* )  # Absolute name.
 2117:     ac_srcdir=$srcdir$ac_dir_suffix;
 2118:     ac_top_srcdir=$srcdir
 2119:     ac_abs_top_srcdir=$srcdir ;;
 2120:   *) # Relative name.
 2121:     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 2122:     ac_top_srcdir=$ac_top_build_prefix$srcdir
 2123:     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 2124: esac
 2125: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 2126: 
 2127:     cd "$ac_dir" || { ac_status=$?; continue; }
 2128:     # Check for guested configure.
 2129:     if test -f "$ac_srcdir/configure.gnu"; then
 2130:       echo &&
 2131:       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 2132:     elif test -f "$ac_srcdir/configure"; then
 2133:       echo &&
 2134:       $SHELL "$ac_srcdir/configure" --help=recursive
 2135:     else
 2136:       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 2137:     fi || ac_status=$?
 2138:     cd "$ac_pwd" || { ac_status=$?; break; }
 2139:   done
 2140: fi
 2141: 
 2142: test -n "$ac_init_help" && exit $ac_status
 2143: if $ac_init_version; then
 2144:   cat <<\_ACEOF
 2145: configure
 2146: generated by GNU Autoconf 2.69
 2147: 
 2148: Copyright (C) 2012 Free Software Foundation, Inc.
 2149: This configure script is free software; the Free Software Foundation
 2150: gives unlimited permission to copy, distribute and modify it.
 2151: _ACEOF
 2152:   exit
 2153: fi
 2154: 
 2155: ## ------------------------ ##
 2156: ## Autoconf initialization. ##
 2157: ## ------------------------ ##
 2158: 
 2159: # ac_fn_c_try_compile LINENO
 2160: # --------------------------
 2161: # Try to compile conftest.$ac_ext, and return whether this succeeded.
 2162: ac_fn_c_try_compile ()
 2163: {
 2164:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 2165:   rm -f conftest.$ac_objext
 2166:   if { { ac_try="$ac_compile"
 2167: case "(($ac_try" in
 2168:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 2169:   *) ac_try_echo=$ac_try;;
 2170: esac
 2171: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 2172: $as_echo "$ac_try_echo"; } >&5
 2173:   (eval "$ac_compile") 2>conftest.err
 2174:   ac_status=$?
 2175:   if test -s conftest.err; then
 2176:     grep -v '^ *+' conftest.err >conftest.er1
 2177:     cat conftest.er1 >&5
 2178:     mv -f conftest.er1 conftest.err
 2179:   fi
 2180:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 2181:   test $ac_status = 0; } && {
 2182: 	 test -z "$ac_c_werror_flag" ||
 2183: 	 test ! -s conftest.err
 2184:        } && test -s conftest.$ac_objext; then :
 2185:   ac_retval=0
 2186: else
 2187:   $as_echo "$as_me: failed program was:" >&5
 2188: sed 's/^/| /' conftest.$ac_ext >&5
 2189: 
 2190: 	ac_retval=1
 2191: fi
 2192:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 2193:   as_fn_set_status $ac_retval
 2194: 
 2195: } # ac_fn_c_try_compile
 2196: 
 2197: # ac_fn_c_try_cpp LINENO
 2198: # ----------------------
 2199: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
 2200: ac_fn_c_try_cpp ()
 2201: {
 2202:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 2203:   if { { ac_try="$ac_cpp conftest.$ac_ext"
 2204: case "(($ac_try" in
 2205:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 2206:   *) ac_try_echo=$ac_try;;
 2207: esac
 2208: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 2209: $as_echo "$ac_try_echo"; } >&5
 2210:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
 2211:   ac_status=$?
 2212:   if test -s conftest.err; then
 2213:     grep -v '^ *+' conftest.err >conftest.er1
 2214:     cat conftest.er1 >&5
 2215:     mv -f conftest.er1 conftest.err
 2216:   fi
 2217:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 2218:   test $ac_status = 0; } > conftest.i && {
 2219: 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 2220: 	 test ! -s conftest.err
 2221:        }; then :
 2222:   ac_retval=0
 2223: else
 2224:   $as_echo "$as_me: failed program was:" >&5
 2225: sed 's/^/| /' conftest.$ac_ext >&5
 2226: 
 2227:     ac_retval=1
 2228: fi
 2229:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 2230:   as_fn_set_status $ac_retval
 2231: 
 2232: } # ac_fn_c_try_cpp
 2233: 
 2234: # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
 2235: # -------------------------------------------------------
 2236: # Tests whether HEADER exists, giving a warning if it cannot be compiled using
 2237: # the include files in INCLUDES and setting the cache variable VAR
 2238: # accordingly.
 2239: ac_fn_c_check_header_mongrel ()
 2240: {
 2241:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 2242:   if eval \${$3+:} false; then :
 2243:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 2244: $as_echo_n "checking for $2... " >&6; }
 2245: if eval \${$3+:} false; then :
 2246:   $as_echo_n "(cached) " >&6
 2247: fi
 2248: eval ac_res=\$$3
 2249: 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 2250: $as_echo "$ac_res" >&6; }
 2251: else
 2252:   # Is the header compilable?
 2253: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
 2254: $as_echo_n "checking $2 usability... " >&6; }
 2255: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 2256: /* end confdefs.h.  */
 2257: $4
 2258: #include <$2>
 2259: _ACEOF
 2260: if ac_fn_c_try_compile "$LINENO"; then :
 2261:   ac_header_compiler=yes
 2262: else
 2263:   ac_header_compiler=no
 2264: fi
 2265: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 2266: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
 2267: $as_echo "$ac_header_compiler" >&6; }
 2268: 
 2269: # Is the header present?
 2270: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
 2271: $as_echo_n "checking $2 presence... " >&6; }
 2272: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 2273: /* end confdefs.h.  */
 2274: #include <$2>
 2275: _ACEOF
 2276: if ac_fn_c_try_cpp "$LINENO"; then :
 2277:   ac_header_preproc=yes
 2278: else
 2279:   ac_header_preproc=no
 2280: fi
 2281: rm -f conftest.err conftest.i conftest.$ac_ext
 2282: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
 2283: $as_echo "$ac_header_preproc" >&6; }
 2284: 
 2285: # So?  What about this header?
 2286: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
 2287:   yes:no: )
 2288:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
 2289: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
 2290:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 2291: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 2292:     ;;
 2293:   no:yes:* )
 2294:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
 2295: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
 2296:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
 2297: $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
 2298:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
 2299: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
 2300:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
 2301: $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
 2302:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 2303: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 2304:     ;;
 2305: esac
 2306:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 2307: $as_echo_n "checking for $2... " >&6; }
 2308: if eval \${$3+:} false; then :
 2309:   $as_echo_n "(cached) " >&6
 2310: else
 2311:   eval "$3=\$ac_header_compiler"
 2312: fi
 2313: eval ac_res=\$$3
 2314: 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 2315: $as_echo "$ac_res" >&6; }
 2316: fi
 2317:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 2318: 
 2319: } # ac_fn_c_check_header_mongrel
 2320: 
 2321: # ac_fn_c_try_run LINENO
 2322: # ----------------------
 2323: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
 2324: # that executables *can* be run.
 2325: ac_fn_c_try_run ()
 2326: {
 2327:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 2328:   if { { ac_try="$ac_link"
 2329: case "(($ac_try" in
 2330:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 2331:   *) ac_try_echo=$ac_try;;
 2332: esac
 2333: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 2334: $as_echo "$ac_try_echo"; } >&5
 2335:   (eval "$ac_link") 2>&5
 2336:   ac_status=$?
 2337:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 2338:   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
 2339:   { { case "(($ac_try" in
 2340:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 2341:   *) ac_try_echo=$ac_try;;
 2342: esac
 2343: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 2344: $as_echo "$ac_try_echo"; } >&5
 2345:   (eval "$ac_try") 2>&5
 2346:   ac_status=$?
 2347:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 2348:   test $ac_status = 0; }; }; then :
 2349:   ac_retval=0
 2350: else
 2351:   $as_echo "$as_me: program exited with status $ac_status" >&5
 2352:        $as_echo "$as_me: failed program was:" >&5
 2353: sed 's/^/| /' conftest.$ac_ext >&5
 2354: 
 2355:        ac_retval=$ac_status
 2356: fi
 2357:   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 2358:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 2359:   as_fn_set_status $ac_retval
 2360: 
 2361: } # ac_fn_c_try_run
 2362: 
 2363: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
 2364: # -------------------------------------------------------
 2365: # Tests whether HEADER exists and can be compiled using the include files in
 2366: # INCLUDES, setting the cache variable VAR accordingly.
 2367: ac_fn_c_check_header_compile ()
 2368: {
 2369:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 2370:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 2371: $as_echo_n "checking for $2... " >&6; }
 2372: if eval \${$3+:} false; then :
 2373:   $as_echo_n "(cached) " >&6
 2374: else
 2375:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 2376: /* end confdefs.h.  */
 2377: $4
 2378: #include <$2>
 2379: _ACEOF
 2380: if ac_fn_c_try_compile "$LINENO"; then :
 2381:   eval "$3=yes"
 2382: else
 2383:   eval "$3=no"
 2384: fi
 2385: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 2386: fi
 2387: eval ac_res=\$$3
 2388: 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 2389: $as_echo "$ac_res" >&6; }
 2390:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 2391: 
 2392: } # ac_fn_c_check_header_compile
 2393: 
 2394: # ac_fn_c_try_link LINENO
 2395: # -----------------------
 2396: # Try to link conftest.$ac_ext, and return whether this succeeded.
 2397: ac_fn_c_try_link ()
 2398: {
 2399:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 2400:   rm -f conftest.$ac_objext conftest$ac_exeext
 2401:   if { { ac_try="$ac_link"
 2402: case "(($ac_try" in
 2403:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 2404:   *) ac_try_echo=$ac_try;;
 2405: esac
 2406: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 2407: $as_echo "$ac_try_echo"; } >&5
 2408:   (eval "$ac_link") 2>conftest.err
 2409:   ac_status=$?
 2410:   if test -s conftest.err; then
 2411:     grep -v '^ *+' conftest.err >conftest.er1
 2412:     cat conftest.er1 >&5
 2413:     mv -f conftest.er1 conftest.err
 2414:   fi
 2415:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 2416:   test $ac_status = 0; } && {
 2417: 	 test -z "$ac_c_werror_flag" ||
 2418: 	 test ! -s conftest.err
 2419:        } && test -s conftest$ac_exeext && {
 2420: 	 test "$cross_compiling" = yes ||
 2421: 	 test -x conftest$ac_exeext
 2422:        }; then :
 2423:   ac_retval=0
 2424: else
 2425:   $as_echo "$as_me: failed program was:" >&5
 2426: sed 's/^/| /' conftest.$ac_ext >&5
 2427: 
 2428: 	ac_retval=1
 2429: fi
 2430:   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
 2431:   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
 2432:   # interfere with the next link command; also delete a directory that is
 2433:   # left behind by Apple's compiler.  We do this before executing the actions.
 2434:   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 2435:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 2436:   as_fn_set_status $ac_retval
 2437: 
 2438: } # ac_fn_c_try_link
 2439: 
 2440: # ac_fn_c_check_func LINENO FUNC VAR
 2441: # ----------------------------------
 2442: # Tests whether FUNC exists, setting the cache variable VAR accordingly
 2443: ac_fn_c_check_func ()
 2444: {
 2445:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 2446:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 2447: $as_echo_n "checking for $2... " >&6; }
 2448: if eval \${$3+:} false; then :
 2449:   $as_echo_n "(cached) " >&6
 2450: else
 2451:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 2452: /* end confdefs.h.  */
 2453: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
 2454:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 2455: #define $2 innocuous_$2
 2456: 
 2457: /* System header to define __stub macros and hopefully few prototypes,
 2458:     which can conflict with char $2 (); below.
 2459:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 2460:     <limits.h> exists even on freestanding compilers.  */
 2461: 
 2462: #ifdef __STDC__
 2463: # include <limits.h>
 2464: #else
 2465: # include <assert.h>
 2466: #endif
 2467: 
 2468: #undef $2
 2469: 
 2470: /* Override any GCC internal prototype to avoid an error.
 2471:    Use char because int might match the return type of a GCC
 2472:    builtin and then its argument prototype would still apply.  */
 2473: #ifdef __cplusplus
 2474: extern "C"
 2475: #endif
 2476: char $2 ();
 2477: /* The GNU C library defines this for functions which it implements
 2478:     to always fail with ENOSYS.  Some functions are actually named
 2479:     something starting with __ and the normal name is an alias.  */
 2480: #if defined __stub_$2 || defined __stub___$2
 2481: choke me
 2482: #endif
 2483: 
 2484: int
 2485: main ()
 2486: {
 2487: return $2 ();
 2488:   ;
 2489:   return 0;
 2490: }
 2491: _ACEOF
 2492: if ac_fn_c_try_link "$LINENO"; then :
 2493:   eval "$3=yes"
 2494: else
 2495:   eval "$3=no"
 2496: fi
 2497: rm -f core conftest.err conftest.$ac_objext \
 2498:     conftest$ac_exeext conftest.$ac_ext
 2499: fi
 2500: eval ac_res=\$$3
 2501: 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 2502: $as_echo "$ac_res" >&6; }
 2503:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 2504: 
 2505: } # ac_fn_c_check_func
 2506: 
 2507: # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
 2508: # ----------------------------------------------------
 2509: # Tries to find if the field MEMBER exists in type AGGR, after including
 2510: # INCLUDES, setting cache variable VAR accordingly.
 2511: ac_fn_c_check_member ()
 2512: {
 2513:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 2514:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
 2515: $as_echo_n "checking for $2.$3... " >&6; }
 2516: if eval \${$4+:} false; then :
 2517:   $as_echo_n "(cached) " >&6
 2518: else
 2519:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 2520: /* end confdefs.h.  */
 2521: $5
 2522: int
 2523: main ()
 2524: {
 2525: static $2 ac_aggr;
 2526: if (ac_aggr.$3)
 2527: return 0;
 2528:   ;
 2529:   return 0;
 2530: }
 2531: _ACEOF
 2532: if ac_fn_c_try_compile "$LINENO"; then :
 2533:   eval "$4=yes"
 2534: else
 2535:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 2536: /* end confdefs.h.  */
 2537: $5
 2538: int
 2539: main ()
 2540: {
 2541: static $2 ac_aggr;
 2542: if (sizeof ac_aggr.$3)
 2543: return 0;
 2544:   ;
 2545:   return 0;
 2546: }
 2547: _ACEOF
 2548: if ac_fn_c_try_compile "$LINENO"; then :
 2549:   eval "$4=yes"
 2550: else
 2551:   eval "$4=no"
 2552: fi
 2553: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 2554: fi
 2555: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 2556: fi
 2557: eval ac_res=\$$4
 2558: 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 2559: $as_echo "$ac_res" >&6; }
 2560:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 2561: 
 2562: } # ac_fn_c_check_member
 2563: 
 2564: # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
 2565: # ---------------------------------------------
 2566: # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
 2567: # accordingly.
 2568: ac_fn_c_check_decl ()
 2569: {
 2570:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 2571:   as_decl_name=`echo $2|sed 's/ *(.*//'`
 2572:   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
 2573:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
 2574: $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
 2575: if eval \${$3+:} false; then :
 2576:   $as_echo_n "(cached) " >&6
 2577: else
 2578:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 2579: /* end confdefs.h.  */
 2580: $4
 2581: int
 2582: main ()
 2583: {
 2584: #ifndef $as_decl_name
 2585: #ifdef __cplusplus
 2586:   (void) $as_decl_use;
 2587: #else
 2588:   (void) $as_decl_name;
 2589: #endif
 2590: #endif
 2591: 
 2592:   ;
 2593:   return 0;
 2594: }
 2595: _ACEOF
 2596: if ac_fn_c_try_compile "$LINENO"; then :
 2597:   eval "$3=yes"
 2598: else
 2599:   eval "$3=no"
 2600: fi
 2601: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 2602: fi
 2603: eval ac_res=\$$3
 2604: 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 2605: $as_echo "$ac_res" >&6; }
 2606:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 2607: 
 2608: } # ac_fn_c_check_decl
 2609: 
 2610: # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
 2611: # --------------------------------------------
 2612: # Tries to find the compile-time value of EXPR in a program that includes
 2613: # INCLUDES, setting VAR accordingly. Returns whether the value could be
 2614: # computed
 2615: ac_fn_c_compute_int ()
 2616: {
 2617:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 2618:   if test "$cross_compiling" = yes; then
 2619:     # Depending upon the size, compute the lo and hi bounds.
 2620: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 2621: /* end confdefs.h.  */
 2622: $4
 2623: int
 2624: main ()
 2625: {
 2626: static int test_array [1 - 2 * !(($2) >= 0)];
 2627: test_array [0] = 0;
 2628: return test_array [0];
 2629: 
 2630:   ;
 2631:   return 0;
 2632: }
 2633: _ACEOF
 2634: if ac_fn_c_try_compile "$LINENO"; then :
 2635:   ac_lo=0 ac_mid=0
 2636:   while :; do
 2637:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 2638: /* end confdefs.h.  */
 2639: $4
 2640: int
 2641: main ()
 2642: {
 2643: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
 2644: test_array [0] = 0;
 2645: return test_array [0];
 2646: 
 2647:   ;
 2648:   return 0;
 2649: }
 2650: _ACEOF
 2651: if ac_fn_c_try_compile "$LINENO"; then :
 2652:   ac_hi=$ac_mid; break
 2653: else
 2654:   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
 2655: 			if test $ac_lo -le $ac_mid; then
 2656: 			  ac_lo= ac_hi=
 2657: 			  break
 2658: 			fi
 2659: 			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
 2660: fi
 2661: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 2662:   done
 2663: else
 2664:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 2665: /* end confdefs.h.  */
 2666: $4
 2667: int
 2668: main ()
 2669: {
 2670: static int test_array [1 - 2 * !(($2) < 0)];
 2671: test_array [0] = 0;
 2672: return test_array [0];
 2673: 
 2674:   ;
 2675:   return 0;
 2676: }
 2677: _ACEOF
 2678: if ac_fn_c_try_compile "$LINENO"; then :
 2679:   ac_hi=-1 ac_mid=-1
 2680:   while :; do
 2681:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 2682: /* end confdefs.h.  */
 2683: $4
 2684: int
 2685: main ()
 2686: {
 2687: static int test_array [1 - 2 * !(($2) >= $ac_mid)];
 2688: test_array [0] = 0;
 2689: return test_array [0];
 2690: 
 2691:   ;
 2692:   return 0;
 2693: }
 2694: _ACEOF
 2695: if ac_fn_c_try_compile "$LINENO"; then :
 2696:   ac_lo=$ac_mid; break
 2697: else
 2698:   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
 2699: 			if test $ac_mid -le $ac_hi; then
 2700: 			  ac_lo= ac_hi=
 2701: 			  break
 2702: 			fi
 2703: 			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
 2704: fi
 2705: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 2706:   done
 2707: else
 2708:   ac_lo= ac_hi=
 2709: fi
 2710: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 2711: fi
 2712: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 2713: # Binary search between lo and hi bounds.
 2714: while test "x$ac_lo" != "x$ac_hi"; do
 2715:   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
 2716:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 2717: /* end confdefs.h.  */
 2718: $4
 2719: int
 2720: main ()
 2721: {
 2722: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
 2723: test_array [0] = 0;
 2724: return test_array [0];
 2725: 
 2726:   ;
 2727:   return 0;
 2728: }
 2729: _ACEOF
 2730: if ac_fn_c_try_compile "$LINENO"; then :
 2731:   ac_hi=$ac_mid
 2732: else
 2733:   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
 2734: fi
 2735: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 2736: done
 2737: case $ac_lo in #((
 2738: ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
 2739: '') ac_retval=1 ;;
 2740: esac
 2741:   else
 2742:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 2743: /* end confdefs.h.  */
 2744: $4
 2745: static long int longval () { return $2; }
 2746: static unsigned long int ulongval () { return $2; }
 2747: #include <stdio.h>
 2748: #include <stdlib.h>
 2749: int
 2750: main ()
 2751: {
 2752: 
 2753:   FILE *f = fopen ("conftest.val", "w");
 2754:   if (! f)
 2755:     return 1;
 2756:   if (($2) < 0)
 2757:     {
 2758:       long int i = longval ();
 2759:       if (i != ($2))
 2760: 	return 1;
 2761:       fprintf (f, "%ld", i);
 2762:     }
 2763:   else
 2764:     {
 2765:       unsigned long int i = ulongval ();
 2766:       if (i != ($2))
 2767: 	return 1;
 2768:       fprintf (f, "%lu", i);
 2769:     }
 2770:   /* Do not output a trailing newline, as this causes \r\n confusion
 2771:      on some platforms.  */
 2772:   return ferror (f) || fclose (f) != 0;
 2773: 
 2774:   ;
 2775:   return 0;
 2776: }
 2777: _ACEOF
 2778: if ac_fn_c_try_run "$LINENO"; then :
 2779:   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
 2780: else
 2781:   ac_retval=1
 2782: fi
 2783: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 2784:   conftest.$ac_objext conftest.beam conftest.$ac_ext
 2785: rm -f conftest.val
 2786: 
 2787:   fi
 2788:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 2789:   as_fn_set_status $ac_retval
 2790: 
 2791: } # ac_fn_c_compute_int
 2792: 
 2793: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
 2794: # -------------------------------------------
 2795: # Tests whether TYPE exists after having included INCLUDES, setting cache
 2796: # variable VAR accordingly.
 2797: ac_fn_c_check_type ()
 2798: {
 2799:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 2800:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 2801: $as_echo_n "checking for $2... " >&6; }
 2802: if eval \${$3+:} false; then :
 2803:   $as_echo_n "(cached) " >&6
 2804: else
 2805:   eval "$3=no"
 2806:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 2807: /* end confdefs.h.  */
 2808: $4
 2809: int
 2810: main ()
 2811: {
 2812: if (sizeof ($2))
 2813: 	 return 0;
 2814:   ;
 2815:   return 0;
 2816: }
 2817: _ACEOF
 2818: if ac_fn_c_try_compile "$LINENO"; then :
 2819:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 2820: /* end confdefs.h.  */
 2821: $4
 2822: int
 2823: main ()
 2824: {
 2825: if (sizeof (($2)))
 2826: 	    return 0;
 2827:   ;
 2828:   return 0;
 2829: }
 2830: _ACEOF
 2831: if ac_fn_c_try_compile "$LINENO"; then :
 2832: 
 2833: else
 2834:   eval "$3=yes"
 2835: fi
 2836: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 2837: fi
 2838: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 2839: fi
 2840: eval ac_res=\$$3
 2841: 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 2842: $as_echo "$ac_res" >&6; }
 2843:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 2844: 
 2845: } # ac_fn_c_check_type
 2846: 
 2847: # ac_fn_cxx_try_compile LINENO
 2848: # ----------------------------
 2849: # Try to compile conftest.$ac_ext, and return whether this succeeded.
 2850: ac_fn_cxx_try_compile ()
 2851: {
 2852:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 2853:   rm -f conftest.$ac_objext
 2854:   if { { ac_try="$ac_compile"
 2855: case "(($ac_try" in
 2856:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 2857:   *) ac_try_echo=$ac_try;;
 2858: esac
 2859: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 2860: $as_echo "$ac_try_echo"; } >&5
 2861:   (eval "$ac_compile") 2>conftest.err
 2862:   ac_status=$?
 2863:   if test -s conftest.err; then
 2864:     grep -v '^ *+' conftest.err >conftest.er1
 2865:     cat conftest.er1 >&5
 2866:     mv -f conftest.er1 conftest.err
 2867:   fi
 2868:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 2869:   test $ac_status = 0; } && {
 2870: 	 test -z "$ac_cxx_werror_flag" ||
 2871: 	 test ! -s conftest.err
 2872:        } && test -s conftest.$ac_objext; then :
 2873:   ac_retval=0
 2874: else
 2875:   $as_echo "$as_me: failed program was:" >&5
 2876: sed 's/^/| /' conftest.$ac_ext >&5
 2877: 
 2878: 	ac_retval=1
 2879: fi
 2880:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 2881:   as_fn_set_status $ac_retval
 2882: 
 2883: } # ac_fn_cxx_try_compile
 2884: 
 2885: # ac_fn_cxx_try_cpp LINENO
 2886: # ------------------------
 2887: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
 2888: ac_fn_cxx_try_cpp ()
 2889: {
 2890:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 2891:   if { { ac_try="$ac_cpp conftest.$ac_ext"
 2892: case "(($ac_try" in
 2893:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 2894:   *) ac_try_echo=$ac_try;;
 2895: esac
 2896: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 2897: $as_echo "$ac_try_echo"; } >&5
 2898:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
 2899:   ac_status=$?
 2900:   if test -s conftest.err; then
 2901:     grep -v '^ *+' conftest.err >conftest.er1
 2902:     cat conftest.er1 >&5
 2903:     mv -f conftest.er1 conftest.err
 2904:   fi
 2905:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 2906:   test $ac_status = 0; } > conftest.i && {
 2907: 	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 2908: 	 test ! -s conftest.err
 2909:        }; then :
 2910:   ac_retval=0
 2911: else
 2912:   $as_echo "$as_me: failed program was:" >&5
 2913: sed 's/^/| /' conftest.$ac_ext >&5
 2914: 
 2915:     ac_retval=1
 2916: fi
 2917:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 2918:   as_fn_set_status $ac_retval
 2919: 
 2920: } # ac_fn_cxx_try_cpp
 2921: cat >config.log <<_ACEOF
 2922: This file contains any messages produced by compilers while
 2923: running configure, to aid debugging if configure makes a mistake.
 2924: 
 2925: It was created by $as_me, which was
 2926: generated by GNU Autoconf 2.69.  Invocation command line was
 2927: 
 2928:   $ $0 $@
 2929: 
 2930: _ACEOF
 2931: exec 5>>config.log
 2932: {
 2933: cat <<_ASUNAME
 2934: ## --------- ##
 2935: ## Platform. ##
 2936: ## --------- ##
 2937: 
 2938: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 2939: uname -m = `(uname -m) 2>/dev/null || echo unknown`
 2940: uname -r = `(uname -r) 2>/dev/null || echo unknown`
 2941: uname -s = `(uname -s) 2>/dev/null || echo unknown`
 2942: uname -v = `(uname -v) 2>/dev/null || echo unknown`
 2943: 
 2944: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 2945: /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 2946: 
 2947: /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 2948: /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 2949: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 2950: /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 2951: /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 2952: /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 2953: /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 2954: 
 2955: _ASUNAME
 2956: 
 2957: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 2958: for as_dir in $PATH
 2959: do
 2960:   IFS=$as_save_IFS
 2961:   test -z "$as_dir" && as_dir=.
 2962:     $as_echo "PATH: $as_dir"
 2963:   done
 2964: IFS=$as_save_IFS
 2965: 
 2966: } >&5
 2967: 
 2968: cat >&5 <<_ACEOF
 2969: 
 2970: 
 2971: ## ----------- ##
 2972: ## Core tests. ##
 2973: ## ----------- ##
 2974: 
 2975: _ACEOF
 2976: 
 2977: 
 2978: # Keep a trace of the command line.
 2979: # Strip out --no-create and --no-recursion so they do not pile up.
 2980: # Strip out --silent because we don't want to record it for future runs.
 2981: # Also quote any args containing shell meta-characters.
 2982: # Make two passes to allow for proper duplicate-argument suppression.
 2983: ac_configure_args=
 2984: ac_configure_args0=
 2985: ac_configure_args1=
 2986: ac_must_keep_next=false
 2987: for ac_pass in 1 2
 2988: do
 2989:   for ac_arg
 2990:   do
 2991:     case $ac_arg in
 2992:     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 2993:     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 2994:     | -silent | --silent | --silen | --sile | --sil)
 2995:       continue ;;
 2996:     *\'*)
 2997:       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 2998:     esac
 2999:     case $ac_pass in
 3000:     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
 3001:     2)
 3002:       as_fn_append ac_configure_args1 " '$ac_arg'"
 3003:       if test $ac_must_keep_next = true; then
 3004: 	ac_must_keep_next=false # Got value, back to normal.
 3005:       else
 3006: 	case $ac_arg in
 3007: 	  *=* | --config-cache | -C | -disable-* | --disable-* \
 3008: 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 3009: 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 3010: 	  | -with-* | --with-* | -without-* | --without-* | --x)
 3011: 	    case "$ac_configure_args0 " in
 3012: 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 3013: 	    esac
 3014: 	    ;;
 3015: 	  -* ) ac_must_keep_next=true ;;
 3016: 	esac
 3017:       fi
 3018:       as_fn_append ac_configure_args " '$ac_arg'"
 3019:       ;;
 3020:     esac
 3021:   done
 3022: done
 3023: { ac_configure_args0=; unset ac_configure_args0;}
 3024: { ac_configure_args1=; unset ac_configure_args1;}
 3025: 
 3026: # When interrupted or exit'd, cleanup temporary files, and complete
 3027: # config.log.  We remove comments because anyway the quotes in there
 3028: # would cause problems or look ugly.
 3029: # WARNING: Use '\'' to represent an apostrophe within the trap.
 3030: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 3031: trap 'exit_status=$?
 3032:   # Save into config.log some information that might help in debugging.
 3033:   {
 3034:     echo
 3035: 
 3036:     $as_echo "## ---------------- ##
 3037: ## Cache variables. ##
 3038: ## ---------------- ##"
 3039:     echo
 3040:     # The following way of writing the cache mishandles newlines in values,
 3041: (
 3042:   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 3043:     eval ac_val=\$$ac_var
 3044:     case $ac_val in #(
 3045:     *${as_nl}*)
 3046:       case $ac_var in #(
 3047:       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 3048: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 3049:       esac
 3050:       case $ac_var in #(
 3051:       _ | IFS | as_nl) ;; #(
 3052:       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 3053:       *) { eval $ac_var=; unset $ac_var;} ;;
 3054:       esac ;;
 3055:     esac
 3056:   done
 3057:   (set) 2>&1 |
 3058:     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 3059:     *${as_nl}ac_space=\ *)
 3060:       sed -n \
 3061: 	"s/'\''/'\''\\\\'\'''\''/g;
 3062: 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 3063:       ;; #(
 3064:     *)
 3065:       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 3066:       ;;
 3067:     esac |
 3068:     sort
 3069: )
 3070:     echo
 3071: 
 3072:     $as_echo "## ----------------- ##
 3073: ## Output variables. ##
 3074: ## ----------------- ##"
 3075:     echo
 3076:     for ac_var in $ac_subst_vars
 3077:     do
 3078:       eval ac_val=\$$ac_var
 3079:       case $ac_val in
 3080:       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 3081:       esac
 3082:       $as_echo "$ac_var='\''$ac_val'\''"
 3083:     done | sort
 3084:     echo
 3085: 
 3086:     if test -n "$ac_subst_files"; then
 3087:       $as_echo "## ------------------- ##
 3088: ## File substitutions. ##
 3089: ## ------------------- ##"
 3090:       echo
 3091:       for ac_var in $ac_subst_files
 3092:       do
 3093: 	eval ac_val=\$$ac_var
 3094: 	case $ac_val in
 3095: 	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 3096: 	esac
 3097: 	$as_echo "$ac_var='\''$ac_val'\''"
 3098:       done | sort
 3099:       echo
 3100:     fi
 3101: 
 3102:     if test -s confdefs.h; then
 3103:       $as_echo "## ----------- ##
 3104: ## confdefs.h. ##
 3105: ## ----------- ##"
 3106:       echo
 3107:       cat confdefs.h
 3108:       echo
 3109:     fi
 3110:     test "$ac_signal" != 0 &&
 3111:       $as_echo "$as_me: caught signal $ac_signal"
 3112:     $as_echo "$as_me: exit $exit_status"
 3113:   } >&5
 3114:   rm -f core *.core core.conftest.* &&
 3115:     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 3116:     exit $exit_status
 3117: ' 0
 3118: for ac_signal in 1 2 13 15; do
 3119:   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
 3120: done
 3121: ac_signal=0
 3122: 
 3123: # confdefs.h avoids OS command line length limits that DEFS can exceed.
 3124: rm -f -r conftest* confdefs.h
 3125: 
 3126: $as_echo "/* confdefs.h */" > confdefs.h
 3127: 
 3128: # Predefined preprocessor variables.
 3129: 
 3130: cat >>confdefs.h <<_ACEOF
 3131: #define PACKAGE_NAME "$PACKAGE_NAME"
 3132: _ACEOF
 3133: 
 3134: cat >>confdefs.h <<_ACEOF
 3135: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 3136: _ACEOF
 3137: 
 3138: cat >>confdefs.h <<_ACEOF
 3139: #define PACKAGE_VERSION "$PACKAGE_VERSION"
 3140: _ACEOF
 3141: 
 3142: cat >>confdefs.h <<_ACEOF
 3143: #define PACKAGE_STRING "$PACKAGE_STRING"
 3144: _ACEOF
 3145: 
 3146: cat >>confdefs.h <<_ACEOF
 3147: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 3148: _ACEOF
 3149: 
 3150: cat >>confdefs.h <<_ACEOF
 3151: #define PACKAGE_URL "$PACKAGE_URL"
 3152: _ACEOF
 3153: 
 3154: 
 3155: # Let the site file select an alternate cache file if it wants to.
 3156: # Prefer an explicitly selected file to automatically selected ones.
 3157: ac_site_file1=NONE
 3158: ac_site_file2=NONE
 3159: if test -n "$CONFIG_SITE"; then
 3160:   # We do not want a PATH search for config.site.
 3161:   case $CONFIG_SITE in #((
 3162:     -*)  ac_site_file1=./$CONFIG_SITE;;
 3163:     */*) ac_site_file1=$CONFIG_SITE;;
 3164:     *)   ac_site_file1=./$CONFIG_SITE;;
 3165:   esac
 3166: elif test "x$prefix" != xNONE; then
 3167:   ac_site_file1=$prefix/share/config.site
 3168:   ac_site_file2=$prefix/etc/config.site
 3169: else
 3170:   ac_site_file1=$ac_default_prefix/share/config.site
 3171:   ac_site_file2=$ac_default_prefix/etc/config.site
 3172: fi
 3173: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
 3174: do
 3175:   test "x$ac_site_file" = xNONE && continue
 3176:   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
 3177:     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
 3178: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
 3179:     sed 's/^/| /' "$ac_site_file" >&5
 3180:     . "$ac_site_file" \
 3181:       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 3182: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 3183: as_fn_error $? "failed to load site script $ac_site_file
 3184: See \`config.log' for more details" "$LINENO" 5; }
 3185:   fi
 3186: done
 3187: 
 3188: if test -r "$cache_file"; then
 3189:   # Some versions of bash will fail to source /dev/null (special files
 3190:   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
 3191:   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
 3192:     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
 3193: $as_echo "$as_me: loading cache $cache_file" >&6;}
 3194:     case $cache_file in
 3195:       [\\/]* | ?:[\\/]* ) . "$cache_file";;
 3196:       *)                      . "./$cache_file";;
 3197:     esac
 3198:   fi
 3199: else
 3200:   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
 3201: $as_echo "$as_me: creating cache $cache_file" >&6;}
 3202:   >$cache_file
 3203: fi
 3204: 
 3205: as_fn_append ac_header_list " utime.h"
 3206: # Check that the precious variables saved in the cache have kept the same
 3207: # value.
 3208: ac_cache_corrupted=false
 3209: for ac_var in $ac_precious_vars; do
 3210:   eval ac_old_set=\$ac_cv_env_${ac_var}_set
 3211:   eval ac_new_set=\$ac_env_${ac_var}_set
 3212:   eval ac_old_val=\$ac_cv_env_${ac_var}_value
 3213:   eval ac_new_val=\$ac_env_${ac_var}_value
 3214:   case $ac_old_set,$ac_new_set in
 3215:     set,)
 3216:       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 3217: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 3218:       ac_cache_corrupted=: ;;
 3219:     ,set)
 3220:       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
 3221: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 3222:       ac_cache_corrupted=: ;;
 3223:     ,);;
 3224:     *)
 3225:       if test "x$ac_old_val" != "x$ac_new_val"; then
 3226: 	# differences in whitespace do not lead to failure.
 3227: 	ac_old_val_w=`echo x $ac_old_val`
 3228: 	ac_new_val_w=`echo x $ac_new_val`
 3229: 	if test "$ac_old_val_w" != "$ac_new_val_w"; then
 3230: 	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
 3231: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 3232: 	  ac_cache_corrupted=:
 3233: 	else
 3234: 	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
 3235: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
 3236: 	  eval $ac_var=\$ac_old_val
 3237: 	fi
 3238: 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
 3239: $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
 3240: 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
 3241: $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
 3242:       fi;;
 3243:   esac
 3244:   # Pass precious variables to config.status.
 3245:   if test "$ac_new_set" = set; then
 3246:     case $ac_new_val in
 3247:     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 3248:     *) ac_arg=$ac_var=$ac_new_val ;;
 3249:     esac
 3250:     case " $ac_configure_args " in
 3251:       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 3252:       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
 3253:     esac
 3254:   fi
 3255: done
 3256: if $ac_cache_corrupted; then
 3257:   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 3258: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 3259:   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
 3260: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 3261:   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
 3262: fi
 3263: ## -------------------- ##
 3264: ## Main body of script. ##
 3265: ## -------------------- ##
 3266: 
 3267: ac_ext=c
 3268: ac_cpp='$CPP $CPPFLAGS'
 3269: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 3270: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 3271: ac_compiler_gnu=$ac_cv_c_compiler_gnu
 3272: 
 3273: 
 3274: 
 3275: 
 3276: 
 3277: 
 3278: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
 3279: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
 3280: if ${ac_cv_path_GREP+:} false; then :
 3281:   $as_echo_n "(cached) " >&6
 3282: else
 3283:   if test -z "$GREP"; then
 3284:   ac_path_GREP_found=false
 3285:   # Loop through the user's path and test for each of PROGNAME-LIST
 3286:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 3287: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 3288: do
 3289:   IFS=$as_save_IFS
 3290:   test -z "$as_dir" && as_dir=.
 3291:     for ac_prog in grep ggrep; do
 3292:     for ac_exec_ext in '' $ac_executable_extensions; do
 3293:       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 3294:       as_fn_executable_p "$ac_path_GREP" || continue
 3295: # Check for GNU ac_path_GREP and select it if it is found.
 3296:   # Check for GNU $ac_path_GREP
 3297: case `"$ac_path_GREP" --version 2>&1` in
 3298: *GNU*)
 3299:   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 3300: *)
 3301:   ac_count=0
 3302:   $as_echo_n 0123456789 >"conftest.in"
 3303:   while :
 3304:   do
 3305:     cat "conftest.in" "conftest.in" >"conftest.tmp"
 3306:     mv "conftest.tmp" "conftest.in"
 3307:     cp "conftest.in" "conftest.nl"
 3308:     $as_echo 'GREP' >> "conftest.nl"
 3309:     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 3310:     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 3311:     as_fn_arith $ac_count + 1 && ac_count=$as_val
 3312:     if test $ac_count -gt ${ac_path_GREP_max-0}; then
 3313:       # Best one so far, save it but keep looking for a better one
 3314:       ac_cv_path_GREP="$ac_path_GREP"
 3315:       ac_path_GREP_max=$ac_count
 3316:     fi
 3317:     # 10*(2^10) chars as input seems more than enough
 3318:     test $ac_count -gt 10 && break
 3319:   done
 3320:   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 3321: esac
 3322: 
 3323:       $ac_path_GREP_found && break 3
 3324:     done
 3325:   done
 3326:   done
 3327: IFS=$as_save_IFS
 3328:   if test -z "$ac_cv_path_GREP"; then
 3329:     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 3330:   fi
 3331: else
 3332:   ac_cv_path_GREP=$GREP
 3333: fi
 3334: 
 3335: fi
 3336: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
 3337: $as_echo "$ac_cv_path_GREP" >&6; }
 3338:  GREP="$ac_cv_path_GREP"
 3339: 
 3340: 
 3341: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
 3342: $as_echo_n "checking for egrep... " >&6; }
 3343: if ${ac_cv_path_EGREP+:} false; then :
 3344:   $as_echo_n "(cached) " >&6
 3345: else
 3346:   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 3347:    then ac_cv_path_EGREP="$GREP -E"
 3348:    else
 3349:      if test -z "$EGREP"; then
 3350:   ac_path_EGREP_found=false
 3351:   # Loop through the user's path and test for each of PROGNAME-LIST
 3352:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 3353: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 3354: do
 3355:   IFS=$as_save_IFS
 3356:   test -z "$as_dir" && as_dir=.
 3357:     for ac_prog in egrep; do
 3358:     for ac_exec_ext in '' $ac_executable_extensions; do
 3359:       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 3360:       as_fn_executable_p "$ac_path_EGREP" || continue
 3361: # Check for GNU ac_path_EGREP and select it if it is found.
 3362:   # Check for GNU $ac_path_EGREP
 3363: case `"$ac_path_EGREP" --version 2>&1` in
 3364: *GNU*)
 3365:   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 3366: *)
 3367:   ac_count=0
 3368:   $as_echo_n 0123456789 >"conftest.in"
 3369:   while :
 3370:   do
 3371:     cat "conftest.in" "conftest.in" >"conftest.tmp"
 3372:     mv "conftest.tmp" "conftest.in"
 3373:     cp "conftest.in" "conftest.nl"
 3374:     $as_echo 'EGREP' >> "conftest.nl"
 3375:     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 3376:     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 3377:     as_fn_arith $ac_count + 1 && ac_count=$as_val
 3378:     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 3379:       # Best one so far, save it but keep looking for a better one
 3380:       ac_cv_path_EGREP="$ac_path_EGREP"
 3381:       ac_path_EGREP_max=$ac_count
 3382:     fi
 3383:     # 10*(2^10) chars as input seems more than enough
 3384:     test $ac_count -gt 10 && break
 3385:   done
 3386:   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 3387: esac
 3388: 
 3389:       $ac_path_EGREP_found && break 3
 3390:     done
 3391:   done
 3392:   done
 3393: IFS=$as_save_IFS
 3394:   if test -z "$ac_cv_path_EGREP"; then
 3395:     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 3396:   fi
 3397: else
 3398:   ac_cv_path_EGREP=$EGREP
 3399: fi
 3400: 
 3401:    fi
 3402: fi
 3403: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
 3404: $as_echo "$ac_cv_path_EGREP" >&6; }
 3405:  EGREP="$ac_cv_path_EGREP"
 3406: 
 3407: 
 3408: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
 3409: $as_echo_n "checking for a sed that does not truncate output... " >&6; }
 3410: if ${lt_cv_path_SED+:} false; then :
 3411:   $as_echo_n "(cached) " >&6
 3412: else
 3413:   # Loop through the user's path and test for sed and gsed.
 3414: # Then use that list of sed's as ones to test for truncation.
 3415: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 3416: for as_dir in $PATH
 3417: do
 3418:   IFS=$as_save_IFS
 3419:   test -z "$as_dir" && as_dir=.
 3420:   for lt_ac_prog in sed gsed; do
 3421:     for ac_exec_ext in '' $ac_executable_extensions; do
 3422:       if test -f "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 3423:         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
 3424:       fi
 3425:     done
 3426:   done
 3427: done
 3428: lt_ac_max=0
 3429: lt_ac_count=0
 3430: # Add /usr/xpg4/bin/sed as it is typically found on Solaris
 3431: # along with /bin/sed that truncates output.
 3432: for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
 3433:   test ! -f $lt_ac_sed && continue
 3434:   cat /dev/null > conftest.in
 3435:   lt_ac_count=0
 3436:   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
 3437:   # Check for GNU sed and select it if it is found.
 3438:   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
 3439:     lt_cv_path_SED=$lt_ac_sed
 3440:     break
 3441:   fi
 3442:   while true; do
 3443:     cat conftest.in conftest.in >conftest.tmp
 3444:     mv conftest.tmp conftest.in
 3445:     cp conftest.in conftest.nl
 3446:     echo >>conftest.nl
 3447:     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
 3448:     cmp -s conftest.out conftest.nl || break
 3449:     # 10000 chars as input seems more than enough
 3450:     test $lt_ac_count -gt 10 && break
 3451:     lt_ac_count=`expr $lt_ac_count + 1`
 3452:     if test $lt_ac_count -gt $lt_ac_max; then
 3453:       lt_ac_max=$lt_ac_count
 3454:       lt_cv_path_SED=$lt_ac_sed
 3455:     fi
 3456:   done
 3457: done
 3458: 
 3459: fi
 3460: 
 3461: SED=$lt_cv_path_SED
 3462: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
 3463: $as_echo "$SED" >&6; }
 3464: 
 3465: 
 3466: 
 3467: 
 3468: 
 3469: 
 3470:   PHP_VAR_SUBST="$PHP_VAR_SUBST EGREP"
 3471: 
 3472: 
 3473: 
 3474: 
 3475: 
 3476:   PHP_VAR_SUBST="$PHP_VAR_SUBST SED"
 3477: 
 3478: 
 3479: 
 3480:   test -f config.nice && mv config.nice config.nice.old
 3481:   rm -f config.nice.old
 3482:   cat >config.nice<<EOF
 3483: #! /bin/sh
 3484: #
 3485: # Created by configure
 3486: 
 3487: EOF
 3488: 
 3489:   for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS EXTRA_LDFLAGS_PROGRAM LIBS CC CXX; do
 3490:     eval val=\$$var
 3491:     if test -n "$val"; then
 3492:       echo "$var='$val' \\" >> config.nice
 3493:     fi
 3494:   done
 3495: 
 3496:   echo "'$0' \\" >> config.nice
 3497:   if test `expr -- $0 : "'.*"` = 0; then
 3498:     CONFIGURE_COMMAND="$CONFIGURE_COMMAND '$0'"
 3499:   else
 3500:     CONFIGURE_COMMAND="$CONFIGURE_COMMAND $0"
 3501:   fi
 3502:   for arg in $ac_configure_args; do
 3503:     if test `expr -- $arg : "'.*"` = 0; then
 3504:       if test `expr -- $arg : "--.*"` = 0; then
 3505:         break;
 3506:       fi
 3507:       echo "'$arg' \\" >> config.nice
 3508:       CONFIGURE_OPTIONS="$CONFIGURE_OPTIONS '$arg'"
 3509:     else
 3510:       if test `expr -- $arg : "'--.*"` = 0; then
 3511:         break;
 3512:       fi
 3513:       echo "$arg \\" >> config.nice
 3514:       CONFIGURE_OPTIONS="$CONFIGURE_OPTIONS $arg"
 3515:     fi
 3516:   done
 3517:   echo '"$@"' >> config.nice
 3518:   chmod +x config.nice
 3519:   CONFIGURE_COMMAND="$CONFIGURE_COMMAND $CONFIGURE_OPTIONS"
 3520: 
 3521: 
 3522:   PHP_VAR_SUBST="$PHP_VAR_SUBST CONFIGURE_COMMAND"
 3523: 
 3524: 
 3525: 
 3526: 
 3527: 
 3528:   PHP_VAR_SUBST="$PHP_VAR_SUBST CONFIGURE_OPTIONS"
 3529: 
 3530: 
 3531: 
 3532: 
 3533: 
 3534: ac_aux_dir=
 3535: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
 3536:   if test -f "$ac_dir/install-sh"; then
 3537:     ac_aux_dir=$ac_dir
 3538:     ac_install_sh="$ac_aux_dir/install-sh -c"
 3539:     break
 3540:   elif test -f "$ac_dir/install.sh"; then
 3541:     ac_aux_dir=$ac_dir
 3542:     ac_install_sh="$ac_aux_dir/install.sh -c"
 3543:     break
 3544:   elif test -f "$ac_dir/shtool"; then
 3545:     ac_aux_dir=$ac_dir
 3546:     ac_install_sh="$ac_aux_dir/shtool install -c"
 3547:     break
 3548:   fi
 3549: done
 3550: if test -z "$ac_aux_dir"; then
 3551:   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
 3552: fi
 3553: 
 3554: # These three variables are undocumented and unsupported,
 3555: # and are intended to be withdrawn in a future Autoconf release.
 3556: # They can cause serious problems if a builder's source tree is in a directory
 3557: # whose full name contains unusual characters.
 3558: ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 3559: ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 3560: ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 3561: 
 3562: 
 3563: # Make sure we can run config.sub.
 3564: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 3565:   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
 3566: 
 3567: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
 3568: $as_echo_n "checking build system type... " >&6; }
 3569: if ${ac_cv_build+:} false; then :
 3570:   $as_echo_n "(cached) " >&6
 3571: else
 3572:   ac_build_alias=$build_alias
 3573: test "x$ac_build_alias" = x &&
 3574:   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 3575: test "x$ac_build_alias" = x &&
 3576:   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
 3577: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 3578:   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
 3579: 
 3580: fi
 3581: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
 3582: $as_echo "$ac_cv_build" >&6; }
 3583: case $ac_cv_build in
 3584: *-*-*) ;;
 3585: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
 3586: esac
 3587: build=$ac_cv_build
 3588: ac_save_IFS=$IFS; IFS='-'
 3589: set x $ac_cv_build
 3590: shift
 3591: build_cpu=$1
 3592: build_vendor=$2
 3593: shift; shift
 3594: # Remember, the first character of IFS is used to create $*,
 3595: # except with old shells:
 3596: build_os=$*
 3597: IFS=$ac_save_IFS
 3598: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 3599: 
 3600: 
 3601: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
 3602: $as_echo_n "checking host system type... " >&6; }
 3603: if ${ac_cv_host+:} false; then :
 3604:   $as_echo_n "(cached) " >&6
 3605: else
 3606:   if test "x$host_alias" = x; then
 3607:   ac_cv_host=$ac_cv_build
 3608: else
 3609:   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 3610:     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
 3611: fi
 3612: 
 3613: fi
 3614: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
 3615: $as_echo "$ac_cv_host" >&6; }
 3616: case $ac_cv_host in
 3617: *-*-*) ;;
 3618: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
 3619: esac
 3620: host=$ac_cv_host
 3621: ac_save_IFS=$IFS; IFS='-'
 3622: set x $ac_cv_host
 3623: shift
 3624: host_cpu=$1
 3625: host_vendor=$2
 3626: shift; shift
 3627: # Remember, the first character of IFS is used to create $*,
 3628: # except with old shells:
 3629: host_os=$*
 3630: IFS=$ac_save_IFS
 3631: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 3632: 
 3633: 
 3634: { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
 3635: $as_echo_n "checking target system type... " >&6; }
 3636: if ${ac_cv_target+:} false; then :
 3637:   $as_echo_n "(cached) " >&6
 3638: else
 3639:   if test "x$target_alias" = x; then
 3640:   ac_cv_target=$ac_cv_host
 3641: else
 3642:   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
 3643:     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
 3644: fi
 3645: 
 3646: fi
 3647: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
 3648: $as_echo "$ac_cv_target" >&6; }
 3649: case $ac_cv_target in
 3650: *-*-*) ;;
 3651: *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
 3652: esac
 3653: target=$ac_cv_target
 3654: ac_save_IFS=$IFS; IFS='-'
 3655: set x $ac_cv_target
 3656: shift
 3657: target_cpu=$1
 3658: target_vendor=$2
 3659: shift; shift
 3660: # Remember, the first character of IFS is used to create $*,
 3661: # except with old shells:
 3662: target_os=$*
 3663: IFS=$ac_save_IFS
 3664: case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
 3665: 
 3666: 
 3667: # The aliases save the names the user supplied, while $host etc.
 3668: # will get canonicalized.
 3669: test -n "$target_alias" &&
 3670:   test "$program_prefix$program_suffix$program_transform_name" = \
 3671:     NONENONEs,x,x, &&
 3672:   program_prefix=${target_alias}-
 3673: 
 3674:         if test -z "$host_alias" && test -n "$host"; then
 3675:     host_alias=$host
 3676:   fi
 3677:   if test -z "$host_alias"; then
 3678:     as_fn_error $? "host_alias is not set!" "$LINENO" 5
 3679:   fi
 3680: 
 3681: 
 3682: ac_config_headers="$ac_config_headers main/php_config.h"
 3683: 
 3684: 
 3685: 
 3686: 
 3687: PHP_MAJOR_VERSION=5
 3688: PHP_MINOR_VERSION=4
 3689: PHP_RELEASE_VERSION=29
 3690: PHP_EXTRA_VERSION=""
 3691: PHP_VERSION="$PHP_MAJOR_VERSION.$PHP_MINOR_VERSION.$PHP_RELEASE_VERSION$PHP_EXTRA_VERSION"
 3692: PHP_VERSION_ID=`expr $PHP_MAJOR_VERSION \* 10000 + $PHP_MINOR_VERSION \* 100 + $PHP_RELEASE_VERSION`
 3693: 
 3694: 
 3695:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_MAJOR_VERSION"
 3696: 
 3697: 
 3698:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_MINOR_VERSION"
 3699: 
 3700: 
 3701:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_RELEASE_VERSION"
 3702: 
 3703: 
 3704:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_EXTRA_VERSION"
 3705: 
 3706: 
 3707: 
 3708: 
 3709: echo "/* automatically generated by configure */" > php_version.h.new
 3710: echo "/* edit configure.in to change version number */" >> php_version.h.new
 3711: echo "#define PHP_MAJOR_VERSION $PHP_MAJOR_VERSION" >> php_version.h.new
 3712: echo "#define PHP_MINOR_VERSION $PHP_MINOR_VERSION" >> php_version.h.new
 3713: echo "#define PHP_RELEASE_VERSION $PHP_RELEASE_VERSION" >> php_version.h.new
 3714: echo "#define PHP_EXTRA_VERSION \"$PHP_EXTRA_VERSION\"" >> php_version.h.new
 3715: echo "#define PHP_VERSION \"$PHP_VERSION\"" >> php_version.h.new
 3716: echo "#define PHP_VERSION_ID $PHP_VERSION_ID" >> php_version.h.new
 3717: cmp php_version.h.new $srcdir/main/php_version.h >/dev/null 2>&1
 3718: if test $? -ne 0 ; then
 3719:   rm -f $srcdir/main/php_version.h && mv php_version.h.new $srcdir/main/php_version.h && \
 3720:   echo 'Updated main/php_version.h'
 3721: else
 3722:   rm -f php_version.h.new
 3723: fi
 3724: 
 3725: 
 3726: 
 3727: if test "$with_shared_apache" != "no" && test -n "$with_shared_apache" ; then
 3728:   as_fn_error $? "--with-shared-apache is not supported. Please refer to the documentation for using APXS" "$LINENO" 5
 3729: fi
 3730: 
 3731: if test -n "$with_apache" && test -n "$with_apxs"; then
 3732:   as_fn_error $? "--with-apache and --with-apxs cannot be used together" "$LINENO" 5
 3733: fi
 3734: 
 3735: if test -n "$with_apxs2filter" && test -n "$with_apxs2"; then
 3736:   as_fn_error $? "--with-apxs2filter and --with-apxs2 cannot be used together" "$LINENO" 5
 3737: fi
 3738: 
 3739: 
 3740: 
 3741: cwd=`pwd`
 3742: 
 3743: php_shtool=$srcdir/build/shtool
 3744: T_MD=`$php_shtool echo -n -e %B`
 3745: T_ME=`$php_shtool echo -n -e %b`
 3746: 
 3747: 
 3748: test -d include || $php_shtool mkdir include
 3749: > Makefile.objects
 3750: > Makefile.fragments
 3751: pattern=define
 3752: $EGREP $pattern'.*include/php' $srcdir/configure|$SED 's/.*>//'|xargs touch 2>/dev/null
 3753: 
 3754: 
 3755: test -z "$CFLAGS" && auto_cflags=1
 3756: 
 3757: abs_srcdir=`(cd $srcdir; pwd)`
 3758: abs_builddir=`pwd`
 3759: 
 3760: php_abs_top_srcdir=$abs_srcdir
 3761: php_abs_top_builddir=$abs_builddir
 3762: 
 3763: 
 3764: $php_shtool mkdir -p libs
 3765: rm -f libs/*
 3766: 
 3767: 
 3768: ac_ext=c
 3769: ac_cpp='$CPP $CPPFLAGS'
 3770: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 3771: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 3772: ac_compiler_gnu=$ac_cv_c_compiler_gnu
 3773: if test -n "$ac_tool_prefix"; then
 3774:   for ac_prog in cc gcc
 3775:   do
 3776:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 3777: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 3778: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 3779: $as_echo_n "checking for $ac_word... " >&6; }
 3780: if ${ac_cv_prog_CC+:} false; then :
 3781:   $as_echo_n "(cached) " >&6
 3782: else
 3783:   if test -n "$CC"; then
 3784:   ac_cv_prog_CC="$CC" # Let the user override the test.
 3785: else
 3786: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 3787: for as_dir in $PATH
 3788: do
 3789:   IFS=$as_save_IFS
 3790:   test -z "$as_dir" && as_dir=.
 3791:     for ac_exec_ext in '' $ac_executable_extensions; do
 3792:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 3793:     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 3794:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 3795:     break 2
 3796:   fi
 3797: done
 3798:   done
 3799: IFS=$as_save_IFS
 3800: 
 3801: fi
 3802: fi
 3803: CC=$ac_cv_prog_CC
 3804: if test -n "$CC"; then
 3805:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 3806: $as_echo "$CC" >&6; }
 3807: else
 3808:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 3809: $as_echo "no" >&6; }
 3810: fi
 3811: 
 3812: 
 3813:     test -n "$CC" && break
 3814:   done
 3815: fi
 3816: if test -z "$CC"; then
 3817:   ac_ct_CC=$CC
 3818:   for ac_prog in cc gcc
 3819: do
 3820:   # Extract the first word of "$ac_prog", so it can be a program name with args.
 3821: set dummy $ac_prog; ac_word=$2
 3822: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 3823: $as_echo_n "checking for $ac_word... " >&6; }
 3824: if ${ac_cv_prog_ac_ct_CC+:} false; then :
 3825:   $as_echo_n "(cached) " >&6
 3826: else
 3827:   if test -n "$ac_ct_CC"; then
 3828:   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 3829: else
 3830: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 3831: for as_dir in $PATH
 3832: do
 3833:   IFS=$as_save_IFS
 3834:   test -z "$as_dir" && as_dir=.
 3835:     for ac_exec_ext in '' $ac_executable_extensions; do
 3836:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 3837:     ac_cv_prog_ac_ct_CC="$ac_prog"
 3838:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 3839:     break 2
 3840:   fi
 3841: done
 3842:   done
 3843: IFS=$as_save_IFS
 3844: 
 3845: fi
 3846: fi
 3847: ac_ct_CC=$ac_cv_prog_ac_ct_CC
 3848: if test -n "$ac_ct_CC"; then
 3849:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 3850: $as_echo "$ac_ct_CC" >&6; }
 3851: else
 3852:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 3853: $as_echo "no" >&6; }
 3854: fi
 3855: 
 3856: 
 3857:   test -n "$ac_ct_CC" && break
 3858: done
 3859: 
 3860:   if test "x$ac_ct_CC" = x; then
 3861:     CC=""
 3862:   else
 3863:     case $cross_compiling:$ac_tool_warned in
 3864: yes:)
 3865: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 3866: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 3867: ac_tool_warned=yes ;;
 3868: esac
 3869:     CC=$ac_ct_CC
 3870:   fi
 3871: fi
 3872: 
 3873: 
 3874: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 3875: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 3876: as_fn_error $? "no acceptable C compiler found in \$PATH
 3877: See \`config.log' for more details" "$LINENO" 5; }
 3878: 
 3879: # Provide some information about the compiler.
 3880: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 3881: set X $ac_compile
 3882: ac_compiler=$2
 3883: for ac_option in --version -v -V -qversion; do
 3884:   { { ac_try="$ac_compiler $ac_option >&5"
 3885: case "(($ac_try" in
 3886:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 3887:   *) ac_try_echo=$ac_try;;
 3888: esac
 3889: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 3890: $as_echo "$ac_try_echo"; } >&5
 3891:   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 3892:   ac_status=$?
 3893:   if test -s conftest.err; then
 3894:     sed '10a\
 3895: ... rest of stderr output deleted ...
 3896:          10q' conftest.err >conftest.er1
 3897:     cat conftest.er1 >&5
 3898:   fi
 3899:   rm -f conftest.er1 conftest.err
 3900:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 3901:   test $ac_status = 0; }
 3902: done
 3903: 
 3904: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 3905: /* end confdefs.h.  */
 3906: 
 3907: int
 3908: main ()
 3909: {
 3910: 
 3911:   ;
 3912:   return 0;
 3913: }
 3914: _ACEOF
 3915: ac_clean_files_save=$ac_clean_files
 3916: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
 3917: # Try to create an executable without -o first, disregard a.out.
 3918: # It will help us diagnose broken compilers, and finding out an intuition
 3919: # of exeext.
 3920: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
 3921: $as_echo_n "checking whether the C compiler works... " >&6; }
 3922: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 3923: 
 3924: # The possible output files:
 3925: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
 3926: 
 3927: ac_rmfiles=
 3928: for ac_file in $ac_files
 3929: do
 3930:   case $ac_file in
 3931:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 3932:     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 3933:   esac
 3934: done
 3935: rm -f $ac_rmfiles
 3936: 
 3937: if { { ac_try="$ac_link_default"
 3938: case "(($ac_try" in
 3939:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 3940:   *) ac_try_echo=$ac_try;;
 3941: esac
 3942: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 3943: $as_echo "$ac_try_echo"; } >&5
 3944:   (eval "$ac_link_default") 2>&5
 3945:   ac_status=$?
 3946:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 3947:   test $ac_status = 0; }; then :
 3948:   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 3949: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 3950: # in a Makefile.  We should not override ac_cv_exeext if it was cached,
 3951: # so that the user can short-circuit this test for compilers unknown to
 3952: # Autoconf.
 3953: for ac_file in $ac_files ''
 3954: do
 3955:   test -f "$ac_file" || continue
 3956:   case $ac_file in
 3957:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
 3958: 	;;
 3959:     [ab].out )
 3960: 	# We found the default executable, but exeext='' is most
 3961: 	# certainly right.
 3962: 	break;;
 3963:     *.* )
 3964: 	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 3965: 	then :; else
 3966: 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 3967: 	fi
 3968: 	# We set ac_cv_exeext here because the later test for it is not
 3969: 	# safe: cross compilers may not add the suffix if given an `-o'
 3970: 	# argument, so we may need to know it at that point already.
 3971: 	# Even if this section looks crufty: it has the advantage of
 3972: 	# actually working.
 3973: 	break;;
 3974:     * )
 3975: 	break;;
 3976:   esac
 3977: done
 3978: test "$ac_cv_exeext" = no && ac_cv_exeext=
 3979: 
 3980: else
 3981:   ac_file=''
 3982: fi
 3983: if test -z "$ac_file"; then :
 3984:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 3985: $as_echo "no" >&6; }
 3986: $as_echo "$as_me: failed program was:" >&5
 3987: sed 's/^/| /' conftest.$ac_ext >&5
 3988: 
 3989: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 3990: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 3991: as_fn_error 77 "C compiler cannot create executables
 3992: See \`config.log' for more details" "$LINENO" 5; }
 3993: else
 3994:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 3995: $as_echo "yes" >&6; }
 3996: fi
 3997: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
 3998: $as_echo_n "checking for C compiler default output file name... " >&6; }
 3999: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
 4000: $as_echo "$ac_file" >&6; }
 4001: ac_exeext=$ac_cv_exeext
 4002: 
 4003: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
 4004: ac_clean_files=$ac_clean_files_save
 4005: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
 4006: $as_echo_n "checking for suffix of executables... " >&6; }
 4007: if { { ac_try="$ac_link"
 4008: case "(($ac_try" in
 4009:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 4010:   *) ac_try_echo=$ac_try;;
 4011: esac
 4012: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 4013: $as_echo "$ac_try_echo"; } >&5
 4014:   (eval "$ac_link") 2>&5
 4015:   ac_status=$?
 4016:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 4017:   test $ac_status = 0; }; then :
 4018:   # If both `conftest.exe' and `conftest' are `present' (well, observable)
 4019: # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 4020: # work properly (i.e., refer to `conftest.exe'), while it won't with
 4021: # `rm'.
 4022: for ac_file in conftest.exe conftest conftest.*; do
 4023:   test -f "$ac_file" || continue
 4024:   case $ac_file in
 4025:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 4026:     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 4027: 	  break;;
 4028:     * ) break;;
 4029:   esac
 4030: done
 4031: else
 4032:   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 4033: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 4034: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
 4035: See \`config.log' for more details" "$LINENO" 5; }
 4036: fi
 4037: rm -f conftest conftest$ac_cv_exeext
 4038: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
 4039: $as_echo "$ac_cv_exeext" >&6; }
 4040: 
 4041: rm -f conftest.$ac_ext
 4042: EXEEXT=$ac_cv_exeext
 4043: ac_exeext=$EXEEXT
 4044: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4045: /* end confdefs.h.  */
 4046: #include <stdio.h>
 4047: int
 4048: main ()
 4049: {
 4050: FILE *f = fopen ("conftest.out", "w");
 4051:  return ferror (f) || fclose (f) != 0;
 4052: 
 4053:   ;
 4054:   return 0;
 4055: }
 4056: _ACEOF
 4057: ac_clean_files="$ac_clean_files conftest.out"
 4058: # Check that the compiler produces executables we can run.  If not, either
 4059: # the compiler is broken, or we cross compile.
 4060: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
 4061: $as_echo_n "checking whether we are cross compiling... " >&6; }
 4062: if test "$cross_compiling" != yes; then
 4063:   { { ac_try="$ac_link"
 4064: case "(($ac_try" in
 4065:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 4066:   *) ac_try_echo=$ac_try;;
 4067: esac
 4068: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 4069: $as_echo "$ac_try_echo"; } >&5
 4070:   (eval "$ac_link") 2>&5
 4071:   ac_status=$?
 4072:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 4073:   test $ac_status = 0; }
 4074:   if { ac_try='./conftest$ac_cv_exeext'
 4075:   { { case "(($ac_try" in
 4076:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 4077:   *) ac_try_echo=$ac_try;;
 4078: esac
 4079: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 4080: $as_echo "$ac_try_echo"; } >&5
 4081:   (eval "$ac_try") 2>&5
 4082:   ac_status=$?
 4083:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 4084:   test $ac_status = 0; }; }; then
 4085:     cross_compiling=no
 4086:   else
 4087:     if test "$cross_compiling" = maybe; then
 4088: 	cross_compiling=yes
 4089:     else
 4090: 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 4091: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 4092: as_fn_error $? "cannot run C compiled programs.
 4093: If you meant to cross compile, use \`--host'.
 4094: See \`config.log' for more details" "$LINENO" 5; }
 4095:     fi
 4096:   fi
 4097: fi
 4098: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
 4099: $as_echo "$cross_compiling" >&6; }
 4100: 
 4101: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
 4102: ac_clean_files=$ac_clean_files_save
 4103: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
 4104: $as_echo_n "checking for suffix of object files... " >&6; }
 4105: if ${ac_cv_objext+:} false; then :
 4106:   $as_echo_n "(cached) " >&6
 4107: else
 4108:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4109: /* end confdefs.h.  */
 4110: 
 4111: int
 4112: main ()
 4113: {
 4114: 
 4115:   ;
 4116:   return 0;
 4117: }
 4118: _ACEOF
 4119: rm -f conftest.o conftest.obj
 4120: if { { ac_try="$ac_compile"
 4121: case "(($ac_try" in
 4122:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 4123:   *) ac_try_echo=$ac_try;;
 4124: esac
 4125: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 4126: $as_echo "$ac_try_echo"; } >&5
 4127:   (eval "$ac_compile") 2>&5
 4128:   ac_status=$?
 4129:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 4130:   test $ac_status = 0; }; then :
 4131:   for ac_file in conftest.o conftest.obj conftest.*; do
 4132:   test -f "$ac_file" || continue;
 4133:   case $ac_file in
 4134:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
 4135:     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 4136:        break;;
 4137:   esac
 4138: done
 4139: else
 4140:   $as_echo "$as_me: failed program was:" >&5
 4141: sed 's/^/| /' conftest.$ac_ext >&5
 4142: 
 4143: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 4144: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 4145: as_fn_error $? "cannot compute suffix of object files: cannot compile
 4146: See \`config.log' for more details" "$LINENO" 5; }
 4147: fi
 4148: rm -f conftest.$ac_cv_objext conftest.$ac_ext
 4149: fi
 4150: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
 4151: $as_echo "$ac_cv_objext" >&6; }
 4152: OBJEXT=$ac_cv_objext
 4153: ac_objext=$OBJEXT
 4154: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
 4155: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 4156: if ${ac_cv_c_compiler_gnu+:} false; then :
 4157:   $as_echo_n "(cached) " >&6
 4158: else
 4159:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4160: /* end confdefs.h.  */
 4161: 
 4162: int
 4163: main ()
 4164: {
 4165: #ifndef __GNUC__
 4166:        choke me
 4167: #endif
 4168: 
 4169:   ;
 4170:   return 0;
 4171: }
 4172: _ACEOF
 4173: if ac_fn_c_try_compile "$LINENO"; then :
 4174:   ac_compiler_gnu=yes
 4175: else
 4176:   ac_compiler_gnu=no
 4177: fi
 4178: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 4179: ac_cv_c_compiler_gnu=$ac_compiler_gnu
 4180: 
 4181: fi
 4182: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
 4183: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
 4184: if test $ac_compiler_gnu = yes; then
 4185:   GCC=yes
 4186: else
 4187:   GCC=
 4188: fi
 4189: ac_test_CFLAGS=${CFLAGS+set}
 4190: ac_save_CFLAGS=$CFLAGS
 4191: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
 4192: $as_echo_n "checking whether $CC accepts -g... " >&6; }
 4193: if ${ac_cv_prog_cc_g+:} false; then :
 4194:   $as_echo_n "(cached) " >&6
 4195: else
 4196:   ac_save_c_werror_flag=$ac_c_werror_flag
 4197:    ac_c_werror_flag=yes
 4198:    ac_cv_prog_cc_g=no
 4199:    CFLAGS="-g"
 4200:    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4201: /* end confdefs.h.  */
 4202: 
 4203: int
 4204: main ()
 4205: {
 4206: 
 4207:   ;
 4208:   return 0;
 4209: }
 4210: _ACEOF
 4211: if ac_fn_c_try_compile "$LINENO"; then :
 4212:   ac_cv_prog_cc_g=yes
 4213: else
 4214:   CFLAGS=""
 4215:       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4216: /* end confdefs.h.  */
 4217: 
 4218: int
 4219: main ()
 4220: {
 4221: 
 4222:   ;
 4223:   return 0;
 4224: }
 4225: _ACEOF
 4226: if ac_fn_c_try_compile "$LINENO"; then :
 4227: 
 4228: else
 4229:   ac_c_werror_flag=$ac_save_c_werror_flag
 4230: 	 CFLAGS="-g"
 4231: 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4232: /* end confdefs.h.  */
 4233: 
 4234: int
 4235: main ()
 4236: {
 4237: 
 4238:   ;
 4239:   return 0;
 4240: }
 4241: _ACEOF
 4242: if ac_fn_c_try_compile "$LINENO"; then :
 4243:   ac_cv_prog_cc_g=yes
 4244: fi
 4245: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 4246: fi
 4247: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 4248: fi
 4249: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 4250:    ac_c_werror_flag=$ac_save_c_werror_flag
 4251: fi
 4252: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
 4253: $as_echo "$ac_cv_prog_cc_g" >&6; }
 4254: if test "$ac_test_CFLAGS" = set; then
 4255:   CFLAGS=$ac_save_CFLAGS
 4256: elif test $ac_cv_prog_cc_g = yes; then
 4257:   if test "$GCC" = yes; then
 4258:     CFLAGS="-g -O2"
 4259:   else
 4260:     CFLAGS="-g"
 4261:   fi
 4262: else
 4263:   if test "$GCC" = yes; then
 4264:     CFLAGS="-O2"
 4265:   else
 4266:     CFLAGS=
 4267:   fi
 4268: fi
 4269: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
 4270: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 4271: if ${ac_cv_prog_cc_c89+:} false; then :
 4272:   $as_echo_n "(cached) " >&6
 4273: else
 4274:   ac_cv_prog_cc_c89=no
 4275: ac_save_CC=$CC
 4276: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4277: /* end confdefs.h.  */
 4278: #include <stdarg.h>
 4279: #include <stdio.h>
 4280: struct stat;
 4281: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 4282: struct buf { int x; };
 4283: FILE * (*rcsopen) (struct buf *, struct stat *, int);
 4284: static char *e (p, i)
 4285:      char **p;
 4286:      int i;
 4287: {
 4288:   return p[i];
 4289: }
 4290: static char *f (char * (*g) (char **, int), char **p, ...)
 4291: {
 4292:   char *s;
 4293:   va_list v;
 4294:   va_start (v,p);
 4295:   s = g (p, va_arg (v,int));
 4296:   va_end (v);
 4297:   return s;
 4298: }
 4299: 
 4300: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 4301:    function prototypes and stuff, but not '\xHH' hex character constants.
 4302:    These don't provoke an error unfortunately, instead are silently treated
 4303:    as 'x'.  The following induces an error, until -std is added to get
 4304:    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 4305:    array size at least.  It's necessary to write '\x00'==0 to get something
 4306:    that's true only with -std.  */
 4307: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 4308: 
 4309: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 4310:    inside strings and character constants.  */
 4311: #define FOO(x) 'x'
 4312: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 4313: 
 4314: int test (int i, double x);
 4315: struct s1 {int (*f) (int a);};
 4316: struct s2 {int (*f) (double a);};
 4317: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 4318: int argc;
 4319: char **argv;
 4320: int
 4321: main ()
 4322: {
 4323: return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 4324:   ;
 4325:   return 0;
 4326: }
 4327: _ACEOF
 4328: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 4329: 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 4330: do
 4331:   CC="$ac_save_CC $ac_arg"
 4332:   if ac_fn_c_try_compile "$LINENO"; then :
 4333:   ac_cv_prog_cc_c89=$ac_arg
 4334: fi
 4335: rm -f core conftest.err conftest.$ac_objext
 4336:   test "x$ac_cv_prog_cc_c89" != "xno" && break
 4337: done
 4338: rm -f conftest.$ac_ext
 4339: CC=$ac_save_CC
 4340: 
 4341: fi
 4342: # AC_CACHE_VAL
 4343: case "x$ac_cv_prog_cc_c89" in
 4344:   x)
 4345:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 4346: $as_echo "none needed" >&6; } ;;
 4347:   xno)
 4348:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 4349: $as_echo "unsupported" >&6; } ;;
 4350:   *)
 4351:     CC="$CC $ac_cv_prog_cc_c89"
 4352:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 4353: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 4354: esac
 4355: if test "x$ac_cv_prog_cc_c89" != xno; then :
 4356: 
 4357: fi
 4358: 
 4359: ac_ext=c
 4360: ac_cpp='$CPP $CPPFLAGS'
 4361: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 4362: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 4363: ac_compiler_gnu=$ac_cv_c_compiler_gnu
 4364: 
 4365: 
 4366: ac_ext=c
 4367: ac_cpp='$CPP $CPPFLAGS'
 4368: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 4369: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 4370: ac_compiler_gnu=$ac_cv_c_compiler_gnu
 4371: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
 4372: $as_echo_n "checking how to run the C preprocessor... " >&6; }
 4373: # On Suns, sometimes $CPP names a directory.
 4374: if test -n "$CPP" && test -d "$CPP"; then
 4375:   CPP=
 4376: fi
 4377: if test -z "$CPP"; then
 4378:   if ${ac_cv_prog_CPP+:} false; then :
 4379:   $as_echo_n "(cached) " >&6
 4380: else
 4381:       # Double quotes because CPP needs to be expanded
 4382:     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 4383:     do
 4384:       ac_preproc_ok=false
 4385: for ac_c_preproc_warn_flag in '' yes
 4386: do
 4387:   # Use a header file that comes with gcc, so configuring glibc
 4388:   # with a fresh cross-compiler works.
 4389:   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 4390:   # <limits.h> exists even on freestanding compilers.
 4391:   # On the NeXT, cc -E runs the code through the compiler's parser,
 4392:   # not just through cpp. "Syntax error" is here to catch this case.
 4393:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4394: /* end confdefs.h.  */
 4395: #ifdef __STDC__
 4396: # include <limits.h>
 4397: #else
 4398: # include <assert.h>
 4399: #endif
 4400: 		     Syntax error
 4401: _ACEOF
 4402: if ac_fn_c_try_cpp "$LINENO"; then :
 4403: 
 4404: else
 4405:   # Broken: fails on valid input.
 4406: continue
 4407: fi
 4408: rm -f conftest.err conftest.i conftest.$ac_ext
 4409: 
 4410:   # OK, works on sane cases.  Now check whether nonexistent headers
 4411:   # can be detected and how.
 4412:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4413: /* end confdefs.h.  */
 4414: #include <ac_nonexistent.h>
 4415: _ACEOF
 4416: if ac_fn_c_try_cpp "$LINENO"; then :
 4417:   # Broken: success on invalid input.
 4418: continue
 4419: else
 4420:   # Passes both tests.
 4421: ac_preproc_ok=:
 4422: break
 4423: fi
 4424: rm -f conftest.err conftest.i conftest.$ac_ext
 4425: 
 4426: done
 4427: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 4428: rm -f conftest.i conftest.err conftest.$ac_ext
 4429: if $ac_preproc_ok; then :
 4430:   break
 4431: fi
 4432: 
 4433:     done
 4434:     ac_cv_prog_CPP=$CPP
 4435: 
 4436: fi
 4437:   CPP=$ac_cv_prog_CPP
 4438: else
 4439:   ac_cv_prog_CPP=$CPP
 4440: fi
 4441: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
 4442: $as_echo "$CPP" >&6; }
 4443: ac_preproc_ok=false
 4444: for ac_c_preproc_warn_flag in '' yes
 4445: do
 4446:   # Use a header file that comes with gcc, so configuring glibc
 4447:   # with a fresh cross-compiler works.
 4448:   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 4449:   # <limits.h> exists even on freestanding compilers.
 4450:   # On the NeXT, cc -E runs the code through the compiler's parser,
 4451:   # not just through cpp. "Syntax error" is here to catch this case.
 4452:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4453: /* end confdefs.h.  */
 4454: #ifdef __STDC__
 4455: # include <limits.h>
 4456: #else
 4457: # include <assert.h>
 4458: #endif
 4459: 		     Syntax error
 4460: _ACEOF
 4461: if ac_fn_c_try_cpp "$LINENO"; then :
 4462: 
 4463: else
 4464:   # Broken: fails on valid input.
 4465: continue
 4466: fi
 4467: rm -f conftest.err conftest.i conftest.$ac_ext
 4468: 
 4469:   # OK, works on sane cases.  Now check whether nonexistent headers
 4470:   # can be detected and how.
 4471:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4472: /* end confdefs.h.  */
 4473: #include <ac_nonexistent.h>
 4474: _ACEOF
 4475: if ac_fn_c_try_cpp "$LINENO"; then :
 4476:   # Broken: success on invalid input.
 4477: continue
 4478: else
 4479:   # Passes both tests.
 4480: ac_preproc_ok=:
 4481: break
 4482: fi
 4483: rm -f conftest.err conftest.i conftest.$ac_ext
 4484: 
 4485: done
 4486: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 4487: rm -f conftest.i conftest.err conftest.$ac_ext
 4488: if $ac_preproc_ok; then :
 4489: 
 4490: else
 4491:   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 4492: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 4493: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
 4494: See \`config.log' for more details" "$LINENO" 5; }
 4495: fi
 4496: 
 4497: ac_ext=c
 4498: ac_cpp='$CPP $CPPFLAGS'
 4499: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 4500: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 4501: ac_compiler_gnu=$ac_cv_c_compiler_gnu
 4502: 
 4503: 
 4504: 
 4505:   ICC="no"
 4506:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icc" >&5
 4507: $as_echo_n "checking for icc... " >&6; }
 4508:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4509: /* end confdefs.h.  */
 4510: __INTEL_COMPILER
 4511: _ACEOF
 4512: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 4513:   $EGREP "^__INTEL_COMPILER" >/dev/null 2>&1; then :
 4514:   ICC="no"
 4515:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 4516: $as_echo "no" >&6; }
 4517: else
 4518:   ICC="yes"
 4519:     GCC="no"
 4520:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 4521: $as_echo "yes" >&6; }
 4522: 
 4523: fi
 4524: rm -f conftest*
 4525: 
 4526: 
 4527: 
 4528:   SUNCC="no"
 4529:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suncc" >&5
 4530: $as_echo_n "checking for suncc... " >&6; }
 4531:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4532: /* end confdefs.h.  */
 4533: __SUNPRO_C
 4534: _ACEOF
 4535: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 4536:   $EGREP "^__SUNPRO_C" >/dev/null 2>&1; then :
 4537:   SUNCC="no"
 4538:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 4539: $as_echo "no" >&6; }
 4540: else
 4541:   SUNCC="yes"
 4542:     GCC="no"
 4543:     test -n "$auto_cflags" && CFLAGS="-O -xs -xstrconst -zlazyload"
 4544:     GCC=""
 4545:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 4546: $as_echo "yes" >&6; }
 4547: 
 4548: fi
 4549: rm -f conftest*
 4550: 
 4551: 
 4552: if test "x$CC" != xcc; then
 4553:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
 4554: $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
 4555: else
 4556:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
 4557: $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
 4558: fi
 4559: set dummy $CC; ac_cc=`$as_echo "$2" |
 4560: 		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
 4561: if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
 4562:   $as_echo_n "(cached) " >&6
 4563: else
 4564:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4565: /* end confdefs.h.  */
 4566: 
 4567: int
 4568: main ()
 4569: {
 4570: 
 4571:   ;
 4572:   return 0;
 4573: }
 4574: _ACEOF
 4575: # Make sure it works both with $CC and with simple cc.
 4576: # We do the test twice because some compilers refuse to overwrite an
 4577: # existing .o file with -o, though they will create one.
 4578: ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
 4579: rm -f conftest2.*
 4580: if { { case "(($ac_try" in
 4581:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 4582:   *) ac_try_echo=$ac_try;;
 4583: esac
 4584: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 4585: $as_echo "$ac_try_echo"; } >&5
 4586:   (eval "$ac_try") 2>&5
 4587:   ac_status=$?
 4588:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 4589:   test $ac_status = 0; } &&
 4590:    test -f conftest2.$ac_objext && { { case "(($ac_try" in
 4591:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 4592:   *) ac_try_echo=$ac_try;;
 4593: esac
 4594: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 4595: $as_echo "$ac_try_echo"; } >&5
 4596:   (eval "$ac_try") 2>&5
 4597:   ac_status=$?
 4598:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 4599:   test $ac_status = 0; };
 4600: then
 4601:   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
 4602:   if test "x$CC" != xcc; then
 4603:     # Test first that cc exists at all.
 4604:     if { ac_try='cc -c conftest.$ac_ext >&5'
 4605:   { { case "(($ac_try" in
 4606:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 4607:   *) ac_try_echo=$ac_try;;
 4608: esac
 4609: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 4610: $as_echo "$ac_try_echo"; } >&5
 4611:   (eval "$ac_try") 2>&5
 4612:   ac_status=$?
 4613:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 4614:   test $ac_status = 0; }; }; then
 4615:       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
 4616:       rm -f conftest2.*
 4617:       if { { case "(($ac_try" in
 4618:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 4619:   *) ac_try_echo=$ac_try;;
 4620: esac
 4621: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 4622: $as_echo "$ac_try_echo"; } >&5
 4623:   (eval "$ac_try") 2>&5
 4624:   ac_status=$?
 4625:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 4626:   test $ac_status = 0; } &&
 4627: 	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
 4628:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 4629:   *) ac_try_echo=$ac_try;;
 4630: esac
 4631: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 4632: $as_echo "$ac_try_echo"; } >&5
 4633:   (eval "$ac_try") 2>&5
 4634:   ac_status=$?
 4635:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 4636:   test $ac_status = 0; };
 4637:       then
 4638: 	# cc works too.
 4639: 	:
 4640:       else
 4641: 	# cc exists but doesn't like -o.
 4642: 	eval ac_cv_prog_cc_${ac_cc}_c_o=no
 4643:       fi
 4644:     fi
 4645:   fi
 4646: else
 4647:   eval ac_cv_prog_cc_${ac_cc}_c_o=no
 4648: fi
 4649: rm -f core conftest*
 4650: 
 4651: fi
 4652: if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
 4653:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 4654: $as_echo "yes" >&6; }
 4655: else
 4656:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 4657: $as_echo "no" >&6; }
 4658: 
 4659: $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
 4660: 
 4661: fi
 4662: 
 4663: ac_ext=c
 4664: ac_cpp='$CPP $CPPFLAGS'
 4665: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 4666: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 4667: ac_compiler_gnu=$ac_cv_c_compiler_gnu
 4668: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
 4669: $as_echo_n "checking how to run the C preprocessor... " >&6; }
 4670: # On Suns, sometimes $CPP names a directory.
 4671: if test -n "$CPP" && test -d "$CPP"; then
 4672:   CPP=
 4673: fi
 4674: if test -z "$CPP"; then
 4675:   if ${ac_cv_prog_CPP+:} false; then :
 4676:   $as_echo_n "(cached) " >&6
 4677: else
 4678:       # Double quotes because CPP needs to be expanded
 4679:     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 4680:     do
 4681:       ac_preproc_ok=false
 4682: for ac_c_preproc_warn_flag in '' yes
 4683: do
 4684:   # Use a header file that comes with gcc, so configuring glibc
 4685:   # with a fresh cross-compiler works.
 4686:   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 4687:   # <limits.h> exists even on freestanding compilers.
 4688:   # On the NeXT, cc -E runs the code through the compiler's parser,
 4689:   # not just through cpp. "Syntax error" is here to catch this case.
 4690:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4691: /* end confdefs.h.  */
 4692: #ifdef __STDC__
 4693: # include <limits.h>
 4694: #else
 4695: # include <assert.h>
 4696: #endif
 4697: 		     Syntax error
 4698: _ACEOF
 4699: if ac_fn_c_try_cpp "$LINENO"; then :
 4700: 
 4701: else
 4702:   # Broken: fails on valid input.
 4703: continue
 4704: fi
 4705: rm -f conftest.err conftest.i conftest.$ac_ext
 4706: 
 4707:   # OK, works on sane cases.  Now check whether nonexistent headers
 4708:   # can be detected and how.
 4709:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4710: /* end confdefs.h.  */
 4711: #include <ac_nonexistent.h>
 4712: _ACEOF
 4713: if ac_fn_c_try_cpp "$LINENO"; then :
 4714:   # Broken: success on invalid input.
 4715: continue
 4716: else
 4717:   # Passes both tests.
 4718: ac_preproc_ok=:
 4719: break
 4720: fi
 4721: rm -f conftest.err conftest.i conftest.$ac_ext
 4722: 
 4723: done
 4724: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 4725: rm -f conftest.i conftest.err conftest.$ac_ext
 4726: if $ac_preproc_ok; then :
 4727:   break
 4728: fi
 4729: 
 4730:     done
 4731:     ac_cv_prog_CPP=$CPP
 4732: 
 4733: fi
 4734:   CPP=$ac_cv_prog_CPP
 4735: else
 4736:   ac_cv_prog_CPP=$CPP
 4737: fi
 4738: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
 4739: $as_echo "$CPP" >&6; }
 4740: ac_preproc_ok=false
 4741: for ac_c_preproc_warn_flag in '' yes
 4742: do
 4743:   # Use a header file that comes with gcc, so configuring glibc
 4744:   # with a fresh cross-compiler works.
 4745:   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 4746:   # <limits.h> exists even on freestanding compilers.
 4747:   # On the NeXT, cc -E runs the code through the compiler's parser,
 4748:   # not just through cpp. "Syntax error" is here to catch this case.
 4749:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4750: /* end confdefs.h.  */
 4751: #ifdef __STDC__
 4752: # include <limits.h>
 4753: #else
 4754: # include <assert.h>
 4755: #endif
 4756: 		     Syntax error
 4757: _ACEOF
 4758: if ac_fn_c_try_cpp "$LINENO"; then :
 4759: 
 4760: else
 4761:   # Broken: fails on valid input.
 4762: continue
 4763: fi
 4764: rm -f conftest.err conftest.i conftest.$ac_ext
 4765: 
 4766:   # OK, works on sane cases.  Now check whether nonexistent headers
 4767:   # can be detected and how.
 4768:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4769: /* end confdefs.h.  */
 4770: #include <ac_nonexistent.h>
 4771: _ACEOF
 4772: if ac_fn_c_try_cpp "$LINENO"; then :
 4773:   # Broken: success on invalid input.
 4774: continue
 4775: else
 4776:   # Passes both tests.
 4777: ac_preproc_ok=:
 4778: break
 4779: fi
 4780: rm -f conftest.err conftest.i conftest.$ac_ext
 4781: 
 4782: done
 4783: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 4784: rm -f conftest.i conftest.err conftest.$ac_ext
 4785: if $ac_preproc_ok; then :
 4786: 
 4787: else
 4788:   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 4789: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 4790: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
 4791: See \`config.log' for more details" "$LINENO" 5; }
 4792: fi
 4793: 
 4794: ac_ext=c
 4795: ac_cpp='$CPP $CPPFLAGS'
 4796: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 4797: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 4798: ac_compiler_gnu=$ac_cv_c_compiler_gnu
 4799: 
 4800: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
 4801: $as_echo_n "checking for ANSI C header files... " >&6; }
 4802: if ${ac_cv_header_stdc+:} false; then :
 4803:   $as_echo_n "(cached) " >&6
 4804: else
 4805:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4806: /* end confdefs.h.  */
 4807: #include <stdlib.h>
 4808: #include <stdarg.h>
 4809: #include <string.h>
 4810: #include <float.h>
 4811: 
 4812: int
 4813: main ()
 4814: {
 4815: 
 4816:   ;
 4817:   return 0;
 4818: }
 4819: _ACEOF
 4820: if ac_fn_c_try_compile "$LINENO"; then :
 4821:   ac_cv_header_stdc=yes
 4822: else
 4823:   ac_cv_header_stdc=no
 4824: fi
 4825: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 4826: 
 4827: if test $ac_cv_header_stdc = yes; then
 4828:   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 4829:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4830: /* end confdefs.h.  */
 4831: #include <string.h>
 4832: 
 4833: _ACEOF
 4834: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 4835:   $EGREP "memchr" >/dev/null 2>&1; then :
 4836: 
 4837: else
 4838:   ac_cv_header_stdc=no
 4839: fi
 4840: rm -f conftest*
 4841: 
 4842: fi
 4843: 
 4844: if test $ac_cv_header_stdc = yes; then
 4845:   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 4846:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4847: /* end confdefs.h.  */
 4848: #include <stdlib.h>
 4849: 
 4850: _ACEOF
 4851: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 4852:   $EGREP "free" >/dev/null 2>&1; then :
 4853: 
 4854: else
 4855:   ac_cv_header_stdc=no
 4856: fi
 4857: rm -f conftest*
 4858: 
 4859: fi
 4860: 
 4861: if test $ac_cv_header_stdc = yes; then
 4862:   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 4863:   if test "$cross_compiling" = yes; then :
 4864:   :
 4865: else
 4866:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4867: /* end confdefs.h.  */
 4868: #include <ctype.h>
 4869: #include <stdlib.h>
 4870: #if ((' ' & 0x0FF) == 0x020)
 4871: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 4872: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 4873: #else
 4874: # define ISLOWER(c) \
 4875: 		   (('a' <= (c) && (c) <= 'i') \
 4876: 		     || ('j' <= (c) && (c) <= 'r') \
 4877: 		     || ('s' <= (c) && (c) <= 'z'))
 4878: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 4879: #endif
 4880: 
 4881: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 4882: int
 4883: main ()
 4884: {
 4885:   int i;
 4886:   for (i = 0; i < 256; i++)
 4887:     if (XOR (islower (i), ISLOWER (i))
 4888: 	|| toupper (i) != TOUPPER (i))
 4889:       return 2;
 4890:   return 0;
 4891: }
 4892: _ACEOF
 4893: if ac_fn_c_try_run "$LINENO"; then :
 4894: 
 4895: else
 4896:   ac_cv_header_stdc=no
 4897: fi
 4898: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 4899:   conftest.$ac_objext conftest.beam conftest.$ac_ext
 4900: fi
 4901: 
 4902: fi
 4903: fi
 4904: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
 4905: $as_echo "$ac_cv_header_stdc" >&6; }
 4906: if test $ac_cv_header_stdc = yes; then
 4907: 
 4908: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
 4909: 
 4910: fi
 4911: 
 4912: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
 4913: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 4914: 		  inttypes.h stdint.h unistd.h
 4915: do :
 4916:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 4917: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
 4918: "
 4919: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 4920:   cat >>confdefs.h <<_ACEOF
 4921: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 4922: _ACEOF
 4923: 
 4924: fi
 4925: 
 4926: done
 4927: 
 4928: 
 4929: 
 4930:   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
 4931: if test "x$ac_cv_header_minix_config_h" = xyes; then :
 4932:   MINIX=yes
 4933: else
 4934:   MINIX=
 4935: fi
 4936: 
 4937: 
 4938:   if test "$MINIX" = yes; then
 4939: 
 4940: $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
 4941: 
 4942: 
 4943: $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
 4944: 
 4945: 
 4946: $as_echo "#define _MINIX 1" >>confdefs.h
 4947: 
 4948:   fi
 4949: 
 4950: 
 4951:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
 4952: $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
 4953: if ${ac_cv_safe_to_define___extensions__+:} false; then :
 4954:   $as_echo_n "(cached) " >&6
 4955: else
 4956:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4957: /* end confdefs.h.  */
 4958: 
 4959: #         define __EXTENSIONS__ 1
 4960:           $ac_includes_default
 4961: int
 4962: main ()
 4963: {
 4964: 
 4965:   ;
 4966:   return 0;
 4967: }
 4968: _ACEOF
 4969: if ac_fn_c_try_compile "$LINENO"; then :
 4970:   ac_cv_safe_to_define___extensions__=yes
 4971: else
 4972:   ac_cv_safe_to_define___extensions__=no
 4973: fi
 4974: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 4975: fi
 4976: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
 4977: $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
 4978:   test $ac_cv_safe_to_define___extensions__ = yes &&
 4979:     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
 4980: 
 4981:   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
 4982: 
 4983:   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
 4984: 
 4985:   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
 4986: 
 4987:   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
 4988: 
 4989: 
 4990: 
 4991: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
 4992: $as_echo_n "checking whether ln -s works... " >&6; }
 4993: LN_S=$as_ln_s
 4994: if test "$LN_S" = "ln -s"; then
 4995:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 4996: $as_echo "yes" >&6; }
 4997: else
 4998:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
 4999: $as_echo "no, using $LN_S" >&6; }
 5000: fi
 5001: 
 5002: 
 5003: 
 5004: php_with_libdir=lib
 5005: 
 5006: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system library directory" >&5
 5007: $as_echo_n "checking for system library directory... " >&6; }
 5008: 
 5009: # Check whether --with-libdir was given.
 5010: if test "${with_libdir+set}" = set; then :
 5011:   withval=$with_libdir; PHP_LIBDIR=$withval
 5012: else
 5013: 
 5014:   PHP_LIBDIR=lib
 5015: 
 5016: 
 5017: fi
 5018: 
 5019: 
 5020: ext_output=$PHP_LIBDIR
 5021: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
 5022: $as_echo "$ext_output" >&6; }
 5023: 
 5024: 
 5025: 
 5026: 
 5027: 
 5028: php_enable_rpath=yes
 5029: 
 5030: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable runpaths" >&5
 5031: $as_echo_n "checking whether to enable runpaths... " >&6; }
 5032: # Check whether --enable-rpath was given.
 5033: if test "${enable_rpath+set}" = set; then :
 5034:   enableval=$enable_rpath; PHP_RPATH=$enableval
 5035: else
 5036: 
 5037:   PHP_RPATH=yes
 5038: 
 5039: 
 5040: fi
 5041: 
 5042: 
 5043: ext_output=$PHP_RPATH
 5044: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
 5045: $as_echo "$ext_output" >&6; }
 5046: 
 5047: 
 5048: 
 5049: 
 5050: 
 5051: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -R" >&5
 5052: $as_echo_n "checking if compiler supports -R... " >&6; }
 5053: if ${php_cv_cc_dashr+:} false; then :
 5054:   $as_echo_n "(cached) " >&6
 5055: else
 5056: 
 5057:   SAVE_LIBS=$LIBS
 5058:   LIBS="-R /usr/$PHP_LIBDIR $LIBS"
 5059:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 5060: /* end confdefs.h.  */
 5061: 
 5062: int
 5063: main ()
 5064: {
 5065: 
 5066:   ;
 5067:   return 0;
 5068: }
 5069: _ACEOF
 5070: if ac_fn_c_try_link "$LINENO"; then :
 5071:   php_cv_cc_dashr=yes
 5072: else
 5073:   php_cv_cc_dashr=no
 5074: fi
 5075: rm -f core conftest.err conftest.$ac_objext \
 5076:     conftest$ac_exeext conftest.$ac_ext
 5077:   LIBS=$SAVE_LIBS
 5078: fi
 5079: 
 5080: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_cc_dashr" >&5
 5081: $as_echo "$php_cv_cc_dashr" >&6; }
 5082: if test $php_cv_cc_dashr = "yes"; then
 5083:   ld_runpath_switch=-R
 5084: else
 5085:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Wl,-rpath," >&5
 5086: $as_echo_n "checking if compiler supports -Wl,-rpath,... " >&6; }
 5087:   if ${php_cv_cc_rpath+:} false; then :
 5088:   $as_echo_n "(cached) " >&6
 5089: else
 5090: 
 5091:     SAVE_LIBS=$LIBS
 5092:     LIBS="-Wl,-rpath,/usr/$PHP_LIBDIR $LIBS"
 5093:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 5094: /* end confdefs.h.  */
 5095: 
 5096: int
 5097: main ()
 5098: {
 5099: 
 5100:   ;
 5101:   return 0;
 5102: }
 5103: _ACEOF
 5104: if ac_fn_c_try_link "$LINENO"; then :
 5105:   php_cv_cc_rpath=yes
 5106: else
 5107:   php_cv_cc_rpath=no
 5108: fi
 5109: rm -f core conftest.err conftest.$ac_objext \
 5110:     conftest$ac_exeext conftest.$ac_ext
 5111:     LIBS=$SAVE_LIBS
 5112: fi
 5113: 
 5114:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_cc_rpath" >&5
 5115: $as_echo "$php_cv_cc_rpath" >&6; }
 5116:   if test $php_cv_cc_rpath = "yes"; then
 5117:     ld_runpath_switch=-Wl,-rpath,
 5118:   else
 5119:         ld_runpath_switch=-L
 5120:   fi
 5121: fi
 5122: if test "$PHP_RPATH" = "no"; then
 5123:   ld_runpath_switch=
 5124: fi
 5125: 
 5126: 
 5127: 
 5128:   for ac_prog in gawk nawk awk mawk
 5129: do
 5130:   # Extract the first word of "$ac_prog", so it can be a program name with args.
 5131: set dummy $ac_prog; ac_word=$2
 5132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 5133: $as_echo_n "checking for $ac_word... " >&6; }
 5134: if ${ac_cv_prog_AWK+:} false; then :
 5135:   $as_echo_n "(cached) " >&6
 5136: else
 5137:   if test -n "$AWK"; then
 5138:   ac_cv_prog_AWK="$AWK" # Let the user override the test.
 5139: else
 5140: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 5141: as_dummy="/usr/xpg4/bin/:$PATH"
 5142: for as_dir in $as_dummy
 5143: do
 5144:   IFS=$as_save_IFS
 5145:   test -z "$as_dir" && as_dir=.
 5146:     for ac_exec_ext in '' $ac_executable_extensions; do
 5147:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 5148:     ac_cv_prog_AWK="$ac_prog"
 5149:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 5150:     break 2
 5151:   fi
 5152: done
 5153:   done
 5154: IFS=$as_save_IFS
 5155: 
 5156: fi
 5157: fi
 5158: AWK=$ac_cv_prog_AWK
 5159: if test -n "$AWK"; then
 5160:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
 5161: $as_echo "$AWK" >&6; }
 5162: else
 5163:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5164: $as_echo "no" >&6; }
 5165: fi
 5166: 
 5167: 
 5168:   test -n "$AWK" && break
 5169: done
 5170: test -n "$AWK" || AWK="bork"
 5171: 
 5172:   case "$AWK" in
 5173:     *mawk)
 5174:       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: mawk is known to have problems on some systems. You should install GNU awk" >&5
 5175: $as_echo "$as_me: WARNING: mawk is known to have problems on some systems. You should install GNU awk" >&2;}
 5176:       ;;
 5177:     *gawk)
 5178:       ;;
 5179:     bork)
 5180:       as_fn_error $? "Could not find awk; Install GNU awk" "$LINENO" 5
 5181:       ;;
 5182:     *)
 5183:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $AWK is broken" >&5
 5184: $as_echo_n "checking if $AWK is broken... " >&6; }
 5185:       if ! $AWK 'function foo() {}' >/dev/null 2>&1 ; then
 5186:         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 5187: $as_echo "yes" >&6; }
 5188:         as_fn_error $? "You should install GNU awk" "$LINENO" 5
 5189:       else
 5190:         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5191: $as_echo "no" >&6; }
 5192:       fi
 5193:       ;;
 5194:   esac
 5195: 
 5196:   PHP_VAR_SUBST="$PHP_VAR_SUBST AWK"
 5197: 
 5198: 
 5199: 
 5200:   for ac_prog in 'bison -y' byacc
 5201: do
 5202:   # Extract the first word of "$ac_prog", so it can be a program name with args.
 5203: set dummy $ac_prog; ac_word=$2
 5204: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 5205: $as_echo_n "checking for $ac_word... " >&6; }
 5206: if ${ac_cv_prog_YACC+:} false; then :
 5207:   $as_echo_n "(cached) " >&6
 5208: else
 5209:   if test -n "$YACC"; then
 5210:   ac_cv_prog_YACC="$YACC" # Let the user override the test.
 5211: else
 5212: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 5213: for as_dir in $PATH
 5214: do
 5215:   IFS=$as_save_IFS
 5216:   test -z "$as_dir" && as_dir=.
 5217:     for ac_exec_ext in '' $ac_executable_extensions; do
 5218:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 5219:     ac_cv_prog_YACC="$ac_prog"
 5220:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 5221:     break 2
 5222:   fi
 5223: done
 5224:   done
 5225: IFS=$as_save_IFS
 5226: 
 5227: fi
 5228: fi
 5229: YACC=$ac_cv_prog_YACC
 5230: if test -n "$YACC"; then
 5231:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
 5232: $as_echo "$YACC" >&6; }
 5233: else
 5234:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5235: $as_echo "no" >&6; }
 5236: fi
 5237: 
 5238: 
 5239:   test -n "$YACC" && break
 5240: done
 5241: test -n "$YACC" || YACC="yacc"
 5242: 
 5243: 
 5244:   # we only support certain bison versions
 5245:   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 2.6.4"
 5246: 
 5247:   # for standalone build of Zend Engine
 5248:   test -z "$SED" && SED=sed
 5249: 
 5250:   bison_version=none
 5251:   if test "$YACC"; then
 5252:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison version" >&5
 5253: $as_echo_n "checking for bison version... " >&6; }
 5254: if ${php_cv_bison_version+:} false; then :
 5255:   $as_echo_n "(cached) " >&6
 5256: else
 5257: 
 5258:       bison_version_vars=`$YACC --version 2> /dev/null | grep 'GNU Bison' | cut -d ' ' -f 4 | $SED -e 's/\./ /g' | tr -d a-z`
 5259:       php_cv_bison_version=invalid
 5260:       if test -n "$bison_version_vars"; then
 5261:         set $bison_version_vars
 5262:         bison_version="${1}.${2}"
 5263:         for bison_check_version in $bison_version_list; do
 5264:           if test "$bison_version" = "$bison_check_version"; then
 5265:             php_cv_bison_version="$bison_check_version (ok)"
 5266:             break
 5267:           fi
 5268:         done
 5269:       fi
 5270: 
 5271: fi
 5272: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_bison_version" >&5
 5273: $as_echo "$php_cv_bison_version" >&6; }
 5274:   fi
 5275:   case $php_cv_bison_version in
 5276:     ""|invalid)
 5277:       bison_msg="bison versions supported for regeneration of the Zend/PHP parsers: $bison_version_list (found: $bison_version)."
 5278:       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $bison_msg" >&5
 5279: $as_echo "$as_me: WARNING: $bison_msg" >&2;}
 5280:       YACC="exit 0;"
 5281:       ;;
 5282:   esac
 5283: 
 5284: 
 5285:   PHP_VAR_SUBST="$PHP_VAR_SUBST YACC"
 5286: 
 5287: 
 5288: 
 5289:   # Extract the first word of "re2c", so it can be a program name with args.
 5290: set dummy re2c; ac_word=$2
 5291: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 5292: $as_echo_n "checking for $ac_word... " >&6; }
 5293: if ${ac_cv_prog_RE2C+:} false; then :
 5294:   $as_echo_n "(cached) " >&6
 5295: else
 5296:   if test -n "$RE2C"; then
 5297:   ac_cv_prog_RE2C="$RE2C" # Let the user override the test.
 5298: else
 5299: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 5300: for as_dir in $PATH
 5301: do
 5302:   IFS=$as_save_IFS
 5303:   test -z "$as_dir" && as_dir=.
 5304:     for ac_exec_ext in '' $ac_executable_extensions; do
 5305:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 5306:     ac_cv_prog_RE2C="re2c"
 5307:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 5308:     break 2
 5309:   fi
 5310: done
 5311:   done
 5312: IFS=$as_save_IFS
 5313: 
 5314: fi
 5315: fi
 5316: RE2C=$ac_cv_prog_RE2C
 5317: if test -n "$RE2C"; then
 5318:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RE2C" >&5
 5319: $as_echo "$RE2C" >&6; }
 5320: else
 5321:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5322: $as_echo "no" >&6; }
 5323: fi
 5324: 
 5325: 
 5326:   if test -n "$RE2C"; then
 5327:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for re2c version" >&5
 5328: $as_echo_n "checking for re2c version... " >&6; }
 5329: if ${php_cv_re2c_version+:} false; then :
 5330:   $as_echo_n "(cached) " >&6
 5331: else
 5332: 
 5333:       re2c_vernum=`$RE2C --vernum 2>/dev/null`
 5334:       if test -z "$re2c_vernum" || test "$re2c_vernum" -lt "1304"; then
 5335:         php_cv_re2c_version=invalid
 5336:       else
 5337:         php_cv_re2c_version="`$RE2C --version | cut -d ' ' -f 2  2>/dev/null` (ok)"
 5338:       fi
 5339: 
 5340: fi
 5341: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_re2c_version" >&5
 5342: $as_echo "$php_cv_re2c_version" >&6; }
 5343:   fi
 5344:   case $php_cv_re2c_version in
 5345:     ""|invalid)
 5346:       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers." >&5
 5347: $as_echo "$as_me: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers." >&2;}
 5348:       RE2C="exit 0;"
 5349:       ;;
 5350:   esac
 5351: 
 5352:   PHP_VAR_SUBST="$PHP_VAR_SUBST RE2C"
 5353: 
 5354: 
 5355: 
 5356: case $php_cv_bison_version in
 5357:   ""|invalid)
 5358:     if ! test -f "$abs_srcdir/Zend/zend_language_parser.h" || ! test -f "$abs_srcdir/Zend/zend_language_parser.c" ; then
 5359:       as_fn_error $? "bison is required to build PHP/Zend when building a GIT checkout!" "$LINENO" 5
 5360:     fi
 5361:     ;;
 5362: esac
 5363: 
 5364: 
 5365: php_enable_re2c_cgoto=no
 5366: 
 5367: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable computed goto gcc extension with re2c" >&5
 5368: $as_echo_n "checking whether to enable computed goto gcc extension with re2c... " >&6; }
 5369: # Check whether --enable-re2c-cgoto was given.
 5370: if test "${enable_re2c_cgoto+set}" = set; then :
 5371:   enableval=$enable_re2c_cgoto; PHP_RE2C_CGOTO=$enableval
 5372: else
 5373: 
 5374:   PHP_RE2C_CGOTO=no
 5375: 
 5376: 
 5377: fi
 5378: 
 5379: 
 5380: ext_output=$PHP_RE2C_CGOTO
 5381: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
 5382: $as_echo "$ext_output" >&6; }
 5383: 
 5384: 
 5385: 
 5386: 
 5387: if test "$PHP_RE2C_CGOTO" = "no"; then
 5388:   RE2C_FLAGS=""
 5389: else
 5390:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether re2c -g works" >&5
 5391: $as_echo_n "checking whether re2c -g works... " >&6; }
 5392:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 5393: /* end confdefs.h.  */
 5394: 
 5395: int
 5396: main ()
 5397: {
 5398: 
 5399: int main(int argc, const char **argv)
 5400: {
 5401:   argc = argc;
 5402:   argv = argv;
 5403: label1:
 5404: label2:
 5405:   static void *adr[] = { &&label1, &&label2};
 5406:   goto *adr[0];
 5407:   return 0;
 5408: }
 5409: 
 5410:   ;
 5411:   return 0;
 5412: }
 5413: _ACEOF
 5414: if ac_fn_c_try_compile "$LINENO"; then :
 5415: 
 5416:     RE2C_FLAGS=""
 5417:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5418: $as_echo "no" >&6; }
 5419: 
 5420: else
 5421: 
 5422:     RE2C_FLAGS="-g"
 5423:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 5424: $as_echo "yes" >&6; }
 5425: 
 5426: fi
 5427: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 5428: fi
 5429: 
 5430:   PHP_VAR_SUBST="$PHP_VAR_SUBST RE2C_FLAGS"
 5431: 
 5432: 
 5433: 
 5434: case $host_cpu in
 5435:   alpha*)
 5436:     if test "$GCC" = "yes"; then
 5437:       CFLAGS="$CFLAGS -mieee"
 5438:     else
 5439:       CFLAGS="$CFLAGS -ieee"
 5440:     fi
 5441:     ;;
 5442:   sparc*)
 5443:     if test "$SUNCC" = "yes"; then
 5444:       CFLAGS="$CFLAGS -xmemalign=8s"
 5445:     fi
 5446:     ;;
 5447: esac
 5448: 
 5449: if test "$GCC" = "yes"; then
 5450:   case $host_alias in
 5451:   *darwin*)
 5452:     GCC_MAJOR_VERSION=`$CC -dumpversion | /usr/bin/sed -nE '1s/([0-9]+)\.[0-9]+\..*/\1/;1p'`
 5453:     ;;
 5454:   *)
 5455:     GCC_MAJOR_VERSION=`$CC --version | $SED -n '1s/[^0-9]*//;1s/\..*//;1p'`
 5456:     ;;
 5457:   esac
 5458:   if test $GCC_MAJOR_VERSION -ge 4; then
 5459:     CFLAGS="$CFLAGS -fvisibility=hidden"
 5460:   fi
 5461: fi
 5462: 
 5463: case $host_alias in
 5464:   *solaris*)
 5465:     CPPFLAGS="$CPPFLAGS -D_POSIX_PTHREAD_SEMANTICS"
 5466:     if test "${enable_libgcc+set}" != "set" && test "$GCC" = "yes"; then
 5467:       enable_libgcc=yes
 5468:     fi
 5469:     ;;
 5470:   *dgux*)
 5471:     CPPFLAGS="$CPPFLAGS -D_BSD_TIMEOFDAY_FLAVOR"
 5472:     ;;
 5473:   *darwin*|*rhapsody*)
 5474:     if test -n "$GCC"; then
 5475: 
 5476:   gcc_arg_name=ac_cv_gcc_arg_no_cpp_precomp
 5477:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -no-cpp-precomp" >&5
 5478: $as_echo_n "checking whether $CC supports -no-cpp-precomp... " >&6; }
 5479: if ${ac_cv_gcc_arg_no_cpp_precomp+:} false; then :
 5480:   $as_echo_n "(cached) " >&6
 5481: else
 5482: 
 5483:   echo 'void somefunc() { };' > conftest.c
 5484:   cmd='$CC -no-cpp-precomp -c conftest.c'
 5485:   if eval $cmd 2>&1 | $EGREP -e -no-cpp-precomp >/dev/null ; then
 5486:     ac_result=no
 5487:   else
 5488:     ac_result=yes
 5489:   fi
 5490:   eval $gcc_arg_name=$ac_result
 5491:   rm -f conftest.*
 5492: 
 5493: fi
 5494: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_arg_no_cpp_precomp" >&5
 5495: $as_echo "$ac_cv_gcc_arg_no_cpp_precomp" >&6; }
 5496:   if eval test "\$$gcc_arg_name" = "yes"; then
 5497:     gcc_no_cpp_precomp=yes
 5498:   else
 5499:     :
 5500: 
 5501:   fi
 5502: 
 5503:       if test "$gcc_no_cpp_precomp" = "yes"; then
 5504:         CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
 5505:       fi
 5506:     fi
 5507:     php_multiple_shlib_versions_ok=yes
 5508:     ;;
 5509:   *beos*)
 5510:     beos_threads=1
 5511:     LIBS="$LIBS -lbe -lroot"
 5512:     ;;
 5513:   *mips*)
 5514:     CPPFLAGS="$CPPFLAGS -D_XPG_IV"
 5515:     ;;
 5516:   *hpux*)
 5517:     if test "$GCC" = "yes"; then
 5518:       CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
 5519:     fi
 5520:     ;;
 5521:   *netware*)
 5522: 
 5523:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 5524:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
 5525:   php_c_post=
 5526:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 5527:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
 5528:   php_cxx_post=
 5529:   php_lo=lo
 5530: 
 5531:   case $with_pic in
 5532:     yes) pic_setting='-prefer-pic';;
 5533:     no)  pic_setting='-prefer-non-pic';;
 5534:   esac
 5535: 
 5536:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 5537:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
 5538:   shared_c_post=
 5539:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 5540:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
 5541:   shared_cxx_post=
 5542:   shared_lo=lo
 5543: 
 5544: 
 5545: 
 5546:   case /main in
 5547:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
 5548:   /*) ac_srcdir=`echo "/main"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
 5549:   *) ac_srcdir="$abs_srcdir//main/"; ac_bdir="/main/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
 5550:   esac
 5551: 
 5552: 
 5553: 
 5554:   b_c_pre=$php_c_pre
 5555:   b_cxx_pre=$php_cxx_pre
 5556:   b_c_meta=$php_c_meta
 5557:   b_cxx_meta=$php_cxx_meta
 5558:   b_c_post=$php_c_post
 5559:   b_cxx_post=$php_cxx_post
 5560:   b_lo=$php_lo
 5561: 
 5562: 
 5563:   old_IFS=$IFS
 5564:   for ac_src in internal_functions.c; do
 5565: 
 5566:       IFS=.
 5567:       set $ac_src
 5568:       ac_obj=$1
 5569:       IFS=$old_IFS
 5570: 
 5571:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
 5572: 
 5573:       case $ac_src in
 5574:         *.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" ;;
 5575:         *.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" ;;
 5576:         *.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" ;;
 5577:         *.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" ;;
 5578:       esac
 5579: 
 5580:     cat >>Makefile.objects<<EOF
 5581: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
 5582: 	$ac_comp
 5583: EOF
 5584:   done
 5585: 
 5586: 
 5587: 
 5588: 
 5589:   case win32 in
 5590:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
 5591:   /*) ac_srcdir=`echo "win32"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
 5592:   *) ac_srcdir="$abs_srcdir/win32/"; ac_bdir="win32/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
 5593:   esac
 5594: 
 5595: 
 5596: 
 5597:   b_c_pre=$php_c_pre
 5598:   b_cxx_pre=$php_cxx_pre
 5599:   b_c_meta=$php_c_meta
 5600:   b_cxx_meta=$php_cxx_meta
 5601:   b_c_post=$php_c_post
 5602:   b_cxx_post=$php_cxx_post
 5603:   b_lo=$php_lo
 5604: 
 5605: 
 5606:   old_IFS=$IFS
 5607:   for ac_src in sendmail.c; do
 5608: 
 5609:       IFS=.
 5610:       set $ac_src
 5611:       ac_obj=$1
 5612:       IFS=$old_IFS
 5613: 
 5614:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
 5615: 
 5616:       case $ac_src in
 5617:         *.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" ;;
 5618:         *.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" ;;
 5619:         *.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" ;;
 5620:         *.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" ;;
 5621:       esac
 5622: 
 5623:     cat >>Makefile.objects<<EOF
 5624: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
 5625: 	$ac_comp
 5626: EOF
 5627:   done
 5628: 
 5629: 
 5630:     PHP5LIB_SHARED_LIBADD=\$\(EXTRA_LIBS\)
 5631:     EXTENSION_DIR=sys:/php$PHP_MAJOR_VERSION/ext
 5632: 
 5633:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP5LIB_SHARED_LIBADD"
 5634: 
 5635: 
 5636:   install_modules="install-modules"
 5637: 
 5638:   case $host_alias in
 5639:     *aix*)
 5640:       suffix=so
 5641:       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'
 5642:       ;;
 5643:     *netware*)
 5644:       suffix=nlm
 5645:       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)'
 5646:       ;;
 5647:     *)
 5648:       suffix=la
 5649:       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)'
 5650:       ;;
 5651:   esac
 5652: 
 5653:   if test "x" = "xyes"; then
 5654:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/php5lib.$suffix"
 5655:   else
 5656:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/php5lib.$suffix"
 5657:   fi
 5658: 
 5659:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_GLOBAL_OBJS"
 5660: 
 5661:   cat >>Makefile.objects<<EOF
 5662: \$(phplibdir)/php5lib.$suffix: netware/php5lib.$suffix
 5663: 	\$(LIBTOOL) --mode=install cp netware/php5lib.$suffix \$(phplibdir)
 5664: 
 5665: netware/php5lib.$suffix: \$(PHP_GLOBAL_OBJS) \$(PHP5LIB_SHARED_DEPENDENCIES)
 5666: 	$link_cmd
 5667: 
 5668: EOF
 5669: 
 5670:     ;;
 5671: esac
 5672: 
 5673: # Disable PIC mode by default where it is known to be safe to do so,
 5674: # to avoid the performance hit from the lost register
 5675: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force non-PIC code in shared modules" >&5
 5676: $as_echo_n "checking whether to force non-PIC code in shared modules... " >&6; }
 5677: case $host_alias in
 5678:   i?86-*-linux*|i?86-*-freebsd*)
 5679:     if test "${with_pic+set}" != "set" || test "$with_pic" = "no"; then
 5680:       with_pic=no
 5681:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 5682: $as_echo "yes" >&6; }
 5683:     else
 5684:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5685: $as_echo "no" >&6; }
 5686:     fi
 5687:     ;;
 5688:   *)
 5689:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5690: $as_echo "no" >&6; }
 5691:     ;;
 5692: esac
 5693: 
 5694: 
 5695: 
 5696: 
 5697: 
 5698: 
 5699: 
 5700: 
 5701: 
 5702: 
 5703: 
 5704: 
 5705: 
 5706: 
 5707: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether /dev/urandom exists" >&5
 5708: $as_echo_n "checking whether /dev/urandom exists... " >&6; }
 5709: if test -r "/dev/urandom" && test -c "/dev/urandom"; then
 5710: 
 5711: $as_echo "#define HAVE_DEV_URANDOM 1" >>confdefs.h
 5712: 
 5713:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 5714: $as_echo "yes" >&6; }
 5715: else
 5716:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5717: $as_echo "no" >&6; }
 5718:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether /dev/arandom exists" >&5
 5719: $as_echo_n "checking whether /dev/arandom exists... " >&6; }
 5720:   if test -r "/dev/arandom" && test -c "/dev/arandom"; then
 5721: 
 5722: $as_echo "#define HAVE_DEV_ARANDOM 1" >>confdefs.h
 5723: 
 5724:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 5725: $as_echo "yes" >&6; }
 5726:   else
 5727:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5728: $as_echo "no" >&6; }
 5729:   fi
 5730: fi
 5731: 
 5732: 
 5733: 
 5734: 
 5735: 
 5736: 
 5737: 
 5738: 
 5739: 
 5740: 
 5741: 
 5742: 
 5743: 
 5744: 
 5745: 
 5746: 
 5747: 
 5748: 
 5749: 
 5750: 
 5751: 
 5752: 
 5753: 
 5754: 
 5755: if test "$beos_threads" = "1"; then
 5756:   pthreads_working="yes"
 5757:   ac_cv_pthreads_cflags=""
 5758: else
 5759:   save_CFLAGS=$CFLAGS
 5760:   save_LIBS=$LIBS
 5761: 
 5762: if test -n "$ac_cv_pthreads_lib"; then
 5763:   LIBS="$LIBS -l$ac_cv_pthreads_lib"
 5764: fi
 5765: 
 5766: if test -n "$ac_cv_pthreads_cflags"; then
 5767:   CFLAGS="$CFLAGS $ac_cv_pthreads_cflags"
 5768: fi
 5769: 
 5770: 
 5771: if test "$cross_compiling" = yes; then :
 5772: 
 5773:     pthreads_working=no
 5774:   case $host_alias in
 5775:   *netware*)
 5776:     pthreads_working=yes
 5777:   esac
 5778: 
 5779: 
 5780: else
 5781:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 5782: /* end confdefs.h.  */
 5783: 
 5784: #include <pthread.h>
 5785: #include <stddef.h>
 5786: 
 5787: void *thread_routine(void *data) {
 5788:     return data;
 5789: }
 5790: 
 5791: int main() {
 5792:     pthread_t thd;
 5793:     pthread_mutexattr_t mattr;
 5794:     int data = 1;
 5795:     pthread_mutexattr_init(&mattr);
 5796:     return pthread_create(&thd, NULL, thread_routine, &data);
 5797: }
 5798: _ACEOF
 5799: if ac_fn_c_try_run "$LINENO"; then :
 5800: 
 5801:   pthreads_working=yes
 5802: 
 5803: else
 5804: 
 5805:   pthreads_working=no
 5806: 
 5807: fi
 5808: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 5809:   conftest.$ac_objext conftest.beam conftest.$ac_ext
 5810: fi
 5811: 
 5812:   LIBS=$save_LIBS
 5813:   CFLAGS=$save_CFLAGS
 5814: 
 5815:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads_cflags" >&5
 5816: $as_echo_n "checking for pthreads_cflags... " >&6; }
 5817: if ${ac_cv_pthreads_cflags+:} false; then :
 5818:   $as_echo_n "(cached) " >&6
 5819: else
 5820: 
 5821:   ac_cv_pthreads_cflags=
 5822:   if test "$pthreads_working" != "yes"; then
 5823:     for flag in -kthread -pthread -pthreads -mthreads -Kthread -threads -mt -qthreaded; do
 5824:       ac_save=$CFLAGS
 5825:       CFLAGS="$CFLAGS $flag"
 5826: 
 5827: if test "$cross_compiling" = yes; then :
 5828: 
 5829:     pthreads_working=no
 5830:   case $host_alias in
 5831:   *netware*)
 5832:     pthreads_working=yes
 5833:   esac
 5834: 
 5835: 
 5836: else
 5837:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 5838: /* end confdefs.h.  */
 5839: 
 5840: #include <pthread.h>
 5841: #include <stddef.h>
 5842: 
 5843: void *thread_routine(void *data) {
 5844:     return data;
 5845: }
 5846: 
 5847: int main() {
 5848:     pthread_t thd;
 5849:     pthread_mutexattr_t mattr;
 5850:     int data = 1;
 5851:     pthread_mutexattr_init(&mattr);
 5852:     return pthread_create(&thd, NULL, thread_routine, &data);
 5853: }
 5854: _ACEOF
 5855: if ac_fn_c_try_run "$LINENO"; then :
 5856: 
 5857:   pthreads_working=yes
 5858: 
 5859: else
 5860: 
 5861:   pthreads_working=no
 5862: 
 5863: fi
 5864: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 5865:   conftest.$ac_objext conftest.beam conftest.$ac_ext
 5866: fi
 5867: 
 5868:       CFLAGS=$ac_save
 5869:       if test "$pthreads_working" = "yes"; then
 5870:         ac_cv_pthreads_cflags=$flag
 5871:         break
 5872:       fi
 5873:     done
 5874:   fi
 5875: fi
 5876: 
 5877: fi
 5878: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthreads_cflags" >&5
 5879: $as_echo "$ac_cv_pthreads_cflags" >&6; }
 5880: 
 5881: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads_lib" >&5
 5882: $as_echo_n "checking for pthreads_lib... " >&6; }
 5883: if ${ac_cv_pthreads_lib+:} false; then :
 5884:   $as_echo_n "(cached) " >&6
 5885: else
 5886: 
 5887: ac_cv_pthreads_lib=
 5888: if test "$pthreads_working" != "yes"; then
 5889:   for lib in pthread pthreads c_r; do
 5890:     ac_save=$LIBS
 5891:     LIBS="$LIBS -l$lib"
 5892: 
 5893: if test "$cross_compiling" = yes; then :
 5894: 
 5895:     pthreads_working=no
 5896:   case $host_alias in
 5897:   *netware*)
 5898:     pthreads_working=yes
 5899:   esac
 5900: 
 5901: 
 5902: else
 5903:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 5904: /* end confdefs.h.  */
 5905: 
 5906: #include <pthread.h>
 5907: #include <stddef.h>
 5908: 
 5909: void *thread_routine(void *data) {
 5910:     return data;
 5911: }
 5912: 
 5913: int main() {
 5914:     pthread_t thd;
 5915:     pthread_mutexattr_t mattr;
 5916:     int data = 1;
 5917:     pthread_mutexattr_init(&mattr);
 5918:     return pthread_create(&thd, NULL, thread_routine, &data);
 5919: }
 5920: _ACEOF
 5921: if ac_fn_c_try_run "$LINENO"; then :
 5922: 
 5923:   pthreads_working=yes
 5924: 
 5925: else
 5926: 
 5927:   pthreads_working=no
 5928: 
 5929: fi
 5930: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 5931:   conftest.$ac_objext conftest.beam conftest.$ac_ext
 5932: fi
 5933: 
 5934:     LIBS=$ac_save
 5935:     if test "$pthreads_working" = "yes"; then
 5936:       ac_cv_pthreads_lib=$lib
 5937:       break
 5938:     fi
 5939:   done
 5940: fi
 5941: 
 5942: fi
 5943: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthreads_lib" >&5
 5944: $as_echo "$ac_cv_pthreads_lib" >&6; }
 5945: 
 5946: if test "$pthreads_working" = "yes"; then
 5947:   threads_result="POSIX-Threads found"
 5948: else
 5949:   threads_result="POSIX-Threads not found"
 5950: fi
 5951: 
 5952: 
 5953: # Check whether --enable- was given.
 5954: if test "${enable_+set}" = set; then :
 5955:   enableval=$enable_;
 5956: fi
 5957: 
 5958: 
 5959: 
 5960: 
 5961: 
 5962:   PHP_VAR_SUBST="$PHP_VAR_SUBST SHLIB_SUFFIX_NAME"
 5963: 
 5964: 
 5965: 
 5966: 
 5967: 
 5968:   PHP_VAR_SUBST="$PHP_VAR_SUBST SHLIB_DL_SUFFIX_NAME"
 5969: 
 5970: 
 5971: 
 5972:  SHLIB_SUFFIX_NAME=so
 5973:  SHLIB_DL_SUFFIX_NAME=$SHLIB_SUFFIX_NAME
 5974:  case $host_alias in
 5975:  *hpux*)
 5976:    SHLIB_SUFFIX_NAME=sl
 5977:    SHLIB_DL_SUFFIX_NAME=sl
 5978:    ;;
 5979:  *darwin*)
 5980:    SHLIB_SUFFIX_NAME=dylib
 5981:    SHLIB_DL_SUFFIX_NAME=so
 5982:    ;;
 5983:  esac
 5984: 
 5985: 
 5986:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 5987:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
 5988:   php_c_post=
 5989:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 5990:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
 5991:   php_cxx_post=
 5992:   php_lo=lo
 5993: 
 5994:   case $with_pic in
 5995:     yes) pic_setting='-prefer-pic';;
 5996:     no)  pic_setting='-prefer-non-pic';;
 5997:   esac
 5998: 
 5999:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 6000:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
 6001:   shared_c_post=
 6002:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 6003:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
 6004:   shared_cxx_post=
 6005:   shared_lo=lo
 6006: 
 6007: PHP_SAPI=none
 6008: 
 6009: 
 6010: 
 6011: SAPI_SHARED=libs/libphp$PHP_MAJOR_VERSION.$SHLIB_DL_SUFFIX_NAME
 6012: SAPI_STATIC=libs/libphp$PHP_MAJOR_VERSION.a
 6013: SAPI_LIBTOOL=libphp$PHP_MAJOR_VERSION.la
 6014: 
 6015: 
 6016:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
 6017: $as_echo "" >&6; }
 6018:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Configuring SAPI modules${T_ME}" >&5
 6019: $as_echo "${T_MD}Configuring SAPI modules${T_ME}" >&6; }
 6020: 
 6021: 
 6022: 
 6023: 
 6024: 
 6025: php_with_aolserver=no
 6026: 
 6027: 
 6028: 
 6029: # Check whether --with-aolserver was given.
 6030: if test "${with_aolserver+set}" = set; then :
 6031:   withval=$with_aolserver; PHP_AOLSERVER=$withval
 6032: else
 6033: 
 6034:   PHP_AOLSERVER=no
 6035: 
 6036: 
 6037: fi
 6038: 
 6039: 
 6040: ext_output=$PHP_AOLSERVER
 6041: 
 6042: 
 6043: 
 6044: 
 6045: 
 6046: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AOLserver support" >&5
 6047: $as_echo_n "checking for AOLserver support... " >&6; }
 6048: 
 6049: if test "$PHP_AOLSERVER" != "no"; then
 6050:   if test -d "$PHP_AOLSERVER/include"; then
 6051:     PHP_AOLSERVER_SRC=$PHP_AOLSERVER
 6052:   fi
 6053:   if test -z "$PHP_AOLSERVER_SRC" || test ! -d $PHP_AOLSERVER_SRC/include; then
 6054:     as_fn_error $? "Please specify the path to the source distribution of AOLserver using --with-aolserver-src=DIR" "$LINENO" 5
 6055:   fi
 6056:   if test ! -d $PHP_AOLSERVER/bin ; then
 6057:     as_fn_error $? "Please specify the path to the root of AOLserver using --with-aolserver=DIR" "$LINENO" 5
 6058:   fi
 6059: 
 6060:   enable_maintainer_zts=yes
 6061:   if test "$pthreads_working" != "yes"; then
 6062:     as_fn_error $? "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5
 6063:   fi
 6064: 
 6065: 
 6066:   if test "$PHP_AOLSERVER_SRC/include" != "/usr/include"; then
 6067: 
 6068:   if test -z "$PHP_AOLSERVER_SRC/include" || echo "$PHP_AOLSERVER_SRC/include" | grep '^/' >/dev/null ; then
 6069:     ai_p=$PHP_AOLSERVER_SRC/include
 6070:   else
 6071: 
 6072:     ep_dir=`echo $PHP_AOLSERVER_SRC/include|$SED 's%/*[^/][^/]*/*$%%'`
 6073: 
 6074:     ep_realdir=`(cd "$ep_dir" && pwd)`
 6075:     ai_p="$ep_realdir"/`basename "$PHP_AOLSERVER_SRC/include"`
 6076:   fi
 6077: 
 6078: 
 6079: 
 6080:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
 6081: 
 6082:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
 6083:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
 6084:     eval "INCLUDEPATH$unique=set"
 6085: 
 6086:       if test ""; then
 6087:         INCLUDES="-I$ai_p $INCLUDES"
 6088:       else
 6089:         INCLUDES="$INCLUDES -I$ai_p"
 6090:       fi
 6091: 
 6092:   fi
 6093: 
 6094:   fi
 6095: 
 6096: 
 6097: $as_echo "#define HAVE_AOLSERVER 1" >>confdefs.h
 6098: 
 6099: 
 6100:   if test "shared" = "program"; then
 6101:     PHP_BINARIES="$PHP_BINARIES aolserver"
 6102:   elif test "$PHP_SAPI" != "none"; then
 6103:     as_fn_error $? "
 6104: +--------------------------------------------------------------------+
 6105: |                        *** ATTENTION ***                           |
 6106: |                                                                    |
 6107: | You've configured multiple SAPIs to be build. You can build only   |
 6108: | one SAPI module plus CGI, CLI and FPM binaries at the same time.   |
 6109: +--------------------------------------------------------------------+
 6110: " "$LINENO" 5
 6111:   else
 6112:     PHP_SAPI=aolserver
 6113:   fi
 6114: 
 6115: 
 6116: 
 6117:     BUILD_DIR="$BUILD_DIR sapi/aolserver"
 6118: 
 6119: 
 6120: 
 6121:   PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS aolserver"
 6122: 
 6123: 
 6124:     case "shared" in
 6125:     static)
 6126: 
 6127:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 6128:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
 6129:   php_c_post=
 6130:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 6131:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
 6132:   php_cxx_post=
 6133:   php_lo=lo
 6134: 
 6135:   case $with_pic in
 6136:     yes) pic_setting='-prefer-pic';;
 6137:     no)  pic_setting='-prefer-non-pic';;
 6138:   esac
 6139: 
 6140:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 6141:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
 6142:   shared_c_post=
 6143:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 6144:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
 6145:   shared_cxx_post=
 6146:   shared_lo=lo
 6147: 
 6148:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
 6149:   php_sapi_module=static
 6150: ;;
 6151:     shared)
 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=libphp$PHP_MAJOR_VERSION.la
 6175:   php_sapi_module=shared
 6176: 
 6177:   php_c_pre=$shared_c_pre
 6178:   php_c_meta=$shared_c_meta
 6179:   php_c_post=$shared_c_post
 6180:   php_cxx_pre=$shared_cxx_pre
 6181:   php_cxx_meta=$shared_cxx_meta
 6182:   php_cxx_post=$shared_cxx_post
 6183:   php_lo=$shared_lo
 6184: ;;
 6185:     bundle)
 6186: 
 6187:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 6188:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
 6189:   php_c_post=
 6190:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 6191:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
 6192:   php_cxx_post=
 6193:   php_lo=lo
 6194: 
 6195:   case $with_pic in
 6196:     yes) pic_setting='-prefer-pic';;
 6197:     no)  pic_setting='-prefer-non-pic';;
 6198:   esac
 6199: 
 6200:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 6201:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
 6202:   shared_c_post=
 6203:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 6204:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
 6205:   shared_cxx_post=
 6206:   shared_lo=lo
 6207: 
 6208:   OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
 6209:   php_sapi_module=static
 6210: ;;
 6211:     esac
 6212:     install_sapi="install-sapi"
 6213: 
 6214: 
 6215:   case sapi/aolserver in
 6216:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
 6217:   /*) ac_srcdir=`echo "sapi/aolserver"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
 6218:   *) ac_srcdir="$abs_srcdir/sapi/aolserver/"; ac_bdir="sapi/aolserver/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
 6219:   esac
 6220: 
 6221: 
 6222: 
 6223:   b_c_pre=$php_c_pre
 6224:   b_cxx_pre=$php_cxx_pre
 6225:   b_c_meta=$php_c_meta
 6226:   b_cxx_meta=$php_cxx_meta
 6227:   b_c_post=$php_c_post
 6228:   b_cxx_post=$php_cxx_post
 6229:   b_lo=$php_lo
 6230: 
 6231: 
 6232:   old_IFS=$IFS
 6233:   for ac_src in aolserver.c; do
 6234: 
 6235:       IFS=.
 6236:       set $ac_src
 6237:       ac_obj=$1
 6238:       IFS=$old_IFS
 6239: 
 6240:       PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
 6241: 
 6242:       case $ac_src in
 6243:         *.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" ;;
 6244:         *.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" ;;
 6245:         *.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" ;;
 6246:         *.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" ;;
 6247:       esac
 6248: 
 6249:     cat >>Makefile.objects<<EOF
 6250: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
 6251: 	$ac_comp
 6252: EOF
 6253:   done
 6254: 
 6255: 
 6256: 
 6257: 
 6258:   INSTALL_IT="\$(INSTALL) -m 0755 $SAPI_SHARED \$(INSTALL_ROOT)$PHP_AOLSERVER/bin/"
 6259: fi
 6260: 
 6261: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_AOLSERVER" >&5
 6262: $as_echo "$PHP_AOLSERVER" >&6; }
 6263: 
 6264: 
 6265: 
 6266: 
 6267: 
 6268: php_with_apxs=no
 6269: 
 6270: 
 6271: 
 6272: # Check whether --with-apxs was given.
 6273: if test "${with_apxs+set}" = set; then :
 6274:   withval=$with_apxs; PHP_APXS=$withval
 6275: else
 6276: 
 6277:   PHP_APXS=no
 6278: 
 6279: 
 6280: fi
 6281: 
 6282: 
 6283: ext_output=$PHP_APXS
 6284: 
 6285: 
 6286: 
 6287: 
 6288: 
 6289: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apache 1.x module support via DSO through APXS" >&5
 6290: $as_echo_n "checking for Apache 1.x module support via DSO through APXS... " >&6; }
 6291: 
 6292: if test "$PHP_APXS" != "no"; then
 6293:   if test "$PHP_APXS" = "yes"; then
 6294:     APXS=apxs
 6295:     $APXS -q CFLAGS >/dev/null 2>&1
 6296:     if test "$?" != "0" && test -x /usr/sbin/apxs; then #SUSE 6.x
 6297:       APXS=/usr/sbin/apxs
 6298:     fi
 6299:   else
 6300: 
 6301:   if test -z "$PHP_APXS" || echo "$PHP_APXS" | grep '^/' >/dev/null ; then
 6302:     APXS=$PHP_APXS
 6303:   else
 6304: 
 6305:     ep_dir=`echo $PHP_APXS|$SED 's%/*[^/][^/]*/*$%%'`
 6306: 
 6307:     ep_realdir=`(cd "$ep_dir" && pwd)`
 6308:     APXS="$ep_realdir"/`basename "$PHP_APXS"`
 6309:   fi
 6310: 
 6311:   fi
 6312: 
 6313:   $APXS -q CFLAGS >/dev/null 2>&1
 6314:   if test "$?" != "0"; then
 6315:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
 6316: $as_echo "" >&6; }
 6317:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
 6318: $as_echo "" >&6; }
 6319:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, I was not able to successfully run APXS.  Possible reasons:" >&5
 6320: $as_echo "Sorry, I was not able to successfully run APXS.  Possible reasons:" >&6; }
 6321:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
 6322: $as_echo "" >&6; }
 6323:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: 1.  Perl is not installed;" >&5
 6324: $as_echo "1.  Perl is not installed;" >&6; }
 6325:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.  Apache was not compiled with DSO support (--enable-module=so);" >&5
 6326: $as_echo "2.  Apache was not compiled with DSO support (--enable-module=so);" >&6; }
 6327:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: 3.  'apxs' is not in your path.  Try to use --with-apxs=/path/to/apxs" >&5
 6328: $as_echo "3.  'apxs' is not in your path.  Try to use --with-apxs=/path/to/apxs" >&6; }
 6329:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: The output of $APXS follows" >&5
 6330: $as_echo "The output of $APXS follows" >&6; }
 6331:     $APXS -q CFLAGS
 6332:     as_fn_error $? "Aborting" "$LINENO" 5
 6333:   fi
 6334: 
 6335:   APXS_LDFLAGS="@SYBASE_LFLAGS@ @SYBASE_LIBS@ @SYBASE_CT_LFLAGS@ @SYBASE_CT_LIBS@"
 6336:   APXS_INCLUDEDIR=`$APXS -q INCLUDEDIR`
 6337:   APXS_CFLAGS=`$APXS -q CFLAGS`
 6338:   APXS_HTTPD=`$APXS -q SBINDIR`/`$APXS -q TARGET`
 6339:   APACHE_INCLUDE=-I$APXS_INCLUDEDIR
 6340: 
 6341:   # Test that we're trying to configure with apache 1.x
 6342: 
 6343:   ac_output=`$APXS_HTTPD -v 2>&1 | grep version | $SED -e 's/Oracle-HTTP-//'`
 6344:   ac_IFS=$IFS
 6345: IFS="- /.
 6346: "
 6347:   set $ac_output
 6348:   IFS=$ac_IFS
 6349: 
 6350:   APACHE_VERSION=`expr $4 \* 1000000 + $5 \* 1000 + $6`
 6351: 
 6352:   if test "$APACHE_VERSION" -ge 2000000; then
 6353:     as_fn_error $? "You have enabled Apache 1.3 support while your server is Apache 2.  Please use the appropriate switch --with-apxs2" "$LINENO" 5
 6354:   fi
 6355: 
 6356:   for flag in $APXS_CFLAGS; do
 6357:     case $flag in
 6358:     -D*) APACHE_CPPFLAGS="$APACHE_CPPFLAGS $flag";;
 6359:     esac
 6360:   done
 6361: 
 6362:   case $host_alias in
 6363:   *aix*)
 6364:     APXS_LIBEXECDIR=`$APXS -q LIBEXECDIR`
 6365:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-brtl -Wl,-bI:$APXS_LIBEXECDIR/httpd.exp"
 6366:     PHP_AIX_LDFLAGS="-Wl,-brtl"
 6367:     build_type=shared
 6368:     ;;
 6369:   *darwin*)
 6370:     MH_BUNDLE_FLAGS="-dynamic -twolevel_namespace -bundle -bundle_loader $APXS_HTTPD"
 6371: 
 6372:   PHP_VAR_SUBST="$PHP_VAR_SUBST MH_BUNDLE_FLAGS"
 6373: 
 6374:     SAPI_SHARED=libs/libphp5.so
 6375:     build_type=bundle
 6376:     ;;
 6377:   *)
 6378:     build_type=shared
 6379:     ;;
 6380:   esac
 6381: 
 6382: 
 6383:   if test "$build_type" = "program"; then
 6384:     PHP_BINARIES="$PHP_BINARIES apache"
 6385:   elif test "$PHP_SAPI" != "none"; then
 6386:     as_fn_error $? "
 6387: +--------------------------------------------------------------------+
 6388: |                        *** ATTENTION ***                           |
 6389: |                                                                    |
 6390: | You've configured multiple SAPIs to be build. You can build only   |
 6391: | one SAPI module plus CGI, CLI and FPM binaries at the same time.   |
 6392: +--------------------------------------------------------------------+
 6393: " "$LINENO" 5
 6394:   else
 6395:     PHP_SAPI=apache
 6396:   fi
 6397: 
 6398: 
 6399: 
 6400:     BUILD_DIR="$BUILD_DIR sapi/apache"
 6401: 
 6402: 
 6403: 
 6404:   PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS apache"
 6405: 
 6406: 
 6407:     case "$build_type" in
 6408:     static)
 6409: 
 6410:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 6411:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
 6412:   php_c_post=
 6413:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 6414:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
 6415:   php_cxx_post=
 6416:   php_lo=lo
 6417: 
 6418:   case $with_pic in
 6419:     yes) pic_setting='-prefer-pic';;
 6420:     no)  pic_setting='-prefer-non-pic';;
 6421:   esac
 6422: 
 6423:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 6424:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
 6425:   shared_c_post=
 6426:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 6427:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
 6428:   shared_cxx_post=
 6429:   shared_lo=lo
 6430: 
 6431:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
 6432:   php_sapi_module=static
 6433: ;;
 6434:     shared)
 6435: 
 6436:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 6437:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
 6438:   php_c_post=
 6439:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 6440:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
 6441:   php_cxx_post=
 6442:   php_lo=lo
 6443: 
 6444:   case $with_pic in
 6445:     yes) pic_setting='-prefer-pic';;
 6446:     no)  pic_setting='-prefer-non-pic';;
 6447:   esac
 6448: 
 6449:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 6450:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
 6451:   shared_c_post=
 6452:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 6453:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
 6454:   shared_cxx_post=
 6455:   shared_lo=lo
 6456: 
 6457:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
 6458:   php_sapi_module=shared
 6459: 
 6460:   php_c_pre=$shared_c_pre
 6461:   php_c_meta=$shared_c_meta
 6462:   php_c_post=$shared_c_post
 6463:   php_cxx_pre=$shared_cxx_pre
 6464:   php_cxx_meta=$shared_cxx_meta
 6465:   php_cxx_post=$shared_cxx_post
 6466:   php_lo=$shared_lo
 6467: ;;
 6468:     bundle)
 6469: 
 6470:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 6471:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
 6472:   php_c_post=
 6473:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 6474:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
 6475:   php_cxx_post=
 6476:   php_lo=lo
 6477: 
 6478:   case $with_pic in
 6479:     yes) pic_setting='-prefer-pic';;
 6480:     no)  pic_setting='-prefer-non-pic';;
 6481:   esac
 6482: 
 6483:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 6484:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
 6485:   shared_c_post=
 6486:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 6487:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
 6488:   shared_cxx_post=
 6489:   shared_lo=lo
 6490: 
 6491:   OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
 6492:   php_sapi_module=static
 6493: ;;
 6494:     esac
 6495:     install_sapi="install-sapi"
 6496: 
 6497: 
 6498:   case sapi/apache in
 6499:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
 6500:   /*) ac_srcdir=`echo "sapi/apache"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
 6501:   *) ac_srcdir="$abs_srcdir/sapi/apache/"; ac_bdir="sapi/apache/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
 6502:   esac
 6503: 
 6504: 
 6505: 
 6506:   b_c_pre=$php_c_pre
 6507:   b_cxx_pre=$php_cxx_pre
 6508:   b_c_meta=$php_c_meta
 6509:   b_cxx_meta=$php_cxx_meta
 6510:   b_c_post=$php_c_post
 6511:   b_cxx_post=$php_cxx_post
 6512:   b_lo=$php_lo
 6513: 
 6514: 
 6515:   old_IFS=$IFS
 6516:   for ac_src in sapi_apache.c mod_php5.c php_apache.c; do
 6517: 
 6518:       IFS=.
 6519:       set $ac_src
 6520:       ac_obj=$1
 6521:       IFS=$old_IFS
 6522: 
 6523:       PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
 6524: 
 6525:       case $ac_src in
 6526:         *.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" ;;
 6527:         *.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" ;;
 6528:         *.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" ;;
 6529:         *.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" ;;
 6530:       esac
 6531: 
 6532:     cat >>Makefile.objects<<EOF
 6533: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
 6534: 	$ac_comp
 6535: EOF
 6536:   done
 6537: 
 6538: 
 6539: 
 6540: 
 6541: 
 6542:   # Test whether apxs support -S option
 6543:   $APXS -q -S CFLAGS="$APXS_CFLAGS" CFLAGS >/dev/null 2>&1
 6544: 
 6545:   if test "$?" != "0"; then
 6546:     APACHE_INSTALL="$APXS -i -a -n php5 $SAPI_SHARED" # Old apxs does not have -S option
 6547:   else
 6548:     APXS_LIBEXECDIR='$(INSTALL_ROOT)'`$APXS -q LIBEXECDIR`
 6549:     if test -z `$APXS -q SYSCONFDIR`; then
 6550:       APACHE_INSTALL="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \
 6551:                        $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \
 6552:                              -i -n php5 $SAPI_SHARED"
 6553:     else
 6554:       APXS_SYSCONFDIR='$(INSTALL_ROOT)'`$APXS -q SYSCONFDIR`
 6555:       APACHE_INSTALL="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \
 6556:                       \$(mkinstalldirs) '$APXS_SYSCONFDIR' && \
 6557:                        $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \
 6558:                              -S SYSCONFDIR='$APXS_SYSCONFDIR' \
 6559:                              -i -a -n php5 $SAPI_SHARED"
 6560:     fi
 6561:   fi
 6562: 
 6563:   if test -z "`$APXS -q LD_SHLIB`" || test "`$APXS -q LIBEXECDIR`" = "modules"; then
 6564:     PHP_APXS_BROKEN=yes
 6565:   fi
 6566:   STRONGHOLD=
 6567: 
 6568: $as_echo "#define HAVE_AP_CONFIG_H 1" >>confdefs.h
 6569: 
 6570: 
 6571: $as_echo "#define HAVE_AP_COMPAT_H 1" >>confdefs.h
 6572: 
 6573: 
 6574: $as_echo "#define HAVE_APACHE 1" >>confdefs.h
 6575: 
 6576:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 6577: $as_echo "yes" >&6; }
 6578: else
 6579:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 6580: $as_echo "no" >&6; }
 6581: fi
 6582: 
 6583: 
 6584: php_with_apache=no
 6585: 
 6586: 
 6587: 
 6588: # Check whether --with-apache was given.
 6589: if test "${with_apache+set}" = set; then :
 6590:   withval=$with_apache; PHP_APACHE=$withval
 6591: else
 6592: 
 6593:   PHP_APACHE=no
 6594: 
 6595: 
 6596: fi
 6597: 
 6598: 
 6599: ext_output=$PHP_APACHE
 6600: 
 6601: 
 6602: 
 6603: 
 6604: 
 6605: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apache 1.x module support" >&5
 6606: $as_echo_n "checking for Apache 1.x module support... " >&6; }
 6607: 
 6608: if test "$PHP_SAPI" != "apache" && test "$PHP_APACHE" != "no"; then
 6609: 
 6610:   if test "$PHP_APACHE" = "yes"; then
 6611:     # Apache's default directory
 6612:     PHP_APACHE=/usr/local/apache
 6613:   fi
 6614: 
 6615:   APACHE_INSTALL_FILES="\$(srcdir)/sapi/apache/mod_php5.* sapi/apache/libphp5.module"
 6616: 
 6617: 
 6618: $as_echo "#define HAVE_APACHE 1" >>confdefs.h
 6619: 
 6620:   APACHE_MODULE=yes
 6621: 
 6622:   if test -z "$PHP_APACHE" || echo "$PHP_APACHE" | grep '^/' >/dev/null ; then
 6623:     PHP_APACHE=$PHP_APACHE
 6624:   else
 6625: 
 6626:     ep_dir=`echo $PHP_APACHE|$SED 's%/*[^/][^/]*/*$%%'`
 6627: 
 6628:     ep_realdir=`(cd "$ep_dir" && pwd)`
 6629:     PHP_APACHE="$ep_realdir"/`basename "$PHP_APACHE"`
 6630:   fi
 6631: 
 6632:   # For Apache 1.2.x
 6633:   if test -f $PHP_APACHE/src/httpd.h; then
 6634:     APACHE_INCLUDE=-I$PHP_APACHE/src
 6635:     APACHE_TARGET=$PHP_APACHE/src
 6636: 
 6637:   if test "static" = "program"; then
 6638:     PHP_BINARIES="$PHP_BINARIES apache"
 6639:   elif test "$PHP_SAPI" != "none"; then
 6640:     as_fn_error $? "
 6641: +--------------------------------------------------------------------+
 6642: |                        *** ATTENTION ***                           |
 6643: |                                                                    |
 6644: | You've configured multiple SAPIs to be build. You can build only   |
 6645: | one SAPI module plus CGI, CLI and FPM binaries at the same time.   |
 6646: +--------------------------------------------------------------------+
 6647: " "$LINENO" 5
 6648:   else
 6649:     PHP_SAPI=apache
 6650:   fi
 6651: 
 6652: 
 6653: 
 6654:     BUILD_DIR="$BUILD_DIR sapi/apache"
 6655: 
 6656: 
 6657: 
 6658:   PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS apache"
 6659: 
 6660: 
 6661:     case "static" in
 6662:     static)
 6663: 
 6664:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 6665:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
 6666:   php_c_post=
 6667:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 6668:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
 6669:   php_cxx_post=
 6670:   php_lo=lo
 6671: 
 6672:   case $with_pic in
 6673:     yes) pic_setting='-prefer-pic';;
 6674:     no)  pic_setting='-prefer-non-pic';;
 6675:   esac
 6676: 
 6677:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 6678:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
 6679:   shared_c_post=
 6680:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 6681:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
 6682:   shared_cxx_post=
 6683:   shared_lo=lo
 6684: 
 6685:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
 6686:   php_sapi_module=static
 6687: ;;
 6688:     shared)
 6689: 
 6690:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 6691:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
 6692:   php_c_post=
 6693:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 6694:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
 6695:   php_cxx_post=
 6696:   php_lo=lo
 6697: 
 6698:   case $with_pic in
 6699:     yes) pic_setting='-prefer-pic';;
 6700:     no)  pic_setting='-prefer-non-pic';;
 6701:   esac
 6702: 
 6703:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 6704:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
 6705:   shared_c_post=
 6706:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 6707:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
 6708:   shared_cxx_post=
 6709:   shared_lo=lo
 6710: 
 6711:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
 6712:   php_sapi_module=shared
 6713: 
 6714:   php_c_pre=$shared_c_pre
 6715:   php_c_meta=$shared_c_meta
 6716:   php_c_post=$shared_c_post
 6717:   php_cxx_pre=$shared_cxx_pre
 6718:   php_cxx_meta=$shared_cxx_meta
 6719:   php_cxx_post=$shared_cxx_post
 6720:   php_lo=$shared_lo
 6721: ;;
 6722:     bundle)
 6723: 
 6724:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 6725:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
 6726:   php_c_post=
 6727:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 6728:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
 6729:   php_cxx_post=
 6730:   php_lo=lo
 6731: 
 6732:   case $with_pic in
 6733:     yes) pic_setting='-prefer-pic';;
 6734:     no)  pic_setting='-prefer-non-pic';;
 6735:   esac
 6736: 
 6737:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 6738:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
 6739:   shared_c_post=
 6740:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 6741:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
 6742:   shared_cxx_post=
 6743:   shared_lo=lo
 6744: 
 6745:   OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
 6746:   php_sapi_module=static
 6747: ;;
 6748:     esac
 6749:     install_sapi="install-sapi"
 6750: 
 6751: 
 6752:   case sapi/apache in
 6753:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
 6754:   /*) ac_srcdir=`echo "sapi/apache"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
 6755:   *) ac_srcdir="$abs_srcdir/sapi/apache/"; ac_bdir="sapi/apache/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
 6756:   esac
 6757: 
 6758: 
 6759: 
 6760:   b_c_pre=$php_c_pre
 6761:   b_cxx_pre=$php_cxx_pre
 6762:   b_c_meta=$php_c_meta
 6763:   b_cxx_meta=$php_cxx_meta
 6764:   b_c_post=$php_c_post
 6765:   b_cxx_post=$php_cxx_post
 6766:   b_lo=$php_lo
 6767: 
 6768: 
 6769:   old_IFS=$IFS
 6770:   for ac_src in sapi_apache.c mod_php5.c php_apache.c; do
 6771: 
 6772:       IFS=.
 6773:       set $ac_src
 6774:       ac_obj=$1
 6775:       IFS=$old_IFS
 6776: 
 6777:       PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
 6778: 
 6779:       case $ac_src in
 6780:         *.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" ;;
 6781:         *.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" ;;
 6782:         *.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" ;;
 6783:         *.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" ;;
 6784:       esac
 6785: 
 6786:     cat >>Makefile.objects<<EOF
 6787: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
 6788: 	$ac_comp
 6789: EOF
 6790:   done
 6791: 
 6792: 
 6793: 
 6794: 
 6795:     APACHE_INSTALL="mkdir -p $APACHE_TARGET; cp $SAPI_STATIC $APACHE_INSTALL_FILES $APACHE_TARGET"
 6796:     PHP_LIBS="-L. -lphp3"
 6797:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - Apache 1.2.x" >&5
 6798: $as_echo "yes - Apache 1.2.x" >&6; }
 6799:     STRONGHOLD=
 6800:     if test -f $PHP_APACHE/src/ap_config.h; then
 6801: 
 6802: $as_echo "#define HAVE_AP_CONFIG_H 1" >>confdefs.h
 6803: 
 6804:     fi
 6805:   # For Apache 2.0.x
 6806:   elif test -f $PHP_APACHE/include/httpd.h && test -f $PHP_APACHE/srclib/apr/include/apr_general.h ; then
 6807:     as_fn_error $? "Use --with-apxs2 with Apache 2.x!" "$LINENO" 5
 6808:   # For Apache 1.3.x
 6809:   elif test -f $PHP_APACHE/src/main/httpd.h; then
 6810:     APACHE_HAS_REGEX=1
 6811:     APACHE_INCLUDE="-I$PHP_APACHE/src/main -I$PHP_APACHE/src/os/unix -I$PHP_APACHE/src/ap"
 6812:     APACHE_TARGET=$PHP_APACHE/src/modules/php5
 6813:     if test ! -d $APACHE_TARGET; then
 6814:       mkdir $APACHE_TARGET
 6815:     fi
 6816: 
 6817:   if test "static" = "program"; then
 6818:     PHP_BINARIES="$PHP_BINARIES apache"
 6819:   elif test "$PHP_SAPI" != "none"; then
 6820:     as_fn_error $? "
 6821: +--------------------------------------------------------------------+
 6822: |                        *** ATTENTION ***                           |
 6823: |                                                                    |
 6824: | You've configured multiple SAPIs to be build. You can build only   |
 6825: | one SAPI module plus CGI, CLI and FPM binaries at the same time.   |
 6826: +--------------------------------------------------------------------+
 6827: " "$LINENO" 5
 6828:   else
 6829:     PHP_SAPI=apache
 6830:   fi
 6831: 
 6832: 
 6833: 
 6834:     BUILD_DIR="$BUILD_DIR sapi/apache"
 6835: 
 6836: 
 6837: 
 6838:   PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS apache"
 6839: 
 6840: 
 6841:     case "static" in
 6842:     static)
 6843: 
 6844:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 6845:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
 6846:   php_c_post=
 6847:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 6848:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
 6849:   php_cxx_post=
 6850:   php_lo=lo
 6851: 
 6852:   case $with_pic in
 6853:     yes) pic_setting='-prefer-pic';;
 6854:     no)  pic_setting='-prefer-non-pic';;
 6855:   esac
 6856: 
 6857:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 6858:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
 6859:   shared_c_post=
 6860:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 6861:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
 6862:   shared_cxx_post=
 6863:   shared_lo=lo
 6864: 
 6865:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
 6866:   php_sapi_module=static
 6867: ;;
 6868:     shared)
 6869: 
 6870:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 6871:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
 6872:   php_c_post=
 6873:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 6874:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
 6875:   php_cxx_post=
 6876:   php_lo=lo
 6877: 
 6878:   case $with_pic in
 6879:     yes) pic_setting='-prefer-pic';;
 6880:     no)  pic_setting='-prefer-non-pic';;
 6881:   esac
 6882: 
 6883:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 6884:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
 6885:   shared_c_post=
 6886:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 6887:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
 6888:   shared_cxx_post=
 6889:   shared_lo=lo
 6890: 
 6891:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
 6892:   php_sapi_module=shared
 6893: 
 6894:   php_c_pre=$shared_c_pre
 6895:   php_c_meta=$shared_c_meta
 6896:   php_c_post=$shared_c_post
 6897:   php_cxx_pre=$shared_cxx_pre
 6898:   php_cxx_meta=$shared_cxx_meta
 6899:   php_cxx_post=$shared_cxx_post
 6900:   php_lo=$shared_lo
 6901: ;;
 6902:     bundle)
 6903: 
 6904:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 6905:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
 6906:   php_c_post=
 6907:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 6908:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
 6909:   php_cxx_post=
 6910:   php_lo=lo
 6911: 
 6912:   case $with_pic in
 6913:     yes) pic_setting='-prefer-pic';;
 6914:     no)  pic_setting='-prefer-non-pic';;
 6915:   esac
 6916: 
 6917:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 6918:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
 6919:   shared_c_post=
 6920:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 6921:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
 6922:   shared_cxx_post=
 6923:   shared_lo=lo
 6924: 
 6925:   OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
 6926:   php_sapi_module=static
 6927: ;;
 6928:     esac
 6929:     install_sapi="install-sapi"
 6930: 
 6931: 
 6932:   case sapi/apache in
 6933:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
 6934:   /*) ac_srcdir=`echo "sapi/apache"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
 6935:   *) ac_srcdir="$abs_srcdir/sapi/apache/"; ac_bdir="sapi/apache/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
 6936:   esac
 6937: 
 6938: 
 6939: 
 6940:   b_c_pre=$php_c_pre
 6941:   b_cxx_pre=$php_cxx_pre
 6942:   b_c_meta=$php_c_meta
 6943:   b_cxx_meta=$php_cxx_meta
 6944:   b_c_post=$php_c_post
 6945:   b_cxx_post=$php_cxx_post
 6946:   b_lo=$php_lo
 6947: 
 6948: 
 6949:   old_IFS=$IFS
 6950:   for ac_src in sapi_apache.c mod_php5.c php_apache.c; do
 6951: 
 6952:       IFS=.
 6953:       set $ac_src
 6954:       ac_obj=$1
 6955:       IFS=$old_IFS
 6956: 
 6957:       PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
 6958: 
 6959:       case $ac_src in
 6960:         *.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" ;;
 6961:         *.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" ;;
 6962:         *.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" ;;
 6963:         *.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" ;;
 6964:       esac
 6965: 
 6966:     cat >>Makefile.objects<<EOF
 6967: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
 6968: 	$ac_comp
 6969: EOF
 6970:   done
 6971: 
 6972: 
 6973: 
 6974: 
 6975:     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"
 6976:     PHP_LIBS="-Lmodules/php5 -L../modules/php5 -L../../modules/php5 -lmodphp5"
 6977:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - Apache 1.3.x" >&5
 6978: $as_echo "yes - Apache 1.3.x" >&6; }
 6979:     STRONGHOLD=
 6980:     if test -f $PHP_APACHE/src/include/ap_config.h; then
 6981: 
 6982: $as_echo "#define HAVE_AP_CONFIG_H 1" >>confdefs.h
 6983: 
 6984:     fi
 6985:     if test -f $PHP_APACHE/src/include/ap_compat.h; then
 6986: 
 6987: $as_echo "#define HAVE_AP_COMPAT_H 1" >>confdefs.h
 6988: 
 6989:       if test ! -f $PHP_APACHE/src/include/ap_config_auto.h; then
 6990:         as_fn_error $? "Please run Apache\'s configure or src/Configure program once and try again" "$LINENO" 5
 6991:       fi
 6992:     elif test -f $PHP_APACHE/src/include/compat.h; then
 6993: 
 6994: $as_echo "#define HAVE_OLD_COMPAT_H 1" >>confdefs.h
 6995: 
 6996:     fi
 6997:   # Also for Apache 1.3.x
 6998:   elif test -f $PHP_APACHE/src/include/httpd.h; then
 6999:     APACHE_HAS_REGEX=1
 7000:     APACHE_INCLUDE="-I$PHP_APACHE/src/include -I$PHP_APACHE/src/os/unix"
 7001:     APACHE_TARGET=$PHP_APACHE/src/modules/php5
 7002:     if test ! -d $APACHE_TARGET; then
 7003:       mkdir $APACHE_TARGET
 7004:     fi
 7005: 
 7006:   if test "static" = "program"; then
 7007:     PHP_BINARIES="$PHP_BINARIES apache"
 7008:   elif test "$PHP_SAPI" != "none"; then
 7009:     as_fn_error $? "
 7010: +--------------------------------------------------------------------+
 7011: |                        *** ATTENTION ***                           |
 7012: |                                                                    |
 7013: | You've configured multiple SAPIs to be build. You can build only   |
 7014: | one SAPI module plus CGI, CLI and FPM binaries at the same time.   |
 7015: +--------------------------------------------------------------------+
 7016: " "$LINENO" 5
 7017:   else
 7018:     PHP_SAPI=apache
 7019:   fi
 7020: 
 7021: 
 7022: 
 7023:     BUILD_DIR="$BUILD_DIR sapi/apache"
 7024: 
 7025: 
 7026: 
 7027:   PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS apache"
 7028: 
 7029: 
 7030:     case "static" in
 7031:     static)
 7032: 
 7033:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 7034:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
 7035:   php_c_post=
 7036:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 7037:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
 7038:   php_cxx_post=
 7039:   php_lo=lo
 7040: 
 7041:   case $with_pic in
 7042:     yes) pic_setting='-prefer-pic';;
 7043:     no)  pic_setting='-prefer-non-pic';;
 7044:   esac
 7045: 
 7046:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 7047:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
 7048:   shared_c_post=
 7049:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 7050:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
 7051:   shared_cxx_post=
 7052:   shared_lo=lo
 7053: 
 7054:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
 7055:   php_sapi_module=static
 7056: ;;
 7057:     shared)
 7058: 
 7059:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 7060:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
 7061:   php_c_post=
 7062:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 7063:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
 7064:   php_cxx_post=
 7065:   php_lo=lo
 7066: 
 7067:   case $with_pic in
 7068:     yes) pic_setting='-prefer-pic';;
 7069:     no)  pic_setting='-prefer-non-pic';;
 7070:   esac
 7071: 
 7072:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 7073:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
 7074:   shared_c_post=
 7075:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 7076:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
 7077:   shared_cxx_post=
 7078:   shared_lo=lo
 7079: 
 7080:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
 7081:   php_sapi_module=shared
 7082: 
 7083:   php_c_pre=$shared_c_pre
 7084:   php_c_meta=$shared_c_meta
 7085:   php_c_post=$shared_c_post
 7086:   php_cxx_pre=$shared_cxx_pre
 7087:   php_cxx_meta=$shared_cxx_meta
 7088:   php_cxx_post=$shared_cxx_post
 7089:   php_lo=$shared_lo
 7090: ;;
 7091:     bundle)
 7092: 
 7093:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 7094:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
 7095:   php_c_post=
 7096:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 7097:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
 7098:   php_cxx_post=
 7099:   php_lo=lo
 7100: 
 7101:   case $with_pic in
 7102:     yes) pic_setting='-prefer-pic';;
 7103:     no)  pic_setting='-prefer-non-pic';;
 7104:   esac
 7105: 
 7106:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 7107:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
 7108:   shared_c_post=
 7109:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 7110:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
 7111:   shared_cxx_post=
 7112:   shared_lo=lo
 7113: 
 7114:   OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
 7115:   php_sapi_module=static
 7116: ;;
 7117:     esac
 7118:     install_sapi="install-sapi"
 7119: 
 7120: 
 7121:   case sapi/apache in
 7122:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
 7123:   /*) ac_srcdir=`echo "sapi/apache"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
 7124:   *) ac_srcdir="$abs_srcdir/sapi/apache/"; ac_bdir="sapi/apache/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
 7125:   esac
 7126: 
 7127: 
 7128: 
 7129:   b_c_pre=$php_c_pre
 7130:   b_cxx_pre=$php_cxx_pre
 7131:   b_c_meta=$php_c_meta
 7132:   b_cxx_meta=$php_cxx_meta
 7133:   b_c_post=$php_c_post
 7134:   b_cxx_post=$php_cxx_post
 7135:   b_lo=$php_lo
 7136: 
 7137: 
 7138:   old_IFS=$IFS
 7139:   for ac_src in sapi_apache.c mod_php5.c php_apache.c; do
 7140: 
 7141:       IFS=.
 7142:       set $ac_src
 7143:       ac_obj=$1
 7144:       IFS=$old_IFS
 7145: 
 7146:       PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
 7147: 
 7148:       case $ac_src in
 7149:         *.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" ;;
 7150:         *.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" ;;
 7151:         *.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" ;;
 7152:         *.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" ;;
 7153:       esac
 7154: 
 7155:     cat >>Makefile.objects<<EOF
 7156: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
 7157: 	$ac_comp
 7158: EOF
 7159:   done
 7160: 
 7161: 
 7162: 
 7163: 
 7164:     PHP_LIBS="-Lmodules/php5 -L../modules/php5 -L../../modules/php5 -lmodphp5"
 7165:     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"
 7166:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - Apache 1.3.x" >&5
 7167: $as_echo "yes - Apache 1.3.x" >&6; }
 7168:     STRONGHOLD=
 7169:     if test -f $PHP_APACHE/src/include/ap_config.h; then
 7170: 
 7171: $as_echo "#define HAVE_AP_CONFIG_H 1" >>confdefs.h
 7172: 
 7173:     fi
 7174:     if test -f $PHP_APACHE/src/include/ap_compat.h; then
 7175: 
 7176: $as_echo "#define HAVE_AP_COMPAT_H 1" >>confdefs.h
 7177: 
 7178:       if test ! -f $PHP_APACHE/src/include/ap_config_auto.h; then
 7179:         as_fn_error $? "Please run Apache\'s configure or src/Configure program once and try again" "$LINENO" 5
 7180:       fi
 7181:     elif test -f $PHP_APACHE/src/include/compat.h; then
 7182: 
 7183: $as_echo "#define HAVE_OLD_COMPAT_H 1" >>confdefs.h
 7184: 
 7185:     fi
 7186:   # For StrongHold 2.2
 7187:   elif test -f $PHP_APACHE/apache/httpd.h; then
 7188:     APACHE_INCLUDE="-I$PHP_APACHE/apache -I$PHP_APACHE/ssl/include"
 7189:     APACHE_TARGET=$PHP_APACHE/apache
 7190: 
 7191:   if test "static" = "program"; then
 7192:     PHP_BINARIES="$PHP_BINARIES apache"
 7193:   elif test "$PHP_SAPI" != "none"; then
 7194:     as_fn_error $? "
 7195: +--------------------------------------------------------------------+
 7196: |                        *** ATTENTION ***                           |
 7197: |                                                                    |
 7198: | You've configured multiple SAPIs to be build. You can build only   |
 7199: | one SAPI module plus CGI, CLI and FPM binaries at the same time.   |
 7200: +--------------------------------------------------------------------+
 7201: " "$LINENO" 5
 7202:   else
 7203:     PHP_SAPI=apache
 7204:   fi
 7205: 
 7206: 
 7207: 
 7208:     BUILD_DIR="$BUILD_DIR sapi/apache"
 7209: 
 7210: 
 7211: 
 7212:   PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS apache"
 7213: 
 7214: 
 7215:     case "static" in
 7216:     static)
 7217: 
 7218:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 7219:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
 7220:   php_c_post=
 7221:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 7222:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
 7223:   php_cxx_post=
 7224:   php_lo=lo
 7225: 
 7226:   case $with_pic in
 7227:     yes) pic_setting='-prefer-pic';;
 7228:     no)  pic_setting='-prefer-non-pic';;
 7229:   esac
 7230: 
 7231:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 7232:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
 7233:   shared_c_post=
 7234:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 7235:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
 7236:   shared_cxx_post=
 7237:   shared_lo=lo
 7238: 
 7239:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
 7240:   php_sapi_module=static
 7241: ;;
 7242:     shared)
 7243: 
 7244:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 7245:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
 7246:   php_c_post=
 7247:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 7248:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
 7249:   php_cxx_post=
 7250:   php_lo=lo
 7251: 
 7252:   case $with_pic in
 7253:     yes) pic_setting='-prefer-pic';;
 7254:     no)  pic_setting='-prefer-non-pic';;
 7255:   esac
 7256: 
 7257:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 7258:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
 7259:   shared_c_post=
 7260:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 7261:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
 7262:   shared_cxx_post=
 7263:   shared_lo=lo
 7264: 
 7265:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
 7266:   php_sapi_module=shared
 7267: 
 7268:   php_c_pre=$shared_c_pre
 7269:   php_c_meta=$shared_c_meta
 7270:   php_c_post=$shared_c_post
 7271:   php_cxx_pre=$shared_cxx_pre
 7272:   php_cxx_meta=$shared_cxx_meta
 7273:   php_cxx_post=$shared_cxx_post
 7274:   php_lo=$shared_lo
 7275: ;;
 7276:     bundle)
 7277: 
 7278:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 7279:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
 7280:   php_c_post=
 7281:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 7282:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
 7283:   php_cxx_post=
 7284:   php_lo=lo
 7285: 
 7286:   case $with_pic in
 7287:     yes) pic_setting='-prefer-pic';;
 7288:     no)  pic_setting='-prefer-non-pic';;
 7289:   esac
 7290: 
 7291:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 7292:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
 7293:   shared_c_post=
 7294:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 7295:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
 7296:   shared_cxx_post=
 7297:   shared_lo=lo
 7298: 
 7299:   OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
 7300:   php_sapi_module=static
 7301: ;;
 7302:     esac
 7303:     install_sapi="install-sapi"
 7304: 
 7305: 
 7306:   case sapi/apache in
 7307:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
 7308:   /*) ac_srcdir=`echo "sapi/apache"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
 7309:   *) ac_srcdir="$abs_srcdir/sapi/apache/"; ac_bdir="sapi/apache/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
 7310:   esac
 7311: 
 7312: 
 7313: 
 7314:   b_c_pre=$php_c_pre
 7315:   b_cxx_pre=$php_cxx_pre
 7316:   b_c_meta=$php_c_meta
 7317:   b_cxx_meta=$php_cxx_meta
 7318:   b_c_post=$php_c_post
 7319:   b_cxx_post=$php_cxx_post
 7320:   b_lo=$php_lo
 7321: 
 7322: 
 7323:   old_IFS=$IFS
 7324:   for ac_src in sapi_apache.c mod_php5.c php_apache.c; do
 7325: 
 7326:       IFS=.
 7327:       set $ac_src
 7328:       ac_obj=$1
 7329:       IFS=$old_IFS
 7330: 
 7331:       PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
 7332: 
 7333:       case $ac_src in
 7334:         *.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" ;;
 7335:         *.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" ;;
 7336:         *.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" ;;
 7337:         *.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" ;;
 7338:       esac
 7339: 
 7340:     cat >>Makefile.objects<<EOF
 7341: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
 7342: 	$ac_comp
 7343: EOF
 7344:   done
 7345: 
 7346: 
 7347: 
 7348: 
 7349:     PHP_LIBS="-Lmodules/php5 -L../modules/php5 -L../../modules/php5 -lmodphp5"
 7350:     APACHE_INSTALL="mkdir -p $APACHE_TARGET; cp $SAPI_STATIC $APACHE_TARGET/libmodphp5.a; cp $APACHE_INSTALL_FILES $APACHE_TARGET"
 7351:     STRONGHOLD=-DSTRONGHOLD=1
 7352:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - StrongHold" >&5
 7353: $as_echo "yes - StrongHold" >&6; }
 7354:     if test -f $PHP_APACHE/apache/ap_config.h; then
 7355: 
 7356: $as_echo "#define HAVE_AP_CONFIG_H 1" >>confdefs.h
 7357: 
 7358:     fi
 7359:     if test -f $PHP_APACHE/src/ap_compat.h; then
 7360: 
 7361: $as_echo "#define HAVE_AP_COMPAT_H 1" >>confdefs.h
 7362: 
 7363:       if test ! -f $PHP_APACHE/src/include/ap_config_auto.h; then
 7364:         as_fn_error $? "Please run Apache\'s configure or src/Configure program once and try again" "$LINENO" 5
 7365:       fi
 7366:     elif test -f $PHP_APACHE/src/compat.h; then
 7367: 
 7368: $as_echo "#define HAVE_OLD_COMPAT_H 1" >>confdefs.h
 7369: 
 7370:     fi
 7371:   else
 7372:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 7373: $as_echo "no" >&6; }
 7374:     as_fn_error $? "Invalid Apache directory - unable to find httpd.h under $PHP_APACHE" "$LINENO" 5
 7375:   fi
 7376: else
 7377:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 7378: $as_echo "no" >&6; }
 7379: fi
 7380: 
 7381: # compatibility
 7382: if test -z "$enable_mod_charset" && test "$with_mod_charset"; then
 7383:   enable_mod_charset=$with_mod_charset
 7384: fi
 7385: 
 7386: 
 7387: php_enable_mod_charset=no
 7388: 
 7389: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Apache charset compatibility option" >&5
 7390: $as_echo_n "checking whether to enable Apache charset compatibility option... " >&6; }
 7391: # Check whether --enable-mod-charset was given.
 7392: if test "${enable_mod_charset+set}" = set; then :
 7393:   enableval=$enable_mod_charset; PHP_MOD_CHARSET=$enableval
 7394: else
 7395: 
 7396:   PHP_MOD_CHARSET=no
 7397: 
 7398: 
 7399: fi
 7400: 
 7401: 
 7402: ext_output=$PHP_MOD_CHARSET
 7403: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
 7404: $as_echo "$ext_output" >&6; }
 7405: 
 7406: 
 7407: 
 7408: 
 7409: if test "$PHP_MOD_CHARSET" = "yes"; then
 7410: 
 7411: $as_echo "#define USE_TRANSFER_TABLES 1" >>confdefs.h
 7412: 
 7413: fi
 7414: 
 7415: if test "$APACHE_MODULE" = "yes"; then
 7416: 
 7417:   if test -n "$GCC"; then
 7418: 
 7419:   gcc_arg_name=ac_cv_gcc_arg_rdynamic
 7420:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -rdynamic" >&5
 7421: $as_echo_n "checking whether $CC supports -rdynamic... " >&6; }
 7422: if ${ac_cv_gcc_arg_rdynamic+:} false; then :
 7423:   $as_echo_n "(cached) " >&6
 7424: else
 7425: 
 7426:   echo 'void somefunc() { };' > conftest.c
 7427:   cmd='$CC -rdynamic -c conftest.c'
 7428:   if eval $cmd 2>&1 | $EGREP -e -rdynamic >/dev/null ; then
 7429:     ac_result=no
 7430:   else
 7431:     ac_result=yes
 7432:   fi
 7433:   eval $gcc_arg_name=$ac_result
 7434:   rm -f conftest.*
 7435: 
 7436: fi
 7437: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_arg_rdynamic" >&5
 7438: $as_echo "$ac_cv_gcc_arg_rdynamic" >&6; }
 7439:   if eval test "\$$gcc_arg_name" = "yes"; then
 7440:     gcc_rdynamic=yes
 7441:   else
 7442:     :
 7443: 
 7444:   fi
 7445: 
 7446:     if test "$gcc_rdynamic" = "yes"; then
 7447:       PHP_LDFLAGS="$PHP_LDFLAGS -rdynamic"
 7448:     fi
 7449:   fi
 7450: 
 7451:   $php_shtool mkdir -p sapi/apache
 7452: 
 7453:   PHP_OUTPUT_FILES="$PHP_OUTPUT_FILES sapi/apache/libphp5.module"
 7454: 
 7455: fi
 7456: 
 7457: if test -n "$APACHE_INSTALL"; then
 7458:   if test "x$APXS" != "x" -a "`uname -sv`" = "AIX 4" -a "$GCC" != "yes"; then
 7459:     APXS_EXP=-bE:sapi/apache/mod_php5.exp
 7460:   fi
 7461: 
 7462: 
 7463: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member fd in BUFF *" >&5
 7464: $as_echo_n "checking for member fd in BUFF *... " >&6; }
 7465: if ${ac_cv_php_fd_in_buff+:} false; then :
 7466:   $as_echo_n "(cached) " >&6
 7467: else
 7468: 
 7469:   save=$CPPFLAGS
 7470:   if test -n "$APXS_INCLUDEDIR"; then
 7471:     CPPFLAGS="$CPPFLAGS -I$APXS_INCLUDEDIR"
 7472:   else
 7473:     CPPFLAGS="$CPPFLAGS $APACHE_INCLUDE"
 7474:   fi
 7475:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 7476: /* end confdefs.h.  */
 7477: #include <httpd.h>
 7478: int
 7479: main ()
 7480: {
 7481: conn_rec *c; int fd = c->client->fd;
 7482:   ;
 7483:   return 0;
 7484: }
 7485: _ACEOF
 7486: if ac_fn_c_try_compile "$LINENO"; then :
 7487: 
 7488:     ac_cv_php_fd_in_buff=yes
 7489: else
 7490:   ac_cv_php_fd_in_buff=no
 7491: fi
 7492: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 7493:   CPPFLAGS=$save
 7494: 
 7495: fi
 7496: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_php_fd_in_buff" >&5
 7497: $as_echo "$ac_cv_php_fd_in_buff" >&6; }
 7498: if test "$ac_cv_php_fd_in_buff" = "yes"; then
 7499: 
 7500: $as_echo "#define PHP_APACHE_HAVE_CLIENT_FD 1" >>confdefs.h
 7501: 
 7502: fi
 7503: 
 7504:   INSTALL_IT=$APACHE_INSTALL
 7505: 
 7506: 
 7507:   PHP_VAR_SUBST="$PHP_VAR_SUBST APXS_EXP"
 7508: 
 7509: 
 7510:   PHP_VAR_SUBST="$PHP_VAR_SUBST APACHE_INCLUDE"
 7511: 
 7512: 
 7513:   PHP_VAR_SUBST="$PHP_VAR_SUBST APACHE_TARGET"
 7514: 
 7515: 
 7516:   PHP_VAR_SUBST="$PHP_VAR_SUBST APXS"
 7517: 
 7518: 
 7519:   PHP_VAR_SUBST="$PHP_VAR_SUBST APXS_LDFLAGS"
 7520: 
 7521: 
 7522:   PHP_VAR_SUBST="$PHP_VAR_SUBST APACHE_INSTALL"
 7523: 
 7524: 
 7525:   PHP_VAR_SUBST="$PHP_VAR_SUBST STRONGHOLD"
 7526: 
 7527: fi
 7528: 
 7529: 
 7530: 
 7531: 
 7532: php_with_apxs2filter=no
 7533: 
 7534: 
 7535: 
 7536: # Check whether --with-apxs2filter was given.
 7537: if test "${with_apxs2filter+set}" = set; then :
 7538:   withval=$with_apxs2filter; PHP_APXS2FILTER=$withval
 7539: else
 7540: 
 7541:   PHP_APXS2FILTER=no
 7542: 
 7543: 
 7544: fi
 7545: 
 7546: 
 7547: ext_output=$PHP_APXS2FILTER
 7548: 
 7549: 
 7550: 
 7551: 
 7552: 
 7553: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apache 2.0 filter-module support via DSO through APXS" >&5
 7554: $as_echo_n "checking for Apache 2.0 filter-module support via DSO through APXS... " >&6; }
 7555: 
 7556: if test "$PHP_APXS2FILTER" != "no"; then
 7557:   if test "$PHP_APXS2FILTER" = "yes"; then
 7558:     APXS=apxs
 7559:     $APXS -q CFLAGS >/dev/null 2>&1
 7560:     if test "$?" != "0" && test -x /usr/sbin/apxs; then
 7561:       APXS=/usr/sbin/apxs
 7562:     fi
 7563:   else
 7564: 
 7565:   if test -z "$PHP_APXS2FILTER" || echo "$PHP_APXS2FILTER" | grep '^/' >/dev/null ; then
 7566:     APXS=$PHP_APXS2FILTER
 7567:   else
 7568: 
 7569:     ep_dir=`echo $PHP_APXS2FILTER|$SED 's%/*[^/][^/]*/*$%%'`
 7570: 
 7571:     ep_realdir=`(cd "$ep_dir" && pwd)`
 7572:     APXS="$ep_realdir"/`basename "$PHP_APXS2FILTER"`
 7573:   fi
 7574: 
 7575:   fi
 7576: 
 7577:   $APXS -q CFLAGS >/dev/null 2>&1
 7578:   if test "$?" != "0"; then
 7579:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
 7580: $as_echo "" >&6; }
 7581:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
 7582: $as_echo "" >&6; }
 7583:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, I cannot run apxs.  Possible reasons follow:" >&5
 7584: $as_echo "Sorry, I cannot run apxs.  Possible reasons follow:" >&6; }
 7585:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
 7586: $as_echo "" >&6; }
 7587:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: 1. Perl is not installed" >&5
 7588: $as_echo "1. Perl is not installed" >&6; }
 7589:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2. apxs was not found. Try to pass the path using --with-apxs2filter=/path/to/apxs" >&5
 7590: $as_echo "2. apxs was not found. Try to pass the path using --with-apxs2filter=/path/to/apxs" >&6; }
 7591:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: 3. Apache was not built using --enable-so (the apxs usage page is displayed)" >&5
 7592: $as_echo "3. Apache was not built using --enable-so (the apxs usage page is displayed)" >&6; }
 7593:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
 7594: $as_echo "" >&6; }
 7595:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: The output of $APXS follows:" >&5
 7596: $as_echo "The output of $APXS follows:" >&6; }
 7597:     $APXS -q CFLAGS
 7598:     as_fn_error $? "Aborting" "$LINENO" 5
 7599:   fi
 7600: 
 7601:   APXS_INCLUDEDIR=`$APXS -q INCLUDEDIR`
 7602:   APXS_BINDIR=`$APXS -q BINDIR`
 7603:   APXS_HTTPD=`$APXS -q SBINDIR`/`$APXS -q TARGET`
 7604:   APXS_CFLAGS=`$APXS -q CFLAGS`
 7605:   APU_BINDIR=`$APXS -q APU_BINDIR`
 7606:   APR_BINDIR=`$APXS -q APR_BINDIR`
 7607: 
 7608:   # Pick up ap[ru]-N-config if using httpd >=2.1
 7609:   APR_CONFIG=`$APXS -q APR_CONFIG 2>/dev/null ||
 7610:     echo $APR_BINDIR/apr-config`
 7611:   APU_CONFIG=`$APXS -q APU_CONFIG 2>/dev/null ||
 7612:     echo $APU_BINDIR/apu-config`
 7613: 
 7614:   APR_CFLAGS="`$APR_CONFIG --cppflags --includes`"
 7615:   APU_CFLAGS="`$APU_CONFIG --includes`"
 7616: 
 7617:   for flag in $APXS_CFLAGS; do
 7618:     case $flag in
 7619:     -D*) APACHE_CPPFLAGS="$APACHE_CPPFLAGS $flag";;
 7620:     esac
 7621:   done
 7622: 
 7623:   APACHE_CFLAGS="$APACHE_CPPFLAGS -I$APXS_INCLUDEDIR $APR_CFLAGS $APU_CFLAGS"
 7624: 
 7625:   # Test that we're trying to configure with apache 2.x
 7626: 
 7627:   ac_output=`$APXS_HTTPD -v 2>&1 | grep version | $SED -e 's/Oracle-HTTP-//'`
 7628:   ac_IFS=$IFS
 7629: IFS="- /.
 7630: "
 7631:   set $ac_output
 7632:   IFS=$ac_IFS
 7633: 
 7634:   APACHE_VERSION=`expr $4 \* 1000000 + $5 \* 1000 + $6`
 7635: 
 7636:   if test "$APACHE_VERSION" -le 2000000; then
 7637:     as_fn_error $? "You have enabled Apache 2 support while your server is Apache 1.3.  Please use the appropriate switch --with-apxs (without the 2)" "$LINENO" 5
 7638:   elif test "$APACHE_VERSION" -lt 2000040; then
 7639:     as_fn_error $? "Please note that Apache version >= 2.0.40 is required" "$LINENO" 5
 7640:   fi
 7641: 
 7642:   APXS_LIBEXECDIR='$(INSTALL_ROOT)'`$APXS -q LIBEXECDIR`
 7643:   if test -z `$APXS -q SYSCONFDIR`; then
 7644:     INSTALL_IT="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \
 7645:                  $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \
 7646:                        -i -n php5"
 7647:   else
 7648:     APXS_SYSCONFDIR='$(INSTALL_ROOT)'`$APXS -q SYSCONFDIR`
 7649:     INSTALL_IT="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \
 7650:                 \$(mkinstalldirs) '$APXS_SYSCONFDIR' && \
 7651:                  $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \
 7652:                        -S SYSCONFDIR='$APXS_SYSCONFDIR' \
 7653:                        -i -a -n php5"
 7654:   fi
 7655: 
 7656:   case $host_alias in
 7657:   *aix*)
 7658:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-brtl -Wl,-bI:$APXS_LIBEXECDIR/httpd.exp"
 7659: 
 7660:   if test "shared" = "program"; then
 7661:     PHP_BINARIES="$PHP_BINARIES apache2filter"
 7662:   elif test "$PHP_SAPI" != "none"; then
 7663:     as_fn_error $? "
 7664: +--------------------------------------------------------------------+
 7665: |                        *** ATTENTION ***                           |
 7666: |                                                                    |
 7667: | You've configured multiple SAPIs to be build. You can build only   |
 7668: | one SAPI module plus CGI, CLI and FPM binaries at the same time.   |
 7669: +--------------------------------------------------------------------+
 7670: " "$LINENO" 5
 7671:   else
 7672:     PHP_SAPI=apache2filter
 7673:   fi
 7674: 
 7675: 
 7676: 
 7677:     BUILD_DIR="$BUILD_DIR sapi/apache2filter"
 7678: 
 7679: 
 7680: 
 7681:   PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS apache2filter"
 7682: 
 7683: 
 7684:     case "shared" in
 7685:     static)
 7686: 
 7687:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 7688:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
 7689:   php_c_post=
 7690:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 7691:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
 7692:   php_cxx_post=
 7693:   php_lo=lo
 7694: 
 7695:   case $with_pic in
 7696:     yes) pic_setting='-prefer-pic';;
 7697:     no)  pic_setting='-prefer-non-pic';;
 7698:   esac
 7699: 
 7700:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 7701:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
 7702:   shared_c_post=
 7703:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 7704:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
 7705:   shared_cxx_post=
 7706:   shared_lo=lo
 7707: 
 7708:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
 7709:   php_sapi_module=static
 7710: ;;
 7711:     shared)
 7712: 
 7713:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 7714:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
 7715:   php_c_post=
 7716:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 7717:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
 7718:   php_cxx_post=
 7719:   php_lo=lo
 7720: 
 7721:   case $with_pic in
 7722:     yes) pic_setting='-prefer-pic';;
 7723:     no)  pic_setting='-prefer-non-pic';;
 7724:   esac
 7725: 
 7726:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 7727:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
 7728:   shared_c_post=
 7729:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 7730:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
 7731:   shared_cxx_post=
 7732:   shared_lo=lo
 7733: 
 7734:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
 7735:   php_sapi_module=shared
 7736: 
 7737:   php_c_pre=$shared_c_pre
 7738:   php_c_meta=$shared_c_meta
 7739:   php_c_post=$shared_c_post
 7740:   php_cxx_pre=$shared_cxx_pre
 7741:   php_cxx_meta=$shared_cxx_meta
 7742:   php_cxx_post=$shared_cxx_post
 7743:   php_lo=$shared_lo
 7744: ;;
 7745:     bundle)
 7746: 
 7747:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 7748:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
 7749:   php_c_post=
 7750:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 7751:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
 7752:   php_cxx_post=
 7753:   php_lo=lo
 7754: 
 7755:   case $with_pic in
 7756:     yes) pic_setting='-prefer-pic';;
 7757:     no)  pic_setting='-prefer-non-pic';;
 7758:   esac
 7759: 
 7760:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 7761:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
 7762:   shared_c_post=
 7763:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 7764:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
 7765:   shared_cxx_post=
 7766:   shared_lo=lo
 7767: 
 7768:   OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
 7769:   php_sapi_module=static
 7770: ;;
 7771:     esac
 7772:     install_sapi="install-sapi"
 7773: 
 7774: 
 7775:   case sapi/apache2filter in
 7776:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
 7777:   /*) ac_srcdir=`echo "sapi/apache2filter"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
 7778:   *) ac_srcdir="$abs_srcdir/sapi/apache2filter/"; ac_bdir="sapi/apache2filter/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
 7779:   esac
 7780: 
 7781: 
 7782: 
 7783:   b_c_pre=$php_c_pre
 7784:   b_cxx_pre=$php_cxx_pre
 7785:   b_c_meta=$php_c_meta
 7786:   b_cxx_meta=$php_cxx_meta
 7787:   b_c_post=$php_c_post
 7788:   b_cxx_post=$php_cxx_post
 7789:   b_lo=$php_lo
 7790: 
 7791: 
 7792:   old_IFS=$IFS
 7793:   for ac_src in sapi_apache2.c apache_config.c php_functions.c; do
 7794: 
 7795:       IFS=.
 7796:       set $ac_src
 7797:       ac_obj=$1
 7798:       IFS=$old_IFS
 7799: 
 7800:       PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
 7801: 
 7802:       case $ac_src in
 7803:         *.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" ;;
 7804:         *.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" ;;
 7805:         *.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" ;;
 7806:         *.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" ;;
 7807:       esac
 7808: 
 7809:     cat >>Makefile.objects<<EOF
 7810: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
 7811: 	$ac_comp
 7812: EOF
 7813:   done
 7814: 
 7815: 
 7816: 
 7817: 
 7818:     INSTALL_IT="$INSTALL_IT $SAPI_LIBTOOL"
 7819:     ;;
 7820:   *darwin*)
 7821:                     if test -x "$APR_CONFIG"; then
 7822:         MH_BUNDLE_FLAGS="`$APR_CONFIG --ldflags --link-ld --libs`"
 7823:     fi
 7824:     if test -x "$APU_CONFIG"; then
 7825:         MH_BUNDLE_FLAGS="`$APU_CONFIG --ldflags --link-ld --libs` $MH_BUNDLE_FLAGS"
 7826:     fi
 7827:     MH_BUNDLE_FLAGS="-bundle -bundle_loader $APXS_HTTPD $MH_BUNDLE_FLAGS"
 7828: 
 7829:   PHP_VAR_SUBST="$PHP_VAR_SUBST MH_BUNDLE_FLAGS"
 7830: 
 7831: 
 7832:   if test "bundle" = "program"; then
 7833:     PHP_BINARIES="$PHP_BINARIES apache2filter"
 7834:   elif test "$PHP_SAPI" != "none"; then
 7835:     as_fn_error $? "
 7836: +--------------------------------------------------------------------+
 7837: |                        *** ATTENTION ***                           |
 7838: |                                                                    |
 7839: | You've configured multiple SAPIs to be build. You can build only   |
 7840: | one SAPI module plus CGI, CLI and FPM binaries at the same time.   |
 7841: +--------------------------------------------------------------------+
 7842: " "$LINENO" 5
 7843:   else
 7844:     PHP_SAPI=apache2filter
 7845:   fi
 7846: 
 7847: 
 7848: 
 7849:     BUILD_DIR="$BUILD_DIR sapi/apache2filter"
 7850: 
 7851: 
 7852: 
 7853:   PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS apache2filter"
 7854: 
 7855: 
 7856:     case "bundle" in
 7857:     static)
 7858: 
 7859:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 7860:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
 7861:   php_c_post=
 7862:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 7863:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
 7864:   php_cxx_post=
 7865:   php_lo=lo
 7866: 
 7867:   case $with_pic in
 7868:     yes) pic_setting='-prefer-pic';;
 7869:     no)  pic_setting='-prefer-non-pic';;
 7870:   esac
 7871: 
 7872:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 7873:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
 7874:   shared_c_post=
 7875:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 7876:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
 7877:   shared_cxx_post=
 7878:   shared_lo=lo
 7879: 
 7880:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
 7881:   php_sapi_module=static
 7882: ;;
 7883:     shared)
 7884: 
 7885:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 7886:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
 7887:   php_c_post=
 7888:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 7889:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
 7890:   php_cxx_post=
 7891:   php_lo=lo
 7892: 
 7893:   case $with_pic in
 7894:     yes) pic_setting='-prefer-pic';;
 7895:     no)  pic_setting='-prefer-non-pic';;
 7896:   esac
 7897: 
 7898:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 7899:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
 7900:   shared_c_post=
 7901:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 7902:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
 7903:   shared_cxx_post=
 7904:   shared_lo=lo
 7905: 
 7906:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
 7907:   php_sapi_module=shared
 7908: 
 7909:   php_c_pre=$shared_c_pre
 7910:   php_c_meta=$shared_c_meta
 7911:   php_c_post=$shared_c_post
 7912:   php_cxx_pre=$shared_cxx_pre
 7913:   php_cxx_meta=$shared_cxx_meta
 7914:   php_cxx_post=$shared_cxx_post
 7915:   php_lo=$shared_lo
 7916: ;;
 7917:     bundle)
 7918: 
 7919:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 7920:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
 7921:   php_c_post=
 7922:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 7923:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
 7924:   php_cxx_post=
 7925:   php_lo=lo
 7926: 
 7927:   case $with_pic in
 7928:     yes) pic_setting='-prefer-pic';;
 7929:     no)  pic_setting='-prefer-non-pic';;
 7930:   esac
 7931: 
 7932:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 7933:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
 7934:   shared_c_post=
 7935:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 7936:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
 7937:   shared_cxx_post=
 7938:   shared_lo=lo
 7939: 
 7940:   OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
 7941:   php_sapi_module=static
 7942: ;;
 7943:     esac
 7944:     install_sapi="install-sapi"
 7945: 
 7946: 
 7947:   case sapi/apache2filter in
 7948:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
 7949:   /*) ac_srcdir=`echo "sapi/apache2filter"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
 7950:   *) ac_srcdir="$abs_srcdir/sapi/apache2filter/"; ac_bdir="sapi/apache2filter/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
 7951:   esac
 7952: 
 7953: 
 7954: 
 7955:   b_c_pre=$php_c_pre
 7956:   b_cxx_pre=$php_cxx_pre
 7957:   b_c_meta=$php_c_meta
 7958:   b_cxx_meta=$php_cxx_meta
 7959:   b_c_post=$php_c_post
 7960:   b_cxx_post=$php_cxx_post
 7961:   b_lo=$php_lo
 7962: 
 7963: 
 7964:   old_IFS=$IFS
 7965:   for ac_src in sapi_apache2.c apache_config.c php_functions.c; do
 7966: 
 7967:       IFS=.
 7968:       set $ac_src
 7969:       ac_obj=$1
 7970:       IFS=$old_IFS
 7971: 
 7972:       PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
 7973: 
 7974:       case $ac_src in
 7975:         *.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" ;;
 7976:         *.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" ;;
 7977:         *.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" ;;
 7978:         *.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" ;;
 7979:       esac
 7980: 
 7981:     cat >>Makefile.objects<<EOF
 7982: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
 7983: 	$ac_comp
 7984: EOF
 7985:   done
 7986: 
 7987: 
 7988: 
 7989: 
 7990:     SAPI_SHARED=libs/libphp5.so
 7991:     INSTALL_IT="$INSTALL_IT $SAPI_SHARED"
 7992:     ;;
 7993:   *beos*)
 7994:     if test -f _APP_; then `rm _APP_`; fi
 7995:     `ln -s $APXS_BINDIR/httpd _APP_`
 7996:     EXTRA_LIBS="$EXTRA_LIBS _APP_"
 7997: 
 7998:   if test "shared" = "program"; then
 7999:     PHP_BINARIES="$PHP_BINARIES apache2filter"
 8000:   elif test "$PHP_SAPI" != "none"; then
 8001:     as_fn_error $? "
 8002: +--------------------------------------------------------------------+
 8003: |                        *** ATTENTION ***                           |
 8004: |                                                                    |
 8005: | You've configured multiple SAPIs to be build. You can build only   |
 8006: | one SAPI module plus CGI, CLI and FPM binaries at the same time.   |
 8007: +--------------------------------------------------------------------+
 8008: " "$LINENO" 5
 8009:   else
 8010:     PHP_SAPI=apache2filter
 8011:   fi
 8012: 
 8013: 
 8014: 
 8015:     BUILD_DIR="$BUILD_DIR sapi/apache2filter"
 8016: 
 8017: 
 8018: 
 8019:   PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS apache2filter"
 8020: 
 8021: 
 8022:     case "shared" in
 8023:     static)
 8024: 
 8025:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 8026:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
 8027:   php_c_post=
 8028:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 8029:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
 8030:   php_cxx_post=
 8031:   php_lo=lo
 8032: 
 8033:   case $with_pic in
 8034:     yes) pic_setting='-prefer-pic';;
 8035:     no)  pic_setting='-prefer-non-pic';;
 8036:   esac
 8037: 
 8038:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 8039:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
 8040:   shared_c_post=
 8041:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 8042:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
 8043:   shared_cxx_post=
 8044:   shared_lo=lo
 8045: 
 8046:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
 8047:   php_sapi_module=static
 8048: ;;
 8049:     shared)
 8050: 
 8051:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 8052:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
 8053:   php_c_post=
 8054:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 8055:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
 8056:   php_cxx_post=
 8057:   php_lo=lo
 8058: 
 8059:   case $with_pic in
 8060:     yes) pic_setting='-prefer-pic';;
 8061:     no)  pic_setting='-prefer-non-pic';;
 8062:   esac
 8063: 
 8064:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 8065:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
 8066:   shared_c_post=
 8067:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 8068:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
 8069:   shared_cxx_post=
 8070:   shared_lo=lo
 8071: 
 8072:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
 8073:   php_sapi_module=shared
 8074: 
 8075:   php_c_pre=$shared_c_pre
 8076:   php_c_meta=$shared_c_meta
 8077:   php_c_post=$shared_c_post
 8078:   php_cxx_pre=$shared_cxx_pre
 8079:   php_cxx_meta=$shared_cxx_meta
 8080:   php_cxx_post=$shared_cxx_post
 8081:   php_lo=$shared_lo
 8082: ;;
 8083:     bundle)
 8084: 
 8085:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 8086:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
 8087:   php_c_post=
 8088:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 8089:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
 8090:   php_cxx_post=
 8091:   php_lo=lo
 8092: 
 8093:   case $with_pic in
 8094:     yes) pic_setting='-prefer-pic';;
 8095:     no)  pic_setting='-prefer-non-pic';;
 8096:   esac
 8097: 
 8098:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 8099:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
 8100:   shared_c_post=
 8101:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 8102:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
 8103:   shared_cxx_post=
 8104:   shared_lo=lo
 8105: 
 8106:   OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
 8107:   php_sapi_module=static
 8108: ;;
 8109:     esac
 8110:     install_sapi="install-sapi"
 8111: 
 8112: 
 8113:   case sapi/apache2filter in
 8114:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
 8115:   /*) ac_srcdir=`echo "sapi/apache2filter"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
 8116:   *) ac_srcdir="$abs_srcdir/sapi/apache2filter/"; ac_bdir="sapi/apache2filter/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
 8117:   esac
 8118: 
 8119: 
 8120: 
 8121:   b_c_pre=$php_c_pre
 8122:   b_cxx_pre=$php_cxx_pre
 8123:   b_c_meta=$php_c_meta
 8124:   b_cxx_meta=$php_cxx_meta
 8125:   b_c_post=$php_c_post
 8126:   b_cxx_post=$php_cxx_post
 8127:   b_lo=$php_lo
 8128: 
 8129: 
 8130:   old_IFS=$IFS
 8131:   for ac_src in sapi_apache2.c apache_config.c php_functions.c; do
 8132: 
 8133:       IFS=.
 8134:       set $ac_src
 8135:       ac_obj=$1
 8136:       IFS=$old_IFS
 8137: 
 8138:       PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
 8139: 
 8140:       case $ac_src in
 8141:         *.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" ;;
 8142:         *.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" ;;
 8143:         *.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" ;;
 8144:         *.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" ;;
 8145:       esac
 8146: 
 8147:     cat >>Makefile.objects<<EOF
 8148: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
 8149: 	$ac_comp
 8150: EOF
 8151:   done
 8152: 
 8153: 
 8154: 
 8155: 
 8156:     INSTALL_IT="$INSTALL_IT $SAPI_LIBTOOL"
 8157:     ;;
 8158:   *)
 8159: 
 8160:   if test "shared" = "program"; then
 8161:     PHP_BINARIES="$PHP_BINARIES apache2filter"
 8162:   elif test "$PHP_SAPI" != "none"; then
 8163:     as_fn_error $? "
 8164: +--------------------------------------------------------------------+
 8165: |                        *** ATTENTION ***                           |
 8166: |                                                                    |
 8167: | You've configured multiple SAPIs to be build. You can build only   |
 8168: | one SAPI module plus CGI, CLI and FPM binaries at the same time.   |
 8169: +--------------------------------------------------------------------+
 8170: " "$LINENO" 5
 8171:   else
 8172:     PHP_SAPI=apache2filter
 8173:   fi
 8174: 
 8175: 
 8176: 
 8177:     BUILD_DIR="$BUILD_DIR sapi/apache2filter"
 8178: 
 8179: 
 8180: 
 8181:   PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS apache2filter"
 8182: 
 8183: 
 8184:     case "shared" in
 8185:     static)
 8186: 
 8187:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 8188:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
 8189:   php_c_post=
 8190:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 8191:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
 8192:   php_cxx_post=
 8193:   php_lo=lo
 8194: 
 8195:   case $with_pic in
 8196:     yes) pic_setting='-prefer-pic';;
 8197:     no)  pic_setting='-prefer-non-pic';;
 8198:   esac
 8199: 
 8200:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 8201:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
 8202:   shared_c_post=
 8203:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 8204:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
 8205:   shared_cxx_post=
 8206:   shared_lo=lo
 8207: 
 8208:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
 8209:   php_sapi_module=static
 8210: ;;
 8211:     shared)
 8212: 
 8213:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 8214:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
 8215:   php_c_post=
 8216:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 8217:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
 8218:   php_cxx_post=
 8219:   php_lo=lo
 8220: 
 8221:   case $with_pic in
 8222:     yes) pic_setting='-prefer-pic';;
 8223:     no)  pic_setting='-prefer-non-pic';;
 8224:   esac
 8225: 
 8226:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 8227:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
 8228:   shared_c_post=
 8229:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 8230:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
 8231:   shared_cxx_post=
 8232:   shared_lo=lo
 8233: 
 8234:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
 8235:   php_sapi_module=shared
 8236: 
 8237:   php_c_pre=$shared_c_pre
 8238:   php_c_meta=$shared_c_meta
 8239:   php_c_post=$shared_c_post
 8240:   php_cxx_pre=$shared_cxx_pre
 8241:   php_cxx_meta=$shared_cxx_meta
 8242:   php_cxx_post=$shared_cxx_post
 8243:   php_lo=$shared_lo
 8244: ;;
 8245:     bundle)
 8246: 
 8247:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 8248:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
 8249:   php_c_post=
 8250:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 8251:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
 8252:   php_cxx_post=
 8253:   php_lo=lo
 8254: 
 8255:   case $with_pic in
 8256:     yes) pic_setting='-prefer-pic';;
 8257:     no)  pic_setting='-prefer-non-pic';;
 8258:   esac
 8259: 
 8260:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 8261:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
 8262:   shared_c_post=
 8263:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 8264:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
 8265:   shared_cxx_post=
 8266:   shared_lo=lo
 8267: 
 8268:   OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
 8269:   php_sapi_module=static
 8270: ;;
 8271:     esac
 8272:     install_sapi="install-sapi"
 8273: 
 8274: 
 8275:   case sapi/apache2filter in
 8276:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
 8277:   /*) ac_srcdir=`echo "sapi/apache2filter"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
 8278:   *) ac_srcdir="$abs_srcdir/sapi/apache2filter/"; ac_bdir="sapi/apache2filter/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
 8279:   esac
 8280: 
 8281: 
 8282: 
 8283:   b_c_pre=$php_c_pre
 8284:   b_cxx_pre=$php_cxx_pre
 8285:   b_c_meta=$php_c_meta
 8286:   b_cxx_meta=$php_cxx_meta
 8287:   b_c_post=$php_c_post
 8288:   b_cxx_post=$php_cxx_post
 8289:   b_lo=$php_lo
 8290: 
 8291: 
 8292:   old_IFS=$IFS
 8293:   for ac_src in sapi_apache2.c apache_config.c php_functions.c; do
 8294: 
 8295:       IFS=.
 8296:       set $ac_src
 8297:       ac_obj=$1
 8298:       IFS=$old_IFS
 8299: 
 8300:       PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
 8301: 
 8302:       case $ac_src in
 8303:         *.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" ;;
 8304:         *.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" ;;
 8305:         *.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" ;;
 8306:         *.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" ;;
 8307:       esac
 8308: 
 8309:     cat >>Makefile.objects<<EOF
 8310: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
 8311: 	$ac_comp
 8312: EOF
 8313:   done
 8314: 
 8315: 
 8316: 
 8317: 
 8318:     INSTALL_IT="$INSTALL_IT $SAPI_LIBTOOL"
 8319:     ;;
 8320:   esac
 8321: 
 8322:   if test "$APACHE_VERSION" -lt 2004001; then
 8323:     APXS_MPM=`$APXS -q MPM_NAME`
 8324:     if test "$APXS_MPM" != "prefork" && test "$APXS_MPM" != "peruser" && test "$APXS_MPM" != "itk"; then
 8325: 
 8326:   enable_maintainer_zts=yes
 8327:   if test "$pthreads_working" != "yes"; then
 8328:     as_fn_error $? "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5
 8329:   fi
 8330: 
 8331:     fi
 8332:   else
 8333:     APACHE_THREADED_MPM=`$APXS_HTTPD -V | grep 'threaded:.*yes'`
 8334:     if test -n "$APACHE_THREADED_MPM"; then
 8335: 
 8336:   enable_maintainer_zts=yes
 8337:   if test "$pthreads_working" != "yes"; then
 8338:     as_fn_error $? "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5
 8339:   fi
 8340: 
 8341:     fi
 8342:   fi
 8343:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 8344: $as_echo "yes" >&6; }
 8345: 
 8346:   PHP_VAR_SUBST="$PHP_VAR_SUBST APXS"
 8347: 
 8348: else
 8349:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 8350: $as_echo "no" >&6; }
 8351: fi
 8352: 
 8353: 
 8354: 
 8355: 
 8356: php_with_apxs2=no
 8357: 
 8358: 
 8359: 
 8360: # Check whether --with-apxs2 was given.
 8361: if test "${with_apxs2+set}" = set; then :
 8362:   withval=$with_apxs2; PHP_APXS2=$withval
 8363: else
 8364: 
 8365:   PHP_APXS2=no
 8366: 
 8367: 
 8368: fi
 8369: 
 8370: 
 8371: ext_output=$PHP_APXS2
 8372: 
 8373: 
 8374: 
 8375: 
 8376: 
 8377: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apache 2.0 handler-module support via DSO through APXS" >&5
 8378: $as_echo_n "checking for Apache 2.0 handler-module support via DSO through APXS... " >&6; }
 8379: 
 8380: if test "$PHP_APXS2" != "no"; then
 8381:   if test "$PHP_APXS2" = "yes"; then
 8382:     APXS=apxs
 8383:     $APXS -q CFLAGS >/dev/null 2>&1
 8384:     if test "$?" != "0" && test -x /usr/sbin/apxs; then
 8385:       APXS=/usr/sbin/apxs
 8386:     fi
 8387:   else
 8388: 
 8389:   if test -z "$PHP_APXS2" || echo "$PHP_APXS2" | grep '^/' >/dev/null ; then
 8390:     APXS=$PHP_APXS2
 8391:   else
 8392: 
 8393:     ep_dir=`echo $PHP_APXS2|$SED 's%/*[^/][^/]*/*$%%'`
 8394: 
 8395:     ep_realdir=`(cd "$ep_dir" && pwd)`
 8396:     APXS="$ep_realdir"/`basename "$PHP_APXS2"`
 8397:   fi
 8398: 
 8399:   fi
 8400: 
 8401:   $APXS -q CFLAGS >/dev/null 2>&1
 8402:   if test "$?" != "0"; then
 8403:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
 8404: $as_echo "" >&6; }
 8405:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
 8406: $as_echo "" >&6; }
 8407:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, I cannot run apxs.  Possible reasons follow:" >&5
 8408: $as_echo "Sorry, I cannot run apxs.  Possible reasons follow:" >&6; }
 8409:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
 8410: $as_echo "" >&6; }
 8411:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: 1. Perl is not installed" >&5
 8412: $as_echo "1. Perl is not installed" >&6; }
 8413:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2. apxs was not found. Try to pass the path using --with-apxs2=/path/to/apxs" >&5
 8414: $as_echo "2. apxs was not found. Try to pass the path using --with-apxs2=/path/to/apxs" >&6; }
 8415:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: 3. Apache was not built using --enable-so (the apxs usage page is displayed)" >&5
 8416: $as_echo "3. Apache was not built using --enable-so (the apxs usage page is displayed)" >&6; }
 8417:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
 8418: $as_echo "" >&6; }
 8419:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: The output of $APXS follows:" >&5
 8420: $as_echo "The output of $APXS follows:" >&6; }
 8421:     $APXS -q CFLAGS
 8422:     as_fn_error $? "Aborting" "$LINENO" 5
 8423:   fi
 8424: 
 8425:   APXS_INCLUDEDIR=`$APXS -q INCLUDEDIR`
 8426:   APXS_BINDIR=`$APXS -q BINDIR`
 8427:   APXS_HTTPD=`$APXS -q SBINDIR`/`$APXS -q TARGET`
 8428:   APXS_CFLAGS=`$APXS -q CFLAGS`
 8429:   APU_BINDIR=`$APXS -q APU_BINDIR`
 8430:   APR_BINDIR=`$APXS -q APR_BINDIR`
 8431: 
 8432:   # Pick up ap[ru]-N-config if using httpd >=2.1
 8433:   APR_CONFIG=`$APXS -q APR_CONFIG 2>/dev/null ||
 8434:     echo $APR_BINDIR/apr-config`
 8435:   APU_CONFIG=`$APXS -q APU_CONFIG 2>/dev/null ||
 8436:     echo $APU_BINDIR/apu-config`
 8437: 
 8438:   APR_CFLAGS="`$APR_CONFIG --cppflags --includes`"
 8439:   APU_CFLAGS="`$APU_CONFIG --includes`"
 8440: 
 8441:   for flag in $APXS_CFLAGS; do
 8442:     case $flag in
 8443:     -D*) APACHE_CPPFLAGS="$APACHE_CPPFLAGS $flag";;
 8444:     esac
 8445:   done
 8446: 
 8447:   APACHE_CFLAGS="$APACHE_CPPFLAGS -I$APXS_INCLUDEDIR $APR_CFLAGS $APU_CFLAGS"
 8448: 
 8449:   # Test that we're trying to configure with apache 2.x
 8450: 
 8451:   ac_output=`$APXS_HTTPD -v 2>&1 | grep version | $SED -e 's/Oracle-HTTP-//'`
 8452:   ac_IFS=$IFS
 8453: IFS="- /.
 8454: "
 8455:   set $ac_output
 8456:   IFS=$ac_IFS
 8457: 
 8458:   APACHE_VERSION=`expr $4 \* 1000000 + $5 \* 1000 + $6`
 8459: 
 8460:   if test "$APACHE_VERSION" -le 2000000; then
 8461:     as_fn_error $? "You have enabled Apache 2 support while your server is Apache 1.3.  Please use the appropriate switch --with-apxs (without the 2)" "$LINENO" 5
 8462:   elif test "$APACHE_VERSION" -lt 2000044; then
 8463:     as_fn_error $? "Please note that Apache version >= 2.0.44 is required" "$LINENO" 5
 8464:   fi
 8465: 
 8466:   APXS_LIBEXECDIR='$(INSTALL_ROOT)'`$APXS -q LIBEXECDIR`
 8467:   if test -z `$APXS -q SYSCONFDIR`; then
 8468:     INSTALL_IT="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \
 8469:                  $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \
 8470:                        -i -n php5"
 8471:   else
 8472:     APXS_SYSCONFDIR='$(INSTALL_ROOT)'`$APXS -q SYSCONFDIR`
 8473:     INSTALL_IT="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \
 8474:                 \$(mkinstalldirs) '$APXS_SYSCONFDIR' && \
 8475:                  $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \
 8476:                        -S SYSCONFDIR='$APXS_SYSCONFDIR' \
 8477:                        -i -a -n php5"
 8478:   fi
 8479: 
 8480:   case $host_alias in
 8481:   *aix*)
 8482:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-brtl -Wl,-bI:$APXS_LIBEXECDIR/httpd.exp"
 8483: 
 8484:   if test "shared" = "program"; then
 8485:     PHP_BINARIES="$PHP_BINARIES apache2handler"
 8486:   elif test "$PHP_SAPI" != "none"; then
 8487:     as_fn_error $? "
 8488: +--------------------------------------------------------------------+
 8489: |                        *** ATTENTION ***                           |
 8490: |                                                                    |
 8491: | You've configured multiple SAPIs to be build. You can build only   |
 8492: | one SAPI module plus CGI, CLI and FPM binaries at the same time.   |
 8493: +--------------------------------------------------------------------+
 8494: " "$LINENO" 5
 8495:   else
 8496:     PHP_SAPI=apache2handler
 8497:   fi
 8498: 
 8499: 
 8500: 
 8501:     BUILD_DIR="$BUILD_DIR sapi/apache2handler"
 8502: 
 8503: 
 8504: 
 8505:   PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS apache2handler"
 8506: 
 8507: 
 8508:     case "shared" in
 8509:     static)
 8510: 
 8511:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 8512:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
 8513:   php_c_post=
 8514:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 8515:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
 8516:   php_cxx_post=
 8517:   php_lo=lo
 8518: 
 8519:   case $with_pic in
 8520:     yes) pic_setting='-prefer-pic';;
 8521:     no)  pic_setting='-prefer-non-pic';;
 8522:   esac
 8523: 
 8524:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 8525:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
 8526:   shared_c_post=
 8527:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 8528:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
 8529:   shared_cxx_post=
 8530:   shared_lo=lo
 8531: 
 8532:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
 8533:   php_sapi_module=static
 8534: ;;
 8535:     shared)
 8536: 
 8537:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 8538:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
 8539:   php_c_post=
 8540:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 8541:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
 8542:   php_cxx_post=
 8543:   php_lo=lo
 8544: 
 8545:   case $with_pic in
 8546:     yes) pic_setting='-prefer-pic';;
 8547:     no)  pic_setting='-prefer-non-pic';;
 8548:   esac
 8549: 
 8550:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 8551:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
 8552:   shared_c_post=
 8553:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 8554:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
 8555:   shared_cxx_post=
 8556:   shared_lo=lo
 8557: 
 8558:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
 8559:   php_sapi_module=shared
 8560: 
 8561:   php_c_pre=$shared_c_pre
 8562:   php_c_meta=$shared_c_meta
 8563:   php_c_post=$shared_c_post
 8564:   php_cxx_pre=$shared_cxx_pre
 8565:   php_cxx_meta=$shared_cxx_meta
 8566:   php_cxx_post=$shared_cxx_post
 8567:   php_lo=$shared_lo
 8568: ;;
 8569:     bundle)
 8570: 
 8571:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 8572:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
 8573:   php_c_post=
 8574:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 8575:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
 8576:   php_cxx_post=
 8577:   php_lo=lo
 8578: 
 8579:   case $with_pic in
 8580:     yes) pic_setting='-prefer-pic';;
 8581:     no)  pic_setting='-prefer-non-pic';;
 8582:   esac
 8583: 
 8584:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 8585:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
 8586:   shared_c_post=
 8587:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 8588:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
 8589:   shared_cxx_post=
 8590:   shared_lo=lo
 8591: 
 8592:   OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
 8593:   php_sapi_module=static
 8594: ;;
 8595:     esac
 8596:     install_sapi="install-sapi"
 8597: 
 8598: 
 8599:   case sapi/apache2handler in
 8600:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
 8601:   /*) ac_srcdir=`echo "sapi/apache2handler"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
 8602:   *) ac_srcdir="$abs_srcdir/sapi/apache2handler/"; ac_bdir="sapi/apache2handler/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
 8603:   esac
 8604: 
 8605: 
 8606: 
 8607:   b_c_pre=$php_c_pre
 8608:   b_cxx_pre=$php_cxx_pre
 8609:   b_c_meta=$php_c_meta
 8610:   b_cxx_meta=$php_cxx_meta
 8611:   b_c_post=$php_c_post
 8612:   b_cxx_post=$php_cxx_post
 8613:   b_lo=$php_lo
 8614: 
 8615: 
 8616:   old_IFS=$IFS
 8617:   for ac_src in mod_php5.c sapi_apache2.c apache_config.c php_functions.c; do
 8618: 
 8619:       IFS=.
 8620:       set $ac_src
 8621:       ac_obj=$1
 8622:       IFS=$old_IFS
 8623: 
 8624:       PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
 8625: 
 8626:       case $ac_src in
 8627:         *.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" ;;
 8628:         *.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" ;;
 8629:         *.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" ;;
 8630:         *.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" ;;
 8631:       esac
 8632: 
 8633:     cat >>Makefile.objects<<EOF
 8634: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
 8635: 	$ac_comp
 8636: EOF
 8637:   done
 8638: 
 8639: 
 8640: 
 8641: 
 8642:     INSTALL_IT="$INSTALL_IT $SAPI_LIBTOOL"
 8643:     ;;
 8644:   *darwin*)
 8645:                     if test -x "$APR_CONFIG"; then
 8646:         MH_BUNDLE_FLAGS="`$APR_CONFIG --ldflags --link-ld --libs`"
 8647:     fi
 8648:     if test -x "$APU_CONFIG"; then
 8649:         MH_BUNDLE_FLAGS="`$APU_CONFIG --ldflags --link-ld --libs` $MH_BUNDLE_FLAGS"
 8650:     fi
 8651:     MH_BUNDLE_FLAGS="-bundle -bundle_loader $APXS_HTTPD $MH_BUNDLE_FLAGS"
 8652: 
 8653:   PHP_VAR_SUBST="$PHP_VAR_SUBST MH_BUNDLE_FLAGS"
 8654: 
 8655: 
 8656:   if test "bundle" = "program"; then
 8657:     PHP_BINARIES="$PHP_BINARIES apache2handler"
 8658:   elif test "$PHP_SAPI" != "none"; then
 8659:     as_fn_error $? "
 8660: +--------------------------------------------------------------------+
 8661: |                        *** ATTENTION ***                           |
 8662: |                                                                    |
 8663: | You've configured multiple SAPIs to be build. You can build only   |
 8664: | one SAPI module plus CGI, CLI and FPM binaries at the same time.   |
 8665: +--------------------------------------------------------------------+
 8666: " "$LINENO" 5
 8667:   else
 8668:     PHP_SAPI=apache2handler
 8669:   fi
 8670: 
 8671: 
 8672: 
 8673:     BUILD_DIR="$BUILD_DIR sapi/apache2handler"
 8674: 
 8675: 
 8676: 
 8677:   PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS apache2handler"
 8678: 
 8679: 
 8680:     case "bundle" in
 8681:     static)
 8682: 
 8683:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 8684:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
 8685:   php_c_post=
 8686:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 8687:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
 8688:   php_cxx_post=
 8689:   php_lo=lo
 8690: 
 8691:   case $with_pic in
 8692:     yes) pic_setting='-prefer-pic';;
 8693:     no)  pic_setting='-prefer-non-pic';;
 8694:   esac
 8695: 
 8696:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 8697:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
 8698:   shared_c_post=
 8699:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 8700:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
 8701:   shared_cxx_post=
 8702:   shared_lo=lo
 8703: 
 8704:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
 8705:   php_sapi_module=static
 8706: ;;
 8707:     shared)
 8708: 
 8709:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 8710:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
 8711:   php_c_post=
 8712:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 8713:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
 8714:   php_cxx_post=
 8715:   php_lo=lo
 8716: 
 8717:   case $with_pic in
 8718:     yes) pic_setting='-prefer-pic';;
 8719:     no)  pic_setting='-prefer-non-pic';;
 8720:   esac
 8721: 
 8722:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 8723:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
 8724:   shared_c_post=
 8725:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 8726:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
 8727:   shared_cxx_post=
 8728:   shared_lo=lo
 8729: 
 8730:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
 8731:   php_sapi_module=shared
 8732: 
 8733:   php_c_pre=$shared_c_pre
 8734:   php_c_meta=$shared_c_meta
 8735:   php_c_post=$shared_c_post
 8736:   php_cxx_pre=$shared_cxx_pre
 8737:   php_cxx_meta=$shared_cxx_meta
 8738:   php_cxx_post=$shared_cxx_post
 8739:   php_lo=$shared_lo
 8740: ;;
 8741:     bundle)
 8742: 
 8743:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 8744:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
 8745:   php_c_post=
 8746:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 8747:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
 8748:   php_cxx_post=
 8749:   php_lo=lo
 8750: 
 8751:   case $with_pic in
 8752:     yes) pic_setting='-prefer-pic';;
 8753:     no)  pic_setting='-prefer-non-pic';;
 8754:   esac
 8755: 
 8756:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 8757:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
 8758:   shared_c_post=
 8759:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 8760:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
 8761:   shared_cxx_post=
 8762:   shared_lo=lo
 8763: 
 8764:   OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
 8765:   php_sapi_module=static
 8766: ;;
 8767:     esac
 8768:     install_sapi="install-sapi"
 8769: 
 8770: 
 8771:   case sapi/apache2handler in
 8772:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
 8773:   /*) ac_srcdir=`echo "sapi/apache2handler"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
 8774:   *) ac_srcdir="$abs_srcdir/sapi/apache2handler/"; ac_bdir="sapi/apache2handler/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
 8775:   esac
 8776: 
 8777: 
 8778: 
 8779:   b_c_pre=$php_c_pre
 8780:   b_cxx_pre=$php_cxx_pre
 8781:   b_c_meta=$php_c_meta
 8782:   b_cxx_meta=$php_cxx_meta
 8783:   b_c_post=$php_c_post
 8784:   b_cxx_post=$php_cxx_post
 8785:   b_lo=$php_lo
 8786: 
 8787: 
 8788:   old_IFS=$IFS
 8789:   for ac_src in mod_php5.c sapi_apache2.c apache_config.c php_functions.c; do
 8790: 
 8791:       IFS=.
 8792:       set $ac_src
 8793:       ac_obj=$1
 8794:       IFS=$old_IFS
 8795: 
 8796:       PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
 8797: 
 8798:       case $ac_src in
 8799:         *.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" ;;
 8800:         *.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" ;;
 8801:         *.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" ;;
 8802:         *.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" ;;
 8803:       esac
 8804: 
 8805:     cat >>Makefile.objects<<EOF
 8806: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
 8807: 	$ac_comp
 8808: EOF
 8809:   done
 8810: 
 8811: 
 8812: 
 8813: 
 8814:     SAPI_SHARED=libs/libphp5.so
 8815:     INSTALL_IT="$INSTALL_IT $SAPI_SHARED"
 8816:     ;;
 8817:   *beos*)
 8818:     if test -f _APP_; then `rm _APP_`; fi
 8819:     `ln -s $APXS_BINDIR/httpd _APP_`
 8820:     EXTRA_LIBS="$EXTRA_LIBS _APP_"
 8821: 
 8822:   if test "shared" = "program"; then
 8823:     PHP_BINARIES="$PHP_BINARIES apache2handler"
 8824:   elif test "$PHP_SAPI" != "none"; then
 8825:     as_fn_error $? "
 8826: +--------------------------------------------------------------------+
 8827: |                        *** ATTENTION ***                           |
 8828: |                                                                    |
 8829: | You've configured multiple SAPIs to be build. You can build only   |
 8830: | one SAPI module plus CGI, CLI and FPM binaries at the same time.   |
 8831: +--------------------------------------------------------------------+
 8832: " "$LINENO" 5
 8833:   else
 8834:     PHP_SAPI=apache2handler
 8835:   fi
 8836: 
 8837: 
 8838: 
 8839:     BUILD_DIR="$BUILD_DIR sapi/apache2handler"
 8840: 
 8841: 
 8842: 
 8843:   PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS apache2handler"
 8844: 
 8845: 
 8846:     case "shared" in
 8847:     static)
 8848: 
 8849:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 8850:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
 8851:   php_c_post=
 8852:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 8853:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
 8854:   php_cxx_post=
 8855:   php_lo=lo
 8856: 
 8857:   case $with_pic in
 8858:     yes) pic_setting='-prefer-pic';;
 8859:     no)  pic_setting='-prefer-non-pic';;
 8860:   esac
 8861: 
 8862:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 8863:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
 8864:   shared_c_post=
 8865:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 8866:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
 8867:   shared_cxx_post=
 8868:   shared_lo=lo
 8869: 
 8870:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
 8871:   php_sapi_module=static
 8872: ;;
 8873:     shared)
 8874: 
 8875:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 8876:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
 8877:   php_c_post=
 8878:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 8879:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
 8880:   php_cxx_post=
 8881:   php_lo=lo
 8882: 
 8883:   case $with_pic in
 8884:     yes) pic_setting='-prefer-pic';;
 8885:     no)  pic_setting='-prefer-non-pic';;
 8886:   esac
 8887: 
 8888:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 8889:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
 8890:   shared_c_post=
 8891:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 8892:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
 8893:   shared_cxx_post=
 8894:   shared_lo=lo
 8895: 
 8896:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
 8897:   php_sapi_module=shared
 8898: 
 8899:   php_c_pre=$shared_c_pre
 8900:   php_c_meta=$shared_c_meta
 8901:   php_c_post=$shared_c_post
 8902:   php_cxx_pre=$shared_cxx_pre
 8903:   php_cxx_meta=$shared_cxx_meta
 8904:   php_cxx_post=$shared_cxx_post
 8905:   php_lo=$shared_lo
 8906: ;;
 8907:     bundle)
 8908: 
 8909:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 8910:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
 8911:   php_c_post=
 8912:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 8913:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
 8914:   php_cxx_post=
 8915:   php_lo=lo
 8916: 
 8917:   case $with_pic in
 8918:     yes) pic_setting='-prefer-pic';;
 8919:     no)  pic_setting='-prefer-non-pic';;
 8920:   esac
 8921: 
 8922:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 8923:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
 8924:   shared_c_post=
 8925:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 8926:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
 8927:   shared_cxx_post=
 8928:   shared_lo=lo
 8929: 
 8930:   OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
 8931:   php_sapi_module=static
 8932: ;;
 8933:     esac
 8934:     install_sapi="install-sapi"
 8935: 
 8936: 
 8937:   case sapi/apache2handler in
 8938:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
 8939:   /*) ac_srcdir=`echo "sapi/apache2handler"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
 8940:   *) ac_srcdir="$abs_srcdir/sapi/apache2handler/"; ac_bdir="sapi/apache2handler/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
 8941:   esac
 8942: 
 8943: 
 8944: 
 8945:   b_c_pre=$php_c_pre
 8946:   b_cxx_pre=$php_cxx_pre
 8947:   b_c_meta=$php_c_meta
 8948:   b_cxx_meta=$php_cxx_meta
 8949:   b_c_post=$php_c_post
 8950:   b_cxx_post=$php_cxx_post
 8951:   b_lo=$php_lo
 8952: 
 8953: 
 8954:   old_IFS=$IFS
 8955:   for ac_src in mod_php5.c sapi_apache2.c apache_config.c php_functions.c; do
 8956: 
 8957:       IFS=.
 8958:       set $ac_src
 8959:       ac_obj=$1
 8960:       IFS=$old_IFS
 8961: 
 8962:       PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
 8963: 
 8964:       case $ac_src in
 8965:         *.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" ;;
 8966:         *.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" ;;
 8967:         *.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" ;;
 8968:         *.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" ;;
 8969:       esac
 8970: 
 8971:     cat >>Makefile.objects<<EOF
 8972: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
 8973: 	$ac_comp
 8974: EOF
 8975:   done
 8976: 
 8977: 
 8978: 
 8979: 
 8980:     INSTALL_IT="$INSTALL_IT $SAPI_LIBTOOL"
 8981:     ;;
 8982:   *)
 8983: 
 8984:   if test "shared" = "program"; then
 8985:     PHP_BINARIES="$PHP_BINARIES apache2handler"
 8986:   elif test "$PHP_SAPI" != "none"; then
 8987:     as_fn_error $? "
 8988: +--------------------------------------------------------------------+
 8989: |                        *** ATTENTION ***                           |
 8990: |                                                                    |
 8991: | You've configured multiple SAPIs to be build. You can build only   |
 8992: | one SAPI module plus CGI, CLI and FPM binaries at the same time.   |
 8993: +--------------------------------------------------------------------+
 8994: " "$LINENO" 5
 8995:   else
 8996:     PHP_SAPI=apache2handler
 8997:   fi
 8998: 
 8999: 
 9000: 
 9001:     BUILD_DIR="$BUILD_DIR sapi/apache2handler"
 9002: 
 9003: 
 9004: 
 9005:   PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS apache2handler"
 9006: 
 9007: 
 9008:     case "shared" in
 9009:     static)
 9010: 
 9011:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 9012:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
 9013:   php_c_post=
 9014:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 9015:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
 9016:   php_cxx_post=
 9017:   php_lo=lo
 9018: 
 9019:   case $with_pic in
 9020:     yes) pic_setting='-prefer-pic';;
 9021:     no)  pic_setting='-prefer-non-pic';;
 9022:   esac
 9023: 
 9024:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 9025:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
 9026:   shared_c_post=
 9027:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 9028:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
 9029:   shared_cxx_post=
 9030:   shared_lo=lo
 9031: 
 9032:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
 9033:   php_sapi_module=static
 9034: ;;
 9035:     shared)
 9036: 
 9037:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 9038:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
 9039:   php_c_post=
 9040:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 9041:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
 9042:   php_cxx_post=
 9043:   php_lo=lo
 9044: 
 9045:   case $with_pic in
 9046:     yes) pic_setting='-prefer-pic';;
 9047:     no)  pic_setting='-prefer-non-pic';;
 9048:   esac
 9049: 
 9050:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 9051:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
 9052:   shared_c_post=
 9053:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 9054:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
 9055:   shared_cxx_post=
 9056:   shared_lo=lo
 9057: 
 9058:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
 9059:   php_sapi_module=shared
 9060: 
 9061:   php_c_pre=$shared_c_pre
 9062:   php_c_meta=$shared_c_meta
 9063:   php_c_post=$shared_c_post
 9064:   php_cxx_pre=$shared_cxx_pre
 9065:   php_cxx_meta=$shared_cxx_meta
 9066:   php_cxx_post=$shared_cxx_post
 9067:   php_lo=$shared_lo
 9068: ;;
 9069:     bundle)
 9070: 
 9071:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 9072:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
 9073:   php_c_post=
 9074:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 9075:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
 9076:   php_cxx_post=
 9077:   php_lo=lo
 9078: 
 9079:   case $with_pic in
 9080:     yes) pic_setting='-prefer-pic';;
 9081:     no)  pic_setting='-prefer-non-pic';;
 9082:   esac
 9083: 
 9084:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 9085:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
 9086:   shared_c_post=
 9087:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 9088:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
 9089:   shared_cxx_post=
 9090:   shared_lo=lo
 9091: 
 9092:   OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
 9093:   php_sapi_module=static
 9094: ;;
 9095:     esac
 9096:     install_sapi="install-sapi"
 9097: 
 9098: 
 9099:   case sapi/apache2handler in
 9100:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
 9101:   /*) ac_srcdir=`echo "sapi/apache2handler"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
 9102:   *) ac_srcdir="$abs_srcdir/sapi/apache2handler/"; ac_bdir="sapi/apache2handler/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
 9103:   esac
 9104: 
 9105: 
 9106: 
 9107:   b_c_pre=$php_c_pre
 9108:   b_cxx_pre=$php_cxx_pre
 9109:   b_c_meta=$php_c_meta
 9110:   b_cxx_meta=$php_cxx_meta
 9111:   b_c_post=$php_c_post
 9112:   b_cxx_post=$php_cxx_post
 9113:   b_lo=$php_lo
 9114: 
 9115: 
 9116:   old_IFS=$IFS
 9117:   for ac_src in mod_php5.c sapi_apache2.c apache_config.c php_functions.c; do
 9118: 
 9119:       IFS=.
 9120:       set $ac_src
 9121:       ac_obj=$1
 9122:       IFS=$old_IFS
 9123: 
 9124:       PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
 9125: 
 9126:       case $ac_src in
 9127:         *.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" ;;
 9128:         *.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" ;;
 9129:         *.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" ;;
 9130:         *.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" ;;
 9131:       esac
 9132: 
 9133:     cat >>Makefile.objects<<EOF
 9134: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
 9135: 	$ac_comp
 9136: EOF
 9137:   done
 9138: 
 9139: 
 9140: 
 9141: 
 9142:     INSTALL_IT="$INSTALL_IT $SAPI_LIBTOOL"
 9143:     ;;
 9144:   esac
 9145: 
 9146:   if test "$APACHE_VERSION" -lt 2004001; then
 9147:     APXS_MPM=`$APXS -q MPM_NAME`
 9148:     if test "$APXS_MPM" != "prefork" && test "$APXS_MPM" != "peruser" && test "$APXS_MPM" != "itk"; then
 9149: 
 9150:   enable_maintainer_zts=yes
 9151:   if test "$pthreads_working" != "yes"; then
 9152:     as_fn_error $? "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5
 9153:   fi
 9154: 
 9155:     fi
 9156:   else
 9157:     APACHE_THREADED_MPM=`$APXS_HTTPD -V | grep 'threaded:.*yes'`
 9158:     if test -n "$APACHE_THREADED_MPM"; then
 9159: 
 9160:   enable_maintainer_zts=yes
 9161:   if test "$pthreads_working" != "yes"; then
 9162:     as_fn_error $? "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5
 9163:   fi
 9164: 
 9165:     fi
 9166:   fi
 9167:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 9168: $as_echo "yes" >&6; }
 9169: 
 9170:   PHP_VAR_SUBST="$PHP_VAR_SUBST APXS"
 9171: 
 9172: else
 9173:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 9174: $as_echo "no" >&6; }
 9175: fi
 9176: 
 9177: 
 9178: 
 9179: 
 9180: 
 9181: php_with_apache_hooks=no
 9182: 
 9183: 
 9184: 
 9185: # Check whether --with-apache-hooks was given.
 9186: if test "${with_apache_hooks+set}" = set; then :
 9187:   withval=$with_apache_hooks; PHP_APACHE_HOOKS=$withval
 9188: else
 9189: 
 9190:   PHP_APACHE_HOOKS=no
 9191: 
 9192: 
 9193: fi
 9194: 
 9195: 
 9196: ext_output=$PHP_APACHE_HOOKS
 9197: 
 9198: 
 9199: 
 9200: 
 9201: 
 9202: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apache 1.x (hooks) module support via DSO through APXS" >&5
 9203: $as_echo_n "checking for Apache 1.x (hooks) module support via DSO through APXS... " >&6; }
 9204: 
 9205: if test "$PHP_APACHE_HOOKS" != "no"; then
 9206:   if test "$PHP_APACHE_HOOKS" = "yes"; then
 9207:     APXS=apxs
 9208:     $APXS -q CFLAGS >/dev/null 2>&1
 9209:     if test "$?" != "0" && test -x /usr/sbin/apxs; then #SUSE 6.x
 9210:       APXS=/usr/sbin/apxs
 9211:     fi
 9212:   else
 9213: 
 9214:   if test -z "$PHP_APACHE_HOOKS" || echo "$PHP_APACHE_HOOKS" | grep '^/' >/dev/null ; then
 9215:     APXS=$PHP_APACHE_HOOKS
 9216:   else
 9217: 
 9218:     ep_dir=`echo $PHP_APACHE_HOOKS|$SED 's%/*[^/][^/]*/*$%%'`
 9219: 
 9220:     ep_realdir=`(cd "$ep_dir" && pwd)`
 9221:     APXS="$ep_realdir"/`basename "$PHP_APACHE_HOOKS"`
 9222:   fi
 9223: 
 9224:   fi
 9225: 
 9226:   $APXS -q CFLAGS >/dev/null 2>&1
 9227:   if test "$?" != "0"; then
 9228:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
 9229: $as_echo "" >&6; }
 9230:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
 9231: $as_echo "" >&6; }
 9232:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, I was not able to successfully run APXS.  Possible reasons:" >&5
 9233: $as_echo "Sorry, I was not able to successfully run APXS.  Possible reasons:" >&6; }
 9234:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
 9235: $as_echo "" >&6; }
 9236:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: 1.  Perl is not installed;" >&5
 9237: $as_echo "1.  Perl is not installed;" >&6; }
 9238:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.  Apache was not compiled with DSO support (--enable-module=so);" >&5
 9239: $as_echo "2.  Apache was not compiled with DSO support (--enable-module=so);" >&6; }
 9240:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: 3.  'apxs' is not in your path.  Try to use --with-apxs=/path/to/apxs" >&5
 9241: $as_echo "3.  'apxs' is not in your path.  Try to use --with-apxs=/path/to/apxs" >&6; }
 9242:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: The output of $APXS follows" >&5
 9243: $as_echo "The output of $APXS follows" >&6; }
 9244:     $APXS -q CFLAGS
 9245:     as_fn_error $? "Aborting" "$LINENO" 5
 9246:   fi
 9247: 
 9248:   APXS_LDFLAGS="@SYBASE_LFLAGS@ @SYBASE_LIBS@ @SYBASE_CT_LFLAGS@ @SYBASE_CT_LIBS@"
 9249:   APXS_INCLUDEDIR=`$APXS -q INCLUDEDIR`
 9250:   APXS_CFLAGS=`$APXS -q CFLAGS`
 9251:   APXS_HTTPD=`$APXS -q SBINDIR`/`$APXS -q TARGET`
 9252:   APACHE_INCLUDE=-I$APXS_INCLUDEDIR
 9253: 
 9254:   # Test that we're trying to configure with apache 1.x
 9255: 
 9256:   ac_output=`$APXS_HTTPD -v 2>&1 | grep version | $SED -e 's/Oracle-HTTP-//'`
 9257:   ac_IFS=$IFS
 9258: IFS="- /.
 9259: "
 9260:   set $ac_output
 9261:   IFS=$ac_IFS
 9262: 
 9263:   APACHE_VERSION=`expr $4 \* 1000000 + $5 \* 1000 + $6`
 9264: 
 9265:   if test "$APACHE_VERSION" -ge 2000000; then
 9266:     as_fn_error $? "You have enabled Apache 1.3 support while your server is Apache 2.  Please use the appropriate switch --with-apxs2" "$LINENO" 5
 9267:   fi
 9268: 
 9269:   for flag in $APXS_CFLAGS; do
 9270:     case $flag in
 9271:     -D*) APACHE_CPPFLAGS="$APACHE_CPPFLAGS $flag";;
 9272:     esac
 9273:   done
 9274: 
 9275:   case $host_alias in
 9276:   *aix*)
 9277:     APXS_LIBEXECDIR=`$APXS -q LIBEXECDIR`
 9278:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-brtl -Wl,-bI:$APXS_LIBEXECDIR/httpd.exp"
 9279:     PHP_AIX_LDFLAGS="-Wl,-brtl"
 9280:     build_type=shared
 9281:     ;;
 9282:   *darwin*)
 9283:     MH_BUNDLE_FLAGS="-dynamic -twolevel_namespace -bundle -bundle_loader $APXS_HTTPD"
 9284: 
 9285:   PHP_VAR_SUBST="$PHP_VAR_SUBST MH_BUNDLE_FLAGS"
 9286: 
 9287:     SAPI_SHARED=libs/libphp5.so
 9288:     build_type=bundle
 9289:     ;;
 9290:   *)
 9291:     build_type=shared
 9292:     ;;
 9293:   esac
 9294: 
 9295: 
 9296:   if test "$build_type" = "program"; then
 9297:     PHP_BINARIES="$PHP_BINARIES apache_hooks"
 9298:   elif test "$PHP_SAPI" != "none"; then
 9299:     as_fn_error $? "
 9300: +--------------------------------------------------------------------+
 9301: |                        *** ATTENTION ***                           |
 9302: |                                                                    |
 9303: | You've configured multiple SAPIs to be build. You can build only   |
 9304: | one SAPI module plus CGI, CLI and FPM binaries at the same time.   |
 9305: +--------------------------------------------------------------------+
 9306: " "$LINENO" 5
 9307:   else
 9308:     PHP_SAPI=apache_hooks
 9309:   fi
 9310: 
 9311: 
 9312: 
 9313:     BUILD_DIR="$BUILD_DIR sapi/apache_hooks"
 9314: 
 9315: 
 9316: 
 9317:   PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS apache_hooks"
 9318: 
 9319: 
 9320:     case "$build_type" in
 9321:     static)
 9322: 
 9323:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 9324:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
 9325:   php_c_post=
 9326:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 9327:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
 9328:   php_cxx_post=
 9329:   php_lo=lo
 9330: 
 9331:   case $with_pic in
 9332:     yes) pic_setting='-prefer-pic';;
 9333:     no)  pic_setting='-prefer-non-pic';;
 9334:   esac
 9335: 
 9336:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 9337:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
 9338:   shared_c_post=
 9339:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 9340:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
 9341:   shared_cxx_post=
 9342:   shared_lo=lo
 9343: 
 9344:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
 9345:   php_sapi_module=static
 9346: ;;
 9347:     shared)
 9348: 
 9349:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 9350:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
 9351:   php_c_post=
 9352:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 9353:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
 9354:   php_cxx_post=
 9355:   php_lo=lo
 9356: 
 9357:   case $with_pic in
 9358:     yes) pic_setting='-prefer-pic';;
 9359:     no)  pic_setting='-prefer-non-pic';;
 9360:   esac
 9361: 
 9362:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 9363:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
 9364:   shared_c_post=
 9365:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 9366:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
 9367:   shared_cxx_post=
 9368:   shared_lo=lo
 9369: 
 9370:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
 9371:   php_sapi_module=shared
 9372: 
 9373:   php_c_pre=$shared_c_pre
 9374:   php_c_meta=$shared_c_meta
 9375:   php_c_post=$shared_c_post
 9376:   php_cxx_pre=$shared_cxx_pre
 9377:   php_cxx_meta=$shared_cxx_meta
 9378:   php_cxx_post=$shared_cxx_post
 9379:   php_lo=$shared_lo
 9380: ;;
 9381:     bundle)
 9382: 
 9383:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 9384:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
 9385:   php_c_post=
 9386:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 9387:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
 9388:   php_cxx_post=
 9389:   php_lo=lo
 9390: 
 9391:   case $with_pic in
 9392:     yes) pic_setting='-prefer-pic';;
 9393:     no)  pic_setting='-prefer-non-pic';;
 9394:   esac
 9395: 
 9396:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 9397:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
 9398:   shared_c_post=
 9399:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 9400:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
 9401:   shared_cxx_post=
 9402:   shared_lo=lo
 9403: 
 9404:   OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
 9405:   php_sapi_module=static
 9406: ;;
 9407:     esac
 9408:     install_sapi="install-sapi"
 9409: 
 9410: 
 9411:   case sapi/apache_hooks in
 9412:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
 9413:   /*) ac_srcdir=`echo "sapi/apache_hooks"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
 9414:   *) ac_srcdir="$abs_srcdir/sapi/apache_hooks/"; ac_bdir="sapi/apache_hooks/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
 9415:   esac
 9416: 
 9417: 
 9418: 
 9419:   b_c_pre=$php_c_pre
 9420:   b_cxx_pre=$php_cxx_pre
 9421:   b_c_meta=$php_c_meta
 9422:   b_cxx_meta=$php_cxx_meta
 9423:   b_c_post=$php_c_post
 9424:   b_cxx_post=$php_cxx_post
 9425:   b_lo=$php_lo
 9426: 
 9427: 
 9428:   old_IFS=$IFS
 9429:   for ac_src in sapi_apache.c mod_php5.c php_apache.c; do
 9430: 
 9431:       IFS=.
 9432:       set $ac_src
 9433:       ac_obj=$1
 9434:       IFS=$old_IFS
 9435: 
 9436:       PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
 9437: 
 9438:       case $ac_src in
 9439:         *.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" ;;
 9440:         *.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" ;;
 9441:         *.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" ;;
 9442:         *.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" ;;
 9443:       esac
 9444: 
 9445:     cat >>Makefile.objects<<EOF
 9446: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
 9447: 	$ac_comp
 9448: EOF
 9449:   done
 9450: 
 9451: 
 9452: 
 9453: 
 9454: 
 9455:   # Test whether apxs support -S option
 9456:   $APXS -q -S CFLAGS="$APXS_CFLAGS" CFLAGS >/dev/null 2>&1
 9457: 
 9458:   if test "$?" != "0"; then
 9459:     APACHE_HOOKS_INSTALL="$APXS -i -a -n php5 $SAPI_SHARED" # Old apxs does not have -S option
 9460:   else
 9461:     APXS_LIBEXECDIR='$(INSTALL_ROOT)'`$APXS -q LIBEXECDIR`
 9462:     if test -z `$APXS -q SYSCONFDIR`; then
 9463:       APACHE_HOOKS_INSTALL="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \
 9464:                        $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \
 9465:                              -i -n php5 $SAPI_SHARED"
 9466:     else
 9467:       APXS_SYSCONFDIR='$(INSTALL_ROOT)'`$APXS -q SYSCONFDIR`
 9468:       APACHE_HOOKS_INSTALL="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \
 9469:                       \$(mkinstalldirs) '$APXS_SYSCONFDIR' && \
 9470:                        $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \
 9471:                              -S SYSCONFDIR='$APXS_SYSCONFDIR' \
 9472:                              -i -a -n php5 $SAPI_SHARED"
 9473:     fi
 9474:   fi
 9475: 
 9476:   if test -z "`$APXS -q LD_SHLIB`" || test "`$APXS -q LIBEXECDIR`" = "modules"; then
 9477:     PHP_APXS_BROKEN=yes
 9478:   fi
 9479:   STRONGHOLD=
 9480: 
 9481: $as_echo "#define HAVE_AP_CONFIG_H 1" >>confdefs.h
 9482: 
 9483: 
 9484: $as_echo "#define HAVE_AP_COMPAT_H 1" >>confdefs.h
 9485: 
 9486: 
 9487: $as_echo "#define HAVE_APACHE_HOOKS 1" >>confdefs.h
 9488: 
 9489:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 9490: $as_echo "yes" >&6; }
 9491: else
 9492:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 9493: $as_echo "no" >&6; }
 9494: fi
 9495: 
 9496: 
 9497: php_with_apache_hooks_static=no
 9498: 
 9499: 
 9500: 
 9501: # Check whether --with-apache-hooks-static was given.
 9502: if test "${with_apache_hooks_static+set}" = set; then :
 9503:   withval=$with_apache_hooks_static; PHP_APACHE_HOOKS_STATIC=$withval
 9504: else
 9505: 
 9506:   PHP_APACHE_HOOKS_STATIC=no
 9507: 
 9508: 
 9509: fi
 9510: 
 9511: 
 9512: ext_output=$PHP_APACHE_HOOKS_STATIC
 9513: 
 9514: 
 9515: 
 9516: 
 9517: 
 9518: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apache 1.x (hooks) module support" >&5
 9519: $as_echo_n "checking for Apache 1.x (hooks) module support... " >&6; }
 9520: 
 9521: if test "$PHP_SAPI" != "apache" && test "$PHP_SAPI" != "apache_hooks" && test "$PHP_APACHE_HOOKS_STATIC" != "no"; then
 9522: 
 9523:   if test "$PHP_APACHE_HOOKS_STATIC" = "yes"; then
 9524:     # Apache's default directory
 9525:     PHP_APACHE_HOOKS_STATIC=/usr/local/apache
 9526:   fi
 9527: 
 9528:   APACHE_HOOKS_INSTALL_FILES="\$(srcdir)/sapi/apache_hooks/mod_php5.* sapi/apache_hooks/libphp5.module"
 9529: 
 9530: 
 9531: $as_echo "#define HAVE_APACHE 1" >>confdefs.h
 9532: 
 9533:   APACHE_HOOKS_MODULE=yes
 9534: 
 9535:   if test -z "$PHP_APACHE_HOOKS_STATIC" || echo "$PHP_APACHE_HOOKS_STATIC" | grep '^/' >/dev/null ; then
 9536:     PHP_APACHE_HOOKS_STATIC=$PHP_APACHE_HOOKS_STATIC
 9537:   else
 9538: 
 9539:     ep_dir=`echo $PHP_APACHE_HOOKS_STATIC|$SED 's%/*[^/][^/]*/*$%%'`
 9540: 
 9541:     ep_realdir=`(cd "$ep_dir" && pwd)`
 9542:     PHP_APACHE_HOOKS_STATIC="$ep_realdir"/`basename "$PHP_APACHE_HOOKS_STATIC"`
 9543:   fi
 9544: 
 9545:   # For Apache 1.2.x
 9546:   if test -f $PHP_APACHE_HOOKS_STATIC/src/httpd.h; then
 9547:     APACHE_INCLUDE=-I$PHP_APACHE_HOOKS_STATIC/src
 9548:     APACHE_TARGET=$PHP_APACHE_HOOKS_STATIC/src
 9549: 
 9550:   if test "static" = "program"; then
 9551:     PHP_BINARIES="$PHP_BINARIES apache_hooks"
 9552:   elif test "$PHP_SAPI" != "none"; then
 9553:     as_fn_error $? "
 9554: +--------------------------------------------------------------------+
 9555: |                        *** ATTENTION ***                           |
 9556: |                                                                    |
 9557: | You've configured multiple SAPIs to be build. You can build only   |
 9558: | one SAPI module plus CGI, CLI and FPM binaries at the same time.   |
 9559: +--------------------------------------------------------------------+
 9560: " "$LINENO" 5
 9561:   else
 9562:     PHP_SAPI=apache_hooks
 9563:   fi
 9564: 
 9565: 
 9566: 
 9567:     BUILD_DIR="$BUILD_DIR sapi/apache_hooks"
 9568: 
 9569: 
 9570: 
 9571:   PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS apache_hooks"
 9572: 
 9573: 
 9574:     case "static" in
 9575:     static)
 9576: 
 9577:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 9578:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
 9579:   php_c_post=
 9580:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 9581:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
 9582:   php_cxx_post=
 9583:   php_lo=lo
 9584: 
 9585:   case $with_pic in
 9586:     yes) pic_setting='-prefer-pic';;
 9587:     no)  pic_setting='-prefer-non-pic';;
 9588:   esac
 9589: 
 9590:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 9591:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
 9592:   shared_c_post=
 9593:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 9594:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
 9595:   shared_cxx_post=
 9596:   shared_lo=lo
 9597: 
 9598:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
 9599:   php_sapi_module=static
 9600: ;;
 9601:     shared)
 9602: 
 9603:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 9604:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
 9605:   php_c_post=
 9606:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 9607:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
 9608:   php_cxx_post=
 9609:   php_lo=lo
 9610: 
 9611:   case $with_pic in
 9612:     yes) pic_setting='-prefer-pic';;
 9613:     no)  pic_setting='-prefer-non-pic';;
 9614:   esac
 9615: 
 9616:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 9617:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
 9618:   shared_c_post=
 9619:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 9620:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
 9621:   shared_cxx_post=
 9622:   shared_lo=lo
 9623: 
 9624:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
 9625:   php_sapi_module=shared
 9626: 
 9627:   php_c_pre=$shared_c_pre
 9628:   php_c_meta=$shared_c_meta
 9629:   php_c_post=$shared_c_post
 9630:   php_cxx_pre=$shared_cxx_pre
 9631:   php_cxx_meta=$shared_cxx_meta
 9632:   php_cxx_post=$shared_cxx_post
 9633:   php_lo=$shared_lo
 9634: ;;
 9635:     bundle)
 9636: 
 9637:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 9638:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
 9639:   php_c_post=
 9640:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 9641:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
 9642:   php_cxx_post=
 9643:   php_lo=lo
 9644: 
 9645:   case $with_pic in
 9646:     yes) pic_setting='-prefer-pic';;
 9647:     no)  pic_setting='-prefer-non-pic';;
 9648:   esac
 9649: 
 9650:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 9651:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
 9652:   shared_c_post=
 9653:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 9654:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
 9655:   shared_cxx_post=
 9656:   shared_lo=lo
 9657: 
 9658:   OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
 9659:   php_sapi_module=static
 9660: ;;
 9661:     esac
 9662:     install_sapi="install-sapi"
 9663: 
 9664: 
 9665:   case sapi/apache_hooks in
 9666:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
 9667:   /*) ac_srcdir=`echo "sapi/apache_hooks"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
 9668:   *) ac_srcdir="$abs_srcdir/sapi/apache_hooks/"; ac_bdir="sapi/apache_hooks/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
 9669:   esac
 9670: 
 9671: 
 9672: 
 9673:   b_c_pre=$php_c_pre
 9674:   b_cxx_pre=$php_cxx_pre
 9675:   b_c_meta=$php_c_meta
 9676:   b_cxx_meta=$php_cxx_meta
 9677:   b_c_post=$php_c_post
 9678:   b_cxx_post=$php_cxx_post
 9679:   b_lo=$php_lo
 9680: 
 9681: 
 9682:   old_IFS=$IFS
 9683:   for ac_src in sapi_apache.c mod_php5.c php_apache.c; do
 9684: 
 9685:       IFS=.
 9686:       set $ac_src
 9687:       ac_obj=$1
 9688:       IFS=$old_IFS
 9689: 
 9690:       PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
 9691: 
 9692:       case $ac_src in
 9693:         *.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" ;;
 9694:         *.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" ;;
 9695:         *.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" ;;
 9696:         *.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" ;;
 9697:       esac
 9698: 
 9699:     cat >>Makefile.objects<<EOF
 9700: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
 9701: 	$ac_comp
 9702: EOF
 9703:   done
 9704: 
 9705: 
 9706: 
 9707: 
 9708:     APACHE_HOOKS_INSTALL="mkdir -p $APACHE_TARGET; cp $SAPI_STATIC $APACHE_HOOKS_INSTALL_FILES $APACHE_TARGET"
 9709:     PHP_LIBS="-L. -lphp3"
 9710:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - Apache 1.2.x" >&5
 9711: $as_echo "yes - Apache 1.2.x" >&6; }
 9712:     STRONGHOLD=
 9713:     if test -f $PHP_APACHE_HOOKS_STATIC/src/ap_config.h; then
 9714: 
 9715: $as_echo "#define HAVE_AP_CONFIG_H 1" >>confdefs.h
 9716: 
 9717:     fi
 9718:   # For Apache 2.0.x
 9719:   elif test -f $PHP_APACHE_HOOKS_STATIC/include/httpd.h && test -f $PHP_APACHE_HOOKS_STATIC/srclib/apr/include/apr_general.h ; then
 9720:     as_fn_error $? "Use --with-apxs2 with Apache 2.x!" "$LINENO" 5
 9721:   # For Apache 1.3.x
 9722:   elif test -f $PHP_APACHE_HOOKS_STATIC/src/main/httpd.h; then
 9723:     APACHE_HAS_REGEX=1
 9724:     APACHE_INCLUDE="-I$PHP_APACHE_HOOKS_STATIC/src/main -I$PHP_APACHE_HOOKS_STATIC/src/os/unix -I$PHP_APACHE_HOOKS_STATIC/src/ap"
 9725:     APACHE_TARGET=$PHP_APACHE_HOOKS_STATIC/src/modules/php5
 9726:     if test ! -d $APACHE_TARGET; then
 9727:       mkdir $APACHE_TARGET
 9728:     fi
 9729: 
 9730:   if test "static" = "program"; then
 9731:     PHP_BINARIES="$PHP_BINARIES apache_hooks"
 9732:   elif test "$PHP_SAPI" != "none"; then
 9733:     as_fn_error $? "
 9734: +--------------------------------------------------------------------+
 9735: |                        *** ATTENTION ***                           |
 9736: |                                                                    |
 9737: | You've configured multiple SAPIs to be build. You can build only   |
 9738: | one SAPI module plus CGI, CLI and FPM binaries at the same time.   |
 9739: +--------------------------------------------------------------------+
 9740: " "$LINENO" 5
 9741:   else
 9742:     PHP_SAPI=apache_hooks
 9743:   fi
 9744: 
 9745: 
 9746: 
 9747:     BUILD_DIR="$BUILD_DIR sapi/apache_hooks"
 9748: 
 9749: 
 9750: 
 9751:   PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS apache_hooks"
 9752: 
 9753: 
 9754:     case "static" in
 9755:     static)
 9756: 
 9757:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 9758:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
 9759:   php_c_post=
 9760:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 9761:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
 9762:   php_cxx_post=
 9763:   php_lo=lo
 9764: 
 9765:   case $with_pic in
 9766:     yes) pic_setting='-prefer-pic';;
 9767:     no)  pic_setting='-prefer-non-pic';;
 9768:   esac
 9769: 
 9770:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 9771:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
 9772:   shared_c_post=
 9773:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 9774:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
 9775:   shared_cxx_post=
 9776:   shared_lo=lo
 9777: 
 9778:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
 9779:   php_sapi_module=static
 9780: ;;
 9781:     shared)
 9782: 
 9783:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 9784:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
 9785:   php_c_post=
 9786:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 9787:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
 9788:   php_cxx_post=
 9789:   php_lo=lo
 9790: 
 9791:   case $with_pic in
 9792:     yes) pic_setting='-prefer-pic';;
 9793:     no)  pic_setting='-prefer-non-pic';;
 9794:   esac
 9795: 
 9796:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 9797:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
 9798:   shared_c_post=
 9799:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 9800:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
 9801:   shared_cxx_post=
 9802:   shared_lo=lo
 9803: 
 9804:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
 9805:   php_sapi_module=shared
 9806: 
 9807:   php_c_pre=$shared_c_pre
 9808:   php_c_meta=$shared_c_meta
 9809:   php_c_post=$shared_c_post
 9810:   php_cxx_pre=$shared_cxx_pre
 9811:   php_cxx_meta=$shared_cxx_meta
 9812:   php_cxx_post=$shared_cxx_post
 9813:   php_lo=$shared_lo
 9814: ;;
 9815:     bundle)
 9816: 
 9817:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 9818:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
 9819:   php_c_post=
 9820:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 9821:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
 9822:   php_cxx_post=
 9823:   php_lo=lo
 9824: 
 9825:   case $with_pic in
 9826:     yes) pic_setting='-prefer-pic';;
 9827:     no)  pic_setting='-prefer-non-pic';;
 9828:   esac
 9829: 
 9830:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 9831:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
 9832:   shared_c_post=
 9833:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 9834:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
 9835:   shared_cxx_post=
 9836:   shared_lo=lo
 9837: 
 9838:   OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
 9839:   php_sapi_module=static
 9840: ;;
 9841:     esac
 9842:     install_sapi="install-sapi"
 9843: 
 9844: 
 9845:   case sapi/apache_hooks in
 9846:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
 9847:   /*) ac_srcdir=`echo "sapi/apache_hooks"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
 9848:   *) ac_srcdir="$abs_srcdir/sapi/apache_hooks/"; ac_bdir="sapi/apache_hooks/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
 9849:   esac
 9850: 
 9851: 
 9852: 
 9853:   b_c_pre=$php_c_pre
 9854:   b_cxx_pre=$php_cxx_pre
 9855:   b_c_meta=$php_c_meta
 9856:   b_cxx_meta=$php_cxx_meta
 9857:   b_c_post=$php_c_post
 9858:   b_cxx_post=$php_cxx_post
 9859:   b_lo=$php_lo
 9860: 
 9861: 
 9862:   old_IFS=$IFS
 9863:   for ac_src in sapi_apache.c mod_php5.c php_apache.c; do
 9864: 
 9865:       IFS=.
 9866:       set $ac_src
 9867:       ac_obj=$1
 9868:       IFS=$old_IFS
 9869: 
 9870:       PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
 9871: 
 9872:       case $ac_src in
 9873:         *.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" ;;
 9874:         *.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" ;;
 9875:         *.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" ;;
 9876:         *.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" ;;
 9877:       esac
 9878: 
 9879:     cat >>Makefile.objects<<EOF
 9880: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
 9881: 	$ac_comp
 9882: EOF
 9883:   done
 9884: 
 9885: 
 9886: 
 9887: 
 9888:     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"
 9889:     PHP_LIBS="-Lmodules/php5 -L../modules/php5 -L../../modules/php5 -lmodphp5"
 9890:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - Apache 1.3.x" >&5
 9891: $as_echo "yes - Apache 1.3.x" >&6; }
 9892:     STRONGHOLD=
 9893:     if test -f $PHP_APACHE_HOOKS_STATIC/src/include/ap_config.h; then
 9894: 
 9895: $as_echo "#define HAVE_AP_CONFIG_H 1" >>confdefs.h
 9896: 
 9897:     fi
 9898:     if test -f $PHP_APACHE_HOOKS_STATIC/src/include/ap_compat.h; then
 9899: 
 9900: $as_echo "#define HAVE_AP_COMPAT_H 1" >>confdefs.h
 9901: 
 9902:       if test ! -f $PHP_APACHE_HOOKS_STATIC/src/include/ap_config_auto.h; then
 9903:         as_fn_error $? "Please run Apache\'s configure or src/Configure program once and try again" "$LINENO" 5
 9904:       fi
 9905:     elif test -f $PHP_APACHE_HOOKS_STATIC/src/include/compat.h; then
 9906: 
 9907: $as_echo "#define HAVE_OLD_COMPAT_H 1" >>confdefs.h
 9908: 
 9909:     fi
 9910:   # Also for Apache 1.3.x
 9911:   elif test -f $PHP_APACHE_HOOKS_STATIC/src/include/httpd.h; then
 9912:     APACHE_HAS_REGEX=1
 9913:     APACHE_INCLUDE="-I$PHP_APACHE_HOOKS_STATIC/src/include -I$PHP_APACHE_HOOKS_STATIC/src/os/unix"
 9914:     APACHE_TARGET=$PHP_APACHE_HOOKS_STATIC/src/modules/php5
 9915:     if test ! -d $APACHE_TARGET; then
 9916:       mkdir $APACHE_TARGET
 9917:     fi
 9918: 
 9919:   if test "static" = "program"; then
 9920:     PHP_BINARIES="$PHP_BINARIES apache_hooks"
 9921:   elif test "$PHP_SAPI" != "none"; then
 9922:     as_fn_error $? "
 9923: +--------------------------------------------------------------------+
 9924: |                        *** ATTENTION ***                           |
 9925: |                                                                    |
 9926: | You've configured multiple SAPIs to be build. You can build only   |
 9927: | one SAPI module plus CGI, CLI and FPM binaries at the same time.   |
 9928: +--------------------------------------------------------------------+
 9929: " "$LINENO" 5
 9930:   else
 9931:     PHP_SAPI=apache_hooks
 9932:   fi
 9933: 
 9934: 
 9935: 
 9936:     BUILD_DIR="$BUILD_DIR sapi/apache_hooks"
 9937: 
 9938: 
 9939: 
 9940:   PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS apache_hooks"
 9941: 
 9942: 
 9943:     case "static" in
 9944:     static)
 9945: 
 9946:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 9947:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
 9948:   php_c_post=
 9949:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 9950:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
 9951:   php_cxx_post=
 9952:   php_lo=lo
 9953: 
 9954:   case $with_pic in
 9955:     yes) pic_setting='-prefer-pic';;
 9956:     no)  pic_setting='-prefer-non-pic';;
 9957:   esac
 9958: 
 9959:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 9960:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
 9961:   shared_c_post=
 9962:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 9963:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
 9964:   shared_cxx_post=
 9965:   shared_lo=lo
 9966: 
 9967:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
 9968:   php_sapi_module=static
 9969: ;;
 9970:     shared)
 9971: 
 9972:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 9973:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
 9974:   php_c_post=
 9975:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 9976:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
 9977:   php_cxx_post=
 9978:   php_lo=lo
 9979: 
 9980:   case $with_pic in
 9981:     yes) pic_setting='-prefer-pic';;
 9982:     no)  pic_setting='-prefer-non-pic';;
 9983:   esac
 9984: 
 9985:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
 9986:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
 9987:   shared_c_post=
 9988:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
 9989:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
 9990:   shared_cxx_post=
 9991:   shared_lo=lo
 9992: 
 9993:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
 9994:   php_sapi_module=shared
 9995: 
 9996:   php_c_pre=$shared_c_pre
 9997:   php_c_meta=$shared_c_meta
 9998:   php_c_post=$shared_c_post
 9999:   php_cxx_pre=$shared_cxx_pre
10000:   php_cxx_meta=$shared_cxx_meta
10001:   php_cxx_post=$shared_cxx_post
10002:   php_lo=$shared_lo
10003: ;;
10004:     bundle)
10005: 
10006:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
10007:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
10008:   php_c_post=
10009:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
10010:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
10011:   php_cxx_post=
10012:   php_lo=lo
10013: 
10014:   case $with_pic in
10015:     yes) pic_setting='-prefer-pic';;
10016:     no)  pic_setting='-prefer-non-pic';;
10017:   esac
10018: 
10019:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
10020:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
10021:   shared_c_post=
10022:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
10023:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
10024:   shared_cxx_post=
10025:   shared_lo=lo
10026: 
10027:   OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
10028:   php_sapi_module=static
10029: ;;
10030:     esac
10031:     install_sapi="install-sapi"
10032: 
10033: 
10034:   case sapi/apache_hooks in
10035:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
10036:   /*) ac_srcdir=`echo "sapi/apache_hooks"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
10037:   *) ac_srcdir="$abs_srcdir/sapi/apache_hooks/"; ac_bdir="sapi/apache_hooks/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
10038:   esac
10039: 
10040: 
10041: 
10042:   b_c_pre=$php_c_pre
10043:   b_cxx_pre=$php_cxx_pre
10044:   b_c_meta=$php_c_meta
10045:   b_cxx_meta=$php_cxx_meta
10046:   b_c_post=$php_c_post
10047:   b_cxx_post=$php_cxx_post
10048:   b_lo=$php_lo
10049: 
10050: 
10051:   old_IFS=$IFS
10052:   for ac_src in sapi_apache.c mod_php5.c php_apache.c; do
10053: 
10054:       IFS=.
10055:       set $ac_src
10056:       ac_obj=$1
10057:       IFS=$old_IFS
10058: 
10059:       PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
10060: 
10061:       case $ac_src in
10062:         *.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" ;;
10063:         *.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" ;;
10064:         *.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" ;;
10065:         *.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" ;;
10066:       esac
10067: 
10068:     cat >>Makefile.objects<<EOF
10069: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
10070: 	$ac_comp
10071: EOF
10072:   done
10073: 
10074: 
10075: 
10076: 
10077:     PHP_LIBS="-Lmodules/php5 -L../modules/php5 -L../../modules/php5 -lmodphp5"
10078:     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"
10079:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - Apache 1.3.x" >&5
10080: $as_echo "yes - Apache 1.3.x" >&6; }
10081:     STRONGHOLD=
10082:     if test -f $PHP_APACHE_HOOKS_STATIC/src/include/ap_config.h; then
10083: 
10084: $as_echo "#define HAVE_AP_CONFIG_H 1" >>confdefs.h
10085: 
10086:     fi
10087:     if test -f $PHP_APACHE_HOOKS_STATIC/src/include/ap_compat.h; then
10088: 
10089: $as_echo "#define HAVE_AP_COMPAT_H 1" >>confdefs.h
10090: 
10091:       if test ! -f $PHP_APACHE_HOOKS_STATIC/src/include/ap_config_auto.h; then
10092:         as_fn_error $? "Please run Apache\'s configure or src/Configure program once and try again" "$LINENO" 5
10093:       fi
10094:     elif test -f $PHP_APACHE_HOOKS_STATIC/src/include/compat.h; then
10095: 
10096: $as_echo "#define HAVE_OLD_COMPAT_H 1" >>confdefs.h
10097: 
10098:     fi
10099:   # For StrongHold 2.2
10100:   elif test -f $PHP_APACHE_HOOKS_STATIC/apache/httpd.h; then
10101:     APACHE_INCLUDE="-I$PHP_APACHE_HOOKS_STATIC/apache -I$PHP_APACHE_HOOKS_STATIC/ssl/include"
10102:     APACHE_TARGET=$PHP_APACHE_HOOKS_STATIC/apache
10103: 
10104:   if test "static" = "program"; then
10105:     PHP_BINARIES="$PHP_BINARIES apache_hooks"
10106:   elif test "$PHP_SAPI" != "none"; then
10107:     as_fn_error $? "
10108: +--------------------------------------------------------------------+
10109: |                        *** ATTENTION ***                           |
10110: |                                                                    |
10111: | You've configured multiple SAPIs to be build. You can build only   |
10112: | one SAPI module plus CGI, CLI and FPM binaries at the same time.   |
10113: +--------------------------------------------------------------------+
10114: " "$LINENO" 5
10115:   else
10116:     PHP_SAPI=apache_hooks
10117:   fi
10118: 
10119: 
10120: 
10121:     BUILD_DIR="$BUILD_DIR sapi/apache_hooks"
10122: 
10123: 
10124: 
10125:   PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS apache_hooks"
10126: 
10127: 
10128:     case "static" in
10129:     static)
10130: 
10131:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
10132:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
10133:   php_c_post=
10134:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
10135:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
10136:   php_cxx_post=
10137:   php_lo=lo
10138: 
10139:   case $with_pic in
10140:     yes) pic_setting='-prefer-pic';;
10141:     no)  pic_setting='-prefer-non-pic';;
10142:   esac
10143: 
10144:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
10145:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
10146:   shared_c_post=
10147:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
10148:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
10149:   shared_cxx_post=
10150:   shared_lo=lo
10151: 
10152:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
10153:   php_sapi_module=static
10154: ;;
10155:     shared)
10156: 
10157:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
10158:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
10159:   php_c_post=
10160:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
10161:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
10162:   php_cxx_post=
10163:   php_lo=lo
10164: 
10165:   case $with_pic in
10166:     yes) pic_setting='-prefer-pic';;
10167:     no)  pic_setting='-prefer-non-pic';;
10168:   esac
10169: 
10170:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
10171:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
10172:   shared_c_post=
10173:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
10174:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
10175:   shared_cxx_post=
10176:   shared_lo=lo
10177: 
10178:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
10179:   php_sapi_module=shared
10180: 
10181:   php_c_pre=$shared_c_pre
10182:   php_c_meta=$shared_c_meta
10183:   php_c_post=$shared_c_post
10184:   php_cxx_pre=$shared_cxx_pre
10185:   php_cxx_meta=$shared_cxx_meta
10186:   php_cxx_post=$shared_cxx_post
10187:   php_lo=$shared_lo
10188: ;;
10189:     bundle)
10190: 
10191:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
10192:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
10193:   php_c_post=
10194:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
10195:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
10196:   php_cxx_post=
10197:   php_lo=lo
10198: 
10199:   case $with_pic in
10200:     yes) pic_setting='-prefer-pic';;
10201:     no)  pic_setting='-prefer-non-pic';;
10202:   esac
10203: 
10204:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
10205:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
10206:   shared_c_post=
10207:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
10208:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
10209:   shared_cxx_post=
10210:   shared_lo=lo
10211: 
10212:   OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
10213:   php_sapi_module=static
10214: ;;
10215:     esac
10216:     install_sapi="install-sapi"
10217: 
10218: 
10219:   case sapi/apache_hooks in
10220:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
10221:   /*) ac_srcdir=`echo "sapi/apache_hooks"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
10222:   *) ac_srcdir="$abs_srcdir/sapi/apache_hooks/"; ac_bdir="sapi/apache_hooks/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
10223:   esac
10224: 
10225: 
10226: 
10227:   b_c_pre=$php_c_pre
10228:   b_cxx_pre=$php_cxx_pre
10229:   b_c_meta=$php_c_meta
10230:   b_cxx_meta=$php_cxx_meta
10231:   b_c_post=$php_c_post
10232:   b_cxx_post=$php_cxx_post
10233:   b_lo=$php_lo
10234: 
10235: 
10236:   old_IFS=$IFS
10237:   for ac_src in sapi_apache.c mod_php5.c php_apache.c; do
10238: 
10239:       IFS=.
10240:       set $ac_src
10241:       ac_obj=$1
10242:       IFS=$old_IFS
10243: 
10244:       PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
10245: 
10246:       case $ac_src in
10247:         *.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" ;;
10248:         *.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" ;;
10249:         *.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" ;;
10250:         *.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" ;;
10251:       esac
10252: 
10253:     cat >>Makefile.objects<<EOF
10254: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
10255: 	$ac_comp
10256: EOF
10257:   done
10258: 
10259: 
10260: 
10261: 
10262:     PHP_LIBS="-Lmodules/php5 -L../modules/php5 -L../../modules/php5 -lmodphp5"
10263:     APACHE_HOOKS_INSTALL="mkdir -p $APACHE_TARGET; cp $SAPI_STATIC $APACHE_TARGET/libmodphp5.a; cp $APACHE_HOOKS_INSTALL_FILES $APACHE_TARGET"
10264:     STRONGHOLD=-DSTRONGHOLD=1
10265:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - StrongHold" >&5
10266: $as_echo "yes - StrongHold" >&6; }
10267:     if test -f $PHP_APACHE_HOOKS_STATIC/apache/ap_config.h; then
10268: 
10269: $as_echo "#define HAVE_AP_CONFIG_H 1" >>confdefs.h
10270: 
10271:     fi
10272:     if test -f $PHP_APACHE_HOOKS_STATIC/src/ap_compat.h; then
10273: 
10274: $as_echo "#define HAVE_AP_COMPAT_H 1" >>confdefs.h
10275: 
10276:       if test ! -f $PHP_APACHE_HOOKS_STATIC/src/include/ap_config_auto.h; then
10277:         as_fn_error $? "Please run Apache\'s configure or src/Configure program once and try again" "$LINENO" 5
10278:       fi
10279:     elif test -f $PHP_APACHE_HOOKS_STATIC/src/compat.h; then
10280: 
10281: $as_echo "#define HAVE_OLD_COMPAT_H 1" >>confdefs.h
10282: 
10283:     fi
10284:   else
10285:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10286: $as_echo "no" >&6; }
10287:     as_fn_error $? "Invalid Apache directory - unable to find httpd.h under $PHP_APACHE_HOOKS_STATIC" "$LINENO" 5
10288:   fi
10289: else
10290:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10291: $as_echo "no" >&6; }
10292: fi
10293: 
10294: # compatibility
10295: if test -z "$enable_mod_charset" && test "$with_mod_charset"; then
10296:   enable_mod_charset=$with_mod_charset
10297: fi
10298: 
10299: 
10300: php_enable_mod_charset=no
10301: 
10302: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Apache charset compatibility option" >&5
10303: $as_echo_n "checking whether to enable Apache charset compatibility option... " >&6; }
10304: # Check whether --enable-mod-charset was given.
10305: if test "${enable_mod_charset+set}" = set; then :
10306:   enableval=$enable_mod_charset; PHP_MOD_CHARSET=$enableval
10307: else
10308: 
10309:   PHP_MOD_CHARSET=no
10310: 
10311: 
10312: fi
10313: 
10314: 
10315: ext_output=$PHP_MOD_CHARSET
10316: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
10317: $as_echo "$ext_output" >&6; }
10318: 
10319: 
10320: 
10321: 
10322: if test "$PHP_MOD_CHARSET" = "yes"; then
10323: 
10324: $as_echo "#define USE_TRANSFER_TABLES 1" >>confdefs.h
10325: 
10326: fi
10327: 
10328: if test "$APACHE_HOOKS_MODULE" = "yes"; then
10329: 
10330:   if test -n "$GCC"; then
10331: 
10332:   gcc_arg_name=ac_cv_gcc_arg_rdynamic
10333:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -rdynamic" >&5
10334: $as_echo_n "checking whether $CC supports -rdynamic... " >&6; }
10335: if ${ac_cv_gcc_arg_rdynamic+:} false; then :
10336:   $as_echo_n "(cached) " >&6
10337: else
10338: 
10339:   echo 'void somefunc() { };' > conftest.c
10340:   cmd='$CC -rdynamic -c conftest.c'
10341:   if eval $cmd 2>&1 | $EGREP -e -rdynamic >/dev/null ; then
10342:     ac_result=no
10343:   else
10344:     ac_result=yes
10345:   fi
10346:   eval $gcc_arg_name=$ac_result
10347:   rm -f conftest.*
10348: 
10349: fi
10350: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_arg_rdynamic" >&5
10351: $as_echo "$ac_cv_gcc_arg_rdynamic" >&6; }
10352:   if eval test "\$$gcc_arg_name" = "yes"; then
10353:     gcc_rdynamic=yes
10354:   else
10355:     :
10356: 
10357:   fi
10358: 
10359:     if test "$gcc_rdynamic" = "yes"; then
10360:       PHP_LDFLAGS="$PHP_LDFLAGS -rdynamic"
10361:     fi
10362:   fi
10363: 
10364:   $php_shtool mkdir -p sapi/apache_hooks
10365: 
10366:   PHP_OUTPUT_FILES="$PHP_OUTPUT_FILES sapi/apache_hooks/libphp5.module"
10367: 
10368: fi
10369: 
10370: if test -n "$APACHE_HOOKS_INSTALL"; then
10371:   if test "x$APXS" != "x" -a "`uname -sv`" = "AIX 4" -a "$GCC" != "yes"; then
10372:     APXS_EXP=-bE:sapi/apache_hooks/mod_php5.exp
10373:   fi
10374: 
10375: 
10376: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member fd in BUFF *" >&5
10377: $as_echo_n "checking for member fd in BUFF *... " >&6; }
10378: if ${ac_cv_php_fd_in_buff+:} false; then :
10379:   $as_echo_n "(cached) " >&6
10380: else
10381: 
10382:   save=$CPPFLAGS
10383:   if test -n "$APXS_INCLUDEDIR"; then
10384:     CPPFLAGS="$CPPFLAGS -I$APXS_INCLUDEDIR"
10385:   else
10386:     CPPFLAGS="$CPPFLAGS $APACHE_INCLUDE"
10387:   fi
10388:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10389: /* end confdefs.h.  */
10390: #include <httpd.h>
10391: int
10392: main ()
10393: {
10394: conn_rec *c; int fd = c->client->fd;
10395:   ;
10396:   return 0;
10397: }
10398: _ACEOF
10399: if ac_fn_c_try_compile "$LINENO"; then :
10400: 
10401:     ac_cv_php_fd_in_buff=yes
10402: else
10403:   ac_cv_php_fd_in_buff=no
10404: fi
10405: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10406:   CPPFLAGS=$save
10407: 
10408: fi
10409: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_php_fd_in_buff" >&5
10410: $as_echo "$ac_cv_php_fd_in_buff" >&6; }
10411: if test "$ac_cv_php_fd_in_buff" = "yes"; then
10412: 
10413: $as_echo "#define PHP_APACHE_HAVE_CLIENT_FD 1" >>confdefs.h
10414: 
10415: fi
10416: 
10417:   INSTALL_IT=$APACHE_HOOKS_INSTALL
10418: 
10419: 
10420:   PHP_VAR_SUBST="$PHP_VAR_SUBST APXS_EXP"
10421: 
10422: 
10423:   PHP_VAR_SUBST="$PHP_VAR_SUBST APACHE_INCLUDE"
10424: 
10425: 
10426:   PHP_VAR_SUBST="$PHP_VAR_SUBST APACHE_TARGET"
10427: 
10428: 
10429:   PHP_VAR_SUBST="$PHP_VAR_SUBST APXS"
10430: 
10431: 
10432:   PHP_VAR_SUBST="$PHP_VAR_SUBST APXS_LDFLAGS"
10433: 
10434: 
10435:   PHP_VAR_SUBST="$PHP_VAR_SUBST APACHE_HOOKS_INSTALL"
10436: 
10437: 
10438:   PHP_VAR_SUBST="$PHP_VAR_SUBST STRONGHOLD"
10439: 
10440: fi
10441: 
10442: 
10443: 
10444: RESULT=no
10445: 
10446: php_with_caudium=no
10447: 
10448: 
10449: 
10450: # Check whether --with-caudium was given.
10451: if test "${with_caudium+set}" = set; then :
10452:   withval=$with_caudium; PHP_CAUDIUM=$withval
10453: else
10454: 
10455:   PHP_CAUDIUM=no
10456: 
10457: 
10458: fi
10459: 
10460: 
10461: ext_output=$PHP_CAUDIUM
10462: 
10463: 
10464: 
10465: 
10466: 
10467: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Caudium support" >&5
10468: $as_echo_n "checking for Caudium support... " >&6; }
10469: 
10470: if test "$PHP_CAUDIUM" != "no"; then
10471:   if test "$prefix" = "NONE"; then CPREF=/usr/local/; fi
10472:   if test ! -d $PHP_CAUDIUM ; then
10473:     if test "$prefix" = "NONE"; then
10474:       PHP_CAUDIUM=/usr/local/caudium/server/
10475:     else
10476:       PHP_CAUDIUM=$prefix/caudium/server/
10477:     fi
10478:   fi
10479:   if test -f $PHP_CAUDIUM/bin/caudium; then
10480:     PIKE=$PHP_CAUDIUM/bin/caudium
10481:   elif test -f $PHP_CAUDIUM/bin/pike; then
10482:     PIKE=$PHP_CAUDIUM/bin/pike
10483:   else
10484:     as_fn_error $? "Could not find a pike in $PHP_CAUDIUM/bin/" "$LINENO" 5
10485:   fi
10486:   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
10487:     PIKE_MODULE_DIR=`$PIKE --show-paths 2>&1| grep '^Module' | sed -e 's/.*: //'`
10488:     PIKE_INCLUDE_DIR=`echo $PIKE_MODULE_DIR | sed -e 's,lib/pike/modules,include/pike,' -e 's,lib/modules,include/pike,' `
10489:     if test -z "$PIKE_INCLUDE_DIR" || test -z "$PIKE_MODULE_DIR"; then
10490:       as_fn_error $? "Failed to figure out Pike module and include directories" "$LINENO" 5
10491:     fi
10492:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10493: $as_echo "yes" >&6; }
10494:     PIKE=`echo $PIKE | pike -e 'int tries=100;
10495:        string orig,pike=Stdio.File("stdin")->read()-"\n";
10496:        orig=pike;
10497:        if(search(orig, "/"))
10498:          orig = combine_path(getcwd(), orig);
10499:        while(!catch(pike=readlink(pike)) && tries--)
10500:          ;
10501:        write(combine_path(dirname(orig), pike)); '`
10502: 
10503:   if test "$PIKE_INCLUDE_DIR" != "/usr/include"; then
10504: 
10505:   if test -z "$PIKE_INCLUDE_DIR" || echo "$PIKE_INCLUDE_DIR" | grep '^/' >/dev/null ; then
10506:     ai_p=$PIKE_INCLUDE_DIR
10507:   else
10508: 
10509:     ep_dir=`echo $PIKE_INCLUDE_DIR|$SED 's%/*[^/][^/]*/*$%%'`
10510: 
10511:     ep_realdir=`(cd "$ep_dir" && pwd)`
10512:     ai_p="$ep_realdir"/`basename "$PIKE_INCLUDE_DIR"`
10513:   fi
10514: 
10515: 
10516: 
10517:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
10518: 
10519:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
10520:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
10521:     eval "INCLUDEPATH$unique=set"
10522: 
10523:       if test ""; then
10524:         INCLUDES="-I$ai_p $INCLUDES"
10525:       else
10526:         INCLUDES="$INCLUDES -I$ai_p"
10527:       fi
10528: 
10529:   fi
10530: 
10531:   fi
10532: 
10533:     if test "$prefix" != "NONE"; then
10534:       PIKE_C_INCLUDE=$prefix/include/`basename $PIKE`
10535:     else
10536:       PIKE_C_INCLUDE=/usr/local/include/`basename $PIKE`
10537:     fi
10538:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C includes in $PIKE_C_INCLUDE" >&5
10539: $as_echo_n "checking for C includes in $PIKE_C_INCLUDE... " >&6; }
10540:     if test -f $PIKE_C_INCLUDE/version.h; then
10541:       PIKE_TEST_VER=`$PIKE -e 'string v; int rel;sscanf(version(), "Pike v%s release %d", v, rel); write(v+"."+rel);'`
10542:       ###### VERSION MATCH CHECK #######
10543:       PMAJOR="^#define PIKE_MAJOR_VERSION"
10544:       PMINOR="^#define PIKE_MINOR_VERSION"
10545:       PBUILD="^#define PIKE_BUILD_VERSION"
10546: 
10547:       PIKE_CMAJOR_VERSION=0
10548:       PIKE_CMINOR_VERSION=0
10549:       PIKE_CBUILD_VERSION=0
10550: 
10551:       PIKE_CMAJOR_VERSION=`grep "$PMAJOR" $PIKE_C_INCLUDE/version.h | sed -e 's/\(#define.*N \)\(.*\)/\2/'`
10552:       if test -z "$PIKE_CMAJOR_VERSION"; then
10553:         if test -n "`grep f_version $PIKE_C_INCLUDE/version.h`"; then
10554:           PIKE_CMAJOR_VERSION=6
10555:         fi
10556:       else
10557:         PIKE_CMINOR_VERSION=`grep "$PMINOR" $PIKE_C_INCLUDE/version.h | sed -e 's/\(#define.*N \)\(.*\)/\2/'`
10558:         PIKE_CBUILD_VERSION=`grep "$PBUILD" $PIKE_C_INCLUDE/version.h | sed -e 's/\(#define.*N \)\(.*\)/\2/'`
10559:       fi
10560: 
10561:       if test "$PIKE_TEST_VER" = "${PIKE_CMAJOR_VERSION}.${PIKE_CMINOR_VERSION}.${PIKE_CBUILD_VERSION}"; then
10562: 
10563:   if test "$PIKE_C_INCLUDE" != "/usr/include"; then
10564: 
10565:   if test -z "$PIKE_C_INCLUDE" || echo "$PIKE_C_INCLUDE" | grep '^/' >/dev/null ; then
10566:     ai_p=$PIKE_C_INCLUDE
10567:   else
10568: 
10569:     ep_dir=`echo $PIKE_C_INCLUDE|$SED 's%/*[^/][^/]*/*$%%'`
10570: 
10571:     ep_realdir=`(cd "$ep_dir" && pwd)`
10572:     ai_p="$ep_realdir"/`basename "$PIKE_C_INCLUDE"`
10573:   fi
10574: 
10575: 
10576: 
10577:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
10578: 
10579:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
10580:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
10581:     eval "INCLUDEPATH$unique=set"
10582: 
10583:       if test ""; then
10584:         INCLUDES="-I$ai_p $INCLUDES"
10585:       else
10586:         INCLUDES="$INCLUDES -I$ai_p"
10587:       fi
10588: 
10589:   fi
10590: 
10591:   fi
10592: 
10593:         PIKE_INCLUDE_DIR="$PIKE_INCLUDE_DIR, $PIKE_C_INCLUDE"
10594:         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
10595: $as_echo "found" >&6; }
10596:       else
10597:         { $as_echo "$as_me:${as_lineno-$LINENO}: result: version mismatch" >&5
10598: $as_echo "version mismatch" >&6; }
10599:       fi
10600:     else
10601:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10602: $as_echo "not found" >&6; }
10603:     fi
10604:   else
10605:     as_fn_error $? "Caudium PHP5 requires Pike 7.0 or newer" "$LINENO" 5
10606:   fi
10607:   PIKE_VERSION=`$PIKE -e 'string v; int rel;sscanf(version(), "Pike v%s release %d", v, rel); write(v+"."+rel);'`
10608: 
10609: $as_echo "#define HAVE_CAUDIUM 1" >>confdefs.h
10610: 
10611: 
10612:   if test "shared" = "program"; then
10613:     PHP_BINARIES="$PHP_BINARIES caudium"
10614:   elif test "$PHP_SAPI" != "none"; then
10615:     as_fn_error $? "
10616: +--------------------------------------------------------------------+
10617: |                        *** ATTENTION ***                           |
10618: |                                                                    |
10619: | You've configured multiple SAPIs to be build. You can build only   |
10620: | one SAPI module plus CGI, CLI and FPM binaries at the same time.   |
10621: +--------------------------------------------------------------------+
10622: " "$LINENO" 5
10623:   else
10624:     PHP_SAPI=caudium
10625:   fi
10626: 
10627: 
10628: 
10629:     BUILD_DIR="$BUILD_DIR sapi/caudium"
10630: 
10631: 
10632: 
10633:   PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS caudium"
10634: 
10635: 
10636:     case "shared" in
10637:     static)
10638: 
10639:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
10640:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
10641:   php_c_post=
10642:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
10643:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
10644:   php_cxx_post=
10645:   php_lo=lo
10646: 
10647:   case $with_pic in
10648:     yes) pic_setting='-prefer-pic';;
10649:     no)  pic_setting='-prefer-non-pic';;
10650:   esac
10651: 
10652:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
10653:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
10654:   shared_c_post=
10655:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
10656:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
10657:   shared_cxx_post=
10658:   shared_lo=lo
10659: 
10660:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
10661:   php_sapi_module=static
10662: ;;
10663:     shared)
10664: 
10665:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
10666:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
10667:   php_c_post=
10668:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
10669:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
10670:   php_cxx_post=
10671:   php_lo=lo
10672: 
10673:   case $with_pic in
10674:     yes) pic_setting='-prefer-pic';;
10675:     no)  pic_setting='-prefer-non-pic';;
10676:   esac
10677: 
10678:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
10679:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
10680:   shared_c_post=
10681:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
10682:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
10683:   shared_cxx_post=
10684:   shared_lo=lo
10685: 
10686:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
10687:   php_sapi_module=shared
10688: 
10689:   php_c_pre=$shared_c_pre
10690:   php_c_meta=$shared_c_meta
10691:   php_c_post=$shared_c_post
10692:   php_cxx_pre=$shared_cxx_pre
10693:   php_cxx_meta=$shared_cxx_meta
10694:   php_cxx_post=$shared_cxx_post
10695:   php_lo=$shared_lo
10696: ;;
10697:     bundle)
10698: 
10699:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
10700:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
10701:   php_c_post=
10702:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
10703:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
10704:   php_cxx_post=
10705:   php_lo=lo
10706: 
10707:   case $with_pic in
10708:     yes) pic_setting='-prefer-pic';;
10709:     no)  pic_setting='-prefer-non-pic';;
10710:   esac
10711: 
10712:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
10713:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
10714:   shared_c_post=
10715:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
10716:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
10717:   shared_cxx_post=
10718:   shared_lo=lo
10719: 
10720:   OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
10721:   php_sapi_module=static
10722: ;;
10723:     esac
10724:     install_sapi="install-sapi"
10725: 
10726: 
10727:   case sapi/caudium in
10728:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
10729:   /*) ac_srcdir=`echo "sapi/caudium"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
10730:   *) ac_srcdir="$abs_srcdir/sapi/caudium/"; ac_bdir="sapi/caudium/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
10731:   esac
10732: 
10733: 
10734: 
10735:   b_c_pre=$php_c_pre
10736:   b_cxx_pre=$php_cxx_pre
10737:   b_c_meta=$php_c_meta
10738:   b_cxx_meta=$php_cxx_meta
10739:   b_c_post=$php_c_post
10740:   b_cxx_post=$php_cxx_post
10741:   b_lo=$php_lo
10742: 
10743: 
10744:   old_IFS=$IFS
10745:   for ac_src in caudium.c; do
10746: 
10747:       IFS=.
10748:       set $ac_src
10749:       ac_obj=$1
10750:       IFS=$old_IFS
10751: 
10752:       PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
10753: 
10754:       case $ac_src in
10755:         *.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" ;;
10756:         *.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" ;;
10757:         *.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" ;;
10758:         *.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" ;;
10759:       esac
10760: 
10761:     cat >>Makefile.objects<<EOF
10762: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
10763: 	$ac_comp
10764: EOF
10765:   done
10766: 
10767: 
10768: 
10769: 
10770:   INSTALL_IT="\$(INSTALL) -m 0755 $SAPI_SHARED $PHP_CAUDIUM/lib/$PIKE_VERSION/PHP5.so"
10771:   RESULT="  *** Pike binary used:         $PIKE
10772:   *** Pike include dir(s) used: $PIKE_INCLUDE_DIR
10773:   *** Pike version:             $PIKE_VERSION"
10774: 
10775:   enable_maintainer_zts=yes
10776:   if test "$pthreads_working" != "yes"; then
10777:     as_fn_error $? "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5
10778:   fi
10779: 
10780: fi
10781: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RESULT" >&5
10782: $as_echo "$RESULT" >&6; }
10783: 
10784: 
10785: 
10786: 
10787: php_enable_cli=yes
10788: 
10789: 
10790: # Check whether --enable-cli was given.
10791: if test "${enable_cli+set}" = set; then :
10792:   enableval=$enable_cli; PHP_CLI=$enableval
10793: else
10794: 
10795:   PHP_CLI=yes
10796: 
10797: 
10798: fi
10799: 
10800: 
10801: ext_output=$PHP_CLI
10802: 
10803: 
10804: 
10805: 
10806: 
10807: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CLI build" >&5
10808: $as_echo_n "checking for CLI build... " >&6; }
10809: if test "$PHP_CLI" != "no"; then
10810: 
10811:   src=$abs_srcdir/sapi/cli/Makefile.frag
10812:   ac_srcdir=$ext_srcdir
10813:   ac_builddir=$ext_builddir
10814:   test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src  >> Makefile.fragments
10815: 
10816: 
10817:     SAPI_CLI_PATH=sapi/cli/php
10818: 
10819: 
10820:   if test "program" = "program"; then
10821:     PHP_BINARIES="$PHP_BINARIES cli"
10822:   elif test "$PHP_SAPI" != "none"; then
10823:     as_fn_error $? "
10824: +--------------------------------------------------------------------+
10825: |                        *** ATTENTION ***                           |
10826: |                                                                    |
10827: | You've configured multiple SAPIs to be build. You can build only   |
10828: | one SAPI module plus CGI, CLI and FPM binaries at the same time.   |
10829: +--------------------------------------------------------------------+
10830: " "$LINENO" 5
10831:   else
10832:     PHP_SAPI=cli
10833:   fi
10834: 
10835: 
10836: 
10837:     BUILD_DIR="$BUILD_DIR sapi/cli"
10838: 
10839: 
10840: 
10841:   PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS cli"
10842: 
10843: 
10844: 
10845:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
10846:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
10847:   php_c_post=
10848:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
10849:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
10850:   php_cxx_post=
10851:   php_lo=lo
10852: 
10853:   case $with_pic in
10854:     yes) pic_setting='-prefer-pic';;
10855:     no)  pic_setting='-prefer-non-pic';;
10856:   esac
10857: 
10858:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
10859:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
10860:   shared_c_post=
10861:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
10862:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
10863:   shared_cxx_post=
10864:   shared_lo=lo
10865: 
10866:     install_binaries="install-binaries"
10867:     install_binary_targets="$install_binary_targets install-cli"
10868: 
10869:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_CLI_OBJS"
10870: 
10871: 
10872:   case sapi/cli in
10873:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
10874:   /*) ac_srcdir=`echo "sapi/cli"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
10875:   *) ac_srcdir="$abs_srcdir/sapi/cli/"; ac_bdir="sapi/cli/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
10876:   esac
10877: 
10878: 
10879: 
10880:   b_c_pre=$php_c_pre
10881:   b_cxx_pre=$php_cxx_pre
10882:   b_c_meta=$php_c_meta
10883:   b_cxx_meta=$php_cxx_meta
10884:   b_c_post=$php_c_post
10885:   b_cxx_post=$php_cxx_post
10886:   b_lo=$php_lo
10887: 
10888: 
10889:   old_IFS=$IFS
10890:   for ac_src in php_cli.c php_http_parser.c php_cli_server.c; do
10891: 
10892:       IFS=.
10893:       set $ac_src
10894:       ac_obj=$1
10895:       IFS=$old_IFS
10896: 
10897:       PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
10898: 
10899:       case $ac_src in
10900:         *.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" ;;
10901:         *.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" ;;
10902:         *.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" ;;
10903:         *.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" ;;
10904:       esac
10905: 
10906:     cat >>Makefile.objects<<EOF
10907: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
10908: 	$ac_comp
10909: EOF
10910:   done
10911: 
10912: 
10913: 
10914: 
10915:   case $host_alias in
10916:   *aix*)
10917:     if test "$php_sapi_module" = "shared"; then
10918:       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)"
10919:     else
10920:       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)"
10921:     fi
10922:     ;;
10923:   *darwin*)
10924:     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)"
10925:     ;;
10926:   *netware*)
10927:     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)"
10928:     ;;
10929:   *)
10930:     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)"
10931:     ;;
10932:   esac
10933: 
10934:     PHP_EXECUTABLE="\$(top_builddir)/\$(SAPI_CLI_PATH)"
10935: 
10936:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_EXECUTABLE"
10937: 
10938: 
10939: 
10940:   PHP_VAR_SUBST="$PHP_VAR_SUBST SAPI_CLI_PATH"
10941: 
10942: 
10943:   PHP_VAR_SUBST="$PHP_VAR_SUBST BUILD_CLI"
10944: 
10945: 
10946: 
10947:   PHP_OUTPUT_FILES="$PHP_OUTPUT_FILES sapi/cli/php.1"
10948: 
10949: 
10950: 
10951: 
10952:     for header_file in sapi/cli/cli.h; do
10953: 
10954: 
10955:   unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
10956: 
10957:   cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
10958:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
10959:     eval "INSTALLHEADERS$unique=set"
10960: 
10961:         INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
10962: 
10963:   fi
10964: 
10965:     done
10966: 
10967: 
10968: fi
10969: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_CLI" >&5
10970: $as_echo "$PHP_CLI" >&6; }
10971: 
10972: 
10973: 
10974: php_with_continuity=no
10975: 
10976: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Continuity support" >&5
10977: $as_echo_n "checking for Continuity support... " >&6; }
10978: 
10979: # Check whether --with-continuity was given.
10980: if test "${with_continuity+set}" = set; then :
10981:   withval=$with_continuity; PHP_CONTINUITY=$withval
10982: else
10983: 
10984:   PHP_CONTINUITY=no
10985: 
10986: 
10987: fi
10988: 
10989: 
10990: ext_output=$PHP_CONTINUITY
10991: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
10992: $as_echo "$ext_output" >&6; }
10993: 
10994: 
10995: 
10996: 
10997: if test "$PHP_CONTINUITY" != "no"; then
10998:   if test ! -d $PHP_CONTINUITY; then
10999:     as_fn_error $? "Please specify the path to the root of your Continuity server using --with-continuity=DIR" "$LINENO" 5
11000:   fi
11001:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Continuity include files" >&5
11002: $as_echo_n "checking for Continuity include files... " >&6; }
11003:   if test -d $PHP_CONTINUITY/include ; then
11004:     CAPI_INCLUDE=$PHP_CONTINUITY/include
11005:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Continuity Binary Distribution" >&5
11006: $as_echo "Continuity Binary Distribution" >&6; }
11007:   else
11008:     as_fn_error $? "Cannot find your CAPI include files in either DIR/src or DIR/include" "$LINENO" 5
11009:   fi
11010: 
11011: 
11012:   if test "shared" = "program"; then
11013:     PHP_BINARIES="$PHP_BINARIES continuity"
11014:   elif test "$PHP_SAPI" != "none"; then
11015:     as_fn_error $? "
11016: +--------------------------------------------------------------------+
11017: |                        *** ATTENTION ***                           |
11018: |                                                                    |
11019: | You've configured multiple SAPIs to be build. You can build only   |
11020: | one SAPI module plus CGI, CLI and FPM binaries at the same time.   |
11021: +--------------------------------------------------------------------+
11022: " "$LINENO" 5
11023:   else
11024:     PHP_SAPI=continuity
11025:   fi
11026: 
11027: 
11028: 
11029:     BUILD_DIR="$BUILD_DIR sapi/continuity"
11030: 
11031: 
11032: 
11033:   PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS continuity"
11034: 
11035: 
11036:     case "shared" in
11037:     static)
11038: 
11039:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
11040:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
11041:   php_c_post=
11042:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
11043:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
11044:   php_cxx_post=
11045:   php_lo=lo
11046: 
11047:   case $with_pic in
11048:     yes) pic_setting='-prefer-pic';;
11049:     no)  pic_setting='-prefer-non-pic';;
11050:   esac
11051: 
11052:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
11053:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
11054:   shared_c_post=
11055:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
11056:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
11057:   shared_cxx_post=
11058:   shared_lo=lo
11059: 
11060:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
11061:   php_sapi_module=static
11062: ;;
11063:     shared)
11064: 
11065:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
11066:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
11067:   php_c_post=
11068:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
11069:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
11070:   php_cxx_post=
11071:   php_lo=lo
11072: 
11073:   case $with_pic in
11074:     yes) pic_setting='-prefer-pic';;
11075:     no)  pic_setting='-prefer-non-pic';;
11076:   esac
11077: 
11078:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
11079:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
11080:   shared_c_post=
11081:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
11082:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
11083:   shared_cxx_post=
11084:   shared_lo=lo
11085: 
11086:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
11087:   php_sapi_module=shared
11088: 
11089:   php_c_pre=$shared_c_pre
11090:   php_c_meta=$shared_c_meta
11091:   php_c_post=$shared_c_post
11092:   php_cxx_pre=$shared_cxx_pre
11093:   php_cxx_meta=$shared_cxx_meta
11094:   php_cxx_post=$shared_cxx_post
11095:   php_lo=$shared_lo
11096: ;;
11097:     bundle)
11098: 
11099:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
11100:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
11101:   php_c_post=
11102:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
11103:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
11104:   php_cxx_post=
11105:   php_lo=lo
11106: 
11107:   case $with_pic in
11108:     yes) pic_setting='-prefer-pic';;
11109:     no)  pic_setting='-prefer-non-pic';;
11110:   esac
11111: 
11112:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
11113:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
11114:   shared_c_post=
11115:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
11116:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
11117:   shared_cxx_post=
11118:   shared_lo=lo
11119: 
11120:   OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
11121:   php_sapi_module=static
11122: ;;
11123:     esac
11124:     install_sapi="install-sapi"
11125: 
11126: 
11127:   case sapi/continuity in
11128:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
11129:   /*) ac_srcdir=`echo "sapi/continuity"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
11130:   *) ac_srcdir="$abs_srcdir/sapi/continuity/"; ac_bdir="sapi/continuity/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
11131:   esac
11132: 
11133: 
11134: 
11135:   b_c_pre=$php_c_pre
11136:   b_cxx_pre=$php_cxx_pre
11137:   b_c_meta=$php_c_meta
11138:   b_cxx_meta=$php_cxx_meta
11139:   b_c_post=$php_c_post
11140:   b_cxx_post=$php_cxx_post
11141:   b_lo=$php_lo
11142: 
11143: 
11144:   old_IFS=$IFS
11145:   for ac_src in capi.c; do
11146: 
11147:       IFS=.
11148:       set $ac_src
11149:       ac_obj=$1
11150:       IFS=$old_IFS
11151: 
11152:       PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
11153: 
11154:       case $ac_src in
11155:         *.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" ;;
11156:         *.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" ;;
11157:         *.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" ;;
11158:         *.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" ;;
11159:       esac
11160: 
11161:     cat >>Makefile.objects<<EOF
11162: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
11163: 	$ac_comp
11164: EOF
11165:   done
11166: 
11167: 
11168: 
11169: 
11170: 
11171:   if test "$CAPI_INCLUDE" != "/usr/include"; then
11172: 
11173:   if test -z "$CAPI_INCLUDE" || echo "$CAPI_INCLUDE" | grep '^/' >/dev/null ; then
11174:     ai_p=$CAPI_INCLUDE
11175:   else
11176: 
11177:     ep_dir=`echo $CAPI_INCLUDE|$SED 's%/*[^/][^/]*/*$%%'`
11178: 
11179:     ep_realdir=`(cd "$ep_dir" && pwd)`
11180:     ai_p="$ep_realdir"/`basename "$CAPI_INCLUDE"`
11181:   fi
11182: 
11183: 
11184: 
11185:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
11186: 
11187:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
11188:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
11189:     eval "INCLUDEPATH$unique=set"
11190: 
11191:       if test ""; then
11192:         INCLUDES="-I$ai_p $INCLUDES"
11193:       else
11194:         INCLUDES="$INCLUDES -I$ai_p"
11195:       fi
11196: 
11197:   fi
11198: 
11199:   fi
11200: 
11201: 
11202:   enable_maintainer_zts=yes
11203:   if test "$pthreads_working" != "yes"; then
11204:     as_fn_error $? "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5
11205:   fi
11206: 
11207: 
11208: $as_echo "#define HAVE_CONTINUITY 1" >>confdefs.h
11209: 
11210:   INSTALL_IT="\$(INSTALL) -m 0755 $SAPI_SHARED \$(INSTALL_ROOT)$PHP_CONTINUITY/lib/"
11211: fi
11212: 
11213: 
11214: 
11215: 
11216: php_enable_embed=no
11217: 
11218: 
11219: # Check whether --enable-embed was given.
11220: if test "${enable_embed+set}" = set; then :
11221:   enableval=$enable_embed; PHP_EMBED=$enableval
11222: else
11223: 
11224:   PHP_EMBED=no
11225: 
11226: 
11227: fi
11228: 
11229: 
11230: ext_output=$PHP_EMBED
11231: 
11232: 
11233: 
11234: 
11235: 
11236: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for embedded SAPI library support" >&5
11237: $as_echo_n "checking for embedded SAPI library support... " >&6; }
11238: 
11239: if test "$PHP_EMBED" != "no"; then
11240:   case "$PHP_EMBED" in
11241:     yes|shared)
11242:       PHP_EMBED_TYPE=shared
11243:       INSTALL_IT="\$(mkinstalldirs) \$(INSTALL_ROOT)\$(prefix)/lib; \$(INSTALL) -m 0755 $SAPI_SHARED \$(INSTALL_ROOT)\$(prefix)/lib"
11244:       ;;
11245:     static)
11246:       PHP_EMBED_TYPE=static
11247:       INSTALL_IT="\$(mkinstalldirs) \$(INSTALL_ROOT)\$(prefix)/lib; \$(INSTALL) -m 0644 $SAPI_STATIC \$(INSTALL_ROOT)\$(prefix)/lib"
11248:       ;;
11249:     *)
11250:       PHP_EMBED_TYPE=no
11251:       ;;
11252:   esac
11253:   if test "$PHP_EMBED_TYPE" != "no"; then
11254: 
11255:   if test "$PHP_EMBED_TYPE" = "program"; then
11256:     PHP_BINARIES="$PHP_BINARIES embed"
11257:   elif test "$PHP_SAPI" != "none"; then
11258:     as_fn_error $? "
11259: +--------------------------------------------------------------------+
11260: |                        *** ATTENTION ***                           |
11261: |                                                                    |
11262: | You've configured multiple SAPIs to be build. You can build only   |
11263: | one SAPI module plus CGI, CLI and FPM binaries at the same time.   |
11264: +--------------------------------------------------------------------+
11265: " "$LINENO" 5
11266:   else
11267:     PHP_SAPI=embed
11268:   fi
11269: 
11270: 
11271: 
11272:     BUILD_DIR="$BUILD_DIR sapi/embed"
11273: 
11274: 
11275: 
11276:   PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS embed"
11277: 
11278: 
11279:     case "$PHP_EMBED_TYPE" in
11280:     static)
11281: 
11282:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
11283:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
11284:   php_c_post=
11285:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
11286:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
11287:   php_cxx_post=
11288:   php_lo=lo
11289: 
11290:   case $with_pic in
11291:     yes) pic_setting='-prefer-pic';;
11292:     no)  pic_setting='-prefer-non-pic';;
11293:   esac
11294: 
11295:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
11296:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
11297:   shared_c_post=
11298:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
11299:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
11300:   shared_cxx_post=
11301:   shared_lo=lo
11302: 
11303:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
11304:   php_sapi_module=static
11305: ;;
11306:     shared)
11307: 
11308:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
11309:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
11310:   php_c_post=
11311:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
11312:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
11313:   php_cxx_post=
11314:   php_lo=lo
11315: 
11316:   case $with_pic in
11317:     yes) pic_setting='-prefer-pic';;
11318:     no)  pic_setting='-prefer-non-pic';;
11319:   esac
11320: 
11321:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
11322:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
11323:   shared_c_post=
11324:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
11325:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
11326:   shared_cxx_post=
11327:   shared_lo=lo
11328: 
11329:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
11330:   php_sapi_module=shared
11331: 
11332:   php_c_pre=$shared_c_pre
11333:   php_c_meta=$shared_c_meta
11334:   php_c_post=$shared_c_post
11335:   php_cxx_pre=$shared_cxx_pre
11336:   php_cxx_meta=$shared_cxx_meta
11337:   php_cxx_post=$shared_cxx_post
11338:   php_lo=$shared_lo
11339: ;;
11340:     bundle)
11341: 
11342:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
11343:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
11344:   php_c_post=
11345:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
11346:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
11347:   php_cxx_post=
11348:   php_lo=lo
11349: 
11350:   case $with_pic in
11351:     yes) pic_setting='-prefer-pic';;
11352:     no)  pic_setting='-prefer-non-pic';;
11353:   esac
11354: 
11355:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
11356:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
11357:   shared_c_post=
11358:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
11359:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
11360:   shared_cxx_post=
11361:   shared_lo=lo
11362: 
11363:   OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
11364:   php_sapi_module=static
11365: ;;
11366:     esac
11367:     install_sapi="install-sapi"
11368: 
11369: 
11370:   case sapi/embed in
11371:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
11372:   /*) ac_srcdir=`echo "sapi/embed"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
11373:   *) ac_srcdir="$abs_srcdir/sapi/embed/"; ac_bdir="sapi/embed/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
11374:   esac
11375: 
11376: 
11377: 
11378:   b_c_pre=$php_c_pre
11379:   b_cxx_pre=$php_cxx_pre
11380:   b_c_meta=$php_c_meta
11381:   b_cxx_meta=$php_cxx_meta
11382:   b_c_post=$php_c_post
11383:   b_cxx_post=$php_cxx_post
11384:   b_lo=$php_lo
11385: 
11386: 
11387:   old_IFS=$IFS
11388:   for ac_src in php_embed.c; do
11389: 
11390:       IFS=.
11391:       set $ac_src
11392:       ac_obj=$1
11393:       IFS=$old_IFS
11394: 
11395:       PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
11396: 
11397:       case $ac_src in
11398:         *.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" ;;
11399:         *.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" ;;
11400:         *.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" ;;
11401:         *.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" ;;
11402:       esac
11403: 
11404:     cat >>Makefile.objects<<EOF
11405: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
11406: 	$ac_comp
11407: EOF
11408:   done
11409: 
11410: 
11411: 
11412: 
11413: 
11414: 
11415:     for header_file in sapi/embed/php_embed.h; do
11416: 
11417: 
11418:   unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
11419: 
11420:   cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
11421:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
11422:     eval "INSTALLHEADERS$unique=set"
11423: 
11424:         INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
11425: 
11426:   fi
11427: 
11428:     done
11429: 
11430: 
11431:   fi
11432:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_EMBED_TYPE" >&5
11433: $as_echo "$PHP_EMBED_TYPE" >&6; }
11434: else
11435:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11436: $as_echo "no" >&6; }
11437: fi
11438: 
11439: 
11440: 
11441: 
11442: php_enable_fpm=no
11443: 
11444: 
11445: # Check whether --enable-fpm was given.
11446: if test "${enable_fpm+set}" = set; then :
11447:   enableval=$enable_fpm; PHP_FPM=$enableval
11448: else
11449: 
11450:   PHP_FPM=no
11451: 
11452: 
11453: fi
11454: 
11455: 
11456: ext_output=$PHP_FPM
11457: 
11458: 
11459: 
11460: 
11461: 
11462: 
11463: 
11464: 
11465: 
11466: 
11467: 
11468: 
11469: 
11470: 
11471: 
11472: 
11473: 
11474: 
11475: 
11476: 
11477: 
11478: 
11479: 
11480: 
11481: 
11482: 
11483: 
11484: 
11485: 
11486: 
11487: 
11488: 
11489: 
11490: 
11491: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPM build" >&5
11492: $as_echo_n "checking for FPM build... " >&6; }
11493: if test "$PHP_FPM" != "no"; then
11494:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_FPM" >&5
11495: $as_echo "$PHP_FPM" >&6; }
11496: 
11497: 
11498:   for ac_func in setenv clearenv setproctitle
11499: do :
11500:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11501: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11502: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11503:   cat >>confdefs.h <<_ACEOF
11504: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11505: _ACEOF
11506: 
11507: fi
11508: done
11509: 
11510: 
11511:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
11512: $as_echo_n "checking for library containing socket... " >&6; }
11513: if ${ac_cv_search_socket+:} false; then :
11514:   $as_echo_n "(cached) " >&6
11515: else
11516:   ac_func_search_save_LIBS=$LIBS
11517: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11518: /* end confdefs.h.  */
11519: 
11520: /* Override any GCC internal prototype to avoid an error.
11521:    Use char because int might match the return type of a GCC
11522:    builtin and then its argument prototype would still apply.  */
11523: #ifdef __cplusplus
11524: extern "C"
11525: #endif
11526: char socket ();
11527: int
11528: main ()
11529: {
11530: return socket ();
11531:   ;
11532:   return 0;
11533: }
11534: _ACEOF
11535: for ac_lib in '' socket; do
11536:   if test -z "$ac_lib"; then
11537:     ac_res="none required"
11538:   else
11539:     ac_res=-l$ac_lib
11540:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11541:   fi
11542:   if ac_fn_c_try_link "$LINENO"; then :
11543:   ac_cv_search_socket=$ac_res
11544: fi
11545: rm -f core conftest.err conftest.$ac_objext \
11546:     conftest$ac_exeext
11547:   if ${ac_cv_search_socket+:} false; then :
11548:   break
11549: fi
11550: done
11551: if ${ac_cv_search_socket+:} false; then :
11552: 
11553: else
11554:   ac_cv_search_socket=no
11555: fi
11556: rm conftest.$ac_ext
11557: LIBS=$ac_func_search_save_LIBS
11558: fi
11559: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
11560: $as_echo "$ac_cv_search_socket" >&6; }
11561: ac_res=$ac_cv_search_socket
11562: if test "$ac_res" != no; then :
11563:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11564: 
11565: fi
11566: 
11567:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_addr" >&5
11568: $as_echo_n "checking for library containing inet_addr... " >&6; }
11569: if ${ac_cv_search_inet_addr+:} false; then :
11570:   $as_echo_n "(cached) " >&6
11571: else
11572:   ac_func_search_save_LIBS=$LIBS
11573: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11574: /* end confdefs.h.  */
11575: 
11576: /* Override any GCC internal prototype to avoid an error.
11577:    Use char because int might match the return type of a GCC
11578:    builtin and then its argument prototype would still apply.  */
11579: #ifdef __cplusplus
11580: extern "C"
11581: #endif
11582: char inet_addr ();
11583: int
11584: main ()
11585: {
11586: return inet_addr ();
11587:   ;
11588:   return 0;
11589: }
11590: _ACEOF
11591: for ac_lib in '' nsl; do
11592:   if test -z "$ac_lib"; then
11593:     ac_res="none required"
11594:   else
11595:     ac_res=-l$ac_lib
11596:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11597:   fi
11598:   if ac_fn_c_try_link "$LINENO"; then :
11599:   ac_cv_search_inet_addr=$ac_res
11600: fi
11601: rm -f core conftest.err conftest.$ac_objext \
11602:     conftest$ac_exeext
11603:   if ${ac_cv_search_inet_addr+:} false; then :
11604:   break
11605: fi
11606: done
11607: if ${ac_cv_search_inet_addr+:} false; then :
11608: 
11609: else
11610:   ac_cv_search_inet_addr=no
11611: fi
11612: rm conftest.$ac_ext
11613: LIBS=$ac_func_search_save_LIBS
11614: fi
11615: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_addr" >&5
11616: $as_echo "$ac_cv_search_inet_addr" >&6; }
11617: ac_res=$ac_cv_search_inet_addr
11618: if test "$ac_res" != no; then :
11619:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11620: 
11621: fi
11622: 
11623: 
11624:   for ac_header in errno.h fcntl.h stdio.h stdlib.h unistd.h sys/uio.h
11625: do :
11626:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11627: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11628: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11629:   cat >>confdefs.h <<_ACEOF
11630: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11631: _ACEOF
11632: 
11633: fi
11634: 
11635: done
11636: 
11637:   for ac_header in sys/select.h sys/socket.h sys/time.h
11638: do :
11639:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11640: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11641: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11642:   cat >>confdefs.h <<_ACEOF
11643: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11644: _ACEOF
11645: 
11646: fi
11647: 
11648: done
11649: 
11650:   for ac_header in arpa/inet.h netinet/in.h
11651: do :
11652:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11653: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11654: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11655:   cat >>confdefs.h <<_ACEOF
11656: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11657: _ACEOF
11658: 
11659: fi
11660: 
11661: done
11662: 
11663:   for ac_header in sysexits.h
11664: do :
11665:   ac_fn_c_check_header_mongrel "$LINENO" "sysexits.h" "ac_cv_header_sysexits_h" "$ac_includes_default"
11666: if test "x$ac_cv_header_sysexits_h" = xyes; then :
11667:   cat >>confdefs.h <<_ACEOF
11668: #define HAVE_SYSEXITS_H 1
11669: _ACEOF
11670: 
11671: fi
11672: 
11673: done
11674: 
11675: 
11676: 
11677:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prctl" >&5
11678: $as_echo_n "checking for prctl... " >&6; }
11679: 
11680:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11681: /* end confdefs.h.  */
11682:  #include <sys/prctl.h>
11683: int
11684: main ()
11685: {
11686: prctl(0, 0, 0, 0, 0);
11687:   ;
11688:   return 0;
11689: }
11690: _ACEOF
11691: if ac_fn_c_try_compile "$LINENO"; then :
11692: 
11693: 
11694: $as_echo "#define HAVE_PRCTL 1" >>confdefs.h
11695: 
11696:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11697: $as_echo "yes" >&6; }
11698: 
11699: else
11700: 
11701:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11702: $as_echo "no" >&6; }
11703: 
11704: fi
11705: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11706: 
11707: 
11708:   have_clock_gettime=no
11709: 
11710:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime" >&5
11711: $as_echo_n "checking for clock_gettime... " >&6; }
11712: 
11713:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11714: /* end confdefs.h.  */
11715:  #include <time.h>
11716: int
11717: main ()
11718: {
11719: struct timespec ts; clock_gettime(CLOCK_MONOTONIC, &ts);
11720:   ;
11721:   return 0;
11722: }
11723: _ACEOF
11724: if ac_fn_c_try_link "$LINENO"; then :
11725: 
11726:     have_clock_gettime=yes
11727:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11728: $as_echo "yes" >&6; }
11729: 
11730: else
11731: 
11732:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11733: $as_echo "no" >&6; }
11734: 
11735: fi
11736: rm -f core conftest.err conftest.$ac_objext \
11737:     conftest$ac_exeext conftest.$ac_ext
11738: 
11739:   if test "$have_clock_gettime" = "no"; then
11740:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
11741: $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
11742: 
11743:     SAVED_LIBS="$LIBS"
11744:     LIBS="$LIBS -lrt"
11745: 
11746:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11747: /* end confdefs.h.  */
11748:  #include <time.h>
11749: int
11750: main ()
11751: {
11752: struct timespec ts; clock_gettime(CLOCK_MONOTONIC, &ts);
11753:   ;
11754:   return 0;
11755: }
11756: _ACEOF
11757: if ac_fn_c_try_link "$LINENO"; then :
11758: 
11759:       have_clock_gettime=yes
11760:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11761: $as_echo "yes" >&6; }
11762: 
11763: else
11764: 
11765:       LIBS="$SAVED_LIBS"
11766:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11767: $as_echo "no" >&6; }
11768: 
11769: fi
11770: rm -f core conftest.err conftest.$ac_objext \
11771:     conftest$ac_exeext conftest.$ac_ext
11772:   fi
11773: 
11774:   if test "$have_clock_gettime" = "yes"; then
11775: 
11776: $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
11777: 
11778:   fi
11779: 
11780:   have_clock_get_time=no
11781: 
11782:   if test "$have_clock_gettime" = "no"; then
11783:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_get_time" >&5
11784: $as_echo_n "checking for clock_get_time... " >&6; }
11785: 
11786:     if test "$cross_compiling" = yes; then :
11787:   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11788: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11789: as_fn_error $? "cannot run test program while cross compiling
11790: See \`config.log' for more details" "$LINENO" 5; }
11791: else
11792:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11793: /* end confdefs.h.  */
11794:  #include <mach/mach.h>
11795:       #include <mach/clock.h>
11796:       #include <mach/mach_error.h>
11797: 
11798:       int main()
11799:       {
11800:         kern_return_t ret; clock_serv_t aClock; mach_timespec_t aTime;
11801:         ret = host_get_clock_service(mach_host_self(), REALTIME_CLOCK, &aClock);
11802: 
11803:         if (ret != KERN_SUCCESS) {
11804:           return 1;
11805:         }
11806: 
11807:         ret = clock_get_time(aClock, &aTime);
11808:         if (ret != KERN_SUCCESS) {
11809:           return 2;
11810:         }
11811: 
11812:         return 0;
11813:       }
11814: 
11815: _ACEOF
11816: if ac_fn_c_try_run "$LINENO"; then :
11817: 
11818:       have_clock_get_time=yes
11819:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11820: $as_echo "yes" >&6; }
11821: 
11822: else
11823: 
11824:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11825: $as_echo "no" >&6; }
11826: 
11827: fi
11828: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11829:   conftest.$ac_objext conftest.beam conftest.$ac_ext
11830: fi
11831: 
11832:   fi
11833: 
11834:   if test "$have_clock_get_time" = "yes"; then
11835: 
11836: $as_echo "#define HAVE_CLOCK_GET_TIME 1" >>confdefs.h
11837: 
11838:   fi
11839: 
11840: 
11841:   have_ptrace=no
11842:   have_broken_ptrace=no
11843: 
11844:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ptrace" >&5
11845: $as_echo_n "checking for ptrace... " >&6; }
11846: 
11847:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11848: /* end confdefs.h.  */
11849: 
11850:     #include <sys/types.h>
11851:     #include <sys/ptrace.h>
11852: int
11853: main ()
11854: {
11855: ptrace(0, 0, (void *) 0, 0);
11856:   ;
11857:   return 0;
11858: }
11859: _ACEOF
11860: if ac_fn_c_try_compile "$LINENO"; then :
11861: 
11862:     have_ptrace=yes
11863:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11864: $as_echo "yes" >&6; }
11865: 
11866: else
11867: 
11868:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11869: $as_echo "no" >&6; }
11870: 
11871: fi
11872: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11873: 
11874:   if test "$have_ptrace" = "yes"; then
11875:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ptrace works" >&5
11876: $as_echo_n "checking whether ptrace works... " >&6; }
11877: 
11878:     if test "$cross_compiling" = yes; then :
11879: 
11880:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped (cross compiling)" >&5
11881: $as_echo "skipped (cross compiling)" >&6; }
11882: 
11883: else
11884:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11885: /* end confdefs.h.  */
11886: 
11887:       #include <unistd.h>
11888:       #include <signal.h>
11889:       #include <sys/wait.h>
11890:       #include <sys/types.h>
11891:       #include <sys/ptrace.h>
11892:       #include <errno.h>
11893: 
11894:       #if !defined(PTRACE_ATTACH) && defined(PT_ATTACH)
11895:       #define PTRACE_ATTACH PT_ATTACH
11896:       #endif
11897: 
11898:       #if !defined(PTRACE_DETACH) && defined(PT_DETACH)
11899:       #define PTRACE_DETACH PT_DETACH
11900:       #endif
11901: 
11902:       #if !defined(PTRACE_PEEKDATA) && defined(PT_READ_D)
11903:       #define PTRACE_PEEKDATA PT_READ_D
11904:       #endif
11905: 
11906:       int main()
11907:       {
11908:         long v1 = (unsigned int) -1; /* copy will fail if sizeof(long) == 8 and we've got "int ptrace()" */
11909:         long v2;
11910:         pid_t child;
11911:         int status;
11912: 
11913:         if ( (child = fork()) ) { /* parent */
11914:           int ret = 0;
11915: 
11916:           if (0 > ptrace(PTRACE_ATTACH, child, 0, 0)) {
11917:             return 2;
11918:           }
11919: 
11920:           waitpid(child, &status, 0);
11921: 
11922:       #ifdef PT_IO
11923:           struct ptrace_io_desc ptio = {
11924:             .piod_op = PIOD_READ_D,
11925:             .piod_offs = &v1,
11926:             .piod_addr = &v2,
11927:             .piod_len = sizeof(v1)
11928:           };
11929: 
11930:           if (0 > ptrace(PT_IO, child, (void *) &ptio, 0)) {
11931:             ret = 3;
11932:           }
11933:       #else
11934:           errno = 0;
11935: 
11936:           v2 = ptrace(PTRACE_PEEKDATA, child, (void *) &v1, 0);
11937: 
11938:           if (errno) {
11939:             ret = 4;
11940:           }
11941:       #endif
11942:           ptrace(PTRACE_DETACH, child, (void *) 1, 0);
11943: 
11944:           kill(child, SIGKILL);
11945: 
11946:           return ret ? ret : (v1 != v2);
11947:         }
11948:         else { /* child */
11949:           sleep(10);
11950:           return 0;
11951:         }
11952:       }
11953: 
11954: _ACEOF
11955: if ac_fn_c_try_run "$LINENO"; then :
11956: 
11957:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11958: $as_echo "yes" >&6; }
11959: 
11960: else
11961: 
11962:       have_ptrace=no
11963:       have_broken_ptrace=yes
11964:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11965: $as_echo "no" >&6; }
11966: 
11967: fi
11968: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11969:   conftest.$ac_objext conftest.beam conftest.$ac_ext
11970: fi
11971: 
11972:   fi
11973: 
11974:   if test "$have_ptrace" = "yes"; then
11975: 
11976: $as_echo "#define HAVE_PTRACE 1" >>confdefs.h
11977: 
11978:   fi
11979: 
11980:   have_mach_vm_read=no
11981: 
11982:   if test "$have_broken_ptrace" = "yes"; then
11983:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mach_vm_read" >&5
11984: $as_echo_n "checking for mach_vm_read... " >&6; }
11985: 
11986:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11987: /* end confdefs.h.  */
11988:  #include <mach/mach.h>
11989:       #include <mach/mach_vm.h>
11990: 
11991: int
11992: main ()
11993: {
11994: 
11995:       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);
11996: 
11997:   ;
11998:   return 0;
11999: }
12000: _ACEOF
12001: if ac_fn_c_try_compile "$LINENO"; then :
12002: 
12003:       have_mach_vm_read=yes
12004:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12005: $as_echo "yes" >&6; }
12006: 
12007: else
12008: 
12009:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12010: $as_echo "no" >&6; }
12011: 
12012: fi
12013: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12014:   fi
12015: 
12016:   if test "$have_mach_vm_read" = "yes"; then
12017: 
12018: $as_echo "#define HAVE_MACH_VM_READ 1" >>confdefs.h
12019: 
12020:   fi
12021: 
12022:   proc_mem_file=""
12023: 
12024:   if test -r /proc/$$/mem ; then
12025:     proc_mem_file="mem"
12026:   else
12027:     if test -r /proc/$$/as ; then
12028:       proc_mem_file="as"
12029:     fi
12030:   fi
12031: 
12032:   if test -n "$proc_mem_file" ; then
12033:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for proc mem file" >&5
12034: $as_echo_n "checking for proc mem file... " >&6; }
12035: 
12036:     if test "$cross_compiling" = yes; then :
12037: 
12038:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped (cross compiling)" >&5
12039: $as_echo "skipped (cross compiling)" >&6; }
12040: 
12041: else
12042:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12043: /* end confdefs.h.  */
12044: 
12045:       #define _GNU_SOURCE
12046:       #define _FILE_OFFSET_BITS 64
12047:       #include <stdint.h>
12048:       #include <unistd.h>
12049:       #include <sys/types.h>
12050:       #include <sys/stat.h>
12051:       #include <fcntl.h>
12052:       #include <stdio.h>
12053:       int main()
12054:       {
12055:         long v1 = (unsigned int) -1, v2 = 0;
12056:         char buf[128];
12057:         int fd;
12058:         sprintf(buf, "/proc/%d/$proc_mem_file", getpid());
12059:         fd = open(buf, O_RDONLY);
12060:         if (0 > fd) {
12061:           return 1;
12062:         }
12063:         if (sizeof(long) != pread(fd, &v2, sizeof(long), (uintptr_t) &v1)) {
12064:           close(fd);
12065:           return 1;
12066:         }
12067:         close(fd);
12068:         return v1 != v2;
12069:       }
12070: 
12071: _ACEOF
12072: if ac_fn_c_try_run "$LINENO"; then :
12073: 
12074:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $proc_mem_file" >&5
12075: $as_echo "$proc_mem_file" >&6; }
12076: 
12077: else
12078: 
12079:       proc_mem_file=""
12080:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12081: $as_echo "no" >&6; }
12082: 
12083: fi
12084: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12085:   conftest.$ac_objext conftest.beam conftest.$ac_ext
12086: fi
12087: 
12088:   fi
12089: 
12090:   if test -n "$proc_mem_file"; then
12091: 
12092: cat >>confdefs.h <<_ACEOF
12093: #define PROC_MEM_FILE "$proc_mem_file"
12094: _ACEOF
12095: 
12096:   fi
12097: 
12098:   fpm_trace_type=""
12099: 
12100:   if test "$have_ptrace" = "yes"; then
12101:     fpm_trace_type=ptrace
12102: 
12103:   elif test -n "$proc_mem_file"; then
12104:     fpm_trace_type=pread
12105: 
12106:   elif test "$have_mach_vm_read" = "yes" ; then
12107:     fpm_trace_type=mach
12108: 
12109:   else
12110:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FPM Trace - ptrace, pread, or mach: could not be found" >&5
12111: $as_echo "$as_me: WARNING: FPM Trace - ptrace, pread, or mach: could not be found" >&2;}
12112:   fi
12113: 
12114: 
12115: 
12116:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports __sync_bool_compare_and_swap" >&5
12117: $as_echo_n "checking if gcc supports __sync_bool_compare_and_swap... " >&6; }
12118:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12119: /* end confdefs.h.  */
12120: 
12121: int
12122: main ()
12123: {
12124: 
12125:     int variable = 1;
12126:     return (__sync_bool_compare_and_swap(&variable, 1, 2)
12127:            && __sync_add_and_fetch(&variable, 1)) ? 1 : 0;
12128: 
12129:   ;
12130:   return 0;
12131: }
12132: _ACEOF
12133: if ac_fn_c_try_link "$LINENO"; then :
12134: 
12135:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12136: $as_echo "yes" >&6; }
12137: 
12138: $as_echo "#define HAVE_BUILTIN_ATOMIC 1" >>confdefs.h
12139: 
12140: 
12141: else
12142: 
12143:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12144: $as_echo "no" >&6; }
12145: 
12146: fi
12147: rm -f core conftest.err conftest.$ac_objext \
12148:     conftest$ac_exeext conftest.$ac_ext
12149: 
12150: 
12151:   have_lq=no
12152: 
12153:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TCP_INFO" >&5
12154: $as_echo_n "checking for TCP_INFO... " >&6; }
12155: 
12156:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12157: /* end confdefs.h.  */
12158:  #include <netinet/tcp.h>
12159: int
12160: main ()
12161: {
12162: struct tcp_info ti; int x = TCP_INFO;
12163:   ;
12164:   return 0;
12165: }
12166: _ACEOF
12167: if ac_fn_c_try_compile "$LINENO"; then :
12168: 
12169:     have_lq=tcp_info
12170:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12171: $as_echo "yes" >&6; }
12172: 
12173: else
12174: 
12175:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12176: $as_echo "no" >&6; }
12177: 
12178: fi
12179: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12180: 
12181:   if test "$have_lq" = "tcp_info"; then
12182: 
12183: $as_echo "#define HAVE_LQ_TCP_INFO 1" >>confdefs.h
12184: 
12185:   fi
12186: 
12187:   if test "$have_lq" = "no" ; then
12188:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SO_LISTENQLEN" >&5
12189: $as_echo_n "checking for SO_LISTENQLEN... " >&6; }
12190: 
12191:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12192: /* end confdefs.h.  */
12193:  #include <sys/socket.h>
12194: int
12195: main ()
12196: {
12197: int x = SO_LISTENQLIMIT; int y = SO_LISTENQLEN;
12198:   ;
12199:   return 0;
12200: }
12201: _ACEOF
12202: if ac_fn_c_try_compile "$LINENO"; then :
12203: 
12204:       have_lq=so_listenq
12205:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12206: $as_echo "yes" >&6; }
12207: 
12208: else
12209: 
12210:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12211: $as_echo "no" >&6; }
12212: 
12213: fi
12214: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12215: 
12216:     if test "$have_lq" = "tcp_info"; then
12217: 
12218: $as_echo "#define HAVE_LQ_SO_LISTENQ 1" >>confdefs.h
12219: 
12220:     fi
12221:   fi
12222: 
12223: 
12224: 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysconf" >&5
12225: $as_echo_n "checking for sysconf... " >&6; }
12226: 
12227: 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12228: /* end confdefs.h.  */
12229:  #include <unistd.h>
12230: int
12231: main ()
12232: {
12233: sysconf(_SC_CLK_TCK);
12234:   ;
12235:   return 0;
12236: }
12237: _ACEOF
12238: if ac_fn_c_try_compile "$LINENO"; then :
12239: 
12240: 
12241: $as_echo "#define HAVE_SYSCONF 1" >>confdefs.h
12242: 
12243: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12244: $as_echo "yes" >&6; }
12245: 
12246: else
12247: 
12248: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12249: $as_echo "no" >&6; }
12250: 
12251: fi
12252: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12253: 
12254: 
12255: 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for times" >&5
12256: $as_echo_n "checking for times... " >&6; }
12257: 
12258: 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12259: /* end confdefs.h.  */
12260:  #include <sys/times.h>
12261: int
12262: main ()
12263: {
12264: struct tms t; times(&t);
12265:   ;
12266:   return 0;
12267: }
12268: _ACEOF
12269: if ac_fn_c_try_compile "$LINENO"; then :
12270: 
12271: 
12272: $as_echo "#define HAVE_TIMES 1" >>confdefs.h
12273: 
12274: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12275: $as_echo "yes" >&6; }
12276: 
12277: else
12278: 
12279: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12280: $as_echo "no" >&6; }
12281: 
12282: fi
12283: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12284: 
12285: 
12286: 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kqueue" >&5
12287: $as_echo_n "checking for kqueue... " >&6; }
12288: 
12289: 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12290: /* end confdefs.h.  */
12291: 
12292: 		#include <sys/types.h>
12293: 		#include <sys/event.h>
12294: 		#include <sys/time.h>
12295: 
12296: int
12297: main ()
12298: {
12299: 
12300: 		int kfd;
12301: 		struct kevent k;
12302: 		kfd = kqueue();
12303: 		/* 0 -> STDIN_FILENO */
12304: 		EV_SET(&k, 0, EVFILT_READ , EV_ADD | EV_CLEAR, 0, 0, NULL);
12305: 
12306:   ;
12307:   return 0;
12308: }
12309: _ACEOF
12310: if ac_fn_c_try_compile "$LINENO"; then :
12311: 
12312: 
12313: $as_echo "#define HAVE_KQUEUE 1" >>confdefs.h
12314: 
12315: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12316: $as_echo "yes" >&6; }
12317: 
12318: else
12319: 
12320: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12321: $as_echo "no" >&6; }
12322: 
12323: fi
12324: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12325: 
12326: 
12327: 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for port framework" >&5
12328: $as_echo_n "checking for port framework... " >&6; }
12329: 
12330: 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12331: /* end confdefs.h.  */
12332: 
12333: 		#include <port.h>
12334: 
12335: int
12336: main ()
12337: {
12338: 
12339: 		int port;
12340: 
12341: 		port = port_create();
12342: 		if (port < 0) {
12343: 			return 1;
12344: 		}
12345: 
12346:   ;
12347:   return 0;
12348: }
12349: _ACEOF
12350: if ac_fn_c_try_compile "$LINENO"; then :
12351: 
12352: 
12353: $as_echo "#define HAVE_PORT 1" >>confdefs.h
12354: 
12355: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12356: $as_echo "yes" >&6; }
12357: 
12358: else
12359: 
12360: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12361: $as_echo "no" >&6; }
12362: 
12363: fi
12364: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12365: 
12366: 
12367: 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/poll" >&5
12368: $as_echo_n "checking for /dev/poll... " >&6; }
12369: 
12370: 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12371: /* end confdefs.h.  */
12372: 
12373: 		#include <stdio.h>
12374: 		#include <sys/devpoll.h>
12375: 
12376: int
12377: main ()
12378: {
12379: 
12380: 		int n, dp;
12381: 		struct dvpoll dvp;
12382: 		dp = 0;
12383: 		dvp.dp_fds = NULL;
12384: 		dvp.dp_nfds = 0;
12385: 		dvp.dp_timeout = 0;
12386: 		n = ioctl(dp, DP_POLL, &dvp)
12387: 
12388:   ;
12389:   return 0;
12390: }
12391: _ACEOF
12392: if ac_fn_c_try_compile "$LINENO"; then :
12393: 
12394: 
12395: $as_echo "#define HAVE_DEVPOLL 1" >>confdefs.h
12396: 
12397: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12398: $as_echo "yes" >&6; }
12399: 
12400: else
12401: 
12402: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12403: $as_echo "no" >&6; }
12404: 
12405: fi
12406: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12407: 
12408: 
12409: 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll" >&5
12410: $as_echo_n "checking for epoll... " >&6; }
12411: 
12412: 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12413: /* end confdefs.h.  */
12414: 
12415: 		#include <sys/epoll.h>
12416: 
12417: int
12418: main ()
12419: {
12420: 
12421: 		int epollfd;
12422: 		struct epoll_event e;
12423: 
12424: 		epollfd = epoll_create(1);
12425: 		if (epollfd < 0) {
12426: 			return 1;
12427: 		}
12428: 
12429: 		e.events = EPOLLIN | EPOLLET;
12430: 		e.data.fd = 0;
12431: 
12432: 		if (epoll_ctl(epollfd, EPOLL_CTL_ADD, 0, &e) == -1) {
12433: 			return 1;
12434: 		}
12435: 
12436: 		e.events = 0;
12437: 		if (epoll_wait(epollfd, &e, 1, 1) < 0) {
12438: 			return 1;
12439: 		}
12440: 
12441:   ;
12442:   return 0;
12443: }
12444: _ACEOF
12445: if ac_fn_c_try_compile "$LINENO"; then :
12446: 
12447: 
12448: $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
12449: 
12450: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12451: $as_echo "yes" >&6; }
12452: 
12453: else
12454: 
12455: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12456: $as_echo "no" >&6; }
12457: 
12458: fi
12459: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12460: 
12461: 
12462: 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll" >&5
12463: $as_echo_n "checking for poll... " >&6; }
12464: 
12465: 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12466: /* end confdefs.h.  */
12467: 
12468: 		#include <poll.h>
12469: 
12470: int
12471: main ()
12472: {
12473: 
12474: 		struct pollfd fds[2];
12475: 
12476: 		fds[0].fd = 0;
12477: 		fds[0].events = POLLIN;
12478: 
12479: 		fds[1].fd = 0;
12480: 		fds[1].events = POLLIN;
12481: 
12482: 		 poll(fds, 2, 1);
12483: 
12484:   ;
12485:   return 0;
12486: }
12487: _ACEOF
12488: if ac_fn_c_try_compile "$LINENO"; then :
12489: 
12490: 
12491: $as_echo "#define HAVE_POLL 1" >>confdefs.h
12492: 
12493: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12494: $as_echo "yes" >&6; }
12495: 
12496: else
12497: 
12498: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12499: $as_echo "no" >&6; }
12500: 
12501: fi
12502: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12503: 
12504: 
12505: 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for select" >&5
12506: $as_echo_n "checking for select... " >&6; }
12507: 
12508: 	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12509: /* end confdefs.h.  */
12510: 
12511: 		/* According to POSIX.1-2001 */
12512: 		#include <sys/select.h>
12513: 
12514: 		/* According to earlier standards */
12515: 		#include <sys/time.h>
12516: 		#include <sys/types.h>
12517: 		#include <unistd.h>
12518: 
12519: int
12520: main ()
12521: {
12522: 
12523: 		fd_set fds;
12524: 		struct timeval t;
12525: 		t.tv_sec = 0;
12526: 		t.tv_usec = 42;
12527: 		FD_ZERO(&fds);
12528: 		/* 0 -> STDIN_FILENO */
12529: 		FD_SET(0, &fds);
12530: 		select(FD_SETSIZE, &fds, NULL, NULL, &t);
12531: 
12532:   ;
12533:   return 0;
12534: }
12535: _ACEOF
12536: if ac_fn_c_try_compile "$LINENO"; then :
12537: 
12538: 
12539: $as_echo "#define HAVE_SELECT 1" >>confdefs.h
12540: 
12541: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12542: $as_echo "yes" >&6; }
12543: 
12544: else
12545: 
12546: 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12547: $as_echo "no" >&6; }
12548: 
12549: fi
12550: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12551: 
12552: 
12553: 
12554: php_with_fpm_user=nobody
12555: 
12556: 
12557: 
12558: # Check whether --with-fpm-user was given.
12559: if test "${with_fpm_user+set}" = set; then :
12560:   withval=$with_fpm_user; PHP_FPM_USER=$withval
12561: else
12562: 
12563:   PHP_FPM_USER=nobody
12564: 
12565: 
12566: fi
12567: 
12568: 
12569: ext_output=$PHP_FPM_USER
12570: 
12571: 
12572: 
12573: 
12574: 
12575: 
12576: php_with_fpm_group=nobody
12577: 
12578: 
12579: 
12580: # Check whether --with-fpm-group was given.
12581: if test "${with_fpm_group+set}" = set; then :
12582:   withval=$with_fpm_group; PHP_FPM_GROUP=$withval
12583: else
12584: 
12585:   PHP_FPM_GROUP=nobody
12586: 
12587: 
12588: fi
12589: 
12590: 
12591: ext_output=$PHP_FPM_GROUP
12592: 
12593: 
12594: 
12595: 
12596: 
12597: 
12598: php_with_fpm_systemd=no
12599: 
12600: 
12601: 
12602: # Check whether --with-fpm-systemd was given.
12603: if test "${with_fpm_systemd+set}" = set; then :
12604:   withval=$with_fpm_systemd; PHP_FPM_SYSTEMD=$withval
12605: else
12606: 
12607:   PHP_FPM_SYSTEMD=no
12608: 
12609: 
12610: fi
12611: 
12612: 
12613: ext_output=$PHP_FPM_SYSTEMD
12614: 
12615: 
12616: 
12617: 
12618: 
12619:   if test "$PHP_FPM_SYSTEMD" != "no" ; then
12620:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sd_notify in -lsystemd-daemon" >&5
12621: $as_echo_n "checking for sd_notify in -lsystemd-daemon... " >&6; }
12622: if ${ac_cv_lib_systemd_daemon_sd_notify+:} false; then :
12623:   $as_echo_n "(cached) " >&6
12624: else
12625:   ac_check_lib_save_LIBS=$LIBS
12626: LIBS="-lsystemd-daemon  $LIBS"
12627: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12628: /* end confdefs.h.  */
12629: 
12630: /* Override any GCC internal prototype to avoid an error.
12631:    Use char because int might match the return type of a GCC
12632:    builtin and then its argument prototype would still apply.  */
12633: #ifdef __cplusplus
12634: extern "C"
12635: #endif
12636: char sd_notify ();
12637: int
12638: main ()
12639: {
12640: return sd_notify ();
12641:   ;
12642:   return 0;
12643: }
12644: _ACEOF
12645: if ac_fn_c_try_link "$LINENO"; then :
12646:   ac_cv_lib_systemd_daemon_sd_notify=yes
12647: else
12648:   ac_cv_lib_systemd_daemon_sd_notify=no
12649: fi
12650: rm -f core conftest.err conftest.$ac_objext \
12651:     conftest$ac_exeext conftest.$ac_ext
12652: LIBS=$ac_check_lib_save_LIBS
12653: fi
12654: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_systemd_daemon_sd_notify" >&5
12655: $as_echo "$ac_cv_lib_systemd_daemon_sd_notify" >&6; }
12656: if test "x$ac_cv_lib_systemd_daemon_sd_notify" = xyes; then :
12657:   SYSTEMD_LIBS="-lsystemd-daemon"
12658: fi
12659: 
12660:     for ac_header in systemd/sd-daemon.h
12661: do :
12662:   ac_fn_c_check_header_mongrel "$LINENO" "systemd/sd-daemon.h" "ac_cv_header_systemd_sd_daemon_h" "$ac_includes_default"
12663: if test "x$ac_cv_header_systemd_sd_daemon_h" = xyes; then :
12664:   cat >>confdefs.h <<_ACEOF
12665: #define HAVE_SYSTEMD_SD_DAEMON_H 1
12666: _ACEOF
12667:  HAVE_SD_DAEMON_H="yes"
12668: else
12669:   HAVE_SD_DAEMON_H="no"
12670: fi
12671: 
12672: done
12673: 
12674:     if test $HAVE_SD_DAEMON_H = "no" || test -z "${SYSTEMD_LIBS}"; then
12675:       as_fn_error $? "Your system does not support systemd." "$LINENO" 5
12676:     else
12677: 
12678: $as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
12679: 
12680:       PHP_FPM_SD_FILES="fpm/fpm_systemd.c"
12681: 
12682: 
12683:   case systemd-daemon in
12684:   c|c_r|pthread*) ;;
12685:   *)
12686:       LIBS="-lsystemd-daemon $LIBS"
12687:    ;;
12688:   esac
12689: 
12690: 
12691:       php_fpm_systemd=notify
12692:     fi
12693:   else
12694:     php_fpm_systemd=simple
12695:   fi
12696: 
12697: 
12698:   PHP_VAR_SUBST="$PHP_VAR_SUBST php_fpm_systemd"
12699: 
12700: 
12701: 
12702: 
12703: cat >>confdefs.h <<_ACEOF
12704: #define PHP_FPM_SYSTEMD "$php_fpm_systemd"
12705: _ACEOF
12706: 
12707: 
12708:   if test -z "$PHP_FPM_USER" -o "$PHP_FPM_USER" = "yes" -o "$PHP_FPM_USER" = "no"; then
12709:     php_fpm_user="nobody"
12710:   else
12711:     php_fpm_user="$PHP_FPM_USER"
12712:   fi
12713: 
12714:   if test -z "$PHP_FPM_GROUP" -o "$PHP_FPM_GROUP" = "yes" -o "$PHP_FPM_GROUP" = "no"; then
12715:     php_fpm_group="nobody"
12716:   else
12717:     php_fpm_group="$PHP_FPM_GROUP"
12718:   fi
12719: 
12720: 
12721: 
12722:   PHP_VAR_SUBST="$PHP_VAR_SUBST php_fpm_user"
12723: 
12724: 
12725: 
12726: 
12727: 
12728:   PHP_VAR_SUBST="$PHP_VAR_SUBST php_fpm_group"
12729: 
12730: 
12731: 
12732:   php_fpm_sysconfdir=`eval echo $sysconfdir`
12733: 
12734: 
12735:   PHP_VAR_SUBST="$PHP_VAR_SUBST php_fpm_sysconfdir"
12736: 
12737: 
12738: 
12739:   php_fpm_localstatedir=`eval echo $localstatedir`
12740: 
12741: 
12742:   PHP_VAR_SUBST="$PHP_VAR_SUBST php_fpm_localstatedir"
12743: 
12744: 
12745: 
12746:   php_fpm_prefix=`eval echo $prefix`
12747: 
12748: 
12749:   PHP_VAR_SUBST="$PHP_VAR_SUBST php_fpm_prefix"
12750: 
12751: 
12752: 
12753: 
12754: 
12755: cat >>confdefs.h <<_ACEOF
12756: #define PHP_FPM_USER "$php_fpm_user"
12757: _ACEOF
12758: 
12759: 
12760: cat >>confdefs.h <<_ACEOF
12761: #define PHP_FPM_GROUP "$php_fpm_group"
12762: _ACEOF
12763: 
12764: 
12765: 
12766: cat >>confdefs.h <<_ACEOF
12767: #define PHP_FPM_USER "$php_fpm_user"
12768: _ACEOF
12769: 
12770: 
12771: cat >>confdefs.h <<_ACEOF
12772: #define PHP_FPM_GROUP "$php_fpm_group"
12773: _ACEOF
12774: 
12775: 
12776: 
12777: 
12778:     BUILD_DIR="$BUILD_DIR sapi/fpm/fpm"
12779: 
12780: 
12781: 
12782: 
12783:     BUILD_DIR="$BUILD_DIR sapi/fpm/fpm/events"
12784: 
12785: 
12786: 
12787:   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"
12788: 
12789: 
12790:   src=$abs_srcdir/sapi/fpm/Makefile.frag
12791:   ac_srcdir=$ext_srcdir
12792:   ac_builddir=$ext_builddir
12793:   test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src  >> Makefile.fragments
12794: 
12795: 
12796:   SAPI_FPM_PATH=sapi/fpm/php-fpm
12797: 
12798: 
12799:   if test "$fpm_trace_type" && test -f "$abs_srcdir/sapi/fpm/fpm/fpm_trace_$fpm_trace_type.c"; then
12800:     PHP_FPM_TRACE_FILES="fpm/fpm_trace.c fpm/fpm_trace_$fpm_trace_type.c"
12801:   fi
12802: 
12803:   PHP_FPM_CFLAGS="-I$abs_srcdir/sapi/fpm"
12804: 
12805:   PHP_FPM_FILES="fpm/fastcgi.c \
12806:     fpm/fpm.c \
12807:     fpm/fpm_children.c \
12808:     fpm/fpm_cleanup.c \
12809:     fpm/fpm_clock.c \
12810:     fpm/fpm_conf.c \
12811:     fpm/fpm_env.c \
12812:     fpm/fpm_events.c \
12813: 		fpm/fpm_log.c \
12814:     fpm/fpm_main.c \
12815:     fpm/fpm_php.c \
12816:     fpm/fpm_php_trace.c \
12817:     fpm/fpm_process_ctl.c \
12818:     fpm/fpm_request.c \
12819:     fpm/fpm_shm.c \
12820:     fpm/fpm_scoreboard.c \
12821:     fpm/fpm_signals.c \
12822:     fpm/fpm_sockets.c \
12823:     fpm/fpm_status.c \
12824:     fpm/fpm_stdio.c \
12825:     fpm/fpm_unix.c \
12826:     fpm/fpm_worker_pool.c \
12827:     fpm/zlog.c \
12828: 		fpm/events/select.c \
12829: 		fpm/events/poll.c \
12830: 		fpm/events/epoll.c \
12831: 		fpm/events/kqueue.c \
12832: 		fpm/events/devpoll.c \
12833: 		fpm/events/port.c \
12834:   "
12835: 
12836: 
12837:   if test "program" = "program"; then
12838:     PHP_BINARIES="$PHP_BINARIES fpm"
12839:   elif test "$PHP_SAPI" != "none"; then
12840:     as_fn_error $? "
12841: +--------------------------------------------------------------------+
12842: |                        *** ATTENTION ***                           |
12843: |                                                                    |
12844: | You've configured multiple SAPIs to be build. You can build only   |
12845: | one SAPI module plus CGI, CLI and FPM binaries at the same time.   |
12846: +--------------------------------------------------------------------+
12847: " "$LINENO" 5
12848:   else
12849:     PHP_SAPI=fpm
12850:   fi
12851: 
12852: 
12853: 
12854:     BUILD_DIR="$BUILD_DIR sapi/fpm"
12855: 
12856: 
12857: 
12858:   PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS fpm"
12859: 
12860: 
12861: 
12862:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
12863:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
12864:   php_c_post=
12865:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
12866:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
12867:   php_cxx_post=
12868:   php_lo=lo
12869: 
12870:   case $with_pic in
12871:     yes) pic_setting='-prefer-pic';;
12872:     no)  pic_setting='-prefer-non-pic';;
12873:   esac
12874: 
12875:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
12876:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
12877:   shared_c_post=
12878:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
12879:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
12880:   shared_cxx_post=
12881:   shared_lo=lo
12882: 
12883:     install_binaries="install-binaries"
12884:     install_binary_targets="$install_binary_targets install-fpm"
12885: 
12886:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_FPM_OBJS"
12887: 
12888: 
12889:   case sapi/fpm in
12890:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
12891:   /*) ac_srcdir=`echo "sapi/fpm"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
12892:   *) ac_srcdir="$abs_srcdir/sapi/fpm/"; ac_bdir="sapi/fpm/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
12893:   esac
12894: 
12895: 
12896: 
12897:   b_c_pre=$php_c_pre
12898:   b_cxx_pre=$php_cxx_pre
12899:   b_c_meta=$php_c_meta
12900:   b_cxx_meta=$php_cxx_meta
12901:   b_c_post=$php_c_post
12902:   b_cxx_post=$php_cxx_post
12903:   b_lo=$php_lo
12904: 
12905: 
12906:   old_IFS=$IFS
12907:   for ac_src in $PHP_FPM_FILES $PHP_FPM_TRACE_FILES $PHP_FPM_SD_FILES; do
12908: 
12909:       IFS=.
12910:       set $ac_src
12911:       ac_obj=$1
12912:       IFS=$old_IFS
12913: 
12914:       PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo"
12915: 
12916:       case $ac_src in
12917:         *.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" ;;
12918:         *.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" ;;
12919:         *.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" ;;
12920:         *.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" ;;
12921:       esac
12922: 
12923:     cat >>Makefile.objects<<EOF
12924: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
12925: 	$ac_comp
12926: EOF
12927:   done
12928: 
12929: 
12930: 
12931: 
12932:   case $host_alias in
12933:       *aix*)
12934:         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)"
12935:         ;;
12936:       *darwin*)
12937:         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)"
12938:       ;;
12939:       *)
12940:         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)"
12941:       ;;
12942:   esac
12943: 
12944: 
12945:   PHP_VAR_SUBST="$PHP_VAR_SUBST SAPI_FPM_PATH"
12946: 
12947: 
12948:   PHP_VAR_SUBST="$PHP_VAR_SUBST BUILD_FPM"
12949: 
12950: 
12951: else
12952:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12953: $as_echo "no" >&6; }
12954: fi
12955: 
12956: 
12957: 
12958: php_with_isapi=no
12959: 
12960: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Zeus ISAPI support" >&5
12961: $as_echo_n "checking for Zeus ISAPI support... " >&6; }
12962: 
12963: # Check whether --with-isapi was given.
12964: if test "${with_isapi+set}" = set; then :
12965:   withval=$with_isapi; PHP_ISAPI=$withval
12966: else
12967: 
12968:   PHP_ISAPI=no
12969: 
12970: 
12971: fi
12972: 
12973: 
12974: ext_output=$PHP_ISAPI
12975: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
12976: $as_echo "$ext_output" >&6; }
12977: 
12978: 
12979: 
12980: 
12981: if test "$PHP_ISAPI" != "no"; then
12982:   if test "$PHP_ISAPI" = "yes"; then
12983:     ZEUSPATH=/usr/local/zeus # the default
12984:   else
12985:     ZEUSPATH=$PHP_ISAPI
12986:   fi
12987:   test -f "$ZEUSPATH/web/include/httpext.h" || as_fn_error $? "Unable to find httpext.h in $ZEUSPATH/web/include" "$LINENO" 5
12988: 
12989:   enable_maintainer_zts=yes
12990:   if test "$pthreads_working" != "yes"; then
12991:     as_fn_error $? "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5
12992:   fi
12993: 
12994: 
12995: $as_echo "#define WITH_ZEUS 1" >>confdefs.h
12996: 
12997: 
12998:   if test "$ZEUSPATH/web/include" != "/usr/include"; then
12999: 
13000:   if test -z "$ZEUSPATH/web/include" || echo "$ZEUSPATH/web/include" | grep '^/' >/dev/null ; then
13001:     ai_p=$ZEUSPATH/web/include
13002:   else
13003: 
13004:     ep_dir=`echo $ZEUSPATH/web/include|$SED 's%/*[^/][^/]*/*$%%'`
13005: 
13006:     ep_realdir=`(cd "$ep_dir" && pwd)`
13007:     ai_p="$ep_realdir"/`basename "$ZEUSPATH/web/include"`
13008:   fi
13009: 
13010: 
13011: 
13012:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
13013: 
13014:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
13015:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
13016:     eval "INCLUDEPATH$unique=set"
13017: 
13018:       if test ""; then
13019:         INCLUDES="-I$ai_p $INCLUDES"
13020:       else
13021:         INCLUDES="$INCLUDES -I$ai_p"
13022:       fi
13023: 
13024:   fi
13025: 
13026:   fi
13027: 
13028: 
13029:   if test "shared" = "program"; then
13030:     PHP_BINARIES="$PHP_BINARIES isapi"
13031:   elif test "$PHP_SAPI" != "none"; then
13032:     as_fn_error $? "
13033: +--------------------------------------------------------------------+
13034: |                        *** ATTENTION ***                           |
13035: |                                                                    |
13036: | You've configured multiple SAPIs to be build. You can build only   |
13037: | one SAPI module plus CGI, CLI and FPM binaries at the same time.   |
13038: +--------------------------------------------------------------------+
13039: " "$LINENO" 5
13040:   else
13041:     PHP_SAPI=isapi
13042:   fi
13043: 
13044: 
13045: 
13046:     BUILD_DIR="$BUILD_DIR sapi/isapi"
13047: 
13048: 
13049: 
13050:   PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS isapi"
13051: 
13052: 
13053:     case "shared" in
13054:     static)
13055: 
13056:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
13057:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
13058:   php_c_post=
13059:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
13060:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
13061:   php_cxx_post=
13062:   php_lo=lo
13063: 
13064:   case $with_pic in
13065:     yes) pic_setting='-prefer-pic';;
13066:     no)  pic_setting='-prefer-non-pic';;
13067:   esac
13068: 
13069:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
13070:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
13071:   shared_c_post=
13072:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
13073:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
13074:   shared_cxx_post=
13075:   shared_lo=lo
13076: 
13077:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
13078:   php_sapi_module=static
13079: ;;
13080:     shared)
13081: 
13082:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
13083:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
13084:   php_c_post=
13085:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
13086:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
13087:   php_cxx_post=
13088:   php_lo=lo
13089: 
13090:   case $with_pic in
13091:     yes) pic_setting='-prefer-pic';;
13092:     no)  pic_setting='-prefer-non-pic';;
13093:   esac
13094: 
13095:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
13096:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
13097:   shared_c_post=
13098:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
13099:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
13100:   shared_cxx_post=
13101:   shared_lo=lo
13102: 
13103:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
13104:   php_sapi_module=shared
13105: 
13106:   php_c_pre=$shared_c_pre
13107:   php_c_meta=$shared_c_meta
13108:   php_c_post=$shared_c_post
13109:   php_cxx_pre=$shared_cxx_pre
13110:   php_cxx_meta=$shared_cxx_meta
13111:   php_cxx_post=$shared_cxx_post
13112:   php_lo=$shared_lo
13113: ;;
13114:     bundle)
13115: 
13116:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
13117:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
13118:   php_c_post=
13119:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
13120:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
13121:   php_cxx_post=
13122:   php_lo=lo
13123: 
13124:   case $with_pic in
13125:     yes) pic_setting='-prefer-pic';;
13126:     no)  pic_setting='-prefer-non-pic';;
13127:   esac
13128: 
13129:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
13130:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
13131:   shared_c_post=
13132:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
13133:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
13134:   shared_cxx_post=
13135:   shared_lo=lo
13136: 
13137:   OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
13138:   php_sapi_module=static
13139: ;;
13140:     esac
13141:     install_sapi="install-sapi"
13142: 
13143: 
13144:   case sapi/isapi in
13145:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
13146:   /*) ac_srcdir=`echo "sapi/isapi"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
13147:   *) ac_srcdir="$abs_srcdir/sapi/isapi/"; ac_bdir="sapi/isapi/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
13148:   esac
13149: 
13150: 
13151: 
13152:   b_c_pre=$php_c_pre
13153:   b_cxx_pre=$php_cxx_pre
13154:   b_c_meta=$php_c_meta
13155:   b_cxx_meta=$php_cxx_meta
13156:   b_c_post=$php_c_post
13157:   b_cxx_post=$php_cxx_post
13158:   b_lo=$php_lo
13159: 
13160: 
13161:   old_IFS=$IFS
13162:   for ac_src in php5isapi.c; do
13163: 
13164:       IFS=.
13165:       set $ac_src
13166:       ac_obj=$1
13167:       IFS=$old_IFS
13168: 
13169:       PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
13170: 
13171:       case $ac_src in
13172:         *.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" ;;
13173:         *.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" ;;
13174:         *.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" ;;
13175:         *.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" ;;
13176:       esac
13177: 
13178:     cat >>Makefile.objects<<EOF
13179: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
13180: 	$ac_comp
13181: EOF
13182:   done
13183: 
13184: 
13185: 
13186: 
13187:   INSTALL_IT="\$(SHELL) \$(srcdir)/install-sh -m 0755 $SAPI_SHARED \$(INSTALL_ROOT)$ZEUSPATH/web/bin/"
13188: fi
13189: 
13190: 
13191: 
13192: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LiteSpeed support" >&5
13193: $as_echo_n "checking for LiteSpeed support... " >&6; }
13194: 
13195: 
13196: php_with_litespeed=no
13197: 
13198: 
13199: 
13200: # Check whether --with-litespeed was given.
13201: if test "${with_litespeed+set}" = set; then :
13202:   withval=$with_litespeed; PHP_LITESPEED=$withval
13203: else
13204: 
13205:   PHP_LITESPEED=no
13206:   test "$PHP_ENABLE_ALL" && PHP_LITESPEED=$PHP_ENABLE_ALL
13207: 
13208: fi
13209: 
13210: 
13211: 
13212: ext_output="yes, shared"
13213: ext_shared=yes
13214: case $PHP_LITESPEED in
13215: shared,*)
13216:   PHP_LITESPEED=`echo "$PHP_LITESPEED"|$SED 's/^shared,//'`
13217:   ;;
13218: shared)
13219:   PHP_LITESPEED=yes
13220:   ;;
13221: no)
13222:   ext_output=no
13223:   ext_shared=no
13224:   ;;
13225: *)
13226:   ext_output=yes
13227:   ext_shared=no
13228:   ;;
13229: esac
13230: 
13231: 
13232: 
13233: 
13234: 
13235: 
13236: 
13237: 
13238: if test "$PHP_LITESPEED" != "no"; then
13239: 
13240:   src=$abs_srcdir/sapi/litespeed/Makefile.frag
13241:   ac_srcdir=$abs_srcdir/sapi/litespeed
13242:   ac_builddir=sapi/litespeed
13243:   test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src  >> Makefile.fragments
13244: 
13245:   SAPI_LITESPEED_PATH=sapi/litespeed/php
13246: 
13247:   if test "program" = "program"; then
13248:     PHP_BINARIES="$PHP_BINARIES litespeed"
13249:   elif test "$PHP_SAPI" != "none"; then
13250:     as_fn_error $? "
13251: +--------------------------------------------------------------------+
13252: |                        *** ATTENTION ***                           |
13253: |                                                                    |
13254: | You've configured multiple SAPIs to be build. You can build only   |
13255: | one SAPI module plus CGI, CLI and FPM binaries at the same time.   |
13256: +--------------------------------------------------------------------+
13257: " "$LINENO" 5
13258:   else
13259:     PHP_SAPI=litespeed
13260:   fi
13261: 
13262: 
13263: 
13264:     BUILD_DIR="$BUILD_DIR sapi/litespeed"
13265: 
13266: 
13267: 
13268:   PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS litespeed"
13269: 
13270: 
13271: 
13272:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
13273:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
13274:   php_c_post=
13275:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
13276:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
13277:   php_cxx_post=
13278:   php_lo=lo
13279: 
13280:   case $with_pic in
13281:     yes) pic_setting='-prefer-pic';;
13282:     no)  pic_setting='-prefer-non-pic';;
13283:   esac
13284: 
13285:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
13286:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
13287:   shared_c_post=
13288:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
13289:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
13290:   shared_cxx_post=
13291:   shared_lo=lo
13292: 
13293:     install_binaries="install-binaries"
13294:     install_binary_targets="$install_binary_targets install-litespeed"
13295: 
13296:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_LITESPEED_OBJS"
13297: 
13298: 
13299:   case sapi/litespeed in
13300:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
13301:   /*) ac_srcdir=`echo "sapi/litespeed"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
13302:   *) ac_srcdir="$abs_srcdir/sapi/litespeed/"; ac_bdir="sapi/litespeed/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
13303:   esac
13304: 
13305: 
13306: 
13307:   b_c_pre=$php_c_pre
13308:   b_cxx_pre=$php_cxx_pre
13309:   b_c_meta=$php_c_meta
13310:   b_cxx_meta=$php_cxx_meta
13311:   b_c_post=$php_c_post
13312:   b_cxx_post=$php_cxx_post
13313:   b_lo=$php_lo
13314: 
13315: 
13316:   old_IFS=$IFS
13317:   for ac_src in lsapi_main.c lsapilib.c; do
13318: 
13319:       IFS=.
13320:       set $ac_src
13321:       ac_obj=$1
13322:       IFS=$old_IFS
13323: 
13324:       PHP_LITESPEED_OBJS="$PHP_LITESPEED_OBJS $ac_bdir$ac_obj.lo"
13325: 
13326:       case $ac_src in
13327:         *.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" ;;
13328:         *.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" ;;
13329:         *.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" ;;
13330:         *.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" ;;
13331:       esac
13332: 
13333:     cat >>Makefile.objects<<EOF
13334: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
13335: 	$ac_comp
13336: EOF
13337:   done
13338: 
13339: 
13340: 
13341:   case $host_alias in
13342:   *darwin*)
13343:     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)"
13344:     ;;
13345:   *cygwin*)
13346:     SAPI_LITESPEED_PATH=sapi/litespeed/php.exe
13347:     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)"
13348:     ;;
13349:   *)
13350:     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)"
13351:     ;;
13352:   esac
13353: 
13354: 
13355:   PHP_VAR_SUBST="$PHP_VAR_SUBST SAPI_LITESPEED_PATH"
13356: 
13357: 
13358:   PHP_VAR_SUBST="$PHP_VAR_SUBST BUILD_LITESPEED"
13359: 
13360: fi
13361: 
13362: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_LITESPEED" >&5
13363: $as_echo "$PHP_LITESPEED" >&6; }
13364: 
13365: 
13366: 
13367: php_with_milter=no
13368: 
13369: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Milter support" >&5
13370: $as_echo_n "checking for Milter support... " >&6; }
13371: 
13372: # Check whether --with-milter was given.
13373: if test "${with_milter+set}" = set; then :
13374:   withval=$with_milter; PHP_MILTER=$withval
13375: else
13376: 
13377:   PHP_MILTER=no
13378: 
13379: 
13380: fi
13381: 
13382: 
13383: ext_output=$PHP_MILTER
13384: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
13385: $as_echo "$ext_output" >&6; }
13386: 
13387: 
13388: 
13389: 
13390: if test "$PHP_MILTER" != "no"; then
13391:   if test "$PHP_MILTER" = "yes"; then
13392:     if test -f /usr/lib/libmilter.a ; then
13393:       MILTERPATH=/usr/lib
13394:     else
13395:       if test -f /usr/lib/libmilter/libmilter.a ; then
13396:         MILTERPATH=/usr/lib/libmilter
13397:       else
13398:         as_fn_error $? "Unable to find libmilter.a" "$LINENO" 5
13399:       fi
13400:     fi
13401:   else
13402:     MILTERPATH=$PHP_MILTER
13403:   fi
13404: 
13405:   SAPI_MILTER_PATH=sapi/milter/php-milter
13406: 
13407:   enable_maintainer_zts=yes
13408:   if test "$pthreads_working" != "yes"; then
13409:     as_fn_error $? "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5
13410:   fi
13411: 
13412: 
13413:   src=$abs_srcdir/sapi/milter/Makefile.frag
13414:   ac_srcdir=$ext_srcdir
13415:   ac_builddir=$ext_builddir
13416:   test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src  >> Makefile.fragments
13417: 
13418: 
13419:   if test "program" = "program"; then
13420:     PHP_BINARIES="$PHP_BINARIES milter"
13421:   elif test "$PHP_SAPI" != "none"; then
13422:     as_fn_error $? "
13423: +--------------------------------------------------------------------+
13424: |                        *** ATTENTION ***                           |
13425: |                                                                    |
13426: | You've configured multiple SAPIs to be build. You can build only   |
13427: | one SAPI module plus CGI, CLI and FPM binaries at the same time.   |
13428: +--------------------------------------------------------------------+
13429: " "$LINENO" 5
13430:   else
13431:     PHP_SAPI=milter
13432:   fi
13433: 
13434: 
13435: 
13436:     BUILD_DIR="$BUILD_DIR sapi/milter"
13437: 
13438: 
13439: 
13440:   PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS milter"
13441: 
13442: 
13443: 
13444:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
13445:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
13446:   php_c_post=
13447:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
13448:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
13449:   php_cxx_post=
13450:   php_lo=lo
13451: 
13452:   case $with_pic in
13453:     yes) pic_setting='-prefer-pic';;
13454:     no)  pic_setting='-prefer-non-pic';;
13455:   esac
13456: 
13457:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
13458:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
13459:   shared_c_post=
13460:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
13461:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
13462:   shared_cxx_post=
13463:   shared_lo=lo
13464: 
13465:     install_binaries="install-binaries"
13466:     install_binary_targets="$install_binary_targets install-milter"
13467: 
13468:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_MILTER_OBJS"
13469: 
13470: 
13471:   case sapi/milter in
13472:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
13473:   /*) ac_srcdir=`echo "sapi/milter"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
13474:   *) ac_srcdir="$abs_srcdir/sapi/milter/"; ac_bdir="sapi/milter/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
13475:   esac
13476: 
13477: 
13478: 
13479:   b_c_pre=$php_c_pre
13480:   b_cxx_pre=$php_cxx_pre
13481:   b_c_meta=$php_c_meta
13482:   b_cxx_meta=$php_cxx_meta
13483:   b_c_post=$php_c_post
13484:   b_cxx_post=$php_cxx_post
13485:   b_lo=$php_lo
13486: 
13487: 
13488:   old_IFS=$IFS
13489:   for ac_src in php_milter.c getopt.c; do
13490: 
13491:       IFS=.
13492:       set $ac_src
13493:       ac_obj=$1
13494:       IFS=$old_IFS
13495: 
13496:       PHP_MILTER_OBJS="$PHP_MILTER_OBJS $ac_bdir$ac_obj.lo"
13497: 
13498:       case $ac_src in
13499:         *.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" ;;
13500:         *.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" ;;
13501:         *.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" ;;
13502:         *.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" ;;
13503:       esac
13504: 
13505:     cat >>Makefile.objects<<EOF
13506: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
13507: 	$ac_comp
13508: EOF
13509:   done
13510: 
13511: 
13512: 
13513: 
13514: 
13515:   if test -n "$MILTERPATH"; then
13516: 
13517:   if test "$MILTERPATH" != "/usr/$PHP_LIBDIR" && test "$MILTERPATH" != "/usr/lib"; then
13518: 
13519:   if test -z "$MILTERPATH" || echo "$MILTERPATH" | grep '^/' >/dev/null ; then
13520:     ai_p=$MILTERPATH
13521:   else
13522: 
13523:     ep_dir=`echo $MILTERPATH|$SED 's%/*[^/][^/]*/*$%%'`
13524: 
13525:     ep_realdir=`(cd "$ep_dir" && pwd)`
13526:     ai_p="$ep_realdir"/`basename "$MILTERPATH"`
13527:   fi
13528: 
13529: 
13530: 
13531: 
13532: 
13533:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
13534: 
13535:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
13536:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
13537:     eval "LIBPATH$unique=set"
13538: 
13539:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
13540:     LDFLAGS="$LDFLAGS -L$ai_p"
13541:     PHP_RPATHS="$PHP_RPATHS $ai_p"
13542: 
13543:   fi
13544: 
13545: 
13546: 
13547:   fi
13548: 
13549:   fi
13550: 
13551: 
13552:   case milter in
13553:   c|c_r|pthread*) ;;
13554:   *)
13555:       LIBS="-lmilter $LIBS"
13556:    ;;
13557:   esac
13558: 
13559: 
13560: 
13561: 
13562:   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)"
13563: 
13564:   PHP_VAR_SUBST="$PHP_VAR_SUBST SAPI_MILTER_PATH"
13565: 
13566: 
13567:   PHP_VAR_SUBST="$PHP_VAR_SUBST BUILD_MILTER"
13568: 
13569: fi
13570: 
13571: 
13572: 
13573: php_with_nsapi=no
13574: 
13575: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSAPI support" >&5
13576: $as_echo_n "checking for NSAPI support... " >&6; }
13577: 
13578: # Check whether --with-nsapi was given.
13579: if test "${with_nsapi+set}" = set; then :
13580:   withval=$with_nsapi; PHP_NSAPI=$withval
13581: else
13582: 
13583:   PHP_NSAPI=no
13584: 
13585: 
13586: fi
13587: 
13588: 
13589: ext_output=$PHP_NSAPI
13590: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
13591: $as_echo "$ext_output" >&6; }
13592: 
13593: 
13594: 
13595: 
13596: if test "$PHP_NSAPI" != "no"; then
13597:   if test ! -d $PHP_NSAPI/bin ; then
13598:     as_fn_error $? "Please specify the path to the root of your Netscape/iPlanet/Sun Webserver using --with-nsapi=DIR" "$LINENO" 5
13599:   fi
13600:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSAPI include files" >&5
13601: $as_echo_n "checking for NSAPI include files... " >&6; }
13602:   if test -d $PHP_NSAPI/include ; then
13603:     NSAPI_INC_DIR="$PHP_NSAPI/include"
13604:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Netscape 3.x / Sun 7.x style" >&5
13605: $as_echo "Netscape 3.x / Sun 7.x style" >&6; }
13606:     for ac_header in $NSAPI_INC_DIR/nsapi.h
13607: do :
13608:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13609: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13610: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13611:   cat >>confdefs.h <<_ACEOF
13612: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13613: _ACEOF
13614: 
13615: fi
13616: 
13617: done
13618: 
13619:     NSAPI_INCLUDE="-I$NSAPI_INC_DIR"
13620:   fi
13621:   if test -d $PHP_NSAPI/plugins/include ; then
13622:     NSAPI_INC_DIR="$PHP_NSAPI/plugins/include"
13623:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: iPlanet 4.x / Sun 6.x style" >&5
13624: $as_echo "iPlanet 4.x / Sun 6.x style" >&6; }
13625:     for ac_header in $NSAPI_INC_DIR/nsapi.h
13626: do :
13627:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13628: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13629: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13630:   cat >>confdefs.h <<_ACEOF
13631: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13632: _ACEOF
13633: 
13634: fi
13635: 
13636: done
13637: 
13638:     NSAPI_INCLUDE="$NSAPI_INCLUDE -I$NSAPI_INC_DIR"
13639:   fi
13640:   if test -z "$NSAPI_INCLUDE"; then
13641:     as_fn_error $? "Please check you have nsapi.h in either $PHP_NSAPI/include or $PHP_NSAPI/plugins/include" "$LINENO" 5
13642:   fi
13643: 
13644: 
13645:   for ac_i in $NSAPI_INCLUDE; do
13646:     case $ac_i in
13647:     -I*)
13648:       ac_ii=`echo $ac_i|cut -c 3-`
13649: 
13650:   if test "$ac_ii" != "/usr/include"; then
13651: 
13652:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
13653:     ai_p=$ac_ii
13654:   else
13655: 
13656:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
13657: 
13658:     ep_realdir=`(cd "$ep_dir" && pwd)`
13659:     ai_p="$ep_realdir"/`basename "$ac_ii"`
13660:   fi
13661: 
13662: 
13663: 
13664:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
13665: 
13666:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
13667:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
13668:     eval "INCLUDEPATH$unique=set"
13669: 
13670:       if test ""; then
13671:         INCLUDES="-I$ai_p $INCLUDES"
13672:       else
13673:         INCLUDES="$INCLUDES -I$ai_p"
13674:       fi
13675: 
13676:   fi
13677: 
13678:   fi
13679: 
13680:     ;;
13681:     esac
13682:   done
13683: 
13684: 
13685:   enable_maintainer_zts=yes
13686:   if test "$pthreads_working" != "yes"; then
13687:     as_fn_error $? "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5
13688:   fi
13689: 
13690: 
13691: $as_echo "#define HAVE_NSAPI 1" >>confdefs.h
13692: 
13693: 
13694:   if test "shared" = "program"; then
13695:     PHP_BINARIES="$PHP_BINARIES nsapi"
13696:   elif test "$PHP_SAPI" != "none"; then
13697:     as_fn_error $? "
13698: +--------------------------------------------------------------------+
13699: |                        *** ATTENTION ***                           |
13700: |                                                                    |
13701: | You've configured multiple SAPIs to be build. You can build only   |
13702: | one SAPI module plus CGI, CLI and FPM binaries at the same time.   |
13703: +--------------------------------------------------------------------+
13704: " "$LINENO" 5
13705:   else
13706:     PHP_SAPI=nsapi
13707:   fi
13708: 
13709: 
13710: 
13711:     BUILD_DIR="$BUILD_DIR sapi/nsapi"
13712: 
13713: 
13714: 
13715:   PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS nsapi"
13716: 
13717: 
13718:     case "shared" in
13719:     static)
13720: 
13721:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
13722:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
13723:   php_c_post=
13724:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
13725:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
13726:   php_cxx_post=
13727:   php_lo=lo
13728: 
13729:   case $with_pic in
13730:     yes) pic_setting='-prefer-pic';;
13731:     no)  pic_setting='-prefer-non-pic';;
13732:   esac
13733: 
13734:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
13735:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
13736:   shared_c_post=
13737:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
13738:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
13739:   shared_cxx_post=
13740:   shared_lo=lo
13741: 
13742:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
13743:   php_sapi_module=static
13744: ;;
13745:     shared)
13746: 
13747:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
13748:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
13749:   php_c_post=
13750:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
13751:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
13752:   php_cxx_post=
13753:   php_lo=lo
13754: 
13755:   case $with_pic in
13756:     yes) pic_setting='-prefer-pic';;
13757:     no)  pic_setting='-prefer-non-pic';;
13758:   esac
13759: 
13760:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
13761:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
13762:   shared_c_post=
13763:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
13764:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
13765:   shared_cxx_post=
13766:   shared_lo=lo
13767: 
13768:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
13769:   php_sapi_module=shared
13770: 
13771:   php_c_pre=$shared_c_pre
13772:   php_c_meta=$shared_c_meta
13773:   php_c_post=$shared_c_post
13774:   php_cxx_pre=$shared_cxx_pre
13775:   php_cxx_meta=$shared_cxx_meta
13776:   php_cxx_post=$shared_cxx_post
13777:   php_lo=$shared_lo
13778: ;;
13779:     bundle)
13780: 
13781:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
13782:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
13783:   php_c_post=
13784:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
13785:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
13786:   php_cxx_post=
13787:   php_lo=lo
13788: 
13789:   case $with_pic in
13790:     yes) pic_setting='-prefer-pic';;
13791:     no)  pic_setting='-prefer-non-pic';;
13792:   esac
13793: 
13794:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
13795:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
13796:   shared_c_post=
13797:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
13798:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
13799:   shared_cxx_post=
13800:   shared_lo=lo
13801: 
13802:   OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
13803:   php_sapi_module=static
13804: ;;
13805:     esac
13806:     install_sapi="install-sapi"
13807: 
13808: 
13809:   case sapi/nsapi in
13810:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
13811:   /*) ac_srcdir=`echo "sapi/nsapi"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
13812:   *) ac_srcdir="$abs_srcdir/sapi/nsapi/"; ac_bdir="sapi/nsapi/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
13813:   esac
13814: 
13815: 
13816: 
13817:   b_c_pre=$php_c_pre
13818:   b_cxx_pre=$php_cxx_pre
13819:   b_c_meta=$php_c_meta
13820:   b_cxx_meta=$php_cxx_meta
13821:   b_c_post=$php_c_post
13822:   b_cxx_post=$php_cxx_post
13823:   b_lo=$php_lo
13824: 
13825: 
13826:   old_IFS=$IFS
13827:   for ac_src in nsapi.c; do
13828: 
13829:       IFS=.
13830:       set $ac_src
13831:       ac_obj=$1
13832:       IFS=$old_IFS
13833: 
13834:       PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
13835: 
13836:       case $ac_src in
13837:         *.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" ;;
13838:         *.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" ;;
13839:         *.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" ;;
13840:         *.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" ;;
13841:       esac
13842: 
13843:     cat >>Makefile.objects<<EOF
13844: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
13845: 	$ac_comp
13846: EOF
13847:   done
13848: 
13849: 
13850: 
13851: 
13852:   INSTALL_IT="\$(INSTALL) -m 0755 $SAPI_SHARED \$(INSTALL_ROOT)$PHP_NSAPI/bin/"
13853: fi
13854: 
13855: 
13856: 
13857: 
13858: 
13859: php_with_phttpd=no
13860: 
13861: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PHTTPD support" >&5
13862: $as_echo_n "checking for PHTTPD support... " >&6; }
13863: 
13864: # Check whether --with-phttpd was given.
13865: if test "${with_phttpd+set}" = set; then :
13866:   withval=$with_phttpd; PHP_PHTTPD=$withval
13867: else
13868: 
13869:   PHP_PHTTPD=no
13870: 
13871: 
13872: fi
13873: 
13874: 
13875: ext_output=$PHP_PHTTPD
13876: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
13877: $as_echo "$ext_output" >&6; }
13878: 
13879: 
13880: 
13881: 
13882: if test "$PHP_PHTTPD" != "no"; then
13883:   if test ! -d $PHP_PHTTPD ; then
13884:     as_fn_error $? "You did not specify a directory" "$LINENO" 5
13885:   fi
13886: 
13887:   enable_maintainer_zts=yes
13888:   if test "$pthreads_working" != "yes"; then
13889:     as_fn_error $? "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5
13890:   fi
13891: 
13892: 
13893:   if test "$PHP_PHTTPD/include" != "/usr/include"; then
13894: 
13895:   if test -z "$PHP_PHTTPD/include" || echo "$PHP_PHTTPD/include" | grep '^/' >/dev/null ; then
13896:     ai_p=$PHP_PHTTPD/include
13897:   else
13898: 
13899:     ep_dir=`echo $PHP_PHTTPD/include|$SED 's%/*[^/][^/]*/*$%%'`
13900: 
13901:     ep_realdir=`(cd "$ep_dir" && pwd)`
13902:     ai_p="$ep_realdir"/`basename "$PHP_PHTTPD/include"`
13903:   fi
13904: 
13905: 
13906: 
13907:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
13908: 
13909:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
13910:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
13911:     eval "INCLUDEPATH$unique=set"
13912: 
13913:       if test ""; then
13914:         INCLUDES="-I$ai_p $INCLUDES"
13915:       else
13916:         INCLUDES="$INCLUDES -I$ai_p"
13917:       fi
13918: 
13919:   fi
13920: 
13921:   fi
13922: 
13923: 
13924: $as_echo "#define HAVE_PHTTPD 1" >>confdefs.h
13925: 
13926: 
13927:   if test "shared" = "program"; then
13928:     PHP_BINARIES="$PHP_BINARIES phttpd"
13929:   elif test "$PHP_SAPI" != "none"; then
13930:     as_fn_error $? "
13931: +--------------------------------------------------------------------+
13932: |                        *** ATTENTION ***                           |
13933: |                                                                    |
13934: | You've configured multiple SAPIs to be build. You can build only   |
13935: | one SAPI module plus CGI, CLI and FPM binaries at the same time.   |
13936: +--------------------------------------------------------------------+
13937: " "$LINENO" 5
13938:   else
13939:     PHP_SAPI=phttpd
13940:   fi
13941: 
13942: 
13943: 
13944:     BUILD_DIR="$BUILD_DIR sapi/phttpd"
13945: 
13946: 
13947: 
13948:   PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS phttpd"
13949: 
13950: 
13951:     case "shared" in
13952:     static)
13953: 
13954:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
13955:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
13956:   php_c_post=
13957:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
13958:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
13959:   php_cxx_post=
13960:   php_lo=lo
13961: 
13962:   case $with_pic in
13963:     yes) pic_setting='-prefer-pic';;
13964:     no)  pic_setting='-prefer-non-pic';;
13965:   esac
13966: 
13967:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
13968:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
13969:   shared_c_post=
13970:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
13971:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
13972:   shared_cxx_post=
13973:   shared_lo=lo
13974: 
13975:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
13976:   php_sapi_module=static
13977: ;;
13978:     shared)
13979: 
13980:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
13981:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
13982:   php_c_post=
13983:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
13984:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
13985:   php_cxx_post=
13986:   php_lo=lo
13987: 
13988:   case $with_pic in
13989:     yes) pic_setting='-prefer-pic';;
13990:     no)  pic_setting='-prefer-non-pic';;
13991:   esac
13992: 
13993:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
13994:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
13995:   shared_c_post=
13996:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
13997:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
13998:   shared_cxx_post=
13999:   shared_lo=lo
14000: 
14001:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
14002:   php_sapi_module=shared
14003: 
14004:   php_c_pre=$shared_c_pre
14005:   php_c_meta=$shared_c_meta
14006:   php_c_post=$shared_c_post
14007:   php_cxx_pre=$shared_cxx_pre
14008:   php_cxx_meta=$shared_cxx_meta
14009:   php_cxx_post=$shared_cxx_post
14010:   php_lo=$shared_lo
14011: ;;
14012:     bundle)
14013: 
14014:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
14015:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
14016:   php_c_post=
14017:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
14018:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
14019:   php_cxx_post=
14020:   php_lo=lo
14021: 
14022:   case $with_pic in
14023:     yes) pic_setting='-prefer-pic';;
14024:     no)  pic_setting='-prefer-non-pic';;
14025:   esac
14026: 
14027:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
14028:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
14029:   shared_c_post=
14030:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
14031:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
14032:   shared_cxx_post=
14033:   shared_lo=lo
14034: 
14035:   OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
14036:   php_sapi_module=static
14037: ;;
14038:     esac
14039:     install_sapi="install-sapi"
14040: 
14041: 
14042:   case sapi/phttpd in
14043:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
14044:   /*) ac_srcdir=`echo "sapi/phttpd"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
14045:   *) ac_srcdir="$abs_srcdir/sapi/phttpd/"; ac_bdir="sapi/phttpd/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
14046:   esac
14047: 
14048: 
14049: 
14050:   b_c_pre=$php_c_pre
14051:   b_cxx_pre=$php_cxx_pre
14052:   b_c_meta=$php_c_meta
14053:   b_cxx_meta=$php_cxx_meta
14054:   b_c_post=$php_c_post
14055:   b_cxx_post=$php_cxx_post
14056:   b_lo=$php_lo
14057: 
14058: 
14059:   old_IFS=$IFS
14060:   for ac_src in phttpd.c; do
14061: 
14062:       IFS=.
14063:       set $ac_src
14064:       ac_obj=$1
14065:       IFS=$old_IFS
14066: 
14067:       PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
14068: 
14069:       case $ac_src in
14070:         *.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" ;;
14071:         *.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" ;;
14072:         *.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" ;;
14073:         *.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" ;;
14074:       esac
14075: 
14076:     cat >>Makefile.objects<<EOF
14077: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
14078: 	$ac_comp
14079: EOF
14080:   done
14081: 
14082: 
14083: 
14084: 
14085:   INSTALL_IT="\$(INSTALL) -m 0755 $SAPI_SHARED \$(INSTALL_ROOT)$PHP_PHTTPD/modules/"
14086: fi
14087: 
14088: 
14089: 
14090: 
14091: php_with_pi3web=no
14092: 
14093: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Pi3Web support" >&5
14094: $as_echo_n "checking for Pi3Web support... " >&6; }
14095: 
14096: # Check whether --with-pi3web was given.
14097: if test "${with_pi3web+set}" = set; then :
14098:   withval=$with_pi3web; PHP_PI3WEB=$withval
14099: else
14100: 
14101:   PHP_PI3WEB=no
14102: 
14103: 
14104: fi
14105: 
14106: 
14107: ext_output=$PHP_PI3WEB
14108: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
14109: $as_echo "$ext_output" >&6; }
14110: 
14111: 
14112: 
14113: 
14114: if test "$PHP_PI3WEB" != "no"; then
14115:   if test "$PHP_PI3WEB" = "yes"; then
14116:     PI3PATH=../.. # the default
14117:   else
14118:     PI3PATH=$PHP_PI3WEB
14119:   fi
14120:   test -f "$PI3PATH/PiAPI/PiAPI.h" || as_fn_error $? "Unable to find PiAPI.h in $PI3PATH/PiAPI" "$LINENO" 5
14121: 
14122:   enable_maintainer_zts=yes
14123:   if test "$pthreads_working" != "yes"; then
14124:     as_fn_error $? "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5
14125:   fi
14126: 
14127: 
14128: $as_echo "#define WITH_PI3WEB 1" >>confdefs.h
14129: 
14130: 
14131:   if test "$PI3PATH/PiAPI" != "/usr/include"; then
14132: 
14133:   if test -z "$PI3PATH/PiAPI" || echo "$PI3PATH/PiAPI" | grep '^/' >/dev/null ; then
14134:     ai_p=$PI3PATH/PiAPI
14135:   else
14136: 
14137:     ep_dir=`echo $PI3PATH/PiAPI|$SED 's%/*[^/][^/]*/*$%%'`
14138: 
14139:     ep_realdir=`(cd "$ep_dir" && pwd)`
14140:     ai_p="$ep_realdir"/`basename "$PI3PATH/PiAPI"`
14141:   fi
14142: 
14143: 
14144: 
14145:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
14146: 
14147:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
14148:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
14149:     eval "INCLUDEPATH$unique=set"
14150: 
14151:       if test ""; then
14152:         INCLUDES="-I$ai_p $INCLUDES"
14153:       else
14154:         INCLUDES="$INCLUDES -I$ai_p"
14155:       fi
14156: 
14157:   fi
14158: 
14159:   fi
14160: 
14161: 
14162:   if test "$PI3PATH/Pi2API" != "/usr/include"; then
14163: 
14164:   if test -z "$PI3PATH/Pi2API" || echo "$PI3PATH/Pi2API" | grep '^/' >/dev/null ; then
14165:     ai_p=$PI3PATH/Pi2API
14166:   else
14167: 
14168:     ep_dir=`echo $PI3PATH/Pi2API|$SED 's%/*[^/][^/]*/*$%%'`
14169: 
14170:     ep_realdir=`(cd "$ep_dir" && pwd)`
14171:     ai_p="$ep_realdir"/`basename "$PI3PATH/Pi2API"`
14172:   fi
14173: 
14174: 
14175: 
14176:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
14177: 
14178:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
14179:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
14180:     eval "INCLUDEPATH$unique=set"
14181: 
14182:       if test ""; then
14183:         INCLUDES="-I$ai_p $INCLUDES"
14184:       else
14185:         INCLUDES="$INCLUDES -I$ai_p"
14186:       fi
14187: 
14188:   fi
14189: 
14190:   fi
14191: 
14192: 
14193:   if test "$PI3PATH/Pi3API" != "/usr/include"; then
14194: 
14195:   if test -z "$PI3PATH/Pi3API" || echo "$PI3PATH/Pi3API" | grep '^/' >/dev/null ; then
14196:     ai_p=$PI3PATH/Pi3API
14197:   else
14198: 
14199:     ep_dir=`echo $PI3PATH/Pi3API|$SED 's%/*[^/][^/]*/*$%%'`
14200: 
14201:     ep_realdir=`(cd "$ep_dir" && pwd)`
14202:     ai_p="$ep_realdir"/`basename "$PI3PATH/Pi3API"`
14203:   fi
14204: 
14205: 
14206: 
14207:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
14208: 
14209:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
14210:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
14211:     eval "INCLUDEPATH$unique=set"
14212: 
14213:       if test ""; then
14214:         INCLUDES="-I$ai_p $INCLUDES"
14215:       else
14216:         INCLUDES="$INCLUDES -I$ai_p"
14217:       fi
14218: 
14219:   fi
14220: 
14221:   fi
14222: 
14223: 
14224:   if test "$PI3PATH/PHP5" != "/usr/include"; then
14225: 
14226:   if test -z "$PI3PATH/PHP5" || echo "$PI3PATH/PHP5" | grep '^/' >/dev/null ; then
14227:     ai_p=$PI3PATH/PHP5
14228:   else
14229: 
14230:     ep_dir=`echo $PI3PATH/PHP5|$SED 's%/*[^/][^/]*/*$%%'`
14231: 
14232:     ep_realdir=`(cd "$ep_dir" && pwd)`
14233:     ai_p="$ep_realdir"/`basename "$PI3PATH/PHP5"`
14234:   fi
14235: 
14236: 
14237: 
14238:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
14239: 
14240:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
14241:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
14242:     eval "INCLUDEPATH$unique=set"
14243: 
14244:       if test ""; then
14245:         INCLUDES="-I$ai_p $INCLUDES"
14246:       else
14247:         INCLUDES="$INCLUDES -I$ai_p"
14248:       fi
14249: 
14250:   fi
14251: 
14252:   fi
14253: 
14254: 
14255:   if test "shared" = "program"; then
14256:     PHP_BINARIES="$PHP_BINARIES pi3web"
14257:   elif test "$PHP_SAPI" != "none"; then
14258:     as_fn_error $? "
14259: +--------------------------------------------------------------------+
14260: |                        *** ATTENTION ***                           |
14261: |                                                                    |
14262: | You've configured multiple SAPIs to be build. You can build only   |
14263: | one SAPI module plus CGI, CLI and FPM binaries at the same time.   |
14264: +--------------------------------------------------------------------+
14265: " "$LINENO" 5
14266:   else
14267:     PHP_SAPI=pi3web
14268:   fi
14269: 
14270: 
14271: 
14272:     BUILD_DIR="$BUILD_DIR sapi/pi3web"
14273: 
14274: 
14275: 
14276:   PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS pi3web"
14277: 
14278: 
14279:     case "shared" in
14280:     static)
14281: 
14282:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
14283:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
14284:   php_c_post=
14285:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
14286:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
14287:   php_cxx_post=
14288:   php_lo=lo
14289: 
14290:   case $with_pic in
14291:     yes) pic_setting='-prefer-pic';;
14292:     no)  pic_setting='-prefer-non-pic';;
14293:   esac
14294: 
14295:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
14296:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
14297:   shared_c_post=
14298:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
14299:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
14300:   shared_cxx_post=
14301:   shared_lo=lo
14302: 
14303:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
14304:   php_sapi_module=static
14305: ;;
14306:     shared)
14307: 
14308:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
14309:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
14310:   php_c_post=
14311:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
14312:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
14313:   php_cxx_post=
14314:   php_lo=lo
14315: 
14316:   case $with_pic in
14317:     yes) pic_setting='-prefer-pic';;
14318:     no)  pic_setting='-prefer-non-pic';;
14319:   esac
14320: 
14321:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
14322:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
14323:   shared_c_post=
14324:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
14325:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
14326:   shared_cxx_post=
14327:   shared_lo=lo
14328: 
14329:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
14330:   php_sapi_module=shared
14331: 
14332:   php_c_pre=$shared_c_pre
14333:   php_c_meta=$shared_c_meta
14334:   php_c_post=$shared_c_post
14335:   php_cxx_pre=$shared_cxx_pre
14336:   php_cxx_meta=$shared_cxx_meta
14337:   php_cxx_post=$shared_cxx_post
14338:   php_lo=$shared_lo
14339: ;;
14340:     bundle)
14341: 
14342:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
14343:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
14344:   php_c_post=
14345:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
14346:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
14347:   php_cxx_post=
14348:   php_lo=lo
14349: 
14350:   case $with_pic in
14351:     yes) pic_setting='-prefer-pic';;
14352:     no)  pic_setting='-prefer-non-pic';;
14353:   esac
14354: 
14355:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
14356:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
14357:   shared_c_post=
14358:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
14359:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
14360:   shared_cxx_post=
14361:   shared_lo=lo
14362: 
14363:   OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
14364:   php_sapi_module=static
14365: ;;
14366:     esac
14367:     install_sapi="install-sapi"
14368: 
14369: 
14370:   case sapi/pi3web in
14371:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
14372:   /*) ac_srcdir=`echo "sapi/pi3web"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
14373:   *) ac_srcdir="$abs_srcdir/sapi/pi3web/"; ac_bdir="sapi/pi3web/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
14374:   esac
14375: 
14376: 
14377: 
14378:   b_c_pre=$php_c_pre
14379:   b_cxx_pre=$php_cxx_pre
14380:   b_c_meta=$php_c_meta
14381:   b_cxx_meta=$php_cxx_meta
14382:   b_c_post=$php_c_post
14383:   b_cxx_post=$php_cxx_post
14384:   b_lo=$php_lo
14385: 
14386: 
14387:   old_IFS=$IFS
14388:   for ac_src in pi3web_sapi.c; do
14389: 
14390:       IFS=.
14391:       set $ac_src
14392:       ac_obj=$1
14393:       IFS=$old_IFS
14394: 
14395:       PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
14396: 
14397:       case $ac_src in
14398:         *.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" ;;
14399:         *.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" ;;
14400:         *.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" ;;
14401:         *.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" ;;
14402:       esac
14403: 
14404:     cat >>Makefile.objects<<EOF
14405: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
14406: 	$ac_comp
14407: EOF
14408:   done
14409: 
14410: 
14411: 
14412: 
14413:   INSTALL_IT="\$(SHELL) \$(srcdir)/install-sh -m 0755 $SAPI_SHARED \$(INSTALL_ROOT)$PI3PATH/bin/"
14414: fi
14415: 
14416: 
14417: 
14418: 
14419: php_with_roxen=no
14420: 
14421: 
14422: 
14423: # Check whether --with-roxen was given.
14424: if test "${with_roxen+set}" = set; then :
14425:   withval=$with_roxen; PHP_ROXEN=$withval
14426: else
14427: 
14428:   PHP_ROXEN=no
14429: 
14430: 
14431: fi
14432: 
14433: 
14434: ext_output=$PHP_ROXEN
14435: 
14436: 
14437: 
14438: 
14439: 
14440: 
14441: php_enable_roxen_zts=no
14442: 
14443: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Roxen module is build using ZTS" >&5
14444: $as_echo_n "checking whether Roxen module is build using ZTS... " >&6; }
14445: # Check whether --enable-roxen-zts was given.
14446: if test "${enable_roxen_zts+set}" = set; then :
14447:   enableval=$enable_roxen_zts; PHP_ROXEN_ZTS=$enableval
14448: else
14449: 
14450:   PHP_ROXEN_ZTS=no
14451: 
14452: 
14453: fi
14454: 
14455: 
14456: ext_output=$PHP_ROXEN_ZTS
14457: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
14458: $as_echo "$ext_output" >&6; }
14459: 
14460: 
14461: 
14462: 
14463: RESULT=
14464: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Roxen/Pike support" >&5
14465: $as_echo_n "checking for Roxen/Pike support... " >&6; }
14466: if test "$PHP_ROXEN" != "no"; then
14467:   if test ! -d $PHP_ROXEN ; then
14468:     as_fn_error $? "You did not specify a directory" "$LINENO" 5
14469:   fi
14470:   if test -f $PHP_ROXEN/bin/roxen; then
14471:     PIKE=$PHP_ROXEN/bin/roxen
14472:   elif test -f $PHP_ROXEN/bin/pike; then
14473:     PIKE=$PHP_ROXEN/bin/pike
14474:   else
14475:     as_fn_error $? "Could not find a pike in $PHP_ROXEN/bin/" "$LINENO" 5
14476:   fi
14477: 
14478:   if $PIKE -e 'float v; catch(v = __VERSION__ + (__BUILD__/10000.0)); if(v < 0.7079) exit(1); exit(0);'; then
14479:     PIKE_MODULE_DIR=`$PIKE --show-paths 2>&1| grep '^Module' | sed -e 's/.*: //'`
14480:     PIKE_INCLUDE_DIR=`echo $PIKE_MODULE_DIR | sed -e 's,lib/pike/modules,include/pike,' -e 's,lib/modules,include/pike,'`
14481:     if test -z "$PIKE_INCLUDE_DIR" || test -z "$PIKE_MODULE_DIR"; then
14482:       as_fn_error $? "Failed to figure out Pike module and include directories" "$LINENO" 5
14483:     fi
14484:   else
14485:     as_fn_error $? "Roxen/PHP requires Pike 0.7.79 or newer" "$LINENO" 5
14486:   fi
14487: 
14488: 
14489:   if test "$PIKE_INCLUDE_DIR" != "/usr/include"; then
14490: 
14491:   if test -z "$PIKE_INCLUDE_DIR" || echo "$PIKE_INCLUDE_DIR" | grep '^/' >/dev/null ; then
14492:     ai_p=$PIKE_INCLUDE_DIR
14493:   else
14494: 
14495:     ep_dir=`echo $PIKE_INCLUDE_DIR|$SED 's%/*[^/][^/]*/*$%%'`
14496: 
14497:     ep_realdir=`(cd "$ep_dir" && pwd)`
14498:     ai_p="$ep_realdir"/`basename "$PIKE_INCLUDE_DIR"`
14499:   fi
14500: 
14501: 
14502: 
14503:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
14504: 
14505:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
14506:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
14507:     eval "INCLUDEPATH$unique=set"
14508: 
14509:       if test ""; then
14510:         INCLUDES="-I$ai_p $INCLUDES"
14511:       else
14512:         INCLUDES="$INCLUDES -I$ai_p"
14513:       fi
14514: 
14515:   fi
14516: 
14517:   fi
14518: 
14519: 
14520: $as_echo "#define HAVE_ROXEN 1" >>confdefs.h
14521: 
14522: 
14523:   if test "shared" = "program"; then
14524:     PHP_BINARIES="$PHP_BINARIES roxen"
14525:   elif test "$PHP_SAPI" != "none"; then
14526:     as_fn_error $? "
14527: +--------------------------------------------------------------------+
14528: |                        *** ATTENTION ***                           |
14529: |                                                                    |
14530: | You've configured multiple SAPIs to be build. You can build only   |
14531: | one SAPI module plus CGI, CLI and FPM binaries at the same time.   |
14532: +--------------------------------------------------------------------+
14533: " "$LINENO" 5
14534:   else
14535:     PHP_SAPI=roxen
14536:   fi
14537: 
14538: 
14539: 
14540:     BUILD_DIR="$BUILD_DIR sapi/roxen"
14541: 
14542: 
14543: 
14544:   PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS roxen"
14545: 
14546: 
14547:     case "shared" in
14548:     static)
14549: 
14550:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
14551:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
14552:   php_c_post=
14553:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
14554:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
14555:   php_cxx_post=
14556:   php_lo=lo
14557: 
14558:   case $with_pic in
14559:     yes) pic_setting='-prefer-pic';;
14560:     no)  pic_setting='-prefer-non-pic';;
14561:   esac
14562: 
14563:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
14564:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
14565:   shared_c_post=
14566:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
14567:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
14568:   shared_cxx_post=
14569:   shared_lo=lo
14570: 
14571:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
14572:   php_sapi_module=static
14573: ;;
14574:     shared)
14575: 
14576:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
14577:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
14578:   php_c_post=
14579:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
14580:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
14581:   php_cxx_post=
14582:   php_lo=lo
14583: 
14584:   case $with_pic in
14585:     yes) pic_setting='-prefer-pic';;
14586:     no)  pic_setting='-prefer-non-pic';;
14587:   esac
14588: 
14589:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
14590:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
14591:   shared_c_post=
14592:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
14593:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
14594:   shared_cxx_post=
14595:   shared_lo=lo
14596: 
14597:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
14598:   php_sapi_module=shared
14599: 
14600:   php_c_pre=$shared_c_pre
14601:   php_c_meta=$shared_c_meta
14602:   php_c_post=$shared_c_post
14603:   php_cxx_pre=$shared_cxx_pre
14604:   php_cxx_meta=$shared_cxx_meta
14605:   php_cxx_post=$shared_cxx_post
14606:   php_lo=$shared_lo
14607: ;;
14608:     bundle)
14609: 
14610:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
14611:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
14612:   php_c_post=
14613:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
14614:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
14615:   php_cxx_post=
14616:   php_lo=lo
14617: 
14618:   case $with_pic in
14619:     yes) pic_setting='-prefer-pic';;
14620:     no)  pic_setting='-prefer-non-pic';;
14621:   esac
14622: 
14623:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
14624:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
14625:   shared_c_post=
14626:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
14627:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
14628:   shared_cxx_post=
14629:   shared_lo=lo
14630: 
14631:   OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
14632:   php_sapi_module=static
14633: ;;
14634:     esac
14635:     install_sapi="install-sapi"
14636: 
14637: 
14638:   case sapi/roxen in
14639:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
14640:   /*) ac_srcdir=`echo "sapi/roxen"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
14641:   *) ac_srcdir="$abs_srcdir/sapi/roxen/"; ac_bdir="sapi/roxen/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
14642:   esac
14643: 
14644: 
14645: 
14646:   b_c_pre=$php_c_pre
14647:   b_cxx_pre=$php_cxx_pre
14648:   b_c_meta=$php_c_meta
14649:   b_cxx_meta=$php_cxx_meta
14650:   b_c_post=$php_c_post
14651:   b_cxx_post=$php_cxx_post
14652:   b_lo=$php_lo
14653: 
14654: 
14655:   old_IFS=$IFS
14656:   for ac_src in roxen.c; do
14657: 
14658:       IFS=.
14659:       set $ac_src
14660:       ac_obj=$1
14661:       IFS=$old_IFS
14662: 
14663:       PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
14664: 
14665:       case $ac_src in
14666:         *.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" ;;
14667:         *.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" ;;
14668:         *.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" ;;
14669:         *.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" ;;
14670:       esac
14671: 
14672:     cat >>Makefile.objects<<EOF
14673: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
14674: 	$ac_comp
14675: EOF
14676:   done
14677: 
14678: 
14679: 
14680: 
14681:   INSTALL_IT="\$(INSTALL) -m 0755 $SAPI_SHARED $PIKE_MODULE_DIR/PHP5.so"
14682:   RESULT="yes
14683:   Pike binary used:      $PIKE
14684:   Pike include dir:      $PIKE_INCLUDE_DIR
14685:   Pike module directory: $PIKE_MODULE_DIR"
14686:   PIKE_INCLUDE_DIR=" -I$PIKE_INCLUDE_DIR "
14687: 
14688:   if test "$PHP_ROXEN_ZTS" != "no"; then
14689: 
14690:   enable_maintainer_zts=yes
14691:   if test "$pthreads_working" != "yes"; then
14692:     as_fn_error $? "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5
14693:   fi
14694: 
14695: 
14696: $as_echo "#define ROXEN_USE_ZTS 1" >>confdefs.h
14697: 
14698:   fi
14699: fi
14700: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RESULT" >&5
14701: $as_echo "$RESULT" >&6; }
14702: 
14703: 
14704: 
14705: 
14706: php_with_thttpd=no
14707: 
14708: 
14709: 
14710: # Check whether --with-thttpd was given.
14711: if test "${with_thttpd+set}" = set; then :
14712:   withval=$with_thttpd; PHP_THTTPD=$withval
14713: else
14714: 
14715:   PHP_THTTPD=no
14716: 
14717: 
14718: fi
14719: 
14720: 
14721: ext_output=$PHP_THTTPD
14722: 
14723: 
14724: 
14725: 
14726: 
14727: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thttpd" >&5
14728: $as_echo_n "checking for thttpd... " >&6; }
14729: 
14730: if test "$PHP_THTTPD" != "no"; then
14731:   if test ! -d $PHP_THTTPD; then
14732:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: thttpd directory does not exist ($PHP_THTTPD)" >&5
14733: $as_echo "thttpd directory does not exist ($PHP_THTTPD)" >&6; }
14734:   fi
14735: 
14736: 
14737:   if test -z "$PHP_THTTPD" || echo "$PHP_THTTPD" | grep '^/' >/dev/null ; then
14738:     THTTPD=$PHP_THTTPD
14739:   else
14740: 
14741:     ep_dir=`echo $PHP_THTTPD|$SED 's%/*[^/][^/]*/*$%%'`
14742: 
14743:     ep_realdir=`(cd "$ep_dir" && pwd)`
14744:     THTTPD="$ep_realdir"/`basename "$PHP_THTTPD"`
14745:   fi
14746: 
14747: 
14748:   if grep thttpd.2.21b $PHP_THTTPD/version.h >/dev/null; then
14749:     patch="test -f $THTTPD/php_patched || \
14750:     (cd $THTTPD && patch -p1 < $abs_srcdir/sapi/thttpd/thttpd_patch && touch php_patched)"
14751: 
14752:   elif grep Premium $PHP_THTTPD/version.h >/dev/null; then
14753:     patch=
14754:   else
14755:     as_fn_error $? "This version only supports thttpd-2.21b and Premium thttpd" "$LINENO" 5
14756:   fi
14757: 
14758:   if test -n "$GCC"; then
14759: 
14760:   gcc_arg_name=ac_cv_gcc_arg_rdynamic
14761:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -rdynamic" >&5
14762: $as_echo_n "checking whether $CC supports -rdynamic... " >&6; }
14763: if ${ac_cv_gcc_arg_rdynamic+:} false; then :
14764:   $as_echo_n "(cached) " >&6
14765: else
14766: 
14767:   echo 'void somefunc() { };' > conftest.c
14768:   cmd='$CC -rdynamic -c conftest.c'
14769:   if eval $cmd 2>&1 | $EGREP -e -rdynamic >/dev/null ; then
14770:     ac_result=no
14771:   else
14772:     ac_result=yes
14773:   fi
14774:   eval $gcc_arg_name=$ac_result
14775:   rm -f conftest.*
14776: 
14777: fi
14778: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_arg_rdynamic" >&5
14779: $as_echo "$ac_cv_gcc_arg_rdynamic" >&6; }
14780:   if eval test "\$$gcc_arg_name" = "yes"; then
14781:     gcc_rdynamic=yes
14782:   else
14783:     :
14784: 
14785:   fi
14786: 
14787:     if test "$gcc_rdynamic" = "yes"; then
14788:       PHP_LDFLAGS="$PHP_LDFLAGS -rdynamic"
14789:     fi
14790:   fi
14791: 
14792:   INSTALL_IT="\
14793:     echo 'PHP_LIBS = -L. -lphp5 \$(PHP_LIBS) \$(EXTRA_LIBS)' > $THTTPD/php_makefile; \
14794:     echo 'PHP_LDFLAGS = \$(NATIVE_RPATHS) \$(PHP_LDFLAGS)' >> $THTTPD/php_makefile; \
14795:     echo 'PHP_CFLAGS = \$(COMMON_FLAGS) \$(CFLAGS_CLEAN) \$(CPPFLAGS) \$(EXTRA_CFLAGS)' >> $THTTPD/php_makefile; \
14796:     rm -f $THTTPD/php_thttpd.c $THTTPD/php_thttpd.h $THTTPD/libphp5.a; \
14797:     \$(LN_S) $abs_srcdir/sapi/thttpd/thttpd.c $THTTPD/php_thttpd.c; \
14798:     \$(LN_S) $abs_srcdir/sapi/thttpd/php_thttpd.h $abs_builddir/$SAPI_STATIC $THTTPD/;\
14799:     $patch"
14800:   PHP_THTTPD="yes, using $THTTPD"
14801: 
14802:   if test "$THTTPD" != "/usr/include"; then
14803: 
14804:   if test -z "$THTTPD" || echo "$THTTPD" | grep '^/' >/dev/null ; then
14805:     ai_p=$THTTPD
14806:   else
14807: 
14808:     ep_dir=`echo $THTTPD|$SED 's%/*[^/][^/]*/*$%%'`
14809: 
14810:     ep_realdir=`(cd "$ep_dir" && pwd)`
14811:     ai_p="$ep_realdir"/`basename "$THTTPD"`
14812:   fi
14813: 
14814: 
14815: 
14816:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
14817: 
14818:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
14819:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
14820:     eval "INCLUDEPATH$unique=set"
14821: 
14822:       if test ""; then
14823:         INCLUDES="-I$ai_p $INCLUDES"
14824:       else
14825:         INCLUDES="$INCLUDES -I$ai_p"
14826:       fi
14827: 
14828:   fi
14829: 
14830:   fi
14831: 
14832: 
14833:   if test "static" = "program"; then
14834:     PHP_BINARIES="$PHP_BINARIES thttpd"
14835:   elif test "$PHP_SAPI" != "none"; then
14836:     as_fn_error $? "
14837: +--------------------------------------------------------------------+
14838: |                        *** ATTENTION ***                           |
14839: |                                                                    |
14840: | You've configured multiple SAPIs to be build. You can build only   |
14841: | one SAPI module plus CGI, CLI and FPM binaries at the same time.   |
14842: +--------------------------------------------------------------------+
14843: " "$LINENO" 5
14844:   else
14845:     PHP_SAPI=thttpd
14846:   fi
14847: 
14848: 
14849: 
14850:     BUILD_DIR="$BUILD_DIR sapi/thttpd"
14851: 
14852: 
14853: 
14854:   PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS thttpd"
14855: 
14856: 
14857:     case "static" in
14858:     static)
14859: 
14860:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
14861:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
14862:   php_c_post=
14863:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
14864:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
14865:   php_cxx_post=
14866:   php_lo=lo
14867: 
14868:   case $with_pic in
14869:     yes) pic_setting='-prefer-pic';;
14870:     no)  pic_setting='-prefer-non-pic';;
14871:   esac
14872: 
14873:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
14874:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
14875:   shared_c_post=
14876:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
14877:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
14878:   shared_cxx_post=
14879:   shared_lo=lo
14880: 
14881:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
14882:   php_sapi_module=static
14883: ;;
14884:     shared)
14885: 
14886:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
14887:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
14888:   php_c_post=
14889:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
14890:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
14891:   php_cxx_post=
14892:   php_lo=lo
14893: 
14894:   case $with_pic in
14895:     yes) pic_setting='-prefer-pic';;
14896:     no)  pic_setting='-prefer-non-pic';;
14897:   esac
14898: 
14899:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
14900:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
14901:   shared_c_post=
14902:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
14903:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
14904:   shared_cxx_post=
14905:   shared_lo=lo
14906: 
14907:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
14908:   php_sapi_module=shared
14909: 
14910:   php_c_pre=$shared_c_pre
14911:   php_c_meta=$shared_c_meta
14912:   php_c_post=$shared_c_post
14913:   php_cxx_pre=$shared_cxx_pre
14914:   php_cxx_meta=$shared_cxx_meta
14915:   php_cxx_post=$shared_cxx_post
14916:   php_lo=$shared_lo
14917: ;;
14918:     bundle)
14919: 
14920:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
14921:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
14922:   php_c_post=
14923:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
14924:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
14925:   php_cxx_post=
14926:   php_lo=lo
14927: 
14928:   case $with_pic in
14929:     yes) pic_setting='-prefer-pic';;
14930:     no)  pic_setting='-prefer-non-pic';;
14931:   esac
14932: 
14933:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
14934:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
14935:   shared_c_post=
14936:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
14937:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
14938:   shared_cxx_post=
14939:   shared_lo=lo
14940: 
14941:   OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
14942:   php_sapi_module=static
14943: ;;
14944:     esac
14945:     install_sapi="install-sapi"
14946: 
14947: 
14948: 
14949: fi
14950: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_THTTPD" >&5
14951: $as_echo "$PHP_THTTPD" >&6; }
14952: 
14953: 
14954: 
14955: php_with_tux=no
14956: 
14957: 
14958: 
14959: # Check whether --with-tux was given.
14960: if test "${with_tux+set}" = set; then :
14961:   withval=$with_tux; PHP_TUX=$withval
14962: else
14963: 
14964:   PHP_TUX=no
14965: 
14966: 
14967: fi
14968: 
14969: 
14970: ext_output=$PHP_TUX
14971: 
14972: 
14973: 
14974: 
14975: 
14976: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TUX" >&5
14977: $as_echo_n "checking for TUX... " >&6; }
14978: if test "$PHP_TUX" != "no"; then
14979:   INSTALL_IT="\$(INSTALL) -m 0755 $SAPI_SHARED $PHP_TUX/php5.tux.so"
14980:   for ac_header in tuxmodule.h
14981: do :
14982:   ac_fn_c_check_header_mongrel "$LINENO" "tuxmodule.h" "ac_cv_header_tuxmodule_h" "$ac_includes_default"
14983: if test "x$ac_cv_header_tuxmodule_h" = xyes; then :
14984:   cat >>confdefs.h <<_ACEOF
14985: #define HAVE_TUXMODULE_H 1
14986: _ACEOF
14987:  :
14988: else
14989:   as_fn_error $? "Cannot find tuxmodule.h" "$LINENO" 5
14990: fi
14991: 
14992: done
14993: 
14994: 
14995:   if test "shared" = "program"; then
14996:     PHP_BINARIES="$PHP_BINARIES tux"
14997:   elif test "$PHP_SAPI" != "none"; then
14998:     as_fn_error $? "
14999: +--------------------------------------------------------------------+
15000: |                        *** ATTENTION ***                           |
15001: |                                                                    |
15002: | You've configured multiple SAPIs to be build. You can build only   |
15003: | one SAPI module plus CGI, CLI and FPM binaries at the same time.   |
15004: +--------------------------------------------------------------------+
15005: " "$LINENO" 5
15006:   else
15007:     PHP_SAPI=tux
15008:   fi
15009: 
15010: 
15011: 
15012:     BUILD_DIR="$BUILD_DIR sapi/tux"
15013: 
15014: 
15015: 
15016:   PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS tux"
15017: 
15018: 
15019:     case "shared" in
15020:     static)
15021: 
15022:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15023:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
15024:   php_c_post=
15025:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15026:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
15027:   php_cxx_post=
15028:   php_lo=lo
15029: 
15030:   case $with_pic in
15031:     yes) pic_setting='-prefer-pic';;
15032:     no)  pic_setting='-prefer-non-pic';;
15033:   esac
15034: 
15035:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15036:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
15037:   shared_c_post=
15038:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15039:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
15040:   shared_cxx_post=
15041:   shared_lo=lo
15042: 
15043:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
15044:   php_sapi_module=static
15045: ;;
15046:     shared)
15047: 
15048:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15049:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
15050:   php_c_post=
15051:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15052:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
15053:   php_cxx_post=
15054:   php_lo=lo
15055: 
15056:   case $with_pic in
15057:     yes) pic_setting='-prefer-pic';;
15058:     no)  pic_setting='-prefer-non-pic';;
15059:   esac
15060: 
15061:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15062:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
15063:   shared_c_post=
15064:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15065:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
15066:   shared_cxx_post=
15067:   shared_lo=lo
15068: 
15069:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
15070:   php_sapi_module=shared
15071: 
15072:   php_c_pre=$shared_c_pre
15073:   php_c_meta=$shared_c_meta
15074:   php_c_post=$shared_c_post
15075:   php_cxx_pre=$shared_cxx_pre
15076:   php_cxx_meta=$shared_cxx_meta
15077:   php_cxx_post=$shared_cxx_post
15078:   php_lo=$shared_lo
15079: ;;
15080:     bundle)
15081: 
15082:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15083:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
15084:   php_c_post=
15085:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15086:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
15087:   php_cxx_post=
15088:   php_lo=lo
15089: 
15090:   case $with_pic in
15091:     yes) pic_setting='-prefer-pic';;
15092:     no)  pic_setting='-prefer-non-pic';;
15093:   esac
15094: 
15095:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15096:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
15097:   shared_c_post=
15098:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15099:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
15100:   shared_cxx_post=
15101:   shared_lo=lo
15102: 
15103:   OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
15104:   php_sapi_module=static
15105: ;;
15106:     esac
15107:     install_sapi="install-sapi"
15108: 
15109: 
15110:   case sapi/tux in
15111:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
15112:   /*) ac_srcdir=`echo "sapi/tux"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
15113:   *) ac_srcdir="$abs_srcdir/sapi/tux/"; ac_bdir="sapi/tux/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
15114:   esac
15115: 
15116: 
15117: 
15118:   b_c_pre=$php_c_pre
15119:   b_cxx_pre=$php_cxx_pre
15120:   b_c_meta=$php_c_meta
15121:   b_cxx_meta=$php_cxx_meta
15122:   b_c_post=$php_c_post
15123:   b_cxx_post=$php_cxx_post
15124:   b_lo=$php_lo
15125: 
15126: 
15127:   old_IFS=$IFS
15128:   for ac_src in php_tux.c; do
15129: 
15130:       IFS=.
15131:       set $ac_src
15132:       ac_obj=$1
15133:       IFS=$old_IFS
15134: 
15135:       PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
15136: 
15137:       case $ac_src in
15138:         *.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" ;;
15139:         *.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" ;;
15140:         *.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" ;;
15141:         *.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" ;;
15142:       esac
15143: 
15144:     cat >>Makefile.objects<<EOF
15145: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
15146: 	$ac_comp
15147: EOF
15148:   done
15149: 
15150: 
15151: 
15152: 
15153:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_TUX" >&5
15154: $as_echo "$PHP_TUX" >&6; }
15155: else
15156:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15157: $as_echo "no" >&6; }
15158: fi
15159: 
15160: 
15161: 
15162: php_with_webjames=no
15163: 
15164: 
15165: 
15166: # Check whether --with-webjames was given.
15167: if test "${with_webjames+set}" = set; then :
15168:   withval=$with_webjames; PHP_WEBJAMES=$withval
15169: else
15170: 
15171:   PHP_WEBJAMES=no
15172: 
15173: 
15174: fi
15175: 
15176: 
15177: ext_output=$PHP_WEBJAMES
15178: 
15179: 
15180: 
15181: 
15182: 
15183: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for webjames" >&5
15184: $as_echo_n "checking for webjames... " >&6; }
15185: 
15186: if test "$PHP_WEBJAMES" != "no"; then
15187: 
15188:   if test -z "$PHP_WEBJAMES" || echo "$PHP_WEBJAMES" | grep '^/' >/dev/null ; then
15189:     PHP_WEBJAMES=$PHP_WEBJAMES
15190:   else
15191: 
15192:     ep_dir=`echo $PHP_WEBJAMES|$SED 's%/*[^/][^/]*/*$%%'`
15193: 
15194:     ep_realdir=`(cd "$ep_dir" && pwd)`
15195:     PHP_WEBJAMES="$ep_realdir"/`basename "$PHP_WEBJAMES"`
15196:   fi
15197: 
15198:   INSTALL_IT="\
15199:     echo 'PHP_LIBS = -l$abs_srcdir/$SAPI_STATIC \$(PHP_LIBS) \$(EXTRA_LIBS)' > $PHP_WEBJAMES/build/php; \
15200:     echo 'PHP_LDFLAGS = \$(NATIVE_RPATHS) \$(PHP_LDFLAGS)' >> $PHP_WEBJAMES/build/php; \
15201:     echo 'PHP_CFLAGS = -DPHP \$(COMMON_FLAGS) \$(EXTRA_CFLAGS) -I$abs_srcdir/sapi/webjames' >> $PHP_WEBJAMES/build/php;"
15202: 
15203:   if test "$PHP_WEBJAMES" != "/usr/include"; then
15204: 
15205:   if test -z "$PHP_WEBJAMES" || echo "$PHP_WEBJAMES" | grep '^/' >/dev/null ; then
15206:     ai_p=$PHP_WEBJAMES
15207:   else
15208: 
15209:     ep_dir=`echo $PHP_WEBJAMES|$SED 's%/*[^/][^/]*/*$%%'`
15210: 
15211:     ep_realdir=`(cd "$ep_dir" && pwd)`
15212:     ai_p="$ep_realdir"/`basename "$PHP_WEBJAMES"`
15213:   fi
15214: 
15215: 
15216: 
15217:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
15218: 
15219:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
15220:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
15221:     eval "INCLUDEPATH$unique=set"
15222: 
15223:       if test ""; then
15224:         INCLUDES="-I$ai_p $INCLUDES"
15225:       else
15226:         INCLUDES="$INCLUDES -I$ai_p"
15227:       fi
15228: 
15229:   fi
15230: 
15231:   fi
15232: 
15233: 
15234:   if test "static" = "program"; then
15235:     PHP_BINARIES="$PHP_BINARIES webjames"
15236:   elif test "$PHP_SAPI" != "none"; then
15237:     as_fn_error $? "
15238: +--------------------------------------------------------------------+
15239: |                        *** ATTENTION ***                           |
15240: |                                                                    |
15241: | You've configured multiple SAPIs to be build. You can build only   |
15242: | one SAPI module plus CGI, CLI and FPM binaries at the same time.   |
15243: +--------------------------------------------------------------------+
15244: " "$LINENO" 5
15245:   else
15246:     PHP_SAPI=webjames
15247:   fi
15248: 
15249: 
15250: 
15251:     BUILD_DIR="$BUILD_DIR sapi/webjames"
15252: 
15253: 
15254: 
15255:   PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS webjames"
15256: 
15257: 
15258:     case "static" in
15259:     static)
15260: 
15261:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15262:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
15263:   php_c_post=
15264:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15265:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
15266:   php_cxx_post=
15267:   php_lo=lo
15268: 
15269:   case $with_pic in
15270:     yes) pic_setting='-prefer-pic';;
15271:     no)  pic_setting='-prefer-non-pic';;
15272:   esac
15273: 
15274:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15275:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
15276:   shared_c_post=
15277:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15278:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
15279:   shared_cxx_post=
15280:   shared_lo=lo
15281: 
15282:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
15283:   php_sapi_module=static
15284: ;;
15285:     shared)
15286: 
15287:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15288:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
15289:   php_c_post=
15290:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15291:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
15292:   php_cxx_post=
15293:   php_lo=lo
15294: 
15295:   case $with_pic in
15296:     yes) pic_setting='-prefer-pic';;
15297:     no)  pic_setting='-prefer-non-pic';;
15298:   esac
15299: 
15300:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15301:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
15302:   shared_c_post=
15303:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15304:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
15305:   shared_cxx_post=
15306:   shared_lo=lo
15307: 
15308:   OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
15309:   php_sapi_module=shared
15310: 
15311:   php_c_pre=$shared_c_pre
15312:   php_c_meta=$shared_c_meta
15313:   php_c_post=$shared_c_post
15314:   php_cxx_pre=$shared_cxx_pre
15315:   php_cxx_meta=$shared_cxx_meta
15316:   php_cxx_post=$shared_cxx_post
15317:   php_lo=$shared_lo
15318: ;;
15319:     bundle)
15320: 
15321:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15322:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
15323:   php_c_post=
15324:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15325:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
15326:   php_cxx_post=
15327:   php_lo=lo
15328: 
15329:   case $with_pic in
15330:     yes) pic_setting='-prefer-pic';;
15331:     no)  pic_setting='-prefer-non-pic';;
15332:   esac
15333: 
15334:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15335:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
15336:   shared_c_post=
15337:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15338:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
15339:   shared_cxx_post=
15340:   shared_lo=lo
15341: 
15342:   OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
15343:   php_sapi_module=static
15344: ;;
15345:     esac
15346:     install_sapi="install-sapi"
15347: 
15348: 
15349:   case sapi/webjames in
15350:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
15351:   /*) ac_srcdir=`echo "sapi/webjames"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
15352:   *) ac_srcdir="$abs_srcdir/sapi/webjames/"; ac_bdir="sapi/webjames/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
15353:   esac
15354: 
15355: 
15356: 
15357:   b_c_pre=$php_c_pre
15358:   b_cxx_pre=$php_cxx_pre
15359:   b_c_meta=$php_c_meta
15360:   b_cxx_meta=$php_cxx_meta
15361:   b_c_post=$php_c_post
15362:   b_cxx_post=$php_cxx_post
15363:   b_lo=$php_lo
15364: 
15365: 
15366:   old_IFS=$IFS
15367:   for ac_src in webjames.c; do
15368: 
15369:       IFS=.
15370:       set $ac_src
15371:       ac_obj=$1
15372:       IFS=$old_IFS
15373: 
15374:       PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
15375: 
15376:       case $ac_src in
15377:         *.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" ;;
15378:         *.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" ;;
15379:         *.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" ;;
15380:         *.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" ;;
15381:       esac
15382: 
15383:     cat >>Makefile.objects<<EOF
15384: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
15385: 	$ac_comp
15386: EOF
15387:   done
15388: 
15389: 
15390: 
15391: 
15392:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using $PHP_WEBJAMES" >&5
15393: $as_echo "yes, using $PHP_WEBJAMES" >&6; }
15394: else
15395:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15396: $as_echo "no" >&6; }
15397: fi
15398: 
15399: 
15400: 
15401: php_enable_cgi=yes
15402: 
15403: 
15404: # Check whether --enable-cgi was given.
15405: if test "${enable_cgi+set}" = set; then :
15406:   enableval=$enable_cgi; PHP_CGI=$enableval
15407: else
15408: 
15409:   PHP_CGI=yes
15410: 
15411: 
15412: fi
15413: 
15414: 
15415: ext_output=$PHP_CGI
15416: 
15417: 
15418: 
15419: 
15420: 
15421: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CGI build" >&5
15422: $as_echo_n "checking for CGI build... " >&6; }
15423: if test "$PHP_CGI" != "no"; then
15424:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15425: $as_echo "yes" >&6; }
15426:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t in sys/socket.h" >&5
15427: $as_echo_n "checking for socklen_t in sys/socket.h... " >&6; }
15428:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15429: /* end confdefs.h.  */
15430: #include <sys/socket.h>
15431: 
15432: _ACEOF
15433: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15434:   $EGREP "socklen_t" >/dev/null 2>&1; then :
15435:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15436: $as_echo "yes" >&6; }
15437: 
15438: $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
15439: 
15440: else
15441:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15442: $as_echo "no" >&6; }
15443: fi
15444: rm -f conftest*
15445: 
15446: 
15447:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sun_len in sys/un.h" >&5
15448: $as_echo_n "checking for sun_len in sys/un.h... " >&6; }
15449:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15450: /* end confdefs.h.  */
15451: #include <sys/un.h>
15452: 
15453: _ACEOF
15454: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15455:   $EGREP "sun_len" >/dev/null 2>&1; then :
15456:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15457: $as_echo "yes" >&6; }
15458: 
15459: $as_echo "#define HAVE_SOCKADDR_UN_SUN_LEN 1" >>confdefs.h
15460: 
15461: else
15462:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15463: $as_echo "no" >&6; }
15464: fi
15465: rm -f conftest*
15466: 
15467: 
15468:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cross-process locking is required by accept()" >&5
15469: $as_echo_n "checking whether cross-process locking is required by accept()... " >&6; }
15470:     case "`uname -sr`" in
15471:       IRIX\ 5.* | SunOS\ 5.* | UNIX_System_V\ 4.0)
15472:         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15473: $as_echo "yes" >&6; }
15474: 
15475: $as_echo "#define USE_LOCKING 1" >>confdefs.h
15476: 
15477:       ;;
15478:       *)
15479:         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15480: $as_echo "no" >&6; }
15481:       ;;
15482:     esac
15483: 
15484: 
15485:   src=$abs_srcdir/sapi/cgi/Makefile.frag
15486:   ac_srcdir=$ext_srcdir
15487:   ac_builddir=$ext_builddir
15488:   test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src  >> Makefile.fragments
15489: 
15490: 
15491:         case $host_alias in
15492:       *cygwin* )
15493:         SAPI_CGI_PATH=sapi/cgi/php-cgi.exe
15494:         ;;
15495:       * )
15496:         SAPI_CGI_PATH=sapi/cgi/php-cgi
15497:         ;;
15498:     esac
15499: 
15500: 
15501:   if test "program" = "program"; then
15502:     PHP_BINARIES="$PHP_BINARIES cgi"
15503:   elif test "$PHP_SAPI" != "none"; then
15504:     as_fn_error $? "
15505: +--------------------------------------------------------------------+
15506: |                        *** ATTENTION ***                           |
15507: |                                                                    |
15508: | You've configured multiple SAPIs to be build. You can build only   |
15509: | one SAPI module plus CGI, CLI and FPM binaries at the same time.   |
15510: +--------------------------------------------------------------------+
15511: " "$LINENO" 5
15512:   else
15513:     PHP_SAPI=cgi
15514:   fi
15515: 
15516: 
15517: 
15518:     BUILD_DIR="$BUILD_DIR sapi/cgi"
15519: 
15520: 
15521: 
15522:   PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS cgi"
15523: 
15524: 
15525: 
15526:   php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15527:   php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
15528:   php_c_post=
15529:   php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15530:   php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
15531:   php_cxx_post=
15532:   php_lo=lo
15533: 
15534:   case $with_pic in
15535:     yes) pic_setting='-prefer-pic';;
15536:     no)  pic_setting='-prefer-non-pic';;
15537:   esac
15538: 
15539:   shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15540:   shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
15541:   shared_c_post=
15542:   shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15543:   shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
15544:   shared_cxx_post=
15545:   shared_lo=lo
15546: 
15547:     install_binaries="install-binaries"
15548:     install_binary_targets="$install_binary_targets install-cgi"
15549: 
15550:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_CGI_OBJS"
15551: 
15552: 
15553:   case sapi/cgi in
15554:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
15555:   /*) ac_srcdir=`echo "sapi/cgi"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
15556:   *) ac_srcdir="$abs_srcdir/sapi/cgi/"; ac_bdir="sapi/cgi/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
15557:   esac
15558: 
15559: 
15560: 
15561:   b_c_pre=$php_c_pre
15562:   b_cxx_pre=$php_cxx_pre
15563:   b_c_meta=$php_c_meta
15564:   b_cxx_meta=$php_cxx_meta
15565:   b_c_post=$php_c_post
15566:   b_cxx_post=$php_cxx_post
15567:   b_lo=$php_lo
15568: 
15569: 
15570:   old_IFS=$IFS
15571:   for ac_src in cgi_main.c fastcgi.c; do
15572: 
15573:       IFS=.
15574:       set $ac_src
15575:       ac_obj=$1
15576:       IFS=$old_IFS
15577: 
15578:       PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo"
15579: 
15580:       case $ac_src in
15581:         *.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" ;;
15582:         *.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" ;;
15583:         *.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" ;;
15584:         *.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" ;;
15585:       esac
15586: 
15587:     cat >>Makefile.objects<<EOF
15588: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
15589: 	$ac_comp
15590: EOF
15591:   done
15592: 
15593: 
15594: 
15595: 
15596:     case $host_alias in
15597:       *aix*)
15598:         if test "$php_sapi_module" = "shared"; then
15599:           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)"
15600:         else
15601:           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)"
15602:         fi
15603:         ;;
15604:       *darwin*)
15605:         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)"
15606:       ;;
15607:       *)
15608:         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)"
15609:       ;;
15610:     esac
15611: 
15612: 
15613:   PHP_VAR_SUBST="$PHP_VAR_SUBST SAPI_CGI_PATH"
15614: 
15615: 
15616:   PHP_VAR_SUBST="$PHP_VAR_SUBST BUILD_CGI"
15617: 
15618: 
15619: 
15620:   PHP_OUTPUT_FILES="$PHP_OUTPUT_FILES sapi/cgi/php-cgi.1"
15621: 
15622: else
15623:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15624: $as_echo "yes" >&6; }
15625: fi
15626: 
15627: 
15628: 
15629: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chosen SAPI module" >&5
15630: $as_echo_n "checking for chosen SAPI module... " >&6; }
15631: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_SAPI" >&5
15632: $as_echo "$PHP_SAPI" >&6; }
15633: 
15634: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for executable SAPI binaries" >&5
15635: $as_echo_n "checking for executable SAPI binaries... " >&6; }
15636: if test "$PHP_BINARIES"; then
15637:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_BINARIES" >&5
15638: $as_echo "$PHP_BINARIES" >&6; }
15639: else
15640:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
15641: $as_echo "none" >&6; }
15642: fi
15643: 
15644: if test -z "$PHP_INSTALLED_SAPIS"; then
15645:   as_fn_error $? "Nothing to build." "$LINENO" 5
15646: fi
15647: 
15648: if test "$enable_maintainer_zts" = "yes"; then
15649: 
15650: if test -n "$ac_cv_pthreads_lib"; then
15651:   LIBS="$LIBS -l$ac_cv_pthreads_lib"
15652: fi
15653: 
15654: if test -n "$ac_cv_pthreads_cflags"; then
15655:   CFLAGS="$CFLAGS $ac_cv_pthreads_cflags"
15656: fi
15657: 
15658: 
15659:   if test -z "$host_alias" && test -n "$host"; then
15660:     host_alias=$host
15661:   fi
15662:   if test -z "$host_alias"; then
15663:     as_fn_error $? "host_alias is not set. Make sure to run config.guess" "$LINENO" 5
15664:   fi
15665:   case $host_alias in
15666:   *solaris*)
15667:     PTHREAD_FLAGS="-D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT";;
15668:   *freebsd*)
15669:     PTHREAD_FLAGS="-D_REENTRANT -D_THREAD_SAFE";;
15670:   *linux*)
15671:     PTHREAD_FLAGS=-D_REENTRANT;;
15672:   *aix*)
15673:     PTHREAD_FLAGS=-D_THREAD_SAFE;;
15674:   *irix*)
15675:     PTHREAD_FLAGS=-D_POSIX_THREAD_SAFE_FUNCTIONS;;
15676:   *hpux*)
15677:     PTHREAD_FLAGS=-D_REENTRANT;;
15678:   *sco*)
15679:     PTHREAD_FLAGS=-D_REENTRANT;;
15680:   esac
15681: 
15682:   if test -n "$PTHREAD_FLAGS"; then
15683:     CPPFLAGS="$CPPFLAGS $PTHREAD_FLAGS"
15684:   fi
15685: 
15686: fi
15687: 
15688: 
15689: 
15690:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
15691: $as_echo "" >&6; }
15692:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Running system checks${T_ME}" >&5
15693: $as_echo "${T_MD}Running system checks${T_ME}" >&6; }
15694: 
15695: 
15696: 
15697:   PHP_ALT_PATH=/usr/bin:/usr/sbin:/usr/etc:/etc:/usr/ucblib:/usr/lib
15698:   # Extract the first word of "sendmail", so it can be a program name with args.
15699: set dummy sendmail; ac_word=$2
15700: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15701: $as_echo_n "checking for $ac_word... " >&6; }
15702: if ${ac_cv_path_PROG_SENDMAIL+:} false; then :
15703:   $as_echo_n "(cached) " >&6
15704: else
15705:   case $PROG_SENDMAIL in
15706:   [\\/]* | ?:[\\/]*)
15707:   ac_cv_path_PROG_SENDMAIL="$PROG_SENDMAIL" # Let the user override the test with a path.
15708:   ;;
15709:   *)
15710:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15711: as_dummy="$PATH:$PHP_ALT_PATH"
15712: for as_dir in $as_dummy
15713: do
15714:   IFS=$as_save_IFS
15715:   test -z "$as_dir" && as_dir=.
15716:     for ac_exec_ext in '' $ac_executable_extensions; do
15717:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15718:     ac_cv_path_PROG_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
15719:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15720:     break 2
15721:   fi
15722: done
15723:   done
15724: IFS=$as_save_IFS
15725: 
15726:   ;;
15727: esac
15728: fi
15729: PROG_SENDMAIL=$ac_cv_path_PROG_SENDMAIL
15730: if test -n "$PROG_SENDMAIL"; then
15731:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_SENDMAIL" >&5
15732: $as_echo "$PROG_SENDMAIL" >&6; }
15733: else
15734:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15735: $as_echo "no" >&6; }
15736: fi
15737: 
15738: 
15739: 
15740:   PHP_VAR_SUBST="$PHP_VAR_SUBST PROG_SENDMAIL"
15741: 
15742: 
15743: 
15744: 
15745:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system uses EBCDIC" >&5
15746: $as_echo_n "checking whether system uses EBCDIC... " >&6; }
15747: if ${ac_cv_ebcdic+:} false; then :
15748:   $as_echo_n "(cached) " >&6
15749: else
15750: 
15751:   if test "$cross_compiling" = yes; then :
15752: 
15753:   ac_cv_ebcdic=no
15754: 
15755: else
15756:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15757: /* end confdefs.h.  */
15758: 
15759: int main(void) {
15760:   return (unsigned char)'A' != (unsigned char)0xC1;
15761: }
15762: 
15763: _ACEOF
15764: if ac_fn_c_try_run "$LINENO"; then :
15765: 
15766:   ac_cv_ebcdic=yes
15767: 
15768: else
15769: 
15770:   ac_cv_ebcdic=no
15771: 
15772: fi
15773: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15774:   conftest.$ac_objext conftest.beam conftest.$ac_ext
15775: fi
15776: 
15777: fi
15778: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ebcdic" >&5
15779: $as_echo "$ac_cv_ebcdic" >&6; }
15780:   if test "$ac_cv_ebcdic" = "yes"; then
15781: 
15782: $as_echo "#define CHARSET_EBCDIC 1" >>confdefs.h
15783: 
15784:   fi
15785: 
15786: 
15787: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15788: $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15789: if ${ac_cv_c_bigendian_php+:} false; then :
15790:   $as_echo_n "(cached) " >&6
15791: else
15792: 
15793:   ac_cv_c_bigendian_php=unknown
15794:   if test "$cross_compiling" = yes; then :
15795:   ac_cv_c_bigendian_php=unknown
15796: else
15797:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15798: /* end confdefs.h.  */
15799: 
15800: int main(void)
15801: {
15802:   short one = 1;
15803:   char *cp = (char *)&one;
15804: 
15805:   if (*cp == 0) {
15806:     return(0);
15807:   } else {
15808:     return(1);
15809:   }
15810: }
15811: 
15812: _ACEOF
15813: if ac_fn_c_try_run "$LINENO"; then :
15814:   ac_cv_c_bigendian_php=yes
15815: else
15816:   ac_cv_c_bigendian_php=no
15817: fi
15818: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15819:   conftest.$ac_objext conftest.beam conftest.$ac_ext
15820: fi
15821: 
15822: 
15823: fi
15824: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian_php" >&5
15825: $as_echo "$ac_cv_c_bigendian_php" >&6; }
15826:  if test $ac_cv_c_bigendian_php = yes; then
15827: 
15828: $as_echo "#define WORDS_BIGENDIAN /**/" >>confdefs.h
15829: 
15830:  fi
15831: 
15832: 
15833: 
15834:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether writing to stdout works" >&5
15835: $as_echo_n "checking whether writing to stdout works... " >&6; }
15836: if ${ac_cv_write_stdout+:} false; then :
15837:   $as_echo_n "(cached) " >&6
15838: else
15839: 
15840:     if test "$cross_compiling" = yes; then :
15841: 
15842:       ac_cv_write_stdout=no
15843: 
15844: else
15845:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15846: /* end confdefs.h.  */
15847: 
15848: #ifdef HAVE_UNISTD_H
15849: #include <unistd.h>
15850: #endif
15851: 
15852: #define TEXT "This is the test message -- "
15853: 
15854: main()
15855: {
15856:   int n;
15857: 
15858:   n = write(1, TEXT, sizeof(TEXT)-1);
15859:   return (!(n == sizeof(TEXT)-1));
15860: }
15861: 
15862: _ACEOF
15863: if ac_fn_c_try_run "$LINENO"; then :
15864: 
15865:       ac_cv_write_stdout=yes
15866: 
15867: else
15868: 
15869:       ac_cv_write_stdout=no
15870: 
15871: fi
15872: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15873:   conftest.$ac_objext conftest.beam conftest.$ac_ext
15874: fi
15875: 
15876: 
15877: fi
15878: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_write_stdout" >&5
15879: $as_echo "$ac_cv_write_stdout" >&6; }
15880:   if test "$ac_cv_write_stdout" = "yes"; then
15881: 
15882: $as_echo "#define PHP_WRITE_STDOUT 1" >>confdefs.h
15883: 
15884:   fi
15885: 
15886: 
15887: if test -d /usr/pkg/include -a -d /usr/pkg/lib ; then
15888:    CPPFLAGS="$CPPFLAGS -I/usr/pkg/include"
15889:    LDFLAGS="$LDFLAGS -L/usr/pkg/lib"
15890: fi
15891: test -d /usr/ucblib &&
15892:   if test "/usr/ucblib" != "/usr/$PHP_LIBDIR" && test "/usr/ucblib" != "/usr/lib"; then
15893: 
15894:   if test -z "/usr/ucblib" || echo "/usr/ucblib" | grep '^/' >/dev/null ; then
15895:     ai_p=/usr/ucblib
15896:   else
15897: 
15898:     ep_dir=`echo /usr/ucblib|$SED 's%/*[^/][^/]*/*$%%'`
15899: 
15900:     ep_realdir=`(cd "$ep_dir" && pwd)`
15901:     ai_p="$ep_realdir"/`basename "/usr/ucblib"`
15902:   fi
15903: 
15904: 
15905: 
15906: 
15907: 
15908:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
15909: 
15910:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
15911:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
15912:     eval "LIBPATH$unique=set"
15913: 
15914:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
15915:     LDFLAGS="$LDFLAGS -L$ai_p"
15916:     PHP_RPATHS="$PHP_RPATHS $ai_p"
15917: 
15918:   fi
15919: 
15920: 
15921: 
15922:   fi
15923: 
15924: 
15925: 
15926: 
15927: 
15928: 
15929:   unset ac_cv_func_socket
15930:   unset ac_cv_func___socket
15931:   unset found
15932: 
15933:   ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
15934: if test "x$ac_cv_func_socket" = xyes; then :
15935:   found=yes
15936: else
15937:    ac_fn_c_check_func "$LINENO" "__socket" "ac_cv_func___socket"
15938: if test "x$ac_cv_func___socket" = xyes; then :
15939:   found=yes
15940: else
15941:   found=no
15942: fi
15943: 
15944: fi
15945: 
15946: 
15947:   case $found in
15948:   yes)
15949: 
15950: $as_echo "#define HAVE_SOCKET 1" >>confdefs.h
15951: 
15952:     ac_cv_func_socket=yes
15953:   ;;
15954: 
15955:     *)
15956: 
15957:   unset ac_cv_lib_socket_socket
15958:   unset ac_cv_lib_socket___socket
15959:   unset found
15960:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
15961: $as_echo_n "checking for socket in -lsocket... " >&6; }
15962: if ${ac_cv_lib_socket_socket+:} false; then :
15963:   $as_echo_n "(cached) " >&6
15964: else
15965:   ac_check_lib_save_LIBS=$LIBS
15966: LIBS="-lsocket  $LIBS"
15967: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15968: /* end confdefs.h.  */
15969: 
15970: /* Override any GCC internal prototype to avoid an error.
15971:    Use char because int might match the return type of a GCC
15972:    builtin and then its argument prototype would still apply.  */
15973: #ifdef __cplusplus
15974: extern "C"
15975: #endif
15976: char socket ();
15977: int
15978: main ()
15979: {
15980: return socket ();
15981:   ;
15982:   return 0;
15983: }
15984: _ACEOF
15985: if ac_fn_c_try_link "$LINENO"; then :
15986:   ac_cv_lib_socket_socket=yes
15987: else
15988:   ac_cv_lib_socket_socket=no
15989: fi
15990: rm -f core conftest.err conftest.$ac_objext \
15991:     conftest$ac_exeext conftest.$ac_ext
15992: LIBS=$ac_check_lib_save_LIBS
15993: fi
15994: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
15995: $as_echo "$ac_cv_lib_socket_socket" >&6; }
15996: if test "x$ac_cv_lib_socket_socket" = xyes; then :
15997:   found=yes
15998: else
15999: 
16000:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __socket in -lsocket" >&5
16001: $as_echo_n "checking for __socket in -lsocket... " >&6; }
16002: if ${ac_cv_lib_socket___socket+:} false; then :
16003:   $as_echo_n "(cached) " >&6
16004: else
16005:   ac_check_lib_save_LIBS=$LIBS
16006: LIBS="-lsocket  $LIBS"
16007: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16008: /* end confdefs.h.  */
16009: 
16010: /* Override any GCC internal prototype to avoid an error.
16011:    Use char because int might match the return type of a GCC
16012:    builtin and then its argument prototype would still apply.  */
16013: #ifdef __cplusplus
16014: extern "C"
16015: #endif
16016: char __socket ();
16017: int
16018: main ()
16019: {
16020: return __socket ();
16021:   ;
16022:   return 0;
16023: }
16024: _ACEOF
16025: if ac_fn_c_try_link "$LINENO"; then :
16026:   ac_cv_lib_socket___socket=yes
16027: else
16028:   ac_cv_lib_socket___socket=no
16029: fi
16030: rm -f core conftest.err conftest.$ac_objext \
16031:     conftest$ac_exeext conftest.$ac_ext
16032: LIBS=$ac_check_lib_save_LIBS
16033: fi
16034: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___socket" >&5
16035: $as_echo "$ac_cv_lib_socket___socket" >&6; }
16036: if test "x$ac_cv_lib_socket___socket" = xyes; then :
16037:   found=yes
16038: else
16039:   found=no
16040: fi
16041: 
16042: 
16043: fi
16044: 
16045: 
16046:   if test "$found" = "yes"; then
16047:     ac_libs=$LIBS
16048:     LIBS="$LIBS -lsocket"
16049:     if test "$cross_compiling" = yes; then :
16050:   found=no
16051: else
16052:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16053: /* end confdefs.h.  */
16054: main() { return (0); }
16055: _ACEOF
16056: if ac_fn_c_try_run "$LINENO"; then :
16057:   found=yes
16058: else
16059:   found=no
16060: fi
16061: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16062:   conftest.$ac_objext conftest.beam conftest.$ac_ext
16063: fi
16064: 
16065:     LIBS=$ac_libs
16066:   fi
16067: 
16068:   if test "$found" = "yes"; then
16069: 
16070: 
16071:   case socket in
16072:   c|c_r|pthread*) ;;
16073:   *)
16074:       LIBS="-lsocket $LIBS"
16075:    ;;
16076:   esac
16077: 
16078: 
16079: 
16080: $as_echo "#define HAVE_SOCKET 1" >>confdefs.h
16081: 
16082: 
16083: $as_echo "#define HAVE_LIBSOCKET 1" >>confdefs.h
16084: 
16085:     ac_cv_func_socket=yes
16086:   else
16087: 
16088:   :
16089: 
16090:   fi
16091: 
16092:  ;;
16093: 
16094:   esac
16095: 
16096: 
16097:   unset ac_cv_func_socketpair
16098:   unset ac_cv_func___socketpair
16099:   unset found
16100: 
16101:   ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair"
16102: if test "x$ac_cv_func_socketpair" = xyes; then :
16103:   found=yes
16104: else
16105:    ac_fn_c_check_func "$LINENO" "__socketpair" "ac_cv_func___socketpair"
16106: if test "x$ac_cv_func___socketpair" = xyes; then :
16107:   found=yes
16108: else
16109:   found=no
16110: fi
16111: 
16112: fi
16113: 
16114: 
16115:   case $found in
16116:   yes)
16117: 
16118: $as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h
16119: 
16120:     ac_cv_func_socketpair=yes
16121:   ;;
16122: 
16123:     *)
16124: 
16125:   unset ac_cv_lib_socket_socketpair
16126:   unset ac_cv_lib_socket___socketpair
16127:   unset found
16128:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair in -lsocket" >&5
16129: $as_echo_n "checking for socketpair in -lsocket... " >&6; }
16130: if ${ac_cv_lib_socket_socketpair+:} false; then :
16131:   $as_echo_n "(cached) " >&6
16132: else
16133:   ac_check_lib_save_LIBS=$LIBS
16134: LIBS="-lsocket  $LIBS"
16135: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16136: /* end confdefs.h.  */
16137: 
16138: /* Override any GCC internal prototype to avoid an error.
16139:    Use char because int might match the return type of a GCC
16140:    builtin and then its argument prototype would still apply.  */
16141: #ifdef __cplusplus
16142: extern "C"
16143: #endif
16144: char socketpair ();
16145: int
16146: main ()
16147: {
16148: return socketpair ();
16149:   ;
16150:   return 0;
16151: }
16152: _ACEOF
16153: if ac_fn_c_try_link "$LINENO"; then :
16154:   ac_cv_lib_socket_socketpair=yes
16155: else
16156:   ac_cv_lib_socket_socketpair=no
16157: fi
16158: rm -f core conftest.err conftest.$ac_objext \
16159:     conftest$ac_exeext conftest.$ac_ext
16160: LIBS=$ac_check_lib_save_LIBS
16161: fi
16162: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socketpair" >&5
16163: $as_echo "$ac_cv_lib_socket_socketpair" >&6; }
16164: if test "x$ac_cv_lib_socket_socketpair" = xyes; then :
16165:   found=yes
16166: else
16167: 
16168:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __socketpair in -lsocket" >&5
16169: $as_echo_n "checking for __socketpair in -lsocket... " >&6; }
16170: if ${ac_cv_lib_socket___socketpair+:} false; then :
16171:   $as_echo_n "(cached) " >&6
16172: else
16173:   ac_check_lib_save_LIBS=$LIBS
16174: LIBS="-lsocket  $LIBS"
16175: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16176: /* end confdefs.h.  */
16177: 
16178: /* Override any GCC internal prototype to avoid an error.
16179:    Use char because int might match the return type of a GCC
16180:    builtin and then its argument prototype would still apply.  */
16181: #ifdef __cplusplus
16182: extern "C"
16183: #endif
16184: char __socketpair ();
16185: int
16186: main ()
16187: {
16188: return __socketpair ();
16189:   ;
16190:   return 0;
16191: }
16192: _ACEOF
16193: if ac_fn_c_try_link "$LINENO"; then :
16194:   ac_cv_lib_socket___socketpair=yes
16195: else
16196:   ac_cv_lib_socket___socketpair=no
16197: fi
16198: rm -f core conftest.err conftest.$ac_objext \
16199:     conftest$ac_exeext conftest.$ac_ext
16200: LIBS=$ac_check_lib_save_LIBS
16201: fi
16202: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___socketpair" >&5
16203: $as_echo "$ac_cv_lib_socket___socketpair" >&6; }
16204: if test "x$ac_cv_lib_socket___socketpair" = xyes; then :
16205:   found=yes
16206: else
16207:   found=no
16208: fi
16209: 
16210: 
16211: fi
16212: 
16213: 
16214:   if test "$found" = "yes"; then
16215:     ac_libs=$LIBS
16216:     LIBS="$LIBS -lsocket"
16217:     if test "$cross_compiling" = yes; then :
16218:   found=no
16219: else
16220:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16221: /* end confdefs.h.  */
16222: main() { return (0); }
16223: _ACEOF
16224: if ac_fn_c_try_run "$LINENO"; then :
16225:   found=yes
16226: else
16227:   found=no
16228: fi
16229: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16230:   conftest.$ac_objext conftest.beam conftest.$ac_ext
16231: fi
16232: 
16233:     LIBS=$ac_libs
16234:   fi
16235: 
16236:   if test "$found" = "yes"; then
16237: 
16238: 
16239:   case socket in
16240:   c|c_r|pthread*) ;;
16241:   *)
16242:       LIBS="-lsocket $LIBS"
16243:    ;;
16244:   esac
16245: 
16246: 
16247: 
16248: $as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h
16249: 
16250: 
16251: $as_echo "#define HAVE_LIBSOCKET 1" >>confdefs.h
16252: 
16253:     ac_cv_func_socketpair=yes
16254:   else
16255: 
16256:   :
16257: 
16258:   fi
16259: 
16260:  ;;
16261: 
16262:   esac
16263: 
16264: 
16265:   unset ac_cv_func_htonl
16266:   unset ac_cv_func___htonl
16267:   unset found
16268: 
16269:   ac_fn_c_check_func "$LINENO" "htonl" "ac_cv_func_htonl"
16270: if test "x$ac_cv_func_htonl" = xyes; then :
16271:   found=yes
16272: else
16273:    ac_fn_c_check_func "$LINENO" "__htonl" "ac_cv_func___htonl"
16274: if test "x$ac_cv_func___htonl" = xyes; then :
16275:   found=yes
16276: else
16277:   found=no
16278: fi
16279: 
16280: fi
16281: 
16282: 
16283:   case $found in
16284:   yes)
16285: 
16286: $as_echo "#define HAVE_HTONL 1" >>confdefs.h
16287: 
16288:     ac_cv_func_htonl=yes
16289:   ;;
16290: 
16291:     *)
16292: 
16293:   unset ac_cv_lib_socket_htonl
16294:   unset ac_cv_lib_socket___htonl
16295:   unset found
16296:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htonl in -lsocket" >&5
16297: $as_echo_n "checking for htonl in -lsocket... " >&6; }
16298: if ${ac_cv_lib_socket_htonl+:} false; then :
16299:   $as_echo_n "(cached) " >&6
16300: else
16301:   ac_check_lib_save_LIBS=$LIBS
16302: LIBS="-lsocket  $LIBS"
16303: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16304: /* end confdefs.h.  */
16305: 
16306: /* Override any GCC internal prototype to avoid an error.
16307:    Use char because int might match the return type of a GCC
16308:    builtin and then its argument prototype would still apply.  */
16309: #ifdef __cplusplus
16310: extern "C"
16311: #endif
16312: char htonl ();
16313: int
16314: main ()
16315: {
16316: return htonl ();
16317:   ;
16318:   return 0;
16319: }
16320: _ACEOF
16321: if ac_fn_c_try_link "$LINENO"; then :
16322:   ac_cv_lib_socket_htonl=yes
16323: else
16324:   ac_cv_lib_socket_htonl=no
16325: fi
16326: rm -f core conftest.err conftest.$ac_objext \
16327:     conftest$ac_exeext conftest.$ac_ext
16328: LIBS=$ac_check_lib_save_LIBS
16329: fi
16330: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_htonl" >&5
16331: $as_echo "$ac_cv_lib_socket_htonl" >&6; }
16332: if test "x$ac_cv_lib_socket_htonl" = xyes; then :
16333:   found=yes
16334: else
16335: 
16336:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __htonl in -lsocket" >&5
16337: $as_echo_n "checking for __htonl in -lsocket... " >&6; }
16338: if ${ac_cv_lib_socket___htonl+:} false; then :
16339:   $as_echo_n "(cached) " >&6
16340: else
16341:   ac_check_lib_save_LIBS=$LIBS
16342: LIBS="-lsocket  $LIBS"
16343: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16344: /* end confdefs.h.  */
16345: 
16346: /* Override any GCC internal prototype to avoid an error.
16347:    Use char because int might match the return type of a GCC
16348:    builtin and then its argument prototype would still apply.  */
16349: #ifdef __cplusplus
16350: extern "C"
16351: #endif
16352: char __htonl ();
16353: int
16354: main ()
16355: {
16356: return __htonl ();
16357:   ;
16358:   return 0;
16359: }
16360: _ACEOF
16361: if ac_fn_c_try_link "$LINENO"; then :
16362:   ac_cv_lib_socket___htonl=yes
16363: else
16364:   ac_cv_lib_socket___htonl=no
16365: fi
16366: rm -f core conftest.err conftest.$ac_objext \
16367:     conftest$ac_exeext conftest.$ac_ext
16368: LIBS=$ac_check_lib_save_LIBS
16369: fi
16370: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___htonl" >&5
16371: $as_echo "$ac_cv_lib_socket___htonl" >&6; }
16372: if test "x$ac_cv_lib_socket___htonl" = xyes; then :
16373:   found=yes
16374: else
16375:   found=no
16376: fi
16377: 
16378: 
16379: fi
16380: 
16381: 
16382:   if test "$found" = "yes"; then
16383:     ac_libs=$LIBS
16384:     LIBS="$LIBS -lsocket"
16385:     if test "$cross_compiling" = yes; then :
16386:   found=no
16387: else
16388:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16389: /* end confdefs.h.  */
16390: main() { return (0); }
16391: _ACEOF
16392: if ac_fn_c_try_run "$LINENO"; then :
16393:   found=yes
16394: else
16395:   found=no
16396: fi
16397: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16398:   conftest.$ac_objext conftest.beam conftest.$ac_ext
16399: fi
16400: 
16401:     LIBS=$ac_libs
16402:   fi
16403: 
16404:   if test "$found" = "yes"; then
16405: 
16406: 
16407:   case socket in
16408:   c|c_r|pthread*) ;;
16409:   *)
16410:       LIBS="-lsocket $LIBS"
16411:    ;;
16412:   esac
16413: 
16414: 
16415: 
16416: $as_echo "#define HAVE_HTONL 1" >>confdefs.h
16417: 
16418: 
16419: $as_echo "#define HAVE_LIBSOCKET 1" >>confdefs.h
16420: 
16421:     ac_cv_func_htonl=yes
16422:   else
16423: 
16424:   :
16425: 
16426:   fi
16427: 
16428:  ;;
16429: 
16430:   esac
16431: 
16432: 
16433:   unset ac_cv_func_gethostname
16434:   unset ac_cv_func___gethostname
16435:   unset found
16436: 
16437:   ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
16438: if test "x$ac_cv_func_gethostname" = xyes; then :
16439:   found=yes
16440: else
16441:    ac_fn_c_check_func "$LINENO" "__gethostname" "ac_cv_func___gethostname"
16442: if test "x$ac_cv_func___gethostname" = xyes; then :
16443:   found=yes
16444: else
16445:   found=no
16446: fi
16447: 
16448: fi
16449: 
16450: 
16451:   case $found in
16452:   yes)
16453: 
16454: $as_echo "#define HAVE_GETHOSTNAME 1" >>confdefs.h
16455: 
16456:     ac_cv_func_gethostname=yes
16457:   ;;
16458: 
16459:     *)
16460: 
16461:   unset ac_cv_lib_nsl_gethostname
16462:   unset ac_cv_lib_nsl___gethostname
16463:   unset found
16464:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname in -lnsl" >&5
16465: $as_echo_n "checking for gethostname in -lnsl... " >&6; }
16466: if ${ac_cv_lib_nsl_gethostname+:} false; then :
16467:   $as_echo_n "(cached) " >&6
16468: else
16469:   ac_check_lib_save_LIBS=$LIBS
16470: LIBS="-lnsl  $LIBS"
16471: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16472: /* end confdefs.h.  */
16473: 
16474: /* Override any GCC internal prototype to avoid an error.
16475:    Use char because int might match the return type of a GCC
16476:    builtin and then its argument prototype would still apply.  */
16477: #ifdef __cplusplus
16478: extern "C"
16479: #endif
16480: char gethostname ();
16481: int
16482: main ()
16483: {
16484: return gethostname ();
16485:   ;
16486:   return 0;
16487: }
16488: _ACEOF
16489: if ac_fn_c_try_link "$LINENO"; then :
16490:   ac_cv_lib_nsl_gethostname=yes
16491: else
16492:   ac_cv_lib_nsl_gethostname=no
16493: fi
16494: rm -f core conftest.err conftest.$ac_objext \
16495:     conftest$ac_exeext conftest.$ac_ext
16496: LIBS=$ac_check_lib_save_LIBS
16497: fi
16498: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostname" >&5
16499: $as_echo "$ac_cv_lib_nsl_gethostname" >&6; }
16500: if test "x$ac_cv_lib_nsl_gethostname" = xyes; then :
16501:   found=yes
16502: else
16503: 
16504:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gethostname in -lnsl" >&5
16505: $as_echo_n "checking for __gethostname in -lnsl... " >&6; }
16506: if ${ac_cv_lib_nsl___gethostname+:} false; then :
16507:   $as_echo_n "(cached) " >&6
16508: else
16509:   ac_check_lib_save_LIBS=$LIBS
16510: LIBS="-lnsl  $LIBS"
16511: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16512: /* end confdefs.h.  */
16513: 
16514: /* Override any GCC internal prototype to avoid an error.
16515:    Use char because int might match the return type of a GCC
16516:    builtin and then its argument prototype would still apply.  */
16517: #ifdef __cplusplus
16518: extern "C"
16519: #endif
16520: char __gethostname ();
16521: int
16522: main ()
16523: {
16524: return __gethostname ();
16525:   ;
16526:   return 0;
16527: }
16528: _ACEOF
16529: if ac_fn_c_try_link "$LINENO"; then :
16530:   ac_cv_lib_nsl___gethostname=yes
16531: else
16532:   ac_cv_lib_nsl___gethostname=no
16533: fi
16534: rm -f core conftest.err conftest.$ac_objext \
16535:     conftest$ac_exeext conftest.$ac_ext
16536: LIBS=$ac_check_lib_save_LIBS
16537: fi
16538: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl___gethostname" >&5
16539: $as_echo "$ac_cv_lib_nsl___gethostname" >&6; }
16540: if test "x$ac_cv_lib_nsl___gethostname" = xyes; then :
16541:   found=yes
16542: else
16543:   found=no
16544: fi
16545: 
16546: 
16547: fi
16548: 
16549: 
16550:   if test "$found" = "yes"; then
16551:     ac_libs=$LIBS
16552:     LIBS="$LIBS -lnsl"
16553:     if test "$cross_compiling" = yes; then :
16554:   found=no
16555: else
16556:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16557: /* end confdefs.h.  */
16558: main() { return (0); }
16559: _ACEOF
16560: if ac_fn_c_try_run "$LINENO"; then :
16561:   found=yes
16562: else
16563:   found=no
16564: fi
16565: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16566:   conftest.$ac_objext conftest.beam conftest.$ac_ext
16567: fi
16568: 
16569:     LIBS=$ac_libs
16570:   fi
16571: 
16572:   if test "$found" = "yes"; then
16573: 
16574: 
16575:   case nsl in
16576:   c|c_r|pthread*) ;;
16577:   *)
16578:       LIBS="-lnsl $LIBS"
16579:    ;;
16580:   esac
16581: 
16582: 
16583: 
16584: $as_echo "#define HAVE_GETHOSTNAME 1" >>confdefs.h
16585: 
16586: 
16587: $as_echo "#define HAVE_LIBNSL 1" >>confdefs.h
16588: 
16589:     ac_cv_func_gethostname=yes
16590:   else
16591: 
16592:   :
16593: 
16594:   fi
16595: 
16596:  ;;
16597: 
16598:   esac
16599: 
16600: 
16601:   unset ac_cv_func_gethostbyaddr
16602:   unset ac_cv_func___gethostbyaddr
16603:   unset found
16604: 
16605:   ac_fn_c_check_func "$LINENO" "gethostbyaddr" "ac_cv_func_gethostbyaddr"
16606: if test "x$ac_cv_func_gethostbyaddr" = xyes; then :
16607:   found=yes
16608: else
16609:    ac_fn_c_check_func "$LINENO" "__gethostbyaddr" "ac_cv_func___gethostbyaddr"
16610: if test "x$ac_cv_func___gethostbyaddr" = xyes; then :
16611:   found=yes
16612: else
16613:   found=no
16614: fi
16615: 
16616: fi
16617: 
16618: 
16619:   case $found in
16620:   yes)
16621: 
16622: $as_echo "#define HAVE_GETHOSTBYADDR 1" >>confdefs.h
16623: 
16624:     ac_cv_func_gethostbyaddr=yes
16625:   ;;
16626: 
16627:     *)
16628: 
16629:   unset ac_cv_lib_nsl_gethostbyaddr
16630:   unset ac_cv_lib_nsl___gethostbyaddr
16631:   unset found
16632:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyaddr in -lnsl" >&5
16633: $as_echo_n "checking for gethostbyaddr in -lnsl... " >&6; }
16634: if ${ac_cv_lib_nsl_gethostbyaddr+:} false; then :
16635:   $as_echo_n "(cached) " >&6
16636: else
16637:   ac_check_lib_save_LIBS=$LIBS
16638: LIBS="-lnsl  $LIBS"
16639: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16640: /* end confdefs.h.  */
16641: 
16642: /* Override any GCC internal prototype to avoid an error.
16643:    Use char because int might match the return type of a GCC
16644:    builtin and then its argument prototype would still apply.  */
16645: #ifdef __cplusplus
16646: extern "C"
16647: #endif
16648: char gethostbyaddr ();
16649: int
16650: main ()
16651: {
16652: return gethostbyaddr ();
16653:   ;
16654:   return 0;
16655: }
16656: _ACEOF
16657: if ac_fn_c_try_link "$LINENO"; then :
16658:   ac_cv_lib_nsl_gethostbyaddr=yes
16659: else
16660:   ac_cv_lib_nsl_gethostbyaddr=no
16661: fi
16662: rm -f core conftest.err conftest.$ac_objext \
16663:     conftest$ac_exeext conftest.$ac_ext
16664: LIBS=$ac_check_lib_save_LIBS
16665: fi
16666: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyaddr" >&5
16667: $as_echo "$ac_cv_lib_nsl_gethostbyaddr" >&6; }
16668: if test "x$ac_cv_lib_nsl_gethostbyaddr" = xyes; then :
16669:   found=yes
16670: else
16671: 
16672:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gethostbyaddr in -lnsl" >&5
16673: $as_echo_n "checking for __gethostbyaddr in -lnsl... " >&6; }
16674: if ${ac_cv_lib_nsl___gethostbyaddr+:} false; then :
16675:   $as_echo_n "(cached) " >&6
16676: else
16677:   ac_check_lib_save_LIBS=$LIBS
16678: LIBS="-lnsl  $LIBS"
16679: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16680: /* end confdefs.h.  */
16681: 
16682: /* Override any GCC internal prototype to avoid an error.
16683:    Use char because int might match the return type of a GCC
16684:    builtin and then its argument prototype would still apply.  */
16685: #ifdef __cplusplus
16686: extern "C"
16687: #endif
16688: char __gethostbyaddr ();
16689: int
16690: main ()
16691: {
16692: return __gethostbyaddr ();
16693:   ;
16694:   return 0;
16695: }
16696: _ACEOF
16697: if ac_fn_c_try_link "$LINENO"; then :
16698:   ac_cv_lib_nsl___gethostbyaddr=yes
16699: else
16700:   ac_cv_lib_nsl___gethostbyaddr=no
16701: fi
16702: rm -f core conftest.err conftest.$ac_objext \
16703:     conftest$ac_exeext conftest.$ac_ext
16704: LIBS=$ac_check_lib_save_LIBS
16705: fi
16706: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl___gethostbyaddr" >&5
16707: $as_echo "$ac_cv_lib_nsl___gethostbyaddr" >&6; }
16708: if test "x$ac_cv_lib_nsl___gethostbyaddr" = xyes; then :
16709:   found=yes
16710: else
16711:   found=no
16712: fi
16713: 
16714: 
16715: fi
16716: 
16717: 
16718:   if test "$found" = "yes"; then
16719:     ac_libs=$LIBS
16720:     LIBS="$LIBS -lnsl"
16721:     if test "$cross_compiling" = yes; then :
16722:   found=no
16723: else
16724:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16725: /* end confdefs.h.  */
16726: main() { return (0); }
16727: _ACEOF
16728: if ac_fn_c_try_run "$LINENO"; then :
16729:   found=yes
16730: else
16731:   found=no
16732: fi
16733: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16734:   conftest.$ac_objext conftest.beam conftest.$ac_ext
16735: fi
16736: 
16737:     LIBS=$ac_libs
16738:   fi
16739: 
16740:   if test "$found" = "yes"; then
16741: 
16742: 
16743:   case nsl in
16744:   c|c_r|pthread*) ;;
16745:   *)
16746:       LIBS="-lnsl $LIBS"
16747:    ;;
16748:   esac
16749: 
16750: 
16751: 
16752: $as_echo "#define HAVE_GETHOSTBYADDR 1" >>confdefs.h
16753: 
16754: 
16755: $as_echo "#define HAVE_LIBNSL 1" >>confdefs.h
16756: 
16757:     ac_cv_func_gethostbyaddr=yes
16758:   else
16759: 
16760:   :
16761: 
16762:   fi
16763: 
16764:  ;;
16765: 
16766:   esac
16767: 
16768: 
16769:   unset ac_cv_func_yp_get_default_domain
16770:   unset ac_cv_func___yp_get_default_domain
16771:   unset found
16772: 
16773:   ac_fn_c_check_func "$LINENO" "yp_get_default_domain" "ac_cv_func_yp_get_default_domain"
16774: if test "x$ac_cv_func_yp_get_default_domain" = xyes; then :
16775:   found=yes
16776: else
16777:    ac_fn_c_check_func "$LINENO" "__yp_get_default_domain" "ac_cv_func___yp_get_default_domain"
16778: if test "x$ac_cv_func___yp_get_default_domain" = xyes; then :
16779:   found=yes
16780: else
16781:   found=no
16782: fi
16783: 
16784: fi
16785: 
16786: 
16787:   case $found in
16788:   yes)
16789: 
16790: $as_echo "#define HAVE_YP_GET_DEFAULT_DOMAIN 1" >>confdefs.h
16791: 
16792:     ac_cv_func_yp_get_default_domain=yes
16793:   ;;
16794: 
16795:     *)
16796: 
16797:   unset ac_cv_lib_nsl_yp_get_default_domain
16798:   unset ac_cv_lib_nsl___yp_get_default_domain
16799:   unset found
16800:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yp_get_default_domain in -lnsl" >&5
16801: $as_echo_n "checking for yp_get_default_domain in -lnsl... " >&6; }
16802: if ${ac_cv_lib_nsl_yp_get_default_domain+:} false; then :
16803:   $as_echo_n "(cached) " >&6
16804: else
16805:   ac_check_lib_save_LIBS=$LIBS
16806: LIBS="-lnsl  $LIBS"
16807: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16808: /* end confdefs.h.  */
16809: 
16810: /* Override any GCC internal prototype to avoid an error.
16811:    Use char because int might match the return type of a GCC
16812:    builtin and then its argument prototype would still apply.  */
16813: #ifdef __cplusplus
16814: extern "C"
16815: #endif
16816: char yp_get_default_domain ();
16817: int
16818: main ()
16819: {
16820: return yp_get_default_domain ();
16821:   ;
16822:   return 0;
16823: }
16824: _ACEOF
16825: if ac_fn_c_try_link "$LINENO"; then :
16826:   ac_cv_lib_nsl_yp_get_default_domain=yes
16827: else
16828:   ac_cv_lib_nsl_yp_get_default_domain=no
16829: fi
16830: rm -f core conftest.err conftest.$ac_objext \
16831:     conftest$ac_exeext conftest.$ac_ext
16832: LIBS=$ac_check_lib_save_LIBS
16833: fi
16834: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_yp_get_default_domain" >&5
16835: $as_echo "$ac_cv_lib_nsl_yp_get_default_domain" >&6; }
16836: if test "x$ac_cv_lib_nsl_yp_get_default_domain" = xyes; then :
16837:   found=yes
16838: else
16839: 
16840:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __yp_get_default_domain in -lnsl" >&5
16841: $as_echo_n "checking for __yp_get_default_domain in -lnsl... " >&6; }
16842: if ${ac_cv_lib_nsl___yp_get_default_domain+:} false; then :
16843:   $as_echo_n "(cached) " >&6
16844: else
16845:   ac_check_lib_save_LIBS=$LIBS
16846: LIBS="-lnsl  $LIBS"
16847: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16848: /* end confdefs.h.  */
16849: 
16850: /* Override any GCC internal prototype to avoid an error.
16851:    Use char because int might match the return type of a GCC
16852:    builtin and then its argument prototype would still apply.  */
16853: #ifdef __cplusplus
16854: extern "C"
16855: #endif
16856: char __yp_get_default_domain ();
16857: int
16858: main ()
16859: {
16860: return __yp_get_default_domain ();
16861:   ;
16862:   return 0;
16863: }
16864: _ACEOF
16865: if ac_fn_c_try_link "$LINENO"; then :
16866:   ac_cv_lib_nsl___yp_get_default_domain=yes
16867: else
16868:   ac_cv_lib_nsl___yp_get_default_domain=no
16869: fi
16870: rm -f core conftest.err conftest.$ac_objext \
16871:     conftest$ac_exeext conftest.$ac_ext
16872: LIBS=$ac_check_lib_save_LIBS
16873: fi
16874: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl___yp_get_default_domain" >&5
16875: $as_echo "$ac_cv_lib_nsl___yp_get_default_domain" >&6; }
16876: if test "x$ac_cv_lib_nsl___yp_get_default_domain" = xyes; then :
16877:   found=yes
16878: else
16879:   found=no
16880: fi
16881: 
16882: 
16883: fi
16884: 
16885: 
16886:   if test "$found" = "yes"; then
16887:     ac_libs=$LIBS
16888:     LIBS="$LIBS -lnsl"
16889:     if test "$cross_compiling" = yes; then :
16890:   found=no
16891: else
16892:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16893: /* end confdefs.h.  */
16894: main() { return (0); }
16895: _ACEOF
16896: if ac_fn_c_try_run "$LINENO"; then :
16897:   found=yes
16898: else
16899:   found=no
16900: fi
16901: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16902:   conftest.$ac_objext conftest.beam conftest.$ac_ext
16903: fi
16904: 
16905:     LIBS=$ac_libs
16906:   fi
16907: 
16908:   if test "$found" = "yes"; then
16909: 
16910: 
16911:   case nsl in
16912:   c|c_r|pthread*) ;;
16913:   *)
16914:       LIBS="-lnsl $LIBS"
16915:    ;;
16916:   esac
16917: 
16918: 
16919: 
16920: $as_echo "#define HAVE_YP_GET_DEFAULT_DOMAIN 1" >>confdefs.h
16921: 
16922: 
16923: $as_echo "#define HAVE_LIBNSL 1" >>confdefs.h
16924: 
16925:     ac_cv_func_yp_get_default_domain=yes
16926:   else
16927: 
16928:   :
16929: 
16930:   fi
16931: 
16932:  ;;
16933: 
16934:   esac
16935: 
16936: 
16937: 
16938:   unset ac_cv_func_dlopen
16939:   unset ac_cv_func___dlopen
16940:   unset found
16941: 
16942:   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
16943: if test "x$ac_cv_func_dlopen" = xyes; then :
16944:   found=yes
16945: else
16946:    ac_fn_c_check_func "$LINENO" "__dlopen" "ac_cv_func___dlopen"
16947: if test "x$ac_cv_func___dlopen" = xyes; then :
16948:   found=yes
16949: else
16950:   found=no
16951: fi
16952: 
16953: fi
16954: 
16955: 
16956:   case $found in
16957:   yes)
16958: 
16959: $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
16960: 
16961:     ac_cv_func_dlopen=yes
16962:   ;;
16963: 
16964:     *)
16965: 
16966:   unset ac_cv_lib_dl_dlopen
16967:   unset ac_cv_lib_dl___dlopen
16968:   unset found
16969:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16970: $as_echo_n "checking for dlopen in -ldl... " >&6; }
16971: if ${ac_cv_lib_dl_dlopen+:} false; then :
16972:   $as_echo_n "(cached) " >&6
16973: else
16974:   ac_check_lib_save_LIBS=$LIBS
16975: LIBS="-ldl  $LIBS"
16976: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16977: /* end confdefs.h.  */
16978: 
16979: /* Override any GCC internal prototype to avoid an error.
16980:    Use char because int might match the return type of a GCC
16981:    builtin and then its argument prototype would still apply.  */
16982: #ifdef __cplusplus
16983: extern "C"
16984: #endif
16985: char dlopen ();
16986: int
16987: main ()
16988: {
16989: return dlopen ();
16990:   ;
16991:   return 0;
16992: }
16993: _ACEOF
16994: if ac_fn_c_try_link "$LINENO"; then :
16995:   ac_cv_lib_dl_dlopen=yes
16996: else
16997:   ac_cv_lib_dl_dlopen=no
16998: fi
16999: rm -f core conftest.err conftest.$ac_objext \
17000:     conftest$ac_exeext conftest.$ac_ext
17001: LIBS=$ac_check_lib_save_LIBS
17002: fi
17003: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17004: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17005: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17006:   found=yes
17007: else
17008: 
17009:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dlopen in -ldl" >&5
17010: $as_echo_n "checking for __dlopen in -ldl... " >&6; }
17011: if ${ac_cv_lib_dl___dlopen+:} false; then :
17012:   $as_echo_n "(cached) " >&6
17013: else
17014:   ac_check_lib_save_LIBS=$LIBS
17015: LIBS="-ldl  $LIBS"
17016: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17017: /* end confdefs.h.  */
17018: 
17019: /* Override any GCC internal prototype to avoid an error.
17020:    Use char because int might match the return type of a GCC
17021:    builtin and then its argument prototype would still apply.  */
17022: #ifdef __cplusplus
17023: extern "C"
17024: #endif
17025: char __dlopen ();
17026: int
17027: main ()
17028: {
17029: return __dlopen ();
17030:   ;
17031:   return 0;
17032: }
17033: _ACEOF
17034: if ac_fn_c_try_link "$LINENO"; then :
17035:   ac_cv_lib_dl___dlopen=yes
17036: else
17037:   ac_cv_lib_dl___dlopen=no
17038: fi
17039: rm -f core conftest.err conftest.$ac_objext \
17040:     conftest$ac_exeext conftest.$ac_ext
17041: LIBS=$ac_check_lib_save_LIBS
17042: fi
17043: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl___dlopen" >&5
17044: $as_echo "$ac_cv_lib_dl___dlopen" >&6; }
17045: if test "x$ac_cv_lib_dl___dlopen" = xyes; then :
17046:   found=yes
17047: else
17048:   found=no
17049: fi
17050: 
17051: 
17052: fi
17053: 
17054: 
17055:   if test "$found" = "yes"; then
17056:     ac_libs=$LIBS
17057:     LIBS="$LIBS -ldl"
17058:     if test "$cross_compiling" = yes; then :
17059:   found=no
17060: else
17061:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17062: /* end confdefs.h.  */
17063: main() { return (0); }
17064: _ACEOF
17065: if ac_fn_c_try_run "$LINENO"; then :
17066:   found=yes
17067: else
17068:   found=no
17069: fi
17070: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17071:   conftest.$ac_objext conftest.beam conftest.$ac_ext
17072: fi
17073: 
17074:     LIBS=$ac_libs
17075:   fi
17076: 
17077:   if test "$found" = "yes"; then
17078: 
17079: 
17080:   case dl in
17081:   c|c_r|pthread*) ;;
17082:   *)
17083:       LIBS="-ldl $LIBS"
17084:    ;;
17085:   esac
17086: 
17087: 
17088: 
17089: $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
17090: 
17091: 
17092: $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
17093: 
17094:     ac_cv_func_dlopen=yes
17095:   else
17096: 
17097:   :
17098: 
17099:   fi
17100: 
17101:  ;;
17102: 
17103:   esac
17104: 
17105: if test "$ac_cv_func_dlopen" = "yes"; then
17106: 
17107: $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
17108: 
17109: fi
17110: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
17111: $as_echo_n "checking for sin in -lm... " >&6; }
17112: if ${ac_cv_lib_m_sin+:} false; then :
17113:   $as_echo_n "(cached) " >&6
17114: else
17115:   ac_check_lib_save_LIBS=$LIBS
17116: LIBS="-lm  $LIBS"
17117: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17118: /* end confdefs.h.  */
17119: 
17120: /* Override any GCC internal prototype to avoid an error.
17121:    Use char because int might match the return type of a GCC
17122:    builtin and then its argument prototype would still apply.  */
17123: #ifdef __cplusplus
17124: extern "C"
17125: #endif
17126: char sin ();
17127: int
17128: main ()
17129: {
17130: return sin ();
17131:   ;
17132:   return 0;
17133: }
17134: _ACEOF
17135: if ac_fn_c_try_link "$LINENO"; then :
17136:   ac_cv_lib_m_sin=yes
17137: else
17138:   ac_cv_lib_m_sin=no
17139: fi
17140: rm -f core conftest.err conftest.$ac_objext \
17141:     conftest$ac_exeext conftest.$ac_ext
17142: LIBS=$ac_check_lib_save_LIBS
17143: fi
17144: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
17145: $as_echo "$ac_cv_lib_m_sin" >&6; }
17146: if test "x$ac_cv_lib_m_sin" = xyes; then :
17147:   cat >>confdefs.h <<_ACEOF
17148: #define HAVE_LIBM 1
17149: _ACEOF
17150: 
17151:   LIBS="-lm $LIBS"
17152: 
17153: fi
17154: 
17155: 
17156: 
17157:   unset ac_cv_func_inet_aton
17158:   unset ac_cv_func___inet_aton
17159:   unset found
17160: 
17161:   ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
17162: if test "x$ac_cv_func_inet_aton" = xyes; then :
17163:   found=yes
17164: else
17165:    ac_fn_c_check_func "$LINENO" "__inet_aton" "ac_cv_func___inet_aton"
17166: if test "x$ac_cv_func___inet_aton" = xyes; then :
17167:   found=yes
17168: else
17169:   found=no
17170: fi
17171: 
17172: fi
17173: 
17174: 
17175:   case $found in
17176:   yes)
17177: 
17178: $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
17179: 
17180:     ac_cv_func_inet_aton=yes
17181:   ;;
17182: 
17183:     *)
17184: 
17185:   unset ac_cv_lib_resolv_inet_aton
17186:   unset ac_cv_lib_resolv___inet_aton
17187:   unset found
17188:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
17189: $as_echo_n "checking for inet_aton in -lresolv... " >&6; }
17190: if ${ac_cv_lib_resolv_inet_aton+:} false; then :
17191:   $as_echo_n "(cached) " >&6
17192: else
17193:   ac_check_lib_save_LIBS=$LIBS
17194: LIBS="-lresolv  $LIBS"
17195: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17196: /* end confdefs.h.  */
17197: 
17198: /* Override any GCC internal prototype to avoid an error.
17199:    Use char because int might match the return type of a GCC
17200:    builtin and then its argument prototype would still apply.  */
17201: #ifdef __cplusplus
17202: extern "C"
17203: #endif
17204: char inet_aton ();
17205: int
17206: main ()
17207: {
17208: return inet_aton ();
17209:   ;
17210:   return 0;
17211: }
17212: _ACEOF
17213: if ac_fn_c_try_link "$LINENO"; then :
17214:   ac_cv_lib_resolv_inet_aton=yes
17215: else
17216:   ac_cv_lib_resolv_inet_aton=no
17217: fi
17218: rm -f core conftest.err conftest.$ac_objext \
17219:     conftest$ac_exeext conftest.$ac_ext
17220: LIBS=$ac_check_lib_save_LIBS
17221: fi
17222: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
17223: $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
17224: if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then :
17225:   found=yes
17226: else
17227: 
17228:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __inet_aton in -lresolv" >&5
17229: $as_echo_n "checking for __inet_aton in -lresolv... " >&6; }
17230: if ${ac_cv_lib_resolv___inet_aton+:} false; then :
17231:   $as_echo_n "(cached) " >&6
17232: else
17233:   ac_check_lib_save_LIBS=$LIBS
17234: LIBS="-lresolv  $LIBS"
17235: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17236: /* end confdefs.h.  */
17237: 
17238: /* Override any GCC internal prototype to avoid an error.
17239:    Use char because int might match the return type of a GCC
17240:    builtin and then its argument prototype would still apply.  */
17241: #ifdef __cplusplus
17242: extern "C"
17243: #endif
17244: char __inet_aton ();
17245: int
17246: main ()
17247: {
17248: return __inet_aton ();
17249:   ;
17250:   return 0;
17251: }
17252: _ACEOF
17253: if ac_fn_c_try_link "$LINENO"; then :
17254:   ac_cv_lib_resolv___inet_aton=yes
17255: else
17256:   ac_cv_lib_resolv___inet_aton=no
17257: fi
17258: rm -f core conftest.err conftest.$ac_objext \
17259:     conftest$ac_exeext conftest.$ac_ext
17260: LIBS=$ac_check_lib_save_LIBS
17261: fi
17262: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___inet_aton" >&5
17263: $as_echo "$ac_cv_lib_resolv___inet_aton" >&6; }
17264: if test "x$ac_cv_lib_resolv___inet_aton" = xyes; then :
17265:   found=yes
17266: else
17267:   found=no
17268: fi
17269: 
17270: 
17271: fi
17272: 
17273: 
17274:   if test "$found" = "yes"; then
17275:     ac_libs=$LIBS
17276:     LIBS="$LIBS -lresolv"
17277:     if test "$cross_compiling" = yes; then :
17278:   found=no
17279: else
17280:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17281: /* end confdefs.h.  */
17282: main() { return (0); }
17283: _ACEOF
17284: if ac_fn_c_try_run "$LINENO"; then :
17285:   found=yes
17286: else
17287:   found=no
17288: fi
17289: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17290:   conftest.$ac_objext conftest.beam conftest.$ac_ext
17291: fi
17292: 
17293:     LIBS=$ac_libs
17294:   fi
17295: 
17296:   if test "$found" = "yes"; then
17297: 
17298: 
17299:   case resolv in
17300:   c|c_r|pthread*) ;;
17301:   *)
17302:       LIBS="-lresolv $LIBS"
17303:    ;;
17304:   esac
17305: 
17306: 
17307: 
17308: $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
17309: 
17310: 
17311: $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
17312: 
17313:     ac_cv_func_inet_aton=yes
17314:   else
17315: 
17316: 
17317:   unset ac_cv_lib_bind_inet_aton
17318:   unset ac_cv_lib_bind___inet_aton
17319:   unset found
17320:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lbind" >&5
17321: $as_echo_n "checking for inet_aton in -lbind... " >&6; }
17322: if ${ac_cv_lib_bind_inet_aton+:} false; then :
17323:   $as_echo_n "(cached) " >&6
17324: else
17325:   ac_check_lib_save_LIBS=$LIBS
17326: LIBS="-lbind  $LIBS"
17327: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17328: /* end confdefs.h.  */
17329: 
17330: /* Override any GCC internal prototype to avoid an error.
17331:    Use char because int might match the return type of a GCC
17332:    builtin and then its argument prototype would still apply.  */
17333: #ifdef __cplusplus
17334: extern "C"
17335: #endif
17336: char inet_aton ();
17337: int
17338: main ()
17339: {
17340: return inet_aton ();
17341:   ;
17342:   return 0;
17343: }
17344: _ACEOF
17345: if ac_fn_c_try_link "$LINENO"; then :
17346:   ac_cv_lib_bind_inet_aton=yes
17347: else
17348:   ac_cv_lib_bind_inet_aton=no
17349: fi
17350: rm -f core conftest.err conftest.$ac_objext \
17351:     conftest$ac_exeext conftest.$ac_ext
17352: LIBS=$ac_check_lib_save_LIBS
17353: fi
17354: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_inet_aton" >&5
17355: $as_echo "$ac_cv_lib_bind_inet_aton" >&6; }
17356: if test "x$ac_cv_lib_bind_inet_aton" = xyes; then :
17357:   found=yes
17358: else
17359: 
17360:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __inet_aton in -lbind" >&5
17361: $as_echo_n "checking for __inet_aton in -lbind... " >&6; }
17362: if ${ac_cv_lib_bind___inet_aton+:} false; then :
17363:   $as_echo_n "(cached) " >&6
17364: else
17365:   ac_check_lib_save_LIBS=$LIBS
17366: LIBS="-lbind  $LIBS"
17367: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17368: /* end confdefs.h.  */
17369: 
17370: /* Override any GCC internal prototype to avoid an error.
17371:    Use char because int might match the return type of a GCC
17372:    builtin and then its argument prototype would still apply.  */
17373: #ifdef __cplusplus
17374: extern "C"
17375: #endif
17376: char __inet_aton ();
17377: int
17378: main ()
17379: {
17380: return __inet_aton ();
17381:   ;
17382:   return 0;
17383: }
17384: _ACEOF
17385: if ac_fn_c_try_link "$LINENO"; then :
17386:   ac_cv_lib_bind___inet_aton=yes
17387: else
17388:   ac_cv_lib_bind___inet_aton=no
17389: fi
17390: rm -f core conftest.err conftest.$ac_objext \
17391:     conftest$ac_exeext conftest.$ac_ext
17392: LIBS=$ac_check_lib_save_LIBS
17393: fi
17394: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind___inet_aton" >&5
17395: $as_echo "$ac_cv_lib_bind___inet_aton" >&6; }
17396: if test "x$ac_cv_lib_bind___inet_aton" = xyes; then :
17397:   found=yes
17398: else
17399:   found=no
17400: fi
17401: 
17402: 
17403: fi
17404: 
17405: 
17406:   if test "$found" = "yes"; then
17407:     ac_libs=$LIBS
17408:     LIBS="$LIBS -lbind"
17409:     if test "$cross_compiling" = yes; then :
17410:   found=no
17411: else
17412:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17413: /* end confdefs.h.  */
17414: main() { return (0); }
17415: _ACEOF
17416: if ac_fn_c_try_run "$LINENO"; then :
17417:   found=yes
17418: else
17419:   found=no
17420: fi
17421: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17422:   conftest.$ac_objext conftest.beam conftest.$ac_ext
17423: fi
17424: 
17425:     LIBS=$ac_libs
17426:   fi
17427: 
17428:   if test "$found" = "yes"; then
17429: 
17430: 
17431:   case bind in
17432:   c|c_r|pthread*) ;;
17433:   *)
17434:       LIBS="-lbind $LIBS"
17435:    ;;
17436:   esac
17437: 
17438: 
17439: 
17440: $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
17441: 
17442: 
17443: $as_echo "#define HAVE_LIBBIND 1" >>confdefs.h
17444: 
17445:     ac_cv_func_inet_aton=yes
17446:   else
17447: 
17448:   :
17449: 
17450:   fi
17451: 
17452: 
17453:   fi
17454: 
17455:  ;;
17456: 
17457:   esac
17458: 
17459: 
17460: 
17461: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
17462: $as_echo_n "checking for ANSI C header files... " >&6; }
17463: if ${ac_cv_header_stdc+:} false; then :
17464:   $as_echo_n "(cached) " >&6
17465: else
17466:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17467: /* end confdefs.h.  */
17468: #include <stdlib.h>
17469: #include <stdarg.h>
17470: #include <string.h>
17471: #include <float.h>
17472: 
17473: int
17474: main ()
17475: {
17476: 
17477:   ;
17478:   return 0;
17479: }
17480: _ACEOF
17481: if ac_fn_c_try_compile "$LINENO"; then :
17482:   ac_cv_header_stdc=yes
17483: else
17484:   ac_cv_header_stdc=no
17485: fi
17486: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17487: 
17488: if test $ac_cv_header_stdc = yes; then
17489:   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
17490:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17491: /* end confdefs.h.  */
17492: #include <string.h>
17493: 
17494: _ACEOF
17495: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17496:   $EGREP "memchr" >/dev/null 2>&1; then :
17497: 
17498: else
17499:   ac_cv_header_stdc=no
17500: fi
17501: rm -f conftest*
17502: 
17503: fi
17504: 
17505: if test $ac_cv_header_stdc = yes; then
17506:   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
17507:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17508: /* end confdefs.h.  */
17509: #include <stdlib.h>
17510: 
17511: _ACEOF
17512: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17513:   $EGREP "free" >/dev/null 2>&1; then :
17514: 
17515: else
17516:   ac_cv_header_stdc=no
17517: fi
17518: rm -f conftest*
17519: 
17520: fi
17521: 
17522: if test $ac_cv_header_stdc = yes; then
17523:   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
17524:   if test "$cross_compiling" = yes; then :
17525:   :
17526: else
17527:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17528: /* end confdefs.h.  */
17529: #include <ctype.h>
17530: #include <stdlib.h>
17531: #if ((' ' & 0x0FF) == 0x020)
17532: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
17533: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
17534: #else
17535: # define ISLOWER(c) \
17536: 		   (('a' <= (c) && (c) <= 'i') \
17537: 		     || ('j' <= (c) && (c) <= 'r') \
17538: 		     || ('s' <= (c) && (c) <= 'z'))
17539: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
17540: #endif
17541: 
17542: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
17543: int
17544: main ()
17545: {
17546:   int i;
17547:   for (i = 0; i < 256; i++)
17548:     if (XOR (islower (i), ISLOWER (i))
17549: 	|| toupper (i) != TOUPPER (i))
17550:       return 2;
17551:   return 0;
17552: }
17553: _ACEOF
17554: if ac_fn_c_try_run "$LINENO"; then :
17555: 
17556: else
17557:   ac_cv_header_stdc=no
17558: fi
17559: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17560:   conftest.$ac_objext conftest.beam conftest.$ac_ext
17561: fi
17562: 
17563: fi
17564: fi
17565: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
17566: $as_echo "$ac_cv_header_stdc" >&6; }
17567: if test $ac_cv_header_stdc = yes; then
17568: 
17569: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
17570: 
17571: fi
17572: 
17573: ac_header_dirent=no
17574: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
17575:   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
17576: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
17577: $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
17578: if eval \${$as_ac_Header+:} false; then :
17579:   $as_echo_n "(cached) " >&6
17580: else
17581:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17582: /* end confdefs.h.  */
17583: #include <sys/types.h>
17584: #include <$ac_hdr>
17585: 
17586: int
17587: main ()
17588: {
17589: if ((DIR *) 0)
17590: return 0;
17591:   ;
17592:   return 0;
17593: }
17594: _ACEOF
17595: if ac_fn_c_try_compile "$LINENO"; then :
17596:   eval "$as_ac_Header=yes"
17597: else
17598:   eval "$as_ac_Header=no"
17599: fi
17600: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17601: fi
17602: eval ac_res=\$$as_ac_Header
17603: 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17604: $as_echo "$ac_res" >&6; }
17605: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17606:   cat >>confdefs.h <<_ACEOF
17607: #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
17608: _ACEOF
17609: 
17610: ac_header_dirent=$ac_hdr; break
17611: fi
17612: 
17613: done
17614: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
17615: if test $ac_header_dirent = dirent.h; then
17616:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
17617: $as_echo_n "checking for library containing opendir... " >&6; }
17618: if ${ac_cv_search_opendir+:} false; then :
17619:   $as_echo_n "(cached) " >&6
17620: else
17621:   ac_func_search_save_LIBS=$LIBS
17622: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17623: /* end confdefs.h.  */
17624: 
17625: /* Override any GCC internal prototype to avoid an error.
17626:    Use char because int might match the return type of a GCC
17627:    builtin and then its argument prototype would still apply.  */
17628: #ifdef __cplusplus
17629: extern "C"
17630: #endif
17631: char opendir ();
17632: int
17633: main ()
17634: {
17635: return opendir ();
17636:   ;
17637:   return 0;
17638: }
17639: _ACEOF
17640: for ac_lib in '' dir; do
17641:   if test -z "$ac_lib"; then
17642:     ac_res="none required"
17643:   else
17644:     ac_res=-l$ac_lib
17645:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17646:   fi
17647:   if ac_fn_c_try_link "$LINENO"; then :
17648:   ac_cv_search_opendir=$ac_res
17649: fi
17650: rm -f core conftest.err conftest.$ac_objext \
17651:     conftest$ac_exeext
17652:   if ${ac_cv_search_opendir+:} false; then :
17653:   break
17654: fi
17655: done
17656: if ${ac_cv_search_opendir+:} false; then :
17657: 
17658: else
17659:   ac_cv_search_opendir=no
17660: fi
17661: rm conftest.$ac_ext
17662: LIBS=$ac_func_search_save_LIBS
17663: fi
17664: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
17665: $as_echo "$ac_cv_search_opendir" >&6; }
17666: ac_res=$ac_cv_search_opendir
17667: if test "$ac_res" != no; then :
17668:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17669: 
17670: fi
17671: 
17672: else
17673:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
17674: $as_echo_n "checking for library containing opendir... " >&6; }
17675: if ${ac_cv_search_opendir+:} false; then :
17676:   $as_echo_n "(cached) " >&6
17677: else
17678:   ac_func_search_save_LIBS=$LIBS
17679: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17680: /* end confdefs.h.  */
17681: 
17682: /* Override any GCC internal prototype to avoid an error.
17683:    Use char because int might match the return type of a GCC
17684:    builtin and then its argument prototype would still apply.  */
17685: #ifdef __cplusplus
17686: extern "C"
17687: #endif
17688: char opendir ();
17689: int
17690: main ()
17691: {
17692: return opendir ();
17693:   ;
17694:   return 0;
17695: }
17696: _ACEOF
17697: for ac_lib in '' x; do
17698:   if test -z "$ac_lib"; then
17699:     ac_res="none required"
17700:   else
17701:     ac_res=-l$ac_lib
17702:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17703:   fi
17704:   if ac_fn_c_try_link "$LINENO"; then :
17705:   ac_cv_search_opendir=$ac_res
17706: fi
17707: rm -f core conftest.err conftest.$ac_objext \
17708:     conftest$ac_exeext
17709:   if ${ac_cv_search_opendir+:} false; then :
17710:   break
17711: fi
17712: done
17713: if ${ac_cv_search_opendir+:} false; then :
17714: 
17715: else
17716:   ac_cv_search_opendir=no
17717: fi
17718: rm conftest.$ac_ext
17719: LIBS=$ac_func_search_save_LIBS
17720: fi
17721: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
17722: $as_echo "$ac_cv_search_opendir" >&6; }
17723: ac_res=$ac_cv_search_opendir
17724: if test "$ac_res" != no; then :
17725:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17726: 
17727: fi
17728: 
17729: fi
17730: 
17731: 
17732: for ac_header in  \
17733: inttypes.h \
17734: stdint.h \
17735: dirent.h \
17736: ApplicationServices/ApplicationServices.h \
17737: sys/param.h \
17738: sys/types.h \
17739: sys/time.h \
17740: netinet/in.h \
17741: alloca.h \
17742: arpa/inet.h \
17743: arpa/nameser.h \
17744: assert.h \
17745: crypt.h \
17746: dns.h \
17747: fcntl.h \
17748: grp.h \
17749: ieeefp.h \
17750: langinfo.h \
17751: limits.h \
17752: locale.h \
17753: monetary.h \
17754: netdb.h \
17755: pwd.h \
17756: resolv.h \
17757: signal.h \
17758: stdarg.h \
17759: stdlib.h \
17760: string.h \
17761: syslog.h \
17762: sysexits.h \
17763: sys/ioctl.h \
17764: sys/file.h \
17765: sys/mman.h \
17766: sys/mount.h \
17767: sys/poll.h \
17768: sys/resource.h \
17769: sys/select.h \
17770: sys/socket.h \
17771: sys/stat.h \
17772: sys/statfs.h \
17773: sys/statvfs.h \
17774: sys/vfs.h \
17775: sys/sysexits.h \
17776: sys/varargs.h \
17777: sys/wait.h \
17778: sys/loadavg.h \
17779: termios.h \
17780: unistd.h \
17781: unix.h \
17782: utime.h \
17783: sys/utsname.h \
17784: sys/ipc.h \
17785: dlfcn.h \
17786: assert.h
17787: 
17788: do :
17789:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17790: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
17791: #ifdef HAVE_SYS_PARAM_H
17792: #include <sys/param.h>
17793: #endif
17794: #ifdef HAVE_SYS_TYPES_H
17795: #include <sys/types.h>
17796: #endif
17797: #ifdef HAVE_SYS_TIME_H
17798: #include <sys/time.h>
17799: #endif
17800: #ifdef HAVE_NETINET_IN_H
17801: #include <netinet/in.h>
17802: #endif
17803: #ifdef HAVE_ARPA_NAMESER_H
17804: #include <arpa/nameser.h>
17805: #endif
17806: 
17807: "
17808: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17809:   cat >>confdefs.h <<_ACEOF
17810: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17811: _ACEOF
17812: 
17813: fi
17814: 
17815: done
17816: 
17817: 
17818: 
17819:   ac_fn_c_check_func "$LINENO" "fopencookie" "ac_cv_func_fopencookie"
17820: if test "x$ac_cv_func_fopencookie" = xyes; then :
17821:   have_glibc_fopencookie=yes
17822: fi
17823: 
17824: 
17825:   if test "$have_glibc_fopencookie" = "yes"; then
17826: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17827: /* end confdefs.h.  */
17828: 
17829: #define _GNU_SOURCE
17830: #include <stdio.h>
17831: 
17832: int
17833: main ()
17834: {
17835: cookie_io_functions_t cookie;
17836:   ;
17837:   return 0;
17838: }
17839: _ACEOF
17840: if ac_fn_c_try_compile "$LINENO"; then :
17841:   have_cookie_io_functions_t=yes
17842: fi
17843: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17844: 
17845:     if test "$have_cookie_io_functions_t" = "yes"; then
17846:       cookie_io_functions_t=cookie_io_functions_t
17847:       have_fopen_cookie=yes
17848: 
17849: if test "$cross_compiling" = yes; then :
17850: 
17851:   cookie_io_functions_use_off64_t=no
17852: 
17853: else
17854:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17855: /* end confdefs.h.  */
17856: 
17857: #define _GNU_SOURCE
17858: #include <stdio.h>
17859: 
17860: struct cookiedata {
17861:   __off64_t pos;
17862: };
17863: 
17864: __ssize_t reader(void *cookie, char *buffer, size_t size)
17865: { return size; }
17866: __ssize_t writer(void *cookie, const char *buffer, size_t size)
17867: { return size; }
17868: int closer(void *cookie)
17869: { return 0; }
17870: int seeker(void *cookie, __off64_t *position, int whence)
17871: { ((struct cookiedata*)cookie)->pos = *position; return 0; }
17872: 
17873: cookie_io_functions_t funcs = {reader, writer, seeker, closer};
17874: 
17875: main() {
17876:   struct cookiedata g = { 0 };
17877:   FILE *fp = fopencookie(&g, "r", funcs);
17878: 
17879:   if (fp && fseek(fp, 8192, SEEK_SET) == 0 && g.pos == 8192)
17880:     exit(0);
17881:   exit(1);
17882: }
17883: 
17884: 
17885: _ACEOF
17886: if ac_fn_c_try_run "$LINENO"; then :
17887: 
17888:   cookie_io_functions_use_off64_t=yes
17889: 
17890: else
17891: 
17892:   cookie_io_functions_use_off64_t=no
17893: 
17894: fi
17895: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17896:   conftest.$ac_objext conftest.beam conftest.$ac_ext
17897: fi
17898: 
17899: 
17900:     else
17901: 
17902: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17903: /* end confdefs.h.  */
17904: 
17905: #define _GNU_SOURCE
17906: #include <stdio.h>
17907: 
17908: int
17909: main ()
17910: {
17911:  _IO_cookie_io_functions_t cookie;
17912:   ;
17913:   return 0;
17914: }
17915: _ACEOF
17916: if ac_fn_c_try_compile "$LINENO"; then :
17917:   have_IO_cookie_io_functions_t=yes
17918: fi
17919: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17920:       if test "$have_cookie_io_functions_t" = "yes" ; then
17921:         cookie_io_functions_t=_IO_cookie_io_functions_t
17922:         have_fopen_cookie=yes
17923:       fi
17924:     fi
17925: 
17926:     if test "$have_fopen_cookie" = "yes" ; then
17927: 
17928: $as_echo "#define HAVE_FOPENCOOKIE 1" >>confdefs.h
17929: 
17930: 
17931: cat >>confdefs.h <<_ACEOF
17932: #define COOKIE_IO_FUNCTIONS_T $cookie_io_functions_t
17933: _ACEOF
17934: 
17935:       if test "$cookie_io_functions_use_off64_t" = "yes" ; then
17936: 
17937: $as_echo "#define COOKIE_SEEKER_USES_OFF64_T 1" >>confdefs.h
17938: 
17939:       fi
17940:     fi
17941:   fi
17942: 
17943: 
17944:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken getcwd" >&5
17945: $as_echo_n "checking for broken getcwd... " >&6; }
17946:   os=`uname -sr 2>/dev/null`
17947:   case $os in
17948:     SunOS*)
17949: 
17950: $as_echo "#define HAVE_BROKEN_GETCWD 1" >>confdefs.h
17951: 
17952:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17953: $as_echo "yes" >&6; };;
17954:     *)
17955:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17956: $as_echo "no" >&6; };;
17957:   esac
17958: 
17959: 
17960:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken libc stdio" >&5
17961: $as_echo_n "checking for broken libc stdio... " >&6; }
17962:   if ${_cv_have_broken_glibc_fopen_append+:} false; then :
17963:   $as_echo_n "(cached) " >&6
17964: else
17965: 
17966:   if test "$cross_compiling" = yes; then :
17967:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17968: /* end confdefs.h.  */
17969: 
17970: #include <features.h>
17971: 
17972: int
17973: main ()
17974: {
17975: 
17976: #if !__GLIBC_PREREQ(2,2)
17977: choke me
17978: #endif
17979: 
17980:   ;
17981:   return 0;
17982: }
17983: _ACEOF
17984: if ac_fn_c_try_compile "$LINENO"; then :
17985:   _cv_have_broken_glibc_fopen_append=yes
17986: else
17987:   _cv_have_broken_glibc_fopen_append=no
17988: fi
17989: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17990: 
17991: else
17992:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17993: /* end confdefs.h.  */
17994: 
17995: #include <stdio.h>
17996: int main(int argc, char *argv[])
17997: {
17998:   FILE *fp;
17999:   long position;
18000:   char *filename = "/tmp/phpglibccheck";
18001: 
18002:   fp = fopen(filename, "w");
18003:   if (fp == NULL) {
18004:     perror("fopen");
18005:     exit(2);
18006:   }
18007:   fputs("foobar", fp);
18008:   fclose(fp);
18009: 
18010:   fp = fopen(filename, "a+");
18011:   position = ftell(fp);
18012:   fclose(fp);
18013:   unlink(filename);
18014:   if (position == 0)
18015:   return 1;
18016:   return 0;
18017: }
18018: 
18019: _ACEOF
18020: if ac_fn_c_try_run "$LINENO"; then :
18021:   _cv_have_broken_glibc_fopen_append=no
18022: else
18023:   _cv_have_broken_glibc_fopen_append=yes
18024: fi
18025: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18026:   conftest.$ac_objext conftest.beam conftest.$ac_ext
18027: fi
18028: 
18029: fi
18030: 
18031: 
18032:   if test "$_cv_have_broken_glibc_fopen_append" = "yes"; then
18033:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18034: $as_echo "yes" >&6; }
18035: 
18036: $as_echo "#define HAVE_BROKEN_GLIBC_FOPEN_APPEND 1" >>confdefs.h
18037: 
18038:   else
18039:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18040: $as_echo "no" >&6; }
18041:   fi
18042: 
18043: 
18044: 
18045: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
18046: $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
18047: if ${ac_cv_struct_tm+:} false; then :
18048:   $as_echo_n "(cached) " >&6
18049: else
18050:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18051: /* end confdefs.h.  */
18052: #include <sys/types.h>
18053: #include <time.h>
18054: 
18055: int
18056: main ()
18057: {
18058: struct tm tm;
18059: 				     int *p = &tm.tm_sec;
18060: 				     return !p;
18061:   ;
18062:   return 0;
18063: }
18064: _ACEOF
18065: if ac_fn_c_try_compile "$LINENO"; then :
18066:   ac_cv_struct_tm=time.h
18067: else
18068:   ac_cv_struct_tm=sys/time.h
18069: fi
18070: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18071: fi
18072: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
18073: $as_echo "$ac_cv_struct_tm" >&6; }
18074: if test $ac_cv_struct_tm = sys/time.h; then
18075: 
18076: $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
18077: 
18078: fi
18079: 
18080: ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
18081: #include <$ac_cv_struct_tm>
18082: 
18083: "
18084: if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
18085: 
18086: cat >>confdefs.h <<_ACEOF
18087: #define HAVE_STRUCT_TM_TM_ZONE 1
18088: _ACEOF
18089: 
18090: 
18091: fi
18092: 
18093: if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
18094: 
18095: $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
18096: 
18097: else
18098:   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
18099: "
18100: if test "x$ac_cv_have_decl_tzname" = xyes; then :
18101:   ac_have_decl=1
18102: else
18103:   ac_have_decl=0
18104: fi
18105: 
18106: cat >>confdefs.h <<_ACEOF
18107: #define HAVE_DECL_TZNAME $ac_have_decl
18108: _ACEOF
18109: 
18110:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
18111: $as_echo_n "checking for tzname... " >&6; }
18112: if ${ac_cv_var_tzname+:} false; then :
18113:   $as_echo_n "(cached) " >&6
18114: else
18115:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18116: /* end confdefs.h.  */
18117: #include <time.h>
18118: #if !HAVE_DECL_TZNAME
18119: extern char *tzname[];
18120: #endif
18121: 
18122: int
18123: main ()
18124: {
18125: return tzname[0][0];
18126:   ;
18127:   return 0;
18128: }
18129: _ACEOF
18130: if ac_fn_c_try_link "$LINENO"; then :
18131:   ac_cv_var_tzname=yes
18132: else
18133:   ac_cv_var_tzname=no
18134: fi
18135: rm -f core conftest.err conftest.$ac_objext \
18136:     conftest$ac_exeext conftest.$ac_ext
18137: fi
18138: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
18139: $as_echo "$ac_cv_var_tzname" >&6; }
18140:   if test $ac_cv_var_tzname = yes; then
18141: 
18142: $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
18143: 
18144:   fi
18145: fi
18146: 
18147: 
18148: 
18149:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for missing declarations of reentrant functions" >&5
18150: $as_echo_n "checking for missing declarations of reentrant functions... " >&6; }
18151:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18152: /* end confdefs.h.  */
18153: #include <time.h>
18154: int
18155: main ()
18156: {
18157: struct tm *(*func)() = localtime_r
18158:   ;
18159:   return 0;
18160: }
18161: _ACEOF
18162: if ac_fn_c_try_compile "$LINENO"; then :
18163: 
18164:     :
18165: 
18166: else
18167: 
18168: 
18169: $as_echo "#define MISSING_LOCALTIME_R_DECL 1" >>confdefs.h
18170: 
18171: 
18172: fi
18173: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18174:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18175: /* end confdefs.h.  */
18176: #include <time.h>
18177: int
18178: main ()
18179: {
18180: struct tm *(*func)() = gmtime_r
18181:   ;
18182:   return 0;
18183: }
18184: _ACEOF
18185: if ac_fn_c_try_compile "$LINENO"; then :
18186: 
18187:     :
18188: 
18189: else
18190: 
18191: 
18192: $as_echo "#define MISSING_GMTIME_R_DECL 1" >>confdefs.h
18193: 
18194: 
18195: fi
18196: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18197:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18198: /* end confdefs.h.  */
18199: #include <time.h>
18200: int
18201: main ()
18202: {
18203: char *(*func)() = asctime_r
18204:   ;
18205:   return 0;
18206: }
18207: _ACEOF
18208: if ac_fn_c_try_compile "$LINENO"; then :
18209: 
18210:     :
18211: 
18212: else
18213: 
18214: 
18215: $as_echo "#define MISSING_ASCTIME_R_DECL 1" >>confdefs.h
18216: 
18217: 
18218: fi
18219: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18220:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18221: /* end confdefs.h.  */
18222: #include <time.h>
18223: int
18224: main ()
18225: {
18226: char *(*func)() = ctime_r
18227:   ;
18228:   return 0;
18229: }
18230: _ACEOF
18231: if ac_fn_c_try_compile "$LINENO"; then :
18232: 
18233:     :
18234: 
18235: else
18236: 
18237: 
18238: $as_echo "#define MISSING_CTIME_R_DECL 1" >>confdefs.h
18239: 
18240: 
18241: fi
18242: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18243:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18244: /* end confdefs.h.  */
18245: #include <string.h>
18246: int
18247: main ()
18248: {
18249: char *(*func)() = strtok_r
18250:   ;
18251:   return 0;
18252: }
18253: _ACEOF
18254: if ac_fn_c_try_compile "$LINENO"; then :
18255: 
18256:     :
18257: 
18258: else
18259: 
18260: 
18261: $as_echo "#define MISSING_STRTOK_R_DECL 1" >>confdefs.h
18262: 
18263: 
18264: fi
18265: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18266:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18267: $as_echo "done" >&6; }
18268: 
18269: 
18270:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fclose declaration" >&5
18271: $as_echo_n "checking for fclose declaration... " >&6; }
18272:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18273: /* end confdefs.h.  */
18274: #include <stdio.h>
18275: int
18276: main ()
18277: {
18278: int (*func)() = fclose
18279:   ;
18280:   return 0;
18281: }
18282: _ACEOF
18283: if ac_fn_c_try_compile "$LINENO"; then :
18284: 
18285: 
18286: $as_echo "#define MISSING_FCLOSE_DECL 0" >>confdefs.h
18287: 
18288:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
18289: $as_echo "ok" >&6; }
18290: 
18291: else
18292: 
18293: 
18294: $as_echo "#define MISSING_FCLOSE_DECL 1" >>confdefs.h
18295: 
18296:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: missing" >&5
18297: $as_echo "missing" >&6; }
18298: 
18299: fi
18300: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18301: 
18302: 
18303: 
18304: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5
18305: $as_echo_n "checking for tm_gmtoff in struct tm... " >&6; }
18306: if ${ac_cv_struct_tm_gmtoff+:} false; then :
18307:   $as_echo_n "(cached) " >&6
18308: else
18309:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18310: /* end confdefs.h.  */
18311: #include <sys/types.h>
18312: #include <$ac_cv_struct_tm>
18313: int
18314: main ()
18315: {
18316: struct tm tm; tm.tm_gmtoff;
18317:   ;
18318:   return 0;
18319: }
18320: _ACEOF
18321: if ac_fn_c_try_compile "$LINENO"; then :
18322:   ac_cv_struct_tm_gmtoff=yes
18323: else
18324:   ac_cv_struct_tm_gmtoff=no
18325: fi
18326: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18327: fi
18328: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_gmtoff" >&5
18329: $as_echo "$ac_cv_struct_tm_gmtoff" >&6; }
18330: 
18331: if test "$ac_cv_struct_tm_gmtoff" = yes; then
18332: 
18333: $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
18334: 
18335: fi
18336: 
18337: 
18338: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct flock" >&5
18339: $as_echo_n "checking for struct flock... " >&6; }
18340: if ${ac_cv_struct_flock+:} false; then :
18341:   $as_echo_n "(cached) " >&6
18342: else
18343:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18344: /* end confdefs.h.  */
18345: 
18346: #include <unistd.h>
18347: #include <fcntl.h>
18348: 
18349: int
18350: main ()
18351: {
18352: struct flock x;
18353:   ;
18354:   return 0;
18355: }
18356: _ACEOF
18357: if ac_fn_c_try_compile "$LINENO"; then :
18358: 
18359:           ac_cv_struct_flock=yes
18360: 
18361: else
18362: 
18363:           ac_cv_struct_flock=no
18364: 
18365: fi
18366: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18367: 
18368: fi
18369: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_flock" >&5
18370: $as_echo "$ac_cv_struct_flock" >&6; }
18371: if test "$ac_cv_struct_flock" = "yes" ; then
18372: 
18373: $as_echo "#define HAVE_STRUCT_FLOCK 1" >>confdefs.h
18374: 
18375: fi
18376: 
18377: 
18378: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
18379: $as_echo_n "checking for socklen_t... " >&6; }
18380: if ${ac_cv_socklen_t+:} false; then :
18381:   $as_echo_n "(cached) " >&6
18382: else
18383:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18384: /* end confdefs.h.  */
18385: 
18386: #include <sys/types.h>
18387: #include <sys/socket.h>
18388: 
18389: int
18390: main ()
18391: {
18392: 
18393: socklen_t x;
18394: 
18395:   ;
18396:   return 0;
18397: }
18398: _ACEOF
18399: if ac_fn_c_try_compile "$LINENO"; then :
18400: 
18401:   ac_cv_socklen_t=yes
18402: 
18403: else
18404: 
18405:   ac_cv_socklen_t=no
18406: 
18407: fi
18408: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18409: fi
18410: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_socklen_t" >&5
18411: $as_echo "$ac_cv_socklen_t" >&6; }
18412: if test "$ac_cv_socklen_t" = "yes"; then
18413: 
18414: $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
18415: 
18416: fi
18417: 
18418: 
18419: # The cast to long int works around a bug in the HP C Compiler
18420: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18421: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18422: # This bug is HP SR number 8606223364.
18423: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
18424: $as_echo_n "checking size of size_t... " >&6; }
18425: if ${ac_cv_sizeof_size_t+:} false; then :
18426:   $as_echo_n "(cached) " >&6
18427: else
18428:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
18429: 
18430: else
18431:   if test "$ac_cv_type_size_t" = yes; then
18432:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18433: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18434: as_fn_error 77 "cannot compute sizeof (size_t)
18435: See \`config.log' for more details" "$LINENO" 5; }
18436:    else
18437:      ac_cv_sizeof_size_t=0
18438:    fi
18439: fi
18440: 
18441: fi
18442: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
18443: $as_echo "$ac_cv_sizeof_size_t" >&6; }
18444: 
18445: 
18446: 
18447: cat >>confdefs.h <<_ACEOF
18448: #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
18449: _ACEOF
18450: 
18451: 
18452: # The cast to long int works around a bug in the HP C Compiler
18453: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18454: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18455: # This bug is HP SR number 8606223364.
18456: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
18457: $as_echo_n "checking size of long long... " >&6; }
18458: if ${ac_cv_sizeof_long_long+:} false; then :
18459:   $as_echo_n "(cached) " >&6
18460: else
18461:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
18462: 
18463: else
18464:   if test "$ac_cv_type_long_long" = yes; then
18465:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18466: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18467: as_fn_error 77 "cannot compute sizeof (long long)
18468: See \`config.log' for more details" "$LINENO" 5; }
18469:    else
18470:      ac_cv_sizeof_long_long=0
18471:    fi
18472: fi
18473: 
18474: fi
18475: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
18476: $as_echo "$ac_cv_sizeof_long_long" >&6; }
18477: 
18478: 
18479: 
18480: cat >>confdefs.h <<_ACEOF
18481: #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18482: _ACEOF
18483: 
18484: 
18485: # The cast to long int works around a bug in the HP C Compiler
18486: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18487: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18488: # This bug is HP SR number 8606223364.
18489: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
18490: $as_echo_n "checking size of long long int... " >&6; }
18491: if ${ac_cv_sizeof_long_long_int+:} false; then :
18492:   $as_echo_n "(cached) " >&6
18493: else
18494:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int"        "$ac_includes_default"; then :
18495: 
18496: else
18497:   if test "$ac_cv_type_long_long_int" = yes; then
18498:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18499: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18500: as_fn_error 77 "cannot compute sizeof (long long int)
18501: See \`config.log' for more details" "$LINENO" 5; }
18502:    else
18503:      ac_cv_sizeof_long_long_int=0
18504:    fi
18505: fi
18506: 
18507: fi
18508: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
18509: $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
18510: 
18511: 
18512: 
18513: cat >>confdefs.h <<_ACEOF
18514: #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
18515: _ACEOF
18516: 
18517: 
18518: # The cast to long int works around a bug in the HP C Compiler
18519: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18520: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18521: # This bug is HP SR number 8606223364.
18522: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
18523: $as_echo_n "checking size of long... " >&6; }
18524: if ${ac_cv_sizeof_long+:} false; then :
18525:   $as_echo_n "(cached) " >&6
18526: else
18527:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
18528: 
18529: else
18530:   if test "$ac_cv_type_long" = yes; then
18531:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18532: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18533: as_fn_error 77 "cannot compute sizeof (long)
18534: See \`config.log' for more details" "$LINENO" 5; }
18535:    else
18536:      ac_cv_sizeof_long=0
18537:    fi
18538: fi
18539: 
18540: fi
18541: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
18542: $as_echo "$ac_cv_sizeof_long" >&6; }
18543: 
18544: 
18545: 
18546: cat >>confdefs.h <<_ACEOF
18547: #define SIZEOF_LONG $ac_cv_sizeof_long
18548: _ACEOF
18549: 
18550: 
18551: # The cast to long int works around a bug in the HP C Compiler
18552: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18553: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18554: # This bug is HP SR number 8606223364.
18555: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
18556: $as_echo_n "checking size of int... " >&6; }
18557: if ${ac_cv_sizeof_int+:} false; then :
18558:   $as_echo_n "(cached) " >&6
18559: else
18560:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
18561: 
18562: else
18563:   if test "$ac_cv_type_int" = yes; then
18564:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18565: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18566: as_fn_error 77 "cannot compute sizeof (int)
18567: See \`config.log' for more details" "$LINENO" 5; }
18568:    else
18569:      ac_cv_sizeof_int=0
18570:    fi
18571: fi
18572: 
18573: fi
18574: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
18575: $as_echo "$ac_cv_sizeof_int" >&6; }
18576: 
18577: 
18578: 
18579: cat >>confdefs.h <<_ACEOF
18580: #define SIZEOF_INT $ac_cv_sizeof_int
18581: _ACEOF
18582: 
18583: 
18584: 
18585: 
18586:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of intmax_t" >&5
18587: $as_echo_n "checking size of intmax_t... " >&6; }
18588: 
18589:   php_cache_value=php_cv_sizeof_intmax_t
18590:   if ${php_cv_sizeof_intmax_t+:} false; then :
18591:   $as_echo_n "(cached) " >&6
18592: else
18593: 
18594:     old_LIBS=$LIBS
18595:     LIBS=
18596:     old_LDFLAGS=$LDFLAGS
18597:     LDFLAGS=
18598:     if test "$cross_compiling" = yes; then :
18599: 
18600:     eval $php_cache_value=0
18601: 
18602: else
18603:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18604: /* end confdefs.h.  */
18605: #include <stdio.h>
18606: #if STDC_HEADERS
18607: #include <stdlib.h>
18608: #include <stddef.h>
18609: #endif
18610: #ifdef HAVE_INTTYPES_H
18611: #include <inttypes.h>
18612: #endif
18613: #ifdef HAVE_UNISTD_H
18614: #include <unistd.h>
18615: #endif
18616: 
18617: 
18618: int main()
18619: {
18620: 	FILE *fp = fopen("conftestval", "w");
18621: 	if (!fp) return(1);
18622: 	fprintf(fp, "%d\n", sizeof(intmax_t));
18623: 	return(0);
18624: }
18625: 
18626: _ACEOF
18627: if ac_fn_c_try_run "$LINENO"; then :
18628: 
18629:     eval $php_cache_value=`cat conftestval`
18630: 
18631: else
18632: 
18633:     eval $php_cache_value=0
18634: 
18635: fi
18636: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18637:   conftest.$ac_objext conftest.beam conftest.$ac_ext
18638: fi
18639: 
18640:   LDFLAGS=$old_LDFLAGS
18641:   LIBS=$old_LIBS
18642: 
18643: fi
18644: 
18645:   if eval test "\$$php_cache_value" != "0"; then
18646: 
18647: 
18648: cat >>confdefs.h <<_ACEOF
18649: #define SIZEOF_INTMAX_T $php_cv_sizeof_intmax_t
18650: _ACEOF
18651: 
18652: 
18653: cat >>confdefs.h <<_ACEOF
18654: #define HAVE_INTMAX_T 1
18655: _ACEOF
18656: 
18657: 
18658: 
18659:   fi
18660: 
18661:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_sizeof_intmax_t" >&5
18662: $as_echo "$php_cv_sizeof_intmax_t" >&6; }
18663: 
18664: 
18665:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
18666: $as_echo_n "checking size of ssize_t... " >&6; }
18667: 
18668:   php_cache_value=php_cv_sizeof_ssize_t
18669:   if ${php_cv_sizeof_ssize_t+:} false; then :
18670:   $as_echo_n "(cached) " >&6
18671: else
18672: 
18673:     old_LIBS=$LIBS
18674:     LIBS=
18675:     old_LDFLAGS=$LDFLAGS
18676:     LDFLAGS=
18677:     if test "$cross_compiling" = yes; then :
18678: 
18679:     eval $php_cache_value=8
18680: 
18681: else
18682:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18683: /* end confdefs.h.  */
18684: #include <stdio.h>
18685: #if STDC_HEADERS
18686: #include <stdlib.h>
18687: #include <stddef.h>
18688: #endif
18689: #ifdef HAVE_INTTYPES_H
18690: #include <inttypes.h>
18691: #endif
18692: #ifdef HAVE_UNISTD_H
18693: #include <unistd.h>
18694: #endif
18695: 
18696: 
18697: int main()
18698: {
18699: 	FILE *fp = fopen("conftestval", "w");
18700: 	if (!fp) return(1);
18701: 	fprintf(fp, "%d\n", sizeof(ssize_t));
18702: 	return(0);
18703: }
18704: 
18705: _ACEOF
18706: if ac_fn_c_try_run "$LINENO"; then :
18707: 
18708:     eval $php_cache_value=`cat conftestval`
18709: 
18710: else
18711: 
18712:     eval $php_cache_value=0
18713: 
18714: fi
18715: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18716:   conftest.$ac_objext conftest.beam conftest.$ac_ext
18717: fi
18718: 
18719:   LDFLAGS=$old_LDFLAGS
18720:   LIBS=$old_LIBS
18721: 
18722: fi
18723: 
18724:   if eval test "\$$php_cache_value" != "0"; then
18725: 
18726: 
18727: cat >>confdefs.h <<_ACEOF
18728: #define SIZEOF_SSIZE_T $php_cv_sizeof_ssize_t
18729: _ACEOF
18730: 
18731: 
18732: cat >>confdefs.h <<_ACEOF
18733: #define HAVE_SSIZE_T 1
18734: _ACEOF
18735: 
18736: 
18737: 
18738:   fi
18739: 
18740:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_sizeof_ssize_t" >&5
18741: $as_echo "$php_cv_sizeof_ssize_t" >&6; }
18742: 
18743: 
18744:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ptrdiff_t" >&5
18745: $as_echo_n "checking size of ptrdiff_t... " >&6; }
18746: 
18747:   php_cache_value=php_cv_sizeof_ptrdiff_t
18748:   if ${php_cv_sizeof_ptrdiff_t+:} false; then :
18749:   $as_echo_n "(cached) " >&6
18750: else
18751: 
18752:     old_LIBS=$LIBS
18753:     LIBS=
18754:     old_LDFLAGS=$LDFLAGS
18755:     LDFLAGS=
18756:     if test "$cross_compiling" = yes; then :
18757: 
18758:     eval $php_cache_value=8
18759: 
18760: else
18761:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18762: /* end confdefs.h.  */
18763: #include <stdio.h>
18764: #if STDC_HEADERS
18765: #include <stdlib.h>
18766: #include <stddef.h>
18767: #endif
18768: #ifdef HAVE_INTTYPES_H
18769: #include <inttypes.h>
18770: #endif
18771: #ifdef HAVE_UNISTD_H
18772: #include <unistd.h>
18773: #endif
18774: 
18775: 
18776: int main()
18777: {
18778: 	FILE *fp = fopen("conftestval", "w");
18779: 	if (!fp) return(1);
18780: 	fprintf(fp, "%d\n", sizeof(ptrdiff_t));
18781: 	return(0);
18782: }
18783: 
18784: _ACEOF
18785: if ac_fn_c_try_run "$LINENO"; then :
18786: 
18787:     eval $php_cache_value=`cat conftestval`
18788: 
18789: else
18790: 
18791:     eval $php_cache_value=0
18792: 
18793: fi
18794: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18795:   conftest.$ac_objext conftest.beam conftest.$ac_ext
18796: fi
18797: 
18798:   LDFLAGS=$old_LDFLAGS
18799:   LIBS=$old_LIBS
18800: 
18801: fi
18802: 
18803:   if eval test "\$$php_cache_value" != "0"; then
18804: 
18805: 
18806: cat >>confdefs.h <<_ACEOF
18807: #define SIZEOF_PTRDIFF_T $php_cv_sizeof_ptrdiff_t
18808: _ACEOF
18809: 
18810: 
18811: cat >>confdefs.h <<_ACEOF
18812: #define HAVE_PTRDIFF_T 1
18813: _ACEOF
18814: 
18815: 
18816: 
18817:   fi
18818: 
18819:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_sizeof_ptrdiff_t" >&5
18820: $as_echo "$php_cv_sizeof_ptrdiff_t" >&6; }
18821: 
18822: 
18823: ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
18824: if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
18825: 
18826: cat >>confdefs.h <<_ACEOF
18827: #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
18828: _ACEOF
18829: 
18830: 
18831: $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
18832: 
18833: fi
18834: 
18835: 
18836: if test "`uname -s 2>/dev/null`" != "QNX"; then
18837:   ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
18838: if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
18839: 
18840: cat >>confdefs.h <<_ACEOF
18841: #define HAVE_STRUCT_STAT_ST_BLOCKS 1
18842: _ACEOF
18843: 
18844: 
18845: $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
18846: 
18847: else
18848:   case " $LIBOBJS " in
18849:   *" fileblocks.$ac_objext "* ) ;;
18850:   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
18851:  ;;
18852: esac
18853: 
18854: fi
18855: 
18856: 
18857: else
18858:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: warnings level for cc set to 0" >&5
18859: $as_echo "$as_me: WARNING: warnings level for cc set to 0" >&2;}
18860:   WARNING_LEVEL=0
18861: fi
18862: ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
18863: if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
18864: 
18865: cat >>confdefs.h <<_ACEOF
18866: #define HAVE_STRUCT_STAT_ST_RDEV 1
18867: _ACEOF
18868: 
18869: 
18870: $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
18871: 
18872: fi
18873: 
18874: 
18875: 
18876: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18877: if test "x$ac_cv_type_size_t" = xyes; then :
18878: 
18879: else
18880: 
18881: cat >>confdefs.h <<_ACEOF
18882: #define size_t unsigned int
18883: _ACEOF
18884: 
18885: fi
18886: 
18887: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
18888: $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
18889: if ${ac_cv_type_uid_t+:} false; then :
18890:   $as_echo_n "(cached) " >&6
18891: else
18892:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18893: /* end confdefs.h.  */
18894: #include <sys/types.h>
18895: 
18896: _ACEOF
18897: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18898:   $EGREP "uid_t" >/dev/null 2>&1; then :
18899:   ac_cv_type_uid_t=yes
18900: else
18901:   ac_cv_type_uid_t=no
18902: fi
18903: rm -f conftest*
18904: 
18905: fi
18906: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
18907: $as_echo "$ac_cv_type_uid_t" >&6; }
18908: if test $ac_cv_type_uid_t = no; then
18909: 
18910: $as_echo "#define uid_t int" >>confdefs.h
18911: 
18912: 
18913: $as_echo "#define gid_t int" >>confdefs.h
18914: 
18915: fi
18916: 
18917: 
18918: 
18919:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
18920: $as_echo_n "checking for struct sockaddr_storage... " >&6; }
18921: if ${ac_cv_sockaddr_storage+:} false; then :
18922:   $as_echo_n "(cached) " >&6
18923: else
18924:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18925: /* end confdefs.h.  */
18926: #include <sys/types.h>
18927: #include <sys/socket.h>
18928: int
18929: main ()
18930: {
18931: struct sockaddr_storage s; s
18932:   ;
18933:   return 0;
18934: }
18935: _ACEOF
18936: if ac_fn_c_try_compile "$LINENO"; then :
18937:   ac_cv_sockaddr_storage=yes
18938: else
18939:   ac_cv_sockaddr_storage=no
18940: fi
18941: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18942: 
18943: fi
18944: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sockaddr_storage" >&5
18945: $as_echo "$ac_cv_sockaddr_storage" >&6; }
18946:   if test "$ac_cv_sockaddr_storage" = "yes"; then
18947: 
18948: $as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h
18949: 
18950:   fi
18951:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for field sa_len in struct sockaddr" >&5
18952: $as_echo_n "checking for field sa_len in struct sockaddr... " >&6; }
18953: if ${ac_cv_sockaddr_sa_len+:} false; then :
18954:   $as_echo_n "(cached) " >&6
18955: else
18956: 
18957:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18958: /* end confdefs.h.  */
18959: #include <sys/types.h>
18960: #include <sys/socket.h>
18961: int
18962: main ()
18963: {
18964: static struct sockaddr sa; int n = (int) sa.sa_len; return n;
18965:   ;
18966:   return 0;
18967: }
18968: _ACEOF
18969: if ac_fn_c_try_compile "$LINENO"; then :
18970:   ac_cv_sockaddr_sa_len=yes
18971: else
18972:   ac_cv_sockaddr_sa_len=no
18973: fi
18974: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18975: 
18976: fi
18977: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sockaddr_sa_len" >&5
18978: $as_echo "$ac_cv_sockaddr_sa_len" >&6; }
18979:   if test "$ac_cv_sockaddr_sa_len" = "yes"; then
18980: 
18981: $as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h
18982: 
18983:   fi
18984: 
18985: 
18986: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 support" >&5
18987: $as_echo_n "checking for IPv6 support... " >&6; }
18988: if ${ac_cv_ipv6_support+:} false; then :
18989:   $as_echo_n "(cached) " >&6
18990: else
18991:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18992: /* end confdefs.h.  */
18993:  #include <sys/types.h>
18994: #include <sys/socket.h>
18995: #include <netinet/in.h>
18996: int
18997: main ()
18998: {
18999: struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
19000:   ;
19001:   return 0;
19002: }
19003: _ACEOF
19004: if ac_fn_c_try_link "$LINENO"; then :
19005:   ac_cv_ipv6_support=yes
19006: else
19007:   ac_cv_ipv6_support=no
19008: fi
19009: rm -f core conftest.err conftest.$ac_objext \
19010:     conftest$ac_exeext conftest.$ac_ext
19011: fi
19012: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ipv6_support" >&5
19013: $as_echo "$ac_cv_ipv6_support" >&6; }
19014: 
19015: 
19016: for ac_func in vprintf
19017: do :
19018:   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
19019: if test "x$ac_cv_func_vprintf" = xyes; then :
19020:   cat >>confdefs.h <<_ACEOF
19021: #define HAVE_VPRINTF 1
19022: _ACEOF
19023: 
19024: ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
19025: if test "x$ac_cv_func__doprnt" = xyes; then :
19026: 
19027: $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
19028: 
19029: fi
19030: 
19031: fi
19032: done
19033: 
19034: 
19035: for ac_func in alphasort \
19036: asctime_r \
19037: chroot \
19038: ctime_r \
19039: cuserid \
19040: crypt \
19041: flock \
19042: ftok \
19043: funopen \
19044: gai_strerror \
19045: gcvt \
19046: getloadavg \
19047: getlogin \
19048: getprotobyname \
19049: getprotobynumber \
19050: getservbyname \
19051: getservbyport \
19052: gethostname \
19053: getrusage \
19054: gettimeofday \
19055: gmtime_r \
19056: getpwnam_r \
19057: getgrnam_r \
19058: getpwuid_r \
19059: grantpt \
19060: inet_ntoa \
19061: inet_ntop \
19062: inet_pton \
19063: isascii \
19064: link \
19065: localtime_r \
19066: lockf \
19067: lchown \
19068: lrand48 \
19069: memcpy \
19070: memmove \
19071: mkstemp \
19072: mmap \
19073: nl_langinfo \
19074: perror \
19075: poll \
19076: ptsname \
19077: putenv \
19078: realpath \
19079: random \
19080: rand_r \
19081: scandir \
19082: setitimer \
19083: setlocale \
19084: localeconv \
19085: setenv \
19086: setpgid \
19087: setsockopt \
19088: setvbuf \
19089: shutdown \
19090: sin \
19091: snprintf \
19092: srand48 \
19093: srandom \
19094: statfs \
19095: statvfs \
19096: std_syslog \
19097: strcasecmp \
19098: strcoll \
19099: strdup \
19100: strerror \
19101: strftime \
19102: strnlen \
19103: strptime \
19104: strstr \
19105: strtok_r \
19106: symlink \
19107: tempnam \
19108: tzset \
19109: unlockpt \
19110: unsetenv \
19111: usleep \
19112: utime \
19113: vsnprintf \
19114: vasprintf \
19115: asprintf \
19116: nanosleep \
19117: 
19118: do :
19119:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19120: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19121: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19122:   cat >>confdefs.h <<_ACEOF
19123: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19124: _ACEOF
19125: 
19126: fi
19127: done
19128: 
19129: 
19130: 
19131: 
19132:   unset ac_cv_lib_rt_nanosleep
19133:   unset ac_cv_lib_rt___nanosleep
19134:   unset found
19135:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
19136: $as_echo_n "checking for nanosleep in -lrt... " >&6; }
19137: if ${ac_cv_lib_rt_nanosleep+:} false; then :
19138:   $as_echo_n "(cached) " >&6
19139: else
19140:   ac_check_lib_save_LIBS=$LIBS
19141: LIBS="-lrt  $LIBS"
19142: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19143: /* end confdefs.h.  */
19144: 
19145: /* Override any GCC internal prototype to avoid an error.
19146:    Use char because int might match the return type of a GCC
19147:    builtin and then its argument prototype would still apply.  */
19148: #ifdef __cplusplus
19149: extern "C"
19150: #endif
19151: char nanosleep ();
19152: int
19153: main ()
19154: {
19155: return nanosleep ();
19156:   ;
19157:   return 0;
19158: }
19159: _ACEOF
19160: if ac_fn_c_try_link "$LINENO"; then :
19161:   ac_cv_lib_rt_nanosleep=yes
19162: else
19163:   ac_cv_lib_rt_nanosleep=no
19164: fi
19165: rm -f core conftest.err conftest.$ac_objext \
19166:     conftest$ac_exeext conftest.$ac_ext
19167: LIBS=$ac_check_lib_save_LIBS
19168: fi
19169: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
19170: $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
19171: if test "x$ac_cv_lib_rt_nanosleep" = xyes; then :
19172:   found=yes
19173: else
19174: 
19175:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __nanosleep in -lrt" >&5
19176: $as_echo_n "checking for __nanosleep in -lrt... " >&6; }
19177: if ${ac_cv_lib_rt___nanosleep+:} false; then :
19178:   $as_echo_n "(cached) " >&6
19179: else
19180:   ac_check_lib_save_LIBS=$LIBS
19181: LIBS="-lrt  $LIBS"
19182: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19183: /* end confdefs.h.  */
19184: 
19185: /* Override any GCC internal prototype to avoid an error.
19186:    Use char because int might match the return type of a GCC
19187:    builtin and then its argument prototype would still apply.  */
19188: #ifdef __cplusplus
19189: extern "C"
19190: #endif
19191: char __nanosleep ();
19192: int
19193: main ()
19194: {
19195: return __nanosleep ();
19196:   ;
19197:   return 0;
19198: }
19199: _ACEOF
19200: if ac_fn_c_try_link "$LINENO"; then :
19201:   ac_cv_lib_rt___nanosleep=yes
19202: else
19203:   ac_cv_lib_rt___nanosleep=no
19204: fi
19205: rm -f core conftest.err conftest.$ac_objext \
19206:     conftest$ac_exeext conftest.$ac_ext
19207: LIBS=$ac_check_lib_save_LIBS
19208: fi
19209: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt___nanosleep" >&5
19210: $as_echo "$ac_cv_lib_rt___nanosleep" >&6; }
19211: if test "x$ac_cv_lib_rt___nanosleep" = xyes; then :
19212:   found=yes
19213: else
19214:   found=no
19215: fi
19216: 
19217: 
19218: fi
19219: 
19220: 
19221:   if test "$found" = "yes"; then
19222:     ac_libs=$LIBS
19223:     LIBS="$LIBS -lrt"
19224:     if test "$cross_compiling" = yes; then :
19225:   found=no
19226: else
19227:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19228: /* end confdefs.h.  */
19229: main() { return (0); }
19230: _ACEOF
19231: if ac_fn_c_try_run "$LINENO"; then :
19232:   found=yes
19233: else
19234:   found=no
19235: fi
19236: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19237:   conftest.$ac_objext conftest.beam conftest.$ac_ext
19238: fi
19239: 
19240:     LIBS=$ac_libs
19241:   fi
19242: 
19243:   if test "$found" = "yes"; then
19244: 
19245: 
19246:   case rt in
19247:   c|c_r|pthread*) ;;
19248:   *)
19249:       LIBS="-lrt $LIBS"
19250:    ;;
19251:   esac
19252: 
19253: 
19254: 
19255: $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
19256: 
19257: 
19258: $as_echo "#define HAVE_LIBRT 1" >>confdefs.h
19259: 
19260:     ac_cv_func_nanosleep=yes
19261:   else
19262: 
19263:   :
19264: 
19265:   fi
19266: 
19267: 
19268: 
19269: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
19270: $as_echo_n "checking for getaddrinfo... " >&6; }
19271: if ${ac_cv_func_getaddrinfo+:} false; then :
19272:   $as_echo_n "(cached) " >&6
19273: else
19274:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19275: /* end confdefs.h.  */
19276: #include <netdb.h>
19277: int
19278: main ()
19279: {
19280: struct addrinfo *g,h;g=&h;getaddrinfo("","",g,&g);
19281:   ;
19282:   return 0;
19283: }
19284: _ACEOF
19285: if ac_fn_c_try_link "$LINENO"; then :
19286:   if test "$cross_compiling" = yes; then :
19287:   ac_cv_func_getaddrinfo=no
19288: else
19289:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19290: /* end confdefs.h.  */
19291: 
19292: #include <netdb.h>
19293: #include <sys/types.h>
19294: #ifndef AF_INET
19295: # include <sys/socket.h>
19296: #endif
19297: int main(void) {
19298:   struct addrinfo *ai, *pai, hints;
19299: 
19300:   memset(&hints, 0, sizeof(hints));
19301:   hints.ai_flags = AI_NUMERICHOST;
19302: 
19303:   if (getaddrinfo("127.0.0.1", 0, &hints, &ai) < 0) {
19304:     exit(1);
19305:   }
19306: 
19307:   if (ai == 0) {
19308:     exit(1);
19309:   }
19310: 
19311:   pai = ai;
19312: 
19313:   while (pai) {
19314:     if (pai->ai_family != AF_INET) {
19315:       /* 127.0.0.1/NUMERICHOST should only resolve ONE way */
19316:       exit(1);
19317:     }
19318:     if (pai->ai_addr->sa_family != AF_INET) {
19319:       /* 127.0.0.1/NUMERICHOST should only resolve ONE way */
19320:       exit(1);
19321:     }
19322:     pai = pai->ai_next;
19323:   }
19324:   freeaddrinfo(ai);
19325:   exit(0);
19326: }
19327: 
19328: _ACEOF
19329: if ac_fn_c_try_run "$LINENO"; then :
19330:   ac_cv_func_getaddrinfo=yes
19331: else
19332:   ac_cv_func_getaddrinfo=no
19333: fi
19334: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19335:   conftest.$ac_objext conftest.beam conftest.$ac_ext
19336: fi
19337: 
19338: else
19339:   ac_cv_func_getaddrinfo=no
19340: fi
19341: rm -f core conftest.err conftest.$ac_objext \
19342:     conftest$ac_exeext conftest.$ac_ext
19343: fi
19344: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5
19345: $as_echo "$ac_cv_func_getaddrinfo" >&6; }
19346: if test "$ac_cv_func_getaddrinfo" = yes; then
19347: 
19348: $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
19349: 
19350: fi
19351: 
19352: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_fetch_and_add" >&5
19353: $as_echo_n "checking for __sync_fetch_and_add... " >&6; }
19354: if ${ac_cv_func_sync_fetch_and_add+:} false; then :
19355:   $as_echo_n "(cached) " >&6
19356: else
19357:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19358: /* end confdefs.h.  */
19359: 
19360: int
19361: main ()
19362: {
19363: int x;__sync_fetch_and_add(&x,1);
19364:   ;
19365:   return 0;
19366: }
19367: _ACEOF
19368: if ac_fn_c_try_link "$LINENO"; then :
19369:   ac_cv_func_sync_fetch_and_add=yes
19370: else
19371:   ac_cv_func_sync_fetch_and_add=no
19372: fi
19373: rm -f core conftest.err conftest.$ac_objext \
19374:     conftest$ac_exeext conftest.$ac_ext
19375: fi
19376: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_sync_fetch_and_add" >&5
19377: $as_echo "$ac_cv_func_sync_fetch_and_add" >&6; }
19378: if test "$ac_cv_func_sync_fetch_and_add" = yes; then
19379: 
19380: $as_echo "#define HAVE_SYNC_FETCH_AND_ADD 1" >>confdefs.h
19381: 
19382: fi
19383: 
19384: ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
19385: if test "x$ac_cv_func_strlcat" = xyes; then :
19386:   $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
19387: 
19388: else
19389:   case " $LIBOBJS " in
19390:   *" strlcat.$ac_objext "* ) ;;
19391:   *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
19392:  ;;
19393: esac
19394: 
19395: fi
19396: 
19397: ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
19398: if test "x$ac_cv_func_strlcpy" = xyes; then :
19399:   $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
19400: 
19401: else
19402:   case " $LIBOBJS " in
19403:   *" strlcpy.$ac_objext "* ) ;;
19404:   *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
19405:  ;;
19406: esac
19407: 
19408: fi
19409: 
19410: ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
19411: if test "x$ac_cv_func_getopt" = xyes; then :
19412:   $as_echo "#define HAVE_GETOPT 1" >>confdefs.h
19413: 
19414: else
19415:   case " $LIBOBJS " in
19416:   *" getopt.$ac_objext "* ) ;;
19417:   *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
19418:  ;;
19419: esac
19420: 
19421: fi
19422: 
19423: 
19424: 
19425: 
19426: 
19427:   for ac_header in $ac_header_list
19428: do :
19429:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19430: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
19431: "
19432: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19433:   cat >>confdefs.h <<_ACEOF
19434: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19435: _ACEOF
19436: 
19437: fi
19438: 
19439: done
19440: 
19441: 
19442: 
19443: 
19444: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether utime accepts a null argument" >&5
19445: $as_echo_n "checking whether utime accepts a null argument... " >&6; }
19446: if ${ac_cv_func_utime_null+:} false; then :
19447:   $as_echo_n "(cached) " >&6
19448: else
19449:   rm -f conftest.data; >conftest.data
19450: # Sequent interprets utime(file, 0) to mean use start of epoch.  Wrong.
19451: if test "$cross_compiling" = yes; then :
19452:   ac_cv_func_utime_null='guessing yes'
19453: else
19454:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19455: /* end confdefs.h.  */
19456: $ac_includes_default
19457: 	       #ifdef HAVE_UTIME_H
19458: 	       # include <utime.h>
19459: 	       #endif
19460: int
19461: main ()
19462: {
19463: struct stat s, t;
19464:   return ! (stat ("conftest.data", &s) == 0
19465: 	    && utime ("conftest.data", 0) == 0
19466: 	    && stat ("conftest.data", &t) == 0
19467: 	    && t.st_mtime >= s.st_mtime
19468: 	    && t.st_mtime - s.st_mtime < 120);
19469:   ;
19470:   return 0;
19471: }
19472: _ACEOF
19473: if ac_fn_c_try_run "$LINENO"; then :
19474:   ac_cv_func_utime_null=yes
19475: else
19476:   ac_cv_func_utime_null=no
19477: fi
19478: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19479:   conftest.$ac_objext conftest.beam conftest.$ac_ext
19480: fi
19481: 
19482: fi
19483: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_utime_null" >&5
19484: $as_echo "$ac_cv_func_utime_null" >&6; }
19485: if test "x$ac_cv_func_utime_null" != xno; then
19486:   ac_cv_func_utime_null=yes
19487: 
19488: $as_echo "#define HAVE_UTIME_NULL 1" >>confdefs.h
19489: 
19490: fi
19491: rm -f conftest.data
19492: 
19493: # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19494: # for constant arguments.  Useless!
19495: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
19496: $as_echo_n "checking for working alloca.h... " >&6; }
19497: if ${ac_cv_working_alloca_h+:} false; then :
19498:   $as_echo_n "(cached) " >&6
19499: else
19500:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19501: /* end confdefs.h.  */
19502: #include <alloca.h>
19503: int
19504: main ()
19505: {
19506: char *p = (char *) alloca (2 * sizeof (int));
19507: 			  if (p) return 0;
19508:   ;
19509:   return 0;
19510: }
19511: _ACEOF
19512: if ac_fn_c_try_link "$LINENO"; then :
19513:   ac_cv_working_alloca_h=yes
19514: else
19515:   ac_cv_working_alloca_h=no
19516: fi
19517: rm -f core conftest.err conftest.$ac_objext \
19518:     conftest$ac_exeext conftest.$ac_ext
19519: fi
19520: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
19521: $as_echo "$ac_cv_working_alloca_h" >&6; }
19522: if test $ac_cv_working_alloca_h = yes; then
19523: 
19524: $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
19525: 
19526: fi
19527: 
19528: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
19529: $as_echo_n "checking for alloca... " >&6; }
19530: if ${ac_cv_func_alloca_works+:} false; then :
19531:   $as_echo_n "(cached) " >&6
19532: else
19533:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19534: /* end confdefs.h.  */
19535: #ifdef __GNUC__
19536: # define alloca __builtin_alloca
19537: #else
19538: # ifdef _MSC_VER
19539: #  include <malloc.h>
19540: #  define alloca _alloca
19541: # else
19542: #  ifdef HAVE_ALLOCA_H
19543: #   include <alloca.h>
19544: #  else
19545: #   ifdef _AIX
19546:  #pragma alloca
19547: #   else
19548: #    ifndef alloca /* predefined by HP cc +Olibcalls */
19549: void *alloca (size_t);
19550: #    endif
19551: #   endif
19552: #  endif
19553: # endif
19554: #endif
19555: 
19556: int
19557: main ()
19558: {
19559: char *p = (char *) alloca (1);
19560: 				    if (p) return 0;
19561:   ;
19562:   return 0;
19563: }
19564: _ACEOF
19565: if ac_fn_c_try_link "$LINENO"; then :
19566:   ac_cv_func_alloca_works=yes
19567: else
19568:   ac_cv_func_alloca_works=no
19569: fi
19570: rm -f core conftest.err conftest.$ac_objext \
19571:     conftest$ac_exeext conftest.$ac_ext
19572: fi
19573: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
19574: $as_echo "$ac_cv_func_alloca_works" >&6; }
19575: 
19576: if test $ac_cv_func_alloca_works = yes; then
19577: 
19578: $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19579: 
19580: else
19581:   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19582: # that cause trouble.  Some versions do not even contain alloca or
19583: # contain a buggy version.  If you still want to use their alloca,
19584: # use ar to extract alloca.o from them instead of compiling alloca.c.
19585: 
19586: ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19587: 
19588: $as_echo "#define C_ALLOCA 1" >>confdefs.h
19589: 
19590: 
19591: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
19592: $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
19593: if ${ac_cv_os_cray+:} false; then :
19594:   $as_echo_n "(cached) " >&6
19595: else
19596:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19597: /* end confdefs.h.  */
19598: #if defined CRAY && ! defined CRAY2
19599: webecray
19600: #else
19601: wenotbecray
19602: #endif
19603: 
19604: _ACEOF
19605: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19606:   $EGREP "webecray" >/dev/null 2>&1; then :
19607:   ac_cv_os_cray=yes
19608: else
19609:   ac_cv_os_cray=no
19610: fi
19611: rm -f conftest*
19612: 
19613: fi
19614: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
19615: $as_echo "$ac_cv_os_cray" >&6; }
19616: if test $ac_cv_os_cray = yes; then
19617:   for ac_func in _getb67 GETB67 getb67; do
19618:     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19619: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19620: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19621: 
19622: cat >>confdefs.h <<_ACEOF
19623: #define CRAY_STACKSEG_END $ac_func
19624: _ACEOF
19625: 
19626:     break
19627: fi
19628: 
19629:   done
19630: fi
19631: 
19632: { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
19633: $as_echo_n "checking stack direction for C alloca... " >&6; }
19634: if ${ac_cv_c_stack_direction+:} false; then :
19635:   $as_echo_n "(cached) " >&6
19636: else
19637:   if test "$cross_compiling" = yes; then :
19638:   ac_cv_c_stack_direction=0
19639: else
19640:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19641: /* end confdefs.h.  */
19642: $ac_includes_default
19643: int
19644: find_stack_direction (int *addr, int depth)
19645: {
19646:   int dir, dummy = 0;
19647:   if (! addr)
19648:     addr = &dummy;
19649:   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
19650:   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
19651:   return dir + dummy;
19652: }
19653: 
19654: int
19655: main (int argc, char **argv)
19656: {
19657:   return find_stack_direction (0, argc + !argv + 20) < 0;
19658: }
19659: _ACEOF
19660: if ac_fn_c_try_run "$LINENO"; then :
19661:   ac_cv_c_stack_direction=1
19662: else
19663:   ac_cv_c_stack_direction=-1
19664: fi
19665: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19666:   conftest.$ac_objext conftest.beam conftest.$ac_ext
19667: fi
19668: 
19669: fi
19670: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
19671: $as_echo "$ac_cv_c_stack_direction" >&6; }
19672: cat >>confdefs.h <<_ACEOF
19673: #define STACK_DIRECTION $ac_cv_c_stack_direction
19674: _ACEOF
19675: 
19676: 
19677: fi
19678: 
19679: 
19680:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for declared timezone" >&5
19681: $as_echo_n "checking for declared timezone... " >&6; }
19682: if ${ac_cv_declared_timezone+:} false; then :
19683:   $as_echo_n "(cached) " >&6
19684: else
19685: 
19686:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19687: /* end confdefs.h.  */
19688: 
19689: #include <sys/types.h>
19690: #include <time.h>
19691: #ifdef HAVE_SYS_TIME_H
19692: #include <sys/time.h>
19693: #endif
19694: 
19695: int
19696: main ()
19697: {
19698: 
19699:     time_t foo = (time_t) timezone;
19700: 
19701:   ;
19702:   return 0;
19703: }
19704: _ACEOF
19705: if ac_fn_c_try_compile "$LINENO"; then :
19706: 
19707:   ac_cv_declared_timezone=yes
19708: 
19709: else
19710: 
19711:   ac_cv_declared_timezone=no
19712: 
19713: fi
19714: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19715: fi
19716: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_declared_timezone" >&5
19717: $as_echo "$ac_cv_declared_timezone" >&6; }
19718:   if test "$ac_cv_declared_timezone" = "yes"; then
19719: 
19720: $as_echo "#define HAVE_DECLARED_TIMEZONE 1" >>confdefs.h
19721: 
19722:   fi
19723: 
19724: 
19725: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of reentrant time-related functions" >&5
19726: $as_echo_n "checking for type of reentrant time-related functions... " >&6; }
19727: if ${ac_cv_time_r_type+:} false; then :
19728:   $as_echo_n "(cached) " >&6
19729: else
19730: 
19731: if test "$cross_compiling" = yes; then :
19732: 
19733:   ac_cv_time_r_type=POSIX
19734: 
19735: else
19736:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19737: /* end confdefs.h.  */
19738: 
19739: #include <time.h>
19740: 
19741: main() {
19742: char buf[27];
19743: struct tm t;
19744: time_t old = 0;
19745: int r, s;
19746: 
19747: s = gmtime_r(&old, &t);
19748: r = (int) asctime_r(&t, buf, 26);
19749: if (r == s && s == 0) return (0);
19750: return (1);
19751: }
19752: 
19753: _ACEOF
19754: if ac_fn_c_try_run "$LINENO"; then :
19755: 
19756:   ac_cv_time_r_type=hpux
19757: 
19758: else
19759: 
19760:   if test "$cross_compiling" = yes; then :
19761: 
19762:     ac_cv_time_r_type=POSIX
19763: 
19764: else
19765:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19766: /* end confdefs.h.  */
19767: 
19768: #include <time.h>
19769: main() {
19770:   struct tm t, *s;
19771:   time_t old = 0;
19772:   char buf[27], *p;
19773: 
19774:   s = gmtime_r(&old, &t);
19775:   p = asctime_r(&t, buf, 26);
19776:   if (p == buf && s == &t) return (0);
19777:   return (1);
19778: }
19779: 
19780: _ACEOF
19781: if ac_fn_c_try_run "$LINENO"; then :
19782: 
19783:     ac_cv_time_r_type=irix
19784: 
19785: else
19786: 
19787:     ac_cv_time_r_type=POSIX
19788: 
19789: fi
19790: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19791:   conftest.$ac_objext conftest.beam conftest.$ac_ext
19792: fi
19793: 
19794: 
19795: fi
19796: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19797:   conftest.$ac_objext conftest.beam conftest.$ac_ext
19798: fi
19799: 
19800: 
19801: fi
19802: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_time_r_type" >&5
19803: $as_echo "$ac_cv_time_r_type" >&6; }
19804:   case $ac_cv_time_r_type in
19805:   hpux)
19806: $as_echo "#define PHP_HPUX_TIME_R 1" >>confdefs.h
19807:  ;;
19808:   irix)
19809: $as_echo "#define PHP_IRIX_TIME_R 1" >>confdefs.h
19810:  ;;
19811:   esac
19812: 
19813: 
19814:     ac_fn_c_check_func "$LINENO" "readdir_r" "ac_cv_func_readdir_r"
19815: if test "x$ac_cv_func_readdir_r" = xyes; then :
19816:   ac_cv_func_readdir_r=yes
19817: else
19818:   ac_cv_func_readdir=no
19819: fi
19820: 
19821:   if test "$ac_cv_func_readdir_r" = "yes"; then
19822:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of readdir_r" >&5
19823: $as_echo_n "checking for type of readdir_r... " >&6; }
19824: if ${ac_cv_what_readdir_r+:} false; then :
19825:   $as_echo_n "(cached) " >&6
19826: else
19827: 
19828:     if test "$cross_compiling" = yes; then :
19829: 
19830:       ac_cv_what_readdir_r=none
19831: 
19832: else
19833:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19834: /* end confdefs.h.  */
19835: 
19836: #define _REENTRANT
19837: #include <sys/types.h>
19838: #include <dirent.h>
19839: 
19840: #ifndef PATH_MAX
19841: #define PATH_MAX 1024
19842: #endif
19843: 
19844: main() {
19845:   DIR *dir;
19846:   char entry[sizeof(struct dirent)+PATH_MAX];
19847:   struct dirent *pentry = (struct dirent *) &entry;
19848: 
19849:   dir = opendir("/");
19850:   if (!dir)
19851:     exit(1);
19852:   if (readdir_r(dir, (struct dirent *) entry, &pentry) == 0)
19853:     exit(0);
19854:   exit(1);
19855: }
19856: 
19857: _ACEOF
19858: if ac_fn_c_try_run "$LINENO"; then :
19859: 
19860:       ac_cv_what_readdir_r=POSIX
19861: 
19862: else
19863: 
19864:       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19865: /* end confdefs.h.  */
19866: 
19867: #define _REENTRANT
19868: #include <sys/types.h>
19869: #include <dirent.h>
19870: int readdir_r(DIR *, struct dirent *);
19871: 
19872: _ACEOF
19873: if ac_fn_c_try_cpp "$LINENO"; then :
19874: 
19875:           ac_cv_what_readdir_r=old-style
19876: 
19877: else
19878: 
19879:           ac_cv_what_readdir_r=none
19880: 
19881: fi
19882: rm -f conftest.err conftest.i conftest.$ac_ext
19883: 
19884: fi
19885: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19886:   conftest.$ac_objext conftest.beam conftest.$ac_ext
19887: fi
19888: 
19889: 
19890: fi
19891: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_what_readdir_r" >&5
19892: $as_echo "$ac_cv_what_readdir_r" >&6; }
19893:     case $ac_cv_what_readdir_r in
19894:     POSIX)
19895: 
19896: $as_echo "#define HAVE_POSIX_READDIR_R 1" >>confdefs.h
19897: ;;
19898:     old-style)
19899: 
19900: $as_echo "#define HAVE_OLD_READDIR_R 1" >>confdefs.h
19901: ;;
19902:     esac
19903:   fi
19904: 
19905: 
19906: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t" >&5
19907: $as_echo_n "checking for in_addr_t... " >&6; }
19908: if ${ac_cv_type_in_addr_t+:} false; then :
19909:   $as_echo_n "(cached) " >&6
19910: else
19911:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19912: /* end confdefs.h.  */
19913: #include <sys/types.h>
19914: #if STDC_HEADERS
19915: #include <stdlib.h>
19916: #include <stddef.h>
19917: #endif
19918: #ifdef HAVE_NETINET_IN_H
19919: #include <netinet/in.h>
19920: #endif
19921: _ACEOF
19922: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19923:   $EGREP "in_addr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
19924:   ac_cv_type_in_addr_t=yes
19925: else
19926:   ac_cv_type_in_addr_t=no
19927: fi
19928: rm -f conftest*
19929: 
19930: fi
19931: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_in_addr_t" >&5
19932: $as_echo "$ac_cv_type_in_addr_t" >&6; }
19933: if test $ac_cv_type_in_addr_t = no; then
19934: 
19935: $as_echo "#define in_addr_t u_int" >>confdefs.h
19936: 
19937: fi
19938: 
19939: 
19940: for ac_func in crypt_r
19941: do :
19942:   ac_fn_c_check_func "$LINENO" "crypt_r" "ac_cv_func_crypt_r"
19943: if test "x$ac_cv_func_crypt_r" = xyes; then :
19944:   cat >>confdefs.h <<_ACEOF
19945: #define HAVE_CRYPT_R 1
19946: _ACEOF
19947:   php_crypt_r="1"
19948: else
19949:    php_crypt_r="0"
19950: fi
19951: done
19952: 
19953: if test "x$php_crypt_r" = "x1"; then
19954: 
19955:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which data struct is used by crypt_r" >&5
19956: $as_echo_n "checking which data struct is used by crypt_r... " >&6; }
19957: if ${php_cv_crypt_r_style+:} false; then :
19958:   $as_echo_n "(cached) " >&6
19959: else
19960: 
19961:     php_cv_crypt_r_style=none
19962:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19963: /* end confdefs.h.  */
19964: 
19965: #define _REENTRANT 1
19966: #include <crypt.h>
19967: 
19968: int
19969: main ()
19970: {
19971: 
19972: CRYPTD buffer;
19973: crypt_r("passwd", "hash", &buffer);
19974: 
19975:   ;
19976:   return 0;
19977: }
19978: _ACEOF
19979: if ac_fn_c_try_compile "$LINENO"; then :
19980:   php_cv_crypt_r_style=cryptd
19981: fi
19982: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19983: 
19984:     if test "$php_cv_crypt_r_style" = "none"; then
19985:       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19986: /* end confdefs.h.  */
19987: 
19988: #define _REENTRANT 1
19989: #include <crypt.h>
19990: 
19991: int
19992: main ()
19993: {
19994: 
19995: struct crypt_data buffer;
19996: crypt_r("passwd", "hash", &buffer);
19997: 
19998:   ;
19999:   return 0;
20000: }
20001: _ACEOF
20002: if ac_fn_c_try_compile "$LINENO"; then :
20003:   php_cv_crypt_r_style=struct_crypt_data
20004: fi
20005: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20006:     fi
20007: 
20008:     if test "$php_cv_crypt_r_style" = "none"; then
20009:       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20010: /* end confdefs.h.  */
20011: 
20012: #define _REENTRANT 1
20013: #define _GNU_SOURCE
20014: #include <crypt.h>
20015: 
20016: int
20017: main ()
20018: {
20019: 
20020: struct crypt_data buffer;
20021: crypt_r("passwd", "hash", &buffer);
20022: 
20023:   ;
20024:   return 0;
20025: }
20026: _ACEOF
20027: if ac_fn_c_try_compile "$LINENO"; then :
20028:   php_cv_crypt_r_style=struct_crypt_data_gnu_source
20029: fi
20030: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20031:     fi
20032: 
20033: fi
20034: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_crypt_r_style" >&5
20035: $as_echo "$php_cv_crypt_r_style" >&6; }
20036: 
20037:   if test "$php_cv_crypt_r_style" = "cryptd"; then
20038: 
20039: $as_echo "#define CRYPT_R_CRYPTD 1" >>confdefs.h
20040: 
20041:   fi
20042:   if test "$php_cv_crypt_r_style" = "struct_crypt_data" -o "$php_cv_crypt_r_style" = "struct_crypt_data_gnu_source"; then
20043: 
20044: $as_echo "#define CRYPT_R_STRUCT_CRYPT_DATA 1" >>confdefs.h
20045: 
20046:   fi
20047:   if test "$php_cv_crypt_r_style" = "struct_crypt_data_gnu_source"; then
20048: 
20049: $as_echo "#define CRYPT_R_GNU_SOURCE 1" >>confdefs.h
20050: 
20051:   fi
20052:   if test "$php_cv_crypt_r_style" = "none"; then
20053:     as_fn_error $? "Unable to detect data struct used by crypt_r" "$LINENO" 5
20054:   fi
20055: 
20056: fi
20057: 
20058: 
20059:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
20060: $as_echo "" >&6; }
20061:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}General settings${T_ME}" >&5
20062: $as_echo "${T_MD}General settings${T_ME}" >&6; }
20063: 
20064: 
20065: 
20066: # Check whether --enable- was given.
20067: if test "${enable_+set}" = set; then :
20068:   enableval=$enable_;
20069: fi
20070: 
20071: 
20072: 
20073: 
20074: php_enable_gcov=no
20075: 
20076: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include gcov symbols" >&5
20077: $as_echo_n "checking whether to include gcov symbols... " >&6; }
20078: # Check whether --enable-gcov was given.
20079: if test "${enable_gcov+set}" = set; then :
20080:   enableval=$enable_gcov; PHP_GCOV=$enableval
20081: else
20082: 
20083:   PHP_GCOV=no
20084: 
20085: 
20086: fi
20087: 
20088: 
20089: ext_output=$PHP_GCOV
20090: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
20091: $as_echo "$ext_output" >&6; }
20092: 
20093: 
20094: 
20095: 
20096: if test "$PHP_GCOV" = "yes"; then
20097: 
20098:   if test "$GCC" != "yes"; then
20099:     as_fn_error $? "GCC is required for --enable-gcov" "$LINENO" 5
20100:   fi
20101: 
20102:     case `$php_shtool path $CC` in
20103:     *ccache*) gcc_ccache=yes;;
20104:     *) gcc_ccache=no;;
20105:   esac
20106: 
20107:   if test "$gcc_ccache" = "yes" && (test -z "$CCACHE_DISABLE" || test "$CCACHE_DISABLE" != "1"); then
20108:     as_fn_error $? "ccache must be disabled when --enable-gcov option is used. You can disable ccache by setting environment variable CCACHE_DISABLE=1." "$LINENO" 5
20109:   fi
20110: 
20111:   ltp_version_list="1.5 1.6 1.7 1.9 1.10"
20112: 
20113:   # Extract the first word of "lcov", so it can be a program name with args.
20114: set dummy lcov; ac_word=$2
20115: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20116: $as_echo_n "checking for $ac_word... " >&6; }
20117: if ${ac_cv_prog_LTP+:} false; then :
20118:   $as_echo_n "(cached) " >&6
20119: else
20120:   if test -n "$LTP"; then
20121:   ac_cv_prog_LTP="$LTP" # Let the user override the test.
20122: else
20123: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20124: for as_dir in $PATH
20125: do
20126:   IFS=$as_save_IFS
20127:   test -z "$as_dir" && as_dir=.
20128:     for ac_exec_ext in '' $ac_executable_extensions; do
20129:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20130:     ac_cv_prog_LTP="lcov"
20131:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20132:     break 2
20133:   fi
20134: done
20135:   done
20136: IFS=$as_save_IFS
20137: 
20138: fi
20139: fi
20140: LTP=$ac_cv_prog_LTP
20141: if test -n "$LTP"; then
20142:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTP" >&5
20143: $as_echo "$LTP" >&6; }
20144: else
20145:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20146: $as_echo "no" >&6; }
20147: fi
20148: 
20149: 
20150:   # Extract the first word of "genhtml", so it can be a program name with args.
20151: set dummy genhtml; ac_word=$2
20152: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20153: $as_echo_n "checking for $ac_word... " >&6; }
20154: if ${ac_cv_prog_LTP_GENHTML+:} false; then :
20155:   $as_echo_n "(cached) " >&6
20156: else
20157:   if test -n "$LTP_GENHTML"; then
20158:   ac_cv_prog_LTP_GENHTML="$LTP_GENHTML" # Let the user override the test.
20159: else
20160: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20161: for as_dir in $PATH
20162: do
20163:   IFS=$as_save_IFS
20164:   test -z "$as_dir" && as_dir=.
20165:     for ac_exec_ext in '' $ac_executable_extensions; do
20166:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20167:     ac_cv_prog_LTP_GENHTML="genhtml"
20168:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20169:     break 2
20170:   fi
20171: done
20172:   done
20173: IFS=$as_save_IFS
20174: 
20175: fi
20176: fi
20177: LTP_GENHTML=$ac_cv_prog_LTP_GENHTML
20178: if test -n "$LTP_GENHTML"; then
20179:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTP_GENHTML" >&5
20180: $as_echo "$LTP_GENHTML" >&6; }
20181: else
20182:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20183: $as_echo "no" >&6; }
20184: fi
20185: 
20186: 
20187: 
20188:   PHP_VAR_SUBST="$PHP_VAR_SUBST LTP"
20189: 
20190: 
20191:   PHP_VAR_SUBST="$PHP_VAR_SUBST LTP_GENHTML"
20192: 
20193: 
20194:   if test "$LTP"; then
20195:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ltp version" >&5
20196: $as_echo_n "checking for ltp version... " >&6; }
20197: if ${php_cv_ltp_version+:} false; then :
20198:   $as_echo_n "(cached) " >&6
20199: else
20200: 
20201:       php_cv_ltp_version=invalid
20202:       ltp_version=`$LTP -v 2>/dev/null | $SED -e 's/^.* //'`
20203:       for ltp_check_version in $ltp_version_list; do
20204:         if test "$ltp_version" = "$ltp_check_version"; then
20205:           php_cv_ltp_version="$ltp_check_version (ok)"
20206:         fi
20207:       done
20208: 
20209: fi
20210: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_ltp_version" >&5
20211: $as_echo "$php_cv_ltp_version" >&6; }
20212:   else
20213:     ltp_msg="To enable code coverage reporting you must have one of the following LTP versions installed: $ltp_version_list"
20214:     as_fn_error $? "$ltp_msg" "$LINENO" 5
20215:   fi
20216: 
20217:   case $php_cv_ltp_version in
20218:     ""|invalid)
20219:       ltp_msg="You must have one of the following versions of LTP: $ltp_version_list (found: $ltp_version)."
20220:       as_fn_error $? "$ltp_msg" "$LINENO" 5
20221:       LTP="exit 0;"
20222:       ;;
20223:   esac
20224: 
20225:   if test -z "$LTP_GENHTML"; then
20226:     as_fn_error $? "Could not find genhtml from the LTP package" "$LINENO" 5
20227:   fi
20228: 
20229: 
20230: $as_echo "#define HAVE_GCOV 1" >>confdefs.h
20231: 
20232: 
20233:   src=$abs_srcdir/Makefile.gcov
20234:   ac_srcdir=$abs_srcdir
20235:   ac_builddir=$ext_builddir
20236:   test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src  >> Makefile.fragments
20237: 
20238: 
20239: 
20240:   CFLAGS=`echo "$CFLAGS" | $SED -e 's/-O[0-9s]*//g'`
20241:   CXXFLAGS=`echo "$CXXFLAGS" | $SED -e 's/-O[0-9s]*//g'`
20242: 
20243: 
20244:     CFLAGS="$CFLAGS -O0 -fprofile-arcs -ftest-coverage"
20245:   CXXFLAGS="$CXXFLAGS -O0 -fprofile-arcs -ftest-coverage"
20246: fi
20247: 
20248: 
20249: php_enable_debug=no
20250: 
20251: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include debugging symbols" >&5
20252: $as_echo_n "checking whether to include debugging symbols... " >&6; }
20253: # Check whether --enable-debug was given.
20254: if test "${enable_debug+set}" = set; then :
20255:   enableval=$enable_debug; PHP_DEBUG=$enableval
20256: else
20257: 
20258:   PHP_DEBUG=no
20259: 
20260: 
20261: fi
20262: 
20263: 
20264: ext_output=$PHP_DEBUG
20265: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
20266: $as_echo "$ext_output" >&6; }
20267: 
20268: 
20269: 
20270: 
20271: if test "$PHP_DEBUG" = "yes"; then
20272:   PHP_DEBUG=1
20273:   ZEND_DEBUG=yes
20274: 
20275:   CFLAGS=`echo "$CFLAGS" | $SED -e 's/-O[0-9s]*//g'`
20276:   CXXFLAGS=`echo "$CXXFLAGS" | $SED -e 's/-O[0-9s]*//g'`
20277: 
20278:     if test "$GCC" = "yes" || test "$ICC" = "yes"; then
20279:     CFLAGS="$CFLAGS -O0"
20280:     CXXFLAGS="$CXXFLAGS -g -O0"
20281:   fi
20282:   if test "$SUNCC" = "yes"; then
20283:     if test -n "$auto_cflags"; then
20284:       CFLAGS="-g"
20285:       CXXFLAGS="-g"
20286:     else
20287:       CFLAGS="$CFLAGS -g"
20288:       CXXFLAGS="$CFLAGS -g"
20289:     fi
20290:   fi
20291: else
20292:   PHP_DEBUG=0
20293:   ZEND_DEBUG=no
20294: fi
20295: 
20296: 
20297: php_with_layout=PHP
20298: 
20299: { $as_echo "$as_me:${as_lineno-$LINENO}: checking layout of installed files" >&5
20300: $as_echo_n "checking layout of installed files... " >&6; }
20301: 
20302: # Check whether --with-layout was given.
20303: if test "${with_layout+set}" = set; then :
20304:   withval=$with_layout; PHP_LAYOUT=$withval
20305: else
20306: 
20307:   PHP_LAYOUT=PHP
20308: 
20309: 
20310: fi
20311: 
20312: 
20313: ext_output=$PHP_LAYOUT
20314: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
20315: $as_echo "$ext_output" >&6; }
20316: 
20317: 
20318: 
20319: 
20320: case $PHP_LAYOUT in
20321:   GNU)
20322:     oldstyleextdir=no
20323:     ;;
20324:   *)
20325:     oldstyleextdir=yes
20326:     ;;
20327: esac
20328: 
20329: 
20330: php_with_config_file_path=DEFAULT
20331: 
20332: { $as_echo "$as_me:${as_lineno-$LINENO}: checking path to configuration file" >&5
20333: $as_echo_n "checking path to configuration file... " >&6; }
20334: 
20335: # Check whether --with-config-file-path was given.
20336: if test "${with_config_file_path+set}" = set; then :
20337:   withval=$with_config_file_path; PHP_CONFIG_FILE_PATH=$withval
20338: else
20339: 
20340:   PHP_CONFIG_FILE_PATH=DEFAULT
20341: 
20342: 
20343: fi
20344: 
20345: 
20346: ext_output=$PHP_CONFIG_FILE_PATH
20347: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
20348: $as_echo "$ext_output" >&6; }
20349: 
20350: 
20351: 
20352: 
20353: if test "$PHP_CONFIG_FILE_PATH" = "DEFAULT"; then
20354:   case $PHP_LAYOUT in
20355:     GNU)
20356:       PHP_CONFIG_FILE_PATH=$sysconfdir
20357:       ;;
20358:     *)
20359:       PHP_CONFIG_FILE_PATH=$libdir
20360:       ;;
20361:   esac
20362: fi
20363: 
20364: { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to scan for configuration files" >&5
20365: $as_echo_n "checking where to scan for configuration files... " >&6; }
20366: 
20367: php_with_config_file_scan_dir=DEFAULT
20368: 
20369: 
20370: 
20371: # Check whether --with-config-file-scan-dir was given.
20372: if test "${with_config_file_scan_dir+set}" = set; then :
20373:   withval=$with_config_file_scan_dir; PHP_CONFIG_FILE_SCAN_DIR=$withval
20374: else
20375: 
20376:   PHP_CONFIG_FILE_SCAN_DIR=DEFAULT
20377: 
20378: 
20379: fi
20380: 
20381: 
20382: ext_output=$PHP_CONFIG_FILE_SCAN_DIR
20383: 
20384: 
20385: 
20386: 
20387: if test "$PHP_CONFIG_FILE_SCAN_DIR" = "DEFAULT"; then
20388:   PHP_CONFIG_FILE_SCAN_DIR=
20389: fi
20390: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_CONFIG_FILE_SCAN_DIR" >&5
20391: $as_echo "$PHP_CONFIG_FILE_SCAN_DIR" >&6; }
20392: 
20393: test -n "$DEBUG_CFLAGS" && CFLAGS="$CFLAGS $DEBUG_CFLAGS"
20394: 
20395: 
20396: php_enable_sigchild=no
20397: 
20398: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable PHP's own SIGCHLD handler" >&5
20399: $as_echo_n "checking whether to enable PHP's own SIGCHLD handler... " >&6; }
20400: # Check whether --enable-sigchild was given.
20401: if test "${enable_sigchild+set}" = set; then :
20402:   enableval=$enable_sigchild; PHP_SIGCHILD=$enableval
20403: else
20404: 
20405:   PHP_SIGCHILD=no
20406: 
20407: 
20408: fi
20409: 
20410: 
20411: ext_output=$PHP_SIGCHILD
20412: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
20413: $as_echo "$ext_output" >&6; }
20414: 
20415: 
20416: 
20417: 
20418: if test "$PHP_SIGCHILD" = "yes"; then
20419: 
20420: $as_echo "#define PHP_SIGCHILD 1" >>confdefs.h
20421: 
20422: else
20423: 
20424: $as_echo "#define PHP_SIGCHILD 0" >>confdefs.h
20425: 
20426: fi
20427: 
20428: 
20429: php_enable_libgcc=no
20430: 
20431: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to explicitly link against libgcc" >&5
20432: $as_echo_n "checking whether to explicitly link against libgcc... " >&6; }
20433: # Check whether --enable-libgcc was given.
20434: if test "${enable_libgcc+set}" = set; then :
20435:   enableval=$enable_libgcc; PHP_LIBGCC=$enableval
20436: else
20437: 
20438:   PHP_LIBGCC=no
20439: 
20440: 
20441: fi
20442: 
20443: 
20444: ext_output=$PHP_LIBGCC
20445: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
20446: $as_echo "$ext_output" >&6; }
20447: 
20448: 
20449: 
20450: 
20451: if test "$PHP_LIBGCC" = "yes"; then
20452: 
20453: 
20454:   libgcc_libpath=`gcc --print-libgcc-file-name|$SED 's%/*[^/][^/]*$%%'`
20455: 
20456: 
20457:   if test -z "$libgcc_libpath"; then
20458:     as_fn_error $? "Cannot locate libgcc. Make sure that gcc is in your path" "$LINENO" 5
20459:   fi
20460: 
20461:   if test "$libgcc_libpath" != "/usr/$PHP_LIBDIR" && test "$libgcc_libpath" != "/usr/lib"; then
20462: 
20463:   if test -z "$libgcc_libpath" || echo "$libgcc_libpath" | grep '^/' >/dev/null ; then
20464:     ai_p=$libgcc_libpath
20465:   else
20466: 
20467:     ep_dir=`echo $libgcc_libpath|$SED 's%/*[^/][^/]*/*$%%'`
20468: 
20469:     ep_realdir=`(cd "$ep_dir" && pwd)`
20470:     ai_p="$ep_realdir"/`basename "$libgcc_libpath"`
20471:   fi
20472: 
20473: 
20474: 
20475: 
20476: 
20477:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
20478: 
20479:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
20480:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
20481:     eval "LIBPATH$unique=set"
20482: 
20483:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
20484:     LDFLAGS="$LDFLAGS -L$ai_p"
20485:     PHP_RPATHS="$PHP_RPATHS $ai_p"
20486: 
20487:   fi
20488: 
20489: 
20490: 
20491:   fi
20492: 
20493: 
20494: 
20495:   case gcc in
20496:   c|c_r|pthread*) ;;
20497:   *)
20498:       LIBS="$LIBS -lgcc"
20499:    ;;
20500:   esac
20501: 
20502: 
20503: fi
20504: 
20505: 
20506: php_enable_short_tags=yes
20507: 
20508: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable short tags by default" >&5
20509: $as_echo_n "checking whether to enable short tags by default... " >&6; }
20510: # Check whether --enable-short-tags was given.
20511: if test "${enable_short_tags+set}" = set; then :
20512:   enableval=$enable_short_tags; PHP_SHORT_TAGS=$enableval
20513: else
20514: 
20515:   PHP_SHORT_TAGS=yes
20516: 
20517: 
20518: fi
20519: 
20520: 
20521: ext_output=$PHP_SHORT_TAGS
20522: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
20523: $as_echo "$ext_output" >&6; }
20524: 
20525: 
20526: 
20527: 
20528: if test "$PHP_SHORT_TAGS" = "yes"; then
20529: 
20530: $as_echo "#define DEFAULT_SHORT_OPEN_TAG \"1\"" >>confdefs.h
20531: 
20532: else
20533: 
20534: $as_echo "#define DEFAULT_SHORT_OPEN_TAG \"0\"" >>confdefs.h
20535: 
20536: fi
20537: 
20538: 
20539: php_enable_dmalloc=no
20540: 
20541: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable dmalloc" >&5
20542: $as_echo_n "checking whether to enable dmalloc... " >&6; }
20543: # Check whether --enable-dmalloc was given.
20544: if test "${enable_dmalloc+set}" = set; then :
20545:   enableval=$enable_dmalloc; PHP_DMALLOC=$enableval
20546: else
20547: 
20548:   PHP_DMALLOC=no
20549: 
20550: 
20551: fi
20552: 
20553: 
20554: ext_output=$PHP_DMALLOC
20555: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
20556: $as_echo "$ext_output" >&6; }
20557: 
20558: 
20559: 
20560: 
20561: if test "$PHP_DMALLOC" = "yes"; then
20562:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dmalloc_error in -ldmalloc" >&5
20563: $as_echo_n "checking for dmalloc_error in -ldmalloc... " >&6; }
20564: if ${ac_cv_lib_dmalloc_dmalloc_error+:} false; then :
20565:   $as_echo_n "(cached) " >&6
20566: else
20567:   ac_check_lib_save_LIBS=$LIBS
20568: LIBS="-ldmalloc  $LIBS"
20569: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20570: /* end confdefs.h.  */
20571: 
20572: /* Override any GCC internal prototype to avoid an error.
20573:    Use char because int might match the return type of a GCC
20574:    builtin and then its argument prototype would still apply.  */
20575: #ifdef __cplusplus
20576: extern "C"
20577: #endif
20578: char dmalloc_error ();
20579: int
20580: main ()
20581: {
20582: return dmalloc_error ();
20583:   ;
20584:   return 0;
20585: }
20586: _ACEOF
20587: if ac_fn_c_try_link "$LINENO"; then :
20588:   ac_cv_lib_dmalloc_dmalloc_error=yes
20589: else
20590:   ac_cv_lib_dmalloc_dmalloc_error=no
20591: fi
20592: rm -f core conftest.err conftest.$ac_objext \
20593:     conftest$ac_exeext conftest.$ac_ext
20594: LIBS=$ac_check_lib_save_LIBS
20595: fi
20596: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dmalloc_dmalloc_error" >&5
20597: $as_echo "$ac_cv_lib_dmalloc_dmalloc_error" >&6; }
20598: if test "x$ac_cv_lib_dmalloc_dmalloc_error" = xyes; then :
20599: 
20600: 
20601: 
20602:   case dmalloc in
20603:   c|c_r|pthread*) ;;
20604:   *)
20605:       LIBS="-ldmalloc $LIBS"
20606:    ;;
20607:   esac
20608: 
20609: 
20610: 
20611: $as_echo "#define HAVE_DMALLOC 1" >>confdefs.h
20612: 
20613:     CPPFLAGS="$CPPFLAGS -DDMALLOC_FUNC_CHECK"
20614: 
20615: else
20616: 
20617:     as_fn_error $? "Problem with enabling dmalloc. Please check config.log for details." "$LINENO" 5
20618: 
20619: fi
20620: 
20621: fi
20622: 
20623: 
20624: php_enable_ipv6=yes
20625: 
20626: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable IPv6 support" >&5
20627: $as_echo_n "checking whether to enable IPv6 support... " >&6; }
20628: # Check whether --enable-ipv6 was given.
20629: if test "${enable_ipv6+set}" = set; then :
20630:   enableval=$enable_ipv6; PHP_IPV6=$enableval
20631: else
20632: 
20633:   PHP_IPV6=yes
20634: 
20635: 
20636: fi
20637: 
20638: 
20639: ext_output=$PHP_IPV6
20640: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
20641: $as_echo "$ext_output" >&6; }
20642: 
20643: 
20644: 
20645: 
20646: if test "$PHP_IPV6" != "no" && test "$ac_cv_ipv6_support" = yes; then
20647: 
20648: $as_echo "#define HAVE_IPV6 1" >>confdefs.h
20649: 
20650: fi
20651: 
20652: 
20653: php_enable_dtrace=no
20654: 
20655: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable DTrace support" >&5
20656: $as_echo_n "checking whether to enable DTrace support... " >&6; }
20657: # Check whether --enable-dtrace was given.
20658: if test "${enable_dtrace+set}" = set; then :
20659:   enableval=$enable_dtrace; PHP_DTRACE=$enableval
20660: else
20661: 
20662:   PHP_DTRACE=no
20663: 
20664: 
20665: fi
20666: 
20667: 
20668: ext_output=$PHP_DTRACE
20669: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
20670: $as_echo "$ext_output" >&6; }
20671: 
20672: 
20673: 
20674: 
20675: if test "$PHP_DTRACE" = "yes"; then
20676:   for ac_header in sys/sdt.h
20677: do :
20678:   ac_fn_c_check_header_mongrel "$LINENO" "sys/sdt.h" "ac_cv_header_sys_sdt_h" "$ac_includes_default"
20679: if test "x$ac_cv_header_sys_sdt_h" = xyes; then :
20680:   cat >>confdefs.h <<_ACEOF
20681: #define HAVE_SYS_SDT_H 1
20682: _ACEOF
20683: 
20684: 
20685:   case "" in
20686:     "") ac_srcdir="$abs_srcdir/"; unset ac_bdir;;
20687:     /*) ac_srcdir=`echo ""|cut -c 2-`"/"; ac_bdir=$ac_srcdir;;
20688:     *) ac_srcdir="$abs_srcdir/Zend/zend_dtrace.d/"; ac_bdir="/";;
20689:   esac
20690: 
20691:   ac_provsrc=Zend/zend_dtrace.d
20692:   old_IFS=$IFS
20693:   IFS=.
20694:   set $ac_provsrc
20695:   ac_provobj=$1
20696:   IFS=$old_IFS
20697: 
20698:   ac_hdrobj=Zend/zend_dtrace_gen.h
20699: 
20700:   case $host_alias in
20701:   *freebsd*)
20702:     PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_provsrc.o"
20703:     PHP_LDFLAGS="$PHP_LDFLAGS -lelf"
20704:     ;;
20705:   *solaris*)
20706:     PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_provsrc.lo"
20707:     ;;
20708:   *linux*)
20709:     PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_provsrc.lo"
20710:     ;;
20711:   esac
20712: 
20713:   old_IFS=$IFS
20714:   for ac_src in main/main.c Zend/zend_API.c \
20715:       Zend/zend_execute.c Zend/zend_exceptions.c \
20716:       Zend/zend_dtrace.c Zend/zend.c; do
20717:     IFS=.
20718:     set $ac_src
20719:     ac_obj=$1
20720:     IFS=$old_IFS
20721: 
20722:     PHP_DTRACE_OBJS="$PHP_DTRACE_OBJS $ac_bdir$ac_obj.lo"
20723:   done;
20724: 
20725:   case $php_sapi_module in
20726:   shared)
20727:     for ac_lo in $PHP_DTRACE_OBJS; do
20728:       dtrace_objs="$dtrace_objs `echo $ac_lo | $SED -e 's,\.lo$,.o,' -e 's#\(.*\)\/#\1\/.libs\/#'`"
20729:     done;
20730:     ;;
20731:   *)
20732:     dtrace_objs='$(PHP_DTRACE_OBJS:.lo=.o)'
20733:     ;;
20734:   esac
20735: 
20736:   cat>>Makefile.objects<<EOF
20737: 
20738: $abs_srcdir/$ac_provsrc:;
20739: 
20740: $ac_bdir$ac_hdrobj: $abs_srcdir/$ac_provsrc
20741: 	CFLAGS="\$(CFLAGS_CLEAN)" dtrace -h -C -s $ac_srcdir$ac_provsrc -o \$@.bak && \$(SED) -e 's,PHP_,DTRACE_,g' \$@.bak > \$@
20742: 
20743: \$(PHP_DTRACE_OBJS): $ac_bdir$ac_hdrobj
20744: 
20745: EOF
20746: 
20747:   case $host_alias in
20748:   *solaris*|*linux*)
20749:     dtrace_prov_name="`echo $ac_provsrc | $SED -e 's#\(.*\)\/##'`.o"
20750:     dtrace_lib_dir="`echo $ac_bdir$ac_provsrc | $SED -e 's#\(.*\)/[^/]*#\1#'`/.libs"
20751:     dtrace_d_obj="`echo $ac_bdir$ac_provsrc | $SED -e 's#\(.*\)/\([^/]*\)#\1/.libs/\2#'`.o"
20752:     dtrace_nolib_objs='$(PHP_DTRACE_OBJS:.lo=.o)'
20753:     for ac_lo in $PHP_DTRACE_OBJS; do
20754:       dtrace_lib_objs="$dtrace_lib_objs `echo $ac_lo | $SED -e 's,\.lo$,.o,' -e 's#\(.*\)\/#\1\/.libs\/#'`"
20755:     done;
20756:     cat>>Makefile.objects<<EOF
20757: $ac_bdir$ac_provsrc.lo: \$(PHP_DTRACE_OBJS)
20758: 	echo "# Generated by Makefile for libtool" > \$@
20759: 	@test -d "$dtrace_lib_dir" || mkdir $dtrace_lib_dir
20760: 	if CFLAGS="\$(CFLAGS_CLEAN)" dtrace -G -o $dtrace_d_obj -s $abs_srcdir/$ac_provsrc $dtrace_lib_objs 2> /dev/null && test -f "$dtrace_d_obj"; then \\
20761: 	  echo "pic_object='.libs/$dtrace_prov_name'" >> \$@ ;\\
20762: 	else \\
20763: 	  echo "pic_object='none'" >> \$@ ;\\
20764: 	fi
20765: 	if CFLAGS="\$(CFLAGS_CLEAN)" dtrace -G -o $ac_bdir$ac_provsrc.o -s $abs_srcdir/$ac_provsrc $dtrace_nolib_objs 2> /dev/null && test -f "$ac_bdir$ac_provsrc.o"; then \\
20766: 	  echo "non_pic_object='$dtrace_prov_name'" >> \$@ ;\\
20767: 	else \\
20768: 	  echo "non_pic_object='none'" >> \$@ ;\\
20769: 	fi
20770: 
20771: EOF
20772: 
20773:     ;;
20774:   *)
20775: cat>>Makefile.objects<<EOF
20776: $ac_bdir$ac_provsrc.o: \$(PHP_DTRACE_OBJS)
20777: 	CFLAGS="\$(CFLAGS_CLEAN)" dtrace -G -o \$@ -s $abs_srcdir/$ac_provsrc $dtrace_objs
20778: 
20779: EOF
20780:     ;;
20781:   esac
20782: 
20783: 
20784: $as_echo "#define HAVE_DTRACE 1" >>confdefs.h
20785: 
20786: 
20787:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_DTRACE_OBJS"
20788: 
20789: 
20790: else
20791: 
20792:     as_fn_error $? "Cannot find sys/sdt.h which is required for DTrace support" "$LINENO" 5
20793: 
20794: fi
20795: 
20796: done
20797: 
20798: fi
20799: 
20800: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how big to make fd sets" >&5
20801: $as_echo_n "checking how big to make fd sets... " >&6; }
20802: 
20803: php_enable_fd_setsize=no
20804: 
20805: 
20806: # Check whether --enable-fd-setsize was given.
20807: if test "${enable_fd_setsize+set}" = set; then :
20808:   enableval=$enable_fd_setsize; PHP_FD_SETSIZE=$enableval
20809: else
20810: 
20811:   PHP_FD_SETSIZE=no
20812: 
20813: 
20814: fi
20815: 
20816: 
20817: ext_output=$PHP_FD_SETSIZE
20818: 
20819: 
20820: 
20821: 
20822: 
20823: if test "$PHP_FD_SETSIZE" != "no"; then
20824:   if test "0$PHP_FD_SETSIZE" -gt 0 2>/dev/null; then
20825:     CPPFLAGS="$CPPFLAGS -DFD_SETSIZE=$PHP_FD_SETSIZE"
20826:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $PHP_FD_SETSIZE" >&5
20827: $as_echo "using $PHP_FD_SETSIZE" >&6; }
20828:   else
20829:     as_fn_error $? "Invalid value passed to --enable-fd-setsize!" "$LINENO" 5
20830:   fi
20831: else
20832:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system default" >&5
20833: $as_echo "using system default" >&6; }
20834: fi
20835: 
20836: 
20837: 
20838: # Check whether --enable- was given.
20839: if test "${enable_+set}" = set; then :
20840:   enableval=$enable_;
20841: fi
20842: 
20843: 
20844: 
20845: 
20846:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
20847: $as_echo "" >&6; }
20848:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Configuring extensions${T_ME}" >&5
20849: $as_echo "${T_MD}Configuring extensions${T_ME}" >&6; }
20850: 
20851: 
20852: 
20853: # Check whether --enable-all was given.
20854: if test "${enable_all+set}" = set; then :
20855:   enableval=$enable_all;
20856:   PHP_ENABLE_ALL=$enableval
20857: 
20858: fi
20859: 
20860: 
20861: # reading config stubs
20862: 
20863: 
20864: 
20865: 
20866: # The cast to long int works around a bug in the HP C Compiler
20867: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20868: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20869: # This bug is HP SR number 8606223364.
20870: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
20871: $as_echo_n "checking size of long... " >&6; }
20872: if ${ac_cv_sizeof_long+:} false; then :
20873:   $as_echo_n "(cached) " >&6
20874: else
20875:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
20876: 
20877: else
20878:   if test "$ac_cv_type_long" = yes; then
20879:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20880: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20881: as_fn_error 77 "cannot compute sizeof (long)
20882: See \`config.log' for more details" "$LINENO" 5; }
20883:    else
20884:      ac_cv_sizeof_long=0
20885:    fi
20886: fi
20887: 
20888: fi
20889: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
20890: $as_echo "$ac_cv_sizeof_long" >&6; }
20891: 
20892: 
20893: 
20894: cat >>confdefs.h <<_ACEOF
20895: #define SIZEOF_LONG $ac_cv_sizeof_long
20896: _ACEOF
20897: 
20898: 
20899: # The cast to long int works around a bug in the HP C Compiler
20900: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20901: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20902: # This bug is HP SR number 8606223364.
20903: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
20904: $as_echo_n "checking size of int... " >&6; }
20905: if ${ac_cv_sizeof_int+:} false; then :
20906:   $as_echo_n "(cached) " >&6
20907: else
20908:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
20909: 
20910: else
20911:   if test "$ac_cv_type_int" = yes; then
20912:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20913: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20914: as_fn_error 77 "cannot compute sizeof (int)
20915: See \`config.log' for more details" "$LINENO" 5; }
20916:    else
20917:      ac_cv_sizeof_int=0
20918:    fi
20919: fi
20920: 
20921: fi
20922: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
20923: $as_echo "$ac_cv_sizeof_int" >&6; }
20924: 
20925: 
20926: 
20927: cat >>confdefs.h <<_ACEOF
20928: #define SIZEOF_INT $ac_cv_sizeof_int
20929: _ACEOF
20930: 
20931: 
20932: 
20933: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int32_t" >&5
20934: $as_echo_n "checking for int32_t... " >&6; }
20935: if ${ac_cv_int_type_int32_t+:} false; then :
20936:   $as_echo_n "(cached) " >&6
20937: else
20938: 
20939: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20940: /* end confdefs.h.  */
20941: 
20942: #if HAVE_SYS_TYPES_H
20943: # include <sys/types.h>
20944: #endif
20945: #if HAVE_INTTYPES_H
20946: # include <inttypes.h>
20947: #elif HAVE_STDINT_H
20948: # include <stdint.h>
20949: #endif
20950: int
20951: main ()
20952: {
20953: if ((int32_t *) 0)
20954:   return 0;
20955: if (sizeof (int32_t))
20956:   return 0;
20957: 
20958:   ;
20959:   return 0;
20960: }
20961: _ACEOF
20962: if ac_fn_c_try_compile "$LINENO"; then :
20963:   ac_cv_int_type_int32_t=yes
20964: else
20965:   ac_cv_int_type_int32_t=no
20966: fi
20967: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20968: 
20969: fi
20970: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int_type_int32_t" >&5
20971: $as_echo "$ac_cv_int_type_int32_t" >&6; }
20972: if test "$ac_cv_int_type_int32_t" = "yes"; then
20973: 
20974: $as_echo "#define HAVE_INT32_T 1" >>confdefs.h
20975: 
20976: fi
20977: 
20978: 
20979: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint32_t" >&5
20980: $as_echo_n "checking for uint32_t... " >&6; }
20981: if ${ac_cv_int_type_uint32_t+:} false; then :
20982:   $as_echo_n "(cached) " >&6
20983: else
20984: 
20985: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20986: /* end confdefs.h.  */
20987: 
20988: #if HAVE_SYS_TYPES_H
20989: # include <sys/types.h>
20990: #endif
20991: #if HAVE_INTTYPES_H
20992: # include <inttypes.h>
20993: #elif HAVE_STDINT_H
20994: # include <stdint.h>
20995: #endif
20996: int
20997: main ()
20998: {
20999: if ((uint32_t *) 0)
21000:   return 0;
21001: if (sizeof (uint32_t))
21002:   return 0;
21003: 
21004:   ;
21005:   return 0;
21006: }
21007: _ACEOF
21008: if ac_fn_c_try_compile "$LINENO"; then :
21009:   ac_cv_int_type_uint32_t=yes
21010: else
21011:   ac_cv_int_type_uint32_t=no
21012: fi
21013: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21014: 
21015: fi
21016: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int_type_uint32_t" >&5
21017: $as_echo "$ac_cv_int_type_uint32_t" >&6; }
21018: if test "$ac_cv_int_type_uint32_t" = "yes"; then
21019: 
21020: $as_echo "#define HAVE_UINT32_T 1" >>confdefs.h
21021: 
21022: fi
21023: 
21024: 
21025: for ac_header in  \
21026: sys/types.h \
21027: inttypes.h \
21028: stdint.h \
21029: string.h \
21030: stdlib.h
21031: 
21032: do :
21033:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21034: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21035: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21036:   cat >>confdefs.h <<_ACEOF
21037: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21038: _ACEOF
21039: 
21040: fi
21041: 
21042: done
21043: 
21044: 
21045: for ac_func in strtoll atoll strftime
21046: do :
21047:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21048: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21049: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21050:   cat >>confdefs.h <<_ACEOF
21051: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21052: _ACEOF
21053: 
21054: fi
21055: done
21056: 
21057: 
21058: 
21059: 
21060: PHP_DATE_CFLAGS="-I@ext_builddir@/lib"
21061: timelib_sources="lib/astro.c lib/dow.c lib/parse_date.c lib/parse_tz.c
21062:                  lib/timelib.c lib/tm2unixtime.c lib/unixtime2tm.c lib/parse_iso_intervals.c lib/interval.c"
21063: 
21064: 
21065:   ext_builddir=ext/date
21066:   ext_srcdir=$abs_srcdir/ext/date
21067: 
21068:   ac_extra=`echo "$PHP_DATE_CFLAGS"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
21069: 
21070:   if test "no" != "shared" && test "no" != "yes" && test "" != "cli"; then
21071:     PHP_DATE_SHARED=no
21072: 
21073: 
21074:   case ext/date in
21075:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
21076:   /*) ac_srcdir=`echo "ext/date"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
21077:   *) ac_srcdir="$abs_srcdir/ext/date/"; ac_bdir="ext/date/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
21078:   esac
21079: 
21080: 
21081: 
21082:   b_c_pre=$php_c_pre
21083:   b_cxx_pre=$php_cxx_pre
21084:   b_c_meta=$php_c_meta
21085:   b_cxx_meta=$php_cxx_meta
21086:   b_c_post=$php_c_post
21087:   b_cxx_post=$php_cxx_post
21088:   b_lo=$php_lo
21089: 
21090: 
21091:   old_IFS=$IFS
21092:   for ac_src in php_date.c $timelib_sources; do
21093: 
21094:       IFS=.
21095:       set $ac_src
21096:       ac_obj=$1
21097:       IFS=$old_IFS
21098: 
21099:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
21100: 
21101:       case $ac_src in
21102:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
21103:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
21104:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
21105:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
21106:       esac
21107: 
21108:     cat >>Makefile.objects<<EOF
21109: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
21110: 	$ac_comp
21111: EOF
21112:   done
21113: 
21114: 
21115:     EXT_STATIC="$EXT_STATIC date"
21116:     if test "no" != "nocli"; then
21117:       EXT_CLI_STATIC="$EXT_CLI_STATIC date"
21118:     fi
21119:   else
21120:     if test "no" = "shared" || test "no" = "yes"; then
21121:       PHP_DATE_SHARED=yes
21122: 
21123:   case ext/date in
21124:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
21125:   /*) ac_srcdir=`echo "ext/date"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
21126:   *) ac_srcdir="$abs_srcdir/ext/date/"; ac_bdir="ext/date/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
21127:   esac
21128: 
21129: 
21130: 
21131:   b_c_pre=$shared_c_pre
21132:   b_cxx_pre=$shared_cxx_pre
21133:   b_c_meta=$shared_c_meta
21134:   b_cxx_meta=$shared_cxx_meta
21135:   b_c_post=$shared_c_post
21136:   b_cxx_post=$shared_cxx_post
21137:   b_lo=$shared_lo
21138: 
21139: 
21140:   old_IFS=$IFS
21141:   for ac_src in php_date.c $timelib_sources; do
21142: 
21143:       IFS=.
21144:       set $ac_src
21145:       ac_obj=$1
21146:       IFS=$old_IFS
21147: 
21148:       shared_objects_date="$shared_objects_date $ac_bdir$ac_obj.lo"
21149: 
21150:       case $ac_src in
21151:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
21152:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
21153:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
21154:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
21155:       esac
21156: 
21157:     cat >>Makefile.objects<<EOF
21158: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
21159: 	$ac_comp
21160: EOF
21161:   done
21162: 
21163:       case $host_alias in
21164:         *netware*)
21165: 
21166:   install_modules="install-modules"
21167: 
21168:   case $host_alias in
21169:     *aix*)
21170:       suffix=so
21171:       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'
21172:       ;;
21173:     *netware*)
21174:       suffix=nlm
21175:       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)'
21176:       ;;
21177:     *)
21178:       suffix=la
21179:       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)'
21180:       ;;
21181:   esac
21182: 
21183:   if test "x" = "xyes"; then
21184:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpdate.$suffix"
21185:   else
21186:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpdate.$suffix"
21187:   fi
21188: 
21189:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_date"
21190: 
21191:   cat >>Makefile.objects<<EOF
21192: \$(phplibdir)/phpdate.$suffix: $ext_builddir/phpdate.$suffix
21193: 	\$(LIBTOOL) --mode=install cp $ext_builddir/phpdate.$suffix \$(phplibdir)
21194: 
21195: $ext_builddir/phpdate.$suffix: \$(shared_objects_date) \$(PHPDATE_SHARED_DEPENDENCIES)
21196: 	$link_cmd
21197: 
21198: EOF
21199: 
21200:           ;;
21201:         *)
21202: 
21203:   install_modules="install-modules"
21204: 
21205:   case $host_alias in
21206:     *aix*)
21207:       suffix=so
21208:       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'
21209:       ;;
21210:     *netware*)
21211:       suffix=nlm
21212:       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)'
21213:       ;;
21214:     *)
21215:       suffix=la
21216:       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)'
21217:       ;;
21218:   esac
21219: 
21220:   if test "x" = "xyes"; then
21221:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/date.$suffix"
21222:   else
21223:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/date.$suffix"
21224:   fi
21225: 
21226:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_date"
21227: 
21228:   cat >>Makefile.objects<<EOF
21229: \$(phplibdir)/date.$suffix: $ext_builddir/date.$suffix
21230: 	\$(LIBTOOL) --mode=install cp $ext_builddir/date.$suffix \$(phplibdir)
21231: 
21232: $ext_builddir/date.$suffix: \$(shared_objects_date) \$(DATE_SHARED_DEPENDENCIES)
21233: 	$link_cmd
21234: 
21235: EOF
21236: 
21237:           ;;
21238:       esac
21239: 
21240: cat >>confdefs.h <<_ACEOF
21241: #define COMPILE_DL_DATE 1
21242: _ACEOF
21243: 
21244:     fi
21245:   fi
21246: 
21247:   if test "no" != "shared" && test "no" != "yes" && test "" = "cli"; then
21248:     PHP_DATE_SHARED=no
21249:     case "$PHP_SAPI" in
21250:       cgi|embed)
21251: 
21252: 
21253:   case ext/date in
21254:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
21255:   /*) ac_srcdir=`echo "ext/date"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
21256:   *) ac_srcdir="$abs_srcdir/ext/date/"; ac_bdir="ext/date/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
21257:   esac
21258: 
21259: 
21260: 
21261:   b_c_pre=$php_c_pre
21262:   b_cxx_pre=$php_cxx_pre
21263:   b_c_meta=$php_c_meta
21264:   b_cxx_meta=$php_cxx_meta
21265:   b_c_post=$php_c_post
21266:   b_cxx_post=$php_cxx_post
21267:   b_lo=$php_lo
21268: 
21269: 
21270:   old_IFS=$IFS
21271:   for ac_src in php_date.c $timelib_sources; do
21272: 
21273:       IFS=.
21274:       set $ac_src
21275:       ac_obj=$1
21276:       IFS=$old_IFS
21277: 
21278:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
21279: 
21280:       case $ac_src in
21281:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
21282:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
21283:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
21284:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
21285:       esac
21286: 
21287:     cat >>Makefile.objects<<EOF
21288: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
21289: 	$ac_comp
21290: EOF
21291:   done
21292: 
21293: 
21294:         EXT_STATIC="$EXT_STATIC date"
21295:         ;;
21296:       *)
21297: 
21298: 
21299:   case ext/date in
21300:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
21301:   /*) ac_srcdir=`echo "ext/date"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
21302:   *) ac_srcdir="$abs_srcdir/ext/date/"; ac_bdir="ext/date/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
21303:   esac
21304: 
21305: 
21306: 
21307:   b_c_pre=$php_c_pre
21308:   b_cxx_pre=$php_cxx_pre
21309:   b_c_meta=$php_c_meta
21310:   b_cxx_meta=$php_cxx_meta
21311:   b_c_post=$php_c_post
21312:   b_cxx_post=$php_cxx_post
21313:   b_lo=$php_lo
21314: 
21315: 
21316:   old_IFS=$IFS
21317:   for ac_src in php_date.c $timelib_sources; do
21318: 
21319:       IFS=.
21320:       set $ac_src
21321:       ac_obj=$1
21322:       IFS=$old_IFS
21323: 
21324:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
21325: 
21326:       case $ac_src in
21327:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
21328:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
21329:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
21330:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
21331:       esac
21332: 
21333:     cat >>Makefile.objects<<EOF
21334: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
21335: 	$ac_comp
21336: EOF
21337:   done
21338: 
21339: 
21340:         ;;
21341:     esac
21342:     EXT_CLI_STATIC="$EXT_CLI_STATIC date"
21343:   fi
21344: 
21345: 
21346:     BUILD_DIR="$BUILD_DIR $ext_builddir"
21347: 
21348: 
21349: 
21350:   if test "$ext_builddir" = "."; then
21351:     PHP_PECL_EXTENSION=date
21352: 
21353:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
21354: 
21355:   fi
21356: 
21357: 
21358: 
21359: 
21360:     $php_shtool mkdir -p $ext_builddir/lib
21361: 
21362: 
21363: 
21364:   if test "$ext_builddir/lib" != "/usr/include"; then
21365: 
21366:   if test -z "$ext_builddir/lib" || echo "$ext_builddir/lib" | grep '^/' >/dev/null ; then
21367:     ai_p=$ext_builddir/lib
21368:   else
21369: 
21370:     ep_dir=`echo $ext_builddir/lib|$SED 's%/*[^/][^/]*/*$%%'`
21371: 
21372:     ep_realdir=`(cd "$ep_dir" && pwd)`
21373:     ai_p="$ep_realdir"/`basename "$ext_builddir/lib"`
21374:   fi
21375: 
21376: 
21377: 
21378:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
21379: 
21380:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
21381:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
21382:     eval "INCLUDEPATH$unique=set"
21383: 
21384:       if test ""; then
21385:         INCLUDES="-I$ai_p $INCLUDES"
21386:       else
21387:         INCLUDES="$INCLUDES -I$ai_p"
21388:       fi
21389: 
21390:   fi
21391: 
21392:   fi
21393: 
21394: 
21395:   if test "$ext_srcdir/lib" != "/usr/include"; then
21396: 
21397:   if test -z "$ext_srcdir/lib" || echo "$ext_srcdir/lib" | grep '^/' >/dev/null ; then
21398:     ai_p=$ext_srcdir/lib
21399:   else
21400: 
21401:     ep_dir=`echo $ext_srcdir/lib|$SED 's%/*[^/][^/]*/*$%%'`
21402: 
21403:     ep_realdir=`(cd "$ep_dir" && pwd)`
21404:     ai_p="$ep_realdir"/`basename "$ext_srcdir/lib"`
21405:   fi
21406: 
21407: 
21408: 
21409:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
21410: 
21411:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
21412:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
21413:     eval "INCLUDEPATH$unique=set"
21414: 
21415:       if test ""; then
21416:         INCLUDES="-I$ai_p $INCLUDES"
21417:       else
21418:         INCLUDES="$INCLUDES -I$ai_p"
21419:       fi
21420: 
21421:   fi
21422: 
21423:   fi
21424: 
21425: 
21426: 
21427: 
21428:     header_path=ext/date
21429:     for header_file in php_date.h lib/timelib.h lib/timelib_structs.h lib/timelib_config.h; do
21430:       hp_hf="$header_path/$header_file"
21431: 
21432: 
21433:   unique=`echo $hp_hf|$SED 's/[^a-zA-Z0-9]/_/g'`
21434: 
21435:   cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
21436:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
21437:     eval "INSTALLHEADERS$unique=set"
21438: 
21439:         INSTALL_HEADERS="$INSTALL_HEADERS $hp_hf"
21440: 
21441:   fi
21442: 
21443:     done
21444: 
21445: 
21446: 
21447: cat > $ext_builddir/lib/timelib_config.h <<EOF
21448: #ifdef PHP_WIN32
21449: # include "config.w32.h"
21450: #else
21451: # include <php_config.h>
21452: #endif
21453: EOF
21454: 
21455: 
21456: 
21457: php_with_regex=php
21458: 
21459: 
21460: 
21461: # Check whether --with-regex was given.
21462: if test "${with_regex+set}" = set; then :
21463:   withval=$with_regex; PHP_REGEX=$withval
21464: else
21465: 
21466:   PHP_REGEX=php
21467: 
21468: 
21469: fi
21470: 
21471: 
21472: ext_output=$PHP_REGEX
21473: 
21474: 
21475: 
21476: 
21477: 
21478: case $PHP_REGEX in
21479:   system)
21480:     if test "$PHP_SAPI" = "apache" || test "$PHP_SAPI" = "apache2filter" || test "$PHP_SAPI" = "apache2handler"; then
21481:       REGEX_TYPE=php
21482:     else
21483:       REGEX_TYPE=system
21484:     fi
21485:     ;;
21486:   yes | php)
21487:     REGEX_TYPE=php
21488:     ;;
21489:   *)
21490:     REGEX_TYPE=php
21491:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Invalid regex library type selected. Using default value: php" >&5
21492: $as_echo "$as_me: WARNING: Invalid regex library type selected. Using default value: php" >&2;}
21493:     ;;
21494: esac
21495: 
21496: { $as_echo "$as_me:${as_lineno-$LINENO}: checking which regex library to use" >&5
21497: $as_echo_n "checking which regex library to use... " >&6; }
21498: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REGEX_TYPE" >&5
21499: $as_echo "$REGEX_TYPE" >&6; }
21500: 
21501: if test "$REGEX_TYPE" = "php"; then
21502:   ereg_regex_sources="regex/regcomp.c regex/regexec.c regex/regerror.c regex/regfree.c"
21503:   ereg_regex_headers="regex/"
21504:   PHP_EREG_CFLAGS="-Dregexec=php_regexec -Dregerror=php_regerror -Dregfree=php_regfree -Dregcomp=php_regcomp"
21505: fi
21506: 
21507: 
21508:   ext_builddir=ext/ereg
21509:   ext_srcdir=$abs_srcdir/ext/ereg
21510: 
21511:   ac_extra=`echo "$PHP_EREG_CFLAGS"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
21512: 
21513:   if test "no" != "shared" && test "no" != "yes" && test "" != "cli"; then
21514:     PHP_EREG_SHARED=no
21515: 
21516: 
21517:   case ext/ereg in
21518:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
21519:   /*) ac_srcdir=`echo "ext/ereg"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
21520:   *) ac_srcdir="$abs_srcdir/ext/ereg/"; ac_bdir="ext/ereg/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
21521:   esac
21522: 
21523: 
21524: 
21525:   b_c_pre=$php_c_pre
21526:   b_cxx_pre=$php_cxx_pre
21527:   b_c_meta=$php_c_meta
21528:   b_cxx_meta=$php_cxx_meta
21529:   b_c_post=$php_c_post
21530:   b_cxx_post=$php_cxx_post
21531:   b_lo=$php_lo
21532: 
21533: 
21534:   old_IFS=$IFS
21535:   for ac_src in ereg.c $ereg_regex_sources; do
21536: 
21537:       IFS=.
21538:       set $ac_src
21539:       ac_obj=$1
21540:       IFS=$old_IFS
21541: 
21542:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
21543: 
21544:       case $ac_src in
21545:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
21546:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
21547:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
21548:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
21549:       esac
21550: 
21551:     cat >>Makefile.objects<<EOF
21552: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
21553: 	$ac_comp
21554: EOF
21555:   done
21556: 
21557: 
21558:     EXT_STATIC="$EXT_STATIC ereg"
21559:     if test "no" != "nocli"; then
21560:       EXT_CLI_STATIC="$EXT_CLI_STATIC ereg"
21561:     fi
21562:   else
21563:     if test "no" = "shared" || test "no" = "yes"; then
21564:       PHP_EREG_SHARED=yes
21565: 
21566:   case ext/ereg in
21567:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
21568:   /*) ac_srcdir=`echo "ext/ereg"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
21569:   *) ac_srcdir="$abs_srcdir/ext/ereg/"; ac_bdir="ext/ereg/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
21570:   esac
21571: 
21572: 
21573: 
21574:   b_c_pre=$shared_c_pre
21575:   b_cxx_pre=$shared_cxx_pre
21576:   b_c_meta=$shared_c_meta
21577:   b_cxx_meta=$shared_cxx_meta
21578:   b_c_post=$shared_c_post
21579:   b_cxx_post=$shared_cxx_post
21580:   b_lo=$shared_lo
21581: 
21582: 
21583:   old_IFS=$IFS
21584:   for ac_src in ereg.c $ereg_regex_sources; do
21585: 
21586:       IFS=.
21587:       set $ac_src
21588:       ac_obj=$1
21589:       IFS=$old_IFS
21590: 
21591:       shared_objects_ereg="$shared_objects_ereg $ac_bdir$ac_obj.lo"
21592: 
21593:       case $ac_src in
21594:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
21595:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
21596:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
21597:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
21598:       esac
21599: 
21600:     cat >>Makefile.objects<<EOF
21601: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
21602: 	$ac_comp
21603: EOF
21604:   done
21605: 
21606:       case $host_alias in
21607:         *netware*)
21608: 
21609:   install_modules="install-modules"
21610: 
21611:   case $host_alias in
21612:     *aix*)
21613:       suffix=so
21614:       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'
21615:       ;;
21616:     *netware*)
21617:       suffix=nlm
21618:       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)'
21619:       ;;
21620:     *)
21621:       suffix=la
21622:       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)'
21623:       ;;
21624:   esac
21625: 
21626:   if test "x" = "xyes"; then
21627:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpereg.$suffix"
21628:   else
21629:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpereg.$suffix"
21630:   fi
21631: 
21632:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_ereg"
21633: 
21634:   cat >>Makefile.objects<<EOF
21635: \$(phplibdir)/phpereg.$suffix: $ext_builddir/phpereg.$suffix
21636: 	\$(LIBTOOL) --mode=install cp $ext_builddir/phpereg.$suffix \$(phplibdir)
21637: 
21638: $ext_builddir/phpereg.$suffix: \$(shared_objects_ereg) \$(PHPEREG_SHARED_DEPENDENCIES)
21639: 	$link_cmd
21640: 
21641: EOF
21642: 
21643:           ;;
21644:         *)
21645: 
21646:   install_modules="install-modules"
21647: 
21648:   case $host_alias in
21649:     *aix*)
21650:       suffix=so
21651:       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'
21652:       ;;
21653:     *netware*)
21654:       suffix=nlm
21655:       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)'
21656:       ;;
21657:     *)
21658:       suffix=la
21659:       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)'
21660:       ;;
21661:   esac
21662: 
21663:   if test "x" = "xyes"; then
21664:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/ereg.$suffix"
21665:   else
21666:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/ereg.$suffix"
21667:   fi
21668: 
21669:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_ereg"
21670: 
21671:   cat >>Makefile.objects<<EOF
21672: \$(phplibdir)/ereg.$suffix: $ext_builddir/ereg.$suffix
21673: 	\$(LIBTOOL) --mode=install cp $ext_builddir/ereg.$suffix \$(phplibdir)
21674: 
21675: $ext_builddir/ereg.$suffix: \$(shared_objects_ereg) \$(EREG_SHARED_DEPENDENCIES)
21676: 	$link_cmd
21677: 
21678: EOF
21679: 
21680:           ;;
21681:       esac
21682: 
21683: cat >>confdefs.h <<_ACEOF
21684: #define COMPILE_DL_EREG 1
21685: _ACEOF
21686: 
21687:     fi
21688:   fi
21689: 
21690:   if test "no" != "shared" && test "no" != "yes" && test "" = "cli"; then
21691:     PHP_EREG_SHARED=no
21692:     case "$PHP_SAPI" in
21693:       cgi|embed)
21694: 
21695: 
21696:   case ext/ereg in
21697:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
21698:   /*) ac_srcdir=`echo "ext/ereg"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
21699:   *) ac_srcdir="$abs_srcdir/ext/ereg/"; ac_bdir="ext/ereg/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
21700:   esac
21701: 
21702: 
21703: 
21704:   b_c_pre=$php_c_pre
21705:   b_cxx_pre=$php_cxx_pre
21706:   b_c_meta=$php_c_meta
21707:   b_cxx_meta=$php_cxx_meta
21708:   b_c_post=$php_c_post
21709:   b_cxx_post=$php_cxx_post
21710:   b_lo=$php_lo
21711: 
21712: 
21713:   old_IFS=$IFS
21714:   for ac_src in ereg.c $ereg_regex_sources; do
21715: 
21716:       IFS=.
21717:       set $ac_src
21718:       ac_obj=$1
21719:       IFS=$old_IFS
21720: 
21721:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
21722: 
21723:       case $ac_src in
21724:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
21725:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
21726:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
21727:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
21728:       esac
21729: 
21730:     cat >>Makefile.objects<<EOF
21731: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
21732: 	$ac_comp
21733: EOF
21734:   done
21735: 
21736: 
21737:         EXT_STATIC="$EXT_STATIC ereg"
21738:         ;;
21739:       *)
21740: 
21741: 
21742:   case ext/ereg in
21743:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
21744:   /*) ac_srcdir=`echo "ext/ereg"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
21745:   *) ac_srcdir="$abs_srcdir/ext/ereg/"; ac_bdir="ext/ereg/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
21746:   esac
21747: 
21748: 
21749: 
21750:   b_c_pre=$php_c_pre
21751:   b_cxx_pre=$php_cxx_pre
21752:   b_c_meta=$php_c_meta
21753:   b_cxx_meta=$php_cxx_meta
21754:   b_c_post=$php_c_post
21755:   b_cxx_post=$php_cxx_post
21756:   b_lo=$php_lo
21757: 
21758: 
21759:   old_IFS=$IFS
21760:   for ac_src in ereg.c $ereg_regex_sources; do
21761: 
21762:       IFS=.
21763:       set $ac_src
21764:       ac_obj=$1
21765:       IFS=$old_IFS
21766: 
21767:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
21768: 
21769:       case $ac_src in
21770:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
21771:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
21772:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
21773:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
21774:       esac
21775: 
21776:     cat >>Makefile.objects<<EOF
21777: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
21778: 	$ac_comp
21779: EOF
21780:   done
21781: 
21782: 
21783:         ;;
21784:     esac
21785:     EXT_CLI_STATIC="$EXT_CLI_STATIC ereg"
21786:   fi
21787: 
21788: 
21789:     BUILD_DIR="$BUILD_DIR $ext_builddir"
21790: 
21791: 
21792: 
21793:   if test "$ext_builddir" = "."; then
21794:     PHP_PECL_EXTENSION=ereg
21795: 
21796:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
21797: 
21798:   fi
21799: 
21800: 
21801: 
21802:     header_path=ext/ereg
21803:     for header_file in php_ereg.h php_regex.h $ereg_regex_headers; do
21804:       hp_hf="$header_path/$header_file"
21805: 
21806: 
21807:   unique=`echo $hp_hf|$SED 's/[^a-zA-Z0-9]/_/g'`
21808: 
21809:   cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
21810:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
21811:     eval "INSTALLHEADERS$unique=set"
21812: 
21813:         INSTALL_HEADERS="$INSTALL_HEADERS $hp_hf"
21814: 
21815:   fi
21816: 
21817:     done
21818: 
21819: 
21820: 
21821: if test "$REGEX_TYPE" = "php"; then
21822: 
21823: $as_echo "#define HAVE_REGEX_T_RE_MAGIC 1" >>confdefs.h
21824: 
21825: 
21826: $as_echo "#define HSREGEX 1" >>confdefs.h
21827: 
21828: 
21829: $as_echo "#define REGEX 1" >>confdefs.h
21830: 
21831: 
21832: 
21833:     $php_shtool mkdir -p $ext_builddir/regex
21834: 
21835: 
21836: 
21837:   if test "$ext_srcdir/regex" != "/usr/include"; then
21838: 
21839:   if test -z "$ext_srcdir/regex" || echo "$ext_srcdir/regex" | grep '^/' >/dev/null ; then
21840:     ai_p=$ext_srcdir/regex
21841:   else
21842: 
21843:     ep_dir=`echo $ext_srcdir/regex|$SED 's%/*[^/][^/]*/*$%%'`
21844: 
21845:     ep_realdir=`(cd "$ep_dir" && pwd)`
21846:     ai_p="$ep_realdir"/`basename "$ext_srcdir/regex"`
21847:   fi
21848: 
21849: 
21850: 
21851:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
21852: 
21853:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
21854:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
21855:     eval "INCLUDEPATH$unique=set"
21856: 
21857:       if test ""; then
21858:         INCLUDES="-I$ai_p $INCLUDES"
21859:       else
21860:         INCLUDES="$INCLUDES -I$ai_p"
21861:       fi
21862: 
21863:   fi
21864: 
21865:   fi
21866: 
21867: elif test "$REGEX_TYPE" = "system"; then
21868: 
21869: $as_echo "#define REGEX 0" >>confdefs.h
21870: 
21871:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether field re_magic exists in struct regex_t" >&5
21872: $as_echo_n "checking whether field re_magic exists in struct regex_t... " >&6; }
21873: if ${ac_cv_regex_t_re_magic+:} false; then :
21874:   $as_echo_n "(cached) " >&6
21875: else
21876: 
21877:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21878: /* end confdefs.h.  */
21879: #include <sys/types.h>
21880: #include <regex.h>
21881: int
21882: main ()
21883: {
21884: regex_t rt; rt.re_magic;
21885:   ;
21886:   return 0;
21887: }
21888: _ACEOF
21889: if ac_fn_c_try_compile "$LINENO"; then :
21890:   ac_cv_regex_t_re_magic=yes
21891: else
21892:   ac_cv_regex_t_re_magic=no
21893: fi
21894: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21895: fi
21896: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_regex_t_re_magic" >&5
21897: $as_echo "$ac_cv_regex_t_re_magic" >&6; }
21898:   if test "$ac_cv_regex_t_re_magic" = "yes"; then
21899: 
21900: $as_echo "#define HAVE_REGEX_T_RE_MAGIC  " >>confdefs.h
21901: 
21902:   fi
21903: fi
21904: 
21905: 
21906: 
21907: php_enable_libxml=yes
21908: 
21909: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable LIBXML support" >&5
21910: $as_echo_n "checking whether to enable LIBXML support... " >&6; }
21911: # Check whether --enable-libxml was given.
21912: if test "${enable_libxml+set}" = set; then :
21913:   enableval=$enable_libxml; PHP_LIBXML=$enableval
21914: else
21915: 
21916:   PHP_LIBXML=yes
21917:   test "$PHP_ENABLE_ALL" && PHP_LIBXML=$PHP_ENABLE_ALL
21918: 
21919: fi
21920: 
21921: 
21922: 
21923: ext_output="yes, shared"
21924: ext_shared=yes
21925: case $PHP_LIBXML in
21926: shared,*)
21927:   PHP_LIBXML=`echo "$PHP_LIBXML"|$SED 's/^shared,//'`
21928:   ;;
21929: shared)
21930:   PHP_LIBXML=yes
21931:   ;;
21932: no)
21933:   ext_output=no
21934:   ext_shared=no
21935:   ;;
21936: *)
21937:   ext_output=yes
21938:   ext_shared=no
21939:   ;;
21940: esac
21941: 
21942: 
21943: 
21944: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
21945: $as_echo "$ext_output" >&6; }
21946: 
21947: 
21948: 
21949: 
21950: if test -z "$PHP_LIBXML_DIR"; then
21951: 
21952: php_with_libxml_dir=no
21953: 
21954: { $as_echo "$as_me:${as_lineno-$LINENO}: checking libxml2 install dir" >&5
21955: $as_echo_n "checking libxml2 install dir... " >&6; }
21956: 
21957: # Check whether --with-libxml-dir was given.
21958: if test "${with_libxml_dir+set}" = set; then :
21959:   withval=$with_libxml_dir; PHP_LIBXML_DIR=$withval
21960: else
21961: 
21962:   PHP_LIBXML_DIR=no
21963: 
21964: 
21965: fi
21966: 
21967: 
21968: ext_output=$PHP_LIBXML_DIR
21969: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
21970: $as_echo "$ext_output" >&6; }
21971: 
21972: 
21973: 
21974: fi
21975: 
21976: if test "$PHP_LIBXML" != "no"; then
21977: 
21978:     ext_shared=no
21979: 
21980: 
21981: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xml2-config path" >&5
21982: $as_echo_n "checking for xml2-config path... " >&6; }
21983: if ${ac_cv_php_xml2_config_path+:} false; then :
21984:   $as_echo_n "(cached) " >&6
21985: else
21986: 
21987:   for i in $PHP_LIBXML_DIR /usr/local /usr; do
21988:     if test -x "$i/bin/xml2-config"; then
21989:       ac_cv_php_xml2_config_path="$i/bin/xml2-config"
21990:       break
21991:     fi
21992:   done
21993: 
21994: fi
21995: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_php_xml2_config_path" >&5
21996: $as_echo "$ac_cv_php_xml2_config_path" >&6; }
21997: 
21998:   if test -x "$ac_cv_php_xml2_config_path"; then
21999:     XML2_CONFIG="$ac_cv_php_xml2_config_path"
22000:     libxml_full_version=`$XML2_CONFIG --version`
22001:     ac_IFS=$IFS
22002:     IFS="."
22003:     set $libxml_full_version
22004:     IFS=$ac_IFS
22005:     LIBXML_VERSION=`expr $1 \* 1000000 + $2 \* 1000 + $3`
22006:     if test "$LIBXML_VERSION" -ge "2006011"; then
22007:       LIBXML_LIBS=`$XML2_CONFIG --libs`
22008:       LIBXML_INCS=`$XML2_CONFIG --cflags`
22009: 
22010:   for ac_i in $LIBXML_LIBS; do
22011:     case $ac_i in
22012:     -pthread)
22013:       if test "$ext_shared" = "yes"; then
22014:         LIBXML_SHARED_LIBADD="$LIBXML_SHARED_LIBADD -pthread"
22015:       else
22016: 
22017: 
22018:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
22019: 
22020:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
22021:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
22022:     eval "EXTRA_LDFLAGS$unique=set"
22023:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
22024:   fi
22025: 
22026:       fi
22027:     ;;
22028:     -l*)
22029:       ac_ii=`echo $ac_i|cut -c 3-`
22030: 
22031: 
22032:   case $ac_ii in
22033:   c|c_r|pthread*) ;;
22034:   *)
22035:     if test "$ext_shared" = "yes"; then
22036:         LIBXML_SHARED_LIBADD="$LIBXML_SHARED_LIBADD -l$ac_ii"
22037:     else
22038: 
22039: 
22040:   case $ac_ii in
22041:   c|c_r|pthread*) ;;
22042:   *)
22043:       LIBS="$LIBS -l$ac_ii"
22044:    ;;
22045:   esac
22046: 
22047: 
22048:     fi
22049:    ;;
22050:   esac
22051: 
22052: 
22053:     ;;
22054:     -L*)
22055:       ac_ii=`echo $ac_i|cut -c 3-`
22056: 
22057:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
22058: 
22059:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
22060:     ai_p=$ac_ii
22061:   else
22062: 
22063:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
22064: 
22065:     ep_realdir=`(cd "$ep_dir" && pwd)`
22066:     ai_p="$ep_realdir"/`basename "$ac_ii"`
22067:   fi
22068: 
22069: 
22070:       if test "$ext_shared" = "yes"; then
22071:         LIBXML_SHARED_LIBADD="-L$ai_p $LIBXML_SHARED_LIBADD"
22072:         test -n "$ld_runpath_switch" && LIBXML_SHARED_LIBADD="$ld_runpath_switch$ai_p $LIBXML_SHARED_LIBADD"
22073:       else
22074: 
22075: 
22076: 
22077:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
22078: 
22079:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
22080:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
22081:     eval "LIBPATH$unique=set"
22082: 
22083:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
22084:     LDFLAGS="$LDFLAGS -L$ai_p"
22085:     PHP_RPATHS="$PHP_RPATHS $ai_p"
22086: 
22087:   fi
22088: 
22089: 
22090:       fi
22091: 
22092:   fi
22093: 
22094:     ;;
22095:     esac
22096:   done
22097: 
22098: 
22099:   for ac_i in $LIBXML_INCS; do
22100:     case $ac_i in
22101:     -I*)
22102:       ac_ii=`echo $ac_i|cut -c 3-`
22103: 
22104:   if test "$ac_ii" != "/usr/include"; then
22105: 
22106:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
22107:     ai_p=$ac_ii
22108:   else
22109: 
22110:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
22111: 
22112:     ep_realdir=`(cd "$ep_dir" && pwd)`
22113:     ai_p="$ep_realdir"/`basename "$ac_ii"`
22114:   fi
22115: 
22116: 
22117: 
22118:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
22119: 
22120:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
22121:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
22122:     eval "INCLUDEPATH$unique=set"
22123: 
22124:       if test ""; then
22125:         INCLUDES="-I$ai_p $INCLUDES"
22126:       else
22127:         INCLUDES="$INCLUDES -I$ai_p"
22128:       fi
22129: 
22130:   fi
22131: 
22132:   fi
22133: 
22134:     ;;
22135:     esac
22136:   done
22137: 
22138: 
22139:             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libxml build works" >&5
22140: $as_echo_n "checking whether libxml build works... " >&6; }
22141: if ${php_cv_libxml_build_works+:} false; then :
22142:   $as_echo_n "(cached) " >&6
22143: else
22144: 
22145: 
22146:   old_LIBS=$LIBS
22147:   LIBS="
22148:           $LIBXML_SHARED_LIBADD
22149:          $LIBS"
22150:   if test "$cross_compiling" = yes; then :
22151: 
22152:     LIBS=$old_LIBS
22153: 
22154: else
22155:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22156: /* end confdefs.h.  */
22157: 
22158: 
22159:     char xmlInitParser();
22160:     int main() {
22161:       xmlInitParser();
22162:       return 0;
22163:     }
22164: 
22165: _ACEOF
22166: if ac_fn_c_try_run "$LINENO"; then :
22167: 
22168:     LIBS=$old_LIBS
22169: 
22170:           php_cv_libxml_build_works=yes
22171: 
22172: 
22173: else
22174: 
22175:     LIBS=$old_LIBS
22176: 
22177:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22178: $as_echo "no" >&6; }
22179:           as_fn_error $? "build test failed.  Please check the config.log for details." "$LINENO" 5
22180: 
22181: 
22182: fi
22183: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22184:   conftest.$ac_objext conftest.beam conftest.$ac_ext
22185: fi
22186: 
22187: 
22188: 
22189: fi
22190: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_libxml_build_works" >&5
22191: $as_echo "$php_cv_libxml_build_works" >&6; }
22192:       if test "$php_cv_libxml_build_works" = "yes"; then
22193: 
22194: $as_echo "#define HAVE_LIBXML 1" >>confdefs.h
22195: 
22196:       fi
22197: 
22198: 
22199: $as_echo "#define HAVE_LIBXML 1" >>confdefs.h
22200: 
22201: 
22202:   ext_builddir=ext/libxml
22203:   ext_srcdir=$abs_srcdir/ext/libxml
22204: 
22205:   ac_extra=
22206: 
22207:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
22208:     PHP_LIBXML_SHARED=no
22209: 
22210: 
22211:   case ext/libxml in
22212:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
22213:   /*) ac_srcdir=`echo "ext/libxml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
22214:   *) ac_srcdir="$abs_srcdir/ext/libxml/"; ac_bdir="ext/libxml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
22215:   esac
22216: 
22217: 
22218: 
22219:   b_c_pre=$php_c_pre
22220:   b_cxx_pre=$php_cxx_pre
22221:   b_c_meta=$php_c_meta
22222:   b_cxx_meta=$php_cxx_meta
22223:   b_c_post=$php_c_post
22224:   b_cxx_post=$php_cxx_post
22225:   b_lo=$php_lo
22226: 
22227: 
22228:   old_IFS=$IFS
22229:   for ac_src in libxml.c; do
22230: 
22231:       IFS=.
22232:       set $ac_src
22233:       ac_obj=$1
22234:       IFS=$old_IFS
22235: 
22236:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
22237: 
22238:       case $ac_src in
22239:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
22240:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
22241:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
22242:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
22243:       esac
22244: 
22245:     cat >>Makefile.objects<<EOF
22246: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
22247: 	$ac_comp
22248: EOF
22249:   done
22250: 
22251: 
22252:     EXT_STATIC="$EXT_STATIC libxml"
22253:     if test "$ext_shared" != "nocli"; then
22254:       EXT_CLI_STATIC="$EXT_CLI_STATIC libxml"
22255:     fi
22256:   else
22257:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
22258:       PHP_LIBXML_SHARED=yes
22259: 
22260:   case ext/libxml in
22261:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
22262:   /*) ac_srcdir=`echo "ext/libxml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
22263:   *) ac_srcdir="$abs_srcdir/ext/libxml/"; ac_bdir="ext/libxml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
22264:   esac
22265: 
22266: 
22267: 
22268:   b_c_pre=$shared_c_pre
22269:   b_cxx_pre=$shared_cxx_pre
22270:   b_c_meta=$shared_c_meta
22271:   b_cxx_meta=$shared_cxx_meta
22272:   b_c_post=$shared_c_post
22273:   b_cxx_post=$shared_cxx_post
22274:   b_lo=$shared_lo
22275: 
22276: 
22277:   old_IFS=$IFS
22278:   for ac_src in libxml.c; do
22279: 
22280:       IFS=.
22281:       set $ac_src
22282:       ac_obj=$1
22283:       IFS=$old_IFS
22284: 
22285:       shared_objects_libxml="$shared_objects_libxml $ac_bdir$ac_obj.lo"
22286: 
22287:       case $ac_src in
22288:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
22289:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
22290:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
22291:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
22292:       esac
22293: 
22294:     cat >>Makefile.objects<<EOF
22295: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
22296: 	$ac_comp
22297: EOF
22298:   done
22299: 
22300:       case $host_alias in
22301:         *netware*)
22302: 
22303:   install_modules="install-modules"
22304: 
22305:   case $host_alias in
22306:     *aix*)
22307:       suffix=so
22308:       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'
22309:       ;;
22310:     *netware*)
22311:       suffix=nlm
22312:       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)'
22313:       ;;
22314:     *)
22315:       suffix=la
22316:       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)'
22317:       ;;
22318:   esac
22319: 
22320:   if test "x" = "xyes"; then
22321:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phplibxml.$suffix"
22322:   else
22323:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phplibxml.$suffix"
22324:   fi
22325: 
22326:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_libxml"
22327: 
22328:   cat >>Makefile.objects<<EOF
22329: \$(phplibdir)/phplibxml.$suffix: $ext_builddir/phplibxml.$suffix
22330: 	\$(LIBTOOL) --mode=install cp $ext_builddir/phplibxml.$suffix \$(phplibdir)
22331: 
22332: $ext_builddir/phplibxml.$suffix: \$(shared_objects_libxml) \$(PHPLIBXML_SHARED_DEPENDENCIES)
22333: 	$link_cmd
22334: 
22335: EOF
22336: 
22337:           ;;
22338:         *)
22339: 
22340:   install_modules="install-modules"
22341: 
22342:   case $host_alias in
22343:     *aix*)
22344:       suffix=so
22345:       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'
22346:       ;;
22347:     *netware*)
22348:       suffix=nlm
22349:       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)'
22350:       ;;
22351:     *)
22352:       suffix=la
22353:       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)'
22354:       ;;
22355:   esac
22356: 
22357:   if test "x" = "xyes"; then
22358:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/libxml.$suffix"
22359:   else
22360:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/libxml.$suffix"
22361:   fi
22362: 
22363:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_libxml"
22364: 
22365:   cat >>Makefile.objects<<EOF
22366: \$(phplibdir)/libxml.$suffix: $ext_builddir/libxml.$suffix
22367: 	\$(LIBTOOL) --mode=install cp $ext_builddir/libxml.$suffix \$(phplibdir)
22368: 
22369: $ext_builddir/libxml.$suffix: \$(shared_objects_libxml) \$(LIBXML_SHARED_DEPENDENCIES)
22370: 	$link_cmd
22371: 
22372: EOF
22373: 
22374:           ;;
22375:       esac
22376: 
22377: cat >>confdefs.h <<_ACEOF
22378: #define COMPILE_DL_LIBXML 1
22379: _ACEOF
22380: 
22381:     fi
22382:   fi
22383: 
22384:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
22385:     PHP_LIBXML_SHARED=no
22386:     case "$PHP_SAPI" in
22387:       cgi|embed)
22388: 
22389: 
22390:   case ext/libxml in
22391:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
22392:   /*) ac_srcdir=`echo "ext/libxml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
22393:   *) ac_srcdir="$abs_srcdir/ext/libxml/"; ac_bdir="ext/libxml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
22394:   esac
22395: 
22396: 
22397: 
22398:   b_c_pre=$php_c_pre
22399:   b_cxx_pre=$php_cxx_pre
22400:   b_c_meta=$php_c_meta
22401:   b_cxx_meta=$php_cxx_meta
22402:   b_c_post=$php_c_post
22403:   b_cxx_post=$php_cxx_post
22404:   b_lo=$php_lo
22405: 
22406: 
22407:   old_IFS=$IFS
22408:   for ac_src in libxml.c; do
22409: 
22410:       IFS=.
22411:       set $ac_src
22412:       ac_obj=$1
22413:       IFS=$old_IFS
22414: 
22415:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
22416: 
22417:       case $ac_src in
22418:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
22419:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
22420:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
22421:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
22422:       esac
22423: 
22424:     cat >>Makefile.objects<<EOF
22425: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
22426: 	$ac_comp
22427: EOF
22428:   done
22429: 
22430: 
22431:         EXT_STATIC="$EXT_STATIC libxml"
22432:         ;;
22433:       *)
22434: 
22435: 
22436:   case ext/libxml in
22437:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
22438:   /*) ac_srcdir=`echo "ext/libxml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
22439:   *) ac_srcdir="$abs_srcdir/ext/libxml/"; ac_bdir="ext/libxml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
22440:   esac
22441: 
22442: 
22443: 
22444:   b_c_pre=$php_c_pre
22445:   b_cxx_pre=$php_cxx_pre
22446:   b_c_meta=$php_c_meta
22447:   b_cxx_meta=$php_cxx_meta
22448:   b_c_post=$php_c_post
22449:   b_cxx_post=$php_cxx_post
22450:   b_lo=$php_lo
22451: 
22452: 
22453:   old_IFS=$IFS
22454:   for ac_src in libxml.c; do
22455: 
22456:       IFS=.
22457:       set $ac_src
22458:       ac_obj=$1
22459:       IFS=$old_IFS
22460: 
22461:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
22462: 
22463:       case $ac_src in
22464:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
22465:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
22466:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
22467:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
22468:       esac
22469: 
22470:     cat >>Makefile.objects<<EOF
22471: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
22472: 	$ac_comp
22473: EOF
22474:   done
22475: 
22476: 
22477:         ;;
22478:     esac
22479:     EXT_CLI_STATIC="$EXT_CLI_STATIC libxml"
22480:   fi
22481: 
22482: 
22483:     BUILD_DIR="$BUILD_DIR $ext_builddir"
22484: 
22485: 
22486: 
22487:   if test "$ext_builddir" = "."; then
22488:     PHP_PECL_EXTENSION=libxml
22489: 
22490:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
22491: 
22492:   fi
22493: 
22494: 
22495: 
22496:     for header_file in ext/libxml/php_libxml.h; do
22497: 
22498: 
22499:   unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
22500: 
22501:   cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
22502:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
22503:     eval "INSTALLHEADERS$unique=set"
22504: 
22505:         INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
22506: 
22507:   fi
22508: 
22509:     done
22510: 
22511: 
22512: 
22513:     else
22514:       as_fn_error $? "libxml2 version 2.6.11 or greater required." "$LINENO" 5
22515:     fi
22516: else
22517:     as_fn_error $? "xml2-config not found. Please check your libxml2 installation." "$LINENO" 5
22518: 
22519:   fi
22520: 
22521: fi
22522: 
22523: 
22524: 
22525: php_with_openssl=no
22526: 
22527: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL support" >&5
22528: $as_echo_n "checking for OpenSSL support... " >&6; }
22529: 
22530: # Check whether --with-openssl was given.
22531: if test "${with_openssl+set}" = set; then :
22532:   withval=$with_openssl; PHP_OPENSSL=$withval
22533: else
22534: 
22535:   PHP_OPENSSL=no
22536:   test "$PHP_ENABLE_ALL" && PHP_OPENSSL=$PHP_ENABLE_ALL
22537: 
22538: fi
22539: 
22540: 
22541: 
22542: ext_output="yes, shared"
22543: ext_shared=yes
22544: case $PHP_OPENSSL in
22545: shared,*)
22546:   PHP_OPENSSL=`echo "$PHP_OPENSSL"|$SED 's/^shared,//'`
22547:   ;;
22548: shared)
22549:   PHP_OPENSSL=yes
22550:   ;;
22551: no)
22552:   ext_output=no
22553:   ext_shared=no
22554:   ;;
22555: *)
22556:   ext_output=yes
22557:   ext_shared=no
22558:   ;;
22559: esac
22560: 
22561: 
22562: 
22563: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
22564: $as_echo "$ext_output" >&6; }
22565: 
22566: 
22567: 
22568: 
22569: 
22570: php_with_kerberos=no
22571: 
22572: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kerberos support" >&5
22573: $as_echo_n "checking for Kerberos support... " >&6; }
22574: 
22575: # Check whether --with-kerberos was given.
22576: if test "${with_kerberos+set}" = set; then :
22577:   withval=$with_kerberos; PHP_KERBEROS=$withval
22578: else
22579: 
22580:   PHP_KERBEROS=no
22581: 
22582: 
22583: fi
22584: 
22585: 
22586: ext_output=$PHP_KERBEROS
22587: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
22588: $as_echo "$ext_output" >&6; }
22589: 
22590: 
22591: 
22592: 
22593: if test "$PHP_OPENSSL" != "no"; then
22594: 
22595:   ext_builddir=ext/openssl
22596:   ext_srcdir=$abs_srcdir/ext/openssl
22597: 
22598:   ac_extra=
22599: 
22600:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
22601:     PHP_OPENSSL_SHARED=no
22602: 
22603: 
22604:   case ext/openssl in
22605:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
22606:   /*) ac_srcdir=`echo "ext/openssl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
22607:   *) ac_srcdir="$abs_srcdir/ext/openssl/"; ac_bdir="ext/openssl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
22608:   esac
22609: 
22610: 
22611: 
22612:   b_c_pre=$php_c_pre
22613:   b_cxx_pre=$php_cxx_pre
22614:   b_c_meta=$php_c_meta
22615:   b_cxx_meta=$php_cxx_meta
22616:   b_c_post=$php_c_post
22617:   b_cxx_post=$php_cxx_post
22618:   b_lo=$php_lo
22619: 
22620: 
22621:   old_IFS=$IFS
22622:   for ac_src in openssl.c xp_ssl.c; do
22623: 
22624:       IFS=.
22625:       set $ac_src
22626:       ac_obj=$1
22627:       IFS=$old_IFS
22628: 
22629:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
22630: 
22631:       case $ac_src in
22632:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
22633:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
22634:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
22635:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
22636:       esac
22637: 
22638:     cat >>Makefile.objects<<EOF
22639: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
22640: 	$ac_comp
22641: EOF
22642:   done
22643: 
22644: 
22645:     EXT_STATIC="$EXT_STATIC openssl"
22646:     if test "$ext_shared" != "nocli"; then
22647:       EXT_CLI_STATIC="$EXT_CLI_STATIC openssl"
22648:     fi
22649:   else
22650:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
22651:       PHP_OPENSSL_SHARED=yes
22652: 
22653:   case ext/openssl in
22654:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
22655:   /*) ac_srcdir=`echo "ext/openssl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
22656:   *) ac_srcdir="$abs_srcdir/ext/openssl/"; ac_bdir="ext/openssl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
22657:   esac
22658: 
22659: 
22660: 
22661:   b_c_pre=$shared_c_pre
22662:   b_cxx_pre=$shared_cxx_pre
22663:   b_c_meta=$shared_c_meta
22664:   b_cxx_meta=$shared_cxx_meta
22665:   b_c_post=$shared_c_post
22666:   b_cxx_post=$shared_cxx_post
22667:   b_lo=$shared_lo
22668: 
22669: 
22670:   old_IFS=$IFS
22671:   for ac_src in openssl.c xp_ssl.c; do
22672: 
22673:       IFS=.
22674:       set $ac_src
22675:       ac_obj=$1
22676:       IFS=$old_IFS
22677: 
22678:       shared_objects_openssl="$shared_objects_openssl $ac_bdir$ac_obj.lo"
22679: 
22680:       case $ac_src in
22681:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
22682:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
22683:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
22684:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
22685:       esac
22686: 
22687:     cat >>Makefile.objects<<EOF
22688: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
22689: 	$ac_comp
22690: EOF
22691:   done
22692: 
22693:       case $host_alias in
22694:         *netware*)
22695: 
22696:   install_modules="install-modules"
22697: 
22698:   case $host_alias in
22699:     *aix*)
22700:       suffix=so
22701:       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'
22702:       ;;
22703:     *netware*)
22704:       suffix=nlm
22705:       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)'
22706:       ;;
22707:     *)
22708:       suffix=la
22709:       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)'
22710:       ;;
22711:   esac
22712: 
22713:   if test "x" = "xyes"; then
22714:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpopenssl.$suffix"
22715:   else
22716:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpopenssl.$suffix"
22717:   fi
22718: 
22719:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_openssl"
22720: 
22721:   cat >>Makefile.objects<<EOF
22722: \$(phplibdir)/phpopenssl.$suffix: $ext_builddir/phpopenssl.$suffix
22723: 	\$(LIBTOOL) --mode=install cp $ext_builddir/phpopenssl.$suffix \$(phplibdir)
22724: 
22725: $ext_builddir/phpopenssl.$suffix: \$(shared_objects_openssl) \$(PHPOPENSSL_SHARED_DEPENDENCIES)
22726: 	$link_cmd
22727: 
22728: EOF
22729: 
22730:           ;;
22731:         *)
22732: 
22733:   install_modules="install-modules"
22734: 
22735:   case $host_alias in
22736:     *aix*)
22737:       suffix=so
22738:       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'
22739:       ;;
22740:     *netware*)
22741:       suffix=nlm
22742:       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)'
22743:       ;;
22744:     *)
22745:       suffix=la
22746:       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)'
22747:       ;;
22748:   esac
22749: 
22750:   if test "x" = "xyes"; then
22751:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/openssl.$suffix"
22752:   else
22753:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/openssl.$suffix"
22754:   fi
22755: 
22756:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_openssl"
22757: 
22758:   cat >>Makefile.objects<<EOF
22759: \$(phplibdir)/openssl.$suffix: $ext_builddir/openssl.$suffix
22760: 	\$(LIBTOOL) --mode=install cp $ext_builddir/openssl.$suffix \$(phplibdir)
22761: 
22762: $ext_builddir/openssl.$suffix: \$(shared_objects_openssl) \$(OPENSSL_SHARED_DEPENDENCIES)
22763: 	$link_cmd
22764: 
22765: EOF
22766: 
22767:           ;;
22768:       esac
22769: 
22770: cat >>confdefs.h <<_ACEOF
22771: #define COMPILE_DL_OPENSSL 1
22772: _ACEOF
22773: 
22774:     fi
22775:   fi
22776: 
22777:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
22778:     PHP_OPENSSL_SHARED=no
22779:     case "$PHP_SAPI" in
22780:       cgi|embed)
22781: 
22782: 
22783:   case ext/openssl in
22784:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
22785:   /*) ac_srcdir=`echo "ext/openssl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
22786:   *) ac_srcdir="$abs_srcdir/ext/openssl/"; ac_bdir="ext/openssl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
22787:   esac
22788: 
22789: 
22790: 
22791:   b_c_pre=$php_c_pre
22792:   b_cxx_pre=$php_cxx_pre
22793:   b_c_meta=$php_c_meta
22794:   b_cxx_meta=$php_cxx_meta
22795:   b_c_post=$php_c_post
22796:   b_cxx_post=$php_cxx_post
22797:   b_lo=$php_lo
22798: 
22799: 
22800:   old_IFS=$IFS
22801:   for ac_src in openssl.c xp_ssl.c; do
22802: 
22803:       IFS=.
22804:       set $ac_src
22805:       ac_obj=$1
22806:       IFS=$old_IFS
22807: 
22808:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
22809: 
22810:       case $ac_src in
22811:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
22812:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
22813:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
22814:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
22815:       esac
22816: 
22817:     cat >>Makefile.objects<<EOF
22818: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
22819: 	$ac_comp
22820: EOF
22821:   done
22822: 
22823: 
22824:         EXT_STATIC="$EXT_STATIC openssl"
22825:         ;;
22826:       *)
22827: 
22828: 
22829:   case ext/openssl in
22830:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
22831:   /*) ac_srcdir=`echo "ext/openssl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
22832:   *) ac_srcdir="$abs_srcdir/ext/openssl/"; ac_bdir="ext/openssl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
22833:   esac
22834: 
22835: 
22836: 
22837:   b_c_pre=$php_c_pre
22838:   b_cxx_pre=$php_cxx_pre
22839:   b_c_meta=$php_c_meta
22840:   b_cxx_meta=$php_cxx_meta
22841:   b_c_post=$php_c_post
22842:   b_cxx_post=$php_cxx_post
22843:   b_lo=$php_lo
22844: 
22845: 
22846:   old_IFS=$IFS
22847:   for ac_src in openssl.c xp_ssl.c; do
22848: 
22849:       IFS=.
22850:       set $ac_src
22851:       ac_obj=$1
22852:       IFS=$old_IFS
22853: 
22854:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
22855: 
22856:       case $ac_src in
22857:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
22858:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
22859:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
22860:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
22861:       esac
22862: 
22863:     cat >>Makefile.objects<<EOF
22864: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
22865: 	$ac_comp
22866: EOF
22867:   done
22868: 
22869: 
22870:         ;;
22871:     esac
22872:     EXT_CLI_STATIC="$EXT_CLI_STATIC openssl"
22873:   fi
22874: 
22875: 
22876:     BUILD_DIR="$BUILD_DIR $ext_builddir"
22877: 
22878: 
22879: 
22880:   if test "$ext_builddir" = "."; then
22881:     PHP_PECL_EXTENSION=openssl
22882: 
22883:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
22884: 
22885:   fi
22886: 
22887: 
22888:   PHP_VAR_SUBST="$PHP_VAR_SUBST OPENSSL_SHARED_LIBADD"
22889: 
22890: 
22891:   if test "$PHP_KERBEROS" != "no"; then
22892: 
22893:   found_kerberos=no
22894:   unset KERBEROS_CFLAGS
22895:   unset KERBEROS_LIBS
22896: 
22897:     if test -z "$KRB5_CONFIG"; then
22898:     # Extract the first word of "krb5-config", so it can be a program name with args.
22899: set dummy krb5-config; ac_word=$2
22900: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22901: $as_echo_n "checking for $ac_word... " >&6; }
22902: if ${ac_cv_path_KRB5_CONFIG+:} false; then :
22903:   $as_echo_n "(cached) " >&6
22904: else
22905:   case $KRB5_CONFIG in
22906:   [\\/]* | ?:[\\/]*)
22907:   ac_cv_path_KRB5_CONFIG="$KRB5_CONFIG" # Let the user override the test with a path.
22908:   ;;
22909:   *)
22910:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22911: as_dummy="$PATH:/usr/kerberos/bin:/usr/local/bin"
22912: for as_dir in $as_dummy
22913: do
22914:   IFS=$as_save_IFS
22915:   test -z "$as_dir" && as_dir=.
22916:     for ac_exec_ext in '' $ac_executable_extensions; do
22917:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22918:     ac_cv_path_KRB5_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22919:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22920:     break 2
22921:   fi
22922: done
22923:   done
22924: IFS=$as_save_IFS
22925: 
22926:   test -z "$ac_cv_path_KRB5_CONFIG" && ac_cv_path_KRB5_CONFIG="no"
22927:   ;;
22928: esac
22929: fi
22930: KRB5_CONFIG=$ac_cv_path_KRB5_CONFIG
22931: if test -n "$KRB5_CONFIG"; then
22932:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5_CONFIG" >&5
22933: $as_echo "$KRB5_CONFIG" >&6; }
22934: else
22935:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22936: $as_echo "no" >&6; }
22937: fi
22938: 
22939: 
22940:   fi
22941: 
22942:     if test "$PHP_KERBEROS" = "yes" && test -x "$KRB5_CONFIG"; then
22943:     KERBEROS_LIBS=`$KRB5_CONFIG --libs gssapi`
22944:     KERBEROS_CFLAGS=`$KRB5_CONFIG --cflags gssapi`
22945: 
22946:     if test -n "$KERBEROS_LIBS"; then
22947:       found_kerberos=yes
22948: 
22949:   for ac_i in $KERBEROS_LIBS; do
22950:     case $ac_i in
22951:     -pthread)
22952:       if test "$ext_shared" = "yes"; then
22953:         OPENSSL_SHARED_LIBADD="$OPENSSL_SHARED_LIBADD -pthread"
22954:       else
22955: 
22956: 
22957:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
22958: 
22959:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
22960:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
22961:     eval "EXTRA_LDFLAGS$unique=set"
22962:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
22963:   fi
22964: 
22965:       fi
22966:     ;;
22967:     -l*)
22968:       ac_ii=`echo $ac_i|cut -c 3-`
22969: 
22970: 
22971:   case $ac_ii in
22972:   c|c_r|pthread*) ;;
22973:   *)
22974:     if test "$ext_shared" = "yes"; then
22975:         OPENSSL_SHARED_LIBADD="$OPENSSL_SHARED_LIBADD -l$ac_ii"
22976:     else
22977: 
22978: 
22979:   case $ac_ii in
22980:   c|c_r|pthread*) ;;
22981:   *)
22982:       LIBS="$LIBS -l$ac_ii"
22983:    ;;
22984:   esac
22985: 
22986: 
22987:     fi
22988:    ;;
22989:   esac
22990: 
22991: 
22992:     ;;
22993:     -L*)
22994:       ac_ii=`echo $ac_i|cut -c 3-`
22995: 
22996:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
22997: 
22998:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
22999:     ai_p=$ac_ii
23000:   else
23001: 
23002:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
23003: 
23004:     ep_realdir=`(cd "$ep_dir" && pwd)`
23005:     ai_p="$ep_realdir"/`basename "$ac_ii"`
23006:   fi
23007: 
23008: 
23009:       if test "$ext_shared" = "yes"; then
23010:         OPENSSL_SHARED_LIBADD="-L$ai_p $OPENSSL_SHARED_LIBADD"
23011:         test -n "$ld_runpath_switch" && OPENSSL_SHARED_LIBADD="$ld_runpath_switch$ai_p $OPENSSL_SHARED_LIBADD"
23012:       else
23013: 
23014: 
23015: 
23016:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
23017: 
23018:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
23019:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
23020:     eval "LIBPATH$unique=set"
23021: 
23022:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
23023:     LDFLAGS="$LDFLAGS -L$ai_p"
23024:     PHP_RPATHS="$PHP_RPATHS $ai_p"
23025: 
23026:   fi
23027: 
23028: 
23029:       fi
23030: 
23031:   fi
23032: 
23033:     ;;
23034:     esac
23035:   done
23036: 
23037: 
23038:   for ac_i in $KERBEROS_CFLAGS; do
23039:     case $ac_i in
23040:     -I*)
23041:       ac_ii=`echo $ac_i|cut -c 3-`
23042: 
23043:   if test "$ac_ii" != "/usr/include"; then
23044: 
23045:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
23046:     ai_p=$ac_ii
23047:   else
23048: 
23049:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
23050: 
23051:     ep_realdir=`(cd "$ep_dir" && pwd)`
23052:     ai_p="$ep_realdir"/`basename "$ac_ii"`
23053:   fi
23054: 
23055: 
23056: 
23057:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
23058: 
23059:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
23060:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
23061:     eval "INCLUDEPATH$unique=set"
23062: 
23063:       if test ""; then
23064:         INCLUDES="-I$ai_p $INCLUDES"
23065:       else
23066:         INCLUDES="$INCLUDES -I$ai_p"
23067:       fi
23068: 
23069:   fi
23070: 
23071:   fi
23072: 
23073:     ;;
23074:     esac
23075:   done
23076: 
23077:     fi
23078:   fi
23079: 
23080:     if test "$found_kerberos" = "no"; then
23081: 
23082:     if test "$PHP_KERBEROS" = "yes"; then
23083:       PHP_KERBEROS="/usr/kerberos /usr/local /usr"
23084:     fi
23085: 
23086:     for i in $PHP_KERBEROS; do
23087:       if test -f $i/$PHP_LIBDIR/libkrb5.a || test -f $i/$PHP_LIBDIR/libkrb5.$SHLIB_SUFFIX_NAME; then
23088:         PHP_KERBEROS_DIR=$i
23089:         break
23090:       fi
23091:     done
23092: 
23093:     if test "$PHP_KERBEROS_DIR"; then
23094:       found_kerberos=yes
23095: 
23096:   if test "$PHP_KERBEROS_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_KERBEROS_DIR/$PHP_LIBDIR" != "/usr/lib"; then
23097: 
23098:   if test -z "$PHP_KERBEROS_DIR/$PHP_LIBDIR" || echo "$PHP_KERBEROS_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
23099:     ai_p=$PHP_KERBEROS_DIR/$PHP_LIBDIR
23100:   else
23101: 
23102:     ep_dir=`echo $PHP_KERBEROS_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
23103: 
23104:     ep_realdir=`(cd "$ep_dir" && pwd)`
23105:     ai_p="$ep_realdir"/`basename "$PHP_KERBEROS_DIR/$PHP_LIBDIR"`
23106:   fi
23107: 
23108: 
23109:       if test "$ext_shared" = "yes"; then
23110:         OPENSSL_SHARED_LIBADD="-L$ai_p $OPENSSL_SHARED_LIBADD"
23111:         test -n "$ld_runpath_switch" && OPENSSL_SHARED_LIBADD="$ld_runpath_switch$ai_p $OPENSSL_SHARED_LIBADD"
23112:       else
23113: 
23114: 
23115: 
23116:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
23117: 
23118:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
23119:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
23120:     eval "LIBPATH$unique=set"
23121: 
23122:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
23123:     LDFLAGS="$LDFLAGS -L$ai_p"
23124:     PHP_RPATHS="$PHP_RPATHS $ai_p"
23125: 
23126:   fi
23127: 
23128: 
23129:       fi
23130: 
23131:   fi
23132: 
23133: 
23134: 
23135:   case gssapi_krb5 in
23136:   c|c_r|pthread*) ;;
23137:   *)
23138:     if test "$ext_shared" = "yes"; then
23139:         OPENSSL_SHARED_LIBADD="$OPENSSL_SHARED_LIBADD -lgssapi_krb5"
23140:     else
23141: 
23142: 
23143:   case gssapi_krb5 in
23144:   c|c_r|pthread*) ;;
23145:   *)
23146:       LIBS="$LIBS -lgssapi_krb5"
23147:    ;;
23148:   esac
23149: 
23150: 
23151:     fi
23152:    ;;
23153:   esac
23154: 
23155: 
23156: 
23157: 
23158:   case krb5 in
23159:   c|c_r|pthread*) ;;
23160:   *)
23161:     if test "$ext_shared" = "yes"; then
23162:         OPENSSL_SHARED_LIBADD="$OPENSSL_SHARED_LIBADD -lkrb5"
23163:     else
23164: 
23165: 
23166:   case krb5 in
23167:   c|c_r|pthread*) ;;
23168:   *)
23169:       LIBS="$LIBS -lkrb5"
23170:    ;;
23171:   esac
23172: 
23173: 
23174:     fi
23175:    ;;
23176:   esac
23177: 
23178: 
23179: 
23180: 
23181:   case k5crypto in
23182:   c|c_r|pthread*) ;;
23183:   *)
23184:     if test "$ext_shared" = "yes"; then
23185:         OPENSSL_SHARED_LIBADD="$OPENSSL_SHARED_LIBADD -lk5crypto"
23186:     else
23187: 
23188: 
23189:   case k5crypto in
23190:   c|c_r|pthread*) ;;
23191:   *)
23192:       LIBS="$LIBS -lk5crypto"
23193:    ;;
23194:   esac
23195: 
23196: 
23197:     fi
23198:    ;;
23199:   esac
23200: 
23201: 
23202: 
23203: 
23204:   case com_err in
23205:   c|c_r|pthread*) ;;
23206:   *)
23207:     if test "$ext_shared" = "yes"; then
23208:         OPENSSL_SHARED_LIBADD="$OPENSSL_SHARED_LIBADD -lcom_err"
23209:     else
23210: 
23211: 
23212:   case com_err in
23213:   c|c_r|pthread*) ;;
23214:   *)
23215:       LIBS="$LIBS -lcom_err"
23216:    ;;
23217:   esac
23218: 
23219: 
23220:     fi
23221:    ;;
23222:   esac
23223: 
23224: 
23225: 
23226:   if test "$PHP_KERBEROS_DIR/include" != "/usr/include"; then
23227: 
23228:   if test -z "$PHP_KERBEROS_DIR/include" || echo "$PHP_KERBEROS_DIR/include" | grep '^/' >/dev/null ; then
23229:     ai_p=$PHP_KERBEROS_DIR/include
23230:   else
23231: 
23232:     ep_dir=`echo $PHP_KERBEROS_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`
23233: 
23234:     ep_realdir=`(cd "$ep_dir" && pwd)`
23235:     ai_p="$ep_realdir"/`basename "$PHP_KERBEROS_DIR/include"`
23236:   fi
23237: 
23238: 
23239: 
23240:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
23241: 
23242:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
23243:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
23244:     eval "INCLUDEPATH$unique=set"
23245: 
23246:       if test ""; then
23247:         INCLUDES="-I$ai_p $INCLUDES"
23248:       else
23249:         INCLUDES="$INCLUDES -I$ai_p"
23250:       fi
23251: 
23252:   fi
23253: 
23254:   fi
23255: 
23256:     fi
23257:   fi
23258: 
23259:   if test "$found_kerberos" = "yes"; then
23260: :
23261: 
23262:   fi
23263: 
23264:   fi
23265: 
23266:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSA_get_default_method in -lssl" >&5
23267: $as_echo_n "checking for DSA_get_default_method in -lssl... " >&6; }
23268: if ${ac_cv_lib_ssl_DSA_get_default_method+:} false; then :
23269:   $as_echo_n "(cached) " >&6
23270: else
23271:   ac_check_lib_save_LIBS=$LIBS
23272: LIBS="-lssl  $LIBS"
23273: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23274: /* end confdefs.h.  */
23275: 
23276: /* Override any GCC internal prototype to avoid an error.
23277:    Use char because int might match the return type of a GCC
23278:    builtin and then its argument prototype would still apply.  */
23279: #ifdef __cplusplus
23280: extern "C"
23281: #endif
23282: char DSA_get_default_method ();
23283: int
23284: main ()
23285: {
23286: return DSA_get_default_method ();
23287:   ;
23288:   return 0;
23289: }
23290: _ACEOF
23291: if ac_fn_c_try_link "$LINENO"; then :
23292:   ac_cv_lib_ssl_DSA_get_default_method=yes
23293: else
23294:   ac_cv_lib_ssl_DSA_get_default_method=no
23295: fi
23296: rm -f core conftest.err conftest.$ac_objext \
23297:     conftest$ac_exeext conftest.$ac_ext
23298: LIBS=$ac_check_lib_save_LIBS
23299: fi
23300: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_DSA_get_default_method" >&5
23301: $as_echo "$ac_cv_lib_ssl_DSA_get_default_method" >&6; }
23302: if test "x$ac_cv_lib_ssl_DSA_get_default_method" = xyes; then :
23303: 
23304: $as_echo "#define HAVE_DSA_DEFAULT_METHOD 1" >>confdefs.h
23305: 
23306: fi
23307: 
23308:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X509_free in -lcrypto" >&5
23309: $as_echo_n "checking for X509_free in -lcrypto... " >&6; }
23310: if ${ac_cv_lib_crypto_X509_free+:} false; then :
23311:   $as_echo_n "(cached) " >&6
23312: else
23313:   ac_check_lib_save_LIBS=$LIBS
23314: LIBS="-lcrypto  $LIBS"
23315: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23316: /* end confdefs.h.  */
23317: 
23318: /* Override any GCC internal prototype to avoid an error.
23319:    Use char because int might match the return type of a GCC
23320:    builtin and then its argument prototype would still apply.  */
23321: #ifdef __cplusplus
23322: extern "C"
23323: #endif
23324: char X509_free ();
23325: int
23326: main ()
23327: {
23328: return X509_free ();
23329:   ;
23330:   return 0;
23331: }
23332: _ACEOF
23333: if ac_fn_c_try_link "$LINENO"; then :
23334:   ac_cv_lib_crypto_X509_free=yes
23335: else
23336:   ac_cv_lib_crypto_X509_free=no
23337: fi
23338: rm -f core conftest.err conftest.$ac_objext \
23339:     conftest$ac_exeext conftest.$ac_ext
23340: LIBS=$ac_check_lib_save_LIBS
23341: fi
23342: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_X509_free" >&5
23343: $as_echo "$ac_cv_lib_crypto_X509_free" >&6; }
23344: if test "x$ac_cv_lib_crypto_X509_free" = xyes; then :
23345: 
23346: $as_echo "#define HAVE_DSA_DEFAULT_METHOD 1" >>confdefs.h
23347: 
23348: fi
23349: 
23350: 
23351: 
23352:   found_openssl=no
23353:   unset OPENSSL_INCDIR
23354:   unset OPENSSL_LIBDIR
23355: 
23356:     test -z "$PHP_OPENSSL" && PHP_OPENSSL=no
23357:   test -z "$PHP_IMAP_SSL" && PHP_IMAP_SSL=no
23358: 
23359:     if test "$PHP_OPENSSL" != "no"; then
23360:     PHP_OPENSSL_DIR=$PHP_OPENSSL
23361:   elif test "$PHP_IMAP_SSL" != "no"; then
23362:     PHP_OPENSSL_DIR=$PHP_IMAP_SSL
23363:   fi
23364: 
23365:     if test -z "$PKG_CONFIG"; then
23366:     # Extract the first word of "pkg-config", so it can be a program name with args.
23367: set dummy pkg-config; ac_word=$2
23368: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23369: $as_echo_n "checking for $ac_word... " >&6; }
23370: if ${ac_cv_path_PKG_CONFIG+:} false; then :
23371:   $as_echo_n "(cached) " >&6
23372: else
23373:   case $PKG_CONFIG in
23374:   [\\/]* | ?:[\\/]*)
23375:   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23376:   ;;
23377:   *)
23378:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23379: for as_dir in $PATH
23380: do
23381:   IFS=$as_save_IFS
23382:   test -z "$as_dir" && as_dir=.
23383:     for ac_exec_ext in '' $ac_executable_extensions; do
23384:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23385:     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23386:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23387:     break 2
23388:   fi
23389: done
23390:   done
23391: IFS=$as_save_IFS
23392: 
23393:   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23394:   ;;
23395: esac
23396: fi
23397: PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23398: if test -n "$PKG_CONFIG"; then
23399:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
23400: $as_echo "$PKG_CONFIG" >&6; }
23401: else
23402:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23403: $as_echo "no" >&6; }
23404: fi
23405: 
23406: 
23407:   fi
23408: 
23409:     if test "$PHP_OPENSSL_DIR" = "yes" && test -x "$PKG_CONFIG" && $PKG_CONFIG --exists openssl; then
23410:     if $PKG_CONFIG --atleast-version=0.9.6 openssl; then
23411:       found_openssl=yes
23412:       OPENSSL_LIBS=`$PKG_CONFIG --libs openssl`
23413:       OPENSSL_INCS=`$PKG_CONFIG --cflags-only-I openssl`
23414:       OPENSSL_INCDIR=`$PKG_CONFIG --variable=includedir openssl`
23415:     else
23416:       as_fn_error $? "OpenSSL version 0.9.6 or greater required." "$LINENO" 5
23417:     fi
23418: 
23419:     if test -n "$OPENSSL_LIBS"; then
23420: 
23421:   for ac_i in $OPENSSL_LIBS; do
23422:     case $ac_i in
23423:     -pthread)
23424:       if test "$ext_shared" = "yes"; then
23425:         OPENSSL_SHARED_LIBADD="$OPENSSL_SHARED_LIBADD -pthread"
23426:       else
23427: 
23428: 
23429:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
23430: 
23431:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
23432:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
23433:     eval "EXTRA_LDFLAGS$unique=set"
23434:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
23435:   fi
23436: 
23437:       fi
23438:     ;;
23439:     -l*)
23440:       ac_ii=`echo $ac_i|cut -c 3-`
23441: 
23442: 
23443:   case $ac_ii in
23444:   c|c_r|pthread*) ;;
23445:   *)
23446:     if test "$ext_shared" = "yes"; then
23447:         OPENSSL_SHARED_LIBADD="$OPENSSL_SHARED_LIBADD -l$ac_ii"
23448:     else
23449: 
23450: 
23451:   case $ac_ii in
23452:   c|c_r|pthread*) ;;
23453:   *)
23454:       LIBS="$LIBS -l$ac_ii"
23455:    ;;
23456:   esac
23457: 
23458: 
23459:     fi
23460:    ;;
23461:   esac
23462: 
23463: 
23464:     ;;
23465:     -L*)
23466:       ac_ii=`echo $ac_i|cut -c 3-`
23467: 
23468:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
23469: 
23470:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
23471:     ai_p=$ac_ii
23472:   else
23473: 
23474:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
23475: 
23476:     ep_realdir=`(cd "$ep_dir" && pwd)`
23477:     ai_p="$ep_realdir"/`basename "$ac_ii"`
23478:   fi
23479: 
23480: 
23481:       if test "$ext_shared" = "yes"; then
23482:         OPENSSL_SHARED_LIBADD="-L$ai_p $OPENSSL_SHARED_LIBADD"
23483:         test -n "$ld_runpath_switch" && OPENSSL_SHARED_LIBADD="$ld_runpath_switch$ai_p $OPENSSL_SHARED_LIBADD"
23484:       else
23485: 
23486: 
23487: 
23488:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
23489: 
23490:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
23491:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
23492:     eval "LIBPATH$unique=set"
23493: 
23494:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
23495:     LDFLAGS="$LDFLAGS -L$ai_p"
23496:     PHP_RPATHS="$PHP_RPATHS $ai_p"
23497: 
23498:   fi
23499: 
23500: 
23501:       fi
23502: 
23503:   fi
23504: 
23505:     ;;
23506:     esac
23507:   done
23508: 
23509:     fi
23510:     if test -n "$OPENSSL_INCS"; then
23511: 
23512:   for ac_i in $OPENSSL_INCS; do
23513:     case $ac_i in
23514:     -I*)
23515:       ac_ii=`echo $ac_i|cut -c 3-`
23516: 
23517:   if test "$ac_ii" != "/usr/include"; then
23518: 
23519:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
23520:     ai_p=$ac_ii
23521:   else
23522: 
23523:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
23524: 
23525:     ep_realdir=`(cd "$ep_dir" && pwd)`
23526:     ai_p="$ep_realdir"/`basename "$ac_ii"`
23527:   fi
23528: 
23529: 
23530: 
23531:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
23532: 
23533:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
23534:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
23535:     eval "INCLUDEPATH$unique=set"
23536: 
23537:       if test ""; then
23538:         INCLUDES="-I$ai_p $INCLUDES"
23539:       else
23540:         INCLUDES="$INCLUDES -I$ai_p"
23541:       fi
23542: 
23543:   fi
23544: 
23545:   fi
23546: 
23547:     ;;
23548:     esac
23549:   done
23550: 
23551:     fi
23552:   fi
23553: 
23554:     if test "$found_openssl" = "no"; then
23555: 
23556:     if test "$PHP_OPENSSL_DIR" = "yes"; then
23557:       PHP_OPENSSL_DIR="/usr/local/ssl /usr/local /usr /usr/local/openssl"
23558:     fi
23559: 
23560:     for i in $PHP_OPENSSL_DIR; do
23561:       if test -r $i/include/openssl/evp.h; then
23562:         OPENSSL_INCDIR=$i/include
23563:       fi
23564:       if test -r $i/$PHP_LIBDIR/libssl.a -o -r $i/$PHP_LIBDIR/libssl.$SHLIB_SUFFIX_NAME; then
23565:         OPENSSL_LIBDIR=$i/$PHP_LIBDIR
23566:       fi
23567:       test -n "$OPENSSL_INCDIR" && test -n "$OPENSSL_LIBDIR" && break
23568:     done
23569: 
23570:     if test -z "$OPENSSL_INCDIR"; then
23571:       as_fn_error $? "Cannot find OpenSSL's <evp.h>" "$LINENO" 5
23572:     fi
23573: 
23574:     if test -z "$OPENSSL_LIBDIR"; then
23575:       as_fn_error $? "Cannot find OpenSSL's libraries" "$LINENO" 5
23576:     fi
23577: 
23578:     old_CPPFLAGS=$CPPFLAGS
23579:     CPPFLAGS=-I$OPENSSL_INCDIR
23580:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version" >&5
23581: $as_echo_n "checking for OpenSSL version... " >&6; }
23582:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23583: /* end confdefs.h.  */
23584: 
23585: #include <openssl/opensslv.h>
23586: #if OPENSSL_VERSION_NUMBER >= 0x0090600fL
23587:   yes
23588: #endif
23589: 
23590: _ACEOF
23591: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23592:   $EGREP "yes" >/dev/null 2>&1; then :
23593: 
23594:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: >= 0.9.6" >&5
23595: $as_echo ">= 0.9.6" >&6; }
23596: 
23597: else
23598: 
23599:       as_fn_error $? "OpenSSL version 0.9.6 or greater required." "$LINENO" 5
23600: 
23601: fi
23602: rm -f conftest*
23603: 
23604:     CPPFLAGS=$old_CPPFLAGS
23605: 
23606: 
23607:   if test "$OPENSSL_INCDIR" != "/usr/include"; then
23608: 
23609:   if test -z "$OPENSSL_INCDIR" || echo "$OPENSSL_INCDIR" | grep '^/' >/dev/null ; then
23610:     ai_p=$OPENSSL_INCDIR
23611:   else
23612: 
23613:     ep_dir=`echo $OPENSSL_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`
23614: 
23615:     ep_realdir=`(cd "$ep_dir" && pwd)`
23616:     ai_p="$ep_realdir"/`basename "$OPENSSL_INCDIR"`
23617:   fi
23618: 
23619: 
23620: 
23621:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
23622: 
23623:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
23624:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
23625:     eval "INCLUDEPATH$unique=set"
23626: 
23627:       if test ""; then
23628:         INCLUDES="-I$ai_p $INCLUDES"
23629:       else
23630:         INCLUDES="$INCLUDES -I$ai_p"
23631:       fi
23632: 
23633:   fi
23634: 
23635:   fi
23636: 
23637: 
23638: 
23639:   save_old_LDFLAGS=$LDFLAGS
23640:   ac_stuff="
23641:       -L$OPENSSL_LIBDIR
23642:     "
23643: 
23644:   save_ext_shared=$ext_shared
23645:   ext_shared=yes
23646: 
23647:   for ac_i in $ac_stuff; do
23648:     case $ac_i in
23649:     -pthread)
23650:       if test "$ext_shared" = "yes"; then
23651:         LDFLAGS="$LDFLAGS -pthread"
23652:       else
23653: 
23654: 
23655:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
23656: 
23657:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
23658:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
23659:     eval "EXTRA_LDFLAGS$unique=set"
23660:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
23661:   fi
23662: 
23663:       fi
23664:     ;;
23665:     -l*)
23666:       ac_ii=`echo $ac_i|cut -c 3-`
23667: 
23668: 
23669:   case $ac_ii in
23670:   c|c_r|pthread*) ;;
23671:   *)
23672:     if test "$ext_shared" = "yes"; then
23673:         LDFLAGS="$LDFLAGS -l$ac_ii"
23674:     else
23675: 
23676: 
23677:   case $ac_ii in
23678:   c|c_r|pthread*) ;;
23679:   *)
23680:       LIBS="$LIBS -l$ac_ii"
23681:    ;;
23682:   esac
23683: 
23684: 
23685:     fi
23686:    ;;
23687:   esac
23688: 
23689: 
23690:     ;;
23691:     -L*)
23692:       ac_ii=`echo $ac_i|cut -c 3-`
23693: 
23694:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
23695: 
23696:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
23697:     ai_p=$ac_ii
23698:   else
23699: 
23700:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
23701: 
23702:     ep_realdir=`(cd "$ep_dir" && pwd)`
23703:     ai_p="$ep_realdir"/`basename "$ac_ii"`
23704:   fi
23705: 
23706: 
23707:       if test "$ext_shared" = "yes"; then
23708:         LDFLAGS="-L$ai_p $LDFLAGS"
23709:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
23710:       else
23711: 
23712: 
23713: 
23714:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
23715: 
23716:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
23717:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
23718:     eval "LIBPATH$unique=set"
23719: 
23720:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
23721:     LDFLAGS="$LDFLAGS -L$ai_p"
23722:     PHP_RPATHS="$PHP_RPATHS $ai_p"
23723: 
23724:   fi
23725: 
23726: 
23727:       fi
23728: 
23729:   fi
23730: 
23731:     ;;
23732:     esac
23733:   done
23734: 
23735:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_free in -lcrypto" >&5
23736: $as_echo_n "checking for CRYPTO_free in -lcrypto... " >&6; }
23737: if ${ac_cv_lib_crypto_CRYPTO_free+:} false; then :
23738:   $as_echo_n "(cached) " >&6
23739: else
23740:   ac_check_lib_save_LIBS=$LIBS
23741: LIBS="-lcrypto  $LIBS"
23742: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23743: /* end confdefs.h.  */
23744: 
23745: /* Override any GCC internal prototype to avoid an error.
23746:    Use char because int might match the return type of a GCC
23747:    builtin and then its argument prototype would still apply.  */
23748: #ifdef __cplusplus
23749: extern "C"
23750: #endif
23751: char CRYPTO_free ();
23752: int
23753: main ()
23754: {
23755: return CRYPTO_free ();
23756:   ;
23757:   return 0;
23758: }
23759: _ACEOF
23760: if ac_fn_c_try_link "$LINENO"; then :
23761:   ac_cv_lib_crypto_CRYPTO_free=yes
23762: else
23763:   ac_cv_lib_crypto_CRYPTO_free=no
23764: fi
23765: rm -f core conftest.err conftest.$ac_objext \
23766:     conftest$ac_exeext conftest.$ac_ext
23767: LIBS=$ac_check_lib_save_LIBS
23768: fi
23769: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_free" >&5
23770: $as_echo "$ac_cv_lib_crypto_CRYPTO_free" >&6; }
23771: if test "x$ac_cv_lib_crypto_CRYPTO_free" = xyes; then :
23772: 
23773:     LDFLAGS=$save_old_LDFLAGS
23774:     ext_shared=$save_ext_shared
23775: 
23776: 
23777: 
23778:   case crypto in
23779:   c|c_r|pthread*) ;;
23780:   *)
23781:     if test "$ext_shared" = "yes"; then
23782:         OPENSSL_SHARED_LIBADD="-lcrypto $OPENSSL_SHARED_LIBADD"
23783:     else
23784: 
23785: 
23786:   case crypto in
23787:   c|c_r|pthread*) ;;
23788:   *)
23789:       LIBS="-lcrypto $LIBS"
23790:    ;;
23791:   esac
23792: 
23793: 
23794:     fi
23795:    ;;
23796:   esac
23797: 
23798: 
23799: 
23800: 
23801: else
23802: 
23803:     LDFLAGS=$save_old_LDFLAGS
23804:     ext_shared=$save_ext_shared
23805:     unset ac_cv_lib_crypto_CRYPTO_free
23806: 
23807:       as_fn_error $? "libcrypto not found!" "$LINENO" 5
23808: 
23809: 
23810: fi
23811: 
23812: 
23813:     old_LIBS=$LIBS
23814:     LIBS="$LIBS -lcrypto"
23815: 
23816:   save_old_LDFLAGS=$LDFLAGS
23817:   ac_stuff="
23818:       -L$OPENSSL_LIBDIR
23819:     "
23820: 
23821:   save_ext_shared=$ext_shared
23822:   ext_shared=yes
23823: 
23824:   for ac_i in $ac_stuff; do
23825:     case $ac_i in
23826:     -pthread)
23827:       if test "$ext_shared" = "yes"; then
23828:         LDFLAGS="$LDFLAGS -pthread"
23829:       else
23830: 
23831: 
23832:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
23833: 
23834:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
23835:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
23836:     eval "EXTRA_LDFLAGS$unique=set"
23837:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
23838:   fi
23839: 
23840:       fi
23841:     ;;
23842:     -l*)
23843:       ac_ii=`echo $ac_i|cut -c 3-`
23844: 
23845: 
23846:   case $ac_ii in
23847:   c|c_r|pthread*) ;;
23848:   *)
23849:     if test "$ext_shared" = "yes"; then
23850:         LDFLAGS="$LDFLAGS -l$ac_ii"
23851:     else
23852: 
23853: 
23854:   case $ac_ii in
23855:   c|c_r|pthread*) ;;
23856:   *)
23857:       LIBS="$LIBS -l$ac_ii"
23858:    ;;
23859:   esac
23860: 
23861: 
23862:     fi
23863:    ;;
23864:   esac
23865: 
23866: 
23867:     ;;
23868:     -L*)
23869:       ac_ii=`echo $ac_i|cut -c 3-`
23870: 
23871:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
23872: 
23873:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
23874:     ai_p=$ac_ii
23875:   else
23876: 
23877:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
23878: 
23879:     ep_realdir=`(cd "$ep_dir" && pwd)`
23880:     ai_p="$ep_realdir"/`basename "$ac_ii"`
23881:   fi
23882: 
23883: 
23884:       if test "$ext_shared" = "yes"; then
23885:         LDFLAGS="-L$ai_p $LDFLAGS"
23886:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
23887:       else
23888: 
23889: 
23890: 
23891:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
23892: 
23893:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
23894:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
23895:     eval "LIBPATH$unique=set"
23896: 
23897:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
23898:     LDFLAGS="$LDFLAGS -L$ai_p"
23899:     PHP_RPATHS="$PHP_RPATHS $ai_p"
23900: 
23901:   fi
23902: 
23903: 
23904:       fi
23905: 
23906:   fi
23907: 
23908:     ;;
23909:     esac
23910:   done
23911: 
23912:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_CTX_set_ssl_version in -lssl" >&5
23913: $as_echo_n "checking for SSL_CTX_set_ssl_version in -lssl... " >&6; }
23914: if ${ac_cv_lib_ssl_SSL_CTX_set_ssl_version+:} false; then :
23915:   $as_echo_n "(cached) " >&6
23916: else
23917:   ac_check_lib_save_LIBS=$LIBS
23918: LIBS="-lssl  $LIBS"
23919: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23920: /* end confdefs.h.  */
23921: 
23922: /* Override any GCC internal prototype to avoid an error.
23923:    Use char because int might match the return type of a GCC
23924:    builtin and then its argument prototype would still apply.  */
23925: #ifdef __cplusplus
23926: extern "C"
23927: #endif
23928: char SSL_CTX_set_ssl_version ();
23929: int
23930: main ()
23931: {
23932: return SSL_CTX_set_ssl_version ();
23933:   ;
23934:   return 0;
23935: }
23936: _ACEOF
23937: if ac_fn_c_try_link "$LINENO"; then :
23938:   ac_cv_lib_ssl_SSL_CTX_set_ssl_version=yes
23939: else
23940:   ac_cv_lib_ssl_SSL_CTX_set_ssl_version=no
23941: fi
23942: rm -f core conftest.err conftest.$ac_objext \
23943:     conftest$ac_exeext conftest.$ac_ext
23944: LIBS=$ac_check_lib_save_LIBS
23945: fi
23946: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_CTX_set_ssl_version" >&5
23947: $as_echo "$ac_cv_lib_ssl_SSL_CTX_set_ssl_version" >&6; }
23948: if test "x$ac_cv_lib_ssl_SSL_CTX_set_ssl_version" = xyes; then :
23949: 
23950:     LDFLAGS=$save_old_LDFLAGS
23951:     ext_shared=$save_ext_shared
23952: 
23953:       found_openssl=yes
23954: 
23955: 
23956: else
23957: 
23958:     LDFLAGS=$save_old_LDFLAGS
23959:     ext_shared=$save_ext_shared
23960:     unset ac_cv_lib_ssl_SSL_CTX_set_ssl_version
23961: 
23962:       as_fn_error $? "libssl not found!" "$LINENO" 5
23963: 
23964: 
23965: fi
23966: 
23967:     LIBS=$old_LIBS
23968: 
23969: 
23970:   case ssl in
23971:   c|c_r|pthread*) ;;
23972:   *)
23973:     if test "$ext_shared" = "yes"; then
23974:         OPENSSL_SHARED_LIBADD="-lssl $OPENSSL_SHARED_LIBADD"
23975:     else
23976: 
23977: 
23978:   case ssl in
23979:   c|c_r|pthread*) ;;
23980:   *)
23981:       LIBS="-lssl $LIBS"
23982:    ;;
23983:   esac
23984: 
23985: 
23986:     fi
23987:    ;;
23988:   esac
23989: 
23990: 
23991: 
23992: 
23993:   case crypto in
23994:   c|c_r|pthread*) ;;
23995:   *)
23996:     if test "$ext_shared" = "yes"; then
23997:         OPENSSL_SHARED_LIBADD="-lcrypto $OPENSSL_SHARED_LIBADD"
23998:     else
23999: 
24000: 
24001:   case crypto in
24002:   c|c_r|pthread*) ;;
24003:   *)
24004:       LIBS="-lcrypto $LIBS"
24005:    ;;
24006:   esac
24007: 
24008: 
24009:     fi
24010:    ;;
24011:   esac
24012: 
24013: 
24014: 
24015: 
24016:   if test "$OPENSSL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$OPENSSL_LIBDIR" != "/usr/lib"; then
24017: 
24018:   if test -z "$OPENSSL_LIBDIR" || echo "$OPENSSL_LIBDIR" | grep '^/' >/dev/null ; then
24019:     ai_p=$OPENSSL_LIBDIR
24020:   else
24021: 
24022:     ep_dir=`echo $OPENSSL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
24023: 
24024:     ep_realdir=`(cd "$ep_dir" && pwd)`
24025:     ai_p="$ep_realdir"/`basename "$OPENSSL_LIBDIR"`
24026:   fi
24027: 
24028: 
24029:       if test "$ext_shared" = "yes"; then
24030:         OPENSSL_SHARED_LIBADD="-L$ai_p $OPENSSL_SHARED_LIBADD"
24031:         test -n "$ld_runpath_switch" && OPENSSL_SHARED_LIBADD="$ld_runpath_switch$ai_p $OPENSSL_SHARED_LIBADD"
24032:       else
24033: 
24034: 
24035: 
24036:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
24037: 
24038:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
24039:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
24040:     eval "LIBPATH$unique=set"
24041: 
24042:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
24043:     LDFLAGS="$LDFLAGS -L$ai_p"
24044:     PHP_RPATHS="$PHP_RPATHS $ai_p"
24045: 
24046:   fi
24047: 
24048: 
24049:       fi
24050: 
24051:   fi
24052: 
24053:   fi
24054: 
24055:   if test "$found_openssl" = "yes"; then
24056:     OPENSSL_INCDIR_OPT=-I$OPENSSL_INCDIR
24057: 
24058: 
24059: 
24060: 
24061: $as_echo "#define HAVE_OPENSSL_EXT 1" >>confdefs.h
24062: 
24063: 
24064: else
24065:     as_fn_error $? "OpenSSL check failed. Please check config.log for more information." "$LINENO" 5
24066: 
24067:   fi
24068: 
24069: fi
24070: 
24071: 
24072: 
24073: 
24074: php_with_pcre_regex=yes
24075: 
24076: 
24077: 
24078: # Check whether --with-pcre-regex was given.
24079: if test "${with_pcre_regex+set}" = set; then :
24080:   withval=$with_pcre_regex; PHP_PCRE_REGEX=$withval
24081: else
24082: 
24083:   PHP_PCRE_REGEX=yes
24084: 
24085: 
24086: fi
24087: 
24088: 
24089: ext_output=$PHP_PCRE_REGEX
24090: 
24091: 
24092: 
24093: 
24094: 
24095:   if test "$PHP_PCRE_REGEX" != "yes" && test "$PHP_PCRE_REGEX" != "no"; then
24096:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCRE headers location" >&5
24097: $as_echo_n "checking for PCRE headers location... " >&6; }
24098:     for i in $PHP_PCRE_REGEX $PHP_PCRE_REGEX/include $PHP_PCRE_REGEX/include/pcre $PHP_PCRE_REGEX/local/include; do
24099:       test -f $i/pcre.h && PCRE_INCDIR=$i
24100:     done
24101: 
24102:     if test -z "$PCRE_INCDIR"; then
24103:       as_fn_error $? "Could not find pcre.h in $PHP_PCRE_REGEX" "$LINENO" 5
24104:     fi
24105:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCRE_INCDIR" >&5
24106: $as_echo "$PCRE_INCDIR" >&6; }
24107: 
24108:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCRE library location" >&5
24109: $as_echo_n "checking for PCRE library location... " >&6; }
24110:     for j in $PHP_PCRE_REGEX $PHP_PCRE_REGEX/$PHP_LIBDIR; do
24111:       test -f $j/libpcre.a || test -f $j/libpcre.$SHLIB_SUFFIX_NAME && PCRE_LIBDIR=$j
24112:     done
24113: 
24114:     if test -z "$PCRE_LIBDIR" ; then
24115:       as_fn_error $? "Could not find libpcre.(a|$SHLIB_SUFFIX_NAME) in $PHP_PCRE_REGEX" "$LINENO" 5
24116:     fi
24117:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCRE_LIBDIR" >&5
24118: $as_echo "$PCRE_LIBDIR" >&6; }
24119: 
24120: 
24121:     pcre_major=`grep PCRE_MAJOR $PCRE_INCDIR/pcre.h | sed -e 's/[^0-9]//g'`
24122:     pcre_minor=`grep PCRE_MINOR $PCRE_INCDIR/pcre.h | sed -e 's/[^0-9]//g'`
24123: 
24124:     pcre_minor_length=`echo "$pcre_minor" | wc -c | sed -e 's/^0-9//g'`
24125:     if test "$pcre_minor_length" -eq 2 ; then
24126:       pcre_minor="$pcre_minor"0
24127:     fi
24128:     pcre_version=$pcre_major$pcre_minor
24129:     if test "$pcre_version" -lt 660; then
24130:       as_fn_error $? "The PCRE extension requires PCRE library version >= 6.6" "$LINENO" 5
24131:     fi
24132: 
24133: 
24134: 
24135:   if test -n "$PCRE_LIBDIR"; then
24136: 
24137:   if test "$PCRE_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PCRE_LIBDIR" != "/usr/lib"; then
24138: 
24139:   if test -z "$PCRE_LIBDIR" || echo "$PCRE_LIBDIR" | grep '^/' >/dev/null ; then
24140:     ai_p=$PCRE_LIBDIR
24141:   else
24142: 
24143:     ep_dir=`echo $PCRE_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
24144: 
24145:     ep_realdir=`(cd "$ep_dir" && pwd)`
24146:     ai_p="$ep_realdir"/`basename "$PCRE_LIBDIR"`
24147:   fi
24148: 
24149: 
24150: 
24151: 
24152: 
24153:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
24154: 
24155:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
24156:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
24157:     eval "LIBPATH$unique=set"
24158: 
24159:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
24160:     LDFLAGS="$LDFLAGS -L$ai_p"
24161:     PHP_RPATHS="$PHP_RPATHS $ai_p"
24162: 
24163:   fi
24164: 
24165: 
24166: 
24167:   fi
24168: 
24169:   fi
24170: 
24171: 
24172:   case pcre in
24173:   c|c_r|pthread*) ;;
24174:   *)
24175:       LIBS="-lpcre $LIBS"
24176:    ;;
24177:   esac
24178: 
24179: 
24180: 
24181: 
24182: 
24183: 
24184: $as_echo "#define HAVE_PCRE 1" >>confdefs.h
24185: 
24186: 
24187:   if test "$PCRE_INCDIR" != "/usr/include"; then
24188: 
24189:   if test -z "$PCRE_INCDIR" || echo "$PCRE_INCDIR" | grep '^/' >/dev/null ; then
24190:     ai_p=$PCRE_INCDIR
24191:   else
24192: 
24193:     ep_dir=`echo $PCRE_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`
24194: 
24195:     ep_realdir=`(cd "$ep_dir" && pwd)`
24196:     ai_p="$ep_realdir"/`basename "$PCRE_INCDIR"`
24197:   fi
24198: 
24199: 
24200: 
24201:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
24202: 
24203:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
24204:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
24205:     eval "INCLUDEPATH$unique=set"
24206: 
24207:       if test ""; then
24208:         INCLUDES="-I$ai_p $INCLUDES"
24209:       else
24210:         INCLUDES="$INCLUDES -I$ai_p"
24211:       fi
24212: 
24213:   fi
24214: 
24215:   fi
24216: 
24217: 
24218:   ext_builddir=ext/pcre
24219:   ext_srcdir=$abs_srcdir/ext/pcre
24220: 
24221:   ac_extra=
24222: 
24223:   if test "no" != "shared" && test "no" != "yes" && test "" != "cli"; then
24224:     PHP_PCRE_SHARED=no
24225: 
24226: 
24227:   case ext/pcre in
24228:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
24229:   /*) ac_srcdir=`echo "ext/pcre"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
24230:   *) ac_srcdir="$abs_srcdir/ext/pcre/"; ac_bdir="ext/pcre/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
24231:   esac
24232: 
24233: 
24234: 
24235:   b_c_pre=$php_c_pre
24236:   b_cxx_pre=$php_cxx_pre
24237:   b_c_meta=$php_c_meta
24238:   b_cxx_meta=$php_cxx_meta
24239:   b_c_post=$php_c_post
24240:   b_cxx_post=$php_cxx_post
24241:   b_lo=$php_lo
24242: 
24243: 
24244:   old_IFS=$IFS
24245:   for ac_src in php_pcre.c; do
24246: 
24247:       IFS=.
24248:       set $ac_src
24249:       ac_obj=$1
24250:       IFS=$old_IFS
24251: 
24252:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
24253: 
24254:       case $ac_src in
24255:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
24256:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
24257:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
24258:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
24259:       esac
24260: 
24261:     cat >>Makefile.objects<<EOF
24262: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
24263: 	$ac_comp
24264: EOF
24265:   done
24266: 
24267: 
24268:     EXT_STATIC="$EXT_STATIC pcre"
24269:     if test "no" != "nocli"; then
24270:       EXT_CLI_STATIC="$EXT_CLI_STATIC pcre"
24271:     fi
24272:   else
24273:     if test "no" = "shared" || test "no" = "yes"; then
24274:       PHP_PCRE_SHARED=yes
24275: 
24276:   case ext/pcre in
24277:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
24278:   /*) ac_srcdir=`echo "ext/pcre"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
24279:   *) ac_srcdir="$abs_srcdir/ext/pcre/"; ac_bdir="ext/pcre/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
24280:   esac
24281: 
24282: 
24283: 
24284:   b_c_pre=$shared_c_pre
24285:   b_cxx_pre=$shared_cxx_pre
24286:   b_c_meta=$shared_c_meta
24287:   b_cxx_meta=$shared_cxx_meta
24288:   b_c_post=$shared_c_post
24289:   b_cxx_post=$shared_cxx_post
24290:   b_lo=$shared_lo
24291: 
24292: 
24293:   old_IFS=$IFS
24294:   for ac_src in php_pcre.c; do
24295: 
24296:       IFS=.
24297:       set $ac_src
24298:       ac_obj=$1
24299:       IFS=$old_IFS
24300: 
24301:       shared_objects_pcre="$shared_objects_pcre $ac_bdir$ac_obj.lo"
24302: 
24303:       case $ac_src in
24304:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
24305:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
24306:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
24307:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
24308:       esac
24309: 
24310:     cat >>Makefile.objects<<EOF
24311: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
24312: 	$ac_comp
24313: EOF
24314:   done
24315: 
24316:       case $host_alias in
24317:         *netware*)
24318: 
24319:   install_modules="install-modules"
24320: 
24321:   case $host_alias in
24322:     *aix*)
24323:       suffix=so
24324:       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'
24325:       ;;
24326:     *netware*)
24327:       suffix=nlm
24328:       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)'
24329:       ;;
24330:     *)
24331:       suffix=la
24332:       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)'
24333:       ;;
24334:   esac
24335: 
24336:   if test "x" = "xyes"; then
24337:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phppcre.$suffix"
24338:   else
24339:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phppcre.$suffix"
24340:   fi
24341: 
24342:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pcre"
24343: 
24344:   cat >>Makefile.objects<<EOF
24345: \$(phplibdir)/phppcre.$suffix: $ext_builddir/phppcre.$suffix
24346: 	\$(LIBTOOL) --mode=install cp $ext_builddir/phppcre.$suffix \$(phplibdir)
24347: 
24348: $ext_builddir/phppcre.$suffix: \$(shared_objects_pcre) \$(PHPPCRE_SHARED_DEPENDENCIES)
24349: 	$link_cmd
24350: 
24351: EOF
24352: 
24353:           ;;
24354:         *)
24355: 
24356:   install_modules="install-modules"
24357: 
24358:   case $host_alias in
24359:     *aix*)
24360:       suffix=so
24361:       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'
24362:       ;;
24363:     *netware*)
24364:       suffix=nlm
24365:       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)'
24366:       ;;
24367:     *)
24368:       suffix=la
24369:       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)'
24370:       ;;
24371:   esac
24372: 
24373:   if test "x" = "xyes"; then
24374:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/pcre.$suffix"
24375:   else
24376:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/pcre.$suffix"
24377:   fi
24378: 
24379:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pcre"
24380: 
24381:   cat >>Makefile.objects<<EOF
24382: \$(phplibdir)/pcre.$suffix: $ext_builddir/pcre.$suffix
24383: 	\$(LIBTOOL) --mode=install cp $ext_builddir/pcre.$suffix \$(phplibdir)
24384: 
24385: $ext_builddir/pcre.$suffix: \$(shared_objects_pcre) \$(PCRE_SHARED_DEPENDENCIES)
24386: 	$link_cmd
24387: 
24388: EOF
24389: 
24390:           ;;
24391:       esac
24392: 
24393: cat >>confdefs.h <<_ACEOF
24394: #define COMPILE_DL_PCRE 1
24395: _ACEOF
24396: 
24397:     fi
24398:   fi
24399: 
24400:   if test "no" != "shared" && test "no" != "yes" && test "" = "cli"; then
24401:     PHP_PCRE_SHARED=no
24402:     case "$PHP_SAPI" in
24403:       cgi|embed)
24404: 
24405: 
24406:   case ext/pcre in
24407:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
24408:   /*) ac_srcdir=`echo "ext/pcre"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
24409:   *) ac_srcdir="$abs_srcdir/ext/pcre/"; ac_bdir="ext/pcre/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
24410:   esac
24411: 
24412: 
24413: 
24414:   b_c_pre=$php_c_pre
24415:   b_cxx_pre=$php_cxx_pre
24416:   b_c_meta=$php_c_meta
24417:   b_cxx_meta=$php_cxx_meta
24418:   b_c_post=$php_c_post
24419:   b_cxx_post=$php_cxx_post
24420:   b_lo=$php_lo
24421: 
24422: 
24423:   old_IFS=$IFS
24424:   for ac_src in php_pcre.c; do
24425: 
24426:       IFS=.
24427:       set $ac_src
24428:       ac_obj=$1
24429:       IFS=$old_IFS
24430: 
24431:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
24432: 
24433:       case $ac_src in
24434:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
24435:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
24436:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
24437:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
24438:       esac
24439: 
24440:     cat >>Makefile.objects<<EOF
24441: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
24442: 	$ac_comp
24443: EOF
24444:   done
24445: 
24446: 
24447:         EXT_STATIC="$EXT_STATIC pcre"
24448:         ;;
24449:       *)
24450: 
24451: 
24452:   case ext/pcre in
24453:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
24454:   /*) ac_srcdir=`echo "ext/pcre"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
24455:   *) ac_srcdir="$abs_srcdir/ext/pcre/"; ac_bdir="ext/pcre/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
24456:   esac
24457: 
24458: 
24459: 
24460:   b_c_pre=$php_c_pre
24461:   b_cxx_pre=$php_cxx_pre
24462:   b_c_meta=$php_c_meta
24463:   b_cxx_meta=$php_cxx_meta
24464:   b_c_post=$php_c_post
24465:   b_cxx_post=$php_cxx_post
24466:   b_lo=$php_lo
24467: 
24468: 
24469:   old_IFS=$IFS
24470:   for ac_src in php_pcre.c; do
24471: 
24472:       IFS=.
24473:       set $ac_src
24474:       ac_obj=$1
24475:       IFS=$old_IFS
24476: 
24477:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
24478: 
24479:       case $ac_src in
24480:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
24481:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
24482:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
24483:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
24484:       esac
24485: 
24486:     cat >>Makefile.objects<<EOF
24487: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
24488: 	$ac_comp
24489: EOF
24490:   done
24491: 
24492: 
24493:         ;;
24494:     esac
24495:     EXT_CLI_STATIC="$EXT_CLI_STATIC pcre"
24496:   fi
24497: 
24498: 
24499:     BUILD_DIR="$BUILD_DIR $ext_builddir"
24500: 
24501: 
24502: 
24503:   if test "$ext_builddir" = "."; then
24504:     PHP_PECL_EXTENSION=pcre
24505: 
24506:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
24507: 
24508:   fi
24509: 
24510: 
24511: 
24512:     header_path=ext/pcre
24513:     for header_file in php_pcre.h; do
24514:       hp_hf="$header_path/$header_file"
24515: 
24516: 
24517:   unique=`echo $hp_hf|$SED 's/[^a-zA-Z0-9]/_/g'`
24518: 
24519:   cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
24520:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
24521:     eval "INSTALLHEADERS$unique=set"
24522: 
24523:         INSTALL_HEADERS="$INSTALL_HEADERS $hp_hf"
24524: 
24525:   fi
24526: 
24527:     done
24528: 
24529: 
24530:   else
24531:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCRE library to use" >&5
24532: $as_echo_n "checking for PCRE library to use... " >&6; }
24533:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5
24534: $as_echo "bundled" >&6; }
24535:     pcrelib_sources="pcrelib/pcre_chartables.c pcrelib/pcre_ucd.c \
24536:     				 pcrelib/pcre_compile.c pcrelib/pcre_config.c pcrelib/pcre_exec.c \
24537:     				 pcrelib/pcre_fullinfo.c pcrelib/pcre_get.c pcrelib/pcre_globals.c \
24538:     				 pcrelib/pcre_maketables.c pcrelib/pcre_newline.c \
24539:     				 pcrelib/pcre_ord2utf8.c pcrelib/pcre_refcount.c pcrelib/pcre_study.c \
24540:     				 pcrelib/pcre_tables.c pcrelib/pcre_valid_utf8.c \
24541:     				 pcrelib/pcre_version.c pcrelib/pcre_xclass.c"
24542:     PHP_PCRE_CFLAGS="-DHAVE_CONFIG_H -I@ext_srcdir@/pcrelib"
24543: 
24544:   ext_builddir=ext/pcre
24545:   ext_srcdir=$abs_srcdir/ext/pcre
24546: 
24547:   ac_extra=`echo "$PHP_PCRE_CFLAGS"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
24548: 
24549:   if test "no" != "shared" && test "no" != "yes" && test "" != "cli"; then
24550:     PHP_PCRE_SHARED=no
24551: 
24552: 
24553:   case ext/pcre in
24554:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
24555:   /*) ac_srcdir=`echo "ext/pcre"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
24556:   *) ac_srcdir="$abs_srcdir/ext/pcre/"; ac_bdir="ext/pcre/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
24557:   esac
24558: 
24559: 
24560: 
24561:   b_c_pre=$php_c_pre
24562:   b_cxx_pre=$php_cxx_pre
24563:   b_c_meta=$php_c_meta
24564:   b_cxx_meta=$php_cxx_meta
24565:   b_c_post=$php_c_post
24566:   b_cxx_post=$php_cxx_post
24567:   b_lo=$php_lo
24568: 
24569: 
24570:   old_IFS=$IFS
24571:   for ac_src in $pcrelib_sources php_pcre.c; do
24572: 
24573:       IFS=.
24574:       set $ac_src
24575:       ac_obj=$1
24576:       IFS=$old_IFS
24577: 
24578:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
24579: 
24580:       case $ac_src in
24581:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
24582:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
24583:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
24584:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
24585:       esac
24586: 
24587:     cat >>Makefile.objects<<EOF
24588: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
24589: 	$ac_comp
24590: EOF
24591:   done
24592: 
24593: 
24594:     EXT_STATIC="$EXT_STATIC pcre"
24595:     if test "no" != "nocli"; then
24596:       EXT_CLI_STATIC="$EXT_CLI_STATIC pcre"
24597:     fi
24598:   else
24599:     if test "no" = "shared" || test "no" = "yes"; then
24600:       PHP_PCRE_SHARED=yes
24601: 
24602:   case ext/pcre in
24603:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
24604:   /*) ac_srcdir=`echo "ext/pcre"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
24605:   *) ac_srcdir="$abs_srcdir/ext/pcre/"; ac_bdir="ext/pcre/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
24606:   esac
24607: 
24608: 
24609: 
24610:   b_c_pre=$shared_c_pre
24611:   b_cxx_pre=$shared_cxx_pre
24612:   b_c_meta=$shared_c_meta
24613:   b_cxx_meta=$shared_cxx_meta
24614:   b_c_post=$shared_c_post
24615:   b_cxx_post=$shared_cxx_post
24616:   b_lo=$shared_lo
24617: 
24618: 
24619:   old_IFS=$IFS
24620:   for ac_src in $pcrelib_sources php_pcre.c; do
24621: 
24622:       IFS=.
24623:       set $ac_src
24624:       ac_obj=$1
24625:       IFS=$old_IFS
24626: 
24627:       shared_objects_pcre="$shared_objects_pcre $ac_bdir$ac_obj.lo"
24628: 
24629:       case $ac_src in
24630:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
24631:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
24632:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
24633:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
24634:       esac
24635: 
24636:     cat >>Makefile.objects<<EOF
24637: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
24638: 	$ac_comp
24639: EOF
24640:   done
24641: 
24642:       case $host_alias in
24643:         *netware*)
24644: 
24645:   install_modules="install-modules"
24646: 
24647:   case $host_alias in
24648:     *aix*)
24649:       suffix=so
24650:       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'
24651:       ;;
24652:     *netware*)
24653:       suffix=nlm
24654:       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)'
24655:       ;;
24656:     *)
24657:       suffix=la
24658:       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)'
24659:       ;;
24660:   esac
24661: 
24662:   if test "x" = "xyes"; then
24663:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phppcre.$suffix"
24664:   else
24665:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phppcre.$suffix"
24666:   fi
24667: 
24668:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pcre"
24669: 
24670:   cat >>Makefile.objects<<EOF
24671: \$(phplibdir)/phppcre.$suffix: $ext_builddir/phppcre.$suffix
24672: 	\$(LIBTOOL) --mode=install cp $ext_builddir/phppcre.$suffix \$(phplibdir)
24673: 
24674: $ext_builddir/phppcre.$suffix: \$(shared_objects_pcre) \$(PHPPCRE_SHARED_DEPENDENCIES)
24675: 	$link_cmd
24676: 
24677: EOF
24678: 
24679:           ;;
24680:         *)
24681: 
24682:   install_modules="install-modules"
24683: 
24684:   case $host_alias in
24685:     *aix*)
24686:       suffix=so
24687:       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'
24688:       ;;
24689:     *netware*)
24690:       suffix=nlm
24691:       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)'
24692:       ;;
24693:     *)
24694:       suffix=la
24695:       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)'
24696:       ;;
24697:   esac
24698: 
24699:   if test "x" = "xyes"; then
24700:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/pcre.$suffix"
24701:   else
24702:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/pcre.$suffix"
24703:   fi
24704: 
24705:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pcre"
24706: 
24707:   cat >>Makefile.objects<<EOF
24708: \$(phplibdir)/pcre.$suffix: $ext_builddir/pcre.$suffix
24709: 	\$(LIBTOOL) --mode=install cp $ext_builddir/pcre.$suffix \$(phplibdir)
24710: 
24711: $ext_builddir/pcre.$suffix: \$(shared_objects_pcre) \$(PCRE_SHARED_DEPENDENCIES)
24712: 	$link_cmd
24713: 
24714: EOF
24715: 
24716:           ;;
24717:       esac
24718: 
24719: cat >>confdefs.h <<_ACEOF
24720: #define COMPILE_DL_PCRE 1
24721: _ACEOF
24722: 
24723:     fi
24724:   fi
24725: 
24726:   if test "no" != "shared" && test "no" != "yes" && test "" = "cli"; then
24727:     PHP_PCRE_SHARED=no
24728:     case "$PHP_SAPI" in
24729:       cgi|embed)
24730: 
24731: 
24732:   case ext/pcre in
24733:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
24734:   /*) ac_srcdir=`echo "ext/pcre"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
24735:   *) ac_srcdir="$abs_srcdir/ext/pcre/"; ac_bdir="ext/pcre/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
24736:   esac
24737: 
24738: 
24739: 
24740:   b_c_pre=$php_c_pre
24741:   b_cxx_pre=$php_cxx_pre
24742:   b_c_meta=$php_c_meta
24743:   b_cxx_meta=$php_cxx_meta
24744:   b_c_post=$php_c_post
24745:   b_cxx_post=$php_cxx_post
24746:   b_lo=$php_lo
24747: 
24748: 
24749:   old_IFS=$IFS
24750:   for ac_src in $pcrelib_sources php_pcre.c; do
24751: 
24752:       IFS=.
24753:       set $ac_src
24754:       ac_obj=$1
24755:       IFS=$old_IFS
24756: 
24757:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
24758: 
24759:       case $ac_src in
24760:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
24761:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
24762:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
24763:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
24764:       esac
24765: 
24766:     cat >>Makefile.objects<<EOF
24767: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
24768: 	$ac_comp
24769: EOF
24770:   done
24771: 
24772: 
24773:         EXT_STATIC="$EXT_STATIC pcre"
24774:         ;;
24775:       *)
24776: 
24777: 
24778:   case ext/pcre in
24779:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
24780:   /*) ac_srcdir=`echo "ext/pcre"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
24781:   *) ac_srcdir="$abs_srcdir/ext/pcre/"; ac_bdir="ext/pcre/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
24782:   esac
24783: 
24784: 
24785: 
24786:   b_c_pre=$php_c_pre
24787:   b_cxx_pre=$php_cxx_pre
24788:   b_c_meta=$php_c_meta
24789:   b_cxx_meta=$php_cxx_meta
24790:   b_c_post=$php_c_post
24791:   b_cxx_post=$php_cxx_post
24792:   b_lo=$php_lo
24793: 
24794: 
24795:   old_IFS=$IFS
24796:   for ac_src in $pcrelib_sources php_pcre.c; do
24797: 
24798:       IFS=.
24799:       set $ac_src
24800:       ac_obj=$1
24801:       IFS=$old_IFS
24802: 
24803:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
24804: 
24805:       case $ac_src in
24806:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
24807:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
24808:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
24809:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
24810:       esac
24811: 
24812:     cat >>Makefile.objects<<EOF
24813: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
24814: 	$ac_comp
24815: EOF
24816:   done
24817: 
24818: 
24819:         ;;
24820:     esac
24821:     EXT_CLI_STATIC="$EXT_CLI_STATIC pcre"
24822:   fi
24823: 
24824: 
24825:     BUILD_DIR="$BUILD_DIR $ext_builddir"
24826: 
24827: 
24828: 
24829:   if test "$ext_builddir" = "."; then
24830:     PHP_PECL_EXTENSION=pcre
24831: 
24832:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
24833: 
24834:   fi
24835: 
24836: 
24837: 
24838:     BUILD_DIR="$BUILD_DIR $ext_builddir/pcrelib"
24839: 
24840: 
24841: 
24842: 
24843:     header_path=ext/pcre
24844:     for header_file in php_pcre.h pcrelib/; do
24845:       hp_hf="$header_path/$header_file"
24846: 
24847: 
24848:   unique=`echo $hp_hf|$SED 's/[^a-zA-Z0-9]/_/g'`
24849: 
24850:   cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
24851:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
24852:     eval "INSTALLHEADERS$unique=set"
24853: 
24854:         INSTALL_HEADERS="$INSTALL_HEADERS $hp_hf"
24855: 
24856:   fi
24857: 
24858:     done
24859: 
24860: 
24861: 
24862: $as_echo "#define HAVE_BUNDLED_PCRE 1" >>confdefs.h
24863: 
24864:   fi
24865: 
24866: 
24867: 
24868: php_with_sqlite3=yes
24869: 
24870: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the SQLite3 extension" >&5
24871: $as_echo_n "checking whether to enable the SQLite3 extension... " >&6; }
24872: 
24873: # Check whether --with-sqlite3 was given.
24874: if test "${with_sqlite3+set}" = set; then :
24875:   withval=$with_sqlite3; PHP_SQLITE3=$withval
24876: else
24877: 
24878:   PHP_SQLITE3=yes
24879:   test "$PHP_ENABLE_ALL" && PHP_SQLITE3=$PHP_ENABLE_ALL
24880: 
24881: fi
24882: 
24883: 
24884: 
24885: ext_output="yes, shared"
24886: ext_shared=yes
24887: case $PHP_SQLITE3 in
24888: shared,*)
24889:   PHP_SQLITE3=`echo "$PHP_SQLITE3"|$SED 's/^shared,//'`
24890:   ;;
24891: shared)
24892:   PHP_SQLITE3=yes
24893:   ;;
24894: no)
24895:   ext_output=no
24896:   ext_shared=no
24897:   ;;
24898: *)
24899:   ext_output=yes
24900:   ext_shared=no
24901:   ;;
24902: esac
24903: 
24904: 
24905: 
24906: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
24907: $as_echo "$ext_output" >&6; }
24908: 
24909: 
24910: 
24911: 
24912: if test $PHP_SQLITE3 != "no"; then
24913:   sqlite3_extra_sources=""
24914:   PHP_SQLITE3_CFLAGS=""
24915: 
24916:     if test -z "$enable_maintainer_zts"; then
24917:     if test -f "$phpincludedir/main/php_config.h"; then
24918:       ZTS=`grep '#define ZTS' $phpincludedir/main/php_config.h|$SED 's/#define ZTS//'`
24919:       if test "$ZTS" -eq "1"; then
24920:         enable_maintainer_zts="yes"
24921:       fi
24922:     fi
24923:   fi
24924: 
24925:   if test $PHP_SQLITE3 != "yes"; then
24926:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3 files in default path" >&5
24927: $as_echo_n "checking for sqlite3 files in default path... " >&6; }
24928:     for i in $PHP_SQLITE3 /usr/local /usr; do
24929:       if test -r $i/include/sqlite3.h; then
24930:         SQLITE3_DIR=$i
24931:         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $i" >&5
24932: $as_echo "found in $i" >&6; }
24933:         break
24934:       fi
24935:     done
24936: 
24937:     if test -z "$SQLITE3_DIR"; then
24938:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24939: $as_echo "not found" >&6; }
24940:       as_fn_error $? "Please reinstall the sqlite distribution from http://www.sqlite.org" "$LINENO" 5
24941:     fi
24942: 
24943:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite 3.3.9+" >&5
24944: $as_echo_n "checking for SQLite 3.3.9+... " >&6; }
24945: 
24946:   save_old_LDFLAGS=$LDFLAGS
24947:   ac_stuff="
24948:       -L$SQLITE3_DIR/$PHP_LIBDIR -lm
24949:     "
24950: 
24951:   save_ext_shared=$ext_shared
24952:   ext_shared=yes
24953: 
24954:   for ac_i in $ac_stuff; do
24955:     case $ac_i in
24956:     -pthread)
24957:       if test "$ext_shared" = "yes"; then
24958:         LDFLAGS="$LDFLAGS -pthread"
24959:       else
24960: 
24961: 
24962:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
24963: 
24964:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
24965:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
24966:     eval "EXTRA_LDFLAGS$unique=set"
24967:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
24968:   fi
24969: 
24970:       fi
24971:     ;;
24972:     -l*)
24973:       ac_ii=`echo $ac_i|cut -c 3-`
24974: 
24975: 
24976:   case $ac_ii in
24977:   c|c_r|pthread*) ;;
24978:   *)
24979:     if test "$ext_shared" = "yes"; then
24980:         LDFLAGS="$LDFLAGS -l$ac_ii"
24981:     else
24982: 
24983: 
24984:   case $ac_ii in
24985:   c|c_r|pthread*) ;;
24986:   *)
24987:       LIBS="$LIBS -l$ac_ii"
24988:    ;;
24989:   esac
24990: 
24991: 
24992:     fi
24993:    ;;
24994:   esac
24995: 
24996: 
24997:     ;;
24998:     -L*)
24999:       ac_ii=`echo $ac_i|cut -c 3-`
25000: 
25001:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
25002: 
25003:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
25004:     ai_p=$ac_ii
25005:   else
25006: 
25007:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
25008: 
25009:     ep_realdir=`(cd "$ep_dir" && pwd)`
25010:     ai_p="$ep_realdir"/`basename "$ac_ii"`
25011:   fi
25012: 
25013: 
25014:       if test "$ext_shared" = "yes"; then
25015:         LDFLAGS="-L$ai_p $LDFLAGS"
25016:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
25017:       else
25018: 
25019: 
25020: 
25021:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
25022: 
25023:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
25024:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
25025:     eval "LIBPATH$unique=set"
25026: 
25027:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
25028:     LDFLAGS="$LDFLAGS -L$ai_p"
25029:     PHP_RPATHS="$PHP_RPATHS $ai_p"
25030: 
25031:   fi
25032: 
25033: 
25034:       fi
25035: 
25036:   fi
25037: 
25038:     ;;
25039:     esac
25040:   done
25041: 
25042:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_prepare_v2 in -lsqlite3" >&5
25043: $as_echo_n "checking for sqlite3_prepare_v2 in -lsqlite3... " >&6; }
25044: if ${ac_cv_lib_sqlite3_sqlite3_prepare_v2+:} false; then :
25045:   $as_echo_n "(cached) " >&6
25046: else
25047:   ac_check_lib_save_LIBS=$LIBS
25048: LIBS="-lsqlite3  $LIBS"
25049: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25050: /* end confdefs.h.  */
25051: 
25052: /* Override any GCC internal prototype to avoid an error.
25053:    Use char because int might match the return type of a GCC
25054:    builtin and then its argument prototype would still apply.  */
25055: #ifdef __cplusplus
25056: extern "C"
25057: #endif
25058: char sqlite3_prepare_v2 ();
25059: int
25060: main ()
25061: {
25062: return sqlite3_prepare_v2 ();
25063:   ;
25064:   return 0;
25065: }
25066: _ACEOF
25067: if ac_fn_c_try_link "$LINENO"; then :
25068:   ac_cv_lib_sqlite3_sqlite3_prepare_v2=yes
25069: else
25070:   ac_cv_lib_sqlite3_sqlite3_prepare_v2=no
25071: fi
25072: rm -f core conftest.err conftest.$ac_objext \
25073:     conftest$ac_exeext conftest.$ac_ext
25074: LIBS=$ac_check_lib_save_LIBS
25075: fi
25076: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_prepare_v2" >&5
25077: $as_echo "$ac_cv_lib_sqlite3_sqlite3_prepare_v2" >&6; }
25078: if test "x$ac_cv_lib_sqlite3_sqlite3_prepare_v2" = xyes; then :
25079: 
25080:     LDFLAGS=$save_old_LDFLAGS
25081:     ext_shared=$save_ext_shared
25082: 
25083:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25084: $as_echo "found" >&6; }
25085: 
25086: 
25087:   if test "$ext_shared" = "yes"; then
25088:     SQLITE3_SHARED_LIBADD="-lsqlite3 $SQLITE3_SHARED_LIBADD"
25089:     if test -n "$SQLITE3_DIR/$PHP_LIBDIR"; then
25090: 
25091:   if test "$SQLITE3_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$SQLITE3_DIR/$PHP_LIBDIR" != "/usr/lib"; then
25092: 
25093:   if test -z "$SQLITE3_DIR/$PHP_LIBDIR" || echo "$SQLITE3_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
25094:     ai_p=$SQLITE3_DIR/$PHP_LIBDIR
25095:   else
25096: 
25097:     ep_dir=`echo $SQLITE3_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
25098: 
25099:     ep_realdir=`(cd "$ep_dir" && pwd)`
25100:     ai_p="$ep_realdir"/`basename "$SQLITE3_DIR/$PHP_LIBDIR"`
25101:   fi
25102: 
25103: 
25104:       if test "$ext_shared" = "yes"; then
25105:         SQLITE3_SHARED_LIBADD="-L$ai_p $SQLITE3_SHARED_LIBADD"
25106:         test -n "$ld_runpath_switch" && SQLITE3_SHARED_LIBADD="$ld_runpath_switch$ai_p $SQLITE3_SHARED_LIBADD"
25107:       else
25108: 
25109: 
25110: 
25111:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
25112: 
25113:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
25114:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
25115:     eval "LIBPATH$unique=set"
25116: 
25117:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
25118:     LDFLAGS="$LDFLAGS -L$ai_p"
25119:     PHP_RPATHS="$PHP_RPATHS $ai_p"
25120: 
25121:   fi
25122: 
25123: 
25124:       fi
25125: 
25126:   fi
25127: 
25128:     fi
25129:   else
25130: 
25131: 
25132:   if test -n "$SQLITE3_DIR/$PHP_LIBDIR"; then
25133: 
25134:   if test "$SQLITE3_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$SQLITE3_DIR/$PHP_LIBDIR" != "/usr/lib"; then
25135: 
25136:   if test -z "$SQLITE3_DIR/$PHP_LIBDIR" || echo "$SQLITE3_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
25137:     ai_p=$SQLITE3_DIR/$PHP_LIBDIR
25138:   else
25139: 
25140:     ep_dir=`echo $SQLITE3_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
25141: 
25142:     ep_realdir=`(cd "$ep_dir" && pwd)`
25143:     ai_p="$ep_realdir"/`basename "$SQLITE3_DIR/$PHP_LIBDIR"`
25144:   fi
25145: 
25146: 
25147: 
25148: 
25149: 
25150:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
25151: 
25152:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
25153:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
25154:     eval "LIBPATH$unique=set"
25155: 
25156:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
25157:     LDFLAGS="$LDFLAGS -L$ai_p"
25158:     PHP_RPATHS="$PHP_RPATHS $ai_p"
25159: 
25160:   fi
25161: 
25162: 
25163: 
25164:   fi
25165: 
25166:   fi
25167: 
25168: 
25169:   case sqlite3 in
25170:   c|c_r|pthread*) ;;
25171:   *)
25172:       LIBS="-lsqlite3 $LIBS"
25173:    ;;
25174:   esac
25175: 
25176: 
25177: 
25178: 
25179:   fi
25180: 
25181: 
25182: 
25183:   if test "$SQLITE3_DIR/include" != "/usr/include"; then
25184: 
25185:   if test -z "$SQLITE3_DIR/include" || echo "$SQLITE3_DIR/include" | grep '^/' >/dev/null ; then
25186:     ai_p=$SQLITE3_DIR/include
25187:   else
25188: 
25189:     ep_dir=`echo $SQLITE3_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`
25190: 
25191:     ep_realdir=`(cd "$ep_dir" && pwd)`
25192:     ai_p="$ep_realdir"/`basename "$SQLITE3_DIR/include"`
25193:   fi
25194: 
25195: 
25196: 
25197:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
25198: 
25199:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
25200:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
25201:     eval "INCLUDEPATH$unique=set"
25202: 
25203:       if test ""; then
25204:         INCLUDES="-I$ai_p $INCLUDES"
25205:       else
25206:         INCLUDES="$INCLUDES -I$ai_p"
25207:       fi
25208: 
25209:   fi
25210: 
25211:   fi
25212: 
25213: 
25214: 
25215: else
25216: 
25217:     LDFLAGS=$save_old_LDFLAGS
25218:     ext_shared=$save_ext_shared
25219:     unset ac_cv_lib_sqlite3_sqlite3_prepare_v2
25220: 
25221:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25222: $as_echo "not found" >&6; }
25223:       as_fn_error $? "Please install SQLite 3.3.9 first or check libsqlite3 is present" "$LINENO" 5
25224: 
25225: 
25226: fi
25227: 
25228: 
25229: 
25230:   save_old_LDFLAGS=$LDFLAGS
25231:   ac_stuff=""
25232: 
25233:   save_ext_shared=$ext_shared
25234:   ext_shared=yes
25235: 
25236:   for ac_i in $ac_stuff; do
25237:     case $ac_i in
25238:     -pthread)
25239:       if test "$ext_shared" = "yes"; then
25240:         LDFLAGS="$LDFLAGS -pthread"
25241:       else
25242: 
25243: 
25244:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
25245: 
25246:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
25247:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
25248:     eval "EXTRA_LDFLAGS$unique=set"
25249:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
25250:   fi
25251: 
25252:       fi
25253:     ;;
25254:     -l*)
25255:       ac_ii=`echo $ac_i|cut -c 3-`
25256: 
25257: 
25258:   case $ac_ii in
25259:   c|c_r|pthread*) ;;
25260:   *)
25261:     if test "$ext_shared" = "yes"; then
25262:         LDFLAGS="$LDFLAGS -l$ac_ii"
25263:     else
25264: 
25265: 
25266:   case $ac_ii in
25267:   c|c_r|pthread*) ;;
25268:   *)
25269:       LIBS="$LIBS -l$ac_ii"
25270:    ;;
25271:   esac
25272: 
25273: 
25274:     fi
25275:    ;;
25276:   esac
25277: 
25278: 
25279:     ;;
25280:     -L*)
25281:       ac_ii=`echo $ac_i|cut -c 3-`
25282: 
25283:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
25284: 
25285:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
25286:     ai_p=$ac_ii
25287:   else
25288: 
25289:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
25290: 
25291:     ep_realdir=`(cd "$ep_dir" && pwd)`
25292:     ai_p="$ep_realdir"/`basename "$ac_ii"`
25293:   fi
25294: 
25295: 
25296:       if test "$ext_shared" = "yes"; then
25297:         LDFLAGS="-L$ai_p $LDFLAGS"
25298:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
25299:       else
25300: 
25301: 
25302: 
25303:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
25304: 
25305:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
25306:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
25307:     eval "LIBPATH$unique=set"
25308: 
25309:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
25310:     LDFLAGS="$LDFLAGS -L$ai_p"
25311:     PHP_RPATHS="$PHP_RPATHS $ai_p"
25312: 
25313:   fi
25314: 
25315: 
25316:       fi
25317: 
25318:   fi
25319: 
25320:     ;;
25321:     esac
25322:   done
25323: 
25324:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_key in -lsqlite3" >&5
25325: $as_echo_n "checking for sqlite3_key in -lsqlite3... " >&6; }
25326: if ${ac_cv_lib_sqlite3_sqlite3_key+:} false; then :
25327:   $as_echo_n "(cached) " >&6
25328: else
25329:   ac_check_lib_save_LIBS=$LIBS
25330: LIBS="-lsqlite3  $LIBS"
25331: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25332: /* end confdefs.h.  */
25333: 
25334: /* Override any GCC internal prototype to avoid an error.
25335:    Use char because int might match the return type of a GCC
25336:    builtin and then its argument prototype would still apply.  */
25337: #ifdef __cplusplus
25338: extern "C"
25339: #endif
25340: char sqlite3_key ();
25341: int
25342: main ()
25343: {
25344: return sqlite3_key ();
25345:   ;
25346:   return 0;
25347: }
25348: _ACEOF
25349: if ac_fn_c_try_link "$LINENO"; then :
25350:   ac_cv_lib_sqlite3_sqlite3_key=yes
25351: else
25352:   ac_cv_lib_sqlite3_sqlite3_key=no
25353: fi
25354: rm -f core conftest.err conftest.$ac_objext \
25355:     conftest$ac_exeext conftest.$ac_ext
25356: LIBS=$ac_check_lib_save_LIBS
25357: fi
25358: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_key" >&5
25359: $as_echo "$ac_cv_lib_sqlite3_sqlite3_key" >&6; }
25360: if test "x$ac_cv_lib_sqlite3_sqlite3_key" = xyes; then :
25361: 
25362:     LDFLAGS=$save_old_LDFLAGS
25363:     ext_shared=$save_ext_shared
25364: 
25365: 
25366: $as_echo "#define HAVE_SQLITE3_KEY 1" >>confdefs.h
25367: 
25368: 
25369: 
25370: else
25371: 
25372:     LDFLAGS=$save_old_LDFLAGS
25373:     ext_shared=$save_ext_shared
25374:     unset ac_cv_lib_sqlite3_sqlite3_key
25375: 
25376: 
25377: fi
25378: 
25379: 
25380:   save_old_LDFLAGS=$LDFLAGS
25381:   ac_stuff=""
25382: 
25383:   save_ext_shared=$ext_shared
25384:   ext_shared=yes
25385: 
25386:   for ac_i in $ac_stuff; do
25387:     case $ac_i in
25388:     -pthread)
25389:       if test "$ext_shared" = "yes"; then
25390:         LDFLAGS="$LDFLAGS -pthread"
25391:       else
25392: 
25393: 
25394:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
25395: 
25396:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
25397:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
25398:     eval "EXTRA_LDFLAGS$unique=set"
25399:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
25400:   fi
25401: 
25402:       fi
25403:     ;;
25404:     -l*)
25405:       ac_ii=`echo $ac_i|cut -c 3-`
25406: 
25407: 
25408:   case $ac_ii in
25409:   c|c_r|pthread*) ;;
25410:   *)
25411:     if test "$ext_shared" = "yes"; then
25412:         LDFLAGS="$LDFLAGS -l$ac_ii"
25413:     else
25414: 
25415: 
25416:   case $ac_ii in
25417:   c|c_r|pthread*) ;;
25418:   *)
25419:       LIBS="$LIBS -l$ac_ii"
25420:    ;;
25421:   esac
25422: 
25423: 
25424:     fi
25425:    ;;
25426:   esac
25427: 
25428: 
25429:     ;;
25430:     -L*)
25431:       ac_ii=`echo $ac_i|cut -c 3-`
25432: 
25433:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
25434: 
25435:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
25436:     ai_p=$ac_ii
25437:   else
25438: 
25439:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
25440: 
25441:     ep_realdir=`(cd "$ep_dir" && pwd)`
25442:     ai_p="$ep_realdir"/`basename "$ac_ii"`
25443:   fi
25444: 
25445: 
25446:       if test "$ext_shared" = "yes"; then
25447:         LDFLAGS="-L$ai_p $LDFLAGS"
25448:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
25449:       else
25450: 
25451: 
25452: 
25453:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
25454: 
25455:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
25456:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
25457:     eval "LIBPATH$unique=set"
25458: 
25459:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
25460:     LDFLAGS="$LDFLAGS -L$ai_p"
25461:     PHP_RPATHS="$PHP_RPATHS $ai_p"
25462: 
25463:   fi
25464: 
25465: 
25466:       fi
25467: 
25468:   fi
25469: 
25470:     ;;
25471:     esac
25472:   done
25473: 
25474:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_column_table_name in -lsqlite3" >&5
25475: $as_echo_n "checking for sqlite3_column_table_name in -lsqlite3... " >&6; }
25476: if ${ac_cv_lib_sqlite3_sqlite3_column_table_name+:} false; then :
25477:   $as_echo_n "(cached) " >&6
25478: else
25479:   ac_check_lib_save_LIBS=$LIBS
25480: LIBS="-lsqlite3  $LIBS"
25481: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25482: /* end confdefs.h.  */
25483: 
25484: /* Override any GCC internal prototype to avoid an error.
25485:    Use char because int might match the return type of a GCC
25486:    builtin and then its argument prototype would still apply.  */
25487: #ifdef __cplusplus
25488: extern "C"
25489: #endif
25490: char sqlite3_column_table_name ();
25491: int
25492: main ()
25493: {
25494: return sqlite3_column_table_name ();
25495:   ;
25496:   return 0;
25497: }
25498: _ACEOF
25499: if ac_fn_c_try_link "$LINENO"; then :
25500:   ac_cv_lib_sqlite3_sqlite3_column_table_name=yes
25501: else
25502:   ac_cv_lib_sqlite3_sqlite3_column_table_name=no
25503: fi
25504: rm -f core conftest.err conftest.$ac_objext \
25505:     conftest$ac_exeext conftest.$ac_ext
25506: LIBS=$ac_check_lib_save_LIBS
25507: fi
25508: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_column_table_name" >&5
25509: $as_echo "$ac_cv_lib_sqlite3_sqlite3_column_table_name" >&6; }
25510: if test "x$ac_cv_lib_sqlite3_sqlite3_column_table_name" = xyes; then :
25511: 
25512:     LDFLAGS=$save_old_LDFLAGS
25513:     ext_shared=$save_ext_shared
25514: 
25515: 
25516: $as_echo "#define SQLITE_ENABLE_COLUMN_METADATA 1" >>confdefs.h
25517: 
25518: 
25519: 
25520: else
25521: 
25522:     LDFLAGS=$save_old_LDFLAGS
25523:     ext_shared=$save_ext_shared
25524:     unset ac_cv_lib_sqlite3_sqlite3_column_table_name
25525: 
25526: 
25527: fi
25528: 
25529: 
25530: 
25531:   save_old_LDFLAGS=$LDFLAGS
25532:   ac_stuff=""
25533: 
25534:   save_ext_shared=$ext_shared
25535:   ext_shared=yes
25536: 
25537:   for ac_i in $ac_stuff; do
25538:     case $ac_i in
25539:     -pthread)
25540:       if test "$ext_shared" = "yes"; then
25541:         LDFLAGS="$LDFLAGS -pthread"
25542:       else
25543: 
25544: 
25545:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
25546: 
25547:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
25548:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
25549:     eval "EXTRA_LDFLAGS$unique=set"
25550:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
25551:   fi
25552: 
25553:       fi
25554:     ;;
25555:     -l*)
25556:       ac_ii=`echo $ac_i|cut -c 3-`
25557: 
25558: 
25559:   case $ac_ii in
25560:   c|c_r|pthread*) ;;
25561:   *)
25562:     if test "$ext_shared" = "yes"; then
25563:         LDFLAGS="$LDFLAGS -l$ac_ii"
25564:     else
25565: 
25566: 
25567:   case $ac_ii in
25568:   c|c_r|pthread*) ;;
25569:   *)
25570:       LIBS="$LIBS -l$ac_ii"
25571:    ;;
25572:   esac
25573: 
25574: 
25575:     fi
25576:    ;;
25577:   esac
25578: 
25579: 
25580:     ;;
25581:     -L*)
25582:       ac_ii=`echo $ac_i|cut -c 3-`
25583: 
25584:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
25585: 
25586:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
25587:     ai_p=$ac_ii
25588:   else
25589: 
25590:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
25591: 
25592:     ep_realdir=`(cd "$ep_dir" && pwd)`
25593:     ai_p="$ep_realdir"/`basename "$ac_ii"`
25594:   fi
25595: 
25596: 
25597:       if test "$ext_shared" = "yes"; then
25598:         LDFLAGS="-L$ai_p $LDFLAGS"
25599:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
25600:       else
25601: 
25602: 
25603: 
25604:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
25605: 
25606:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
25607:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
25608:     eval "LIBPATH$unique=set"
25609: 
25610:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
25611:     LDFLAGS="$LDFLAGS -L$ai_p"
25612:     PHP_RPATHS="$PHP_RPATHS $ai_p"
25613: 
25614:   fi
25615: 
25616: 
25617:       fi
25618: 
25619:   fi
25620: 
25621:     ;;
25622:     esac
25623:   done
25624: 
25625:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_load_extension in -lsqlite3" >&5
25626: $as_echo_n "checking for sqlite3_load_extension in -lsqlite3... " >&6; }
25627: if ${ac_cv_lib_sqlite3_sqlite3_load_extension+:} false; then :
25628:   $as_echo_n "(cached) " >&6
25629: else
25630:   ac_check_lib_save_LIBS=$LIBS
25631: LIBS="-lsqlite3  $LIBS"
25632: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25633: /* end confdefs.h.  */
25634: 
25635: /* Override any GCC internal prototype to avoid an error.
25636:    Use char because int might match the return type of a GCC
25637:    builtin and then its argument prototype would still apply.  */
25638: #ifdef __cplusplus
25639: extern "C"
25640: #endif
25641: char sqlite3_load_extension ();
25642: int
25643: main ()
25644: {
25645: return sqlite3_load_extension ();
25646:   ;
25647:   return 0;
25648: }
25649: _ACEOF
25650: if ac_fn_c_try_link "$LINENO"; then :
25651:   ac_cv_lib_sqlite3_sqlite3_load_extension=yes
25652: else
25653:   ac_cv_lib_sqlite3_sqlite3_load_extension=no
25654: fi
25655: rm -f core conftest.err conftest.$ac_objext \
25656:     conftest$ac_exeext conftest.$ac_ext
25657: LIBS=$ac_check_lib_save_LIBS
25658: fi
25659: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_load_extension" >&5
25660: $as_echo "$ac_cv_lib_sqlite3_sqlite3_load_extension" >&6; }
25661: if test "x$ac_cv_lib_sqlite3_sqlite3_load_extension" = xyes; then :
25662: 
25663:     LDFLAGS=$save_old_LDFLAGS
25664:     ext_shared=$save_ext_shared
25665: 
25666: 
25667: else
25668: 
25669:     LDFLAGS=$save_old_LDFLAGS
25670:     ext_shared=$save_ext_shared
25671:     unset ac_cv_lib_sqlite3_sqlite3_load_extension
25672: 
25673: $as_echo "#define SQLITE_OMIT_LOAD_EXTENSION 1" >>confdefs.h
25674: 
25675: 
25676: 
25677: fi
25678: 
25679: 
25680:   else
25681:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking bundled sqlite3 library" >&5
25682: $as_echo_n "checking bundled sqlite3 library... " >&6; }
25683:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25684: $as_echo "yes" >&6; }
25685: 
25686:     sqlite3_extra_sources="libsqlite/sqlite3.c"
25687: 
25688:     if test "$enable_maintainer_zts" = "yes"; then
25689:       threadsafe_flags="-DSQLITE_THREADSAFE=1"
25690:     else
25691:       threadsafe_flags="-DSQLITE_THREADSAFE=0"
25692:     fi
25693: 
25694:     if test "$ZEND_DEBUG" = "yes"; then
25695:       debug_flags="-DSQLITE_DEBUG=1"
25696:     fi
25697: 
25698:     other_flags="-DSQLITE_ENABLE_FTS3=1 -DSQLITE_CORE=1 -DSQLITE_ENABLE_COLUMN_METADATA=1"
25699: 
25700: 	    if test "$PHP_INTL" = "yes" && test "$PHP_INTL_SHARED" != "yes"; then
25701:       other_flags="$other_flags -DSQLITE_ENABLE_ICU=1"
25702:     fi
25703: 
25704:     PHP_SQLITE3_CFLAGS="-I@ext_srcdir@/libsqlite $other_flags $threadsafe_flags $debug_flags"
25705: 
25706: 
25707:     for header_file in ext/sqlite3/libsqlite/sqlite3.h; do
25708: 
25709: 
25710:   unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
25711: 
25712:   cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
25713:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
25714:     eval "INSTALLHEADERS$unique=set"
25715: 
25716:         INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
25717: 
25718:   fi
25719: 
25720:     done
25721: 
25722: 
25723:   fi
25724: 
25725: 
25726: $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
25727: 
25728: 
25729:   sqlite3_sources="sqlite3.c $sqlite3_extra_sources"
25730: 
25731: 
25732:   ext_builddir=ext/sqlite3
25733:   ext_srcdir=$abs_srcdir/ext/sqlite3
25734: 
25735:   ac_extra=`echo "$PHP_SQLITE3_CFLAGS"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
25736: 
25737:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
25738:     PHP_SQLITE3_SHARED=no
25739: 
25740: 
25741:   case ext/sqlite3 in
25742:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
25743:   /*) ac_srcdir=`echo "ext/sqlite3"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
25744:   *) ac_srcdir="$abs_srcdir/ext/sqlite3/"; ac_bdir="ext/sqlite3/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
25745:   esac
25746: 
25747: 
25748: 
25749:   b_c_pre=$php_c_pre
25750:   b_cxx_pre=$php_cxx_pre
25751:   b_c_meta=$php_c_meta
25752:   b_cxx_meta=$php_cxx_meta
25753:   b_c_post=$php_c_post
25754:   b_cxx_post=$php_cxx_post
25755:   b_lo=$php_lo
25756: 
25757: 
25758:   old_IFS=$IFS
25759:   for ac_src in $sqlite3_sources; do
25760: 
25761:       IFS=.
25762:       set $ac_src
25763:       ac_obj=$1
25764:       IFS=$old_IFS
25765: 
25766:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
25767: 
25768:       case $ac_src in
25769:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
25770:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
25771:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
25772:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
25773:       esac
25774: 
25775:     cat >>Makefile.objects<<EOF
25776: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
25777: 	$ac_comp
25778: EOF
25779:   done
25780: 
25781: 
25782:     EXT_STATIC="$EXT_STATIC sqlite3"
25783:     if test "$ext_shared" != "nocli"; then
25784:       EXT_CLI_STATIC="$EXT_CLI_STATIC sqlite3"
25785:     fi
25786:   else
25787:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
25788:       PHP_SQLITE3_SHARED=yes
25789: 
25790:   case ext/sqlite3 in
25791:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
25792:   /*) ac_srcdir=`echo "ext/sqlite3"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
25793:   *) ac_srcdir="$abs_srcdir/ext/sqlite3/"; ac_bdir="ext/sqlite3/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
25794:   esac
25795: 
25796: 
25797: 
25798:   b_c_pre=$shared_c_pre
25799:   b_cxx_pre=$shared_cxx_pre
25800:   b_c_meta=$shared_c_meta
25801:   b_cxx_meta=$shared_cxx_meta
25802:   b_c_post=$shared_c_post
25803:   b_cxx_post=$shared_cxx_post
25804:   b_lo=$shared_lo
25805: 
25806: 
25807:   old_IFS=$IFS
25808:   for ac_src in $sqlite3_sources; do
25809: 
25810:       IFS=.
25811:       set $ac_src
25812:       ac_obj=$1
25813:       IFS=$old_IFS
25814: 
25815:       shared_objects_sqlite3="$shared_objects_sqlite3 $ac_bdir$ac_obj.lo"
25816: 
25817:       case $ac_src in
25818:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
25819:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
25820:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
25821:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
25822:       esac
25823: 
25824:     cat >>Makefile.objects<<EOF
25825: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
25826: 	$ac_comp
25827: EOF
25828:   done
25829: 
25830:       case $host_alias in
25831:         *netware*)
25832: 
25833:   install_modules="install-modules"
25834: 
25835:   case $host_alias in
25836:     *aix*)
25837:       suffix=so
25838:       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'
25839:       ;;
25840:     *netware*)
25841:       suffix=nlm
25842:       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)'
25843:       ;;
25844:     *)
25845:       suffix=la
25846:       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)'
25847:       ;;
25848:   esac
25849: 
25850:   if test "x" = "xyes"; then
25851:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpsqlite3.$suffix"
25852:   else
25853:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpsqlite3.$suffix"
25854:   fi
25855: 
25856:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_sqlite3"
25857: 
25858:   cat >>Makefile.objects<<EOF
25859: \$(phplibdir)/phpsqlite3.$suffix: $ext_builddir/phpsqlite3.$suffix
25860: 	\$(LIBTOOL) --mode=install cp $ext_builddir/phpsqlite3.$suffix \$(phplibdir)
25861: 
25862: $ext_builddir/phpsqlite3.$suffix: \$(shared_objects_sqlite3) \$(PHPSQLITE3_SHARED_DEPENDENCIES)
25863: 	$link_cmd
25864: 
25865: EOF
25866: 
25867:           ;;
25868:         *)
25869: 
25870:   install_modules="install-modules"
25871: 
25872:   case $host_alias in
25873:     *aix*)
25874:       suffix=so
25875:       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'
25876:       ;;
25877:     *netware*)
25878:       suffix=nlm
25879:       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)'
25880:       ;;
25881:     *)
25882:       suffix=la
25883:       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)'
25884:       ;;
25885:   esac
25886: 
25887:   if test "x" = "xyes"; then
25888:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/sqlite3.$suffix"
25889:   else
25890:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/sqlite3.$suffix"
25891:   fi
25892: 
25893:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_sqlite3"
25894: 
25895:   cat >>Makefile.objects<<EOF
25896: \$(phplibdir)/sqlite3.$suffix: $ext_builddir/sqlite3.$suffix
25897: 	\$(LIBTOOL) --mode=install cp $ext_builddir/sqlite3.$suffix \$(phplibdir)
25898: 
25899: $ext_builddir/sqlite3.$suffix: \$(shared_objects_sqlite3) \$(SQLITE3_SHARED_DEPENDENCIES)
25900: 	$link_cmd
25901: 
25902: EOF
25903: 
25904:           ;;
25905:       esac
25906: 
25907: cat >>confdefs.h <<_ACEOF
25908: #define COMPILE_DL_SQLITE3 1
25909: _ACEOF
25910: 
25911:     fi
25912:   fi
25913: 
25914:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
25915:     PHP_SQLITE3_SHARED=no
25916:     case "$PHP_SAPI" in
25917:       cgi|embed)
25918: 
25919: 
25920:   case ext/sqlite3 in
25921:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
25922:   /*) ac_srcdir=`echo "ext/sqlite3"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
25923:   *) ac_srcdir="$abs_srcdir/ext/sqlite3/"; ac_bdir="ext/sqlite3/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
25924:   esac
25925: 
25926: 
25927: 
25928:   b_c_pre=$php_c_pre
25929:   b_cxx_pre=$php_cxx_pre
25930:   b_c_meta=$php_c_meta
25931:   b_cxx_meta=$php_cxx_meta
25932:   b_c_post=$php_c_post
25933:   b_cxx_post=$php_cxx_post
25934:   b_lo=$php_lo
25935: 
25936: 
25937:   old_IFS=$IFS
25938:   for ac_src in $sqlite3_sources; do
25939: 
25940:       IFS=.
25941:       set $ac_src
25942:       ac_obj=$1
25943:       IFS=$old_IFS
25944: 
25945:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
25946: 
25947:       case $ac_src in
25948:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
25949:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
25950:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
25951:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
25952:       esac
25953: 
25954:     cat >>Makefile.objects<<EOF
25955: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
25956: 	$ac_comp
25957: EOF
25958:   done
25959: 
25960: 
25961:         EXT_STATIC="$EXT_STATIC sqlite3"
25962:         ;;
25963:       *)
25964: 
25965: 
25966:   case ext/sqlite3 in
25967:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
25968:   /*) ac_srcdir=`echo "ext/sqlite3"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
25969:   *) ac_srcdir="$abs_srcdir/ext/sqlite3/"; ac_bdir="ext/sqlite3/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
25970:   esac
25971: 
25972: 
25973: 
25974:   b_c_pre=$php_c_pre
25975:   b_cxx_pre=$php_cxx_pre
25976:   b_c_meta=$php_c_meta
25977:   b_cxx_meta=$php_cxx_meta
25978:   b_c_post=$php_c_post
25979:   b_cxx_post=$php_cxx_post
25980:   b_lo=$php_lo
25981: 
25982: 
25983:   old_IFS=$IFS
25984:   for ac_src in $sqlite3_sources; do
25985: 
25986:       IFS=.
25987:       set $ac_src
25988:       ac_obj=$1
25989:       IFS=$old_IFS
25990: 
25991:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
25992: 
25993:       case $ac_src in
25994:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
25995:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
25996:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
25997:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
25998:       esac
25999: 
26000:     cat >>Makefile.objects<<EOF
26001: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
26002: 	$ac_comp
26003: EOF
26004:   done
26005: 
26006: 
26007:         ;;
26008:     esac
26009:     EXT_CLI_STATIC="$EXT_CLI_STATIC sqlite3"
26010:   fi
26011: 
26012: 
26013:     BUILD_DIR="$BUILD_DIR $ext_builddir"
26014: 
26015: 
26016: 
26017:   if test "$ext_builddir" = "."; then
26018:     PHP_PECL_EXTENSION=sqlite3
26019: 
26020:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
26021: 
26022:   fi
26023: 
26024: 
26025: 
26026:     BUILD_DIR="$BUILD_DIR $ext_builddir/libsqlite"
26027: 
26028: 
26029: 
26030:   PHP_VAR_SUBST="$PHP_VAR_SUBST SQLITE3_SHARED_LIBADD"
26031: 
26032: fi
26033: 
26034: 
26035: 
26036: php_with_zlib=no
26037: 
26038: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB support" >&5
26039: $as_echo_n "checking for ZLIB support... " >&6; }
26040: 
26041: # Check whether --with-zlib was given.
26042: if test "${with_zlib+set}" = set; then :
26043:   withval=$with_zlib; PHP_ZLIB=$withval
26044: else
26045: 
26046:   PHP_ZLIB=no
26047:   test "$PHP_ENABLE_ALL" && PHP_ZLIB=$PHP_ENABLE_ALL
26048: 
26049: fi
26050: 
26051: 
26052: 
26053: ext_output="yes, shared"
26054: ext_shared=yes
26055: case $PHP_ZLIB in
26056: shared,*)
26057:   PHP_ZLIB=`echo "$PHP_ZLIB"|$SED 's/^shared,//'`
26058:   ;;
26059: shared)
26060:   PHP_ZLIB=yes
26061:   ;;
26062: no)
26063:   ext_output=no
26064:   ext_shared=no
26065:   ;;
26066: *)
26067:   ext_output=yes
26068:   ext_shared=no
26069:   ;;
26070: esac
26071: 
26072: 
26073: 
26074: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
26075: $as_echo "$ext_output" >&6; }
26076: 
26077: 
26078: 
26079: 
26080: 
26081: php_with_zlib_dir=no
26082: 
26083: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the location of ZLIB install directory is defined" >&5
26084: $as_echo_n "checking if the location of ZLIB install directory is defined... " >&6; }
26085: 
26086: # Check whether --with-zlib-dir was given.
26087: if test "${with_zlib_dir+set}" = set; then :
26088:   withval=$with_zlib_dir; PHP_ZLIB_DIR=$withval
26089: else
26090: 
26091:   PHP_ZLIB_DIR=no
26092: 
26093: 
26094: fi
26095: 
26096: 
26097: ext_output=$PHP_ZLIB_DIR
26098: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
26099: $as_echo "$ext_output" >&6; }
26100: 
26101: 
26102: 
26103: 
26104: if test "$PHP_ZLIB" != "no" || test "$PHP_ZLIB_DIR" != "no"; then
26105: 
26106:   ext_builddir=ext/zlib
26107:   ext_srcdir=$abs_srcdir/ext/zlib
26108: 
26109:   ac_extra=
26110: 
26111:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
26112:     PHP_ZLIB_SHARED=no
26113: 
26114: 
26115:   case ext/zlib in
26116:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
26117:   /*) ac_srcdir=`echo "ext/zlib"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
26118:   *) ac_srcdir="$abs_srcdir/ext/zlib/"; ac_bdir="ext/zlib/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
26119:   esac
26120: 
26121: 
26122: 
26123:   b_c_pre=$php_c_pre
26124:   b_cxx_pre=$php_cxx_pre
26125:   b_c_meta=$php_c_meta
26126:   b_cxx_meta=$php_cxx_meta
26127:   b_c_post=$php_c_post
26128:   b_cxx_post=$php_cxx_post
26129:   b_lo=$php_lo
26130: 
26131: 
26132:   old_IFS=$IFS
26133:   for ac_src in zlib.c zlib_fopen_wrapper.c zlib_filter.c; do
26134: 
26135:       IFS=.
26136:       set $ac_src
26137:       ac_obj=$1
26138:       IFS=$old_IFS
26139: 
26140:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
26141: 
26142:       case $ac_src in
26143:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
26144:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
26145:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
26146:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
26147:       esac
26148: 
26149:     cat >>Makefile.objects<<EOF
26150: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
26151: 	$ac_comp
26152: EOF
26153:   done
26154: 
26155: 
26156:     EXT_STATIC="$EXT_STATIC zlib"
26157:     if test "$ext_shared" != "nocli"; then
26158:       EXT_CLI_STATIC="$EXT_CLI_STATIC zlib"
26159:     fi
26160:   else
26161:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
26162:       PHP_ZLIB_SHARED=yes
26163: 
26164:   case ext/zlib in
26165:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
26166:   /*) ac_srcdir=`echo "ext/zlib"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
26167:   *) ac_srcdir="$abs_srcdir/ext/zlib/"; ac_bdir="ext/zlib/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
26168:   esac
26169: 
26170: 
26171: 
26172:   b_c_pre=$shared_c_pre
26173:   b_cxx_pre=$shared_cxx_pre
26174:   b_c_meta=$shared_c_meta
26175:   b_cxx_meta=$shared_cxx_meta
26176:   b_c_post=$shared_c_post
26177:   b_cxx_post=$shared_cxx_post
26178:   b_lo=$shared_lo
26179: 
26180: 
26181:   old_IFS=$IFS
26182:   for ac_src in zlib.c zlib_fopen_wrapper.c zlib_filter.c; do
26183: 
26184:       IFS=.
26185:       set $ac_src
26186:       ac_obj=$1
26187:       IFS=$old_IFS
26188: 
26189:       shared_objects_zlib="$shared_objects_zlib $ac_bdir$ac_obj.lo"
26190: 
26191:       case $ac_src in
26192:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
26193:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
26194:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
26195:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
26196:       esac
26197: 
26198:     cat >>Makefile.objects<<EOF
26199: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
26200: 	$ac_comp
26201: EOF
26202:   done
26203: 
26204:       case $host_alias in
26205:         *netware*)
26206: 
26207:   install_modules="install-modules"
26208: 
26209:   case $host_alias in
26210:     *aix*)
26211:       suffix=so
26212:       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'
26213:       ;;
26214:     *netware*)
26215:       suffix=nlm
26216:       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)'
26217:       ;;
26218:     *)
26219:       suffix=la
26220:       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)'
26221:       ;;
26222:   esac
26223: 
26224:   if test "x" = "xyes"; then
26225:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpzlib.$suffix"
26226:   else
26227:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpzlib.$suffix"
26228:   fi
26229: 
26230:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_zlib"
26231: 
26232:   cat >>Makefile.objects<<EOF
26233: \$(phplibdir)/phpzlib.$suffix: $ext_builddir/phpzlib.$suffix
26234: 	\$(LIBTOOL) --mode=install cp $ext_builddir/phpzlib.$suffix \$(phplibdir)
26235: 
26236: $ext_builddir/phpzlib.$suffix: \$(shared_objects_zlib) \$(PHPZLIB_SHARED_DEPENDENCIES)
26237: 	$link_cmd
26238: 
26239: EOF
26240: 
26241:           ;;
26242:         *)
26243: 
26244:   install_modules="install-modules"
26245: 
26246:   case $host_alias in
26247:     *aix*)
26248:       suffix=so
26249:       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'
26250:       ;;
26251:     *netware*)
26252:       suffix=nlm
26253:       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)'
26254:       ;;
26255:     *)
26256:       suffix=la
26257:       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)'
26258:       ;;
26259:   esac
26260: 
26261:   if test "x" = "xyes"; then
26262:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/zlib.$suffix"
26263:   else
26264:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/zlib.$suffix"
26265:   fi
26266: 
26267:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_zlib"
26268: 
26269:   cat >>Makefile.objects<<EOF
26270: \$(phplibdir)/zlib.$suffix: $ext_builddir/zlib.$suffix
26271: 	\$(LIBTOOL) --mode=install cp $ext_builddir/zlib.$suffix \$(phplibdir)
26272: 
26273: $ext_builddir/zlib.$suffix: \$(shared_objects_zlib) \$(ZLIB_SHARED_DEPENDENCIES)
26274: 	$link_cmd
26275: 
26276: EOF
26277: 
26278:           ;;
26279:       esac
26280: 
26281: cat >>confdefs.h <<_ACEOF
26282: #define COMPILE_DL_ZLIB 1
26283: _ACEOF
26284: 
26285:     fi
26286:   fi
26287: 
26288:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
26289:     PHP_ZLIB_SHARED=no
26290:     case "$PHP_SAPI" in
26291:       cgi|embed)
26292: 
26293: 
26294:   case ext/zlib in
26295:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
26296:   /*) ac_srcdir=`echo "ext/zlib"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
26297:   *) ac_srcdir="$abs_srcdir/ext/zlib/"; ac_bdir="ext/zlib/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
26298:   esac
26299: 
26300: 
26301: 
26302:   b_c_pre=$php_c_pre
26303:   b_cxx_pre=$php_cxx_pre
26304:   b_c_meta=$php_c_meta
26305:   b_cxx_meta=$php_cxx_meta
26306:   b_c_post=$php_c_post
26307:   b_cxx_post=$php_cxx_post
26308:   b_lo=$php_lo
26309: 
26310: 
26311:   old_IFS=$IFS
26312:   for ac_src in zlib.c zlib_fopen_wrapper.c zlib_filter.c; do
26313: 
26314:       IFS=.
26315:       set $ac_src
26316:       ac_obj=$1
26317:       IFS=$old_IFS
26318: 
26319:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
26320: 
26321:       case $ac_src in
26322:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
26323:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
26324:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
26325:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
26326:       esac
26327: 
26328:     cat >>Makefile.objects<<EOF
26329: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
26330: 	$ac_comp
26331: EOF
26332:   done
26333: 
26334: 
26335:         EXT_STATIC="$EXT_STATIC zlib"
26336:         ;;
26337:       *)
26338: 
26339: 
26340:   case ext/zlib in
26341:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
26342:   /*) ac_srcdir=`echo "ext/zlib"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
26343:   *) ac_srcdir="$abs_srcdir/ext/zlib/"; ac_bdir="ext/zlib/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
26344:   esac
26345: 
26346: 
26347: 
26348:   b_c_pre=$php_c_pre
26349:   b_cxx_pre=$php_cxx_pre
26350:   b_c_meta=$php_c_meta
26351:   b_cxx_meta=$php_cxx_meta
26352:   b_c_post=$php_c_post
26353:   b_cxx_post=$php_cxx_post
26354:   b_lo=$php_lo
26355: 
26356: 
26357:   old_IFS=$IFS
26358:   for ac_src in zlib.c zlib_fopen_wrapper.c zlib_filter.c; do
26359: 
26360:       IFS=.
26361:       set $ac_src
26362:       ac_obj=$1
26363:       IFS=$old_IFS
26364: 
26365:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
26366: 
26367:       case $ac_src in
26368:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
26369:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
26370:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
26371:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
26372:       esac
26373: 
26374:     cat >>Makefile.objects<<EOF
26375: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
26376: 	$ac_comp
26377: EOF
26378:   done
26379: 
26380: 
26381:         ;;
26382:     esac
26383:     EXT_CLI_STATIC="$EXT_CLI_STATIC zlib"
26384:   fi
26385: 
26386: 
26387:     BUILD_DIR="$BUILD_DIR $ext_builddir"
26388: 
26389: 
26390: 
26391:   if test "$ext_builddir" = "."; then
26392:     PHP_PECL_EXTENSION=zlib
26393: 
26394:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
26395: 
26396:   fi
26397: 
26398: 
26399:   PHP_VAR_SUBST="$PHP_VAR_SUBST ZLIB_SHARED_LIBADD"
26400: 
26401: 
26402:   if test "$PHP_ZLIB" != "yes" -a "$PHP_ZLIB" != "no"; then
26403:     if test -f $PHP_ZLIB/include/zlib/zlib.h; then
26404:       ZLIB_DIR=$PHP_ZLIB
26405:       ZLIB_INCDIR=$ZLIB_DIR/include/zlib
26406:     elif test -f $PHP_ZLIB/include/zlib.h; then
26407:       ZLIB_DIR=$PHP_ZLIB
26408:       ZLIB_INCDIR=$ZLIB_DIR/include
26409:     fi
26410:   else
26411:     for i in /usr/local /usr $PHP_ZLIB_DIR; do
26412:       if test -f $i/include/zlib/zlib.h; then
26413:         ZLIB_DIR=$i
26414:         ZLIB_INCDIR=$i/include/zlib
26415:       elif test -f $i/include/zlib.h; then
26416:         ZLIB_DIR=$i
26417:         ZLIB_INCDIR=$i/include
26418:       fi
26419:     done
26420:   fi
26421: 
26422:   if test -z "$ZLIB_DIR"; then
26423:     as_fn_error $? "Cannot find libz" "$LINENO" 5
26424:   fi
26425: 
26426:   case $ZLIB_DIR in
26427:   /usr) ac_extra= ;;
26428:   *) ac_extra=-L$ZLIB_DIR/$PHP_LIBDIR ;;
26429:   esac
26430: 
26431:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib version >= 1.2.0.4" >&5
26432: $as_echo_n "checking for zlib version >= 1.2.0.4... " >&6; }
26433:   ZLIB_VERSION=`$EGREP "define ZLIB_VERSION" $ZLIB_DIR/include/zlib.h | $SED -e 's/[^0-9\.]//g'`
26434:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZLIB_VERSION" >&5
26435: $as_echo "$ZLIB_VERSION" >&6; }
26436:   if test `echo $ZLIB_VERSION | $SED -e 's/[^0-9]/ /g' | $AWK '{print $1*1000000 + $2*10000 + $3*100 + $4}'` -lt 1020004; then
26437:     as_fn_error $? "libz version greater or equal to 1.2.0.4 required" "$LINENO" 5
26438:   fi
26439: 
26440: 
26441:   save_old_LDFLAGS=$LDFLAGS
26442:   ac_stuff="
26443:     $ac_extra
26444:   "
26445: 
26446:   save_ext_shared=$ext_shared
26447:   ext_shared=yes
26448: 
26449:   for ac_i in $ac_stuff; do
26450:     case $ac_i in
26451:     -pthread)
26452:       if test "$ext_shared" = "yes"; then
26453:         LDFLAGS="$LDFLAGS -pthread"
26454:       else
26455: 
26456: 
26457:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
26458: 
26459:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
26460:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
26461:     eval "EXTRA_LDFLAGS$unique=set"
26462:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
26463:   fi
26464: 
26465:       fi
26466:     ;;
26467:     -l*)
26468:       ac_ii=`echo $ac_i|cut -c 3-`
26469: 
26470: 
26471:   case $ac_ii in
26472:   c|c_r|pthread*) ;;
26473:   *)
26474:     if test "$ext_shared" = "yes"; then
26475:         LDFLAGS="$LDFLAGS -l$ac_ii"
26476:     else
26477: 
26478: 
26479:   case $ac_ii in
26480:   c|c_r|pthread*) ;;
26481:   *)
26482:       LIBS="$LIBS -l$ac_ii"
26483:    ;;
26484:   esac
26485: 
26486: 
26487:     fi
26488:    ;;
26489:   esac
26490: 
26491: 
26492:     ;;
26493:     -L*)
26494:       ac_ii=`echo $ac_i|cut -c 3-`
26495: 
26496:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
26497: 
26498:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
26499:     ai_p=$ac_ii
26500:   else
26501: 
26502:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
26503: 
26504:     ep_realdir=`(cd "$ep_dir" && pwd)`
26505:     ai_p="$ep_realdir"/`basename "$ac_ii"`
26506:   fi
26507: 
26508: 
26509:       if test "$ext_shared" = "yes"; then
26510:         LDFLAGS="-L$ai_p $LDFLAGS"
26511:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
26512:       else
26513: 
26514: 
26515: 
26516:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
26517: 
26518:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
26519:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
26520:     eval "LIBPATH$unique=set"
26521: 
26522:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
26523:     LDFLAGS="$LDFLAGS -L$ai_p"
26524:     PHP_RPATHS="$PHP_RPATHS $ai_p"
26525: 
26526:   fi
26527: 
26528: 
26529:       fi
26530: 
26531:   fi
26532: 
26533:     ;;
26534:     esac
26535:   done
26536: 
26537:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzgets in -lz" >&5
26538: $as_echo_n "checking for gzgets in -lz... " >&6; }
26539: if ${ac_cv_lib_z_gzgets+:} false; then :
26540:   $as_echo_n "(cached) " >&6
26541: else
26542:   ac_check_lib_save_LIBS=$LIBS
26543: LIBS="-lz  $LIBS"
26544: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26545: /* end confdefs.h.  */
26546: 
26547: /* Override any GCC internal prototype to avoid an error.
26548:    Use char because int might match the return type of a GCC
26549:    builtin and then its argument prototype would still apply.  */
26550: #ifdef __cplusplus
26551: extern "C"
26552: #endif
26553: char gzgets ();
26554: int
26555: main ()
26556: {
26557: return gzgets ();
26558:   ;
26559:   return 0;
26560: }
26561: _ACEOF
26562: if ac_fn_c_try_link "$LINENO"; then :
26563:   ac_cv_lib_z_gzgets=yes
26564: else
26565:   ac_cv_lib_z_gzgets=no
26566: fi
26567: rm -f core conftest.err conftest.$ac_objext \
26568:     conftest$ac_exeext conftest.$ac_ext
26569: LIBS=$ac_check_lib_save_LIBS
26570: fi
26571: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzgets" >&5
26572: $as_echo "$ac_cv_lib_z_gzgets" >&6; }
26573: if test "x$ac_cv_lib_z_gzgets" = xyes; then :
26574: 
26575:     LDFLAGS=$save_old_LDFLAGS
26576:     ext_shared=$save_ext_shared
26577: 
26578: 
26579: $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
26580: 
26581: 
26582: 
26583: else
26584: 
26585:     LDFLAGS=$save_old_LDFLAGS
26586:     ext_shared=$save_ext_shared
26587:     unset ac_cv_lib_z_gzgets
26588: 
26589:     as_fn_error $? "ZLIB extension requires gzgets in zlib" "$LINENO" 5
26590: 
26591: 
26592: fi
26593: 
26594: 
26595: 
26596:   if test "$ZLIB_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$ZLIB_DIR/$PHP_LIBDIR" != "/usr/lib"; then
26597: 
26598:   if test -z "$ZLIB_DIR/$PHP_LIBDIR" || echo "$ZLIB_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
26599:     ai_p=$ZLIB_DIR/$PHP_LIBDIR
26600:   else
26601: 
26602:     ep_dir=`echo $ZLIB_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
26603: 
26604:     ep_realdir=`(cd "$ep_dir" && pwd)`
26605:     ai_p="$ep_realdir"/`basename "$ZLIB_DIR/$PHP_LIBDIR"`
26606:   fi
26607: 
26608: 
26609:       if test "$ext_shared" = "yes"; then
26610:         ZLIB_SHARED_LIBADD="-L$ai_p $ZLIB_SHARED_LIBADD"
26611:         test -n "$ld_runpath_switch" && ZLIB_SHARED_LIBADD="$ld_runpath_switch$ai_p $ZLIB_SHARED_LIBADD"
26612:       else
26613: 
26614: 
26615: 
26616:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
26617: 
26618:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
26619:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
26620:     eval "LIBPATH$unique=set"
26621: 
26622:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
26623:     LDFLAGS="$LDFLAGS -L$ai_p"
26624:     PHP_RPATHS="$PHP_RPATHS $ai_p"
26625: 
26626:   fi
26627: 
26628: 
26629:       fi
26630: 
26631:   fi
26632: 
26633: 
26634:   PHP_ZLIB_DIR=$ZLIB_DIR
26635: 
26636: 
26637:   case z in
26638:   c|c_r|pthread*) ;;
26639:   *)
26640:     if test "$ext_shared" = "yes"; then
26641:         ZLIB_SHARED_LIBADD="-lz $ZLIB_SHARED_LIBADD"
26642:     else
26643: 
26644: 
26645:   case z in
26646:   c|c_r|pthread*) ;;
26647:   *)
26648:       LIBS="-lz $LIBS"
26649:    ;;
26650:   esac
26651: 
26652: 
26653:     fi
26654:    ;;
26655:   esac
26656: 
26657: 
26658: 
26659:   if test "$ZLIB_INCDIR" != "/usr/include"; then
26660: 
26661:   if test -z "$ZLIB_INCDIR" || echo "$ZLIB_INCDIR" | grep '^/' >/dev/null ; then
26662:     ai_p=$ZLIB_INCDIR
26663:   else
26664: 
26665:     ep_dir=`echo $ZLIB_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`
26666: 
26667:     ep_realdir=`(cd "$ep_dir" && pwd)`
26668:     ai_p="$ep_realdir"/`basename "$ZLIB_INCDIR"`
26669:   fi
26670: 
26671: 
26672: 
26673:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
26674: 
26675:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
26676:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
26677:     eval "INCLUDEPATH$unique=set"
26678: 
26679:       if test ""; then
26680:         INCLUDES="-I$ai_p $INCLUDES"
26681:       else
26682:         INCLUDES="$INCLUDES -I$ai_p"
26683:       fi
26684: 
26685:   fi
26686: 
26687:   fi
26688: 
26689: 
26690: fi
26691: 
26692: 
26693: 
26694: php_enable_bcmath=no
26695: 
26696: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable bc style precision math functions" >&5
26697: $as_echo_n "checking whether to enable bc style precision math functions... " >&6; }
26698: # Check whether --enable-bcmath was given.
26699: if test "${enable_bcmath+set}" = set; then :
26700:   enableval=$enable_bcmath; PHP_BCMATH=$enableval
26701: else
26702: 
26703:   PHP_BCMATH=no
26704:   test "$PHP_ENABLE_ALL" && PHP_BCMATH=$PHP_ENABLE_ALL
26705: 
26706: fi
26707: 
26708: 
26709: 
26710: ext_output="yes, shared"
26711: ext_shared=yes
26712: case $PHP_BCMATH in
26713: shared,*)
26714:   PHP_BCMATH=`echo "$PHP_BCMATH"|$SED 's/^shared,//'`
26715:   ;;
26716: shared)
26717:   PHP_BCMATH=yes
26718:   ;;
26719: no)
26720:   ext_output=no
26721:   ext_shared=no
26722:   ;;
26723: *)
26724:   ext_output=yes
26725:   ext_shared=no
26726:   ;;
26727: esac
26728: 
26729: 
26730: 
26731: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
26732: $as_echo "$ext_output" >&6; }
26733: 
26734: 
26735: 
26736: 
26737: if test "$PHP_BCMATH" != "no"; then
26738: 
26739:   ext_builddir=ext/bcmath
26740:   ext_srcdir=$abs_srcdir/ext/bcmath
26741: 
26742:   ac_extra=`echo "-I@ext_srcdir@/libbcmath/src"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
26743: 
26744:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
26745:     PHP_BCMATH_SHARED=no
26746: 
26747: 
26748:   case ext/bcmath in
26749:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
26750:   /*) ac_srcdir=`echo "ext/bcmath"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
26751:   *) ac_srcdir="$abs_srcdir/ext/bcmath/"; ac_bdir="ext/bcmath/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
26752:   esac
26753: 
26754: 
26755: 
26756:   b_c_pre=$php_c_pre
26757:   b_cxx_pre=$php_cxx_pre
26758:   b_c_meta=$php_c_meta
26759:   b_cxx_meta=$php_cxx_meta
26760:   b_c_post=$php_c_post
26761:   b_cxx_post=$php_cxx_post
26762:   b_lo=$php_lo
26763: 
26764: 
26765:   old_IFS=$IFS
26766:   for ac_src in bcmath.c \
26767: 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 \
26768: libbcmath/src/compare.c libbcmath/src/divmod.c libbcmath/src/int2num.c libbcmath/src/num2long.c libbcmath/src/output.c libbcmath/src/recmul.c \
26769: 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 \
26770: libbcmath/src/rmzero.c libbcmath/src/str2num.c; do
26771: 
26772:       IFS=.
26773:       set $ac_src
26774:       ac_obj=$1
26775:       IFS=$old_IFS
26776: 
26777:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
26778: 
26779:       case $ac_src in
26780:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
26781:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
26782:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
26783:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
26784:       esac
26785: 
26786:     cat >>Makefile.objects<<EOF
26787: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
26788: 	$ac_comp
26789: EOF
26790:   done
26791: 
26792: 
26793:     EXT_STATIC="$EXT_STATIC bcmath"
26794:     if test "$ext_shared" != "nocli"; then
26795:       EXT_CLI_STATIC="$EXT_CLI_STATIC bcmath"
26796:     fi
26797:   else
26798:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
26799:       PHP_BCMATH_SHARED=yes
26800: 
26801:   case ext/bcmath in
26802:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
26803:   /*) ac_srcdir=`echo "ext/bcmath"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
26804:   *) ac_srcdir="$abs_srcdir/ext/bcmath/"; ac_bdir="ext/bcmath/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
26805:   esac
26806: 
26807: 
26808: 
26809:   b_c_pre=$shared_c_pre
26810:   b_cxx_pre=$shared_cxx_pre
26811:   b_c_meta=$shared_c_meta
26812:   b_cxx_meta=$shared_cxx_meta
26813:   b_c_post=$shared_c_post
26814:   b_cxx_post=$shared_cxx_post
26815:   b_lo=$shared_lo
26816: 
26817: 
26818:   old_IFS=$IFS
26819:   for ac_src in bcmath.c \
26820: 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 \
26821: libbcmath/src/compare.c libbcmath/src/divmod.c libbcmath/src/int2num.c libbcmath/src/num2long.c libbcmath/src/output.c libbcmath/src/recmul.c \
26822: 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 \
26823: libbcmath/src/rmzero.c libbcmath/src/str2num.c; do
26824: 
26825:       IFS=.
26826:       set $ac_src
26827:       ac_obj=$1
26828:       IFS=$old_IFS
26829: 
26830:       shared_objects_bcmath="$shared_objects_bcmath $ac_bdir$ac_obj.lo"
26831: 
26832:       case $ac_src in
26833:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
26834:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
26835:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
26836:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
26837:       esac
26838: 
26839:     cat >>Makefile.objects<<EOF
26840: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
26841: 	$ac_comp
26842: EOF
26843:   done
26844: 
26845:       case $host_alias in
26846:         *netware*)
26847: 
26848:   install_modules="install-modules"
26849: 
26850:   case $host_alias in
26851:     *aix*)
26852:       suffix=so
26853:       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'
26854:       ;;
26855:     *netware*)
26856:       suffix=nlm
26857:       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)'
26858:       ;;
26859:     *)
26860:       suffix=la
26861:       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)'
26862:       ;;
26863:   esac
26864: 
26865:   if test "x" = "xyes"; then
26866:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpbcmath.$suffix"
26867:   else
26868:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpbcmath.$suffix"
26869:   fi
26870: 
26871:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_bcmath"
26872: 
26873:   cat >>Makefile.objects<<EOF
26874: \$(phplibdir)/phpbcmath.$suffix: $ext_builddir/phpbcmath.$suffix
26875: 	\$(LIBTOOL) --mode=install cp $ext_builddir/phpbcmath.$suffix \$(phplibdir)
26876: 
26877: $ext_builddir/phpbcmath.$suffix: \$(shared_objects_bcmath) \$(PHPBCMATH_SHARED_DEPENDENCIES)
26878: 	$link_cmd
26879: 
26880: EOF
26881: 
26882:           ;;
26883:         *)
26884: 
26885:   install_modules="install-modules"
26886: 
26887:   case $host_alias in
26888:     *aix*)
26889:       suffix=so
26890:       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'
26891:       ;;
26892:     *netware*)
26893:       suffix=nlm
26894:       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)'
26895:       ;;
26896:     *)
26897:       suffix=la
26898:       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)'
26899:       ;;
26900:   esac
26901: 
26902:   if test "x" = "xyes"; then
26903:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/bcmath.$suffix"
26904:   else
26905:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/bcmath.$suffix"
26906:   fi
26907: 
26908:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_bcmath"
26909: 
26910:   cat >>Makefile.objects<<EOF
26911: \$(phplibdir)/bcmath.$suffix: $ext_builddir/bcmath.$suffix
26912: 	\$(LIBTOOL) --mode=install cp $ext_builddir/bcmath.$suffix \$(phplibdir)
26913: 
26914: $ext_builddir/bcmath.$suffix: \$(shared_objects_bcmath) \$(BCMATH_SHARED_DEPENDENCIES)
26915: 	$link_cmd
26916: 
26917: EOF
26918: 
26919:           ;;
26920:       esac
26921: 
26922: cat >>confdefs.h <<_ACEOF
26923: #define COMPILE_DL_BCMATH 1
26924: _ACEOF
26925: 
26926:     fi
26927:   fi
26928: 
26929:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
26930:     PHP_BCMATH_SHARED=no
26931:     case "$PHP_SAPI" in
26932:       cgi|embed)
26933: 
26934: 
26935:   case ext/bcmath in
26936:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
26937:   /*) ac_srcdir=`echo "ext/bcmath"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
26938:   *) ac_srcdir="$abs_srcdir/ext/bcmath/"; ac_bdir="ext/bcmath/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
26939:   esac
26940: 
26941: 
26942: 
26943:   b_c_pre=$php_c_pre
26944:   b_cxx_pre=$php_cxx_pre
26945:   b_c_meta=$php_c_meta
26946:   b_cxx_meta=$php_cxx_meta
26947:   b_c_post=$php_c_post
26948:   b_cxx_post=$php_cxx_post
26949:   b_lo=$php_lo
26950: 
26951: 
26952:   old_IFS=$IFS
26953:   for ac_src in bcmath.c \
26954: 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 \
26955: libbcmath/src/compare.c libbcmath/src/divmod.c libbcmath/src/int2num.c libbcmath/src/num2long.c libbcmath/src/output.c libbcmath/src/recmul.c \
26956: 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 \
26957: libbcmath/src/rmzero.c libbcmath/src/str2num.c; do
26958: 
26959:       IFS=.
26960:       set $ac_src
26961:       ac_obj=$1
26962:       IFS=$old_IFS
26963: 
26964:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
26965: 
26966:       case $ac_src in
26967:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
26968:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
26969:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
26970:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
26971:       esac
26972: 
26973:     cat >>Makefile.objects<<EOF
26974: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
26975: 	$ac_comp
26976: EOF
26977:   done
26978: 
26979: 
26980:         EXT_STATIC="$EXT_STATIC bcmath"
26981:         ;;
26982:       *)
26983: 
26984: 
26985:   case ext/bcmath in
26986:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
26987:   /*) ac_srcdir=`echo "ext/bcmath"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
26988:   *) ac_srcdir="$abs_srcdir/ext/bcmath/"; ac_bdir="ext/bcmath/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
26989:   esac
26990: 
26991: 
26992: 
26993:   b_c_pre=$php_c_pre
26994:   b_cxx_pre=$php_cxx_pre
26995:   b_c_meta=$php_c_meta
26996:   b_cxx_meta=$php_cxx_meta
26997:   b_c_post=$php_c_post
26998:   b_cxx_post=$php_cxx_post
26999:   b_lo=$php_lo
27000: 
27001: 
27002:   old_IFS=$IFS
27003:   for ac_src in bcmath.c \
27004: 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 \
27005: libbcmath/src/compare.c libbcmath/src/divmod.c libbcmath/src/int2num.c libbcmath/src/num2long.c libbcmath/src/output.c libbcmath/src/recmul.c \
27006: 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 \
27007: libbcmath/src/rmzero.c libbcmath/src/str2num.c; do
27008: 
27009:       IFS=.
27010:       set $ac_src
27011:       ac_obj=$1
27012:       IFS=$old_IFS
27013: 
27014:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
27015: 
27016:       case $ac_src in
27017:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
27018:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
27019:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
27020:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
27021:       esac
27022: 
27023:     cat >>Makefile.objects<<EOF
27024: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
27025: 	$ac_comp
27026: EOF
27027:   done
27028: 
27029: 
27030:         ;;
27031:     esac
27032:     EXT_CLI_STATIC="$EXT_CLI_STATIC bcmath"
27033:   fi
27034: 
27035: 
27036:     BUILD_DIR="$BUILD_DIR $ext_builddir"
27037: 
27038: 
27039: 
27040:   if test "$ext_builddir" = "."; then
27041:     PHP_PECL_EXTENSION=bcmath
27042: 
27043:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
27044: 
27045:   fi
27046: 
27047: 
27048: 
27049:     BUILD_DIR="$BUILD_DIR $ext_builddir/libbcmath/src"
27050: 
27051: 
27052: 
27053: $as_echo "#define HAVE_BCMATH 1" >>confdefs.h
27054: 
27055: fi
27056: 
27057: 
27058: 
27059: php_with_bz2=no
27060: 
27061: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZip2 support" >&5
27062: $as_echo_n "checking for BZip2 support... " >&6; }
27063: 
27064: # Check whether --with-bz2 was given.
27065: if test "${with_bz2+set}" = set; then :
27066:   withval=$with_bz2; PHP_BZ2=$withval
27067: else
27068: 
27069:   PHP_BZ2=no
27070:   test "$PHP_ENABLE_ALL" && PHP_BZ2=$PHP_ENABLE_ALL
27071: 
27072: fi
27073: 
27074: 
27075: 
27076: ext_output="yes, shared"
27077: ext_shared=yes
27078: case $PHP_BZ2 in
27079: shared,*)
27080:   PHP_BZ2=`echo "$PHP_BZ2"|$SED 's/^shared,//'`
27081:   ;;
27082: shared)
27083:   PHP_BZ2=yes
27084:   ;;
27085: no)
27086:   ext_output=no
27087:   ext_shared=no
27088:   ;;
27089: *)
27090:   ext_output=yes
27091:   ext_shared=no
27092:   ;;
27093: esac
27094: 
27095: 
27096: 
27097: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
27098: $as_echo "$ext_output" >&6; }
27099: 
27100: 
27101: 
27102: 
27103: if test "$PHP_BZ2" != "no"; then
27104:   if test -r $PHP_BZ2/include/bzlib.h; then
27105:     BZIP_DIR=$PHP_BZ2
27106:   else
27107:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZip2 in default path" >&5
27108: $as_echo_n "checking for BZip2 in default path... " >&6; }
27109:     for i in /usr/local /usr; do
27110:       if test -r $i/include/bzlib.h; then
27111:         BZIP_DIR=$i
27112:         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $i" >&5
27113: $as_echo "found in $i" >&6; }
27114:         break
27115:       fi
27116:     done
27117:   fi
27118: 
27119:   if test -z "$BZIP_DIR"; then
27120:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
27121: $as_echo "not found" >&6; }
27122:     as_fn_error $? "Please reinstall the BZip2 distribution" "$LINENO" 5
27123:   fi
27124: 
27125: 
27126:   save_old_LDFLAGS=$LDFLAGS
27127:   ac_stuff="
27128:     -L$BZIP_DIR/$PHP_LIBDIR
27129:   "
27130: 
27131:   save_ext_shared=$ext_shared
27132:   ext_shared=yes
27133: 
27134:   for ac_i in $ac_stuff; do
27135:     case $ac_i in
27136:     -pthread)
27137:       if test "$ext_shared" = "yes"; then
27138:         LDFLAGS="$LDFLAGS -pthread"
27139:       else
27140: 
27141: 
27142:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
27143: 
27144:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
27145:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
27146:     eval "EXTRA_LDFLAGS$unique=set"
27147:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
27148:   fi
27149: 
27150:       fi
27151:     ;;
27152:     -l*)
27153:       ac_ii=`echo $ac_i|cut -c 3-`
27154: 
27155: 
27156:   case $ac_ii in
27157:   c|c_r|pthread*) ;;
27158:   *)
27159:     if test "$ext_shared" = "yes"; then
27160:         LDFLAGS="$LDFLAGS -l$ac_ii"
27161:     else
27162: 
27163: 
27164:   case $ac_ii in
27165:   c|c_r|pthread*) ;;
27166:   *)
27167:       LIBS="$LIBS -l$ac_ii"
27168:    ;;
27169:   esac
27170: 
27171: 
27172:     fi
27173:    ;;
27174:   esac
27175: 
27176: 
27177:     ;;
27178:     -L*)
27179:       ac_ii=`echo $ac_i|cut -c 3-`
27180: 
27181:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
27182: 
27183:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
27184:     ai_p=$ac_ii
27185:   else
27186: 
27187:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
27188: 
27189:     ep_realdir=`(cd "$ep_dir" && pwd)`
27190:     ai_p="$ep_realdir"/`basename "$ac_ii"`
27191:   fi
27192: 
27193: 
27194:       if test "$ext_shared" = "yes"; then
27195:         LDFLAGS="-L$ai_p $LDFLAGS"
27196:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
27197:       else
27198: 
27199: 
27200: 
27201:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
27202: 
27203:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
27204:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
27205:     eval "LIBPATH$unique=set"
27206: 
27207:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
27208:     LDFLAGS="$LDFLAGS -L$ai_p"
27209:     PHP_RPATHS="$PHP_RPATHS $ai_p"
27210: 
27211:   fi
27212: 
27213: 
27214:       fi
27215: 
27216:   fi
27217: 
27218:     ;;
27219:     esac
27220:   done
27221: 
27222:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzerror in -lbz2" >&5
27223: $as_echo_n "checking for BZ2_bzerror in -lbz2... " >&6; }
27224: if ${ac_cv_lib_bz2_BZ2_bzerror+:} false; then :
27225:   $as_echo_n "(cached) " >&6
27226: else
27227:   ac_check_lib_save_LIBS=$LIBS
27228: LIBS="-lbz2  $LIBS"
27229: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27230: /* end confdefs.h.  */
27231: 
27232: /* Override any GCC internal prototype to avoid an error.
27233:    Use char because int might match the return type of a GCC
27234:    builtin and then its argument prototype would still apply.  */
27235: #ifdef __cplusplus
27236: extern "C"
27237: #endif
27238: char BZ2_bzerror ();
27239: int
27240: main ()
27241: {
27242: return BZ2_bzerror ();
27243:   ;
27244:   return 0;
27245: }
27246: _ACEOF
27247: if ac_fn_c_try_link "$LINENO"; then :
27248:   ac_cv_lib_bz2_BZ2_bzerror=yes
27249: else
27250:   ac_cv_lib_bz2_BZ2_bzerror=no
27251: fi
27252: rm -f core conftest.err conftest.$ac_objext \
27253:     conftest$ac_exeext conftest.$ac_ext
27254: LIBS=$ac_check_lib_save_LIBS
27255: fi
27256: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzerror" >&5
27257: $as_echo "$ac_cv_lib_bz2_BZ2_bzerror" >&6; }
27258: if test "x$ac_cv_lib_bz2_BZ2_bzerror" = xyes; then :
27259: 
27260:     LDFLAGS=$save_old_LDFLAGS
27261:     ext_shared=$save_ext_shared
27262: 
27263: 
27264:   if test "$BZIP_DIR/include" != "/usr/include"; then
27265: 
27266:   if test -z "$BZIP_DIR/include" || echo "$BZIP_DIR/include" | grep '^/' >/dev/null ; then
27267:     ai_p=$BZIP_DIR/include
27268:   else
27269: 
27270:     ep_dir=`echo $BZIP_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`
27271: 
27272:     ep_realdir=`(cd "$ep_dir" && pwd)`
27273:     ai_p="$ep_realdir"/`basename "$BZIP_DIR/include"`
27274:   fi
27275: 
27276: 
27277: 
27278:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
27279: 
27280:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
27281:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
27282:     eval "INCLUDEPATH$unique=set"
27283: 
27284:       if test ""; then
27285:         INCLUDES="-I$ai_p $INCLUDES"
27286:       else
27287:         INCLUDES="$INCLUDES -I$ai_p"
27288:       fi
27289: 
27290:   fi
27291: 
27292:   fi
27293: 
27294: 
27295: 
27296:   if test "$ext_shared" = "yes"; then
27297:     BZ2_SHARED_LIBADD="-lbz2 $BZ2_SHARED_LIBADD"
27298:     if test -n "$BZIP_DIR/$PHP_LIBDIR"; then
27299: 
27300:   if test "$BZIP_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$BZIP_DIR/$PHP_LIBDIR" != "/usr/lib"; then
27301: 
27302:   if test -z "$BZIP_DIR/$PHP_LIBDIR" || echo "$BZIP_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
27303:     ai_p=$BZIP_DIR/$PHP_LIBDIR
27304:   else
27305: 
27306:     ep_dir=`echo $BZIP_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
27307: 
27308:     ep_realdir=`(cd "$ep_dir" && pwd)`
27309:     ai_p="$ep_realdir"/`basename "$BZIP_DIR/$PHP_LIBDIR"`
27310:   fi
27311: 
27312: 
27313:       if test "$ext_shared" = "yes"; then
27314:         BZ2_SHARED_LIBADD="-L$ai_p $BZ2_SHARED_LIBADD"
27315:         test -n "$ld_runpath_switch" && BZ2_SHARED_LIBADD="$ld_runpath_switch$ai_p $BZ2_SHARED_LIBADD"
27316:       else
27317: 
27318: 
27319: 
27320:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
27321: 
27322:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
27323:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
27324:     eval "LIBPATH$unique=set"
27325: 
27326:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
27327:     LDFLAGS="$LDFLAGS -L$ai_p"
27328:     PHP_RPATHS="$PHP_RPATHS $ai_p"
27329: 
27330:   fi
27331: 
27332: 
27333:       fi
27334: 
27335:   fi
27336: 
27337:     fi
27338:   else
27339: 
27340: 
27341:   if test -n "$BZIP_DIR/$PHP_LIBDIR"; then
27342: 
27343:   if test "$BZIP_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$BZIP_DIR/$PHP_LIBDIR" != "/usr/lib"; then
27344: 
27345:   if test -z "$BZIP_DIR/$PHP_LIBDIR" || echo "$BZIP_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
27346:     ai_p=$BZIP_DIR/$PHP_LIBDIR
27347:   else
27348: 
27349:     ep_dir=`echo $BZIP_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
27350: 
27351:     ep_realdir=`(cd "$ep_dir" && pwd)`
27352:     ai_p="$ep_realdir"/`basename "$BZIP_DIR/$PHP_LIBDIR"`
27353:   fi
27354: 
27355: 
27356: 
27357: 
27358: 
27359:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
27360: 
27361:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
27362:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
27363:     eval "LIBPATH$unique=set"
27364: 
27365:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
27366:     LDFLAGS="$LDFLAGS -L$ai_p"
27367:     PHP_RPATHS="$PHP_RPATHS $ai_p"
27368: 
27369:   fi
27370: 
27371: 
27372: 
27373:   fi
27374: 
27375:   fi
27376: 
27377: 
27378:   case bz2 in
27379:   c|c_r|pthread*) ;;
27380:   *)
27381:       LIBS="-lbz2 $LIBS"
27382:    ;;
27383:   esac
27384: 
27385: 
27386: 
27387: 
27388:   fi
27389: 
27390: 
27391: 
27392: $as_echo "#define HAVE_BZ2 1" >>confdefs.h
27393: 
27394: 
27395: 
27396: else
27397: 
27398:     LDFLAGS=$save_old_LDFLAGS
27399:     ext_shared=$save_ext_shared
27400:     unset ac_cv_lib_bz2_BZ2_bzerror
27401: 
27402:     as_fn_error $? "bz2 module requires libbz2 >= 1.0.0" "$LINENO" 5
27403: 
27404: 
27405: fi
27406: 
27407: 
27408: 
27409:   ext_builddir=ext/bz2
27410:   ext_srcdir=$abs_srcdir/ext/bz2
27411: 
27412:   ac_extra=
27413: 
27414:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
27415:     PHP_BZ2_SHARED=no
27416: 
27417: 
27418:   case ext/bz2 in
27419:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
27420:   /*) ac_srcdir=`echo "ext/bz2"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
27421:   *) ac_srcdir="$abs_srcdir/ext/bz2/"; ac_bdir="ext/bz2/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
27422:   esac
27423: 
27424: 
27425: 
27426:   b_c_pre=$php_c_pre
27427:   b_cxx_pre=$php_cxx_pre
27428:   b_c_meta=$php_c_meta
27429:   b_cxx_meta=$php_cxx_meta
27430:   b_c_post=$php_c_post
27431:   b_cxx_post=$php_cxx_post
27432:   b_lo=$php_lo
27433: 
27434: 
27435:   old_IFS=$IFS
27436:   for ac_src in bz2.c bz2_filter.c; do
27437: 
27438:       IFS=.
27439:       set $ac_src
27440:       ac_obj=$1
27441:       IFS=$old_IFS
27442: 
27443:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
27444: 
27445:       case $ac_src in
27446:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
27447:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
27448:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
27449:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
27450:       esac
27451: 
27452:     cat >>Makefile.objects<<EOF
27453: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
27454: 	$ac_comp
27455: EOF
27456:   done
27457: 
27458: 
27459:     EXT_STATIC="$EXT_STATIC bz2"
27460:     if test "$ext_shared" != "nocli"; then
27461:       EXT_CLI_STATIC="$EXT_CLI_STATIC bz2"
27462:     fi
27463:   else
27464:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
27465:       PHP_BZ2_SHARED=yes
27466: 
27467:   case ext/bz2 in
27468:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
27469:   /*) ac_srcdir=`echo "ext/bz2"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
27470:   *) ac_srcdir="$abs_srcdir/ext/bz2/"; ac_bdir="ext/bz2/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
27471:   esac
27472: 
27473: 
27474: 
27475:   b_c_pre=$shared_c_pre
27476:   b_cxx_pre=$shared_cxx_pre
27477:   b_c_meta=$shared_c_meta
27478:   b_cxx_meta=$shared_cxx_meta
27479:   b_c_post=$shared_c_post
27480:   b_cxx_post=$shared_cxx_post
27481:   b_lo=$shared_lo
27482: 
27483: 
27484:   old_IFS=$IFS
27485:   for ac_src in bz2.c bz2_filter.c; do
27486: 
27487:       IFS=.
27488:       set $ac_src
27489:       ac_obj=$1
27490:       IFS=$old_IFS
27491: 
27492:       shared_objects_bz2="$shared_objects_bz2 $ac_bdir$ac_obj.lo"
27493: 
27494:       case $ac_src in
27495:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
27496:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
27497:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
27498:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
27499:       esac
27500: 
27501:     cat >>Makefile.objects<<EOF
27502: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
27503: 	$ac_comp
27504: EOF
27505:   done
27506: 
27507:       case $host_alias in
27508:         *netware*)
27509: 
27510:   install_modules="install-modules"
27511: 
27512:   case $host_alias in
27513:     *aix*)
27514:       suffix=so
27515:       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'
27516:       ;;
27517:     *netware*)
27518:       suffix=nlm
27519:       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)'
27520:       ;;
27521:     *)
27522:       suffix=la
27523:       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)'
27524:       ;;
27525:   esac
27526: 
27527:   if test "x" = "xyes"; then
27528:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpbz2.$suffix"
27529:   else
27530:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpbz2.$suffix"
27531:   fi
27532: 
27533:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_bz2"
27534: 
27535:   cat >>Makefile.objects<<EOF
27536: \$(phplibdir)/phpbz2.$suffix: $ext_builddir/phpbz2.$suffix
27537: 	\$(LIBTOOL) --mode=install cp $ext_builddir/phpbz2.$suffix \$(phplibdir)
27538: 
27539: $ext_builddir/phpbz2.$suffix: \$(shared_objects_bz2) \$(PHPBZ2_SHARED_DEPENDENCIES)
27540: 	$link_cmd
27541: 
27542: EOF
27543: 
27544:           ;;
27545:         *)
27546: 
27547:   install_modules="install-modules"
27548: 
27549:   case $host_alias in
27550:     *aix*)
27551:       suffix=so
27552:       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'
27553:       ;;
27554:     *netware*)
27555:       suffix=nlm
27556:       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)'
27557:       ;;
27558:     *)
27559:       suffix=la
27560:       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)'
27561:       ;;
27562:   esac
27563: 
27564:   if test "x" = "xyes"; then
27565:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/bz2.$suffix"
27566:   else
27567:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/bz2.$suffix"
27568:   fi
27569: 
27570:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_bz2"
27571: 
27572:   cat >>Makefile.objects<<EOF
27573: \$(phplibdir)/bz2.$suffix: $ext_builddir/bz2.$suffix
27574: 	\$(LIBTOOL) --mode=install cp $ext_builddir/bz2.$suffix \$(phplibdir)
27575: 
27576: $ext_builddir/bz2.$suffix: \$(shared_objects_bz2) \$(BZ2_SHARED_DEPENDENCIES)
27577: 	$link_cmd
27578: 
27579: EOF
27580: 
27581:           ;;
27582:       esac
27583: 
27584: cat >>confdefs.h <<_ACEOF
27585: #define COMPILE_DL_BZ2 1
27586: _ACEOF
27587: 
27588:     fi
27589:   fi
27590: 
27591:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
27592:     PHP_BZ2_SHARED=no
27593:     case "$PHP_SAPI" in
27594:       cgi|embed)
27595: 
27596: 
27597:   case ext/bz2 in
27598:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
27599:   /*) ac_srcdir=`echo "ext/bz2"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
27600:   *) ac_srcdir="$abs_srcdir/ext/bz2/"; ac_bdir="ext/bz2/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
27601:   esac
27602: 
27603: 
27604: 
27605:   b_c_pre=$php_c_pre
27606:   b_cxx_pre=$php_cxx_pre
27607:   b_c_meta=$php_c_meta
27608:   b_cxx_meta=$php_cxx_meta
27609:   b_c_post=$php_c_post
27610:   b_cxx_post=$php_cxx_post
27611:   b_lo=$php_lo
27612: 
27613: 
27614:   old_IFS=$IFS
27615:   for ac_src in bz2.c bz2_filter.c; do
27616: 
27617:       IFS=.
27618:       set $ac_src
27619:       ac_obj=$1
27620:       IFS=$old_IFS
27621: 
27622:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
27623: 
27624:       case $ac_src in
27625:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
27626:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
27627:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
27628:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
27629:       esac
27630: 
27631:     cat >>Makefile.objects<<EOF
27632: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
27633: 	$ac_comp
27634: EOF
27635:   done
27636: 
27637: 
27638:         EXT_STATIC="$EXT_STATIC bz2"
27639:         ;;
27640:       *)
27641: 
27642: 
27643:   case ext/bz2 in
27644:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
27645:   /*) ac_srcdir=`echo "ext/bz2"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
27646:   *) ac_srcdir="$abs_srcdir/ext/bz2/"; ac_bdir="ext/bz2/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
27647:   esac
27648: 
27649: 
27650: 
27651:   b_c_pre=$php_c_pre
27652:   b_cxx_pre=$php_cxx_pre
27653:   b_c_meta=$php_c_meta
27654:   b_cxx_meta=$php_cxx_meta
27655:   b_c_post=$php_c_post
27656:   b_cxx_post=$php_cxx_post
27657:   b_lo=$php_lo
27658: 
27659: 
27660:   old_IFS=$IFS
27661:   for ac_src in bz2.c bz2_filter.c; do
27662: 
27663:       IFS=.
27664:       set $ac_src
27665:       ac_obj=$1
27666:       IFS=$old_IFS
27667: 
27668:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
27669: 
27670:       case $ac_src in
27671:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
27672:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
27673:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
27674:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
27675:       esac
27676: 
27677:     cat >>Makefile.objects<<EOF
27678: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
27679: 	$ac_comp
27680: EOF
27681:   done
27682: 
27683: 
27684:         ;;
27685:     esac
27686:     EXT_CLI_STATIC="$EXT_CLI_STATIC bz2"
27687:   fi
27688: 
27689: 
27690:     BUILD_DIR="$BUILD_DIR $ext_builddir"
27691: 
27692: 
27693: 
27694:   if test "$ext_builddir" = "."; then
27695:     PHP_PECL_EXTENSION=bz2
27696: 
27697:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
27698: 
27699:   fi
27700: 
27701: 
27702:   PHP_VAR_SUBST="$PHP_VAR_SUBST BZ2_SHARED_LIBADD"
27703: 
27704: fi
27705: 
27706: 
27707: 
27708: php_enable_calendar=no
27709: 
27710: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable calendar conversion support" >&5
27711: $as_echo_n "checking whether to enable calendar conversion support... " >&6; }
27712: # Check whether --enable-calendar was given.
27713: if test "${enable_calendar+set}" = set; then :
27714:   enableval=$enable_calendar; PHP_CALENDAR=$enableval
27715: else
27716: 
27717:   PHP_CALENDAR=no
27718:   test "$PHP_ENABLE_ALL" && PHP_CALENDAR=$PHP_ENABLE_ALL
27719: 
27720: fi
27721: 
27722: 
27723: 
27724: ext_output="yes, shared"
27725: ext_shared=yes
27726: case $PHP_CALENDAR in
27727: shared,*)
27728:   PHP_CALENDAR=`echo "$PHP_CALENDAR"|$SED 's/^shared,//'`
27729:   ;;
27730: shared)
27731:   PHP_CALENDAR=yes
27732:   ;;
27733: no)
27734:   ext_output=no
27735:   ext_shared=no
27736:   ;;
27737: *)
27738:   ext_output=yes
27739:   ext_shared=no
27740:   ;;
27741: esac
27742: 
27743: 
27744: 
27745: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
27746: $as_echo "$ext_output" >&6; }
27747: 
27748: 
27749: 
27750: 
27751: if test "$PHP_CALENDAR" = "yes"; then
27752: 
27753: $as_echo "#define HAVE_CALENDAR 1" >>confdefs.h
27754: 
27755: 
27756:   ext_builddir=ext/calendar
27757:   ext_srcdir=$abs_srcdir/ext/calendar
27758: 
27759:   ac_extra=
27760: 
27761:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
27762:     PHP_CALENDAR_SHARED=no
27763: 
27764: 
27765:   case ext/calendar in
27766:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
27767:   /*) ac_srcdir=`echo "ext/calendar"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
27768:   *) ac_srcdir="$abs_srcdir/ext/calendar/"; ac_bdir="ext/calendar/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
27769:   esac
27770: 
27771: 
27772: 
27773:   b_c_pre=$php_c_pre
27774:   b_cxx_pre=$php_cxx_pre
27775:   b_c_meta=$php_c_meta
27776:   b_cxx_meta=$php_cxx_meta
27777:   b_c_post=$php_c_post
27778:   b_cxx_post=$php_cxx_post
27779:   b_lo=$php_lo
27780: 
27781: 
27782:   old_IFS=$IFS
27783:   for ac_src in calendar.c dow.c french.c gregor.c jewish.c julian.c easter.c cal_unix.c; do
27784: 
27785:       IFS=.
27786:       set $ac_src
27787:       ac_obj=$1
27788:       IFS=$old_IFS
27789: 
27790:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
27791: 
27792:       case $ac_src in
27793:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
27794:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
27795:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
27796:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
27797:       esac
27798: 
27799:     cat >>Makefile.objects<<EOF
27800: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
27801: 	$ac_comp
27802: EOF
27803:   done
27804: 
27805: 
27806:     EXT_STATIC="$EXT_STATIC calendar"
27807:     if test "$ext_shared" != "nocli"; then
27808:       EXT_CLI_STATIC="$EXT_CLI_STATIC calendar"
27809:     fi
27810:   else
27811:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
27812:       PHP_CALENDAR_SHARED=yes
27813: 
27814:   case ext/calendar in
27815:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
27816:   /*) ac_srcdir=`echo "ext/calendar"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
27817:   *) ac_srcdir="$abs_srcdir/ext/calendar/"; ac_bdir="ext/calendar/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
27818:   esac
27819: 
27820: 
27821: 
27822:   b_c_pre=$shared_c_pre
27823:   b_cxx_pre=$shared_cxx_pre
27824:   b_c_meta=$shared_c_meta
27825:   b_cxx_meta=$shared_cxx_meta
27826:   b_c_post=$shared_c_post
27827:   b_cxx_post=$shared_cxx_post
27828:   b_lo=$shared_lo
27829: 
27830: 
27831:   old_IFS=$IFS
27832:   for ac_src in calendar.c dow.c french.c gregor.c jewish.c julian.c easter.c cal_unix.c; do
27833: 
27834:       IFS=.
27835:       set $ac_src
27836:       ac_obj=$1
27837:       IFS=$old_IFS
27838: 
27839:       shared_objects_calendar="$shared_objects_calendar $ac_bdir$ac_obj.lo"
27840: 
27841:       case $ac_src in
27842:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
27843:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
27844:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
27845:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
27846:       esac
27847: 
27848:     cat >>Makefile.objects<<EOF
27849: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
27850: 	$ac_comp
27851: EOF
27852:   done
27853: 
27854:       case $host_alias in
27855:         *netware*)
27856: 
27857:   install_modules="install-modules"
27858: 
27859:   case $host_alias in
27860:     *aix*)
27861:       suffix=so
27862:       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'
27863:       ;;
27864:     *netware*)
27865:       suffix=nlm
27866:       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)'
27867:       ;;
27868:     *)
27869:       suffix=la
27870:       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)'
27871:       ;;
27872:   esac
27873: 
27874:   if test "x" = "xyes"; then
27875:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpcalendar.$suffix"
27876:   else
27877:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpcalendar.$suffix"
27878:   fi
27879: 
27880:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_calendar"
27881: 
27882:   cat >>Makefile.objects<<EOF
27883: \$(phplibdir)/phpcalendar.$suffix: $ext_builddir/phpcalendar.$suffix
27884: 	\$(LIBTOOL) --mode=install cp $ext_builddir/phpcalendar.$suffix \$(phplibdir)
27885: 
27886: $ext_builddir/phpcalendar.$suffix: \$(shared_objects_calendar) \$(PHPCALENDAR_SHARED_DEPENDENCIES)
27887: 	$link_cmd
27888: 
27889: EOF
27890: 
27891:           ;;
27892:         *)
27893: 
27894:   install_modules="install-modules"
27895: 
27896:   case $host_alias in
27897:     *aix*)
27898:       suffix=so
27899:       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'
27900:       ;;
27901:     *netware*)
27902:       suffix=nlm
27903:       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)'
27904:       ;;
27905:     *)
27906:       suffix=la
27907:       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)'
27908:       ;;
27909:   esac
27910: 
27911:   if test "x" = "xyes"; then
27912:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/calendar.$suffix"
27913:   else
27914:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/calendar.$suffix"
27915:   fi
27916: 
27917:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_calendar"
27918: 
27919:   cat >>Makefile.objects<<EOF
27920: \$(phplibdir)/calendar.$suffix: $ext_builddir/calendar.$suffix
27921: 	\$(LIBTOOL) --mode=install cp $ext_builddir/calendar.$suffix \$(phplibdir)
27922: 
27923: $ext_builddir/calendar.$suffix: \$(shared_objects_calendar) \$(CALENDAR_SHARED_DEPENDENCIES)
27924: 	$link_cmd
27925: 
27926: EOF
27927: 
27928:           ;;
27929:       esac
27930: 
27931: cat >>confdefs.h <<_ACEOF
27932: #define COMPILE_DL_CALENDAR 1
27933: _ACEOF
27934: 
27935:     fi
27936:   fi
27937: 
27938:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
27939:     PHP_CALENDAR_SHARED=no
27940:     case "$PHP_SAPI" in
27941:       cgi|embed)
27942: 
27943: 
27944:   case ext/calendar in
27945:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
27946:   /*) ac_srcdir=`echo "ext/calendar"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
27947:   *) ac_srcdir="$abs_srcdir/ext/calendar/"; ac_bdir="ext/calendar/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
27948:   esac
27949: 
27950: 
27951: 
27952:   b_c_pre=$php_c_pre
27953:   b_cxx_pre=$php_cxx_pre
27954:   b_c_meta=$php_c_meta
27955:   b_cxx_meta=$php_cxx_meta
27956:   b_c_post=$php_c_post
27957:   b_cxx_post=$php_cxx_post
27958:   b_lo=$php_lo
27959: 
27960: 
27961:   old_IFS=$IFS
27962:   for ac_src in calendar.c dow.c french.c gregor.c jewish.c julian.c easter.c cal_unix.c; do
27963: 
27964:       IFS=.
27965:       set $ac_src
27966:       ac_obj=$1
27967:       IFS=$old_IFS
27968: 
27969:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
27970: 
27971:       case $ac_src in
27972:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
27973:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
27974:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
27975:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
27976:       esac
27977: 
27978:     cat >>Makefile.objects<<EOF
27979: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
27980: 	$ac_comp
27981: EOF
27982:   done
27983: 
27984: 
27985:         EXT_STATIC="$EXT_STATIC calendar"
27986:         ;;
27987:       *)
27988: 
27989: 
27990:   case ext/calendar in
27991:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
27992:   /*) ac_srcdir=`echo "ext/calendar"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
27993:   *) ac_srcdir="$abs_srcdir/ext/calendar/"; ac_bdir="ext/calendar/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
27994:   esac
27995: 
27996: 
27997: 
27998:   b_c_pre=$php_c_pre
27999:   b_cxx_pre=$php_cxx_pre
28000:   b_c_meta=$php_c_meta
28001:   b_cxx_meta=$php_cxx_meta
28002:   b_c_post=$php_c_post
28003:   b_cxx_post=$php_cxx_post
28004:   b_lo=$php_lo
28005: 
28006: 
28007:   old_IFS=$IFS
28008:   for ac_src in calendar.c dow.c french.c gregor.c jewish.c julian.c easter.c cal_unix.c; do
28009: 
28010:       IFS=.
28011:       set $ac_src
28012:       ac_obj=$1
28013:       IFS=$old_IFS
28014: 
28015:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
28016: 
28017:       case $ac_src in
28018:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
28019:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
28020:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
28021:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
28022:       esac
28023: 
28024:     cat >>Makefile.objects<<EOF
28025: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
28026: 	$ac_comp
28027: EOF
28028:   done
28029: 
28030: 
28031:         ;;
28032:     esac
28033:     EXT_CLI_STATIC="$EXT_CLI_STATIC calendar"
28034:   fi
28035: 
28036: 
28037:     BUILD_DIR="$BUILD_DIR $ext_builddir"
28038: 
28039: 
28040: 
28041:   if test "$ext_builddir" = "."; then
28042:     PHP_PECL_EXTENSION=calendar
28043: 
28044:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
28045: 
28046:   fi
28047: 
28048: fi
28049: 
28050: 
28051: 
28052: php_enable_ctype=yes
28053: 
28054: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ctype functions" >&5
28055: $as_echo_n "checking whether to enable ctype functions... " >&6; }
28056: # Check whether --enable-ctype was given.
28057: if test "${enable_ctype+set}" = set; then :
28058:   enableval=$enable_ctype; PHP_CTYPE=$enableval
28059: else
28060: 
28061:   PHP_CTYPE=yes
28062:   test "$PHP_ENABLE_ALL" && PHP_CTYPE=$PHP_ENABLE_ALL
28063: 
28064: fi
28065: 
28066: 
28067: 
28068: ext_output="yes, shared"
28069: ext_shared=yes
28070: case $PHP_CTYPE in
28071: shared,*)
28072:   PHP_CTYPE=`echo "$PHP_CTYPE"|$SED 's/^shared,//'`
28073:   ;;
28074: shared)
28075:   PHP_CTYPE=yes
28076:   ;;
28077: no)
28078:   ext_output=no
28079:   ext_shared=no
28080:   ;;
28081: *)
28082:   ext_output=yes
28083:   ext_shared=no
28084:   ;;
28085: esac
28086: 
28087: 
28088: 
28089: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
28090: $as_echo "$ext_output" >&6; }
28091: 
28092: 
28093: 
28094: 
28095: if test "$PHP_CTYPE" != "no"; then
28096: 
28097: $as_echo "#define HAVE_CTYPE 1" >>confdefs.h
28098: 
28099: 
28100:   ext_builddir=ext/ctype
28101:   ext_srcdir=$abs_srcdir/ext/ctype
28102: 
28103:   ac_extra=
28104: 
28105:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
28106:     PHP_CTYPE_SHARED=no
28107: 
28108: 
28109:   case ext/ctype in
28110:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
28111:   /*) ac_srcdir=`echo "ext/ctype"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
28112:   *) ac_srcdir="$abs_srcdir/ext/ctype/"; ac_bdir="ext/ctype/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
28113:   esac
28114: 
28115: 
28116: 
28117:   b_c_pre=$php_c_pre
28118:   b_cxx_pre=$php_cxx_pre
28119:   b_c_meta=$php_c_meta
28120:   b_cxx_meta=$php_cxx_meta
28121:   b_c_post=$php_c_post
28122:   b_cxx_post=$php_cxx_post
28123:   b_lo=$php_lo
28124: 
28125: 
28126:   old_IFS=$IFS
28127:   for ac_src in ctype.c; do
28128: 
28129:       IFS=.
28130:       set $ac_src
28131:       ac_obj=$1
28132:       IFS=$old_IFS
28133: 
28134:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
28135: 
28136:       case $ac_src in
28137:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
28138:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
28139:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
28140:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
28141:       esac
28142: 
28143:     cat >>Makefile.objects<<EOF
28144: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
28145: 	$ac_comp
28146: EOF
28147:   done
28148: 
28149: 
28150:     EXT_STATIC="$EXT_STATIC ctype"
28151:     if test "$ext_shared" != "nocli"; then
28152:       EXT_CLI_STATIC="$EXT_CLI_STATIC ctype"
28153:     fi
28154:   else
28155:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
28156:       PHP_CTYPE_SHARED=yes
28157: 
28158:   case ext/ctype in
28159:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
28160:   /*) ac_srcdir=`echo "ext/ctype"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
28161:   *) ac_srcdir="$abs_srcdir/ext/ctype/"; ac_bdir="ext/ctype/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
28162:   esac
28163: 
28164: 
28165: 
28166:   b_c_pre=$shared_c_pre
28167:   b_cxx_pre=$shared_cxx_pre
28168:   b_c_meta=$shared_c_meta
28169:   b_cxx_meta=$shared_cxx_meta
28170:   b_c_post=$shared_c_post
28171:   b_cxx_post=$shared_cxx_post
28172:   b_lo=$shared_lo
28173: 
28174: 
28175:   old_IFS=$IFS
28176:   for ac_src in ctype.c; do
28177: 
28178:       IFS=.
28179:       set $ac_src
28180:       ac_obj=$1
28181:       IFS=$old_IFS
28182: 
28183:       shared_objects_ctype="$shared_objects_ctype $ac_bdir$ac_obj.lo"
28184: 
28185:       case $ac_src in
28186:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
28187:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
28188:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
28189:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
28190:       esac
28191: 
28192:     cat >>Makefile.objects<<EOF
28193: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
28194: 	$ac_comp
28195: EOF
28196:   done
28197: 
28198:       case $host_alias in
28199:         *netware*)
28200: 
28201:   install_modules="install-modules"
28202: 
28203:   case $host_alias in
28204:     *aix*)
28205:       suffix=so
28206:       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'
28207:       ;;
28208:     *netware*)
28209:       suffix=nlm
28210:       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)'
28211:       ;;
28212:     *)
28213:       suffix=la
28214:       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)'
28215:       ;;
28216:   esac
28217: 
28218:   if test "x" = "xyes"; then
28219:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpctype.$suffix"
28220:   else
28221:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpctype.$suffix"
28222:   fi
28223: 
28224:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_ctype"
28225: 
28226:   cat >>Makefile.objects<<EOF
28227: \$(phplibdir)/phpctype.$suffix: $ext_builddir/phpctype.$suffix
28228: 	\$(LIBTOOL) --mode=install cp $ext_builddir/phpctype.$suffix \$(phplibdir)
28229: 
28230: $ext_builddir/phpctype.$suffix: \$(shared_objects_ctype) \$(PHPCTYPE_SHARED_DEPENDENCIES)
28231: 	$link_cmd
28232: 
28233: EOF
28234: 
28235:           ;;
28236:         *)
28237: 
28238:   install_modules="install-modules"
28239: 
28240:   case $host_alias in
28241:     *aix*)
28242:       suffix=so
28243:       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'
28244:       ;;
28245:     *netware*)
28246:       suffix=nlm
28247:       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)'
28248:       ;;
28249:     *)
28250:       suffix=la
28251:       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)'
28252:       ;;
28253:   esac
28254: 
28255:   if test "x" = "xyes"; then
28256:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/ctype.$suffix"
28257:   else
28258:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/ctype.$suffix"
28259:   fi
28260: 
28261:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_ctype"
28262: 
28263:   cat >>Makefile.objects<<EOF
28264: \$(phplibdir)/ctype.$suffix: $ext_builddir/ctype.$suffix
28265: 	\$(LIBTOOL) --mode=install cp $ext_builddir/ctype.$suffix \$(phplibdir)
28266: 
28267: $ext_builddir/ctype.$suffix: \$(shared_objects_ctype) \$(CTYPE_SHARED_DEPENDENCIES)
28268: 	$link_cmd
28269: 
28270: EOF
28271: 
28272:           ;;
28273:       esac
28274: 
28275: cat >>confdefs.h <<_ACEOF
28276: #define COMPILE_DL_CTYPE 1
28277: _ACEOF
28278: 
28279:     fi
28280:   fi
28281: 
28282:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
28283:     PHP_CTYPE_SHARED=no
28284:     case "$PHP_SAPI" in
28285:       cgi|embed)
28286: 
28287: 
28288:   case ext/ctype in
28289:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
28290:   /*) ac_srcdir=`echo "ext/ctype"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
28291:   *) ac_srcdir="$abs_srcdir/ext/ctype/"; ac_bdir="ext/ctype/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
28292:   esac
28293: 
28294: 
28295: 
28296:   b_c_pre=$php_c_pre
28297:   b_cxx_pre=$php_cxx_pre
28298:   b_c_meta=$php_c_meta
28299:   b_cxx_meta=$php_cxx_meta
28300:   b_c_post=$php_c_post
28301:   b_cxx_post=$php_cxx_post
28302:   b_lo=$php_lo
28303: 
28304: 
28305:   old_IFS=$IFS
28306:   for ac_src in ctype.c; do
28307: 
28308:       IFS=.
28309:       set $ac_src
28310:       ac_obj=$1
28311:       IFS=$old_IFS
28312: 
28313:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
28314: 
28315:       case $ac_src in
28316:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
28317:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
28318:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
28319:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
28320:       esac
28321: 
28322:     cat >>Makefile.objects<<EOF
28323: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
28324: 	$ac_comp
28325: EOF
28326:   done
28327: 
28328: 
28329:         EXT_STATIC="$EXT_STATIC ctype"
28330:         ;;
28331:       *)
28332: 
28333: 
28334:   case ext/ctype in
28335:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
28336:   /*) ac_srcdir=`echo "ext/ctype"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
28337:   *) ac_srcdir="$abs_srcdir/ext/ctype/"; ac_bdir="ext/ctype/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
28338:   esac
28339: 
28340: 
28341: 
28342:   b_c_pre=$php_c_pre
28343:   b_cxx_pre=$php_cxx_pre
28344:   b_c_meta=$php_c_meta
28345:   b_cxx_meta=$php_cxx_meta
28346:   b_c_post=$php_c_post
28347:   b_cxx_post=$php_cxx_post
28348:   b_lo=$php_lo
28349: 
28350: 
28351:   old_IFS=$IFS
28352:   for ac_src in ctype.c; do
28353: 
28354:       IFS=.
28355:       set $ac_src
28356:       ac_obj=$1
28357:       IFS=$old_IFS
28358: 
28359:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
28360: 
28361:       case $ac_src in
28362:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
28363:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
28364:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
28365:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
28366:       esac
28367: 
28368:     cat >>Makefile.objects<<EOF
28369: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
28370: 	$ac_comp
28371: EOF
28372:   done
28373: 
28374: 
28375:         ;;
28376:     esac
28377:     EXT_CLI_STATIC="$EXT_CLI_STATIC ctype"
28378:   fi
28379: 
28380: 
28381:     BUILD_DIR="$BUILD_DIR $ext_builddir"
28382: 
28383: 
28384: 
28385:   if test "$ext_builddir" = "."; then
28386:     PHP_PECL_EXTENSION=ctype
28387: 
28388:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
28389: 
28390:   fi
28391: 
28392: fi
28393: 
28394: 
28395: 
28396: php_with_curl=no
28397: 
28398: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cURL support" >&5
28399: $as_echo_n "checking for cURL support... " >&6; }
28400: 
28401: # Check whether --with-curl was given.
28402: if test "${with_curl+set}" = set; then :
28403:   withval=$with_curl; PHP_CURL=$withval
28404: else
28405: 
28406:   PHP_CURL=no
28407:   test "$PHP_ENABLE_ALL" && PHP_CURL=$PHP_ENABLE_ALL
28408: 
28409: fi
28410: 
28411: 
28412: 
28413: ext_output="yes, shared"
28414: ext_shared=yes
28415: case $PHP_CURL in
28416: shared,*)
28417:   PHP_CURL=`echo "$PHP_CURL"|$SED 's/^shared,//'`
28418:   ;;
28419: shared)
28420:   PHP_CURL=yes
28421:   ;;
28422: no)
28423:   ext_output=no
28424:   ext_shared=no
28425:   ;;
28426: *)
28427:   ext_output=yes
28428:   ext_shared=no
28429:   ;;
28430: esac
28431: 
28432: 
28433: 
28434: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
28435: $as_echo "$ext_output" >&6; }
28436: 
28437: 
28438: 
28439: 
28440: 
28441: php_with_curlwrappers=no
28442: 
28443: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use cURL for url streams" >&5
28444: $as_echo_n "checking if we should use cURL for url streams... " >&6; }
28445: 
28446: # Check whether --with-curlwrappers was given.
28447: if test "${with_curlwrappers+set}" = set; then :
28448:   withval=$with_curlwrappers; PHP_CURLWRAPPERS=$withval
28449: else
28450: 
28451:   PHP_CURLWRAPPERS=no
28452: 
28453: 
28454: fi
28455: 
28456: 
28457: ext_output=$PHP_CURLWRAPPERS
28458: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
28459: $as_echo "$ext_output" >&6; }
28460: 
28461: 
28462: 
28463: 
28464: if test "$PHP_CURL" != "no"; then
28465:   if test -r $PHP_CURL/include/curl/easy.h; then
28466:     CURL_DIR=$PHP_CURL
28467:   else
28468:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cURL in default path" >&5
28469: $as_echo_n "checking for cURL in default path... " >&6; }
28470:     for i in /usr/local /usr; do
28471:       if test -r $i/include/curl/easy.h; then
28472:         CURL_DIR=$i
28473:         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $i" >&5
28474: $as_echo "found in $i" >&6; }
28475:         break
28476:       fi
28477:     done
28478:   fi
28479: 
28480:   if test -z "$CURL_DIR"; then
28481:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
28482: $as_echo "not found" >&6; }
28483:     as_fn_error $? "Please reinstall the libcurl distribution -
28484:     easy.h should be in <curl-dir>/include/curl/" "$LINENO" 5
28485:   fi
28486: 
28487:   CURL_CONFIG="curl-config"
28488:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cURL 7.10.5 or greater" >&5
28489: $as_echo_n "checking for cURL 7.10.5 or greater... " >&6; }
28490: 
28491:   if ${CURL_DIR}/bin/curl-config --libs > /dev/null 2>&1; then
28492:     CURL_CONFIG=${CURL_DIR}/bin/curl-config
28493:   else
28494:     if ${CURL_DIR}/curl-config --libs > /dev/null 2>&1; then
28495:       CURL_CONFIG=${CURL_DIR}/curl-config
28496:     fi
28497:   fi
28498: 
28499:   curl_version_full=`$CURL_CONFIG --version`
28500:   curl_version=`echo ${curl_version_full} | sed -e 's/libcurl //' | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
28501:   if test "$curl_version" -ge 7010005; then
28502:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_version_full" >&5
28503: $as_echo "$curl_version_full" >&6; }
28504:     CURL_LIBS=`$CURL_CONFIG --libs`
28505:   else
28506:     as_fn_error $? "cURL version 7.10.5 or later is required to compile php with cURL support" "$LINENO" 5
28507:   fi
28508: 
28509: 
28510:   if test "$CURL_DIR/include" != "/usr/include"; then
28511: 
28512:   if test -z "$CURL_DIR/include" || echo "$CURL_DIR/include" | grep '^/' >/dev/null ; then
28513:     ai_p=$CURL_DIR/include
28514:   else
28515: 
28516:     ep_dir=`echo $CURL_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`
28517: 
28518:     ep_realdir=`(cd "$ep_dir" && pwd)`
28519:     ai_p="$ep_realdir"/`basename "$CURL_DIR/include"`
28520:   fi
28521: 
28522: 
28523: 
28524:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
28525: 
28526:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
28527:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
28528:     eval "INCLUDEPATH$unique=set"
28529: 
28530:       if test ""; then
28531:         INCLUDES="-I$ai_p $INCLUDES"
28532:       else
28533:         INCLUDES="$INCLUDES -I$ai_p"
28534:       fi
28535: 
28536:   fi
28537: 
28538:   fi
28539: 
28540: 
28541:   for ac_i in $CURL_LIBS; do
28542:     case $ac_i in
28543:     -pthread)
28544:       if test "$ext_shared" = "yes"; then
28545:         CURL_SHARED_LIBADD="$CURL_SHARED_LIBADD -pthread"
28546:       else
28547: 
28548: 
28549:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
28550: 
28551:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
28552:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
28553:     eval "EXTRA_LDFLAGS$unique=set"
28554:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
28555:   fi
28556: 
28557:       fi
28558:     ;;
28559:     -l*)
28560:       ac_ii=`echo $ac_i|cut -c 3-`
28561: 
28562: 
28563:   case $ac_ii in
28564:   c|c_r|pthread*) ;;
28565:   *)
28566:     if test "$ext_shared" = "yes"; then
28567:         CURL_SHARED_LIBADD="$CURL_SHARED_LIBADD -l$ac_ii"
28568:     else
28569: 
28570: 
28571:   case $ac_ii in
28572:   c|c_r|pthread*) ;;
28573:   *)
28574:       LIBS="$LIBS -l$ac_ii"
28575:    ;;
28576:   esac
28577: 
28578: 
28579:     fi
28580:    ;;
28581:   esac
28582: 
28583: 
28584:     ;;
28585:     -L*)
28586:       ac_ii=`echo $ac_i|cut -c 3-`
28587: 
28588:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
28589: 
28590:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
28591:     ai_p=$ac_ii
28592:   else
28593: 
28594:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
28595: 
28596:     ep_realdir=`(cd "$ep_dir" && pwd)`
28597:     ai_p="$ep_realdir"/`basename "$ac_ii"`
28598:   fi
28599: 
28600: 
28601:       if test "$ext_shared" = "yes"; then
28602:         CURL_SHARED_LIBADD="-L$ai_p $CURL_SHARED_LIBADD"
28603:         test -n "$ld_runpath_switch" && CURL_SHARED_LIBADD="$ld_runpath_switch$ai_p $CURL_SHARED_LIBADD"
28604:       else
28605: 
28606: 
28607: 
28608:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
28609: 
28610:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
28611:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
28612:     eval "LIBPATH$unique=set"
28613: 
28614:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
28615:     LDFLAGS="$LDFLAGS -L$ai_p"
28616:     PHP_RPATHS="$PHP_RPATHS $ai_p"
28617: 
28618:   fi
28619: 
28620: 
28621:       fi
28622: 
28623:   fi
28624: 
28625:     ;;
28626:     esac
28627:   done
28628: 
28629: 
28630: 
28631:   if test "$ext_shared" = "yes"; then
28632:     CURL_SHARED_LIBADD="-lcurl $CURL_SHARED_LIBADD"
28633:     if test -n "$CURL_DIR/$PHP_LIBDIR"; then
28634: 
28635:   if test "$CURL_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$CURL_DIR/$PHP_LIBDIR" != "/usr/lib"; then
28636: 
28637:   if test -z "$CURL_DIR/$PHP_LIBDIR" || echo "$CURL_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
28638:     ai_p=$CURL_DIR/$PHP_LIBDIR
28639:   else
28640: 
28641:     ep_dir=`echo $CURL_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
28642: 
28643:     ep_realdir=`(cd "$ep_dir" && pwd)`
28644:     ai_p="$ep_realdir"/`basename "$CURL_DIR/$PHP_LIBDIR"`
28645:   fi
28646: 
28647: 
28648:       if test "$ext_shared" = "yes"; then
28649:         CURL_SHARED_LIBADD="-L$ai_p $CURL_SHARED_LIBADD"
28650:         test -n "$ld_runpath_switch" && CURL_SHARED_LIBADD="$ld_runpath_switch$ai_p $CURL_SHARED_LIBADD"
28651:       else
28652: 
28653: 
28654: 
28655:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
28656: 
28657:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
28658:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
28659:     eval "LIBPATH$unique=set"
28660: 
28661:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
28662:     LDFLAGS="$LDFLAGS -L$ai_p"
28663:     PHP_RPATHS="$PHP_RPATHS $ai_p"
28664: 
28665:   fi
28666: 
28667: 
28668:       fi
28669: 
28670:   fi
28671: 
28672:     fi
28673:   else
28674: 
28675: 
28676:   if test -n "$CURL_DIR/$PHP_LIBDIR"; then
28677: 
28678:   if test "$CURL_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$CURL_DIR/$PHP_LIBDIR" != "/usr/lib"; then
28679: 
28680:   if test -z "$CURL_DIR/$PHP_LIBDIR" || echo "$CURL_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
28681:     ai_p=$CURL_DIR/$PHP_LIBDIR
28682:   else
28683: 
28684:     ep_dir=`echo $CURL_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
28685: 
28686:     ep_realdir=`(cd "$ep_dir" && pwd)`
28687:     ai_p="$ep_realdir"/`basename "$CURL_DIR/$PHP_LIBDIR"`
28688:   fi
28689: 
28690: 
28691: 
28692: 
28693: 
28694:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
28695: 
28696:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
28697:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
28698:     eval "LIBPATH$unique=set"
28699: 
28700:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
28701:     LDFLAGS="$LDFLAGS -L$ai_p"
28702:     PHP_RPATHS="$PHP_RPATHS $ai_p"
28703: 
28704:   fi
28705: 
28706: 
28707: 
28708:   fi
28709: 
28710:   fi
28711: 
28712: 
28713:   case curl in
28714:   c|c_r|pthread*) ;;
28715:   *)
28716:       LIBS="-lcurl $LIBS"
28717:    ;;
28718:   esac
28719: 
28720: 
28721: 
28722: 
28723:   fi
28724: 
28725: 
28726: 
28727:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL support in libcurl" >&5
28728: $as_echo_n "checking for SSL support in libcurl... " >&6; }
28729:   CURL_SSL=`$CURL_CONFIG --feature | $EGREP SSL`
28730:   if test "$CURL_SSL" = "SSL"; then
28731:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28732: $as_echo "yes" >&6; }
28733: 
28734: $as_echo "#define HAVE_CURL_SSL 1" >>confdefs.h
28735: 
28736: 
28737:     save_CFLAGS="$CFLAGS"
28738:     CFLAGS="`$CURL_CONFIG --cflags`"
28739: 
28740:     ac_ext=c
28741: ac_cpp='$CPP $CPPFLAGS'
28742: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28743: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28744: ac_compiler_gnu=$ac_cv_c_compiler_gnu
28745: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
28746: $as_echo_n "checking how to run the C preprocessor... " >&6; }
28747: # On Suns, sometimes $CPP names a directory.
28748: if test -n "$CPP" && test -d "$CPP"; then
28749:   CPP=
28750: fi
28751: if test -z "$CPP"; then
28752:   if ${ac_cv_prog_CPP+:} false; then :
28753:   $as_echo_n "(cached) " >&6
28754: else
28755:       # Double quotes because CPP needs to be expanded
28756:     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
28757:     do
28758:       ac_preproc_ok=false
28759: for ac_c_preproc_warn_flag in '' yes
28760: do
28761:   # Use a header file that comes with gcc, so configuring glibc
28762:   # with a fresh cross-compiler works.
28763:   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28764:   # <limits.h> exists even on freestanding compilers.
28765:   # On the NeXT, cc -E runs the code through the compiler's parser,
28766:   # not just through cpp. "Syntax error" is here to catch this case.
28767:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28768: /* end confdefs.h.  */
28769: #ifdef __STDC__
28770: # include <limits.h>
28771: #else
28772: # include <assert.h>
28773: #endif
28774: 		     Syntax error
28775: _ACEOF
28776: if ac_fn_c_try_cpp "$LINENO"; then :
28777: 
28778: else
28779:   # Broken: fails on valid input.
28780: continue
28781: fi
28782: rm -f conftest.err conftest.i conftest.$ac_ext
28783: 
28784:   # OK, works on sane cases.  Now check whether nonexistent headers
28785:   # can be detected and how.
28786:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28787: /* end confdefs.h.  */
28788: #include <ac_nonexistent.h>
28789: _ACEOF
28790: if ac_fn_c_try_cpp "$LINENO"; then :
28791:   # Broken: success on invalid input.
28792: continue
28793: else
28794:   # Passes both tests.
28795: ac_preproc_ok=:
28796: break
28797: fi
28798: rm -f conftest.err conftest.i conftest.$ac_ext
28799: 
28800: done
28801: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
28802: rm -f conftest.i conftest.err conftest.$ac_ext
28803: if $ac_preproc_ok; then :
28804:   break
28805: fi
28806: 
28807:     done
28808:     ac_cv_prog_CPP=$CPP
28809: 
28810: fi
28811:   CPP=$ac_cv_prog_CPP
28812: else
28813:   ac_cv_prog_CPP=$CPP
28814: fi
28815: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
28816: $as_echo "$CPP" >&6; }
28817: ac_preproc_ok=false
28818: for ac_c_preproc_warn_flag in '' yes
28819: do
28820:   # Use a header file that comes with gcc, so configuring glibc
28821:   # with a fresh cross-compiler works.
28822:   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28823:   # <limits.h> exists even on freestanding compilers.
28824:   # On the NeXT, cc -E runs the code through the compiler's parser,
28825:   # not just through cpp. "Syntax error" is here to catch this case.
28826:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28827: /* end confdefs.h.  */
28828: #ifdef __STDC__
28829: # include <limits.h>
28830: #else
28831: # include <assert.h>
28832: #endif
28833: 		     Syntax error
28834: _ACEOF
28835: if ac_fn_c_try_cpp "$LINENO"; then :
28836: 
28837: else
28838:   # Broken: fails on valid input.
28839: continue
28840: fi
28841: rm -f conftest.err conftest.i conftest.$ac_ext
28842: 
28843:   # OK, works on sane cases.  Now check whether nonexistent headers
28844:   # can be detected and how.
28845:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28846: /* end confdefs.h.  */
28847: #include <ac_nonexistent.h>
28848: _ACEOF
28849: if ac_fn_c_try_cpp "$LINENO"; then :
28850:   # Broken: success on invalid input.
28851: continue
28852: else
28853:   # Passes both tests.
28854: ac_preproc_ok=:
28855: break
28856: fi
28857: rm -f conftest.err conftest.i conftest.$ac_ext
28858: 
28859: done
28860: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
28861: rm -f conftest.i conftest.err conftest.$ac_ext
28862: if $ac_preproc_ok; then :
28863: 
28864: else
28865:   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28866: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28867: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
28868: See \`config.log' for more details" "$LINENO" 5; }
28869: fi
28870: 
28871: ac_ext=c
28872: ac_cpp='$CPP $CPPFLAGS'
28873: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28874: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28875: ac_compiler_gnu=$ac_cv_c_compiler_gnu
28876: 
28877:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl support in libcurl" >&5
28878: $as_echo_n "checking for openssl support in libcurl... " >&6; }
28879:     if test "$cross_compiling" = yes; then :
28880: 
28881:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28882: $as_echo "no" >&6; }
28883: 
28884: else
28885:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28886: /* end confdefs.h.  */
28887: 
28888: #include <curl/curl.h>
28889: 
28890: int main(int argc, char *argv[])
28891: {
28892:   curl_version_info_data *data = curl_version_info(CURLVERSION_NOW);
28893: 
28894:   if (data && data->ssl_version && *data->ssl_version) {
28895:     const char *ptr = data->ssl_version;
28896: 
28897:     while(*ptr == ' ') ++ptr;
28898:     return strncasecmp(ptr, "OpenSSL", sizeof("OpenSSL")-1);
28899:   }
28900:   return 1;
28901: }
28902: 
28903: _ACEOF
28904: if ac_fn_c_try_run "$LINENO"; then :
28905: 
28906:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28907: $as_echo "yes" >&6; }
28908:       for ac_header in openssl/crypto.h
28909: do :
28910:   ac_fn_c_check_header_mongrel "$LINENO" "openssl/crypto.h" "ac_cv_header_openssl_crypto_h" "$ac_includes_default"
28911: if test "x$ac_cv_header_openssl_crypto_h" = xyes; then :
28912:   cat >>confdefs.h <<_ACEOF
28913: #define HAVE_OPENSSL_CRYPTO_H 1
28914: _ACEOF
28915: 
28916: 
28917: $as_echo "#define HAVE_CURL_OPENSSL 1" >>confdefs.h
28918: 
28919: 
28920: fi
28921: 
28922: done
28923: 
28924: 
28925: else
28926: 
28927:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28928: $as_echo "no" >&6; }
28929: 
28930: fi
28931: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28932:   conftest.$ac_objext conftest.beam conftest.$ac_ext
28933: fi
28934: 
28935: 
28936:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls support in libcurl" >&5
28937: $as_echo_n "checking for gnutls support in libcurl... " >&6; }
28938:     if test "$cross_compiling" = yes; then :
28939: 
28940:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28941: $as_echo "no" >&6; }
28942: 
28943: else
28944:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28945: /* end confdefs.h.  */
28946: 
28947: #include <curl/curl.h>
28948: 
28949: int main(int argc, char *argv[])
28950: {
28951:   curl_version_info_data *data = curl_version_info(CURLVERSION_NOW);
28952: 
28953:   if (data && data->ssl_version && *data->ssl_version) {
28954:     const char *ptr = data->ssl_version;
28955: 
28956:     while(*ptr == ' ') ++ptr;
28957:     return strncasecmp(ptr, "GnuTLS", sizeof("GnuTLS")-1);
28958:   }
28959:   return 1;
28960: }
28961: 
28962: _ACEOF
28963: if ac_fn_c_try_run "$LINENO"; then :
28964: 
28965:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28966: $as_echo "yes" >&6; }
28967:       ac_fn_c_check_header_mongrel "$LINENO" "gcrypt.h" "ac_cv_header_gcrypt_h" "$ac_includes_default"
28968: if test "x$ac_cv_header_gcrypt_h" = xyes; then :
28969: 
28970: 
28971: $as_echo "#define HAVE_CURL_GNUTLS 1" >>confdefs.h
28972: 
28973: 
28974: fi
28975: 
28976: 
28977: 
28978: else
28979: 
28980:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28981: $as_echo "no" >&6; }
28982: 
28983: fi
28984: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28985:   conftest.$ac_objext conftest.beam conftest.$ac_ext
28986: fi
28987: 
28988: 
28989:     CFLAGS="$save_CFLAGS"
28990:   else
28991:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28992: $as_echo "no" >&6; }
28993:   fi
28994: 
28995: 
28996:   save_old_LDFLAGS=$LDFLAGS
28997:   ac_stuff="
28998:     $CURL_LIBS -L$CURL_DIR/$PHP_LIBDIR
28999:   "
29000: 
29001:   save_ext_shared=$ext_shared
29002:   ext_shared=yes
29003: 
29004:   for ac_i in $ac_stuff; do
29005:     case $ac_i in
29006:     -pthread)
29007:       if test "$ext_shared" = "yes"; then
29008:         LDFLAGS="$LDFLAGS -pthread"
29009:       else
29010: 
29011: 
29012:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
29013: 
29014:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
29015:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
29016:     eval "EXTRA_LDFLAGS$unique=set"
29017:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
29018:   fi
29019: 
29020:       fi
29021:     ;;
29022:     -l*)
29023:       ac_ii=`echo $ac_i|cut -c 3-`
29024: 
29025: 
29026:   case $ac_ii in
29027:   c|c_r|pthread*) ;;
29028:   *)
29029:     if test "$ext_shared" = "yes"; then
29030:         LDFLAGS="$LDFLAGS -l$ac_ii"
29031:     else
29032: 
29033: 
29034:   case $ac_ii in
29035:   c|c_r|pthread*) ;;
29036:   *)
29037:       LIBS="$LIBS -l$ac_ii"
29038:    ;;
29039:   esac
29040: 
29041: 
29042:     fi
29043:    ;;
29044:   esac
29045: 
29046: 
29047:     ;;
29048:     -L*)
29049:       ac_ii=`echo $ac_i|cut -c 3-`
29050: 
29051:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
29052: 
29053:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
29054:     ai_p=$ac_ii
29055:   else
29056: 
29057:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
29058: 
29059:     ep_realdir=`(cd "$ep_dir" && pwd)`
29060:     ai_p="$ep_realdir"/`basename "$ac_ii"`
29061:   fi
29062: 
29063: 
29064:       if test "$ext_shared" = "yes"; then
29065:         LDFLAGS="-L$ai_p $LDFLAGS"
29066:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
29067:       else
29068: 
29069: 
29070: 
29071:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
29072: 
29073:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
29074:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
29075:     eval "LIBPATH$unique=set"
29076: 
29077:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
29078:     LDFLAGS="$LDFLAGS -L$ai_p"
29079:     PHP_RPATHS="$PHP_RPATHS $ai_p"
29080: 
29081:   fi
29082: 
29083: 
29084:       fi
29085: 
29086:   fi
29087: 
29088:     ;;
29089:     esac
29090:   done
29091: 
29092:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_easy_perform in -lcurl" >&5
29093: $as_echo_n "checking for curl_easy_perform in -lcurl... " >&6; }
29094: if ${ac_cv_lib_curl_curl_easy_perform+:} false; then :
29095:   $as_echo_n "(cached) " >&6
29096: else
29097:   ac_check_lib_save_LIBS=$LIBS
29098: LIBS="-lcurl  $LIBS"
29099: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29100: /* end confdefs.h.  */
29101: 
29102: /* Override any GCC internal prototype to avoid an error.
29103:    Use char because int might match the return type of a GCC
29104:    builtin and then its argument prototype would still apply.  */
29105: #ifdef __cplusplus
29106: extern "C"
29107: #endif
29108: char curl_easy_perform ();
29109: int
29110: main ()
29111: {
29112: return curl_easy_perform ();
29113:   ;
29114:   return 0;
29115: }
29116: _ACEOF
29117: if ac_fn_c_try_link "$LINENO"; then :
29118:   ac_cv_lib_curl_curl_easy_perform=yes
29119: else
29120:   ac_cv_lib_curl_curl_easy_perform=no
29121: fi
29122: rm -f core conftest.err conftest.$ac_objext \
29123:     conftest$ac_exeext conftest.$ac_ext
29124: LIBS=$ac_check_lib_save_LIBS
29125: fi
29126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curl_curl_easy_perform" >&5
29127: $as_echo "$ac_cv_lib_curl_curl_easy_perform" >&6; }
29128: if test "x$ac_cv_lib_curl_curl_easy_perform" = xyes; then :
29129: 
29130:     LDFLAGS=$save_old_LDFLAGS
29131:     ext_shared=$save_ext_shared
29132: 
29133: 
29134: $as_echo "#define HAVE_CURL 1" >>confdefs.h
29135: 
29136: 
29137: 
29138: else
29139: 
29140:     LDFLAGS=$save_old_LDFLAGS
29141:     ext_shared=$save_ext_shared
29142:     unset ac_cv_lib_curl_curl_easy_perform
29143: 
29144:     as_fn_error $? "There is something wrong. Please check config.log for more information." "$LINENO" 5
29145: 
29146: 
29147: fi
29148: 
29149: 
29150: 
29151:   save_old_LDFLAGS=$LDFLAGS
29152:   ac_stuff="
29153:     $CURL_LIBS -L$CURL_DIR/$PHP_LIBDIR
29154:   "
29155: 
29156:   save_ext_shared=$ext_shared
29157:   ext_shared=yes
29158: 
29159:   for ac_i in $ac_stuff; do
29160:     case $ac_i in
29161:     -pthread)
29162:       if test "$ext_shared" = "yes"; then
29163:         LDFLAGS="$LDFLAGS -pthread"
29164:       else
29165: 
29166: 
29167:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
29168: 
29169:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
29170:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
29171:     eval "EXTRA_LDFLAGS$unique=set"
29172:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
29173:   fi
29174: 
29175:       fi
29176:     ;;
29177:     -l*)
29178:       ac_ii=`echo $ac_i|cut -c 3-`
29179: 
29180: 
29181:   case $ac_ii in
29182:   c|c_r|pthread*) ;;
29183:   *)
29184:     if test "$ext_shared" = "yes"; then
29185:         LDFLAGS="$LDFLAGS -l$ac_ii"
29186:     else
29187: 
29188: 
29189:   case $ac_ii in
29190:   c|c_r|pthread*) ;;
29191:   *)
29192:       LIBS="$LIBS -l$ac_ii"
29193:    ;;
29194:   esac
29195: 
29196: 
29197:     fi
29198:    ;;
29199:   esac
29200: 
29201: 
29202:     ;;
29203:     -L*)
29204:       ac_ii=`echo $ac_i|cut -c 3-`
29205: 
29206:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
29207: 
29208:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
29209:     ai_p=$ac_ii
29210:   else
29211: 
29212:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
29213: 
29214:     ep_realdir=`(cd "$ep_dir" && pwd)`
29215:     ai_p="$ep_realdir"/`basename "$ac_ii"`
29216:   fi
29217: 
29218: 
29219:       if test "$ext_shared" = "yes"; then
29220:         LDFLAGS="-L$ai_p $LDFLAGS"
29221:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
29222:       else
29223: 
29224: 
29225: 
29226:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
29227: 
29228:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
29229:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
29230:     eval "LIBPATH$unique=set"
29231: 
29232:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
29233:     LDFLAGS="$LDFLAGS -L$ai_p"
29234:     PHP_RPATHS="$PHP_RPATHS $ai_p"
29235: 
29236:   fi
29237: 
29238: 
29239:       fi
29240: 
29241:   fi
29242: 
29243:     ;;
29244:     esac
29245:   done
29246: 
29247:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_version_info in -lcurl" >&5
29248: $as_echo_n "checking for curl_version_info in -lcurl... " >&6; }
29249: if ${ac_cv_lib_curl_curl_version_info+:} false; then :
29250:   $as_echo_n "(cached) " >&6
29251: else
29252:   ac_check_lib_save_LIBS=$LIBS
29253: LIBS="-lcurl  $LIBS"
29254: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29255: /* end confdefs.h.  */
29256: 
29257: /* Override any GCC internal prototype to avoid an error.
29258:    Use char because int might match the return type of a GCC
29259:    builtin and then its argument prototype would still apply.  */
29260: #ifdef __cplusplus
29261: extern "C"
29262: #endif
29263: char curl_version_info ();
29264: int
29265: main ()
29266: {
29267: return curl_version_info ();
29268:   ;
29269:   return 0;
29270: }
29271: _ACEOF
29272: if ac_fn_c_try_link "$LINENO"; then :
29273:   ac_cv_lib_curl_curl_version_info=yes
29274: else
29275:   ac_cv_lib_curl_curl_version_info=no
29276: fi
29277: rm -f core conftest.err conftest.$ac_objext \
29278:     conftest$ac_exeext conftest.$ac_ext
29279: LIBS=$ac_check_lib_save_LIBS
29280: fi
29281: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curl_curl_version_info" >&5
29282: $as_echo "$ac_cv_lib_curl_curl_version_info" >&6; }
29283: if test "x$ac_cv_lib_curl_curl_version_info" = xyes; then :
29284: 
29285:     LDFLAGS=$save_old_LDFLAGS
29286:     ext_shared=$save_ext_shared
29287: 
29288: 
29289: $as_echo "#define HAVE_CURL_VERSION_INFO 1" >>confdefs.h
29290: 
29291: 
29292: 
29293: else
29294: 
29295:     LDFLAGS=$save_old_LDFLAGS
29296:     ext_shared=$save_ext_shared
29297:     unset ac_cv_lib_curl_curl_version_info
29298: 
29299: 
29300: fi
29301: 
29302: 
29303: 
29304:   save_old_LDFLAGS=$LDFLAGS
29305:   ac_stuff="
29306:     $CURL_LIBS -L$CURL_DIR/$PHP_LIBDIR
29307:   "
29308: 
29309:   save_ext_shared=$ext_shared
29310:   ext_shared=yes
29311: 
29312:   for ac_i in $ac_stuff; do
29313:     case $ac_i in
29314:     -pthread)
29315:       if test "$ext_shared" = "yes"; then
29316:         LDFLAGS="$LDFLAGS -pthread"
29317:       else
29318: 
29319: 
29320:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
29321: 
29322:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
29323:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
29324:     eval "EXTRA_LDFLAGS$unique=set"
29325:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
29326:   fi
29327: 
29328:       fi
29329:     ;;
29330:     -l*)
29331:       ac_ii=`echo $ac_i|cut -c 3-`
29332: 
29333: 
29334:   case $ac_ii in
29335:   c|c_r|pthread*) ;;
29336:   *)
29337:     if test "$ext_shared" = "yes"; then
29338:         LDFLAGS="$LDFLAGS -l$ac_ii"
29339:     else
29340: 
29341: 
29342:   case $ac_ii in
29343:   c|c_r|pthread*) ;;
29344:   *)
29345:       LIBS="$LIBS -l$ac_ii"
29346:    ;;
29347:   esac
29348: 
29349: 
29350:     fi
29351:    ;;
29352:   esac
29353: 
29354: 
29355:     ;;
29356:     -L*)
29357:       ac_ii=`echo $ac_i|cut -c 3-`
29358: 
29359:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
29360: 
29361:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
29362:     ai_p=$ac_ii
29363:   else
29364: 
29365:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
29366: 
29367:     ep_realdir=`(cd "$ep_dir" && pwd)`
29368:     ai_p="$ep_realdir"/`basename "$ac_ii"`
29369:   fi
29370: 
29371: 
29372:       if test "$ext_shared" = "yes"; then
29373:         LDFLAGS="-L$ai_p $LDFLAGS"
29374:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
29375:       else
29376: 
29377: 
29378: 
29379:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
29380: 
29381:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
29382:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
29383:     eval "LIBPATH$unique=set"
29384: 
29385:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
29386:     LDFLAGS="$LDFLAGS -L$ai_p"
29387:     PHP_RPATHS="$PHP_RPATHS $ai_p"
29388: 
29389:   fi
29390: 
29391: 
29392:       fi
29393: 
29394:   fi
29395: 
29396:     ;;
29397:     esac
29398:   done
29399: 
29400:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_easy_strerror in -lcurl" >&5
29401: $as_echo_n "checking for curl_easy_strerror in -lcurl... " >&6; }
29402: if ${ac_cv_lib_curl_curl_easy_strerror+:} false; then :
29403:   $as_echo_n "(cached) " >&6
29404: else
29405:   ac_check_lib_save_LIBS=$LIBS
29406: LIBS="-lcurl  $LIBS"
29407: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29408: /* end confdefs.h.  */
29409: 
29410: /* Override any GCC internal prototype to avoid an error.
29411:    Use char because int might match the return type of a GCC
29412:    builtin and then its argument prototype would still apply.  */
29413: #ifdef __cplusplus
29414: extern "C"
29415: #endif
29416: char curl_easy_strerror ();
29417: int
29418: main ()
29419: {
29420: return curl_easy_strerror ();
29421:   ;
29422:   return 0;
29423: }
29424: _ACEOF
29425: if ac_fn_c_try_link "$LINENO"; then :
29426:   ac_cv_lib_curl_curl_easy_strerror=yes
29427: else
29428:   ac_cv_lib_curl_curl_easy_strerror=no
29429: fi
29430: rm -f core conftest.err conftest.$ac_objext \
29431:     conftest$ac_exeext conftest.$ac_ext
29432: LIBS=$ac_check_lib_save_LIBS
29433: fi
29434: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curl_curl_easy_strerror" >&5
29435: $as_echo "$ac_cv_lib_curl_curl_easy_strerror" >&6; }
29436: if test "x$ac_cv_lib_curl_curl_easy_strerror" = xyes; then :
29437: 
29438:     LDFLAGS=$save_old_LDFLAGS
29439:     ext_shared=$save_ext_shared
29440: 
29441: 
29442: $as_echo "#define HAVE_CURL_EASY_STRERROR 1" >>confdefs.h
29443: 
29444: 
29445: 
29446: else
29447: 
29448:     LDFLAGS=$save_old_LDFLAGS
29449:     ext_shared=$save_ext_shared
29450:     unset ac_cv_lib_curl_curl_easy_strerror
29451: 
29452: 
29453: fi
29454: 
29455: 
29456: 
29457:   save_old_LDFLAGS=$LDFLAGS
29458:   ac_stuff="
29459:     $CURL_LIBS -L$CURL_DIR/$PHP_LIBDIR
29460:   "
29461: 
29462:   save_ext_shared=$ext_shared
29463:   ext_shared=yes
29464: 
29465:   for ac_i in $ac_stuff; do
29466:     case $ac_i in
29467:     -pthread)
29468:       if test "$ext_shared" = "yes"; then
29469:         LDFLAGS="$LDFLAGS -pthread"
29470:       else
29471: 
29472: 
29473:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
29474: 
29475:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
29476:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
29477:     eval "EXTRA_LDFLAGS$unique=set"
29478:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
29479:   fi
29480: 
29481:       fi
29482:     ;;
29483:     -l*)
29484:       ac_ii=`echo $ac_i|cut -c 3-`
29485: 
29486: 
29487:   case $ac_ii in
29488:   c|c_r|pthread*) ;;
29489:   *)
29490:     if test "$ext_shared" = "yes"; then
29491:         LDFLAGS="$LDFLAGS -l$ac_ii"
29492:     else
29493: 
29494: 
29495:   case $ac_ii in
29496:   c|c_r|pthread*) ;;
29497:   *)
29498:       LIBS="$LIBS -l$ac_ii"
29499:    ;;
29500:   esac
29501: 
29502: 
29503:     fi
29504:    ;;
29505:   esac
29506: 
29507: 
29508:     ;;
29509:     -L*)
29510:       ac_ii=`echo $ac_i|cut -c 3-`
29511: 
29512:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
29513: 
29514:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
29515:     ai_p=$ac_ii
29516:   else
29517: 
29518:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
29519: 
29520:     ep_realdir=`(cd "$ep_dir" && pwd)`
29521:     ai_p="$ep_realdir"/`basename "$ac_ii"`
29522:   fi
29523: 
29524: 
29525:       if test "$ext_shared" = "yes"; then
29526:         LDFLAGS="-L$ai_p $LDFLAGS"
29527:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
29528:       else
29529: 
29530: 
29531: 
29532:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
29533: 
29534:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
29535:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
29536:     eval "LIBPATH$unique=set"
29537: 
29538:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
29539:     LDFLAGS="$LDFLAGS -L$ai_p"
29540:     PHP_RPATHS="$PHP_RPATHS $ai_p"
29541: 
29542:   fi
29543: 
29544: 
29545:       fi
29546: 
29547:   fi
29548: 
29549:     ;;
29550:     esac
29551:   done
29552: 
29553:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_multi_strerror in -lcurl" >&5
29554: $as_echo_n "checking for curl_multi_strerror in -lcurl... " >&6; }
29555: if ${ac_cv_lib_curl_curl_multi_strerror+:} false; then :
29556:   $as_echo_n "(cached) " >&6
29557: else
29558:   ac_check_lib_save_LIBS=$LIBS
29559: LIBS="-lcurl  $LIBS"
29560: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29561: /* end confdefs.h.  */
29562: 
29563: /* Override any GCC internal prototype to avoid an error.
29564:    Use char because int might match the return type of a GCC
29565:    builtin and then its argument prototype would still apply.  */
29566: #ifdef __cplusplus
29567: extern "C"
29568: #endif
29569: char curl_multi_strerror ();
29570: int
29571: main ()
29572: {
29573: return curl_multi_strerror ();
29574:   ;
29575:   return 0;
29576: }
29577: _ACEOF
29578: if ac_fn_c_try_link "$LINENO"; then :
29579:   ac_cv_lib_curl_curl_multi_strerror=yes
29580: else
29581:   ac_cv_lib_curl_curl_multi_strerror=no
29582: fi
29583: rm -f core conftest.err conftest.$ac_objext \
29584:     conftest$ac_exeext conftest.$ac_ext
29585: LIBS=$ac_check_lib_save_LIBS
29586: fi
29587: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curl_curl_multi_strerror" >&5
29588: $as_echo "$ac_cv_lib_curl_curl_multi_strerror" >&6; }
29589: if test "x$ac_cv_lib_curl_curl_multi_strerror" = xyes; then :
29590: 
29591:     LDFLAGS=$save_old_LDFLAGS
29592:     ext_shared=$save_ext_shared
29593: 
29594: 
29595: $as_echo "#define HAVE_CURL_MULTI_STRERROR 1" >>confdefs.h
29596: 
29597: 
29598: 
29599: else
29600: 
29601:     LDFLAGS=$save_old_LDFLAGS
29602:     ext_shared=$save_ext_shared
29603:     unset ac_cv_lib_curl_curl_multi_strerror
29604: 
29605: 
29606: fi
29607: 
29608: 
29609:   if test "$PHP_CURLWRAPPERS" != "no" ; then
29610: 
29611: $as_echo "#define PHP_CURL_URL_WRAPPERS 1" >>confdefs.h
29612: 
29613:   fi
29614: 
29615: 
29616:   ext_builddir=ext/curl
29617:   ext_srcdir=$abs_srcdir/ext/curl
29618: 
29619:   ac_extra=
29620: 
29621:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
29622:     PHP_CURL_SHARED=no
29623: 
29624: 
29625:   case ext/curl in
29626:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
29627:   /*) ac_srcdir=`echo "ext/curl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
29628:   *) ac_srcdir="$abs_srcdir/ext/curl/"; ac_bdir="ext/curl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
29629:   esac
29630: 
29631: 
29632: 
29633:   b_c_pre=$php_c_pre
29634:   b_cxx_pre=$php_cxx_pre
29635:   b_c_meta=$php_c_meta
29636:   b_cxx_meta=$php_cxx_meta
29637:   b_c_post=$php_c_post
29638:   b_cxx_post=$php_cxx_post
29639:   b_lo=$php_lo
29640: 
29641: 
29642:   old_IFS=$IFS
29643:   for ac_src in interface.c multi.c streams.c; do
29644: 
29645:       IFS=.
29646:       set $ac_src
29647:       ac_obj=$1
29648:       IFS=$old_IFS
29649: 
29650:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
29651: 
29652:       case $ac_src in
29653:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
29654:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
29655:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
29656:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
29657:       esac
29658: 
29659:     cat >>Makefile.objects<<EOF
29660: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
29661: 	$ac_comp
29662: EOF
29663:   done
29664: 
29665: 
29666:     EXT_STATIC="$EXT_STATIC curl"
29667:     if test "$ext_shared" != "nocli"; then
29668:       EXT_CLI_STATIC="$EXT_CLI_STATIC curl"
29669:     fi
29670:   else
29671:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
29672:       PHP_CURL_SHARED=yes
29673: 
29674:   case ext/curl in
29675:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
29676:   /*) ac_srcdir=`echo "ext/curl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
29677:   *) ac_srcdir="$abs_srcdir/ext/curl/"; ac_bdir="ext/curl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
29678:   esac
29679: 
29680: 
29681: 
29682:   b_c_pre=$shared_c_pre
29683:   b_cxx_pre=$shared_cxx_pre
29684:   b_c_meta=$shared_c_meta
29685:   b_cxx_meta=$shared_cxx_meta
29686:   b_c_post=$shared_c_post
29687:   b_cxx_post=$shared_cxx_post
29688:   b_lo=$shared_lo
29689: 
29690: 
29691:   old_IFS=$IFS
29692:   for ac_src in interface.c multi.c streams.c; do
29693: 
29694:       IFS=.
29695:       set $ac_src
29696:       ac_obj=$1
29697:       IFS=$old_IFS
29698: 
29699:       shared_objects_curl="$shared_objects_curl $ac_bdir$ac_obj.lo"
29700: 
29701:       case $ac_src in
29702:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
29703:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
29704:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
29705:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
29706:       esac
29707: 
29708:     cat >>Makefile.objects<<EOF
29709: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
29710: 	$ac_comp
29711: EOF
29712:   done
29713: 
29714:       case $host_alias in
29715:         *netware*)
29716: 
29717:   install_modules="install-modules"
29718: 
29719:   case $host_alias in
29720:     *aix*)
29721:       suffix=so
29722:       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'
29723:       ;;
29724:     *netware*)
29725:       suffix=nlm
29726:       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)'
29727:       ;;
29728:     *)
29729:       suffix=la
29730:       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)'
29731:       ;;
29732:   esac
29733: 
29734:   if test "x" = "xyes"; then
29735:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpcurl.$suffix"
29736:   else
29737:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpcurl.$suffix"
29738:   fi
29739: 
29740:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_curl"
29741: 
29742:   cat >>Makefile.objects<<EOF
29743: \$(phplibdir)/phpcurl.$suffix: $ext_builddir/phpcurl.$suffix
29744: 	\$(LIBTOOL) --mode=install cp $ext_builddir/phpcurl.$suffix \$(phplibdir)
29745: 
29746: $ext_builddir/phpcurl.$suffix: \$(shared_objects_curl) \$(PHPCURL_SHARED_DEPENDENCIES)
29747: 	$link_cmd
29748: 
29749: EOF
29750: 
29751:           ;;
29752:         *)
29753: 
29754:   install_modules="install-modules"
29755: 
29756:   case $host_alias in
29757:     *aix*)
29758:       suffix=so
29759:       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'
29760:       ;;
29761:     *netware*)
29762:       suffix=nlm
29763:       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)'
29764:       ;;
29765:     *)
29766:       suffix=la
29767:       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)'
29768:       ;;
29769:   esac
29770: 
29771:   if test "x" = "xyes"; then
29772:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/curl.$suffix"
29773:   else
29774:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/curl.$suffix"
29775:   fi
29776: 
29777:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_curl"
29778: 
29779:   cat >>Makefile.objects<<EOF
29780: \$(phplibdir)/curl.$suffix: $ext_builddir/curl.$suffix
29781: 	\$(LIBTOOL) --mode=install cp $ext_builddir/curl.$suffix \$(phplibdir)
29782: 
29783: $ext_builddir/curl.$suffix: \$(shared_objects_curl) \$(CURL_SHARED_DEPENDENCIES)
29784: 	$link_cmd
29785: 
29786: EOF
29787: 
29788:           ;;
29789:       esac
29790: 
29791: cat >>confdefs.h <<_ACEOF
29792: #define COMPILE_DL_CURL 1
29793: _ACEOF
29794: 
29795:     fi
29796:   fi
29797: 
29798:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
29799:     PHP_CURL_SHARED=no
29800:     case "$PHP_SAPI" in
29801:       cgi|embed)
29802: 
29803: 
29804:   case ext/curl in
29805:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
29806:   /*) ac_srcdir=`echo "ext/curl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
29807:   *) ac_srcdir="$abs_srcdir/ext/curl/"; ac_bdir="ext/curl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
29808:   esac
29809: 
29810: 
29811: 
29812:   b_c_pre=$php_c_pre
29813:   b_cxx_pre=$php_cxx_pre
29814:   b_c_meta=$php_c_meta
29815:   b_cxx_meta=$php_cxx_meta
29816:   b_c_post=$php_c_post
29817:   b_cxx_post=$php_cxx_post
29818:   b_lo=$php_lo
29819: 
29820: 
29821:   old_IFS=$IFS
29822:   for ac_src in interface.c multi.c streams.c; do
29823: 
29824:       IFS=.
29825:       set $ac_src
29826:       ac_obj=$1
29827:       IFS=$old_IFS
29828: 
29829:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
29830: 
29831:       case $ac_src in
29832:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
29833:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
29834:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
29835:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
29836:       esac
29837: 
29838:     cat >>Makefile.objects<<EOF
29839: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
29840: 	$ac_comp
29841: EOF
29842:   done
29843: 
29844: 
29845:         EXT_STATIC="$EXT_STATIC curl"
29846:         ;;
29847:       *)
29848: 
29849: 
29850:   case ext/curl in
29851:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
29852:   /*) ac_srcdir=`echo "ext/curl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
29853:   *) ac_srcdir="$abs_srcdir/ext/curl/"; ac_bdir="ext/curl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
29854:   esac
29855: 
29856: 
29857: 
29858:   b_c_pre=$php_c_pre
29859:   b_cxx_pre=$php_cxx_pre
29860:   b_c_meta=$php_c_meta
29861:   b_cxx_meta=$php_cxx_meta
29862:   b_c_post=$php_c_post
29863:   b_cxx_post=$php_cxx_post
29864:   b_lo=$php_lo
29865: 
29866: 
29867:   old_IFS=$IFS
29868:   for ac_src in interface.c multi.c streams.c; do
29869: 
29870:       IFS=.
29871:       set $ac_src
29872:       ac_obj=$1
29873:       IFS=$old_IFS
29874: 
29875:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
29876: 
29877:       case $ac_src in
29878:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
29879:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
29880:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
29881:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
29882:       esac
29883: 
29884:     cat >>Makefile.objects<<EOF
29885: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
29886: 	$ac_comp
29887: EOF
29888:   done
29889: 
29890: 
29891:         ;;
29892:     esac
29893:     EXT_CLI_STATIC="$EXT_CLI_STATIC curl"
29894:   fi
29895: 
29896: 
29897:     BUILD_DIR="$BUILD_DIR $ext_builddir"
29898: 
29899: 
29900: 
29901:   if test "$ext_builddir" = "."; then
29902:     PHP_PECL_EXTENSION=curl
29903: 
29904:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
29905: 
29906:   fi
29907: 
29908: 
29909:   PHP_VAR_SUBST="$PHP_VAR_SUBST CURL_SHARED_LIBADD"
29910: 
29911: fi
29912: 
29913: 
29914: 
29915: 
29916: 
29917: 
29918: 
29919: 
29920: 
29921: 
29922: 
29923: 
29924: 
29925: 
29926: 
29927: 
29928: 
29929: php_enable_dba=no
29930: 
29931: 
29932: # Check whether --enable-dba was given.
29933: if test "${enable_dba+set}" = set; then :
29934:   enableval=$enable_dba; PHP_DBA=$enableval
29935: else
29936: 
29937:   PHP_DBA=no
29938:   test "$PHP_ENABLE_ALL" && PHP_DBA=$PHP_ENABLE_ALL
29939: 
29940: fi
29941: 
29942: 
29943: 
29944: ext_output="yes, shared"
29945: ext_shared=yes
29946: case $PHP_DBA in
29947: shared,*)
29948:   PHP_DBA=`echo "$PHP_DBA"|$SED 's/^shared,//'`
29949:   ;;
29950: shared)
29951:   PHP_DBA=yes
29952:   ;;
29953: no)
29954:   ext_output=no
29955:   ext_shared=no
29956:   ;;
29957: *)
29958:   ext_output=yes
29959:   ext_shared=no
29960:   ;;
29961: esac
29962: 
29963: 
29964: 
29965: 
29966: 
29967: 
29968: 
29969: 
29970: 
29971: php_with_qdbm=no
29972: 
29973: 
29974: 
29975: # Check whether --with-qdbm was given.
29976: if test "${with_qdbm+set}" = set; then :
29977:   withval=$with_qdbm; PHP_QDBM=$withval
29978: else
29979: 
29980:   PHP_QDBM=no
29981: 
29982: 
29983: fi
29984: 
29985: 
29986: ext_output=$PHP_QDBM
29987: 
29988: 
29989: 
29990: 
29991: 
29992: 
29993: php_with_gdbm=no
29994: 
29995: 
29996: 
29997: # Check whether --with-gdbm was given.
29998: if test "${with_gdbm+set}" = set; then :
29999:   withval=$with_gdbm; PHP_GDBM=$withval
30000: else
30001: 
30002:   PHP_GDBM=no
30003: 
30004: 
30005: fi
30006: 
30007: 
30008: ext_output=$PHP_GDBM
30009: 
30010: 
30011: 
30012: 
30013: 
30014: 
30015: php_with_ndbm=no
30016: 
30017: 
30018: 
30019: # Check whether --with-ndbm was given.
30020: if test "${with_ndbm+set}" = set; then :
30021:   withval=$with_ndbm; PHP_NDBM=$withval
30022: else
30023: 
30024:   PHP_NDBM=no
30025: 
30026: 
30027: fi
30028: 
30029: 
30030: ext_output=$PHP_NDBM
30031: 
30032: 
30033: 
30034: 
30035: 
30036: 
30037: php_with_db4=no
30038: 
30039: 
30040: 
30041: # Check whether --with-db4 was given.
30042: if test "${with_db4+set}" = set; then :
30043:   withval=$with_db4; PHP_DB4=$withval
30044: else
30045: 
30046:   PHP_DB4=no
30047: 
30048: 
30049: fi
30050: 
30051: 
30052: ext_output=$PHP_DB4
30053: 
30054: 
30055: 
30056: 
30057: 
30058: 
30059: php_with_db3=no
30060: 
30061: 
30062: 
30063: # Check whether --with-db3 was given.
30064: if test "${with_db3+set}" = set; then :
30065:   withval=$with_db3; PHP_DB3=$withval
30066: else
30067: 
30068:   PHP_DB3=no
30069: 
30070: 
30071: fi
30072: 
30073: 
30074: ext_output=$PHP_DB3
30075: 
30076: 
30077: 
30078: 
30079: 
30080: 
30081: php_with_db2=no
30082: 
30083: 
30084: 
30085: # Check whether --with-db2 was given.
30086: if test "${with_db2+set}" = set; then :
30087:   withval=$with_db2; PHP_DB2=$withval
30088: else
30089: 
30090:   PHP_DB2=no
30091: 
30092: 
30093: fi
30094: 
30095: 
30096: ext_output=$PHP_DB2
30097: 
30098: 
30099: 
30100: 
30101: 
30102: 
30103: php_with_db1=no
30104: 
30105: 
30106: 
30107: # Check whether --with-db1 was given.
30108: if test "${with_db1+set}" = set; then :
30109:   withval=$with_db1; PHP_DB1=$withval
30110: else
30111: 
30112:   PHP_DB1=no
30113: 
30114: 
30115: fi
30116: 
30117: 
30118: ext_output=$PHP_DB1
30119: 
30120: 
30121: 
30122: 
30123: 
30124: 
30125: php_with_dbm=no
30126: 
30127: 
30128: 
30129: # Check whether --with-dbm was given.
30130: if test "${with_dbm+set}" = set; then :
30131:   withval=$with_dbm; PHP_DBM=$withval
30132: else
30133: 
30134:   PHP_DBM=no
30135: 
30136: 
30137: fi
30138: 
30139: 
30140: ext_output=$PHP_DBM
30141: 
30142: 
30143: 
30144: 
30145: 
30146: 
30147: php_with_tcadb=no
30148: 
30149: 
30150: 
30151: # Check whether --with-tcadb was given.
30152: if test "${with_tcadb+set}" = set; then :
30153:   withval=$with_tcadb; PHP_TCADB=$withval
30154: else
30155: 
30156:   PHP_TCADB=no
30157: 
30158: 
30159: fi
30160: 
30161: 
30162: ext_output=$PHP_TCADB
30163: 
30164: 
30165: 
30166: 
30167: 
30168: 
30169: 
30170: # QDBM
30171: if test "$PHP_QDBM" != "no"; then
30172: 
30173:   unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT
30174: 
30175:   for i in $PHP_QDBM /usr/local /usr; do
30176:     if test -f "$i/include/depot.h"; then
30177:       THIS_PREFIX=$i
30178:       THIS_INCLUDE=$i/include/depot.h
30179:       break
30180:     fi
30181:   done
30182: 
30183:   if test -n "$THIS_INCLUDE"; then
30184:     for LIB in qdbm; do
30185: 
30186:   save_old_LDFLAGS=$LDFLAGS
30187:   ac_stuff="-L$THIS_PREFIX/$PHP_LIBDIR"
30188: 
30189:   save_ext_shared=$ext_shared
30190:   ext_shared=yes
30191: 
30192:   for ac_i in $ac_stuff; do
30193:     case $ac_i in
30194:     -pthread)
30195:       if test "$ext_shared" = "yes"; then
30196:         LDFLAGS="$LDFLAGS -pthread"
30197:       else
30198: 
30199: 
30200:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
30201: 
30202:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
30203:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
30204:     eval "EXTRA_LDFLAGS$unique=set"
30205:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
30206:   fi
30207: 
30208:       fi
30209:     ;;
30210:     -l*)
30211:       ac_ii=`echo $ac_i|cut -c 3-`
30212: 
30213: 
30214:   case $ac_ii in
30215:   c|c_r|pthread*) ;;
30216:   *)
30217:     if test "$ext_shared" = "yes"; then
30218:         LDFLAGS="$LDFLAGS -l$ac_ii"
30219:     else
30220: 
30221: 
30222:   case $ac_ii in
30223:   c|c_r|pthread*) ;;
30224:   *)
30225:       LIBS="$LIBS -l$ac_ii"
30226:    ;;
30227:   esac
30228: 
30229: 
30230:     fi
30231:    ;;
30232:   esac
30233: 
30234: 
30235:     ;;
30236:     -L*)
30237:       ac_ii=`echo $ac_i|cut -c 3-`
30238: 
30239:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
30240: 
30241:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
30242:     ai_p=$ac_ii
30243:   else
30244: 
30245:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
30246: 
30247:     ep_realdir=`(cd "$ep_dir" && pwd)`
30248:     ai_p="$ep_realdir"/`basename "$ac_ii"`
30249:   fi
30250: 
30251: 
30252:       if test "$ext_shared" = "yes"; then
30253:         LDFLAGS="-L$ai_p $LDFLAGS"
30254:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
30255:       else
30256: 
30257: 
30258: 
30259:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
30260: 
30261:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
30262:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
30263:     eval "LIBPATH$unique=set"
30264: 
30265:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
30266:     LDFLAGS="$LDFLAGS -L$ai_p"
30267:     PHP_RPATHS="$PHP_RPATHS $ai_p"
30268: 
30269:   fi
30270: 
30271: 
30272:       fi
30273: 
30274:   fi
30275: 
30276:     ;;
30277:     esac
30278:   done
30279: 
30280:   as_ac_Lib=`$as_echo "ac_cv_lib_$LIB''_dpopen" | $as_tr_sh`
30281: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dpopen in -l$LIB" >&5
30282: $as_echo_n "checking for dpopen in -l$LIB... " >&6; }
30283: if eval \${$as_ac_Lib+:} false; then :
30284:   $as_echo_n "(cached) " >&6
30285: else
30286:   ac_check_lib_save_LIBS=$LIBS
30287: LIBS="-l$LIB  $LIBS"
30288: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30289: /* end confdefs.h.  */
30290: 
30291: /* Override any GCC internal prototype to avoid an error.
30292:    Use char because int might match the return type of a GCC
30293:    builtin and then its argument prototype would still apply.  */
30294: #ifdef __cplusplus
30295: extern "C"
30296: #endif
30297: char dpopen ();
30298: int
30299: main ()
30300: {
30301: return dpopen ();
30302:   ;
30303:   return 0;
30304: }
30305: _ACEOF
30306: if ac_fn_c_try_link "$LINENO"; then :
30307:   eval "$as_ac_Lib=yes"
30308: else
30309:   eval "$as_ac_Lib=no"
30310: fi
30311: rm -f core conftest.err conftest.$ac_objext \
30312:     conftest$ac_exeext conftest.$ac_ext
30313: LIBS=$ac_check_lib_save_LIBS
30314: fi
30315: eval ac_res=\$$as_ac_Lib
30316: 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
30317: $as_echo "$ac_res" >&6; }
30318: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
30319: 
30320:     LDFLAGS=$save_old_LDFLAGS
30321:     ext_shared=$save_ext_shared
30322: 
30323: 
30324: cat >>confdefs.h <<_ACEOF
30325: #define QDBM_INCLUDE_FILE "$THIS_INCLUDE"
30326: _ACEOF
30327: 
30328: 
30329: $as_echo "#define DBA_QDBM 1" >>confdefs.h
30330: 
30331:         THIS_LIBS=$LIB
30332: 
30333: 
30334: else
30335: 
30336:     LDFLAGS=$save_old_LDFLAGS
30337:     ext_shared=$save_ext_shared
30338:     unset ac_cv_lib_$LIB_dpopen
30339: 
30340: 
30341: fi
30342: 
30343:       if test -n "$THIS_LIBS"; then
30344:         break
30345:       fi
30346:     done
30347:   fi
30348: 
30349: 
30350:   if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then
30351:     THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR
30352:   fi
30353: 
30354: 
30355:   THIS_RESULT=yes
30356:   if test -z "$THIS_INCLUDE"; then
30357:     as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5
30358:   fi
30359:   if test -z "$THIS_LIBS"; then
30360:     as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5
30361:   fi
30362: 
30363: 
30364: 
30365: 
30366:   if test "$ext_shared" = "yes"; then
30367:     DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD"
30368:     if test -n "$THIS_LFLAGS"; then
30369: 
30370:   if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
30371: 
30372:   if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
30373:     ai_p=$THIS_LFLAGS
30374:   else
30375: 
30376:     ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`
30377: 
30378:     ep_realdir=`(cd "$ep_dir" && pwd)`
30379:     ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"`
30380:   fi
30381: 
30382: 
30383:       if test "$ext_shared" = "yes"; then
30384:         DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD"
30385:         test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD"
30386:       else
30387: 
30388: 
30389: 
30390:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
30391: 
30392:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
30393:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
30394:     eval "LIBPATH$unique=set"
30395: 
30396:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
30397:     LDFLAGS="$LDFLAGS -L$ai_p"
30398:     PHP_RPATHS="$PHP_RPATHS $ai_p"
30399: 
30400:   fi
30401: 
30402: 
30403:       fi
30404: 
30405:   fi
30406: 
30407:     fi
30408:   else
30409: 
30410: 
30411:   if test -n "$THIS_LFLAGS"; then
30412: 
30413:   if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
30414: 
30415:   if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
30416:     ai_p=$THIS_LFLAGS
30417:   else
30418: 
30419:     ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`
30420: 
30421:     ep_realdir=`(cd "$ep_dir" && pwd)`
30422:     ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"`
30423:   fi
30424: 
30425: 
30426: 
30427: 
30428: 
30429:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
30430: 
30431:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
30432:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
30433:     eval "LIBPATH$unique=set"
30434: 
30435:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
30436:     LDFLAGS="$LDFLAGS -L$ai_p"
30437:     PHP_RPATHS="$PHP_RPATHS $ai_p"
30438: 
30439:   fi
30440: 
30441: 
30442: 
30443:   fi
30444: 
30445:   fi
30446: 
30447: 
30448:   case $THIS_LIBS in
30449:   c|c_r|pthread*) ;;
30450:   *)
30451:       LIBS="-l$THIS_LIBS $LIBS"
30452:    ;;
30453:   esac
30454: 
30455: 
30456: 
30457: 
30458:   fi
30459: 
30460: 
30461:   unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX
30462: 
30463: fi
30464: 
30465:   THIS_NAME=QDBM
30466:   if test -n ""; then
30467:     THIS_FULL_NAME=""
30468:   else
30469:     THIS_FULL_NAME="$THIS_NAME"
30470:   fi
30471:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5
30472: $as_echo_n "checking for $THIS_FULL_NAME support... " >&6; }
30473:   if test -n ""; then
30474:     as_fn_error $? "" "$LINENO" 5
30475:   fi
30476:   if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
30477:     HAVE_DBA=1
30478:     eval HAVE_$THIS_NAME=1
30479:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5
30480: $as_echo "$THIS_RESULT" >&6; }
30481:   else
30482:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30483: $as_echo "no" >&6; }
30484:   fi
30485:   unset THIS_RESULT THIS_NAME THIS_FULL_NAME
30486: 
30487: 
30488: # GDBM
30489: if test "$PHP_GDBM" != "no"; then
30490: 
30491:   unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT
30492: 
30493:   if test "$HAVE_QDBM" = "1"; then
30494: 
30495:   THIS_NAME=GDBM
30496:   if test -n "gdbm"; then
30497:     THIS_FULL_NAME="gdbm"
30498:   else
30499:     THIS_FULL_NAME="$THIS_NAME"
30500:   fi
30501:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5
30502: $as_echo_n "checking for $THIS_FULL_NAME support... " >&6; }
30503:   if test -n "You cannot combine --with-gdbm with --with-qdbm"; then
30504:     as_fn_error $? "You cannot combine --with-gdbm with --with-qdbm" "$LINENO" 5
30505:   fi
30506:   if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
30507:     HAVE_DBA=1
30508:     eval HAVE_$THIS_NAME=1
30509:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5
30510: $as_echo "$THIS_RESULT" >&6; }
30511:   else
30512:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30513: $as_echo "no" >&6; }
30514:   fi
30515:   unset THIS_RESULT THIS_NAME THIS_FULL_NAME
30516: 
30517:   fi
30518:   for i in $PHP_GDBM /usr/local /usr; do
30519:     if test -f "$i/include/gdbm.h"; then
30520:       THIS_PREFIX=$i
30521:       THIS_INCLUDE=$i/include/gdbm.h
30522:       break
30523:     fi
30524:   done
30525: 
30526:   if test -n "$THIS_INCLUDE"; then
30527: 
30528:   save_old_LDFLAGS=$LDFLAGS
30529:   ac_stuff="-L$THIS_PREFIX/$PHP_LIBDIR"
30530: 
30531:   save_ext_shared=$ext_shared
30532:   ext_shared=yes
30533: 
30534:   for ac_i in $ac_stuff; do
30535:     case $ac_i in
30536:     -pthread)
30537:       if test "$ext_shared" = "yes"; then
30538:         LDFLAGS="$LDFLAGS -pthread"
30539:       else
30540: 
30541: 
30542:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
30543: 
30544:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
30545:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
30546:     eval "EXTRA_LDFLAGS$unique=set"
30547:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
30548:   fi
30549: 
30550:       fi
30551:     ;;
30552:     -l*)
30553:       ac_ii=`echo $ac_i|cut -c 3-`
30554: 
30555: 
30556:   case $ac_ii in
30557:   c|c_r|pthread*) ;;
30558:   *)
30559:     if test "$ext_shared" = "yes"; then
30560:         LDFLAGS="$LDFLAGS -l$ac_ii"
30561:     else
30562: 
30563: 
30564:   case $ac_ii in
30565:   c|c_r|pthread*) ;;
30566:   *)
30567:       LIBS="$LIBS -l$ac_ii"
30568:    ;;
30569:   esac
30570: 
30571: 
30572:     fi
30573:    ;;
30574:   esac
30575: 
30576: 
30577:     ;;
30578:     -L*)
30579:       ac_ii=`echo $ac_i|cut -c 3-`
30580: 
30581:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
30582: 
30583:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
30584:     ai_p=$ac_ii
30585:   else
30586: 
30587:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
30588: 
30589:     ep_realdir=`(cd "$ep_dir" && pwd)`
30590:     ai_p="$ep_realdir"/`basename "$ac_ii"`
30591:   fi
30592: 
30593: 
30594:       if test "$ext_shared" = "yes"; then
30595:         LDFLAGS="-L$ai_p $LDFLAGS"
30596:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
30597:       else
30598: 
30599: 
30600: 
30601:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
30602: 
30603:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
30604:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
30605:     eval "LIBPATH$unique=set"
30606: 
30607:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
30608:     LDFLAGS="$LDFLAGS -L$ai_p"
30609:     PHP_RPATHS="$PHP_RPATHS $ai_p"
30610: 
30611:   fi
30612: 
30613: 
30614:       fi
30615: 
30616:   fi
30617: 
30618:     ;;
30619:     esac
30620:   done
30621: 
30622:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbm_open in -lgdbm" >&5
30623: $as_echo_n "checking for gdbm_open in -lgdbm... " >&6; }
30624: if ${ac_cv_lib_gdbm_gdbm_open+:} false; then :
30625:   $as_echo_n "(cached) " >&6
30626: else
30627:   ac_check_lib_save_LIBS=$LIBS
30628: LIBS="-lgdbm  $LIBS"
30629: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30630: /* end confdefs.h.  */
30631: 
30632: /* Override any GCC internal prototype to avoid an error.
30633:    Use char because int might match the return type of a GCC
30634:    builtin and then its argument prototype would still apply.  */
30635: #ifdef __cplusplus
30636: extern "C"
30637: #endif
30638: char gdbm_open ();
30639: int
30640: main ()
30641: {
30642: return gdbm_open ();
30643:   ;
30644:   return 0;
30645: }
30646: _ACEOF
30647: if ac_fn_c_try_link "$LINENO"; then :
30648:   ac_cv_lib_gdbm_gdbm_open=yes
30649: else
30650:   ac_cv_lib_gdbm_gdbm_open=no
30651: fi
30652: rm -f core conftest.err conftest.$ac_objext \
30653:     conftest$ac_exeext conftest.$ac_ext
30654: LIBS=$ac_check_lib_save_LIBS
30655: fi
30656: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdbm_gdbm_open" >&5
30657: $as_echo "$ac_cv_lib_gdbm_gdbm_open" >&6; }
30658: if test "x$ac_cv_lib_gdbm_gdbm_open" = xyes; then :
30659: 
30660:     LDFLAGS=$save_old_LDFLAGS
30661:     ext_shared=$save_ext_shared
30662: 
30663: 
30664: cat >>confdefs.h <<_ACEOF
30665: #define GDBM_INCLUDE_FILE "$THIS_INCLUDE"
30666: _ACEOF
30667: 
30668: 
30669: $as_echo "#define DBA_GDBM 1" >>confdefs.h
30670: 
30671:       THIS_LIBS=gdbm
30672: 
30673: 
30674: else
30675: 
30676:     LDFLAGS=$save_old_LDFLAGS
30677:     ext_shared=$save_ext_shared
30678:     unset ac_cv_lib_gdbm_gdbm_open
30679: 
30680: 
30681: fi
30682: 
30683:   fi
30684: 
30685: 
30686:   if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then
30687:     THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR
30688:   fi
30689: 
30690: 
30691:   THIS_RESULT=yes
30692:   if test -z "$THIS_INCLUDE"; then
30693:     as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5
30694:   fi
30695:   if test -z "$THIS_LIBS"; then
30696:     as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5
30697:   fi
30698: 
30699: 
30700: 
30701: 
30702:   if test "$ext_shared" = "yes"; then
30703:     DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD"
30704:     if test -n "$THIS_LFLAGS"; then
30705: 
30706:   if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
30707: 
30708:   if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
30709:     ai_p=$THIS_LFLAGS
30710:   else
30711: 
30712:     ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`
30713: 
30714:     ep_realdir=`(cd "$ep_dir" && pwd)`
30715:     ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"`
30716:   fi
30717: 
30718: 
30719:       if test "$ext_shared" = "yes"; then
30720:         DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD"
30721:         test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD"
30722:       else
30723: 
30724: 
30725: 
30726:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
30727: 
30728:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
30729:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
30730:     eval "LIBPATH$unique=set"
30731: 
30732:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
30733:     LDFLAGS="$LDFLAGS -L$ai_p"
30734:     PHP_RPATHS="$PHP_RPATHS $ai_p"
30735: 
30736:   fi
30737: 
30738: 
30739:       fi
30740: 
30741:   fi
30742: 
30743:     fi
30744:   else
30745: 
30746: 
30747:   if test -n "$THIS_LFLAGS"; then
30748: 
30749:   if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
30750: 
30751:   if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
30752:     ai_p=$THIS_LFLAGS
30753:   else
30754: 
30755:     ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`
30756: 
30757:     ep_realdir=`(cd "$ep_dir" && pwd)`
30758:     ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"`
30759:   fi
30760: 
30761: 
30762: 
30763: 
30764: 
30765:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
30766: 
30767:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
30768:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
30769:     eval "LIBPATH$unique=set"
30770: 
30771:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
30772:     LDFLAGS="$LDFLAGS -L$ai_p"
30773:     PHP_RPATHS="$PHP_RPATHS $ai_p"
30774: 
30775:   fi
30776: 
30777: 
30778: 
30779:   fi
30780: 
30781:   fi
30782: 
30783: 
30784:   case $THIS_LIBS in
30785:   c|c_r|pthread*) ;;
30786:   *)
30787:       LIBS="-l$THIS_LIBS $LIBS"
30788:    ;;
30789:   esac
30790: 
30791: 
30792: 
30793: 
30794:   fi
30795: 
30796: 
30797:   unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX
30798: 
30799: fi
30800: 
30801:   THIS_NAME=GDBM
30802:   if test -n ""; then
30803:     THIS_FULL_NAME=""
30804:   else
30805:     THIS_FULL_NAME="$THIS_NAME"
30806:   fi
30807:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5
30808: $as_echo_n "checking for $THIS_FULL_NAME support... " >&6; }
30809:   if test -n ""; then
30810:     as_fn_error $? "" "$LINENO" 5
30811:   fi
30812:   if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
30813:     HAVE_DBA=1
30814:     eval HAVE_$THIS_NAME=1
30815:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5
30816: $as_echo "$THIS_RESULT" >&6; }
30817:   else
30818:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30819: $as_echo "no" >&6; }
30820:   fi
30821:   unset THIS_RESULT THIS_NAME THIS_FULL_NAME
30822: 
30823: 
30824: # NDBM
30825: if test "$PHP_NDBM" != "no"; then
30826: 
30827:   unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT
30828: 
30829:   for i in $PHP_NDBM /usr/local /usr; do
30830:     if test -f "$i/include/ndbm.h"; then
30831:       THIS_PREFIX=$i
30832:       THIS_INCLUDE=$i/include/ndbm.h
30833:       break
30834:     elif test -f "$i/include/db1/ndbm.h"; then
30835:       THIS_PREFIX=$i
30836:       THIS_INCLUDE=$i/include/db1/ndbm.h
30837:       break
30838:     fi
30839:   done
30840: 
30841:   if test -n "$THIS_INCLUDE"; then
30842:     for LIB in ndbm db1 c; do
30843: 
30844:   save_old_LDFLAGS=$LDFLAGS
30845:   ac_stuff="-L$THIS_PREFIX/$PHP_LIBDIR"
30846: 
30847:   save_ext_shared=$ext_shared
30848:   ext_shared=yes
30849: 
30850:   for ac_i in $ac_stuff; do
30851:     case $ac_i in
30852:     -pthread)
30853:       if test "$ext_shared" = "yes"; then
30854:         LDFLAGS="$LDFLAGS -pthread"
30855:       else
30856: 
30857: 
30858:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
30859: 
30860:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
30861:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
30862:     eval "EXTRA_LDFLAGS$unique=set"
30863:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
30864:   fi
30865: 
30866:       fi
30867:     ;;
30868:     -l*)
30869:       ac_ii=`echo $ac_i|cut -c 3-`
30870: 
30871: 
30872:   case $ac_ii in
30873:   c|c_r|pthread*) ;;
30874:   *)
30875:     if test "$ext_shared" = "yes"; then
30876:         LDFLAGS="$LDFLAGS -l$ac_ii"
30877:     else
30878: 
30879: 
30880:   case $ac_ii in
30881:   c|c_r|pthread*) ;;
30882:   *)
30883:       LIBS="$LIBS -l$ac_ii"
30884:    ;;
30885:   esac
30886: 
30887: 
30888:     fi
30889:    ;;
30890:   esac
30891: 
30892: 
30893:     ;;
30894:     -L*)
30895:       ac_ii=`echo $ac_i|cut -c 3-`
30896: 
30897:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
30898: 
30899:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
30900:     ai_p=$ac_ii
30901:   else
30902: 
30903:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
30904: 
30905:     ep_realdir=`(cd "$ep_dir" && pwd)`
30906:     ai_p="$ep_realdir"/`basename "$ac_ii"`
30907:   fi
30908: 
30909: 
30910:       if test "$ext_shared" = "yes"; then
30911:         LDFLAGS="-L$ai_p $LDFLAGS"
30912:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
30913:       else
30914: 
30915: 
30916: 
30917:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
30918: 
30919:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
30920:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
30921:     eval "LIBPATH$unique=set"
30922: 
30923:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
30924:     LDFLAGS="$LDFLAGS -L$ai_p"
30925:     PHP_RPATHS="$PHP_RPATHS $ai_p"
30926: 
30927:   fi
30928: 
30929: 
30930:       fi
30931: 
30932:   fi
30933: 
30934:     ;;
30935:     esac
30936:   done
30937: 
30938:   as_ac_Lib=`$as_echo "ac_cv_lib_$LIB''_dbm_open" | $as_tr_sh`
30939: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbm_open in -l$LIB" >&5
30940: $as_echo_n "checking for dbm_open in -l$LIB... " >&6; }
30941: if eval \${$as_ac_Lib+:} false; then :
30942:   $as_echo_n "(cached) " >&6
30943: else
30944:   ac_check_lib_save_LIBS=$LIBS
30945: LIBS="-l$LIB  $LIBS"
30946: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30947: /* end confdefs.h.  */
30948: 
30949: /* Override any GCC internal prototype to avoid an error.
30950:    Use char because int might match the return type of a GCC
30951:    builtin and then its argument prototype would still apply.  */
30952: #ifdef __cplusplus
30953: extern "C"
30954: #endif
30955: char dbm_open ();
30956: int
30957: main ()
30958: {
30959: return dbm_open ();
30960:   ;
30961:   return 0;
30962: }
30963: _ACEOF
30964: if ac_fn_c_try_link "$LINENO"; then :
30965:   eval "$as_ac_Lib=yes"
30966: else
30967:   eval "$as_ac_Lib=no"
30968: fi
30969: rm -f core conftest.err conftest.$ac_objext \
30970:     conftest$ac_exeext conftest.$ac_ext
30971: LIBS=$ac_check_lib_save_LIBS
30972: fi
30973: eval ac_res=\$$as_ac_Lib
30974: 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
30975: $as_echo "$ac_res" >&6; }
30976: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
30977: 
30978:     LDFLAGS=$save_old_LDFLAGS
30979:     ext_shared=$save_ext_shared
30980: 
30981: 
30982: cat >>confdefs.h <<_ACEOF
30983: #define NDBM_INCLUDE_FILE "$THIS_INCLUDE"
30984: _ACEOF
30985: 
30986: 
30987: $as_echo "#define DBA_NDBM 1" >>confdefs.h
30988: 
30989:         THIS_LIBS=$LIB
30990: 
30991: 
30992: else
30993: 
30994:     LDFLAGS=$save_old_LDFLAGS
30995:     ext_shared=$save_ext_shared
30996:     unset ac_cv_lib_$LIB_dbm_open
30997: 
30998: 
30999: fi
31000: 
31001:       if test -n "$THIS_LIBS"; then
31002:         break
31003:       fi
31004:     done
31005:   fi
31006: 
31007: 
31008:   if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then
31009:     THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR
31010:   fi
31011: 
31012: 
31013:   THIS_RESULT=yes
31014:   if test -z "$THIS_INCLUDE"; then
31015:     as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5
31016:   fi
31017:   if test -z "$THIS_LIBS"; then
31018:     as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5
31019:   fi
31020: 
31021: 
31022: 
31023: 
31024:   if test "$ext_shared" = "yes"; then
31025:     DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD"
31026:     if test -n "$THIS_LFLAGS"; then
31027: 
31028:   if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
31029: 
31030:   if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
31031:     ai_p=$THIS_LFLAGS
31032:   else
31033: 
31034:     ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`
31035: 
31036:     ep_realdir=`(cd "$ep_dir" && pwd)`
31037:     ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"`
31038:   fi
31039: 
31040: 
31041:       if test "$ext_shared" = "yes"; then
31042:         DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD"
31043:         test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD"
31044:       else
31045: 
31046: 
31047: 
31048:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
31049: 
31050:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
31051:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
31052:     eval "LIBPATH$unique=set"
31053: 
31054:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
31055:     LDFLAGS="$LDFLAGS -L$ai_p"
31056:     PHP_RPATHS="$PHP_RPATHS $ai_p"
31057: 
31058:   fi
31059: 
31060: 
31061:       fi
31062: 
31063:   fi
31064: 
31065:     fi
31066:   else
31067: 
31068: 
31069:   if test -n "$THIS_LFLAGS"; then
31070: 
31071:   if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
31072: 
31073:   if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
31074:     ai_p=$THIS_LFLAGS
31075:   else
31076: 
31077:     ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`
31078: 
31079:     ep_realdir=`(cd "$ep_dir" && pwd)`
31080:     ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"`
31081:   fi
31082: 
31083: 
31084: 
31085: 
31086: 
31087:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
31088: 
31089:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
31090:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
31091:     eval "LIBPATH$unique=set"
31092: 
31093:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
31094:     LDFLAGS="$LDFLAGS -L$ai_p"
31095:     PHP_RPATHS="$PHP_RPATHS $ai_p"
31096: 
31097:   fi
31098: 
31099: 
31100: 
31101:   fi
31102: 
31103:   fi
31104: 
31105: 
31106:   case $THIS_LIBS in
31107:   c|c_r|pthread*) ;;
31108:   *)
31109:       LIBS="-l$THIS_LIBS $LIBS"
31110:    ;;
31111:   esac
31112: 
31113: 
31114: 
31115: 
31116:   fi
31117: 
31118: 
31119:   unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX
31120: 
31121: fi
31122: 
31123:   THIS_NAME=NDBM
31124:   if test -n ""; then
31125:     THIS_FULL_NAME=""
31126:   else
31127:     THIS_FULL_NAME="$THIS_NAME"
31128:   fi
31129:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5
31130: $as_echo_n "checking for $THIS_FULL_NAME support... " >&6; }
31131:   if test -n ""; then
31132:     as_fn_error $? "" "$LINENO" 5
31133:   fi
31134:   if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
31135:     HAVE_DBA=1
31136:     eval HAVE_$THIS_NAME=1
31137:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5
31138: $as_echo "$THIS_RESULT" >&6; }
31139:   else
31140:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31141: $as_echo "no" >&6; }
31142:   fi
31143:   unset THIS_RESULT THIS_NAME THIS_FULL_NAME
31144: 
31145: 
31146: if test "$PHP_TCADB" != "no"; then
31147: 
31148:   unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT
31149: 
31150:   for i in $PHP_TCADB /usr/local /usr; do
31151: 	if test -f "$i/include/tcadb.h"; then
31152: 	  THIS_PREFIX=$i
31153: 
31154:   if test "$THIS_PREFIX/include" != "/usr/include"; then
31155: 
31156:   if test -z "$THIS_PREFIX/include" || echo "$THIS_PREFIX/include" | grep '^/' >/dev/null ; then
31157:     ai_p=$THIS_PREFIX/include
31158:   else
31159: 
31160:     ep_dir=`echo $THIS_PREFIX/include|$SED 's%/*[^/][^/]*/*$%%'`
31161: 
31162:     ep_realdir=`(cd "$ep_dir" && pwd)`
31163:     ai_p="$ep_realdir"/`basename "$THIS_PREFIX/include"`
31164:   fi
31165: 
31166: 
31167: 
31168:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
31169: 
31170:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
31171:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
31172:     eval "INCLUDEPATH$unique=set"
31173: 
31174:       if test ""; then
31175:         INCLUDES="-I$ai_p $INCLUDES"
31176:       else
31177:         INCLUDES="$INCLUDES -I$ai_p"
31178:       fi
31179: 
31180:   fi
31181: 
31182:   fi
31183: 
31184: 	  THIS_INCLUDE=$i/include/tcadb.h
31185: 	  break
31186: 	fi
31187:   done
31188: 
31189:   if test -n "$THIS_INCLUDE"; then
31190: 	for LIB in tokyocabinet; do
31191: 
31192:   save_old_LDFLAGS=$LDFLAGS
31193:   ac_stuff="-L$THIS_PREFIX/$PHP_LIBDIR"
31194: 
31195:   save_ext_shared=$ext_shared
31196:   ext_shared=yes
31197: 
31198:   for ac_i in $ac_stuff; do
31199:     case $ac_i in
31200:     -pthread)
31201:       if test "$ext_shared" = "yes"; then
31202:         LDFLAGS="$LDFLAGS -pthread"
31203:       else
31204: 
31205: 
31206:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
31207: 
31208:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
31209:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
31210:     eval "EXTRA_LDFLAGS$unique=set"
31211:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
31212:   fi
31213: 
31214:       fi
31215:     ;;
31216:     -l*)
31217:       ac_ii=`echo $ac_i|cut -c 3-`
31218: 
31219: 
31220:   case $ac_ii in
31221:   c|c_r|pthread*) ;;
31222:   *)
31223:     if test "$ext_shared" = "yes"; then
31224:         LDFLAGS="$LDFLAGS -l$ac_ii"
31225:     else
31226: 
31227: 
31228:   case $ac_ii in
31229:   c|c_r|pthread*) ;;
31230:   *)
31231:       LIBS="$LIBS -l$ac_ii"
31232:    ;;
31233:   esac
31234: 
31235: 
31236:     fi
31237:    ;;
31238:   esac
31239: 
31240: 
31241:     ;;
31242:     -L*)
31243:       ac_ii=`echo $ac_i|cut -c 3-`
31244: 
31245:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
31246: 
31247:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
31248:     ai_p=$ac_ii
31249:   else
31250: 
31251:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
31252: 
31253:     ep_realdir=`(cd "$ep_dir" && pwd)`
31254:     ai_p="$ep_realdir"/`basename "$ac_ii"`
31255:   fi
31256: 
31257: 
31258:       if test "$ext_shared" = "yes"; then
31259:         LDFLAGS="-L$ai_p $LDFLAGS"
31260:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
31261:       else
31262: 
31263: 
31264: 
31265:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
31266: 
31267:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
31268:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
31269:     eval "LIBPATH$unique=set"
31270: 
31271:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
31272:     LDFLAGS="$LDFLAGS -L$ai_p"
31273:     PHP_RPATHS="$PHP_RPATHS $ai_p"
31274: 
31275:   fi
31276: 
31277: 
31278:       fi
31279: 
31280:   fi
31281: 
31282:     ;;
31283:     esac
31284:   done
31285: 
31286:   as_ac_Lib=`$as_echo "ac_cv_lib_$LIB''_tcadbopen" | $as_tr_sh`
31287: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tcadbopen in -l$LIB" >&5
31288: $as_echo_n "checking for tcadbopen in -l$LIB... " >&6; }
31289: if eval \${$as_ac_Lib+:} false; then :
31290:   $as_echo_n "(cached) " >&6
31291: else
31292:   ac_check_lib_save_LIBS=$LIBS
31293: LIBS="-l$LIB  $LIBS"
31294: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31295: /* end confdefs.h.  */
31296: 
31297: /* Override any GCC internal prototype to avoid an error.
31298:    Use char because int might match the return type of a GCC
31299:    builtin and then its argument prototype would still apply.  */
31300: #ifdef __cplusplus
31301: extern "C"
31302: #endif
31303: char tcadbopen ();
31304: int
31305: main ()
31306: {
31307: return tcadbopen ();
31308:   ;
31309:   return 0;
31310: }
31311: _ACEOF
31312: if ac_fn_c_try_link "$LINENO"; then :
31313:   eval "$as_ac_Lib=yes"
31314: else
31315:   eval "$as_ac_Lib=no"
31316: fi
31317: rm -f core conftest.err conftest.$ac_objext \
31318:     conftest$ac_exeext conftest.$ac_ext
31319: LIBS=$ac_check_lib_save_LIBS
31320: fi
31321: eval ac_res=\$$as_ac_Lib
31322: 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
31323: $as_echo "$ac_res" >&6; }
31324: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
31325: 
31326:     LDFLAGS=$save_old_LDFLAGS
31327:     ext_shared=$save_ext_shared
31328: 
31329: 
31330: cat >>confdefs.h <<_ACEOF
31331: #define TCADB_INCLUDE_FILE "$THIS_INCLUDE"
31332: _ACEOF
31333: 
31334: 
31335: $as_echo "#define DBA_TCADB 1" >>confdefs.h
31336: 
31337: 		THIS_LIBS=$LIB
31338: 
31339: 
31340: else
31341: 
31342:     LDFLAGS=$save_old_LDFLAGS
31343:     ext_shared=$save_ext_shared
31344:     unset ac_cv_lib_$LIB_tcadbopen
31345: 
31346: 
31347: fi
31348: 
31349: 	  if test -n "$THIS_LIBS"; then
31350: 		break
31351: 	  fi
31352: 	done
31353:   fi
31354: 
31355: 
31356:   if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then
31357:     THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR
31358:   fi
31359: 
31360: 
31361:   THIS_RESULT=yes
31362:   if test -z "$THIS_INCLUDE"; then
31363:     as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5
31364:   fi
31365:   if test -z "$THIS_LIBS"; then
31366:     as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5
31367:   fi
31368: 
31369: 
31370: 
31371: 
31372:   if test "$ext_shared" = "yes"; then
31373:     DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD"
31374:     if test -n "$THIS_LFLAGS"; then
31375: 
31376:   if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
31377: 
31378:   if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
31379:     ai_p=$THIS_LFLAGS
31380:   else
31381: 
31382:     ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`
31383: 
31384:     ep_realdir=`(cd "$ep_dir" && pwd)`
31385:     ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"`
31386:   fi
31387: 
31388: 
31389:       if test "$ext_shared" = "yes"; then
31390:         DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD"
31391:         test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD"
31392:       else
31393: 
31394: 
31395: 
31396:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
31397: 
31398:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
31399:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
31400:     eval "LIBPATH$unique=set"
31401: 
31402:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
31403:     LDFLAGS="$LDFLAGS -L$ai_p"
31404:     PHP_RPATHS="$PHP_RPATHS $ai_p"
31405: 
31406:   fi
31407: 
31408: 
31409:       fi
31410: 
31411:   fi
31412: 
31413:     fi
31414:   else
31415: 
31416: 
31417:   if test -n "$THIS_LFLAGS"; then
31418: 
31419:   if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
31420: 
31421:   if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
31422:     ai_p=$THIS_LFLAGS
31423:   else
31424: 
31425:     ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`
31426: 
31427:     ep_realdir=`(cd "$ep_dir" && pwd)`
31428:     ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"`
31429:   fi
31430: 
31431: 
31432: 
31433: 
31434: 
31435:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
31436: 
31437:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
31438:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
31439:     eval "LIBPATH$unique=set"
31440: 
31441:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
31442:     LDFLAGS="$LDFLAGS -L$ai_p"
31443:     PHP_RPATHS="$PHP_RPATHS $ai_p"
31444: 
31445:   fi
31446: 
31447: 
31448: 
31449:   fi
31450: 
31451:   fi
31452: 
31453: 
31454:   case $THIS_LIBS in
31455:   c|c_r|pthread*) ;;
31456:   *)
31457:       LIBS="-l$THIS_LIBS $LIBS"
31458:    ;;
31459:   esac
31460: 
31461: 
31462: 
31463: 
31464:   fi
31465: 
31466: 
31467:   unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX
31468: 
31469: fi
31470: 
31471:   THIS_NAME=TCADB
31472:   if test -n ""; then
31473:     THIS_FULL_NAME=""
31474:   else
31475:     THIS_FULL_NAME="$THIS_NAME"
31476:   fi
31477:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5
31478: $as_echo_n "checking for $THIS_FULL_NAME support... " >&6; }
31479:   if test -n ""; then
31480:     as_fn_error $? "" "$LINENO" 5
31481:   fi
31482:   if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
31483:     HAVE_DBA=1
31484:     eval HAVE_$THIS_NAME=1
31485:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5
31486: $as_echo "$THIS_RESULT" >&6; }
31487:   else
31488:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31489: $as_echo "no" >&6; }
31490:   fi
31491:   unset THIS_RESULT THIS_NAME THIS_FULL_NAME
31492: 
31493: 
31494: 
31495: 
31496: # DB4
31497: if test "$PHP_DB4" != "no"; then
31498: 
31499:   unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT
31500: 
31501:   dbdp4="/usr/local/BerkeleyDB.4."
31502:   dbdp5="/usr/local/BerkeleyDB.5."
31503:   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
31504:     if test -f "$i/db5/db.h"; then
31505:       THIS_PREFIX=$i
31506:       THIS_INCLUDE=$i/db5/db.h
31507:       break
31508:     elif test -f "$i/db4/db.h"; then
31509:       THIS_PREFIX=$i
31510:       THIS_INCLUDE=$i/db4/db.h
31511:       break
31512:     elif test -f "$i/include/db5.1/db.h"; then
31513:       THIS_PREFIX=$i
31514:       THIS_INCLUDE=$i/include/db5.1/db.h
31515:       break
31516:     elif test -f "$i/include/db5.0/db.h"; then
31517:       THIS_PREFIX=$i
31518:       THIS_INCLUDE=$i/include/db5.0/db.h
31519:       break
31520:     elif test -f "$i/include/db4.8/db.h"; then
31521:       THIS_PREFIX=$i
31522:       THIS_INCLUDE=$i/include/db4.8/db.h
31523:       break
31524:     elif test -f "$i/include/db4.7/db.h"; then
31525:       THIS_PREFIX=$i
31526:       THIS_INCLUDE=$i/include/db4.7/db.h
31527:       break
31528:     elif test -f "$i/include/db4.6/db.h"; then
31529:       THIS_PREFIX=$i
31530:       THIS_INCLUDE=$i/include/db4.6/db.h
31531:       break
31532:     elif test -f "$i/include/db4.5/db.h"; then
31533:       THIS_PREFIX=$i
31534:       THIS_INCLUDE=$i/include/db4.5/db.h
31535:       break
31536:     elif test -f "$i/include/db4/db.h"; then
31537:       THIS_PREFIX=$i
31538:       THIS_INCLUDE=$i/include/db4/db.h
31539:       break
31540:     elif test -f "$i/include/db/db4.h"; then
31541:       THIS_PREFIX=$i
31542:       THIS_INCLUDE=$i/include/db/db4.h
31543:       break
31544:     elif test -f "$i/include/db4.h"; then
31545:       THIS_PREFIX=$i
31546:       THIS_INCLUDE=$i/include/db4.h
31547:       break
31548:     elif test -f "$i/include/db.h"; then
31549:       THIS_PREFIX=$i
31550:       THIS_INCLUDE=$i/include/db.h
31551:       break
31552:     fi
31553:   done
31554: 
31555:   if test -z "$THIS_INCLUDE"; then
31556:     as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5
31557:   fi
31558:   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
31559:     if test -f $THIS_PREFIX/$PHP_LIBDIR/lib$LIB.a || test -f $THIS_PREFIX/$PHP_LIBDIR/lib$LIB.$SHLIB_SUFFIX_NAME; then
31560:       lib_found="";
31561: 
31562:   old_LDFLAGS=$LDFLAGS
31563:   LDFLAGS="-L$THIS_PREFIX/$PHP_LIBDIR $LDFLAGS"
31564:   old_LIBS=$LIBS
31565:   LIBS="-l$LIB $LIBS"
31566: 
31567:         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31568: /* end confdefs.h.  */
31569: 
31570: #include "$THIS_INCLUDE"
31571: 
31572: int
31573: main ()
31574: {
31575: 
31576:           (void)db_create((DB**)0, (DB_ENV*)0, 0);
31577: 
31578:   ;
31579:   return 0;
31580: }
31581: _ACEOF
31582: if ac_fn_c_try_link "$LINENO"; then :
31583: 
31584:           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31585: /* end confdefs.h.  */
31586: 
31587: #include "$THIS_INCLUDE"
31588: #if DB_VERSION_MAJOR == 4 || (4 == 4 && DB_VERSION_MAJOR == 5)
31589:             yes
31590: #endif
31591: 
31592: _ACEOF
31593: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31594:   $EGREP "yes" >/dev/null 2>&1; then :
31595: 
31596:             THIS_LIBS=$LIB
31597:             lib_found=1
31598: 
31599: fi
31600: rm -f conftest*
31601: 
31602: 
31603: fi
31604: rm -f core conftest.err conftest.$ac_objext \
31605:     conftest$ac_exeext conftest.$ac_ext
31606: 
31607:   LDFLAGS=$old_LDFLAGS
31608:   LIBS=$old_LIBS
31609: 
31610:       if test -n "$lib_found"; then
31611:         lib_found="";
31612:         break;
31613:       fi
31614:     fi
31615:   done
31616:   if test -z "$THIS_LIBS"; then
31617:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DB4 major version" >&5
31618: $as_echo_n "checking for DB4 major version... " >&6; }
31619:     as_fn_error $? "Header contains different version" "$LINENO" 5
31620:   fi
31621:   if test "4" = "4"; then
31622:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DB4 minor version and patch level" >&5
31623: $as_echo_n "checking for DB4 minor version and patch level... " >&6; }
31624:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31625: /* end confdefs.h.  */
31626: 
31627: #include "$THIS_INCLUDE"
31628: #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)
31629:       yes
31630: #endif
31631: 
31632: _ACEOF
31633: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31634:   $EGREP "yes" >/dev/null 2>&1; then :
31635: 
31636:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
31637: $as_echo "ok" >&6; }
31638: 
31639: else
31640: 
31641:       as_fn_error $? "Version 4.1 requires patch level 25" "$LINENO" 5
31642: 
31643: fi
31644: rm -f conftest*
31645: 
31646:   fi
31647:   if test "$ext_shared" = "yes"; then
31648:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dba can be used as shared extension" >&5
31649: $as_echo_n "checking if dba can be used as shared extension... " >&6; }
31650:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31651: /* end confdefs.h.  */
31652: 
31653: #include "$THIS_INCLUDE"
31654: #if DB_VERSION_MAJOR > 3 || (DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR > 2)
31655:       yes
31656: #endif
31657: 
31658: _ACEOF
31659: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31660:   $EGREP "yes" >/dev/null 2>&1; then :
31661: 
31662:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31663: $as_echo "yes" >&6; }
31664: 
31665: else
31666: 
31667:       as_fn_error $? "At least version 3.3 is required" "$LINENO" 5
31668: 
31669: fi
31670: rm -f conftest*
31671: 
31672:   fi
31673:   if test -n "$THIS_LIBS"; then
31674: 
31675: $as_echo "#define DBA_DB4 1" >>confdefs.h
31676: 
31677:     if test -n "$THIS_INCLUDE"; then
31678: 
31679: cat >>confdefs.h <<_ACEOF
31680: #define DB4_INCLUDE_FILE "$THIS_INCLUDE"
31681: _ACEOF
31682: 
31683:     fi
31684:   else
31685:     as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5
31686:   fi
31687:   THIS_RESULT=yes
31688:   DB4_LIBS=$THIS_LIBS
31689:   DB4_PREFIX=$THIS_PREFIX
31690:   DB4_INCLUDE=$THIS_INCLUDE
31691: 
31692:   if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then
31693:     THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR
31694:   fi
31695: 
31696: 
31697: 
31698: 
31699:   if test "$ext_shared" = "yes"; then
31700:     DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD"
31701:     if test -n "$THIS_LFLAGS"; then
31702: 
31703:   if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
31704: 
31705:   if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
31706:     ai_p=$THIS_LFLAGS
31707:   else
31708: 
31709:     ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`
31710: 
31711:     ep_realdir=`(cd "$ep_dir" && pwd)`
31712:     ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"`
31713:   fi
31714: 
31715: 
31716:       if test "$ext_shared" = "yes"; then
31717:         DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD"
31718:         test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD"
31719:       else
31720: 
31721: 
31722: 
31723:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
31724: 
31725:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
31726:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
31727:     eval "LIBPATH$unique=set"
31728: 
31729:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
31730:     LDFLAGS="$LDFLAGS -L$ai_p"
31731:     PHP_RPATHS="$PHP_RPATHS $ai_p"
31732: 
31733:   fi
31734: 
31735: 
31736:       fi
31737: 
31738:   fi
31739: 
31740:     fi
31741:   else
31742: 
31743: 
31744:   if test -n "$THIS_LFLAGS"; then
31745: 
31746:   if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
31747: 
31748:   if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
31749:     ai_p=$THIS_LFLAGS
31750:   else
31751: 
31752:     ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`
31753: 
31754:     ep_realdir=`(cd "$ep_dir" && pwd)`
31755:     ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"`
31756:   fi
31757: 
31758: 
31759: 
31760: 
31761: 
31762:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
31763: 
31764:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
31765:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
31766:     eval "LIBPATH$unique=set"
31767: 
31768:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
31769:     LDFLAGS="$LDFLAGS -L$ai_p"
31770:     PHP_RPATHS="$PHP_RPATHS $ai_p"
31771: 
31772:   fi
31773: 
31774: 
31775: 
31776:   fi
31777: 
31778:   fi
31779: 
31780: 
31781:   case $THIS_LIBS in
31782:   c|c_r|pthread*) ;;
31783:   *)
31784:       LIBS="-l$THIS_LIBS $LIBS"
31785:    ;;
31786:   esac
31787: 
31788: 
31789: 
31790: 
31791:   fi
31792: 
31793: 
31794:   unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX
31795: 
31796: 
31797: fi
31798: 
31799:   THIS_NAME=DB4
31800:   if test -n "Berkeley DB4"; then
31801:     THIS_FULL_NAME="Berkeley DB4"
31802:   else
31803:     THIS_FULL_NAME="$THIS_NAME"
31804:   fi
31805:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5
31806: $as_echo_n "checking for $THIS_FULL_NAME support... " >&6; }
31807:   if test -n ""; then
31808:     as_fn_error $? "" "$LINENO" 5
31809:   fi
31810:   if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
31811:     HAVE_DBA=1
31812:     eval HAVE_$THIS_NAME=1
31813:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5
31814: $as_echo "$THIS_RESULT" >&6; }
31815:   else
31816:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31817: $as_echo "no" >&6; }
31818:   fi
31819:   unset THIS_RESULT THIS_NAME THIS_FULL_NAME
31820: 
31821: 
31822: # DB3
31823: if test "$PHP_DB3" != "no"; then
31824: 
31825:   unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT
31826: 
31827:   if test "$HAVE_DB4" = "1"; then
31828: 
31829:   THIS_NAME=DB3
31830:   if test -n "Berkeley DB3"; then
31831:     THIS_FULL_NAME="Berkeley DB3"
31832:   else
31833:     THIS_FULL_NAME="$THIS_NAME"
31834:   fi
31835:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5
31836: $as_echo_n "checking for $THIS_FULL_NAME support... " >&6; }
31837:   if test -n "You cannot combine --with-db3 with --with-db4"; then
31838:     as_fn_error $? "You cannot combine --with-db3 with --with-db4" "$LINENO" 5
31839:   fi
31840:   if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
31841:     HAVE_DBA=1
31842:     eval HAVE_$THIS_NAME=1
31843:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5
31844: $as_echo "$THIS_RESULT" >&6; }
31845:   else
31846:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31847: $as_echo "no" >&6; }
31848:   fi
31849:   unset THIS_RESULT THIS_NAME THIS_FULL_NAME
31850: 
31851:   fi
31852:   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
31853:     if test -f "$i/db3/db.h"; then
31854:       THIS_PREFIX=$i
31855:       THIS_INCLUDE=$i/include/db3/db.h
31856:       break
31857:     elif test -f "$i/include/db3/db.h"; then
31858:       THIS_PREFIX=$i
31859:       THIS_INCLUDE=$i/include/db3/db.h
31860:       break
31861:     elif test -f "$i/include/db/db3.h"; then
31862:       THIS_PREFIX=$i
31863:       THIS_INCLUDE=$i/include/db/db3.h
31864:       break
31865:     elif test -f "$i/include/db3.h"; then
31866:       THIS_PREFIX=$i
31867:       THIS_INCLUDE=$i/include/db3.h
31868:       break
31869:     elif test -f "$i/include/db.h"; then
31870:       THIS_PREFIX=$i
31871:       THIS_INCLUDE=$i/include/db.h
31872:       break
31873:     fi
31874:   done
31875: 
31876:   if test -z "$THIS_INCLUDE"; then
31877:     as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5
31878:   fi
31879:   for LIB in db-3.3 db-3.2 db-3.1 db-3.0 db-3 db3 db; do
31880:     if test -f $THIS_PREFIX/$PHP_LIBDIR/lib$LIB.a || test -f $THIS_PREFIX/$PHP_LIBDIR/lib$LIB.$SHLIB_SUFFIX_NAME; then
31881:       lib_found="";
31882: 
31883:   old_LDFLAGS=$LDFLAGS
31884:   LDFLAGS="-L$THIS_PREFIX/$PHP_LIBDIR $LDFLAGS"
31885:   old_LIBS=$LIBS
31886:   LIBS="-l$LIB $LIBS"
31887: 
31888:         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31889: /* end confdefs.h.  */
31890: 
31891: #include "$THIS_INCLUDE"
31892: 
31893: int
31894: main ()
31895: {
31896: 
31897:           (void)db_create((DB**)0, (DB_ENV*)0, 0);
31898: 
31899:   ;
31900:   return 0;
31901: }
31902: _ACEOF
31903: if ac_fn_c_try_link "$LINENO"; then :
31904: 
31905:           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31906: /* end confdefs.h.  */
31907: 
31908: #include "$THIS_INCLUDE"
31909: #if DB_VERSION_MAJOR == 3 || (3 == 4 && DB_VERSION_MAJOR == 5)
31910:             yes
31911: #endif
31912: 
31913: _ACEOF
31914: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31915:   $EGREP "yes" >/dev/null 2>&1; then :
31916: 
31917:             THIS_LIBS=$LIB
31918:             lib_found=1
31919: 
31920: fi
31921: rm -f conftest*
31922: 
31923: 
31924: fi
31925: rm -f core conftest.err conftest.$ac_objext \
31926:     conftest$ac_exeext conftest.$ac_ext
31927: 
31928:   LDFLAGS=$old_LDFLAGS
31929:   LIBS=$old_LIBS
31930: 
31931:       if test -n "$lib_found"; then
31932:         lib_found="";
31933:         break;
31934:       fi
31935:     fi
31936:   done
31937:   if test -z "$THIS_LIBS"; then
31938:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DB3 major version" >&5
31939: $as_echo_n "checking for DB3 major version... " >&6; }
31940:     as_fn_error $? "Header contains different version" "$LINENO" 5
31941:   fi
31942:   if test "3" = "4"; then
31943:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DB4 minor version and patch level" >&5
31944: $as_echo_n "checking for DB4 minor version and patch level... " >&6; }
31945:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31946: /* end confdefs.h.  */
31947: 
31948: #include "$THIS_INCLUDE"
31949: #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)
31950:       yes
31951: #endif
31952: 
31953: _ACEOF
31954: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31955:   $EGREP "yes" >/dev/null 2>&1; then :
31956: 
31957:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
31958: $as_echo "ok" >&6; }
31959: 
31960: else
31961: 
31962:       as_fn_error $? "Version 4.1 requires patch level 25" "$LINENO" 5
31963: 
31964: fi
31965: rm -f conftest*
31966: 
31967:   fi
31968:   if test "$ext_shared" = "yes"; then
31969:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dba can be used as shared extension" >&5
31970: $as_echo_n "checking if dba can be used as shared extension... " >&6; }
31971:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31972: /* end confdefs.h.  */
31973: 
31974: #include "$THIS_INCLUDE"
31975: #if DB_VERSION_MAJOR > 3 || (DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR > 2)
31976:       yes
31977: #endif
31978: 
31979: _ACEOF
31980: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31981:   $EGREP "yes" >/dev/null 2>&1; then :
31982: 
31983:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31984: $as_echo "yes" >&6; }
31985: 
31986: else
31987: 
31988:       as_fn_error $? "At least version 3.3 is required" "$LINENO" 5
31989: 
31990: fi
31991: rm -f conftest*
31992: 
31993:   fi
31994:   if test -n "$THIS_LIBS"; then
31995: 
31996: $as_echo "#define DBA_DB3 1" >>confdefs.h
31997: 
31998:     if test -n "$THIS_INCLUDE"; then
31999: 
32000: cat >>confdefs.h <<_ACEOF
32001: #define DB3_INCLUDE_FILE "$THIS_INCLUDE"
32002: _ACEOF
32003: 
32004:     fi
32005:   else
32006:     as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5
32007:   fi
32008:   THIS_RESULT=yes
32009:   DB3_LIBS=$THIS_LIBS
32010:   DB3_PREFIX=$THIS_PREFIX
32011:   DB3_INCLUDE=$THIS_INCLUDE
32012: 
32013:   if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then
32014:     THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR
32015:   fi
32016: 
32017: 
32018: 
32019: 
32020:   if test "$ext_shared" = "yes"; then
32021:     DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD"
32022:     if test -n "$THIS_LFLAGS"; then
32023: 
32024:   if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
32025: 
32026:   if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
32027:     ai_p=$THIS_LFLAGS
32028:   else
32029: 
32030:     ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`
32031: 
32032:     ep_realdir=`(cd "$ep_dir" && pwd)`
32033:     ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"`
32034:   fi
32035: 
32036: 
32037:       if test "$ext_shared" = "yes"; then
32038:         DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD"
32039:         test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD"
32040:       else
32041: 
32042: 
32043: 
32044:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
32045: 
32046:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
32047:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
32048:     eval "LIBPATH$unique=set"
32049: 
32050:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
32051:     LDFLAGS="$LDFLAGS -L$ai_p"
32052:     PHP_RPATHS="$PHP_RPATHS $ai_p"
32053: 
32054:   fi
32055: 
32056: 
32057:       fi
32058: 
32059:   fi
32060: 
32061:     fi
32062:   else
32063: 
32064: 
32065:   if test -n "$THIS_LFLAGS"; then
32066: 
32067:   if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
32068: 
32069:   if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
32070:     ai_p=$THIS_LFLAGS
32071:   else
32072: 
32073:     ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`
32074: 
32075:     ep_realdir=`(cd "$ep_dir" && pwd)`
32076:     ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"`
32077:   fi
32078: 
32079: 
32080: 
32081: 
32082: 
32083:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
32084: 
32085:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
32086:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
32087:     eval "LIBPATH$unique=set"
32088: 
32089:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
32090:     LDFLAGS="$LDFLAGS -L$ai_p"
32091:     PHP_RPATHS="$PHP_RPATHS $ai_p"
32092: 
32093:   fi
32094: 
32095: 
32096: 
32097:   fi
32098: 
32099:   fi
32100: 
32101: 
32102:   case $THIS_LIBS in
32103:   c|c_r|pthread*) ;;
32104:   *)
32105:       LIBS="-l$THIS_LIBS $LIBS"
32106:    ;;
32107:   esac
32108: 
32109: 
32110: 
32111: 
32112:   fi
32113: 
32114: 
32115:   unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX
32116: 
32117: 
32118: fi
32119: 
32120:   THIS_NAME=DB3
32121:   if test -n "Berkeley DB3"; then
32122:     THIS_FULL_NAME="Berkeley DB3"
32123:   else
32124:     THIS_FULL_NAME="$THIS_NAME"
32125:   fi
32126:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5
32127: $as_echo_n "checking for $THIS_FULL_NAME support... " >&6; }
32128:   if test -n ""; then
32129:     as_fn_error $? "" "$LINENO" 5
32130:   fi
32131:   if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
32132:     HAVE_DBA=1
32133:     eval HAVE_$THIS_NAME=1
32134:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5
32135: $as_echo "$THIS_RESULT" >&6; }
32136:   else
32137:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32138: $as_echo "no" >&6; }
32139:   fi
32140:   unset THIS_RESULT THIS_NAME THIS_FULL_NAME
32141: 
32142: 
32143: # DB2
32144: if test "$PHP_DB2" != "no"; then
32145: 
32146:   unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT
32147: 
32148:   if test "$HAVE_DB3" = "1" || test "$HAVE_DB4" = "1"; then
32149: 
32150:   THIS_NAME=DB2
32151:   if test -n "Berkeley DB2"; then
32152:     THIS_FULL_NAME="Berkeley DB2"
32153:   else
32154:     THIS_FULL_NAME="$THIS_NAME"
32155:   fi
32156:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5
32157: $as_echo_n "checking for $THIS_FULL_NAME support... " >&6; }
32158:   if test -n "You cannot combine --with-db2 with --with-db3 or --with-db4"; then
32159:     as_fn_error $? "You cannot combine --with-db2 with --with-db3 or --with-db4" "$LINENO" 5
32160:   fi
32161:   if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
32162:     HAVE_DBA=1
32163:     eval HAVE_$THIS_NAME=1
32164:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5
32165: $as_echo "$THIS_RESULT" >&6; }
32166:   else
32167:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32168: $as_echo "no" >&6; }
32169:   fi
32170:   unset THIS_RESULT THIS_NAME THIS_FULL_NAME
32171: 
32172:   fi
32173:   for i in $PHP_DB2 $PHP_DB2/BerkeleyDB /usr/BerkeleyDB /usr/local /usr; do
32174:     if test -f "$i/db2/db.h"; then
32175:       THIS_PREFIX=$i
32176:       THIS_INCLUDE=$i/db2/db.h
32177:       break
32178:     elif test -f "$i/include/db2/db.h"; then
32179:       THIS_PREFIX=$i
32180:       THIS_INCLUDE=$i/include/db2/db.h
32181:       break
32182:     elif test -f "$i/include/db/db2.h"; then
32183:       THIS_PREFIX=$i
32184:       THIS_INCLUDE=$i/include/db/db2.h
32185:       break
32186:     elif test -f "$i/include/db2.h"; then
32187:       THIS_PREFIX=$i
32188:       THIS_INCLUDE=$i/include/db2.h
32189:       break
32190:     elif test -f "$i/include/db.h"; then
32191:       THIS_PREFIX=$i
32192:       THIS_INCLUDE=$i/include/db.h
32193:       break
32194:     fi
32195:   done
32196: 
32197:   if test -z "$THIS_INCLUDE"; then
32198:     as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5
32199:   fi
32200:   for LIB in db-2 db2 db; do
32201:     if test -f $THIS_PREFIX/$PHP_LIBDIR/lib$LIB.a || test -f $THIS_PREFIX/$PHP_LIBDIR/lib$LIB.$SHLIB_SUFFIX_NAME; then
32202:       lib_found="";
32203: 
32204:   old_LDFLAGS=$LDFLAGS
32205:   LDFLAGS="-L$THIS_PREFIX/$PHP_LIBDIR $LDFLAGS"
32206:   old_LIBS=$LIBS
32207:   LIBS="-l$LIB $LIBS"
32208: 
32209:         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32210: /* end confdefs.h.  */
32211: 
32212: #include "$THIS_INCLUDE"
32213: 
32214: int
32215: main ()
32216: {
32217: 
32218:           (void)db_appinit("", NULL, (DB_ENV*)0, 0);
32219: 
32220:   ;
32221:   return 0;
32222: }
32223: _ACEOF
32224: if ac_fn_c_try_link "$LINENO"; then :
32225: 
32226:           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32227: /* end confdefs.h.  */
32228: 
32229: #include "$THIS_INCLUDE"
32230: #if DB_VERSION_MAJOR == 2 || (2 == 4 && DB_VERSION_MAJOR == 5)
32231:             yes
32232: #endif
32233: 
32234: _ACEOF
32235: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32236:   $EGREP "yes" >/dev/null 2>&1; then :
32237: 
32238:             THIS_LIBS=$LIB
32239:             lib_found=1
32240: 
32241: fi
32242: rm -f conftest*
32243: 
32244: 
32245: fi
32246: rm -f core conftest.err conftest.$ac_objext \
32247:     conftest$ac_exeext conftest.$ac_ext
32248: 
32249:   LDFLAGS=$old_LDFLAGS
32250:   LIBS=$old_LIBS
32251: 
32252:       if test -n "$lib_found"; then
32253:         lib_found="";
32254:         break;
32255:       fi
32256:     fi
32257:   done
32258:   if test -z "$THIS_LIBS"; then
32259:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DB2 major version" >&5
32260: $as_echo_n "checking for DB2 major version... " >&6; }
32261:     as_fn_error $? "Header contains different version" "$LINENO" 5
32262:   fi
32263:   if test "2" = "4"; then
32264:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DB4 minor version and patch level" >&5
32265: $as_echo_n "checking for DB4 minor version and patch level... " >&6; }
32266:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32267: /* end confdefs.h.  */
32268: 
32269: #include "$THIS_INCLUDE"
32270: #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)
32271:       yes
32272: #endif
32273: 
32274: _ACEOF
32275: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32276:   $EGREP "yes" >/dev/null 2>&1; then :
32277: 
32278:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
32279: $as_echo "ok" >&6; }
32280: 
32281: else
32282: 
32283:       as_fn_error $? "Version 4.1 requires patch level 25" "$LINENO" 5
32284: 
32285: fi
32286: rm -f conftest*
32287: 
32288:   fi
32289:   if test "$ext_shared" = "yes"; then
32290:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dba can be used as shared extension" >&5
32291: $as_echo_n "checking if dba can be used as shared extension... " >&6; }
32292:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32293: /* end confdefs.h.  */
32294: 
32295: #include "$THIS_INCLUDE"
32296: #if DB_VERSION_MAJOR > 3 || (DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR > 2)
32297:       yes
32298: #endif
32299: 
32300: _ACEOF
32301: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32302:   $EGREP "yes" >/dev/null 2>&1; then :
32303: 
32304:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32305: $as_echo "yes" >&6; }
32306: 
32307: else
32308: 
32309:       as_fn_error $? "At least version 3.3 is required" "$LINENO" 5
32310: 
32311: fi
32312: rm -f conftest*
32313: 
32314:   fi
32315:   if test -n "$THIS_LIBS"; then
32316: 
32317: $as_echo "#define DBA_DB2 1" >>confdefs.h
32318: 
32319:     if test -n "$THIS_INCLUDE"; then
32320: 
32321: cat >>confdefs.h <<_ACEOF
32322: #define DB2_INCLUDE_FILE "$THIS_INCLUDE"
32323: _ACEOF
32324: 
32325:     fi
32326:   else
32327:     as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5
32328:   fi
32329:   THIS_RESULT=yes
32330:   DB2_LIBS=$THIS_LIBS
32331:   DB2_PREFIX=$THIS_PREFIX
32332:   DB2_INCLUDE=$THIS_INCLUDE
32333: 
32334:   if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then
32335:     THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR
32336:   fi
32337: 
32338: 
32339: 
32340: 
32341:   if test "$ext_shared" = "yes"; then
32342:     DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD"
32343:     if test -n "$THIS_LFLAGS"; then
32344: 
32345:   if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
32346: 
32347:   if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
32348:     ai_p=$THIS_LFLAGS
32349:   else
32350: 
32351:     ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`
32352: 
32353:     ep_realdir=`(cd "$ep_dir" && pwd)`
32354:     ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"`
32355:   fi
32356: 
32357: 
32358:       if test "$ext_shared" = "yes"; then
32359:         DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD"
32360:         test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD"
32361:       else
32362: 
32363: 
32364: 
32365:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
32366: 
32367:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
32368:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
32369:     eval "LIBPATH$unique=set"
32370: 
32371:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
32372:     LDFLAGS="$LDFLAGS -L$ai_p"
32373:     PHP_RPATHS="$PHP_RPATHS $ai_p"
32374: 
32375:   fi
32376: 
32377: 
32378:       fi
32379: 
32380:   fi
32381: 
32382:     fi
32383:   else
32384: 
32385: 
32386:   if test -n "$THIS_LFLAGS"; then
32387: 
32388:   if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
32389: 
32390:   if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
32391:     ai_p=$THIS_LFLAGS
32392:   else
32393: 
32394:     ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`
32395: 
32396:     ep_realdir=`(cd "$ep_dir" && pwd)`
32397:     ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"`
32398:   fi
32399: 
32400: 
32401: 
32402: 
32403: 
32404:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
32405: 
32406:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
32407:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
32408:     eval "LIBPATH$unique=set"
32409: 
32410:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
32411:     LDFLAGS="$LDFLAGS -L$ai_p"
32412:     PHP_RPATHS="$PHP_RPATHS $ai_p"
32413: 
32414:   fi
32415: 
32416: 
32417: 
32418:   fi
32419: 
32420:   fi
32421: 
32422: 
32423:   case $THIS_LIBS in
32424:   c|c_r|pthread*) ;;
32425:   *)
32426:       LIBS="-l$THIS_LIBS $LIBS"
32427:    ;;
32428:   esac
32429: 
32430: 
32431: 
32432: 
32433:   fi
32434: 
32435: 
32436:   unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX
32437: 
32438: 
32439: fi
32440: 
32441:   THIS_NAME=DB2
32442:   if test -n "Berkeley DB2"; then
32443:     THIS_FULL_NAME="Berkeley DB2"
32444:   else
32445:     THIS_FULL_NAME="$THIS_NAME"
32446:   fi
32447:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5
32448: $as_echo_n "checking for $THIS_FULL_NAME support... " >&6; }
32449:   if test -n ""; then
32450:     as_fn_error $? "" "$LINENO" 5
32451:   fi
32452:   if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
32453:     HAVE_DBA=1
32454:     eval HAVE_$THIS_NAME=1
32455:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5
32456: $as_echo "$THIS_RESULT" >&6; }
32457:   else
32458:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32459: $as_echo "no" >&6; }
32460:   fi
32461:   unset THIS_RESULT THIS_NAME THIS_FULL_NAME
32462: 
32463: 
32464: # DB1
32465: if test "$PHP_DB1" != "no"; then
32466: 
32467:   unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT
32468: 
32469:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DB1 in library" >&5
32470: $as_echo_n "checking for DB1 in library... " >&6; }
32471:   if test "$HAVE_DB4" = "1"; then
32472:     THIS_VERSION=4
32473:     THIS_LIBS=$DB4_LIBS
32474:     THIS_PREFIX=$DB4_PREFIX
32475:   elif test "$HAVE_DB3" = "1"; then
32476:     THIS_LIBS=$DB3_LIBS
32477:     THIS_PREFIX=$DB3_PREFIX
32478:   elif test "$HAVE_DB2" = "1"; then
32479:     THIS_VERSION=2
32480:     THIS_LIBS=$DB2_LIBS
32481:     THIS_PREFIX=$DB2_PREFIX
32482:   fi
32483:   if test "$HAVE_DB4" = "1" || test "$HAVE_DB3" = "1" || test "$HAVE_DB2" = "1"; then
32484: 
32485: cat >>confdefs.h <<_ACEOF
32486: #define DB1_VERSION "Berkeley DB 1.85 emulation in DB$THIS_VERSION"
32487: _ACEOF
32488: 
32489:     for i in db$THIS_VERSION/db_185.h include/db$THIS_VERSION/db_185.h include/db/db_185.h; do
32490:       if test -f "$THIS_PREFIX/$i"; then
32491:         THIS_INCLUDE=$THIS_PREFIX/$i
32492:         break
32493:       fi
32494:     done
32495:   else
32496: 
32497: cat >>confdefs.h <<_ACEOF
32498: #define DB1_VERSION "Unknown DB1"
32499: _ACEOF
32500: 
32501:     for i in $PHP_DB1 /usr/local /usr; do
32502:       if test -f "$i/db1/db.h"; then
32503:         THIS_PREFIX=$i
32504:         THIS_INCLUDE=$i/db1/db.h
32505:         break
32506:       elif test -f "$i/include/db1/db.h"; then
32507:         THIS_PREFIX=$i
32508:         THIS_INCLUDE=$i/include/db1/db.h
32509:         break
32510:       elif test -f "$i/include/db.h"; then
32511:         THIS_PREFIX=$i
32512:         THIS_INCLUDE=$i/include/db.h
32513:         break
32514:       fi
32515:     done
32516:     THIS_LIBS=db
32517:   fi
32518:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_LIBS" >&5
32519: $as_echo "$THIS_LIBS" >&6; }
32520:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DB1 in header" >&5
32521: $as_echo_n "checking for DB1 in header... " >&6; }
32522:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_INCLUDE" >&5
32523: $as_echo "$THIS_INCLUDE" >&6; }
32524:   if test -n "$THIS_INCLUDE"; then
32525: 
32526:   old_LDFLAGS=$LDFLAGS
32527:   LDFLAGS="-L$THIS_PREFIX/$PHP_LIBDIR $LDFLAGS"
32528:   old_LIBS=$LIBS
32529:   LIBS="-l$THIS_LIBS $LIBS"
32530: 
32531:       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32532: /* end confdefs.h.  */
32533: 
32534: #include "$THIS_INCLUDE"
32535: 
32536: int
32537: main ()
32538: {
32539: 
32540:         DB * dbp = dbopen("", 0, 0, DB_HASH, 0);
32541: 
32542:   ;
32543:   return 0;
32544: }
32545: _ACEOF
32546: if ac_fn_c_try_link "$LINENO"; then :
32547: 
32548: 
32549: cat >>confdefs.h <<_ACEOF
32550: #define DB1_INCLUDE_FILE "$THIS_INCLUDE"
32551: _ACEOF
32552: 
32553: 
32554: $as_echo "#define DBA_DB1 1" >>confdefs.h
32555: 
32556:         THIS_RESULT=yes
32557: 
32558: else
32559: 
32560:         THIS_RESULT=no
32561: 
32562: fi
32563: rm -f core conftest.err conftest.$ac_objext \
32564:     conftest$ac_exeext conftest.$ac_ext
32565: 
32566:   LDFLAGS=$old_LDFLAGS
32567:   LIBS=$old_LIBS
32568: 
32569:   fi
32570: 
32571:   if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then
32572:     THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR
32573:   fi
32574: 
32575: 
32576:   THIS_RESULT=yes
32577:   if test -z "$THIS_INCLUDE"; then
32578:     as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5
32579:   fi
32580:   if test -z "$THIS_LIBS"; then
32581:     as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5
32582:   fi
32583: 
32584: 
32585: 
32586: 
32587:   if test "$ext_shared" = "yes"; then
32588:     DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD"
32589:     if test -n "$THIS_LFLAGS"; then
32590: 
32591:   if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
32592: 
32593:   if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
32594:     ai_p=$THIS_LFLAGS
32595:   else
32596: 
32597:     ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`
32598: 
32599:     ep_realdir=`(cd "$ep_dir" && pwd)`
32600:     ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"`
32601:   fi
32602: 
32603: 
32604:       if test "$ext_shared" = "yes"; then
32605:         DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD"
32606:         test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD"
32607:       else
32608: 
32609: 
32610: 
32611:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
32612: 
32613:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
32614:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
32615:     eval "LIBPATH$unique=set"
32616: 
32617:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
32618:     LDFLAGS="$LDFLAGS -L$ai_p"
32619:     PHP_RPATHS="$PHP_RPATHS $ai_p"
32620: 
32621:   fi
32622: 
32623: 
32624:       fi
32625: 
32626:   fi
32627: 
32628:     fi
32629:   else
32630: 
32631: 
32632:   if test -n "$THIS_LFLAGS"; then
32633: 
32634:   if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
32635: 
32636:   if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
32637:     ai_p=$THIS_LFLAGS
32638:   else
32639: 
32640:     ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`
32641: 
32642:     ep_realdir=`(cd "$ep_dir" && pwd)`
32643:     ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"`
32644:   fi
32645: 
32646: 
32647: 
32648: 
32649: 
32650:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
32651: 
32652:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
32653:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
32654:     eval "LIBPATH$unique=set"
32655: 
32656:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
32657:     LDFLAGS="$LDFLAGS -L$ai_p"
32658:     PHP_RPATHS="$PHP_RPATHS $ai_p"
32659: 
32660:   fi
32661: 
32662: 
32663: 
32664:   fi
32665: 
32666:   fi
32667: 
32668: 
32669:   case $THIS_LIBS in
32670:   c|c_r|pthread*) ;;
32671:   *)
32672:       LIBS="-l$THIS_LIBS $LIBS"
32673:    ;;
32674:   esac
32675: 
32676: 
32677: 
32678: 
32679:   fi
32680: 
32681: 
32682:   unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX
32683: 
32684: fi
32685: 
32686:   THIS_NAME=DB1
32687:   if test -n "DB1"; then
32688:     THIS_FULL_NAME="DB1"
32689:   else
32690:     THIS_FULL_NAME="$THIS_NAME"
32691:   fi
32692:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5
32693: $as_echo_n "checking for $THIS_FULL_NAME support... " >&6; }
32694:   if test -n ""; then
32695:     as_fn_error $? "" "$LINENO" 5
32696:   fi
32697:   if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
32698:     HAVE_DBA=1
32699:     eval HAVE_$THIS_NAME=1
32700:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5
32701: $as_echo "$THIS_RESULT" >&6; }
32702:   else
32703:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32704: $as_echo "no" >&6; }
32705:   fi
32706:   unset THIS_RESULT THIS_NAME THIS_FULL_NAME
32707: 
32708: 
32709: # DBM
32710: if test "$PHP_DBM" != "no"; then
32711: 
32712:   unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT
32713: 
32714:   if test "$HAVE_QDBM" = "1"; then
32715: 
32716:   THIS_NAME=DBM
32717:   if test -n "dbm"; then
32718:     THIS_FULL_NAME="dbm"
32719:   else
32720:     THIS_FULL_NAME="$THIS_NAME"
32721:   fi
32722:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5
32723: $as_echo_n "checking for $THIS_FULL_NAME support... " >&6; }
32724:   if test -n "You cannot combine --with-dbm with --with-qdbm"; then
32725:     as_fn_error $? "You cannot combine --with-dbm with --with-qdbm" "$LINENO" 5
32726:   fi
32727:   if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
32728:     HAVE_DBA=1
32729:     eval HAVE_$THIS_NAME=1
32730:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5
32731: $as_echo "$THIS_RESULT" >&6; }
32732:   else
32733:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32734: $as_echo "no" >&6; }
32735:   fi
32736:   unset THIS_RESULT THIS_NAME THIS_FULL_NAME
32737: 
32738:   fi
32739:   for i in $PHP_DBM /usr/local /usr; do
32740:     if test -f "$i/include/dbm.h"; then
32741:       THIS_PREFIX=$i
32742:       THIS_INCLUDE=$i/include/dbm.h
32743:       break
32744:     elif test -f "$i/include/gdbm/dbm.h"; then
32745:       THIS_PREFIX=$i
32746:       THIS_INCLUDE=$i/include/gdbm/dbm.h
32747:       break
32748:     fi
32749:   done
32750: 
32751:   if test -n "$THIS_INCLUDE"; then
32752:     for LIB in dbm c gdbm; do
32753: 
32754:   save_old_LDFLAGS=$LDFLAGS
32755:   ac_stuff="-L$THIS_PREFIX/$PHP_LIBDIR"
32756: 
32757:   save_ext_shared=$ext_shared
32758:   ext_shared=yes
32759: 
32760:   for ac_i in $ac_stuff; do
32761:     case $ac_i in
32762:     -pthread)
32763:       if test "$ext_shared" = "yes"; then
32764:         LDFLAGS="$LDFLAGS -pthread"
32765:       else
32766: 
32767: 
32768:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
32769: 
32770:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
32771:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
32772:     eval "EXTRA_LDFLAGS$unique=set"
32773:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
32774:   fi
32775: 
32776:       fi
32777:     ;;
32778:     -l*)
32779:       ac_ii=`echo $ac_i|cut -c 3-`
32780: 
32781: 
32782:   case $ac_ii in
32783:   c|c_r|pthread*) ;;
32784:   *)
32785:     if test "$ext_shared" = "yes"; then
32786:         LDFLAGS="$LDFLAGS -l$ac_ii"
32787:     else
32788: 
32789: 
32790:   case $ac_ii in
32791:   c|c_r|pthread*) ;;
32792:   *)
32793:       LIBS="$LIBS -l$ac_ii"
32794:    ;;
32795:   esac
32796: 
32797: 
32798:     fi
32799:    ;;
32800:   esac
32801: 
32802: 
32803:     ;;
32804:     -L*)
32805:       ac_ii=`echo $ac_i|cut -c 3-`
32806: 
32807:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
32808: 
32809:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
32810:     ai_p=$ac_ii
32811:   else
32812: 
32813:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
32814: 
32815:     ep_realdir=`(cd "$ep_dir" && pwd)`
32816:     ai_p="$ep_realdir"/`basename "$ac_ii"`
32817:   fi
32818: 
32819: 
32820:       if test "$ext_shared" = "yes"; then
32821:         LDFLAGS="-L$ai_p $LDFLAGS"
32822:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
32823:       else
32824: 
32825: 
32826: 
32827:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
32828: 
32829:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
32830:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
32831:     eval "LIBPATH$unique=set"
32832: 
32833:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
32834:     LDFLAGS="$LDFLAGS -L$ai_p"
32835:     PHP_RPATHS="$PHP_RPATHS $ai_p"
32836: 
32837:   fi
32838: 
32839: 
32840:       fi
32841: 
32842:   fi
32843: 
32844:     ;;
32845:     esac
32846:   done
32847: 
32848:   as_ac_Lib=`$as_echo "ac_cv_lib_$LIB''_dbminit" | $as_tr_sh`
32849: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbminit in -l$LIB" >&5
32850: $as_echo_n "checking for dbminit in -l$LIB... " >&6; }
32851: if eval \${$as_ac_Lib+:} false; then :
32852:   $as_echo_n "(cached) " >&6
32853: else
32854:   ac_check_lib_save_LIBS=$LIBS
32855: LIBS="-l$LIB  $LIBS"
32856: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32857: /* end confdefs.h.  */
32858: 
32859: /* Override any GCC internal prototype to avoid an error.
32860:    Use char because int might match the return type of a GCC
32861:    builtin and then its argument prototype would still apply.  */
32862: #ifdef __cplusplus
32863: extern "C"
32864: #endif
32865: char dbminit ();
32866: int
32867: main ()
32868: {
32869: return dbminit ();
32870:   ;
32871:   return 0;
32872: }
32873: _ACEOF
32874: if ac_fn_c_try_link "$LINENO"; then :
32875:   eval "$as_ac_Lib=yes"
32876: else
32877:   eval "$as_ac_Lib=no"
32878: fi
32879: rm -f core conftest.err conftest.$ac_objext \
32880:     conftest$ac_exeext conftest.$ac_ext
32881: LIBS=$ac_check_lib_save_LIBS
32882: fi
32883: eval ac_res=\$$as_ac_Lib
32884: 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
32885: $as_echo "$ac_res" >&6; }
32886: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
32887: 
32888:     LDFLAGS=$save_old_LDFLAGS
32889:     ext_shared=$save_ext_shared
32890: 
32891:         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBM using GDBM" >&5
32892: $as_echo_n "checking for DBM using GDBM... " >&6; }
32893: 
32894: cat >>confdefs.h <<_ACEOF
32895: #define DBM_INCLUDE_FILE "$THIS_INCLUDE"
32896: _ACEOF
32897: 
32898:         if test "$LIB" = "gdbm"; then
32899: 
32900: cat >>confdefs.h <<_ACEOF
32901: #define DBM_VERSION "GDBM"
32902: _ACEOF
32903: 
32904:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32905: $as_echo "yes" >&6; }
32906:         else
32907: 
32908: cat >>confdefs.h <<_ACEOF
32909: #define DBM_VERSION "DBM"
32910: _ACEOF
32911: 
32912:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32913: $as_echo "no" >&6; }
32914:         fi
32915: 
32916: $as_echo "#define DBA_DBM 1" >>confdefs.h
32917: 
32918:         THIS_LIBS=$LIB
32919: 
32920: 
32921: else
32922: 
32923:     LDFLAGS=$save_old_LDFLAGS
32924:     ext_shared=$save_ext_shared
32925:     unset ac_cv_lib_$LIB_dbminit
32926: 
32927: 
32928: fi
32929: 
32930:       if test -n "$THIS_LIBS"; then
32931:         break
32932:       fi
32933:     done
32934:   fi
32935: 
32936: 
32937:   if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then
32938:     THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR
32939:   fi
32940: 
32941: 
32942:   THIS_RESULT=yes
32943:   if test -z "$THIS_INCLUDE"; then
32944:     as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5
32945:   fi
32946:   if test -z "$THIS_LIBS"; then
32947:     as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5
32948:   fi
32949: 
32950: 
32951: 
32952: 
32953:   if test "$ext_shared" = "yes"; then
32954:     DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD"
32955:     if test -n "$THIS_LFLAGS"; then
32956: 
32957:   if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
32958: 
32959:   if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
32960:     ai_p=$THIS_LFLAGS
32961:   else
32962: 
32963:     ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`
32964: 
32965:     ep_realdir=`(cd "$ep_dir" && pwd)`
32966:     ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"`
32967:   fi
32968: 
32969: 
32970:       if test "$ext_shared" = "yes"; then
32971:         DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD"
32972:         test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD"
32973:       else
32974: 
32975: 
32976: 
32977:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
32978: 
32979:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
32980:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
32981:     eval "LIBPATH$unique=set"
32982: 
32983:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
32984:     LDFLAGS="$LDFLAGS -L$ai_p"
32985:     PHP_RPATHS="$PHP_RPATHS $ai_p"
32986: 
32987:   fi
32988: 
32989: 
32990:       fi
32991: 
32992:   fi
32993: 
32994:     fi
32995:   else
32996: 
32997: 
32998:   if test -n "$THIS_LFLAGS"; then
32999: 
33000:   if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
33001: 
33002:   if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
33003:     ai_p=$THIS_LFLAGS
33004:   else
33005: 
33006:     ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`
33007: 
33008:     ep_realdir=`(cd "$ep_dir" && pwd)`
33009:     ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"`
33010:   fi
33011: 
33012: 
33013: 
33014: 
33015: 
33016:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
33017: 
33018:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
33019:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
33020:     eval "LIBPATH$unique=set"
33021: 
33022:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
33023:     LDFLAGS="$LDFLAGS -L$ai_p"
33024:     PHP_RPATHS="$PHP_RPATHS $ai_p"
33025: 
33026:   fi
33027: 
33028: 
33029: 
33030:   fi
33031: 
33032:   fi
33033: 
33034: 
33035:   case $THIS_LIBS in
33036:   c|c_r|pthread*) ;;
33037:   *)
33038:       LIBS="-l$THIS_LIBS $LIBS"
33039:    ;;
33040:   esac
33041: 
33042: 
33043: 
33044: 
33045:   fi
33046: 
33047: 
33048:   unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX
33049: 
33050: fi
33051: 
33052:   THIS_NAME=DBM
33053:   if test -n ""; then
33054:     THIS_FULL_NAME=""
33055:   else
33056:     THIS_FULL_NAME="$THIS_NAME"
33057:   fi
33058:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5
33059: $as_echo_n "checking for $THIS_FULL_NAME support... " >&6; }
33060:   if test -n ""; then
33061:     as_fn_error $? "" "$LINENO" 5
33062:   fi
33063:   if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
33064:     HAVE_DBA=1
33065:     eval HAVE_$THIS_NAME=1
33066:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5
33067: $as_echo "$THIS_RESULT" >&6; }
33068:   else
33069:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33070: $as_echo "no" >&6; }
33071:   fi
33072:   unset THIS_RESULT THIS_NAME THIS_FULL_NAME
33073: 
33074: 
33075: if test "$PHP_DBA" != "no" || test "$HAVE_DBA" = "1" || test "$with_cdb" = "yes" || test "$enable_inifile" = "yes" || test "$enable_flatfile" = "yes"; then
33076:   php_dba_enable=yes
33077: else
33078:   php_dba_enable=no
33079: fi
33080: 
33081: 
33082: php_with_cdb=$php_dba_enable
33083: 
33084: 
33085: 
33086: # Check whether --with-cdb was given.
33087: if test "${with_cdb+set}" = set; then :
33088:   withval=$with_cdb; PHP_CDB=$withval
33089: else
33090: 
33091:   PHP_CDB=$php_dba_enable
33092: 
33093: 
33094: fi
33095: 
33096: 
33097: ext_output=$PHP_CDB
33098: 
33099: 
33100: 
33101: 
33102: 
33103: 
33104: php_enable_inifile=$php_dba_enable
33105: 
33106: 
33107: # Check whether --enable-inifile was given.
33108: if test "${enable_inifile+set}" = set; then :
33109:   enableval=$enable_inifile; PHP_INIFILE=$enableval
33110: else
33111: 
33112:   PHP_INIFILE=$php_dba_enable
33113: 
33114: 
33115: fi
33116: 
33117: 
33118: ext_output=$PHP_INIFILE
33119: 
33120: 
33121: 
33122: 
33123: 
33124: 
33125: php_enable_flatfile=$php_dba_enable
33126: 
33127: 
33128: # Check whether --enable-flatfile was given.
33129: if test "${enable_flatfile+set}" = set; then :
33130:   enableval=$enable_flatfile; PHP_FLATFILE=$enableval
33131: else
33132: 
33133:   PHP_FLATFILE=$php_dba_enable
33134: 
33135: 
33136: fi
33137: 
33138: 
33139: ext_output=$PHP_FLATFILE
33140: 
33141: 
33142: 
33143: 
33144: 
33145: # CDB
33146: if test "$PHP_CDB" = "yes"; then
33147: 
33148: $as_echo "#define DBA_CDB_BUILTIN 1" >>confdefs.h
33149: 
33150: 
33151: $as_echo "#define DBA_CDB_MAKE 1" >>confdefs.h
33152: 
33153: 
33154: $as_echo "#define DBA_CDB 1" >>confdefs.h
33155: 
33156:   cdb_sources="libcdb/cdb.c libcdb/cdb_make.c libcdb/uint32.c"
33157:   THIS_RESULT="builtin"
33158: elif test "$PHP_CDB" != "no"; then
33159: 
33160:   unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT
33161: 
33162:   for i in $PHP_CDB /usr/local /usr; do
33163:     if test -f "$i/include/cdb.h"; then
33164:       THIS_PREFIX=$i
33165:       THIS_INCLUDE=$i/include/cdb.h
33166:       break
33167:     fi
33168:   done
33169: 
33170:   if test -n "$THIS_INCLUDE"; then
33171:     for LIB in cdb c; do
33172: 
33173:   save_old_LDFLAGS=$LDFLAGS
33174:   ac_stuff="-L$THIS_PREFIX/$PHP_LIBDIR"
33175: 
33176:   save_ext_shared=$ext_shared
33177:   ext_shared=yes
33178: 
33179:   for ac_i in $ac_stuff; do
33180:     case $ac_i in
33181:     -pthread)
33182:       if test "$ext_shared" = "yes"; then
33183:         LDFLAGS="$LDFLAGS -pthread"
33184:       else
33185: 
33186: 
33187:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
33188: 
33189:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
33190:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
33191:     eval "EXTRA_LDFLAGS$unique=set"
33192:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
33193:   fi
33194: 
33195:       fi
33196:     ;;
33197:     -l*)
33198:       ac_ii=`echo $ac_i|cut -c 3-`
33199: 
33200: 
33201:   case $ac_ii in
33202:   c|c_r|pthread*) ;;
33203:   *)
33204:     if test "$ext_shared" = "yes"; then
33205:         LDFLAGS="$LDFLAGS -l$ac_ii"
33206:     else
33207: 
33208: 
33209:   case $ac_ii in
33210:   c|c_r|pthread*) ;;
33211:   *)
33212:       LIBS="$LIBS -l$ac_ii"
33213:    ;;
33214:   esac
33215: 
33216: 
33217:     fi
33218:    ;;
33219:   esac
33220: 
33221: 
33222:     ;;
33223:     -L*)
33224:       ac_ii=`echo $ac_i|cut -c 3-`
33225: 
33226:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
33227: 
33228:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
33229:     ai_p=$ac_ii
33230:   else
33231: 
33232:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
33233: 
33234:     ep_realdir=`(cd "$ep_dir" && pwd)`
33235:     ai_p="$ep_realdir"/`basename "$ac_ii"`
33236:   fi
33237: 
33238: 
33239:       if test "$ext_shared" = "yes"; then
33240:         LDFLAGS="-L$ai_p $LDFLAGS"
33241:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
33242:       else
33243: 
33244: 
33245: 
33246:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
33247: 
33248:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
33249:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
33250:     eval "LIBPATH$unique=set"
33251: 
33252:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
33253:     LDFLAGS="$LDFLAGS -L$ai_p"
33254:     PHP_RPATHS="$PHP_RPATHS $ai_p"
33255: 
33256:   fi
33257: 
33258: 
33259:       fi
33260: 
33261:   fi
33262: 
33263:     ;;
33264:     esac
33265:   done
33266: 
33267:   as_ac_Lib=`$as_echo "ac_cv_lib_$LIB''_cdb_read" | $as_tr_sh`
33268: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cdb_read in -l$LIB" >&5
33269: $as_echo_n "checking for cdb_read in -l$LIB... " >&6; }
33270: if eval \${$as_ac_Lib+:} false; then :
33271:   $as_echo_n "(cached) " >&6
33272: else
33273:   ac_check_lib_save_LIBS=$LIBS
33274: LIBS="-l$LIB  $LIBS"
33275: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33276: /* end confdefs.h.  */
33277: 
33278: /* Override any GCC internal prototype to avoid an error.
33279:    Use char because int might match the return type of a GCC
33280:    builtin and then its argument prototype would still apply.  */
33281: #ifdef __cplusplus
33282: extern "C"
33283: #endif
33284: char cdb_read ();
33285: int
33286: main ()
33287: {
33288: return cdb_read ();
33289:   ;
33290:   return 0;
33291: }
33292: _ACEOF
33293: if ac_fn_c_try_link "$LINENO"; then :
33294:   eval "$as_ac_Lib=yes"
33295: else
33296:   eval "$as_ac_Lib=no"
33297: fi
33298: rm -f core conftest.err conftest.$ac_objext \
33299:     conftest$ac_exeext conftest.$ac_ext
33300: LIBS=$ac_check_lib_save_LIBS
33301: fi
33302: eval ac_res=\$$as_ac_Lib
33303: 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
33304: $as_echo "$ac_res" >&6; }
33305: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
33306: 
33307:     LDFLAGS=$save_old_LDFLAGS
33308:     ext_shared=$save_ext_shared
33309: 
33310: 
33311: cat >>confdefs.h <<_ACEOF
33312: #define CDB_INCLUDE_FILE "$THIS_INCLUDE"
33313: _ACEOF
33314: 
33315: 
33316: $as_echo "#define DBA_CDB 1" >>confdefs.h
33317: 
33318:         THIS_LIBS=$LIB
33319: 
33320: 
33321: else
33322: 
33323:     LDFLAGS=$save_old_LDFLAGS
33324:     ext_shared=$save_ext_shared
33325:     unset ac_cv_lib_$LIB_cdb_read
33326: 
33327: 
33328: fi
33329: 
33330:       if test -n "$THIS_LIBS"; then
33331:         break
33332:       fi
33333:     done
33334:   fi
33335: 
33336: 
33337:   if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then
33338:     THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR
33339:   fi
33340: 
33341: 
33342:   THIS_RESULT=yes
33343:   if test -z "$THIS_INCLUDE"; then
33344:     as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5
33345:   fi
33346:   if test -z "$THIS_LIBS"; then
33347:     as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5
33348:   fi
33349: 
33350: 
33351: 
33352: 
33353:   if test "$ext_shared" = "yes"; then
33354:     DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD"
33355:     if test -n "$THIS_LFLAGS"; then
33356: 
33357:   if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
33358: 
33359:   if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
33360:     ai_p=$THIS_LFLAGS
33361:   else
33362: 
33363:     ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`
33364: 
33365:     ep_realdir=`(cd "$ep_dir" && pwd)`
33366:     ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"`
33367:   fi
33368: 
33369: 
33370:       if test "$ext_shared" = "yes"; then
33371:         DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD"
33372:         test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD"
33373:       else
33374: 
33375: 
33376: 
33377:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
33378: 
33379:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
33380:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
33381:     eval "LIBPATH$unique=set"
33382: 
33383:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
33384:     LDFLAGS="$LDFLAGS -L$ai_p"
33385:     PHP_RPATHS="$PHP_RPATHS $ai_p"
33386: 
33387:   fi
33388: 
33389: 
33390:       fi
33391: 
33392:   fi
33393: 
33394:     fi
33395:   else
33396: 
33397: 
33398:   if test -n "$THIS_LFLAGS"; then
33399: 
33400:   if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
33401: 
33402:   if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
33403:     ai_p=$THIS_LFLAGS
33404:   else
33405: 
33406:     ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`
33407: 
33408:     ep_realdir=`(cd "$ep_dir" && pwd)`
33409:     ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"`
33410:   fi
33411: 
33412: 
33413: 
33414: 
33415: 
33416:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
33417: 
33418:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
33419:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
33420:     eval "LIBPATH$unique=set"
33421: 
33422:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
33423:     LDFLAGS="$LDFLAGS -L$ai_p"
33424:     PHP_RPATHS="$PHP_RPATHS $ai_p"
33425: 
33426:   fi
33427: 
33428: 
33429: 
33430:   fi
33431: 
33432:   fi
33433: 
33434: 
33435:   case $THIS_LIBS in
33436:   c|c_r|pthread*) ;;
33437:   *)
33438:       LIBS="-l$THIS_LIBS $LIBS"
33439:    ;;
33440:   esac
33441: 
33442: 
33443: 
33444: 
33445:   fi
33446: 
33447: 
33448:   unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX
33449: 
33450: fi
33451: 
33452:   THIS_NAME=CDB
33453:   if test -n ""; then
33454:     THIS_FULL_NAME=""
33455:   else
33456:     THIS_FULL_NAME="$THIS_NAME"
33457:   fi
33458:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5
33459: $as_echo_n "checking for $THIS_FULL_NAME support... " >&6; }
33460:   if test -n ""; then
33461:     as_fn_error $? "" "$LINENO" 5
33462:   fi
33463:   if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
33464:     HAVE_DBA=1
33465:     eval HAVE_$THIS_NAME=1
33466:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5
33467: $as_echo "$THIS_RESULT" >&6; }
33468:   else
33469:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33470: $as_echo "no" >&6; }
33471:   fi
33472:   unset THIS_RESULT THIS_NAME THIS_FULL_NAME
33473: 
33474: 
33475: # INIFILE
33476: if test "$PHP_INIFILE" != "no"; then
33477: 
33478: $as_echo "#define DBA_INIFILE 1" >>confdefs.h
33479: 
33480:   ini_sources="libinifile/inifile.c"
33481:   THIS_RESULT="builtin"
33482: fi
33483: 
33484:   THIS_NAME=INIFILE
33485:   if test -n "INI File"; then
33486:     THIS_FULL_NAME="INI File"
33487:   else
33488:     THIS_FULL_NAME="$THIS_NAME"
33489:   fi
33490:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5
33491: $as_echo_n "checking for $THIS_FULL_NAME support... " >&6; }
33492:   if test -n ""; then
33493:     as_fn_error $? "" "$LINENO" 5
33494:   fi
33495:   if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
33496:     HAVE_DBA=1
33497:     eval HAVE_$THIS_NAME=1
33498:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5
33499: $as_echo "$THIS_RESULT" >&6; }
33500:   else
33501:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33502: $as_echo "no" >&6; }
33503:   fi
33504:   unset THIS_RESULT THIS_NAME THIS_FULL_NAME
33505: 
33506: 
33507: # FLATFILE
33508: if test "$PHP_FLATFILE" != "no"; then
33509: 
33510: $as_echo "#define DBA_FLATFILE 1" >>confdefs.h
33511: 
33512:   flat_sources="libflatfile/flatfile.c"
33513:   THIS_RESULT="builtin"
33514: fi
33515: 
33516:   THIS_NAME=FLATFILE
33517:   if test -n "FlatFile"; then
33518:     THIS_FULL_NAME="FlatFile"
33519:   else
33520:     THIS_FULL_NAME="$THIS_NAME"
33521:   fi
33522:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5
33523: $as_echo_n "checking for $THIS_FULL_NAME support... " >&6; }
33524:   if test -n ""; then
33525:     as_fn_error $? "" "$LINENO" 5
33526:   fi
33527:   if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
33528:     HAVE_DBA=1
33529:     eval HAVE_$THIS_NAME=1
33530:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5
33531: $as_echo "$THIS_RESULT" >&6; }
33532:   else
33533:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33534: $as_echo "no" >&6; }
33535:   fi
33536:   unset THIS_RESULT THIS_NAME THIS_FULL_NAME
33537: 
33538: 
33539: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable DBA interface" >&5
33540: $as_echo_n "checking whether to enable DBA interface... " >&6; }
33541: if test "$HAVE_DBA" = "1"; then
33542:   if test "$ext_shared" = "yes"; then
33543:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, shared" >&5
33544: $as_echo "yes, shared" >&6; }
33545:   else
33546:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33547: $as_echo "yes" >&6; }
33548:   fi
33549: 
33550: $as_echo "#define HAVE_DBA 1" >>confdefs.h
33551: 
33552: 
33553:   ext_builddir=ext/dba
33554:   ext_srcdir=$abs_srcdir/ext/dba
33555: 
33556:   ac_extra=
33557: 
33558:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
33559:     PHP_DBA_SHARED=no
33560: 
33561: 
33562:   case ext/dba in
33563:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
33564:   /*) ac_srcdir=`echo "ext/dba"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
33565:   *) ac_srcdir="$abs_srcdir/ext/dba/"; ac_bdir="ext/dba/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
33566:   esac
33567: 
33568: 
33569: 
33570:   b_c_pre=$php_c_pre
33571:   b_cxx_pre=$php_cxx_pre
33572:   b_c_meta=$php_c_meta
33573:   b_cxx_meta=$php_cxx_meta
33574:   b_c_post=$php_c_post
33575:   b_cxx_post=$php_cxx_post
33576:   b_lo=$php_lo
33577: 
33578: 
33579:   old_IFS=$IFS
33580:   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
33581: 
33582:       IFS=.
33583:       set $ac_src
33584:       ac_obj=$1
33585:       IFS=$old_IFS
33586: 
33587:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
33588: 
33589:       case $ac_src in
33590:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
33591:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
33592:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
33593:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
33594:       esac
33595: 
33596:     cat >>Makefile.objects<<EOF
33597: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
33598: 	$ac_comp
33599: EOF
33600:   done
33601: 
33602: 
33603:     EXT_STATIC="$EXT_STATIC dba"
33604:     if test "$ext_shared" != "nocli"; then
33605:       EXT_CLI_STATIC="$EXT_CLI_STATIC dba"
33606:     fi
33607:   else
33608:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
33609:       PHP_DBA_SHARED=yes
33610: 
33611:   case ext/dba in
33612:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
33613:   /*) ac_srcdir=`echo "ext/dba"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
33614:   *) ac_srcdir="$abs_srcdir/ext/dba/"; ac_bdir="ext/dba/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
33615:   esac
33616: 
33617: 
33618: 
33619:   b_c_pre=$shared_c_pre
33620:   b_cxx_pre=$shared_cxx_pre
33621:   b_c_meta=$shared_c_meta
33622:   b_cxx_meta=$shared_cxx_meta
33623:   b_c_post=$shared_c_post
33624:   b_cxx_post=$shared_cxx_post
33625:   b_lo=$shared_lo
33626: 
33627: 
33628:   old_IFS=$IFS
33629:   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
33630: 
33631:       IFS=.
33632:       set $ac_src
33633:       ac_obj=$1
33634:       IFS=$old_IFS
33635: 
33636:       shared_objects_dba="$shared_objects_dba $ac_bdir$ac_obj.lo"
33637: 
33638:       case $ac_src in
33639:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
33640:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
33641:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
33642:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
33643:       esac
33644: 
33645:     cat >>Makefile.objects<<EOF
33646: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
33647: 	$ac_comp
33648: EOF
33649:   done
33650: 
33651:       case $host_alias in
33652:         *netware*)
33653: 
33654:   install_modules="install-modules"
33655: 
33656:   case $host_alias in
33657:     *aix*)
33658:       suffix=so
33659:       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'
33660:       ;;
33661:     *netware*)
33662:       suffix=nlm
33663:       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)'
33664:       ;;
33665:     *)
33666:       suffix=la
33667:       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)'
33668:       ;;
33669:   esac
33670: 
33671:   if test "x" = "xyes"; then
33672:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpdba.$suffix"
33673:   else
33674:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpdba.$suffix"
33675:   fi
33676: 
33677:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_dba"
33678: 
33679:   cat >>Makefile.objects<<EOF
33680: \$(phplibdir)/phpdba.$suffix: $ext_builddir/phpdba.$suffix
33681: 	\$(LIBTOOL) --mode=install cp $ext_builddir/phpdba.$suffix \$(phplibdir)
33682: 
33683: $ext_builddir/phpdba.$suffix: \$(shared_objects_dba) \$(PHPDBA_SHARED_DEPENDENCIES)
33684: 	$link_cmd
33685: 
33686: EOF
33687: 
33688:           ;;
33689:         *)
33690: 
33691:   install_modules="install-modules"
33692: 
33693:   case $host_alias in
33694:     *aix*)
33695:       suffix=so
33696:       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'
33697:       ;;
33698:     *netware*)
33699:       suffix=nlm
33700:       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)'
33701:       ;;
33702:     *)
33703:       suffix=la
33704:       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)'
33705:       ;;
33706:   esac
33707: 
33708:   if test "x" = "xyes"; then
33709:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/dba.$suffix"
33710:   else
33711:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/dba.$suffix"
33712:   fi
33713: 
33714:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_dba"
33715: 
33716:   cat >>Makefile.objects<<EOF
33717: \$(phplibdir)/dba.$suffix: $ext_builddir/dba.$suffix
33718: 	\$(LIBTOOL) --mode=install cp $ext_builddir/dba.$suffix \$(phplibdir)
33719: 
33720: $ext_builddir/dba.$suffix: \$(shared_objects_dba) \$(DBA_SHARED_DEPENDENCIES)
33721: 	$link_cmd
33722: 
33723: EOF
33724: 
33725:           ;;
33726:       esac
33727: 
33728: cat >>confdefs.h <<_ACEOF
33729: #define COMPILE_DL_DBA 1
33730: _ACEOF
33731: 
33732:     fi
33733:   fi
33734: 
33735:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
33736:     PHP_DBA_SHARED=no
33737:     case "$PHP_SAPI" in
33738:       cgi|embed)
33739: 
33740: 
33741:   case ext/dba in
33742:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
33743:   /*) ac_srcdir=`echo "ext/dba"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
33744:   *) ac_srcdir="$abs_srcdir/ext/dba/"; ac_bdir="ext/dba/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
33745:   esac
33746: 
33747: 
33748: 
33749:   b_c_pre=$php_c_pre
33750:   b_cxx_pre=$php_cxx_pre
33751:   b_c_meta=$php_c_meta
33752:   b_cxx_meta=$php_cxx_meta
33753:   b_c_post=$php_c_post
33754:   b_cxx_post=$php_cxx_post
33755:   b_lo=$php_lo
33756: 
33757: 
33758:   old_IFS=$IFS
33759:   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
33760: 
33761:       IFS=.
33762:       set $ac_src
33763:       ac_obj=$1
33764:       IFS=$old_IFS
33765: 
33766:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
33767: 
33768:       case $ac_src in
33769:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
33770:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
33771:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
33772:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
33773:       esac
33774: 
33775:     cat >>Makefile.objects<<EOF
33776: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
33777: 	$ac_comp
33778: EOF
33779:   done
33780: 
33781: 
33782:         EXT_STATIC="$EXT_STATIC dba"
33783:         ;;
33784:       *)
33785: 
33786: 
33787:   case ext/dba in
33788:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
33789:   /*) ac_srcdir=`echo "ext/dba"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
33790:   *) ac_srcdir="$abs_srcdir/ext/dba/"; ac_bdir="ext/dba/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
33791:   esac
33792: 
33793: 
33794: 
33795:   b_c_pre=$php_c_pre
33796:   b_cxx_pre=$php_cxx_pre
33797:   b_c_meta=$php_c_meta
33798:   b_cxx_meta=$php_cxx_meta
33799:   b_c_post=$php_c_post
33800:   b_cxx_post=$php_cxx_post
33801:   b_lo=$php_lo
33802: 
33803: 
33804:   old_IFS=$IFS
33805:   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
33806: 
33807:       IFS=.
33808:       set $ac_src
33809:       ac_obj=$1
33810:       IFS=$old_IFS
33811: 
33812:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
33813: 
33814:       case $ac_src in
33815:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
33816:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
33817:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
33818:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
33819:       esac
33820: 
33821:     cat >>Makefile.objects<<EOF
33822: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
33823: 	$ac_comp
33824: EOF
33825:   done
33826: 
33827: 
33828:         ;;
33829:     esac
33830:     EXT_CLI_STATIC="$EXT_CLI_STATIC dba"
33831:   fi
33832: 
33833: 
33834:     BUILD_DIR="$BUILD_DIR $ext_builddir"
33835: 
33836: 
33837: 
33838:   if test "$ext_builddir" = "."; then
33839:     PHP_PECL_EXTENSION=dba
33840: 
33841:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
33842: 
33843:   fi
33844: 
33845: 
33846: 
33847:     BUILD_DIR="$BUILD_DIR $ext_builddir/libinifile"
33848: 
33849: 
33850: 
33851: 
33852:     BUILD_DIR="$BUILD_DIR $ext_builddir/libcdb"
33853: 
33854: 
33855: 
33856: 
33857:     BUILD_DIR="$BUILD_DIR $ext_builddir/libflatfile"
33858: 
33859: 
33860: 
33861:   PHP_VAR_SUBST="$PHP_VAR_SUBST DBA_SHARED_LIBADD"
33862: 
33863: else
33864:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33865: $as_echo "no" >&6; }
33866: fi
33867: 
33868: 
33869: 
33870: php_enable_dom=yes
33871: 
33872: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable DOM support" >&5
33873: $as_echo_n "checking whether to enable DOM support... " >&6; }
33874: # Check whether --enable-dom was given.
33875: if test "${enable_dom+set}" = set; then :
33876:   enableval=$enable_dom; PHP_DOM=$enableval
33877: else
33878: 
33879:   PHP_DOM=yes
33880:   test "$PHP_ENABLE_ALL" && PHP_DOM=$PHP_ENABLE_ALL
33881: 
33882: fi
33883: 
33884: 
33885: 
33886: ext_output="yes, shared"
33887: ext_shared=yes
33888: case $PHP_DOM in
33889: shared,*)
33890:   PHP_DOM=`echo "$PHP_DOM"|$SED 's/^shared,//'`
33891:   ;;
33892: shared)
33893:   PHP_DOM=yes
33894:   ;;
33895: no)
33896:   ext_output=no
33897:   ext_shared=no
33898:   ;;
33899: *)
33900:   ext_output=yes
33901:   ext_shared=no
33902:   ;;
33903: esac
33904: 
33905: 
33906: 
33907: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
33908: $as_echo "$ext_output" >&6; }
33909: 
33910: 
33911: 
33912: 
33913: if test -z "$PHP_LIBXML_DIR"; then
33914: 
33915: php_with_libxml_dir=no
33916: 
33917: { $as_echo "$as_me:${as_lineno-$LINENO}: checking libxml2 install dir" >&5
33918: $as_echo_n "checking libxml2 install dir... " >&6; }
33919: 
33920: # Check whether --with-libxml-dir was given.
33921: if test "${with_libxml_dir+set}" = set; then :
33922:   withval=$with_libxml_dir; PHP_LIBXML_DIR=$withval
33923: else
33924: 
33925:   PHP_LIBXML_DIR=no
33926: 
33927: 
33928: fi
33929: 
33930: 
33931: ext_output=$PHP_LIBXML_DIR
33932: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
33933: $as_echo "$ext_output" >&6; }
33934: 
33935: 
33936: 
33937: fi
33938: 
33939: if test "$PHP_DOM" != "no"; then
33940: 
33941:   if test "$PHP_LIBXML" = "no"; then
33942:     as_fn_error $? "DOM extension requires LIBXML extension, add --enable-libxml" "$LINENO" 5
33943:   fi
33944: 
33945: 
33946: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xml2-config path" >&5
33947: $as_echo_n "checking for xml2-config path... " >&6; }
33948: if ${ac_cv_php_xml2_config_path+:} false; then :
33949:   $as_echo_n "(cached) " >&6
33950: else
33951: 
33952:   for i in $PHP_LIBXML_DIR /usr/local /usr; do
33953:     if test -x "$i/bin/xml2-config"; then
33954:       ac_cv_php_xml2_config_path="$i/bin/xml2-config"
33955:       break
33956:     fi
33957:   done
33958: 
33959: fi
33960: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_php_xml2_config_path" >&5
33961: $as_echo "$ac_cv_php_xml2_config_path" >&6; }
33962: 
33963:   if test -x "$ac_cv_php_xml2_config_path"; then
33964:     XML2_CONFIG="$ac_cv_php_xml2_config_path"
33965:     libxml_full_version=`$XML2_CONFIG --version`
33966:     ac_IFS=$IFS
33967:     IFS="."
33968:     set $libxml_full_version
33969:     IFS=$ac_IFS
33970:     LIBXML_VERSION=`expr $1 \* 1000000 + $2 \* 1000 + $3`
33971:     if test "$LIBXML_VERSION" -ge "2006011"; then
33972:       LIBXML_LIBS=`$XML2_CONFIG --libs`
33973:       LIBXML_INCS=`$XML2_CONFIG --cflags`
33974: 
33975:   for ac_i in $LIBXML_LIBS; do
33976:     case $ac_i in
33977:     -pthread)
33978:       if test "$ext_shared" = "yes"; then
33979:         DOM_SHARED_LIBADD="$DOM_SHARED_LIBADD -pthread"
33980:       else
33981: 
33982: 
33983:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
33984: 
33985:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
33986:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
33987:     eval "EXTRA_LDFLAGS$unique=set"
33988:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
33989:   fi
33990: 
33991:       fi
33992:     ;;
33993:     -l*)
33994:       ac_ii=`echo $ac_i|cut -c 3-`
33995: 
33996: 
33997:   case $ac_ii in
33998:   c|c_r|pthread*) ;;
33999:   *)
34000:     if test "$ext_shared" = "yes"; then
34001:         DOM_SHARED_LIBADD="$DOM_SHARED_LIBADD -l$ac_ii"
34002:     else
34003: 
34004: 
34005:   case $ac_ii in
34006:   c|c_r|pthread*) ;;
34007:   *)
34008:       LIBS="$LIBS -l$ac_ii"
34009:    ;;
34010:   esac
34011: 
34012: 
34013:     fi
34014:    ;;
34015:   esac
34016: 
34017: 
34018:     ;;
34019:     -L*)
34020:       ac_ii=`echo $ac_i|cut -c 3-`
34021: 
34022:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
34023: 
34024:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
34025:     ai_p=$ac_ii
34026:   else
34027: 
34028:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
34029: 
34030:     ep_realdir=`(cd "$ep_dir" && pwd)`
34031:     ai_p="$ep_realdir"/`basename "$ac_ii"`
34032:   fi
34033: 
34034: 
34035:       if test "$ext_shared" = "yes"; then
34036:         DOM_SHARED_LIBADD="-L$ai_p $DOM_SHARED_LIBADD"
34037:         test -n "$ld_runpath_switch" && DOM_SHARED_LIBADD="$ld_runpath_switch$ai_p $DOM_SHARED_LIBADD"
34038:       else
34039: 
34040: 
34041: 
34042:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
34043: 
34044:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
34045:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
34046:     eval "LIBPATH$unique=set"
34047: 
34048:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
34049:     LDFLAGS="$LDFLAGS -L$ai_p"
34050:     PHP_RPATHS="$PHP_RPATHS $ai_p"
34051: 
34052:   fi
34053: 
34054: 
34055:       fi
34056: 
34057:   fi
34058: 
34059:     ;;
34060:     esac
34061:   done
34062: 
34063: 
34064:   for ac_i in $LIBXML_INCS; do
34065:     case $ac_i in
34066:     -I*)
34067:       ac_ii=`echo $ac_i|cut -c 3-`
34068: 
34069:   if test "$ac_ii" != "/usr/include"; then
34070: 
34071:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
34072:     ai_p=$ac_ii
34073:   else
34074: 
34075:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
34076: 
34077:     ep_realdir=`(cd "$ep_dir" && pwd)`
34078:     ai_p="$ep_realdir"/`basename "$ac_ii"`
34079:   fi
34080: 
34081: 
34082: 
34083:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
34084: 
34085:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
34086:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
34087:     eval "INCLUDEPATH$unique=set"
34088: 
34089:       if test ""; then
34090:         INCLUDES="-I$ai_p $INCLUDES"
34091:       else
34092:         INCLUDES="$INCLUDES -I$ai_p"
34093:       fi
34094: 
34095:   fi
34096: 
34097:   fi
34098: 
34099:     ;;
34100:     esac
34101:   done
34102: 
34103: 
34104:             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libxml build works" >&5
34105: $as_echo_n "checking whether libxml build works... " >&6; }
34106: if ${php_cv_libxml_build_works+:} false; then :
34107:   $as_echo_n "(cached) " >&6
34108: else
34109: 
34110: 
34111:   old_LIBS=$LIBS
34112:   LIBS="
34113:           $DOM_SHARED_LIBADD
34114:          $LIBS"
34115:   if test "$cross_compiling" = yes; then :
34116: 
34117:     LIBS=$old_LIBS
34118: 
34119: else
34120:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34121: /* end confdefs.h.  */
34122: 
34123: 
34124:     char xmlInitParser();
34125:     int main() {
34126:       xmlInitParser();
34127:       return 0;
34128:     }
34129: 
34130: _ACEOF
34131: if ac_fn_c_try_run "$LINENO"; then :
34132: 
34133:     LIBS=$old_LIBS
34134: 
34135:           php_cv_libxml_build_works=yes
34136: 
34137: 
34138: else
34139: 
34140:     LIBS=$old_LIBS
34141: 
34142:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34143: $as_echo "no" >&6; }
34144:           as_fn_error $? "build test failed.  Please check the config.log for details." "$LINENO" 5
34145: 
34146: 
34147: fi
34148: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34149:   conftest.$ac_objext conftest.beam conftest.$ac_ext
34150: fi
34151: 
34152: 
34153: 
34154: fi
34155: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_libxml_build_works" >&5
34156: $as_echo "$php_cv_libxml_build_works" >&6; }
34157:       if test "$php_cv_libxml_build_works" = "yes"; then
34158: 
34159: $as_echo "#define HAVE_LIBXML 1" >>confdefs.h
34160: 
34161:       fi
34162: 
34163: 
34164: $as_echo "#define HAVE_DOM 1" >>confdefs.h
34165: 
34166: 
34167:   ext_builddir=ext/dom
34168:   ext_srcdir=$abs_srcdir/ext/dom
34169: 
34170:   ac_extra=
34171: 
34172:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
34173:     PHP_DOM_SHARED=no
34174: 
34175: 
34176:   case ext/dom in
34177:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
34178:   /*) ac_srcdir=`echo "ext/dom"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
34179:   *) ac_srcdir="$abs_srcdir/ext/dom/"; ac_bdir="ext/dom/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
34180:   esac
34181: 
34182: 
34183: 
34184:   b_c_pre=$php_c_pre
34185:   b_cxx_pre=$php_cxx_pre
34186:   b_c_meta=$php_c_meta
34187:   b_cxx_meta=$php_cxx_meta
34188:   b_c_post=$php_c_post
34189:   b_cxx_post=$php_cxx_post
34190:   b_lo=$php_lo
34191: 
34192: 
34193:   old_IFS=$IFS
34194:   for ac_src in php_dom.c attr.c document.c domerrorhandler.c \
34195:                             domstringlist.c domexception.c namelist.c \
34196:                             processinginstruction.c cdatasection.c \
34197:                             documentfragment.c domimplementation.c \
34198:                             element.c node.c string_extend.c characterdata.c \
34199:                             documenttype.c domimplementationlist.c entity.c \
34200:                             nodelist.c text.c comment.c domconfiguration.c \
34201:                             domimplementationsource.c entityreference.c \
34202:                             notation.c xpath.c dom_iterators.c \
34203:                             typeinfo.c domerror.c domlocator.c namednodemap.c userdatahandler.c; do
34204: 
34205:       IFS=.
34206:       set $ac_src
34207:       ac_obj=$1
34208:       IFS=$old_IFS
34209: 
34210:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
34211: 
34212:       case $ac_src in
34213:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
34214:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
34215:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
34216:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
34217:       esac
34218: 
34219:     cat >>Makefile.objects<<EOF
34220: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
34221: 	$ac_comp
34222: EOF
34223:   done
34224: 
34225: 
34226:     EXT_STATIC="$EXT_STATIC dom"
34227:     if test "$ext_shared" != "nocli"; then
34228:       EXT_CLI_STATIC="$EXT_CLI_STATIC dom"
34229:     fi
34230:   else
34231:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
34232:       PHP_DOM_SHARED=yes
34233: 
34234:   case ext/dom in
34235:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
34236:   /*) ac_srcdir=`echo "ext/dom"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
34237:   *) ac_srcdir="$abs_srcdir/ext/dom/"; ac_bdir="ext/dom/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
34238:   esac
34239: 
34240: 
34241: 
34242:   b_c_pre=$shared_c_pre
34243:   b_cxx_pre=$shared_cxx_pre
34244:   b_c_meta=$shared_c_meta
34245:   b_cxx_meta=$shared_cxx_meta
34246:   b_c_post=$shared_c_post
34247:   b_cxx_post=$shared_cxx_post
34248:   b_lo=$shared_lo
34249: 
34250: 
34251:   old_IFS=$IFS
34252:   for ac_src in php_dom.c attr.c document.c domerrorhandler.c \
34253:                             domstringlist.c domexception.c namelist.c \
34254:                             processinginstruction.c cdatasection.c \
34255:                             documentfragment.c domimplementation.c \
34256:                             element.c node.c string_extend.c characterdata.c \
34257:                             documenttype.c domimplementationlist.c entity.c \
34258:                             nodelist.c text.c comment.c domconfiguration.c \
34259:                             domimplementationsource.c entityreference.c \
34260:                             notation.c xpath.c dom_iterators.c \
34261:                             typeinfo.c domerror.c domlocator.c namednodemap.c userdatahandler.c; do
34262: 
34263:       IFS=.
34264:       set $ac_src
34265:       ac_obj=$1
34266:       IFS=$old_IFS
34267: 
34268:       shared_objects_dom="$shared_objects_dom $ac_bdir$ac_obj.lo"
34269: 
34270:       case $ac_src in
34271:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
34272:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
34273:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
34274:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
34275:       esac
34276: 
34277:     cat >>Makefile.objects<<EOF
34278: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
34279: 	$ac_comp
34280: EOF
34281:   done
34282: 
34283:       case $host_alias in
34284:         *netware*)
34285: 
34286:   install_modules="install-modules"
34287: 
34288:   case $host_alias in
34289:     *aix*)
34290:       suffix=so
34291:       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'
34292:       ;;
34293:     *netware*)
34294:       suffix=nlm
34295:       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)'
34296:       ;;
34297:     *)
34298:       suffix=la
34299:       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)'
34300:       ;;
34301:   esac
34302: 
34303:   if test "x" = "xyes"; then
34304:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpdom.$suffix"
34305:   else
34306:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpdom.$suffix"
34307:   fi
34308: 
34309:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_dom"
34310: 
34311:   cat >>Makefile.objects<<EOF
34312: \$(phplibdir)/phpdom.$suffix: $ext_builddir/phpdom.$suffix
34313: 	\$(LIBTOOL) --mode=install cp $ext_builddir/phpdom.$suffix \$(phplibdir)
34314: 
34315: $ext_builddir/phpdom.$suffix: \$(shared_objects_dom) \$(PHPDOM_SHARED_DEPENDENCIES)
34316: 	$link_cmd
34317: 
34318: EOF
34319: 
34320:           ;;
34321:         *)
34322: 
34323:   install_modules="install-modules"
34324: 
34325:   case $host_alias in
34326:     *aix*)
34327:       suffix=so
34328:       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'
34329:       ;;
34330:     *netware*)
34331:       suffix=nlm
34332:       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)'
34333:       ;;
34334:     *)
34335:       suffix=la
34336:       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)'
34337:       ;;
34338:   esac
34339: 
34340:   if test "x" = "xyes"; then
34341:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/dom.$suffix"
34342:   else
34343:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/dom.$suffix"
34344:   fi
34345: 
34346:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_dom"
34347: 
34348:   cat >>Makefile.objects<<EOF
34349: \$(phplibdir)/dom.$suffix: $ext_builddir/dom.$suffix
34350: 	\$(LIBTOOL) --mode=install cp $ext_builddir/dom.$suffix \$(phplibdir)
34351: 
34352: $ext_builddir/dom.$suffix: \$(shared_objects_dom) \$(DOM_SHARED_DEPENDENCIES)
34353: 	$link_cmd
34354: 
34355: EOF
34356: 
34357:           ;;
34358:       esac
34359: 
34360: cat >>confdefs.h <<_ACEOF
34361: #define COMPILE_DL_DOM 1
34362: _ACEOF
34363: 
34364:     fi
34365:   fi
34366: 
34367:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
34368:     PHP_DOM_SHARED=no
34369:     case "$PHP_SAPI" in
34370:       cgi|embed)
34371: 
34372: 
34373:   case ext/dom in
34374:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
34375:   /*) ac_srcdir=`echo "ext/dom"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
34376:   *) ac_srcdir="$abs_srcdir/ext/dom/"; ac_bdir="ext/dom/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
34377:   esac
34378: 
34379: 
34380: 
34381:   b_c_pre=$php_c_pre
34382:   b_cxx_pre=$php_cxx_pre
34383:   b_c_meta=$php_c_meta
34384:   b_cxx_meta=$php_cxx_meta
34385:   b_c_post=$php_c_post
34386:   b_cxx_post=$php_cxx_post
34387:   b_lo=$php_lo
34388: 
34389: 
34390:   old_IFS=$IFS
34391:   for ac_src in php_dom.c attr.c document.c domerrorhandler.c \
34392:                             domstringlist.c domexception.c namelist.c \
34393:                             processinginstruction.c cdatasection.c \
34394:                             documentfragment.c domimplementation.c \
34395:                             element.c node.c string_extend.c characterdata.c \
34396:                             documenttype.c domimplementationlist.c entity.c \
34397:                             nodelist.c text.c comment.c domconfiguration.c \
34398:                             domimplementationsource.c entityreference.c \
34399:                             notation.c xpath.c dom_iterators.c \
34400:                             typeinfo.c domerror.c domlocator.c namednodemap.c userdatahandler.c; do
34401: 
34402:       IFS=.
34403:       set $ac_src
34404:       ac_obj=$1
34405:       IFS=$old_IFS
34406: 
34407:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
34408: 
34409:       case $ac_src in
34410:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
34411:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
34412:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
34413:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
34414:       esac
34415: 
34416:     cat >>Makefile.objects<<EOF
34417: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
34418: 	$ac_comp
34419: EOF
34420:   done
34421: 
34422: 
34423:         EXT_STATIC="$EXT_STATIC dom"
34424:         ;;
34425:       *)
34426: 
34427: 
34428:   case ext/dom in
34429:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
34430:   /*) ac_srcdir=`echo "ext/dom"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
34431:   *) ac_srcdir="$abs_srcdir/ext/dom/"; ac_bdir="ext/dom/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
34432:   esac
34433: 
34434: 
34435: 
34436:   b_c_pre=$php_c_pre
34437:   b_cxx_pre=$php_cxx_pre
34438:   b_c_meta=$php_c_meta
34439:   b_cxx_meta=$php_cxx_meta
34440:   b_c_post=$php_c_post
34441:   b_cxx_post=$php_cxx_post
34442:   b_lo=$php_lo
34443: 
34444: 
34445:   old_IFS=$IFS
34446:   for ac_src in php_dom.c attr.c document.c domerrorhandler.c \
34447:                             domstringlist.c domexception.c namelist.c \
34448:                             processinginstruction.c cdatasection.c \
34449:                             documentfragment.c domimplementation.c \
34450:                             element.c node.c string_extend.c characterdata.c \
34451:                             documenttype.c domimplementationlist.c entity.c \
34452:                             nodelist.c text.c comment.c domconfiguration.c \
34453:                             domimplementationsource.c entityreference.c \
34454:                             notation.c xpath.c dom_iterators.c \
34455:                             typeinfo.c domerror.c domlocator.c namednodemap.c userdatahandler.c; do
34456: 
34457:       IFS=.
34458:       set $ac_src
34459:       ac_obj=$1
34460:       IFS=$old_IFS
34461: 
34462:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
34463: 
34464:       case $ac_src in
34465:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
34466:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
34467:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
34468:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
34469:       esac
34470: 
34471:     cat >>Makefile.objects<<EOF
34472: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
34473: 	$ac_comp
34474: EOF
34475:   done
34476: 
34477: 
34478:         ;;
34479:     esac
34480:     EXT_CLI_STATIC="$EXT_CLI_STATIC dom"
34481:   fi
34482: 
34483: 
34484:     BUILD_DIR="$BUILD_DIR $ext_builddir"
34485: 
34486: 
34487: 
34488:   if test "$ext_builddir" = "."; then
34489:     PHP_PECL_EXTENSION=dom
34490: 
34491:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
34492: 
34493:   fi
34494: 
34495: 
34496:   PHP_VAR_SUBST="$PHP_VAR_SUBST DOM_SHARED_LIBADD"
34497: 
34498: 
34499: 
34500:     for header_file in ext/dom/xml_common.h; do
34501: 
34502: 
34503:   unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
34504: 
34505:   cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
34506:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
34507:     eval "INSTALLHEADERS$unique=set"
34508: 
34509:         INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
34510: 
34511:   fi
34512: 
34513:     done
34514: 
34515: 
34516: 
34517:   am_i_shared=$PHP_DOM_SHARED
34518:   is_it_shared=$PHP_LIBXML_SHARED
34519:   is_it_enabled=$PHP_LIBXML
34520:   if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
34521:     as_fn_error $? "
34522: You've configured extension dom to build statically, but it
34523: depends on extension libxml, which you've configured to build shared.
34524: You either need to build dom shared or build libxml statically for the
34525: build to be successful.
34526: " "$LINENO" 5
34527:   fi
34528:   if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then
34529:     as_fn_error $? "
34530: You've configured extension dom, which depends on extension libxml,
34531: but you've either not enabled libxml, or have disabled it.
34532: " "$LINENO" 5
34533:   fi
34534: 
34535: 
34536:     else
34537:       as_fn_error $? "libxml2 version 2.6.11 or greater required." "$LINENO" 5
34538:     fi
34539: else
34540:     as_fn_error $? "xml2-config not found. Please check your libxml2 installation." "$LINENO" 5
34541: 
34542:   fi
34543: 
34544: fi
34545: 
34546: 
34547: 
34548: php_with_enchant=no
34549: 
34550: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENCHANT support" >&5
34551: $as_echo_n "checking for ENCHANT support... " >&6; }
34552: 
34553: # Check whether --with-enchant was given.
34554: if test "${with_enchant+set}" = set; then :
34555:   withval=$with_enchant; PHP_ENCHANT=$withval
34556: else
34557: 
34558:   PHP_ENCHANT=no
34559:   test "$PHP_ENABLE_ALL" && PHP_ENCHANT=$PHP_ENABLE_ALL
34560: 
34561: fi
34562: 
34563: 
34564: 
34565: ext_output="yes, shared"
34566: ext_shared=yes
34567: case $PHP_ENCHANT in
34568: shared,*)
34569:   PHP_ENCHANT=`echo "$PHP_ENCHANT"|$SED 's/^shared,//'`
34570:   ;;
34571: shared)
34572:   PHP_ENCHANT=yes
34573:   ;;
34574: no)
34575:   ext_output=no
34576:   ext_shared=no
34577:   ;;
34578: *)
34579:   ext_output=yes
34580:   ext_shared=no
34581:   ;;
34582: esac
34583: 
34584: 
34585: 
34586: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
34587: $as_echo "$ext_output" >&6; }
34588: 
34589: 
34590: 
34591: 
34592: if test "$PHP_ENCHANT" != "no"; then
34593: 
34594:   ext_builddir=ext/enchant
34595:   ext_srcdir=$abs_srcdir/ext/enchant
34596: 
34597:   ac_extra=
34598: 
34599:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
34600:     PHP_ENCHANT_SHARED=no
34601: 
34602: 
34603:   case ext/enchant in
34604:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
34605:   /*) ac_srcdir=`echo "ext/enchant"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
34606:   *) ac_srcdir="$abs_srcdir/ext/enchant/"; ac_bdir="ext/enchant/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
34607:   esac
34608: 
34609: 
34610: 
34611:   b_c_pre=$php_c_pre
34612:   b_cxx_pre=$php_cxx_pre
34613:   b_c_meta=$php_c_meta
34614:   b_cxx_meta=$php_cxx_meta
34615:   b_c_post=$php_c_post
34616:   b_cxx_post=$php_cxx_post
34617:   b_lo=$php_lo
34618: 
34619: 
34620:   old_IFS=$IFS
34621:   for ac_src in enchant.c; do
34622: 
34623:       IFS=.
34624:       set $ac_src
34625:       ac_obj=$1
34626:       IFS=$old_IFS
34627: 
34628:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
34629: 
34630:       case $ac_src in
34631:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
34632:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
34633:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
34634:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
34635:       esac
34636: 
34637:     cat >>Makefile.objects<<EOF
34638: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
34639: 	$ac_comp
34640: EOF
34641:   done
34642: 
34643: 
34644:     EXT_STATIC="$EXT_STATIC enchant"
34645:     if test "$ext_shared" != "nocli"; then
34646:       EXT_CLI_STATIC="$EXT_CLI_STATIC enchant"
34647:     fi
34648:   else
34649:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
34650:       PHP_ENCHANT_SHARED=yes
34651: 
34652:   case ext/enchant in
34653:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
34654:   /*) ac_srcdir=`echo "ext/enchant"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
34655:   *) ac_srcdir="$abs_srcdir/ext/enchant/"; ac_bdir="ext/enchant/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
34656:   esac
34657: 
34658: 
34659: 
34660:   b_c_pre=$shared_c_pre
34661:   b_cxx_pre=$shared_cxx_pre
34662:   b_c_meta=$shared_c_meta
34663:   b_cxx_meta=$shared_cxx_meta
34664:   b_c_post=$shared_c_post
34665:   b_cxx_post=$shared_cxx_post
34666:   b_lo=$shared_lo
34667: 
34668: 
34669:   old_IFS=$IFS
34670:   for ac_src in enchant.c; do
34671: 
34672:       IFS=.
34673:       set $ac_src
34674:       ac_obj=$1
34675:       IFS=$old_IFS
34676: 
34677:       shared_objects_enchant="$shared_objects_enchant $ac_bdir$ac_obj.lo"
34678: 
34679:       case $ac_src in
34680:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
34681:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
34682:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
34683:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
34684:       esac
34685: 
34686:     cat >>Makefile.objects<<EOF
34687: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
34688: 	$ac_comp
34689: EOF
34690:   done
34691: 
34692:       case $host_alias in
34693:         *netware*)
34694: 
34695:   install_modules="install-modules"
34696: 
34697:   case $host_alias in
34698:     *aix*)
34699:       suffix=so
34700:       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'
34701:       ;;
34702:     *netware*)
34703:       suffix=nlm
34704:       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)'
34705:       ;;
34706:     *)
34707:       suffix=la
34708:       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)'
34709:       ;;
34710:   esac
34711: 
34712:   if test "x" = "xyes"; then
34713:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpenchant.$suffix"
34714:   else
34715:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpenchant.$suffix"
34716:   fi
34717: 
34718:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_enchant"
34719: 
34720:   cat >>Makefile.objects<<EOF
34721: \$(phplibdir)/phpenchant.$suffix: $ext_builddir/phpenchant.$suffix
34722: 	\$(LIBTOOL) --mode=install cp $ext_builddir/phpenchant.$suffix \$(phplibdir)
34723: 
34724: $ext_builddir/phpenchant.$suffix: \$(shared_objects_enchant) \$(PHPENCHANT_SHARED_DEPENDENCIES)
34725: 	$link_cmd
34726: 
34727: EOF
34728: 
34729:           ;;
34730:         *)
34731: 
34732:   install_modules="install-modules"
34733: 
34734:   case $host_alias in
34735:     *aix*)
34736:       suffix=so
34737:       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'
34738:       ;;
34739:     *netware*)
34740:       suffix=nlm
34741:       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)'
34742:       ;;
34743:     *)
34744:       suffix=la
34745:       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)'
34746:       ;;
34747:   esac
34748: 
34749:   if test "x" = "xyes"; then
34750:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/enchant.$suffix"
34751:   else
34752:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/enchant.$suffix"
34753:   fi
34754: 
34755:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_enchant"
34756: 
34757:   cat >>Makefile.objects<<EOF
34758: \$(phplibdir)/enchant.$suffix: $ext_builddir/enchant.$suffix
34759: 	\$(LIBTOOL) --mode=install cp $ext_builddir/enchant.$suffix \$(phplibdir)
34760: 
34761: $ext_builddir/enchant.$suffix: \$(shared_objects_enchant) \$(ENCHANT_SHARED_DEPENDENCIES)
34762: 	$link_cmd
34763: 
34764: EOF
34765: 
34766:           ;;
34767:       esac
34768: 
34769: cat >>confdefs.h <<_ACEOF
34770: #define COMPILE_DL_ENCHANT 1
34771: _ACEOF
34772: 
34773:     fi
34774:   fi
34775: 
34776:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
34777:     PHP_ENCHANT_SHARED=no
34778:     case "$PHP_SAPI" in
34779:       cgi|embed)
34780: 
34781: 
34782:   case ext/enchant in
34783:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
34784:   /*) ac_srcdir=`echo "ext/enchant"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
34785:   *) ac_srcdir="$abs_srcdir/ext/enchant/"; ac_bdir="ext/enchant/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
34786:   esac
34787: 
34788: 
34789: 
34790:   b_c_pre=$php_c_pre
34791:   b_cxx_pre=$php_cxx_pre
34792:   b_c_meta=$php_c_meta
34793:   b_cxx_meta=$php_cxx_meta
34794:   b_c_post=$php_c_post
34795:   b_cxx_post=$php_cxx_post
34796:   b_lo=$php_lo
34797: 
34798: 
34799:   old_IFS=$IFS
34800:   for ac_src in enchant.c; do
34801: 
34802:       IFS=.
34803:       set $ac_src
34804:       ac_obj=$1
34805:       IFS=$old_IFS
34806: 
34807:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
34808: 
34809:       case $ac_src in
34810:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
34811:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
34812:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
34813:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
34814:       esac
34815: 
34816:     cat >>Makefile.objects<<EOF
34817: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
34818: 	$ac_comp
34819: EOF
34820:   done
34821: 
34822: 
34823:         EXT_STATIC="$EXT_STATIC enchant"
34824:         ;;
34825:       *)
34826: 
34827: 
34828:   case ext/enchant in
34829:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
34830:   /*) ac_srcdir=`echo "ext/enchant"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
34831:   *) ac_srcdir="$abs_srcdir/ext/enchant/"; ac_bdir="ext/enchant/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
34832:   esac
34833: 
34834: 
34835: 
34836:   b_c_pre=$php_c_pre
34837:   b_cxx_pre=$php_cxx_pre
34838:   b_c_meta=$php_c_meta
34839:   b_cxx_meta=$php_cxx_meta
34840:   b_c_post=$php_c_post
34841:   b_cxx_post=$php_cxx_post
34842:   b_lo=$php_lo
34843: 
34844: 
34845:   old_IFS=$IFS
34846:   for ac_src in enchant.c; do
34847: 
34848:       IFS=.
34849:       set $ac_src
34850:       ac_obj=$1
34851:       IFS=$old_IFS
34852: 
34853:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
34854: 
34855:       case $ac_src in
34856:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
34857:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
34858:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
34859:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
34860:       esac
34861: 
34862:     cat >>Makefile.objects<<EOF
34863: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
34864: 	$ac_comp
34865: EOF
34866:   done
34867: 
34868: 
34869:         ;;
34870:     esac
34871:     EXT_CLI_STATIC="$EXT_CLI_STATIC enchant"
34872:   fi
34873: 
34874: 
34875:     BUILD_DIR="$BUILD_DIR $ext_builddir"
34876: 
34877: 
34878: 
34879:   if test "$ext_builddir" = "."; then
34880:     PHP_PECL_EXTENSION=enchant
34881: 
34882:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
34883: 
34884:   fi
34885: 
34886: 	if test "$PHP_ENCHANT" != "yes"; then
34887: 	    ENCHANT_SEARCH_DIRS=$PHP_ENCHANT
34888: 	else
34889: 	    ENCHANT_SEARCH_DIRS="/usr/local /usr"
34890: 	fi
34891: 	for i in $ENCHANT_SEARCH_DIRS; do
34892: 		if test -f $i/include/enchant/enchant.h; then
34893: 			ENCHANT_DIR=$i
34894: 			ENCHANT_INCDIR=$i/include/enchant
34895: 		elif test -f $i/include/enchant.h; then
34896: 			ENCHANT_DIR=$i
34897: 			ENCHANT_INCDIR=$i/include
34898: 		fi
34899: 	done
34900: 
34901: 	if test -z "$ENCHANT_DIR"; then
34902: 		as_fn_error $? "Cannot find enchant" "$LINENO" 5
34903: 	fi
34904: 
34905: 	ENCHANT_LIBDIR=$ENCHANT_DIR/lib
34906: 
34907: 
34908: $as_echo "#define HAVE_ENCHANT 1" >>confdefs.h
34909: 
34910: 
34911:   PHP_VAR_SUBST="$PHP_VAR_SUBST ENCHANT_SHARED_LIBADD"
34912: 
34913: 
34914: 
34915:   if test "$ext_shared" = "yes"; then
34916:     ENCHANT_SHARED_LIBADD="-lenchant $ENCHANT_SHARED_LIBADD"
34917:     if test -n "$ENCHANT_LIBDIR"; then
34918: 
34919:   if test "$ENCHANT_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$ENCHANT_LIBDIR" != "/usr/lib"; then
34920: 
34921:   if test -z "$ENCHANT_LIBDIR" || echo "$ENCHANT_LIBDIR" | grep '^/' >/dev/null ; then
34922:     ai_p=$ENCHANT_LIBDIR
34923:   else
34924: 
34925:     ep_dir=`echo $ENCHANT_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
34926: 
34927:     ep_realdir=`(cd "$ep_dir" && pwd)`
34928:     ai_p="$ep_realdir"/`basename "$ENCHANT_LIBDIR"`
34929:   fi
34930: 
34931: 
34932:       if test "$ext_shared" = "yes"; then
34933:         ENCHANT_SHARED_LIBADD="-L$ai_p $ENCHANT_SHARED_LIBADD"
34934:         test -n "$ld_runpath_switch" && ENCHANT_SHARED_LIBADD="$ld_runpath_switch$ai_p $ENCHANT_SHARED_LIBADD"
34935:       else
34936: 
34937: 
34938: 
34939:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
34940: 
34941:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
34942:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
34943:     eval "LIBPATH$unique=set"
34944: 
34945:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
34946:     LDFLAGS="$LDFLAGS -L$ai_p"
34947:     PHP_RPATHS="$PHP_RPATHS $ai_p"
34948: 
34949:   fi
34950: 
34951: 
34952:       fi
34953: 
34954:   fi
34955: 
34956:     fi
34957:   else
34958: 
34959: 
34960:   if test -n "$ENCHANT_LIBDIR"; then
34961: 
34962:   if test "$ENCHANT_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$ENCHANT_LIBDIR" != "/usr/lib"; then
34963: 
34964:   if test -z "$ENCHANT_LIBDIR" || echo "$ENCHANT_LIBDIR" | grep '^/' >/dev/null ; then
34965:     ai_p=$ENCHANT_LIBDIR
34966:   else
34967: 
34968:     ep_dir=`echo $ENCHANT_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
34969: 
34970:     ep_realdir=`(cd "$ep_dir" && pwd)`
34971:     ai_p="$ep_realdir"/`basename "$ENCHANT_LIBDIR"`
34972:   fi
34973: 
34974: 
34975: 
34976: 
34977: 
34978:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
34979: 
34980:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
34981:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
34982:     eval "LIBPATH$unique=set"
34983: 
34984:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
34985:     LDFLAGS="$LDFLAGS -L$ai_p"
34986:     PHP_RPATHS="$PHP_RPATHS $ai_p"
34987: 
34988:   fi
34989: 
34990: 
34991: 
34992:   fi
34993: 
34994:   fi
34995: 
34996: 
34997:   case enchant in
34998:   c|c_r|pthread*) ;;
34999:   *)
35000:       LIBS="-lenchant $LIBS"
35001:    ;;
35002:   esac
35003: 
35004: 
35005: 
35006: 
35007:   fi
35008: 
35009: 
35010: 
35011:   if test "$ENCHANT_INCDIR" != "/usr/include"; then
35012: 
35013:   if test -z "$ENCHANT_INCDIR" || echo "$ENCHANT_INCDIR" | grep '^/' >/dev/null ; then
35014:     ai_p=$ENCHANT_INCDIR
35015:   else
35016: 
35017:     ep_dir=`echo $ENCHANT_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`
35018: 
35019:     ep_realdir=`(cd "$ep_dir" && pwd)`
35020:     ai_p="$ep_realdir"/`basename "$ENCHANT_INCDIR"`
35021:   fi
35022: 
35023: 
35024: 
35025:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
35026: 
35027:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
35028:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
35029:     eval "INCLUDEPATH$unique=set"
35030: 
35031:       if test ""; then
35032:         INCLUDES="-I$ai_p $INCLUDES"
35033:       else
35034:         INCLUDES="$INCLUDES -I$ai_p"
35035:       fi
35036: 
35037:   fi
35038: 
35039:   fi
35040: 
35041: 
35042:   save_old_LDFLAGS=$LDFLAGS
35043:   ac_stuff=" -L$ENCHANT_LIB $ENCHANT_SHARED_LIBADD"
35044: 
35045:   save_ext_shared=$ext_shared
35046:   ext_shared=yes
35047: 
35048:   for ac_i in $ac_stuff; do
35049:     case $ac_i in
35050:     -pthread)
35051:       if test "$ext_shared" = "yes"; then
35052:         LDFLAGS="$LDFLAGS -pthread"
35053:       else
35054: 
35055: 
35056:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
35057: 
35058:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
35059:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
35060:     eval "EXTRA_LDFLAGS$unique=set"
35061:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
35062:   fi
35063: 
35064:       fi
35065:     ;;
35066:     -l*)
35067:       ac_ii=`echo $ac_i|cut -c 3-`
35068: 
35069: 
35070:   case $ac_ii in
35071:   c|c_r|pthread*) ;;
35072:   *)
35073:     if test "$ext_shared" = "yes"; then
35074:         LDFLAGS="$LDFLAGS -l$ac_ii"
35075:     else
35076: 
35077: 
35078:   case $ac_ii in
35079:   c|c_r|pthread*) ;;
35080:   *)
35081:       LIBS="$LIBS -l$ac_ii"
35082:    ;;
35083:   esac
35084: 
35085: 
35086:     fi
35087:    ;;
35088:   esac
35089: 
35090: 
35091:     ;;
35092:     -L*)
35093:       ac_ii=`echo $ac_i|cut -c 3-`
35094: 
35095:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
35096: 
35097:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
35098:     ai_p=$ac_ii
35099:   else
35100: 
35101:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
35102: 
35103:     ep_realdir=`(cd "$ep_dir" && pwd)`
35104:     ai_p="$ep_realdir"/`basename "$ac_ii"`
35105:   fi
35106: 
35107: 
35108:       if test "$ext_shared" = "yes"; then
35109:         LDFLAGS="-L$ai_p $LDFLAGS"
35110:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
35111:       else
35112: 
35113: 
35114: 
35115:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
35116: 
35117:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
35118:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
35119:     eval "LIBPATH$unique=set"
35120: 
35121:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
35122:     LDFLAGS="$LDFLAGS -L$ai_p"
35123:     PHP_RPATHS="$PHP_RPATHS $ai_p"
35124: 
35125:   fi
35126: 
35127: 
35128:       fi
35129: 
35130:   fi
35131: 
35132:     ;;
35133:     esac
35134:   done
35135: 
35136:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for enchant_broker_set_param in -lenchant" >&5
35137: $as_echo_n "checking for enchant_broker_set_param in -lenchant... " >&6; }
35138: if ${ac_cv_lib_enchant_enchant_broker_set_param+:} false; then :
35139:   $as_echo_n "(cached) " >&6
35140: else
35141:   ac_check_lib_save_LIBS=$LIBS
35142: LIBS="-lenchant  $LIBS"
35143: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35144: /* end confdefs.h.  */
35145: 
35146: /* Override any GCC internal prototype to avoid an error.
35147:    Use char because int might match the return type of a GCC
35148:    builtin and then its argument prototype would still apply.  */
35149: #ifdef __cplusplus
35150: extern "C"
35151: #endif
35152: char enchant_broker_set_param ();
35153: int
35154: main ()
35155: {
35156: return enchant_broker_set_param ();
35157:   ;
35158:   return 0;
35159: }
35160: _ACEOF
35161: if ac_fn_c_try_link "$LINENO"; then :
35162:   ac_cv_lib_enchant_enchant_broker_set_param=yes
35163: else
35164:   ac_cv_lib_enchant_enchant_broker_set_param=no
35165: fi
35166: rm -f core conftest.err conftest.$ac_objext \
35167:     conftest$ac_exeext conftest.$ac_ext
35168: LIBS=$ac_check_lib_save_LIBS
35169: fi
35170: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_enchant_enchant_broker_set_param" >&5
35171: $as_echo "$ac_cv_lib_enchant_enchant_broker_set_param" >&6; }
35172: if test "x$ac_cv_lib_enchant_enchant_broker_set_param" = xyes; then :
35173: 
35174:     LDFLAGS=$save_old_LDFLAGS
35175:     ext_shared=$save_ext_shared
35176: 
35177: 
35178: $as_echo "#define HAVE_ENCHANT_BROKER_SET_PARAM 1" >>confdefs.h
35179: 
35180: 
35181: $as_echo "#define ENCHANT_VERSION_STRING \"1.5.x\"" >>confdefs.h
35182: 
35183: 
35184: 
35185: else
35186: 
35187:     LDFLAGS=$save_old_LDFLAGS
35188:     ext_shared=$save_ext_shared
35189:     unset ac_cv_lib_enchant_enchant_broker_set_param
35190: 
35191: 
35192: fi
35193: 
35194: 
35195: fi
35196: 
35197: 
35198: 
35199: php_enable_exif=no
35200: 
35201: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable EXIF (metadata from images) support" >&5
35202: $as_echo_n "checking whether to enable EXIF (metadata from images) support... " >&6; }
35203: # Check whether --enable-exif was given.
35204: if test "${enable_exif+set}" = set; then :
35205:   enableval=$enable_exif; PHP_EXIF=$enableval
35206: else
35207: 
35208:   PHP_EXIF=no
35209:   test "$PHP_ENABLE_ALL" && PHP_EXIF=$PHP_ENABLE_ALL
35210: 
35211: fi
35212: 
35213: 
35214: 
35215: ext_output="yes, shared"
35216: ext_shared=yes
35217: case $PHP_EXIF in
35218: shared,*)
35219:   PHP_EXIF=`echo "$PHP_EXIF"|$SED 's/^shared,//'`
35220:   ;;
35221: shared)
35222:   PHP_EXIF=yes
35223:   ;;
35224: no)
35225:   ext_output=no
35226:   ext_shared=no
35227:   ;;
35228: *)
35229:   ext_output=yes
35230:   ext_shared=no
35231:   ;;
35232: esac
35233: 
35234: 
35235: 
35236: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
35237: $as_echo "$ext_output" >&6; }
35238: 
35239: 
35240: 
35241: 
35242: if test "$PHP_EXIF" != "no"; then
35243: 
35244: $as_echo "#define HAVE_EXIF 1" >>confdefs.h
35245: 
35246: 
35247:   ext_builddir=ext/exif
35248:   ext_srcdir=$abs_srcdir/ext/exif
35249: 
35250:   ac_extra=
35251: 
35252:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
35253:     PHP_EXIF_SHARED=no
35254: 
35255: 
35256:   case ext/exif in
35257:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
35258:   /*) ac_srcdir=`echo "ext/exif"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
35259:   *) ac_srcdir="$abs_srcdir/ext/exif/"; ac_bdir="ext/exif/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
35260:   esac
35261: 
35262: 
35263: 
35264:   b_c_pre=$php_c_pre
35265:   b_cxx_pre=$php_cxx_pre
35266:   b_c_meta=$php_c_meta
35267:   b_cxx_meta=$php_cxx_meta
35268:   b_c_post=$php_c_post
35269:   b_cxx_post=$php_cxx_post
35270:   b_lo=$php_lo
35271: 
35272: 
35273:   old_IFS=$IFS
35274:   for ac_src in exif.c; do
35275: 
35276:       IFS=.
35277:       set $ac_src
35278:       ac_obj=$1
35279:       IFS=$old_IFS
35280: 
35281:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
35282: 
35283:       case $ac_src in
35284:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
35285:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
35286:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
35287:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
35288:       esac
35289: 
35290:     cat >>Makefile.objects<<EOF
35291: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
35292: 	$ac_comp
35293: EOF
35294:   done
35295: 
35296: 
35297:     EXT_STATIC="$EXT_STATIC exif"
35298:     if test "$ext_shared" != "nocli"; then
35299:       EXT_CLI_STATIC="$EXT_CLI_STATIC exif"
35300:     fi
35301:   else
35302:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
35303:       PHP_EXIF_SHARED=yes
35304: 
35305:   case ext/exif in
35306:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
35307:   /*) ac_srcdir=`echo "ext/exif"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
35308:   *) ac_srcdir="$abs_srcdir/ext/exif/"; ac_bdir="ext/exif/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
35309:   esac
35310: 
35311: 
35312: 
35313:   b_c_pre=$shared_c_pre
35314:   b_cxx_pre=$shared_cxx_pre
35315:   b_c_meta=$shared_c_meta
35316:   b_cxx_meta=$shared_cxx_meta
35317:   b_c_post=$shared_c_post
35318:   b_cxx_post=$shared_cxx_post
35319:   b_lo=$shared_lo
35320: 
35321: 
35322:   old_IFS=$IFS
35323:   for ac_src in exif.c; do
35324: 
35325:       IFS=.
35326:       set $ac_src
35327:       ac_obj=$1
35328:       IFS=$old_IFS
35329: 
35330:       shared_objects_exif="$shared_objects_exif $ac_bdir$ac_obj.lo"
35331: 
35332:       case $ac_src in
35333:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
35334:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
35335:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
35336:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
35337:       esac
35338: 
35339:     cat >>Makefile.objects<<EOF
35340: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
35341: 	$ac_comp
35342: EOF
35343:   done
35344: 
35345:       case $host_alias in
35346:         *netware*)
35347: 
35348:   install_modules="install-modules"
35349: 
35350:   case $host_alias in
35351:     *aix*)
35352:       suffix=so
35353:       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'
35354:       ;;
35355:     *netware*)
35356:       suffix=nlm
35357:       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)'
35358:       ;;
35359:     *)
35360:       suffix=la
35361:       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)'
35362:       ;;
35363:   esac
35364: 
35365:   if test "x" = "xyes"; then
35366:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpexif.$suffix"
35367:   else
35368:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpexif.$suffix"
35369:   fi
35370: 
35371:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_exif"
35372: 
35373:   cat >>Makefile.objects<<EOF
35374: \$(phplibdir)/phpexif.$suffix: $ext_builddir/phpexif.$suffix
35375: 	\$(LIBTOOL) --mode=install cp $ext_builddir/phpexif.$suffix \$(phplibdir)
35376: 
35377: $ext_builddir/phpexif.$suffix: \$(shared_objects_exif) \$(PHPEXIF_SHARED_DEPENDENCIES)
35378: 	$link_cmd
35379: 
35380: EOF
35381: 
35382:           ;;
35383:         *)
35384: 
35385:   install_modules="install-modules"
35386: 
35387:   case $host_alias in
35388:     *aix*)
35389:       suffix=so
35390:       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'
35391:       ;;
35392:     *netware*)
35393:       suffix=nlm
35394:       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)'
35395:       ;;
35396:     *)
35397:       suffix=la
35398:       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)'
35399:       ;;
35400:   esac
35401: 
35402:   if test "x" = "xyes"; then
35403:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/exif.$suffix"
35404:   else
35405:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/exif.$suffix"
35406:   fi
35407: 
35408:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_exif"
35409: 
35410:   cat >>Makefile.objects<<EOF
35411: \$(phplibdir)/exif.$suffix: $ext_builddir/exif.$suffix
35412: 	\$(LIBTOOL) --mode=install cp $ext_builddir/exif.$suffix \$(phplibdir)
35413: 
35414: $ext_builddir/exif.$suffix: \$(shared_objects_exif) \$(EXIF_SHARED_DEPENDENCIES)
35415: 	$link_cmd
35416: 
35417: EOF
35418: 
35419:           ;;
35420:       esac
35421: 
35422: cat >>confdefs.h <<_ACEOF
35423: #define COMPILE_DL_EXIF 1
35424: _ACEOF
35425: 
35426:     fi
35427:   fi
35428: 
35429:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
35430:     PHP_EXIF_SHARED=no
35431:     case "$PHP_SAPI" in
35432:       cgi|embed)
35433: 
35434: 
35435:   case ext/exif in
35436:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
35437:   /*) ac_srcdir=`echo "ext/exif"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
35438:   *) ac_srcdir="$abs_srcdir/ext/exif/"; ac_bdir="ext/exif/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
35439:   esac
35440: 
35441: 
35442: 
35443:   b_c_pre=$php_c_pre
35444:   b_cxx_pre=$php_cxx_pre
35445:   b_c_meta=$php_c_meta
35446:   b_cxx_meta=$php_cxx_meta
35447:   b_c_post=$php_c_post
35448:   b_cxx_post=$php_cxx_post
35449:   b_lo=$php_lo
35450: 
35451: 
35452:   old_IFS=$IFS
35453:   for ac_src in exif.c; do
35454: 
35455:       IFS=.
35456:       set $ac_src
35457:       ac_obj=$1
35458:       IFS=$old_IFS
35459: 
35460:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
35461: 
35462:       case $ac_src in
35463:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
35464:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
35465:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
35466:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
35467:       esac
35468: 
35469:     cat >>Makefile.objects<<EOF
35470: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
35471: 	$ac_comp
35472: EOF
35473:   done
35474: 
35475: 
35476:         EXT_STATIC="$EXT_STATIC exif"
35477:         ;;
35478:       *)
35479: 
35480: 
35481:   case ext/exif in
35482:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
35483:   /*) ac_srcdir=`echo "ext/exif"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
35484:   *) ac_srcdir="$abs_srcdir/ext/exif/"; ac_bdir="ext/exif/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
35485:   esac
35486: 
35487: 
35488: 
35489:   b_c_pre=$php_c_pre
35490:   b_cxx_pre=$php_cxx_pre
35491:   b_c_meta=$php_c_meta
35492:   b_cxx_meta=$php_cxx_meta
35493:   b_c_post=$php_c_post
35494:   b_cxx_post=$php_cxx_post
35495:   b_lo=$php_lo
35496: 
35497: 
35498:   old_IFS=$IFS
35499:   for ac_src in exif.c; do
35500: 
35501:       IFS=.
35502:       set $ac_src
35503:       ac_obj=$1
35504:       IFS=$old_IFS
35505: 
35506:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
35507: 
35508:       case $ac_src in
35509:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
35510:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
35511:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
35512:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
35513:       esac
35514: 
35515:     cat >>Makefile.objects<<EOF
35516: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
35517: 	$ac_comp
35518: EOF
35519:   done
35520: 
35521: 
35522:         ;;
35523:     esac
35524:     EXT_CLI_STATIC="$EXT_CLI_STATIC exif"
35525:   fi
35526: 
35527: 
35528:     BUILD_DIR="$BUILD_DIR $ext_builddir"
35529: 
35530: 
35531: 
35532:   if test "$ext_builddir" = "."; then
35533:     PHP_PECL_EXTENSION=exif
35534: 
35535:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
35536: 
35537:   fi
35538: 
35539: fi
35540: 
35541: 
35542: 
35543: php_enable_fileinfo=yes
35544: 
35545: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fileinfo support" >&5
35546: $as_echo_n "checking for fileinfo support... " >&6; }
35547: # Check whether --enable-fileinfo was given.
35548: if test "${enable_fileinfo+set}" = set; then :
35549:   enableval=$enable_fileinfo; PHP_FILEINFO=$enableval
35550: else
35551: 
35552:   PHP_FILEINFO=yes
35553:   test "$PHP_ENABLE_ALL" && PHP_FILEINFO=$PHP_ENABLE_ALL
35554: 
35555: fi
35556: 
35557: 
35558: 
35559: ext_output="yes, shared"
35560: ext_shared=yes
35561: case $PHP_FILEINFO in
35562: shared,*)
35563:   PHP_FILEINFO=`echo "$PHP_FILEINFO"|$SED 's/^shared,//'`
35564:   ;;
35565: shared)
35566:   PHP_FILEINFO=yes
35567:   ;;
35568: no)
35569:   ext_output=no
35570:   ext_shared=no
35571:   ;;
35572: *)
35573:   ext_output=yes
35574:   ext_shared=no
35575:   ;;
35576: esac
35577: 
35578: 
35579: 
35580: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
35581: $as_echo "$ext_output" >&6; }
35582: 
35583: 
35584: 
35585: 
35586: if test "$PHP_FILEINFO" != "no"; then
35587: 
35588:   libmagic_sources=" \
35589:     libmagic/apprentice.c libmagic/apptype.c libmagic/ascmagic.c \
35590:     libmagic/cdf.c libmagic/cdf_time.c libmagic/compress.c \
35591:     libmagic/encoding.c libmagic/fsmagic.c libmagic/funcs.c \
35592:     libmagic/is_tar.c libmagic/magic.c libmagic/print.c \
35593:     libmagic/readcdf.c libmagic/readelf.c libmagic/softmagic.c"
35594: 
35595: 
35596:   ext_builddir=ext/fileinfo
35597:   ext_srcdir=$abs_srcdir/ext/fileinfo
35598: 
35599:   ac_extra=`echo "-I@ext_srcdir@/libmagic"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
35600: 
35601:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
35602:     PHP_FILEINFO_SHARED=no
35603: 
35604: 
35605:   case ext/fileinfo in
35606:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
35607:   /*) ac_srcdir=`echo "ext/fileinfo"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
35608:   *) ac_srcdir="$abs_srcdir/ext/fileinfo/"; ac_bdir="ext/fileinfo/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
35609:   esac
35610: 
35611: 
35612: 
35613:   b_c_pre=$php_c_pre
35614:   b_cxx_pre=$php_cxx_pre
35615:   b_c_meta=$php_c_meta
35616:   b_cxx_meta=$php_cxx_meta
35617:   b_c_post=$php_c_post
35618:   b_cxx_post=$php_cxx_post
35619:   b_lo=$php_lo
35620: 
35621: 
35622:   old_IFS=$IFS
35623:   for ac_src in fileinfo.c $libmagic_sources; do
35624: 
35625:       IFS=.
35626:       set $ac_src
35627:       ac_obj=$1
35628:       IFS=$old_IFS
35629: 
35630:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
35631: 
35632:       case $ac_src in
35633:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
35634:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
35635:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
35636:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
35637:       esac
35638: 
35639:     cat >>Makefile.objects<<EOF
35640: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
35641: 	$ac_comp
35642: EOF
35643:   done
35644: 
35645: 
35646:     EXT_STATIC="$EXT_STATIC fileinfo"
35647:     if test "$ext_shared" != "nocli"; then
35648:       EXT_CLI_STATIC="$EXT_CLI_STATIC fileinfo"
35649:     fi
35650:   else
35651:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
35652:       PHP_FILEINFO_SHARED=yes
35653: 
35654:   case ext/fileinfo in
35655:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
35656:   /*) ac_srcdir=`echo "ext/fileinfo"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
35657:   *) ac_srcdir="$abs_srcdir/ext/fileinfo/"; ac_bdir="ext/fileinfo/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
35658:   esac
35659: 
35660: 
35661: 
35662:   b_c_pre=$shared_c_pre
35663:   b_cxx_pre=$shared_cxx_pre
35664:   b_c_meta=$shared_c_meta
35665:   b_cxx_meta=$shared_cxx_meta
35666:   b_c_post=$shared_c_post
35667:   b_cxx_post=$shared_cxx_post
35668:   b_lo=$shared_lo
35669: 
35670: 
35671:   old_IFS=$IFS
35672:   for ac_src in fileinfo.c $libmagic_sources; do
35673: 
35674:       IFS=.
35675:       set $ac_src
35676:       ac_obj=$1
35677:       IFS=$old_IFS
35678: 
35679:       shared_objects_fileinfo="$shared_objects_fileinfo $ac_bdir$ac_obj.lo"
35680: 
35681:       case $ac_src in
35682:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
35683:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
35684:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
35685:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
35686:       esac
35687: 
35688:     cat >>Makefile.objects<<EOF
35689: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
35690: 	$ac_comp
35691: EOF
35692:   done
35693: 
35694:       case $host_alias in
35695:         *netware*)
35696: 
35697:   install_modules="install-modules"
35698: 
35699:   case $host_alias in
35700:     *aix*)
35701:       suffix=so
35702:       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'
35703:       ;;
35704:     *netware*)
35705:       suffix=nlm
35706:       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)'
35707:       ;;
35708:     *)
35709:       suffix=la
35710:       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)'
35711:       ;;
35712:   esac
35713: 
35714:   if test "x" = "xyes"; then
35715:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpfileinfo.$suffix"
35716:   else
35717:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpfileinfo.$suffix"
35718:   fi
35719: 
35720:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_fileinfo"
35721: 
35722:   cat >>Makefile.objects<<EOF
35723: \$(phplibdir)/phpfileinfo.$suffix: $ext_builddir/phpfileinfo.$suffix
35724: 	\$(LIBTOOL) --mode=install cp $ext_builddir/phpfileinfo.$suffix \$(phplibdir)
35725: 
35726: $ext_builddir/phpfileinfo.$suffix: \$(shared_objects_fileinfo) \$(PHPFILEINFO_SHARED_DEPENDENCIES)
35727: 	$link_cmd
35728: 
35729: EOF
35730: 
35731:           ;;
35732:         *)
35733: 
35734:   install_modules="install-modules"
35735: 
35736:   case $host_alias in
35737:     *aix*)
35738:       suffix=so
35739:       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'
35740:       ;;
35741:     *netware*)
35742:       suffix=nlm
35743:       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)'
35744:       ;;
35745:     *)
35746:       suffix=la
35747:       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)'
35748:       ;;
35749:   esac
35750: 
35751:   if test "x" = "xyes"; then
35752:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/fileinfo.$suffix"
35753:   else
35754:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/fileinfo.$suffix"
35755:   fi
35756: 
35757:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_fileinfo"
35758: 
35759:   cat >>Makefile.objects<<EOF
35760: \$(phplibdir)/fileinfo.$suffix: $ext_builddir/fileinfo.$suffix
35761: 	\$(LIBTOOL) --mode=install cp $ext_builddir/fileinfo.$suffix \$(phplibdir)
35762: 
35763: $ext_builddir/fileinfo.$suffix: \$(shared_objects_fileinfo) \$(FILEINFO_SHARED_DEPENDENCIES)
35764: 	$link_cmd
35765: 
35766: EOF
35767: 
35768:           ;;
35769:       esac
35770: 
35771: cat >>confdefs.h <<_ACEOF
35772: #define COMPILE_DL_FILEINFO 1
35773: _ACEOF
35774: 
35775:     fi
35776:   fi
35777: 
35778:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
35779:     PHP_FILEINFO_SHARED=no
35780:     case "$PHP_SAPI" in
35781:       cgi|embed)
35782: 
35783: 
35784:   case ext/fileinfo in
35785:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
35786:   /*) ac_srcdir=`echo "ext/fileinfo"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
35787:   *) ac_srcdir="$abs_srcdir/ext/fileinfo/"; ac_bdir="ext/fileinfo/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
35788:   esac
35789: 
35790: 
35791: 
35792:   b_c_pre=$php_c_pre
35793:   b_cxx_pre=$php_cxx_pre
35794:   b_c_meta=$php_c_meta
35795:   b_cxx_meta=$php_cxx_meta
35796:   b_c_post=$php_c_post
35797:   b_cxx_post=$php_cxx_post
35798:   b_lo=$php_lo
35799: 
35800: 
35801:   old_IFS=$IFS
35802:   for ac_src in fileinfo.c $libmagic_sources; do
35803: 
35804:       IFS=.
35805:       set $ac_src
35806:       ac_obj=$1
35807:       IFS=$old_IFS
35808: 
35809:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
35810: 
35811:       case $ac_src in
35812:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
35813:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
35814:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
35815:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
35816:       esac
35817: 
35818:     cat >>Makefile.objects<<EOF
35819: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
35820: 	$ac_comp
35821: EOF
35822:   done
35823: 
35824: 
35825:         EXT_STATIC="$EXT_STATIC fileinfo"
35826:         ;;
35827:       *)
35828: 
35829: 
35830:   case ext/fileinfo in
35831:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
35832:   /*) ac_srcdir=`echo "ext/fileinfo"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
35833:   *) ac_srcdir="$abs_srcdir/ext/fileinfo/"; ac_bdir="ext/fileinfo/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
35834:   esac
35835: 
35836: 
35837: 
35838:   b_c_pre=$php_c_pre
35839:   b_cxx_pre=$php_cxx_pre
35840:   b_c_meta=$php_c_meta
35841:   b_cxx_meta=$php_cxx_meta
35842:   b_c_post=$php_c_post
35843:   b_cxx_post=$php_cxx_post
35844:   b_lo=$php_lo
35845: 
35846: 
35847:   old_IFS=$IFS
35848:   for ac_src in fileinfo.c $libmagic_sources; do
35849: 
35850:       IFS=.
35851:       set $ac_src
35852:       ac_obj=$1
35853:       IFS=$old_IFS
35854: 
35855:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
35856: 
35857:       case $ac_src in
35858:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
35859:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
35860:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
35861:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
35862:       esac
35863: 
35864:     cat >>Makefile.objects<<EOF
35865: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
35866: 	$ac_comp
35867: EOF
35868:   done
35869: 
35870: 
35871:         ;;
35872:     esac
35873:     EXT_CLI_STATIC="$EXT_CLI_STATIC fileinfo"
35874:   fi
35875: 
35876: 
35877:     BUILD_DIR="$BUILD_DIR $ext_builddir"
35878: 
35879: 
35880: 
35881:   if test "$ext_builddir" = "."; then
35882:     PHP_PECL_EXTENSION=fileinfo
35883: 
35884:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
35885: 
35886:   fi
35887: 
35888: 
35889: 
35890:     BUILD_DIR="$BUILD_DIR $ext_builddir/libmagic"
35891: 
35892: 
35893: 
35894:   for ac_func in utimes strndup
35895: do :
35896:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
35897: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
35898: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
35899:   cat >>confdefs.h <<_ACEOF
35900: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
35901: _ACEOF
35902: 
35903: fi
35904: done
35905: 
35906: 
35907: 
35908:   src=$ext_srcdir/Makefile.frag
35909:   ac_srcdir=$ext_srcdir
35910:   ac_builddir=$ext_builddir
35911:   test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src  >> Makefile.fragments
35912: 
35913: fi
35914: 
35915: 
35916: 
35917: php_enable_filter=yes
35918: 
35919: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable input filter support" >&5
35920: $as_echo_n "checking whether to enable input filter support... " >&6; }
35921: # Check whether --enable-filter was given.
35922: if test "${enable_filter+set}" = set; then :
35923:   enableval=$enable_filter; PHP_FILTER=$enableval
35924: else
35925: 
35926:   PHP_FILTER=yes
35927:   test "$PHP_ENABLE_ALL" && PHP_FILTER=$PHP_ENABLE_ALL
35928: 
35929: fi
35930: 
35931: 
35932: 
35933: ext_output="yes, shared"
35934: ext_shared=yes
35935: case $PHP_FILTER in
35936: shared,*)
35937:   PHP_FILTER=`echo "$PHP_FILTER"|$SED 's/^shared,//'`
35938:   ;;
35939: shared)
35940:   PHP_FILTER=yes
35941:   ;;
35942: no)
35943:   ext_output=no
35944:   ext_shared=no
35945:   ;;
35946: *)
35947:   ext_output=yes
35948:   ext_shared=no
35949:   ;;
35950: esac
35951: 
35952: 
35953: 
35954: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
35955: $as_echo "$ext_output" >&6; }
35956: 
35957: 
35958: 
35959: 
35960: 
35961: php_with_pcre_dir=no
35962: 
35963: { $as_echo "$as_me:${as_lineno-$LINENO}: checking pcre install prefix" >&5
35964: $as_echo_n "checking pcre install prefix... " >&6; }
35965: 
35966: # Check whether --with-pcre-dir was given.
35967: if test "${with_pcre_dir+set}" = set; then :
35968:   withval=$with_pcre_dir; PHP_PCRE_DIR=$withval
35969: else
35970: 
35971:   PHP_PCRE_DIR=no
35972: 
35973: 
35974: fi
35975: 
35976: 
35977: ext_output=$PHP_PCRE_DIR
35978: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
35979: $as_echo "$ext_output" >&6; }
35980: 
35981: 
35982: 
35983: 
35984: if test "$PHP_FILTER" != "no"; then
35985: 
35986:     if test -n "$PHP_VERSION"; then
35987:         ext_shared=no
35988:   else
35989:         old_CPPFLAGS=$CPPFLAGS
35990:     CPPFLAGS=$INCLUDES
35991:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35992: /* end confdefs.h.  */
35993: 
35994: #include <main/php_config.h>
35995: #if defined(HAVE_BUNDLED_PCRE) && !defined(COMPILE_DL_PCRE)
35996: yes
35997: #endif
35998: 
35999: _ACEOF
36000: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36001:   $EGREP "yes" >/dev/null 2>&1; then :
36002: 
36003:       PHP_PCRE_REGEX=yes
36004: 
36005: else
36006: 
36007:       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36008: /* end confdefs.h.  */
36009: 
36010: #include <main/php_config.h>
36011: #if defined(HAVE_PCRE) && !defined(COMPILE_DL_PCRE)
36012: yes
36013: #endif
36014: 
36015: _ACEOF
36016: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36017:   $EGREP "yes" >/dev/null 2>&1; then :
36018: 
36019:         PHP_PCRE_REGEX=pecl
36020: 
36021: else
36022: 
36023:         PHP_PCRE_REGEX=no
36024: 
36025: fi
36026: rm -f conftest*
36027: 
36028: 
36029: fi
36030: rm -f conftest*
36031: 
36032:     CPPFLAGS=$old_CPPFLAGS
36033:   fi
36034: 
36035: 
36036:   ext_builddir=ext/filter
36037:   ext_srcdir=$abs_srcdir/ext/filter
36038: 
36039:   ac_extra=
36040: 
36041:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
36042:     PHP_FILTER_SHARED=no
36043: 
36044: 
36045:   case ext/filter in
36046:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
36047:   /*) ac_srcdir=`echo "ext/filter"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
36048:   *) ac_srcdir="$abs_srcdir/ext/filter/"; ac_bdir="ext/filter/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
36049:   esac
36050: 
36051: 
36052: 
36053:   b_c_pre=$php_c_pre
36054:   b_cxx_pre=$php_cxx_pre
36055:   b_c_meta=$php_c_meta
36056:   b_cxx_meta=$php_cxx_meta
36057:   b_c_post=$php_c_post
36058:   b_cxx_post=$php_cxx_post
36059:   b_lo=$php_lo
36060: 
36061: 
36062:   old_IFS=$IFS
36063:   for ac_src in filter.c sanitizing_filters.c logical_filters.c callback_filter.c; do
36064: 
36065:       IFS=.
36066:       set $ac_src
36067:       ac_obj=$1
36068:       IFS=$old_IFS
36069: 
36070:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
36071: 
36072:       case $ac_src in
36073:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
36074:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
36075:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
36076:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
36077:       esac
36078: 
36079:     cat >>Makefile.objects<<EOF
36080: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
36081: 	$ac_comp
36082: EOF
36083:   done
36084: 
36085: 
36086:     EXT_STATIC="$EXT_STATIC filter"
36087:     if test "$ext_shared" != "nocli"; then
36088:       EXT_CLI_STATIC="$EXT_CLI_STATIC filter"
36089:     fi
36090:   else
36091:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
36092:       PHP_FILTER_SHARED=yes
36093: 
36094:   case ext/filter in
36095:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
36096:   /*) ac_srcdir=`echo "ext/filter"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
36097:   *) ac_srcdir="$abs_srcdir/ext/filter/"; ac_bdir="ext/filter/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
36098:   esac
36099: 
36100: 
36101: 
36102:   b_c_pre=$shared_c_pre
36103:   b_cxx_pre=$shared_cxx_pre
36104:   b_c_meta=$shared_c_meta
36105:   b_cxx_meta=$shared_cxx_meta
36106:   b_c_post=$shared_c_post
36107:   b_cxx_post=$shared_cxx_post
36108:   b_lo=$shared_lo
36109: 
36110: 
36111:   old_IFS=$IFS
36112:   for ac_src in filter.c sanitizing_filters.c logical_filters.c callback_filter.c; do
36113: 
36114:       IFS=.
36115:       set $ac_src
36116:       ac_obj=$1
36117:       IFS=$old_IFS
36118: 
36119:       shared_objects_filter="$shared_objects_filter $ac_bdir$ac_obj.lo"
36120: 
36121:       case $ac_src in
36122:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
36123:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
36124:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
36125:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
36126:       esac
36127: 
36128:     cat >>Makefile.objects<<EOF
36129: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
36130: 	$ac_comp
36131: EOF
36132:   done
36133: 
36134:       case $host_alias in
36135:         *netware*)
36136: 
36137:   install_modules="install-modules"
36138: 
36139:   case $host_alias in
36140:     *aix*)
36141:       suffix=so
36142:       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'
36143:       ;;
36144:     *netware*)
36145:       suffix=nlm
36146:       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)'
36147:       ;;
36148:     *)
36149:       suffix=la
36150:       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)'
36151:       ;;
36152:   esac
36153: 
36154:   if test "x" = "xyes"; then
36155:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpfilter.$suffix"
36156:   else
36157:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpfilter.$suffix"
36158:   fi
36159: 
36160:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_filter"
36161: 
36162:   cat >>Makefile.objects<<EOF
36163: \$(phplibdir)/phpfilter.$suffix: $ext_builddir/phpfilter.$suffix
36164: 	\$(LIBTOOL) --mode=install cp $ext_builddir/phpfilter.$suffix \$(phplibdir)
36165: 
36166: $ext_builddir/phpfilter.$suffix: \$(shared_objects_filter) \$(PHPFILTER_SHARED_DEPENDENCIES)
36167: 	$link_cmd
36168: 
36169: EOF
36170: 
36171:           ;;
36172:         *)
36173: 
36174:   install_modules="install-modules"
36175: 
36176:   case $host_alias in
36177:     *aix*)
36178:       suffix=so
36179:       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'
36180:       ;;
36181:     *netware*)
36182:       suffix=nlm
36183:       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)'
36184:       ;;
36185:     *)
36186:       suffix=la
36187:       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)'
36188:       ;;
36189:   esac
36190: 
36191:   if test "x" = "xyes"; then
36192:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/filter.$suffix"
36193:   else
36194:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/filter.$suffix"
36195:   fi
36196: 
36197:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_filter"
36198: 
36199:   cat >>Makefile.objects<<EOF
36200: \$(phplibdir)/filter.$suffix: $ext_builddir/filter.$suffix
36201: 	\$(LIBTOOL) --mode=install cp $ext_builddir/filter.$suffix \$(phplibdir)
36202: 
36203: $ext_builddir/filter.$suffix: \$(shared_objects_filter) \$(FILTER_SHARED_DEPENDENCIES)
36204: 	$link_cmd
36205: 
36206: EOF
36207: 
36208:           ;;
36209:       esac
36210: 
36211: cat >>confdefs.h <<_ACEOF
36212: #define COMPILE_DL_FILTER 1
36213: _ACEOF
36214: 
36215:     fi
36216:   fi
36217: 
36218:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
36219:     PHP_FILTER_SHARED=no
36220:     case "$PHP_SAPI" in
36221:       cgi|embed)
36222: 
36223: 
36224:   case ext/filter in
36225:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
36226:   /*) ac_srcdir=`echo "ext/filter"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
36227:   *) ac_srcdir="$abs_srcdir/ext/filter/"; ac_bdir="ext/filter/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
36228:   esac
36229: 
36230: 
36231: 
36232:   b_c_pre=$php_c_pre
36233:   b_cxx_pre=$php_cxx_pre
36234:   b_c_meta=$php_c_meta
36235:   b_cxx_meta=$php_cxx_meta
36236:   b_c_post=$php_c_post
36237:   b_cxx_post=$php_cxx_post
36238:   b_lo=$php_lo
36239: 
36240: 
36241:   old_IFS=$IFS
36242:   for ac_src in filter.c sanitizing_filters.c logical_filters.c callback_filter.c; do
36243: 
36244:       IFS=.
36245:       set $ac_src
36246:       ac_obj=$1
36247:       IFS=$old_IFS
36248: 
36249:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
36250: 
36251:       case $ac_src in
36252:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
36253:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
36254:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
36255:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
36256:       esac
36257: 
36258:     cat >>Makefile.objects<<EOF
36259: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
36260: 	$ac_comp
36261: EOF
36262:   done
36263: 
36264: 
36265:         EXT_STATIC="$EXT_STATIC filter"
36266:         ;;
36267:       *)
36268: 
36269: 
36270:   case ext/filter in
36271:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
36272:   /*) ac_srcdir=`echo "ext/filter"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
36273:   *) ac_srcdir="$abs_srcdir/ext/filter/"; ac_bdir="ext/filter/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
36274:   esac
36275: 
36276: 
36277: 
36278:   b_c_pre=$php_c_pre
36279:   b_cxx_pre=$php_cxx_pre
36280:   b_c_meta=$php_c_meta
36281:   b_cxx_meta=$php_cxx_meta
36282:   b_c_post=$php_c_post
36283:   b_cxx_post=$php_cxx_post
36284:   b_lo=$php_lo
36285: 
36286: 
36287:   old_IFS=$IFS
36288:   for ac_src in filter.c sanitizing_filters.c logical_filters.c callback_filter.c; do
36289: 
36290:       IFS=.
36291:       set $ac_src
36292:       ac_obj=$1
36293:       IFS=$old_IFS
36294: 
36295:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
36296: 
36297:       case $ac_src in
36298:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
36299:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
36300:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
36301:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
36302:       esac
36303: 
36304:     cat >>Makefile.objects<<EOF
36305: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
36306: 	$ac_comp
36307: EOF
36308:   done
36309: 
36310: 
36311:         ;;
36312:     esac
36313:     EXT_CLI_STATIC="$EXT_CLI_STATIC filter"
36314:   fi
36315: 
36316: 
36317:     BUILD_DIR="$BUILD_DIR $ext_builddir"
36318: 
36319: 
36320: 
36321:   if test "$ext_builddir" = "."; then
36322:     PHP_PECL_EXTENSION=filter
36323: 
36324:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
36325: 
36326:   fi
36327: 
36328: 
36329:   PHP_VAR_SUBST="$PHP_VAR_SUBST FILTER_SHARED_LIBADD"
36330: 
36331: 
36332: 
36333: 
36334:     for header_file in ext/filter/php_filter.h; do
36335: 
36336: 
36337:   unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
36338: 
36339:   cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
36340:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
36341:     eval "INSTALLHEADERS$unique=set"
36342: 
36343:         INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
36344: 
36345:   fi
36346: 
36347:     done
36348: 
36349: 
36350: 
36351:   am_i_shared=$PHP_FILTER_SHARED
36352:   is_it_shared=$PHP_PCRE_SHARED
36353:   is_it_enabled=$PHP_PCRE
36354:   if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
36355:     as_fn_error $? "
36356: You've configured extension filter to build statically, but it
36357: depends on extension pcre, which you've configured to build shared.
36358: You either need to build filter shared or build pcre statically for the
36359: build to be successful.
36360: " "$LINENO" 5
36361:   fi
36362:   if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then
36363:     as_fn_error $? "
36364: You've configured extension filter, which depends on extension pcre,
36365: but you've either not enabled pcre, or have disabled it.
36366: " "$LINENO" 5
36367:   fi
36368: 
36369: fi
36370: 
36371: 
36372: 
36373: php_enable_ftp=no
36374: 
36375: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable FTP support" >&5
36376: $as_echo_n "checking whether to enable FTP support... " >&6; }
36377: # Check whether --enable-ftp was given.
36378: if test "${enable_ftp+set}" = set; then :
36379:   enableval=$enable_ftp; PHP_FTP=$enableval
36380: else
36381: 
36382:   PHP_FTP=no
36383:   test "$PHP_ENABLE_ALL" && PHP_FTP=$PHP_ENABLE_ALL
36384: 
36385: fi
36386: 
36387: 
36388: 
36389: ext_output="yes, shared"
36390: ext_shared=yes
36391: case $PHP_FTP in
36392: shared,*)
36393:   PHP_FTP=`echo "$PHP_FTP"|$SED 's/^shared,//'`
36394:   ;;
36395: shared)
36396:   PHP_FTP=yes
36397:   ;;
36398: no)
36399:   ext_output=no
36400:   ext_shared=no
36401:   ;;
36402: *)
36403:   ext_output=yes
36404:   ext_shared=no
36405:   ;;
36406: esac
36407: 
36408: 
36409: 
36410: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
36411: $as_echo "$ext_output" >&6; }
36412: 
36413: 
36414: 
36415: 
36416: 
36417: php_with_openssl_dir=no
36418: 
36419: { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL dir for FTP" >&5
36420: $as_echo_n "checking OpenSSL dir for FTP... " >&6; }
36421: 
36422: # Check whether --with-openssl-dir was given.
36423: if test "${with_openssl_dir+set}" = set; then :
36424:   withval=$with_openssl_dir; PHP_OPENSSL_DIR=$withval
36425: else
36426: 
36427:   PHP_OPENSSL_DIR=no
36428: 
36429: 
36430: fi
36431: 
36432: 
36433: ext_output=$PHP_OPENSSL_DIR
36434: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
36435: $as_echo "$ext_output" >&6; }
36436: 
36437: 
36438: 
36439: 
36440: if test "$PHP_FTP" = "yes"; then
36441: 
36442: $as_echo "#define HAVE_FTP 1" >>confdefs.h
36443: 
36444: 
36445:   ext_builddir=ext/ftp
36446:   ext_srcdir=$abs_srcdir/ext/ftp
36447: 
36448:   ac_extra=
36449: 
36450:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
36451:     PHP_FTP_SHARED=no
36452: 
36453: 
36454:   case ext/ftp in
36455:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
36456:   /*) ac_srcdir=`echo "ext/ftp"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
36457:   *) ac_srcdir="$abs_srcdir/ext/ftp/"; ac_bdir="ext/ftp/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
36458:   esac
36459: 
36460: 
36461: 
36462:   b_c_pre=$php_c_pre
36463:   b_cxx_pre=$php_cxx_pre
36464:   b_c_meta=$php_c_meta
36465:   b_cxx_meta=$php_cxx_meta
36466:   b_c_post=$php_c_post
36467:   b_cxx_post=$php_cxx_post
36468:   b_lo=$php_lo
36469: 
36470: 
36471:   old_IFS=$IFS
36472:   for ac_src in php_ftp.c ftp.c; do
36473: 
36474:       IFS=.
36475:       set $ac_src
36476:       ac_obj=$1
36477:       IFS=$old_IFS
36478: 
36479:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
36480: 
36481:       case $ac_src in
36482:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
36483:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
36484:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
36485:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
36486:       esac
36487: 
36488:     cat >>Makefile.objects<<EOF
36489: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
36490: 	$ac_comp
36491: EOF
36492:   done
36493: 
36494: 
36495:     EXT_STATIC="$EXT_STATIC ftp"
36496:     if test "$ext_shared" != "nocli"; then
36497:       EXT_CLI_STATIC="$EXT_CLI_STATIC ftp"
36498:     fi
36499:   else
36500:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
36501:       PHP_FTP_SHARED=yes
36502: 
36503:   case ext/ftp in
36504:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
36505:   /*) ac_srcdir=`echo "ext/ftp"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
36506:   *) ac_srcdir="$abs_srcdir/ext/ftp/"; ac_bdir="ext/ftp/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
36507:   esac
36508: 
36509: 
36510: 
36511:   b_c_pre=$shared_c_pre
36512:   b_cxx_pre=$shared_cxx_pre
36513:   b_c_meta=$shared_c_meta
36514:   b_cxx_meta=$shared_cxx_meta
36515:   b_c_post=$shared_c_post
36516:   b_cxx_post=$shared_cxx_post
36517:   b_lo=$shared_lo
36518: 
36519: 
36520:   old_IFS=$IFS
36521:   for ac_src in php_ftp.c ftp.c; do
36522: 
36523:       IFS=.
36524:       set $ac_src
36525:       ac_obj=$1
36526:       IFS=$old_IFS
36527: 
36528:       shared_objects_ftp="$shared_objects_ftp $ac_bdir$ac_obj.lo"
36529: 
36530:       case $ac_src in
36531:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
36532:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
36533:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
36534:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
36535:       esac
36536: 
36537:     cat >>Makefile.objects<<EOF
36538: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
36539: 	$ac_comp
36540: EOF
36541:   done
36542: 
36543:       case $host_alias in
36544:         *netware*)
36545: 
36546:   install_modules="install-modules"
36547: 
36548:   case $host_alias in
36549:     *aix*)
36550:       suffix=so
36551:       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'
36552:       ;;
36553:     *netware*)
36554:       suffix=nlm
36555:       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)'
36556:       ;;
36557:     *)
36558:       suffix=la
36559:       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)'
36560:       ;;
36561:   esac
36562: 
36563:   if test "x" = "xyes"; then
36564:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpftp.$suffix"
36565:   else
36566:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpftp.$suffix"
36567:   fi
36568: 
36569:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_ftp"
36570: 
36571:   cat >>Makefile.objects<<EOF
36572: \$(phplibdir)/phpftp.$suffix: $ext_builddir/phpftp.$suffix
36573: 	\$(LIBTOOL) --mode=install cp $ext_builddir/phpftp.$suffix \$(phplibdir)
36574: 
36575: $ext_builddir/phpftp.$suffix: \$(shared_objects_ftp) \$(PHPFTP_SHARED_DEPENDENCIES)
36576: 	$link_cmd
36577: 
36578: EOF
36579: 
36580:           ;;
36581:         *)
36582: 
36583:   install_modules="install-modules"
36584: 
36585:   case $host_alias in
36586:     *aix*)
36587:       suffix=so
36588:       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'
36589:       ;;
36590:     *netware*)
36591:       suffix=nlm
36592:       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)'
36593:       ;;
36594:     *)
36595:       suffix=la
36596:       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)'
36597:       ;;
36598:   esac
36599: 
36600:   if test "x" = "xyes"; then
36601:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/ftp.$suffix"
36602:   else
36603:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/ftp.$suffix"
36604:   fi
36605: 
36606:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_ftp"
36607: 
36608:   cat >>Makefile.objects<<EOF
36609: \$(phplibdir)/ftp.$suffix: $ext_builddir/ftp.$suffix
36610: 	\$(LIBTOOL) --mode=install cp $ext_builddir/ftp.$suffix \$(phplibdir)
36611: 
36612: $ext_builddir/ftp.$suffix: \$(shared_objects_ftp) \$(FTP_SHARED_DEPENDENCIES)
36613: 	$link_cmd
36614: 
36615: EOF
36616: 
36617:           ;;
36618:       esac
36619: 
36620: cat >>confdefs.h <<_ACEOF
36621: #define COMPILE_DL_FTP 1
36622: _ACEOF
36623: 
36624:     fi
36625:   fi
36626: 
36627:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
36628:     PHP_FTP_SHARED=no
36629:     case "$PHP_SAPI" in
36630:       cgi|embed)
36631: 
36632: 
36633:   case ext/ftp in
36634:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
36635:   /*) ac_srcdir=`echo "ext/ftp"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
36636:   *) ac_srcdir="$abs_srcdir/ext/ftp/"; ac_bdir="ext/ftp/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
36637:   esac
36638: 
36639: 
36640: 
36641:   b_c_pre=$php_c_pre
36642:   b_cxx_pre=$php_cxx_pre
36643:   b_c_meta=$php_c_meta
36644:   b_cxx_meta=$php_cxx_meta
36645:   b_c_post=$php_c_post
36646:   b_cxx_post=$php_cxx_post
36647:   b_lo=$php_lo
36648: 
36649: 
36650:   old_IFS=$IFS
36651:   for ac_src in php_ftp.c ftp.c; do
36652: 
36653:       IFS=.
36654:       set $ac_src
36655:       ac_obj=$1
36656:       IFS=$old_IFS
36657: 
36658:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
36659: 
36660:       case $ac_src in
36661:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
36662:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
36663:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
36664:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
36665:       esac
36666: 
36667:     cat >>Makefile.objects<<EOF
36668: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
36669: 	$ac_comp
36670: EOF
36671:   done
36672: 
36673: 
36674:         EXT_STATIC="$EXT_STATIC ftp"
36675:         ;;
36676:       *)
36677: 
36678: 
36679:   case ext/ftp in
36680:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
36681:   /*) ac_srcdir=`echo "ext/ftp"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
36682:   *) ac_srcdir="$abs_srcdir/ext/ftp/"; ac_bdir="ext/ftp/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
36683:   esac
36684: 
36685: 
36686: 
36687:   b_c_pre=$php_c_pre
36688:   b_cxx_pre=$php_cxx_pre
36689:   b_c_meta=$php_c_meta
36690:   b_cxx_meta=$php_cxx_meta
36691:   b_c_post=$php_c_post
36692:   b_cxx_post=$php_cxx_post
36693:   b_lo=$php_lo
36694: 
36695: 
36696:   old_IFS=$IFS
36697:   for ac_src in php_ftp.c ftp.c; do
36698: 
36699:       IFS=.
36700:       set $ac_src
36701:       ac_obj=$1
36702:       IFS=$old_IFS
36703: 
36704:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
36705: 
36706:       case $ac_src in
36707:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
36708:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
36709:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
36710:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
36711:       esac
36712: 
36713:     cat >>Makefile.objects<<EOF
36714: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
36715: 	$ac_comp
36716: EOF
36717:   done
36718: 
36719: 
36720:         ;;
36721:     esac
36722:     EXT_CLI_STATIC="$EXT_CLI_STATIC ftp"
36723:   fi
36724: 
36725: 
36726:     BUILD_DIR="$BUILD_DIR $ext_builddir"
36727: 
36728: 
36729: 
36730:   if test "$ext_builddir" = "."; then
36731:     PHP_PECL_EXTENSION=ftp
36732: 
36733:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
36734: 
36735:   fi
36736: 
36737: 
36738:     test -z "$PHP_OPENSSL" && PHP_OPENSSL=no
36739: 
36740:   if test "$PHP_OPENSSL" != "no" || test "$PHP_OPENSSL_DIR" != "no"; then
36741: 
36742:   found_openssl=no
36743:   unset OPENSSL_INCDIR
36744:   unset OPENSSL_LIBDIR
36745: 
36746:     test -z "$PHP_OPENSSL" && PHP_OPENSSL=no
36747:   test -z "$PHP_IMAP_SSL" && PHP_IMAP_SSL=no
36748: 
36749:     if test "$PHP_OPENSSL" != "no"; then
36750:     PHP_OPENSSL_DIR=$PHP_OPENSSL
36751:   elif test "$PHP_IMAP_SSL" != "no"; then
36752:     PHP_OPENSSL_DIR=$PHP_IMAP_SSL
36753:   fi
36754: 
36755:     if test -z "$PKG_CONFIG"; then
36756:     # Extract the first word of "pkg-config", so it can be a program name with args.
36757: set dummy pkg-config; ac_word=$2
36758: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36759: $as_echo_n "checking for $ac_word... " >&6; }
36760: if ${ac_cv_path_PKG_CONFIG+:} false; then :
36761:   $as_echo_n "(cached) " >&6
36762: else
36763:   case $PKG_CONFIG in
36764:   [\\/]* | ?:[\\/]*)
36765:   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
36766:   ;;
36767:   *)
36768:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36769: for as_dir in $PATH
36770: do
36771:   IFS=$as_save_IFS
36772:   test -z "$as_dir" && as_dir=.
36773:     for ac_exec_ext in '' $ac_executable_extensions; do
36774:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36775:     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
36776:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36777:     break 2
36778:   fi
36779: done
36780:   done
36781: IFS=$as_save_IFS
36782: 
36783:   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
36784:   ;;
36785: esac
36786: fi
36787: PKG_CONFIG=$ac_cv_path_PKG_CONFIG
36788: if test -n "$PKG_CONFIG"; then
36789:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
36790: $as_echo "$PKG_CONFIG" >&6; }
36791: else
36792:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36793: $as_echo "no" >&6; }
36794: fi
36795: 
36796: 
36797:   fi
36798: 
36799:     if test "$PHP_OPENSSL_DIR" = "yes" && test -x "$PKG_CONFIG" && $PKG_CONFIG --exists openssl; then
36800:     if $PKG_CONFIG --atleast-version=0.9.6 openssl; then
36801:       found_openssl=yes
36802:       OPENSSL_LIBS=`$PKG_CONFIG --libs openssl`
36803:       OPENSSL_INCS=`$PKG_CONFIG --cflags-only-I openssl`
36804:       OPENSSL_INCDIR=`$PKG_CONFIG --variable=includedir openssl`
36805:     else
36806:       as_fn_error $? "OpenSSL version 0.9.6 or greater required." "$LINENO" 5
36807:     fi
36808: 
36809:     if test -n "$OPENSSL_LIBS"; then
36810: 
36811:   for ac_i in $OPENSSL_LIBS; do
36812:     case $ac_i in
36813:     -pthread)
36814:       if test "$ext_shared" = "yes"; then
36815:         FTP_SHARED_LIBADD="$FTP_SHARED_LIBADD -pthread"
36816:       else
36817: 
36818: 
36819:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
36820: 
36821:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
36822:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
36823:     eval "EXTRA_LDFLAGS$unique=set"
36824:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
36825:   fi
36826: 
36827:       fi
36828:     ;;
36829:     -l*)
36830:       ac_ii=`echo $ac_i|cut -c 3-`
36831: 
36832: 
36833:   case $ac_ii in
36834:   c|c_r|pthread*) ;;
36835:   *)
36836:     if test "$ext_shared" = "yes"; then
36837:         FTP_SHARED_LIBADD="$FTP_SHARED_LIBADD -l$ac_ii"
36838:     else
36839: 
36840: 
36841:   case $ac_ii in
36842:   c|c_r|pthread*) ;;
36843:   *)
36844:       LIBS="$LIBS -l$ac_ii"
36845:    ;;
36846:   esac
36847: 
36848: 
36849:     fi
36850:    ;;
36851:   esac
36852: 
36853: 
36854:     ;;
36855:     -L*)
36856:       ac_ii=`echo $ac_i|cut -c 3-`
36857: 
36858:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
36859: 
36860:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
36861:     ai_p=$ac_ii
36862:   else
36863: 
36864:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
36865: 
36866:     ep_realdir=`(cd "$ep_dir" && pwd)`
36867:     ai_p="$ep_realdir"/`basename "$ac_ii"`
36868:   fi
36869: 
36870: 
36871:       if test "$ext_shared" = "yes"; then
36872:         FTP_SHARED_LIBADD="-L$ai_p $FTP_SHARED_LIBADD"
36873:         test -n "$ld_runpath_switch" && FTP_SHARED_LIBADD="$ld_runpath_switch$ai_p $FTP_SHARED_LIBADD"
36874:       else
36875: 
36876: 
36877: 
36878:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
36879: 
36880:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
36881:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
36882:     eval "LIBPATH$unique=set"
36883: 
36884:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
36885:     LDFLAGS="$LDFLAGS -L$ai_p"
36886:     PHP_RPATHS="$PHP_RPATHS $ai_p"
36887: 
36888:   fi
36889: 
36890: 
36891:       fi
36892: 
36893:   fi
36894: 
36895:     ;;
36896:     esac
36897:   done
36898: 
36899:     fi
36900:     if test -n "$OPENSSL_INCS"; then
36901: 
36902:   for ac_i in $OPENSSL_INCS; do
36903:     case $ac_i in
36904:     -I*)
36905:       ac_ii=`echo $ac_i|cut -c 3-`
36906: 
36907:   if test "$ac_ii" != "/usr/include"; then
36908: 
36909:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
36910:     ai_p=$ac_ii
36911:   else
36912: 
36913:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
36914: 
36915:     ep_realdir=`(cd "$ep_dir" && pwd)`
36916:     ai_p="$ep_realdir"/`basename "$ac_ii"`
36917:   fi
36918: 
36919: 
36920: 
36921:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
36922: 
36923:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
36924:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
36925:     eval "INCLUDEPATH$unique=set"
36926: 
36927:       if test ""; then
36928:         INCLUDES="-I$ai_p $INCLUDES"
36929:       else
36930:         INCLUDES="$INCLUDES -I$ai_p"
36931:       fi
36932: 
36933:   fi
36934: 
36935:   fi
36936: 
36937:     ;;
36938:     esac
36939:   done
36940: 
36941:     fi
36942:   fi
36943: 
36944:     if test "$found_openssl" = "no"; then
36945: 
36946:     if test "$PHP_OPENSSL_DIR" = "yes"; then
36947:       PHP_OPENSSL_DIR="/usr/local/ssl /usr/local /usr /usr/local/openssl"
36948:     fi
36949: 
36950:     for i in $PHP_OPENSSL_DIR; do
36951:       if test -r $i/include/openssl/evp.h; then
36952:         OPENSSL_INCDIR=$i/include
36953:       fi
36954:       if test -r $i/$PHP_LIBDIR/libssl.a -o -r $i/$PHP_LIBDIR/libssl.$SHLIB_SUFFIX_NAME; then
36955:         OPENSSL_LIBDIR=$i/$PHP_LIBDIR
36956:       fi
36957:       test -n "$OPENSSL_INCDIR" && test -n "$OPENSSL_LIBDIR" && break
36958:     done
36959: 
36960:     if test -z "$OPENSSL_INCDIR"; then
36961:       as_fn_error $? "Cannot find OpenSSL's <evp.h>" "$LINENO" 5
36962:     fi
36963: 
36964:     if test -z "$OPENSSL_LIBDIR"; then
36965:       as_fn_error $? "Cannot find OpenSSL's libraries" "$LINENO" 5
36966:     fi
36967: 
36968:     old_CPPFLAGS=$CPPFLAGS
36969:     CPPFLAGS=-I$OPENSSL_INCDIR
36970:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version" >&5
36971: $as_echo_n "checking for OpenSSL version... " >&6; }
36972:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36973: /* end confdefs.h.  */
36974: 
36975: #include <openssl/opensslv.h>
36976: #if OPENSSL_VERSION_NUMBER >= 0x0090600fL
36977:   yes
36978: #endif
36979: 
36980: _ACEOF
36981: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36982:   $EGREP "yes" >/dev/null 2>&1; then :
36983: 
36984:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: >= 0.9.6" >&5
36985: $as_echo ">= 0.9.6" >&6; }
36986: 
36987: else
36988: 
36989:       as_fn_error $? "OpenSSL version 0.9.6 or greater required." "$LINENO" 5
36990: 
36991: fi
36992: rm -f conftest*
36993: 
36994:     CPPFLAGS=$old_CPPFLAGS
36995: 
36996: 
36997:   if test "$OPENSSL_INCDIR" != "/usr/include"; then
36998: 
36999:   if test -z "$OPENSSL_INCDIR" || echo "$OPENSSL_INCDIR" | grep '^/' >/dev/null ; then
37000:     ai_p=$OPENSSL_INCDIR
37001:   else
37002: 
37003:     ep_dir=`echo $OPENSSL_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`
37004: 
37005:     ep_realdir=`(cd "$ep_dir" && pwd)`
37006:     ai_p="$ep_realdir"/`basename "$OPENSSL_INCDIR"`
37007:   fi
37008: 
37009: 
37010: 
37011:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
37012: 
37013:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
37014:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
37015:     eval "INCLUDEPATH$unique=set"
37016: 
37017:       if test ""; then
37018:         INCLUDES="-I$ai_p $INCLUDES"
37019:       else
37020:         INCLUDES="$INCLUDES -I$ai_p"
37021:       fi
37022: 
37023:   fi
37024: 
37025:   fi
37026: 
37027: 
37028: 
37029:   save_old_LDFLAGS=$LDFLAGS
37030:   ac_stuff="
37031:       -L$OPENSSL_LIBDIR
37032:     "
37033: 
37034:   save_ext_shared=$ext_shared
37035:   ext_shared=yes
37036: 
37037:   for ac_i in $ac_stuff; do
37038:     case $ac_i in
37039:     -pthread)
37040:       if test "$ext_shared" = "yes"; then
37041:         LDFLAGS="$LDFLAGS -pthread"
37042:       else
37043: 
37044: 
37045:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
37046: 
37047:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
37048:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
37049:     eval "EXTRA_LDFLAGS$unique=set"
37050:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
37051:   fi
37052: 
37053:       fi
37054:     ;;
37055:     -l*)
37056:       ac_ii=`echo $ac_i|cut -c 3-`
37057: 
37058: 
37059:   case $ac_ii in
37060:   c|c_r|pthread*) ;;
37061:   *)
37062:     if test "$ext_shared" = "yes"; then
37063:         LDFLAGS="$LDFLAGS -l$ac_ii"
37064:     else
37065: 
37066: 
37067:   case $ac_ii in
37068:   c|c_r|pthread*) ;;
37069:   *)
37070:       LIBS="$LIBS -l$ac_ii"
37071:    ;;
37072:   esac
37073: 
37074: 
37075:     fi
37076:    ;;
37077:   esac
37078: 
37079: 
37080:     ;;
37081:     -L*)
37082:       ac_ii=`echo $ac_i|cut -c 3-`
37083: 
37084:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
37085: 
37086:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
37087:     ai_p=$ac_ii
37088:   else
37089: 
37090:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
37091: 
37092:     ep_realdir=`(cd "$ep_dir" && pwd)`
37093:     ai_p="$ep_realdir"/`basename "$ac_ii"`
37094:   fi
37095: 
37096: 
37097:       if test "$ext_shared" = "yes"; then
37098:         LDFLAGS="-L$ai_p $LDFLAGS"
37099:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
37100:       else
37101: 
37102: 
37103: 
37104:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
37105: 
37106:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
37107:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
37108:     eval "LIBPATH$unique=set"
37109: 
37110:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
37111:     LDFLAGS="$LDFLAGS -L$ai_p"
37112:     PHP_RPATHS="$PHP_RPATHS $ai_p"
37113: 
37114:   fi
37115: 
37116: 
37117:       fi
37118: 
37119:   fi
37120: 
37121:     ;;
37122:     esac
37123:   done
37124: 
37125:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_free in -lcrypto" >&5
37126: $as_echo_n "checking for CRYPTO_free in -lcrypto... " >&6; }
37127: if ${ac_cv_lib_crypto_CRYPTO_free+:} false; then :
37128:   $as_echo_n "(cached) " >&6
37129: else
37130:   ac_check_lib_save_LIBS=$LIBS
37131: LIBS="-lcrypto  $LIBS"
37132: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37133: /* end confdefs.h.  */
37134: 
37135: /* Override any GCC internal prototype to avoid an error.
37136:    Use char because int might match the return type of a GCC
37137:    builtin and then its argument prototype would still apply.  */
37138: #ifdef __cplusplus
37139: extern "C"
37140: #endif
37141: char CRYPTO_free ();
37142: int
37143: main ()
37144: {
37145: return CRYPTO_free ();
37146:   ;
37147:   return 0;
37148: }
37149: _ACEOF
37150: if ac_fn_c_try_link "$LINENO"; then :
37151:   ac_cv_lib_crypto_CRYPTO_free=yes
37152: else
37153:   ac_cv_lib_crypto_CRYPTO_free=no
37154: fi
37155: rm -f core conftest.err conftest.$ac_objext \
37156:     conftest$ac_exeext conftest.$ac_ext
37157: LIBS=$ac_check_lib_save_LIBS
37158: fi
37159: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_free" >&5
37160: $as_echo "$ac_cv_lib_crypto_CRYPTO_free" >&6; }
37161: if test "x$ac_cv_lib_crypto_CRYPTO_free" = xyes; then :
37162: 
37163:     LDFLAGS=$save_old_LDFLAGS
37164:     ext_shared=$save_ext_shared
37165: 
37166: 
37167: 
37168:   case crypto in
37169:   c|c_r|pthread*) ;;
37170:   *)
37171:     if test "$ext_shared" = "yes"; then
37172:         FTP_SHARED_LIBADD="-lcrypto $FTP_SHARED_LIBADD"
37173:     else
37174: 
37175: 
37176:   case crypto in
37177:   c|c_r|pthread*) ;;
37178:   *)
37179:       LIBS="-lcrypto $LIBS"
37180:    ;;
37181:   esac
37182: 
37183: 
37184:     fi
37185:    ;;
37186:   esac
37187: 
37188: 
37189: 
37190: 
37191: else
37192: 
37193:     LDFLAGS=$save_old_LDFLAGS
37194:     ext_shared=$save_ext_shared
37195:     unset ac_cv_lib_crypto_CRYPTO_free
37196: 
37197:       as_fn_error $? "libcrypto not found!" "$LINENO" 5
37198: 
37199: 
37200: fi
37201: 
37202: 
37203:     old_LIBS=$LIBS
37204:     LIBS="$LIBS -lcrypto"
37205: 
37206:   save_old_LDFLAGS=$LDFLAGS
37207:   ac_stuff="
37208:       -L$OPENSSL_LIBDIR
37209:     "
37210: 
37211:   save_ext_shared=$ext_shared
37212:   ext_shared=yes
37213: 
37214:   for ac_i in $ac_stuff; do
37215:     case $ac_i in
37216:     -pthread)
37217:       if test "$ext_shared" = "yes"; then
37218:         LDFLAGS="$LDFLAGS -pthread"
37219:       else
37220: 
37221: 
37222:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
37223: 
37224:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
37225:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
37226:     eval "EXTRA_LDFLAGS$unique=set"
37227:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
37228:   fi
37229: 
37230:       fi
37231:     ;;
37232:     -l*)
37233:       ac_ii=`echo $ac_i|cut -c 3-`
37234: 
37235: 
37236:   case $ac_ii in
37237:   c|c_r|pthread*) ;;
37238:   *)
37239:     if test "$ext_shared" = "yes"; then
37240:         LDFLAGS="$LDFLAGS -l$ac_ii"
37241:     else
37242: 
37243: 
37244:   case $ac_ii in
37245:   c|c_r|pthread*) ;;
37246:   *)
37247:       LIBS="$LIBS -l$ac_ii"
37248:    ;;
37249:   esac
37250: 
37251: 
37252:     fi
37253:    ;;
37254:   esac
37255: 
37256: 
37257:     ;;
37258:     -L*)
37259:       ac_ii=`echo $ac_i|cut -c 3-`
37260: 
37261:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
37262: 
37263:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
37264:     ai_p=$ac_ii
37265:   else
37266: 
37267:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
37268: 
37269:     ep_realdir=`(cd "$ep_dir" && pwd)`
37270:     ai_p="$ep_realdir"/`basename "$ac_ii"`
37271:   fi
37272: 
37273: 
37274:       if test "$ext_shared" = "yes"; then
37275:         LDFLAGS="-L$ai_p $LDFLAGS"
37276:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
37277:       else
37278: 
37279: 
37280: 
37281:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
37282: 
37283:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
37284:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
37285:     eval "LIBPATH$unique=set"
37286: 
37287:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
37288:     LDFLAGS="$LDFLAGS -L$ai_p"
37289:     PHP_RPATHS="$PHP_RPATHS $ai_p"
37290: 
37291:   fi
37292: 
37293: 
37294:       fi
37295: 
37296:   fi
37297: 
37298:     ;;
37299:     esac
37300:   done
37301: 
37302:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_CTX_set_ssl_version in -lssl" >&5
37303: $as_echo_n "checking for SSL_CTX_set_ssl_version in -lssl... " >&6; }
37304: if ${ac_cv_lib_ssl_SSL_CTX_set_ssl_version+:} false; then :
37305:   $as_echo_n "(cached) " >&6
37306: else
37307:   ac_check_lib_save_LIBS=$LIBS
37308: LIBS="-lssl  $LIBS"
37309: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37310: /* end confdefs.h.  */
37311: 
37312: /* Override any GCC internal prototype to avoid an error.
37313:    Use char because int might match the return type of a GCC
37314:    builtin and then its argument prototype would still apply.  */
37315: #ifdef __cplusplus
37316: extern "C"
37317: #endif
37318: char SSL_CTX_set_ssl_version ();
37319: int
37320: main ()
37321: {
37322: return SSL_CTX_set_ssl_version ();
37323:   ;
37324:   return 0;
37325: }
37326: _ACEOF
37327: if ac_fn_c_try_link "$LINENO"; then :
37328:   ac_cv_lib_ssl_SSL_CTX_set_ssl_version=yes
37329: else
37330:   ac_cv_lib_ssl_SSL_CTX_set_ssl_version=no
37331: fi
37332: rm -f core conftest.err conftest.$ac_objext \
37333:     conftest$ac_exeext conftest.$ac_ext
37334: LIBS=$ac_check_lib_save_LIBS
37335: fi
37336: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_CTX_set_ssl_version" >&5
37337: $as_echo "$ac_cv_lib_ssl_SSL_CTX_set_ssl_version" >&6; }
37338: if test "x$ac_cv_lib_ssl_SSL_CTX_set_ssl_version" = xyes; then :
37339: 
37340:     LDFLAGS=$save_old_LDFLAGS
37341:     ext_shared=$save_ext_shared
37342: 
37343:       found_openssl=yes
37344: 
37345: 
37346: else
37347: 
37348:     LDFLAGS=$save_old_LDFLAGS
37349:     ext_shared=$save_ext_shared
37350:     unset ac_cv_lib_ssl_SSL_CTX_set_ssl_version
37351: 
37352:       as_fn_error $? "libssl not found!" "$LINENO" 5
37353: 
37354: 
37355: fi
37356: 
37357:     LIBS=$old_LIBS
37358: 
37359: 
37360:   case ssl in
37361:   c|c_r|pthread*) ;;
37362:   *)
37363:     if test "$ext_shared" = "yes"; then
37364:         FTP_SHARED_LIBADD="-lssl $FTP_SHARED_LIBADD"
37365:     else
37366: 
37367: 
37368:   case ssl in
37369:   c|c_r|pthread*) ;;
37370:   *)
37371:       LIBS="-lssl $LIBS"
37372:    ;;
37373:   esac
37374: 
37375: 
37376:     fi
37377:    ;;
37378:   esac
37379: 
37380: 
37381: 
37382: 
37383:   case crypto in
37384:   c|c_r|pthread*) ;;
37385:   *)
37386:     if test "$ext_shared" = "yes"; then
37387:         FTP_SHARED_LIBADD="-lcrypto $FTP_SHARED_LIBADD"
37388:     else
37389: 
37390: 
37391:   case crypto in
37392:   c|c_r|pthread*) ;;
37393:   *)
37394:       LIBS="-lcrypto $LIBS"
37395:    ;;
37396:   esac
37397: 
37398: 
37399:     fi
37400:    ;;
37401:   esac
37402: 
37403: 
37404: 
37405: 
37406:   if test "$OPENSSL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$OPENSSL_LIBDIR" != "/usr/lib"; then
37407: 
37408:   if test -z "$OPENSSL_LIBDIR" || echo "$OPENSSL_LIBDIR" | grep '^/' >/dev/null ; then
37409:     ai_p=$OPENSSL_LIBDIR
37410:   else
37411: 
37412:     ep_dir=`echo $OPENSSL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
37413: 
37414:     ep_realdir=`(cd "$ep_dir" && pwd)`
37415:     ai_p="$ep_realdir"/`basename "$OPENSSL_LIBDIR"`
37416:   fi
37417: 
37418: 
37419:       if test "$ext_shared" = "yes"; then
37420:         FTP_SHARED_LIBADD="-L$ai_p $FTP_SHARED_LIBADD"
37421:         test -n "$ld_runpath_switch" && FTP_SHARED_LIBADD="$ld_runpath_switch$ai_p $FTP_SHARED_LIBADD"
37422:       else
37423: 
37424: 
37425: 
37426:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
37427: 
37428:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
37429:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
37430:     eval "LIBPATH$unique=set"
37431: 
37432:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
37433:     LDFLAGS="$LDFLAGS -L$ai_p"
37434:     PHP_RPATHS="$PHP_RPATHS $ai_p"
37435: 
37436:   fi
37437: 
37438: 
37439:       fi
37440: 
37441:   fi
37442: 
37443:   fi
37444: 
37445:   if test "$found_openssl" = "yes"; then
37446:     OPENSSL_INCDIR_OPT=-I$OPENSSL_INCDIR
37447: 
37448: 
37449: :
37450: 
37451:   fi
37452: 
37453: 
37454:   PHP_VAR_SUBST="$PHP_VAR_SUBST FTP_SHARED_LIBADD"
37455: 
37456:   fi
37457: fi
37458: 
37459: 
37460: 
37461: 
37462: php_with_gd=no
37463: 
37464: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GD support" >&5
37465: $as_echo_n "checking for GD support... " >&6; }
37466: 
37467: # Check whether --with-gd was given.
37468: if test "${with_gd+set}" = set; then :
37469:   withval=$with_gd; PHP_GD=$withval
37470: else
37471: 
37472:   PHP_GD=no
37473:   test "$PHP_ENABLE_ALL" && PHP_GD=$PHP_ENABLE_ALL
37474: 
37475: fi
37476: 
37477: 
37478: 
37479: ext_output="yes, shared"
37480: ext_shared=yes
37481: case $PHP_GD in
37482: shared,*)
37483:   PHP_GD=`echo "$PHP_GD"|$SED 's/^shared,//'`
37484:   ;;
37485: shared)
37486:   PHP_GD=yes
37487:   ;;
37488: no)
37489:   ext_output=no
37490:   ext_shared=no
37491:   ;;
37492: *)
37493:   ext_output=yes
37494:   ext_shared=no
37495:   ;;
37496: esac
37497: 
37498: 
37499: 
37500: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
37501: $as_echo "$ext_output" >&6; }
37502: 
37503: 
37504: 
37505: 
37506: if test -z "$PHP_VPX_DIR"; then
37507: 
37508: php_with_vpx_dir=no
37509: 
37510: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the location of libvpx" >&5
37511: $as_echo_n "checking for the location of libvpx... " >&6; }
37512: 
37513: # Check whether --with-vpx-dir was given.
37514: if test "${with_vpx_dir+set}" = set; then :
37515:   withval=$with_vpx_dir; PHP_VPX_DIR=$withval
37516: else
37517: 
37518:   PHP_VPX_DIR=no
37519: 
37520: 
37521: fi
37522: 
37523: 
37524: ext_output=$PHP_VPX_DIR
37525: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
37526: $as_echo "$ext_output" >&6; }
37527: 
37528: 
37529: 
37530: fi
37531: 
37532: if test -z "$PHP_JPEG_DIR"; then
37533: 
37534: php_with_jpeg_dir=no
37535: 
37536: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the location of libjpeg" >&5
37537: $as_echo_n "checking for the location of libjpeg... " >&6; }
37538: 
37539: # Check whether --with-jpeg-dir was given.
37540: if test "${with_jpeg_dir+set}" = set; then :
37541:   withval=$with_jpeg_dir; PHP_JPEG_DIR=$withval
37542: else
37543: 
37544:   PHP_JPEG_DIR=no
37545: 
37546: 
37547: fi
37548: 
37549: 
37550: ext_output=$PHP_JPEG_DIR
37551: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
37552: $as_echo "$ext_output" >&6; }
37553: 
37554: 
37555: 
37556: fi
37557: 
37558: if test -z "$PHP_PNG_DIR"; then
37559: 
37560: php_with_png_dir=no
37561: 
37562: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the location of libpng" >&5
37563: $as_echo_n "checking for the location of libpng... " >&6; }
37564: 
37565: # Check whether --with-png-dir was given.
37566: if test "${with_png_dir+set}" = set; then :
37567:   withval=$with_png_dir; PHP_PNG_DIR=$withval
37568: else
37569: 
37570:   PHP_PNG_DIR=no
37571: 
37572: 
37573: fi
37574: 
37575: 
37576: ext_output=$PHP_PNG_DIR
37577: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
37578: $as_echo "$ext_output" >&6; }
37579: 
37580: 
37581: 
37582: fi
37583: 
37584: if test -z "$PHP_ZLIB_DIR"; then
37585: 
37586: php_with_zlib_dir=no
37587: 
37588: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the location of libz" >&5
37589: $as_echo_n "checking for the location of libz... " >&6; }
37590: 
37591: # Check whether --with-zlib-dir was given.
37592: if test "${with_zlib_dir+set}" = set; then :
37593:   withval=$with_zlib_dir; PHP_ZLIB_DIR=$withval
37594: else
37595: 
37596:   PHP_ZLIB_DIR=no
37597: 
37598: 
37599: fi
37600: 
37601: 
37602: ext_output=$PHP_ZLIB_DIR
37603: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
37604: $as_echo "$ext_output" >&6; }
37605: 
37606: 
37607: 
37608: fi
37609: 
37610: 
37611: php_with_xpm_dir=no
37612: 
37613: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the location of libXpm" >&5
37614: $as_echo_n "checking for the location of libXpm... " >&6; }
37615: 
37616: # Check whether --with-xpm-dir was given.
37617: if test "${with_xpm_dir+set}" = set; then :
37618:   withval=$with_xpm_dir; PHP_XPM_DIR=$withval
37619: else
37620: 
37621:   PHP_XPM_DIR=no
37622: 
37623: 
37624: fi
37625: 
37626: 
37627: ext_output=$PHP_XPM_DIR
37628: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
37629: $as_echo "$ext_output" >&6; }
37630: 
37631: 
37632: 
37633: 
37634: 
37635: php_with_freetype_dir=no
37636: 
37637: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2" >&5
37638: $as_echo_n "checking for FreeType 2... " >&6; }
37639: 
37640: # Check whether --with-freetype-dir was given.
37641: if test "${with_freetype_dir+set}" = set; then :
37642:   withval=$with_freetype_dir; PHP_FREETYPE_DIR=$withval
37643: else
37644: 
37645:   PHP_FREETYPE_DIR=no
37646: 
37647: 
37648: fi
37649: 
37650: 
37651: ext_output=$PHP_FREETYPE_DIR
37652: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
37653: $as_echo "$ext_output" >&6; }
37654: 
37655: 
37656: 
37657: 
37658: 
37659: php_with_t1lib=no
37660: 
37661: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for T1lib support" >&5
37662: $as_echo_n "checking for T1lib support... " >&6; }
37663: 
37664: # Check whether --with-t1lib was given.
37665: if test "${with_t1lib+set}" = set; then :
37666:   withval=$with_t1lib; PHP_T1LIB=$withval
37667: else
37668: 
37669:   PHP_T1LIB=no
37670: 
37671: 
37672: fi
37673: 
37674: 
37675: ext_output=$PHP_T1LIB
37676: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
37677: $as_echo "$ext_output" >&6; }
37678: 
37679: 
37680: 
37681: 
37682: 
37683: php_enable_gd_native_ttf=no
37684: 
37685: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable truetype string function in GD" >&5
37686: $as_echo_n "checking whether to enable truetype string function in GD... " >&6; }
37687: # Check whether --enable-gd-native-ttf was given.
37688: if test "${enable_gd_native_ttf+set}" = set; then :
37689:   enableval=$enable_gd_native_ttf; PHP_GD_NATIVE_TTF=$enableval
37690: else
37691: 
37692:   PHP_GD_NATIVE_TTF=no
37693: 
37694: 
37695: fi
37696: 
37697: 
37698: ext_output=$PHP_GD_NATIVE_TTF
37699: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
37700: $as_echo "$ext_output" >&6; }
37701: 
37702: 
37703: 
37704: 
37705: 
37706: php_enable_gd_jis_conv=no
37707: 
37708: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable JIS-mapped Japanese font support in GD" >&5
37709: $as_echo_n "checking whether to enable JIS-mapped Japanese font support in GD... " >&6; }
37710: # Check whether --enable-gd-jis-conv was given.
37711: if test "${enable_gd_jis_conv+set}" = set; then :
37712:   enableval=$enable_gd_jis_conv; PHP_GD_JIS_CONV=$enableval
37713: else
37714: 
37715:   PHP_GD_JIS_CONV=no
37716: 
37717: 
37718: fi
37719: 
37720: 
37721: ext_output=$PHP_GD_JIS_CONV
37722: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
37723: $as_echo "$ext_output" >&6; }
37724: 
37725: 
37726: 
37727: 
37728: 
37729: 
37730: 
37731: 
37732: 
37733: 
37734: 
37735: 
37736: 
37737: 
37738: 
37739: 
37740: 
37741: 
37742: 
37743: 
37744: 
37745: 
37746: 
37747: 
37748: 
37749: 
37750: if test "$PHP_GD" = "yes"; then
37751:   GD_MODULE_TYPE=builtin
37752:   extra_sources="libgd/gd.c libgd/gd_gd.c libgd/gd_gd2.c libgd/gd_io.c libgd/gd_io_dp.c \
37753:                  libgd/gd_io_file.c libgd/gd_ss.c libgd/gd_io_ss.c libgd/webpimg.c libgd/gd_webp.c \
37754:                  libgd/gd_png.c libgd/gd_jpeg.c libgd/gdxpm.c libgd/gdfontt.c libgd/gdfonts.c \
37755:                  libgd/gdfontmb.c libgd/gdfontl.c libgd/gdfontg.c libgd/gdtables.c libgd/gdft.c \
37756:                  libgd/gdcache.c libgd/gdkanji.c libgd/wbmp.c libgd/gd_wbmp.c libgd/gdhelpers.c \
37757:                  libgd/gd_topal.c libgd/gd_gif_in.c libgd/xbm.c libgd/gd_gif_out.c libgd/gd_security.c \
37758:                  libgd/gd_filter.c libgd/gd_pixelate.c libgd/gd_arc.c libgd/gd_rotate.c libgd/gd_color.c"
37759: 
37760:   for ac_func in fabsf floorf
37761: do :
37762:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
37763: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
37764: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
37765:   cat >>confdefs.h <<_ACEOF
37766: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
37767: _ACEOF
37768: 
37769: fi
37770: done
37771: 
37772: 
37773:   test "$PHP_PNG_DIR" = "no" && PHP_PNG_DIR=yes
37774: 
37775: 
37776: 	if test "$PHP_ZLIB_DIR" != "no" && test "$PHP_ZLIB_DIR" != "yes"; then
37777: 		if test -f "$PHP_ZLIB_DIR/include/zlib/zlib.h"; then
37778: 			PHP_ZLIB_DIR="$PHP_ZLIB_DIR"
37779: 			PHP_ZLIB_INCDIR="$PHP_ZLIB_DIR/include/zlib"
37780: 		elif test -f "$PHP_ZLIB_DIR/include/zlib.h"; then
37781: 			PHP_ZLIB_DIR="$PHP_ZLIB_DIR"
37782: 			PHP_ZLIB_INCDIR="$PHP_ZLIB_DIR/include"
37783: 		else
37784: 			as_fn_error $? "Can't find zlib headers under \"$PHP_ZLIB_DIR\"" "$LINENO" 5
37785: 		fi
37786: 	else
37787: 		for i in /usr/local /usr; do
37788: 			if test -f "$i/include/zlib/zlib.h"; then
37789: 				PHP_ZLIB_DIR="$i"
37790: 				PHP_ZLIB_INCDIR="$i/include/zlib"
37791: 			elif test -f "$i/include/zlib.h"; then
37792: 				PHP_ZLIB_DIR="$i"
37793: 				PHP_ZLIB_INCDIR="$i/include"
37794: 			fi
37795: 		done
37796: 	fi
37797: 
37798: 
37799:   if test "$PHP_GD_NATIVE_TTF" = "yes"; then
37800: 
37801: $as_echo "#define USE_GD_IMGSTRTTF 1" >>confdefs.h
37802: 
37803:   fi
37804: 
37805: 
37806:   if test "$PHP_GD_JIS_CONV" = "yes"; then
37807:     USE_GD_JIS_CONV=1
37808:   fi
37809: 
37810: 
37811:   if test "$PHP_JPEG_DIR" != "no"; then
37812: 
37813:     for i in $PHP_JPEG_DIR /usr/local /usr; do
37814:       test -f $i/include/jpeglib.h && GD_JPEG_DIR=$i && break
37815:     done
37816: 
37817:     if test -z "$GD_JPEG_DIR"; then
37818:       as_fn_error $? "jpeglib.h not found." "$LINENO" 5
37819:     fi
37820: 
37821: 
37822:   save_old_LDFLAGS=$LDFLAGS
37823:   ac_stuff="
37824:       -L$GD_JPEG_DIR/$PHP_LIBDIR
37825:     "
37826: 
37827:   save_ext_shared=$ext_shared
37828:   ext_shared=yes
37829: 
37830:   for ac_i in $ac_stuff; do
37831:     case $ac_i in
37832:     -pthread)
37833:       if test "$ext_shared" = "yes"; then
37834:         LDFLAGS="$LDFLAGS -pthread"
37835:       else
37836: 
37837: 
37838:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
37839: 
37840:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
37841:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
37842:     eval "EXTRA_LDFLAGS$unique=set"
37843:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
37844:   fi
37845: 
37846:       fi
37847:     ;;
37848:     -l*)
37849:       ac_ii=`echo $ac_i|cut -c 3-`
37850: 
37851: 
37852:   case $ac_ii in
37853:   c|c_r|pthread*) ;;
37854:   *)
37855:     if test "$ext_shared" = "yes"; then
37856:         LDFLAGS="$LDFLAGS -l$ac_ii"
37857:     else
37858: 
37859: 
37860:   case $ac_ii in
37861:   c|c_r|pthread*) ;;
37862:   *)
37863:       LIBS="$LIBS -l$ac_ii"
37864:    ;;
37865:   esac
37866: 
37867: 
37868:     fi
37869:    ;;
37870:   esac
37871: 
37872: 
37873:     ;;
37874:     -L*)
37875:       ac_ii=`echo $ac_i|cut -c 3-`
37876: 
37877:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
37878: 
37879:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
37880:     ai_p=$ac_ii
37881:   else
37882: 
37883:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
37884: 
37885:     ep_realdir=`(cd "$ep_dir" && pwd)`
37886:     ai_p="$ep_realdir"/`basename "$ac_ii"`
37887:   fi
37888: 
37889: 
37890:       if test "$ext_shared" = "yes"; then
37891:         LDFLAGS="-L$ai_p $LDFLAGS"
37892:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
37893:       else
37894: 
37895: 
37896: 
37897:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
37898: 
37899:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
37900:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
37901:     eval "LIBPATH$unique=set"
37902: 
37903:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
37904:     LDFLAGS="$LDFLAGS -L$ai_p"
37905:     PHP_RPATHS="$PHP_RPATHS $ai_p"
37906: 
37907:   fi
37908: 
37909: 
37910:       fi
37911: 
37912:   fi
37913: 
37914:     ;;
37915:     esac
37916:   done
37917: 
37918:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
37919: $as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
37920: if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
37921:   $as_echo_n "(cached) " >&6
37922: else
37923:   ac_check_lib_save_LIBS=$LIBS
37924: LIBS="-ljpeg  $LIBS"
37925: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37926: /* end confdefs.h.  */
37927: 
37928: /* Override any GCC internal prototype to avoid an error.
37929:    Use char because int might match the return type of a GCC
37930:    builtin and then its argument prototype would still apply.  */
37931: #ifdef __cplusplus
37932: extern "C"
37933: #endif
37934: char jpeg_read_header ();
37935: int
37936: main ()
37937: {
37938: return jpeg_read_header ();
37939:   ;
37940:   return 0;
37941: }
37942: _ACEOF
37943: if ac_fn_c_try_link "$LINENO"; then :
37944:   ac_cv_lib_jpeg_jpeg_read_header=yes
37945: else
37946:   ac_cv_lib_jpeg_jpeg_read_header=no
37947: fi
37948: rm -f core conftest.err conftest.$ac_objext \
37949:     conftest$ac_exeext conftest.$ac_ext
37950: LIBS=$ac_check_lib_save_LIBS
37951: fi
37952: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
37953: $as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
37954: if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
37955: 
37956:     LDFLAGS=$save_old_LDFLAGS
37957:     ext_shared=$save_ext_shared
37958: 
37959: 
37960:   if test "$GD_JPEG_DIR/include" != "/usr/include"; then
37961: 
37962:   if test -z "$GD_JPEG_DIR/include" || echo "$GD_JPEG_DIR/include" | grep '^/' >/dev/null ; then
37963:     ai_p=$GD_JPEG_DIR/include
37964:   else
37965: 
37966:     ep_dir=`echo $GD_JPEG_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`
37967: 
37968:     ep_realdir=`(cd "$ep_dir" && pwd)`
37969:     ai_p="$ep_realdir"/`basename "$GD_JPEG_DIR/include"`
37970:   fi
37971: 
37972: 
37973: 
37974:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
37975: 
37976:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
37977:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
37978:     eval "INCLUDEPATH$unique=set"
37979: 
37980:       if test ""; then
37981:         INCLUDES="-I$ai_p $INCLUDES"
37982:       else
37983:         INCLUDES="$INCLUDES -I$ai_p"
37984:       fi
37985: 
37986:   fi
37987: 
37988:   fi
37989: 
37990: 
37991: 
37992:   if test "$ext_shared" = "yes"; then
37993:     GD_SHARED_LIBADD="-ljpeg $GD_SHARED_LIBADD"
37994:     if test -n "$GD_JPEG_DIR/$PHP_LIBDIR"; then
37995: 
37996:   if test "$GD_JPEG_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_JPEG_DIR/$PHP_LIBDIR" != "/usr/lib"; then
37997: 
37998:   if test -z "$GD_JPEG_DIR/$PHP_LIBDIR" || echo "$GD_JPEG_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
37999:     ai_p=$GD_JPEG_DIR/$PHP_LIBDIR
38000:   else
38001: 
38002:     ep_dir=`echo $GD_JPEG_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
38003: 
38004:     ep_realdir=`(cd "$ep_dir" && pwd)`
38005:     ai_p="$ep_realdir"/`basename "$GD_JPEG_DIR/$PHP_LIBDIR"`
38006:   fi
38007: 
38008: 
38009:       if test "$ext_shared" = "yes"; then
38010:         GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
38011:         test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
38012:       else
38013: 
38014: 
38015: 
38016:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
38017: 
38018:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
38019:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
38020:     eval "LIBPATH$unique=set"
38021: 
38022:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
38023:     LDFLAGS="$LDFLAGS -L$ai_p"
38024:     PHP_RPATHS="$PHP_RPATHS $ai_p"
38025: 
38026:   fi
38027: 
38028: 
38029:       fi
38030: 
38031:   fi
38032: 
38033:     fi
38034:   else
38035: 
38036: 
38037:   if test -n "$GD_JPEG_DIR/$PHP_LIBDIR"; then
38038: 
38039:   if test "$GD_JPEG_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_JPEG_DIR/$PHP_LIBDIR" != "/usr/lib"; then
38040: 
38041:   if test -z "$GD_JPEG_DIR/$PHP_LIBDIR" || echo "$GD_JPEG_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
38042:     ai_p=$GD_JPEG_DIR/$PHP_LIBDIR
38043:   else
38044: 
38045:     ep_dir=`echo $GD_JPEG_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
38046: 
38047:     ep_realdir=`(cd "$ep_dir" && pwd)`
38048:     ai_p="$ep_realdir"/`basename "$GD_JPEG_DIR/$PHP_LIBDIR"`
38049:   fi
38050: 
38051: 
38052: 
38053: 
38054: 
38055:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
38056: 
38057:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
38058:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
38059:     eval "LIBPATH$unique=set"
38060: 
38061:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
38062:     LDFLAGS="$LDFLAGS -L$ai_p"
38063:     PHP_RPATHS="$PHP_RPATHS $ai_p"
38064: 
38065:   fi
38066: 
38067: 
38068: 
38069:   fi
38070: 
38071:   fi
38072: 
38073: 
38074:   case jpeg in
38075:   c|c_r|pthread*) ;;
38076:   *)
38077:       LIBS="-ljpeg $LIBS"
38078:    ;;
38079:   esac
38080: 
38081: 
38082: 
38083: 
38084:   fi
38085: 
38086: 
38087: 
38088: 
38089: else
38090: 
38091:     LDFLAGS=$save_old_LDFLAGS
38092:     ext_shared=$save_ext_shared
38093:     unset ac_cv_lib_jpeg_jpeg_read_header
38094: 
38095:       as_fn_error $? "Problem with libjpeg.(a|so). Please check config.log for more information." "$LINENO" 5
38096: 
38097: 
38098: fi
38099: 
38100:   else
38101:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: If configure fails try --with-jpeg-dir=<DIR>" >&5
38102: $as_echo "If configure fails try --with-jpeg-dir=<DIR>" >&6; }
38103:   fi
38104: 
38105: 
38106:   if test "$PHP_VPX_DIR" != "no"; then
38107: 
38108:     for i in $PHP_VPX_DIR /usr/local /usr; do
38109:       test -f $i/include/vpx_codec.h || test -f $i/include/vpx/vpx_codec.h && GD_VPX_DIR=$i && break
38110:     done
38111: 
38112:     if test -z "$GD_VPX_DIR"; then
38113:       as_fn_error $? "vpx_codec.h not found." "$LINENO" 5
38114:     fi
38115: 
38116: 
38117:   save_old_LDFLAGS=$LDFLAGS
38118:   ac_stuff="
38119:       -L$GD_VPX_DIR/$PHP_LIBDIR
38120:     "
38121: 
38122:   save_ext_shared=$ext_shared
38123:   ext_shared=yes
38124: 
38125:   for ac_i in $ac_stuff; do
38126:     case $ac_i in
38127:     -pthread)
38128:       if test "$ext_shared" = "yes"; then
38129:         LDFLAGS="$LDFLAGS -pthread"
38130:       else
38131: 
38132: 
38133:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
38134: 
38135:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
38136:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
38137:     eval "EXTRA_LDFLAGS$unique=set"
38138:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
38139:   fi
38140: 
38141:       fi
38142:     ;;
38143:     -l*)
38144:       ac_ii=`echo $ac_i|cut -c 3-`
38145: 
38146: 
38147:   case $ac_ii in
38148:   c|c_r|pthread*) ;;
38149:   *)
38150:     if test "$ext_shared" = "yes"; then
38151:         LDFLAGS="$LDFLAGS -l$ac_ii"
38152:     else
38153: 
38154: 
38155:   case $ac_ii in
38156:   c|c_r|pthread*) ;;
38157:   *)
38158:       LIBS="$LIBS -l$ac_ii"
38159:    ;;
38160:   esac
38161: 
38162: 
38163:     fi
38164:    ;;
38165:   esac
38166: 
38167: 
38168:     ;;
38169:     -L*)
38170:       ac_ii=`echo $ac_i|cut -c 3-`
38171: 
38172:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
38173: 
38174:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
38175:     ai_p=$ac_ii
38176:   else
38177: 
38178:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
38179: 
38180:     ep_realdir=`(cd "$ep_dir" && pwd)`
38181:     ai_p="$ep_realdir"/`basename "$ac_ii"`
38182:   fi
38183: 
38184: 
38185:       if test "$ext_shared" = "yes"; then
38186:         LDFLAGS="-L$ai_p $LDFLAGS"
38187:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
38188:       else
38189: 
38190: 
38191: 
38192:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
38193: 
38194:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
38195:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
38196:     eval "LIBPATH$unique=set"
38197: 
38198:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
38199:     LDFLAGS="$LDFLAGS -L$ai_p"
38200:     PHP_RPATHS="$PHP_RPATHS $ai_p"
38201: 
38202:   fi
38203: 
38204: 
38205:       fi
38206: 
38207:   fi
38208: 
38209:     ;;
38210:     esac
38211:   done
38212: 
38213:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vpx_codec_destroy in -lvpx" >&5
38214: $as_echo_n "checking for vpx_codec_destroy in -lvpx... " >&6; }
38215: if ${ac_cv_lib_vpx_vpx_codec_destroy+:} false; then :
38216:   $as_echo_n "(cached) " >&6
38217: else
38218:   ac_check_lib_save_LIBS=$LIBS
38219: LIBS="-lvpx  $LIBS"
38220: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38221: /* end confdefs.h.  */
38222: 
38223: /* Override any GCC internal prototype to avoid an error.
38224:    Use char because int might match the return type of a GCC
38225:    builtin and then its argument prototype would still apply.  */
38226: #ifdef __cplusplus
38227: extern "C"
38228: #endif
38229: char vpx_codec_destroy ();
38230: int
38231: main ()
38232: {
38233: return vpx_codec_destroy ();
38234:   ;
38235:   return 0;
38236: }
38237: _ACEOF
38238: if ac_fn_c_try_link "$LINENO"; then :
38239:   ac_cv_lib_vpx_vpx_codec_destroy=yes
38240: else
38241:   ac_cv_lib_vpx_vpx_codec_destroy=no
38242: fi
38243: rm -f core conftest.err conftest.$ac_objext \
38244:     conftest$ac_exeext conftest.$ac_ext
38245: LIBS=$ac_check_lib_save_LIBS
38246: fi
38247: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vpx_vpx_codec_destroy" >&5
38248: $as_echo "$ac_cv_lib_vpx_vpx_codec_destroy" >&6; }
38249: if test "x$ac_cv_lib_vpx_vpx_codec_destroy" = xyes; then :
38250: 
38251:     LDFLAGS=$save_old_LDFLAGS
38252:     ext_shared=$save_ext_shared
38253: 
38254: 
38255:   if test "$GD_VPX_DIR/include" != "/usr/include"; then
38256: 
38257:   if test -z "$GD_VPX_DIR/include" || echo "$GD_VPX_DIR/include" | grep '^/' >/dev/null ; then
38258:     ai_p=$GD_VPX_DIR/include
38259:   else
38260: 
38261:     ep_dir=`echo $GD_VPX_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`
38262: 
38263:     ep_realdir=`(cd "$ep_dir" && pwd)`
38264:     ai_p="$ep_realdir"/`basename "$GD_VPX_DIR/include"`
38265:   fi
38266: 
38267: 
38268: 
38269:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
38270: 
38271:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
38272:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
38273:     eval "INCLUDEPATH$unique=set"
38274: 
38275:       if test ""; then
38276:         INCLUDES="-I$ai_p $INCLUDES"
38277:       else
38278:         INCLUDES="$INCLUDES -I$ai_p"
38279:       fi
38280: 
38281:   fi
38282: 
38283:   fi
38284: 
38285: 
38286: 
38287:   case pthread in
38288:   c|c_r|pthread*) ;;
38289:   *)
38290:       LIBS="-lpthread $LIBS"
38291:    ;;
38292:   esac
38293: 
38294: 
38295: 
38296: 
38297:   if test "$ext_shared" = "yes"; then
38298:     GD_SHARED_LIBADD="-lvpx $GD_SHARED_LIBADD"
38299:     if test -n "$GD_VPX_DIR/$PHP_LIBDIR"; then
38300: 
38301:   if test "$GD_VPX_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_VPX_DIR/$PHP_LIBDIR" != "/usr/lib"; then
38302: 
38303:   if test -z "$GD_VPX_DIR/$PHP_LIBDIR" || echo "$GD_VPX_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
38304:     ai_p=$GD_VPX_DIR/$PHP_LIBDIR
38305:   else
38306: 
38307:     ep_dir=`echo $GD_VPX_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
38308: 
38309:     ep_realdir=`(cd "$ep_dir" && pwd)`
38310:     ai_p="$ep_realdir"/`basename "$GD_VPX_DIR/$PHP_LIBDIR"`
38311:   fi
38312: 
38313: 
38314:       if test "$ext_shared" = "yes"; then
38315:         GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
38316:         test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
38317:       else
38318: 
38319: 
38320: 
38321:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
38322: 
38323:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
38324:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
38325:     eval "LIBPATH$unique=set"
38326: 
38327:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
38328:     LDFLAGS="$LDFLAGS -L$ai_p"
38329:     PHP_RPATHS="$PHP_RPATHS $ai_p"
38330: 
38331:   fi
38332: 
38333: 
38334:       fi
38335: 
38336:   fi
38337: 
38338:     fi
38339:   else
38340: 
38341: 
38342:   if test -n "$GD_VPX_DIR/$PHP_LIBDIR"; then
38343: 
38344:   if test "$GD_VPX_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_VPX_DIR/$PHP_LIBDIR" != "/usr/lib"; then
38345: 
38346:   if test -z "$GD_VPX_DIR/$PHP_LIBDIR" || echo "$GD_VPX_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
38347:     ai_p=$GD_VPX_DIR/$PHP_LIBDIR
38348:   else
38349: 
38350:     ep_dir=`echo $GD_VPX_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
38351: 
38352:     ep_realdir=`(cd "$ep_dir" && pwd)`
38353:     ai_p="$ep_realdir"/`basename "$GD_VPX_DIR/$PHP_LIBDIR"`
38354:   fi
38355: 
38356: 
38357: 
38358: 
38359: 
38360:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
38361: 
38362:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
38363:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
38364:     eval "LIBPATH$unique=set"
38365: 
38366:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
38367:     LDFLAGS="$LDFLAGS -L$ai_p"
38368:     PHP_RPATHS="$PHP_RPATHS $ai_p"
38369: 
38370:   fi
38371: 
38372: 
38373: 
38374:   fi
38375: 
38376:   fi
38377: 
38378: 
38379:   case vpx in
38380:   c|c_r|pthread*) ;;
38381:   *)
38382:       LIBS="-lvpx $LIBS"
38383:    ;;
38384:   esac
38385: 
38386: 
38387: 
38388: 
38389:   fi
38390: 
38391: 
38392: 
38393: 
38394: else
38395: 
38396:     LDFLAGS=$save_old_LDFLAGS
38397:     ext_shared=$save_ext_shared
38398:     unset ac_cv_lib_vpx_vpx_codec_destroy
38399: 
38400:       as_fn_error $? "Problem with libvpx.(a|so). Please check config.log for more information." "$LINENO" 5
38401: 
38402: 
38403: fi
38404: 
38405:   else
38406:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: If configure fails try --with-vpx-dir=<DIR>" >&5
38407: $as_echo "If configure fails try --with-vpx-dir=<DIR>" >&6; }
38408:   fi
38409: 
38410: 
38411:   if test "$PHP_PNG_DIR" != "no"; then
38412: 
38413:     for i in $PHP_PNG_DIR /usr/local /usr; do
38414:       test -f $i/include/png.h && GD_PNG_DIR=$i && break
38415:     done
38416: 
38417:     if test -z "$GD_PNG_DIR"; then
38418:       as_fn_error $? "png.h not found." "$LINENO" 5
38419:     fi
38420: 
38421:     if test "$PHP_ZLIB_DIR" = "no"; then
38422:       as_fn_error $? "PNG support requires ZLIB. Use --with-zlib-dir=<DIR>" "$LINENO" 5
38423:     fi
38424: 
38425: 
38426:   save_old_LDFLAGS=$LDFLAGS
38427:   ac_stuff="
38428:       -L$PHP_ZLIB_DIR/$PHP_LIBDIR -lz -L$GD_PNG_DIR/$PHP_LIBDIR
38429:     "
38430: 
38431:   save_ext_shared=$ext_shared
38432:   ext_shared=yes
38433: 
38434:   for ac_i in $ac_stuff; do
38435:     case $ac_i in
38436:     -pthread)
38437:       if test "$ext_shared" = "yes"; then
38438:         LDFLAGS="$LDFLAGS -pthread"
38439:       else
38440: 
38441: 
38442:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
38443: 
38444:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
38445:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
38446:     eval "EXTRA_LDFLAGS$unique=set"
38447:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
38448:   fi
38449: 
38450:       fi
38451:     ;;
38452:     -l*)
38453:       ac_ii=`echo $ac_i|cut -c 3-`
38454: 
38455: 
38456:   case $ac_ii in
38457:   c|c_r|pthread*) ;;
38458:   *)
38459:     if test "$ext_shared" = "yes"; then
38460:         LDFLAGS="$LDFLAGS -l$ac_ii"
38461:     else
38462: 
38463: 
38464:   case $ac_ii in
38465:   c|c_r|pthread*) ;;
38466:   *)
38467:       LIBS="$LIBS -l$ac_ii"
38468:    ;;
38469:   esac
38470: 
38471: 
38472:     fi
38473:    ;;
38474:   esac
38475: 
38476: 
38477:     ;;
38478:     -L*)
38479:       ac_ii=`echo $ac_i|cut -c 3-`
38480: 
38481:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
38482: 
38483:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
38484:     ai_p=$ac_ii
38485:   else
38486: 
38487:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
38488: 
38489:     ep_realdir=`(cd "$ep_dir" && pwd)`
38490:     ai_p="$ep_realdir"/`basename "$ac_ii"`
38491:   fi
38492: 
38493: 
38494:       if test "$ext_shared" = "yes"; then
38495:         LDFLAGS="-L$ai_p $LDFLAGS"
38496:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
38497:       else
38498: 
38499: 
38500: 
38501:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
38502: 
38503:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
38504:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
38505:     eval "LIBPATH$unique=set"
38506: 
38507:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
38508:     LDFLAGS="$LDFLAGS -L$ai_p"
38509:     PHP_RPATHS="$PHP_RPATHS $ai_p"
38510: 
38511:   fi
38512: 
38513: 
38514:       fi
38515: 
38516:   fi
38517: 
38518:     ;;
38519:     esac
38520:   done
38521: 
38522:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_write_image in -lpng" >&5
38523: $as_echo_n "checking for png_write_image in -lpng... " >&6; }
38524: if ${ac_cv_lib_png_png_write_image+:} false; then :
38525:   $as_echo_n "(cached) " >&6
38526: else
38527:   ac_check_lib_save_LIBS=$LIBS
38528: LIBS="-lpng  $LIBS"
38529: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38530: /* end confdefs.h.  */
38531: 
38532: /* Override any GCC internal prototype to avoid an error.
38533:    Use char because int might match the return type of a GCC
38534:    builtin and then its argument prototype would still apply.  */
38535: #ifdef __cplusplus
38536: extern "C"
38537: #endif
38538: char png_write_image ();
38539: int
38540: main ()
38541: {
38542: return png_write_image ();
38543:   ;
38544:   return 0;
38545: }
38546: _ACEOF
38547: if ac_fn_c_try_link "$LINENO"; then :
38548:   ac_cv_lib_png_png_write_image=yes
38549: else
38550:   ac_cv_lib_png_png_write_image=no
38551: fi
38552: rm -f core conftest.err conftest.$ac_objext \
38553:     conftest$ac_exeext conftest.$ac_ext
38554: LIBS=$ac_check_lib_save_LIBS
38555: fi
38556: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_write_image" >&5
38557: $as_echo "$ac_cv_lib_png_png_write_image" >&6; }
38558: if test "x$ac_cv_lib_png_png_write_image" = xyes; then :
38559: 
38560:     LDFLAGS=$save_old_LDFLAGS
38561:     ext_shared=$save_ext_shared
38562: 
38563: 
38564:   if test "$GD_PNG_DIR/include" != "/usr/include"; then
38565: 
38566:   if test -z "$GD_PNG_DIR/include" || echo "$GD_PNG_DIR/include" | grep '^/' >/dev/null ; then
38567:     ai_p=$GD_PNG_DIR/include
38568:   else
38569: 
38570:     ep_dir=`echo $GD_PNG_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`
38571: 
38572:     ep_realdir=`(cd "$ep_dir" && pwd)`
38573:     ai_p="$ep_realdir"/`basename "$GD_PNG_DIR/include"`
38574:   fi
38575: 
38576: 
38577: 
38578:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
38579: 
38580:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
38581:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
38582:     eval "INCLUDEPATH$unique=set"
38583: 
38584:       if test ""; then
38585:         INCLUDES="-I$ai_p $INCLUDES"
38586:       else
38587:         INCLUDES="$INCLUDES -I$ai_p"
38588:       fi
38589: 
38590:   fi
38591: 
38592:   fi
38593: 
38594: 
38595: 
38596:   if test "$ext_shared" = "yes"; then
38597:     GD_SHARED_LIBADD="-lz $GD_SHARED_LIBADD"
38598:     if test -n "$PHP_ZLIB_DIR/$PHP_LIBDIR"; then
38599: 
38600:   if test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/lib"; then
38601: 
38602:   if test -z "$PHP_ZLIB_DIR/$PHP_LIBDIR" || echo "$PHP_ZLIB_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
38603:     ai_p=$PHP_ZLIB_DIR/$PHP_LIBDIR
38604:   else
38605: 
38606:     ep_dir=`echo $PHP_ZLIB_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
38607: 
38608:     ep_realdir=`(cd "$ep_dir" && pwd)`
38609:     ai_p="$ep_realdir"/`basename "$PHP_ZLIB_DIR/$PHP_LIBDIR"`
38610:   fi
38611: 
38612: 
38613:       if test "$ext_shared" = "yes"; then
38614:         GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
38615:         test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
38616:       else
38617: 
38618: 
38619: 
38620:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
38621: 
38622:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
38623:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
38624:     eval "LIBPATH$unique=set"
38625: 
38626:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
38627:     LDFLAGS="$LDFLAGS -L$ai_p"
38628:     PHP_RPATHS="$PHP_RPATHS $ai_p"
38629: 
38630:   fi
38631: 
38632: 
38633:       fi
38634: 
38635:   fi
38636: 
38637:     fi
38638:   else
38639: 
38640: 
38641:   if test -n "$PHP_ZLIB_DIR/$PHP_LIBDIR"; then
38642: 
38643:   if test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/lib"; then
38644: 
38645:   if test -z "$PHP_ZLIB_DIR/$PHP_LIBDIR" || echo "$PHP_ZLIB_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
38646:     ai_p=$PHP_ZLIB_DIR/$PHP_LIBDIR
38647:   else
38648: 
38649:     ep_dir=`echo $PHP_ZLIB_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
38650: 
38651:     ep_realdir=`(cd "$ep_dir" && pwd)`
38652:     ai_p="$ep_realdir"/`basename "$PHP_ZLIB_DIR/$PHP_LIBDIR"`
38653:   fi
38654: 
38655: 
38656: 
38657: 
38658: 
38659:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
38660: 
38661:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
38662:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
38663:     eval "LIBPATH$unique=set"
38664: 
38665:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
38666:     LDFLAGS="$LDFLAGS -L$ai_p"
38667:     PHP_RPATHS="$PHP_RPATHS $ai_p"
38668: 
38669:   fi
38670: 
38671: 
38672: 
38673:   fi
38674: 
38675:   fi
38676: 
38677: 
38678:   case z in
38679:   c|c_r|pthread*) ;;
38680:   *)
38681:       LIBS="-lz $LIBS"
38682:    ;;
38683:   esac
38684: 
38685: 
38686: 
38687: 
38688:   fi
38689: 
38690: 
38691: 
38692: 
38693:   if test "$ext_shared" = "yes"; then
38694:     GD_SHARED_LIBADD="-lpng $GD_SHARED_LIBADD"
38695:     if test -n "$GD_PNG_DIR/$PHP_LIBDIR"; then
38696: 
38697:   if test "$GD_PNG_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_PNG_DIR/$PHP_LIBDIR" != "/usr/lib"; then
38698: 
38699:   if test -z "$GD_PNG_DIR/$PHP_LIBDIR" || echo "$GD_PNG_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
38700:     ai_p=$GD_PNG_DIR/$PHP_LIBDIR
38701:   else
38702: 
38703:     ep_dir=`echo $GD_PNG_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
38704: 
38705:     ep_realdir=`(cd "$ep_dir" && pwd)`
38706:     ai_p="$ep_realdir"/`basename "$GD_PNG_DIR/$PHP_LIBDIR"`
38707:   fi
38708: 
38709: 
38710:       if test "$ext_shared" = "yes"; then
38711:         GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
38712:         test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
38713:       else
38714: 
38715: 
38716: 
38717:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
38718: 
38719:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
38720:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
38721:     eval "LIBPATH$unique=set"
38722: 
38723:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
38724:     LDFLAGS="$LDFLAGS -L$ai_p"
38725:     PHP_RPATHS="$PHP_RPATHS $ai_p"
38726: 
38727:   fi
38728: 
38729: 
38730:       fi
38731: 
38732:   fi
38733: 
38734:     fi
38735:   else
38736: 
38737: 
38738:   if test -n "$GD_PNG_DIR/$PHP_LIBDIR"; then
38739: 
38740:   if test "$GD_PNG_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_PNG_DIR/$PHP_LIBDIR" != "/usr/lib"; then
38741: 
38742:   if test -z "$GD_PNG_DIR/$PHP_LIBDIR" || echo "$GD_PNG_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
38743:     ai_p=$GD_PNG_DIR/$PHP_LIBDIR
38744:   else
38745: 
38746:     ep_dir=`echo $GD_PNG_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
38747: 
38748:     ep_realdir=`(cd "$ep_dir" && pwd)`
38749:     ai_p="$ep_realdir"/`basename "$GD_PNG_DIR/$PHP_LIBDIR"`
38750:   fi
38751: 
38752: 
38753: 
38754: 
38755: 
38756:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
38757: 
38758:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
38759:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
38760:     eval "LIBPATH$unique=set"
38761: 
38762:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
38763:     LDFLAGS="$LDFLAGS -L$ai_p"
38764:     PHP_RPATHS="$PHP_RPATHS $ai_p"
38765: 
38766:   fi
38767: 
38768: 
38769: 
38770:   fi
38771: 
38772:   fi
38773: 
38774: 
38775:   case png in
38776:   c|c_r|pthread*) ;;
38777:   *)
38778:       LIBS="-lpng $LIBS"
38779:    ;;
38780:   esac
38781: 
38782: 
38783: 
38784: 
38785:   fi
38786: 
38787: 
38788: 
38789: 
38790: else
38791: 
38792:     LDFLAGS=$save_old_LDFLAGS
38793:     ext_shared=$save_ext_shared
38794:     unset ac_cv_lib_png_png_write_image
38795: 
38796:       as_fn_error $? "Problem with libpng.(a|so) or libz.(a|so). Please check config.log for more information." "$LINENO" 5
38797: 
38798: 
38799: fi
38800: 
38801: 
38802:   else
38803:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: If configure fails try --with-png-dir=<DIR> and --with-zlib-dir=<DIR>" >&5
38804: $as_echo "If configure fails try --with-png-dir=<DIR> and --with-zlib-dir=<DIR>" >&6; }
38805:   fi
38806: 
38807: 
38808:   if test "$PHP_XPM_DIR" != "no"; then
38809: 
38810:     for i in $PHP_XPM_DIR /usr/local /usr/X11R6 /usr; do
38811:       test -f $i/$PHP_LIBDIR/libXpm.$SHLIB_SUFFIX_NAME || test -f $i/$PHP_LIBDIR/libXpm.a && GD_XPM_DIR=$i && break
38812:     done
38813: 
38814:     if test -z "$GD_XPM_DIR"; then
38815:       as_fn_error $? "libXpm.(a|so) not found." "$LINENO" 5
38816:     fi
38817: 
38818:     for i in include include/X11; do
38819:       test -f $GD_XPM_DIR/$i/xpm.h && GD_XPM_INC=$GD_XPM_DIR/include
38820:     done
38821: 
38822:     if test -z "$GD_XPM_INC"; then
38823:       as_fn_error $? "xpm.h not found." "$LINENO" 5
38824:     fi
38825: 
38826: 
38827:   save_old_LDFLAGS=$LDFLAGS
38828:   ac_stuff="
38829:       -L$GD_XPM_DIR/$PHP_LIBDIR -lX11
38830:     "
38831: 
38832:   save_ext_shared=$ext_shared
38833:   ext_shared=yes
38834: 
38835:   for ac_i in $ac_stuff; do
38836:     case $ac_i in
38837:     -pthread)
38838:       if test "$ext_shared" = "yes"; then
38839:         LDFLAGS="$LDFLAGS -pthread"
38840:       else
38841: 
38842: 
38843:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
38844: 
38845:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
38846:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
38847:     eval "EXTRA_LDFLAGS$unique=set"
38848:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
38849:   fi
38850: 
38851:       fi
38852:     ;;
38853:     -l*)
38854:       ac_ii=`echo $ac_i|cut -c 3-`
38855: 
38856: 
38857:   case $ac_ii in
38858:   c|c_r|pthread*) ;;
38859:   *)
38860:     if test "$ext_shared" = "yes"; then
38861:         LDFLAGS="$LDFLAGS -l$ac_ii"
38862:     else
38863: 
38864: 
38865:   case $ac_ii in
38866:   c|c_r|pthread*) ;;
38867:   *)
38868:       LIBS="$LIBS -l$ac_ii"
38869:    ;;
38870:   esac
38871: 
38872: 
38873:     fi
38874:    ;;
38875:   esac
38876: 
38877: 
38878:     ;;
38879:     -L*)
38880:       ac_ii=`echo $ac_i|cut -c 3-`
38881: 
38882:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
38883: 
38884:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
38885:     ai_p=$ac_ii
38886:   else
38887: 
38888:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
38889: 
38890:     ep_realdir=`(cd "$ep_dir" && pwd)`
38891:     ai_p="$ep_realdir"/`basename "$ac_ii"`
38892:   fi
38893: 
38894: 
38895:       if test "$ext_shared" = "yes"; then
38896:         LDFLAGS="-L$ai_p $LDFLAGS"
38897:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
38898:       else
38899: 
38900: 
38901: 
38902:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
38903: 
38904:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
38905:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
38906:     eval "LIBPATH$unique=set"
38907: 
38908:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
38909:     LDFLAGS="$LDFLAGS -L$ai_p"
38910:     PHP_RPATHS="$PHP_RPATHS $ai_p"
38911: 
38912:   fi
38913: 
38914: 
38915:       fi
38916: 
38917:   fi
38918: 
38919:     ;;
38920:     esac
38921:   done
38922: 
38923:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmFreeXpmImage in -lXpm" >&5
38924: $as_echo_n "checking for XpmFreeXpmImage in -lXpm... " >&6; }
38925: if ${ac_cv_lib_Xpm_XpmFreeXpmImage+:} false; then :
38926:   $as_echo_n "(cached) " >&6
38927: else
38928:   ac_check_lib_save_LIBS=$LIBS
38929: LIBS="-lXpm  $LIBS"
38930: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38931: /* end confdefs.h.  */
38932: 
38933: /* Override any GCC internal prototype to avoid an error.
38934:    Use char because int might match the return type of a GCC
38935:    builtin and then its argument prototype would still apply.  */
38936: #ifdef __cplusplus
38937: extern "C"
38938: #endif
38939: char XpmFreeXpmImage ();
38940: int
38941: main ()
38942: {
38943: return XpmFreeXpmImage ();
38944:   ;
38945:   return 0;
38946: }
38947: _ACEOF
38948: if ac_fn_c_try_link "$LINENO"; then :
38949:   ac_cv_lib_Xpm_XpmFreeXpmImage=yes
38950: else
38951:   ac_cv_lib_Xpm_XpmFreeXpmImage=no
38952: fi
38953: rm -f core conftest.err conftest.$ac_objext \
38954:     conftest$ac_exeext conftest.$ac_ext
38955: LIBS=$ac_check_lib_save_LIBS
38956: fi
38957: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmFreeXpmImage" >&5
38958: $as_echo "$ac_cv_lib_Xpm_XpmFreeXpmImage" >&6; }
38959: if test "x$ac_cv_lib_Xpm_XpmFreeXpmImage" = xyes; then :
38960: 
38961:     LDFLAGS=$save_old_LDFLAGS
38962:     ext_shared=$save_ext_shared
38963: 
38964: 
38965:   if test "$GD_XPM_INC" != "/usr/include"; then
38966: 
38967:   if test -z "$GD_XPM_INC" || echo "$GD_XPM_INC" | grep '^/' >/dev/null ; then
38968:     ai_p=$GD_XPM_INC
38969:   else
38970: 
38971:     ep_dir=`echo $GD_XPM_INC|$SED 's%/*[^/][^/]*/*$%%'`
38972: 
38973:     ep_realdir=`(cd "$ep_dir" && pwd)`
38974:     ai_p="$ep_realdir"/`basename "$GD_XPM_INC"`
38975:   fi
38976: 
38977: 
38978: 
38979:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
38980: 
38981:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
38982:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
38983:     eval "INCLUDEPATH$unique=set"
38984: 
38985:       if test ""; then
38986:         INCLUDES="-I$ai_p $INCLUDES"
38987:       else
38988:         INCLUDES="$INCLUDES -I$ai_p"
38989:       fi
38990: 
38991:   fi
38992: 
38993:   fi
38994: 
38995: 
38996: 
38997:   if test "$ext_shared" = "yes"; then
38998:     GD_SHARED_LIBADD="-lXpm $GD_SHARED_LIBADD"
38999:     if test -n "$GD_XPM_DIR/$PHP_LIBDIR"; then
39000: 
39001:   if test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/lib"; then
39002: 
39003:   if test -z "$GD_XPM_DIR/$PHP_LIBDIR" || echo "$GD_XPM_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
39004:     ai_p=$GD_XPM_DIR/$PHP_LIBDIR
39005:   else
39006: 
39007:     ep_dir=`echo $GD_XPM_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
39008: 
39009:     ep_realdir=`(cd "$ep_dir" && pwd)`
39010:     ai_p="$ep_realdir"/`basename "$GD_XPM_DIR/$PHP_LIBDIR"`
39011:   fi
39012: 
39013: 
39014:       if test "$ext_shared" = "yes"; then
39015:         GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
39016:         test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
39017:       else
39018: 
39019: 
39020: 
39021:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
39022: 
39023:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
39024:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
39025:     eval "LIBPATH$unique=set"
39026: 
39027:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
39028:     LDFLAGS="$LDFLAGS -L$ai_p"
39029:     PHP_RPATHS="$PHP_RPATHS $ai_p"
39030: 
39031:   fi
39032: 
39033: 
39034:       fi
39035: 
39036:   fi
39037: 
39038:     fi
39039:   else
39040: 
39041: 
39042:   if test -n "$GD_XPM_DIR/$PHP_LIBDIR"; then
39043: 
39044:   if test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/lib"; then
39045: 
39046:   if test -z "$GD_XPM_DIR/$PHP_LIBDIR" || echo "$GD_XPM_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
39047:     ai_p=$GD_XPM_DIR/$PHP_LIBDIR
39048:   else
39049: 
39050:     ep_dir=`echo $GD_XPM_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
39051: 
39052:     ep_realdir=`(cd "$ep_dir" && pwd)`
39053:     ai_p="$ep_realdir"/`basename "$GD_XPM_DIR/$PHP_LIBDIR"`
39054:   fi
39055: 
39056: 
39057: 
39058: 
39059: 
39060:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
39061: 
39062:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
39063:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
39064:     eval "LIBPATH$unique=set"
39065: 
39066:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
39067:     LDFLAGS="$LDFLAGS -L$ai_p"
39068:     PHP_RPATHS="$PHP_RPATHS $ai_p"
39069: 
39070:   fi
39071: 
39072: 
39073: 
39074:   fi
39075: 
39076:   fi
39077: 
39078: 
39079:   case Xpm in
39080:   c|c_r|pthread*) ;;
39081:   *)
39082:       LIBS="-lXpm $LIBS"
39083:    ;;
39084:   esac
39085: 
39086: 
39087: 
39088: 
39089:   fi
39090: 
39091: 
39092: 
39093: 
39094:   if test "$ext_shared" = "yes"; then
39095:     GD_SHARED_LIBADD="-lX11 $GD_SHARED_LIBADD"
39096:     if test -n "$GD_XPM_DIR/$PHP_LIBDIR"; then
39097: 
39098:   if test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/lib"; then
39099: 
39100:   if test -z "$GD_XPM_DIR/$PHP_LIBDIR" || echo "$GD_XPM_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
39101:     ai_p=$GD_XPM_DIR/$PHP_LIBDIR
39102:   else
39103: 
39104:     ep_dir=`echo $GD_XPM_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
39105: 
39106:     ep_realdir=`(cd "$ep_dir" && pwd)`
39107:     ai_p="$ep_realdir"/`basename "$GD_XPM_DIR/$PHP_LIBDIR"`
39108:   fi
39109: 
39110: 
39111:       if test "$ext_shared" = "yes"; then
39112:         GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
39113:         test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
39114:       else
39115: 
39116: 
39117: 
39118:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
39119: 
39120:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
39121:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
39122:     eval "LIBPATH$unique=set"
39123: 
39124:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
39125:     LDFLAGS="$LDFLAGS -L$ai_p"
39126:     PHP_RPATHS="$PHP_RPATHS $ai_p"
39127: 
39128:   fi
39129: 
39130: 
39131:       fi
39132: 
39133:   fi
39134: 
39135:     fi
39136:   else
39137: 
39138: 
39139:   if test -n "$GD_XPM_DIR/$PHP_LIBDIR"; then
39140: 
39141:   if test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/lib"; then
39142: 
39143:   if test -z "$GD_XPM_DIR/$PHP_LIBDIR" || echo "$GD_XPM_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
39144:     ai_p=$GD_XPM_DIR/$PHP_LIBDIR
39145:   else
39146: 
39147:     ep_dir=`echo $GD_XPM_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
39148: 
39149:     ep_realdir=`(cd "$ep_dir" && pwd)`
39150:     ai_p="$ep_realdir"/`basename "$GD_XPM_DIR/$PHP_LIBDIR"`
39151:   fi
39152: 
39153: 
39154: 
39155: 
39156: 
39157:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
39158: 
39159:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
39160:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
39161:     eval "LIBPATH$unique=set"
39162: 
39163:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
39164:     LDFLAGS="$LDFLAGS -L$ai_p"
39165:     PHP_RPATHS="$PHP_RPATHS $ai_p"
39166: 
39167:   fi
39168: 
39169: 
39170: 
39171:   fi
39172: 
39173:   fi
39174: 
39175: 
39176:   case X11 in
39177:   c|c_r|pthread*) ;;
39178:   *)
39179:       LIBS="-lX11 $LIBS"
39180:    ;;
39181:   esac
39182: 
39183: 
39184: 
39185: 
39186:   fi
39187: 
39188: 
39189: 
39190: 
39191: else
39192: 
39193:     LDFLAGS=$save_old_LDFLAGS
39194:     ext_shared=$save_ext_shared
39195:     unset ac_cv_lib_Xpm_XpmFreeXpmImage
39196: 
39197:       as_fn_error $? "Problem with libXpm.(a|so) or libX11.(a|so). Please check config.log for more information." "$LINENO" 5
39198: 
39199: 
39200: fi
39201: 
39202:   else
39203:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: If configure fails try --with-xpm-dir=<DIR>" >&5
39204: $as_echo "If configure fails try --with-xpm-dir=<DIR>" >&6; }
39205:   fi
39206: 
39207: 
39208:   if test "$PHP_FREETYPE_DIR" != "no"; then
39209: 
39210:     for i in $PHP_FREETYPE_DIR /usr/local /usr; do
39211:       if test -f "$i/bin/freetype-config"; then
39212:         FREETYPE2_DIR=$i
39213:         FREETYPE2_CONFIG="$i/bin/freetype-config"
39214:         break
39215:       fi
39216:     done
39217: 
39218:     if test -z "$FREETYPE2_DIR"; then
39219:       as_fn_error $? "freetype-config not found." "$LINENO" 5
39220:     fi
39221: 
39222:     FREETYPE2_CFLAGS=`$FREETYPE2_CONFIG --cflags`
39223:     FREETYPE2_LIBS=`$FREETYPE2_CONFIG --libs`
39224: 
39225: 
39226:   for ac_i in $FREETYPE2_CFLAGS; do
39227:     case $ac_i in
39228:     -I*)
39229:       ac_ii=`echo $ac_i|cut -c 3-`
39230: 
39231:   if test "$ac_ii" != "/usr/include"; then
39232: 
39233:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
39234:     ai_p=$ac_ii
39235:   else
39236: 
39237:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
39238: 
39239:     ep_realdir=`(cd "$ep_dir" && pwd)`
39240:     ai_p="$ep_realdir"/`basename "$ac_ii"`
39241:   fi
39242: 
39243: 
39244: 
39245:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
39246: 
39247:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
39248:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
39249:     eval "INCLUDEPATH$unique=set"
39250: 
39251:       if test ""; then
39252:         INCLUDES="-I$ai_p $INCLUDES"
39253:       else
39254:         INCLUDES="$INCLUDES -I$ai_p"
39255:       fi
39256: 
39257:   fi
39258: 
39259:   fi
39260: 
39261:     ;;
39262:     esac
39263:   done
39264: 
39265: 
39266:   for ac_i in $FREETYPE2_LIBS; do
39267:     case $ac_i in
39268:     -pthread)
39269:       if test "$ext_shared" = "yes"; then
39270:         GD_SHARED_LIBADD="$GD_SHARED_LIBADD -pthread"
39271:       else
39272: 
39273: 
39274:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
39275: 
39276:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
39277:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
39278:     eval "EXTRA_LDFLAGS$unique=set"
39279:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
39280:   fi
39281: 
39282:       fi
39283:     ;;
39284:     -l*)
39285:       ac_ii=`echo $ac_i|cut -c 3-`
39286: 
39287: 
39288:   case $ac_ii in
39289:   c|c_r|pthread*) ;;
39290:   *)
39291:     if test "$ext_shared" = "yes"; then
39292:         GD_SHARED_LIBADD="$GD_SHARED_LIBADD -l$ac_ii"
39293:     else
39294: 
39295: 
39296:   case $ac_ii in
39297:   c|c_r|pthread*) ;;
39298:   *)
39299:       LIBS="$LIBS -l$ac_ii"
39300:    ;;
39301:   esac
39302: 
39303: 
39304:     fi
39305:    ;;
39306:   esac
39307: 
39308: 
39309:     ;;
39310:     -L*)
39311:       ac_ii=`echo $ac_i|cut -c 3-`
39312: 
39313:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
39314: 
39315:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
39316:     ai_p=$ac_ii
39317:   else
39318: 
39319:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
39320: 
39321:     ep_realdir=`(cd "$ep_dir" && pwd)`
39322:     ai_p="$ep_realdir"/`basename "$ac_ii"`
39323:   fi
39324: 
39325: 
39326:       if test "$ext_shared" = "yes"; then
39327:         GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
39328:         test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
39329:       else
39330: 
39331: 
39332: 
39333:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
39334: 
39335:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
39336:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
39337:     eval "LIBPATH$unique=set"
39338: 
39339:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
39340:     LDFLAGS="$LDFLAGS -L$ai_p"
39341:     PHP_RPATHS="$PHP_RPATHS $ai_p"
39342: 
39343:   fi
39344: 
39345: 
39346:       fi
39347: 
39348:   fi
39349: 
39350:     ;;
39351:     esac
39352:   done
39353: 
39354: 
39355: $as_echo "#define USE_GD_IMGSTRTTF 1" >>confdefs.h
39356: 
39357: 
39358: $as_echo "#define HAVE_LIBFREETYPE 1" >>confdefs.h
39359: 
39360: 
39361: $as_echo "#define ENABLE_GD_TTF 1" >>confdefs.h
39362: 
39363:   else
39364:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: If configure fails try --with-freetype-dir=<DIR>" >&5
39365: $as_echo "If configure fails try --with-freetype-dir=<DIR>" >&6; }
39366:   fi
39367: 
39368: 
39369:   if test "$PHP_T1LIB" != "no"; then
39370: 
39371:     for i in $PHP_T1LIB /usr/local /usr; do
39372:       test -f "$i/include/t1lib.h" && GD_T1_DIR=$i && break
39373:     done
39374: 
39375:     if test -z "$GD_T1_DIR"; then
39376:       as_fn_error $? "Your t1lib distribution is not installed correctly. Please reinstall it." "$LINENO" 5
39377:     fi
39378: 
39379: 
39380:   save_old_LDFLAGS=$LDFLAGS
39381:   ac_stuff="
39382:       -L$GD_T1_DIR/$PHP_LIBDIR
39383:     "
39384: 
39385:   save_ext_shared=$ext_shared
39386:   ext_shared=yes
39387: 
39388:   for ac_i in $ac_stuff; do
39389:     case $ac_i in
39390:     -pthread)
39391:       if test "$ext_shared" = "yes"; then
39392:         LDFLAGS="$LDFLAGS -pthread"
39393:       else
39394: 
39395: 
39396:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
39397: 
39398:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
39399:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
39400:     eval "EXTRA_LDFLAGS$unique=set"
39401:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
39402:   fi
39403: 
39404:       fi
39405:     ;;
39406:     -l*)
39407:       ac_ii=`echo $ac_i|cut -c 3-`
39408: 
39409: 
39410:   case $ac_ii in
39411:   c|c_r|pthread*) ;;
39412:   *)
39413:     if test "$ext_shared" = "yes"; then
39414:         LDFLAGS="$LDFLAGS -l$ac_ii"
39415:     else
39416: 
39417: 
39418:   case $ac_ii in
39419:   c|c_r|pthread*) ;;
39420:   *)
39421:       LIBS="$LIBS -l$ac_ii"
39422:    ;;
39423:   esac
39424: 
39425: 
39426:     fi
39427:    ;;
39428:   esac
39429: 
39430: 
39431:     ;;
39432:     -L*)
39433:       ac_ii=`echo $ac_i|cut -c 3-`
39434: 
39435:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
39436: 
39437:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
39438:     ai_p=$ac_ii
39439:   else
39440: 
39441:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
39442: 
39443:     ep_realdir=`(cd "$ep_dir" && pwd)`
39444:     ai_p="$ep_realdir"/`basename "$ac_ii"`
39445:   fi
39446: 
39447: 
39448:       if test "$ext_shared" = "yes"; then
39449:         LDFLAGS="-L$ai_p $LDFLAGS"
39450:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
39451:       else
39452: 
39453: 
39454: 
39455:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
39456: 
39457:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
39458:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
39459:     eval "LIBPATH$unique=set"
39460: 
39461:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
39462:     LDFLAGS="$LDFLAGS -L$ai_p"
39463:     PHP_RPATHS="$PHP_RPATHS $ai_p"
39464: 
39465:   fi
39466: 
39467: 
39468:       fi
39469: 
39470:   fi
39471: 
39472:     ;;
39473:     esac
39474:   done
39475: 
39476:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for T1_StrError in -lt1" >&5
39477: $as_echo_n "checking for T1_StrError in -lt1... " >&6; }
39478: if ${ac_cv_lib_t1_T1_StrError+:} false; then :
39479:   $as_echo_n "(cached) " >&6
39480: else
39481:   ac_check_lib_save_LIBS=$LIBS
39482: LIBS="-lt1  $LIBS"
39483: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39484: /* end confdefs.h.  */
39485: 
39486: /* Override any GCC internal prototype to avoid an error.
39487:    Use char because int might match the return type of a GCC
39488:    builtin and then its argument prototype would still apply.  */
39489: #ifdef __cplusplus
39490: extern "C"
39491: #endif
39492: char T1_StrError ();
39493: int
39494: main ()
39495: {
39496: return T1_StrError ();
39497:   ;
39498:   return 0;
39499: }
39500: _ACEOF
39501: if ac_fn_c_try_link "$LINENO"; then :
39502:   ac_cv_lib_t1_T1_StrError=yes
39503: else
39504:   ac_cv_lib_t1_T1_StrError=no
39505: fi
39506: rm -f core conftest.err conftest.$ac_objext \
39507:     conftest$ac_exeext conftest.$ac_ext
39508: LIBS=$ac_check_lib_save_LIBS
39509: fi
39510: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_t1_T1_StrError" >&5
39511: $as_echo "$ac_cv_lib_t1_T1_StrError" >&6; }
39512: if test "x$ac_cv_lib_t1_T1_StrError" = xyes; then :
39513: 
39514:     LDFLAGS=$save_old_LDFLAGS
39515:     ext_shared=$save_ext_shared
39516: 
39517: 
39518: $as_echo "#define HAVE_LIBT1 1" >>confdefs.h
39519: 
39520: 
39521:   if test "$GD_T1_DIR/include" != "/usr/include"; then
39522: 
39523:   if test -z "$GD_T1_DIR/include" || echo "$GD_T1_DIR/include" | grep '^/' >/dev/null ; then
39524:     ai_p=$GD_T1_DIR/include
39525:   else
39526: 
39527:     ep_dir=`echo $GD_T1_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`
39528: 
39529:     ep_realdir=`(cd "$ep_dir" && pwd)`
39530:     ai_p="$ep_realdir"/`basename "$GD_T1_DIR/include"`
39531:   fi
39532: 
39533: 
39534: 
39535:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
39536: 
39537:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
39538:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
39539:     eval "INCLUDEPATH$unique=set"
39540: 
39541:       if test ""; then
39542:         INCLUDES="-I$ai_p $INCLUDES"
39543:       else
39544:         INCLUDES="$INCLUDES -I$ai_p"
39545:       fi
39546: 
39547:   fi
39548: 
39549:   fi
39550: 
39551: 
39552: 
39553:   if test "$ext_shared" = "yes"; then
39554:     GD_SHARED_LIBADD="-lt1 $GD_SHARED_LIBADD"
39555:     if test -n "$GD_T1_DIR/$PHP_LIBDIR"; then
39556: 
39557:   if test "$GD_T1_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_T1_DIR/$PHP_LIBDIR" != "/usr/lib"; then
39558: 
39559:   if test -z "$GD_T1_DIR/$PHP_LIBDIR" || echo "$GD_T1_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
39560:     ai_p=$GD_T1_DIR/$PHP_LIBDIR
39561:   else
39562: 
39563:     ep_dir=`echo $GD_T1_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
39564: 
39565:     ep_realdir=`(cd "$ep_dir" && pwd)`
39566:     ai_p="$ep_realdir"/`basename "$GD_T1_DIR/$PHP_LIBDIR"`
39567:   fi
39568: 
39569: 
39570:       if test "$ext_shared" = "yes"; then
39571:         GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
39572:         test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
39573:       else
39574: 
39575: 
39576: 
39577:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
39578: 
39579:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
39580:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
39581:     eval "LIBPATH$unique=set"
39582: 
39583:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
39584:     LDFLAGS="$LDFLAGS -L$ai_p"
39585:     PHP_RPATHS="$PHP_RPATHS $ai_p"
39586: 
39587:   fi
39588: 
39589: 
39590:       fi
39591: 
39592:   fi
39593: 
39594:     fi
39595:   else
39596: 
39597: 
39598:   if test -n "$GD_T1_DIR/$PHP_LIBDIR"; then
39599: 
39600:   if test "$GD_T1_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_T1_DIR/$PHP_LIBDIR" != "/usr/lib"; then
39601: 
39602:   if test -z "$GD_T1_DIR/$PHP_LIBDIR" || echo "$GD_T1_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
39603:     ai_p=$GD_T1_DIR/$PHP_LIBDIR
39604:   else
39605: 
39606:     ep_dir=`echo $GD_T1_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
39607: 
39608:     ep_realdir=`(cd "$ep_dir" && pwd)`
39609:     ai_p="$ep_realdir"/`basename "$GD_T1_DIR/$PHP_LIBDIR"`
39610:   fi
39611: 
39612: 
39613: 
39614: 
39615: 
39616:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
39617: 
39618:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
39619:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
39620:     eval "LIBPATH$unique=set"
39621: 
39622:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
39623:     LDFLAGS="$LDFLAGS -L$ai_p"
39624:     PHP_RPATHS="$PHP_RPATHS $ai_p"
39625: 
39626:   fi
39627: 
39628: 
39629: 
39630:   fi
39631: 
39632:   fi
39633: 
39634: 
39635:   case t1 in
39636:   c|c_r|pthread*) ;;
39637:   *)
39638:       LIBS="-lt1 $LIBS"
39639:    ;;
39640:   esac
39641: 
39642: 
39643: 
39644: 
39645:   fi
39646: 
39647: 
39648: 
39649: 
39650: else
39651: 
39652:     LDFLAGS=$save_old_LDFLAGS
39653:     ext_shared=$save_ext_shared
39654:     unset ac_cv_lib_t1_T1_StrError
39655: 
39656:       as_fn_error $? "Problem with libt1.(a|so). Please check config.log for more information." "$LINENO" 5
39657: 
39658: 
39659: fi
39660: 
39661:   fi
39662: 
39663: 
39664: 
39665: $as_echo "#define HAVE_LIBGD 1" >>confdefs.h
39666: 
39667: 
39668: $as_echo "#define HAVE_LIBGD13 1" >>confdefs.h
39669: 
39670: 
39671: $as_echo "#define HAVE_LIBGD15 1" >>confdefs.h
39672: 
39673: 
39674: $as_echo "#define HAVE_LIBGD20 1" >>confdefs.h
39675: 
39676: 
39677: $as_echo "#define HAVE_LIBGD204 1" >>confdefs.h
39678: 
39679: 
39680: $as_echo "#define HAVE_GD_IMAGESETTILE 1" >>confdefs.h
39681: 
39682: 
39683: $as_echo "#define HAVE_GD_IMAGESETBRUSH 1" >>confdefs.h
39684: 
39685: 
39686: $as_echo "#define HAVE_GDIMAGECOLORRESOLVE 1" >>confdefs.h
39687: 
39688: 
39689: $as_echo "#define HAVE_COLORCLOSESTHWB 1" >>confdefs.h
39690: 
39691: 
39692: $as_echo "#define HAVE_GD_WBMP 1" >>confdefs.h
39693: 
39694: 
39695: $as_echo "#define HAVE_GD_GD2 1" >>confdefs.h
39696: 
39697: 
39698: $as_echo "#define HAVE_GD_PNG 1" >>confdefs.h
39699: 
39700: 
39701: $as_echo "#define HAVE_GD_XBM 1" >>confdefs.h
39702: 
39703: 
39704: $as_echo "#define HAVE_GD_BUNDLED 1" >>confdefs.h
39705: 
39706: 
39707: $as_echo "#define HAVE_GD_GIF_READ 1" >>confdefs.h
39708: 
39709: 
39710: $as_echo "#define HAVE_GD_GIF_CREATE 1" >>confdefs.h
39711: 
39712: 
39713: $as_echo "#define HAVE_GD_IMAGEELLIPSE 1" >>confdefs.h
39714: 
39715: 
39716: $as_echo "#define HAVE_GD_FONTCACHESHUTDOWN 1" >>confdefs.h
39717: 
39718: 
39719: $as_echo "#define HAVE_GD_FONTMUTEX 1" >>confdefs.h
39720: 
39721: 
39722: $as_echo "#define HAVE_GD_DYNAMIC_CTX_EX 1" >>confdefs.h
39723: 
39724: 
39725: $as_echo "#define HAVE_GD_GIF_CTX 1" >>confdefs.h
39726: 
39727: 
39728:   GDLIB_CFLAGS="-DHAVE_LIBPNG"
39729: 
39730: 
39731:   if test -n "$GD_VPX_DIR"; then
39732: 
39733: $as_echo "#define HAVE_GD_WEBP 1" >>confdefs.h
39734: 
39735:     GDLIB_CFLAGS="$GDLIB_CFLAGS -DHAVE_LIBVPX"
39736:   fi
39737: 
39738:   if test -n "$GD_JPEG_DIR"; then
39739: 
39740: $as_echo "#define HAVE_GD_JPG 1" >>confdefs.h
39741: 
39742:     GDLIB_CFLAGS="$GDLIB_CFLAGS -DHAVE_LIBJPEG"
39743:   fi
39744: 
39745:   if test -n "$GD_XPM_DIR"; then
39746: 
39747: $as_echo "#define HAVE_GD_XPM 1" >>confdefs.h
39748: 
39749:     GDLIB_CFLAGS="$GDLIB_CFLAGS -DHAVE_XPM"
39750:   fi
39751: 
39752:   if test -n "$FREETYPE2_DIR"; then
39753: 
39754: $as_echo "#define HAVE_GD_STRINGFT 1" >>confdefs.h
39755: 
39756: 
39757: $as_echo "#define HAVE_GD_STRINGFTEX 1" >>confdefs.h
39758: 
39759: 
39760: $as_echo "#define ENABLE_GD_TTF 1" >>confdefs.h
39761: 
39762:     GDLIB_CFLAGS="$GDLIB_CFLAGS -DHAVE_LIBFREETYPE -DENABLE_GD_TTF"
39763:   fi
39764: 
39765:   if test -n "$USE_GD_JIS_CONV"; then
39766: 
39767: $as_echo "#define USE_GD_JISX0208 1" >>confdefs.h
39768: 
39769:     GDLIB_CFLAGS="$GDLIB_CFLAGS -DJISX0208"
39770:   fi
39771: 
39772: else
39773: 
39774:  if test "$PHP_GD" != "no"; then
39775:   GD_MODULE_TYPE=external
39776:   extra_sources="gdcache.c libgd/gd_compat.c libgd/gd_filter.c libgd/gd_pixelate.c libgd/gd_arc.c \
39777:                  libgd/gd_rotate.c libgd/gd_color.c"
39778: 
39779: 
39780: 	if test "$PHP_ZLIB_DIR" != "no" && test "$PHP_ZLIB_DIR" != "yes"; then
39781: 		if test -f "$PHP_ZLIB_DIR/include/zlib/zlib.h"; then
39782: 			PHP_ZLIB_DIR="$PHP_ZLIB_DIR"
39783: 			PHP_ZLIB_INCDIR="$PHP_ZLIB_DIR/include/zlib"
39784: 		elif test -f "$PHP_ZLIB_DIR/include/zlib.h"; then
39785: 			PHP_ZLIB_DIR="$PHP_ZLIB_DIR"
39786: 			PHP_ZLIB_INCDIR="$PHP_ZLIB_DIR/include"
39787: 		else
39788: 			as_fn_error $? "Can't find zlib headers under \"$PHP_ZLIB_DIR\"" "$LINENO" 5
39789: 		fi
39790: 	else
39791: 		for i in /usr/local /usr; do
39792: 			if test -f "$i/include/zlib/zlib.h"; then
39793: 				PHP_ZLIB_DIR="$i"
39794: 				PHP_ZLIB_INCDIR="$i/include/zlib"
39795: 			elif test -f "$i/include/zlib.h"; then
39796: 				PHP_ZLIB_DIR="$i"
39797: 				PHP_ZLIB_INCDIR="$i/include"
39798: 			fi
39799: 		done
39800: 	fi
39801: 
39802: 
39803:   if test "$PHP_GD_NATIVE_TTF" = "yes"; then
39804: 
39805: $as_echo "#define USE_GD_IMGSTRTTF 1" >>confdefs.h
39806: 
39807:   fi
39808: 
39809: 
39810:   if test "$PHP_VPX_DIR" != "no"; then
39811: 
39812:     for i in $PHP_VPX_DIR /usr/local /usr; do
39813:       test -f $i/include/vpx_codec.h || test -f $i/include/vpx/vpx_codec.h && GD_VPX_DIR=$i && break
39814:     done
39815: 
39816:     if test -z "$GD_VPX_DIR"; then
39817:       as_fn_error $? "vpx_codec.h not found." "$LINENO" 5
39818:     fi
39819: 
39820: 
39821:   save_old_LDFLAGS=$LDFLAGS
39822:   ac_stuff="
39823:       -L$GD_VPX_DIR/$PHP_LIBDIR
39824:     "
39825: 
39826:   save_ext_shared=$ext_shared
39827:   ext_shared=yes
39828: 
39829:   for ac_i in $ac_stuff; do
39830:     case $ac_i in
39831:     -pthread)
39832:       if test "$ext_shared" = "yes"; then
39833:         LDFLAGS="$LDFLAGS -pthread"
39834:       else
39835: 
39836: 
39837:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
39838: 
39839:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
39840:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
39841:     eval "EXTRA_LDFLAGS$unique=set"
39842:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
39843:   fi
39844: 
39845:       fi
39846:     ;;
39847:     -l*)
39848:       ac_ii=`echo $ac_i|cut -c 3-`
39849: 
39850: 
39851:   case $ac_ii in
39852:   c|c_r|pthread*) ;;
39853:   *)
39854:     if test "$ext_shared" = "yes"; then
39855:         LDFLAGS="$LDFLAGS -l$ac_ii"
39856:     else
39857: 
39858: 
39859:   case $ac_ii in
39860:   c|c_r|pthread*) ;;
39861:   *)
39862:       LIBS="$LIBS -l$ac_ii"
39863:    ;;
39864:   esac
39865: 
39866: 
39867:     fi
39868:    ;;
39869:   esac
39870: 
39871: 
39872:     ;;
39873:     -L*)
39874:       ac_ii=`echo $ac_i|cut -c 3-`
39875: 
39876:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
39877: 
39878:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
39879:     ai_p=$ac_ii
39880:   else
39881: 
39882:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
39883: 
39884:     ep_realdir=`(cd "$ep_dir" && pwd)`
39885:     ai_p="$ep_realdir"/`basename "$ac_ii"`
39886:   fi
39887: 
39888: 
39889:       if test "$ext_shared" = "yes"; then
39890:         LDFLAGS="-L$ai_p $LDFLAGS"
39891:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
39892:       else
39893: 
39894: 
39895: 
39896:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
39897: 
39898:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
39899:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
39900:     eval "LIBPATH$unique=set"
39901: 
39902:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
39903:     LDFLAGS="$LDFLAGS -L$ai_p"
39904:     PHP_RPATHS="$PHP_RPATHS $ai_p"
39905: 
39906:   fi
39907: 
39908: 
39909:       fi
39910: 
39911:   fi
39912: 
39913:     ;;
39914:     esac
39915:   done
39916: 
39917:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vpx_codec_destroy in -lvpx" >&5
39918: $as_echo_n "checking for vpx_codec_destroy in -lvpx... " >&6; }
39919: if ${ac_cv_lib_vpx_vpx_codec_destroy+:} false; then :
39920:   $as_echo_n "(cached) " >&6
39921: else
39922:   ac_check_lib_save_LIBS=$LIBS
39923: LIBS="-lvpx  $LIBS"
39924: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39925: /* end confdefs.h.  */
39926: 
39927: /* Override any GCC internal prototype to avoid an error.
39928:    Use char because int might match the return type of a GCC
39929:    builtin and then its argument prototype would still apply.  */
39930: #ifdef __cplusplus
39931: extern "C"
39932: #endif
39933: char vpx_codec_destroy ();
39934: int
39935: main ()
39936: {
39937: return vpx_codec_destroy ();
39938:   ;
39939:   return 0;
39940: }
39941: _ACEOF
39942: if ac_fn_c_try_link "$LINENO"; then :
39943:   ac_cv_lib_vpx_vpx_codec_destroy=yes
39944: else
39945:   ac_cv_lib_vpx_vpx_codec_destroy=no
39946: fi
39947: rm -f core conftest.err conftest.$ac_objext \
39948:     conftest$ac_exeext conftest.$ac_ext
39949: LIBS=$ac_check_lib_save_LIBS
39950: fi
39951: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vpx_vpx_codec_destroy" >&5
39952: $as_echo "$ac_cv_lib_vpx_vpx_codec_destroy" >&6; }
39953: if test "x$ac_cv_lib_vpx_vpx_codec_destroy" = xyes; then :
39954: 
39955:     LDFLAGS=$save_old_LDFLAGS
39956:     ext_shared=$save_ext_shared
39957: 
39958: 
39959:   if test "$GD_VPX_DIR/include" != "/usr/include"; then
39960: 
39961:   if test -z "$GD_VPX_DIR/include" || echo "$GD_VPX_DIR/include" | grep '^/' >/dev/null ; then
39962:     ai_p=$GD_VPX_DIR/include
39963:   else
39964: 
39965:     ep_dir=`echo $GD_VPX_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`
39966: 
39967:     ep_realdir=`(cd "$ep_dir" && pwd)`
39968:     ai_p="$ep_realdir"/`basename "$GD_VPX_DIR/include"`
39969:   fi
39970: 
39971: 
39972: 
39973:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
39974: 
39975:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
39976:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
39977:     eval "INCLUDEPATH$unique=set"
39978: 
39979:       if test ""; then
39980:         INCLUDES="-I$ai_p $INCLUDES"
39981:       else
39982:         INCLUDES="$INCLUDES -I$ai_p"
39983:       fi
39984: 
39985:   fi
39986: 
39987:   fi
39988: 
39989: 
39990: 
39991:   case pthread in
39992:   c|c_r|pthread*) ;;
39993:   *)
39994:       LIBS="-lpthread $LIBS"
39995:    ;;
39996:   esac
39997: 
39998: 
39999: 
40000: 
40001:   if test "$ext_shared" = "yes"; then
40002:     GD_SHARED_LIBADD="-lvpx $GD_SHARED_LIBADD"
40003:     if test -n "$GD_VPX_DIR/$PHP_LIBDIR"; then
40004: 
40005:   if test "$GD_VPX_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_VPX_DIR/$PHP_LIBDIR" != "/usr/lib"; then
40006: 
40007:   if test -z "$GD_VPX_DIR/$PHP_LIBDIR" || echo "$GD_VPX_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
40008:     ai_p=$GD_VPX_DIR/$PHP_LIBDIR
40009:   else
40010: 
40011:     ep_dir=`echo $GD_VPX_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
40012: 
40013:     ep_realdir=`(cd "$ep_dir" && pwd)`
40014:     ai_p="$ep_realdir"/`basename "$GD_VPX_DIR/$PHP_LIBDIR"`
40015:   fi
40016: 
40017: 
40018:       if test "$ext_shared" = "yes"; then
40019:         GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
40020:         test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
40021:       else
40022: 
40023: 
40024: 
40025:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
40026: 
40027:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
40028:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
40029:     eval "LIBPATH$unique=set"
40030: 
40031:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
40032:     LDFLAGS="$LDFLAGS -L$ai_p"
40033:     PHP_RPATHS="$PHP_RPATHS $ai_p"
40034: 
40035:   fi
40036: 
40037: 
40038:       fi
40039: 
40040:   fi
40041: 
40042:     fi
40043:   else
40044: 
40045: 
40046:   if test -n "$GD_VPX_DIR/$PHP_LIBDIR"; then
40047: 
40048:   if test "$GD_VPX_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_VPX_DIR/$PHP_LIBDIR" != "/usr/lib"; then
40049: 
40050:   if test -z "$GD_VPX_DIR/$PHP_LIBDIR" || echo "$GD_VPX_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
40051:     ai_p=$GD_VPX_DIR/$PHP_LIBDIR
40052:   else
40053: 
40054:     ep_dir=`echo $GD_VPX_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
40055: 
40056:     ep_realdir=`(cd "$ep_dir" && pwd)`
40057:     ai_p="$ep_realdir"/`basename "$GD_VPX_DIR/$PHP_LIBDIR"`
40058:   fi
40059: 
40060: 
40061: 
40062: 
40063: 
40064:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
40065: 
40066:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
40067:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
40068:     eval "LIBPATH$unique=set"
40069: 
40070:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
40071:     LDFLAGS="$LDFLAGS -L$ai_p"
40072:     PHP_RPATHS="$PHP_RPATHS $ai_p"
40073: 
40074:   fi
40075: 
40076: 
40077: 
40078:   fi
40079: 
40080:   fi
40081: 
40082: 
40083:   case vpx in
40084:   c|c_r|pthread*) ;;
40085:   *)
40086:       LIBS="-lvpx $LIBS"
40087:    ;;
40088:   esac
40089: 
40090: 
40091: 
40092: 
40093:   fi
40094: 
40095: 
40096: 
40097: 
40098: else
40099: 
40100:     LDFLAGS=$save_old_LDFLAGS
40101:     ext_shared=$save_ext_shared
40102:     unset ac_cv_lib_vpx_vpx_codec_destroy
40103: 
40104:       as_fn_error $? "Problem with libvpx.(a|so). Please check config.log for more information." "$LINENO" 5
40105: 
40106: 
40107: fi
40108: 
40109:   else
40110:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: If configure fails try --with-vpx-dir=<DIR>" >&5
40111: $as_echo "If configure fails try --with-vpx-dir=<DIR>" >&6; }
40112:   fi
40113: 
40114: 
40115:   if test "$PHP_JPEG_DIR" != "no"; then
40116: 
40117:     for i in $PHP_JPEG_DIR /usr/local /usr; do
40118:       test -f $i/include/jpeglib.h && GD_JPEG_DIR=$i && break
40119:     done
40120: 
40121:     if test -z "$GD_JPEG_DIR"; then
40122:       as_fn_error $? "jpeglib.h not found." "$LINENO" 5
40123:     fi
40124: 
40125: 
40126:   save_old_LDFLAGS=$LDFLAGS
40127:   ac_stuff="
40128:       -L$GD_JPEG_DIR/$PHP_LIBDIR
40129:     "
40130: 
40131:   save_ext_shared=$ext_shared
40132:   ext_shared=yes
40133: 
40134:   for ac_i in $ac_stuff; do
40135:     case $ac_i in
40136:     -pthread)
40137:       if test "$ext_shared" = "yes"; then
40138:         LDFLAGS="$LDFLAGS -pthread"
40139:       else
40140: 
40141: 
40142:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
40143: 
40144:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
40145:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
40146:     eval "EXTRA_LDFLAGS$unique=set"
40147:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
40148:   fi
40149: 
40150:       fi
40151:     ;;
40152:     -l*)
40153:       ac_ii=`echo $ac_i|cut -c 3-`
40154: 
40155: 
40156:   case $ac_ii in
40157:   c|c_r|pthread*) ;;
40158:   *)
40159:     if test "$ext_shared" = "yes"; then
40160:         LDFLAGS="$LDFLAGS -l$ac_ii"
40161:     else
40162: 
40163: 
40164:   case $ac_ii in
40165:   c|c_r|pthread*) ;;
40166:   *)
40167:       LIBS="$LIBS -l$ac_ii"
40168:    ;;
40169:   esac
40170: 
40171: 
40172:     fi
40173:    ;;
40174:   esac
40175: 
40176: 
40177:     ;;
40178:     -L*)
40179:       ac_ii=`echo $ac_i|cut -c 3-`
40180: 
40181:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
40182: 
40183:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
40184:     ai_p=$ac_ii
40185:   else
40186: 
40187:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
40188: 
40189:     ep_realdir=`(cd "$ep_dir" && pwd)`
40190:     ai_p="$ep_realdir"/`basename "$ac_ii"`
40191:   fi
40192: 
40193: 
40194:       if test "$ext_shared" = "yes"; then
40195:         LDFLAGS="-L$ai_p $LDFLAGS"
40196:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
40197:       else
40198: 
40199: 
40200: 
40201:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
40202: 
40203:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
40204:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
40205:     eval "LIBPATH$unique=set"
40206: 
40207:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
40208:     LDFLAGS="$LDFLAGS -L$ai_p"
40209:     PHP_RPATHS="$PHP_RPATHS $ai_p"
40210: 
40211:   fi
40212: 
40213: 
40214:       fi
40215: 
40216:   fi
40217: 
40218:     ;;
40219:     esac
40220:   done
40221: 
40222:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
40223: $as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
40224: if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
40225:   $as_echo_n "(cached) " >&6
40226: else
40227:   ac_check_lib_save_LIBS=$LIBS
40228: LIBS="-ljpeg  $LIBS"
40229: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40230: /* end confdefs.h.  */
40231: 
40232: /* Override any GCC internal prototype to avoid an error.
40233:    Use char because int might match the return type of a GCC
40234:    builtin and then its argument prototype would still apply.  */
40235: #ifdef __cplusplus
40236: extern "C"
40237: #endif
40238: char jpeg_read_header ();
40239: int
40240: main ()
40241: {
40242: return jpeg_read_header ();
40243:   ;
40244:   return 0;
40245: }
40246: _ACEOF
40247: if ac_fn_c_try_link "$LINENO"; then :
40248:   ac_cv_lib_jpeg_jpeg_read_header=yes
40249: else
40250:   ac_cv_lib_jpeg_jpeg_read_header=no
40251: fi
40252: rm -f core conftest.err conftest.$ac_objext \
40253:     conftest$ac_exeext conftest.$ac_ext
40254: LIBS=$ac_check_lib_save_LIBS
40255: fi
40256: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
40257: $as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
40258: if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
40259: 
40260:     LDFLAGS=$save_old_LDFLAGS
40261:     ext_shared=$save_ext_shared
40262: 
40263: 
40264:   if test "$GD_JPEG_DIR/include" != "/usr/include"; then
40265: 
40266:   if test -z "$GD_JPEG_DIR/include" || echo "$GD_JPEG_DIR/include" | grep '^/' >/dev/null ; then
40267:     ai_p=$GD_JPEG_DIR/include
40268:   else
40269: 
40270:     ep_dir=`echo $GD_JPEG_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`
40271: 
40272:     ep_realdir=`(cd "$ep_dir" && pwd)`
40273:     ai_p="$ep_realdir"/`basename "$GD_JPEG_DIR/include"`
40274:   fi
40275: 
40276: 
40277: 
40278:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
40279: 
40280:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
40281:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
40282:     eval "INCLUDEPATH$unique=set"
40283: 
40284:       if test ""; then
40285:         INCLUDES="-I$ai_p $INCLUDES"
40286:       else
40287:         INCLUDES="$INCLUDES -I$ai_p"
40288:       fi
40289: 
40290:   fi
40291: 
40292:   fi
40293: 
40294: 
40295: 
40296:   if test "$ext_shared" = "yes"; then
40297:     GD_SHARED_LIBADD="-ljpeg $GD_SHARED_LIBADD"
40298:     if test -n "$GD_JPEG_DIR/$PHP_LIBDIR"; then
40299: 
40300:   if test "$GD_JPEG_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_JPEG_DIR/$PHP_LIBDIR" != "/usr/lib"; then
40301: 
40302:   if test -z "$GD_JPEG_DIR/$PHP_LIBDIR" || echo "$GD_JPEG_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
40303:     ai_p=$GD_JPEG_DIR/$PHP_LIBDIR
40304:   else
40305: 
40306:     ep_dir=`echo $GD_JPEG_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
40307: 
40308:     ep_realdir=`(cd "$ep_dir" && pwd)`
40309:     ai_p="$ep_realdir"/`basename "$GD_JPEG_DIR/$PHP_LIBDIR"`
40310:   fi
40311: 
40312: 
40313:       if test "$ext_shared" = "yes"; then
40314:         GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
40315:         test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
40316:       else
40317: 
40318: 
40319: 
40320:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
40321: 
40322:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
40323:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
40324:     eval "LIBPATH$unique=set"
40325: 
40326:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
40327:     LDFLAGS="$LDFLAGS -L$ai_p"
40328:     PHP_RPATHS="$PHP_RPATHS $ai_p"
40329: 
40330:   fi
40331: 
40332: 
40333:       fi
40334: 
40335:   fi
40336: 
40337:     fi
40338:   else
40339: 
40340: 
40341:   if test -n "$GD_JPEG_DIR/$PHP_LIBDIR"; then
40342: 
40343:   if test "$GD_JPEG_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_JPEG_DIR/$PHP_LIBDIR" != "/usr/lib"; then
40344: 
40345:   if test -z "$GD_JPEG_DIR/$PHP_LIBDIR" || echo "$GD_JPEG_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
40346:     ai_p=$GD_JPEG_DIR/$PHP_LIBDIR
40347:   else
40348: 
40349:     ep_dir=`echo $GD_JPEG_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
40350: 
40351:     ep_realdir=`(cd "$ep_dir" && pwd)`
40352:     ai_p="$ep_realdir"/`basename "$GD_JPEG_DIR/$PHP_LIBDIR"`
40353:   fi
40354: 
40355: 
40356: 
40357: 
40358: 
40359:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
40360: 
40361:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
40362:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
40363:     eval "LIBPATH$unique=set"
40364: 
40365:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
40366:     LDFLAGS="$LDFLAGS -L$ai_p"
40367:     PHP_RPATHS="$PHP_RPATHS $ai_p"
40368: 
40369:   fi
40370: 
40371: 
40372: 
40373:   fi
40374: 
40375:   fi
40376: 
40377: 
40378:   case jpeg in
40379:   c|c_r|pthread*) ;;
40380:   *)
40381:       LIBS="-ljpeg $LIBS"
40382:    ;;
40383:   esac
40384: 
40385: 
40386: 
40387: 
40388:   fi
40389: 
40390: 
40391: 
40392: 
40393: else
40394: 
40395:     LDFLAGS=$save_old_LDFLAGS
40396:     ext_shared=$save_ext_shared
40397:     unset ac_cv_lib_jpeg_jpeg_read_header
40398: 
40399:       as_fn_error $? "Problem with libjpeg.(a|so). Please check config.log for more information." "$LINENO" 5
40400: 
40401: 
40402: fi
40403: 
40404:   else
40405:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: If configure fails try --with-jpeg-dir=<DIR>" >&5
40406: $as_echo "If configure fails try --with-jpeg-dir=<DIR>" >&6; }
40407:   fi
40408: 
40409: 
40410:   if test "$PHP_PNG_DIR" != "no"; then
40411: 
40412:     for i in $PHP_PNG_DIR /usr/local /usr; do
40413:       test -f $i/include/png.h && GD_PNG_DIR=$i && break
40414:     done
40415: 
40416:     if test -z "$GD_PNG_DIR"; then
40417:       as_fn_error $? "png.h not found." "$LINENO" 5
40418:     fi
40419: 
40420:     if test "$PHP_ZLIB_DIR" = "no"; then
40421:       as_fn_error $? "PNG support requires ZLIB. Use --with-zlib-dir=<DIR>" "$LINENO" 5
40422:     fi
40423: 
40424: 
40425:   save_old_LDFLAGS=$LDFLAGS
40426:   ac_stuff="
40427:       -L$PHP_ZLIB_DIR/$PHP_LIBDIR -lz -L$GD_PNG_DIR/$PHP_LIBDIR
40428:     "
40429: 
40430:   save_ext_shared=$ext_shared
40431:   ext_shared=yes
40432: 
40433:   for ac_i in $ac_stuff; do
40434:     case $ac_i in
40435:     -pthread)
40436:       if test "$ext_shared" = "yes"; then
40437:         LDFLAGS="$LDFLAGS -pthread"
40438:       else
40439: 
40440: 
40441:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
40442: 
40443:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
40444:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
40445:     eval "EXTRA_LDFLAGS$unique=set"
40446:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
40447:   fi
40448: 
40449:       fi
40450:     ;;
40451:     -l*)
40452:       ac_ii=`echo $ac_i|cut -c 3-`
40453: 
40454: 
40455:   case $ac_ii in
40456:   c|c_r|pthread*) ;;
40457:   *)
40458:     if test "$ext_shared" = "yes"; then
40459:         LDFLAGS="$LDFLAGS -l$ac_ii"
40460:     else
40461: 
40462: 
40463:   case $ac_ii in
40464:   c|c_r|pthread*) ;;
40465:   *)
40466:       LIBS="$LIBS -l$ac_ii"
40467:    ;;
40468:   esac
40469: 
40470: 
40471:     fi
40472:    ;;
40473:   esac
40474: 
40475: 
40476:     ;;
40477:     -L*)
40478:       ac_ii=`echo $ac_i|cut -c 3-`
40479: 
40480:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
40481: 
40482:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
40483:     ai_p=$ac_ii
40484:   else
40485: 
40486:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
40487: 
40488:     ep_realdir=`(cd "$ep_dir" && pwd)`
40489:     ai_p="$ep_realdir"/`basename "$ac_ii"`
40490:   fi
40491: 
40492: 
40493:       if test "$ext_shared" = "yes"; then
40494:         LDFLAGS="-L$ai_p $LDFLAGS"
40495:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
40496:       else
40497: 
40498: 
40499: 
40500:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
40501: 
40502:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
40503:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
40504:     eval "LIBPATH$unique=set"
40505: 
40506:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
40507:     LDFLAGS="$LDFLAGS -L$ai_p"
40508:     PHP_RPATHS="$PHP_RPATHS $ai_p"
40509: 
40510:   fi
40511: 
40512: 
40513:       fi
40514: 
40515:   fi
40516: 
40517:     ;;
40518:     esac
40519:   done
40520: 
40521:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_write_image in -lpng" >&5
40522: $as_echo_n "checking for png_write_image in -lpng... " >&6; }
40523: if ${ac_cv_lib_png_png_write_image+:} false; then :
40524:   $as_echo_n "(cached) " >&6
40525: else
40526:   ac_check_lib_save_LIBS=$LIBS
40527: LIBS="-lpng  $LIBS"
40528: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40529: /* end confdefs.h.  */
40530: 
40531: /* Override any GCC internal prototype to avoid an error.
40532:    Use char because int might match the return type of a GCC
40533:    builtin and then its argument prototype would still apply.  */
40534: #ifdef __cplusplus
40535: extern "C"
40536: #endif
40537: char png_write_image ();
40538: int
40539: main ()
40540: {
40541: return png_write_image ();
40542:   ;
40543:   return 0;
40544: }
40545: _ACEOF
40546: if ac_fn_c_try_link "$LINENO"; then :
40547:   ac_cv_lib_png_png_write_image=yes
40548: else
40549:   ac_cv_lib_png_png_write_image=no
40550: fi
40551: rm -f core conftest.err conftest.$ac_objext \
40552:     conftest$ac_exeext conftest.$ac_ext
40553: LIBS=$ac_check_lib_save_LIBS
40554: fi
40555: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_write_image" >&5
40556: $as_echo "$ac_cv_lib_png_png_write_image" >&6; }
40557: if test "x$ac_cv_lib_png_png_write_image" = xyes; then :
40558: 
40559:     LDFLAGS=$save_old_LDFLAGS
40560:     ext_shared=$save_ext_shared
40561: 
40562: 
40563:   if test "$GD_PNG_DIR/include" != "/usr/include"; then
40564: 
40565:   if test -z "$GD_PNG_DIR/include" || echo "$GD_PNG_DIR/include" | grep '^/' >/dev/null ; then
40566:     ai_p=$GD_PNG_DIR/include
40567:   else
40568: 
40569:     ep_dir=`echo $GD_PNG_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`
40570: 
40571:     ep_realdir=`(cd "$ep_dir" && pwd)`
40572:     ai_p="$ep_realdir"/`basename "$GD_PNG_DIR/include"`
40573:   fi
40574: 
40575: 
40576: 
40577:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
40578: 
40579:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
40580:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
40581:     eval "INCLUDEPATH$unique=set"
40582: 
40583:       if test ""; then
40584:         INCLUDES="-I$ai_p $INCLUDES"
40585:       else
40586:         INCLUDES="$INCLUDES -I$ai_p"
40587:       fi
40588: 
40589:   fi
40590: 
40591:   fi
40592: 
40593: 
40594: 
40595:   if test "$ext_shared" = "yes"; then
40596:     GD_SHARED_LIBADD="-lz $GD_SHARED_LIBADD"
40597:     if test -n "$PHP_ZLIB_DIR/$PHP_LIBDIR"; then
40598: 
40599:   if test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/lib"; then
40600: 
40601:   if test -z "$PHP_ZLIB_DIR/$PHP_LIBDIR" || echo "$PHP_ZLIB_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
40602:     ai_p=$PHP_ZLIB_DIR/$PHP_LIBDIR
40603:   else
40604: 
40605:     ep_dir=`echo $PHP_ZLIB_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
40606: 
40607:     ep_realdir=`(cd "$ep_dir" && pwd)`
40608:     ai_p="$ep_realdir"/`basename "$PHP_ZLIB_DIR/$PHP_LIBDIR"`
40609:   fi
40610: 
40611: 
40612:       if test "$ext_shared" = "yes"; then
40613:         GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
40614:         test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
40615:       else
40616: 
40617: 
40618: 
40619:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
40620: 
40621:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
40622:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
40623:     eval "LIBPATH$unique=set"
40624: 
40625:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
40626:     LDFLAGS="$LDFLAGS -L$ai_p"
40627:     PHP_RPATHS="$PHP_RPATHS $ai_p"
40628: 
40629:   fi
40630: 
40631: 
40632:       fi
40633: 
40634:   fi
40635: 
40636:     fi
40637:   else
40638: 
40639: 
40640:   if test -n "$PHP_ZLIB_DIR/$PHP_LIBDIR"; then
40641: 
40642:   if test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/lib"; then
40643: 
40644:   if test -z "$PHP_ZLIB_DIR/$PHP_LIBDIR" || echo "$PHP_ZLIB_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
40645:     ai_p=$PHP_ZLIB_DIR/$PHP_LIBDIR
40646:   else
40647: 
40648:     ep_dir=`echo $PHP_ZLIB_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
40649: 
40650:     ep_realdir=`(cd "$ep_dir" && pwd)`
40651:     ai_p="$ep_realdir"/`basename "$PHP_ZLIB_DIR/$PHP_LIBDIR"`
40652:   fi
40653: 
40654: 
40655: 
40656: 
40657: 
40658:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
40659: 
40660:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
40661:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
40662:     eval "LIBPATH$unique=set"
40663: 
40664:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
40665:     LDFLAGS="$LDFLAGS -L$ai_p"
40666:     PHP_RPATHS="$PHP_RPATHS $ai_p"
40667: 
40668:   fi
40669: 
40670: 
40671: 
40672:   fi
40673: 
40674:   fi
40675: 
40676: 
40677:   case z in
40678:   c|c_r|pthread*) ;;
40679:   *)
40680:       LIBS="-lz $LIBS"
40681:    ;;
40682:   esac
40683: 
40684: 
40685: 
40686: 
40687:   fi
40688: 
40689: 
40690: 
40691: 
40692:   if test "$ext_shared" = "yes"; then
40693:     GD_SHARED_LIBADD="-lpng $GD_SHARED_LIBADD"
40694:     if test -n "$GD_PNG_DIR/$PHP_LIBDIR"; then
40695: 
40696:   if test "$GD_PNG_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_PNG_DIR/$PHP_LIBDIR" != "/usr/lib"; then
40697: 
40698:   if test -z "$GD_PNG_DIR/$PHP_LIBDIR" || echo "$GD_PNG_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
40699:     ai_p=$GD_PNG_DIR/$PHP_LIBDIR
40700:   else
40701: 
40702:     ep_dir=`echo $GD_PNG_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
40703: 
40704:     ep_realdir=`(cd "$ep_dir" && pwd)`
40705:     ai_p="$ep_realdir"/`basename "$GD_PNG_DIR/$PHP_LIBDIR"`
40706:   fi
40707: 
40708: 
40709:       if test "$ext_shared" = "yes"; then
40710:         GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
40711:         test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
40712:       else
40713: 
40714: 
40715: 
40716:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
40717: 
40718:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
40719:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
40720:     eval "LIBPATH$unique=set"
40721: 
40722:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
40723:     LDFLAGS="$LDFLAGS -L$ai_p"
40724:     PHP_RPATHS="$PHP_RPATHS $ai_p"
40725: 
40726:   fi
40727: 
40728: 
40729:       fi
40730: 
40731:   fi
40732: 
40733:     fi
40734:   else
40735: 
40736: 
40737:   if test -n "$GD_PNG_DIR/$PHP_LIBDIR"; then
40738: 
40739:   if test "$GD_PNG_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_PNG_DIR/$PHP_LIBDIR" != "/usr/lib"; then
40740: 
40741:   if test -z "$GD_PNG_DIR/$PHP_LIBDIR" || echo "$GD_PNG_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
40742:     ai_p=$GD_PNG_DIR/$PHP_LIBDIR
40743:   else
40744: 
40745:     ep_dir=`echo $GD_PNG_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
40746: 
40747:     ep_realdir=`(cd "$ep_dir" && pwd)`
40748:     ai_p="$ep_realdir"/`basename "$GD_PNG_DIR/$PHP_LIBDIR"`
40749:   fi
40750: 
40751: 
40752: 
40753: 
40754: 
40755:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
40756: 
40757:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
40758:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
40759:     eval "LIBPATH$unique=set"
40760: 
40761:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
40762:     LDFLAGS="$LDFLAGS -L$ai_p"
40763:     PHP_RPATHS="$PHP_RPATHS $ai_p"
40764: 
40765:   fi
40766: 
40767: 
40768: 
40769:   fi
40770: 
40771:   fi
40772: 
40773: 
40774:   case png in
40775:   c|c_r|pthread*) ;;
40776:   *)
40777:       LIBS="-lpng $LIBS"
40778:    ;;
40779:   esac
40780: 
40781: 
40782: 
40783: 
40784:   fi
40785: 
40786: 
40787: 
40788: 
40789: else
40790: 
40791:     LDFLAGS=$save_old_LDFLAGS
40792:     ext_shared=$save_ext_shared
40793:     unset ac_cv_lib_png_png_write_image
40794: 
40795:       as_fn_error $? "Problem with libpng.(a|so) or libz.(a|so). Please check config.log for more information." "$LINENO" 5
40796: 
40797: 
40798: fi
40799: 
40800: 
40801:   else
40802:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: If configure fails try --with-png-dir=<DIR> and --with-zlib-dir=<DIR>" >&5
40803: $as_echo "If configure fails try --with-png-dir=<DIR> and --with-zlib-dir=<DIR>" >&6; }
40804:   fi
40805: 
40806: 
40807:   if test "$PHP_XPM_DIR" != "no"; then
40808: 
40809:     for i in $PHP_XPM_DIR /usr/local /usr/X11R6 /usr; do
40810:       test -f $i/$PHP_LIBDIR/libXpm.$SHLIB_SUFFIX_NAME || test -f $i/$PHP_LIBDIR/libXpm.a && GD_XPM_DIR=$i && break
40811:     done
40812: 
40813:     if test -z "$GD_XPM_DIR"; then
40814:       as_fn_error $? "libXpm.(a|so) not found." "$LINENO" 5
40815:     fi
40816: 
40817:     for i in include include/X11; do
40818:       test -f $GD_XPM_DIR/$i/xpm.h && GD_XPM_INC=$GD_XPM_DIR/include
40819:     done
40820: 
40821:     if test -z "$GD_XPM_INC"; then
40822:       as_fn_error $? "xpm.h not found." "$LINENO" 5
40823:     fi
40824: 
40825: 
40826:   save_old_LDFLAGS=$LDFLAGS
40827:   ac_stuff="
40828:       -L$GD_XPM_DIR/$PHP_LIBDIR -lX11
40829:     "
40830: 
40831:   save_ext_shared=$ext_shared
40832:   ext_shared=yes
40833: 
40834:   for ac_i in $ac_stuff; do
40835:     case $ac_i in
40836:     -pthread)
40837:       if test "$ext_shared" = "yes"; then
40838:         LDFLAGS="$LDFLAGS -pthread"
40839:       else
40840: 
40841: 
40842:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
40843: 
40844:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
40845:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
40846:     eval "EXTRA_LDFLAGS$unique=set"
40847:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
40848:   fi
40849: 
40850:       fi
40851:     ;;
40852:     -l*)
40853:       ac_ii=`echo $ac_i|cut -c 3-`
40854: 
40855: 
40856:   case $ac_ii in
40857:   c|c_r|pthread*) ;;
40858:   *)
40859:     if test "$ext_shared" = "yes"; then
40860:         LDFLAGS="$LDFLAGS -l$ac_ii"
40861:     else
40862: 
40863: 
40864:   case $ac_ii in
40865:   c|c_r|pthread*) ;;
40866:   *)
40867:       LIBS="$LIBS -l$ac_ii"
40868:    ;;
40869:   esac
40870: 
40871: 
40872:     fi
40873:    ;;
40874:   esac
40875: 
40876: 
40877:     ;;
40878:     -L*)
40879:       ac_ii=`echo $ac_i|cut -c 3-`
40880: 
40881:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
40882: 
40883:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
40884:     ai_p=$ac_ii
40885:   else
40886: 
40887:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
40888: 
40889:     ep_realdir=`(cd "$ep_dir" && pwd)`
40890:     ai_p="$ep_realdir"/`basename "$ac_ii"`
40891:   fi
40892: 
40893: 
40894:       if test "$ext_shared" = "yes"; then
40895:         LDFLAGS="-L$ai_p $LDFLAGS"
40896:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
40897:       else
40898: 
40899: 
40900: 
40901:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
40902: 
40903:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
40904:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
40905:     eval "LIBPATH$unique=set"
40906: 
40907:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
40908:     LDFLAGS="$LDFLAGS -L$ai_p"
40909:     PHP_RPATHS="$PHP_RPATHS $ai_p"
40910: 
40911:   fi
40912: 
40913: 
40914:       fi
40915: 
40916:   fi
40917: 
40918:     ;;
40919:     esac
40920:   done
40921: 
40922:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmFreeXpmImage in -lXpm" >&5
40923: $as_echo_n "checking for XpmFreeXpmImage in -lXpm... " >&6; }
40924: if ${ac_cv_lib_Xpm_XpmFreeXpmImage+:} false; then :
40925:   $as_echo_n "(cached) " >&6
40926: else
40927:   ac_check_lib_save_LIBS=$LIBS
40928: LIBS="-lXpm  $LIBS"
40929: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40930: /* end confdefs.h.  */
40931: 
40932: /* Override any GCC internal prototype to avoid an error.
40933:    Use char because int might match the return type of a GCC
40934:    builtin and then its argument prototype would still apply.  */
40935: #ifdef __cplusplus
40936: extern "C"
40937: #endif
40938: char XpmFreeXpmImage ();
40939: int
40940: main ()
40941: {
40942: return XpmFreeXpmImage ();
40943:   ;
40944:   return 0;
40945: }
40946: _ACEOF
40947: if ac_fn_c_try_link "$LINENO"; then :
40948:   ac_cv_lib_Xpm_XpmFreeXpmImage=yes
40949: else
40950:   ac_cv_lib_Xpm_XpmFreeXpmImage=no
40951: fi
40952: rm -f core conftest.err conftest.$ac_objext \
40953:     conftest$ac_exeext conftest.$ac_ext
40954: LIBS=$ac_check_lib_save_LIBS
40955: fi
40956: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmFreeXpmImage" >&5
40957: $as_echo "$ac_cv_lib_Xpm_XpmFreeXpmImage" >&6; }
40958: if test "x$ac_cv_lib_Xpm_XpmFreeXpmImage" = xyes; then :
40959: 
40960:     LDFLAGS=$save_old_LDFLAGS
40961:     ext_shared=$save_ext_shared
40962: 
40963: 
40964:   if test "$GD_XPM_INC" != "/usr/include"; then
40965: 
40966:   if test -z "$GD_XPM_INC" || echo "$GD_XPM_INC" | grep '^/' >/dev/null ; then
40967:     ai_p=$GD_XPM_INC
40968:   else
40969: 
40970:     ep_dir=`echo $GD_XPM_INC|$SED 's%/*[^/][^/]*/*$%%'`
40971: 
40972:     ep_realdir=`(cd "$ep_dir" && pwd)`
40973:     ai_p="$ep_realdir"/`basename "$GD_XPM_INC"`
40974:   fi
40975: 
40976: 
40977: 
40978:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
40979: 
40980:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
40981:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
40982:     eval "INCLUDEPATH$unique=set"
40983: 
40984:       if test ""; then
40985:         INCLUDES="-I$ai_p $INCLUDES"
40986:       else
40987:         INCLUDES="$INCLUDES -I$ai_p"
40988:       fi
40989: 
40990:   fi
40991: 
40992:   fi
40993: 
40994: 
40995: 
40996:   if test "$ext_shared" = "yes"; then
40997:     GD_SHARED_LIBADD="-lXpm $GD_SHARED_LIBADD"
40998:     if test -n "$GD_XPM_DIR/$PHP_LIBDIR"; then
40999: 
41000:   if test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/lib"; then
41001: 
41002:   if test -z "$GD_XPM_DIR/$PHP_LIBDIR" || echo "$GD_XPM_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
41003:     ai_p=$GD_XPM_DIR/$PHP_LIBDIR
41004:   else
41005: 
41006:     ep_dir=`echo $GD_XPM_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
41007: 
41008:     ep_realdir=`(cd "$ep_dir" && pwd)`
41009:     ai_p="$ep_realdir"/`basename "$GD_XPM_DIR/$PHP_LIBDIR"`
41010:   fi
41011: 
41012: 
41013:       if test "$ext_shared" = "yes"; then
41014:         GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
41015:         test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
41016:       else
41017: 
41018: 
41019: 
41020:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
41021: 
41022:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
41023:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
41024:     eval "LIBPATH$unique=set"
41025: 
41026:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
41027:     LDFLAGS="$LDFLAGS -L$ai_p"
41028:     PHP_RPATHS="$PHP_RPATHS $ai_p"
41029: 
41030:   fi
41031: 
41032: 
41033:       fi
41034: 
41035:   fi
41036: 
41037:     fi
41038:   else
41039: 
41040: 
41041:   if test -n "$GD_XPM_DIR/$PHP_LIBDIR"; then
41042: 
41043:   if test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/lib"; then
41044: 
41045:   if test -z "$GD_XPM_DIR/$PHP_LIBDIR" || echo "$GD_XPM_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
41046:     ai_p=$GD_XPM_DIR/$PHP_LIBDIR
41047:   else
41048: 
41049:     ep_dir=`echo $GD_XPM_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
41050: 
41051:     ep_realdir=`(cd "$ep_dir" && pwd)`
41052:     ai_p="$ep_realdir"/`basename "$GD_XPM_DIR/$PHP_LIBDIR"`
41053:   fi
41054: 
41055: 
41056: 
41057: 
41058: 
41059:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
41060: 
41061:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
41062:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
41063:     eval "LIBPATH$unique=set"
41064: 
41065:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
41066:     LDFLAGS="$LDFLAGS -L$ai_p"
41067:     PHP_RPATHS="$PHP_RPATHS $ai_p"
41068: 
41069:   fi
41070: 
41071: 
41072: 
41073:   fi
41074: 
41075:   fi
41076: 
41077: 
41078:   case Xpm in
41079:   c|c_r|pthread*) ;;
41080:   *)
41081:       LIBS="-lXpm $LIBS"
41082:    ;;
41083:   esac
41084: 
41085: 
41086: 
41087: 
41088:   fi
41089: 
41090: 
41091: 
41092: 
41093:   if test "$ext_shared" = "yes"; then
41094:     GD_SHARED_LIBADD="-lX11 $GD_SHARED_LIBADD"
41095:     if test -n "$GD_XPM_DIR/$PHP_LIBDIR"; then
41096: 
41097:   if test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/lib"; then
41098: 
41099:   if test -z "$GD_XPM_DIR/$PHP_LIBDIR" || echo "$GD_XPM_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
41100:     ai_p=$GD_XPM_DIR/$PHP_LIBDIR
41101:   else
41102: 
41103:     ep_dir=`echo $GD_XPM_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
41104: 
41105:     ep_realdir=`(cd "$ep_dir" && pwd)`
41106:     ai_p="$ep_realdir"/`basename "$GD_XPM_DIR/$PHP_LIBDIR"`
41107:   fi
41108: 
41109: 
41110:       if test "$ext_shared" = "yes"; then
41111:         GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
41112:         test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
41113:       else
41114: 
41115: 
41116: 
41117:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
41118: 
41119:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
41120:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
41121:     eval "LIBPATH$unique=set"
41122: 
41123:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
41124:     LDFLAGS="$LDFLAGS -L$ai_p"
41125:     PHP_RPATHS="$PHP_RPATHS $ai_p"
41126: 
41127:   fi
41128: 
41129: 
41130:       fi
41131: 
41132:   fi
41133: 
41134:     fi
41135:   else
41136: 
41137: 
41138:   if test -n "$GD_XPM_DIR/$PHP_LIBDIR"; then
41139: 
41140:   if test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/lib"; then
41141: 
41142:   if test -z "$GD_XPM_DIR/$PHP_LIBDIR" || echo "$GD_XPM_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
41143:     ai_p=$GD_XPM_DIR/$PHP_LIBDIR
41144:   else
41145: 
41146:     ep_dir=`echo $GD_XPM_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
41147: 
41148:     ep_realdir=`(cd "$ep_dir" && pwd)`
41149:     ai_p="$ep_realdir"/`basename "$GD_XPM_DIR/$PHP_LIBDIR"`
41150:   fi
41151: 
41152: 
41153: 
41154: 
41155: 
41156:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
41157: 
41158:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
41159:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
41160:     eval "LIBPATH$unique=set"
41161: 
41162:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
41163:     LDFLAGS="$LDFLAGS -L$ai_p"
41164:     PHP_RPATHS="$PHP_RPATHS $ai_p"
41165: 
41166:   fi
41167: 
41168: 
41169: 
41170:   fi
41171: 
41172:   fi
41173: 
41174: 
41175:   case X11 in
41176:   c|c_r|pthread*) ;;
41177:   *)
41178:       LIBS="-lX11 $LIBS"
41179:    ;;
41180:   esac
41181: 
41182: 
41183: 
41184: 
41185:   fi
41186: 
41187: 
41188: 
41189: 
41190: else
41191: 
41192:     LDFLAGS=$save_old_LDFLAGS
41193:     ext_shared=$save_ext_shared
41194:     unset ac_cv_lib_Xpm_XpmFreeXpmImage
41195: 
41196:       as_fn_error $? "Problem with libXpm.(a|so) or libX11.(a|so). Please check config.log for more information." "$LINENO" 5
41197: 
41198: 
41199: fi
41200: 
41201:   else
41202:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: If configure fails try --with-xpm-dir=<DIR>" >&5
41203: $as_echo "If configure fails try --with-xpm-dir=<DIR>" >&6; }
41204:   fi
41205: 
41206: 
41207:   if test "$PHP_FREETYPE_DIR" != "no"; then
41208: 
41209:     for i in $PHP_FREETYPE_DIR /usr/local /usr; do
41210:       if test -f "$i/bin/freetype-config"; then
41211:         FREETYPE2_DIR=$i
41212:         FREETYPE2_CONFIG="$i/bin/freetype-config"
41213:         break
41214:       fi
41215:     done
41216: 
41217:     if test -z "$FREETYPE2_DIR"; then
41218:       as_fn_error $? "freetype-config not found." "$LINENO" 5
41219:     fi
41220: 
41221:     FREETYPE2_CFLAGS=`$FREETYPE2_CONFIG --cflags`
41222:     FREETYPE2_LIBS=`$FREETYPE2_CONFIG --libs`
41223: 
41224: 
41225:   for ac_i in $FREETYPE2_CFLAGS; do
41226:     case $ac_i in
41227:     -I*)
41228:       ac_ii=`echo $ac_i|cut -c 3-`
41229: 
41230:   if test "$ac_ii" != "/usr/include"; then
41231: 
41232:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
41233:     ai_p=$ac_ii
41234:   else
41235: 
41236:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
41237: 
41238:     ep_realdir=`(cd "$ep_dir" && pwd)`
41239:     ai_p="$ep_realdir"/`basename "$ac_ii"`
41240:   fi
41241: 
41242: 
41243: 
41244:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
41245: 
41246:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
41247:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
41248:     eval "INCLUDEPATH$unique=set"
41249: 
41250:       if test ""; then
41251:         INCLUDES="-I$ai_p $INCLUDES"
41252:       else
41253:         INCLUDES="$INCLUDES -I$ai_p"
41254:       fi
41255: 
41256:   fi
41257: 
41258:   fi
41259: 
41260:     ;;
41261:     esac
41262:   done
41263: 
41264: 
41265:   for ac_i in $FREETYPE2_LIBS; do
41266:     case $ac_i in
41267:     -pthread)
41268:       if test "$ext_shared" = "yes"; then
41269:         GD_SHARED_LIBADD="$GD_SHARED_LIBADD -pthread"
41270:       else
41271: 
41272: 
41273:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
41274: 
41275:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
41276:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
41277:     eval "EXTRA_LDFLAGS$unique=set"
41278:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
41279:   fi
41280: 
41281:       fi
41282:     ;;
41283:     -l*)
41284:       ac_ii=`echo $ac_i|cut -c 3-`
41285: 
41286: 
41287:   case $ac_ii in
41288:   c|c_r|pthread*) ;;
41289:   *)
41290:     if test "$ext_shared" = "yes"; then
41291:         GD_SHARED_LIBADD="$GD_SHARED_LIBADD -l$ac_ii"
41292:     else
41293: 
41294: 
41295:   case $ac_ii in
41296:   c|c_r|pthread*) ;;
41297:   *)
41298:       LIBS="$LIBS -l$ac_ii"
41299:    ;;
41300:   esac
41301: 
41302: 
41303:     fi
41304:    ;;
41305:   esac
41306: 
41307: 
41308:     ;;
41309:     -L*)
41310:       ac_ii=`echo $ac_i|cut -c 3-`
41311: 
41312:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
41313: 
41314:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
41315:     ai_p=$ac_ii
41316:   else
41317: 
41318:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
41319: 
41320:     ep_realdir=`(cd "$ep_dir" && pwd)`
41321:     ai_p="$ep_realdir"/`basename "$ac_ii"`
41322:   fi
41323: 
41324: 
41325:       if test "$ext_shared" = "yes"; then
41326:         GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
41327:         test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
41328:       else
41329: 
41330: 
41331: 
41332:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
41333: 
41334:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
41335:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
41336:     eval "LIBPATH$unique=set"
41337: 
41338:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
41339:     LDFLAGS="$LDFLAGS -L$ai_p"
41340:     PHP_RPATHS="$PHP_RPATHS $ai_p"
41341: 
41342:   fi
41343: 
41344: 
41345:       fi
41346: 
41347:   fi
41348: 
41349:     ;;
41350:     esac
41351:   done
41352: 
41353: 
41354: $as_echo "#define USE_GD_IMGSTRTTF 1" >>confdefs.h
41355: 
41356: 
41357: $as_echo "#define HAVE_LIBFREETYPE 1" >>confdefs.h
41358: 
41359: 
41360: $as_echo "#define ENABLE_GD_TTF 1" >>confdefs.h
41361: 
41362:   else
41363:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: If configure fails try --with-freetype-dir=<DIR>" >&5
41364: $as_echo "If configure fails try --with-freetype-dir=<DIR>" >&6; }
41365:   fi
41366: 
41367: 
41368:   if test "$PHP_T1LIB" != "no"; then
41369: 
41370:     for i in $PHP_T1LIB /usr/local /usr; do
41371:       test -f "$i/include/t1lib.h" && GD_T1_DIR=$i && break
41372:     done
41373: 
41374:     if test -z "$GD_T1_DIR"; then
41375:       as_fn_error $? "Your t1lib distribution is not installed correctly. Please reinstall it." "$LINENO" 5
41376:     fi
41377: 
41378: 
41379:   save_old_LDFLAGS=$LDFLAGS
41380:   ac_stuff="
41381:       -L$GD_T1_DIR/$PHP_LIBDIR
41382:     "
41383: 
41384:   save_ext_shared=$ext_shared
41385:   ext_shared=yes
41386: 
41387:   for ac_i in $ac_stuff; do
41388:     case $ac_i in
41389:     -pthread)
41390:       if test "$ext_shared" = "yes"; then
41391:         LDFLAGS="$LDFLAGS -pthread"
41392:       else
41393: 
41394: 
41395:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
41396: 
41397:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
41398:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
41399:     eval "EXTRA_LDFLAGS$unique=set"
41400:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
41401:   fi
41402: 
41403:       fi
41404:     ;;
41405:     -l*)
41406:       ac_ii=`echo $ac_i|cut -c 3-`
41407: 
41408: 
41409:   case $ac_ii in
41410:   c|c_r|pthread*) ;;
41411:   *)
41412:     if test "$ext_shared" = "yes"; then
41413:         LDFLAGS="$LDFLAGS -l$ac_ii"
41414:     else
41415: 
41416: 
41417:   case $ac_ii in
41418:   c|c_r|pthread*) ;;
41419:   *)
41420:       LIBS="$LIBS -l$ac_ii"
41421:    ;;
41422:   esac
41423: 
41424: 
41425:     fi
41426:    ;;
41427:   esac
41428: 
41429: 
41430:     ;;
41431:     -L*)
41432:       ac_ii=`echo $ac_i|cut -c 3-`
41433: 
41434:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
41435: 
41436:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
41437:     ai_p=$ac_ii
41438:   else
41439: 
41440:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
41441: 
41442:     ep_realdir=`(cd "$ep_dir" && pwd)`
41443:     ai_p="$ep_realdir"/`basename "$ac_ii"`
41444:   fi
41445: 
41446: 
41447:       if test "$ext_shared" = "yes"; then
41448:         LDFLAGS="-L$ai_p $LDFLAGS"
41449:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
41450:       else
41451: 
41452: 
41453: 
41454:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
41455: 
41456:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
41457:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
41458:     eval "LIBPATH$unique=set"
41459: 
41460:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
41461:     LDFLAGS="$LDFLAGS -L$ai_p"
41462:     PHP_RPATHS="$PHP_RPATHS $ai_p"
41463: 
41464:   fi
41465: 
41466: 
41467:       fi
41468: 
41469:   fi
41470: 
41471:     ;;
41472:     esac
41473:   done
41474: 
41475:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for T1_StrError in -lt1" >&5
41476: $as_echo_n "checking for T1_StrError in -lt1... " >&6; }
41477: if ${ac_cv_lib_t1_T1_StrError+:} false; then :
41478:   $as_echo_n "(cached) " >&6
41479: else
41480:   ac_check_lib_save_LIBS=$LIBS
41481: LIBS="-lt1  $LIBS"
41482: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41483: /* end confdefs.h.  */
41484: 
41485: /* Override any GCC internal prototype to avoid an error.
41486:    Use char because int might match the return type of a GCC
41487:    builtin and then its argument prototype would still apply.  */
41488: #ifdef __cplusplus
41489: extern "C"
41490: #endif
41491: char T1_StrError ();
41492: int
41493: main ()
41494: {
41495: return T1_StrError ();
41496:   ;
41497:   return 0;
41498: }
41499: _ACEOF
41500: if ac_fn_c_try_link "$LINENO"; then :
41501:   ac_cv_lib_t1_T1_StrError=yes
41502: else
41503:   ac_cv_lib_t1_T1_StrError=no
41504: fi
41505: rm -f core conftest.err conftest.$ac_objext \
41506:     conftest$ac_exeext conftest.$ac_ext
41507: LIBS=$ac_check_lib_save_LIBS
41508: fi
41509: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_t1_T1_StrError" >&5
41510: $as_echo "$ac_cv_lib_t1_T1_StrError" >&6; }
41511: if test "x$ac_cv_lib_t1_T1_StrError" = xyes; then :
41512: 
41513:     LDFLAGS=$save_old_LDFLAGS
41514:     ext_shared=$save_ext_shared
41515: 
41516: 
41517: $as_echo "#define HAVE_LIBT1 1" >>confdefs.h
41518: 
41519: 
41520:   if test "$GD_T1_DIR/include" != "/usr/include"; then
41521: 
41522:   if test -z "$GD_T1_DIR/include" || echo "$GD_T1_DIR/include" | grep '^/' >/dev/null ; then
41523:     ai_p=$GD_T1_DIR/include
41524:   else
41525: 
41526:     ep_dir=`echo $GD_T1_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`
41527: 
41528:     ep_realdir=`(cd "$ep_dir" && pwd)`
41529:     ai_p="$ep_realdir"/`basename "$GD_T1_DIR/include"`
41530:   fi
41531: 
41532: 
41533: 
41534:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
41535: 
41536:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
41537:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
41538:     eval "INCLUDEPATH$unique=set"
41539: 
41540:       if test ""; then
41541:         INCLUDES="-I$ai_p $INCLUDES"
41542:       else
41543:         INCLUDES="$INCLUDES -I$ai_p"
41544:       fi
41545: 
41546:   fi
41547: 
41548:   fi
41549: 
41550: 
41551: 
41552:   if test "$ext_shared" = "yes"; then
41553:     GD_SHARED_LIBADD="-lt1 $GD_SHARED_LIBADD"
41554:     if test -n "$GD_T1_DIR/$PHP_LIBDIR"; then
41555: 
41556:   if test "$GD_T1_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_T1_DIR/$PHP_LIBDIR" != "/usr/lib"; then
41557: 
41558:   if test -z "$GD_T1_DIR/$PHP_LIBDIR" || echo "$GD_T1_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
41559:     ai_p=$GD_T1_DIR/$PHP_LIBDIR
41560:   else
41561: 
41562:     ep_dir=`echo $GD_T1_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
41563: 
41564:     ep_realdir=`(cd "$ep_dir" && pwd)`
41565:     ai_p="$ep_realdir"/`basename "$GD_T1_DIR/$PHP_LIBDIR"`
41566:   fi
41567: 
41568: 
41569:       if test "$ext_shared" = "yes"; then
41570:         GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
41571:         test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
41572:       else
41573: 
41574: 
41575: 
41576:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
41577: 
41578:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
41579:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
41580:     eval "LIBPATH$unique=set"
41581: 
41582:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
41583:     LDFLAGS="$LDFLAGS -L$ai_p"
41584:     PHP_RPATHS="$PHP_RPATHS $ai_p"
41585: 
41586:   fi
41587: 
41588: 
41589:       fi
41590: 
41591:   fi
41592: 
41593:     fi
41594:   else
41595: 
41596: 
41597:   if test -n "$GD_T1_DIR/$PHP_LIBDIR"; then
41598: 
41599:   if test "$GD_T1_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_T1_DIR/$PHP_LIBDIR" != "/usr/lib"; then
41600: 
41601:   if test -z "$GD_T1_DIR/$PHP_LIBDIR" || echo "$GD_T1_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
41602:     ai_p=$GD_T1_DIR/$PHP_LIBDIR
41603:   else
41604: 
41605:     ep_dir=`echo $GD_T1_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
41606: 
41607:     ep_realdir=`(cd "$ep_dir" && pwd)`
41608:     ai_p="$ep_realdir"/`basename "$GD_T1_DIR/$PHP_LIBDIR"`
41609:   fi
41610: 
41611: 
41612: 
41613: 
41614: 
41615:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
41616: 
41617:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
41618:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
41619:     eval "LIBPATH$unique=set"
41620: 
41621:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
41622:     LDFLAGS="$LDFLAGS -L$ai_p"
41623:     PHP_RPATHS="$PHP_RPATHS $ai_p"
41624: 
41625:   fi
41626: 
41627: 
41628: 
41629:   fi
41630: 
41631:   fi
41632: 
41633: 
41634:   case t1 in
41635:   c|c_r|pthread*) ;;
41636:   *)
41637:       LIBS="-lt1 $LIBS"
41638:    ;;
41639:   esac
41640: 
41641: 
41642: 
41643: 
41644:   fi
41645: 
41646: 
41647: 
41648: 
41649: else
41650: 
41651:     LDFLAGS=$save_old_LDFLAGS
41652:     ext_shared=$save_ext_shared
41653:     unset ac_cv_lib_t1_T1_StrError
41654: 
41655:       as_fn_error $? "Problem with libt1.(a|so). Please check config.log for more information." "$LINENO" 5
41656: 
41657: 
41658: fi
41659: 
41660:   fi
41661: 
41662: 
41663:   for i in include/gd1.3 include/gd include gd1.3 gd ""; do
41664:     test -f "$PHP_GD/$i/gd.h" && GD_INCLUDE="$PHP_GD/$i"
41665:   done
41666: 
41667:   for i in $PHP_LIBDIR/gd1.3 $PHP_LIBDIR/gd $PHP_LIBDIR gd1.3 gd ""; do
41668:     test -f "$PHP_GD/$i/libgd.$SHLIB_SUFFIX_NAME" || test -f "$PHP_GD/$i/libgd.a" && GD_LIB="$PHP_GD/$i"
41669:   done
41670: 
41671:   if test -n "$GD_INCLUDE" && test -n "$GD_LIB"; then
41672: 
41673: 
41674:   if test "$ext_shared" = "yes"; then
41675:     GD_SHARED_LIBADD="-lgd $GD_SHARED_LIBADD"
41676:     if test -n "$GD_LIB"; then
41677: 
41678:   if test "$GD_LIB" != "/usr/$PHP_LIBDIR" && test "$GD_LIB" != "/usr/lib"; then
41679: 
41680:   if test -z "$GD_LIB" || echo "$GD_LIB" | grep '^/' >/dev/null ; then
41681:     ai_p=$GD_LIB
41682:   else
41683: 
41684:     ep_dir=`echo $GD_LIB|$SED 's%/*[^/][^/]*/*$%%'`
41685: 
41686:     ep_realdir=`(cd "$ep_dir" && pwd)`
41687:     ai_p="$ep_realdir"/`basename "$GD_LIB"`
41688:   fi
41689: 
41690: 
41691:       if test "$ext_shared" = "yes"; then
41692:         GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
41693:         test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
41694:       else
41695: 
41696: 
41697: 
41698:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
41699: 
41700:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
41701:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
41702:     eval "LIBPATH$unique=set"
41703: 
41704:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
41705:     LDFLAGS="$LDFLAGS -L$ai_p"
41706:     PHP_RPATHS="$PHP_RPATHS $ai_p"
41707: 
41708:   fi
41709: 
41710: 
41711:       fi
41712: 
41713:   fi
41714: 
41715:     fi
41716:   else
41717: 
41718: 
41719:   if test -n "$GD_LIB"; then
41720: 
41721:   if test "$GD_LIB" != "/usr/$PHP_LIBDIR" && test "$GD_LIB" != "/usr/lib"; then
41722: 
41723:   if test -z "$GD_LIB" || echo "$GD_LIB" | grep '^/' >/dev/null ; then
41724:     ai_p=$GD_LIB
41725:   else
41726: 
41727:     ep_dir=`echo $GD_LIB|$SED 's%/*[^/][^/]*/*$%%'`
41728: 
41729:     ep_realdir=`(cd "$ep_dir" && pwd)`
41730:     ai_p="$ep_realdir"/`basename "$GD_LIB"`
41731:   fi
41732: 
41733: 
41734: 
41735: 
41736: 
41737:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
41738: 
41739:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
41740:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
41741:     eval "LIBPATH$unique=set"
41742: 
41743:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
41744:     LDFLAGS="$LDFLAGS -L$ai_p"
41745:     PHP_RPATHS="$PHP_RPATHS $ai_p"
41746: 
41747:   fi
41748: 
41749: 
41750: 
41751:   fi
41752: 
41753:   fi
41754: 
41755: 
41756:   case gd in
41757:   c|c_r|pthread*) ;;
41758:   *)
41759:       LIBS="-lgd $LIBS"
41760:    ;;
41761:   esac
41762: 
41763: 
41764: 
41765: 
41766:   fi
41767: 
41768: 
41769: 
41770: $as_echo "#define HAVE_LIBGD 1" >>confdefs.h
41771: 
41772: 
41773: 
41774:   save_old_LDFLAGS=$LDFLAGS
41775:   ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
41776: 
41777:   save_ext_shared=$ext_shared
41778:   ext_shared=yes
41779: 
41780:   for ac_i in $ac_stuff; do
41781:     case $ac_i in
41782:     -pthread)
41783:       if test "$ext_shared" = "yes"; then
41784:         LDFLAGS="$LDFLAGS -pthread"
41785:       else
41786: 
41787: 
41788:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
41789: 
41790:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
41791:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
41792:     eval "EXTRA_LDFLAGS$unique=set"
41793:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
41794:   fi
41795: 
41796:       fi
41797:     ;;
41798:     -l*)
41799:       ac_ii=`echo $ac_i|cut -c 3-`
41800: 
41801: 
41802:   case $ac_ii in
41803:   c|c_r|pthread*) ;;
41804:   *)
41805:     if test "$ext_shared" = "yes"; then
41806:         LDFLAGS="$LDFLAGS -l$ac_ii"
41807:     else
41808: 
41809: 
41810:   case $ac_ii in
41811:   c|c_r|pthread*) ;;
41812:   *)
41813:       LIBS="$LIBS -l$ac_ii"
41814:    ;;
41815:   esac
41816: 
41817: 
41818:     fi
41819:    ;;
41820:   esac
41821: 
41822: 
41823:     ;;
41824:     -L*)
41825:       ac_ii=`echo $ac_i|cut -c 3-`
41826: 
41827:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
41828: 
41829:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
41830:     ai_p=$ac_ii
41831:   else
41832: 
41833:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
41834: 
41835:     ep_realdir=`(cd "$ep_dir" && pwd)`
41836:     ai_p="$ep_realdir"/`basename "$ac_ii"`
41837:   fi
41838: 
41839: 
41840:       if test "$ext_shared" = "yes"; then
41841:         LDFLAGS="-L$ai_p $LDFLAGS"
41842:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
41843:       else
41844: 
41845: 
41846: 
41847:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
41848: 
41849:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
41850:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
41851:     eval "LIBPATH$unique=set"
41852: 
41853:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
41854:     LDFLAGS="$LDFLAGS -L$ai_p"
41855:     PHP_RPATHS="$PHP_RPATHS $ai_p"
41856: 
41857:   fi
41858: 
41859: 
41860:       fi
41861: 
41862:   fi
41863: 
41864:     ;;
41865:     esac
41866:   done
41867: 
41868:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageString16 in -lgd" >&5
41869: $as_echo_n "checking for gdImageString16 in -lgd... " >&6; }
41870: if ${ac_cv_lib_gd_gdImageString16+:} false; then :
41871:   $as_echo_n "(cached) " >&6
41872: else
41873:   ac_check_lib_save_LIBS=$LIBS
41874: LIBS="-lgd  $LIBS"
41875: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41876: /* end confdefs.h.  */
41877: 
41878: /* Override any GCC internal prototype to avoid an error.
41879:    Use char because int might match the return type of a GCC
41880:    builtin and then its argument prototype would still apply.  */
41881: #ifdef __cplusplus
41882: extern "C"
41883: #endif
41884: char gdImageString16 ();
41885: int
41886: main ()
41887: {
41888: return gdImageString16 ();
41889:   ;
41890:   return 0;
41891: }
41892: _ACEOF
41893: if ac_fn_c_try_link "$LINENO"; then :
41894:   ac_cv_lib_gd_gdImageString16=yes
41895: else
41896:   ac_cv_lib_gd_gdImageString16=no
41897: fi
41898: rm -f core conftest.err conftest.$ac_objext \
41899:     conftest$ac_exeext conftest.$ac_ext
41900: LIBS=$ac_check_lib_save_LIBS
41901: fi
41902: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageString16" >&5
41903: $as_echo "$ac_cv_lib_gd_gdImageString16" >&6; }
41904: if test "x$ac_cv_lib_gd_gdImageString16" = xyes; then :
41905: 
41906:     LDFLAGS=$save_old_LDFLAGS
41907:     ext_shared=$save_ext_shared
41908: 
41909: $as_echo "#define HAVE_LIBGD13 1" >>confdefs.h
41910: 
41911: 
41912: else
41913: 
41914:     LDFLAGS=$save_old_LDFLAGS
41915:     ext_shared=$save_ext_shared
41916:     unset ac_cv_lib_gd_gdImageString16
41917: 
41918: 
41919: fi
41920: 
41921: 
41922:   save_old_LDFLAGS=$LDFLAGS
41923:   ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
41924: 
41925:   save_ext_shared=$ext_shared
41926:   ext_shared=yes
41927: 
41928:   for ac_i in $ac_stuff; do
41929:     case $ac_i in
41930:     -pthread)
41931:       if test "$ext_shared" = "yes"; then
41932:         LDFLAGS="$LDFLAGS -pthread"
41933:       else
41934: 
41935: 
41936:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
41937: 
41938:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
41939:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
41940:     eval "EXTRA_LDFLAGS$unique=set"
41941:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
41942:   fi
41943: 
41944:       fi
41945:     ;;
41946:     -l*)
41947:       ac_ii=`echo $ac_i|cut -c 3-`
41948: 
41949: 
41950:   case $ac_ii in
41951:   c|c_r|pthread*) ;;
41952:   *)
41953:     if test "$ext_shared" = "yes"; then
41954:         LDFLAGS="$LDFLAGS -l$ac_ii"
41955:     else
41956: 
41957: 
41958:   case $ac_ii in
41959:   c|c_r|pthread*) ;;
41960:   *)
41961:       LIBS="$LIBS -l$ac_ii"
41962:    ;;
41963:   esac
41964: 
41965: 
41966:     fi
41967:    ;;
41968:   esac
41969: 
41970: 
41971:     ;;
41972:     -L*)
41973:       ac_ii=`echo $ac_i|cut -c 3-`
41974: 
41975:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
41976: 
41977:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
41978:     ai_p=$ac_ii
41979:   else
41980: 
41981:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
41982: 
41983:     ep_realdir=`(cd "$ep_dir" && pwd)`
41984:     ai_p="$ep_realdir"/`basename "$ac_ii"`
41985:   fi
41986: 
41987: 
41988:       if test "$ext_shared" = "yes"; then
41989:         LDFLAGS="-L$ai_p $LDFLAGS"
41990:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
41991:       else
41992: 
41993: 
41994: 
41995:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
41996: 
41997:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
41998:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
41999:     eval "LIBPATH$unique=set"
42000: 
42001:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
42002:     LDFLAGS="$LDFLAGS -L$ai_p"
42003:     PHP_RPATHS="$PHP_RPATHS $ai_p"
42004: 
42005:   fi
42006: 
42007: 
42008:       fi
42009: 
42010:   fi
42011: 
42012:     ;;
42013:     esac
42014:   done
42015: 
42016:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImagePaletteCopy in -lgd" >&5
42017: $as_echo_n "checking for gdImagePaletteCopy in -lgd... " >&6; }
42018: if ${ac_cv_lib_gd_gdImagePaletteCopy+:} false; then :
42019:   $as_echo_n "(cached) " >&6
42020: else
42021:   ac_check_lib_save_LIBS=$LIBS
42022: LIBS="-lgd  $LIBS"
42023: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42024: /* end confdefs.h.  */
42025: 
42026: /* Override any GCC internal prototype to avoid an error.
42027:    Use char because int might match the return type of a GCC
42028:    builtin and then its argument prototype would still apply.  */
42029: #ifdef __cplusplus
42030: extern "C"
42031: #endif
42032: char gdImagePaletteCopy ();
42033: int
42034: main ()
42035: {
42036: return gdImagePaletteCopy ();
42037:   ;
42038:   return 0;
42039: }
42040: _ACEOF
42041: if ac_fn_c_try_link "$LINENO"; then :
42042:   ac_cv_lib_gd_gdImagePaletteCopy=yes
42043: else
42044:   ac_cv_lib_gd_gdImagePaletteCopy=no
42045: fi
42046: rm -f core conftest.err conftest.$ac_objext \
42047:     conftest$ac_exeext conftest.$ac_ext
42048: LIBS=$ac_check_lib_save_LIBS
42049: fi
42050: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImagePaletteCopy" >&5
42051: $as_echo "$ac_cv_lib_gd_gdImagePaletteCopy" >&6; }
42052: if test "x$ac_cv_lib_gd_gdImagePaletteCopy" = xyes; then :
42053: 
42054:     LDFLAGS=$save_old_LDFLAGS
42055:     ext_shared=$save_ext_shared
42056: 
42057: $as_echo "#define HAVE_LIBGD15 1" >>confdefs.h
42058: 
42059: 
42060: else
42061: 
42062:     LDFLAGS=$save_old_LDFLAGS
42063:     ext_shared=$save_ext_shared
42064:     unset ac_cv_lib_gd_gdImagePaletteCopy
42065: 
42066: 
42067: fi
42068: 
42069: 
42070:   save_old_LDFLAGS=$LDFLAGS
42071:   ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
42072: 
42073:   save_ext_shared=$ext_shared
42074:   ext_shared=yes
42075: 
42076:   for ac_i in $ac_stuff; do
42077:     case $ac_i in
42078:     -pthread)
42079:       if test "$ext_shared" = "yes"; then
42080:         LDFLAGS="$LDFLAGS -pthread"
42081:       else
42082: 
42083: 
42084:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
42085: 
42086:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
42087:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
42088:     eval "EXTRA_LDFLAGS$unique=set"
42089:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
42090:   fi
42091: 
42092:       fi
42093:     ;;
42094:     -l*)
42095:       ac_ii=`echo $ac_i|cut -c 3-`
42096: 
42097: 
42098:   case $ac_ii in
42099:   c|c_r|pthread*) ;;
42100:   *)
42101:     if test "$ext_shared" = "yes"; then
42102:         LDFLAGS="$LDFLAGS -l$ac_ii"
42103:     else
42104: 
42105: 
42106:   case $ac_ii in
42107:   c|c_r|pthread*) ;;
42108:   *)
42109:       LIBS="$LIBS -l$ac_ii"
42110:    ;;
42111:   esac
42112: 
42113: 
42114:     fi
42115:    ;;
42116:   esac
42117: 
42118: 
42119:     ;;
42120:     -L*)
42121:       ac_ii=`echo $ac_i|cut -c 3-`
42122: 
42123:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
42124: 
42125:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
42126:     ai_p=$ac_ii
42127:   else
42128: 
42129:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
42130: 
42131:     ep_realdir=`(cd "$ep_dir" && pwd)`
42132:     ai_p="$ep_realdir"/`basename "$ac_ii"`
42133:   fi
42134: 
42135: 
42136:       if test "$ext_shared" = "yes"; then
42137:         LDFLAGS="-L$ai_p $LDFLAGS"
42138:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
42139:       else
42140: 
42141: 
42142: 
42143:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
42144: 
42145:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
42146:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
42147:     eval "LIBPATH$unique=set"
42148: 
42149:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
42150:     LDFLAGS="$LDFLAGS -L$ai_p"
42151:     PHP_RPATHS="$PHP_RPATHS $ai_p"
42152: 
42153:   fi
42154: 
42155: 
42156:       fi
42157: 
42158:   fi
42159: 
42160:     ;;
42161:     esac
42162:   done
42163: 
42164:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageCreateFromPng in -lgd" >&5
42165: $as_echo_n "checking for gdImageCreateFromPng in -lgd... " >&6; }
42166: if ${ac_cv_lib_gd_gdImageCreateFromPng+:} false; then :
42167:   $as_echo_n "(cached) " >&6
42168: else
42169:   ac_check_lib_save_LIBS=$LIBS
42170: LIBS="-lgd  $LIBS"
42171: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42172: /* end confdefs.h.  */
42173: 
42174: /* Override any GCC internal prototype to avoid an error.
42175:    Use char because int might match the return type of a GCC
42176:    builtin and then its argument prototype would still apply.  */
42177: #ifdef __cplusplus
42178: extern "C"
42179: #endif
42180: char gdImageCreateFromPng ();
42181: int
42182: main ()
42183: {
42184: return gdImageCreateFromPng ();
42185:   ;
42186:   return 0;
42187: }
42188: _ACEOF
42189: if ac_fn_c_try_link "$LINENO"; then :
42190:   ac_cv_lib_gd_gdImageCreateFromPng=yes
42191: else
42192:   ac_cv_lib_gd_gdImageCreateFromPng=no
42193: fi
42194: rm -f core conftest.err conftest.$ac_objext \
42195:     conftest$ac_exeext conftest.$ac_ext
42196: LIBS=$ac_check_lib_save_LIBS
42197: fi
42198: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageCreateFromPng" >&5
42199: $as_echo "$ac_cv_lib_gd_gdImageCreateFromPng" >&6; }
42200: if test "x$ac_cv_lib_gd_gdImageCreateFromPng" = xyes; then :
42201: 
42202:     LDFLAGS=$save_old_LDFLAGS
42203:     ext_shared=$save_ext_shared
42204: 
42205: $as_echo "#define HAVE_GD_PNG 1" >>confdefs.h
42206: 
42207: 
42208: else
42209: 
42210:     LDFLAGS=$save_old_LDFLAGS
42211:     ext_shared=$save_ext_shared
42212:     unset ac_cv_lib_gd_gdImageCreateFromPng
42213: 
42214: 
42215: fi
42216: 
42217: 
42218:   save_old_LDFLAGS=$LDFLAGS
42219:   ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
42220: 
42221:   save_ext_shared=$ext_shared
42222:   ext_shared=yes
42223: 
42224:   for ac_i in $ac_stuff; do
42225:     case $ac_i in
42226:     -pthread)
42227:       if test "$ext_shared" = "yes"; then
42228:         LDFLAGS="$LDFLAGS -pthread"
42229:       else
42230: 
42231: 
42232:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
42233: 
42234:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
42235:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
42236:     eval "EXTRA_LDFLAGS$unique=set"
42237:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
42238:   fi
42239: 
42240:       fi
42241:     ;;
42242:     -l*)
42243:       ac_ii=`echo $ac_i|cut -c 3-`
42244: 
42245: 
42246:   case $ac_ii in
42247:   c|c_r|pthread*) ;;
42248:   *)
42249:     if test "$ext_shared" = "yes"; then
42250:         LDFLAGS="$LDFLAGS -l$ac_ii"
42251:     else
42252: 
42253: 
42254:   case $ac_ii in
42255:   c|c_r|pthread*) ;;
42256:   *)
42257:       LIBS="$LIBS -l$ac_ii"
42258:    ;;
42259:   esac
42260: 
42261: 
42262:     fi
42263:    ;;
42264:   esac
42265: 
42266: 
42267:     ;;
42268:     -L*)
42269:       ac_ii=`echo $ac_i|cut -c 3-`
42270: 
42271:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
42272: 
42273:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
42274:     ai_p=$ac_ii
42275:   else
42276: 
42277:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
42278: 
42279:     ep_realdir=`(cd "$ep_dir" && pwd)`
42280:     ai_p="$ep_realdir"/`basename "$ac_ii"`
42281:   fi
42282: 
42283: 
42284:       if test "$ext_shared" = "yes"; then
42285:         LDFLAGS="-L$ai_p $LDFLAGS"
42286:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
42287:       else
42288: 
42289: 
42290: 
42291:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
42292: 
42293:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
42294:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
42295:     eval "LIBPATH$unique=set"
42296: 
42297:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
42298:     LDFLAGS="$LDFLAGS -L$ai_p"
42299:     PHP_RPATHS="$PHP_RPATHS $ai_p"
42300: 
42301:   fi
42302: 
42303: 
42304:       fi
42305: 
42306:   fi
42307: 
42308:     ;;
42309:     esac
42310:   done
42311: 
42312:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageCreateFromGif in -lgd" >&5
42313: $as_echo_n "checking for gdImageCreateFromGif in -lgd... " >&6; }
42314: if ${ac_cv_lib_gd_gdImageCreateFromGif+:} false; then :
42315:   $as_echo_n "(cached) " >&6
42316: else
42317:   ac_check_lib_save_LIBS=$LIBS
42318: LIBS="-lgd  $LIBS"
42319: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42320: /* end confdefs.h.  */
42321: 
42322: /* Override any GCC internal prototype to avoid an error.
42323:    Use char because int might match the return type of a GCC
42324:    builtin and then its argument prototype would still apply.  */
42325: #ifdef __cplusplus
42326: extern "C"
42327: #endif
42328: char gdImageCreateFromGif ();
42329: int
42330: main ()
42331: {
42332: return gdImageCreateFromGif ();
42333:   ;
42334:   return 0;
42335: }
42336: _ACEOF
42337: if ac_fn_c_try_link "$LINENO"; then :
42338:   ac_cv_lib_gd_gdImageCreateFromGif=yes
42339: else
42340:   ac_cv_lib_gd_gdImageCreateFromGif=no
42341: fi
42342: rm -f core conftest.err conftest.$ac_objext \
42343:     conftest$ac_exeext conftest.$ac_ext
42344: LIBS=$ac_check_lib_save_LIBS
42345: fi
42346: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageCreateFromGif" >&5
42347: $as_echo "$ac_cv_lib_gd_gdImageCreateFromGif" >&6; }
42348: if test "x$ac_cv_lib_gd_gdImageCreateFromGif" = xyes; then :
42349: 
42350:     LDFLAGS=$save_old_LDFLAGS
42351:     ext_shared=$save_ext_shared
42352: 
42353: $as_echo "#define HAVE_GD_GIF_READ 1" >>confdefs.h
42354: 
42355: 
42356: else
42357: 
42358:     LDFLAGS=$save_old_LDFLAGS
42359:     ext_shared=$save_ext_shared
42360:     unset ac_cv_lib_gd_gdImageCreateFromGif
42361: 
42362: 
42363: fi
42364: 
42365: 
42366:   save_old_LDFLAGS=$LDFLAGS
42367:   ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
42368: 
42369:   save_ext_shared=$ext_shared
42370:   ext_shared=yes
42371: 
42372:   for ac_i in $ac_stuff; do
42373:     case $ac_i in
42374:     -pthread)
42375:       if test "$ext_shared" = "yes"; then
42376:         LDFLAGS="$LDFLAGS -pthread"
42377:       else
42378: 
42379: 
42380:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
42381: 
42382:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
42383:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
42384:     eval "EXTRA_LDFLAGS$unique=set"
42385:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
42386:   fi
42387: 
42388:       fi
42389:     ;;
42390:     -l*)
42391:       ac_ii=`echo $ac_i|cut -c 3-`
42392: 
42393: 
42394:   case $ac_ii in
42395:   c|c_r|pthread*) ;;
42396:   *)
42397:     if test "$ext_shared" = "yes"; then
42398:         LDFLAGS="$LDFLAGS -l$ac_ii"
42399:     else
42400: 
42401: 
42402:   case $ac_ii in
42403:   c|c_r|pthread*) ;;
42404:   *)
42405:       LIBS="$LIBS -l$ac_ii"
42406:    ;;
42407:   esac
42408: 
42409: 
42410:     fi
42411:    ;;
42412:   esac
42413: 
42414: 
42415:     ;;
42416:     -L*)
42417:       ac_ii=`echo $ac_i|cut -c 3-`
42418: 
42419:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
42420: 
42421:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
42422:     ai_p=$ac_ii
42423:   else
42424: 
42425:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
42426: 
42427:     ep_realdir=`(cd "$ep_dir" && pwd)`
42428:     ai_p="$ep_realdir"/`basename "$ac_ii"`
42429:   fi
42430: 
42431: 
42432:       if test "$ext_shared" = "yes"; then
42433:         LDFLAGS="-L$ai_p $LDFLAGS"
42434:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
42435:       else
42436: 
42437: 
42438: 
42439:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
42440: 
42441:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
42442:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
42443:     eval "LIBPATH$unique=set"
42444: 
42445:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
42446:     LDFLAGS="$LDFLAGS -L$ai_p"
42447:     PHP_RPATHS="$PHP_RPATHS $ai_p"
42448: 
42449:   fi
42450: 
42451: 
42452:       fi
42453: 
42454:   fi
42455: 
42456:     ;;
42457:     esac
42458:   done
42459: 
42460:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageGif in -lgd" >&5
42461: $as_echo_n "checking for gdImageGif in -lgd... " >&6; }
42462: if ${ac_cv_lib_gd_gdImageGif+:} false; then :
42463:   $as_echo_n "(cached) " >&6
42464: else
42465:   ac_check_lib_save_LIBS=$LIBS
42466: LIBS="-lgd  $LIBS"
42467: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42468: /* end confdefs.h.  */
42469: 
42470: /* Override any GCC internal prototype to avoid an error.
42471:    Use char because int might match the return type of a GCC
42472:    builtin and then its argument prototype would still apply.  */
42473: #ifdef __cplusplus
42474: extern "C"
42475: #endif
42476: char gdImageGif ();
42477: int
42478: main ()
42479: {
42480: return gdImageGif ();
42481:   ;
42482:   return 0;
42483: }
42484: _ACEOF
42485: if ac_fn_c_try_link "$LINENO"; then :
42486:   ac_cv_lib_gd_gdImageGif=yes
42487: else
42488:   ac_cv_lib_gd_gdImageGif=no
42489: fi
42490: rm -f core conftest.err conftest.$ac_objext \
42491:     conftest$ac_exeext conftest.$ac_ext
42492: LIBS=$ac_check_lib_save_LIBS
42493: fi
42494: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageGif" >&5
42495: $as_echo "$ac_cv_lib_gd_gdImageGif" >&6; }
42496: if test "x$ac_cv_lib_gd_gdImageGif" = xyes; then :
42497: 
42498:     LDFLAGS=$save_old_LDFLAGS
42499:     ext_shared=$save_ext_shared
42500: 
42501: $as_echo "#define HAVE_GD_GIF_CREATE 1" >>confdefs.h
42502: 
42503: 
42504: else
42505: 
42506:     LDFLAGS=$save_old_LDFLAGS
42507:     ext_shared=$save_ext_shared
42508:     unset ac_cv_lib_gd_gdImageGif
42509: 
42510: 
42511: fi
42512: 
42513: 
42514:   save_old_LDFLAGS=$LDFLAGS
42515:   ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
42516: 
42517:   save_ext_shared=$ext_shared
42518:   ext_shared=yes
42519: 
42520:   for ac_i in $ac_stuff; do
42521:     case $ac_i in
42522:     -pthread)
42523:       if test "$ext_shared" = "yes"; then
42524:         LDFLAGS="$LDFLAGS -pthread"
42525:       else
42526: 
42527: 
42528:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
42529: 
42530:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
42531:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
42532:     eval "EXTRA_LDFLAGS$unique=set"
42533:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
42534:   fi
42535: 
42536:       fi
42537:     ;;
42538:     -l*)
42539:       ac_ii=`echo $ac_i|cut -c 3-`
42540: 
42541: 
42542:   case $ac_ii in
42543:   c|c_r|pthread*) ;;
42544:   *)
42545:     if test "$ext_shared" = "yes"; then
42546:         LDFLAGS="$LDFLAGS -l$ac_ii"
42547:     else
42548: 
42549: 
42550:   case $ac_ii in
42551:   c|c_r|pthread*) ;;
42552:   *)
42553:       LIBS="$LIBS -l$ac_ii"
42554:    ;;
42555:   esac
42556: 
42557: 
42558:     fi
42559:    ;;
42560:   esac
42561: 
42562: 
42563:     ;;
42564:     -L*)
42565:       ac_ii=`echo $ac_i|cut -c 3-`
42566: 
42567:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
42568: 
42569:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
42570:     ai_p=$ac_ii
42571:   else
42572: 
42573:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
42574: 
42575:     ep_realdir=`(cd "$ep_dir" && pwd)`
42576:     ai_p="$ep_realdir"/`basename "$ac_ii"`
42577:   fi
42578: 
42579: 
42580:       if test "$ext_shared" = "yes"; then
42581:         LDFLAGS="-L$ai_p $LDFLAGS"
42582:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
42583:       else
42584: 
42585: 
42586: 
42587:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
42588: 
42589:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
42590:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
42591:     eval "LIBPATH$unique=set"
42592: 
42593:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
42594:     LDFLAGS="$LDFLAGS -L$ai_p"
42595:     PHP_RPATHS="$PHP_RPATHS $ai_p"
42596: 
42597:   fi
42598: 
42599: 
42600:       fi
42601: 
42602:   fi
42603: 
42604:     ;;
42605:     esac
42606:   done
42607: 
42608:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageWBMP in -lgd" >&5
42609: $as_echo_n "checking for gdImageWBMP in -lgd... " >&6; }
42610: if ${ac_cv_lib_gd_gdImageWBMP+:} false; then :
42611:   $as_echo_n "(cached) " >&6
42612: else
42613:   ac_check_lib_save_LIBS=$LIBS
42614: LIBS="-lgd  $LIBS"
42615: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42616: /* end confdefs.h.  */
42617: 
42618: /* Override any GCC internal prototype to avoid an error.
42619:    Use char because int might match the return type of a GCC
42620:    builtin and then its argument prototype would still apply.  */
42621: #ifdef __cplusplus
42622: extern "C"
42623: #endif
42624: char gdImageWBMP ();
42625: int
42626: main ()
42627: {
42628: return gdImageWBMP ();
42629:   ;
42630:   return 0;
42631: }
42632: _ACEOF
42633: if ac_fn_c_try_link "$LINENO"; then :
42634:   ac_cv_lib_gd_gdImageWBMP=yes
42635: else
42636:   ac_cv_lib_gd_gdImageWBMP=no
42637: fi
42638: rm -f core conftest.err conftest.$ac_objext \
42639:     conftest$ac_exeext conftest.$ac_ext
42640: LIBS=$ac_check_lib_save_LIBS
42641: fi
42642: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageWBMP" >&5
42643: $as_echo "$ac_cv_lib_gd_gdImageWBMP" >&6; }
42644: if test "x$ac_cv_lib_gd_gdImageWBMP" = xyes; then :
42645: 
42646:     LDFLAGS=$save_old_LDFLAGS
42647:     ext_shared=$save_ext_shared
42648: 
42649: $as_echo "#define HAVE_GD_WBMP 1" >>confdefs.h
42650: 
42651: 
42652: else
42653: 
42654:     LDFLAGS=$save_old_LDFLAGS
42655:     ext_shared=$save_ext_shared
42656:     unset ac_cv_lib_gd_gdImageWBMP
42657: 
42658: 
42659: fi
42660: 
42661: 
42662:   save_old_LDFLAGS=$LDFLAGS
42663:   ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
42664: 
42665:   save_ext_shared=$ext_shared
42666:   ext_shared=yes
42667: 
42668:   for ac_i in $ac_stuff; do
42669:     case $ac_i in
42670:     -pthread)
42671:       if test "$ext_shared" = "yes"; then
42672:         LDFLAGS="$LDFLAGS -pthread"
42673:       else
42674: 
42675: 
42676:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
42677: 
42678:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
42679:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
42680:     eval "EXTRA_LDFLAGS$unique=set"
42681:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
42682:   fi
42683: 
42684:       fi
42685:     ;;
42686:     -l*)
42687:       ac_ii=`echo $ac_i|cut -c 3-`
42688: 
42689: 
42690:   case $ac_ii in
42691:   c|c_r|pthread*) ;;
42692:   *)
42693:     if test "$ext_shared" = "yes"; then
42694:         LDFLAGS="$LDFLAGS -l$ac_ii"
42695:     else
42696: 
42697: 
42698:   case $ac_ii in
42699:   c|c_r|pthread*) ;;
42700:   *)
42701:       LIBS="$LIBS -l$ac_ii"
42702:    ;;
42703:   esac
42704: 
42705: 
42706:     fi
42707:    ;;
42708:   esac
42709: 
42710: 
42711:     ;;
42712:     -L*)
42713:       ac_ii=`echo $ac_i|cut -c 3-`
42714: 
42715:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
42716: 
42717:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
42718:     ai_p=$ac_ii
42719:   else
42720: 
42721:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
42722: 
42723:     ep_realdir=`(cd "$ep_dir" && pwd)`
42724:     ai_p="$ep_realdir"/`basename "$ac_ii"`
42725:   fi
42726: 
42727: 
42728:       if test "$ext_shared" = "yes"; then
42729:         LDFLAGS="-L$ai_p $LDFLAGS"
42730:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
42731:       else
42732: 
42733: 
42734: 
42735:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
42736: 
42737:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
42738:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
42739:     eval "LIBPATH$unique=set"
42740: 
42741:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
42742:     LDFLAGS="$LDFLAGS -L$ai_p"
42743:     PHP_RPATHS="$PHP_RPATHS $ai_p"
42744: 
42745:   fi
42746: 
42747: 
42748:       fi
42749: 
42750:   fi
42751: 
42752:     ;;
42753:     esac
42754:   done
42755: 
42756:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageCreateFromJpeg in -lgd" >&5
42757: $as_echo_n "checking for gdImageCreateFromJpeg in -lgd... " >&6; }
42758: if ${ac_cv_lib_gd_gdImageCreateFromJpeg+:} false; then :
42759:   $as_echo_n "(cached) " >&6
42760: else
42761:   ac_check_lib_save_LIBS=$LIBS
42762: LIBS="-lgd  $LIBS"
42763: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42764: /* end confdefs.h.  */
42765: 
42766: /* Override any GCC internal prototype to avoid an error.
42767:    Use char because int might match the return type of a GCC
42768:    builtin and then its argument prototype would still apply.  */
42769: #ifdef __cplusplus
42770: extern "C"
42771: #endif
42772: char gdImageCreateFromJpeg ();
42773: int
42774: main ()
42775: {
42776: return gdImageCreateFromJpeg ();
42777:   ;
42778:   return 0;
42779: }
42780: _ACEOF
42781: if ac_fn_c_try_link "$LINENO"; then :
42782:   ac_cv_lib_gd_gdImageCreateFromJpeg=yes
42783: else
42784:   ac_cv_lib_gd_gdImageCreateFromJpeg=no
42785: fi
42786: rm -f core conftest.err conftest.$ac_objext \
42787:     conftest$ac_exeext conftest.$ac_ext
42788: LIBS=$ac_check_lib_save_LIBS
42789: fi
42790: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageCreateFromJpeg" >&5
42791: $as_echo "$ac_cv_lib_gd_gdImageCreateFromJpeg" >&6; }
42792: if test "x$ac_cv_lib_gd_gdImageCreateFromJpeg" = xyes; then :
42793: 
42794:     LDFLAGS=$save_old_LDFLAGS
42795:     ext_shared=$save_ext_shared
42796: 
42797: $as_echo "#define HAVE_GD_JPG 1" >>confdefs.h
42798: 
42799: 
42800: else
42801: 
42802:     LDFLAGS=$save_old_LDFLAGS
42803:     ext_shared=$save_ext_shared
42804:     unset ac_cv_lib_gd_gdImageCreateFromJpeg
42805: 
42806: 
42807: fi
42808: 
42809: 
42810:   save_old_LDFLAGS=$LDFLAGS
42811:   ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
42812: 
42813:   save_ext_shared=$ext_shared
42814:   ext_shared=yes
42815: 
42816:   for ac_i in $ac_stuff; do
42817:     case $ac_i in
42818:     -pthread)
42819:       if test "$ext_shared" = "yes"; then
42820:         LDFLAGS="$LDFLAGS -pthread"
42821:       else
42822: 
42823: 
42824:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
42825: 
42826:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
42827:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
42828:     eval "EXTRA_LDFLAGS$unique=set"
42829:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
42830:   fi
42831: 
42832:       fi
42833:     ;;
42834:     -l*)
42835:       ac_ii=`echo $ac_i|cut -c 3-`
42836: 
42837: 
42838:   case $ac_ii in
42839:   c|c_r|pthread*) ;;
42840:   *)
42841:     if test "$ext_shared" = "yes"; then
42842:         LDFLAGS="$LDFLAGS -l$ac_ii"
42843:     else
42844: 
42845: 
42846:   case $ac_ii in
42847:   c|c_r|pthread*) ;;
42848:   *)
42849:       LIBS="$LIBS -l$ac_ii"
42850:    ;;
42851:   esac
42852: 
42853: 
42854:     fi
42855:    ;;
42856:   esac
42857: 
42858: 
42859:     ;;
42860:     -L*)
42861:       ac_ii=`echo $ac_i|cut -c 3-`
42862: 
42863:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
42864: 
42865:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
42866:     ai_p=$ac_ii
42867:   else
42868: 
42869:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
42870: 
42871:     ep_realdir=`(cd "$ep_dir" && pwd)`
42872:     ai_p="$ep_realdir"/`basename "$ac_ii"`
42873:   fi
42874: 
42875: 
42876:       if test "$ext_shared" = "yes"; then
42877:         LDFLAGS="-L$ai_p $LDFLAGS"
42878:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
42879:       else
42880: 
42881: 
42882: 
42883:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
42884: 
42885:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
42886:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
42887:     eval "LIBPATH$unique=set"
42888: 
42889:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
42890:     LDFLAGS="$LDFLAGS -L$ai_p"
42891:     PHP_RPATHS="$PHP_RPATHS $ai_p"
42892: 
42893:   fi
42894: 
42895: 
42896:       fi
42897: 
42898:   fi
42899: 
42900:     ;;
42901:     esac
42902:   done
42903: 
42904:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageCreateFromXpm in -lgd" >&5
42905: $as_echo_n "checking for gdImageCreateFromXpm in -lgd... " >&6; }
42906: if ${ac_cv_lib_gd_gdImageCreateFromXpm+:} false; then :
42907:   $as_echo_n "(cached) " >&6
42908: else
42909:   ac_check_lib_save_LIBS=$LIBS
42910: LIBS="-lgd  $LIBS"
42911: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42912: /* end confdefs.h.  */
42913: 
42914: /* Override any GCC internal prototype to avoid an error.
42915:    Use char because int might match the return type of a GCC
42916:    builtin and then its argument prototype would still apply.  */
42917: #ifdef __cplusplus
42918: extern "C"
42919: #endif
42920: char gdImageCreateFromXpm ();
42921: int
42922: main ()
42923: {
42924: return gdImageCreateFromXpm ();
42925:   ;
42926:   return 0;
42927: }
42928: _ACEOF
42929: if ac_fn_c_try_link "$LINENO"; then :
42930:   ac_cv_lib_gd_gdImageCreateFromXpm=yes
42931: else
42932:   ac_cv_lib_gd_gdImageCreateFromXpm=no
42933: fi
42934: rm -f core conftest.err conftest.$ac_objext \
42935:     conftest$ac_exeext conftest.$ac_ext
42936: LIBS=$ac_check_lib_save_LIBS
42937: fi
42938: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageCreateFromXpm" >&5
42939: $as_echo "$ac_cv_lib_gd_gdImageCreateFromXpm" >&6; }
42940: if test "x$ac_cv_lib_gd_gdImageCreateFromXpm" = xyes; then :
42941: 
42942:     LDFLAGS=$save_old_LDFLAGS
42943:     ext_shared=$save_ext_shared
42944: 
42945: $as_echo "#define HAVE_GD_XPM 1" >>confdefs.h
42946: 
42947: 
42948: else
42949: 
42950:     LDFLAGS=$save_old_LDFLAGS
42951:     ext_shared=$save_ext_shared
42952:     unset ac_cv_lib_gd_gdImageCreateFromXpm
42953: 
42954: 
42955: fi
42956: 
42957: 
42958:   save_old_LDFLAGS=$LDFLAGS
42959:   ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
42960: 
42961:   save_ext_shared=$ext_shared
42962:   ext_shared=yes
42963: 
42964:   for ac_i in $ac_stuff; do
42965:     case $ac_i in
42966:     -pthread)
42967:       if test "$ext_shared" = "yes"; then
42968:         LDFLAGS="$LDFLAGS -pthread"
42969:       else
42970: 
42971: 
42972:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
42973: 
42974:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
42975:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
42976:     eval "EXTRA_LDFLAGS$unique=set"
42977:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
42978:   fi
42979: 
42980:       fi
42981:     ;;
42982:     -l*)
42983:       ac_ii=`echo $ac_i|cut -c 3-`
42984: 
42985: 
42986:   case $ac_ii in
42987:   c|c_r|pthread*) ;;
42988:   *)
42989:     if test "$ext_shared" = "yes"; then
42990:         LDFLAGS="$LDFLAGS -l$ac_ii"
42991:     else
42992: 
42993: 
42994:   case $ac_ii in
42995:   c|c_r|pthread*) ;;
42996:   *)
42997:       LIBS="$LIBS -l$ac_ii"
42998:    ;;
42999:   esac
43000: 
43001: 
43002:     fi
43003:    ;;
43004:   esac
43005: 
43006: 
43007:     ;;
43008:     -L*)
43009:       ac_ii=`echo $ac_i|cut -c 3-`
43010: 
43011:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
43012: 
43013:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
43014:     ai_p=$ac_ii
43015:   else
43016: 
43017:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
43018: 
43019:     ep_realdir=`(cd "$ep_dir" && pwd)`
43020:     ai_p="$ep_realdir"/`basename "$ac_ii"`
43021:   fi
43022: 
43023: 
43024:       if test "$ext_shared" = "yes"; then
43025:         LDFLAGS="-L$ai_p $LDFLAGS"
43026:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
43027:       else
43028: 
43029: 
43030: 
43031:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
43032: 
43033:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
43034:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
43035:     eval "LIBPATH$unique=set"
43036: 
43037:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
43038:     LDFLAGS="$LDFLAGS -L$ai_p"
43039:     PHP_RPATHS="$PHP_RPATHS $ai_p"
43040: 
43041:   fi
43042: 
43043: 
43044:       fi
43045: 
43046:   fi
43047: 
43048:     ;;
43049:     esac
43050:   done
43051: 
43052:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageCreateFromGd2 in -lgd" >&5
43053: $as_echo_n "checking for gdImageCreateFromGd2 in -lgd... " >&6; }
43054: if ${ac_cv_lib_gd_gdImageCreateFromGd2+:} false; then :
43055:   $as_echo_n "(cached) " >&6
43056: else
43057:   ac_check_lib_save_LIBS=$LIBS
43058: LIBS="-lgd  $LIBS"
43059: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43060: /* end confdefs.h.  */
43061: 
43062: /* Override any GCC internal prototype to avoid an error.
43063:    Use char because int might match the return type of a GCC
43064:    builtin and then its argument prototype would still apply.  */
43065: #ifdef __cplusplus
43066: extern "C"
43067: #endif
43068: char gdImageCreateFromGd2 ();
43069: int
43070: main ()
43071: {
43072: return gdImageCreateFromGd2 ();
43073:   ;
43074:   return 0;
43075: }
43076: _ACEOF
43077: if ac_fn_c_try_link "$LINENO"; then :
43078:   ac_cv_lib_gd_gdImageCreateFromGd2=yes
43079: else
43080:   ac_cv_lib_gd_gdImageCreateFromGd2=no
43081: fi
43082: rm -f core conftest.err conftest.$ac_objext \
43083:     conftest$ac_exeext conftest.$ac_ext
43084: LIBS=$ac_check_lib_save_LIBS
43085: fi
43086: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageCreateFromGd2" >&5
43087: $as_echo "$ac_cv_lib_gd_gdImageCreateFromGd2" >&6; }
43088: if test "x$ac_cv_lib_gd_gdImageCreateFromGd2" = xyes; then :
43089: 
43090:     LDFLAGS=$save_old_LDFLAGS
43091:     ext_shared=$save_ext_shared
43092: 
43093: $as_echo "#define HAVE_GD_GD2 1" >>confdefs.h
43094: 
43095: 
43096: else
43097: 
43098:     LDFLAGS=$save_old_LDFLAGS
43099:     ext_shared=$save_ext_shared
43100:     unset ac_cv_lib_gd_gdImageCreateFromGd2
43101: 
43102: 
43103: fi
43104: 
43105: 
43106:   save_old_LDFLAGS=$LDFLAGS
43107:   ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
43108: 
43109:   save_ext_shared=$ext_shared
43110:   ext_shared=yes
43111: 
43112:   for ac_i in $ac_stuff; do
43113:     case $ac_i in
43114:     -pthread)
43115:       if test "$ext_shared" = "yes"; then
43116:         LDFLAGS="$LDFLAGS -pthread"
43117:       else
43118: 
43119: 
43120:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
43121: 
43122:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
43123:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
43124:     eval "EXTRA_LDFLAGS$unique=set"
43125:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
43126:   fi
43127: 
43128:       fi
43129:     ;;
43130:     -l*)
43131:       ac_ii=`echo $ac_i|cut -c 3-`
43132: 
43133: 
43134:   case $ac_ii in
43135:   c|c_r|pthread*) ;;
43136:   *)
43137:     if test "$ext_shared" = "yes"; then
43138:         LDFLAGS="$LDFLAGS -l$ac_ii"
43139:     else
43140: 
43141: 
43142:   case $ac_ii in
43143:   c|c_r|pthread*) ;;
43144:   *)
43145:       LIBS="$LIBS -l$ac_ii"
43146:    ;;
43147:   esac
43148: 
43149: 
43150:     fi
43151:    ;;
43152:   esac
43153: 
43154: 
43155:     ;;
43156:     -L*)
43157:       ac_ii=`echo $ac_i|cut -c 3-`
43158: 
43159:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
43160: 
43161:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
43162:     ai_p=$ac_ii
43163:   else
43164: 
43165:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
43166: 
43167:     ep_realdir=`(cd "$ep_dir" && pwd)`
43168:     ai_p="$ep_realdir"/`basename "$ac_ii"`
43169:   fi
43170: 
43171: 
43172:       if test "$ext_shared" = "yes"; then
43173:         LDFLAGS="-L$ai_p $LDFLAGS"
43174:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
43175:       else
43176: 
43177: 
43178: 
43179:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
43180: 
43181:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
43182:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
43183:     eval "LIBPATH$unique=set"
43184: 
43185:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
43186:     LDFLAGS="$LDFLAGS -L$ai_p"
43187:     PHP_RPATHS="$PHP_RPATHS $ai_p"
43188: 
43189:   fi
43190: 
43191: 
43192:       fi
43193: 
43194:   fi
43195: 
43196:     ;;
43197:     esac
43198:   done
43199: 
43200:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageCreateTrueColor in -lgd" >&5
43201: $as_echo_n "checking for gdImageCreateTrueColor in -lgd... " >&6; }
43202: if ${ac_cv_lib_gd_gdImageCreateTrueColor+:} false; then :
43203:   $as_echo_n "(cached) " >&6
43204: else
43205:   ac_check_lib_save_LIBS=$LIBS
43206: LIBS="-lgd  $LIBS"
43207: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43208: /* end confdefs.h.  */
43209: 
43210: /* Override any GCC internal prototype to avoid an error.
43211:    Use char because int might match the return type of a GCC
43212:    builtin and then its argument prototype would still apply.  */
43213: #ifdef __cplusplus
43214: extern "C"
43215: #endif
43216: char gdImageCreateTrueColor ();
43217: int
43218: main ()
43219: {
43220: return gdImageCreateTrueColor ();
43221:   ;
43222:   return 0;
43223: }
43224: _ACEOF
43225: if ac_fn_c_try_link "$LINENO"; then :
43226:   ac_cv_lib_gd_gdImageCreateTrueColor=yes
43227: else
43228:   ac_cv_lib_gd_gdImageCreateTrueColor=no
43229: fi
43230: rm -f core conftest.err conftest.$ac_objext \
43231:     conftest$ac_exeext conftest.$ac_ext
43232: LIBS=$ac_check_lib_save_LIBS
43233: fi
43234: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageCreateTrueColor" >&5
43235: $as_echo "$ac_cv_lib_gd_gdImageCreateTrueColor" >&6; }
43236: if test "x$ac_cv_lib_gd_gdImageCreateTrueColor" = xyes; then :
43237: 
43238:     LDFLAGS=$save_old_LDFLAGS
43239:     ext_shared=$save_ext_shared
43240: 
43241: $as_echo "#define HAVE_LIBGD20 1" >>confdefs.h
43242: 
43243: 
43244: else
43245: 
43246:     LDFLAGS=$save_old_LDFLAGS
43247:     ext_shared=$save_ext_shared
43248:     unset ac_cv_lib_gd_gdImageCreateTrueColor
43249: 
43250: 
43251: fi
43252: 
43253: 
43254:   save_old_LDFLAGS=$LDFLAGS
43255:   ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
43256: 
43257:   save_ext_shared=$ext_shared
43258:   ext_shared=yes
43259: 
43260:   for ac_i in $ac_stuff; do
43261:     case $ac_i in
43262:     -pthread)
43263:       if test "$ext_shared" = "yes"; then
43264:         LDFLAGS="$LDFLAGS -pthread"
43265:       else
43266: 
43267: 
43268:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
43269: 
43270:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
43271:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
43272:     eval "EXTRA_LDFLAGS$unique=set"
43273:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
43274:   fi
43275: 
43276:       fi
43277:     ;;
43278:     -l*)
43279:       ac_ii=`echo $ac_i|cut -c 3-`
43280: 
43281: 
43282:   case $ac_ii in
43283:   c|c_r|pthread*) ;;
43284:   *)
43285:     if test "$ext_shared" = "yes"; then
43286:         LDFLAGS="$LDFLAGS -l$ac_ii"
43287:     else
43288: 
43289: 
43290:   case $ac_ii in
43291:   c|c_r|pthread*) ;;
43292:   *)
43293:       LIBS="$LIBS -l$ac_ii"
43294:    ;;
43295:   esac
43296: 
43297: 
43298:     fi
43299:    ;;
43300:   esac
43301: 
43302: 
43303:     ;;
43304:     -L*)
43305:       ac_ii=`echo $ac_i|cut -c 3-`
43306: 
43307:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
43308: 
43309:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
43310:     ai_p=$ac_ii
43311:   else
43312: 
43313:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
43314: 
43315:     ep_realdir=`(cd "$ep_dir" && pwd)`
43316:     ai_p="$ep_realdir"/`basename "$ac_ii"`
43317:   fi
43318: 
43319: 
43320:       if test "$ext_shared" = "yes"; then
43321:         LDFLAGS="-L$ai_p $LDFLAGS"
43322:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
43323:       else
43324: 
43325: 
43326: 
43327:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
43328: 
43329:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
43330:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
43331:     eval "LIBPATH$unique=set"
43332: 
43333:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
43334:     LDFLAGS="$LDFLAGS -L$ai_p"
43335:     PHP_RPATHS="$PHP_RPATHS $ai_p"
43336: 
43337:   fi
43338: 
43339: 
43340:       fi
43341: 
43342:   fi
43343: 
43344:     ;;
43345:     esac
43346:   done
43347: 
43348:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageSetTile in -lgd" >&5
43349: $as_echo_n "checking for gdImageSetTile in -lgd... " >&6; }
43350: if ${ac_cv_lib_gd_gdImageSetTile+:} false; then :
43351:   $as_echo_n "(cached) " >&6
43352: else
43353:   ac_check_lib_save_LIBS=$LIBS
43354: LIBS="-lgd  $LIBS"
43355: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43356: /* end confdefs.h.  */
43357: 
43358: /* Override any GCC internal prototype to avoid an error.
43359:    Use char because int might match the return type of a GCC
43360:    builtin and then its argument prototype would still apply.  */
43361: #ifdef __cplusplus
43362: extern "C"
43363: #endif
43364: char gdImageSetTile ();
43365: int
43366: main ()
43367: {
43368: return gdImageSetTile ();
43369:   ;
43370:   return 0;
43371: }
43372: _ACEOF
43373: if ac_fn_c_try_link "$LINENO"; then :
43374:   ac_cv_lib_gd_gdImageSetTile=yes
43375: else
43376:   ac_cv_lib_gd_gdImageSetTile=no
43377: fi
43378: rm -f core conftest.err conftest.$ac_objext \
43379:     conftest$ac_exeext conftest.$ac_ext
43380: LIBS=$ac_check_lib_save_LIBS
43381: fi
43382: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageSetTile" >&5
43383: $as_echo "$ac_cv_lib_gd_gdImageSetTile" >&6; }
43384: if test "x$ac_cv_lib_gd_gdImageSetTile" = xyes; then :
43385: 
43386:     LDFLAGS=$save_old_LDFLAGS
43387:     ext_shared=$save_ext_shared
43388: 
43389: $as_echo "#define HAVE_GD_IMAGESETTILE 1" >>confdefs.h
43390: 
43391: 
43392: else
43393: 
43394:     LDFLAGS=$save_old_LDFLAGS
43395:     ext_shared=$save_ext_shared
43396:     unset ac_cv_lib_gd_gdImageSetTile
43397: 
43398: 
43399: fi
43400: 
43401: 
43402:   save_old_LDFLAGS=$LDFLAGS
43403:   ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
43404: 
43405:   save_ext_shared=$ext_shared
43406:   ext_shared=yes
43407: 
43408:   for ac_i in $ac_stuff; do
43409:     case $ac_i in
43410:     -pthread)
43411:       if test "$ext_shared" = "yes"; then
43412:         LDFLAGS="$LDFLAGS -pthread"
43413:       else
43414: 
43415: 
43416:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
43417: 
43418:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
43419:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
43420:     eval "EXTRA_LDFLAGS$unique=set"
43421:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
43422:   fi
43423: 
43424:       fi
43425:     ;;
43426:     -l*)
43427:       ac_ii=`echo $ac_i|cut -c 3-`
43428: 
43429: 
43430:   case $ac_ii in
43431:   c|c_r|pthread*) ;;
43432:   *)
43433:     if test "$ext_shared" = "yes"; then
43434:         LDFLAGS="$LDFLAGS -l$ac_ii"
43435:     else
43436: 
43437: 
43438:   case $ac_ii in
43439:   c|c_r|pthread*) ;;
43440:   *)
43441:       LIBS="$LIBS -l$ac_ii"
43442:    ;;
43443:   esac
43444: 
43445: 
43446:     fi
43447:    ;;
43448:   esac
43449: 
43450: 
43451:     ;;
43452:     -L*)
43453:       ac_ii=`echo $ac_i|cut -c 3-`
43454: 
43455:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
43456: 
43457:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
43458:     ai_p=$ac_ii
43459:   else
43460: 
43461:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
43462: 
43463:     ep_realdir=`(cd "$ep_dir" && pwd)`
43464:     ai_p="$ep_realdir"/`basename "$ac_ii"`
43465:   fi
43466: 
43467: 
43468:       if test "$ext_shared" = "yes"; then
43469:         LDFLAGS="-L$ai_p $LDFLAGS"
43470:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
43471:       else
43472: 
43473: 
43474: 
43475:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
43476: 
43477:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
43478:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
43479:     eval "LIBPATH$unique=set"
43480: 
43481:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
43482:     LDFLAGS="$LDFLAGS -L$ai_p"
43483:     PHP_RPATHS="$PHP_RPATHS $ai_p"
43484: 
43485:   fi
43486: 
43487: 
43488:       fi
43489: 
43490:   fi
43491: 
43492:     ;;
43493:     esac
43494:   done
43495: 
43496:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageEllipse in -lgd" >&5
43497: $as_echo_n "checking for gdImageEllipse in -lgd... " >&6; }
43498: if ${ac_cv_lib_gd_gdImageEllipse+:} false; then :
43499:   $as_echo_n "(cached) " >&6
43500: else
43501:   ac_check_lib_save_LIBS=$LIBS
43502: LIBS="-lgd  $LIBS"
43503: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43504: /* end confdefs.h.  */
43505: 
43506: /* Override any GCC internal prototype to avoid an error.
43507:    Use char because int might match the return type of a GCC
43508:    builtin and then its argument prototype would still apply.  */
43509: #ifdef __cplusplus
43510: extern "C"
43511: #endif
43512: char gdImageEllipse ();
43513: int
43514: main ()
43515: {
43516: return gdImageEllipse ();
43517:   ;
43518:   return 0;
43519: }
43520: _ACEOF
43521: if ac_fn_c_try_link "$LINENO"; then :
43522:   ac_cv_lib_gd_gdImageEllipse=yes
43523: else
43524:   ac_cv_lib_gd_gdImageEllipse=no
43525: fi
43526: rm -f core conftest.err conftest.$ac_objext \
43527:     conftest$ac_exeext conftest.$ac_ext
43528: LIBS=$ac_check_lib_save_LIBS
43529: fi
43530: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageEllipse" >&5
43531: $as_echo "$ac_cv_lib_gd_gdImageEllipse" >&6; }
43532: if test "x$ac_cv_lib_gd_gdImageEllipse" = xyes; then :
43533: 
43534:     LDFLAGS=$save_old_LDFLAGS
43535:     ext_shared=$save_ext_shared
43536: 
43537: $as_echo "#define HAVE_GD_IMAGEELLIPSE 1" >>confdefs.h
43538: 
43539: 
43540: else
43541: 
43542:     LDFLAGS=$save_old_LDFLAGS
43543:     ext_shared=$save_ext_shared
43544:     unset ac_cv_lib_gd_gdImageEllipse
43545: 
43546: 
43547: fi
43548: 
43549: 
43550:   save_old_LDFLAGS=$LDFLAGS
43551:   ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
43552: 
43553:   save_ext_shared=$ext_shared
43554:   ext_shared=yes
43555: 
43556:   for ac_i in $ac_stuff; do
43557:     case $ac_i in
43558:     -pthread)
43559:       if test "$ext_shared" = "yes"; then
43560:         LDFLAGS="$LDFLAGS -pthread"
43561:       else
43562: 
43563: 
43564:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
43565: 
43566:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
43567:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
43568:     eval "EXTRA_LDFLAGS$unique=set"
43569:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
43570:   fi
43571: 
43572:       fi
43573:     ;;
43574:     -l*)
43575:       ac_ii=`echo $ac_i|cut -c 3-`
43576: 
43577: 
43578:   case $ac_ii in
43579:   c|c_r|pthread*) ;;
43580:   *)
43581:     if test "$ext_shared" = "yes"; then
43582:         LDFLAGS="$LDFLAGS -l$ac_ii"
43583:     else
43584: 
43585: 
43586:   case $ac_ii in
43587:   c|c_r|pthread*) ;;
43588:   *)
43589:       LIBS="$LIBS -l$ac_ii"
43590:    ;;
43591:   esac
43592: 
43593: 
43594:     fi
43595:    ;;
43596:   esac
43597: 
43598: 
43599:     ;;
43600:     -L*)
43601:       ac_ii=`echo $ac_i|cut -c 3-`
43602: 
43603:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
43604: 
43605:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
43606:     ai_p=$ac_ii
43607:   else
43608: 
43609:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
43610: 
43611:     ep_realdir=`(cd "$ep_dir" && pwd)`
43612:     ai_p="$ep_realdir"/`basename "$ac_ii"`
43613:   fi
43614: 
43615: 
43616:       if test "$ext_shared" = "yes"; then
43617:         LDFLAGS="-L$ai_p $LDFLAGS"
43618:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
43619:       else
43620: 
43621: 
43622: 
43623:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
43624: 
43625:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
43626:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
43627:     eval "LIBPATH$unique=set"
43628: 
43629:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
43630:     LDFLAGS="$LDFLAGS -L$ai_p"
43631:     PHP_RPATHS="$PHP_RPATHS $ai_p"
43632: 
43633:   fi
43634: 
43635: 
43636:       fi
43637: 
43638:   fi
43639: 
43640:     ;;
43641:     esac
43642:   done
43643: 
43644:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageSetBrush in -lgd" >&5
43645: $as_echo_n "checking for gdImageSetBrush in -lgd... " >&6; }
43646: if ${ac_cv_lib_gd_gdImageSetBrush+:} false; then :
43647:   $as_echo_n "(cached) " >&6
43648: else
43649:   ac_check_lib_save_LIBS=$LIBS
43650: LIBS="-lgd  $LIBS"
43651: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43652: /* end confdefs.h.  */
43653: 
43654: /* Override any GCC internal prototype to avoid an error.
43655:    Use char because int might match the return type of a GCC
43656:    builtin and then its argument prototype would still apply.  */
43657: #ifdef __cplusplus
43658: extern "C"
43659: #endif
43660: char gdImageSetBrush ();
43661: int
43662: main ()
43663: {
43664: return gdImageSetBrush ();
43665:   ;
43666:   return 0;
43667: }
43668: _ACEOF
43669: if ac_fn_c_try_link "$LINENO"; then :
43670:   ac_cv_lib_gd_gdImageSetBrush=yes
43671: else
43672:   ac_cv_lib_gd_gdImageSetBrush=no
43673: fi
43674: rm -f core conftest.err conftest.$ac_objext \
43675:     conftest$ac_exeext conftest.$ac_ext
43676: LIBS=$ac_check_lib_save_LIBS
43677: fi
43678: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageSetBrush" >&5
43679: $as_echo "$ac_cv_lib_gd_gdImageSetBrush" >&6; }
43680: if test "x$ac_cv_lib_gd_gdImageSetBrush" = xyes; then :
43681: 
43682:     LDFLAGS=$save_old_LDFLAGS
43683:     ext_shared=$save_ext_shared
43684: 
43685: $as_echo "#define HAVE_GD_IMAGESETBRUSH 1" >>confdefs.h
43686: 
43687: 
43688: else
43689: 
43690:     LDFLAGS=$save_old_LDFLAGS
43691:     ext_shared=$save_ext_shared
43692:     unset ac_cv_lib_gd_gdImageSetBrush
43693: 
43694: 
43695: fi
43696: 
43697: 
43698:   save_old_LDFLAGS=$LDFLAGS
43699:   ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
43700: 
43701:   save_ext_shared=$ext_shared
43702:   ext_shared=yes
43703: 
43704:   for ac_i in $ac_stuff; do
43705:     case $ac_i in
43706:     -pthread)
43707:       if test "$ext_shared" = "yes"; then
43708:         LDFLAGS="$LDFLAGS -pthread"
43709:       else
43710: 
43711: 
43712:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
43713: 
43714:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
43715:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
43716:     eval "EXTRA_LDFLAGS$unique=set"
43717:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
43718:   fi
43719: 
43720:       fi
43721:     ;;
43722:     -l*)
43723:       ac_ii=`echo $ac_i|cut -c 3-`
43724: 
43725: 
43726:   case $ac_ii in
43727:   c|c_r|pthread*) ;;
43728:   *)
43729:     if test "$ext_shared" = "yes"; then
43730:         LDFLAGS="$LDFLAGS -l$ac_ii"
43731:     else
43732: 
43733: 
43734:   case $ac_ii in
43735:   c|c_r|pthread*) ;;
43736:   *)
43737:       LIBS="$LIBS -l$ac_ii"
43738:    ;;
43739:   esac
43740: 
43741: 
43742:     fi
43743:    ;;
43744:   esac
43745: 
43746: 
43747:     ;;
43748:     -L*)
43749:       ac_ii=`echo $ac_i|cut -c 3-`
43750: 
43751:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
43752: 
43753:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
43754:     ai_p=$ac_ii
43755:   else
43756: 
43757:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
43758: 
43759:     ep_realdir=`(cd "$ep_dir" && pwd)`
43760:     ai_p="$ep_realdir"/`basename "$ac_ii"`
43761:   fi
43762: 
43763: 
43764:       if test "$ext_shared" = "yes"; then
43765:         LDFLAGS="-L$ai_p $LDFLAGS"
43766:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
43767:       else
43768: 
43769: 
43770: 
43771:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
43772: 
43773:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
43774:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
43775:     eval "LIBPATH$unique=set"
43776: 
43777:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
43778:     LDFLAGS="$LDFLAGS -L$ai_p"
43779:     PHP_RPATHS="$PHP_RPATHS $ai_p"
43780: 
43781:   fi
43782: 
43783: 
43784:       fi
43785: 
43786:   fi
43787: 
43788:     ;;
43789:     esac
43790:   done
43791: 
43792:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageStringTTF in -lgd" >&5
43793: $as_echo_n "checking for gdImageStringTTF in -lgd... " >&6; }
43794: if ${ac_cv_lib_gd_gdImageStringTTF+:} false; then :
43795:   $as_echo_n "(cached) " >&6
43796: else
43797:   ac_check_lib_save_LIBS=$LIBS
43798: LIBS="-lgd  $LIBS"
43799: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43800: /* end confdefs.h.  */
43801: 
43802: /* Override any GCC internal prototype to avoid an error.
43803:    Use char because int might match the return type of a GCC
43804:    builtin and then its argument prototype would still apply.  */
43805: #ifdef __cplusplus
43806: extern "C"
43807: #endif
43808: char gdImageStringTTF ();
43809: int
43810: main ()
43811: {
43812: return gdImageStringTTF ();
43813:   ;
43814:   return 0;
43815: }
43816: _ACEOF
43817: if ac_fn_c_try_link "$LINENO"; then :
43818:   ac_cv_lib_gd_gdImageStringTTF=yes
43819: else
43820:   ac_cv_lib_gd_gdImageStringTTF=no
43821: fi
43822: rm -f core conftest.err conftest.$ac_objext \
43823:     conftest$ac_exeext conftest.$ac_ext
43824: LIBS=$ac_check_lib_save_LIBS
43825: fi
43826: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageStringTTF" >&5
43827: $as_echo "$ac_cv_lib_gd_gdImageStringTTF" >&6; }
43828: if test "x$ac_cv_lib_gd_gdImageStringTTF" = xyes; then :
43829: 
43830:     LDFLAGS=$save_old_LDFLAGS
43831:     ext_shared=$save_ext_shared
43832: 
43833: $as_echo "#define HAVE_GD_STRINGTTF 1" >>confdefs.h
43834: 
43835: 
43836: else
43837: 
43838:     LDFLAGS=$save_old_LDFLAGS
43839:     ext_shared=$save_ext_shared
43840:     unset ac_cv_lib_gd_gdImageStringTTF
43841: 
43842: 
43843: fi
43844: 
43845: 
43846:   save_old_LDFLAGS=$LDFLAGS
43847:   ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
43848: 
43849:   save_ext_shared=$ext_shared
43850:   ext_shared=yes
43851: 
43852:   for ac_i in $ac_stuff; do
43853:     case $ac_i in
43854:     -pthread)
43855:       if test "$ext_shared" = "yes"; then
43856:         LDFLAGS="$LDFLAGS -pthread"
43857:       else
43858: 
43859: 
43860:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
43861: 
43862:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
43863:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
43864:     eval "EXTRA_LDFLAGS$unique=set"
43865:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
43866:   fi
43867: 
43868:       fi
43869:     ;;
43870:     -l*)
43871:       ac_ii=`echo $ac_i|cut -c 3-`
43872: 
43873: 
43874:   case $ac_ii in
43875:   c|c_r|pthread*) ;;
43876:   *)
43877:     if test "$ext_shared" = "yes"; then
43878:         LDFLAGS="$LDFLAGS -l$ac_ii"
43879:     else
43880: 
43881: 
43882:   case $ac_ii in
43883:   c|c_r|pthread*) ;;
43884:   *)
43885:       LIBS="$LIBS -l$ac_ii"
43886:    ;;
43887:   esac
43888: 
43889: 
43890:     fi
43891:    ;;
43892:   esac
43893: 
43894: 
43895:     ;;
43896:     -L*)
43897:       ac_ii=`echo $ac_i|cut -c 3-`
43898: 
43899:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
43900: 
43901:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
43902:     ai_p=$ac_ii
43903:   else
43904: 
43905:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
43906: 
43907:     ep_realdir=`(cd "$ep_dir" && pwd)`
43908:     ai_p="$ep_realdir"/`basename "$ac_ii"`
43909:   fi
43910: 
43911: 
43912:       if test "$ext_shared" = "yes"; then
43913:         LDFLAGS="-L$ai_p $LDFLAGS"
43914:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
43915:       else
43916: 
43917: 
43918: 
43919:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
43920: 
43921:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
43922:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
43923:     eval "LIBPATH$unique=set"
43924: 
43925:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
43926:     LDFLAGS="$LDFLAGS -L$ai_p"
43927:     PHP_RPATHS="$PHP_RPATHS $ai_p"
43928: 
43929:   fi
43930: 
43931: 
43932:       fi
43933: 
43934:   fi
43935: 
43936:     ;;
43937:     esac
43938:   done
43939: 
43940:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageStringFT in -lgd" >&5
43941: $as_echo_n "checking for gdImageStringFT in -lgd... " >&6; }
43942: if ${ac_cv_lib_gd_gdImageStringFT+:} false; then :
43943:   $as_echo_n "(cached) " >&6
43944: else
43945:   ac_check_lib_save_LIBS=$LIBS
43946: LIBS="-lgd  $LIBS"
43947: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43948: /* end confdefs.h.  */
43949: 
43950: /* Override any GCC internal prototype to avoid an error.
43951:    Use char because int might match the return type of a GCC
43952:    builtin and then its argument prototype would still apply.  */
43953: #ifdef __cplusplus
43954: extern "C"
43955: #endif
43956: char gdImageStringFT ();
43957: int
43958: main ()
43959: {
43960: return gdImageStringFT ();
43961:   ;
43962:   return 0;
43963: }
43964: _ACEOF
43965: if ac_fn_c_try_link "$LINENO"; then :
43966:   ac_cv_lib_gd_gdImageStringFT=yes
43967: else
43968:   ac_cv_lib_gd_gdImageStringFT=no
43969: fi
43970: rm -f core conftest.err conftest.$ac_objext \
43971:     conftest$ac_exeext conftest.$ac_ext
43972: LIBS=$ac_check_lib_save_LIBS
43973: fi
43974: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageStringFT" >&5
43975: $as_echo "$ac_cv_lib_gd_gdImageStringFT" >&6; }
43976: if test "x$ac_cv_lib_gd_gdImageStringFT" = xyes; then :
43977: 
43978:     LDFLAGS=$save_old_LDFLAGS
43979:     ext_shared=$save_ext_shared
43980: 
43981: $as_echo "#define HAVE_GD_STRINGFT 1" >>confdefs.h
43982: 
43983: 
43984: else
43985: 
43986:     LDFLAGS=$save_old_LDFLAGS
43987:     ext_shared=$save_ext_shared
43988:     unset ac_cv_lib_gd_gdImageStringFT
43989: 
43990: 
43991: fi
43992: 
43993: 
43994:   save_old_LDFLAGS=$LDFLAGS
43995:   ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
43996: 
43997:   save_ext_shared=$ext_shared
43998:   ext_shared=yes
43999: 
44000:   for ac_i in $ac_stuff; do
44001:     case $ac_i in
44002:     -pthread)
44003:       if test "$ext_shared" = "yes"; then
44004:         LDFLAGS="$LDFLAGS -pthread"
44005:       else
44006: 
44007: 
44008:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
44009: 
44010:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
44011:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
44012:     eval "EXTRA_LDFLAGS$unique=set"
44013:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
44014:   fi
44015: 
44016:       fi
44017:     ;;
44018:     -l*)
44019:       ac_ii=`echo $ac_i|cut -c 3-`
44020: 
44021: 
44022:   case $ac_ii in
44023:   c|c_r|pthread*) ;;
44024:   *)
44025:     if test "$ext_shared" = "yes"; then
44026:         LDFLAGS="$LDFLAGS -l$ac_ii"
44027:     else
44028: 
44029: 
44030:   case $ac_ii in
44031:   c|c_r|pthread*) ;;
44032:   *)
44033:       LIBS="$LIBS -l$ac_ii"
44034:    ;;
44035:   esac
44036: 
44037: 
44038:     fi
44039:    ;;
44040:   esac
44041: 
44042: 
44043:     ;;
44044:     -L*)
44045:       ac_ii=`echo $ac_i|cut -c 3-`
44046: 
44047:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
44048: 
44049:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
44050:     ai_p=$ac_ii
44051:   else
44052: 
44053:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
44054: 
44055:     ep_realdir=`(cd "$ep_dir" && pwd)`
44056:     ai_p="$ep_realdir"/`basename "$ac_ii"`
44057:   fi
44058: 
44059: 
44060:       if test "$ext_shared" = "yes"; then
44061:         LDFLAGS="-L$ai_p $LDFLAGS"
44062:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
44063:       else
44064: 
44065: 
44066: 
44067:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
44068: 
44069:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
44070:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
44071:     eval "LIBPATH$unique=set"
44072: 
44073:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
44074:     LDFLAGS="$LDFLAGS -L$ai_p"
44075:     PHP_RPATHS="$PHP_RPATHS $ai_p"
44076: 
44077:   fi
44078: 
44079: 
44080:       fi
44081: 
44082:   fi
44083: 
44084:     ;;
44085:     esac
44086:   done
44087: 
44088:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageStringFTEx in -lgd" >&5
44089: $as_echo_n "checking for gdImageStringFTEx in -lgd... " >&6; }
44090: if ${ac_cv_lib_gd_gdImageStringFTEx+:} false; then :
44091:   $as_echo_n "(cached) " >&6
44092: else
44093:   ac_check_lib_save_LIBS=$LIBS
44094: LIBS="-lgd  $LIBS"
44095: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44096: /* end confdefs.h.  */
44097: 
44098: /* Override any GCC internal prototype to avoid an error.
44099:    Use char because int might match the return type of a GCC
44100:    builtin and then its argument prototype would still apply.  */
44101: #ifdef __cplusplus
44102: extern "C"
44103: #endif
44104: char gdImageStringFTEx ();
44105: int
44106: main ()
44107: {
44108: return gdImageStringFTEx ();
44109:   ;
44110:   return 0;
44111: }
44112: _ACEOF
44113: if ac_fn_c_try_link "$LINENO"; then :
44114:   ac_cv_lib_gd_gdImageStringFTEx=yes
44115: else
44116:   ac_cv_lib_gd_gdImageStringFTEx=no
44117: fi
44118: rm -f core conftest.err conftest.$ac_objext \
44119:     conftest$ac_exeext conftest.$ac_ext
44120: LIBS=$ac_check_lib_save_LIBS
44121: fi
44122: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageStringFTEx" >&5
44123: $as_echo "$ac_cv_lib_gd_gdImageStringFTEx" >&6; }
44124: if test "x$ac_cv_lib_gd_gdImageStringFTEx" = xyes; then :
44125: 
44126:     LDFLAGS=$save_old_LDFLAGS
44127:     ext_shared=$save_ext_shared
44128: 
44129: $as_echo "#define HAVE_GD_STRINGFTEX 1" >>confdefs.h
44130: 
44131: 
44132: else
44133: 
44134:     LDFLAGS=$save_old_LDFLAGS
44135:     ext_shared=$save_ext_shared
44136:     unset ac_cv_lib_gd_gdImageStringFTEx
44137: 
44138: 
44139: fi
44140: 
44141: 
44142:   save_old_LDFLAGS=$LDFLAGS
44143:   ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
44144: 
44145:   save_ext_shared=$ext_shared
44146:   ext_shared=yes
44147: 
44148:   for ac_i in $ac_stuff; do
44149:     case $ac_i in
44150:     -pthread)
44151:       if test "$ext_shared" = "yes"; then
44152:         LDFLAGS="$LDFLAGS -pthread"
44153:       else
44154: 
44155: 
44156:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
44157: 
44158:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
44159:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
44160:     eval "EXTRA_LDFLAGS$unique=set"
44161:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
44162:   fi
44163: 
44164:       fi
44165:     ;;
44166:     -l*)
44167:       ac_ii=`echo $ac_i|cut -c 3-`
44168: 
44169: 
44170:   case $ac_ii in
44171:   c|c_r|pthread*) ;;
44172:   *)
44173:     if test "$ext_shared" = "yes"; then
44174:         LDFLAGS="$LDFLAGS -l$ac_ii"
44175:     else
44176: 
44177: 
44178:   case $ac_ii in
44179:   c|c_r|pthread*) ;;
44180:   *)
44181:       LIBS="$LIBS -l$ac_ii"
44182:    ;;
44183:   esac
44184: 
44185: 
44186:     fi
44187:    ;;
44188:   esac
44189: 
44190: 
44191:     ;;
44192:     -L*)
44193:       ac_ii=`echo $ac_i|cut -c 3-`
44194: 
44195:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
44196: 
44197:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
44198:     ai_p=$ac_ii
44199:   else
44200: 
44201:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
44202: 
44203:     ep_realdir=`(cd "$ep_dir" && pwd)`
44204:     ai_p="$ep_realdir"/`basename "$ac_ii"`
44205:   fi
44206: 
44207: 
44208:       if test "$ext_shared" = "yes"; then
44209:         LDFLAGS="-L$ai_p $LDFLAGS"
44210:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
44211:       else
44212: 
44213: 
44214: 
44215:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
44216: 
44217:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
44218:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
44219:     eval "LIBPATH$unique=set"
44220: 
44221:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
44222:     LDFLAGS="$LDFLAGS -L$ai_p"
44223:     PHP_RPATHS="$PHP_RPATHS $ai_p"
44224: 
44225:   fi
44226: 
44227: 
44228:       fi
44229: 
44230:   fi
44231: 
44232:     ;;
44233:     esac
44234:   done
44235: 
44236:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageColorClosestHWB in -lgd" >&5
44237: $as_echo_n "checking for gdImageColorClosestHWB in -lgd... " >&6; }
44238: if ${ac_cv_lib_gd_gdImageColorClosestHWB+:} false; then :
44239:   $as_echo_n "(cached) " >&6
44240: else
44241:   ac_check_lib_save_LIBS=$LIBS
44242: LIBS="-lgd  $LIBS"
44243: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44244: /* end confdefs.h.  */
44245: 
44246: /* Override any GCC internal prototype to avoid an error.
44247:    Use char because int might match the return type of a GCC
44248:    builtin and then its argument prototype would still apply.  */
44249: #ifdef __cplusplus
44250: extern "C"
44251: #endif
44252: char gdImageColorClosestHWB ();
44253: int
44254: main ()
44255: {
44256: return gdImageColorClosestHWB ();
44257:   ;
44258:   return 0;
44259: }
44260: _ACEOF
44261: if ac_fn_c_try_link "$LINENO"; then :
44262:   ac_cv_lib_gd_gdImageColorClosestHWB=yes
44263: else
44264:   ac_cv_lib_gd_gdImageColorClosestHWB=no
44265: fi
44266: rm -f core conftest.err conftest.$ac_objext \
44267:     conftest$ac_exeext conftest.$ac_ext
44268: LIBS=$ac_check_lib_save_LIBS
44269: fi
44270: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageColorClosestHWB" >&5
44271: $as_echo "$ac_cv_lib_gd_gdImageColorClosestHWB" >&6; }
44272: if test "x$ac_cv_lib_gd_gdImageColorClosestHWB" = xyes; then :
44273: 
44274:     LDFLAGS=$save_old_LDFLAGS
44275:     ext_shared=$save_ext_shared
44276: 
44277: $as_echo "#define HAVE_COLORCLOSESTHWB 1" >>confdefs.h
44278: 
44279: 
44280: else
44281: 
44282:     LDFLAGS=$save_old_LDFLAGS
44283:     ext_shared=$save_ext_shared
44284:     unset ac_cv_lib_gd_gdImageColorClosestHWB
44285: 
44286: 
44287: fi
44288: 
44289: 
44290:   save_old_LDFLAGS=$LDFLAGS
44291:   ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
44292: 
44293:   save_ext_shared=$ext_shared
44294:   ext_shared=yes
44295: 
44296:   for ac_i in $ac_stuff; do
44297:     case $ac_i in
44298:     -pthread)
44299:       if test "$ext_shared" = "yes"; then
44300:         LDFLAGS="$LDFLAGS -pthread"
44301:       else
44302: 
44303: 
44304:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
44305: 
44306:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
44307:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
44308:     eval "EXTRA_LDFLAGS$unique=set"
44309:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
44310:   fi
44311: 
44312:       fi
44313:     ;;
44314:     -l*)
44315:       ac_ii=`echo $ac_i|cut -c 3-`
44316: 
44317: 
44318:   case $ac_ii in
44319:   c|c_r|pthread*) ;;
44320:   *)
44321:     if test "$ext_shared" = "yes"; then
44322:         LDFLAGS="$LDFLAGS -l$ac_ii"
44323:     else
44324: 
44325: 
44326:   case $ac_ii in
44327:   c|c_r|pthread*) ;;
44328:   *)
44329:       LIBS="$LIBS -l$ac_ii"
44330:    ;;
44331:   esac
44332: 
44333: 
44334:     fi
44335:    ;;
44336:   esac
44337: 
44338: 
44339:     ;;
44340:     -L*)
44341:       ac_ii=`echo $ac_i|cut -c 3-`
44342: 
44343:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
44344: 
44345:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
44346:     ai_p=$ac_ii
44347:   else
44348: 
44349:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
44350: 
44351:     ep_realdir=`(cd "$ep_dir" && pwd)`
44352:     ai_p="$ep_realdir"/`basename "$ac_ii"`
44353:   fi
44354: 
44355: 
44356:       if test "$ext_shared" = "yes"; then
44357:         LDFLAGS="-L$ai_p $LDFLAGS"
44358:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
44359:       else
44360: 
44361: 
44362: 
44363:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
44364: 
44365:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
44366:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
44367:     eval "LIBPATH$unique=set"
44368: 
44369:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
44370:     LDFLAGS="$LDFLAGS -L$ai_p"
44371:     PHP_RPATHS="$PHP_RPATHS $ai_p"
44372: 
44373:   fi
44374: 
44375: 
44376:       fi
44377: 
44378:   fi
44379: 
44380:     ;;
44381:     esac
44382:   done
44383: 
44384:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageColorResolve in -lgd" >&5
44385: $as_echo_n "checking for gdImageColorResolve in -lgd... " >&6; }
44386: if ${ac_cv_lib_gd_gdImageColorResolve+:} false; then :
44387:   $as_echo_n "(cached) " >&6
44388: else
44389:   ac_check_lib_save_LIBS=$LIBS
44390: LIBS="-lgd  $LIBS"
44391: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44392: /* end confdefs.h.  */
44393: 
44394: /* Override any GCC internal prototype to avoid an error.
44395:    Use char because int might match the return type of a GCC
44396:    builtin and then its argument prototype would still apply.  */
44397: #ifdef __cplusplus
44398: extern "C"
44399: #endif
44400: char gdImageColorResolve ();
44401: int
44402: main ()
44403: {
44404: return gdImageColorResolve ();
44405:   ;
44406:   return 0;
44407: }
44408: _ACEOF
44409: if ac_fn_c_try_link "$LINENO"; then :
44410:   ac_cv_lib_gd_gdImageColorResolve=yes
44411: else
44412:   ac_cv_lib_gd_gdImageColorResolve=no
44413: fi
44414: rm -f core conftest.err conftest.$ac_objext \
44415:     conftest$ac_exeext conftest.$ac_ext
44416: LIBS=$ac_check_lib_save_LIBS
44417: fi
44418: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageColorResolve" >&5
44419: $as_echo "$ac_cv_lib_gd_gdImageColorResolve" >&6; }
44420: if test "x$ac_cv_lib_gd_gdImageColorResolve" = xyes; then :
44421: 
44422:     LDFLAGS=$save_old_LDFLAGS
44423:     ext_shared=$save_ext_shared
44424: 
44425: $as_echo "#define HAVE_GDIMAGECOLORRESOLVE 1" >>confdefs.h
44426: 
44427: 
44428: else
44429: 
44430:     LDFLAGS=$save_old_LDFLAGS
44431:     ext_shared=$save_ext_shared
44432:     unset ac_cv_lib_gd_gdImageColorResolve
44433: 
44434: 
44435: fi
44436: 
44437: 
44438:   save_old_LDFLAGS=$LDFLAGS
44439:   ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
44440: 
44441:   save_ext_shared=$ext_shared
44442:   ext_shared=yes
44443: 
44444:   for ac_i in $ac_stuff; do
44445:     case $ac_i in
44446:     -pthread)
44447:       if test "$ext_shared" = "yes"; then
44448:         LDFLAGS="$LDFLAGS -pthread"
44449:       else
44450: 
44451: 
44452:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
44453: 
44454:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
44455:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
44456:     eval "EXTRA_LDFLAGS$unique=set"
44457:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
44458:   fi
44459: 
44460:       fi
44461:     ;;
44462:     -l*)
44463:       ac_ii=`echo $ac_i|cut -c 3-`
44464: 
44465: 
44466:   case $ac_ii in
44467:   c|c_r|pthread*) ;;
44468:   *)
44469:     if test "$ext_shared" = "yes"; then
44470:         LDFLAGS="$LDFLAGS -l$ac_ii"
44471:     else
44472: 
44473: 
44474:   case $ac_ii in
44475:   c|c_r|pthread*) ;;
44476:   *)
44477:       LIBS="$LIBS -l$ac_ii"
44478:    ;;
44479:   esac
44480: 
44481: 
44482:     fi
44483:    ;;
44484:   esac
44485: 
44486: 
44487:     ;;
44488:     -L*)
44489:       ac_ii=`echo $ac_i|cut -c 3-`
44490: 
44491:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
44492: 
44493:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
44494:     ai_p=$ac_ii
44495:   else
44496: 
44497:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
44498: 
44499:     ep_realdir=`(cd "$ep_dir" && pwd)`
44500:     ai_p="$ep_realdir"/`basename "$ac_ii"`
44501:   fi
44502: 
44503: 
44504:       if test "$ext_shared" = "yes"; then
44505:         LDFLAGS="-L$ai_p $LDFLAGS"
44506:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
44507:       else
44508: 
44509: 
44510: 
44511:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
44512: 
44513:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
44514:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
44515:     eval "LIBPATH$unique=set"
44516: 
44517:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
44518:     LDFLAGS="$LDFLAGS -L$ai_p"
44519:     PHP_RPATHS="$PHP_RPATHS $ai_p"
44520: 
44521:   fi
44522: 
44523: 
44524:       fi
44525: 
44526:   fi
44527: 
44528:     ;;
44529:     esac
44530:   done
44531: 
44532:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageGifCtx in -lgd" >&5
44533: $as_echo_n "checking for gdImageGifCtx in -lgd... " >&6; }
44534: if ${ac_cv_lib_gd_gdImageGifCtx+:} false; then :
44535:   $as_echo_n "(cached) " >&6
44536: else
44537:   ac_check_lib_save_LIBS=$LIBS
44538: LIBS="-lgd  $LIBS"
44539: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44540: /* end confdefs.h.  */
44541: 
44542: /* Override any GCC internal prototype to avoid an error.
44543:    Use char because int might match the return type of a GCC
44544:    builtin and then its argument prototype would still apply.  */
44545: #ifdef __cplusplus
44546: extern "C"
44547: #endif
44548: char gdImageGifCtx ();
44549: int
44550: main ()
44551: {
44552: return gdImageGifCtx ();
44553:   ;
44554:   return 0;
44555: }
44556: _ACEOF
44557: if ac_fn_c_try_link "$LINENO"; then :
44558:   ac_cv_lib_gd_gdImageGifCtx=yes
44559: else
44560:   ac_cv_lib_gd_gdImageGifCtx=no
44561: fi
44562: rm -f core conftest.err conftest.$ac_objext \
44563:     conftest$ac_exeext conftest.$ac_ext
44564: LIBS=$ac_check_lib_save_LIBS
44565: fi
44566: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageGifCtx" >&5
44567: $as_echo "$ac_cv_lib_gd_gdImageGifCtx" >&6; }
44568: if test "x$ac_cv_lib_gd_gdImageGifCtx" = xyes; then :
44569: 
44570:     LDFLAGS=$save_old_LDFLAGS
44571:     ext_shared=$save_ext_shared
44572: 
44573: $as_echo "#define HAVE_GD_GIF_CTX 1" >>confdefs.h
44574: 
44575: 
44576: else
44577: 
44578:     LDFLAGS=$save_old_LDFLAGS
44579:     ext_shared=$save_ext_shared
44580:     unset ac_cv_lib_gd_gdImageGifCtx
44581: 
44582: 
44583: fi
44584: 
44585: 
44586:   save_old_LDFLAGS=$LDFLAGS
44587:   ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
44588: 
44589:   save_ext_shared=$ext_shared
44590:   ext_shared=yes
44591: 
44592:   for ac_i in $ac_stuff; do
44593:     case $ac_i in
44594:     -pthread)
44595:       if test "$ext_shared" = "yes"; then
44596:         LDFLAGS="$LDFLAGS -pthread"
44597:       else
44598: 
44599: 
44600:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
44601: 
44602:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
44603:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
44604:     eval "EXTRA_LDFLAGS$unique=set"
44605:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
44606:   fi
44607: 
44608:       fi
44609:     ;;
44610:     -l*)
44611:       ac_ii=`echo $ac_i|cut -c 3-`
44612: 
44613: 
44614:   case $ac_ii in
44615:   c|c_r|pthread*) ;;
44616:   *)
44617:     if test "$ext_shared" = "yes"; then
44618:         LDFLAGS="$LDFLAGS -l$ac_ii"
44619:     else
44620: 
44621: 
44622:   case $ac_ii in
44623:   c|c_r|pthread*) ;;
44624:   *)
44625:       LIBS="$LIBS -l$ac_ii"
44626:    ;;
44627:   esac
44628: 
44629: 
44630:     fi
44631:    ;;
44632:   esac
44633: 
44634: 
44635:     ;;
44636:     -L*)
44637:       ac_ii=`echo $ac_i|cut -c 3-`
44638: 
44639:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
44640: 
44641:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
44642:     ai_p=$ac_ii
44643:   else
44644: 
44645:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
44646: 
44647:     ep_realdir=`(cd "$ep_dir" && pwd)`
44648:     ai_p="$ep_realdir"/`basename "$ac_ii"`
44649:   fi
44650: 
44651: 
44652:       if test "$ext_shared" = "yes"; then
44653:         LDFLAGS="-L$ai_p $LDFLAGS"
44654:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
44655:       else
44656: 
44657: 
44658: 
44659:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
44660: 
44661:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
44662:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
44663:     eval "LIBPATH$unique=set"
44664: 
44665:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
44666:     LDFLAGS="$LDFLAGS -L$ai_p"
44667:     PHP_RPATHS="$PHP_RPATHS $ai_p"
44668: 
44669:   fi
44670: 
44671: 
44672:       fi
44673: 
44674:   fi
44675: 
44676:     ;;
44677:     esac
44678:   done
44679: 
44680:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdCacheCreate in -lgd" >&5
44681: $as_echo_n "checking for gdCacheCreate in -lgd... " >&6; }
44682: if ${ac_cv_lib_gd_gdCacheCreate+:} false; then :
44683:   $as_echo_n "(cached) " >&6
44684: else
44685:   ac_check_lib_save_LIBS=$LIBS
44686: LIBS="-lgd  $LIBS"
44687: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44688: /* end confdefs.h.  */
44689: 
44690: /* Override any GCC internal prototype to avoid an error.
44691:    Use char because int might match the return type of a GCC
44692:    builtin and then its argument prototype would still apply.  */
44693: #ifdef __cplusplus
44694: extern "C"
44695: #endif
44696: char gdCacheCreate ();
44697: int
44698: main ()
44699: {
44700: return gdCacheCreate ();
44701:   ;
44702:   return 0;
44703: }
44704: _ACEOF
44705: if ac_fn_c_try_link "$LINENO"; then :
44706:   ac_cv_lib_gd_gdCacheCreate=yes
44707: else
44708:   ac_cv_lib_gd_gdCacheCreate=no
44709: fi
44710: rm -f core conftest.err conftest.$ac_objext \
44711:     conftest$ac_exeext conftest.$ac_ext
44712: LIBS=$ac_check_lib_save_LIBS
44713: fi
44714: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdCacheCreate" >&5
44715: $as_echo "$ac_cv_lib_gd_gdCacheCreate" >&6; }
44716: if test "x$ac_cv_lib_gd_gdCacheCreate" = xyes; then :
44717: 
44718:     LDFLAGS=$save_old_LDFLAGS
44719:     ext_shared=$save_ext_shared
44720: 
44721: $as_echo "#define HAVE_GD_CACHE_CREATE 1" >>confdefs.h
44722: 
44723: 
44724: else
44725: 
44726:     LDFLAGS=$save_old_LDFLAGS
44727:     ext_shared=$save_ext_shared
44728:     unset ac_cv_lib_gd_gdCacheCreate
44729: 
44730: 
44731: fi
44732: 
44733: 
44734:   save_old_LDFLAGS=$LDFLAGS
44735:   ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
44736: 
44737:   save_ext_shared=$ext_shared
44738:   ext_shared=yes
44739: 
44740:   for ac_i in $ac_stuff; do
44741:     case $ac_i in
44742:     -pthread)
44743:       if test "$ext_shared" = "yes"; then
44744:         LDFLAGS="$LDFLAGS -pthread"
44745:       else
44746: 
44747: 
44748:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
44749: 
44750:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
44751:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
44752:     eval "EXTRA_LDFLAGS$unique=set"
44753:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
44754:   fi
44755: 
44756:       fi
44757:     ;;
44758:     -l*)
44759:       ac_ii=`echo $ac_i|cut -c 3-`
44760: 
44761: 
44762:   case $ac_ii in
44763:   c|c_r|pthread*) ;;
44764:   *)
44765:     if test "$ext_shared" = "yes"; then
44766:         LDFLAGS="$LDFLAGS -l$ac_ii"
44767:     else
44768: 
44769: 
44770:   case $ac_ii in
44771:   c|c_r|pthread*) ;;
44772:   *)
44773:       LIBS="$LIBS -l$ac_ii"
44774:    ;;
44775:   esac
44776: 
44777: 
44778:     fi
44779:    ;;
44780:   esac
44781: 
44782: 
44783:     ;;
44784:     -L*)
44785:       ac_ii=`echo $ac_i|cut -c 3-`
44786: 
44787:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
44788: 
44789:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
44790:     ai_p=$ac_ii
44791:   else
44792: 
44793:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
44794: 
44795:     ep_realdir=`(cd "$ep_dir" && pwd)`
44796:     ai_p="$ep_realdir"/`basename "$ac_ii"`
44797:   fi
44798: 
44799: 
44800:       if test "$ext_shared" = "yes"; then
44801:         LDFLAGS="-L$ai_p $LDFLAGS"
44802:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
44803:       else
44804: 
44805: 
44806: 
44807:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
44808: 
44809:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
44810:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
44811:     eval "LIBPATH$unique=set"
44812: 
44813:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
44814:     LDFLAGS="$LDFLAGS -L$ai_p"
44815:     PHP_RPATHS="$PHP_RPATHS $ai_p"
44816: 
44817:   fi
44818: 
44819: 
44820:       fi
44821: 
44822:   fi
44823: 
44824:     ;;
44825:     esac
44826:   done
44827: 
44828:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdFontCacheShutdown in -lgd" >&5
44829: $as_echo_n "checking for gdFontCacheShutdown in -lgd... " >&6; }
44830: if ${ac_cv_lib_gd_gdFontCacheShutdown+:} false; then :
44831:   $as_echo_n "(cached) " >&6
44832: else
44833:   ac_check_lib_save_LIBS=$LIBS
44834: LIBS="-lgd  $LIBS"
44835: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44836: /* end confdefs.h.  */
44837: 
44838: /* Override any GCC internal prototype to avoid an error.
44839:    Use char because int might match the return type of a GCC
44840:    builtin and then its argument prototype would still apply.  */
44841: #ifdef __cplusplus
44842: extern "C"
44843: #endif
44844: char gdFontCacheShutdown ();
44845: int
44846: main ()
44847: {
44848: return gdFontCacheShutdown ();
44849:   ;
44850:   return 0;
44851: }
44852: _ACEOF
44853: if ac_fn_c_try_link "$LINENO"; then :
44854:   ac_cv_lib_gd_gdFontCacheShutdown=yes
44855: else
44856:   ac_cv_lib_gd_gdFontCacheShutdown=no
44857: fi
44858: rm -f core conftest.err conftest.$ac_objext \
44859:     conftest$ac_exeext conftest.$ac_ext
44860: LIBS=$ac_check_lib_save_LIBS
44861: fi
44862: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdFontCacheShutdown" >&5
44863: $as_echo "$ac_cv_lib_gd_gdFontCacheShutdown" >&6; }
44864: if test "x$ac_cv_lib_gd_gdFontCacheShutdown" = xyes; then :
44865: 
44866:     LDFLAGS=$save_old_LDFLAGS
44867:     ext_shared=$save_ext_shared
44868: 
44869: $as_echo "#define HAVE_GD_FONTCACHESHUTDOWN 1" >>confdefs.h
44870: 
44871: 
44872: else
44873: 
44874:     LDFLAGS=$save_old_LDFLAGS
44875:     ext_shared=$save_ext_shared
44876:     unset ac_cv_lib_gd_gdFontCacheShutdown
44877: 
44878: 
44879: fi
44880: 
44881: 
44882:   save_old_LDFLAGS=$LDFLAGS
44883:   ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
44884: 
44885:   save_ext_shared=$ext_shared
44886:   ext_shared=yes
44887: 
44888:   for ac_i in $ac_stuff; do
44889:     case $ac_i in
44890:     -pthread)
44891:       if test "$ext_shared" = "yes"; then
44892:         LDFLAGS="$LDFLAGS -pthread"
44893:       else
44894: 
44895: 
44896:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
44897: 
44898:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
44899:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
44900:     eval "EXTRA_LDFLAGS$unique=set"
44901:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
44902:   fi
44903: 
44904:       fi
44905:     ;;
44906:     -l*)
44907:       ac_ii=`echo $ac_i|cut -c 3-`
44908: 
44909: 
44910:   case $ac_ii in
44911:   c|c_r|pthread*) ;;
44912:   *)
44913:     if test "$ext_shared" = "yes"; then
44914:         LDFLAGS="$LDFLAGS -l$ac_ii"
44915:     else
44916: 
44917: 
44918:   case $ac_ii in
44919:   c|c_r|pthread*) ;;
44920:   *)
44921:       LIBS="$LIBS -l$ac_ii"
44922:    ;;
44923:   esac
44924: 
44925: 
44926:     fi
44927:    ;;
44928:   esac
44929: 
44930: 
44931:     ;;
44932:     -L*)
44933:       ac_ii=`echo $ac_i|cut -c 3-`
44934: 
44935:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
44936: 
44937:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
44938:     ai_p=$ac_ii
44939:   else
44940: 
44941:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
44942: 
44943:     ep_realdir=`(cd "$ep_dir" && pwd)`
44944:     ai_p="$ep_realdir"/`basename "$ac_ii"`
44945:   fi
44946: 
44947: 
44948:       if test "$ext_shared" = "yes"; then
44949:         LDFLAGS="-L$ai_p $LDFLAGS"
44950:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
44951:       else
44952: 
44953: 
44954: 
44955:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
44956: 
44957:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
44958:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
44959:     eval "LIBPATH$unique=set"
44960: 
44961:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
44962:     LDFLAGS="$LDFLAGS -L$ai_p"
44963:     PHP_RPATHS="$PHP_RPATHS $ai_p"
44964: 
44965:   fi
44966: 
44967: 
44968:       fi
44969: 
44970:   fi
44971: 
44972:     ;;
44973:     esac
44974:   done
44975: 
44976:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdFreeFontCache in -lgd" >&5
44977: $as_echo_n "checking for gdFreeFontCache in -lgd... " >&6; }
44978: if ${ac_cv_lib_gd_gdFreeFontCache+:} false; then :
44979:   $as_echo_n "(cached) " >&6
44980: else
44981:   ac_check_lib_save_LIBS=$LIBS
44982: LIBS="-lgd  $LIBS"
44983: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44984: /* end confdefs.h.  */
44985: 
44986: /* Override any GCC internal prototype to avoid an error.
44987:    Use char because int might match the return type of a GCC
44988:    builtin and then its argument prototype would still apply.  */
44989: #ifdef __cplusplus
44990: extern "C"
44991: #endif
44992: char gdFreeFontCache ();
44993: int
44994: main ()
44995: {
44996: return gdFreeFontCache ();
44997:   ;
44998:   return 0;
44999: }
45000: _ACEOF
45001: if ac_fn_c_try_link "$LINENO"; then :
45002:   ac_cv_lib_gd_gdFreeFontCache=yes
45003: else
45004:   ac_cv_lib_gd_gdFreeFontCache=no
45005: fi
45006: rm -f core conftest.err conftest.$ac_objext \
45007:     conftest$ac_exeext conftest.$ac_ext
45008: LIBS=$ac_check_lib_save_LIBS
45009: fi
45010: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdFreeFontCache" >&5
45011: $as_echo "$ac_cv_lib_gd_gdFreeFontCache" >&6; }
45012: if test "x$ac_cv_lib_gd_gdFreeFontCache" = xyes; then :
45013: 
45014:     LDFLAGS=$save_old_LDFLAGS
45015:     ext_shared=$save_ext_shared
45016: 
45017: $as_echo "#define HAVE_GD_FREEFONTCACHE 1" >>confdefs.h
45018: 
45019: 
45020: else
45021: 
45022:     LDFLAGS=$save_old_LDFLAGS
45023:     ext_shared=$save_ext_shared
45024:     unset ac_cv_lib_gd_gdFreeFontCache
45025: 
45026: 
45027: fi
45028: 
45029: 
45030:   save_old_LDFLAGS=$LDFLAGS
45031:   ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
45032: 
45033:   save_ext_shared=$ext_shared
45034:   ext_shared=yes
45035: 
45036:   for ac_i in $ac_stuff; do
45037:     case $ac_i in
45038:     -pthread)
45039:       if test "$ext_shared" = "yes"; then
45040:         LDFLAGS="$LDFLAGS -pthread"
45041:       else
45042: 
45043: 
45044:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
45045: 
45046:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
45047:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
45048:     eval "EXTRA_LDFLAGS$unique=set"
45049:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
45050:   fi
45051: 
45052:       fi
45053:     ;;
45054:     -l*)
45055:       ac_ii=`echo $ac_i|cut -c 3-`
45056: 
45057: 
45058:   case $ac_ii in
45059:   c|c_r|pthread*) ;;
45060:   *)
45061:     if test "$ext_shared" = "yes"; then
45062:         LDFLAGS="$LDFLAGS -l$ac_ii"
45063:     else
45064: 
45065: 
45066:   case $ac_ii in
45067:   c|c_r|pthread*) ;;
45068:   *)
45069:       LIBS="$LIBS -l$ac_ii"
45070:    ;;
45071:   esac
45072: 
45073: 
45074:     fi
45075:    ;;
45076:   esac
45077: 
45078: 
45079:     ;;
45080:     -L*)
45081:       ac_ii=`echo $ac_i|cut -c 3-`
45082: 
45083:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
45084: 
45085:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
45086:     ai_p=$ac_ii
45087:   else
45088: 
45089:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
45090: 
45091:     ep_realdir=`(cd "$ep_dir" && pwd)`
45092:     ai_p="$ep_realdir"/`basename "$ac_ii"`
45093:   fi
45094: 
45095: 
45096:       if test "$ext_shared" = "yes"; then
45097:         LDFLAGS="-L$ai_p $LDFLAGS"
45098:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
45099:       else
45100: 
45101: 
45102: 
45103:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
45104: 
45105:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
45106:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
45107:     eval "LIBPATH$unique=set"
45108: 
45109:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
45110:     LDFLAGS="$LDFLAGS -L$ai_p"
45111:     PHP_RPATHS="$PHP_RPATHS $ai_p"
45112: 
45113:   fi
45114: 
45115: 
45116:       fi
45117: 
45118:   fi
45119: 
45120:     ;;
45121:     esac
45122:   done
45123: 
45124:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdFontCacheMutexSetup in -lgd" >&5
45125: $as_echo_n "checking for gdFontCacheMutexSetup in -lgd... " >&6; }
45126: if ${ac_cv_lib_gd_gdFontCacheMutexSetup+:} false; then :
45127:   $as_echo_n "(cached) " >&6
45128: else
45129:   ac_check_lib_save_LIBS=$LIBS
45130: LIBS="-lgd  $LIBS"
45131: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45132: /* end confdefs.h.  */
45133: 
45134: /* Override any GCC internal prototype to avoid an error.
45135:    Use char because int might match the return type of a GCC
45136:    builtin and then its argument prototype would still apply.  */
45137: #ifdef __cplusplus
45138: extern "C"
45139: #endif
45140: char gdFontCacheMutexSetup ();
45141: int
45142: main ()
45143: {
45144: return gdFontCacheMutexSetup ();
45145:   ;
45146:   return 0;
45147: }
45148: _ACEOF
45149: if ac_fn_c_try_link "$LINENO"; then :
45150:   ac_cv_lib_gd_gdFontCacheMutexSetup=yes
45151: else
45152:   ac_cv_lib_gd_gdFontCacheMutexSetup=no
45153: fi
45154: rm -f core conftest.err conftest.$ac_objext \
45155:     conftest$ac_exeext conftest.$ac_ext
45156: LIBS=$ac_check_lib_save_LIBS
45157: fi
45158: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdFontCacheMutexSetup" >&5
45159: $as_echo "$ac_cv_lib_gd_gdFontCacheMutexSetup" >&6; }
45160: if test "x$ac_cv_lib_gd_gdFontCacheMutexSetup" = xyes; then :
45161: 
45162:     LDFLAGS=$save_old_LDFLAGS
45163:     ext_shared=$save_ext_shared
45164: 
45165: $as_echo "#define HAVE_GD_FONTMUTEX 1" >>confdefs.h
45166: 
45167: 
45168: else
45169: 
45170:     LDFLAGS=$save_old_LDFLAGS
45171:     ext_shared=$save_ext_shared
45172:     unset ac_cv_lib_gd_gdFontCacheMutexSetup
45173: 
45174: 
45175: fi
45176: 
45177: 
45178:   save_old_LDFLAGS=$LDFLAGS
45179:   ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
45180: 
45181:   save_ext_shared=$ext_shared
45182:   ext_shared=yes
45183: 
45184:   for ac_i in $ac_stuff; do
45185:     case $ac_i in
45186:     -pthread)
45187:       if test "$ext_shared" = "yes"; then
45188:         LDFLAGS="$LDFLAGS -pthread"
45189:       else
45190: 
45191: 
45192:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
45193: 
45194:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
45195:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
45196:     eval "EXTRA_LDFLAGS$unique=set"
45197:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
45198:   fi
45199: 
45200:       fi
45201:     ;;
45202:     -l*)
45203:       ac_ii=`echo $ac_i|cut -c 3-`
45204: 
45205: 
45206:   case $ac_ii in
45207:   c|c_r|pthread*) ;;
45208:   *)
45209:     if test "$ext_shared" = "yes"; then
45210:         LDFLAGS="$LDFLAGS -l$ac_ii"
45211:     else
45212: 
45213: 
45214:   case $ac_ii in
45215:   c|c_r|pthread*) ;;
45216:   *)
45217:       LIBS="$LIBS -l$ac_ii"
45218:    ;;
45219:   esac
45220: 
45221: 
45222:     fi
45223:    ;;
45224:   esac
45225: 
45226: 
45227:     ;;
45228:     -L*)
45229:       ac_ii=`echo $ac_i|cut -c 3-`
45230: 
45231:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
45232: 
45233:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
45234:     ai_p=$ac_ii
45235:   else
45236: 
45237:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
45238: 
45239:     ep_realdir=`(cd "$ep_dir" && pwd)`
45240:     ai_p="$ep_realdir"/`basename "$ac_ii"`
45241:   fi
45242: 
45243: 
45244:       if test "$ext_shared" = "yes"; then
45245:         LDFLAGS="-L$ai_p $LDFLAGS"
45246:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
45247:       else
45248: 
45249: 
45250: 
45251:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
45252: 
45253:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
45254:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
45255:     eval "LIBPATH$unique=set"
45256: 
45257:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
45258:     LDFLAGS="$LDFLAGS -L$ai_p"
45259:     PHP_RPATHS="$PHP_RPATHS $ai_p"
45260: 
45261:   fi
45262: 
45263: 
45264:       fi
45265: 
45266:   fi
45267: 
45268:     ;;
45269:     esac
45270:   done
45271: 
45272:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdNewDynamicCtxEx in -lgd" >&5
45273: $as_echo_n "checking for gdNewDynamicCtxEx in -lgd... " >&6; }
45274: if ${ac_cv_lib_gd_gdNewDynamicCtxEx+:} false; then :
45275:   $as_echo_n "(cached) " >&6
45276: else
45277:   ac_check_lib_save_LIBS=$LIBS
45278: LIBS="-lgd  $LIBS"
45279: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45280: /* end confdefs.h.  */
45281: 
45282: /* Override any GCC internal prototype to avoid an error.
45283:    Use char because int might match the return type of a GCC
45284:    builtin and then its argument prototype would still apply.  */
45285: #ifdef __cplusplus
45286: extern "C"
45287: #endif
45288: char gdNewDynamicCtxEx ();
45289: int
45290: main ()
45291: {
45292: return gdNewDynamicCtxEx ();
45293:   ;
45294:   return 0;
45295: }
45296: _ACEOF
45297: if ac_fn_c_try_link "$LINENO"; then :
45298:   ac_cv_lib_gd_gdNewDynamicCtxEx=yes
45299: else
45300:   ac_cv_lib_gd_gdNewDynamicCtxEx=no
45301: fi
45302: rm -f core conftest.err conftest.$ac_objext \
45303:     conftest$ac_exeext conftest.$ac_ext
45304: LIBS=$ac_check_lib_save_LIBS
45305: fi
45306: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdNewDynamicCtxEx" >&5
45307: $as_echo "$ac_cv_lib_gd_gdNewDynamicCtxEx" >&6; }
45308: if test "x$ac_cv_lib_gd_gdNewDynamicCtxEx" = xyes; then :
45309: 
45310:     LDFLAGS=$save_old_LDFLAGS
45311:     ext_shared=$save_ext_shared
45312: 
45313: $as_echo "#define HAVE_GD_DYNAMIC_CTX_EX 1" >>confdefs.h
45314: 
45315: 
45316: else
45317: 
45318:     LDFLAGS=$save_old_LDFLAGS
45319:     ext_shared=$save_ext_shared
45320:     unset ac_cv_lib_gd_gdNewDynamicCtxEx
45321: 
45322: 
45323: fi
45324: 
45325: 
45326:   save_old_LDFLAGS=$LDFLAGS
45327:   ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
45328: 
45329:   save_ext_shared=$ext_shared
45330:   ext_shared=yes
45331: 
45332:   for ac_i in $ac_stuff; do
45333:     case $ac_i in
45334:     -pthread)
45335:       if test "$ext_shared" = "yes"; then
45336:         LDFLAGS="$LDFLAGS -pthread"
45337:       else
45338: 
45339: 
45340:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
45341: 
45342:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
45343:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
45344:     eval "EXTRA_LDFLAGS$unique=set"
45345:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
45346:   fi
45347: 
45348:       fi
45349:     ;;
45350:     -l*)
45351:       ac_ii=`echo $ac_i|cut -c 3-`
45352: 
45353: 
45354:   case $ac_ii in
45355:   c|c_r|pthread*) ;;
45356:   *)
45357:     if test "$ext_shared" = "yes"; then
45358:         LDFLAGS="$LDFLAGS -l$ac_ii"
45359:     else
45360: 
45361: 
45362:   case $ac_ii in
45363:   c|c_r|pthread*) ;;
45364:   *)
45365:       LIBS="$LIBS -l$ac_ii"
45366:    ;;
45367:   esac
45368: 
45369: 
45370:     fi
45371:    ;;
45372:   esac
45373: 
45374: 
45375:     ;;
45376:     -L*)
45377:       ac_ii=`echo $ac_i|cut -c 3-`
45378: 
45379:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
45380: 
45381:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
45382:     ai_p=$ac_ii
45383:   else
45384: 
45385:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
45386: 
45387:     ep_realdir=`(cd "$ep_dir" && pwd)`
45388:     ai_p="$ep_realdir"/`basename "$ac_ii"`
45389:   fi
45390: 
45391: 
45392:       if test "$ext_shared" = "yes"; then
45393:         LDFLAGS="-L$ai_p $LDFLAGS"
45394:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
45395:       else
45396: 
45397: 
45398: 
45399:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
45400: 
45401:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
45402:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
45403:     eval "LIBPATH$unique=set"
45404: 
45405:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
45406:     LDFLAGS="$LDFLAGS -L$ai_p"
45407:     PHP_RPATHS="$PHP_RPATHS $ai_p"
45408: 
45409:   fi
45410: 
45411: 
45412:       fi
45413: 
45414:   fi
45415: 
45416:     ;;
45417:     esac
45418:   done
45419: 
45420:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageConvolution in -lgd" >&5
45421: $as_echo_n "checking for gdImageConvolution in -lgd... " >&6; }
45422: if ${ac_cv_lib_gd_gdImageConvolution+:} false; then :
45423:   $as_echo_n "(cached) " >&6
45424: else
45425:   ac_check_lib_save_LIBS=$LIBS
45426: LIBS="-lgd  $LIBS"
45427: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45428: /* end confdefs.h.  */
45429: 
45430: /* Override any GCC internal prototype to avoid an error.
45431:    Use char because int might match the return type of a GCC
45432:    builtin and then its argument prototype would still apply.  */
45433: #ifdef __cplusplus
45434: extern "C"
45435: #endif
45436: char gdImageConvolution ();
45437: int
45438: main ()
45439: {
45440: return gdImageConvolution ();
45441:   ;
45442:   return 0;
45443: }
45444: _ACEOF
45445: if ac_fn_c_try_link "$LINENO"; then :
45446:   ac_cv_lib_gd_gdImageConvolution=yes
45447: else
45448:   ac_cv_lib_gd_gdImageConvolution=no
45449: fi
45450: rm -f core conftest.err conftest.$ac_objext \
45451:     conftest$ac_exeext conftest.$ac_ext
45452: LIBS=$ac_check_lib_save_LIBS
45453: fi
45454: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageConvolution" >&5
45455: $as_echo "$ac_cv_lib_gd_gdImageConvolution" >&6; }
45456: if test "x$ac_cv_lib_gd_gdImageConvolution" = xyes; then :
45457: 
45458:     LDFLAGS=$save_old_LDFLAGS
45459:     ext_shared=$save_ext_shared
45460: 
45461: $as_echo "#define HAVE_GD_IMAGE_CONVOLUTION 1" >>confdefs.h
45462: 
45463: 
45464: else
45465: 
45466:     LDFLAGS=$save_old_LDFLAGS
45467:     ext_shared=$save_ext_shared
45468:     unset ac_cv_lib_gd_gdImageConvolution
45469: 
45470: 
45471: fi
45472: 
45473: 
45474:   save_old_LDFLAGS=$LDFLAGS
45475:   ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
45476: 
45477:   save_ext_shared=$ext_shared
45478:   ext_shared=yes
45479: 
45480:   for ac_i in $ac_stuff; do
45481:     case $ac_i in
45482:     -pthread)
45483:       if test "$ext_shared" = "yes"; then
45484:         LDFLAGS="$LDFLAGS -pthread"
45485:       else
45486: 
45487: 
45488:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
45489: 
45490:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
45491:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
45492:     eval "EXTRA_LDFLAGS$unique=set"
45493:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
45494:   fi
45495: 
45496:       fi
45497:     ;;
45498:     -l*)
45499:       ac_ii=`echo $ac_i|cut -c 3-`
45500: 
45501: 
45502:   case $ac_ii in
45503:   c|c_r|pthread*) ;;
45504:   *)
45505:     if test "$ext_shared" = "yes"; then
45506:         LDFLAGS="$LDFLAGS -l$ac_ii"
45507:     else
45508: 
45509: 
45510:   case $ac_ii in
45511:   c|c_r|pthread*) ;;
45512:   *)
45513:       LIBS="$LIBS -l$ac_ii"
45514:    ;;
45515:   esac
45516: 
45517: 
45518:     fi
45519:    ;;
45520:   esac
45521: 
45522: 
45523:     ;;
45524:     -L*)
45525:       ac_ii=`echo $ac_i|cut -c 3-`
45526: 
45527:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
45528: 
45529:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
45530:     ai_p=$ac_ii
45531:   else
45532: 
45533:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
45534: 
45535:     ep_realdir=`(cd "$ep_dir" && pwd)`
45536:     ai_p="$ep_realdir"/`basename "$ac_ii"`
45537:   fi
45538: 
45539: 
45540:       if test "$ext_shared" = "yes"; then
45541:         LDFLAGS="-L$ai_p $LDFLAGS"
45542:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
45543:       else
45544: 
45545: 
45546: 
45547:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
45548: 
45549:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
45550:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
45551:     eval "LIBPATH$unique=set"
45552: 
45553:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
45554:     LDFLAGS="$LDFLAGS -L$ai_p"
45555:     PHP_RPATHS="$PHP_RPATHS $ai_p"
45556: 
45557:   fi
45558: 
45559: 
45560:       fi
45561: 
45562:   fi
45563: 
45564:     ;;
45565:     esac
45566:   done
45567: 
45568:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImagePixelate in -lgd" >&5
45569: $as_echo_n "checking for gdImagePixelate in -lgd... " >&6; }
45570: if ${ac_cv_lib_gd_gdImagePixelate+:} false; then :
45571:   $as_echo_n "(cached) " >&6
45572: else
45573:   ac_check_lib_save_LIBS=$LIBS
45574: LIBS="-lgd  $LIBS"
45575: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45576: /* end confdefs.h.  */
45577: 
45578: /* Override any GCC internal prototype to avoid an error.
45579:    Use char because int might match the return type of a GCC
45580:    builtin and then its argument prototype would still apply.  */
45581: #ifdef __cplusplus
45582: extern "C"
45583: #endif
45584: char gdImagePixelate ();
45585: int
45586: main ()
45587: {
45588: return gdImagePixelate ();
45589:   ;
45590:   return 0;
45591: }
45592: _ACEOF
45593: if ac_fn_c_try_link "$LINENO"; then :
45594:   ac_cv_lib_gd_gdImagePixelate=yes
45595: else
45596:   ac_cv_lib_gd_gdImagePixelate=no
45597: fi
45598: rm -f core conftest.err conftest.$ac_objext \
45599:     conftest$ac_exeext conftest.$ac_ext
45600: LIBS=$ac_check_lib_save_LIBS
45601: fi
45602: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImagePixelate" >&5
45603: $as_echo "$ac_cv_lib_gd_gdImagePixelate" >&6; }
45604: if test "x$ac_cv_lib_gd_gdImagePixelate" = xyes; then :
45605: 
45606:     LDFLAGS=$save_old_LDFLAGS
45607:     ext_shared=$save_ext_shared
45608: 
45609: $as_echo "#define HAVE_GD_IMAGE_PIXELATE 1" >>confdefs.h
45610: 
45611: 
45612: else
45613: 
45614:     LDFLAGS=$save_old_LDFLAGS
45615:     ext_shared=$save_ext_shared
45616:     unset ac_cv_lib_gd_gdImagePixelate
45617: 
45618: 
45619: fi
45620: 
45621: 
45622:   elif test -z "$GD_INCLUDE"; then
45623:     as_fn_error $? "Unable to find gd.h anywhere under $PHP_GD" "$LINENO" 5
45624:   else
45625:     as_fn_error $? "Unable to find libgd.(a|so) anywhere under $PHP_GD" "$LINENO" 5
45626:   fi
45627: 
45628: 
45629:   if test -z "$GD_INCLUDE" || echo "$GD_INCLUDE" | grep '^/' >/dev/null ; then
45630:     GD_INCLUDE=$GD_INCLUDE
45631:   else
45632: 
45633:     ep_dir=`echo $GD_INCLUDE|$SED 's%/*[^/][^/]*/*$%%'`
45634: 
45635:     ep_realdir=`(cd "$ep_dir" && pwd)`
45636:     GD_INCLUDE="$ep_realdir"/`basename "$GD_INCLUDE"`
45637:   fi
45638: 
45639: 
45640:         old_CPPFLAGS=$CPPFLAGS
45641:   CPPFLAGS=-I$GD_INCLUDE
45642:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45643: /* end confdefs.h.  */
45644: 
45645: #include <gd.h>
45646: #include <stdlib.h>
45647: 
45648: int
45649: main ()
45650: {
45651: 
45652: gdIOCtx *ctx;
45653: ctx = malloc(sizeof(gdIOCtx));
45654: ctx->gd_free = 1;
45655: 
45656:   ;
45657:   return 0;
45658: }
45659: _ACEOF
45660: if ac_fn_c_try_compile "$LINENO"; then :
45661: 
45662: 
45663: $as_echo "#define HAVE_LIBGD204 1" >>confdefs.h
45664: 
45665: 
45666: fi
45667: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45668:   CPPFLAGS=$old_CPPFLAGS
45669: 
45670:  fi
45671: fi
45672: 
45673: if test "$PHP_GD" != "no"; then
45674: 
45675:   ext_builddir=ext/gd
45676:   ext_srcdir=$abs_srcdir/ext/gd
45677: 
45678:   ac_extra=`echo "\\$(GDLIB_CFLAGS)"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
45679: 
45680:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
45681:     PHP_GD_SHARED=no
45682: 
45683: 
45684:   case ext/gd in
45685:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
45686:   /*) ac_srcdir=`echo "ext/gd"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
45687:   *) ac_srcdir="$abs_srcdir/ext/gd/"; ac_bdir="ext/gd/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
45688:   esac
45689: 
45690: 
45691: 
45692:   b_c_pre=$php_c_pre
45693:   b_cxx_pre=$php_cxx_pre
45694:   b_c_meta=$php_c_meta
45695:   b_cxx_meta=$php_cxx_meta
45696:   b_c_post=$php_c_post
45697:   b_cxx_post=$php_cxx_post
45698:   b_lo=$php_lo
45699: 
45700: 
45701:   old_IFS=$IFS
45702:   for ac_src in gd.c $extra_sources; do
45703: 
45704:       IFS=.
45705:       set $ac_src
45706:       ac_obj=$1
45707:       IFS=$old_IFS
45708: 
45709:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
45710: 
45711:       case $ac_src in
45712:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
45713:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
45714:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
45715:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
45716:       esac
45717: 
45718:     cat >>Makefile.objects<<EOF
45719: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
45720: 	$ac_comp
45721: EOF
45722:   done
45723: 
45724: 
45725:     EXT_STATIC="$EXT_STATIC gd"
45726:     if test "$ext_shared" != "nocli"; then
45727:       EXT_CLI_STATIC="$EXT_CLI_STATIC gd"
45728:     fi
45729:   else
45730:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
45731:       PHP_GD_SHARED=yes
45732: 
45733:   case ext/gd in
45734:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
45735:   /*) ac_srcdir=`echo "ext/gd"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
45736:   *) ac_srcdir="$abs_srcdir/ext/gd/"; ac_bdir="ext/gd/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
45737:   esac
45738: 
45739: 
45740: 
45741:   b_c_pre=$shared_c_pre
45742:   b_cxx_pre=$shared_cxx_pre
45743:   b_c_meta=$shared_c_meta
45744:   b_cxx_meta=$shared_cxx_meta
45745:   b_c_post=$shared_c_post
45746:   b_cxx_post=$shared_cxx_post
45747:   b_lo=$shared_lo
45748: 
45749: 
45750:   old_IFS=$IFS
45751:   for ac_src in gd.c $extra_sources; do
45752: 
45753:       IFS=.
45754:       set $ac_src
45755:       ac_obj=$1
45756:       IFS=$old_IFS
45757: 
45758:       shared_objects_gd="$shared_objects_gd $ac_bdir$ac_obj.lo"
45759: 
45760:       case $ac_src in
45761:         *.c) ac_comp="$b_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:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
45764:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
45765:       esac
45766: 
45767:     cat >>Makefile.objects<<EOF
45768: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
45769: 	$ac_comp
45770: EOF
45771:   done
45772: 
45773:       case $host_alias in
45774:         *netware*)
45775: 
45776:   install_modules="install-modules"
45777: 
45778:   case $host_alias in
45779:     *aix*)
45780:       suffix=so
45781:       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'
45782:       ;;
45783:     *netware*)
45784:       suffix=nlm
45785:       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)'
45786:       ;;
45787:     *)
45788:       suffix=la
45789:       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)'
45790:       ;;
45791:   esac
45792: 
45793:   if test "x" = "xyes"; then
45794:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpgd.$suffix"
45795:   else
45796:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpgd.$suffix"
45797:   fi
45798: 
45799:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_gd"
45800: 
45801:   cat >>Makefile.objects<<EOF
45802: \$(phplibdir)/phpgd.$suffix: $ext_builddir/phpgd.$suffix
45803: 	\$(LIBTOOL) --mode=install cp $ext_builddir/phpgd.$suffix \$(phplibdir)
45804: 
45805: $ext_builddir/phpgd.$suffix: \$(shared_objects_gd) \$(PHPGD_SHARED_DEPENDENCIES)
45806: 	$link_cmd
45807: 
45808: EOF
45809: 
45810:           ;;
45811:         *)
45812: 
45813:   install_modules="install-modules"
45814: 
45815:   case $host_alias in
45816:     *aix*)
45817:       suffix=so
45818:       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'
45819:       ;;
45820:     *netware*)
45821:       suffix=nlm
45822:       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)'
45823:       ;;
45824:     *)
45825:       suffix=la
45826:       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)'
45827:       ;;
45828:   esac
45829: 
45830:   if test "x" = "xyes"; then
45831:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/gd.$suffix"
45832:   else
45833:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/gd.$suffix"
45834:   fi
45835: 
45836:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_gd"
45837: 
45838:   cat >>Makefile.objects<<EOF
45839: \$(phplibdir)/gd.$suffix: $ext_builddir/gd.$suffix
45840: 	\$(LIBTOOL) --mode=install cp $ext_builddir/gd.$suffix \$(phplibdir)
45841: 
45842: $ext_builddir/gd.$suffix: \$(shared_objects_gd) \$(GD_SHARED_DEPENDENCIES)
45843: 	$link_cmd
45844: 
45845: EOF
45846: 
45847:           ;;
45848:       esac
45849: 
45850: cat >>confdefs.h <<_ACEOF
45851: #define COMPILE_DL_GD 1
45852: _ACEOF
45853: 
45854:     fi
45855:   fi
45856: 
45857:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
45858:     PHP_GD_SHARED=no
45859:     case "$PHP_SAPI" in
45860:       cgi|embed)
45861: 
45862: 
45863:   case ext/gd in
45864:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
45865:   /*) ac_srcdir=`echo "ext/gd"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
45866:   *) ac_srcdir="$abs_srcdir/ext/gd/"; ac_bdir="ext/gd/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
45867:   esac
45868: 
45869: 
45870: 
45871:   b_c_pre=$php_c_pre
45872:   b_cxx_pre=$php_cxx_pre
45873:   b_c_meta=$php_c_meta
45874:   b_cxx_meta=$php_cxx_meta
45875:   b_c_post=$php_c_post
45876:   b_cxx_post=$php_cxx_post
45877:   b_lo=$php_lo
45878: 
45879: 
45880:   old_IFS=$IFS
45881:   for ac_src in gd.c $extra_sources; do
45882: 
45883:       IFS=.
45884:       set $ac_src
45885:       ac_obj=$1
45886:       IFS=$old_IFS
45887: 
45888:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
45889: 
45890:       case $ac_src in
45891:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
45892:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
45893:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
45894:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
45895:       esac
45896: 
45897:     cat >>Makefile.objects<<EOF
45898: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
45899: 	$ac_comp
45900: EOF
45901:   done
45902: 
45903: 
45904:         EXT_STATIC="$EXT_STATIC gd"
45905:         ;;
45906:       *)
45907: 
45908: 
45909:   case ext/gd in
45910:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
45911:   /*) ac_srcdir=`echo "ext/gd"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
45912:   *) ac_srcdir="$abs_srcdir/ext/gd/"; ac_bdir="ext/gd/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
45913:   esac
45914: 
45915: 
45916: 
45917:   b_c_pre=$php_c_pre
45918:   b_cxx_pre=$php_cxx_pre
45919:   b_c_meta=$php_c_meta
45920:   b_cxx_meta=$php_cxx_meta
45921:   b_c_post=$php_c_post
45922:   b_cxx_post=$php_cxx_post
45923:   b_lo=$php_lo
45924: 
45925: 
45926:   old_IFS=$IFS
45927:   for ac_src in gd.c $extra_sources; do
45928: 
45929:       IFS=.
45930:       set $ac_src
45931:       ac_obj=$1
45932:       IFS=$old_IFS
45933: 
45934:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
45935: 
45936:       case $ac_src in
45937:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
45938:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
45939:         *.S) ac_comp="$b_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:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
45941:       esac
45942: 
45943:     cat >>Makefile.objects<<EOF
45944: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
45945: 	$ac_comp
45946: EOF
45947:   done
45948: 
45949: 
45950:         ;;
45951:     esac
45952:     EXT_CLI_STATIC="$EXT_CLI_STATIC gd"
45953:   fi
45954: 
45955: 
45956:     BUILD_DIR="$BUILD_DIR $ext_builddir"
45957: 
45958: 
45959: 
45960:   if test "$ext_builddir" = "."; then
45961:     PHP_PECL_EXTENSION=gd
45962: 
45963:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
45964: 
45965:   fi
45966: 
45967: 
45968: 
45969: 
45970:     BUILD_DIR="$BUILD_DIR $ext_builddir/libgd"
45971: 
45972: 
45973: 
45974:   if test "$GD_MODULE_TYPE" = "builtin"; then
45975:     GDLIB_CFLAGS="-I$ext_srcdir/libgd $GDLIB_CFLAGS"
45976:     GD_HEADER_DIRS="ext/gd/ ext/gd/libgd/"
45977: 
45978: 
45979:   old_LIBS=$LIBS
45980:   LIBS=" $GD_SHARED_LIBADD  $LIBS"
45981:   if test "$cross_compiling" = yes; then :
45982: 
45983:     LIBS=$old_LIBS
45984: 
45985: else
45986:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45987: /* end confdefs.h.  */
45988: 
45989:     char foobar () {}
45990:     char foobar();
45991:     int main() {
45992:       foobar();
45993:       return 0;
45994:     }
45995: 
45996: _ACEOF
45997: if ac_fn_c_try_run "$LINENO"; then :
45998: 
45999:     LIBS=$old_LIBS
46000: 
46001: 
46002: else
46003: 
46004:     LIBS=$old_LIBS
46005: 
46006:       as_fn_error $? "GD build test failed. Please check the config.log for details." "$LINENO" 5
46007: 
46008: 
46009: fi
46010: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
46011:   conftest.$ac_objext conftest.beam conftest.$ac_ext
46012: fi
46013: 
46014: 
46015:   else
46016:     GD_HEADER_DIRS="ext/gd/"
46017:     GDLIB_CFLAGS="-I$GD_INCLUDE $GDLIB_CFLAGS"
46018: 
46019:   if test "$GD_INCLUDE" != "/usr/include"; then
46020: 
46021:   if test -z "$GD_INCLUDE" || echo "$GD_INCLUDE" | grep '^/' >/dev/null ; then
46022:     ai_p=$GD_INCLUDE
46023:   else
46024: 
46025:     ep_dir=`echo $GD_INCLUDE|$SED 's%/*[^/][^/]*/*$%%'`
46026: 
46027:     ep_realdir=`(cd "$ep_dir" && pwd)`
46028:     ai_p="$ep_realdir"/`basename "$GD_INCLUDE"`
46029:   fi
46030: 
46031: 
46032: 
46033:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
46034: 
46035:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
46036:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
46037:     eval "INCLUDEPATH$unique=set"
46038: 
46039:       if test ""; then
46040:         INCLUDES="-I$ai_p $INCLUDES"
46041:       else
46042:         INCLUDES="$INCLUDES -I$ai_p"
46043:       fi
46044: 
46045:   fi
46046: 
46047:   fi
46048: 
46049: 
46050:   save_old_LDFLAGS=$LDFLAGS
46051:   ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
46052: 
46053:   save_ext_shared=$ext_shared
46054:   ext_shared=yes
46055: 
46056:   for ac_i in $ac_stuff; do
46057:     case $ac_i in
46058:     -pthread)
46059:       if test "$ext_shared" = "yes"; then
46060:         LDFLAGS="$LDFLAGS -pthread"
46061:       else
46062: 
46063: 
46064:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
46065: 
46066:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
46067:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
46068:     eval "EXTRA_LDFLAGS$unique=set"
46069:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
46070:   fi
46071: 
46072:       fi
46073:     ;;
46074:     -l*)
46075:       ac_ii=`echo $ac_i|cut -c 3-`
46076: 
46077: 
46078:   case $ac_ii in
46079:   c|c_r|pthread*) ;;
46080:   *)
46081:     if test "$ext_shared" = "yes"; then
46082:         LDFLAGS="$LDFLAGS -l$ac_ii"
46083:     else
46084: 
46085: 
46086:   case $ac_ii in
46087:   c|c_r|pthread*) ;;
46088:   *)
46089:       LIBS="$LIBS -l$ac_ii"
46090:    ;;
46091:   esac
46092: 
46093: 
46094:     fi
46095:    ;;
46096:   esac
46097: 
46098: 
46099:     ;;
46100:     -L*)
46101:       ac_ii=`echo $ac_i|cut -c 3-`
46102: 
46103:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
46104: 
46105:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
46106:     ai_p=$ac_ii
46107:   else
46108: 
46109:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
46110: 
46111:     ep_realdir=`(cd "$ep_dir" && pwd)`
46112:     ai_p="$ep_realdir"/`basename "$ac_ii"`
46113:   fi
46114: 
46115: 
46116:       if test "$ext_shared" = "yes"; then
46117:         LDFLAGS="-L$ai_p $LDFLAGS"
46118:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
46119:       else
46120: 
46121: 
46122: 
46123:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
46124: 
46125:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
46126:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
46127:     eval "LIBPATH$unique=set"
46128: 
46129:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
46130:     LDFLAGS="$LDFLAGS -L$ai_p"
46131:     PHP_RPATHS="$PHP_RPATHS $ai_p"
46132: 
46133:   fi
46134: 
46135: 
46136:       fi
46137: 
46138:   fi
46139: 
46140:     ;;
46141:     esac
46142:   done
46143: 
46144:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageCreate in -lgd" >&5
46145: $as_echo_n "checking for gdImageCreate in -lgd... " >&6; }
46146: if ${ac_cv_lib_gd_gdImageCreate+:} false; then :
46147:   $as_echo_n "(cached) " >&6
46148: else
46149:   ac_check_lib_save_LIBS=$LIBS
46150: LIBS="-lgd  $LIBS"
46151: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46152: /* end confdefs.h.  */
46153: 
46154: /* Override any GCC internal prototype to avoid an error.
46155:    Use char because int might match the return type of a GCC
46156:    builtin and then its argument prototype would still apply.  */
46157: #ifdef __cplusplus
46158: extern "C"
46159: #endif
46160: char gdImageCreate ();
46161: int
46162: main ()
46163: {
46164: return gdImageCreate ();
46165:   ;
46166:   return 0;
46167: }
46168: _ACEOF
46169: if ac_fn_c_try_link "$LINENO"; then :
46170:   ac_cv_lib_gd_gdImageCreate=yes
46171: else
46172:   ac_cv_lib_gd_gdImageCreate=no
46173: fi
46174: rm -f core conftest.err conftest.$ac_objext \
46175:     conftest$ac_exeext conftest.$ac_ext
46176: LIBS=$ac_check_lib_save_LIBS
46177: fi
46178: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageCreate" >&5
46179: $as_echo "$ac_cv_lib_gd_gdImageCreate" >&6; }
46180: if test "x$ac_cv_lib_gd_gdImageCreate" = xyes; then :
46181: 
46182:     LDFLAGS=$save_old_LDFLAGS
46183:     ext_shared=$save_ext_shared
46184: 
46185: 
46186: else
46187: 
46188:     LDFLAGS=$save_old_LDFLAGS
46189:     ext_shared=$save_ext_shared
46190:     unset ac_cv_lib_gd_gdImageCreate
46191: 
46192:       as_fn_error $? "GD build test failed. Please check the config.log for details." "$LINENO" 5
46193: 
46194: 
46195: fi
46196: 
46197:   fi
46198: 
46199: 
46200: 
46201:     for header_file in $GD_HEADER_DIRS; do
46202: 
46203: 
46204:   unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
46205: 
46206:   cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
46207:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
46208:     eval "INSTALLHEADERS$unique=set"
46209: 
46210:         INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
46211: 
46212:   fi
46213: 
46214:     done
46215: 
46216: 
46217: 
46218:   PHP_VAR_SUBST="$PHP_VAR_SUBST GDLIB_CFLAGS"
46219: 
46220: 
46221:   PHP_VAR_SUBST="$PHP_VAR_SUBST GD_SHARED_LIBADD"
46222: 
46223: fi
46224: 
46225: 
46226: 
46227: php_with_gettext=no
46228: 
46229: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext support" >&5
46230: $as_echo_n "checking for GNU gettext support... " >&6; }
46231: 
46232: # Check whether --with-gettext was given.
46233: if test "${with_gettext+set}" = set; then :
46234:   withval=$with_gettext; PHP_GETTEXT=$withval
46235: else
46236: 
46237:   PHP_GETTEXT=no
46238:   test "$PHP_ENABLE_ALL" && PHP_GETTEXT=$PHP_ENABLE_ALL
46239: 
46240: fi
46241: 
46242: 
46243: 
46244: ext_output="yes, shared"
46245: ext_shared=yes
46246: case $PHP_GETTEXT in
46247: shared,*)
46248:   PHP_GETTEXT=`echo "$PHP_GETTEXT"|$SED 's/^shared,//'`
46249:   ;;
46250: shared)
46251:   PHP_GETTEXT=yes
46252:   ;;
46253: no)
46254:   ext_output=no
46255:   ext_shared=no
46256:   ;;
46257: *)
46258:   ext_output=yes
46259:   ext_shared=no
46260:   ;;
46261: esac
46262: 
46263: 
46264: 
46265: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
46266: $as_echo "$ext_output" >&6; }
46267: 
46268: 
46269: 
46270: 
46271: if test "$PHP_GETTEXT" != "no"; then
46272:   for i in $PHP_GETTEXT /usr/local /usr; do
46273:     test -r $i/include/libintl.h && GETTEXT_DIR=$i && break
46274:   done
46275: 
46276:   if test -z "$GETTEXT_DIR"; then
46277:     as_fn_error $? "Cannot locate header file libintl.h" "$LINENO" 5
46278:   fi
46279: 
46280:   GETTEXT_LIBDIR=$GETTEXT_DIR/$PHP_LIBDIR
46281:   GETTEXT_INCDIR=$GETTEXT_DIR/include
46282: 
46283:   O_LDFLAGS=$LDFLAGS
46284:   LDFLAGS="$LDFLAGS -L$GETTEXT_LIBDIR"
46285:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lintl" >&5
46286: $as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
46287: if ${ac_cv_lib_intl_bindtextdomain+:} false; then :
46288:   $as_echo_n "(cached) " >&6
46289: else
46290:   ac_check_lib_save_LIBS=$LIBS
46291: LIBS="-lintl  $LIBS"
46292: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46293: /* end confdefs.h.  */
46294: 
46295: /* Override any GCC internal prototype to avoid an error.
46296:    Use char because int might match the return type of a GCC
46297:    builtin and then its argument prototype would still apply.  */
46298: #ifdef __cplusplus
46299: extern "C"
46300: #endif
46301: char bindtextdomain ();
46302: int
46303: main ()
46304: {
46305: return bindtextdomain ();
46306:   ;
46307:   return 0;
46308: }
46309: _ACEOF
46310: if ac_fn_c_try_link "$LINENO"; then :
46311:   ac_cv_lib_intl_bindtextdomain=yes
46312: else
46313:   ac_cv_lib_intl_bindtextdomain=no
46314: fi
46315: rm -f core conftest.err conftest.$ac_objext \
46316:     conftest$ac_exeext conftest.$ac_ext
46317: LIBS=$ac_check_lib_save_LIBS
46318: fi
46319: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_bindtextdomain" >&5
46320: $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
46321: if test "x$ac_cv_lib_intl_bindtextdomain" = xyes; then :
46322: 
46323: 	GETTEXT_LIBS=intl
46324: 	GETTEXT_CHECK_IN_LIB=intl
46325: 
46326: else
46327:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lc" >&5
46328: $as_echo_n "checking for bindtextdomain in -lc... " >&6; }
46329: if ${ac_cv_lib_c_bindtextdomain+:} false; then :
46330:   $as_echo_n "(cached) " >&6
46331: else
46332:   ac_check_lib_save_LIBS=$LIBS
46333: LIBS="-lc  $LIBS"
46334: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46335: /* end confdefs.h.  */
46336: 
46337: /* Override any GCC internal prototype to avoid an error.
46338:    Use char because int might match the return type of a GCC
46339:    builtin and then its argument prototype would still apply.  */
46340: #ifdef __cplusplus
46341: extern "C"
46342: #endif
46343: char bindtextdomain ();
46344: int
46345: main ()
46346: {
46347: return bindtextdomain ();
46348:   ;
46349:   return 0;
46350: }
46351: _ACEOF
46352: if ac_fn_c_try_link "$LINENO"; then :
46353:   ac_cv_lib_c_bindtextdomain=yes
46354: else
46355:   ac_cv_lib_c_bindtextdomain=no
46356: fi
46357: rm -f core conftest.err conftest.$ac_objext \
46358:     conftest$ac_exeext conftest.$ac_ext
46359: LIBS=$ac_check_lib_save_LIBS
46360: fi
46361: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_bindtextdomain" >&5
46362: $as_echo "$ac_cv_lib_c_bindtextdomain" >&6; }
46363: if test "x$ac_cv_lib_c_bindtextdomain" = xyes; then :
46364: 
46365: 		GETTEXT_LIBS=
46366: 		GETTEXT_CHECK_IN_LIB=c
46367: 
46368: else
46369: 
46370: 		as_fn_error $? "Unable to find required gettext library" "$LINENO" 5
46371: 
46372: fi
46373: 
46374: 
46375: fi
46376: 
46377:   LDFLAGS=$O_LDFLAGS
46378: 
46379: 
46380: $as_echo "#define HAVE_LIBINTL 1" >>confdefs.h
46381: 
46382: 
46383:   ext_builddir=ext/gettext
46384:   ext_srcdir=$abs_srcdir/ext/gettext
46385: 
46386:   ac_extra=
46387: 
46388:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
46389:     PHP_GETTEXT_SHARED=no
46390: 
46391: 
46392:   case ext/gettext in
46393:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
46394:   /*) ac_srcdir=`echo "ext/gettext"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
46395:   *) ac_srcdir="$abs_srcdir/ext/gettext/"; ac_bdir="ext/gettext/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
46396:   esac
46397: 
46398: 
46399: 
46400:   b_c_pre=$php_c_pre
46401:   b_cxx_pre=$php_cxx_pre
46402:   b_c_meta=$php_c_meta
46403:   b_cxx_meta=$php_cxx_meta
46404:   b_c_post=$php_c_post
46405:   b_cxx_post=$php_cxx_post
46406:   b_lo=$php_lo
46407: 
46408: 
46409:   old_IFS=$IFS
46410:   for ac_src in gettext.c; do
46411: 
46412:       IFS=.
46413:       set $ac_src
46414:       ac_obj=$1
46415:       IFS=$old_IFS
46416: 
46417:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
46418: 
46419:       case $ac_src in
46420:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
46421:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
46422:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
46423:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
46424:       esac
46425: 
46426:     cat >>Makefile.objects<<EOF
46427: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
46428: 	$ac_comp
46429: EOF
46430:   done
46431: 
46432: 
46433:     EXT_STATIC="$EXT_STATIC gettext"
46434:     if test "$ext_shared" != "nocli"; then
46435:       EXT_CLI_STATIC="$EXT_CLI_STATIC gettext"
46436:     fi
46437:   else
46438:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
46439:       PHP_GETTEXT_SHARED=yes
46440: 
46441:   case ext/gettext in
46442:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
46443:   /*) ac_srcdir=`echo "ext/gettext"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
46444:   *) ac_srcdir="$abs_srcdir/ext/gettext/"; ac_bdir="ext/gettext/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
46445:   esac
46446: 
46447: 
46448: 
46449:   b_c_pre=$shared_c_pre
46450:   b_cxx_pre=$shared_cxx_pre
46451:   b_c_meta=$shared_c_meta
46452:   b_cxx_meta=$shared_cxx_meta
46453:   b_c_post=$shared_c_post
46454:   b_cxx_post=$shared_cxx_post
46455:   b_lo=$shared_lo
46456: 
46457: 
46458:   old_IFS=$IFS
46459:   for ac_src in gettext.c; do
46460: 
46461:       IFS=.
46462:       set $ac_src
46463:       ac_obj=$1
46464:       IFS=$old_IFS
46465: 
46466:       shared_objects_gettext="$shared_objects_gettext $ac_bdir$ac_obj.lo"
46467: 
46468:       case $ac_src in
46469:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
46470:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
46471:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
46472:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
46473:       esac
46474: 
46475:     cat >>Makefile.objects<<EOF
46476: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
46477: 	$ac_comp
46478: EOF
46479:   done
46480: 
46481:       case $host_alias in
46482:         *netware*)
46483: 
46484:   install_modules="install-modules"
46485: 
46486:   case $host_alias in
46487:     *aix*)
46488:       suffix=so
46489:       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'
46490:       ;;
46491:     *netware*)
46492:       suffix=nlm
46493:       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)'
46494:       ;;
46495:     *)
46496:       suffix=la
46497:       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)'
46498:       ;;
46499:   esac
46500: 
46501:   if test "x" = "xyes"; then
46502:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpgettext.$suffix"
46503:   else
46504:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpgettext.$suffix"
46505:   fi
46506: 
46507:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_gettext"
46508: 
46509:   cat >>Makefile.objects<<EOF
46510: \$(phplibdir)/phpgettext.$suffix: $ext_builddir/phpgettext.$suffix
46511: 	\$(LIBTOOL) --mode=install cp $ext_builddir/phpgettext.$suffix \$(phplibdir)
46512: 
46513: $ext_builddir/phpgettext.$suffix: \$(shared_objects_gettext) \$(PHPGETTEXT_SHARED_DEPENDENCIES)
46514: 	$link_cmd
46515: 
46516: EOF
46517: 
46518:           ;;
46519:         *)
46520: 
46521:   install_modules="install-modules"
46522: 
46523:   case $host_alias in
46524:     *aix*)
46525:       suffix=so
46526:       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'
46527:       ;;
46528:     *netware*)
46529:       suffix=nlm
46530:       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)'
46531:       ;;
46532:     *)
46533:       suffix=la
46534:       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)'
46535:       ;;
46536:   esac
46537: 
46538:   if test "x" = "xyes"; then
46539:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/gettext.$suffix"
46540:   else
46541:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/gettext.$suffix"
46542:   fi
46543: 
46544:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_gettext"
46545: 
46546:   cat >>Makefile.objects<<EOF
46547: \$(phplibdir)/gettext.$suffix: $ext_builddir/gettext.$suffix
46548: 	\$(LIBTOOL) --mode=install cp $ext_builddir/gettext.$suffix \$(phplibdir)
46549: 
46550: $ext_builddir/gettext.$suffix: \$(shared_objects_gettext) \$(GETTEXT_SHARED_DEPENDENCIES)
46551: 	$link_cmd
46552: 
46553: EOF
46554: 
46555:           ;;
46556:       esac
46557: 
46558: cat >>confdefs.h <<_ACEOF
46559: #define COMPILE_DL_GETTEXT 1
46560: _ACEOF
46561: 
46562:     fi
46563:   fi
46564: 
46565:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
46566:     PHP_GETTEXT_SHARED=no
46567:     case "$PHP_SAPI" in
46568:       cgi|embed)
46569: 
46570: 
46571:   case ext/gettext in
46572:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
46573:   /*) ac_srcdir=`echo "ext/gettext"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
46574:   *) ac_srcdir="$abs_srcdir/ext/gettext/"; ac_bdir="ext/gettext/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
46575:   esac
46576: 
46577: 
46578: 
46579:   b_c_pre=$php_c_pre
46580:   b_cxx_pre=$php_cxx_pre
46581:   b_c_meta=$php_c_meta
46582:   b_cxx_meta=$php_cxx_meta
46583:   b_c_post=$php_c_post
46584:   b_cxx_post=$php_cxx_post
46585:   b_lo=$php_lo
46586: 
46587: 
46588:   old_IFS=$IFS
46589:   for ac_src in gettext.c; do
46590: 
46591:       IFS=.
46592:       set $ac_src
46593:       ac_obj=$1
46594:       IFS=$old_IFS
46595: 
46596:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
46597: 
46598:       case $ac_src in
46599:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
46600:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
46601:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
46602:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
46603:       esac
46604: 
46605:     cat >>Makefile.objects<<EOF
46606: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
46607: 	$ac_comp
46608: EOF
46609:   done
46610: 
46611: 
46612:         EXT_STATIC="$EXT_STATIC gettext"
46613:         ;;
46614:       *)
46615: 
46616: 
46617:   case ext/gettext in
46618:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
46619:   /*) ac_srcdir=`echo "ext/gettext"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
46620:   *) ac_srcdir="$abs_srcdir/ext/gettext/"; ac_bdir="ext/gettext/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
46621:   esac
46622: 
46623: 
46624: 
46625:   b_c_pre=$php_c_pre
46626:   b_cxx_pre=$php_cxx_pre
46627:   b_c_meta=$php_c_meta
46628:   b_cxx_meta=$php_cxx_meta
46629:   b_c_post=$php_c_post
46630:   b_cxx_post=$php_cxx_post
46631:   b_lo=$php_lo
46632: 
46633: 
46634:   old_IFS=$IFS
46635:   for ac_src in gettext.c; do
46636: 
46637:       IFS=.
46638:       set $ac_src
46639:       ac_obj=$1
46640:       IFS=$old_IFS
46641: 
46642:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
46643: 
46644:       case $ac_src in
46645:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
46646:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
46647:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
46648:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
46649:       esac
46650: 
46651:     cat >>Makefile.objects<<EOF
46652: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
46653: 	$ac_comp
46654: EOF
46655:   done
46656: 
46657: 
46658:         ;;
46659:     esac
46660:     EXT_CLI_STATIC="$EXT_CLI_STATIC gettext"
46661:   fi
46662: 
46663: 
46664:     BUILD_DIR="$BUILD_DIR $ext_builddir"
46665: 
46666: 
46667: 
46668:   if test "$ext_builddir" = "."; then
46669:     PHP_PECL_EXTENSION=gettext
46670: 
46671:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
46672: 
46673:   fi
46674: 
46675: 
46676:   PHP_VAR_SUBST="$PHP_VAR_SUBST GETTEXT_SHARED_LIBADD"
46677: 
46678: 
46679:   if test -n "$GETTEXT_LIBS"; then
46680: 
46681: 
46682:   if test "$ext_shared" = "yes"; then
46683:     GETTEXT_SHARED_LIBADD="-l$GETTEXT_LIBS $GETTEXT_SHARED_LIBADD"
46684:     if test -n "$GETTEXT_LIBDIR"; then
46685: 
46686:   if test "$GETTEXT_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GETTEXT_LIBDIR" != "/usr/lib"; then
46687: 
46688:   if test -z "$GETTEXT_LIBDIR" || echo "$GETTEXT_LIBDIR" | grep '^/' >/dev/null ; then
46689:     ai_p=$GETTEXT_LIBDIR
46690:   else
46691: 
46692:     ep_dir=`echo $GETTEXT_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
46693: 
46694:     ep_realdir=`(cd "$ep_dir" && pwd)`
46695:     ai_p="$ep_realdir"/`basename "$GETTEXT_LIBDIR"`
46696:   fi
46697: 
46698: 
46699:       if test "$ext_shared" = "yes"; then
46700:         GETTEXT_SHARED_LIBADD="-L$ai_p $GETTEXT_SHARED_LIBADD"
46701:         test -n "$ld_runpath_switch" && GETTEXT_SHARED_LIBADD="$ld_runpath_switch$ai_p $GETTEXT_SHARED_LIBADD"
46702:       else
46703: 
46704: 
46705: 
46706:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
46707: 
46708:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
46709:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
46710:     eval "LIBPATH$unique=set"
46711: 
46712:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
46713:     LDFLAGS="$LDFLAGS -L$ai_p"
46714:     PHP_RPATHS="$PHP_RPATHS $ai_p"
46715: 
46716:   fi
46717: 
46718: 
46719:       fi
46720: 
46721:   fi
46722: 
46723:     fi
46724:   else
46725: 
46726: 
46727:   if test -n "$GETTEXT_LIBDIR"; then
46728: 
46729:   if test "$GETTEXT_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GETTEXT_LIBDIR" != "/usr/lib"; then
46730: 
46731:   if test -z "$GETTEXT_LIBDIR" || echo "$GETTEXT_LIBDIR" | grep '^/' >/dev/null ; then
46732:     ai_p=$GETTEXT_LIBDIR
46733:   else
46734: 
46735:     ep_dir=`echo $GETTEXT_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
46736: 
46737:     ep_realdir=`(cd "$ep_dir" && pwd)`
46738:     ai_p="$ep_realdir"/`basename "$GETTEXT_LIBDIR"`
46739:   fi
46740: 
46741: 
46742: 
46743: 
46744: 
46745:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
46746: 
46747:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
46748:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
46749:     eval "LIBPATH$unique=set"
46750: 
46751:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
46752:     LDFLAGS="$LDFLAGS -L$ai_p"
46753:     PHP_RPATHS="$PHP_RPATHS $ai_p"
46754: 
46755:   fi
46756: 
46757: 
46758: 
46759:   fi
46760: 
46761:   fi
46762: 
46763: 
46764:   case $GETTEXT_LIBS in
46765:   c|c_r|pthread*) ;;
46766:   *)
46767:       LIBS="-l$GETTEXT_LIBS $LIBS"
46768:    ;;
46769:   esac
46770: 
46771: 
46772: 
46773: 
46774:   fi
46775: 
46776: 
46777:   fi
46778: 
46779: 
46780:   if test "$GETTEXT_INCDIR" != "/usr/include"; then
46781: 
46782:   if test -z "$GETTEXT_INCDIR" || echo "$GETTEXT_INCDIR" | grep '^/' >/dev/null ; then
46783:     ai_p=$GETTEXT_INCDIR
46784:   else
46785: 
46786:     ep_dir=`echo $GETTEXT_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`
46787: 
46788:     ep_realdir=`(cd "$ep_dir" && pwd)`
46789:     ai_p="$ep_realdir"/`basename "$GETTEXT_INCDIR"`
46790:   fi
46791: 
46792: 
46793: 
46794:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
46795: 
46796:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
46797:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
46798:     eval "INCLUDEPATH$unique=set"
46799: 
46800:       if test ""; then
46801:         INCLUDES="-I$ai_p $INCLUDES"
46802:       else
46803:         INCLUDES="$INCLUDES -I$ai_p"
46804:       fi
46805: 
46806:   fi
46807: 
46808:   fi
46809: 
46810: 
46811:   as_ac_Lib=`$as_echo "ac_cv_lib_$GETTEXT_CHECK_IN_LIB''_ngettext" | $as_tr_sh`
46812: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -l$GETTEXT_CHECK_IN_LIB" >&5
46813: $as_echo_n "checking for ngettext in -l$GETTEXT_CHECK_IN_LIB... " >&6; }
46814: if eval \${$as_ac_Lib+:} false; then :
46815:   $as_echo_n "(cached) " >&6
46816: else
46817:   ac_check_lib_save_LIBS=$LIBS
46818: LIBS="-l$GETTEXT_CHECK_IN_LIB  $LIBS"
46819: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46820: /* end confdefs.h.  */
46821: 
46822: /* Override any GCC internal prototype to avoid an error.
46823:    Use char because int might match the return type of a GCC
46824:    builtin and then its argument prototype would still apply.  */
46825: #ifdef __cplusplus
46826: extern "C"
46827: #endif
46828: char ngettext ();
46829: int
46830: main ()
46831: {
46832: return ngettext ();
46833:   ;
46834:   return 0;
46835: }
46836: _ACEOF
46837: if ac_fn_c_try_link "$LINENO"; then :
46838:   eval "$as_ac_Lib=yes"
46839: else
46840:   eval "$as_ac_Lib=no"
46841: fi
46842: rm -f core conftest.err conftest.$ac_objext \
46843:     conftest$ac_exeext conftest.$ac_ext
46844: LIBS=$ac_check_lib_save_LIBS
46845: fi
46846: eval ac_res=\$$as_ac_Lib
46847: 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
46848: $as_echo "$ac_res" >&6; }
46849: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
46850: 
46851: $as_echo "#define HAVE_NGETTEXT 1" >>confdefs.h
46852: 
46853: fi
46854: 
46855:   as_ac_Lib=`$as_echo "ac_cv_lib_$GETTEXT_CHECK_IN_LIB''_dngettext" | $as_tr_sh`
46856: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dngettext in -l$GETTEXT_CHECK_IN_LIB" >&5
46857: $as_echo_n "checking for dngettext in -l$GETTEXT_CHECK_IN_LIB... " >&6; }
46858: if eval \${$as_ac_Lib+:} false; then :
46859:   $as_echo_n "(cached) " >&6
46860: else
46861:   ac_check_lib_save_LIBS=$LIBS
46862: LIBS="-l$GETTEXT_CHECK_IN_LIB  $LIBS"
46863: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46864: /* end confdefs.h.  */
46865: 
46866: /* Override any GCC internal prototype to avoid an error.
46867:    Use char because int might match the return type of a GCC
46868:    builtin and then its argument prototype would still apply.  */
46869: #ifdef __cplusplus
46870: extern "C"
46871: #endif
46872: char dngettext ();
46873: int
46874: main ()
46875: {
46876: return dngettext ();
46877:   ;
46878:   return 0;
46879: }
46880: _ACEOF
46881: if ac_fn_c_try_link "$LINENO"; then :
46882:   eval "$as_ac_Lib=yes"
46883: else
46884:   eval "$as_ac_Lib=no"
46885: fi
46886: rm -f core conftest.err conftest.$ac_objext \
46887:     conftest$ac_exeext conftest.$ac_ext
46888: LIBS=$ac_check_lib_save_LIBS
46889: fi
46890: eval ac_res=\$$as_ac_Lib
46891: 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
46892: $as_echo "$ac_res" >&6; }
46893: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
46894: 
46895: $as_echo "#define HAVE_DNGETTEXT 1" >>confdefs.h
46896: 
46897: fi
46898: 
46899:   as_ac_Lib=`$as_echo "ac_cv_lib_$GETTEXT_CHECK_IN_LIB''_dcngettext" | $as_tr_sh`
46900: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dcngettext in -l$GETTEXT_CHECK_IN_LIB" >&5
46901: $as_echo_n "checking for dcngettext in -l$GETTEXT_CHECK_IN_LIB... " >&6; }
46902: if eval \${$as_ac_Lib+:} false; then :
46903:   $as_echo_n "(cached) " >&6
46904: else
46905:   ac_check_lib_save_LIBS=$LIBS
46906: LIBS="-l$GETTEXT_CHECK_IN_LIB  $LIBS"
46907: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46908: /* end confdefs.h.  */
46909: 
46910: /* Override any GCC internal prototype to avoid an error.
46911:    Use char because int might match the return type of a GCC
46912:    builtin and then its argument prototype would still apply.  */
46913: #ifdef __cplusplus
46914: extern "C"
46915: #endif
46916: char dcngettext ();
46917: int
46918: main ()
46919: {
46920: return dcngettext ();
46921:   ;
46922:   return 0;
46923: }
46924: _ACEOF
46925: if ac_fn_c_try_link "$LINENO"; then :
46926:   eval "$as_ac_Lib=yes"
46927: else
46928:   eval "$as_ac_Lib=no"
46929: fi
46930: rm -f core conftest.err conftest.$ac_objext \
46931:     conftest$ac_exeext conftest.$ac_ext
46932: LIBS=$ac_check_lib_save_LIBS
46933: fi
46934: eval ac_res=\$$as_ac_Lib
46935: 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
46936: $as_echo "$ac_res" >&6; }
46937: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
46938: 
46939: $as_echo "#define HAVE_DCNGETTEXT 1" >>confdefs.h
46940: 
46941: fi
46942: 
46943:   as_ac_Lib=`$as_echo "ac_cv_lib_$GETTEXT_CHECK_IN_LIB''_bind_textdomain_codeset" | $as_tr_sh`
46944: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind_textdomain_codeset in -l$GETTEXT_CHECK_IN_LIB" >&5
46945: $as_echo_n "checking for bind_textdomain_codeset in -l$GETTEXT_CHECK_IN_LIB... " >&6; }
46946: if eval \${$as_ac_Lib+:} false; then :
46947:   $as_echo_n "(cached) " >&6
46948: else
46949:   ac_check_lib_save_LIBS=$LIBS
46950: LIBS="-l$GETTEXT_CHECK_IN_LIB  $LIBS"
46951: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46952: /* end confdefs.h.  */
46953: 
46954: /* Override any GCC internal prototype to avoid an error.
46955:    Use char because int might match the return type of a GCC
46956:    builtin and then its argument prototype would still apply.  */
46957: #ifdef __cplusplus
46958: extern "C"
46959: #endif
46960: char bind_textdomain_codeset ();
46961: int
46962: main ()
46963: {
46964: return bind_textdomain_codeset ();
46965:   ;
46966:   return 0;
46967: }
46968: _ACEOF
46969: if ac_fn_c_try_link "$LINENO"; then :
46970:   eval "$as_ac_Lib=yes"
46971: else
46972:   eval "$as_ac_Lib=no"
46973: fi
46974: rm -f core conftest.err conftest.$ac_objext \
46975:     conftest$ac_exeext conftest.$ac_ext
46976: LIBS=$ac_check_lib_save_LIBS
46977: fi
46978: eval ac_res=\$$as_ac_Lib
46979: 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
46980: $as_echo "$ac_res" >&6; }
46981: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
46982: 
46983: $as_echo "#define HAVE_BIND_TEXTDOMAIN_CODESET 1" >>confdefs.h
46984: 
46985: fi
46986: 
46987: 
46988: fi
46989: 
46990: 
46991: 
46992: php_with_gmp=no
46993: 
46994: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU MP support" >&5
46995: $as_echo_n "checking for GNU MP support... " >&6; }
46996: 
46997: # Check whether --with-gmp was given.
46998: if test "${with_gmp+set}" = set; then :
46999:   withval=$with_gmp; PHP_GMP=$withval
47000: else
47001: 
47002:   PHP_GMP=no
47003:   test "$PHP_ENABLE_ALL" && PHP_GMP=$PHP_ENABLE_ALL
47004: 
47005: fi
47006: 
47007: 
47008: 
47009: ext_output="yes, shared"
47010: ext_shared=yes
47011: case $PHP_GMP in
47012: shared,*)
47013:   PHP_GMP=`echo "$PHP_GMP"|$SED 's/^shared,//'`
47014:   ;;
47015: shared)
47016:   PHP_GMP=yes
47017:   ;;
47018: no)
47019:   ext_output=no
47020:   ext_shared=no
47021:   ;;
47022: *)
47023:   ext_output=yes
47024:   ext_shared=no
47025:   ;;
47026: esac
47027: 
47028: 
47029: 
47030: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
47031: $as_echo "$ext_output" >&6; }
47032: 
47033: 
47034: 
47035: 
47036: if test "$PHP_GMP" != "no"; then
47037: 
47038:   for i in $PHP_GMP /usr/local /usr; do
47039:     test -f $i/include/gmp.h && GMP_DIR=$i && break
47040:   done
47041: 
47042:   if test -z "$GMP_DIR"; then
47043:     as_fn_error $? "Unable to locate gmp.h" "$LINENO" 5
47044:   fi
47045: 
47046: 
47047:   save_old_LDFLAGS=$LDFLAGS
47048:   ac_stuff="
47049:     -L$GMP_DIR/$PHP_LIBDIR
47050:   "
47051: 
47052:   save_ext_shared=$ext_shared
47053:   ext_shared=yes
47054: 
47055:   for ac_i in $ac_stuff; do
47056:     case $ac_i in
47057:     -pthread)
47058:       if test "$ext_shared" = "yes"; then
47059:         LDFLAGS="$LDFLAGS -pthread"
47060:       else
47061: 
47062: 
47063:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
47064: 
47065:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
47066:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
47067:     eval "EXTRA_LDFLAGS$unique=set"
47068:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
47069:   fi
47070: 
47071:       fi
47072:     ;;
47073:     -l*)
47074:       ac_ii=`echo $ac_i|cut -c 3-`
47075: 
47076: 
47077:   case $ac_ii in
47078:   c|c_r|pthread*) ;;
47079:   *)
47080:     if test "$ext_shared" = "yes"; then
47081:         LDFLAGS="$LDFLAGS -l$ac_ii"
47082:     else
47083: 
47084: 
47085:   case $ac_ii in
47086:   c|c_r|pthread*) ;;
47087:   *)
47088:       LIBS="$LIBS -l$ac_ii"
47089:    ;;
47090:   esac
47091: 
47092: 
47093:     fi
47094:    ;;
47095:   esac
47096: 
47097: 
47098:     ;;
47099:     -L*)
47100:       ac_ii=`echo $ac_i|cut -c 3-`
47101: 
47102:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
47103: 
47104:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
47105:     ai_p=$ac_ii
47106:   else
47107: 
47108:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
47109: 
47110:     ep_realdir=`(cd "$ep_dir" && pwd)`
47111:     ai_p="$ep_realdir"/`basename "$ac_ii"`
47112:   fi
47113: 
47114: 
47115:       if test "$ext_shared" = "yes"; then
47116:         LDFLAGS="-L$ai_p $LDFLAGS"
47117:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
47118:       else
47119: 
47120: 
47121: 
47122:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
47123: 
47124:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
47125:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
47126:     eval "LIBPATH$unique=set"
47127: 
47128:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
47129:     LDFLAGS="$LDFLAGS -L$ai_p"
47130:     PHP_RPATHS="$PHP_RPATHS $ai_p"
47131: 
47132:   fi
47133: 
47134: 
47135:       fi
47136: 
47137:   fi
47138: 
47139:     ;;
47140:     esac
47141:   done
47142: 
47143:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmp_randinit_lc_2exp_size in -lgmp" >&5
47144: $as_echo_n "checking for __gmp_randinit_lc_2exp_size in -lgmp... " >&6; }
47145: if ${ac_cv_lib_gmp___gmp_randinit_lc_2exp_size+:} false; then :
47146:   $as_echo_n "(cached) " >&6
47147: else
47148:   ac_check_lib_save_LIBS=$LIBS
47149: LIBS="-lgmp  $LIBS"
47150: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47151: /* end confdefs.h.  */
47152: 
47153: /* Override any GCC internal prototype to avoid an error.
47154:    Use char because int might match the return type of a GCC
47155:    builtin and then its argument prototype would still apply.  */
47156: #ifdef __cplusplus
47157: extern "C"
47158: #endif
47159: char __gmp_randinit_lc_2exp_size ();
47160: int
47161: main ()
47162: {
47163: return __gmp_randinit_lc_2exp_size ();
47164:   ;
47165:   return 0;
47166: }
47167: _ACEOF
47168: if ac_fn_c_try_link "$LINENO"; then :
47169:   ac_cv_lib_gmp___gmp_randinit_lc_2exp_size=yes
47170: else
47171:   ac_cv_lib_gmp___gmp_randinit_lc_2exp_size=no
47172: fi
47173: rm -f core conftest.err conftest.$ac_objext \
47174:     conftest$ac_exeext conftest.$ac_ext
47175: LIBS=$ac_check_lib_save_LIBS
47176: fi
47177: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmp_randinit_lc_2exp_size" >&5
47178: $as_echo "$ac_cv_lib_gmp___gmp_randinit_lc_2exp_size" >&6; }
47179: if test "x$ac_cv_lib_gmp___gmp_randinit_lc_2exp_size" = xyes; then :
47180: 
47181:     LDFLAGS=$save_old_LDFLAGS
47182:     ext_shared=$save_ext_shared
47183: 
47184: 
47185: else
47186: 
47187:     LDFLAGS=$save_old_LDFLAGS
47188:     ext_shared=$save_ext_shared
47189:     unset ac_cv_lib_gmp___gmp_randinit_lc_2exp_size
47190: 
47191: 
47192:   save_old_LDFLAGS=$LDFLAGS
47193:   ac_stuff="
47194:       -L$GMP_DIR/$PHP_LIBDIR
47195:     "
47196: 
47197:   save_ext_shared=$ext_shared
47198:   ext_shared=yes
47199: 
47200:   for ac_i in $ac_stuff; do
47201:     case $ac_i in
47202:     -pthread)
47203:       if test "$ext_shared" = "yes"; then
47204:         LDFLAGS="$LDFLAGS -pthread"
47205:       else
47206: 
47207: 
47208:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
47209: 
47210:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
47211:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
47212:     eval "EXTRA_LDFLAGS$unique=set"
47213:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
47214:   fi
47215: 
47216:       fi
47217:     ;;
47218:     -l*)
47219:       ac_ii=`echo $ac_i|cut -c 3-`
47220: 
47221: 
47222:   case $ac_ii in
47223:   c|c_r|pthread*) ;;
47224:   *)
47225:     if test "$ext_shared" = "yes"; then
47226:         LDFLAGS="$LDFLAGS -l$ac_ii"
47227:     else
47228: 
47229: 
47230:   case $ac_ii in
47231:   c|c_r|pthread*) ;;
47232:   *)
47233:       LIBS="$LIBS -l$ac_ii"
47234:    ;;
47235:   esac
47236: 
47237: 
47238:     fi
47239:    ;;
47240:   esac
47241: 
47242: 
47243:     ;;
47244:     -L*)
47245:       ac_ii=`echo $ac_i|cut -c 3-`
47246: 
47247:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
47248: 
47249:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
47250:     ai_p=$ac_ii
47251:   else
47252: 
47253:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
47254: 
47255:     ep_realdir=`(cd "$ep_dir" && pwd)`
47256:     ai_p="$ep_realdir"/`basename "$ac_ii"`
47257:   fi
47258: 
47259: 
47260:       if test "$ext_shared" = "yes"; then
47261:         LDFLAGS="-L$ai_p $LDFLAGS"
47262:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
47263:       else
47264: 
47265: 
47266: 
47267:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
47268: 
47269:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
47270:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
47271:     eval "LIBPATH$unique=set"
47272: 
47273:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
47274:     LDFLAGS="$LDFLAGS -L$ai_p"
47275:     PHP_RPATHS="$PHP_RPATHS $ai_p"
47276: 
47277:   fi
47278: 
47279: 
47280:       fi
47281: 
47282:   fi
47283: 
47284:     ;;
47285:     esac
47286:   done
47287: 
47288:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gmp_randinit_lc_2exp_size in -lgmp" >&5
47289: $as_echo_n "checking for gmp_randinit_lc_2exp_size in -lgmp... " >&6; }
47290: if ${ac_cv_lib_gmp_gmp_randinit_lc_2exp_size+:} false; then :
47291:   $as_echo_n "(cached) " >&6
47292: else
47293:   ac_check_lib_save_LIBS=$LIBS
47294: LIBS="-lgmp  $LIBS"
47295: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47296: /* end confdefs.h.  */
47297: 
47298: /* Override any GCC internal prototype to avoid an error.
47299:    Use char because int might match the return type of a GCC
47300:    builtin and then its argument prototype would still apply.  */
47301: #ifdef __cplusplus
47302: extern "C"
47303: #endif
47304: char gmp_randinit_lc_2exp_size ();
47305: int
47306: main ()
47307: {
47308: return gmp_randinit_lc_2exp_size ();
47309:   ;
47310:   return 0;
47311: }
47312: _ACEOF
47313: if ac_fn_c_try_link "$LINENO"; then :
47314:   ac_cv_lib_gmp_gmp_randinit_lc_2exp_size=yes
47315: else
47316:   ac_cv_lib_gmp_gmp_randinit_lc_2exp_size=no
47317: fi
47318: rm -f core conftest.err conftest.$ac_objext \
47319:     conftest$ac_exeext conftest.$ac_ext
47320: LIBS=$ac_check_lib_save_LIBS
47321: fi
47322: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp_gmp_randinit_lc_2exp_size" >&5
47323: $as_echo "$ac_cv_lib_gmp_gmp_randinit_lc_2exp_size" >&6; }
47324: if test "x$ac_cv_lib_gmp_gmp_randinit_lc_2exp_size" = xyes; then :
47325: 
47326:     LDFLAGS=$save_old_LDFLAGS
47327:     ext_shared=$save_ext_shared
47328: 
47329: 
47330: else
47331: 
47332:     LDFLAGS=$save_old_LDFLAGS
47333:     ext_shared=$save_ext_shared
47334:     unset ac_cv_lib_gmp_gmp_randinit_lc_2exp_size
47335: 
47336:       as_fn_error $? "GNU MP Library version 4.1.2 or greater required." "$LINENO" 5
47337: 
47338: 
47339: fi
47340: 
47341: 
47342: 
47343: fi
47344: 
47345: 
47346: 
47347: 
47348:   if test "$ext_shared" = "yes"; then
47349:     GMP_SHARED_LIBADD="-lgmp $GMP_SHARED_LIBADD"
47350:     if test -n "$GMP_DIR/$PHP_LIBDIR"; then
47351: 
47352:   if test "$GMP_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GMP_DIR/$PHP_LIBDIR" != "/usr/lib"; then
47353: 
47354:   if test -z "$GMP_DIR/$PHP_LIBDIR" || echo "$GMP_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
47355:     ai_p=$GMP_DIR/$PHP_LIBDIR
47356:   else
47357: 
47358:     ep_dir=`echo $GMP_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
47359: 
47360:     ep_realdir=`(cd "$ep_dir" && pwd)`
47361:     ai_p="$ep_realdir"/`basename "$GMP_DIR/$PHP_LIBDIR"`
47362:   fi
47363: 
47364: 
47365:       if test "$ext_shared" = "yes"; then
47366:         GMP_SHARED_LIBADD="-L$ai_p $GMP_SHARED_LIBADD"
47367:         test -n "$ld_runpath_switch" && GMP_SHARED_LIBADD="$ld_runpath_switch$ai_p $GMP_SHARED_LIBADD"
47368:       else
47369: 
47370: 
47371: 
47372:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
47373: 
47374:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
47375:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
47376:     eval "LIBPATH$unique=set"
47377: 
47378:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
47379:     LDFLAGS="$LDFLAGS -L$ai_p"
47380:     PHP_RPATHS="$PHP_RPATHS $ai_p"
47381: 
47382:   fi
47383: 
47384: 
47385:       fi
47386: 
47387:   fi
47388: 
47389:     fi
47390:   else
47391: 
47392: 
47393:   if test -n "$GMP_DIR/$PHP_LIBDIR"; then
47394: 
47395:   if test "$GMP_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GMP_DIR/$PHP_LIBDIR" != "/usr/lib"; then
47396: 
47397:   if test -z "$GMP_DIR/$PHP_LIBDIR" || echo "$GMP_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
47398:     ai_p=$GMP_DIR/$PHP_LIBDIR
47399:   else
47400: 
47401:     ep_dir=`echo $GMP_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
47402: 
47403:     ep_realdir=`(cd "$ep_dir" && pwd)`
47404:     ai_p="$ep_realdir"/`basename "$GMP_DIR/$PHP_LIBDIR"`
47405:   fi
47406: 
47407: 
47408: 
47409: 
47410: 
47411:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
47412: 
47413:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
47414:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
47415:     eval "LIBPATH$unique=set"
47416: 
47417:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
47418:     LDFLAGS="$LDFLAGS -L$ai_p"
47419:     PHP_RPATHS="$PHP_RPATHS $ai_p"
47420: 
47421:   fi
47422: 
47423: 
47424: 
47425:   fi
47426: 
47427:   fi
47428: 
47429: 
47430:   case gmp in
47431:   c|c_r|pthread*) ;;
47432:   *)
47433:       LIBS="-lgmp $LIBS"
47434:    ;;
47435:   esac
47436: 
47437: 
47438: 
47439: 
47440:   fi
47441: 
47442: 
47443: 
47444:   if test "$GMP_DIR/include" != "/usr/include"; then
47445: 
47446:   if test -z "$GMP_DIR/include" || echo "$GMP_DIR/include" | grep '^/' >/dev/null ; then
47447:     ai_p=$GMP_DIR/include
47448:   else
47449: 
47450:     ep_dir=`echo $GMP_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`
47451: 
47452:     ep_realdir=`(cd "$ep_dir" && pwd)`
47453:     ai_p="$ep_realdir"/`basename "$GMP_DIR/include"`
47454:   fi
47455: 
47456: 
47457: 
47458:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
47459: 
47460:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
47461:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
47462:     eval "INCLUDEPATH$unique=set"
47463: 
47464:       if test ""; then
47465:         INCLUDES="-I$ai_p $INCLUDES"
47466:       else
47467:         INCLUDES="$INCLUDES -I$ai_p"
47468:       fi
47469: 
47470:   fi
47471: 
47472:   fi
47473: 
47474: 
47475: 
47476:   ext_builddir=ext/gmp
47477:   ext_srcdir=$abs_srcdir/ext/gmp
47478: 
47479:   ac_extra=
47480: 
47481:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
47482:     PHP_GMP_SHARED=no
47483: 
47484: 
47485:   case ext/gmp in
47486:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
47487:   /*) ac_srcdir=`echo "ext/gmp"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
47488:   *) ac_srcdir="$abs_srcdir/ext/gmp/"; ac_bdir="ext/gmp/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
47489:   esac
47490: 
47491: 
47492: 
47493:   b_c_pre=$php_c_pre
47494:   b_cxx_pre=$php_cxx_pre
47495:   b_c_meta=$php_c_meta
47496:   b_cxx_meta=$php_cxx_meta
47497:   b_c_post=$php_c_post
47498:   b_cxx_post=$php_cxx_post
47499:   b_lo=$php_lo
47500: 
47501: 
47502:   old_IFS=$IFS
47503:   for ac_src in gmp.c; do
47504: 
47505:       IFS=.
47506:       set $ac_src
47507:       ac_obj=$1
47508:       IFS=$old_IFS
47509: 
47510:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
47511: 
47512:       case $ac_src in
47513:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
47514:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
47515:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
47516:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
47517:       esac
47518: 
47519:     cat >>Makefile.objects<<EOF
47520: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
47521: 	$ac_comp
47522: EOF
47523:   done
47524: 
47525: 
47526:     EXT_STATIC="$EXT_STATIC gmp"
47527:     if test "$ext_shared" != "nocli"; then
47528:       EXT_CLI_STATIC="$EXT_CLI_STATIC gmp"
47529:     fi
47530:   else
47531:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
47532:       PHP_GMP_SHARED=yes
47533: 
47534:   case ext/gmp in
47535:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
47536:   /*) ac_srcdir=`echo "ext/gmp"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
47537:   *) ac_srcdir="$abs_srcdir/ext/gmp/"; ac_bdir="ext/gmp/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
47538:   esac
47539: 
47540: 
47541: 
47542:   b_c_pre=$shared_c_pre
47543:   b_cxx_pre=$shared_cxx_pre
47544:   b_c_meta=$shared_c_meta
47545:   b_cxx_meta=$shared_cxx_meta
47546:   b_c_post=$shared_c_post
47547:   b_cxx_post=$shared_cxx_post
47548:   b_lo=$shared_lo
47549: 
47550: 
47551:   old_IFS=$IFS
47552:   for ac_src in gmp.c; do
47553: 
47554:       IFS=.
47555:       set $ac_src
47556:       ac_obj=$1
47557:       IFS=$old_IFS
47558: 
47559:       shared_objects_gmp="$shared_objects_gmp $ac_bdir$ac_obj.lo"
47560: 
47561:       case $ac_src in
47562:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
47563:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
47564:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
47565:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
47566:       esac
47567: 
47568:     cat >>Makefile.objects<<EOF
47569: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
47570: 	$ac_comp
47571: EOF
47572:   done
47573: 
47574:       case $host_alias in
47575:         *netware*)
47576: 
47577:   install_modules="install-modules"
47578: 
47579:   case $host_alias in
47580:     *aix*)
47581:       suffix=so
47582:       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'
47583:       ;;
47584:     *netware*)
47585:       suffix=nlm
47586:       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)'
47587:       ;;
47588:     *)
47589:       suffix=la
47590:       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)'
47591:       ;;
47592:   esac
47593: 
47594:   if test "x" = "xyes"; then
47595:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpgmp.$suffix"
47596:   else
47597:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpgmp.$suffix"
47598:   fi
47599: 
47600:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_gmp"
47601: 
47602:   cat >>Makefile.objects<<EOF
47603: \$(phplibdir)/phpgmp.$suffix: $ext_builddir/phpgmp.$suffix
47604: 	\$(LIBTOOL) --mode=install cp $ext_builddir/phpgmp.$suffix \$(phplibdir)
47605: 
47606: $ext_builddir/phpgmp.$suffix: \$(shared_objects_gmp) \$(PHPGMP_SHARED_DEPENDENCIES)
47607: 	$link_cmd
47608: 
47609: EOF
47610: 
47611:           ;;
47612:         *)
47613: 
47614:   install_modules="install-modules"
47615: 
47616:   case $host_alias in
47617:     *aix*)
47618:       suffix=so
47619:       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'
47620:       ;;
47621:     *netware*)
47622:       suffix=nlm
47623:       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)'
47624:       ;;
47625:     *)
47626:       suffix=la
47627:       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)'
47628:       ;;
47629:   esac
47630: 
47631:   if test "x" = "xyes"; then
47632:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/gmp.$suffix"
47633:   else
47634:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/gmp.$suffix"
47635:   fi
47636: 
47637:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_gmp"
47638: 
47639:   cat >>Makefile.objects<<EOF
47640: \$(phplibdir)/gmp.$suffix: $ext_builddir/gmp.$suffix
47641: 	\$(LIBTOOL) --mode=install cp $ext_builddir/gmp.$suffix \$(phplibdir)
47642: 
47643: $ext_builddir/gmp.$suffix: \$(shared_objects_gmp) \$(GMP_SHARED_DEPENDENCIES)
47644: 	$link_cmd
47645: 
47646: EOF
47647: 
47648:           ;;
47649:       esac
47650: 
47651: cat >>confdefs.h <<_ACEOF
47652: #define COMPILE_DL_GMP 1
47653: _ACEOF
47654: 
47655:     fi
47656:   fi
47657: 
47658:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
47659:     PHP_GMP_SHARED=no
47660:     case "$PHP_SAPI" in
47661:       cgi|embed)
47662: 
47663: 
47664:   case ext/gmp in
47665:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
47666:   /*) ac_srcdir=`echo "ext/gmp"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
47667:   *) ac_srcdir="$abs_srcdir/ext/gmp/"; ac_bdir="ext/gmp/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
47668:   esac
47669: 
47670: 
47671: 
47672:   b_c_pre=$php_c_pre
47673:   b_cxx_pre=$php_cxx_pre
47674:   b_c_meta=$php_c_meta
47675:   b_cxx_meta=$php_cxx_meta
47676:   b_c_post=$php_c_post
47677:   b_cxx_post=$php_cxx_post
47678:   b_lo=$php_lo
47679: 
47680: 
47681:   old_IFS=$IFS
47682:   for ac_src in gmp.c; do
47683: 
47684:       IFS=.
47685:       set $ac_src
47686:       ac_obj=$1
47687:       IFS=$old_IFS
47688: 
47689:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
47690: 
47691:       case $ac_src in
47692:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
47693:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
47694:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
47695:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
47696:       esac
47697: 
47698:     cat >>Makefile.objects<<EOF
47699: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
47700: 	$ac_comp
47701: EOF
47702:   done
47703: 
47704: 
47705:         EXT_STATIC="$EXT_STATIC gmp"
47706:         ;;
47707:       *)
47708: 
47709: 
47710:   case ext/gmp in
47711:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
47712:   /*) ac_srcdir=`echo "ext/gmp"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
47713:   *) ac_srcdir="$abs_srcdir/ext/gmp/"; ac_bdir="ext/gmp/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
47714:   esac
47715: 
47716: 
47717: 
47718:   b_c_pre=$php_c_pre
47719:   b_cxx_pre=$php_cxx_pre
47720:   b_c_meta=$php_c_meta
47721:   b_cxx_meta=$php_cxx_meta
47722:   b_c_post=$php_c_post
47723:   b_cxx_post=$php_cxx_post
47724:   b_lo=$php_lo
47725: 
47726: 
47727:   old_IFS=$IFS
47728:   for ac_src in gmp.c; do
47729: 
47730:       IFS=.
47731:       set $ac_src
47732:       ac_obj=$1
47733:       IFS=$old_IFS
47734: 
47735:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
47736: 
47737:       case $ac_src in
47738:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
47739:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
47740:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
47741:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
47742:       esac
47743: 
47744:     cat >>Makefile.objects<<EOF
47745: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
47746: 	$ac_comp
47747: EOF
47748:   done
47749: 
47750: 
47751:         ;;
47752:     esac
47753:     EXT_CLI_STATIC="$EXT_CLI_STATIC gmp"
47754:   fi
47755: 
47756: 
47757:     BUILD_DIR="$BUILD_DIR $ext_builddir"
47758: 
47759: 
47760: 
47761:   if test "$ext_builddir" = "."; then
47762:     PHP_PECL_EXTENSION=gmp
47763: 
47764:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
47765: 
47766:   fi
47767: 
47768: 
47769:   PHP_VAR_SUBST="$PHP_VAR_SUBST GMP_SHARED_LIBADD"
47770: 
47771: 
47772: $as_echo "#define HAVE_GMP 1" >>confdefs.h
47773: 
47774: fi
47775: 
47776: 
47777: 
47778: php_with_mhash=no
47779: 
47780: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mhash support" >&5
47781: $as_echo_n "checking for mhash support... " >&6; }
47782: 
47783: # Check whether --with-mhash was given.
47784: if test "${with_mhash+set}" = set; then :
47785:   withval=$with_mhash; PHP_MHASH=$withval
47786: else
47787: 
47788:   PHP_MHASH=no
47789:   test "$PHP_ENABLE_ALL" && PHP_MHASH=$PHP_ENABLE_ALL
47790: 
47791: fi
47792: 
47793: 
47794: 
47795: ext_output="yes, shared"
47796: ext_shared=yes
47797: case $PHP_MHASH in
47798: shared,*)
47799:   PHP_MHASH=`echo "$PHP_MHASH"|$SED 's/^shared,//'`
47800:   ;;
47801: shared)
47802:   PHP_MHASH=yes
47803:   ;;
47804: no)
47805:   ext_output=no
47806:   ext_shared=no
47807:   ;;
47808: *)
47809:   ext_output=yes
47810:   ext_shared=no
47811:   ;;
47812: esac
47813: 
47814: 
47815: 
47816: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
47817: $as_echo "$ext_output" >&6; }
47818: 
47819: 
47820: 
47821: 
47822: 
47823: php_enable_hash=yes
47824: 
47825: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable hash support" >&5
47826: $as_echo_n "checking whether to enable hash support... " >&6; }
47827: # Check whether --enable-hash was given.
47828: if test "${enable_hash+set}" = set; then :
47829:   enableval=$enable_hash; PHP_HASH=$enableval
47830: else
47831: 
47832:   PHP_HASH=yes
47833:   test "$PHP_ENABLE_ALL" && PHP_HASH=$PHP_ENABLE_ALL
47834: 
47835: fi
47836: 
47837: 
47838: 
47839: ext_output="yes, shared"
47840: ext_shared=yes
47841: case $PHP_HASH in
47842: shared,*)
47843:   PHP_HASH=`echo "$PHP_HASH"|$SED 's/^shared,//'`
47844:   ;;
47845: shared)
47846:   PHP_HASH=yes
47847:   ;;
47848: no)
47849:   ext_output=no
47850:   ext_shared=no
47851:   ;;
47852: *)
47853:   ext_output=yes
47854:   ext_shared=no
47855:   ;;
47856: esac
47857: 
47858: 
47859: 
47860: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
47861: $as_echo "$ext_output" >&6; }
47862: 
47863: 
47864: 
47865: 
47866: if test "$PHP_MHASH" != "no"; then
47867:   if test "$PHP_HASH" = "no"; then
47868:     PHP_HASH="yes"
47869:   fi
47870: 
47871: 
47872: $as_echo "#define PHP_MHASH_BC 1" >>confdefs.h
47873: 
47874: fi
47875: 
47876: if test "$PHP_HASH" != "no"; then
47877: 
47878: $as_echo "#define HAVE_HASH_EXT 1" >>confdefs.h
47879: 
47880: 
47881:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
47882: $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
47883: if ${ac_cv_c_bigendian_php+:} false; then :
47884:   $as_echo_n "(cached) " >&6
47885: else
47886: 
47887:   ac_cv_c_bigendian_php=unknown
47888:   if test "$cross_compiling" = yes; then :
47889:   ac_cv_c_bigendian_php=unknown
47890: else
47891:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47892: /* end confdefs.h.  */
47893: 
47894: int main(void)
47895: {
47896:   short one = 1;
47897:   char *cp = (char *)&one;
47898: 
47899:   if (*cp == 0) {
47900:     return(0);
47901:   } else {
47902:     return(1);
47903:   }
47904: }
47905: 
47906: _ACEOF
47907: if ac_fn_c_try_run "$LINENO"; then :
47908:   ac_cv_c_bigendian_php=yes
47909: else
47910:   ac_cv_c_bigendian_php=no
47911: fi
47912: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
47913:   conftest.$ac_objext conftest.beam conftest.$ac_ext
47914: fi
47915: 
47916: 
47917: fi
47918: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian_php" >&5
47919: $as_echo "$ac_cv_c_bigendian_php" >&6; }
47920:  if test $ac_cv_c_bigendian_php = yes; then
47921: 
47922: $as_echo "#define WORDS_BIGENDIAN /**/" >>confdefs.h
47923: 
47924:  fi
47925: 
47926: 
47927:   # The cast to long int works around a bug in the HP C Compiler
47928: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
47929: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
47930: # This bug is HP SR number 8606223364.
47931: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
47932: $as_echo_n "checking size of short... " >&6; }
47933: if ${ac_cv_sizeof_short+:} false; then :
47934:   $as_echo_n "(cached) " >&6
47935: else
47936:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
47937: 
47938: else
47939:   if test "$ac_cv_type_short" = yes; then
47940:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
47941: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
47942: as_fn_error 77 "cannot compute sizeof (short)
47943: See \`config.log' for more details" "$LINENO" 5; }
47944:    else
47945:      ac_cv_sizeof_short=0
47946:    fi
47947: fi
47948: 
47949: fi
47950: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
47951: $as_echo "$ac_cv_sizeof_short" >&6; }
47952: 
47953: 
47954: 
47955: cat >>confdefs.h <<_ACEOF
47956: #define SIZEOF_SHORT $ac_cv_sizeof_short
47957: _ACEOF
47958: 
47959: 
47960:   # The cast to long int works around a bug in the HP C Compiler
47961: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
47962: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
47963: # This bug is HP SR number 8606223364.
47964: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
47965: $as_echo_n "checking size of int... " >&6; }
47966: if ${ac_cv_sizeof_int+:} false; then :
47967:   $as_echo_n "(cached) " >&6
47968: else
47969:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
47970: 
47971: else
47972:   if test "$ac_cv_type_int" = yes; then
47973:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
47974: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
47975: as_fn_error 77 "cannot compute sizeof (int)
47976: See \`config.log' for more details" "$LINENO" 5; }
47977:    else
47978:      ac_cv_sizeof_int=0
47979:    fi
47980: fi
47981: 
47982: fi
47983: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
47984: $as_echo "$ac_cv_sizeof_int" >&6; }
47985: 
47986: 
47987: 
47988: cat >>confdefs.h <<_ACEOF
47989: #define SIZEOF_INT $ac_cv_sizeof_int
47990: _ACEOF
47991: 
47992: 
47993:   # The cast to long int works around a bug in the HP C Compiler
47994: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
47995: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
47996: # This bug is HP SR number 8606223364.
47997: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
47998: $as_echo_n "checking size of long... " >&6; }
47999: if ${ac_cv_sizeof_long+:} false; then :
48000:   $as_echo_n "(cached) " >&6
48001: else
48002:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
48003: 
48004: else
48005:   if test "$ac_cv_type_long" = yes; then
48006:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
48007: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
48008: as_fn_error 77 "cannot compute sizeof (long)
48009: See \`config.log' for more details" "$LINENO" 5; }
48010:    else
48011:      ac_cv_sizeof_long=0
48012:    fi
48013: fi
48014: 
48015: fi
48016: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
48017: $as_echo "$ac_cv_sizeof_long" >&6; }
48018: 
48019: 
48020: 
48021: cat >>confdefs.h <<_ACEOF
48022: #define SIZEOF_LONG $ac_cv_sizeof_long
48023: _ACEOF
48024: 
48025: 
48026:   # The cast to long int works around a bug in the HP C Compiler
48027: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
48028: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
48029: # This bug is HP SR number 8606223364.
48030: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
48031: $as_echo_n "checking size of long long... " >&6; }
48032: if ${ac_cv_sizeof_long_long+:} false; then :
48033:   $as_echo_n "(cached) " >&6
48034: else
48035:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
48036: 
48037: else
48038:   if test "$ac_cv_type_long_long" = yes; then
48039:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
48040: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
48041: as_fn_error 77 "cannot compute sizeof (long long)
48042: See \`config.log' for more details" "$LINENO" 5; }
48043:    else
48044:      ac_cv_sizeof_long_long=0
48045:    fi
48046: fi
48047: 
48048: fi
48049: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
48050: $as_echo "$ac_cv_sizeof_long_long" >&6; }
48051: 
48052: 
48053: 
48054: cat >>confdefs.h <<_ACEOF
48055: #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
48056: _ACEOF
48057: 
48058: 
48059: 
48060:   EXT_HASH_SOURCES="hash.c hash_md.c hash_sha.c hash_ripemd.c hash_haval.c \
48061:     hash_tiger.c hash_gost.c hash_snefru.c hash_whirlpool.c hash_adler32.c \
48062:     hash_crc32.c hash_fnv.c hash_joaat.c"
48063:   EXT_HASH_HEADERS="php_hash.h php_hash_md.h php_hash_sha.h php_hash_ripemd.h \
48064:     php_hash_haval.h php_hash_tiger.h php_hash_gost.h php_hash_snefru.h \
48065:     php_hash_whirlpool.h php_hash_adler32.h php_hash_crc32.h \
48066:     php_hash_fnv.h php_hash_joaat.h php_hash_types.h"
48067: 
48068: 
48069:   ext_builddir=ext/hash
48070:   ext_srcdir=$abs_srcdir/ext/hash
48071: 
48072:   ac_extra=
48073: 
48074:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
48075:     PHP_HASH_SHARED=no
48076: 
48077: 
48078:   case ext/hash in
48079:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
48080:   /*) ac_srcdir=`echo "ext/hash"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
48081:   *) ac_srcdir="$abs_srcdir/ext/hash/"; ac_bdir="ext/hash/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
48082:   esac
48083: 
48084: 
48085: 
48086:   b_c_pre=$php_c_pre
48087:   b_cxx_pre=$php_cxx_pre
48088:   b_c_meta=$php_c_meta
48089:   b_cxx_meta=$php_cxx_meta
48090:   b_c_post=$php_c_post
48091:   b_cxx_post=$php_cxx_post
48092:   b_lo=$php_lo
48093: 
48094: 
48095:   old_IFS=$IFS
48096:   for ac_src in $EXT_HASH_SOURCES; do
48097: 
48098:       IFS=.
48099:       set $ac_src
48100:       ac_obj=$1
48101:       IFS=$old_IFS
48102: 
48103:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
48104: 
48105:       case $ac_src in
48106:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
48107:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
48108:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
48109:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
48110:       esac
48111: 
48112:     cat >>Makefile.objects<<EOF
48113: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
48114: 	$ac_comp
48115: EOF
48116:   done
48117: 
48118: 
48119:     EXT_STATIC="$EXT_STATIC hash"
48120:     if test "$ext_shared" != "nocli"; then
48121:       EXT_CLI_STATIC="$EXT_CLI_STATIC hash"
48122:     fi
48123:   else
48124:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
48125:       PHP_HASH_SHARED=yes
48126: 
48127:   case ext/hash in
48128:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
48129:   /*) ac_srcdir=`echo "ext/hash"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
48130:   *) ac_srcdir="$abs_srcdir/ext/hash/"; ac_bdir="ext/hash/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
48131:   esac
48132: 
48133: 
48134: 
48135:   b_c_pre=$shared_c_pre
48136:   b_cxx_pre=$shared_cxx_pre
48137:   b_c_meta=$shared_c_meta
48138:   b_cxx_meta=$shared_cxx_meta
48139:   b_c_post=$shared_c_post
48140:   b_cxx_post=$shared_cxx_post
48141:   b_lo=$shared_lo
48142: 
48143: 
48144:   old_IFS=$IFS
48145:   for ac_src in $EXT_HASH_SOURCES; do
48146: 
48147:       IFS=.
48148:       set $ac_src
48149:       ac_obj=$1
48150:       IFS=$old_IFS
48151: 
48152:       shared_objects_hash="$shared_objects_hash $ac_bdir$ac_obj.lo"
48153: 
48154:       case $ac_src in
48155:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
48156:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
48157:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
48158:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
48159:       esac
48160: 
48161:     cat >>Makefile.objects<<EOF
48162: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
48163: 	$ac_comp
48164: EOF
48165:   done
48166: 
48167:       case $host_alias in
48168:         *netware*)
48169: 
48170:   install_modules="install-modules"
48171: 
48172:   case $host_alias in
48173:     *aix*)
48174:       suffix=so
48175:       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'
48176:       ;;
48177:     *netware*)
48178:       suffix=nlm
48179:       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)'
48180:       ;;
48181:     *)
48182:       suffix=la
48183:       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)'
48184:       ;;
48185:   esac
48186: 
48187:   if test "x" = "xyes"; then
48188:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phphash.$suffix"
48189:   else
48190:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phphash.$suffix"
48191:   fi
48192: 
48193:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_hash"
48194: 
48195:   cat >>Makefile.objects<<EOF
48196: \$(phplibdir)/phphash.$suffix: $ext_builddir/phphash.$suffix
48197: 	\$(LIBTOOL) --mode=install cp $ext_builddir/phphash.$suffix \$(phplibdir)
48198: 
48199: $ext_builddir/phphash.$suffix: \$(shared_objects_hash) \$(PHPHASH_SHARED_DEPENDENCIES)
48200: 	$link_cmd
48201: 
48202: EOF
48203: 
48204:           ;;
48205:         *)
48206: 
48207:   install_modules="install-modules"
48208: 
48209:   case $host_alias in
48210:     *aix*)
48211:       suffix=so
48212:       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'
48213:       ;;
48214:     *netware*)
48215:       suffix=nlm
48216:       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)'
48217:       ;;
48218:     *)
48219:       suffix=la
48220:       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)'
48221:       ;;
48222:   esac
48223: 
48224:   if test "x" = "xyes"; then
48225:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/hash.$suffix"
48226:   else
48227:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/hash.$suffix"
48228:   fi
48229: 
48230:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_hash"
48231: 
48232:   cat >>Makefile.objects<<EOF
48233: \$(phplibdir)/hash.$suffix: $ext_builddir/hash.$suffix
48234: 	\$(LIBTOOL) --mode=install cp $ext_builddir/hash.$suffix \$(phplibdir)
48235: 
48236: $ext_builddir/hash.$suffix: \$(shared_objects_hash) \$(HASH_SHARED_DEPENDENCIES)
48237: 	$link_cmd
48238: 
48239: EOF
48240: 
48241:           ;;
48242:       esac
48243: 
48244: cat >>confdefs.h <<_ACEOF
48245: #define COMPILE_DL_HASH 1
48246: _ACEOF
48247: 
48248:     fi
48249:   fi
48250: 
48251:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
48252:     PHP_HASH_SHARED=no
48253:     case "$PHP_SAPI" in
48254:       cgi|embed)
48255: 
48256: 
48257:   case ext/hash in
48258:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
48259:   /*) ac_srcdir=`echo "ext/hash"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
48260:   *) ac_srcdir="$abs_srcdir/ext/hash/"; ac_bdir="ext/hash/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
48261:   esac
48262: 
48263: 
48264: 
48265:   b_c_pre=$php_c_pre
48266:   b_cxx_pre=$php_cxx_pre
48267:   b_c_meta=$php_c_meta
48268:   b_cxx_meta=$php_cxx_meta
48269:   b_c_post=$php_c_post
48270:   b_cxx_post=$php_cxx_post
48271:   b_lo=$php_lo
48272: 
48273: 
48274:   old_IFS=$IFS
48275:   for ac_src in $EXT_HASH_SOURCES; do
48276: 
48277:       IFS=.
48278:       set $ac_src
48279:       ac_obj=$1
48280:       IFS=$old_IFS
48281: 
48282:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
48283: 
48284:       case $ac_src in
48285:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
48286:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
48287:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
48288:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
48289:       esac
48290: 
48291:     cat >>Makefile.objects<<EOF
48292: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
48293: 	$ac_comp
48294: EOF
48295:   done
48296: 
48297: 
48298:         EXT_STATIC="$EXT_STATIC hash"
48299:         ;;
48300:       *)
48301: 
48302: 
48303:   case ext/hash in
48304:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
48305:   /*) ac_srcdir=`echo "ext/hash"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
48306:   *) ac_srcdir="$abs_srcdir/ext/hash/"; ac_bdir="ext/hash/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
48307:   esac
48308: 
48309: 
48310: 
48311:   b_c_pre=$php_c_pre
48312:   b_cxx_pre=$php_cxx_pre
48313:   b_c_meta=$php_c_meta
48314:   b_cxx_meta=$php_cxx_meta
48315:   b_c_post=$php_c_post
48316:   b_cxx_post=$php_cxx_post
48317:   b_lo=$php_lo
48318: 
48319: 
48320:   old_IFS=$IFS
48321:   for ac_src in $EXT_HASH_SOURCES; do
48322: 
48323:       IFS=.
48324:       set $ac_src
48325:       ac_obj=$1
48326:       IFS=$old_IFS
48327: 
48328:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
48329: 
48330:       case $ac_src in
48331:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
48332:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
48333:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
48334:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
48335:       esac
48336: 
48337:     cat >>Makefile.objects<<EOF
48338: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
48339: 	$ac_comp
48340: EOF
48341:   done
48342: 
48343: 
48344:         ;;
48345:     esac
48346:     EXT_CLI_STATIC="$EXT_CLI_STATIC hash"
48347:   fi
48348: 
48349: 
48350:     BUILD_DIR="$BUILD_DIR $ext_builddir"
48351: 
48352: 
48353: 
48354:   if test "$ext_builddir" = "."; then
48355:     PHP_PECL_EXTENSION=hash
48356: 
48357:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
48358: 
48359:   fi
48360: 
48361: 
48362: 
48363: 
48364:     header_path=ext/hash
48365:     for header_file in $EXT_HASH_HEADERS; do
48366:       hp_hf="$header_path/$header_file"
48367: 
48368: 
48369:   unique=`echo $hp_hf|$SED 's/[^a-zA-Z0-9]/_/g'`
48370: 
48371:   cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
48372:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
48373:     eval "INSTALLHEADERS$unique=set"
48374: 
48375:         INSTALL_HEADERS="$INSTALL_HEADERS $hp_hf"
48376: 
48377:   fi
48378: 
48379:     done
48380: 
48381: 
48382: 
48383: fi
48384: 
48385: 
48386: 
48387: php_with_iconv=yes
48388: 
48389: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv support" >&5
48390: $as_echo_n "checking for iconv support... " >&6; }
48391: 
48392: # Check whether --with-iconv was given.
48393: if test "${with_iconv+set}" = set; then :
48394:   withval=$with_iconv; PHP_ICONV=$withval
48395: else
48396: 
48397:   PHP_ICONV=yes
48398:   test "$PHP_ENABLE_ALL" && PHP_ICONV=$PHP_ENABLE_ALL
48399: 
48400: fi
48401: 
48402: 
48403: 
48404: ext_output="yes, shared"
48405: ext_shared=yes
48406: case $PHP_ICONV in
48407: shared,*)
48408:   PHP_ICONV=`echo "$PHP_ICONV"|$SED 's/^shared,//'`
48409:   ;;
48410: shared)
48411:   PHP_ICONV=yes
48412:   ;;
48413: no)
48414:   ext_output=no
48415:   ext_shared=no
48416:   ;;
48417: *)
48418:   ext_output=yes
48419:   ext_shared=no
48420:   ;;
48421: esac
48422: 
48423: 
48424: 
48425: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
48426: $as_echo "$ext_output" >&6; }
48427: 
48428: 
48429: 
48430: 
48431: if test "$PHP_ICONV" != "no"; then
48432: 
48433: 
48434:   found_iconv=no
48435:   unset ICONV_DIR
48436: 
48437:   # Create the directories for a VPATH build:
48438:   $php_shtool mkdir -p ext/iconv
48439: 
48440:   echo > ext/iconv/php_have_bsd_iconv.h
48441:   echo > ext/iconv/php_have_ibm_iconv.h
48442:   echo > ext/iconv/php_have_glibc_iconv.h
48443:   echo > ext/iconv/php_have_libiconv.h
48444:   echo > ext/iconv/php_have_iconv.h
48445:   echo > ext/iconv/php_php_iconv_impl.h
48446:   echo > ext/iconv/php_iconv_aliased_libiconv.h
48447:   echo > ext/iconv/php_php_iconv_h_path.h
48448:   echo > ext/iconv/php_iconv_supports_errno.h
48449: 
48450: 
48451:   if test "$PHP_ICONV" = "yes"; then
48452:             LIBS_save="$LIBS"
48453:     LIBS=
48454:     ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
48455: if test "x$ac_cv_func_iconv" = xyes; then :
48456: 
48457:       found_iconv=yes
48458: 
48459: else
48460: 
48461:       ac_fn_c_check_func "$LINENO" "libiconv" "ac_cv_func_libiconv"
48462: if test "x$ac_cv_func_libiconv" = xyes; then :
48463: 
48464: 
48465:   echo "#define HAVE_LIBICONV 1" > ext/iconv/php_have_libiconv.h
48466: 
48467: 
48468: $as_echo "#define HAVE_LIBICONV 1" >>confdefs.h
48469: 
48470:         found_iconv=yes
48471: 
48472: fi
48473: 
48474: 
48475: fi
48476: 
48477:     LIBS="$LIBS_save"
48478:   fi
48479: 
48480:         if test "$found_iconv" = "no"; then
48481: 
48482:     for i in $PHP_ICONV /usr/local /usr; do
48483:       if test -r $i/include/giconv.h; then
48484: 
48485: $as_echo "#define HAVE_GICONV_H 1" >>confdefs.h
48486: 
48487:         ICONV_DIR=$i
48488:         iconv_lib_name=giconv
48489:         break
48490:       elif test -r $i/include/iconv.h; then
48491:         ICONV_DIR=$i
48492:         iconv_lib_name=iconv
48493:         break
48494:       fi
48495:     done
48496: 
48497:     if test -z "$ICONV_DIR"; then
48498:       as_fn_error $? "Please specify the install prefix of iconv with --with-iconv=<DIR>" "$LINENO" 5
48499:     fi
48500: 
48501:     if test -f $ICONV_DIR/$PHP_LIBDIR/lib$iconv_lib_name.a ||
48502:        test -f $ICONV_DIR/$PHP_LIBDIR/lib$iconv_lib_name.$SHLIB_SUFFIX_NAME
48503:     then
48504: 
48505:   save_old_LDFLAGS=$LDFLAGS
48506:   ac_stuff="
48507:         -L$ICONV_DIR/$PHP_LIBDIR
48508:       "
48509: 
48510:   save_ext_shared=$ext_shared
48511:   ext_shared=yes
48512: 
48513:   for ac_i in $ac_stuff; do
48514:     case $ac_i in
48515:     -pthread)
48516:       if test "$ext_shared" = "yes"; then
48517:         LDFLAGS="$LDFLAGS -pthread"
48518:       else
48519: 
48520: 
48521:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
48522: 
48523:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
48524:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
48525:     eval "EXTRA_LDFLAGS$unique=set"
48526:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
48527:   fi
48528: 
48529:       fi
48530:     ;;
48531:     -l*)
48532:       ac_ii=`echo $ac_i|cut -c 3-`
48533: 
48534: 
48535:   case $ac_ii in
48536:   c|c_r|pthread*) ;;
48537:   *)
48538:     if test "$ext_shared" = "yes"; then
48539:         LDFLAGS="$LDFLAGS -l$ac_ii"
48540:     else
48541: 
48542: 
48543:   case $ac_ii in
48544:   c|c_r|pthread*) ;;
48545:   *)
48546:       LIBS="$LIBS -l$ac_ii"
48547:    ;;
48548:   esac
48549: 
48550: 
48551:     fi
48552:    ;;
48553:   esac
48554: 
48555: 
48556:     ;;
48557:     -L*)
48558:       ac_ii=`echo $ac_i|cut -c 3-`
48559: 
48560:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
48561: 
48562:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
48563:     ai_p=$ac_ii
48564:   else
48565: 
48566:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
48567: 
48568:     ep_realdir=`(cd "$ep_dir" && pwd)`
48569:     ai_p="$ep_realdir"/`basename "$ac_ii"`
48570:   fi
48571: 
48572: 
48573:       if test "$ext_shared" = "yes"; then
48574:         LDFLAGS="-L$ai_p $LDFLAGS"
48575:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
48576:       else
48577: 
48578: 
48579: 
48580:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
48581: 
48582:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
48583:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
48584:     eval "LIBPATH$unique=set"
48585: 
48586:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
48587:     LDFLAGS="$LDFLAGS -L$ai_p"
48588:     PHP_RPATHS="$PHP_RPATHS $ai_p"
48589: 
48590:   fi
48591: 
48592: 
48593:       fi
48594: 
48595:   fi
48596: 
48597:     ;;
48598:     esac
48599:   done
48600: 
48601:   as_ac_Lib=`$as_echo "ac_cv_lib_$iconv_lib_name''_libiconv" | $as_tr_sh`
48602: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiconv in -l$iconv_lib_name" >&5
48603: $as_echo_n "checking for libiconv in -l$iconv_lib_name... " >&6; }
48604: if eval \${$as_ac_Lib+:} false; then :
48605:   $as_echo_n "(cached) " >&6
48606: else
48607:   ac_check_lib_save_LIBS=$LIBS
48608: LIBS="-l$iconv_lib_name  $LIBS"
48609: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48610: /* end confdefs.h.  */
48611: 
48612: /* Override any GCC internal prototype to avoid an error.
48613:    Use char because int might match the return type of a GCC
48614:    builtin and then its argument prototype would still apply.  */
48615: #ifdef __cplusplus
48616: extern "C"
48617: #endif
48618: char libiconv ();
48619: int
48620: main ()
48621: {
48622: return libiconv ();
48623:   ;
48624:   return 0;
48625: }
48626: _ACEOF
48627: if ac_fn_c_try_link "$LINENO"; then :
48628:   eval "$as_ac_Lib=yes"
48629: else
48630:   eval "$as_ac_Lib=no"
48631: fi
48632: rm -f core conftest.err conftest.$ac_objext \
48633:     conftest$ac_exeext conftest.$ac_ext
48634: LIBS=$ac_check_lib_save_LIBS
48635: fi
48636: eval ac_res=\$$as_ac_Lib
48637: 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
48638: $as_echo "$ac_res" >&6; }
48639: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
48640: 
48641:     LDFLAGS=$save_old_LDFLAGS
48642:     ext_shared=$save_ext_shared
48643: 
48644:         found_iconv=yes
48645: 
48646:   echo "#define HAVE_LIBICONV 1" > ext/iconv/php_have_libiconv.h
48647: 
48648: 
48649: $as_echo "#define HAVE_LIBICONV 1" >>confdefs.h
48650: 
48651: 
48652:   echo "#define ICONV_ALIASED_LIBICONV 1" > ext/iconv/php_iconv_aliased_libiconv.h
48653: 
48654: 
48655: $as_echo "#define ICONV_ALIASED_LIBICONV 1" >>confdefs.h
48656: 
48657: 
48658: 
48659: else
48660: 
48661:     LDFLAGS=$save_old_LDFLAGS
48662:     ext_shared=$save_ext_shared
48663:     unset ac_cv_lib_$iconv_lib_name_libiconv
48664: 
48665: 
48666:   save_old_LDFLAGS=$LDFLAGS
48667:   ac_stuff="
48668:           -L$ICONV_DIR/$PHP_LIBDIR
48669:         "
48670: 
48671:   save_ext_shared=$ext_shared
48672:   ext_shared=yes
48673: 
48674:   for ac_i in $ac_stuff; do
48675:     case $ac_i in
48676:     -pthread)
48677:       if test "$ext_shared" = "yes"; then
48678:         LDFLAGS="$LDFLAGS -pthread"
48679:       else
48680: 
48681: 
48682:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
48683: 
48684:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
48685:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
48686:     eval "EXTRA_LDFLAGS$unique=set"
48687:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
48688:   fi
48689: 
48690:       fi
48691:     ;;
48692:     -l*)
48693:       ac_ii=`echo $ac_i|cut -c 3-`
48694: 
48695: 
48696:   case $ac_ii in
48697:   c|c_r|pthread*) ;;
48698:   *)
48699:     if test "$ext_shared" = "yes"; then
48700:         LDFLAGS="$LDFLAGS -l$ac_ii"
48701:     else
48702: 
48703: 
48704:   case $ac_ii in
48705:   c|c_r|pthread*) ;;
48706:   *)
48707:       LIBS="$LIBS -l$ac_ii"
48708:    ;;
48709:   esac
48710: 
48711: 
48712:     fi
48713:    ;;
48714:   esac
48715: 
48716: 
48717:     ;;
48718:     -L*)
48719:       ac_ii=`echo $ac_i|cut -c 3-`
48720: 
48721:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
48722: 
48723:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
48724:     ai_p=$ac_ii
48725:   else
48726: 
48727:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
48728: 
48729:     ep_realdir=`(cd "$ep_dir" && pwd)`
48730:     ai_p="$ep_realdir"/`basename "$ac_ii"`
48731:   fi
48732: 
48733: 
48734:       if test "$ext_shared" = "yes"; then
48735:         LDFLAGS="-L$ai_p $LDFLAGS"
48736:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
48737:       else
48738: 
48739: 
48740: 
48741:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
48742: 
48743:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
48744:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
48745:     eval "LIBPATH$unique=set"
48746: 
48747:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
48748:     LDFLAGS="$LDFLAGS -L$ai_p"
48749:     PHP_RPATHS="$PHP_RPATHS $ai_p"
48750: 
48751:   fi
48752: 
48753: 
48754:       fi
48755: 
48756:   fi
48757: 
48758:     ;;
48759:     esac
48760:   done
48761: 
48762:   as_ac_Lib=`$as_echo "ac_cv_lib_$iconv_lib_name''_iconv" | $as_tr_sh`
48763: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv in -l$iconv_lib_name" >&5
48764: $as_echo_n "checking for iconv in -l$iconv_lib_name... " >&6; }
48765: if eval \${$as_ac_Lib+:} false; then :
48766:   $as_echo_n "(cached) " >&6
48767: else
48768:   ac_check_lib_save_LIBS=$LIBS
48769: LIBS="-l$iconv_lib_name  $LIBS"
48770: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48771: /* end confdefs.h.  */
48772: 
48773: /* Override any GCC internal prototype to avoid an error.
48774:    Use char because int might match the return type of a GCC
48775:    builtin and then its argument prototype would still apply.  */
48776: #ifdef __cplusplus
48777: extern "C"
48778: #endif
48779: char iconv ();
48780: int
48781: main ()
48782: {
48783: return iconv ();
48784:   ;
48785:   return 0;
48786: }
48787: _ACEOF
48788: if ac_fn_c_try_link "$LINENO"; then :
48789:   eval "$as_ac_Lib=yes"
48790: else
48791:   eval "$as_ac_Lib=no"
48792: fi
48793: rm -f core conftest.err conftest.$ac_objext \
48794:     conftest$ac_exeext conftest.$ac_ext
48795: LIBS=$ac_check_lib_save_LIBS
48796: fi
48797: eval ac_res=\$$as_ac_Lib
48798: 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
48799: $as_echo "$ac_res" >&6; }
48800: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
48801: 
48802:     LDFLAGS=$save_old_LDFLAGS
48803:     ext_shared=$save_ext_shared
48804: 
48805:           found_iconv=yes
48806: 
48807: 
48808: else
48809: 
48810:     LDFLAGS=$save_old_LDFLAGS
48811:     ext_shared=$save_ext_shared
48812:     unset ac_cv_lib_$iconv_lib_name_iconv
48813: 
48814: 
48815: fi
48816: 
48817: 
48818: 
48819: fi
48820: 
48821:     fi
48822:   fi
48823: 
48824:   if test "$found_iconv" = "yes"; then
48825: 
48826:   echo "#define HAVE_ICONV 1" > ext/iconv/php_have_iconv.h
48827: 
48828: 
48829: $as_echo "#define HAVE_ICONV 1" >>confdefs.h
48830: 
48831:     if test -n "$ICONV_DIR"; then
48832: 
48833: 
48834:   if test "$ext_shared" = "yes"; then
48835:     ICONV_SHARED_LIBADD="-l$iconv_lib_name $ICONV_SHARED_LIBADD"
48836:     if test -n "$ICONV_DIR/$PHP_LIBDIR"; then
48837: 
48838:   if test "$ICONV_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$ICONV_DIR/$PHP_LIBDIR" != "/usr/lib"; then
48839: 
48840:   if test -z "$ICONV_DIR/$PHP_LIBDIR" || echo "$ICONV_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
48841:     ai_p=$ICONV_DIR/$PHP_LIBDIR
48842:   else
48843: 
48844:     ep_dir=`echo $ICONV_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
48845: 
48846:     ep_realdir=`(cd "$ep_dir" && pwd)`
48847:     ai_p="$ep_realdir"/`basename "$ICONV_DIR/$PHP_LIBDIR"`
48848:   fi
48849: 
48850: 
48851:       if test "$ext_shared" = "yes"; then
48852:         ICONV_SHARED_LIBADD="-L$ai_p $ICONV_SHARED_LIBADD"
48853:         test -n "$ld_runpath_switch" && ICONV_SHARED_LIBADD="$ld_runpath_switch$ai_p $ICONV_SHARED_LIBADD"
48854:       else
48855: 
48856: 
48857: 
48858:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
48859: 
48860:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
48861:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
48862:     eval "LIBPATH$unique=set"
48863: 
48864:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
48865:     LDFLAGS="$LDFLAGS -L$ai_p"
48866:     PHP_RPATHS="$PHP_RPATHS $ai_p"
48867: 
48868:   fi
48869: 
48870: 
48871:       fi
48872: 
48873:   fi
48874: 
48875:     fi
48876:   else
48877: 
48878: 
48879:   if test -n "$ICONV_DIR/$PHP_LIBDIR"; then
48880: 
48881:   if test "$ICONV_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$ICONV_DIR/$PHP_LIBDIR" != "/usr/lib"; then
48882: 
48883:   if test -z "$ICONV_DIR/$PHP_LIBDIR" || echo "$ICONV_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
48884:     ai_p=$ICONV_DIR/$PHP_LIBDIR
48885:   else
48886: 
48887:     ep_dir=`echo $ICONV_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
48888: 
48889:     ep_realdir=`(cd "$ep_dir" && pwd)`
48890:     ai_p="$ep_realdir"/`basename "$ICONV_DIR/$PHP_LIBDIR"`
48891:   fi
48892: 
48893: 
48894: 
48895: 
48896: 
48897:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
48898: 
48899:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
48900:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
48901:     eval "LIBPATH$unique=set"
48902: 
48903:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
48904:     LDFLAGS="$LDFLAGS -L$ai_p"
48905:     PHP_RPATHS="$PHP_RPATHS $ai_p"
48906: 
48907:   fi
48908: 
48909: 
48910: 
48911:   fi
48912: 
48913:   fi
48914: 
48915: 
48916:   case $iconv_lib_name in
48917:   c|c_r|pthread*) ;;
48918:   *)
48919:       LIBS="-l$iconv_lib_name $LIBS"
48920:    ;;
48921:   esac
48922: 
48923: 
48924: 
48925: 
48926:   fi
48927: 
48928: 
48929: 
48930:   if test "$ICONV_DIR/include" != "/usr/include"; then
48931: 
48932:   if test -z "$ICONV_DIR/include" || echo "$ICONV_DIR/include" | grep '^/' >/dev/null ; then
48933:     ai_p=$ICONV_DIR/include
48934:   else
48935: 
48936:     ep_dir=`echo $ICONV_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`
48937: 
48938:     ep_realdir=`(cd "$ep_dir" && pwd)`
48939:     ai_p="$ep_realdir"/`basename "$ICONV_DIR/include"`
48940:   fi
48941: 
48942: 
48943: 
48944:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
48945: 
48946:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
48947:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
48948:     eval "INCLUDEPATH$unique=set"
48949: 
48950:       if test ""; then
48951:         INCLUDES="-I$ai_p $INCLUDES"
48952:       else
48953:         INCLUDES="$INCLUDES -I$ai_p"
48954:       fi
48955: 
48956:   fi
48957: 
48958:   fi
48959: 
48960:     fi
48961: 
48962:     iconv_avail="yes";
48963: 
48964: else
48965:     iconv_avail="no";
48966: 
48967:   fi
48968: 
48969: 
48970:   if test "$iconv_avail" != "no"; then
48971:     if test -z "$ICONV_DIR"; then
48972:       for i in /usr/local /usr; do
48973:         if test -f "$i/include/iconv.h" || test -f "$i/include/giconv.h"; then
48974:           PHP_ICONV_PREFIX="$i"
48975:           break
48976:         fi
48977:       done
48978:       if test -z "$PHP_ICONV_PREFIX"; then
48979:         PHP_ICONV_PREFIX="/usr"
48980:       fi
48981:     else
48982:       PHP_ICONV_PREFIX="$ICONV_DIR"
48983:     fi
48984: 
48985:     CFLAGS="-I$PHP_ICONV_PREFIX/include $CFLAGS"
48986:     LDFLAGS="-L$PHP_ICONV_PREFIX/$PHP_LIBDIR $LDFLAGS"
48987: 
48988:     if test -r "$PHP_ICONV_PREFIX/include/giconv.h"; then
48989:       PHP_ICONV_H_PATH="$PHP_ICONV_PREFIX/include/giconv.h"
48990:     else
48991:       PHP_ICONV_H_PATH="$PHP_ICONV_PREFIX/include/iconv.h"
48992:     fi
48993: 
48994:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if iconv is glibc's" >&5
48995: $as_echo_n "checking if iconv is glibc's... " >&6; }
48996:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48997: /* end confdefs.h.  */
48998: #include <gnu/libc-version.h>
48999: int
49000: main ()
49001: {
49002: gnu_get_libc_version();
49003:   ;
49004:   return 0;
49005: }
49006: _ACEOF
49007: if ac_fn_c_try_link "$LINENO"; then :
49008: 
49009:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
49010: $as_echo "yes" >&6; }
49011:       iconv_impl_name="glibc"
49012: 
49013: else
49014: 
49015:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
49016: $as_echo "no" >&6; }
49017: 
49018: fi
49019: rm -f core conftest.err conftest.$ac_objext \
49020:     conftest$ac_exeext conftest.$ac_ext
49021: 
49022:     if test -z "$iconv_impl_name"; then
49023:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if using GNU libiconv" >&5
49024: $as_echo_n "checking if using GNU libiconv... " >&6; }
49025:       php_iconv_old_ld="$LDFLAGS"
49026:       LDFLAGS="-liconv $LDFLAGS"
49027:       if test "$cross_compiling" = yes; then :
49028: 
49029:         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
49030: $as_echo "no" >&6; }
49031:         LDFLAGS="$php_iconv_old_ld"
49032: 
49033: else
49034:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49035: /* end confdefs.h.  */
49036: 
49037: #include <$PHP_ICONV_H_PATH>
49038: int main() {
49039: 	printf("%d", _libiconv_version);
49040: 	return 0;
49041: }
49042: 
49043: _ACEOF
49044: if ac_fn_c_try_run "$LINENO"; then :
49045: 
49046:         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
49047: $as_echo "yes" >&6; }
49048:         iconv_impl_name="gnu_libiconv"
49049: 
49050: else
49051: 
49052:         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
49053: $as_echo "no" >&6; }
49054:         LDFLAGS="$php_iconv_old_ld"
49055: 
49056: fi
49057: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
49058:   conftest.$ac_objext conftest.beam conftest.$ac_ext
49059: fi
49060: 
49061:     fi
49062: 
49063:     if test -z "$iconv_impl_name"; then
49064:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if iconv is Konstantin Chuguev's" >&5
49065: $as_echo_n "checking if iconv is Konstantin Chuguev's... " >&6; }
49066:       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49067: /* end confdefs.h.  */
49068: #include <iconv.h>
49069: int
49070: main ()
49071: {
49072: iconv_ccs_init(NULL, NULL);
49073:   ;
49074:   return 0;
49075: }
49076: _ACEOF
49077: if ac_fn_c_try_link "$LINENO"; then :
49078: 
49079:         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
49080: $as_echo "yes" >&6; }
49081:         iconv_impl_name="bsd"
49082: 
49083: else
49084: 
49085:         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
49086: $as_echo "no" >&6; }
49087: 
49088: fi
49089: rm -f core conftest.err conftest.$ac_objext \
49090:     conftest$ac_exeext conftest.$ac_ext
49091:     fi
49092: 
49093:     if test -z "$iconv_impl_name"; then
49094:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if using IBM iconv" >&5
49095: $as_echo_n "checking if using IBM iconv... " >&6; }
49096:       php_iconv_old_ld="$LDFLAGS"
49097:       LDFLAGS="-liconv $LDFLAGS"
49098:       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49099: /* end confdefs.h.  */
49100: #include <iconv.h>
49101: int
49102: main ()
49103: {
49104: cstoccsid("");
49105:   ;
49106:   return 0;
49107: }
49108: _ACEOF
49109: if ac_fn_c_try_link "$LINENO"; then :
49110: 
49111:         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
49112: $as_echo "yes" >&6; }
49113:         iconv_impl_name="ibm"
49114: 
49115: else
49116: 
49117:         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
49118: $as_echo "no" >&6; }
49119:         LDFLAGS="$php_iconv_old_ld"
49120: 
49121: fi
49122: rm -f core conftest.err conftest.$ac_objext \
49123:     conftest$ac_exeext conftest.$ac_ext
49124:     fi
49125: 
49126:     echo > ext/iconv/php_have_bsd_iconv.h
49127:     echo > ext/iconv/php_have_glibc_iconv.h
49128:     echo > ext/iconv/php_have_libiconv.h
49129:     echo > ext/iconv/php_have_ibm_iconv.h
49130: 
49131:     case "$iconv_impl_name" in
49132:       gnu_libiconv )
49133: 
49134:   echo "#define PHP_ICONV_IMPL \"libiconv\"" > ext/iconv/php_php_iconv_impl.h
49135: 
49136: 
49137: $as_echo "#define PHP_ICONV_IMPL \"libiconv\"" >>confdefs.h
49138: 
49139: 
49140:   echo "#define HAVE_LIBICONV 1" > ext/iconv/php_have_libiconv.h
49141: 
49142: 
49143: 
49144:   if test "$ext_shared" = "yes"; then
49145:     ICONV_SHARED_LIBADD="-liconv $ICONV_SHARED_LIBADD"
49146:     if test -n ""$PHP_ICONV_PREFIX/$PHP_LIBDIR""; then
49147: 
49148:   if test ""$PHP_ICONV_PREFIX/$PHP_LIBDIR"" != "/usr/$PHP_LIBDIR" && test ""$PHP_ICONV_PREFIX/$PHP_LIBDIR"" != "/usr/lib"; then
49149: 
49150:   if test -z ""$PHP_ICONV_PREFIX/$PHP_LIBDIR"" || echo ""$PHP_ICONV_PREFIX/$PHP_LIBDIR"" | grep '^/' >/dev/null ; then
49151:     ai_p="$PHP_ICONV_PREFIX/$PHP_LIBDIR"
49152:   else
49153: 
49154:     ep_dir=`echo "$PHP_ICONV_PREFIX/$PHP_LIBDIR"|$SED 's%/*[^/][^/]*/*$%%'`
49155: 
49156:     ep_realdir=`(cd "$ep_dir" && pwd)`
49157:     ai_p="$ep_realdir"/`basename ""$PHP_ICONV_PREFIX/$PHP_LIBDIR""`
49158:   fi
49159: 
49160: 
49161:       if test "$ext_shared" = "yes"; then
49162:         ICONV_SHARED_LIBADD="-L$ai_p $ICONV_SHARED_LIBADD"
49163:         test -n "$ld_runpath_switch" && ICONV_SHARED_LIBADD="$ld_runpath_switch$ai_p $ICONV_SHARED_LIBADD"
49164:       else
49165: 
49166: 
49167: 
49168:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
49169: 
49170:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
49171:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
49172:     eval "LIBPATH$unique=set"
49173: 
49174:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
49175:     LDFLAGS="$LDFLAGS -L$ai_p"
49176:     PHP_RPATHS="$PHP_RPATHS $ai_p"
49177: 
49178:   fi
49179: 
49180: 
49181:       fi
49182: 
49183:   fi
49184: 
49185:     fi
49186:   else
49187: 
49188: 
49189:   if test -n ""$PHP_ICONV_PREFIX/$PHP_LIBDIR""; then
49190: 
49191:   if test ""$PHP_ICONV_PREFIX/$PHP_LIBDIR"" != "/usr/$PHP_LIBDIR" && test ""$PHP_ICONV_PREFIX/$PHP_LIBDIR"" != "/usr/lib"; then
49192: 
49193:   if test -z ""$PHP_ICONV_PREFIX/$PHP_LIBDIR"" || echo ""$PHP_ICONV_PREFIX/$PHP_LIBDIR"" | grep '^/' >/dev/null ; then
49194:     ai_p="$PHP_ICONV_PREFIX/$PHP_LIBDIR"
49195:   else
49196: 
49197:     ep_dir=`echo "$PHP_ICONV_PREFIX/$PHP_LIBDIR"|$SED 's%/*[^/][^/]*/*$%%'`
49198: 
49199:     ep_realdir=`(cd "$ep_dir" && pwd)`
49200:     ai_p="$ep_realdir"/`basename ""$PHP_ICONV_PREFIX/$PHP_LIBDIR""`
49201:   fi
49202: 
49203: 
49204: 
49205: 
49206: 
49207:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
49208: 
49209:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
49210:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
49211:     eval "LIBPATH$unique=set"
49212: 
49213:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
49214:     LDFLAGS="$LDFLAGS -L$ai_p"
49215:     PHP_RPATHS="$PHP_RPATHS $ai_p"
49216: 
49217:   fi
49218: 
49219: 
49220: 
49221:   fi
49222: 
49223:   fi
49224: 
49225: 
49226:   case iconv in
49227:   c|c_r|pthread*) ;;
49228:   *)
49229:       LIBS="-liconv $LIBS"
49230:    ;;
49231:   esac
49232: 
49233: 
49234: 
49235: 
49236:   fi
49237: 
49238: 
49239:         ;;
49240: 
49241:       bsd )
49242: 
49243:   echo "#define HAVE_BSD_ICONV 1" > ext/iconv/php_have_bsd_iconv.h
49244: 
49245: 
49246: $as_echo "#define HAVE_BSD_ICONV 1" >>confdefs.h
49247: 
49248: 
49249:   echo "#define PHP_ICONV_IMPL \"BSD iconv\"" > ext/iconv/php_php_iconv_impl.h
49250: 
49251: 
49252: $as_echo "#define PHP_ICONV_IMPL \"BSD iconv\"" >>confdefs.h
49253: 
49254:         ;;
49255: 
49256:       glibc )
49257: 
49258:   echo "#define HAVE_GLIBC_ICONV 1" > ext/iconv/php_have_glibc_iconv.h
49259: 
49260: 
49261: $as_echo "#define HAVE_GLIBC_ICONV 1" >>confdefs.h
49262: 
49263: 
49264:   echo "#define PHP_ICONV_IMPL \"glibc\"" > ext/iconv/php_php_iconv_impl.h
49265: 
49266: 
49267: $as_echo "#define PHP_ICONV_IMPL \"glibc\"" >>confdefs.h
49268: 
49269:         ;;
49270:       ibm )
49271: 
49272:   echo "#define HAVE_IBM_ICONV 1" > ext/iconv/php_have_ibm_iconv.h
49273: 
49274: 
49275: $as_echo "#define HAVE_IBM_ICONV 1" >>confdefs.h
49276: 
49277: 
49278:   echo "#define PHP_ICONV_IMPL \"IBM iconv\"" > ext/iconv/php_php_iconv_impl.h
49279: 
49280: 
49281: $as_echo "#define PHP_ICONV_IMPL \"IBM iconv\"" >>confdefs.h
49282: 
49283:         ;;
49284:     esac
49285: 
49286:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if iconv supports errno" >&5
49287: $as_echo_n "checking if iconv supports errno... " >&6; }
49288:     if test "$cross_compiling" = yes; then :
49289: 
49290:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
49291: $as_echo "no" >&6; }
49292: 
49293:   echo "#define ICONV_SUPPORTS_ERRNO 0" > ext/iconv/php_iconv_supports_errno.h
49294: 
49295: 
49296: $as_echo "#define ICONV_SUPPORTS_ERRNO 0" >>confdefs.h
49297: 
49298: 
49299: else
49300:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49301: /* end confdefs.h.  */
49302: 
49303: #include <$PHP_ICONV_H_PATH>
49304: #include <errno.h>
49305: 
49306: int main() {
49307:   iconv_t cd;
49308:   cd = iconv_open( "*blahblah*", "*blahblah*" );
49309:   if (cd == (iconv_t)(-1)) {
49310:     if (errno == EINVAL) {
49311:       return 0;
49312: 	} else {
49313:       return 1;
49314:     }
49315:   }
49316:   iconv_close( cd );
49317:   return 2;
49318: }
49319: 
49320: _ACEOF
49321: if ac_fn_c_try_run "$LINENO"; then :
49322: 
49323:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
49324: $as_echo "yes" >&6; }
49325: 
49326:   echo "#define ICONV_SUPPORTS_ERRNO 1" > ext/iconv/php_iconv_supports_errno.h
49327: 
49328: 
49329: $as_echo "#define ICONV_SUPPORTS_ERRNO 1" >>confdefs.h
49330: 
49331: 
49332: else
49333: 
49334:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
49335: $as_echo "no" >&6; }
49336: 
49337:   echo "#define ICONV_SUPPORTS_ERRNO 0" > ext/iconv/php_iconv_supports_errno.h
49338: 
49339: 
49340: $as_echo "#define ICONV_SUPPORTS_ERRNO 0" >>confdefs.h
49341: 
49342: 
49343: fi
49344: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
49345:   conftest.$ac_objext conftest.beam conftest.$ac_ext
49346: fi
49347: 
49348: 
49349:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your cpp allows macro usage in include lines" >&5
49350: $as_echo_n "checking if your cpp allows macro usage in include lines... " >&6; }
49351:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49352: /* end confdefs.h.  */
49353: 
49354: #define FOO <$PHP_ICONV_H_PATH>
49355: #include FOO
49356: 
49357: int
49358: main ()
49359: {
49360: 
49361:   ;
49362:   return 0;
49363: }
49364: _ACEOF
49365: if ac_fn_c_try_compile "$LINENO"; then :
49366: 
49367:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
49368: $as_echo "yes" >&6; }
49369: 
49370:   echo "#define PHP_ICONV_H_PATH <$PHP_ICONV_H_PATH>" > ext/iconv/php_php_iconv_h_path.h
49371: 
49372: 
49373: cat >>confdefs.h <<_ACEOF
49374: #define PHP_ICONV_H_PATH <$PHP_ICONV_H_PATH>
49375: _ACEOF
49376: 
49377: 
49378: else
49379: 
49380:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
49381: $as_echo "no" >&6; }
49382: 
49383: fi
49384: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49385: 
49386: 
49387:   ext_builddir=ext/iconv
49388:   ext_srcdir=$abs_srcdir/ext/iconv
49389: 
49390:   ac_extra=`echo "-I\"$PHP_ICONV_PREFIX/include\""|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
49391: 
49392:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
49393:     PHP_ICONV_SHARED=no
49394: 
49395: 
49396:   case ext/iconv in
49397:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
49398:   /*) ac_srcdir=`echo "ext/iconv"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
49399:   *) ac_srcdir="$abs_srcdir/ext/iconv/"; ac_bdir="ext/iconv/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
49400:   esac
49401: 
49402: 
49403: 
49404:   b_c_pre=$php_c_pre
49405:   b_cxx_pre=$php_cxx_pre
49406:   b_c_meta=$php_c_meta
49407:   b_cxx_meta=$php_cxx_meta
49408:   b_c_post=$php_c_post
49409:   b_cxx_post=$php_cxx_post
49410:   b_lo=$php_lo
49411: 
49412: 
49413:   old_IFS=$IFS
49414:   for ac_src in iconv.c; do
49415: 
49416:       IFS=.
49417:       set $ac_src
49418:       ac_obj=$1
49419:       IFS=$old_IFS
49420: 
49421:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
49422: 
49423:       case $ac_src in
49424:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
49425:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
49426:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
49427:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
49428:       esac
49429: 
49430:     cat >>Makefile.objects<<EOF
49431: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
49432: 	$ac_comp
49433: EOF
49434:   done
49435: 
49436: 
49437:     EXT_STATIC="$EXT_STATIC iconv"
49438:     if test "$ext_shared" != "nocli"; then
49439:       EXT_CLI_STATIC="$EXT_CLI_STATIC iconv"
49440:     fi
49441:   else
49442:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
49443:       PHP_ICONV_SHARED=yes
49444: 
49445:   case ext/iconv in
49446:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
49447:   /*) ac_srcdir=`echo "ext/iconv"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
49448:   *) ac_srcdir="$abs_srcdir/ext/iconv/"; ac_bdir="ext/iconv/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
49449:   esac
49450: 
49451: 
49452: 
49453:   b_c_pre=$shared_c_pre
49454:   b_cxx_pre=$shared_cxx_pre
49455:   b_c_meta=$shared_c_meta
49456:   b_cxx_meta=$shared_cxx_meta
49457:   b_c_post=$shared_c_post
49458:   b_cxx_post=$shared_cxx_post
49459:   b_lo=$shared_lo
49460: 
49461: 
49462:   old_IFS=$IFS
49463:   for ac_src in iconv.c; do
49464: 
49465:       IFS=.
49466:       set $ac_src
49467:       ac_obj=$1
49468:       IFS=$old_IFS
49469: 
49470:       shared_objects_iconv="$shared_objects_iconv $ac_bdir$ac_obj.lo"
49471: 
49472:       case $ac_src in
49473:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
49474:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
49475:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
49476:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
49477:       esac
49478: 
49479:     cat >>Makefile.objects<<EOF
49480: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
49481: 	$ac_comp
49482: EOF
49483:   done
49484: 
49485:       case $host_alias in
49486:         *netware*)
49487: 
49488:   install_modules="install-modules"
49489: 
49490:   case $host_alias in
49491:     *aix*)
49492:       suffix=so
49493:       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'
49494:       ;;
49495:     *netware*)
49496:       suffix=nlm
49497:       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)'
49498:       ;;
49499:     *)
49500:       suffix=la
49501:       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)'
49502:       ;;
49503:   esac
49504: 
49505:   if test "x" = "xyes"; then
49506:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpiconv.$suffix"
49507:   else
49508:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpiconv.$suffix"
49509:   fi
49510: 
49511:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_iconv"
49512: 
49513:   cat >>Makefile.objects<<EOF
49514: \$(phplibdir)/phpiconv.$suffix: $ext_builddir/phpiconv.$suffix
49515: 	\$(LIBTOOL) --mode=install cp $ext_builddir/phpiconv.$suffix \$(phplibdir)
49516: 
49517: $ext_builddir/phpiconv.$suffix: \$(shared_objects_iconv) \$(PHPICONV_SHARED_DEPENDENCIES)
49518: 	$link_cmd
49519: 
49520: EOF
49521: 
49522:           ;;
49523:         *)
49524: 
49525:   install_modules="install-modules"
49526: 
49527:   case $host_alias in
49528:     *aix*)
49529:       suffix=so
49530:       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'
49531:       ;;
49532:     *netware*)
49533:       suffix=nlm
49534:       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)'
49535:       ;;
49536:     *)
49537:       suffix=la
49538:       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)'
49539:       ;;
49540:   esac
49541: 
49542:   if test "x" = "xyes"; then
49543:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/iconv.$suffix"
49544:   else
49545:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/iconv.$suffix"
49546:   fi
49547: 
49548:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_iconv"
49549: 
49550:   cat >>Makefile.objects<<EOF
49551: \$(phplibdir)/iconv.$suffix: $ext_builddir/iconv.$suffix
49552: 	\$(LIBTOOL) --mode=install cp $ext_builddir/iconv.$suffix \$(phplibdir)
49553: 
49554: $ext_builddir/iconv.$suffix: \$(shared_objects_iconv) \$(ICONV_SHARED_DEPENDENCIES)
49555: 	$link_cmd
49556: 
49557: EOF
49558: 
49559:           ;;
49560:       esac
49561: 
49562: cat >>confdefs.h <<_ACEOF
49563: #define COMPILE_DL_ICONV 1
49564: _ACEOF
49565: 
49566:     fi
49567:   fi
49568: 
49569:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
49570:     PHP_ICONV_SHARED=no
49571:     case "$PHP_SAPI" in
49572:       cgi|embed)
49573: 
49574: 
49575:   case ext/iconv in
49576:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
49577:   /*) ac_srcdir=`echo "ext/iconv"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
49578:   *) ac_srcdir="$abs_srcdir/ext/iconv/"; ac_bdir="ext/iconv/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
49579:   esac
49580: 
49581: 
49582: 
49583:   b_c_pre=$php_c_pre
49584:   b_cxx_pre=$php_cxx_pre
49585:   b_c_meta=$php_c_meta
49586:   b_cxx_meta=$php_cxx_meta
49587:   b_c_post=$php_c_post
49588:   b_cxx_post=$php_cxx_post
49589:   b_lo=$php_lo
49590: 
49591: 
49592:   old_IFS=$IFS
49593:   for ac_src in iconv.c; do
49594: 
49595:       IFS=.
49596:       set $ac_src
49597:       ac_obj=$1
49598:       IFS=$old_IFS
49599: 
49600:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
49601: 
49602:       case $ac_src in
49603:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
49604:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
49605:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
49606:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
49607:       esac
49608: 
49609:     cat >>Makefile.objects<<EOF
49610: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
49611: 	$ac_comp
49612: EOF
49613:   done
49614: 
49615: 
49616:         EXT_STATIC="$EXT_STATIC iconv"
49617:         ;;
49618:       *)
49619: 
49620: 
49621:   case ext/iconv in
49622:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
49623:   /*) ac_srcdir=`echo "ext/iconv"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
49624:   *) ac_srcdir="$abs_srcdir/ext/iconv/"; ac_bdir="ext/iconv/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
49625:   esac
49626: 
49627: 
49628: 
49629:   b_c_pre=$php_c_pre
49630:   b_cxx_pre=$php_cxx_pre
49631:   b_c_meta=$php_c_meta
49632:   b_cxx_meta=$php_cxx_meta
49633:   b_c_post=$php_c_post
49634:   b_cxx_post=$php_cxx_post
49635:   b_lo=$php_lo
49636: 
49637: 
49638:   old_IFS=$IFS
49639:   for ac_src in iconv.c; do
49640: 
49641:       IFS=.
49642:       set $ac_src
49643:       ac_obj=$1
49644:       IFS=$old_IFS
49645: 
49646:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
49647: 
49648:       case $ac_src in
49649:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
49650:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
49651:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
49652:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
49653:       esac
49654: 
49655:     cat >>Makefile.objects<<EOF
49656: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
49657: 	$ac_comp
49658: EOF
49659:   done
49660: 
49661: 
49662:         ;;
49663:     esac
49664:     EXT_CLI_STATIC="$EXT_CLI_STATIC iconv"
49665:   fi
49666: 
49667: 
49668:     BUILD_DIR="$BUILD_DIR $ext_builddir"
49669: 
49670: 
49671: 
49672:   if test "$ext_builddir" = "."; then
49673:     PHP_PECL_EXTENSION=iconv
49674: 
49675:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
49676: 
49677:   fi
49678: 
49679: 
49680:   PHP_VAR_SUBST="$PHP_VAR_SUBST ICONV_SHARED_LIBADD"
49681: 
49682: 
49683: 
49684:     for header_file in ext/iconv/; do
49685: 
49686: 
49687:   unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
49688: 
49689:   cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
49690:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
49691:     eval "INSTALLHEADERS$unique=set"
49692: 
49693:         INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
49694: 
49695:   fi
49696: 
49697:     done
49698: 
49699: 
49700:   else
49701:     as_fn_error $? "Please reinstall the iconv library." "$LINENO" 5
49702:   fi
49703: fi
49704: 
49705: 
49706: 
49707: 
49708: 
49709: 
49710: 
49711: 
49712: 
49713: 
49714: 
49715: 
49716: 
49717: 
49718: php_with_imap=no
49719: 
49720: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IMAP support" >&5
49721: $as_echo_n "checking for IMAP support... " >&6; }
49722: 
49723: # Check whether --with-imap was given.
49724: if test "${with_imap+set}" = set; then :
49725:   withval=$with_imap; PHP_IMAP=$withval
49726: else
49727: 
49728:   PHP_IMAP=no
49729:   test "$PHP_ENABLE_ALL" && PHP_IMAP=$PHP_ENABLE_ALL
49730: 
49731: fi
49732: 
49733: 
49734: 
49735: ext_output="yes, shared"
49736: ext_shared=yes
49737: case $PHP_IMAP in
49738: shared,*)
49739:   PHP_IMAP=`echo "$PHP_IMAP"|$SED 's/^shared,//'`
49740:   ;;
49741: shared)
49742:   PHP_IMAP=yes
49743:   ;;
49744: no)
49745:   ext_output=no
49746:   ext_shared=no
49747:   ;;
49748: *)
49749:   ext_output=yes
49750:   ext_shared=no
49751:   ;;
49752: esac
49753: 
49754: 
49755: 
49756: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
49757: $as_echo "$ext_output" >&6; }
49758: 
49759: 
49760: 
49761: 
49762: 
49763: php_with_kerberos=no
49764: 
49765: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IMAP Kerberos support" >&5
49766: $as_echo_n "checking for IMAP Kerberos support... " >&6; }
49767: 
49768: # Check whether --with-kerberos was given.
49769: if test "${with_kerberos+set}" = set; then :
49770:   withval=$with_kerberos; PHP_KERBEROS=$withval
49771: else
49772: 
49773:   PHP_KERBEROS=no
49774: 
49775: 
49776: fi
49777: 
49778: 
49779: ext_output=$PHP_KERBEROS
49780: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
49781: $as_echo "$ext_output" >&6; }
49782: 
49783: 
49784: 
49785: 
49786: 
49787: php_with_imap_ssl=no
49788: 
49789: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IMAP SSL support" >&5
49790: $as_echo_n "checking for IMAP SSL support... " >&6; }
49791: 
49792: # Check whether --with-imap-ssl was given.
49793: if test "${with_imap_ssl+set}" = set; then :
49794:   withval=$with_imap_ssl; PHP_IMAP_SSL=$withval
49795: else
49796: 
49797:   PHP_IMAP_SSL=no
49798: 
49799: 
49800: fi
49801: 
49802: 
49803: ext_output=$PHP_IMAP_SSL
49804: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
49805: $as_echo "$ext_output" >&6; }
49806: 
49807: 
49808: 
49809: 
49810: 
49811: if test "$PHP_IMAP" != "no"; then
49812: 
49813:   PHP_VAR_SUBST="$PHP_VAR_SUBST IMAP_SHARED_LIBADD"
49814: 
49815: 
49816:   ext_builddir=ext/imap
49817:   ext_srcdir=$abs_srcdir/ext/imap
49818: 
49819:   ac_extra=
49820: 
49821:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
49822:     PHP_IMAP_SHARED=no
49823: 
49824: 
49825:   case ext/imap in
49826:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
49827:   /*) ac_srcdir=`echo "ext/imap"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
49828:   *) ac_srcdir="$abs_srcdir/ext/imap/"; ac_bdir="ext/imap/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
49829:   esac
49830: 
49831: 
49832: 
49833:   b_c_pre=$php_c_pre
49834:   b_cxx_pre=$php_cxx_pre
49835:   b_c_meta=$php_c_meta
49836:   b_cxx_meta=$php_cxx_meta
49837:   b_c_post=$php_c_post
49838:   b_cxx_post=$php_cxx_post
49839:   b_lo=$php_lo
49840: 
49841: 
49842:   old_IFS=$IFS
49843:   for ac_src in php_imap.c; do
49844: 
49845:       IFS=.
49846:       set $ac_src
49847:       ac_obj=$1
49848:       IFS=$old_IFS
49849: 
49850:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
49851: 
49852:       case $ac_src in
49853:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
49854:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
49855:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
49856:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
49857:       esac
49858: 
49859:     cat >>Makefile.objects<<EOF
49860: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
49861: 	$ac_comp
49862: EOF
49863:   done
49864: 
49865: 
49866:     EXT_STATIC="$EXT_STATIC imap"
49867:     if test "$ext_shared" != "nocli"; then
49868:       EXT_CLI_STATIC="$EXT_CLI_STATIC imap"
49869:     fi
49870:   else
49871:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
49872:       PHP_IMAP_SHARED=yes
49873: 
49874:   case ext/imap in
49875:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
49876:   /*) ac_srcdir=`echo "ext/imap"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
49877:   *) ac_srcdir="$abs_srcdir/ext/imap/"; ac_bdir="ext/imap/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
49878:   esac
49879: 
49880: 
49881: 
49882:   b_c_pre=$shared_c_pre
49883:   b_cxx_pre=$shared_cxx_pre
49884:   b_c_meta=$shared_c_meta
49885:   b_cxx_meta=$shared_cxx_meta
49886:   b_c_post=$shared_c_post
49887:   b_cxx_post=$shared_cxx_post
49888:   b_lo=$shared_lo
49889: 
49890: 
49891:   old_IFS=$IFS
49892:   for ac_src in php_imap.c; do
49893: 
49894:       IFS=.
49895:       set $ac_src
49896:       ac_obj=$1
49897:       IFS=$old_IFS
49898: 
49899:       shared_objects_imap="$shared_objects_imap $ac_bdir$ac_obj.lo"
49900: 
49901:       case $ac_src in
49902:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
49903:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
49904:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
49905:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
49906:       esac
49907: 
49908:     cat >>Makefile.objects<<EOF
49909: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
49910: 	$ac_comp
49911: EOF
49912:   done
49913: 
49914:       case $host_alias in
49915:         *netware*)
49916: 
49917:   install_modules="install-modules"
49918: 
49919:   case $host_alias in
49920:     *aix*)
49921:       suffix=so
49922:       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'
49923:       ;;
49924:     *netware*)
49925:       suffix=nlm
49926:       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)'
49927:       ;;
49928:     *)
49929:       suffix=la
49930:       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)'
49931:       ;;
49932:   esac
49933: 
49934:   if test "x" = "xyes"; then
49935:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpimap.$suffix"
49936:   else
49937:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpimap.$suffix"
49938:   fi
49939: 
49940:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_imap"
49941: 
49942:   cat >>Makefile.objects<<EOF
49943: \$(phplibdir)/phpimap.$suffix: $ext_builddir/phpimap.$suffix
49944: 	\$(LIBTOOL) --mode=install cp $ext_builddir/phpimap.$suffix \$(phplibdir)
49945: 
49946: $ext_builddir/phpimap.$suffix: \$(shared_objects_imap) \$(PHPIMAP_SHARED_DEPENDENCIES)
49947: 	$link_cmd
49948: 
49949: EOF
49950: 
49951:           ;;
49952:         *)
49953: 
49954:   install_modules="install-modules"
49955: 
49956:   case $host_alias in
49957:     *aix*)
49958:       suffix=so
49959:       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'
49960:       ;;
49961:     *netware*)
49962:       suffix=nlm
49963:       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)'
49964:       ;;
49965:     *)
49966:       suffix=la
49967:       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)'
49968:       ;;
49969:   esac
49970: 
49971:   if test "x" = "xyes"; then
49972:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/imap.$suffix"
49973:   else
49974:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/imap.$suffix"
49975:   fi
49976: 
49977:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_imap"
49978: 
49979:   cat >>Makefile.objects<<EOF
49980: \$(phplibdir)/imap.$suffix: $ext_builddir/imap.$suffix
49981: 	\$(LIBTOOL) --mode=install cp $ext_builddir/imap.$suffix \$(phplibdir)
49982: 
49983: $ext_builddir/imap.$suffix: \$(shared_objects_imap) \$(IMAP_SHARED_DEPENDENCIES)
49984: 	$link_cmd
49985: 
49986: EOF
49987: 
49988:           ;;
49989:       esac
49990: 
49991: cat >>confdefs.h <<_ACEOF
49992: #define COMPILE_DL_IMAP 1
49993: _ACEOF
49994: 
49995:     fi
49996:   fi
49997: 
49998:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
49999:     PHP_IMAP_SHARED=no
50000:     case "$PHP_SAPI" in
50001:       cgi|embed)
50002: 
50003: 
50004:   case ext/imap in
50005:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
50006:   /*) ac_srcdir=`echo "ext/imap"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
50007:   *) ac_srcdir="$abs_srcdir/ext/imap/"; ac_bdir="ext/imap/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
50008:   esac
50009: 
50010: 
50011: 
50012:   b_c_pre=$php_c_pre
50013:   b_cxx_pre=$php_cxx_pre
50014:   b_c_meta=$php_c_meta
50015:   b_cxx_meta=$php_cxx_meta
50016:   b_c_post=$php_c_post
50017:   b_cxx_post=$php_cxx_post
50018:   b_lo=$php_lo
50019: 
50020: 
50021:   old_IFS=$IFS
50022:   for ac_src in php_imap.c; do
50023: 
50024:       IFS=.
50025:       set $ac_src
50026:       ac_obj=$1
50027:       IFS=$old_IFS
50028: 
50029:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
50030: 
50031:       case $ac_src in
50032:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
50033:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
50034:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
50035:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
50036:       esac
50037: 
50038:     cat >>Makefile.objects<<EOF
50039: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
50040: 	$ac_comp
50041: EOF
50042:   done
50043: 
50044: 
50045:         EXT_STATIC="$EXT_STATIC imap"
50046:         ;;
50047:       *)
50048: 
50049: 
50050:   case ext/imap in
50051:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
50052:   /*) ac_srcdir=`echo "ext/imap"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
50053:   *) ac_srcdir="$abs_srcdir/ext/imap/"; ac_bdir="ext/imap/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
50054:   esac
50055: 
50056: 
50057: 
50058:   b_c_pre=$php_c_pre
50059:   b_cxx_pre=$php_cxx_pre
50060:   b_c_meta=$php_c_meta
50061:   b_cxx_meta=$php_cxx_meta
50062:   b_c_post=$php_c_post
50063:   b_cxx_post=$php_cxx_post
50064:   b_lo=$php_lo
50065: 
50066: 
50067:   old_IFS=$IFS
50068:   for ac_src in php_imap.c; do
50069: 
50070:       IFS=.
50071:       set $ac_src
50072:       ac_obj=$1
50073:       IFS=$old_IFS
50074: 
50075:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
50076: 
50077:       case $ac_src in
50078:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
50079:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
50080:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
50081:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
50082:       esac
50083: 
50084:     cat >>Makefile.objects<<EOF
50085: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
50086: 	$ac_comp
50087: EOF
50088:   done
50089: 
50090: 
50091:         ;;
50092:     esac
50093:     EXT_CLI_STATIC="$EXT_CLI_STATIC imap"
50094:   fi
50095: 
50096: 
50097:     BUILD_DIR="$BUILD_DIR $ext_builddir"
50098: 
50099: 
50100: 
50101:   if test "$ext_builddir" = "."; then
50102:     PHP_PECL_EXTENSION=imap
50103: 
50104:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
50105: 
50106:   fi
50107: 
50108: 
50109: $as_echo "#define HAVE_IMAP 1" >>confdefs.h
50110: 
50111: 
50112:     for i in $PHP_IMAP /usr/local /usr; do
50113:       if test -r "$i/c-client.h"; then
50114: 
50115: $as_echo "#define HAVE_IMAP2000 1" >>confdefs.h
50116: 
50117:     IMAP_DIR=$i
50118:     IMAP_INC_DIR=$i
50119:     break
50120:   elif test -r "$i/rfc822.h"; then
50121:     IMAP_DIR=$i;
50122:     IMAP_INC_DIR=$i
50123: 	break
50124: 
50125:       elif test -r "$i/include/c-client/c-client.h"; then
50126: 
50127: $as_echo "#define HAVE_IMAP2000 1" >>confdefs.h
50128: 
50129:     IMAP_DIR=$i
50130:     IMAP_INC_DIR=$i/include/c-client
50131:     break
50132:   elif test -r "$i/include/c-client/rfc822.h"; then
50133:     IMAP_DIR=$i;
50134:     IMAP_INC_DIR=$i/include/c-client
50135: 	break
50136: 
50137:       elif test -r "$i/include/imap/c-client.h"; then
50138: 
50139: $as_echo "#define HAVE_IMAP2000 1" >>confdefs.h
50140: 
50141:     IMAP_DIR=$i
50142:     IMAP_INC_DIR=$i/include/imap
50143:     break
50144:   elif test -r "$i/include/imap/rfc822.h"; then
50145:     IMAP_DIR=$i;
50146:     IMAP_INC_DIR=$i/include/imap
50147: 	break
50148: 
50149:       elif test -r "$i/include/c-client.h"; then
50150: 
50151: $as_echo "#define HAVE_IMAP2000 1" >>confdefs.h
50152: 
50153:     IMAP_DIR=$i
50154:     IMAP_INC_DIR=$i/include
50155:     break
50156:   elif test -r "$i/include/rfc822.h"; then
50157:     IMAP_DIR=$i;
50158:     IMAP_INC_DIR=$i/include
50159: 	break
50160: 
50161:       elif test -r "$i/imap/c-client.h"; then
50162: 
50163: $as_echo "#define HAVE_IMAP2000 1" >>confdefs.h
50164: 
50165:     IMAP_DIR=$i
50166:     IMAP_INC_DIR=$i/imap
50167:     break
50168:   elif test -r "$i/imap/rfc822.h"; then
50169:     IMAP_DIR=$i;
50170:     IMAP_INC_DIR=$i/imap
50171: 	break
50172: 
50173:       elif test -r "$i/c-client/c-client.h"; then
50174: 
50175: $as_echo "#define HAVE_IMAP2000 1" >>confdefs.h
50176: 
50177:     IMAP_DIR=$i
50178:     IMAP_INC_DIR=$i/c-client
50179:     break
50180:   elif test -r "$i/c-client/rfc822.h"; then
50181:     IMAP_DIR=$i;
50182:     IMAP_INC_DIR=$i/c-client
50183: 	break
50184: 
50185:       fi
50186:     done
50187: 
50188:         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50189: /* end confdefs.h.  */
50190: #include <$IMAP_INC_DIR/mail.h>
50191: 
50192: _ACEOF
50193: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50194:   $EGREP "mail_fetch_overview_sequence" >/dev/null 2>&1; then :
50195: 
50196: 
50197: $as_echo "#define HAVE_IMAP2004 1" >>confdefs.h
50198: 
50199: 
50200: fi
50201: rm -f conftest*
50202: 
50203: 
50204:         old_CFLAGS=$CFLAGS
50205:     CFLAGS="-I$IMAP_INC_DIR"
50206:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utf8_mime2text signature" >&5
50207: $as_echo_n "checking for utf8_mime2text signature... " >&6; }
50208: if ${ac_cv_utf8_mime2text+:} false; then :
50209:   $as_echo_n "(cached) " >&6
50210: else
50211:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50212: /* end confdefs.h.  */
50213: 
50214: #include <stdio.h>
50215: #include <c-client.h>
50216: 
50217: int
50218: main ()
50219: {
50220: 
50221:         SIZEDTEXT *src, *dst;
50222:         utf8_mime2text(src, dst);
50223: 
50224:   ;
50225:   return 0;
50226: }
50227: _ACEOF
50228: if ac_fn_c_try_compile "$LINENO"; then :
50229: 
50230:         ac_cv_utf8_mime2text=old
50231: 
50232: else
50233: 
50234:         ac_cv_utf8_mime2text=new
50235: 
50236: fi
50237: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50238: 
50239: fi
50240: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_utf8_mime2text" >&5
50241: $as_echo "$ac_cv_utf8_mime2text" >&6; }
50242:     if test "$ac_cv_utf8_mime2text" = "new"; then
50243: 
50244: $as_echo "#define HAVE_NEW_MIME2TEXT 1" >>confdefs.h
50245: 
50246:     fi
50247:     CFLAGS=$old_CFLAGS
50248: 
50249:     old_CFLAGS=$CFLAGS
50250:     CFLAGS="-I$IMAP_INC_DIR"
50251:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for U8T_DECOMPOSE" >&5
50252: $as_echo_n "checking for U8T_DECOMPOSE... " >&6; }
50253: if ${ac_cv_u8t_canonical+:} false; then :
50254:   $as_echo_n "(cached) " >&6
50255: else
50256:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50257: /* end confdefs.h.  */
50258: 
50259: #include <c-client.h>
50260: 
50261: int
50262: main ()
50263: {
50264: 
50265:          int i = U8T_CANONICAL;
50266: 
50267:   ;
50268:   return 0;
50269: }
50270: _ACEOF
50271: if ac_fn_c_try_compile "$LINENO"; then :
50272: 
50273:          ac_cv_u8t_decompose=yes
50274: 
50275: else
50276: 
50277:          ac_cv_u8t_decompose=no
50278: 
50279: fi
50280: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50281: 
50282: fi
50283: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_u8t_canonical" >&5
50284: $as_echo "$ac_cv_u8t_canonical" >&6; }
50285:     CFLAGS=$old_CFLAGS
50286: 
50287:     if test "$ac_cv_u8t_decompose" = "no" && test "$ac_cv_utf8_mime2text" = "new"; then
50288: 		as_fn_error $? "utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information." "$LINENO" 5
50289:     fi
50290:     if test "$ac_cv_u8t_decompose" = "yes" && test "$ac_cv_utf8_mime2text" = "old"; then
50291: 		as_fn_error $? "utf8_mime2text() has old signature, but U8T_CANONICAL is present. This should not happen. Check config.log for additional information." "$LINENO" 5
50292:     fi
50293: 
50294:         old_CPPFLAGS=$CPPFLAGS
50295:     CPPFLAGS=-I$IMAP_INC_DIR
50296:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50297: /* end confdefs.h.  */
50298: 
50299: #include "imap4r1.h"
50300: #if defined(IMAPSSLPORT)
50301:       this_is_true
50302: #endif
50303: 
50304: _ACEOF
50305: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50306:   $EGREP "this_is_true" >/dev/null 2>&1; then :
50307: 
50308: 
50309: $as_echo "#define HAVE_IMAP2001 1" >>confdefs.h
50310: 
50311: 
50312: fi
50313: rm -f conftest*
50314: 
50315:     CPPFLAGS=$old_CPPFLAGS
50316: 
50317: 
50318:   save_old_LDFLAGS=$LDFLAGS
50319:   ac_stuff=""
50320: 
50321:   save_ext_shared=$ext_shared
50322:   ext_shared=yes
50323: 
50324:   for ac_i in $ac_stuff; do
50325:     case $ac_i in
50326:     -pthread)
50327:       if test "$ext_shared" = "yes"; then
50328:         LDFLAGS="$LDFLAGS -pthread"
50329:       else
50330: 
50331: 
50332:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
50333: 
50334:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
50335:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
50336:     eval "EXTRA_LDFLAGS$unique=set"
50337:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
50338:   fi
50339: 
50340:       fi
50341:     ;;
50342:     -l*)
50343:       ac_ii=`echo $ac_i|cut -c 3-`
50344: 
50345: 
50346:   case $ac_ii in
50347:   c|c_r|pthread*) ;;
50348:   *)
50349:     if test "$ext_shared" = "yes"; then
50350:         LDFLAGS="$LDFLAGS -l$ac_ii"
50351:     else
50352: 
50353: 
50354:   case $ac_ii in
50355:   c|c_r|pthread*) ;;
50356:   *)
50357:       LIBS="$LIBS -l$ac_ii"
50358:    ;;
50359:   esac
50360: 
50361: 
50362:     fi
50363:    ;;
50364:   esac
50365: 
50366: 
50367:     ;;
50368:     -L*)
50369:       ac_ii=`echo $ac_i|cut -c 3-`
50370: 
50371:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
50372: 
50373:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
50374:     ai_p=$ac_ii
50375:   else
50376: 
50377:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
50378: 
50379:     ep_realdir=`(cd "$ep_dir" && pwd)`
50380:     ai_p="$ep_realdir"/`basename "$ac_ii"`
50381:   fi
50382: 
50383: 
50384:       if test "$ext_shared" = "yes"; then
50385:         LDFLAGS="-L$ai_p $LDFLAGS"
50386:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
50387:       else
50388: 
50389: 
50390: 
50391:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
50392: 
50393:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
50394:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
50395:     eval "LIBPATH$unique=set"
50396: 
50397:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
50398:     LDFLAGS="$LDFLAGS -L$ai_p"
50399:     PHP_RPATHS="$PHP_RPATHS $ai_p"
50400: 
50401:   fi
50402: 
50403: 
50404:       fi
50405: 
50406:   fi
50407: 
50408:     ;;
50409:     esac
50410:   done
50411: 
50412:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
50413: $as_echo_n "checking for pam_start in -lpam... " >&6; }
50414: if ${ac_cv_lib_pam_pam_start+:} false; then :
50415:   $as_echo_n "(cached) " >&6
50416: else
50417:   ac_check_lib_save_LIBS=$LIBS
50418: LIBS="-lpam  $LIBS"
50419: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50420: /* end confdefs.h.  */
50421: 
50422: /* Override any GCC internal prototype to avoid an error.
50423:    Use char because int might match the return type of a GCC
50424:    builtin and then its argument prototype would still apply.  */
50425: #ifdef __cplusplus
50426: extern "C"
50427: #endif
50428: char pam_start ();
50429: int
50430: main ()
50431: {
50432: return pam_start ();
50433:   ;
50434:   return 0;
50435: }
50436: _ACEOF
50437: if ac_fn_c_try_link "$LINENO"; then :
50438:   ac_cv_lib_pam_pam_start=yes
50439: else
50440:   ac_cv_lib_pam_pam_start=no
50441: fi
50442: rm -f core conftest.err conftest.$ac_objext \
50443:     conftest$ac_exeext conftest.$ac_ext
50444: LIBS=$ac_check_lib_save_LIBS
50445: fi
50446: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
50447: $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
50448: if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
50449: 
50450:     LDFLAGS=$save_old_LDFLAGS
50451:     ext_shared=$save_ext_shared
50452: 
50453: 
50454: 
50455:   case pam in
50456:   c|c_r|pthread*) ;;
50457:   *)
50458:     if test "$ext_shared" = "yes"; then
50459:         IMAP_SHARED_LIBADD="-lpam $IMAP_SHARED_LIBADD"
50460:     else
50461: 
50462: 
50463:   case pam in
50464:   c|c_r|pthread*) ;;
50465:   *)
50466:       LIBS="-lpam $LIBS"
50467:    ;;
50468:   esac
50469: 
50470: 
50471:     fi
50472:    ;;
50473:   esac
50474: 
50475: 
50476: 
50477: $as_echo "#define HAVE_LIBPAM 1" >>confdefs.h
50478: 
50479: 
50480: 
50481: else
50482: 
50483:     LDFLAGS=$save_old_LDFLAGS
50484:     ext_shared=$save_ext_shared
50485:     unset ac_cv_lib_pam_pam_start
50486: 
50487: 
50488: fi
50489: 
50490: 
50491: 
50492:   save_old_LDFLAGS=$LDFLAGS
50493:   ac_stuff=""
50494: 
50495:   save_ext_shared=$ext_shared
50496:   ext_shared=yes
50497: 
50498:   for ac_i in $ac_stuff; do
50499:     case $ac_i in
50500:     -pthread)
50501:       if test "$ext_shared" = "yes"; then
50502:         LDFLAGS="$LDFLAGS -pthread"
50503:       else
50504: 
50505: 
50506:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
50507: 
50508:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
50509:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
50510:     eval "EXTRA_LDFLAGS$unique=set"
50511:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
50512:   fi
50513: 
50514:       fi
50515:     ;;
50516:     -l*)
50517:       ac_ii=`echo $ac_i|cut -c 3-`
50518: 
50519: 
50520:   case $ac_ii in
50521:   c|c_r|pthread*) ;;
50522:   *)
50523:     if test "$ext_shared" = "yes"; then
50524:         LDFLAGS="$LDFLAGS -l$ac_ii"
50525:     else
50526: 
50527: 
50528:   case $ac_ii in
50529:   c|c_r|pthread*) ;;
50530:   *)
50531:       LIBS="$LIBS -l$ac_ii"
50532:    ;;
50533:   esac
50534: 
50535: 
50536:     fi
50537:    ;;
50538:   esac
50539: 
50540: 
50541:     ;;
50542:     -L*)
50543:       ac_ii=`echo $ac_i|cut -c 3-`
50544: 
50545:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
50546: 
50547:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
50548:     ai_p=$ac_ii
50549:   else
50550: 
50551:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
50552: 
50553:     ep_realdir=`(cd "$ep_dir" && pwd)`
50554:     ai_p="$ep_realdir"/`basename "$ac_ii"`
50555:   fi
50556: 
50557: 
50558:       if test "$ext_shared" = "yes"; then
50559:         LDFLAGS="-L$ai_p $LDFLAGS"
50560:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
50561:       else
50562: 
50563: 
50564: 
50565:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
50566: 
50567:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
50568:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
50569:     eval "LIBPATH$unique=set"
50570: 
50571:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
50572:     LDFLAGS="$LDFLAGS -L$ai_p"
50573:     PHP_RPATHS="$PHP_RPATHS $ai_p"
50574: 
50575:   fi
50576: 
50577: 
50578:       fi
50579: 
50580:   fi
50581: 
50582:     ;;
50583:     esac
50584:   done
50585: 
50586:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
50587: $as_echo_n "checking for crypt in -lcrypt... " >&6; }
50588: if ${ac_cv_lib_crypt_crypt+:} false; then :
50589:   $as_echo_n "(cached) " >&6
50590: else
50591:   ac_check_lib_save_LIBS=$LIBS
50592: LIBS="-lcrypt  $LIBS"
50593: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50594: /* end confdefs.h.  */
50595: 
50596: /* Override any GCC internal prototype to avoid an error.
50597:    Use char because int might match the return type of a GCC
50598:    builtin and then its argument prototype would still apply.  */
50599: #ifdef __cplusplus
50600: extern "C"
50601: #endif
50602: char crypt ();
50603: int
50604: main ()
50605: {
50606: return crypt ();
50607:   ;
50608:   return 0;
50609: }
50610: _ACEOF
50611: if ac_fn_c_try_link "$LINENO"; then :
50612:   ac_cv_lib_crypt_crypt=yes
50613: else
50614:   ac_cv_lib_crypt_crypt=no
50615: fi
50616: rm -f core conftest.err conftest.$ac_objext \
50617:     conftest$ac_exeext conftest.$ac_ext
50618: LIBS=$ac_check_lib_save_LIBS
50619: fi
50620: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
50621: $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
50622: if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
50623: 
50624:     LDFLAGS=$save_old_LDFLAGS
50625:     ext_shared=$save_ext_shared
50626: 
50627: 
50628: 
50629:   case crypt in
50630:   c|c_r|pthread*) ;;
50631:   *)
50632:     if test "$ext_shared" = "yes"; then
50633:         IMAP_SHARED_LIBADD="-lcrypt $IMAP_SHARED_LIBADD"
50634:     else
50635: 
50636: 
50637:   case crypt in
50638:   c|c_r|pthread*) ;;
50639:   *)
50640:       LIBS="-lcrypt $LIBS"
50641:    ;;
50642:   esac
50643: 
50644: 
50645:     fi
50646:    ;;
50647:   esac
50648: 
50649: 
50650: 
50651: $as_echo "#define HAVE_LIBCRYPT 1" >>confdefs.h
50652: 
50653: 
50654: 
50655: else
50656: 
50657:     LDFLAGS=$save_old_LDFLAGS
50658:     ext_shared=$save_ext_shared
50659:     unset ac_cv_lib_crypt_crypt
50660: 
50661: 
50662: fi
50663: 
50664: 
50665: 
50666:   if test -z "$IMAP_DIR" || echo "$IMAP_DIR" | grep '^/' >/dev/null ; then
50667:     IMAP_DIR=$IMAP_DIR
50668:   else
50669: 
50670:     ep_dir=`echo $IMAP_DIR|$SED 's%/*[^/][^/]*/*$%%'`
50671: 
50672:     ep_realdir=`(cd "$ep_dir" && pwd)`
50673:     IMAP_DIR="$ep_realdir"/`basename "$IMAP_DIR"`
50674:   fi
50675: 
50676: 
50677:     if test -z "$IMAP_DIR"; then
50678:       as_fn_error $? "Cannot find rfc822.h. Please check your c-client installation." "$LINENO" 5
50679:     fi
50680: 
50681:     if test ! -r "$IMAP_DIR/c-client/libc-client.a" && test -r "$IMAP_DIR/c-client/c-client.a" ; then
50682:       ln -s "$IMAP_DIR/c-client/c-client.a" "$IMAP_DIR/c-client/libc-client.a" >/dev/null 2>&1
50683:     elif test ! -r "$IMAP_DIR/$PHP_LIBDIR/libc-client.a" && test -r "$IMAP_DIR/$PHP_LIBDIR/c-client.a"; then
50684:       ln -s "$IMAP_DIR/$PHP_LIBDIR/c-client.a" "$IMAP_DIR/$PHP_LIBDIR/libc-client.a" >/dev/null 2>&1
50685:     fi
50686: 
50687:     for lib in c-client4 c-client imap; do
50688:       IMAP_LIB=$lib
50689: 
50690:   str="$IMAP_DIR/$PHP_LIBDIR/lib$lib.*"
50691:   for i in `echo $str`; do
50692:     test -r $i && IMAP_LIBDIR=$IMAP_DIR/$PHP_LIBDIR && break 2
50693:   done
50694: 
50695: 
50696:   str="$IMAP_DIR/c-client/lib$lib.*"
50697:   for i in `echo $str`; do
50698:     test -r $i && IMAP_LIBDIR=$IMAP_DIR/c-client && break 2
50699:   done
50700: 
50701:     done
50702: 
50703:     if test -z "$IMAP_LIBDIR"; then
50704:       as_fn_error $? "Cannot find imap library (libc-client.a). Please check your c-client installation." "$LINENO" 5
50705:     fi
50706: 
50707: 
50708:   if test "$IMAP_INC_DIR" != "/usr/include"; then
50709: 
50710:   if test -z "$IMAP_INC_DIR" || echo "$IMAP_INC_DIR" | grep '^/' >/dev/null ; then
50711:     ai_p=$IMAP_INC_DIR
50712:   else
50713: 
50714:     ep_dir=`echo $IMAP_INC_DIR|$SED 's%/*[^/][^/]*/*$%%'`
50715: 
50716:     ep_realdir=`(cd "$ep_dir" && pwd)`
50717:     ai_p="$ep_realdir"/`basename "$IMAP_INC_DIR"`
50718:   fi
50719: 
50720: 
50721: 
50722:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
50723: 
50724:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
50725:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
50726:     eval "INCLUDEPATH$unique=set"
50727: 
50728:       if test ""; then
50729:         INCLUDES="-I$ai_p $INCLUDES"
50730:       else
50731:         INCLUDES="$INCLUDES -I$ai_p"
50732:       fi
50733: 
50734:   fi
50735: 
50736:   fi
50737: 
50738: 
50739: 
50740:   case $IMAP_LIB in
50741:   c|c_r|pthread*) ;;
50742:   *)
50743:     if test "$ext_shared" = "yes"; then
50744:         IMAP_SHARED_LIBADD="-l$IMAP_LIB $IMAP_SHARED_LIBADD"
50745:     else
50746: 
50747: 
50748:   case $IMAP_LIB in
50749:   c|c_r|pthread*) ;;
50750:   *)
50751:       DLIBS="-l$IMAP_LIB $DLIBS"
50752:    ;;
50753:   esac
50754: 
50755: 
50756:     fi
50757:    ;;
50758:   esac
50759: 
50760: 
50761: 
50762:   if test "$IMAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$IMAP_LIBDIR" != "/usr/lib"; then
50763: 
50764:   if test -z "$IMAP_LIBDIR" || echo "$IMAP_LIBDIR" | grep '^/' >/dev/null ; then
50765:     ai_p=$IMAP_LIBDIR
50766:   else
50767: 
50768:     ep_dir=`echo $IMAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
50769: 
50770:     ep_realdir=`(cd "$ep_dir" && pwd)`
50771:     ai_p="$ep_realdir"/`basename "$IMAP_LIBDIR"`
50772:   fi
50773: 
50774: 
50775:       if test "$ext_shared" = "yes"; then
50776:         IMAP_SHARED_LIBADD="-L$ai_p $IMAP_SHARED_LIBADD"
50777:         test -n "$ld_runpath_switch" && IMAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $IMAP_SHARED_LIBADD"
50778:       else
50779: 
50780: 
50781: 
50782:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
50783: 
50784:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
50785:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
50786:     eval "LIBPATH$unique=set"
50787: 
50788:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
50789:     LDFLAGS="$LDFLAGS -L$ai_p"
50790:     PHP_RPATHS="$PHP_RPATHS $ai_p"
50791: 
50792:   fi
50793: 
50794: 
50795:       fi
50796: 
50797:   fi
50798: 
50799: 
50800:   if test "$PHP_KERBEROS" != "no"; then
50801: 
50802:   found_kerberos=no
50803:   unset KERBEROS_CFLAGS
50804:   unset KERBEROS_LIBS
50805: 
50806:     if test -z "$KRB5_CONFIG"; then
50807:     # Extract the first word of "krb5-config", so it can be a program name with args.
50808: set dummy krb5-config; ac_word=$2
50809: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
50810: $as_echo_n "checking for $ac_word... " >&6; }
50811: if ${ac_cv_path_KRB5_CONFIG+:} false; then :
50812:   $as_echo_n "(cached) " >&6
50813: else
50814:   case $KRB5_CONFIG in
50815:   [\\/]* | ?:[\\/]*)
50816:   ac_cv_path_KRB5_CONFIG="$KRB5_CONFIG" # Let the user override the test with a path.
50817:   ;;
50818:   *)
50819:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50820: as_dummy="$PATH:/usr/kerberos/bin:/usr/local/bin"
50821: for as_dir in $as_dummy
50822: do
50823:   IFS=$as_save_IFS
50824:   test -z "$as_dir" && as_dir=.
50825:     for ac_exec_ext in '' $ac_executable_extensions; do
50826:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
50827:     ac_cv_path_KRB5_CONFIG="$as_dir/$ac_word$ac_exec_ext"
50828:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
50829:     break 2
50830:   fi
50831: done
50832:   done
50833: IFS=$as_save_IFS
50834: 
50835:   test -z "$ac_cv_path_KRB5_CONFIG" && ac_cv_path_KRB5_CONFIG="no"
50836:   ;;
50837: esac
50838: fi
50839: KRB5_CONFIG=$ac_cv_path_KRB5_CONFIG
50840: if test -n "$KRB5_CONFIG"; then
50841:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5_CONFIG" >&5
50842: $as_echo "$KRB5_CONFIG" >&6; }
50843: else
50844:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
50845: $as_echo "no" >&6; }
50846: fi
50847: 
50848: 
50849:   fi
50850: 
50851:     if test "$PHP_KERBEROS" = "yes" && test -x "$KRB5_CONFIG"; then
50852:     KERBEROS_LIBS=`$KRB5_CONFIG --libs gssapi`
50853:     KERBEROS_CFLAGS=`$KRB5_CONFIG --cflags gssapi`
50854: 
50855:     if test -n "$KERBEROS_LIBS"; then
50856:       found_kerberos=yes
50857: 
50858:   for ac_i in $KERBEROS_LIBS; do
50859:     case $ac_i in
50860:     -pthread)
50861:       if test "$ext_shared" = "yes"; then
50862:         IMAP_SHARED_LIBADD="$IMAP_SHARED_LIBADD -pthread"
50863:       else
50864: 
50865: 
50866:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
50867: 
50868:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
50869:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
50870:     eval "EXTRA_LDFLAGS$unique=set"
50871:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
50872:   fi
50873: 
50874:       fi
50875:     ;;
50876:     -l*)
50877:       ac_ii=`echo $ac_i|cut -c 3-`
50878: 
50879: 
50880:   case $ac_ii in
50881:   c|c_r|pthread*) ;;
50882:   *)
50883:     if test "$ext_shared" = "yes"; then
50884:         IMAP_SHARED_LIBADD="$IMAP_SHARED_LIBADD -l$ac_ii"
50885:     else
50886: 
50887: 
50888:   case $ac_ii in
50889:   c|c_r|pthread*) ;;
50890:   *)
50891:       LIBS="$LIBS -l$ac_ii"
50892:    ;;
50893:   esac
50894: 
50895: 
50896:     fi
50897:    ;;
50898:   esac
50899: 
50900: 
50901:     ;;
50902:     -L*)
50903:       ac_ii=`echo $ac_i|cut -c 3-`
50904: 
50905:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
50906: 
50907:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
50908:     ai_p=$ac_ii
50909:   else
50910: 
50911:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
50912: 
50913:     ep_realdir=`(cd "$ep_dir" && pwd)`
50914:     ai_p="$ep_realdir"/`basename "$ac_ii"`
50915:   fi
50916: 
50917: 
50918:       if test "$ext_shared" = "yes"; then
50919:         IMAP_SHARED_LIBADD="-L$ai_p $IMAP_SHARED_LIBADD"
50920:         test -n "$ld_runpath_switch" && IMAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $IMAP_SHARED_LIBADD"
50921:       else
50922: 
50923: 
50924: 
50925:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
50926: 
50927:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
50928:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
50929:     eval "LIBPATH$unique=set"
50930: 
50931:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
50932:     LDFLAGS="$LDFLAGS -L$ai_p"
50933:     PHP_RPATHS="$PHP_RPATHS $ai_p"
50934: 
50935:   fi
50936: 
50937: 
50938:       fi
50939: 
50940:   fi
50941: 
50942:     ;;
50943:     esac
50944:   done
50945: 
50946: 
50947:   for ac_i in $KERBEROS_CFLAGS; do
50948:     case $ac_i in
50949:     -I*)
50950:       ac_ii=`echo $ac_i|cut -c 3-`
50951: 
50952:   if test "$ac_ii" != "/usr/include"; then
50953: 
50954:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
50955:     ai_p=$ac_ii
50956:   else
50957: 
50958:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
50959: 
50960:     ep_realdir=`(cd "$ep_dir" && pwd)`
50961:     ai_p="$ep_realdir"/`basename "$ac_ii"`
50962:   fi
50963: 
50964: 
50965: 
50966:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
50967: 
50968:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
50969:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
50970:     eval "INCLUDEPATH$unique=set"
50971: 
50972:       if test ""; then
50973:         INCLUDES="-I$ai_p $INCLUDES"
50974:       else
50975:         INCLUDES="$INCLUDES -I$ai_p"
50976:       fi
50977: 
50978:   fi
50979: 
50980:   fi
50981: 
50982:     ;;
50983:     esac
50984:   done
50985: 
50986:     fi
50987:   fi
50988: 
50989:     if test "$found_kerberos" = "no"; then
50990: 
50991:     if test "$PHP_KERBEROS" = "yes"; then
50992:       PHP_KERBEROS="/usr/kerberos /usr/local /usr"
50993:     fi
50994: 
50995:     for i in $PHP_KERBEROS; do
50996:       if test -f $i/$PHP_LIBDIR/libkrb5.a || test -f $i/$PHP_LIBDIR/libkrb5.$SHLIB_SUFFIX_NAME; then
50997:         PHP_KERBEROS_DIR=$i
50998:         break
50999:       fi
51000:     done
51001: 
51002:     if test "$PHP_KERBEROS_DIR"; then
51003:       found_kerberos=yes
51004: 
51005:   if test "$PHP_KERBEROS_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_KERBEROS_DIR/$PHP_LIBDIR" != "/usr/lib"; then
51006: 
51007:   if test -z "$PHP_KERBEROS_DIR/$PHP_LIBDIR" || echo "$PHP_KERBEROS_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
51008:     ai_p=$PHP_KERBEROS_DIR/$PHP_LIBDIR
51009:   else
51010: 
51011:     ep_dir=`echo $PHP_KERBEROS_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
51012: 
51013:     ep_realdir=`(cd "$ep_dir" && pwd)`
51014:     ai_p="$ep_realdir"/`basename "$PHP_KERBEROS_DIR/$PHP_LIBDIR"`
51015:   fi
51016: 
51017: 
51018:       if test "$ext_shared" = "yes"; then
51019:         IMAP_SHARED_LIBADD="-L$ai_p $IMAP_SHARED_LIBADD"
51020:         test -n "$ld_runpath_switch" && IMAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $IMAP_SHARED_LIBADD"
51021:       else
51022: 
51023: 
51024: 
51025:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
51026: 
51027:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
51028:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
51029:     eval "LIBPATH$unique=set"
51030: 
51031:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
51032:     LDFLAGS="$LDFLAGS -L$ai_p"
51033:     PHP_RPATHS="$PHP_RPATHS $ai_p"
51034: 
51035:   fi
51036: 
51037: 
51038:       fi
51039: 
51040:   fi
51041: 
51042: 
51043: 
51044:   case gssapi_krb5 in
51045:   c|c_r|pthread*) ;;
51046:   *)
51047:     if test "$ext_shared" = "yes"; then
51048:         IMAP_SHARED_LIBADD="$IMAP_SHARED_LIBADD -lgssapi_krb5"
51049:     else
51050: 
51051: 
51052:   case gssapi_krb5 in
51053:   c|c_r|pthread*) ;;
51054:   *)
51055:       LIBS="$LIBS -lgssapi_krb5"
51056:    ;;
51057:   esac
51058: 
51059: 
51060:     fi
51061:    ;;
51062:   esac
51063: 
51064: 
51065: 
51066: 
51067:   case krb5 in
51068:   c|c_r|pthread*) ;;
51069:   *)
51070:     if test "$ext_shared" = "yes"; then
51071:         IMAP_SHARED_LIBADD="$IMAP_SHARED_LIBADD -lkrb5"
51072:     else
51073: 
51074: 
51075:   case krb5 in
51076:   c|c_r|pthread*) ;;
51077:   *)
51078:       LIBS="$LIBS -lkrb5"
51079:    ;;
51080:   esac
51081: 
51082: 
51083:     fi
51084:    ;;
51085:   esac
51086: 
51087: 
51088: 
51089: 
51090:   case k5crypto in
51091:   c|c_r|pthread*) ;;
51092:   *)
51093:     if test "$ext_shared" = "yes"; then
51094:         IMAP_SHARED_LIBADD="$IMAP_SHARED_LIBADD -lk5crypto"
51095:     else
51096: 
51097: 
51098:   case k5crypto in
51099:   c|c_r|pthread*) ;;
51100:   *)
51101:       LIBS="$LIBS -lk5crypto"
51102:    ;;
51103:   esac
51104: 
51105: 
51106:     fi
51107:    ;;
51108:   esac
51109: 
51110: 
51111: 
51112: 
51113:   case com_err in
51114:   c|c_r|pthread*) ;;
51115:   *)
51116:     if test "$ext_shared" = "yes"; then
51117:         IMAP_SHARED_LIBADD="$IMAP_SHARED_LIBADD -lcom_err"
51118:     else
51119: 
51120: 
51121:   case com_err in
51122:   c|c_r|pthread*) ;;
51123:   *)
51124:       LIBS="$LIBS -lcom_err"
51125:    ;;
51126:   esac
51127: 
51128: 
51129:     fi
51130:    ;;
51131:   esac
51132: 
51133: 
51134: 
51135:   if test "$PHP_KERBEROS_DIR/include" != "/usr/include"; then
51136: 
51137:   if test -z "$PHP_KERBEROS_DIR/include" || echo "$PHP_KERBEROS_DIR/include" | grep '^/' >/dev/null ; then
51138:     ai_p=$PHP_KERBEROS_DIR/include
51139:   else
51140: 
51141:     ep_dir=`echo $PHP_KERBEROS_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`
51142: 
51143:     ep_realdir=`(cd "$ep_dir" && pwd)`
51144:     ai_p="$ep_realdir"/`basename "$PHP_KERBEROS_DIR/include"`
51145:   fi
51146: 
51147: 
51148: 
51149:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
51150: 
51151:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
51152:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
51153:     eval "INCLUDEPATH$unique=set"
51154: 
51155:       if test ""; then
51156:         INCLUDES="-I$ai_p $INCLUDES"
51157:       else
51158:         INCLUDES="$INCLUDES -I$ai_p"
51159:       fi
51160: 
51161:   fi
51162: 
51163:   fi
51164: 
51165:     fi
51166:   fi
51167: 
51168:   if test "$found_kerberos" = "yes"; then
51169: 
51170: 
51171: $as_echo "#define HAVE_IMAP_KRB 1" >>confdefs.h
51172: 
51173: 
51174: else
51175:       as_fn_error $? "Kerberos libraries not found.
51176: 
51177:       Check the path given to --with-kerberos (if no path is given, searches in /usr/kerberos, /usr/local and /usr )
51178:       " "$LINENO" 5
51179: 
51180:   fi
51181: 
51182:   else
51183:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51184: /* end confdefs.h.  */
51185: #include <$IMAP_INC_DIR/linkage.h>
51186: 
51187: _ACEOF
51188: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51189:   $EGREP "auth_gss" >/dev/null 2>&1; then :
51190: 
51191:       as_fn_error $? "This c-client library is built with Kerberos support.
51192: 
51193:       Add --with-kerberos to your configure line. Check config.log for details.
51194:       " "$LINENO" 5
51195: 
51196: fi
51197: rm -f conftest*
51198: 
51199:   fi
51200: 
51201: 
51202:   if test "$PHP_IMAP_SSL" != "no"; then
51203:     if test "$PHP_OPENSSL" = ""; then
51204:       PHP_OPENSSL='no'
51205:     fi
51206: 
51207:   found_openssl=no
51208:   unset OPENSSL_INCDIR
51209:   unset OPENSSL_LIBDIR
51210: 
51211:     test -z "$PHP_OPENSSL" && PHP_OPENSSL=no
51212:   test -z "$PHP_IMAP_SSL" && PHP_IMAP_SSL=no
51213: 
51214:     if test "$PHP_OPENSSL" != "no"; then
51215:     PHP_OPENSSL_DIR=$PHP_OPENSSL
51216:   elif test "$PHP_IMAP_SSL" != "no"; then
51217:     PHP_OPENSSL_DIR=$PHP_IMAP_SSL
51218:   fi
51219: 
51220:     if test -z "$PKG_CONFIG"; then
51221:     # Extract the first word of "pkg-config", so it can be a program name with args.
51222: set dummy pkg-config; ac_word=$2
51223: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
51224: $as_echo_n "checking for $ac_word... " >&6; }
51225: if ${ac_cv_path_PKG_CONFIG+:} false; then :
51226:   $as_echo_n "(cached) " >&6
51227: else
51228:   case $PKG_CONFIG in
51229:   [\\/]* | ?:[\\/]*)
51230:   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
51231:   ;;
51232:   *)
51233:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51234: for as_dir in $PATH
51235: do
51236:   IFS=$as_save_IFS
51237:   test -z "$as_dir" && as_dir=.
51238:     for ac_exec_ext in '' $ac_executable_extensions; do
51239:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
51240:     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
51241:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
51242:     break 2
51243:   fi
51244: done
51245:   done
51246: IFS=$as_save_IFS
51247: 
51248:   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
51249:   ;;
51250: esac
51251: fi
51252: PKG_CONFIG=$ac_cv_path_PKG_CONFIG
51253: if test -n "$PKG_CONFIG"; then
51254:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
51255: $as_echo "$PKG_CONFIG" >&6; }
51256: else
51257:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
51258: $as_echo "no" >&6; }
51259: fi
51260: 
51261: 
51262:   fi
51263: 
51264:     if test "$PHP_OPENSSL_DIR" = "yes" && test -x "$PKG_CONFIG" && $PKG_CONFIG --exists openssl; then
51265:     if $PKG_CONFIG --atleast-version=0.9.6 openssl; then
51266:       found_openssl=yes
51267:       OPENSSL_LIBS=`$PKG_CONFIG --libs openssl`
51268:       OPENSSL_INCS=`$PKG_CONFIG --cflags-only-I openssl`
51269:       OPENSSL_INCDIR=`$PKG_CONFIG --variable=includedir openssl`
51270:     else
51271:       as_fn_error $? "OpenSSL version 0.9.6 or greater required." "$LINENO" 5
51272:     fi
51273: 
51274:     if test -n "$OPENSSL_LIBS"; then
51275: 
51276:   for ac_i in $OPENSSL_LIBS; do
51277:     case $ac_i in
51278:     -pthread)
51279:       if test "$ext_shared" = "yes"; then
51280:         IMAP_SHARED_LIBADD="$IMAP_SHARED_LIBADD -pthread"
51281:       else
51282: 
51283: 
51284:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
51285: 
51286:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
51287:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
51288:     eval "EXTRA_LDFLAGS$unique=set"
51289:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
51290:   fi
51291: 
51292:       fi
51293:     ;;
51294:     -l*)
51295:       ac_ii=`echo $ac_i|cut -c 3-`
51296: 
51297: 
51298:   case $ac_ii in
51299:   c|c_r|pthread*) ;;
51300:   *)
51301:     if test "$ext_shared" = "yes"; then
51302:         IMAP_SHARED_LIBADD="$IMAP_SHARED_LIBADD -l$ac_ii"
51303:     else
51304: 
51305: 
51306:   case $ac_ii in
51307:   c|c_r|pthread*) ;;
51308:   *)
51309:       LIBS="$LIBS -l$ac_ii"
51310:    ;;
51311:   esac
51312: 
51313: 
51314:     fi
51315:    ;;
51316:   esac
51317: 
51318: 
51319:     ;;
51320:     -L*)
51321:       ac_ii=`echo $ac_i|cut -c 3-`
51322: 
51323:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
51324: 
51325:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
51326:     ai_p=$ac_ii
51327:   else
51328: 
51329:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
51330: 
51331:     ep_realdir=`(cd "$ep_dir" && pwd)`
51332:     ai_p="$ep_realdir"/`basename "$ac_ii"`
51333:   fi
51334: 
51335: 
51336:       if test "$ext_shared" = "yes"; then
51337:         IMAP_SHARED_LIBADD="-L$ai_p $IMAP_SHARED_LIBADD"
51338:         test -n "$ld_runpath_switch" && IMAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $IMAP_SHARED_LIBADD"
51339:       else
51340: 
51341: 
51342: 
51343:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
51344: 
51345:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
51346:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
51347:     eval "LIBPATH$unique=set"
51348: 
51349:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
51350:     LDFLAGS="$LDFLAGS -L$ai_p"
51351:     PHP_RPATHS="$PHP_RPATHS $ai_p"
51352: 
51353:   fi
51354: 
51355: 
51356:       fi
51357: 
51358:   fi
51359: 
51360:     ;;
51361:     esac
51362:   done
51363: 
51364:     fi
51365:     if test -n "$OPENSSL_INCS"; then
51366: 
51367:   for ac_i in $OPENSSL_INCS; do
51368:     case $ac_i in
51369:     -I*)
51370:       ac_ii=`echo $ac_i|cut -c 3-`
51371: 
51372:   if test "$ac_ii" != "/usr/include"; then
51373: 
51374:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
51375:     ai_p=$ac_ii
51376:   else
51377: 
51378:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
51379: 
51380:     ep_realdir=`(cd "$ep_dir" && pwd)`
51381:     ai_p="$ep_realdir"/`basename "$ac_ii"`
51382:   fi
51383: 
51384: 
51385: 
51386:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
51387: 
51388:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
51389:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
51390:     eval "INCLUDEPATH$unique=set"
51391: 
51392:       if test ""; then
51393:         INCLUDES="-I$ai_p $INCLUDES"
51394:       else
51395:         INCLUDES="$INCLUDES -I$ai_p"
51396:       fi
51397: 
51398:   fi
51399: 
51400:   fi
51401: 
51402:     ;;
51403:     esac
51404:   done
51405: 
51406:     fi
51407:   fi
51408: 
51409:     if test "$found_openssl" = "no"; then
51410: 
51411:     if test "$PHP_OPENSSL_DIR" = "yes"; then
51412:       PHP_OPENSSL_DIR="/usr/local/ssl /usr/local /usr /usr/local/openssl"
51413:     fi
51414: 
51415:     for i in $PHP_OPENSSL_DIR; do
51416:       if test -r $i/include/openssl/evp.h; then
51417:         OPENSSL_INCDIR=$i/include
51418:       fi
51419:       if test -r $i/$PHP_LIBDIR/libssl.a -o -r $i/$PHP_LIBDIR/libssl.$SHLIB_SUFFIX_NAME; then
51420:         OPENSSL_LIBDIR=$i/$PHP_LIBDIR
51421:       fi
51422:       test -n "$OPENSSL_INCDIR" && test -n "$OPENSSL_LIBDIR" && break
51423:     done
51424: 
51425:     if test -z "$OPENSSL_INCDIR"; then
51426:       as_fn_error $? "Cannot find OpenSSL's <evp.h>" "$LINENO" 5
51427:     fi
51428: 
51429:     if test -z "$OPENSSL_LIBDIR"; then
51430:       as_fn_error $? "Cannot find OpenSSL's libraries" "$LINENO" 5
51431:     fi
51432: 
51433:     old_CPPFLAGS=$CPPFLAGS
51434:     CPPFLAGS=-I$OPENSSL_INCDIR
51435:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version" >&5
51436: $as_echo_n "checking for OpenSSL version... " >&6; }
51437:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51438: /* end confdefs.h.  */
51439: 
51440: #include <openssl/opensslv.h>
51441: #if OPENSSL_VERSION_NUMBER >= 0x0090600fL
51442:   yes
51443: #endif
51444: 
51445: _ACEOF
51446: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51447:   $EGREP "yes" >/dev/null 2>&1; then :
51448: 
51449:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: >= 0.9.6" >&5
51450: $as_echo ">= 0.9.6" >&6; }
51451: 
51452: else
51453: 
51454:       as_fn_error $? "OpenSSL version 0.9.6 or greater required." "$LINENO" 5
51455: 
51456: fi
51457: rm -f conftest*
51458: 
51459:     CPPFLAGS=$old_CPPFLAGS
51460: 
51461: 
51462:   if test "$OPENSSL_INCDIR" != "/usr/include"; then
51463: 
51464:   if test -z "$OPENSSL_INCDIR" || echo "$OPENSSL_INCDIR" | grep '^/' >/dev/null ; then
51465:     ai_p=$OPENSSL_INCDIR
51466:   else
51467: 
51468:     ep_dir=`echo $OPENSSL_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`
51469: 
51470:     ep_realdir=`(cd "$ep_dir" && pwd)`
51471:     ai_p="$ep_realdir"/`basename "$OPENSSL_INCDIR"`
51472:   fi
51473: 
51474: 
51475: 
51476:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
51477: 
51478:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
51479:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
51480:     eval "INCLUDEPATH$unique=set"
51481: 
51482:       if test ""; then
51483:         INCLUDES="-I$ai_p $INCLUDES"
51484:       else
51485:         INCLUDES="$INCLUDES -I$ai_p"
51486:       fi
51487: 
51488:   fi
51489: 
51490:   fi
51491: 
51492: 
51493: 
51494:   save_old_LDFLAGS=$LDFLAGS
51495:   ac_stuff="
51496:       -L$OPENSSL_LIBDIR
51497:     "
51498: 
51499:   save_ext_shared=$ext_shared
51500:   ext_shared=yes
51501: 
51502:   for ac_i in $ac_stuff; do
51503:     case $ac_i in
51504:     -pthread)
51505:       if test "$ext_shared" = "yes"; then
51506:         LDFLAGS="$LDFLAGS -pthread"
51507:       else
51508: 
51509: 
51510:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
51511: 
51512:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
51513:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
51514:     eval "EXTRA_LDFLAGS$unique=set"
51515:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
51516:   fi
51517: 
51518:       fi
51519:     ;;
51520:     -l*)
51521:       ac_ii=`echo $ac_i|cut -c 3-`
51522: 
51523: 
51524:   case $ac_ii in
51525:   c|c_r|pthread*) ;;
51526:   *)
51527:     if test "$ext_shared" = "yes"; then
51528:         LDFLAGS="$LDFLAGS -l$ac_ii"
51529:     else
51530: 
51531: 
51532:   case $ac_ii in
51533:   c|c_r|pthread*) ;;
51534:   *)
51535:       LIBS="$LIBS -l$ac_ii"
51536:    ;;
51537:   esac
51538: 
51539: 
51540:     fi
51541:    ;;
51542:   esac
51543: 
51544: 
51545:     ;;
51546:     -L*)
51547:       ac_ii=`echo $ac_i|cut -c 3-`
51548: 
51549:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
51550: 
51551:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
51552:     ai_p=$ac_ii
51553:   else
51554: 
51555:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
51556: 
51557:     ep_realdir=`(cd "$ep_dir" && pwd)`
51558:     ai_p="$ep_realdir"/`basename "$ac_ii"`
51559:   fi
51560: 
51561: 
51562:       if test "$ext_shared" = "yes"; then
51563:         LDFLAGS="-L$ai_p $LDFLAGS"
51564:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
51565:       else
51566: 
51567: 
51568: 
51569:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
51570: 
51571:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
51572:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
51573:     eval "LIBPATH$unique=set"
51574: 
51575:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
51576:     LDFLAGS="$LDFLAGS -L$ai_p"
51577:     PHP_RPATHS="$PHP_RPATHS $ai_p"
51578: 
51579:   fi
51580: 
51581: 
51582:       fi
51583: 
51584:   fi
51585: 
51586:     ;;
51587:     esac
51588:   done
51589: 
51590:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_free in -lcrypto" >&5
51591: $as_echo_n "checking for CRYPTO_free in -lcrypto... " >&6; }
51592: if ${ac_cv_lib_crypto_CRYPTO_free+:} false; then :
51593:   $as_echo_n "(cached) " >&6
51594: else
51595:   ac_check_lib_save_LIBS=$LIBS
51596: LIBS="-lcrypto  $LIBS"
51597: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51598: /* end confdefs.h.  */
51599: 
51600: /* Override any GCC internal prototype to avoid an error.
51601:    Use char because int might match the return type of a GCC
51602:    builtin and then its argument prototype would still apply.  */
51603: #ifdef __cplusplus
51604: extern "C"
51605: #endif
51606: char CRYPTO_free ();
51607: int
51608: main ()
51609: {
51610: return CRYPTO_free ();
51611:   ;
51612:   return 0;
51613: }
51614: _ACEOF
51615: if ac_fn_c_try_link "$LINENO"; then :
51616:   ac_cv_lib_crypto_CRYPTO_free=yes
51617: else
51618:   ac_cv_lib_crypto_CRYPTO_free=no
51619: fi
51620: rm -f core conftest.err conftest.$ac_objext \
51621:     conftest$ac_exeext conftest.$ac_ext
51622: LIBS=$ac_check_lib_save_LIBS
51623: fi
51624: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_free" >&5
51625: $as_echo "$ac_cv_lib_crypto_CRYPTO_free" >&6; }
51626: if test "x$ac_cv_lib_crypto_CRYPTO_free" = xyes; then :
51627: 
51628:     LDFLAGS=$save_old_LDFLAGS
51629:     ext_shared=$save_ext_shared
51630: 
51631: 
51632: 
51633:   case crypto in
51634:   c|c_r|pthread*) ;;
51635:   *)
51636:     if test "$ext_shared" = "yes"; then
51637:         IMAP_SHARED_LIBADD="-lcrypto $IMAP_SHARED_LIBADD"
51638:     else
51639: 
51640: 
51641:   case crypto in
51642:   c|c_r|pthread*) ;;
51643:   *)
51644:       LIBS="-lcrypto $LIBS"
51645:    ;;
51646:   esac
51647: 
51648: 
51649:     fi
51650:    ;;
51651:   esac
51652: 
51653: 
51654: 
51655: 
51656: else
51657: 
51658:     LDFLAGS=$save_old_LDFLAGS
51659:     ext_shared=$save_ext_shared
51660:     unset ac_cv_lib_crypto_CRYPTO_free
51661: 
51662:       as_fn_error $? "libcrypto not found!" "$LINENO" 5
51663: 
51664: 
51665: fi
51666: 
51667: 
51668:     old_LIBS=$LIBS
51669:     LIBS="$LIBS -lcrypto"
51670: 
51671:   save_old_LDFLAGS=$LDFLAGS
51672:   ac_stuff="
51673:       -L$OPENSSL_LIBDIR
51674:     "
51675: 
51676:   save_ext_shared=$ext_shared
51677:   ext_shared=yes
51678: 
51679:   for ac_i in $ac_stuff; do
51680:     case $ac_i in
51681:     -pthread)
51682:       if test "$ext_shared" = "yes"; then
51683:         LDFLAGS="$LDFLAGS -pthread"
51684:       else
51685: 
51686: 
51687:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
51688: 
51689:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
51690:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
51691:     eval "EXTRA_LDFLAGS$unique=set"
51692:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
51693:   fi
51694: 
51695:       fi
51696:     ;;
51697:     -l*)
51698:       ac_ii=`echo $ac_i|cut -c 3-`
51699: 
51700: 
51701:   case $ac_ii in
51702:   c|c_r|pthread*) ;;
51703:   *)
51704:     if test "$ext_shared" = "yes"; then
51705:         LDFLAGS="$LDFLAGS -l$ac_ii"
51706:     else
51707: 
51708: 
51709:   case $ac_ii in
51710:   c|c_r|pthread*) ;;
51711:   *)
51712:       LIBS="$LIBS -l$ac_ii"
51713:    ;;
51714:   esac
51715: 
51716: 
51717:     fi
51718:    ;;
51719:   esac
51720: 
51721: 
51722:     ;;
51723:     -L*)
51724:       ac_ii=`echo $ac_i|cut -c 3-`
51725: 
51726:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
51727: 
51728:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
51729:     ai_p=$ac_ii
51730:   else
51731: 
51732:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
51733: 
51734:     ep_realdir=`(cd "$ep_dir" && pwd)`
51735:     ai_p="$ep_realdir"/`basename "$ac_ii"`
51736:   fi
51737: 
51738: 
51739:       if test "$ext_shared" = "yes"; then
51740:         LDFLAGS="-L$ai_p $LDFLAGS"
51741:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
51742:       else
51743: 
51744: 
51745: 
51746:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
51747: 
51748:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
51749:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
51750:     eval "LIBPATH$unique=set"
51751: 
51752:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
51753:     LDFLAGS="$LDFLAGS -L$ai_p"
51754:     PHP_RPATHS="$PHP_RPATHS $ai_p"
51755: 
51756:   fi
51757: 
51758: 
51759:       fi
51760: 
51761:   fi
51762: 
51763:     ;;
51764:     esac
51765:   done
51766: 
51767:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_CTX_set_ssl_version in -lssl" >&5
51768: $as_echo_n "checking for SSL_CTX_set_ssl_version in -lssl... " >&6; }
51769: if ${ac_cv_lib_ssl_SSL_CTX_set_ssl_version+:} false; then :
51770:   $as_echo_n "(cached) " >&6
51771: else
51772:   ac_check_lib_save_LIBS=$LIBS
51773: LIBS="-lssl  $LIBS"
51774: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51775: /* end confdefs.h.  */
51776: 
51777: /* Override any GCC internal prototype to avoid an error.
51778:    Use char because int might match the return type of a GCC
51779:    builtin and then its argument prototype would still apply.  */
51780: #ifdef __cplusplus
51781: extern "C"
51782: #endif
51783: char SSL_CTX_set_ssl_version ();
51784: int
51785: main ()
51786: {
51787: return SSL_CTX_set_ssl_version ();
51788:   ;
51789:   return 0;
51790: }
51791: _ACEOF
51792: if ac_fn_c_try_link "$LINENO"; then :
51793:   ac_cv_lib_ssl_SSL_CTX_set_ssl_version=yes
51794: else
51795:   ac_cv_lib_ssl_SSL_CTX_set_ssl_version=no
51796: fi
51797: rm -f core conftest.err conftest.$ac_objext \
51798:     conftest$ac_exeext conftest.$ac_ext
51799: LIBS=$ac_check_lib_save_LIBS
51800: fi
51801: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_CTX_set_ssl_version" >&5
51802: $as_echo "$ac_cv_lib_ssl_SSL_CTX_set_ssl_version" >&6; }
51803: if test "x$ac_cv_lib_ssl_SSL_CTX_set_ssl_version" = xyes; then :
51804: 
51805:     LDFLAGS=$save_old_LDFLAGS
51806:     ext_shared=$save_ext_shared
51807: 
51808:       found_openssl=yes
51809: 
51810: 
51811: else
51812: 
51813:     LDFLAGS=$save_old_LDFLAGS
51814:     ext_shared=$save_ext_shared
51815:     unset ac_cv_lib_ssl_SSL_CTX_set_ssl_version
51816: 
51817:       as_fn_error $? "libssl not found!" "$LINENO" 5
51818: 
51819: 
51820: fi
51821: 
51822:     LIBS=$old_LIBS
51823: 
51824: 
51825:   case ssl in
51826:   c|c_r|pthread*) ;;
51827:   *)
51828:     if test "$ext_shared" = "yes"; then
51829:         IMAP_SHARED_LIBADD="-lssl $IMAP_SHARED_LIBADD"
51830:     else
51831: 
51832: 
51833:   case ssl in
51834:   c|c_r|pthread*) ;;
51835:   *)
51836:       LIBS="-lssl $LIBS"
51837:    ;;
51838:   esac
51839: 
51840: 
51841:     fi
51842:    ;;
51843:   esac
51844: 
51845: 
51846: 
51847: 
51848:   case crypto in
51849:   c|c_r|pthread*) ;;
51850:   *)
51851:     if test "$ext_shared" = "yes"; then
51852:         IMAP_SHARED_LIBADD="-lcrypto $IMAP_SHARED_LIBADD"
51853:     else
51854: 
51855: 
51856:   case crypto in
51857:   c|c_r|pthread*) ;;
51858:   *)
51859:       LIBS="-lcrypto $LIBS"
51860:    ;;
51861:   esac
51862: 
51863: 
51864:     fi
51865:    ;;
51866:   esac
51867: 
51868: 
51869: 
51870: 
51871:   if test "$OPENSSL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$OPENSSL_LIBDIR" != "/usr/lib"; then
51872: 
51873:   if test -z "$OPENSSL_LIBDIR" || echo "$OPENSSL_LIBDIR" | grep '^/' >/dev/null ; then
51874:     ai_p=$OPENSSL_LIBDIR
51875:   else
51876: 
51877:     ep_dir=`echo $OPENSSL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
51878: 
51879:     ep_realdir=`(cd "$ep_dir" && pwd)`
51880:     ai_p="$ep_realdir"/`basename "$OPENSSL_LIBDIR"`
51881:   fi
51882: 
51883: 
51884:       if test "$ext_shared" = "yes"; then
51885:         IMAP_SHARED_LIBADD="-L$ai_p $IMAP_SHARED_LIBADD"
51886:         test -n "$ld_runpath_switch" && IMAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $IMAP_SHARED_LIBADD"
51887:       else
51888: 
51889: 
51890: 
51891:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
51892: 
51893:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
51894:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
51895:     eval "LIBPATH$unique=set"
51896: 
51897:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
51898:     LDFLAGS="$LDFLAGS -L$ai_p"
51899:     PHP_RPATHS="$PHP_RPATHS $ai_p"
51900: 
51901:   fi
51902: 
51903: 
51904:       fi
51905: 
51906:   fi
51907: 
51908:   fi
51909: 
51910:   if test "$found_openssl" = "yes"; then
51911:     OPENSSL_INCDIR_OPT=-I$OPENSSL_INCDIR
51912: 
51913: 
51914: 
51915: 
51916: $as_echo "#define HAVE_IMAP_SSL 1" >>confdefs.h
51917: 
51918: 
51919: else
51920:       as_fn_error $? "OpenSSL libraries not found.
51921: 
51922:       Check the path given to --with-openssl-dir and output in config.log)
51923:       " "$LINENO" 5
51924: 
51925:   fi
51926: 
51927:   elif test -f "$IMAP_INC_DIR/linkage.c"; then
51928:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51929: /* end confdefs.h.  */
51930: #include <$IMAP_INC_DIR/linkage.c>
51931: 
51932: _ACEOF
51933: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51934:   $EGREP "ssl_onceonlyinit" >/dev/null 2>&1; then :
51935: 
51936:       as_fn_error $? "This c-client library is built with SSL support.
51937: 
51938:       Add --with-imap-ssl to your configure line. Check config.log for details.
51939:       " "$LINENO" 5
51940: 
51941: fi
51942: rm -f conftest*
51943: 
51944:   fi
51945: 
51946: 
51947:         TST_LIBS="$DLIBS $IMAP_SHARED_LIBADD"
51948: 
51949: 
51950: 
51951:   old_LIBS=$LIBS
51952:   LIBS="$TST_LIBS $LIBS"
51953:   if test "$cross_compiling" = yes; then :
51954: 
51955:     LIBS=$old_LIBS
51956: 
51957: else
51958:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51959: /* end confdefs.h.  */
51960: 
51961: 
51962: #if defined(__GNUC__) && __GNUC__ >= 4
51963: # define PHP_IMAP_EXPORT __attribute__ ((visibility("default")))
51964: #else
51965: # define PHP_IMAP_EXPORT
51966: #endif
51967: 
51968:     PHP_IMAP_EXPORT void mm_log(void){}
51969:     PHP_IMAP_EXPORT void mm_dlog(void){}
51970:     PHP_IMAP_EXPORT void mm_flags(void){}
51971:     PHP_IMAP_EXPORT void mm_fatal(void){}
51972:     PHP_IMAP_EXPORT void mm_critical(void){}
51973:     PHP_IMAP_EXPORT void mm_nocritical(void){}
51974:     PHP_IMAP_EXPORT void mm_notify(void){}
51975:     PHP_IMAP_EXPORT void mm_login(void){}
51976:     PHP_IMAP_EXPORT void mm_diskerror(void){}
51977:     PHP_IMAP_EXPORT void mm_status(void){}
51978:     PHP_IMAP_EXPORT void mm_lsub(void){}
51979:     PHP_IMAP_EXPORT void mm_list(void){}
51980:     PHP_IMAP_EXPORT void mm_exists(void){}
51981:     PHP_IMAP_EXPORT void mm_searched(void){}
51982:     PHP_IMAP_EXPORT void mm_expunged(void){}
51983: 
51984:     char auth_gssapi_valid();
51985:     int main() {
51986:       auth_gssapi_valid();
51987:       return 0;
51988:     }
51989: 
51990: _ACEOF
51991: if ac_fn_c_try_run "$LINENO"; then :
51992: 
51993:     LIBS=$old_LIBS
51994: 
51995: 
51996: $as_echo "#define HAVE_IMAP_AUTH_GSS 1" >>confdefs.h
51997: 
51998: 
51999: 
52000: else
52001: 
52002:     LIBS=$old_LIBS
52003: 
52004: 
52005: fi
52006: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
52007:   conftest.$ac_objext conftest.beam conftest.$ac_ext
52008: fi
52009: 
52010: 
52011: 
52012: 
52013: 
52014: 
52015:   old_LIBS=$LIBS
52016:   LIBS="$TST_LIBS $LIBS"
52017:   if test "$cross_compiling" = yes; then :
52018: 
52019:     LIBS=$old_LIBS
52020: 
52021: else
52022:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52023: /* end confdefs.h.  */
52024: 
52025: 
52026: #if defined(__GNUC__) && __GNUC__ >= 4
52027: # define PHP_IMAP_EXPORT __attribute__ ((visibility("default")))
52028: #else
52029: # define PHP_IMAP_EXPORT
52030: #endif
52031: 
52032:     PHP_IMAP_EXPORT void mm_log(void){}
52033:     PHP_IMAP_EXPORT void mm_dlog(void){}
52034:     PHP_IMAP_EXPORT void mm_flags(void){}
52035:     PHP_IMAP_EXPORT void mm_fatal(void){}
52036:     PHP_IMAP_EXPORT void mm_critical(void){}
52037:     PHP_IMAP_EXPORT void mm_nocritical(void){}
52038:     PHP_IMAP_EXPORT void mm_notify(void){}
52039:     PHP_IMAP_EXPORT void mm_login(void){}
52040:     PHP_IMAP_EXPORT void mm_diskerror(void){}
52041:     PHP_IMAP_EXPORT void mm_status(void){}
52042:     PHP_IMAP_EXPORT void mm_lsub(void){}
52043:     PHP_IMAP_EXPORT void mm_list(void){}
52044:     PHP_IMAP_EXPORT void mm_exists(void){}
52045:     PHP_IMAP_EXPORT void mm_searched(void){}
52046:     PHP_IMAP_EXPORT void mm_expunged(void){}
52047: 
52048:     char utf8_to_mutf7();
52049:     int main() {
52050:       utf8_to_mutf7();
52051:       return 0;
52052:     }
52053: 
52054: _ACEOF
52055: if ac_fn_c_try_run "$LINENO"; then :
52056: 
52057:     LIBS=$old_LIBS
52058: 
52059: 
52060: $as_echo "#define HAVE_IMAP_MUTF7 1" >>confdefs.h
52061: 
52062: 
52063: 
52064: else
52065: 
52066:     LIBS=$old_LIBS
52067: 
52068: 
52069: fi
52070: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
52071:   conftest.$ac_objext conftest.beam conftest.$ac_ext
52072: fi
52073: 
52074: 
52075: 
52076: 
52077:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rfc822_output_address_list function present" >&5
52078: $as_echo_n "checking whether rfc822_output_address_list function present... " >&6; }
52079: 
52080:   old_LIBS=$LIBS
52081:   LIBS="
52082:       $TST_LIBS
52083:      $LIBS"
52084:   if test "$cross_compiling" = yes; then :
52085: 
52086:     LIBS=$old_LIBS
52087: 
52088: else
52089:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52090: /* end confdefs.h.  */
52091: 
52092: 
52093: #if defined(__GNUC__) && __GNUC__ >= 4
52094: # define PHP_IMAP_EXPORT __attribute__ ((visibility("default")))
52095: #else
52096: # define PHP_IMAP_EXPORT
52097: #endif
52098: 
52099:       PHP_IMAP_EXPORT void mm_log(void){}
52100:       PHP_IMAP_EXPORT void mm_dlog(void){}
52101:       PHP_IMAP_EXPORT void mm_flags(void){}
52102:       PHP_IMAP_EXPORT void mm_fatal(void){}
52103:       PHP_IMAP_EXPORT void mm_critical(void){}
52104:       PHP_IMAP_EXPORT void mm_nocritical(void){}
52105:       PHP_IMAP_EXPORT void mm_notify(void){}
52106:       PHP_IMAP_EXPORT void mm_login(void){}
52107:       PHP_IMAP_EXPORT void mm_diskerror(void){}
52108:       PHP_IMAP_EXPORT void mm_status(void){}
52109:       PHP_IMAP_EXPORT void mm_lsub(void){}
52110:       PHP_IMAP_EXPORT void mm_list(void){}
52111:       PHP_IMAP_EXPORT void mm_exists(void){}
52112:       PHP_IMAP_EXPORT void mm_searched(void){}
52113:       PHP_IMAP_EXPORT void mm_expunged(void){}
52114:       void rfc822_output_address_list(void);
52115:       void (*f)(void);
52116:       char foobar () {f = rfc822_output_address_list;}
52117: 
52118:     char foobar();
52119:     int main() {
52120:       foobar();
52121:       return 0;
52122:     }
52123: 
52124: _ACEOF
52125: if ac_fn_c_try_run "$LINENO"; then :
52126: 
52127:     LIBS=$old_LIBS
52128: 
52129:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
52130: $as_echo "yes" >&6; }
52131: 
52132: $as_echo "#define HAVE_RFC822_OUTPUT_ADDRESS_LIST 1" >>confdefs.h
52133: 
52134: 
52135: 
52136: else
52137: 
52138:     LIBS=$old_LIBS
52139: 
52140:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
52141: $as_echo "no" >&6; }
52142: 
52143: 
52144: fi
52145: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
52146:   conftest.$ac_objext conftest.beam conftest.$ac_ext
52147: fi
52148: 
52149: 
52150: 
52151:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build with IMAP works" >&5
52152: $as_echo_n "checking whether build with IMAP works... " >&6; }
52153: 
52154: 
52155:   old_LIBS=$LIBS
52156:   LIBS="$TST_LIBS $LIBS"
52157:   if test "$cross_compiling" = yes; then :
52158: 
52159:     LIBS=$old_LIBS
52160: 
52161: else
52162:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52163: /* end confdefs.h.  */
52164: 
52165: 
52166: #if defined(__GNUC__) && __GNUC__ >= 4
52167: # define PHP_IMAP_EXPORT __attribute__ ((visibility("default")))
52168: #else
52169: # define PHP_IMAP_EXPORT
52170: #endif
52171: 
52172:     PHP_IMAP_EXPORT void mm_log(void){}
52173:     PHP_IMAP_EXPORT void mm_dlog(void){}
52174:     PHP_IMAP_EXPORT void mm_flags(void){}
52175:     PHP_IMAP_EXPORT void mm_fatal(void){}
52176:     PHP_IMAP_EXPORT void mm_critical(void){}
52177:     PHP_IMAP_EXPORT void mm_nocritical(void){}
52178:     PHP_IMAP_EXPORT void mm_notify(void){}
52179:     PHP_IMAP_EXPORT void mm_login(void){}
52180:     PHP_IMAP_EXPORT void mm_diskerror(void){}
52181:     PHP_IMAP_EXPORT void mm_status(void){}
52182:     PHP_IMAP_EXPORT void mm_lsub(void){}
52183:     PHP_IMAP_EXPORT void mm_list(void){}
52184:     PHP_IMAP_EXPORT void mm_exists(void){}
52185:     PHP_IMAP_EXPORT void mm_searched(void){}
52186:     PHP_IMAP_EXPORT void mm_expunged(void){}
52187: 
52188:     char mail_newbody();
52189:     int main() {
52190:       mail_newbody();
52191:       return 0;
52192:     }
52193: 
52194: _ACEOF
52195: if ac_fn_c_try_run "$LINENO"; then :
52196: 
52197:     LIBS=$old_LIBS
52198: 
52199:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
52200: $as_echo "yes" >&6; }
52201: 
52202: 
52203: else
52204: 
52205:     LIBS=$old_LIBS
52206: 
52207:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
52208: $as_echo "no" >&6; }
52209:       as_fn_error $? "build test failed. Please check the config.log for details." "$LINENO" 5
52210: 
52211: 
52212: fi
52213: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
52214:   conftest.$ac_objext conftest.beam conftest.$ac_ext
52215: fi
52216: 
52217: 
52218: 
52219: fi
52220: 
52221: 
52222: php_with_interbase=no
52223: 
52224: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for InterBase support" >&5
52225: $as_echo_n "checking for InterBase support... " >&6; }
52226: 
52227: # Check whether --with-interbase was given.
52228: if test "${with_interbase+set}" = set; then :
52229:   withval=$with_interbase; PHP_INTERBASE=$withval
52230: else
52231: 
52232:   PHP_INTERBASE=no
52233:   test "$PHP_ENABLE_ALL" && PHP_INTERBASE=$PHP_ENABLE_ALL
52234: 
52235: fi
52236: 
52237: 
52238: 
52239: ext_output="yes, shared"
52240: ext_shared=yes
52241: case $PHP_INTERBASE in
52242: shared,*)
52243:   PHP_INTERBASE=`echo "$PHP_INTERBASE"|$SED 's/^shared,//'`
52244:   ;;
52245: shared)
52246:   PHP_INTERBASE=yes
52247:   ;;
52248: no)
52249:   ext_output=no
52250:   ext_shared=no
52251:   ;;
52252: *)
52253:   ext_output=yes
52254:   ext_shared=no
52255:   ;;
52256: esac
52257: 
52258: 
52259: 
52260: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
52261: $as_echo "$ext_output" >&6; }
52262: 
52263: 
52264: 
52265: 
52266: if test "$PHP_INTERBASE" != "no"; then
52267:   if test "$PHP_INTERBASE" = "yes"; then
52268:     IBASE_INCDIR=/usr/interbase/include
52269:     IBASE_LIBDIR=/usr/interbase/lib
52270:   else
52271:     IBASE_INCDIR=$PHP_INTERBASE/include
52272:     IBASE_LIBDIR=$PHP_INTERBASE/$PHP_LIBDIR
52273:   fi
52274: 
52275: 
52276:   save_old_LDFLAGS=$LDFLAGS
52277:   ac_stuff="
52278:     -L$IBASE_LIBDIR
52279:   "
52280: 
52281:   save_ext_shared=$ext_shared
52282:   ext_shared=yes
52283: 
52284:   for ac_i in $ac_stuff; do
52285:     case $ac_i in
52286:     -pthread)
52287:       if test "$ext_shared" = "yes"; then
52288:         LDFLAGS="$LDFLAGS -pthread"
52289:       else
52290: 
52291: 
52292:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
52293: 
52294:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
52295:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
52296:     eval "EXTRA_LDFLAGS$unique=set"
52297:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
52298:   fi
52299: 
52300:       fi
52301:     ;;
52302:     -l*)
52303:       ac_ii=`echo $ac_i|cut -c 3-`
52304: 
52305: 
52306:   case $ac_ii in
52307:   c|c_r|pthread*) ;;
52308:   *)
52309:     if test "$ext_shared" = "yes"; then
52310:         LDFLAGS="$LDFLAGS -l$ac_ii"
52311:     else
52312: 
52313: 
52314:   case $ac_ii in
52315:   c|c_r|pthread*) ;;
52316:   *)
52317:       LIBS="$LIBS -l$ac_ii"
52318:    ;;
52319:   esac
52320: 
52321: 
52322:     fi
52323:    ;;
52324:   esac
52325: 
52326: 
52327:     ;;
52328:     -L*)
52329:       ac_ii=`echo $ac_i|cut -c 3-`
52330: 
52331:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
52332: 
52333:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
52334:     ai_p=$ac_ii
52335:   else
52336: 
52337:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
52338: 
52339:     ep_realdir=`(cd "$ep_dir" && pwd)`
52340:     ai_p="$ep_realdir"/`basename "$ac_ii"`
52341:   fi
52342: 
52343: 
52344:       if test "$ext_shared" = "yes"; then
52345:         LDFLAGS="-L$ai_p $LDFLAGS"
52346:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
52347:       else
52348: 
52349: 
52350: 
52351:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
52352: 
52353:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
52354:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
52355:     eval "LIBPATH$unique=set"
52356: 
52357:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
52358:     LDFLAGS="$LDFLAGS -L$ai_p"
52359:     PHP_RPATHS="$PHP_RPATHS $ai_p"
52360: 
52361:   fi
52362: 
52363: 
52364:       fi
52365: 
52366:   fi
52367: 
52368:     ;;
52369:     esac
52370:   done
52371: 
52372:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isc_detach_database in -lfbclient" >&5
52373: $as_echo_n "checking for isc_detach_database in -lfbclient... " >&6; }
52374: if ${ac_cv_lib_fbclient_isc_detach_database+:} false; then :
52375:   $as_echo_n "(cached) " >&6
52376: else
52377:   ac_check_lib_save_LIBS=$LIBS
52378: LIBS="-lfbclient  $LIBS"
52379: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52380: /* end confdefs.h.  */
52381: 
52382: /* Override any GCC internal prototype to avoid an error.
52383:    Use char because int might match the return type of a GCC
52384:    builtin and then its argument prototype would still apply.  */
52385: #ifdef __cplusplus
52386: extern "C"
52387: #endif
52388: char isc_detach_database ();
52389: int
52390: main ()
52391: {
52392: return isc_detach_database ();
52393:   ;
52394:   return 0;
52395: }
52396: _ACEOF
52397: if ac_fn_c_try_link "$LINENO"; then :
52398:   ac_cv_lib_fbclient_isc_detach_database=yes
52399: else
52400:   ac_cv_lib_fbclient_isc_detach_database=no
52401: fi
52402: rm -f core conftest.err conftest.$ac_objext \
52403:     conftest$ac_exeext conftest.$ac_ext
52404: LIBS=$ac_check_lib_save_LIBS
52405: fi
52406: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fbclient_isc_detach_database" >&5
52407: $as_echo "$ac_cv_lib_fbclient_isc_detach_database" >&6; }
52408: if test "x$ac_cv_lib_fbclient_isc_detach_database" = xyes; then :
52409: 
52410:     LDFLAGS=$save_old_LDFLAGS
52411:     ext_shared=$save_ext_shared
52412: 
52413:     IBASE_LIBNAME=fbclient
52414: 
52415: 
52416: else
52417: 
52418:     LDFLAGS=$save_old_LDFLAGS
52419:     ext_shared=$save_ext_shared
52420:     unset ac_cv_lib_fbclient_isc_detach_database
52421: 
52422: 
52423:   save_old_LDFLAGS=$LDFLAGS
52424:   ac_stuff="
52425:       -L$IBASE_LIBDIR
52426:     "
52427: 
52428:   save_ext_shared=$ext_shared
52429:   ext_shared=yes
52430: 
52431:   for ac_i in $ac_stuff; do
52432:     case $ac_i in
52433:     -pthread)
52434:       if test "$ext_shared" = "yes"; then
52435:         LDFLAGS="$LDFLAGS -pthread"
52436:       else
52437: 
52438: 
52439:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
52440: 
52441:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
52442:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
52443:     eval "EXTRA_LDFLAGS$unique=set"
52444:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
52445:   fi
52446: 
52447:       fi
52448:     ;;
52449:     -l*)
52450:       ac_ii=`echo $ac_i|cut -c 3-`
52451: 
52452: 
52453:   case $ac_ii in
52454:   c|c_r|pthread*) ;;
52455:   *)
52456:     if test "$ext_shared" = "yes"; then
52457:         LDFLAGS="$LDFLAGS -l$ac_ii"
52458:     else
52459: 
52460: 
52461:   case $ac_ii in
52462:   c|c_r|pthread*) ;;
52463:   *)
52464:       LIBS="$LIBS -l$ac_ii"
52465:    ;;
52466:   esac
52467: 
52468: 
52469:     fi
52470:    ;;
52471:   esac
52472: 
52473: 
52474:     ;;
52475:     -L*)
52476:       ac_ii=`echo $ac_i|cut -c 3-`
52477: 
52478:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
52479: 
52480:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
52481:     ai_p=$ac_ii
52482:   else
52483: 
52484:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
52485: 
52486:     ep_realdir=`(cd "$ep_dir" && pwd)`
52487:     ai_p="$ep_realdir"/`basename "$ac_ii"`
52488:   fi
52489: 
52490: 
52491:       if test "$ext_shared" = "yes"; then
52492:         LDFLAGS="-L$ai_p $LDFLAGS"
52493:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
52494:       else
52495: 
52496: 
52497: 
52498:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
52499: 
52500:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
52501:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
52502:     eval "LIBPATH$unique=set"
52503: 
52504:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
52505:     LDFLAGS="$LDFLAGS -L$ai_p"
52506:     PHP_RPATHS="$PHP_RPATHS $ai_p"
52507: 
52508:   fi
52509: 
52510: 
52511:       fi
52512: 
52513:   fi
52514: 
52515:     ;;
52516:     esac
52517:   done
52518: 
52519:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isc_detach_database in -lgds" >&5
52520: $as_echo_n "checking for isc_detach_database in -lgds... " >&6; }
52521: if ${ac_cv_lib_gds_isc_detach_database+:} false; then :
52522:   $as_echo_n "(cached) " >&6
52523: else
52524:   ac_check_lib_save_LIBS=$LIBS
52525: LIBS="-lgds  $LIBS"
52526: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52527: /* end confdefs.h.  */
52528: 
52529: /* Override any GCC internal prototype to avoid an error.
52530:    Use char because int might match the return type of a GCC
52531:    builtin and then its argument prototype would still apply.  */
52532: #ifdef __cplusplus
52533: extern "C"
52534: #endif
52535: char isc_detach_database ();
52536: int
52537: main ()
52538: {
52539: return isc_detach_database ();
52540:   ;
52541:   return 0;
52542: }
52543: _ACEOF
52544: if ac_fn_c_try_link "$LINENO"; then :
52545:   ac_cv_lib_gds_isc_detach_database=yes
52546: else
52547:   ac_cv_lib_gds_isc_detach_database=no
52548: fi
52549: rm -f core conftest.err conftest.$ac_objext \
52550:     conftest$ac_exeext conftest.$ac_ext
52551: LIBS=$ac_check_lib_save_LIBS
52552: fi
52553: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gds_isc_detach_database" >&5
52554: $as_echo "$ac_cv_lib_gds_isc_detach_database" >&6; }
52555: if test "x$ac_cv_lib_gds_isc_detach_database" = xyes; then :
52556: 
52557:     LDFLAGS=$save_old_LDFLAGS
52558:     ext_shared=$save_ext_shared
52559: 
52560:       IBASE_LIBNAME=gds
52561: 
52562: 
52563: else
52564: 
52565:     LDFLAGS=$save_old_LDFLAGS
52566:     ext_shared=$save_ext_shared
52567:     unset ac_cv_lib_gds_isc_detach_database
52568: 
52569: 
52570:   save_old_LDFLAGS=$LDFLAGS
52571:   ac_stuff="
52572:         -L$IBASE_LIBDIR
52573:       "
52574: 
52575:   save_ext_shared=$ext_shared
52576:   ext_shared=yes
52577: 
52578:   for ac_i in $ac_stuff; do
52579:     case $ac_i in
52580:     -pthread)
52581:       if test "$ext_shared" = "yes"; then
52582:         LDFLAGS="$LDFLAGS -pthread"
52583:       else
52584: 
52585: 
52586:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
52587: 
52588:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
52589:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
52590:     eval "EXTRA_LDFLAGS$unique=set"
52591:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
52592:   fi
52593: 
52594:       fi
52595:     ;;
52596:     -l*)
52597:       ac_ii=`echo $ac_i|cut -c 3-`
52598: 
52599: 
52600:   case $ac_ii in
52601:   c|c_r|pthread*) ;;
52602:   *)
52603:     if test "$ext_shared" = "yes"; then
52604:         LDFLAGS="$LDFLAGS -l$ac_ii"
52605:     else
52606: 
52607: 
52608:   case $ac_ii in
52609:   c|c_r|pthread*) ;;
52610:   *)
52611:       LIBS="$LIBS -l$ac_ii"
52612:    ;;
52613:   esac
52614: 
52615: 
52616:     fi
52617:    ;;
52618:   esac
52619: 
52620: 
52621:     ;;
52622:     -L*)
52623:       ac_ii=`echo $ac_i|cut -c 3-`
52624: 
52625:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
52626: 
52627:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
52628:     ai_p=$ac_ii
52629:   else
52630: 
52631:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
52632: 
52633:     ep_realdir=`(cd "$ep_dir" && pwd)`
52634:     ai_p="$ep_realdir"/`basename "$ac_ii"`
52635:   fi
52636: 
52637: 
52638:       if test "$ext_shared" = "yes"; then
52639:         LDFLAGS="-L$ai_p $LDFLAGS"
52640:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
52641:       else
52642: 
52643: 
52644: 
52645:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
52646: 
52647:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
52648:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
52649:     eval "LIBPATH$unique=set"
52650: 
52651:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
52652:     LDFLAGS="$LDFLAGS -L$ai_p"
52653:     PHP_RPATHS="$PHP_RPATHS $ai_p"
52654: 
52655:   fi
52656: 
52657: 
52658:       fi
52659: 
52660:   fi
52661: 
52662:     ;;
52663:     esac
52664:   done
52665: 
52666:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isc_detach_database in -lib_util" >&5
52667: $as_echo_n "checking for isc_detach_database in -lib_util... " >&6; }
52668: if ${ac_cv_lib_ib_util_isc_detach_database+:} false; then :
52669:   $as_echo_n "(cached) " >&6
52670: else
52671:   ac_check_lib_save_LIBS=$LIBS
52672: LIBS="-lib_util  $LIBS"
52673: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52674: /* end confdefs.h.  */
52675: 
52676: /* Override any GCC internal prototype to avoid an error.
52677:    Use char because int might match the return type of a GCC
52678:    builtin and then its argument prototype would still apply.  */
52679: #ifdef __cplusplus
52680: extern "C"
52681: #endif
52682: char isc_detach_database ();
52683: int
52684: main ()
52685: {
52686: return isc_detach_database ();
52687:   ;
52688:   return 0;
52689: }
52690: _ACEOF
52691: if ac_fn_c_try_link "$LINENO"; then :
52692:   ac_cv_lib_ib_util_isc_detach_database=yes
52693: else
52694:   ac_cv_lib_ib_util_isc_detach_database=no
52695: fi
52696: rm -f core conftest.err conftest.$ac_objext \
52697:     conftest$ac_exeext conftest.$ac_ext
52698: LIBS=$ac_check_lib_save_LIBS
52699: fi
52700: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ib_util_isc_detach_database" >&5
52701: $as_echo "$ac_cv_lib_ib_util_isc_detach_database" >&6; }
52702: if test "x$ac_cv_lib_ib_util_isc_detach_database" = xyes; then :
52703: 
52704:     LDFLAGS=$save_old_LDFLAGS
52705:     ext_shared=$save_ext_shared
52706: 
52707:         IBASE_LIBNAME=ib_util
52708: 
52709: 
52710: else
52711: 
52712:     LDFLAGS=$save_old_LDFLAGS
52713:     ext_shared=$save_ext_shared
52714:     unset ac_cv_lib_ib_util_isc_detach_database
52715: 
52716:         as_fn_error $? "libgds, libib_util or libfbclient not found! Check config.log for more information." "$LINENO" 5
52717: 
52718: 
52719: fi
52720: 
52721: 
52722: 
52723: fi
52724: 
52725: 
52726: 
52727: fi
52728: 
52729: 
52730: 
52731: 
52732:   if test "$ext_shared" = "yes"; then
52733:     INTERBASE_SHARED_LIBADD="-l$IBASE_LIBNAME $INTERBASE_SHARED_LIBADD"
52734:     if test -n "$IBASE_LIBDIR"; then
52735: 
52736:   if test "$IBASE_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$IBASE_LIBDIR" != "/usr/lib"; then
52737: 
52738:   if test -z "$IBASE_LIBDIR" || echo "$IBASE_LIBDIR" | grep '^/' >/dev/null ; then
52739:     ai_p=$IBASE_LIBDIR
52740:   else
52741: 
52742:     ep_dir=`echo $IBASE_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
52743: 
52744:     ep_realdir=`(cd "$ep_dir" && pwd)`
52745:     ai_p="$ep_realdir"/`basename "$IBASE_LIBDIR"`
52746:   fi
52747: 
52748: 
52749:       if test "$ext_shared" = "yes"; then
52750:         INTERBASE_SHARED_LIBADD="-L$ai_p $INTERBASE_SHARED_LIBADD"
52751:         test -n "$ld_runpath_switch" && INTERBASE_SHARED_LIBADD="$ld_runpath_switch$ai_p $INTERBASE_SHARED_LIBADD"
52752:       else
52753: 
52754: 
52755: 
52756:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
52757: 
52758:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
52759:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
52760:     eval "LIBPATH$unique=set"
52761: 
52762:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
52763:     LDFLAGS="$LDFLAGS -L$ai_p"
52764:     PHP_RPATHS="$PHP_RPATHS $ai_p"
52765: 
52766:   fi
52767: 
52768: 
52769:       fi
52770: 
52771:   fi
52772: 
52773:     fi
52774:   else
52775: 
52776: 
52777:   if test -n "$IBASE_LIBDIR"; then
52778: 
52779:   if test "$IBASE_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$IBASE_LIBDIR" != "/usr/lib"; then
52780: 
52781:   if test -z "$IBASE_LIBDIR" || echo "$IBASE_LIBDIR" | grep '^/' >/dev/null ; then
52782:     ai_p=$IBASE_LIBDIR
52783:   else
52784: 
52785:     ep_dir=`echo $IBASE_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
52786: 
52787:     ep_realdir=`(cd "$ep_dir" && pwd)`
52788:     ai_p="$ep_realdir"/`basename "$IBASE_LIBDIR"`
52789:   fi
52790: 
52791: 
52792: 
52793: 
52794: 
52795:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
52796: 
52797:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
52798:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
52799:     eval "LIBPATH$unique=set"
52800: 
52801:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
52802:     LDFLAGS="$LDFLAGS -L$ai_p"
52803:     PHP_RPATHS="$PHP_RPATHS $ai_p"
52804: 
52805:   fi
52806: 
52807: 
52808: 
52809:   fi
52810: 
52811:   fi
52812: 
52813: 
52814:   case $IBASE_LIBNAME in
52815:   c|c_r|pthread*) ;;
52816:   *)
52817:       LIBS="-l$IBASE_LIBNAME $LIBS"
52818:    ;;
52819:   esac
52820: 
52821: 
52822: 
52823: 
52824:   fi
52825: 
52826: 
52827: 
52828:   if test "$IBASE_INCDIR" != "/usr/include"; then
52829: 
52830:   if test -z "$IBASE_INCDIR" || echo "$IBASE_INCDIR" | grep '^/' >/dev/null ; then
52831:     ai_p=$IBASE_INCDIR
52832:   else
52833: 
52834:     ep_dir=`echo $IBASE_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`
52835: 
52836:     ep_realdir=`(cd "$ep_dir" && pwd)`
52837:     ai_p="$ep_realdir"/`basename "$IBASE_INCDIR"`
52838:   fi
52839: 
52840: 
52841: 
52842:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
52843: 
52844:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
52845:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
52846:     eval "INCLUDEPATH$unique=set"
52847: 
52848:       if test ""; then
52849:         INCLUDES="-I$ai_p $INCLUDES"
52850:       else
52851:         INCLUDES="$INCLUDES -I$ai_p"
52852:       fi
52853: 
52854:   fi
52855: 
52856:   fi
52857: 
52858: 
52859: $as_echo "#define HAVE_IBASE 1" >>confdefs.h
52860: 
52861: 
52862:   ext_builddir=ext/interbase
52863:   ext_srcdir=$abs_srcdir/ext/interbase
52864: 
52865:   ac_extra=
52866: 
52867:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
52868:     PHP_INTERBASE_SHARED=no
52869: 
52870: 
52871:   case ext/interbase in
52872:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
52873:   /*) ac_srcdir=`echo "ext/interbase"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
52874:   *) ac_srcdir="$abs_srcdir/ext/interbase/"; ac_bdir="ext/interbase/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
52875:   esac
52876: 
52877: 
52878: 
52879:   b_c_pre=$php_c_pre
52880:   b_cxx_pre=$php_cxx_pre
52881:   b_c_meta=$php_c_meta
52882:   b_cxx_meta=$php_cxx_meta
52883:   b_c_post=$php_c_post
52884:   b_cxx_post=$php_cxx_post
52885:   b_lo=$php_lo
52886: 
52887: 
52888:   old_IFS=$IFS
52889:   for ac_src in interbase.c ibase_query.c ibase_service.c ibase_events.c ibase_blobs.c; do
52890: 
52891:       IFS=.
52892:       set $ac_src
52893:       ac_obj=$1
52894:       IFS=$old_IFS
52895: 
52896:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
52897: 
52898:       case $ac_src in
52899:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
52900:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
52901:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
52902:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
52903:       esac
52904: 
52905:     cat >>Makefile.objects<<EOF
52906: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
52907: 	$ac_comp
52908: EOF
52909:   done
52910: 
52911: 
52912:     EXT_STATIC="$EXT_STATIC interbase"
52913:     if test "$ext_shared" != "nocli"; then
52914:       EXT_CLI_STATIC="$EXT_CLI_STATIC interbase"
52915:     fi
52916:   else
52917:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
52918:       PHP_INTERBASE_SHARED=yes
52919: 
52920:   case ext/interbase in
52921:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
52922:   /*) ac_srcdir=`echo "ext/interbase"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
52923:   *) ac_srcdir="$abs_srcdir/ext/interbase/"; ac_bdir="ext/interbase/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
52924:   esac
52925: 
52926: 
52927: 
52928:   b_c_pre=$shared_c_pre
52929:   b_cxx_pre=$shared_cxx_pre
52930:   b_c_meta=$shared_c_meta
52931:   b_cxx_meta=$shared_cxx_meta
52932:   b_c_post=$shared_c_post
52933:   b_cxx_post=$shared_cxx_post
52934:   b_lo=$shared_lo
52935: 
52936: 
52937:   old_IFS=$IFS
52938:   for ac_src in interbase.c ibase_query.c ibase_service.c ibase_events.c ibase_blobs.c; do
52939: 
52940:       IFS=.
52941:       set $ac_src
52942:       ac_obj=$1
52943:       IFS=$old_IFS
52944: 
52945:       shared_objects_interbase="$shared_objects_interbase $ac_bdir$ac_obj.lo"
52946: 
52947:       case $ac_src in
52948:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
52949:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
52950:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
52951:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
52952:       esac
52953: 
52954:     cat >>Makefile.objects<<EOF
52955: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
52956: 	$ac_comp
52957: EOF
52958:   done
52959: 
52960:       case $host_alias in
52961:         *netware*)
52962: 
52963:   install_modules="install-modules"
52964: 
52965:   case $host_alias in
52966:     *aix*)
52967:       suffix=so
52968:       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'
52969:       ;;
52970:     *netware*)
52971:       suffix=nlm
52972:       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)'
52973:       ;;
52974:     *)
52975:       suffix=la
52976:       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)'
52977:       ;;
52978:   esac
52979: 
52980:   if test "x" = "xyes"; then
52981:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpinterbase.$suffix"
52982:   else
52983:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpinterbase.$suffix"
52984:   fi
52985: 
52986:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_interbase"
52987: 
52988:   cat >>Makefile.objects<<EOF
52989: \$(phplibdir)/phpinterbase.$suffix: $ext_builddir/phpinterbase.$suffix
52990: 	\$(LIBTOOL) --mode=install cp $ext_builddir/phpinterbase.$suffix \$(phplibdir)
52991: 
52992: $ext_builddir/phpinterbase.$suffix: \$(shared_objects_interbase) \$(PHPINTERBASE_SHARED_DEPENDENCIES)
52993: 	$link_cmd
52994: 
52995: EOF
52996: 
52997:           ;;
52998:         *)
52999: 
53000:   install_modules="install-modules"
53001: 
53002:   case $host_alias in
53003:     *aix*)
53004:       suffix=so
53005:       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'
53006:       ;;
53007:     *netware*)
53008:       suffix=nlm
53009:       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)'
53010:       ;;
53011:     *)
53012:       suffix=la
53013:       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)'
53014:       ;;
53015:   esac
53016: 
53017:   if test "x" = "xyes"; then
53018:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/interbase.$suffix"
53019:   else
53020:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/interbase.$suffix"
53021:   fi
53022: 
53023:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_interbase"
53024: 
53025:   cat >>Makefile.objects<<EOF
53026: \$(phplibdir)/interbase.$suffix: $ext_builddir/interbase.$suffix
53027: 	\$(LIBTOOL) --mode=install cp $ext_builddir/interbase.$suffix \$(phplibdir)
53028: 
53029: $ext_builddir/interbase.$suffix: \$(shared_objects_interbase) \$(INTERBASE_SHARED_DEPENDENCIES)
53030: 	$link_cmd
53031: 
53032: EOF
53033: 
53034:           ;;
53035:       esac
53036: 
53037: cat >>confdefs.h <<_ACEOF
53038: #define COMPILE_DL_INTERBASE 1
53039: _ACEOF
53040: 
53041:     fi
53042:   fi
53043: 
53044:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
53045:     PHP_INTERBASE_SHARED=no
53046:     case "$PHP_SAPI" in
53047:       cgi|embed)
53048: 
53049: 
53050:   case ext/interbase in
53051:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
53052:   /*) ac_srcdir=`echo "ext/interbase"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
53053:   *) ac_srcdir="$abs_srcdir/ext/interbase/"; ac_bdir="ext/interbase/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
53054:   esac
53055: 
53056: 
53057: 
53058:   b_c_pre=$php_c_pre
53059:   b_cxx_pre=$php_cxx_pre
53060:   b_c_meta=$php_c_meta
53061:   b_cxx_meta=$php_cxx_meta
53062:   b_c_post=$php_c_post
53063:   b_cxx_post=$php_cxx_post
53064:   b_lo=$php_lo
53065: 
53066: 
53067:   old_IFS=$IFS
53068:   for ac_src in interbase.c ibase_query.c ibase_service.c ibase_events.c ibase_blobs.c; do
53069: 
53070:       IFS=.
53071:       set $ac_src
53072:       ac_obj=$1
53073:       IFS=$old_IFS
53074: 
53075:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
53076: 
53077:       case $ac_src in
53078:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
53079:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
53080:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
53081:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
53082:       esac
53083: 
53084:     cat >>Makefile.objects<<EOF
53085: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
53086: 	$ac_comp
53087: EOF
53088:   done
53089: 
53090: 
53091:         EXT_STATIC="$EXT_STATIC interbase"
53092:         ;;
53093:       *)
53094: 
53095: 
53096:   case ext/interbase in
53097:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
53098:   /*) ac_srcdir=`echo "ext/interbase"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
53099:   *) ac_srcdir="$abs_srcdir/ext/interbase/"; ac_bdir="ext/interbase/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
53100:   esac
53101: 
53102: 
53103: 
53104:   b_c_pre=$php_c_pre
53105:   b_cxx_pre=$php_cxx_pre
53106:   b_c_meta=$php_c_meta
53107:   b_cxx_meta=$php_cxx_meta
53108:   b_c_post=$php_c_post
53109:   b_cxx_post=$php_cxx_post
53110:   b_lo=$php_lo
53111: 
53112: 
53113:   old_IFS=$IFS
53114:   for ac_src in interbase.c ibase_query.c ibase_service.c ibase_events.c ibase_blobs.c; do
53115: 
53116:       IFS=.
53117:       set $ac_src
53118:       ac_obj=$1
53119:       IFS=$old_IFS
53120: 
53121:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
53122: 
53123:       case $ac_src in
53124:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
53125:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
53126:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
53127:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
53128:       esac
53129: 
53130:     cat >>Makefile.objects<<EOF
53131: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
53132: 	$ac_comp
53133: EOF
53134:   done
53135: 
53136: 
53137:         ;;
53138:     esac
53139:     EXT_CLI_STATIC="$EXT_CLI_STATIC interbase"
53140:   fi
53141: 
53142: 
53143:     BUILD_DIR="$BUILD_DIR $ext_builddir"
53144: 
53145: 
53146: 
53147:   if test "$ext_builddir" = "."; then
53148:     PHP_PECL_EXTENSION=interbase
53149: 
53150:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
53151: 
53152:   fi
53153: 
53154: 
53155:   PHP_VAR_SUBST="$PHP_VAR_SUBST INTERBASE_SHARED_LIBADD"
53156: 
53157: fi
53158: 
53159: 
53160: 
53161: php_enable_intl=no
53162: 
53163: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable internationalization support" >&5
53164: $as_echo_n "checking whether to enable internationalization support... " >&6; }
53165: # Check whether --enable-intl was given.
53166: if test "${enable_intl+set}" = set; then :
53167:   enableval=$enable_intl; PHP_INTL=$enableval
53168: else
53169: 
53170:   PHP_INTL=no
53171:   test "$PHP_ENABLE_ALL" && PHP_INTL=$PHP_ENABLE_ALL
53172: 
53173: fi
53174: 
53175: 
53176: 
53177: ext_output="yes, shared"
53178: ext_shared=yes
53179: case $PHP_INTL in
53180: shared,*)
53181:   PHP_INTL=`echo "$PHP_INTL"|$SED 's/^shared,//'`
53182:   ;;
53183: shared)
53184:   PHP_INTL=yes
53185:   ;;
53186: no)
53187:   ext_output=no
53188:   ext_shared=no
53189:   ;;
53190: *)
53191:   ext_output=yes
53192:   ext_shared=no
53193:   ;;
53194: esac
53195: 
53196: 
53197: 
53198: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
53199: $as_echo "$ext_output" >&6; }
53200: 
53201: 
53202: 
53203: 
53204: if test "$PHP_INTL" != "no"; then
53205: 
53206: 
53207: php_with_icu_dir=DEFAULT
53208: 
53209: 
53210: 
53211: # Check whether --with-icu-dir was given.
53212: if test "${with_icu_dir+set}" = set; then :
53213:   withval=$with_icu_dir; PHP_ICU_DIR=$withval
53214: else
53215: 
53216:   PHP_ICU_DIR=DEFAULT
53217: 
53218: 
53219: fi
53220: 
53221: 
53222: ext_output=$PHP_ICU_DIR
53223: 
53224: 
53225: 
53226: 
53227: 
53228:   if test "$PHP_ICU_DIR" = "no"; then
53229:     PHP_ICU_DIR=DEFAULT
53230:   fi
53231: 
53232:   if test "$PHP_ICU_DIR" = "DEFAULT"; then
53233:         # Extract the first word of "icu-config", so it can be a program name with args.
53234: set dummy icu-config; ac_word=$2
53235: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
53236: $as_echo_n "checking for $ac_word... " >&6; }
53237: if ${ac_cv_path_ICU_CONFIG+:} false; then :
53238:   $as_echo_n "(cached) " >&6
53239: else
53240:   case $ICU_CONFIG in
53241:   [\\/]* | ?:[\\/]*)
53242:   ac_cv_path_ICU_CONFIG="$ICU_CONFIG" # Let the user override the test with a path.
53243:   ;;
53244:   *)
53245:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53246: as_dummy="$PATH:/usr/local/bin"
53247: for as_dir in $as_dummy
53248: do
53249:   IFS=$as_save_IFS
53250:   test -z "$as_dir" && as_dir=.
53251:     for ac_exec_ext in '' $ac_executable_extensions; do
53252:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
53253:     ac_cv_path_ICU_CONFIG="$as_dir/$ac_word$ac_exec_ext"
53254:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
53255:     break 2
53256:   fi
53257: done
53258:   done
53259: IFS=$as_save_IFS
53260: 
53261:   test -z "$ac_cv_path_ICU_CONFIG" && ac_cv_path_ICU_CONFIG="no"
53262:   ;;
53263: esac
53264: fi
53265: ICU_CONFIG=$ac_cv_path_ICU_CONFIG
53266: if test -n "$ICU_CONFIG"; then
53267:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICU_CONFIG" >&5
53268: $as_echo "$ICU_CONFIG" >&6; }
53269: else
53270:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
53271: $as_echo "no" >&6; }
53272: fi
53273: 
53274: 
53275:   else
53276:     ICU_CONFIG="$PHP_ICU_DIR/bin/icu-config"
53277:   fi
53278: 
53279:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of ICU headers and libraries" >&5
53280: $as_echo_n "checking for location of ICU headers and libraries... " >&6; }
53281: 
53282:     icu_install_prefix=`$ICU_CONFIG --prefix 2> /dev/null`
53283:   if test "$?" != "0" || test -z "$icu_install_prefix"; then
53284:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
53285: $as_echo "not found" >&6; }
53286:     as_fn_error $? "Unable to detect ICU prefix or $ICU_CONFIG failed. Please verify ICU install prefix and make sure icu-config works." "$LINENO" 5
53287:   else
53288:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $icu_install_prefix" >&5
53289: $as_echo "$icu_install_prefix" >&6; }
53290: 
53291:         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU 3.4 or greater" >&5
53292: $as_echo_n "checking for ICU 3.4 or greater... " >&6; }
53293:     icu_version_full=`$ICU_CONFIG --version`
53294:     ac_IFS=$IFS
53295:     IFS="."
53296:     set $icu_version_full
53297:     IFS=$ac_IFS
53298:     icu_version=`expr $1 \* 1000 + $2`
53299:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $icu_version_full" >&5
53300: $as_echo "found $icu_version_full" >&6; }
53301: 
53302:     if test "$icu_version" -lt "3004"; then
53303:       as_fn_error $? "ICU version 3.4 or later is required" "$LINENO" 5
53304:     fi
53305: 
53306:     ICU_VERSION=$icu_version
53307:     ICU_INCS=`$ICU_CONFIG --cppflags-searchpath`
53308:     ICU_LIBS=`$ICU_CONFIG --ldflags --ldflags-icuio`
53309: 
53310:   for ac_i in $ICU_INCS; do
53311:     case $ac_i in
53312:     -I*)
53313:       ac_ii=`echo $ac_i|cut -c 3-`
53314: 
53315:   if test "$ac_ii" != "/usr/include"; then
53316: 
53317:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
53318:     ai_p=$ac_ii
53319:   else
53320: 
53321:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
53322: 
53323:     ep_realdir=`(cd "$ep_dir" && pwd)`
53324:     ai_p="$ep_realdir"/`basename "$ac_ii"`
53325:   fi
53326: 
53327: 
53328: 
53329:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
53330: 
53331:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
53332:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
53333:     eval "INCLUDEPATH$unique=set"
53334: 
53335:       if test ""; then
53336:         INCLUDES="-I$ai_p $INCLUDES"
53337:       else
53338:         INCLUDES="$INCLUDES -I$ai_p"
53339:       fi
53340: 
53341:   fi
53342: 
53343:   fi
53344: 
53345:     ;;
53346:     esac
53347:   done
53348: 
53349: 
53350:   for ac_i in $ICU_LIBS; do
53351:     case $ac_i in
53352:     -pthread)
53353:       if test "$ext_shared" = "yes"; then
53354:         INTL_SHARED_LIBADD="$INTL_SHARED_LIBADD -pthread"
53355:       else
53356: 
53357: 
53358:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
53359: 
53360:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
53361:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
53362:     eval "EXTRA_LDFLAGS$unique=set"
53363:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
53364:   fi
53365: 
53366:       fi
53367:     ;;
53368:     -l*)
53369:       ac_ii=`echo $ac_i|cut -c 3-`
53370: 
53371: 
53372:   case $ac_ii in
53373:   c|c_r|pthread*) ;;
53374:   *)
53375:     if test "$ext_shared" = "yes"; then
53376:         INTL_SHARED_LIBADD="$INTL_SHARED_LIBADD -l$ac_ii"
53377:     else
53378: 
53379: 
53380:   case $ac_ii in
53381:   c|c_r|pthread*) ;;
53382:   *)
53383:       LIBS="$LIBS -l$ac_ii"
53384:    ;;
53385:   esac
53386: 
53387: 
53388:     fi
53389:    ;;
53390:   esac
53391: 
53392: 
53393:     ;;
53394:     -L*)
53395:       ac_ii=`echo $ac_i|cut -c 3-`
53396: 
53397:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
53398: 
53399:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
53400:     ai_p=$ac_ii
53401:   else
53402: 
53403:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
53404: 
53405:     ep_realdir=`(cd "$ep_dir" && pwd)`
53406:     ai_p="$ep_realdir"/`basename "$ac_ii"`
53407:   fi
53408: 
53409: 
53410:       if test "$ext_shared" = "yes"; then
53411:         INTL_SHARED_LIBADD="-L$ai_p $INTL_SHARED_LIBADD"
53412:         test -n "$ld_runpath_switch" && INTL_SHARED_LIBADD="$ld_runpath_switch$ai_p $INTL_SHARED_LIBADD"
53413:       else
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:       fi
53431: 
53432:   fi
53433: 
53434:     ;;
53435:     esac
53436:   done
53437: 
53438:   fi
53439: 
53440: 
53441:   PHP_VAR_SUBST="$PHP_VAR_SUBST INTL_SHARED_LIBADD"
53442: 
53443: 
53444:   if test -z "$php_cxx_done"; then
53445:     ac_ext=cpp
53446: ac_cpp='$CXXCPP $CPPFLAGS'
53447: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
53448: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
53449: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
53450: if test -z "$CXX"; then
53451:   if test -n "$CCC"; then
53452:     CXX=$CCC
53453:   else
53454:     if test -n "$ac_tool_prefix"; then
53455:   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
53456:   do
53457:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
53458: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
53459: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
53460: $as_echo_n "checking for $ac_word... " >&6; }
53461: if ${ac_cv_prog_CXX+:} false; then :
53462:   $as_echo_n "(cached) " >&6
53463: else
53464:   if test -n "$CXX"; then
53465:   ac_cv_prog_CXX="$CXX" # Let the user override the test.
53466: else
53467: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53468: for as_dir in $PATH
53469: do
53470:   IFS=$as_save_IFS
53471:   test -z "$as_dir" && as_dir=.
53472:     for ac_exec_ext in '' $ac_executable_extensions; do
53473:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
53474:     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
53475:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
53476:     break 2
53477:   fi
53478: done
53479:   done
53480: IFS=$as_save_IFS
53481: 
53482: fi
53483: fi
53484: CXX=$ac_cv_prog_CXX
53485: if test -n "$CXX"; then
53486:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
53487: $as_echo "$CXX" >&6; }
53488: else
53489:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
53490: $as_echo "no" >&6; }
53491: fi
53492: 
53493: 
53494:     test -n "$CXX" && break
53495:   done
53496: fi
53497: if test -z "$CXX"; then
53498:   ac_ct_CXX=$CXX
53499:   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
53500: do
53501:   # Extract the first word of "$ac_prog", so it can be a program name with args.
53502: set dummy $ac_prog; ac_word=$2
53503: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
53504: $as_echo_n "checking for $ac_word... " >&6; }
53505: if ${ac_cv_prog_ac_ct_CXX+:} false; then :
53506:   $as_echo_n "(cached) " >&6
53507: else
53508:   if test -n "$ac_ct_CXX"; then
53509:   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
53510: else
53511: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53512: for as_dir in $PATH
53513: do
53514:   IFS=$as_save_IFS
53515:   test -z "$as_dir" && as_dir=.
53516:     for ac_exec_ext in '' $ac_executable_extensions; do
53517:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
53518:     ac_cv_prog_ac_ct_CXX="$ac_prog"
53519:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
53520:     break 2
53521:   fi
53522: done
53523:   done
53524: IFS=$as_save_IFS
53525: 
53526: fi
53527: fi
53528: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
53529: if test -n "$ac_ct_CXX"; then
53530:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
53531: $as_echo "$ac_ct_CXX" >&6; }
53532: else
53533:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
53534: $as_echo "no" >&6; }
53535: fi
53536: 
53537: 
53538:   test -n "$ac_ct_CXX" && break
53539: done
53540: 
53541:   if test "x$ac_ct_CXX" = x; then
53542:     CXX="g++"
53543:   else
53544:     case $cross_compiling:$ac_tool_warned in
53545: yes:)
53546: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
53547: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
53548: ac_tool_warned=yes ;;
53549: esac
53550:     CXX=$ac_ct_CXX
53551:   fi
53552: fi
53553: 
53554:   fi
53555: fi
53556: # Provide some information about the compiler.
53557: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
53558: set X $ac_compile
53559: ac_compiler=$2
53560: for ac_option in --version -v -V -qversion; do
53561:   { { ac_try="$ac_compiler $ac_option >&5"
53562: case "(($ac_try" in
53563:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53564:   *) ac_try_echo=$ac_try;;
53565: esac
53566: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
53567: $as_echo "$ac_try_echo"; } >&5
53568:   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
53569:   ac_status=$?
53570:   if test -s conftest.err; then
53571:     sed '10a\
53572: ... rest of stderr output deleted ...
53573:          10q' conftest.err >conftest.er1
53574:     cat conftest.er1 >&5
53575:   fi
53576:   rm -f conftest.er1 conftest.err
53577:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
53578:   test $ac_status = 0; }
53579: done
53580: 
53581: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
53582: $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
53583: if ${ac_cv_cxx_compiler_gnu+:} false; then :
53584:   $as_echo_n "(cached) " >&6
53585: else
53586:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53587: /* end confdefs.h.  */
53588: 
53589: int
53590: main ()
53591: {
53592: #ifndef __GNUC__
53593:        choke me
53594: #endif
53595: 
53596:   ;
53597:   return 0;
53598: }
53599: _ACEOF
53600: if ac_fn_cxx_try_compile "$LINENO"; then :
53601:   ac_compiler_gnu=yes
53602: else
53603:   ac_compiler_gnu=no
53604: fi
53605: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53606: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
53607: 
53608: fi
53609: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
53610: $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
53611: if test $ac_compiler_gnu = yes; then
53612:   GXX=yes
53613: else
53614:   GXX=
53615: fi
53616: ac_test_CXXFLAGS=${CXXFLAGS+set}
53617: ac_save_CXXFLAGS=$CXXFLAGS
53618: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
53619: $as_echo_n "checking whether $CXX accepts -g... " >&6; }
53620: if ${ac_cv_prog_cxx_g+:} false; then :
53621:   $as_echo_n "(cached) " >&6
53622: else
53623:   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
53624:    ac_cxx_werror_flag=yes
53625:    ac_cv_prog_cxx_g=no
53626:    CXXFLAGS="-g"
53627:    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53628: /* end confdefs.h.  */
53629: 
53630: int
53631: main ()
53632: {
53633: 
53634:   ;
53635:   return 0;
53636: }
53637: _ACEOF
53638: if ac_fn_cxx_try_compile "$LINENO"; then :
53639:   ac_cv_prog_cxx_g=yes
53640: else
53641:   CXXFLAGS=""
53642:       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53643: /* end confdefs.h.  */
53644: 
53645: int
53646: main ()
53647: {
53648: 
53649:   ;
53650:   return 0;
53651: }
53652: _ACEOF
53653: if ac_fn_cxx_try_compile "$LINENO"; then :
53654: 
53655: else
53656:   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
53657: 	 CXXFLAGS="-g"
53658: 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53659: /* end confdefs.h.  */
53660: 
53661: int
53662: main ()
53663: {
53664: 
53665:   ;
53666:   return 0;
53667: }
53668: _ACEOF
53669: if ac_fn_cxx_try_compile "$LINENO"; then :
53670:   ac_cv_prog_cxx_g=yes
53671: fi
53672: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53673: fi
53674: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53675: fi
53676: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53677:    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
53678: fi
53679: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
53680: $as_echo "$ac_cv_prog_cxx_g" >&6; }
53681: if test "$ac_test_CXXFLAGS" = set; then
53682:   CXXFLAGS=$ac_save_CXXFLAGS
53683: elif test $ac_cv_prog_cxx_g = yes; then
53684:   if test "$GXX" = yes; then
53685:     CXXFLAGS="-g -O2"
53686:   else
53687:     CXXFLAGS="-g"
53688:   fi
53689: else
53690:   if test "$GXX" = yes; then
53691:     CXXFLAGS="-O2"
53692:   else
53693:     CXXFLAGS=
53694:   fi
53695: fi
53696: ac_ext=c
53697: ac_cpp='$CPP $CPPFLAGS'
53698: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
53699: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
53700: ac_compiler_gnu=$ac_cv_c_compiler_gnu
53701: 
53702:     ac_ext=cpp
53703: ac_cpp='$CXXCPP $CPPFLAGS'
53704: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
53705: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
53706: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
53707: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
53708: $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
53709: if test -z "$CXXCPP"; then
53710:   if ${ac_cv_prog_CXXCPP+:} false; then :
53711:   $as_echo_n "(cached) " >&6
53712: else
53713:       # Double quotes because CXXCPP needs to be expanded
53714:     for CXXCPP in "$CXX -E" "/lib/cpp"
53715:     do
53716:       ac_preproc_ok=false
53717: for ac_cxx_preproc_warn_flag in '' yes
53718: do
53719:   # Use a header file that comes with gcc, so configuring glibc
53720:   # with a fresh cross-compiler works.
53721:   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53722:   # <limits.h> exists even on freestanding compilers.
53723:   # On the NeXT, cc -E runs the code through the compiler's parser,
53724:   # not just through cpp. "Syntax error" is here to catch this case.
53725:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53726: /* end confdefs.h.  */
53727: #ifdef __STDC__
53728: # include <limits.h>
53729: #else
53730: # include <assert.h>
53731: #endif
53732: 		     Syntax error
53733: _ACEOF
53734: if ac_fn_cxx_try_cpp "$LINENO"; then :
53735: 
53736: else
53737:   # Broken: fails on valid input.
53738: continue
53739: fi
53740: rm -f conftest.err conftest.i conftest.$ac_ext
53741: 
53742:   # OK, works on sane cases.  Now check whether nonexistent headers
53743:   # can be detected and how.
53744:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53745: /* end confdefs.h.  */
53746: #include <ac_nonexistent.h>
53747: _ACEOF
53748: if ac_fn_cxx_try_cpp "$LINENO"; then :
53749:   # Broken: success on invalid input.
53750: continue
53751: else
53752:   # Passes both tests.
53753: ac_preproc_ok=:
53754: break
53755: fi
53756: rm -f conftest.err conftest.i conftest.$ac_ext
53757: 
53758: done
53759: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
53760: rm -f conftest.i conftest.err conftest.$ac_ext
53761: if $ac_preproc_ok; then :
53762:   break
53763: fi
53764: 
53765:     done
53766:     ac_cv_prog_CXXCPP=$CXXCPP
53767: 
53768: fi
53769:   CXXCPP=$ac_cv_prog_CXXCPP
53770: else
53771:   ac_cv_prog_CXXCPP=$CXXCPP
53772: fi
53773: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
53774: $as_echo "$CXXCPP" >&6; }
53775: ac_preproc_ok=false
53776: for ac_cxx_preproc_warn_flag in '' yes
53777: do
53778:   # Use a header file that comes with gcc, so configuring glibc
53779:   # with a fresh cross-compiler works.
53780:   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53781:   # <limits.h> exists even on freestanding compilers.
53782:   # On the NeXT, cc -E runs the code through the compiler's parser,
53783:   # not just through cpp. "Syntax error" is here to catch this case.
53784:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53785: /* end confdefs.h.  */
53786: #ifdef __STDC__
53787: # include <limits.h>
53788: #else
53789: # include <assert.h>
53790: #endif
53791: 		     Syntax error
53792: _ACEOF
53793: if ac_fn_cxx_try_cpp "$LINENO"; then :
53794: 
53795: else
53796:   # Broken: fails on valid input.
53797: continue
53798: fi
53799: rm -f conftest.err conftest.i conftest.$ac_ext
53800: 
53801:   # OK, works on sane cases.  Now check whether nonexistent headers
53802:   # can be detected and how.
53803:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53804: /* end confdefs.h.  */
53805: #include <ac_nonexistent.h>
53806: _ACEOF
53807: if ac_fn_cxx_try_cpp "$LINENO"; then :
53808:   # Broken: success on invalid input.
53809: continue
53810: else
53811:   # Passes both tests.
53812: ac_preproc_ok=:
53813: break
53814: fi
53815: rm -f conftest.err conftest.i conftest.$ac_ext
53816: 
53817: done
53818: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
53819: rm -f conftest.i conftest.err conftest.$ac_ext
53820: if $ac_preproc_ok; then :
53821: 
53822: else
53823:   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
53824: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
53825: as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
53826: See \`config.log' for more details" "$LINENO" 5; }
53827: fi
53828: 
53829: ac_ext=c
53830: ac_cpp='$CPP $CPPFLAGS'
53831: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
53832: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
53833: ac_compiler_gnu=$ac_cv_c_compiler_gnu
53834: 
53835: 
53836: 
53837:   case stdc++ in
53838:   c|c_r|pthread*) ;;
53839:   *)
53840:       LIBS="-lstdc++ $LIBS"
53841:    ;;
53842:   esac
53843: 
53844: 
53845:     php_cxx_done=yes
53846:   fi
53847: 
53848:   if test "$icu_version" -ge "4002"; then
53849:     icu_spoof_src=" spoofchecker/spoofchecker_class.c \
53850:     spoofchecker/spoofchecker.c\
53851:     spoofchecker/spoofchecker_create.c\
53852:     spoofchecker/spoofchecker_main.c"
53853:   else
53854:     icu_spoof_src=""
53855:   fi
53856: 
53857:   ext_builddir=ext/intl
53858:   ext_srcdir=$abs_srcdir/ext/intl
53859: 
53860:   ac_extra=`echo "$ICU_INCS"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
53861: 
53862:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
53863:     PHP_INTL_SHARED=no
53864: 
53865: 
53866:   case ext/intl in
53867:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
53868:   /*) ac_srcdir=`echo "ext/intl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
53869:   *) ac_srcdir="$abs_srcdir/ext/intl/"; ac_bdir="ext/intl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
53870:   esac
53871: 
53872: 
53873: 
53874:   b_c_pre=$php_c_pre
53875:   b_cxx_pre=$php_cxx_pre
53876:   b_c_meta=$php_c_meta
53877:   b_cxx_meta=$php_cxx_meta
53878:   b_c_post=$php_c_post
53879:   b_cxx_post=$php_cxx_post
53880:   b_lo=$php_lo
53881: 
53882: 
53883:   old_IFS=$IFS
53884:   for ac_src in php_intl.c \
53885:     intl_error.c \
53886:     intl_convert.c \
53887:     collator/collator.c \
53888:     collator/collator_class.c \
53889:     collator/collator_sort.c \
53890:     collator/collator_convert.c \
53891:     collator/collator_locale.c \
53892:     collator/collator_compare.c \
53893:     collator/collator_attr.c \
53894:     collator/collator_create.c \
53895:     collator/collator_is_numeric.c \
53896:     collator/collator_error.c \
53897:     common/common_error.c \
53898:     formatter/formatter.c \
53899:     formatter/formatter_main.c \
53900:     formatter/formatter_class.c \
53901:     formatter/formatter_attr.c \
53902:     formatter/formatter_data.c \
53903:     formatter/formatter_format.c \
53904:     formatter/formatter_parse.c \
53905:     normalizer/normalizer.c \
53906:     normalizer/normalizer_class.c \
53907:     normalizer/normalizer_normalize.c \
53908:     locale/locale.c \
53909:     locale/locale_class.c \
53910:     locale/locale_methods.c \
53911:     dateformat/dateformat.c \
53912:     dateformat/dateformat_class.c \
53913:     dateformat/dateformat_attr.c \
53914:     dateformat/dateformat_data.c \
53915:     dateformat/dateformat_format.c \
53916:     dateformat/dateformat_parse.c \
53917:     msgformat/msgformat.c \
53918:     msgformat/msgformat_attr.c \
53919:     msgformat/msgformat_class.c \
53920:     msgformat/msgformat_data.c  \
53921:     msgformat/msgformat_format.c \
53922:     msgformat/msgformat_helpers.cpp \
53923:     msgformat/msgformat_parse.c \
53924:     grapheme/grapheme_string.c \
53925:     grapheme/grapheme_util.c \
53926:     resourcebundle/resourcebundle.c \
53927:     resourcebundle/resourcebundle_class.c \
53928:     resourcebundle/resourcebundle_iterator.c \
53929:     transliterator/transliterator.c \
53930:     transliterator/transliterator_class.c \
53931:     transliterator/transliterator_methods.c \
53932:     idn/idn.c \
53933:     $icu_spoof_src; do
53934: 
53935:       IFS=.
53936:       set $ac_src
53937:       ac_obj=$1
53938:       IFS=$old_IFS
53939: 
53940:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
53941: 
53942:       case $ac_src in
53943:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
53944:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
53945:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
53946:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
53947:       esac
53948: 
53949:     cat >>Makefile.objects<<EOF
53950: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
53951: 	$ac_comp
53952: EOF
53953:   done
53954: 
53955: 
53956:     EXT_STATIC="$EXT_STATIC intl"
53957:     if test "$ext_shared" != "nocli"; then
53958:       EXT_CLI_STATIC="$EXT_CLI_STATIC intl"
53959:     fi
53960:   else
53961:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
53962:       PHP_INTL_SHARED=yes
53963: 
53964:   case ext/intl in
53965:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
53966:   /*) ac_srcdir=`echo "ext/intl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
53967:   *) ac_srcdir="$abs_srcdir/ext/intl/"; ac_bdir="ext/intl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
53968:   esac
53969: 
53970: 
53971: 
53972:   b_c_pre=$shared_c_pre
53973:   b_cxx_pre=$shared_cxx_pre
53974:   b_c_meta=$shared_c_meta
53975:   b_cxx_meta=$shared_cxx_meta
53976:   b_c_post=$shared_c_post
53977:   b_cxx_post=$shared_cxx_post
53978:   b_lo=$shared_lo
53979: 
53980: 
53981:   old_IFS=$IFS
53982:   for ac_src in php_intl.c \
53983:     intl_error.c \
53984:     intl_convert.c \
53985:     collator/collator.c \
53986:     collator/collator_class.c \
53987:     collator/collator_sort.c \
53988:     collator/collator_convert.c \
53989:     collator/collator_locale.c \
53990:     collator/collator_compare.c \
53991:     collator/collator_attr.c \
53992:     collator/collator_create.c \
53993:     collator/collator_is_numeric.c \
53994:     collator/collator_error.c \
53995:     common/common_error.c \
53996:     formatter/formatter.c \
53997:     formatter/formatter_main.c \
53998:     formatter/formatter_class.c \
53999:     formatter/formatter_attr.c \
54000:     formatter/formatter_data.c \
54001:     formatter/formatter_format.c \
54002:     formatter/formatter_parse.c \
54003:     normalizer/normalizer.c \
54004:     normalizer/normalizer_class.c \
54005:     normalizer/normalizer_normalize.c \
54006:     locale/locale.c \
54007:     locale/locale_class.c \
54008:     locale/locale_methods.c \
54009:     dateformat/dateformat.c \
54010:     dateformat/dateformat_class.c \
54011:     dateformat/dateformat_attr.c \
54012:     dateformat/dateformat_data.c \
54013:     dateformat/dateformat_format.c \
54014:     dateformat/dateformat_parse.c \
54015:     msgformat/msgformat.c \
54016:     msgformat/msgformat_attr.c \
54017:     msgformat/msgformat_class.c \
54018:     msgformat/msgformat_data.c  \
54019:     msgformat/msgformat_format.c \
54020:     msgformat/msgformat_helpers.cpp \
54021:     msgformat/msgformat_parse.c \
54022:     grapheme/grapheme_string.c \
54023:     grapheme/grapheme_util.c \
54024:     resourcebundle/resourcebundle.c \
54025:     resourcebundle/resourcebundle_class.c \
54026:     resourcebundle/resourcebundle_iterator.c \
54027:     transliterator/transliterator.c \
54028:     transliterator/transliterator_class.c \
54029:     transliterator/transliterator_methods.c \
54030:     idn/idn.c \
54031:     $icu_spoof_src; do
54032: 
54033:       IFS=.
54034:       set $ac_src
54035:       ac_obj=$1
54036:       IFS=$old_IFS
54037: 
54038:       shared_objects_intl="$shared_objects_intl $ac_bdir$ac_obj.lo"
54039: 
54040:       case $ac_src in
54041:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
54042:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
54043:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
54044:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
54045:       esac
54046: 
54047:     cat >>Makefile.objects<<EOF
54048: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
54049: 	$ac_comp
54050: EOF
54051:   done
54052: 
54053:       case $host_alias in
54054:         *netware*)
54055: 
54056:   install_modules="install-modules"
54057: 
54058:   case $host_alias in
54059:     *aix*)
54060:       suffix=so
54061:       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'
54062:       ;;
54063:     *netware*)
54064:       suffix=nlm
54065:       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)'
54066:       ;;
54067:     *)
54068:       suffix=la
54069:       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)'
54070:       ;;
54071:   esac
54072: 
54073:   if test "x" = "xyes"; then
54074:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpintl.$suffix"
54075:   else
54076:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpintl.$suffix"
54077:   fi
54078: 
54079:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_intl"
54080: 
54081:   cat >>Makefile.objects<<EOF
54082: \$(phplibdir)/phpintl.$suffix: $ext_builddir/phpintl.$suffix
54083: 	\$(LIBTOOL) --mode=install cp $ext_builddir/phpintl.$suffix \$(phplibdir)
54084: 
54085: $ext_builddir/phpintl.$suffix: \$(shared_objects_intl) \$(PHPINTL_SHARED_DEPENDENCIES)
54086: 	$link_cmd
54087: 
54088: EOF
54089: 
54090:           ;;
54091:         *)
54092: 
54093:   install_modules="install-modules"
54094: 
54095:   case $host_alias in
54096:     *aix*)
54097:       suffix=so
54098:       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'
54099:       ;;
54100:     *netware*)
54101:       suffix=nlm
54102:       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)'
54103:       ;;
54104:     *)
54105:       suffix=la
54106:       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)'
54107:       ;;
54108:   esac
54109: 
54110:   if test "x" = "xyes"; then
54111:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/intl.$suffix"
54112:   else
54113:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/intl.$suffix"
54114:   fi
54115: 
54116:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_intl"
54117: 
54118:   cat >>Makefile.objects<<EOF
54119: \$(phplibdir)/intl.$suffix: $ext_builddir/intl.$suffix
54120: 	\$(LIBTOOL) --mode=install cp $ext_builddir/intl.$suffix \$(phplibdir)
54121: 
54122: $ext_builddir/intl.$suffix: \$(shared_objects_intl) \$(INTL_SHARED_DEPENDENCIES)
54123: 	$link_cmd
54124: 
54125: EOF
54126: 
54127:           ;;
54128:       esac
54129: 
54130: cat >>confdefs.h <<_ACEOF
54131: #define COMPILE_DL_INTL 1
54132: _ACEOF
54133: 
54134:     fi
54135:   fi
54136: 
54137:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
54138:     PHP_INTL_SHARED=no
54139:     case "$PHP_SAPI" in
54140:       cgi|embed)
54141: 
54142: 
54143:   case ext/intl in
54144:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
54145:   /*) ac_srcdir=`echo "ext/intl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
54146:   *) ac_srcdir="$abs_srcdir/ext/intl/"; ac_bdir="ext/intl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
54147:   esac
54148: 
54149: 
54150: 
54151:   b_c_pre=$php_c_pre
54152:   b_cxx_pre=$php_cxx_pre
54153:   b_c_meta=$php_c_meta
54154:   b_cxx_meta=$php_cxx_meta
54155:   b_c_post=$php_c_post
54156:   b_cxx_post=$php_cxx_post
54157:   b_lo=$php_lo
54158: 
54159: 
54160:   old_IFS=$IFS
54161:   for ac_src in php_intl.c \
54162:     intl_error.c \
54163:     intl_convert.c \
54164:     collator/collator.c \
54165:     collator/collator_class.c \
54166:     collator/collator_sort.c \
54167:     collator/collator_convert.c \
54168:     collator/collator_locale.c \
54169:     collator/collator_compare.c \
54170:     collator/collator_attr.c \
54171:     collator/collator_create.c \
54172:     collator/collator_is_numeric.c \
54173:     collator/collator_error.c \
54174:     common/common_error.c \
54175:     formatter/formatter.c \
54176:     formatter/formatter_main.c \
54177:     formatter/formatter_class.c \
54178:     formatter/formatter_attr.c \
54179:     formatter/formatter_data.c \
54180:     formatter/formatter_format.c \
54181:     formatter/formatter_parse.c \
54182:     normalizer/normalizer.c \
54183:     normalizer/normalizer_class.c \
54184:     normalizer/normalizer_normalize.c \
54185:     locale/locale.c \
54186:     locale/locale_class.c \
54187:     locale/locale_methods.c \
54188:     dateformat/dateformat.c \
54189:     dateformat/dateformat_class.c \
54190:     dateformat/dateformat_attr.c \
54191:     dateformat/dateformat_data.c \
54192:     dateformat/dateformat_format.c \
54193:     dateformat/dateformat_parse.c \
54194:     msgformat/msgformat.c \
54195:     msgformat/msgformat_attr.c \
54196:     msgformat/msgformat_class.c \
54197:     msgformat/msgformat_data.c  \
54198:     msgformat/msgformat_format.c \
54199:     msgformat/msgformat_helpers.cpp \
54200:     msgformat/msgformat_parse.c \
54201:     grapheme/grapheme_string.c \
54202:     grapheme/grapheme_util.c \
54203:     resourcebundle/resourcebundle.c \
54204:     resourcebundle/resourcebundle_class.c \
54205:     resourcebundle/resourcebundle_iterator.c \
54206:     transliterator/transliterator.c \
54207:     transliterator/transliterator_class.c \
54208:     transliterator/transliterator_methods.c \
54209:     idn/idn.c \
54210:     $icu_spoof_src; do
54211: 
54212:       IFS=.
54213:       set $ac_src
54214:       ac_obj=$1
54215:       IFS=$old_IFS
54216: 
54217:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
54218: 
54219:       case $ac_src in
54220:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
54221:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
54222:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
54223:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
54224:       esac
54225: 
54226:     cat >>Makefile.objects<<EOF
54227: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
54228: 	$ac_comp
54229: EOF
54230:   done
54231: 
54232: 
54233:         EXT_STATIC="$EXT_STATIC intl"
54234:         ;;
54235:       *)
54236: 
54237: 
54238:   case ext/intl in
54239:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
54240:   /*) ac_srcdir=`echo "ext/intl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
54241:   *) ac_srcdir="$abs_srcdir/ext/intl/"; ac_bdir="ext/intl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
54242:   esac
54243: 
54244: 
54245: 
54246:   b_c_pre=$php_c_pre
54247:   b_cxx_pre=$php_cxx_pre
54248:   b_c_meta=$php_c_meta
54249:   b_cxx_meta=$php_cxx_meta
54250:   b_c_post=$php_c_post
54251:   b_cxx_post=$php_cxx_post
54252:   b_lo=$php_lo
54253: 
54254: 
54255:   old_IFS=$IFS
54256:   for ac_src in php_intl.c \
54257:     intl_error.c \
54258:     intl_convert.c \
54259:     collator/collator.c \
54260:     collator/collator_class.c \
54261:     collator/collator_sort.c \
54262:     collator/collator_convert.c \
54263:     collator/collator_locale.c \
54264:     collator/collator_compare.c \
54265:     collator/collator_attr.c \
54266:     collator/collator_create.c \
54267:     collator/collator_is_numeric.c \
54268:     collator/collator_error.c \
54269:     common/common_error.c \
54270:     formatter/formatter.c \
54271:     formatter/formatter_main.c \
54272:     formatter/formatter_class.c \
54273:     formatter/formatter_attr.c \
54274:     formatter/formatter_data.c \
54275:     formatter/formatter_format.c \
54276:     formatter/formatter_parse.c \
54277:     normalizer/normalizer.c \
54278:     normalizer/normalizer_class.c \
54279:     normalizer/normalizer_normalize.c \
54280:     locale/locale.c \
54281:     locale/locale_class.c \
54282:     locale/locale_methods.c \
54283:     dateformat/dateformat.c \
54284:     dateformat/dateformat_class.c \
54285:     dateformat/dateformat_attr.c \
54286:     dateformat/dateformat_data.c \
54287:     dateformat/dateformat_format.c \
54288:     dateformat/dateformat_parse.c \
54289:     msgformat/msgformat.c \
54290:     msgformat/msgformat_attr.c \
54291:     msgformat/msgformat_class.c \
54292:     msgformat/msgformat_data.c  \
54293:     msgformat/msgformat_format.c \
54294:     msgformat/msgformat_helpers.cpp \
54295:     msgformat/msgformat_parse.c \
54296:     grapheme/grapheme_string.c \
54297:     grapheme/grapheme_util.c \
54298:     resourcebundle/resourcebundle.c \
54299:     resourcebundle/resourcebundle_class.c \
54300:     resourcebundle/resourcebundle_iterator.c \
54301:     transliterator/transliterator.c \
54302:     transliterator/transliterator_class.c \
54303:     transliterator/transliterator_methods.c \
54304:     idn/idn.c \
54305:     $icu_spoof_src; do
54306: 
54307:       IFS=.
54308:       set $ac_src
54309:       ac_obj=$1
54310:       IFS=$old_IFS
54311: 
54312:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
54313: 
54314:       case $ac_src in
54315:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
54316:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
54317:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
54318:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
54319:       esac
54320: 
54321:     cat >>Makefile.objects<<EOF
54322: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
54323: 	$ac_comp
54324: EOF
54325:   done
54326: 
54327: 
54328:         ;;
54329:     esac
54330:     EXT_CLI_STATIC="$EXT_CLI_STATIC intl"
54331:   fi
54332: 
54333: 
54334:     BUILD_DIR="$BUILD_DIR $ext_builddir"
54335: 
54336: 
54337: 
54338:   if test "$ext_builddir" = "."; then
54339:     PHP_PECL_EXTENSION=intl
54340: 
54341:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
54342: 
54343:   fi
54344: 
54345: 
54346: 
54347:     BUILD_DIR="$BUILD_DIR $ext_builddir/collator"
54348: 
54349: 
54350: 
54351: 
54352:     BUILD_DIR="$BUILD_DIR $ext_builddir/common"
54353: 
54354: 
54355: 
54356: 
54357:     BUILD_DIR="$BUILD_DIR $ext_builddir/formatter"
54358: 
54359: 
54360: 
54361: 
54362:     BUILD_DIR="$BUILD_DIR $ext_builddir/normalizer"
54363: 
54364: 
54365: 
54366: 
54367:     BUILD_DIR="$BUILD_DIR $ext_builddir/dateformat"
54368: 
54369: 
54370: 
54371: 
54372:     BUILD_DIR="$BUILD_DIR $ext_builddir/locale"
54373: 
54374: 
54375: 
54376: 
54377:     BUILD_DIR="$BUILD_DIR $ext_builddir/msgformat"
54378: 
54379: 
54380: 
54381: 
54382:     BUILD_DIR="$BUILD_DIR $ext_builddir/grapheme"
54383: 
54384: 
54385: 
54386: 
54387:     BUILD_DIR="$BUILD_DIR $ext_builddir/resourcebundle"
54388: 
54389: 
54390: 
54391: 
54392:     BUILD_DIR="$BUILD_DIR $ext_builddir/transliterator"
54393: 
54394: 
54395: 
54396: 
54397:     BUILD_DIR="$BUILD_DIR $ext_builddir/idn"
54398: 
54399: 
54400: 
54401: 
54402:     BUILD_DIR="$BUILD_DIR $ext_builddir/spoofchecker"
54403: 
54404: 
54405: fi
54406: 
54407: 
54408: 
54409: php_enable_json=yes
54410: 
54411: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable JavaScript Object Serialization support" >&5
54412: $as_echo_n "checking whether to enable JavaScript Object Serialization support... " >&6; }
54413: # Check whether --enable-json was given.
54414: if test "${enable_json+set}" = set; then :
54415:   enableval=$enable_json; PHP_JSON=$enableval
54416: else
54417: 
54418:   PHP_JSON=yes
54419:   test "$PHP_ENABLE_ALL" && PHP_JSON=$PHP_ENABLE_ALL
54420: 
54421: fi
54422: 
54423: 
54424: 
54425: ext_output="yes, shared"
54426: ext_shared=yes
54427: case $PHP_JSON in
54428: shared,*)
54429:   PHP_JSON=`echo "$PHP_JSON"|$SED 's/^shared,//'`
54430:   ;;
54431: shared)
54432:   PHP_JSON=yes
54433:   ;;
54434: no)
54435:   ext_output=no
54436:   ext_shared=no
54437:   ;;
54438: *)
54439:   ext_output=yes
54440:   ext_shared=no
54441:   ;;
54442: esac
54443: 
54444: 
54445: 
54446: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
54447: $as_echo "$ext_output" >&6; }
54448: 
54449: 
54450: 
54451: 
54452: if test "$PHP_JSON" != "no"; then
54453: 
54454: $as_echo "#define HAVE_JSON 1 " >>confdefs.h
54455: 
54456:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
54457: $as_echo_n "checking for ANSI C header files... " >&6; }
54458: if ${ac_cv_header_stdc+:} false; then :
54459:   $as_echo_n "(cached) " >&6
54460: else
54461:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54462: /* end confdefs.h.  */
54463: #include <stdlib.h>
54464: #include <stdarg.h>
54465: #include <string.h>
54466: #include <float.h>
54467: 
54468: int
54469: main ()
54470: {
54471: 
54472:   ;
54473:   return 0;
54474: }
54475: _ACEOF
54476: if ac_fn_c_try_compile "$LINENO"; then :
54477:   ac_cv_header_stdc=yes
54478: else
54479:   ac_cv_header_stdc=no
54480: fi
54481: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54482: 
54483: if test $ac_cv_header_stdc = yes; then
54484:   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
54485:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54486: /* end confdefs.h.  */
54487: #include <string.h>
54488: 
54489: _ACEOF
54490: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
54491:   $EGREP "memchr" >/dev/null 2>&1; then :
54492: 
54493: else
54494:   ac_cv_header_stdc=no
54495: fi
54496: rm -f conftest*
54497: 
54498: fi
54499: 
54500: if test $ac_cv_header_stdc = yes; then
54501:   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
54502:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54503: /* end confdefs.h.  */
54504: #include <stdlib.h>
54505: 
54506: _ACEOF
54507: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
54508:   $EGREP "free" >/dev/null 2>&1; then :
54509: 
54510: else
54511:   ac_cv_header_stdc=no
54512: fi
54513: rm -f conftest*
54514: 
54515: fi
54516: 
54517: if test $ac_cv_header_stdc = yes; then
54518:   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
54519:   if test "$cross_compiling" = yes; then :
54520:   :
54521: else
54522:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54523: /* end confdefs.h.  */
54524: #include <ctype.h>
54525: #include <stdlib.h>
54526: #if ((' ' & 0x0FF) == 0x020)
54527: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
54528: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
54529: #else
54530: # define ISLOWER(c) \
54531: 		   (('a' <= (c) && (c) <= 'i') \
54532: 		     || ('j' <= (c) && (c) <= 'r') \
54533: 		     || ('s' <= (c) && (c) <= 'z'))
54534: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
54535: #endif
54536: 
54537: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
54538: int
54539: main ()
54540: {
54541:   int i;
54542:   for (i = 0; i < 256; i++)
54543:     if (XOR (islower (i), ISLOWER (i))
54544: 	|| toupper (i) != TOUPPER (i))
54545:       return 2;
54546:   return 0;
54547: }
54548: _ACEOF
54549: if ac_fn_c_try_run "$LINENO"; then :
54550: 
54551: else
54552:   ac_cv_header_stdc=no
54553: fi
54554: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
54555:   conftest.$ac_objext conftest.beam conftest.$ac_ext
54556: fi
54557: 
54558: fi
54559: fi
54560: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
54561: $as_echo "$ac_cv_header_stdc" >&6; }
54562: if test $ac_cv_header_stdc = yes; then
54563: 
54564: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
54565: 
54566: fi
54567: 
54568: 
54569: 
54570:   ext_builddir=ext/json
54571:   ext_srcdir=$abs_srcdir/ext/json
54572: 
54573:   ac_extra=
54574: 
54575:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
54576:     PHP_JSON_SHARED=no
54577: 
54578: 
54579:   case ext/json in
54580:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
54581:   /*) ac_srcdir=`echo "ext/json"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
54582:   *) ac_srcdir="$abs_srcdir/ext/json/"; ac_bdir="ext/json/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
54583:   esac
54584: 
54585: 
54586: 
54587:   b_c_pre=$php_c_pre
54588:   b_cxx_pre=$php_cxx_pre
54589:   b_c_meta=$php_c_meta
54590:   b_cxx_meta=$php_cxx_meta
54591:   b_c_post=$php_c_post
54592:   b_cxx_post=$php_cxx_post
54593:   b_lo=$php_lo
54594: 
54595: 
54596:   old_IFS=$IFS
54597:   for ac_src in json.c utf8_decode.c JSON_parser.c; do
54598: 
54599:       IFS=.
54600:       set $ac_src
54601:       ac_obj=$1
54602:       IFS=$old_IFS
54603: 
54604:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
54605: 
54606:       case $ac_src in
54607:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
54608:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
54609:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
54610:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
54611:       esac
54612: 
54613:     cat >>Makefile.objects<<EOF
54614: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
54615: 	$ac_comp
54616: EOF
54617:   done
54618: 
54619: 
54620:     EXT_STATIC="$EXT_STATIC json"
54621:     if test "$ext_shared" != "nocli"; then
54622:       EXT_CLI_STATIC="$EXT_CLI_STATIC json"
54623:     fi
54624:   else
54625:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
54626:       PHP_JSON_SHARED=yes
54627: 
54628:   case ext/json in
54629:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
54630:   /*) ac_srcdir=`echo "ext/json"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
54631:   *) ac_srcdir="$abs_srcdir/ext/json/"; ac_bdir="ext/json/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
54632:   esac
54633: 
54634: 
54635: 
54636:   b_c_pre=$shared_c_pre
54637:   b_cxx_pre=$shared_cxx_pre
54638:   b_c_meta=$shared_c_meta
54639:   b_cxx_meta=$shared_cxx_meta
54640:   b_c_post=$shared_c_post
54641:   b_cxx_post=$shared_cxx_post
54642:   b_lo=$shared_lo
54643: 
54644: 
54645:   old_IFS=$IFS
54646:   for ac_src in json.c utf8_decode.c JSON_parser.c; do
54647: 
54648:       IFS=.
54649:       set $ac_src
54650:       ac_obj=$1
54651:       IFS=$old_IFS
54652: 
54653:       shared_objects_json="$shared_objects_json $ac_bdir$ac_obj.lo"
54654: 
54655:       case $ac_src in
54656:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
54657:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
54658:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
54659:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
54660:       esac
54661: 
54662:     cat >>Makefile.objects<<EOF
54663: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
54664: 	$ac_comp
54665: EOF
54666:   done
54667: 
54668:       case $host_alias in
54669:         *netware*)
54670: 
54671:   install_modules="install-modules"
54672: 
54673:   case $host_alias in
54674:     *aix*)
54675:       suffix=so
54676:       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'
54677:       ;;
54678:     *netware*)
54679:       suffix=nlm
54680:       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)'
54681:       ;;
54682:     *)
54683:       suffix=la
54684:       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)'
54685:       ;;
54686:   esac
54687: 
54688:   if test "x" = "xyes"; then
54689:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpjson.$suffix"
54690:   else
54691:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpjson.$suffix"
54692:   fi
54693: 
54694:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_json"
54695: 
54696:   cat >>Makefile.objects<<EOF
54697: \$(phplibdir)/phpjson.$suffix: $ext_builddir/phpjson.$suffix
54698: 	\$(LIBTOOL) --mode=install cp $ext_builddir/phpjson.$suffix \$(phplibdir)
54699: 
54700: $ext_builddir/phpjson.$suffix: \$(shared_objects_json) \$(PHPJSON_SHARED_DEPENDENCIES)
54701: 	$link_cmd
54702: 
54703: EOF
54704: 
54705:           ;;
54706:         *)
54707: 
54708:   install_modules="install-modules"
54709: 
54710:   case $host_alias in
54711:     *aix*)
54712:       suffix=so
54713:       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'
54714:       ;;
54715:     *netware*)
54716:       suffix=nlm
54717:       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)'
54718:       ;;
54719:     *)
54720:       suffix=la
54721:       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)'
54722:       ;;
54723:   esac
54724: 
54725:   if test "x" = "xyes"; then
54726:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/json.$suffix"
54727:   else
54728:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/json.$suffix"
54729:   fi
54730: 
54731:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_json"
54732: 
54733:   cat >>Makefile.objects<<EOF
54734: \$(phplibdir)/json.$suffix: $ext_builddir/json.$suffix
54735: 	\$(LIBTOOL) --mode=install cp $ext_builddir/json.$suffix \$(phplibdir)
54736: 
54737: $ext_builddir/json.$suffix: \$(shared_objects_json) \$(JSON_SHARED_DEPENDENCIES)
54738: 	$link_cmd
54739: 
54740: EOF
54741: 
54742:           ;;
54743:       esac
54744: 
54745: cat >>confdefs.h <<_ACEOF
54746: #define COMPILE_DL_JSON 1
54747: _ACEOF
54748: 
54749:     fi
54750:   fi
54751: 
54752:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
54753:     PHP_JSON_SHARED=no
54754:     case "$PHP_SAPI" in
54755:       cgi|embed)
54756: 
54757: 
54758:   case ext/json in
54759:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
54760:   /*) ac_srcdir=`echo "ext/json"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
54761:   *) ac_srcdir="$abs_srcdir/ext/json/"; ac_bdir="ext/json/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
54762:   esac
54763: 
54764: 
54765: 
54766:   b_c_pre=$php_c_pre
54767:   b_cxx_pre=$php_cxx_pre
54768:   b_c_meta=$php_c_meta
54769:   b_cxx_meta=$php_cxx_meta
54770:   b_c_post=$php_c_post
54771:   b_cxx_post=$php_cxx_post
54772:   b_lo=$php_lo
54773: 
54774: 
54775:   old_IFS=$IFS
54776:   for ac_src in json.c utf8_decode.c JSON_parser.c; do
54777: 
54778:       IFS=.
54779:       set $ac_src
54780:       ac_obj=$1
54781:       IFS=$old_IFS
54782: 
54783:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
54784: 
54785:       case $ac_src in
54786:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
54787:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
54788:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
54789:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
54790:       esac
54791: 
54792:     cat >>Makefile.objects<<EOF
54793: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
54794: 	$ac_comp
54795: EOF
54796:   done
54797: 
54798: 
54799:         EXT_STATIC="$EXT_STATIC json"
54800:         ;;
54801:       *)
54802: 
54803: 
54804:   case ext/json in
54805:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
54806:   /*) ac_srcdir=`echo "ext/json"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
54807:   *) ac_srcdir="$abs_srcdir/ext/json/"; ac_bdir="ext/json/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
54808:   esac
54809: 
54810: 
54811: 
54812:   b_c_pre=$php_c_pre
54813:   b_cxx_pre=$php_cxx_pre
54814:   b_c_meta=$php_c_meta
54815:   b_cxx_meta=$php_cxx_meta
54816:   b_c_post=$php_c_post
54817:   b_cxx_post=$php_cxx_post
54818:   b_lo=$php_lo
54819: 
54820: 
54821:   old_IFS=$IFS
54822:   for ac_src in json.c utf8_decode.c JSON_parser.c; do
54823: 
54824:       IFS=.
54825:       set $ac_src
54826:       ac_obj=$1
54827:       IFS=$old_IFS
54828: 
54829:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
54830: 
54831:       case $ac_src in
54832:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
54833:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
54834:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
54835:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
54836:       esac
54837: 
54838:     cat >>Makefile.objects<<EOF
54839: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
54840: 	$ac_comp
54841: EOF
54842:   done
54843: 
54844: 
54845:         ;;
54846:     esac
54847:     EXT_CLI_STATIC="$EXT_CLI_STATIC json"
54848:   fi
54849: 
54850: 
54851:     BUILD_DIR="$BUILD_DIR $ext_builddir"
54852: 
54853: 
54854: 
54855:   if test "$ext_builddir" = "."; then
54856:     PHP_PECL_EXTENSION=json
54857: 
54858:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
54859: 
54860:   fi
54861: 
54862: 
54863: 
54864:     header_path=ext/json
54865:     for header_file in php_json.h; do
54866:       hp_hf="$header_path/$header_file"
54867: 
54868: 
54869:   unique=`echo $hp_hf|$SED 's/[^a-zA-Z0-9]/_/g'`
54870: 
54871:   cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
54872:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
54873:     eval "INSTALLHEADERS$unique=set"
54874: 
54875:         INSTALL_HEADERS="$INSTALL_HEADERS $hp_hf"
54876: 
54877:   fi
54878: 
54879:     done
54880: 
54881: 
54882: 
54883:   PHP_VAR_SUBST="$PHP_VAR_SUBST JSON_SHARED_LIBADD"
54884: 
54885: fi
54886: 
54887: 
54888: 
54889: 
54890: 
54891: 
54892: 
54893: php_with_ldap=no
54894: 
54895: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP support" >&5
54896: $as_echo_n "checking for LDAP support... " >&6; }
54897: 
54898: # Check whether --with-ldap was given.
54899: if test "${with_ldap+set}" = set; then :
54900:   withval=$with_ldap; PHP_LDAP=$withval
54901: else
54902: 
54903:   PHP_LDAP=no
54904:   test "$PHP_ENABLE_ALL" && PHP_LDAP=$PHP_ENABLE_ALL
54905: 
54906: fi
54907: 
54908: 
54909: 
54910: ext_output="yes, shared"
54911: ext_shared=yes
54912: case $PHP_LDAP in
54913: shared,*)
54914:   PHP_LDAP=`echo "$PHP_LDAP"|$SED 's/^shared,//'`
54915:   ;;
54916: shared)
54917:   PHP_LDAP=yes
54918:   ;;
54919: no)
54920:   ext_output=no
54921:   ext_shared=no
54922:   ;;
54923: *)
54924:   ext_output=yes
54925:   ext_shared=no
54926:   ;;
54927: esac
54928: 
54929: 
54930: 
54931: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
54932: $as_echo "$ext_output" >&6; }
54933: 
54934: 
54935: 
54936: 
54937: 
54938: php_with_ldap_sasl=no
54939: 
54940: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP Cyrus SASL support" >&5
54941: $as_echo_n "checking for LDAP Cyrus SASL support... " >&6; }
54942: 
54943: # Check whether --with-ldap-sasl was given.
54944: if test "${with_ldap_sasl+set}" = set; then :
54945:   withval=$with_ldap_sasl; PHP_LDAP_SASL=$withval
54946: else
54947: 
54948:   PHP_LDAP_SASL=no
54949: 
54950: 
54951: fi
54952: 
54953: 
54954: ext_output=$PHP_LDAP_SASL
54955: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
54956: $as_echo "$ext_output" >&6; }
54957: 
54958: 
54959: 
54960: 
54961: if test "$PHP_LDAP" != "no"; then
54962: 
54963: 
54964:   ext_builddir=ext/ldap
54965:   ext_srcdir=$abs_srcdir/ext/ldap
54966: 
54967:   ac_extra=`echo "-DLDAP_DEPRECATED=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
54968: 
54969:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
54970:     PHP_LDAP_SHARED=no
54971: 
54972: 
54973:   case ext/ldap in
54974:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
54975:   /*) ac_srcdir=`echo "ext/ldap"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
54976:   *) ac_srcdir="$abs_srcdir/ext/ldap/"; ac_bdir="ext/ldap/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
54977:   esac
54978: 
54979: 
54980: 
54981:   b_c_pre=$php_c_pre
54982:   b_cxx_pre=$php_cxx_pre
54983:   b_c_meta=$php_c_meta
54984:   b_cxx_meta=$php_cxx_meta
54985:   b_c_post=$php_c_post
54986:   b_cxx_post=$php_cxx_post
54987:   b_lo=$php_lo
54988: 
54989: 
54990:   old_IFS=$IFS
54991:   for ac_src in ldap.c; do
54992: 
54993:       IFS=.
54994:       set $ac_src
54995:       ac_obj=$1
54996:       IFS=$old_IFS
54997: 
54998:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
54999: 
55000:       case $ac_src in
55001:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
55002:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
55003:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
55004:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
55005:       esac
55006: 
55007:     cat >>Makefile.objects<<EOF
55008: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
55009: 	$ac_comp
55010: EOF
55011:   done
55012: 
55013: 
55014:     EXT_STATIC="$EXT_STATIC ldap"
55015:     if test "$ext_shared" != "nocli"; then
55016:       EXT_CLI_STATIC="$EXT_CLI_STATIC ldap"
55017:     fi
55018:   else
55019:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
55020:       PHP_LDAP_SHARED=yes
55021: 
55022:   case ext/ldap in
55023:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
55024:   /*) ac_srcdir=`echo "ext/ldap"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
55025:   *) ac_srcdir="$abs_srcdir/ext/ldap/"; ac_bdir="ext/ldap/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
55026:   esac
55027: 
55028: 
55029: 
55030:   b_c_pre=$shared_c_pre
55031:   b_cxx_pre=$shared_cxx_pre
55032:   b_c_meta=$shared_c_meta
55033:   b_cxx_meta=$shared_cxx_meta
55034:   b_c_post=$shared_c_post
55035:   b_cxx_post=$shared_cxx_post
55036:   b_lo=$shared_lo
55037: 
55038: 
55039:   old_IFS=$IFS
55040:   for ac_src in ldap.c; do
55041: 
55042:       IFS=.
55043:       set $ac_src
55044:       ac_obj=$1
55045:       IFS=$old_IFS
55046: 
55047:       shared_objects_ldap="$shared_objects_ldap $ac_bdir$ac_obj.lo"
55048: 
55049:       case $ac_src in
55050:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
55051:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
55052:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
55053:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
55054:       esac
55055: 
55056:     cat >>Makefile.objects<<EOF
55057: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
55058: 	$ac_comp
55059: EOF
55060:   done
55061: 
55062:       case $host_alias in
55063:         *netware*)
55064: 
55065:   install_modules="install-modules"
55066: 
55067:   case $host_alias in
55068:     *aix*)
55069:       suffix=so
55070:       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'
55071:       ;;
55072:     *netware*)
55073:       suffix=nlm
55074:       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)'
55075:       ;;
55076:     *)
55077:       suffix=la
55078:       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)'
55079:       ;;
55080:   esac
55081: 
55082:   if test "x" = "xyes"; then
55083:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpldap.$suffix"
55084:   else
55085:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpldap.$suffix"
55086:   fi
55087: 
55088:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_ldap"
55089: 
55090:   cat >>Makefile.objects<<EOF
55091: \$(phplibdir)/phpldap.$suffix: $ext_builddir/phpldap.$suffix
55092: 	\$(LIBTOOL) --mode=install cp $ext_builddir/phpldap.$suffix \$(phplibdir)
55093: 
55094: $ext_builddir/phpldap.$suffix: \$(shared_objects_ldap) \$(PHPLDAP_SHARED_DEPENDENCIES)
55095: 	$link_cmd
55096: 
55097: EOF
55098: 
55099:           ;;
55100:         *)
55101: 
55102:   install_modules="install-modules"
55103: 
55104:   case $host_alias in
55105:     *aix*)
55106:       suffix=so
55107:       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'
55108:       ;;
55109:     *netware*)
55110:       suffix=nlm
55111:       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)'
55112:       ;;
55113:     *)
55114:       suffix=la
55115:       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)'
55116:       ;;
55117:   esac
55118: 
55119:   if test "x" = "xyes"; then
55120:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/ldap.$suffix"
55121:   else
55122:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/ldap.$suffix"
55123:   fi
55124: 
55125:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_ldap"
55126: 
55127:   cat >>Makefile.objects<<EOF
55128: \$(phplibdir)/ldap.$suffix: $ext_builddir/ldap.$suffix
55129: 	\$(LIBTOOL) --mode=install cp $ext_builddir/ldap.$suffix \$(phplibdir)
55130: 
55131: $ext_builddir/ldap.$suffix: \$(shared_objects_ldap) \$(LDAP_SHARED_DEPENDENCIES)
55132: 	$link_cmd
55133: 
55134: EOF
55135: 
55136:           ;;
55137:       esac
55138: 
55139: cat >>confdefs.h <<_ACEOF
55140: #define COMPILE_DL_LDAP 1
55141: _ACEOF
55142: 
55143:     fi
55144:   fi
55145: 
55146:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
55147:     PHP_LDAP_SHARED=no
55148:     case "$PHP_SAPI" in
55149:       cgi|embed)
55150: 
55151: 
55152:   case ext/ldap in
55153:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
55154:   /*) ac_srcdir=`echo "ext/ldap"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
55155:   *) ac_srcdir="$abs_srcdir/ext/ldap/"; ac_bdir="ext/ldap/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
55156:   esac
55157: 
55158: 
55159: 
55160:   b_c_pre=$php_c_pre
55161:   b_cxx_pre=$php_cxx_pre
55162:   b_c_meta=$php_c_meta
55163:   b_cxx_meta=$php_cxx_meta
55164:   b_c_post=$php_c_post
55165:   b_cxx_post=$php_cxx_post
55166:   b_lo=$php_lo
55167: 
55168: 
55169:   old_IFS=$IFS
55170:   for ac_src in ldap.c; do
55171: 
55172:       IFS=.
55173:       set $ac_src
55174:       ac_obj=$1
55175:       IFS=$old_IFS
55176: 
55177:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
55178: 
55179:       case $ac_src in
55180:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
55181:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
55182:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
55183:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
55184:       esac
55185: 
55186:     cat >>Makefile.objects<<EOF
55187: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
55188: 	$ac_comp
55189: EOF
55190:   done
55191: 
55192: 
55193:         EXT_STATIC="$EXT_STATIC ldap"
55194:         ;;
55195:       *)
55196: 
55197: 
55198:   case ext/ldap in
55199:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
55200:   /*) ac_srcdir=`echo "ext/ldap"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
55201:   *) ac_srcdir="$abs_srcdir/ext/ldap/"; ac_bdir="ext/ldap/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
55202:   esac
55203: 
55204: 
55205: 
55206:   b_c_pre=$php_c_pre
55207:   b_cxx_pre=$php_cxx_pre
55208:   b_c_meta=$php_c_meta
55209:   b_cxx_meta=$php_cxx_meta
55210:   b_c_post=$php_c_post
55211:   b_cxx_post=$php_cxx_post
55212:   b_lo=$php_lo
55213: 
55214: 
55215:   old_IFS=$IFS
55216:   for ac_src in ldap.c; do
55217: 
55218:       IFS=.
55219:       set $ac_src
55220:       ac_obj=$1
55221:       IFS=$old_IFS
55222: 
55223:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
55224: 
55225:       case $ac_src in
55226:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
55227:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
55228:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
55229:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
55230:       esac
55231: 
55232:     cat >>Makefile.objects<<EOF
55233: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
55234: 	$ac_comp
55235: EOF
55236:   done
55237: 
55238: 
55239:         ;;
55240:     esac
55241:     EXT_CLI_STATIC="$EXT_CLI_STATIC ldap"
55242:   fi
55243: 
55244: 
55245:     BUILD_DIR="$BUILD_DIR $ext_builddir"
55246: 
55247: 
55248: 
55249:   if test "$ext_builddir" = "."; then
55250:     PHP_PECL_EXTENSION=ldap
55251: 
55252:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
55253: 
55254:   fi
55255: 
55256: 
55257:   if test "$PHP_LDAP" = "yes"; then
55258:     for i in /usr/local /usr; do
55259: 
55260:   if test -f $i/include/ldap.h; then
55261:     LDAP_DIR=$i
55262:     LDAP_INCDIR=$i/include
55263:     LDAP_LIBDIR=$i/$PHP_LIBDIR
55264:   elif test -f $i/include/umich-ldap/ldap.h; then
55265:     LDAP_DIR=$i
55266:     LDAP_INCDIR=$i/include/umich-ldap
55267:     LDAP_LIBDIR=$i/$PHP_LIBDIR
55268:   elif test -f $i/ldap/public/ldap.h; then
55269:     LDAP_DIR=$i
55270:     LDAP_INCDIR=$i/ldap/public
55271:     LDAP_LIBDIR=$i/$PHP_LIBDIR
55272:   fi
55273: 
55274:     done
55275:   else
55276: 
55277:   if test -f $PHP_LDAP/include/ldap.h; then
55278:     LDAP_DIR=$PHP_LDAP
55279:     LDAP_INCDIR=$PHP_LDAP/include
55280:     LDAP_LIBDIR=$PHP_LDAP/$PHP_LIBDIR
55281:   elif test -f $PHP_LDAP/include/umich-ldap/ldap.h; then
55282:     LDAP_DIR=$PHP_LDAP
55283:     LDAP_INCDIR=$PHP_LDAP/include/umich-ldap
55284:     LDAP_LIBDIR=$PHP_LDAP/$PHP_LIBDIR
55285:   elif test -f $PHP_LDAP/ldap/public/ldap.h; then
55286:     LDAP_DIR=$PHP_LDAP
55287:     LDAP_INCDIR=$PHP_LDAP/ldap/public
55288:     LDAP_LIBDIR=$PHP_LDAP/$PHP_LIBDIR
55289:   fi
55290: 
55291:   fi
55292: 
55293:   if test -z "$LDAP_DIR"; then
55294:     as_fn_error $? "Cannot find ldap.h" "$LINENO" 5
55295:   fi
55296: 
55297: 
55298:   if test `uname` = "Linux"; then
55299:     LDAP_PTHREAD=pthread
55300:   else
55301:     LDAP_PTHREAD=
55302:   fi
55303: 
55304:   if test -f $LDAP_LIBDIR/liblber.a || test -f $LDAP_LIBDIR/liblber.$SHLIB_SUFFIX_NAME; then
55305: 
55306: 
55307:   if test "$ext_shared" = "yes"; then
55308:     LDAP_SHARED_LIBADD="-llber $LDAP_SHARED_LIBADD"
55309:     if test -n "$LDAP_LIBDIR"; then
55310: 
55311:   if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
55312: 
55313:   if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
55314:     ai_p=$LDAP_LIBDIR
55315:   else
55316: 
55317:     ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
55318: 
55319:     ep_realdir=`(cd "$ep_dir" && pwd)`
55320:     ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"`
55321:   fi
55322: 
55323: 
55324:       if test "$ext_shared" = "yes"; then
55325:         LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
55326:         test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
55327:       else
55328: 
55329: 
55330: 
55331:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
55332: 
55333:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
55334:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
55335:     eval "LIBPATH$unique=set"
55336: 
55337:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
55338:     LDFLAGS="$LDFLAGS -L$ai_p"
55339:     PHP_RPATHS="$PHP_RPATHS $ai_p"
55340: 
55341:   fi
55342: 
55343: 
55344:       fi
55345: 
55346:   fi
55347: 
55348:     fi
55349:   else
55350: 
55351: 
55352:   if test -n "$LDAP_LIBDIR"; then
55353: 
55354:   if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
55355: 
55356:   if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
55357:     ai_p=$LDAP_LIBDIR
55358:   else
55359: 
55360:     ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
55361: 
55362:     ep_realdir=`(cd "$ep_dir" && pwd)`
55363:     ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"`
55364:   fi
55365: 
55366: 
55367: 
55368: 
55369: 
55370:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
55371: 
55372:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
55373:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
55374:     eval "LIBPATH$unique=set"
55375: 
55376:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
55377:     LDFLAGS="$LDFLAGS -L$ai_p"
55378:     PHP_RPATHS="$PHP_RPATHS $ai_p"
55379: 
55380:   fi
55381: 
55382: 
55383: 
55384:   fi
55385: 
55386:   fi
55387: 
55388: 
55389:   case lber in
55390:   c|c_r|pthread*) ;;
55391:   *)
55392:       LIBS="-llber $LIBS"
55393:    ;;
55394:   esac
55395: 
55396: 
55397: 
55398: 
55399:   fi
55400: 
55401: 
55402: 
55403: 
55404:   if test "$ext_shared" = "yes"; then
55405:     LDAP_SHARED_LIBADD="-lldap $LDAP_SHARED_LIBADD"
55406:     if test -n "$LDAP_LIBDIR"; then
55407: 
55408:   if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
55409: 
55410:   if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
55411:     ai_p=$LDAP_LIBDIR
55412:   else
55413: 
55414:     ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
55415: 
55416:     ep_realdir=`(cd "$ep_dir" && pwd)`
55417:     ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"`
55418:   fi
55419: 
55420: 
55421:       if test "$ext_shared" = "yes"; then
55422:         LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
55423:         test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
55424:       else
55425: 
55426: 
55427: 
55428:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
55429: 
55430:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
55431:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
55432:     eval "LIBPATH$unique=set"
55433: 
55434:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
55435:     LDFLAGS="$LDFLAGS -L$ai_p"
55436:     PHP_RPATHS="$PHP_RPATHS $ai_p"
55437: 
55438:   fi
55439: 
55440: 
55441:       fi
55442: 
55443:   fi
55444: 
55445:     fi
55446:   else
55447: 
55448: 
55449:   if test -n "$LDAP_LIBDIR"; then
55450: 
55451:   if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
55452: 
55453:   if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
55454:     ai_p=$LDAP_LIBDIR
55455:   else
55456: 
55457:     ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
55458: 
55459:     ep_realdir=`(cd "$ep_dir" && pwd)`
55460:     ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"`
55461:   fi
55462: 
55463: 
55464: 
55465: 
55466: 
55467:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
55468: 
55469:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
55470:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
55471:     eval "LIBPATH$unique=set"
55472: 
55473:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
55474:     LDFLAGS="$LDFLAGS -L$ai_p"
55475:     PHP_RPATHS="$PHP_RPATHS $ai_p"
55476: 
55477:   fi
55478: 
55479: 
55480: 
55481:   fi
55482: 
55483:   fi
55484: 
55485: 
55486:   case ldap in
55487:   c|c_r|pthread*) ;;
55488:   *)
55489:       LIBS="-lldap $LIBS"
55490:    ;;
55491:   esac
55492: 
55493: 
55494: 
55495: 
55496:   fi
55497: 
55498: 
55499: 
55500:   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
55501: 
55502: 
55503:   if test "$ext_shared" = "yes"; then
55504:     LDAP_SHARED_LIBADD="-lldap $LDAP_SHARED_LIBADD"
55505:     if test -n "$LDAP_LIBDIR"; then
55506: 
55507:   if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
55508: 
55509:   if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
55510:     ai_p=$LDAP_LIBDIR
55511:   else
55512: 
55513:     ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
55514: 
55515:     ep_realdir=`(cd "$ep_dir" && pwd)`
55516:     ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"`
55517:   fi
55518: 
55519: 
55520:       if test "$ext_shared" = "yes"; then
55521:         LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
55522:         test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
55523:       else
55524: 
55525: 
55526: 
55527:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
55528: 
55529:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
55530:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
55531:     eval "LIBPATH$unique=set"
55532: 
55533:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
55534:     LDFLAGS="$LDFLAGS -L$ai_p"
55535:     PHP_RPATHS="$PHP_RPATHS $ai_p"
55536: 
55537:   fi
55538: 
55539: 
55540:       fi
55541: 
55542:   fi
55543: 
55544:     fi
55545:   else
55546: 
55547: 
55548:   if test -n "$LDAP_LIBDIR"; then
55549: 
55550:   if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
55551: 
55552:   if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
55553:     ai_p=$LDAP_LIBDIR
55554:   else
55555: 
55556:     ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
55557: 
55558:     ep_realdir=`(cd "$ep_dir" && pwd)`
55559:     ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"`
55560:   fi
55561: 
55562: 
55563: 
55564: 
55565: 
55566:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
55567: 
55568:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
55569:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
55570:     eval "LIBPATH$unique=set"
55571: 
55572:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
55573:     LDFLAGS="$LDFLAGS -L$ai_p"
55574:     PHP_RPATHS="$PHP_RPATHS $ai_p"
55575: 
55576:   fi
55577: 
55578: 
55579: 
55580:   fi
55581: 
55582:   fi
55583: 
55584: 
55585:   case ldap in
55586:   c|c_r|pthread*) ;;
55587:   *)
55588:       LIBS="-lldap $LIBS"
55589:    ;;
55590:   esac
55591: 
55592: 
55593: 
55594: 
55595:   fi
55596: 
55597: 
55598: 
55599:   elif test -f $LDAP_LIBDIR/libssldap50.$SHLIB_SUFFIX_NAME; then
55600:     if test -n "$LDAP_PTHREAD"; then
55601: 
55602: 
55603:   case $LDAP_PTHREAD in
55604:   c|c_r|pthread*) ;;
55605:   *)
55606:       LIBS="-l$LDAP_PTHREAD $LIBS"
55607:    ;;
55608:   esac
55609: 
55610: 
55611:     fi
55612: 
55613: 
55614:   if test "$ext_shared" = "yes"; then
55615:     LDAP_SHARED_LIBADD="-lnspr4 $LDAP_SHARED_LIBADD"
55616:     if test -n "$LDAP_LIBDIR"; then
55617: 
55618:   if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
55619: 
55620:   if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
55621:     ai_p=$LDAP_LIBDIR
55622:   else
55623: 
55624:     ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
55625: 
55626:     ep_realdir=`(cd "$ep_dir" && pwd)`
55627:     ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"`
55628:   fi
55629: 
55630: 
55631:       if test "$ext_shared" = "yes"; then
55632:         LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
55633:         test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
55634:       else
55635: 
55636: 
55637: 
55638:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
55639: 
55640:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
55641:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
55642:     eval "LIBPATH$unique=set"
55643: 
55644:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
55645:     LDFLAGS="$LDFLAGS -L$ai_p"
55646:     PHP_RPATHS="$PHP_RPATHS $ai_p"
55647: 
55648:   fi
55649: 
55650: 
55651:       fi
55652: 
55653:   fi
55654: 
55655:     fi
55656:   else
55657: 
55658: 
55659:   if test -n "$LDAP_LIBDIR"; then
55660: 
55661:   if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
55662: 
55663:   if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
55664:     ai_p=$LDAP_LIBDIR
55665:   else
55666: 
55667:     ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
55668: 
55669:     ep_realdir=`(cd "$ep_dir" && pwd)`
55670:     ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"`
55671:   fi
55672: 
55673: 
55674: 
55675: 
55676: 
55677:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
55678: 
55679:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
55680:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
55681:     eval "LIBPATH$unique=set"
55682: 
55683:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
55684:     LDFLAGS="$LDFLAGS -L$ai_p"
55685:     PHP_RPATHS="$PHP_RPATHS $ai_p"
55686: 
55687:   fi
55688: 
55689: 
55690: 
55691:   fi
55692: 
55693:   fi
55694: 
55695: 
55696:   case nspr4 in
55697:   c|c_r|pthread*) ;;
55698:   *)
55699:       LIBS="-lnspr4 $LIBS"
55700:    ;;
55701:   esac
55702: 
55703: 
55704: 
55705: 
55706:   fi
55707: 
55708: 
55709: 
55710: 
55711:   if test "$ext_shared" = "yes"; then
55712:     LDAP_SHARED_LIBADD="-lplc4 $LDAP_SHARED_LIBADD"
55713:     if test -n "$LDAP_LIBDIR"; then
55714: 
55715:   if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
55716: 
55717:   if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
55718:     ai_p=$LDAP_LIBDIR
55719:   else
55720: 
55721:     ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
55722: 
55723:     ep_realdir=`(cd "$ep_dir" && pwd)`
55724:     ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"`
55725:   fi
55726: 
55727: 
55728:       if test "$ext_shared" = "yes"; then
55729:         LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
55730:         test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
55731:       else
55732: 
55733: 
55734: 
55735:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
55736: 
55737:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
55738:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
55739:     eval "LIBPATH$unique=set"
55740: 
55741:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
55742:     LDFLAGS="$LDFLAGS -L$ai_p"
55743:     PHP_RPATHS="$PHP_RPATHS $ai_p"
55744: 
55745:   fi
55746: 
55747: 
55748:       fi
55749: 
55750:   fi
55751: 
55752:     fi
55753:   else
55754: 
55755: 
55756:   if test -n "$LDAP_LIBDIR"; then
55757: 
55758:   if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
55759: 
55760:   if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
55761:     ai_p=$LDAP_LIBDIR
55762:   else
55763: 
55764:     ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
55765: 
55766:     ep_realdir=`(cd "$ep_dir" && pwd)`
55767:     ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"`
55768:   fi
55769: 
55770: 
55771: 
55772: 
55773: 
55774:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
55775: 
55776:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
55777:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
55778:     eval "LIBPATH$unique=set"
55779: 
55780:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
55781:     LDFLAGS="$LDFLAGS -L$ai_p"
55782:     PHP_RPATHS="$PHP_RPATHS $ai_p"
55783: 
55784:   fi
55785: 
55786: 
55787: 
55788:   fi
55789: 
55790:   fi
55791: 
55792: 
55793:   case plc4 in
55794:   c|c_r|pthread*) ;;
55795:   *)
55796:       LIBS="-lplc4 $LIBS"
55797:    ;;
55798:   esac
55799: 
55800: 
55801: 
55802: 
55803:   fi
55804: 
55805: 
55806: 
55807: 
55808:   if test "$ext_shared" = "yes"; then
55809:     LDAP_SHARED_LIBADD="-lplds4 $LDAP_SHARED_LIBADD"
55810:     if test -n "$LDAP_LIBDIR"; then
55811: 
55812:   if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
55813: 
55814:   if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
55815:     ai_p=$LDAP_LIBDIR
55816:   else
55817: 
55818:     ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
55819: 
55820:     ep_realdir=`(cd "$ep_dir" && pwd)`
55821:     ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"`
55822:   fi
55823: 
55824: 
55825:       if test "$ext_shared" = "yes"; then
55826:         LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
55827:         test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
55828:       else
55829: 
55830: 
55831: 
55832:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
55833: 
55834:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
55835:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
55836:     eval "LIBPATH$unique=set"
55837: 
55838:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
55839:     LDFLAGS="$LDFLAGS -L$ai_p"
55840:     PHP_RPATHS="$PHP_RPATHS $ai_p"
55841: 
55842:   fi
55843: 
55844: 
55845:       fi
55846: 
55847:   fi
55848: 
55849:     fi
55850:   else
55851: 
55852: 
55853:   if test -n "$LDAP_LIBDIR"; then
55854: 
55855:   if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
55856: 
55857:   if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
55858:     ai_p=$LDAP_LIBDIR
55859:   else
55860: 
55861:     ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
55862: 
55863:     ep_realdir=`(cd "$ep_dir" && pwd)`
55864:     ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"`
55865:   fi
55866: 
55867: 
55868: 
55869: 
55870: 
55871:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
55872: 
55873:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
55874:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
55875:     eval "LIBPATH$unique=set"
55876: 
55877:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
55878:     LDFLAGS="$LDFLAGS -L$ai_p"
55879:     PHP_RPATHS="$PHP_RPATHS $ai_p"
55880: 
55881:   fi
55882: 
55883: 
55884: 
55885:   fi
55886: 
55887:   fi
55888: 
55889: 
55890:   case plds4 in
55891:   c|c_r|pthread*) ;;
55892:   *)
55893:       LIBS="-lplds4 $LIBS"
55894:    ;;
55895:   esac
55896: 
55897: 
55898: 
55899: 
55900:   fi
55901: 
55902: 
55903: 
55904: 
55905:   if test "$ext_shared" = "yes"; then
55906:     LDAP_SHARED_LIBADD="-lssldap50 $LDAP_SHARED_LIBADD"
55907:     if test -n "$LDAP_LIBDIR"; then
55908: 
55909:   if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
55910: 
55911:   if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
55912:     ai_p=$LDAP_LIBDIR
55913:   else
55914: 
55915:     ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
55916: 
55917:     ep_realdir=`(cd "$ep_dir" && pwd)`
55918:     ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"`
55919:   fi
55920: 
55921: 
55922:       if test "$ext_shared" = "yes"; then
55923:         LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
55924:         test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
55925:       else
55926: 
55927: 
55928: 
55929:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
55930: 
55931:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
55932:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
55933:     eval "LIBPATH$unique=set"
55934: 
55935:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
55936:     LDFLAGS="$LDFLAGS -L$ai_p"
55937:     PHP_RPATHS="$PHP_RPATHS $ai_p"
55938: 
55939:   fi
55940: 
55941: 
55942:       fi
55943: 
55944:   fi
55945: 
55946:     fi
55947:   else
55948: 
55949: 
55950:   if test -n "$LDAP_LIBDIR"; then
55951: 
55952:   if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
55953: 
55954:   if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
55955:     ai_p=$LDAP_LIBDIR
55956:   else
55957: 
55958:     ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
55959: 
55960:     ep_realdir=`(cd "$ep_dir" && pwd)`
55961:     ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"`
55962:   fi
55963: 
55964: 
55965: 
55966: 
55967: 
55968:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
55969: 
55970:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
55971:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
55972:     eval "LIBPATH$unique=set"
55973: 
55974:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
55975:     LDFLAGS="$LDFLAGS -L$ai_p"
55976:     PHP_RPATHS="$PHP_RPATHS $ai_p"
55977: 
55978:   fi
55979: 
55980: 
55981: 
55982:   fi
55983: 
55984:   fi
55985: 
55986: 
55987:   case ssldap50 in
55988:   c|c_r|pthread*) ;;
55989:   *)
55990:       LIBS="-lssldap50 $LIBS"
55991:    ;;
55992:   esac
55993: 
55994: 
55995: 
55996: 
55997:   fi
55998: 
55999: 
56000: 
56001: 
56002:   if test "$ext_shared" = "yes"; then
56003:     LDAP_SHARED_LIBADD="-lldap50 $LDAP_SHARED_LIBADD"
56004:     if test -n "$LDAP_LIBDIR"; then
56005: 
56006:   if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
56007: 
56008:   if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
56009:     ai_p=$LDAP_LIBDIR
56010:   else
56011: 
56012:     ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
56013: 
56014:     ep_realdir=`(cd "$ep_dir" && pwd)`
56015:     ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"`
56016:   fi
56017: 
56018: 
56019:       if test "$ext_shared" = "yes"; then
56020:         LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
56021:         test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
56022:       else
56023: 
56024: 
56025: 
56026:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
56027: 
56028:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
56029:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
56030:     eval "LIBPATH$unique=set"
56031: 
56032:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
56033:     LDFLAGS="$LDFLAGS -L$ai_p"
56034:     PHP_RPATHS="$PHP_RPATHS $ai_p"
56035: 
56036:   fi
56037: 
56038: 
56039:       fi
56040: 
56041:   fi
56042: 
56043:     fi
56044:   else
56045: 
56046: 
56047:   if test -n "$LDAP_LIBDIR"; then
56048: 
56049:   if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
56050: 
56051:   if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
56052:     ai_p=$LDAP_LIBDIR
56053:   else
56054: 
56055:     ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
56056: 
56057:     ep_realdir=`(cd "$ep_dir" && pwd)`
56058:     ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"`
56059:   fi
56060: 
56061: 
56062: 
56063: 
56064: 
56065:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
56066: 
56067:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
56068:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
56069:     eval "LIBPATH$unique=set"
56070: 
56071:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
56072:     LDFLAGS="$LDFLAGS -L$ai_p"
56073:     PHP_RPATHS="$PHP_RPATHS $ai_p"
56074: 
56075:   fi
56076: 
56077: 
56078: 
56079:   fi
56080: 
56081:   fi
56082: 
56083: 
56084:   case ldap50 in
56085:   c|c_r|pthread*) ;;
56086:   *)
56087:       LIBS="-lldap50 $LIBS"
56088:    ;;
56089:   esac
56090: 
56091: 
56092: 
56093: 
56094:   fi
56095: 
56096: 
56097: 
56098: 
56099:   if test "$ext_shared" = "yes"; then
56100:     LDAP_SHARED_LIBADD="-lprldap50 $LDAP_SHARED_LIBADD"
56101:     if test -n "$LDAP_LIBDIR"; then
56102: 
56103:   if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
56104: 
56105:   if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
56106:     ai_p=$LDAP_LIBDIR
56107:   else
56108: 
56109:     ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
56110: 
56111:     ep_realdir=`(cd "$ep_dir" && pwd)`
56112:     ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"`
56113:   fi
56114: 
56115: 
56116:       if test "$ext_shared" = "yes"; then
56117:         LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
56118:         test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
56119:       else
56120: 
56121: 
56122: 
56123:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
56124: 
56125:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
56126:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
56127:     eval "LIBPATH$unique=set"
56128: 
56129:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
56130:     LDFLAGS="$LDFLAGS -L$ai_p"
56131:     PHP_RPATHS="$PHP_RPATHS $ai_p"
56132: 
56133:   fi
56134: 
56135: 
56136:       fi
56137: 
56138:   fi
56139: 
56140:     fi
56141:   else
56142: 
56143: 
56144:   if test -n "$LDAP_LIBDIR"; then
56145: 
56146:   if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
56147: 
56148:   if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
56149:     ai_p=$LDAP_LIBDIR
56150:   else
56151: 
56152:     ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
56153: 
56154:     ep_realdir=`(cd "$ep_dir" && pwd)`
56155:     ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"`
56156:   fi
56157: 
56158: 
56159: 
56160: 
56161: 
56162:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
56163: 
56164:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
56165:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
56166:     eval "LIBPATH$unique=set"
56167: 
56168:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
56169:     LDFLAGS="$LDFLAGS -L$ai_p"
56170:     PHP_RPATHS="$PHP_RPATHS $ai_p"
56171: 
56172:   fi
56173: 
56174: 
56175: 
56176:   fi
56177: 
56178:   fi
56179: 
56180: 
56181:   case prldap50 in
56182:   c|c_r|pthread*) ;;
56183:   *)
56184:       LIBS="-lprldap50 $LIBS"
56185:    ;;
56186:   esac
56187: 
56188: 
56189: 
56190: 
56191:   fi
56192: 
56193: 
56194: 
56195: 
56196:   if test "$ext_shared" = "yes"; then
56197:     LDAP_SHARED_LIBADD="-lssl3 $LDAP_SHARED_LIBADD"
56198:     if test -n "$LDAP_LIBDIR"; then
56199: 
56200:   if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
56201: 
56202:   if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
56203:     ai_p=$LDAP_LIBDIR
56204:   else
56205: 
56206:     ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
56207: 
56208:     ep_realdir=`(cd "$ep_dir" && pwd)`
56209:     ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"`
56210:   fi
56211: 
56212: 
56213:       if test "$ext_shared" = "yes"; then
56214:         LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
56215:         test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
56216:       else
56217: 
56218: 
56219: 
56220:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
56221: 
56222:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
56223:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
56224:     eval "LIBPATH$unique=set"
56225: 
56226:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
56227:     LDFLAGS="$LDFLAGS -L$ai_p"
56228:     PHP_RPATHS="$PHP_RPATHS $ai_p"
56229: 
56230:   fi
56231: 
56232: 
56233:       fi
56234: 
56235:   fi
56236: 
56237:     fi
56238:   else
56239: 
56240: 
56241:   if test -n "$LDAP_LIBDIR"; then
56242: 
56243:   if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
56244: 
56245:   if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
56246:     ai_p=$LDAP_LIBDIR
56247:   else
56248: 
56249:     ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
56250: 
56251:     ep_realdir=`(cd "$ep_dir" && pwd)`
56252:     ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"`
56253:   fi
56254: 
56255: 
56256: 
56257: 
56258: 
56259:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
56260: 
56261:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
56262:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
56263:     eval "LIBPATH$unique=set"
56264: 
56265:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
56266:     LDFLAGS="$LDFLAGS -L$ai_p"
56267:     PHP_RPATHS="$PHP_RPATHS $ai_p"
56268: 
56269:   fi
56270: 
56271: 
56272: 
56273:   fi
56274: 
56275:   fi
56276: 
56277: 
56278:   case ssl3 in
56279:   c|c_r|pthread*) ;;
56280:   *)
56281:       LIBS="-lssl3 $LIBS"
56282:    ;;
56283:   esac
56284: 
56285: 
56286: 
56287: 
56288:   fi
56289: 
56290: 
56291: 
56292: $as_echo "#define HAVE_NSLDAP 1" >>confdefs.h
56293: 
56294: 
56295:   elif test -f $LDAP_LIBDIR/libldapssl41.$SHLIB_SUFFIX_NAME; then
56296:     if test -n "$LDAP_PTHREAD"; then
56297: 
56298: 
56299:   case $LDAP_PTHREAD in
56300:   c|c_r|pthread*) ;;
56301:   *)
56302:       LIBS="-l$LDAP_PTHREAD $LIBS"
56303:    ;;
56304:   esac
56305: 
56306: 
56307:     fi
56308: 
56309: 
56310:   if test "$ext_shared" = "yes"; then
56311:     LDAP_SHARED_LIBADD="-lnspr3 $LDAP_SHARED_LIBADD"
56312:     if test -n "$LDAP_LIBDIR"; then
56313: 
56314:   if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
56315: 
56316:   if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
56317:     ai_p=$LDAP_LIBDIR
56318:   else
56319: 
56320:     ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
56321: 
56322:     ep_realdir=`(cd "$ep_dir" && pwd)`
56323:     ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"`
56324:   fi
56325: 
56326: 
56327:       if test "$ext_shared" = "yes"; then
56328:         LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
56329:         test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
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:     fi
56352:   else
56353: 
56354: 
56355:   if test -n "$LDAP_LIBDIR"; then
56356: 
56357:   if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
56358: 
56359:   if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
56360:     ai_p=$LDAP_LIBDIR
56361:   else
56362: 
56363:     ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
56364: 
56365:     ep_realdir=`(cd "$ep_dir" && pwd)`
56366:     ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"`
56367:   fi
56368: 
56369: 
56370: 
56371: 
56372: 
56373:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
56374: 
56375:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
56376:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
56377:     eval "LIBPATH$unique=set"
56378: 
56379:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
56380:     LDFLAGS="$LDFLAGS -L$ai_p"
56381:     PHP_RPATHS="$PHP_RPATHS $ai_p"
56382: 
56383:   fi
56384: 
56385: 
56386: 
56387:   fi
56388: 
56389:   fi
56390: 
56391: 
56392:   case nspr3 in
56393:   c|c_r|pthread*) ;;
56394:   *)
56395:       LIBS="-lnspr3 $LIBS"
56396:    ;;
56397:   esac
56398: 
56399: 
56400: 
56401: 
56402:   fi
56403: 
56404: 
56405: 
56406: 
56407:   if test "$ext_shared" = "yes"; then
56408:     LDAP_SHARED_LIBADD="-lplc3 $LDAP_SHARED_LIBADD"
56409:     if test -n "$LDAP_LIBDIR"; then
56410: 
56411:   if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
56412: 
56413:   if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
56414:     ai_p=$LDAP_LIBDIR
56415:   else
56416: 
56417:     ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
56418: 
56419:     ep_realdir=`(cd "$ep_dir" && pwd)`
56420:     ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"`
56421:   fi
56422: 
56423: 
56424:       if test "$ext_shared" = "yes"; then
56425:         LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
56426:         test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
56427:       else
56428: 
56429: 
56430: 
56431:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
56432: 
56433:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
56434:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
56435:     eval "LIBPATH$unique=set"
56436: 
56437:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
56438:     LDFLAGS="$LDFLAGS -L$ai_p"
56439:     PHP_RPATHS="$PHP_RPATHS $ai_p"
56440: 
56441:   fi
56442: 
56443: 
56444:       fi
56445: 
56446:   fi
56447: 
56448:     fi
56449:   else
56450: 
56451: 
56452:   if test -n "$LDAP_LIBDIR"; then
56453: 
56454:   if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
56455: 
56456:   if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
56457:     ai_p=$LDAP_LIBDIR
56458:   else
56459: 
56460:     ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
56461: 
56462:     ep_realdir=`(cd "$ep_dir" && pwd)`
56463:     ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"`
56464:   fi
56465: 
56466: 
56467: 
56468: 
56469: 
56470:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
56471: 
56472:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
56473:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
56474:     eval "LIBPATH$unique=set"
56475: 
56476:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
56477:     LDFLAGS="$LDFLAGS -L$ai_p"
56478:     PHP_RPATHS="$PHP_RPATHS $ai_p"
56479: 
56480:   fi
56481: 
56482: 
56483: 
56484:   fi
56485: 
56486:   fi
56487: 
56488: 
56489:   case plc3 in
56490:   c|c_r|pthread*) ;;
56491:   *)
56492:       LIBS="-lplc3 $LIBS"
56493:    ;;
56494:   esac
56495: 
56496: 
56497: 
56498: 
56499:   fi
56500: 
56501: 
56502: 
56503: 
56504:   if test "$ext_shared" = "yes"; then
56505:     LDAP_SHARED_LIBADD="-lplds3 $LDAP_SHARED_LIBADD"
56506:     if test -n "$LDAP_LIBDIR"; then
56507: 
56508:   if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
56509: 
56510:   if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
56511:     ai_p=$LDAP_LIBDIR
56512:   else
56513: 
56514:     ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
56515: 
56516:     ep_realdir=`(cd "$ep_dir" && pwd)`
56517:     ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"`
56518:   fi
56519: 
56520: 
56521:       if test "$ext_shared" = "yes"; then
56522:         LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
56523:         test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
56524:       else
56525: 
56526: 
56527: 
56528:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
56529: 
56530:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
56531:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
56532:     eval "LIBPATH$unique=set"
56533: 
56534:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
56535:     LDFLAGS="$LDFLAGS -L$ai_p"
56536:     PHP_RPATHS="$PHP_RPATHS $ai_p"
56537: 
56538:   fi
56539: 
56540: 
56541:       fi
56542: 
56543:   fi
56544: 
56545:     fi
56546:   else
56547: 
56548: 
56549:   if test -n "$LDAP_LIBDIR"; then
56550: 
56551:   if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
56552: 
56553:   if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
56554:     ai_p=$LDAP_LIBDIR
56555:   else
56556: 
56557:     ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
56558: 
56559:     ep_realdir=`(cd "$ep_dir" && pwd)`
56560:     ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"`
56561:   fi
56562: 
56563: 
56564: 
56565: 
56566: 
56567:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
56568: 
56569:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
56570:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
56571:     eval "LIBPATH$unique=set"
56572: 
56573:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
56574:     LDFLAGS="$LDFLAGS -L$ai_p"
56575:     PHP_RPATHS="$PHP_RPATHS $ai_p"
56576: 
56577:   fi
56578: 
56579: 
56580: 
56581:   fi
56582: 
56583:   fi
56584: 
56585: 
56586:   case plds3 in
56587:   c|c_r|pthread*) ;;
56588:   *)
56589:       LIBS="-lplds3 $LIBS"
56590:    ;;
56591:   esac
56592: 
56593: 
56594: 
56595: 
56596:   fi
56597: 
56598: 
56599: 
56600: 
56601:   if test "$ext_shared" = "yes"; then
56602:     LDAP_SHARED_LIBADD="-lldapssl41 $LDAP_SHARED_LIBADD"
56603:     if test -n "$LDAP_LIBDIR"; then
56604: 
56605:   if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
56606: 
56607:   if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
56608:     ai_p=$LDAP_LIBDIR
56609:   else
56610: 
56611:     ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
56612: 
56613:     ep_realdir=`(cd "$ep_dir" && pwd)`
56614:     ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"`
56615:   fi
56616: 
56617: 
56618:       if test "$ext_shared" = "yes"; then
56619:         LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
56620:         test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
56621:       else
56622: 
56623: 
56624: 
56625:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
56626: 
56627:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
56628:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
56629:     eval "LIBPATH$unique=set"
56630: 
56631:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
56632:     LDFLAGS="$LDFLAGS -L$ai_p"
56633:     PHP_RPATHS="$PHP_RPATHS $ai_p"
56634: 
56635:   fi
56636: 
56637: 
56638:       fi
56639: 
56640:   fi
56641: 
56642:     fi
56643:   else
56644: 
56645: 
56646:   if test -n "$LDAP_LIBDIR"; then
56647: 
56648:   if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
56649: 
56650:   if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
56651:     ai_p=$LDAP_LIBDIR
56652:   else
56653: 
56654:     ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
56655: 
56656:     ep_realdir=`(cd "$ep_dir" && pwd)`
56657:     ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"`
56658:   fi
56659: 
56660: 
56661: 
56662: 
56663: 
56664:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
56665: 
56666:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
56667:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
56668:     eval "LIBPATH$unique=set"
56669: 
56670:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
56671:     LDFLAGS="$LDFLAGS -L$ai_p"
56672:     PHP_RPATHS="$PHP_RPATHS $ai_p"
56673: 
56674:   fi
56675: 
56676: 
56677: 
56678:   fi
56679: 
56680:   fi
56681: 
56682: 
56683:   case ldapssl41 in
56684:   c|c_r|pthread*) ;;
56685:   *)
56686:       LIBS="-lldapssl41 $LIBS"
56687:    ;;
56688:   esac
56689: 
56690: 
56691: 
56692: 
56693:   fi
56694: 
56695: 
56696: 
56697: $as_echo "#define HAVE_NSLDAP 1" >>confdefs.h
56698: 
56699: 
56700:   elif test -f $LDAP_LIBDIR/libldapssl30.$SHLIB_SUFFIX_NAME; then
56701:     if test -n "$LDAP_PTHREAD"; then
56702: 
56703: 
56704:   case $LDAP_PTHREAD in
56705:   c|c_r|pthread*) ;;
56706:   *)
56707:       LIBS="-l$LDAP_PTHREAD $LIBS"
56708:    ;;
56709:   esac
56710: 
56711: 
56712:     fi
56713: 
56714: 
56715:   if test "$ext_shared" = "yes"; then
56716:     LDAP_SHARED_LIBADD="-lldapssl30 $LDAP_SHARED_LIBADD"
56717:     if test -n "$LDAP_LIBDIR"; then
56718: 
56719:   if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
56720: 
56721:   if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
56722:     ai_p=$LDAP_LIBDIR
56723:   else
56724: 
56725:     ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
56726: 
56727:     ep_realdir=`(cd "$ep_dir" && pwd)`
56728:     ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"`
56729:   fi
56730: 
56731: 
56732:       if test "$ext_shared" = "yes"; then
56733:         LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
56734:         test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
56735:       else
56736: 
56737: 
56738: 
56739:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
56740: 
56741:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
56742:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
56743:     eval "LIBPATH$unique=set"
56744: 
56745:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
56746:     LDFLAGS="$LDFLAGS -L$ai_p"
56747:     PHP_RPATHS="$PHP_RPATHS $ai_p"
56748: 
56749:   fi
56750: 
56751: 
56752:       fi
56753: 
56754:   fi
56755: 
56756:     fi
56757:   else
56758: 
56759: 
56760:   if test -n "$LDAP_LIBDIR"; then
56761: 
56762:   if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
56763: 
56764:   if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
56765:     ai_p=$LDAP_LIBDIR
56766:   else
56767: 
56768:     ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
56769: 
56770:     ep_realdir=`(cd "$ep_dir" && pwd)`
56771:     ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"`
56772:   fi
56773: 
56774: 
56775: 
56776: 
56777: 
56778:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
56779: 
56780:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
56781:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
56782:     eval "LIBPATH$unique=set"
56783: 
56784:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
56785:     LDFLAGS="$LDFLAGS -L$ai_p"
56786:     PHP_RPATHS="$PHP_RPATHS $ai_p"
56787: 
56788:   fi
56789: 
56790: 
56791: 
56792:   fi
56793: 
56794:   fi
56795: 
56796: 
56797:   case ldapssl30 in
56798:   c|c_r|pthread*) ;;
56799:   *)
56800:       LIBS="-lldapssl30 $LIBS"
56801:    ;;
56802:   esac
56803: 
56804: 
56805: 
56806: 
56807:   fi
56808: 
56809: 
56810: 
56811: $as_echo "#define HAVE_NSLDAP 1" >>confdefs.h
56812: 
56813: 
56814:   elif test -f $LDAP_LIBDIR/libldap30.$SHLIB_SUFFIX_NAME; then
56815:     if test -n "$LDAP_PTHREAD"; then
56816: 
56817: 
56818:   case $LDAP_PTHREAD in
56819:   c|c_r|pthread*) ;;
56820:   *)
56821:       LIBS="-l$LDAP_PTHREAD $LIBS"
56822:    ;;
56823:   esac
56824: 
56825: 
56826:     fi
56827: 
56828: 
56829:   if test "$ext_shared" = "yes"; then
56830:     LDAP_SHARED_LIBADD="-lldap30 $LDAP_SHARED_LIBADD"
56831:     if test -n "$LDAP_LIBDIR"; then
56832: 
56833:   if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
56834: 
56835:   if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
56836:     ai_p=$LDAP_LIBDIR
56837:   else
56838: 
56839:     ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
56840: 
56841:     ep_realdir=`(cd "$ep_dir" && pwd)`
56842:     ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"`
56843:   fi
56844: 
56845: 
56846:       if test "$ext_shared" = "yes"; then
56847:         LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
56848:         test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
56849:       else
56850: 
56851: 
56852: 
56853:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
56854: 
56855:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
56856:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
56857:     eval "LIBPATH$unique=set"
56858: 
56859:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
56860:     LDFLAGS="$LDFLAGS -L$ai_p"
56861:     PHP_RPATHS="$PHP_RPATHS $ai_p"
56862: 
56863:   fi
56864: 
56865: 
56866:       fi
56867: 
56868:   fi
56869: 
56870:     fi
56871:   else
56872: 
56873: 
56874:   if test -n "$LDAP_LIBDIR"; then
56875: 
56876:   if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
56877: 
56878:   if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
56879:     ai_p=$LDAP_LIBDIR
56880:   else
56881: 
56882:     ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
56883: 
56884:     ep_realdir=`(cd "$ep_dir" && pwd)`
56885:     ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"`
56886:   fi
56887: 
56888: 
56889: 
56890: 
56891: 
56892:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
56893: 
56894:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
56895:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
56896:     eval "LIBPATH$unique=set"
56897: 
56898:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
56899:     LDFLAGS="$LDFLAGS -L$ai_p"
56900:     PHP_RPATHS="$PHP_RPATHS $ai_p"
56901: 
56902:   fi
56903: 
56904: 
56905: 
56906:   fi
56907: 
56908:   fi
56909: 
56910: 
56911:   case ldap30 in
56912:   c|c_r|pthread*) ;;
56913:   *)
56914:       LIBS="-lldap30 $LIBS"
56915:    ;;
56916:   esac
56917: 
56918: 
56919: 
56920: 
56921:   fi
56922: 
56923: 
56924: 
56925: $as_echo "#define HAVE_NSLDAP 1" >>confdefs.h
56926: 
56927: 
56928:   elif test -f $LDAP_LIBDIR/libumich_ldap.$SHLIB_SUFFIX_NAME; then
56929: 
56930: 
56931:   if test "$ext_shared" = "yes"; then
56932:     LDAP_SHARED_LIBADD="-lumich_lber $LDAP_SHARED_LIBADD"
56933:     if test -n "$LDAP_LIBDIR"; then
56934: 
56935:   if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
56936: 
56937:   if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
56938:     ai_p=$LDAP_LIBDIR
56939:   else
56940: 
56941:     ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
56942: 
56943:     ep_realdir=`(cd "$ep_dir" && pwd)`
56944:     ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"`
56945:   fi
56946: 
56947: 
56948:       if test "$ext_shared" = "yes"; then
56949:         LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
56950:         test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
56951:       else
56952: 
56953: 
56954: 
56955:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
56956: 
56957:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
56958:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
56959:     eval "LIBPATH$unique=set"
56960: 
56961:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
56962:     LDFLAGS="$LDFLAGS -L$ai_p"
56963:     PHP_RPATHS="$PHP_RPATHS $ai_p"
56964: 
56965:   fi
56966: 
56967: 
56968:       fi
56969: 
56970:   fi
56971: 
56972:     fi
56973:   else
56974: 
56975: 
56976:   if test -n "$LDAP_LIBDIR"; then
56977: 
56978:   if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
56979: 
56980:   if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
56981:     ai_p=$LDAP_LIBDIR
56982:   else
56983: 
56984:     ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
56985: 
56986:     ep_realdir=`(cd "$ep_dir" && pwd)`
56987:     ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"`
56988:   fi
56989: 
56990: 
56991: 
56992: 
56993: 
56994:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
56995: 
56996:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
56997:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
56998:     eval "LIBPATH$unique=set"
56999: 
57000:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
57001:     LDFLAGS="$LDFLAGS -L$ai_p"
57002:     PHP_RPATHS="$PHP_RPATHS $ai_p"
57003: 
57004:   fi
57005: 
57006: 
57007: 
57008:   fi
57009: 
57010:   fi
57011: 
57012: 
57013:   case umich_lber in
57014:   c|c_r|pthread*) ;;
57015:   *)
57016:       LIBS="-lumich_lber $LIBS"
57017:    ;;
57018:   esac
57019: 
57020: 
57021: 
57022: 
57023:   fi
57024: 
57025: 
57026: 
57027: 
57028:   if test "$ext_shared" = "yes"; then
57029:     LDAP_SHARED_LIBADD="-lumich_ldap $LDAP_SHARED_LIBADD"
57030:     if test -n "$LDAP_LIBDIR"; then
57031: 
57032:   if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
57033: 
57034:   if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
57035:     ai_p=$LDAP_LIBDIR
57036:   else
57037: 
57038:     ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
57039: 
57040:     ep_realdir=`(cd "$ep_dir" && pwd)`
57041:     ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"`
57042:   fi
57043: 
57044: 
57045:       if test "$ext_shared" = "yes"; then
57046:         LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
57047:         test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
57048:       else
57049: 
57050: 
57051: 
57052:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
57053: 
57054:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
57055:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
57056:     eval "LIBPATH$unique=set"
57057: 
57058:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
57059:     LDFLAGS="$LDFLAGS -L$ai_p"
57060:     PHP_RPATHS="$PHP_RPATHS $ai_p"
57061: 
57062:   fi
57063: 
57064: 
57065:       fi
57066: 
57067:   fi
57068: 
57069:     fi
57070:   else
57071: 
57072: 
57073:   if test -n "$LDAP_LIBDIR"; then
57074: 
57075:   if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
57076: 
57077:   if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
57078:     ai_p=$LDAP_LIBDIR
57079:   else
57080: 
57081:     ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
57082: 
57083:     ep_realdir=`(cd "$ep_dir" && pwd)`
57084:     ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"`
57085:   fi
57086: 
57087: 
57088: 
57089: 
57090: 
57091:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
57092: 
57093:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
57094:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
57095:     eval "LIBPATH$unique=set"
57096: 
57097:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
57098:     LDFLAGS="$LDFLAGS -L$ai_p"
57099:     PHP_RPATHS="$PHP_RPATHS $ai_p"
57100: 
57101:   fi
57102: 
57103: 
57104: 
57105:   fi
57106: 
57107:   fi
57108: 
57109: 
57110:   case umich_ldap in
57111:   c|c_r|pthread*) ;;
57112:   *)
57113:       LIBS="-lumich_ldap $LIBS"
57114:    ;;
57115:   esac
57116: 
57117: 
57118: 
57119: 
57120:   fi
57121: 
57122: 
57123: 
57124:   elif test -f $LDAP_LIBDIR/libclntsh.$SHLIB_SUFFIX_NAME; then
57125: 
57126: 
57127:   if test "$ext_shared" = "yes"; then
57128:     LDAP_SHARED_LIBADD="-lclntsh $LDAP_SHARED_LIBADD"
57129:     if test -n "$LDAP_LIBDIR"; then
57130: 
57131:   if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
57132: 
57133:   if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
57134:     ai_p=$LDAP_LIBDIR
57135:   else
57136: 
57137:     ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
57138: 
57139:     ep_realdir=`(cd "$ep_dir" && pwd)`
57140:     ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"`
57141:   fi
57142: 
57143: 
57144:       if test "$ext_shared" = "yes"; then
57145:         LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
57146:         test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
57147:       else
57148: 
57149: 
57150: 
57151:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
57152: 
57153:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
57154:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
57155:     eval "LIBPATH$unique=set"
57156: 
57157:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
57158:     LDFLAGS="$LDFLAGS -L$ai_p"
57159:     PHP_RPATHS="$PHP_RPATHS $ai_p"
57160: 
57161:   fi
57162: 
57163: 
57164:       fi
57165: 
57166:   fi
57167: 
57168:     fi
57169:   else
57170: 
57171: 
57172:   if test -n "$LDAP_LIBDIR"; then
57173: 
57174:   if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
57175: 
57176:   if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
57177:     ai_p=$LDAP_LIBDIR
57178:   else
57179: 
57180:     ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
57181: 
57182:     ep_realdir=`(cd "$ep_dir" && pwd)`
57183:     ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"`
57184:   fi
57185: 
57186: 
57187: 
57188: 
57189: 
57190:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
57191: 
57192:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
57193:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
57194:     eval "LIBPATH$unique=set"
57195: 
57196:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
57197:     LDFLAGS="$LDFLAGS -L$ai_p"
57198:     PHP_RPATHS="$PHP_RPATHS $ai_p"
57199: 
57200:   fi
57201: 
57202: 
57203: 
57204:   fi
57205: 
57206:   fi
57207: 
57208: 
57209:   case clntsh in
57210:   c|c_r|pthread*) ;;
57211:   *)
57212:       LIBS="-lclntsh $LIBS"
57213:    ;;
57214:   esac
57215: 
57216: 
57217: 
57218: 
57219:   fi
57220: 
57221: 
57222: 
57223: $as_echo "#define HAVE_ORALDAP 1" >>confdefs.h
57224: 
57225:     if test -f $LDAP_LIBDIR/libclntsh.$SHLIB_SUFFIX_NAME.10.1; then
57226: 
57227: $as_echo "#define HAVE_ORALDAP_10 1" >>confdefs.h
57228: 
57229:     fi
57230:   else
57231:     as_fn_error $? "Cannot find ldap libraries in $LDAP_LIBDIR." "$LINENO" 5
57232:   fi
57233: 
57234: 
57235:   if test "$LDAP_INCDIR" != "/usr/include"; then
57236: 
57237:   if test -z "$LDAP_INCDIR" || echo "$LDAP_INCDIR" | grep '^/' >/dev/null ; then
57238:     ai_p=$LDAP_INCDIR
57239:   else
57240: 
57241:     ep_dir=`echo $LDAP_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`
57242: 
57243:     ep_realdir=`(cd "$ep_dir" && pwd)`
57244:     ai_p="$ep_realdir"/`basename "$LDAP_INCDIR"`
57245:   fi
57246: 
57247: 
57248: 
57249:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
57250: 
57251:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
57252:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
57253:     eval "INCLUDEPATH$unique=set"
57254: 
57255:       if test ""; then
57256:         INCLUDES="-I$ai_p $INCLUDES"
57257:       else
57258:         INCLUDES="$INCLUDES -I$ai_p"
57259:       fi
57260: 
57261:   fi
57262: 
57263:   fi
57264: 
57265: 
57266:   PHP_VAR_SUBST="$PHP_VAR_SUBST LDAP_SHARED_LIBADD"
57267: 
57268: 
57269: $as_echo "#define HAVE_LDAP 1" >>confdefs.h
57270: 
57271: 
57272:     _SAVE_CPPFLAGS=$CPPFLAGS
57273:   _SAVE_LIBS=$LIBS
57274:   CPPFLAGS="$CPPFLAGS -I$LDAP_INCDIR"
57275:   LIBS="$LIBS $LDAP_SHARED_LIBADD"
57276: 
57277:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 3 arg ldap_set_rebind_proc" >&5
57278: $as_echo_n "checking for 3 arg ldap_set_rebind_proc... " >&6; }
57279: if ${ac_cv_3arg_setrebindproc+:} false; then :
57280:   $as_echo_n "(cached) " >&6
57281: else
57282:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57283: /* end confdefs.h.  */
57284: #include <ldap.h>
57285: int
57286: main ()
57287: {
57288: ldap_set_rebind_proc(0,0,0)
57289:   ;
57290:   return 0;
57291: }
57292: _ACEOF
57293: if ac_fn_c_try_compile "$LINENO"; then :
57294:   ac_cv_3arg_setrebindproc=yes
57295: else
57296:   ac_cv_3arg_setrebindproc=no
57297: fi
57298: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57299: fi
57300: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_3arg_setrebindproc" >&5
57301: $as_echo "$ac_cv_3arg_setrebindproc" >&6; }
57302:   if test "$ac_cv_3arg_setrebindproc" = yes; then
57303: 
57304: $as_echo "#define HAVE_3ARG_SETREBINDPROC 1" >>confdefs.h
57305: 
57306:   fi
57307: 
57308:       for ac_func in ldap_parse_result ldap_parse_reference ldap_start_tls_s
57309: do :
57310:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
57311: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
57312: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
57313:   cat >>confdefs.h <<_ACEOF
57314: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
57315: _ACEOF
57316: 
57317: fi
57318: done
57319: 
57320: 
57321:         if test "$PHP_LDAP_SASL" != "no"; then
57322: 
57323:   if test "$PHP_LDAP_SASL" = "yes"; then
57324:     SEARCH_DIRS="/usr/local /usr"
57325:   else
57326:     SEARCH_DIRS=$PHP_LDAP_SASL
57327:   fi
57328: 
57329:   for i in $SEARCH_DIRS; do
57330:     if test -f $i/include/sasl/sasl.h; then
57331:       LDAP_SASL_DIR=$i
57332: 
57333: $as_echo "#define HAVE_LDAP_SASL_SASL_H 1" >>confdefs.h
57334: 
57335:       break
57336:     elif test -f $i/include/sasl.h; then
57337:       LDAP_SASL_DIR=$i
57338: 
57339: $as_echo "#define HAVE_LDAP_SASL_H 1" >>confdefs.h
57340: 
57341:       break
57342:     fi
57343:   done
57344: 
57345:   if test "$LDAP_SASL_DIR"; then
57346:     LDAP_SASL_INCDIR=$LDAP_SASL_DIR/include
57347:     LDAP_SASL_LIBDIR=$LDAP_SASL_DIR/$PHP_LIBDIR
57348:   else
57349:     as_fn_error $? "sasl.h not found!" "$LINENO" 5
57350:   fi
57351: 
57352:   if test "$PHP_LDAP_SASL" = "yes"; then
57353:     SASL_LIB="-lsasl2"
57354:   else
57355:     SASL_LIB="-L$LDAP_SASL_LIBDIR -lsasl2"
57356:   fi
57357: 
57358: 
57359:   save_old_LDFLAGS=$LDFLAGS
57360:   ac_stuff="
57361:     $LDAP_SHARED_LIBADD $SASL_LIB
57362:   "
57363: 
57364:   save_ext_shared=$ext_shared
57365:   ext_shared=yes
57366: 
57367:   for ac_i in $ac_stuff; do
57368:     case $ac_i in
57369:     -pthread)
57370:       if test "$ext_shared" = "yes"; then
57371:         LDFLAGS="$LDFLAGS -pthread"
57372:       else
57373: 
57374: 
57375:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
57376: 
57377:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
57378:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
57379:     eval "EXTRA_LDFLAGS$unique=set"
57380:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
57381:   fi
57382: 
57383:       fi
57384:     ;;
57385:     -l*)
57386:       ac_ii=`echo $ac_i|cut -c 3-`
57387: 
57388: 
57389:   case $ac_ii in
57390:   c|c_r|pthread*) ;;
57391:   *)
57392:     if test "$ext_shared" = "yes"; then
57393:         LDFLAGS="$LDFLAGS -l$ac_ii"
57394:     else
57395: 
57396: 
57397:   case $ac_ii in
57398:   c|c_r|pthread*) ;;
57399:   *)
57400:       LIBS="$LIBS -l$ac_ii"
57401:    ;;
57402:   esac
57403: 
57404: 
57405:     fi
57406:    ;;
57407:   esac
57408: 
57409: 
57410:     ;;
57411:     -L*)
57412:       ac_ii=`echo $ac_i|cut -c 3-`
57413: 
57414:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
57415: 
57416:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
57417:     ai_p=$ac_ii
57418:   else
57419: 
57420:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
57421: 
57422:     ep_realdir=`(cd "$ep_dir" && pwd)`
57423:     ai_p="$ep_realdir"/`basename "$ac_ii"`
57424:   fi
57425: 
57426: 
57427:       if test "$ext_shared" = "yes"; then
57428:         LDFLAGS="-L$ai_p $LDFLAGS"
57429:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
57430:       else
57431: 
57432: 
57433: 
57434:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
57435: 
57436:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
57437:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
57438:     eval "LIBPATH$unique=set"
57439: 
57440:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
57441:     LDFLAGS="$LDFLAGS -L$ai_p"
57442:     PHP_RPATHS="$PHP_RPATHS $ai_p"
57443: 
57444:   fi
57445: 
57446: 
57447:       fi
57448: 
57449:   fi
57450: 
57451:     ;;
57452:     esac
57453:   done
57454: 
57455:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sasl_version in -lsasl2" >&5
57456: $as_echo_n "checking for sasl_version in -lsasl2... " >&6; }
57457: if ${ac_cv_lib_sasl2_sasl_version+:} false; then :
57458:   $as_echo_n "(cached) " >&6
57459: else
57460:   ac_check_lib_save_LIBS=$LIBS
57461: LIBS="-lsasl2  $LIBS"
57462: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57463: /* end confdefs.h.  */
57464: 
57465: /* Override any GCC internal prototype to avoid an error.
57466:    Use char because int might match the return type of a GCC
57467:    builtin and then its argument prototype would still apply.  */
57468: #ifdef __cplusplus
57469: extern "C"
57470: #endif
57471: char sasl_version ();
57472: int
57473: main ()
57474: {
57475: return sasl_version ();
57476:   ;
57477:   return 0;
57478: }
57479: _ACEOF
57480: if ac_fn_c_try_link "$LINENO"; then :
57481:   ac_cv_lib_sasl2_sasl_version=yes
57482: else
57483:   ac_cv_lib_sasl2_sasl_version=no
57484: fi
57485: rm -f core conftest.err conftest.$ac_objext \
57486:     conftest$ac_exeext conftest.$ac_ext
57487: LIBS=$ac_check_lib_save_LIBS
57488: fi
57489: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl2_sasl_version" >&5
57490: $as_echo "$ac_cv_lib_sasl2_sasl_version" >&6; }
57491: if test "x$ac_cv_lib_sasl2_sasl_version" = xyes; then :
57492: 
57493:     LDFLAGS=$save_old_LDFLAGS
57494:     ext_shared=$save_ext_shared
57495: 
57496: 
57497:   if test "$LDAP_SASL_INCDIR" != "/usr/include"; then
57498: 
57499:   if test -z "$LDAP_SASL_INCDIR" || echo "$LDAP_SASL_INCDIR" | grep '^/' >/dev/null ; then
57500:     ai_p=$LDAP_SASL_INCDIR
57501:   else
57502: 
57503:     ep_dir=`echo $LDAP_SASL_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`
57504: 
57505:     ep_realdir=`(cd "$ep_dir" && pwd)`
57506:     ai_p="$ep_realdir"/`basename "$LDAP_SASL_INCDIR"`
57507:   fi
57508: 
57509: 
57510: 
57511:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
57512: 
57513:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
57514:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
57515:     eval "INCLUDEPATH$unique=set"
57516: 
57517:       if test ""; then
57518:         INCLUDES="-I$ai_p $INCLUDES"
57519:       else
57520:         INCLUDES="$INCLUDES -I$ai_p"
57521:       fi
57522: 
57523:   fi
57524: 
57525:   fi
57526: 
57527: 
57528: 
57529:   if test "$ext_shared" = "yes"; then
57530:     LDAP_SHARED_LIBADD="-lsasl2 $LDAP_SHARED_LIBADD"
57531:     if test -n "$LDAP_SASL_LIBDIR"; then
57532: 
57533:   if test "$LDAP_SASL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_SASL_LIBDIR" != "/usr/lib"; then
57534: 
57535:   if test -z "$LDAP_SASL_LIBDIR" || echo "$LDAP_SASL_LIBDIR" | grep '^/' >/dev/null ; then
57536:     ai_p=$LDAP_SASL_LIBDIR
57537:   else
57538: 
57539:     ep_dir=`echo $LDAP_SASL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
57540: 
57541:     ep_realdir=`(cd "$ep_dir" && pwd)`
57542:     ai_p="$ep_realdir"/`basename "$LDAP_SASL_LIBDIR"`
57543:   fi
57544: 
57545: 
57546:       if test "$ext_shared" = "yes"; then
57547:         LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
57548:         test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
57549:       else
57550: 
57551: 
57552: 
57553:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
57554: 
57555:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
57556:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
57557:     eval "LIBPATH$unique=set"
57558: 
57559:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
57560:     LDFLAGS="$LDFLAGS -L$ai_p"
57561:     PHP_RPATHS="$PHP_RPATHS $ai_p"
57562: 
57563:   fi
57564: 
57565: 
57566:       fi
57567: 
57568:   fi
57569: 
57570:     fi
57571:   else
57572: 
57573: 
57574:   if test -n "$LDAP_SASL_LIBDIR"; then
57575: 
57576:   if test "$LDAP_SASL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_SASL_LIBDIR" != "/usr/lib"; then
57577: 
57578:   if test -z "$LDAP_SASL_LIBDIR" || echo "$LDAP_SASL_LIBDIR" | grep '^/' >/dev/null ; then
57579:     ai_p=$LDAP_SASL_LIBDIR
57580:   else
57581: 
57582:     ep_dir=`echo $LDAP_SASL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
57583: 
57584:     ep_realdir=`(cd "$ep_dir" && pwd)`
57585:     ai_p="$ep_realdir"/`basename "$LDAP_SASL_LIBDIR"`
57586:   fi
57587: 
57588: 
57589: 
57590: 
57591: 
57592:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
57593: 
57594:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
57595:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
57596:     eval "LIBPATH$unique=set"
57597: 
57598:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
57599:     LDFLAGS="$LDFLAGS -L$ai_p"
57600:     PHP_RPATHS="$PHP_RPATHS $ai_p"
57601: 
57602:   fi
57603: 
57604: 
57605: 
57606:   fi
57607: 
57608:   fi
57609: 
57610: 
57611:   case sasl2 in
57612:   c|c_r|pthread*) ;;
57613:   *)
57614:       LIBS="-lsasl2 $LIBS"
57615:    ;;
57616:   esac
57617: 
57618: 
57619: 
57620: 
57621:   fi
57622: 
57623: 
57624: 
57625: $as_echo "#define HAVE_LDAP_SASL 1" >>confdefs.h
57626: 
57627: 
57628: 
57629: else
57630: 
57631:     LDFLAGS=$save_old_LDFLAGS
57632:     ext_shared=$save_ext_shared
57633:     unset ac_cv_lib_sasl2_sasl_version
57634: 
57635:     as_fn_error $? "LDAP SASL check failed. Please check config.log for more information." "$LINENO" 5
57636: 
57637: 
57638: fi
57639: 
57640: 
57641:   fi
57642: 
57643:         ac_fn_c_check_func "$LINENO" "ldap_bind_s" "ac_cv_func_ldap_bind_s"
57644: if test "x$ac_cv_func_ldap_bind_s" = xyes; then :
57645: 
57646: else
57647: 
57648:     as_fn_error $? "LDAP build check failed. Please check config.log for more information." "$LINENO" 5
57649: 
57650: fi
57651: 
57652: 
57653:     CPPFLAGS=$_SAVE_CPPFLAGS
57654:   LIBS=$_SAVE_LIBS
57655: fi
57656: 
57657: 
57658: 
57659: 
57660: 
57661: 
57662: 
57663: 
57664: 
57665: 
57666: 
57667: 
57668: 
57669: 
57670: 
57671: 
57672: 
57673: 
57674: 
57675: 
57676: 
57677: 
57678: 
57679: 
57680: php_enable_mbstring=no
57681: 
57682: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable multibyte string support" >&5
57683: $as_echo_n "checking whether to enable multibyte string support... " >&6; }
57684: # Check whether --enable-mbstring was given.
57685: if test "${enable_mbstring+set}" = set; then :
57686:   enableval=$enable_mbstring; PHP_MBSTRING=$enableval
57687: else
57688: 
57689:   PHP_MBSTRING=no
57690:   test "$PHP_ENABLE_ALL" && PHP_MBSTRING=$PHP_ENABLE_ALL
57691: 
57692: fi
57693: 
57694: 
57695: 
57696: ext_output="yes, shared"
57697: ext_shared=yes
57698: case $PHP_MBSTRING in
57699: shared,*)
57700:   PHP_MBSTRING=`echo "$PHP_MBSTRING"|$SED 's/^shared,//'`
57701:   ;;
57702: shared)
57703:   PHP_MBSTRING=yes
57704:   ;;
57705: no)
57706:   ext_output=no
57707:   ext_shared=no
57708:   ;;
57709: *)
57710:   ext_output=yes
57711:   ext_shared=no
57712:   ;;
57713: esac
57714: 
57715: 
57716: 
57717: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
57718: $as_echo "$ext_output" >&6; }
57719: 
57720: 
57721: 
57722: 
57723: 
57724: php_enable_mbregex=yes
57725: 
57726: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable multibyte regex support" >&5
57727: $as_echo_n "checking whether to enable multibyte regex support... " >&6; }
57728: # Check whether --enable-mbregex was given.
57729: if test "${enable_mbregex+set}" = set; then :
57730:   enableval=$enable_mbregex; PHP_MBREGEX=$enableval
57731: else
57732: 
57733:   PHP_MBREGEX=yes
57734: 
57735: 
57736: fi
57737: 
57738: 
57739: ext_output=$PHP_MBREGEX
57740: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
57741: $as_echo "$ext_output" >&6; }
57742: 
57743: 
57744: 
57745: 
57746: 
57747: php_enable_mbregex_backtrack=yes
57748: 
57749: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check multibyte regex backtrack" >&5
57750: $as_echo_n "checking whether to check multibyte regex backtrack... " >&6; }
57751: # Check whether --enable-mbregex_backtrack was given.
57752: if test "${enable_mbregex_backtrack+set}" = set; then :
57753:   enableval=$enable_mbregex_backtrack; PHP_MBREGEX_BACKTRACK=$enableval
57754: else
57755: 
57756:   PHP_MBREGEX_BACKTRACK=yes
57757: 
57758: 
57759: fi
57760: 
57761: 
57762: ext_output=$PHP_MBREGEX_BACKTRACK
57763: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
57764: $as_echo "$ext_output" >&6; }
57765: 
57766: 
57767: 
57768: 
57769: 
57770: php_with_libmbfl=no
57771: 
57772: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for external libmbfl" >&5
57773: $as_echo_n "checking for external libmbfl... " >&6; }
57774: 
57775: # Check whether --with-libmbfl was given.
57776: if test "${with_libmbfl+set}" = set; then :
57777:   withval=$with_libmbfl; PHP_LIBMBFL=$withval
57778: else
57779: 
57780:   PHP_LIBMBFL=no
57781: 
57782: 
57783: fi
57784: 
57785: 
57786: ext_output=$PHP_LIBMBFL
57787: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
57788: $as_echo "$ext_output" >&6; }
57789: 
57790: 
57791: 
57792: 
57793: 
57794: php_with_onig=no
57795: 
57796: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for external oniguruma" >&5
57797: $as_echo_n "checking for external oniguruma... " >&6; }
57798: 
57799: # Check whether --with-onig was given.
57800: if test "${with_onig+set}" = set; then :
57801:   withval=$with_onig; PHP_ONIG=$withval
57802: else
57803: 
57804:   PHP_ONIG=no
57805: 
57806: 
57807: fi
57808: 
57809: 
57810: ext_output=$PHP_ONIG
57811: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
57812: $as_echo "$ext_output" >&6; }
57813: 
57814: 
57815: 
57816: 
57817: if test "$PHP_MBSTRING" != "no"; then
57818: 
57819: $as_echo "#define HAVE_MBSTRING 1" >>confdefs.h
57820: 
57821: 
57822: 
57823:   PHP_MBSTRING_BASE_SOURCES="$PHP_MBSTRING_BASE_SOURCES mbstring.c php_unicode.c mb_gpc.c"
57824: 
57825: 
57826:   if test "$PHP_MBREGEX" != "no"; then
57827: 
57828:   if test "$PHP_MBREGEX" = "yes"; then
57829:     if test "$PHP_ONIG" = "yes" || test "$PHP_ONIG" = "no"; then
57830:                         if test "$PHP_MBREGEX_BACKTRACK" != "no"; then
57831: 
57832: $as_echo "#define USE_COMBINATION_EXPLOSION_CHECK 1" >>confdefs.h
57833: 
57834:       fi
57835: 
57836:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable length prototypes and stdarg.h" >&5
57837: $as_echo_n "checking for variable length prototypes and stdarg.h... " >&6; }
57838: if ${php_cv_mbstring_stdarg+:} false; then :
57839:   $as_echo_n "(cached) " >&6
57840: else
57841: 
57842:         if test "$cross_compiling" = yes; then :
57843: 
57844:                     case $host_alias in
57845:           *netware*)
57846:           php_cv_mbstring_stdarg=yes
57847:           ;;
57848:           *)
57849:           php_cv_mbstring_stdarg=no
57850:           ;;
57851:           esac
57852: 
57853: else
57854:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57855: /* end confdefs.h.  */
57856: 
57857: #include <stdarg.h>
57858: int foo(int x, ...) {
57859: 	va_list va;
57860: 	va_start(va, x);
57861: 	va_arg(va, int);
57862: 	va_arg(va, char *);
57863: 	va_arg(va, double);
57864: 	return 0;
57865: }
57866: int main() { return foo(10, "", 3.14); }
57867: 
57868: _ACEOF
57869: if ac_fn_c_try_run "$LINENO"; then :
57870:   php_cv_mbstring_stdarg=yes
57871: else
57872:   php_cv_mbstring_stdarg=no
57873: fi
57874: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
57875:   conftest.$ac_objext conftest.beam conftest.$ac_ext
57876: fi
57877: 
57878: 
57879: fi
57880: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_mbstring_stdarg" >&5
57881: $as_echo "$php_cv_mbstring_stdarg" >&6; }
57882: 
57883:       for ac_header in stdlib.h string.h strings.h unistd.h sys/time.h sys/times.h stdarg.h
57884: do :
57885:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
57886: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
57887: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
57888:   cat >>confdefs.h <<_ACEOF
57889: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
57890: _ACEOF
57891: 
57892: fi
57893: 
57894: done
57895: 
57896:       # The cast to long int works around a bug in the HP C Compiler
57897: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
57898: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
57899: # This bug is HP SR number 8606223364.
57900: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
57901: $as_echo_n "checking size of int... " >&6; }
57902: if ${ac_cv_sizeof_int+:} false; then :
57903:   $as_echo_n "(cached) " >&6
57904: else
57905:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
57906: 
57907: else
57908:   if test "$ac_cv_type_int" = yes; then
57909:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
57910: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
57911: as_fn_error 77 "cannot compute sizeof (int)
57912: See \`config.log' for more details" "$LINENO" 5; }
57913:    else
57914:      ac_cv_sizeof_int=0
57915:    fi
57916: fi
57917: 
57918: fi
57919: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
57920: $as_echo "$ac_cv_sizeof_int" >&6; }
57921: 
57922: 
57923: 
57924: cat >>confdefs.h <<_ACEOF
57925: #define SIZEOF_INT $ac_cv_sizeof_int
57926: _ACEOF
57927: 
57928: 
57929:       # The cast to long int works around a bug in the HP C Compiler
57930: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
57931: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
57932: # This bug is HP SR number 8606223364.
57933: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
57934: $as_echo_n "checking size of short... " >&6; }
57935: if ${ac_cv_sizeof_short+:} false; then :
57936:   $as_echo_n "(cached) " >&6
57937: else
57938:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
57939: 
57940: else
57941:   if test "$ac_cv_type_short" = yes; then
57942:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
57943: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
57944: as_fn_error 77 "cannot compute sizeof (short)
57945: See \`config.log' for more details" "$LINENO" 5; }
57946:    else
57947:      ac_cv_sizeof_short=0
57948:    fi
57949: fi
57950: 
57951: fi
57952: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
57953: $as_echo "$ac_cv_sizeof_short" >&6; }
57954: 
57955: 
57956: 
57957: cat >>confdefs.h <<_ACEOF
57958: #define SIZEOF_SHORT $ac_cv_sizeof_short
57959: _ACEOF
57960: 
57961: 
57962:       # The cast to long int works around a bug in the HP C Compiler
57963: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
57964: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
57965: # This bug is HP SR number 8606223364.
57966: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
57967: $as_echo_n "checking size of long... " >&6; }
57968: if ${ac_cv_sizeof_long+:} false; then :
57969:   $as_echo_n "(cached) " >&6
57970: else
57971:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
57972: 
57973: else
57974:   if test "$ac_cv_type_long" = yes; then
57975:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
57976: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
57977: as_fn_error 77 "cannot compute sizeof (long)
57978: See \`config.log' for more details" "$LINENO" 5; }
57979:    else
57980:      ac_cv_sizeof_long=0
57981:    fi
57982: fi
57983: 
57984: fi
57985: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
57986: $as_echo "$ac_cv_sizeof_long" >&6; }
57987: 
57988: 
57989: 
57990: cat >>confdefs.h <<_ACEOF
57991: #define SIZEOF_LONG $ac_cv_sizeof_long
57992: _ACEOF
57993: 
57994: 
57995:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
57996: $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
57997: if ${ac_cv_c_const+:} false; then :
57998:   $as_echo_n "(cached) " >&6
57999: else
58000:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58001: /* end confdefs.h.  */
58002: 
58003: int
58004: main ()
58005: {
58006: 
58007: #ifndef __cplusplus
58008:   /* Ultrix mips cc rejects this sort of thing.  */
58009:   typedef int charset[2];
58010:   const charset cs = { 0, 0 };
58011:   /* SunOS 4.1.1 cc rejects this.  */
58012:   char const *const *pcpcc;
58013:   char **ppc;
58014:   /* NEC SVR4.0.2 mips cc rejects this.  */
58015:   struct point {int x, y;};
58016:   static struct point const zero = {0,0};
58017:   /* AIX XL C 1.02.0.0 rejects this.
58018:      It does not let you subtract one const X* pointer from another in
58019:      an arm of an if-expression whose if-part is not a constant
58020:      expression */
58021:   const char *g = "string";
58022:   pcpcc = &g + (g ? g-g : 0);
58023:   /* HPUX 7.0 cc rejects these. */
58024:   ++pcpcc;
58025:   ppc = (char**) pcpcc;
58026:   pcpcc = (char const *const *) ppc;
58027:   { /* SCO 3.2v4 cc rejects this sort of thing.  */
58028:     char tx;
58029:     char *t = &tx;
58030:     char const *s = 0 ? (char *) 0 : (char const *) 0;
58031: 
58032:     *t++ = 0;
58033:     if (s) return 0;
58034:   }
58035:   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
58036:     int x[] = {25, 17};
58037:     const int *foo = &x[0];
58038:     ++foo;
58039:   }
58040:   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
58041:     typedef const int *iptr;
58042:     iptr p = 0;
58043:     ++p;
58044:   }
58045:   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
58046:        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
58047:     struct s { int j; const int *ap[3]; } bx;
58048:     struct s *b = &bx; b->j = 5;
58049:   }
58050:   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
58051:     const int foo = 10;
58052:     if (!foo) return 0;
58053:   }
58054:   return !cs[0] && !zero.x;
58055: #endif
58056: 
58057:   ;
58058:   return 0;
58059: }
58060: _ACEOF
58061: if ac_fn_c_try_compile "$LINENO"; then :
58062:   ac_cv_c_const=yes
58063: else
58064:   ac_cv_c_const=no
58065: fi
58066: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58067: fi
58068: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
58069: $as_echo "$ac_cv_c_const" >&6; }
58070: if test $ac_cv_c_const = no; then
58071: 
58072: $as_echo "#define const /**/" >>confdefs.h
58073: 
58074: fi
58075: 
58076:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
58077: $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
58078: if ${ac_cv_header_time+:} false; then :
58079:   $as_echo_n "(cached) " >&6
58080: else
58081:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58082: /* end confdefs.h.  */
58083: #include <sys/types.h>
58084: #include <sys/time.h>
58085: #include <time.h>
58086: 
58087: int
58088: main ()
58089: {
58090: if ((struct tm *) 0)
58091: return 0;
58092:   ;
58093:   return 0;
58094: }
58095: _ACEOF
58096: if ac_fn_c_try_compile "$LINENO"; then :
58097:   ac_cv_header_time=yes
58098: else
58099:   ac_cv_header_time=no
58100: fi
58101: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58102: fi
58103: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
58104: $as_echo "$ac_cv_header_time" >&6; }
58105: if test $ac_cv_header_time = yes; then
58106: 
58107: $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
58108: 
58109: fi
58110: 
58111:       # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
58112: # for constant arguments.  Useless!
58113: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
58114: $as_echo_n "checking for working alloca.h... " >&6; }
58115: if ${ac_cv_working_alloca_h+:} false; then :
58116:   $as_echo_n "(cached) " >&6
58117: else
58118:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58119: /* end confdefs.h.  */
58120: #include <alloca.h>
58121: int
58122: main ()
58123: {
58124: char *p = (char *) alloca (2 * sizeof (int));
58125: 			  if (p) return 0;
58126:   ;
58127:   return 0;
58128: }
58129: _ACEOF
58130: if ac_fn_c_try_link "$LINENO"; then :
58131:   ac_cv_working_alloca_h=yes
58132: else
58133:   ac_cv_working_alloca_h=no
58134: fi
58135: rm -f core conftest.err conftest.$ac_objext \
58136:     conftest$ac_exeext conftest.$ac_ext
58137: fi
58138: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
58139: $as_echo "$ac_cv_working_alloca_h" >&6; }
58140: if test $ac_cv_working_alloca_h = yes; then
58141: 
58142: $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
58143: 
58144: fi
58145: 
58146: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
58147: $as_echo_n "checking for alloca... " >&6; }
58148: if ${ac_cv_func_alloca_works+:} false; then :
58149:   $as_echo_n "(cached) " >&6
58150: else
58151:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58152: /* end confdefs.h.  */
58153: #ifdef __GNUC__
58154: # define alloca __builtin_alloca
58155: #else
58156: # ifdef _MSC_VER
58157: #  include <malloc.h>
58158: #  define alloca _alloca
58159: # else
58160: #  ifdef HAVE_ALLOCA_H
58161: #   include <alloca.h>
58162: #  else
58163: #   ifdef _AIX
58164:  #pragma alloca
58165: #   else
58166: #    ifndef alloca /* predefined by HP cc +Olibcalls */
58167: void *alloca (size_t);
58168: #    endif
58169: #   endif
58170: #  endif
58171: # endif
58172: #endif
58173: 
58174: int
58175: main ()
58176: {
58177: char *p = (char *) alloca (1);
58178: 				    if (p) return 0;
58179:   ;
58180:   return 0;
58181: }
58182: _ACEOF
58183: if ac_fn_c_try_link "$LINENO"; then :
58184:   ac_cv_func_alloca_works=yes
58185: else
58186:   ac_cv_func_alloca_works=no
58187: fi
58188: rm -f core conftest.err conftest.$ac_objext \
58189:     conftest$ac_exeext conftest.$ac_ext
58190: fi
58191: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
58192: $as_echo "$ac_cv_func_alloca_works" >&6; }
58193: 
58194: if test $ac_cv_func_alloca_works = yes; then
58195: 
58196: $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
58197: 
58198: else
58199:   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
58200: # that cause trouble.  Some versions do not even contain alloca or
58201: # contain a buggy version.  If you still want to use their alloca,
58202: # use ar to extract alloca.o from them instead of compiling alloca.c.
58203: 
58204: ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
58205: 
58206: $as_echo "#define C_ALLOCA 1" >>confdefs.h
58207: 
58208: 
58209: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
58210: $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
58211: if ${ac_cv_os_cray+:} false; then :
58212:   $as_echo_n "(cached) " >&6
58213: else
58214:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58215: /* end confdefs.h.  */
58216: #if defined CRAY && ! defined CRAY2
58217: webecray
58218: #else
58219: wenotbecray
58220: #endif
58221: 
58222: _ACEOF
58223: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58224:   $EGREP "webecray" >/dev/null 2>&1; then :
58225:   ac_cv_os_cray=yes
58226: else
58227:   ac_cv_os_cray=no
58228: fi
58229: rm -f conftest*
58230: 
58231: fi
58232: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
58233: $as_echo "$ac_cv_os_cray" >&6; }
58234: if test $ac_cv_os_cray = yes; then
58235:   for ac_func in _getb67 GETB67 getb67; do
58236:     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
58237: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
58238: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
58239: 
58240: cat >>confdefs.h <<_ACEOF
58241: #define CRAY_STACKSEG_END $ac_func
58242: _ACEOF
58243: 
58244:     break
58245: fi
58246: 
58247:   done
58248: fi
58249: 
58250: { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
58251: $as_echo_n "checking stack direction for C alloca... " >&6; }
58252: if ${ac_cv_c_stack_direction+:} false; then :
58253:   $as_echo_n "(cached) " >&6
58254: else
58255:   if test "$cross_compiling" = yes; then :
58256:   ac_cv_c_stack_direction=0
58257: else
58258:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58259: /* end confdefs.h.  */
58260: $ac_includes_default
58261: int
58262: find_stack_direction (int *addr, int depth)
58263: {
58264:   int dir, dummy = 0;
58265:   if (! addr)
58266:     addr = &dummy;
58267:   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
58268:   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
58269:   return dir + dummy;
58270: }
58271: 
58272: int
58273: main (int argc, char **argv)
58274: {
58275:   return find_stack_direction (0, argc + !argv + 20) < 0;
58276: }
58277: _ACEOF
58278: if ac_fn_c_try_run "$LINENO"; then :
58279:   ac_cv_c_stack_direction=1
58280: else
58281:   ac_cv_c_stack_direction=-1
58282: fi
58283: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
58284:   conftest.$ac_objext conftest.beam conftest.$ac_ext
58285: fi
58286: 
58287: fi
58288: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
58289: $as_echo "$ac_cv_c_stack_direction" >&6; }
58290: cat >>confdefs.h <<_ACEOF
58291: #define STACK_DIRECTION $ac_cv_c_stack_direction
58292: _ACEOF
58293: 
58294: 
58295: fi
58296: 
58297:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
58298: $as_echo_n "checking for working memcmp... " >&6; }
58299: if ${ac_cv_func_memcmp_working+:} false; then :
58300:   $as_echo_n "(cached) " >&6
58301: else
58302:   if test "$cross_compiling" = yes; then :
58303:   ac_cv_func_memcmp_working=no
58304: else
58305:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58306: /* end confdefs.h.  */
58307: $ac_includes_default
58308: int
58309: main ()
58310: {
58311: 
58312:   /* Some versions of memcmp are not 8-bit clean.  */
58313:   char c0 = '\100', c1 = '\200', c2 = '\201';
58314:   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
58315:     return 1;
58316: 
58317:   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
58318:      or more and with at least one buffer not starting on a 4-byte boundary.
58319:      William Lewis provided this test program.   */
58320:   {
58321:     char foo[21];
58322:     char bar[21];
58323:     int i;
58324:     for (i = 0; i < 4; i++)
58325:       {
58326: 	char *a = foo + i;
58327: 	char *b = bar + i;
58328: 	strcpy (a, "--------01111111");
58329: 	strcpy (b, "--------10000000");
58330: 	if (memcmp (a, b, 16) >= 0)
58331: 	  return 1;
58332:       }
58333:     return 0;
58334:   }
58335: 
58336:   ;
58337:   return 0;
58338: }
58339: _ACEOF
58340: if ac_fn_c_try_run "$LINENO"; then :
58341:   ac_cv_func_memcmp_working=yes
58342: else
58343:   ac_cv_func_memcmp_working=no
58344: fi
58345: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
58346:   conftest.$ac_objext conftest.beam conftest.$ac_ext
58347: fi
58348: 
58349: fi
58350: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
58351: $as_echo "$ac_cv_func_memcmp_working" >&6; }
58352: test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
58353:   *" memcmp.$ac_objext "* ) ;;
58354:   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
58355:  ;;
58356: esac
58357: 
58358: 
58359:       ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
58360: if test "x$ac_cv_header_stdarg_h" = xyes; then :
58361: 
58362: 
58363: $as_echo "#define HAVE_STDARG_PROTOTYPES 1" >>confdefs.h
58364: 
58365: 
58366: fi
58367: 
58368: 
58369: 
58370: $as_echo "#define PHP_ONIG_BUNDLED 1" >>confdefs.h
58371: 
58372: 
58373: $as_echo "#define HAVE_ONIG 1" >>confdefs.h
58374: 
58375: 
58376:   PHP_MBSTRING_CFLAGS="$PHP_MBSTRING_CFLAGS -DNOT_RUBY"
58377: 
58378: 
58379:   PHP_MBSTRING_EXTRA_BUILD_DIRS="$PHP_MBSTRING_EXTRA_BUILD_DIRS oniguruma"
58380: 
58381: 
58382:   PHP_MBSTRING_EXTRA_BUILD_DIRS="$PHP_MBSTRING_EXTRA_BUILD_DIRS oniguruma/enc"
58383: 
58384: 
58385:   PHP_MBSTRING_EXTRA_INCLUDES="$PHP_MBSTRING_EXTRA_INCLUDES oniguruma"
58386: 
58387: 
58388:   PHP_MBSTRING_EXTRA_CONFIG_HEADERS="$PHP_MBSTRING_EXTRA_CONFIG_HEADERS oniguruma/config.h"
58389: 
58390: 
58391:   PHP_MBSTRING_SOURCES="$PHP_MBSTRING_SOURCES
58392:         oniguruma/regcomp.c
58393:         oniguruma/regerror.c
58394:         oniguruma/regexec.c
58395:         oniguruma/reggnu.c
58396:         oniguruma/regparse.c
58397:         oniguruma/regenc.c
58398:         oniguruma/regext.c
58399:         oniguruma/regsyntax.c
58400:         oniguruma/regtrav.c
58401:         oniguruma/regversion.c
58402:         oniguruma/st.c
58403:         oniguruma/enc/unicode.c
58404:         oniguruma/enc/ascii.c
58405:         oniguruma/enc/utf8.c
58406:         oniguruma/enc/euc_jp.c
58407:         oniguruma/enc/euc_tw.c
58408:         oniguruma/enc/euc_kr.c
58409:         oniguruma/enc/sjis.c
58410:         oniguruma/enc/iso8859_1.c
58411:         oniguruma/enc/iso8859_2.c
58412:         oniguruma/enc/iso8859_3.c
58413:         oniguruma/enc/iso8859_4.c
58414:         oniguruma/enc/iso8859_5.c
58415:         oniguruma/enc/iso8859_6.c
58416:         oniguruma/enc/iso8859_7.c
58417:         oniguruma/enc/iso8859_8.c
58418:         oniguruma/enc/iso8859_9.c
58419:         oniguruma/enc/iso8859_10.c
58420:         oniguruma/enc/iso8859_11.c
58421:         oniguruma/enc/iso8859_13.c
58422:         oniguruma/enc/iso8859_14.c
58423:         oniguruma/enc/iso8859_15.c
58424:         oniguruma/enc/iso8859_16.c
58425:         oniguruma/enc/koi8.c
58426:         oniguruma/enc/koi8_r.c
58427:         oniguruma/enc/big5.c
58428:         oniguruma/enc/utf16_be.c
58429:         oniguruma/enc/utf16_le.c
58430:         oniguruma/enc/utf32_be.c
58431:         oniguruma/enc/utf32_le.c
58432:       "
58433: 
58434: 
58435:   PHP_MBSTRING_INSTALL_HEADERS="$PHP_MBSTRING_INSTALL_HEADERS oniguruma/oniguruma.h"
58436: 
58437:     else
58438:                         if test ! -f "$PHP_ONIG/include/oniguruma.h"; then
58439:         as_fn_error $? "oniguruma.h not found in $PHP_ONIG/include" "$LINENO" 5
58440:       fi
58441: 
58442:   if test "$PHP_ONIG/include" != "/usr/include"; then
58443: 
58444:   if test -z "$PHP_ONIG/include" || echo "$PHP_ONIG/include" | grep '^/' >/dev/null ; then
58445:     ai_p=$PHP_ONIG/include
58446:   else
58447: 
58448:     ep_dir=`echo $PHP_ONIG/include|$SED 's%/*[^/][^/]*/*$%%'`
58449: 
58450:     ep_realdir=`(cd "$ep_dir" && pwd)`
58451:     ai_p="$ep_realdir"/`basename "$PHP_ONIG/include"`
58452:   fi
58453: 
58454: 
58455: 
58456:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
58457: 
58458:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
58459:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
58460:     eval "INCLUDEPATH$unique=set"
58461: 
58462:       if test ""; then
58463:         INCLUDES="-I$ai_p $INCLUDES"
58464:       else
58465:         INCLUDES="$INCLUDES -I$ai_p"
58466:       fi
58467: 
58468:   fi
58469: 
58470:   fi
58471: 
58472: 
58473: 
58474:   save_old_LDFLAGS=$LDFLAGS
58475:   ac_stuff="
58476:         -L$PHP_ONIG/$PHP_LIBDIR
58477:       "
58478: 
58479:   save_ext_shared=$ext_shared
58480:   ext_shared=yes
58481: 
58482:   for ac_i in $ac_stuff; do
58483:     case $ac_i in
58484:     -pthread)
58485:       if test "$ext_shared" = "yes"; then
58486:         LDFLAGS="$LDFLAGS -pthread"
58487:       else
58488: 
58489: 
58490:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
58491: 
58492:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
58493:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
58494:     eval "EXTRA_LDFLAGS$unique=set"
58495:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
58496:   fi
58497: 
58498:       fi
58499:     ;;
58500:     -l*)
58501:       ac_ii=`echo $ac_i|cut -c 3-`
58502: 
58503: 
58504:   case $ac_ii in
58505:   c|c_r|pthread*) ;;
58506:   *)
58507:     if test "$ext_shared" = "yes"; then
58508:         LDFLAGS="$LDFLAGS -l$ac_ii"
58509:     else
58510: 
58511: 
58512:   case $ac_ii in
58513:   c|c_r|pthread*) ;;
58514:   *)
58515:       LIBS="$LIBS -l$ac_ii"
58516:    ;;
58517:   esac
58518: 
58519: 
58520:     fi
58521:    ;;
58522:   esac
58523: 
58524: 
58525:     ;;
58526:     -L*)
58527:       ac_ii=`echo $ac_i|cut -c 3-`
58528: 
58529:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
58530: 
58531:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
58532:     ai_p=$ac_ii
58533:   else
58534: 
58535:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
58536: 
58537:     ep_realdir=`(cd "$ep_dir" && pwd)`
58538:     ai_p="$ep_realdir"/`basename "$ac_ii"`
58539:   fi
58540: 
58541: 
58542:       if test "$ext_shared" = "yes"; then
58543:         LDFLAGS="-L$ai_p $LDFLAGS"
58544:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
58545:       else
58546: 
58547: 
58548: 
58549:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
58550: 
58551:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
58552:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
58553:     eval "LIBPATH$unique=set"
58554: 
58555:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
58556:     LDFLAGS="$LDFLAGS -L$ai_p"
58557:     PHP_RPATHS="$PHP_RPATHS $ai_p"
58558: 
58559:   fi
58560: 
58561: 
58562:       fi
58563: 
58564:   fi
58565: 
58566:     ;;
58567:     esac
58568:   done
58569: 
58570:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for onig_init in -lonig" >&5
58571: $as_echo_n "checking for onig_init in -lonig... " >&6; }
58572: if ${ac_cv_lib_onig_onig_init+:} false; then :
58573:   $as_echo_n "(cached) " >&6
58574: else
58575:   ac_check_lib_save_LIBS=$LIBS
58576: LIBS="-lonig  $LIBS"
58577: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58578: /* end confdefs.h.  */
58579: 
58580: /* Override any GCC internal prototype to avoid an error.
58581:    Use char because int might match the return type of a GCC
58582:    builtin and then its argument prototype would still apply.  */
58583: #ifdef __cplusplus
58584: extern "C"
58585: #endif
58586: char onig_init ();
58587: int
58588: main ()
58589: {
58590: return onig_init ();
58591:   ;
58592:   return 0;
58593: }
58594: _ACEOF
58595: if ac_fn_c_try_link "$LINENO"; then :
58596:   ac_cv_lib_onig_onig_init=yes
58597: else
58598:   ac_cv_lib_onig_onig_init=no
58599: fi
58600: rm -f core conftest.err conftest.$ac_objext \
58601:     conftest$ac_exeext conftest.$ac_ext
58602: LIBS=$ac_check_lib_save_LIBS
58603: fi
58604: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_onig_onig_init" >&5
58605: $as_echo "$ac_cv_lib_onig_onig_init" >&6; }
58606: if test "x$ac_cv_lib_onig_onig_init" = xyes; then :
58607: 
58608:     LDFLAGS=$save_old_LDFLAGS
58609:     ext_shared=$save_ext_shared
58610: 
58611: 
58612: 
58613:   if test "$ext_shared" = "yes"; then
58614:     MBSTRING_SHARED_LIBADD="-lonig $MBSTRING_SHARED_LIBADD"
58615:     if test -n "$PHP_ONIG/$PHP_LIBDIR"; then
58616: 
58617:   if test "$PHP_ONIG/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ONIG/$PHP_LIBDIR" != "/usr/lib"; then
58618: 
58619:   if test -z "$PHP_ONIG/$PHP_LIBDIR" || echo "$PHP_ONIG/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
58620:     ai_p=$PHP_ONIG/$PHP_LIBDIR
58621:   else
58622: 
58623:     ep_dir=`echo $PHP_ONIG/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
58624: 
58625:     ep_realdir=`(cd "$ep_dir" && pwd)`
58626:     ai_p="$ep_realdir"/`basename "$PHP_ONIG/$PHP_LIBDIR"`
58627:   fi
58628: 
58629: 
58630:       if test "$ext_shared" = "yes"; then
58631:         MBSTRING_SHARED_LIBADD="-L$ai_p $MBSTRING_SHARED_LIBADD"
58632:         test -n "$ld_runpath_switch" && MBSTRING_SHARED_LIBADD="$ld_runpath_switch$ai_p $MBSTRING_SHARED_LIBADD"
58633:       else
58634: 
58635: 
58636: 
58637:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
58638: 
58639:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
58640:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
58641:     eval "LIBPATH$unique=set"
58642: 
58643:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
58644:     LDFLAGS="$LDFLAGS -L$ai_p"
58645:     PHP_RPATHS="$PHP_RPATHS $ai_p"
58646: 
58647:   fi
58648: 
58649: 
58650:       fi
58651: 
58652:   fi
58653: 
58654:     fi
58655:   else
58656: 
58657: 
58658:   if test -n "$PHP_ONIG/$PHP_LIBDIR"; then
58659: 
58660:   if test "$PHP_ONIG/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ONIG/$PHP_LIBDIR" != "/usr/lib"; then
58661: 
58662:   if test -z "$PHP_ONIG/$PHP_LIBDIR" || echo "$PHP_ONIG/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
58663:     ai_p=$PHP_ONIG/$PHP_LIBDIR
58664:   else
58665: 
58666:     ep_dir=`echo $PHP_ONIG/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
58667: 
58668:     ep_realdir=`(cd "$ep_dir" && pwd)`
58669:     ai_p="$ep_realdir"/`basename "$PHP_ONIG/$PHP_LIBDIR"`
58670:   fi
58671: 
58672: 
58673: 
58674: 
58675: 
58676:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
58677: 
58678:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
58679:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
58680:     eval "LIBPATH$unique=set"
58681: 
58682:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
58683:     LDFLAGS="$LDFLAGS -L$ai_p"
58684:     PHP_RPATHS="$PHP_RPATHS $ai_p"
58685: 
58686:   fi
58687: 
58688: 
58689: 
58690:   fi
58691: 
58692:   fi
58693: 
58694: 
58695:   case onig in
58696:   c|c_r|pthread*) ;;
58697:   *)
58698:       LIBS="-lonig $LIBS"
58699:    ;;
58700:   esac
58701: 
58702: 
58703: 
58704: 
58705:   fi
58706: 
58707: 
58708: 
58709: $as_echo "#define HAVE_ONIG 1" >>confdefs.h
58710: 
58711: 
58712: 
58713: else
58714: 
58715:     LDFLAGS=$save_old_LDFLAGS
58716:     ext_shared=$save_ext_shared
58717:     unset ac_cv_lib_onig_onig_init
58718: 
58719:         as_fn_error $? "Problem with oniguruma. Please check config.log for more information." "$LINENO" 5
58720: 
58721: 
58722: fi
58723: 
58724: 
58725:       save_old_LDFLAGS=$LDFLAGS
58726: 
58727:   for ac_i in $MBSTRING_SHARED_LIBADD; do
58728:     case $ac_i in
58729:     -pthread)
58730:       if test "$ext_shared" = "yes"; then
58731:         LDFLAGS="$LDFLAGS -pthread"
58732:       else
58733: 
58734: 
58735:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
58736: 
58737:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
58738:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
58739:     eval "EXTRA_LDFLAGS$unique=set"
58740:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
58741:   fi
58742: 
58743:       fi
58744:     ;;
58745:     -l*)
58746:       ac_ii=`echo $ac_i|cut -c 3-`
58747: 
58748: 
58749:   case $ac_ii in
58750:   c|c_r|pthread*) ;;
58751:   *)
58752:     if test "$ext_shared" = "yes"; then
58753:         LDFLAGS="$LDFLAGS -l$ac_ii"
58754:     else
58755: 
58756: 
58757:   case $ac_ii in
58758:   c|c_r|pthread*) ;;
58759:   *)
58760:       LIBS="$LIBS -l$ac_ii"
58761:    ;;
58762:   esac
58763: 
58764: 
58765:     fi
58766:    ;;
58767:   esac
58768: 
58769: 
58770:     ;;
58771:     -L*)
58772:       ac_ii=`echo $ac_i|cut -c 3-`
58773: 
58774:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
58775: 
58776:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
58777:     ai_p=$ac_ii
58778:   else
58779: 
58780:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
58781: 
58782:     ep_realdir=`(cd "$ep_dir" && pwd)`
58783:     ai_p="$ep_realdir"/`basename "$ac_ii"`
58784:   fi
58785: 
58786: 
58787:       if test "$ext_shared" = "yes"; then
58788:         LDFLAGS="-L$ai_p $LDFLAGS"
58789:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
58790:       else
58791: 
58792: 
58793: 
58794:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
58795: 
58796:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
58797:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
58798:     eval "LIBPATH$unique=set"
58799: 
58800:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
58801:     LDFLAGS="$LDFLAGS -L$ai_p"
58802:     PHP_RPATHS="$PHP_RPATHS $ai_p"
58803: 
58804:   fi
58805: 
58806: 
58807:       fi
58808: 
58809:   fi
58810: 
58811:     ;;
58812:     esac
58813:   done
58814: 
58815:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if oniguruma has an invalid entry for KOI8 encoding" >&5
58816: $as_echo_n "checking if oniguruma has an invalid entry for KOI8 encoding... " >&6; }
58817:       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58818: /* end confdefs.h.  */
58819: 
58820: #include <oniguruma.h>
58821: 
58822: int
58823: main ()
58824: {
58825: 
58826: return (int)(ONIG_ENCODING_KOI8 + 1);
58827: 
58828:   ;
58829:   return 0;
58830: }
58831: _ACEOF
58832: if ac_fn_c_try_link "$LINENO"; then :
58833: 
58834:         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
58835: $as_echo "no" >&6; }
58836: 
58837: else
58838: 
58839:         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
58840: $as_echo "yes" >&6; }
58841: 
58842: $as_echo "#define PHP_ONIG_BAD_KOI8_ENTRY 1" >>confdefs.h
58843: 
58844: 
58845: fi
58846: rm -f core conftest.err conftest.$ac_objext \
58847:     conftest$ac_exeext conftest.$ac_ext
58848:       LDFLAGS=$save_old_LDFLAGS
58849:     fi
58850: 
58851: 
58852:   PHP_MBSTRING_CFLAGS="$PHP_MBSTRING_CFLAGS -DONIG_ESCAPE_UCHAR_COLLISION=1"
58853: 
58854: 
58855:   PHP_MBSTRING_CFLAGS="$PHP_MBSTRING_CFLAGS -DUChar=OnigUChar"
58856: 
58857: 
58858: 
58859: $as_echo "#define HAVE_MBREGEX 1" >>confdefs.h
58860: 
58861: 
58862: 
58863:   PHP_MBSTRING_BASE_SOURCES="$PHP_MBSTRING_BASE_SOURCES php_mbregex.c"
58864: 
58865: 
58866:   PHP_MBSTRING_INSTALL_HEADERS="$PHP_MBSTRING_INSTALL_HEADERS php_mbregex.h php_onig_compat.h"
58867: 
58868:   fi
58869: 
58870:   fi
58871: 
58872: 
58873:     if test "$PHP_LIBMBFL" = "yes" || test "$PHP_LIBMBFL" = "no"; then
58874: 
58875:   PHP_MBSTRING_EXTRA_BUILD_DIRS="$PHP_MBSTRING_EXTRA_BUILD_DIRS libmbfl"
58876: 
58877: 
58878:   PHP_MBSTRING_EXTRA_BUILD_DIRS="$PHP_MBSTRING_EXTRA_BUILD_DIRS libmbfl/mbfl"
58879: 
58880: 
58881:   PHP_MBSTRING_EXTRA_BUILD_DIRS="$PHP_MBSTRING_EXTRA_BUILD_DIRS libmbfl/filters"
58882: 
58883: 
58884:   PHP_MBSTRING_EXTRA_BUILD_DIRS="$PHP_MBSTRING_EXTRA_BUILD_DIRS libmbfl/nls"
58885: 
58886: 
58887:   PHP_MBSTRING_EXTRA_INCLUDES="$PHP_MBSTRING_EXTRA_INCLUDES libmbfl"
58888: 
58889: 
58890:   PHP_MBSTRING_EXTRA_INCLUDES="$PHP_MBSTRING_EXTRA_INCLUDES libmbfl/mbfl"
58891: 
58892: 
58893:   PHP_MBSTRING_EXTRA_CONFIG_HEADERS="$PHP_MBSTRING_EXTRA_CONFIG_HEADERS libmbfl/config.h"
58894: 
58895: 
58896: 
58897:   PHP_MBSTRING_SOURCES="$PHP_MBSTRING_SOURCES
58898:      libmbfl/filters/html_entities.c
58899:      libmbfl/filters/mbfilter_7bit.c
58900:      libmbfl/filters/mbfilter_ascii.c
58901:      libmbfl/filters/mbfilter_base64.c
58902:      libmbfl/filters/mbfilter_big5.c
58903:      libmbfl/filters/mbfilter_byte2.c
58904:      libmbfl/filters/mbfilter_byte4.c
58905:      libmbfl/filters/mbfilter_cp1251.c
58906:      libmbfl/filters/mbfilter_cp1252.c
58907:      libmbfl/filters/mbfilter_cp1254.c
58908:      libmbfl/filters/mbfilter_cp5022x.c
58909:      libmbfl/filters/mbfilter_cp51932.c
58910:      libmbfl/filters/mbfilter_cp850.c
58911:      libmbfl/filters/mbfilter_cp866.c
58912:      libmbfl/filters/mbfilter_cp932.c
58913:      libmbfl/filters/mbfilter_cp936.c
58914:      libmbfl/filters/mbfilter_gb18030.c
58915:      libmbfl/filters/mbfilter_euc_cn.c
58916:      libmbfl/filters/mbfilter_euc_jp.c
58917:      libmbfl/filters/mbfilter_euc_jp_2004.c
58918:      libmbfl/filters/mbfilter_euc_jp_win.c
58919:      libmbfl/filters/mbfilter_euc_kr.c
58920:      libmbfl/filters/mbfilter_euc_tw.c
58921:      libmbfl/filters/mbfilter_htmlent.c
58922:      libmbfl/filters/mbfilter_hz.c
58923:      libmbfl/filters/mbfilter_iso2022_jp_ms.c
58924:      libmbfl/filters/mbfilter_iso2022jp_2004.c
58925:      libmbfl/filters/mbfilter_iso2022jp_mobile.c
58926:      libmbfl/filters/mbfilter_iso2022_kr.c
58927:      libmbfl/filters/mbfilter_iso8859_1.c
58928:      libmbfl/filters/mbfilter_iso8859_10.c
58929:      libmbfl/filters/mbfilter_iso8859_13.c
58930:      libmbfl/filters/mbfilter_iso8859_14.c
58931:      libmbfl/filters/mbfilter_iso8859_15.c
58932:      libmbfl/filters/mbfilter_iso8859_16.c
58933:      libmbfl/filters/mbfilter_iso8859_2.c
58934:      libmbfl/filters/mbfilter_iso8859_3.c
58935:      libmbfl/filters/mbfilter_iso8859_4.c
58936:      libmbfl/filters/mbfilter_iso8859_5.c
58937:      libmbfl/filters/mbfilter_iso8859_6.c
58938:      libmbfl/filters/mbfilter_iso8859_7.c
58939:      libmbfl/filters/mbfilter_iso8859_8.c
58940:      libmbfl/filters/mbfilter_iso8859_9.c
58941:      libmbfl/filters/mbfilter_jis.c
58942:      libmbfl/filters/mbfilter_koi8r.c
58943:      libmbfl/filters/mbfilter_armscii8.c
58944:      libmbfl/filters/mbfilter_qprint.c
58945:      libmbfl/filters/mbfilter_sjis.c
58946:      libmbfl/filters/mbfilter_sjis_open.c
58947:      libmbfl/filters/mbfilter_sjis_mobile.c
58948:      libmbfl/filters/mbfilter_sjis_mac.c
58949:      libmbfl/filters/mbfilter_sjis_2004.c
58950:      libmbfl/filters/mbfilter_tl_jisx0201_jisx0208.c
58951:      libmbfl/filters/mbfilter_ucs2.c
58952:      libmbfl/filters/mbfilter_ucs4.c
58953:      libmbfl/filters/mbfilter_uhc.c
58954:      libmbfl/filters/mbfilter_utf16.c
58955:      libmbfl/filters/mbfilter_utf32.c
58956:      libmbfl/filters/mbfilter_utf7.c
58957:      libmbfl/filters/mbfilter_utf7imap.c
58958:      libmbfl/filters/mbfilter_utf8.c
58959:      libmbfl/filters/mbfilter_utf8_mobile.c
58960:      libmbfl/filters/mbfilter_uuencode.c
58961:      libmbfl/filters/mbfilter_koi8u.c
58962:      libmbfl/mbfl/mbfilter.c
58963:      libmbfl/mbfl/mbfilter_8bit.c
58964:      libmbfl/mbfl/mbfilter_pass.c
58965:      libmbfl/mbfl/mbfilter_wchar.c
58966:      libmbfl/mbfl/mbfl_convert.c
58967:      libmbfl/mbfl/mbfl_encoding.c
58968:      libmbfl/mbfl/mbfl_filter_output.c
58969:      libmbfl/mbfl/mbfl_ident.c
58970:      libmbfl/mbfl/mbfl_language.c
58971:      libmbfl/mbfl/mbfl_memory_device.c
58972:      libmbfl/mbfl/mbfl_string.c
58973:      libmbfl/mbfl/mbfl_allocators.c
58974:      libmbfl/nls/nls_de.c
58975:      libmbfl/nls/nls_en.c
58976:      libmbfl/nls/nls_ja.c
58977:      libmbfl/nls/nls_kr.c
58978:      libmbfl/nls/nls_neutral.c
58979:      libmbfl/nls/nls_ru.c
58980:      libmbfl/nls/nls_uni.c
58981:      libmbfl/nls/nls_zh.c
58982:      libmbfl/nls/nls_hy.c
58983:      libmbfl/nls/nls_tr.c
58984:      libmbfl/nls/nls_ua.c
58985:     "
58986: 
58987: 
58988:   PHP_MBSTRING_CFLAGS="$PHP_MBSTRING_CFLAGS -DHAVE_CONFIG_H"
58989: 
58990: 
58991:   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"
58992: 
58993:   else
58994:                 for inc in include include/mbfl-1.0 include/mbfl; do
58995:       if test -f "$PHP_LIBMBFL/$inc/mbfilter.h"; then
58996:         PHP_LIBMBFL_INCLUDE="$inc"
58997:         break
58998:       fi
58999:     done
59000: 
59001:     if test -z "$PHP_LIBMBFL_INCLUDE"; then
59002:       as_fn_error $? "mbfilter.h not found. Please reinstall libmbfl library." "$LINENO" 5
59003:     else
59004: 
59005:   if test "$PHP_LIBMBFL_INCLUDE" != "/usr/include"; then
59006: 
59007:   if test -z "$PHP_LIBMBFL_INCLUDE" || echo "$PHP_LIBMBFL_INCLUDE" | grep '^/' >/dev/null ; then
59008:     ai_p=$PHP_LIBMBFL_INCLUDE
59009:   else
59010: 
59011:     ep_dir=`echo $PHP_LIBMBFL_INCLUDE|$SED 's%/*[^/][^/]*/*$%%'`
59012: 
59013:     ep_realdir=`(cd "$ep_dir" && pwd)`
59014:     ai_p="$ep_realdir"/`basename "$PHP_LIBMBFL_INCLUDE"`
59015:   fi
59016: 
59017: 
59018: 
59019:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
59020: 
59021:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
59022:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
59023:     eval "INCLUDEPATH$unique=set"
59024: 
59025:       if test ""; then
59026:         INCLUDES="-I$ai_p $INCLUDES"
59027:       else
59028:         INCLUDES="$INCLUDES -I$ai_p"
59029:       fi
59030: 
59031:   fi
59032: 
59033:   fi
59034: 
59035:     fi
59036: 
59037: 
59038:   save_old_LDFLAGS=$LDFLAGS
59039:   ac_stuff="
59040:       -L$PHP_LIBMBFL/$PHP_LIBDIR
59041:     "
59042: 
59043:   save_ext_shared=$ext_shared
59044:   ext_shared=yes
59045: 
59046:   for ac_i in $ac_stuff; do
59047:     case $ac_i in
59048:     -pthread)
59049:       if test "$ext_shared" = "yes"; then
59050:         LDFLAGS="$LDFLAGS -pthread"
59051:       else
59052: 
59053: 
59054:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
59055: 
59056:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
59057:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
59058:     eval "EXTRA_LDFLAGS$unique=set"
59059:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
59060:   fi
59061: 
59062:       fi
59063:     ;;
59064:     -l*)
59065:       ac_ii=`echo $ac_i|cut -c 3-`
59066: 
59067: 
59068:   case $ac_ii in
59069:   c|c_r|pthread*) ;;
59070:   *)
59071:     if test "$ext_shared" = "yes"; then
59072:         LDFLAGS="$LDFLAGS -l$ac_ii"
59073:     else
59074: 
59075: 
59076:   case $ac_ii in
59077:   c|c_r|pthread*) ;;
59078:   *)
59079:       LIBS="$LIBS -l$ac_ii"
59080:    ;;
59081:   esac
59082: 
59083: 
59084:     fi
59085:    ;;
59086:   esac
59087: 
59088: 
59089:     ;;
59090:     -L*)
59091:       ac_ii=`echo $ac_i|cut -c 3-`
59092: 
59093:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
59094: 
59095:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
59096:     ai_p=$ac_ii
59097:   else
59098: 
59099:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
59100: 
59101:     ep_realdir=`(cd "$ep_dir" && pwd)`
59102:     ai_p="$ep_realdir"/`basename "$ac_ii"`
59103:   fi
59104: 
59105: 
59106:       if test "$ext_shared" = "yes"; then
59107:         LDFLAGS="-L$ai_p $LDFLAGS"
59108:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
59109:       else
59110: 
59111: 
59112: 
59113:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
59114: 
59115:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
59116:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
59117:     eval "LIBPATH$unique=set"
59118: 
59119:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
59120:     LDFLAGS="$LDFLAGS -L$ai_p"
59121:     PHP_RPATHS="$PHP_RPATHS $ai_p"
59122: 
59123:   fi
59124: 
59125: 
59126:       fi
59127: 
59128:   fi
59129: 
59130:     ;;
59131:     esac
59132:   done
59133: 
59134:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbfl_buffer_converter_new in -lmbfl" >&5
59135: $as_echo_n "checking for mbfl_buffer_converter_new in -lmbfl... " >&6; }
59136: if ${ac_cv_lib_mbfl_mbfl_buffer_converter_new+:} false; then :
59137:   $as_echo_n "(cached) " >&6
59138: else
59139:   ac_check_lib_save_LIBS=$LIBS
59140: LIBS="-lmbfl  $LIBS"
59141: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59142: /* end confdefs.h.  */
59143: 
59144: /* Override any GCC internal prototype to avoid an error.
59145:    Use char because int might match the return type of a GCC
59146:    builtin and then its argument prototype would still apply.  */
59147: #ifdef __cplusplus
59148: extern "C"
59149: #endif
59150: char mbfl_buffer_converter_new ();
59151: int
59152: main ()
59153: {
59154: return mbfl_buffer_converter_new ();
59155:   ;
59156:   return 0;
59157: }
59158: _ACEOF
59159: if ac_fn_c_try_link "$LINENO"; then :
59160:   ac_cv_lib_mbfl_mbfl_buffer_converter_new=yes
59161: else
59162:   ac_cv_lib_mbfl_mbfl_buffer_converter_new=no
59163: fi
59164: rm -f core conftest.err conftest.$ac_objext \
59165:     conftest$ac_exeext conftest.$ac_ext
59166: LIBS=$ac_check_lib_save_LIBS
59167: fi
59168: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbfl_mbfl_buffer_converter_new" >&5
59169: $as_echo "$ac_cv_lib_mbfl_mbfl_buffer_converter_new" >&6; }
59170: if test "x$ac_cv_lib_mbfl_mbfl_buffer_converter_new" = xyes; then :
59171: 
59172:     LDFLAGS=$save_old_LDFLAGS
59173:     ext_shared=$save_ext_shared
59174: 
59175: 
59176: 
59177:   if test "$ext_shared" = "yes"; then
59178:     MBSTRING_SHARED_LIBADD="-lmbfl $MBSTRING_SHARED_LIBADD"
59179:     if test -n "$PHP_LIBMBFL/$PHP_LIBDIR"; then
59180: 
59181:   if test "$PHP_LIBMBFL/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_LIBMBFL/$PHP_LIBDIR" != "/usr/lib"; then
59182: 
59183:   if test -z "$PHP_LIBMBFL/$PHP_LIBDIR" || echo "$PHP_LIBMBFL/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
59184:     ai_p=$PHP_LIBMBFL/$PHP_LIBDIR
59185:   else
59186: 
59187:     ep_dir=`echo $PHP_LIBMBFL/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
59188: 
59189:     ep_realdir=`(cd "$ep_dir" && pwd)`
59190:     ai_p="$ep_realdir"/`basename "$PHP_LIBMBFL/$PHP_LIBDIR"`
59191:   fi
59192: 
59193: 
59194:       if test "$ext_shared" = "yes"; then
59195:         MBSTRING_SHARED_LIBADD="-L$ai_p $MBSTRING_SHARED_LIBADD"
59196:         test -n "$ld_runpath_switch" && MBSTRING_SHARED_LIBADD="$ld_runpath_switch$ai_p $MBSTRING_SHARED_LIBADD"
59197:       else
59198: 
59199: 
59200: 
59201:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
59202: 
59203:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
59204:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
59205:     eval "LIBPATH$unique=set"
59206: 
59207:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
59208:     LDFLAGS="$LDFLAGS -L$ai_p"
59209:     PHP_RPATHS="$PHP_RPATHS $ai_p"
59210: 
59211:   fi
59212: 
59213: 
59214:       fi
59215: 
59216:   fi
59217: 
59218:     fi
59219:   else
59220: 
59221: 
59222:   if test -n "$PHP_LIBMBFL/$PHP_LIBDIR"; then
59223: 
59224:   if test "$PHP_LIBMBFL/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_LIBMBFL/$PHP_LIBDIR" != "/usr/lib"; then
59225: 
59226:   if test -z "$PHP_LIBMBFL/$PHP_LIBDIR" || echo "$PHP_LIBMBFL/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
59227:     ai_p=$PHP_LIBMBFL/$PHP_LIBDIR
59228:   else
59229: 
59230:     ep_dir=`echo $PHP_LIBMBFL/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
59231: 
59232:     ep_realdir=`(cd "$ep_dir" && pwd)`
59233:     ai_p="$ep_realdir"/`basename "$PHP_LIBMBFL/$PHP_LIBDIR"`
59234:   fi
59235: 
59236: 
59237: 
59238: 
59239: 
59240:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
59241: 
59242:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
59243:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
59244:     eval "LIBPATH$unique=set"
59245: 
59246:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
59247:     LDFLAGS="$LDFLAGS -L$ai_p"
59248:     PHP_RPATHS="$PHP_RPATHS $ai_p"
59249: 
59250:   fi
59251: 
59252: 
59253: 
59254:   fi
59255: 
59256:   fi
59257: 
59258: 
59259:   case mbfl in
59260:   c|c_r|pthread*) ;;
59261:   *)
59262:       LIBS="-lmbfl $LIBS"
59263:    ;;
59264:   esac
59265: 
59266: 
59267: 
59268: 
59269:   fi
59270: 
59271: 
59272: 
59273: 
59274: else
59275: 
59276:     LDFLAGS=$save_old_LDFLAGS
59277:     ext_shared=$save_ext_shared
59278:     unset ac_cv_lib_mbfl_mbfl_buffer_converter_new
59279: 
59280:       as_fn_error $? "Problem with libmbfl. Please check config.log for more information." "$LINENO" 5
59281: 
59282: 
59283: fi
59284: 
59285:   fi
59286: 
59287: 
59288: 
59289:   ext_builddir=ext/mbstring
59290:   ext_srcdir=$abs_srcdir/ext/mbstring
59291: 
59292:   ac_extra=`echo "$PHP_MBSTRING_CFLAGS"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
59293: 
59294:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
59295:     PHP_MBSTRING_SHARED=no
59296: 
59297: 
59298:   case ext/mbstring in
59299:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
59300:   /*) ac_srcdir=`echo "ext/mbstring"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
59301:   *) ac_srcdir="$abs_srcdir/ext/mbstring/"; ac_bdir="ext/mbstring/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
59302:   esac
59303: 
59304: 
59305: 
59306:   b_c_pre=$php_c_pre
59307:   b_cxx_pre=$php_cxx_pre
59308:   b_c_meta=$php_c_meta
59309:   b_cxx_meta=$php_cxx_meta
59310:   b_c_post=$php_c_post
59311:   b_cxx_post=$php_cxx_post
59312:   b_lo=$php_lo
59313: 
59314: 
59315:   old_IFS=$IFS
59316:   for ac_src in $PHP_MBSTRING_SOURCES; do
59317: 
59318:       IFS=.
59319:       set $ac_src
59320:       ac_obj=$1
59321:       IFS=$old_IFS
59322: 
59323:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
59324: 
59325:       case $ac_src in
59326:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
59327:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
59328:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
59329:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
59330:       esac
59331: 
59332:     cat >>Makefile.objects<<EOF
59333: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
59334: 	$ac_comp
59335: EOF
59336:   done
59337: 
59338: 
59339:     EXT_STATIC="$EXT_STATIC mbstring"
59340:     if test "$ext_shared" != "nocli"; then
59341:       EXT_CLI_STATIC="$EXT_CLI_STATIC mbstring"
59342:     fi
59343:   else
59344:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
59345:       PHP_MBSTRING_SHARED=yes
59346: 
59347:   case ext/mbstring in
59348:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
59349:   /*) ac_srcdir=`echo "ext/mbstring"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
59350:   *) ac_srcdir="$abs_srcdir/ext/mbstring/"; ac_bdir="ext/mbstring/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
59351:   esac
59352: 
59353: 
59354: 
59355:   b_c_pre=$shared_c_pre
59356:   b_cxx_pre=$shared_cxx_pre
59357:   b_c_meta=$shared_c_meta
59358:   b_cxx_meta=$shared_cxx_meta
59359:   b_c_post=$shared_c_post
59360:   b_cxx_post=$shared_cxx_post
59361:   b_lo=$shared_lo
59362: 
59363: 
59364:   old_IFS=$IFS
59365:   for ac_src in $PHP_MBSTRING_SOURCES; do
59366: 
59367:       IFS=.
59368:       set $ac_src
59369:       ac_obj=$1
59370:       IFS=$old_IFS
59371: 
59372:       shared_objects_mbstring="$shared_objects_mbstring $ac_bdir$ac_obj.lo"
59373: 
59374:       case $ac_src in
59375:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
59376:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
59377:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
59378:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
59379:       esac
59380: 
59381:     cat >>Makefile.objects<<EOF
59382: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
59383: 	$ac_comp
59384: EOF
59385:   done
59386: 
59387:       case $host_alias in
59388:         *netware*)
59389: 
59390:   install_modules="install-modules"
59391: 
59392:   case $host_alias in
59393:     *aix*)
59394:       suffix=so
59395:       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'
59396:       ;;
59397:     *netware*)
59398:       suffix=nlm
59399:       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)'
59400:       ;;
59401:     *)
59402:       suffix=la
59403:       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)'
59404:       ;;
59405:   esac
59406: 
59407:   if test "x" = "xyes"; then
59408:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpmbstring.$suffix"
59409:   else
59410:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpmbstring.$suffix"
59411:   fi
59412: 
59413:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_mbstring"
59414: 
59415:   cat >>Makefile.objects<<EOF
59416: \$(phplibdir)/phpmbstring.$suffix: $ext_builddir/phpmbstring.$suffix
59417: 	\$(LIBTOOL) --mode=install cp $ext_builddir/phpmbstring.$suffix \$(phplibdir)
59418: 
59419: $ext_builddir/phpmbstring.$suffix: \$(shared_objects_mbstring) \$(PHPMBSTRING_SHARED_DEPENDENCIES)
59420: 	$link_cmd
59421: 
59422: EOF
59423: 
59424:           ;;
59425:         *)
59426: 
59427:   install_modules="install-modules"
59428: 
59429:   case $host_alias in
59430:     *aix*)
59431:       suffix=so
59432:       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'
59433:       ;;
59434:     *netware*)
59435:       suffix=nlm
59436:       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)'
59437:       ;;
59438:     *)
59439:       suffix=la
59440:       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)'
59441:       ;;
59442:   esac
59443: 
59444:   if test "x" = "xyes"; then
59445:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/mbstring.$suffix"
59446:   else
59447:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/mbstring.$suffix"
59448:   fi
59449: 
59450:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_mbstring"
59451: 
59452:   cat >>Makefile.objects<<EOF
59453: \$(phplibdir)/mbstring.$suffix: $ext_builddir/mbstring.$suffix
59454: 	\$(LIBTOOL) --mode=install cp $ext_builddir/mbstring.$suffix \$(phplibdir)
59455: 
59456: $ext_builddir/mbstring.$suffix: \$(shared_objects_mbstring) \$(MBSTRING_SHARED_DEPENDENCIES)
59457: 	$link_cmd
59458: 
59459: EOF
59460: 
59461:           ;;
59462:       esac
59463: 
59464: cat >>confdefs.h <<_ACEOF
59465: #define COMPILE_DL_MBSTRING 1
59466: _ACEOF
59467: 
59468:     fi
59469:   fi
59470: 
59471:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
59472:     PHP_MBSTRING_SHARED=no
59473:     case "$PHP_SAPI" in
59474:       cgi|embed)
59475: 
59476: 
59477:   case ext/mbstring in
59478:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
59479:   /*) ac_srcdir=`echo "ext/mbstring"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
59480:   *) ac_srcdir="$abs_srcdir/ext/mbstring/"; ac_bdir="ext/mbstring/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
59481:   esac
59482: 
59483: 
59484: 
59485:   b_c_pre=$php_c_pre
59486:   b_cxx_pre=$php_cxx_pre
59487:   b_c_meta=$php_c_meta
59488:   b_cxx_meta=$php_cxx_meta
59489:   b_c_post=$php_c_post
59490:   b_cxx_post=$php_cxx_post
59491:   b_lo=$php_lo
59492: 
59493: 
59494:   old_IFS=$IFS
59495:   for ac_src in $PHP_MBSTRING_SOURCES; do
59496: 
59497:       IFS=.
59498:       set $ac_src
59499:       ac_obj=$1
59500:       IFS=$old_IFS
59501: 
59502:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
59503: 
59504:       case $ac_src in
59505:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
59506:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
59507:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
59508:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
59509:       esac
59510: 
59511:     cat >>Makefile.objects<<EOF
59512: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
59513: 	$ac_comp
59514: EOF
59515:   done
59516: 
59517: 
59518:         EXT_STATIC="$EXT_STATIC mbstring"
59519:         ;;
59520:       *)
59521: 
59522: 
59523:   case ext/mbstring in
59524:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
59525:   /*) ac_srcdir=`echo "ext/mbstring"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
59526:   *) ac_srcdir="$abs_srcdir/ext/mbstring/"; ac_bdir="ext/mbstring/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
59527:   esac
59528: 
59529: 
59530: 
59531:   b_c_pre=$php_c_pre
59532:   b_cxx_pre=$php_cxx_pre
59533:   b_c_meta=$php_c_meta
59534:   b_cxx_meta=$php_cxx_meta
59535:   b_c_post=$php_c_post
59536:   b_cxx_post=$php_cxx_post
59537:   b_lo=$php_lo
59538: 
59539: 
59540:   old_IFS=$IFS
59541:   for ac_src in $PHP_MBSTRING_SOURCES; do
59542: 
59543:       IFS=.
59544:       set $ac_src
59545:       ac_obj=$1
59546:       IFS=$old_IFS
59547: 
59548:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
59549: 
59550:       case $ac_src in
59551:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
59552:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
59553:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
59554:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
59555:       esac
59556: 
59557:     cat >>Makefile.objects<<EOF
59558: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
59559: 	$ac_comp
59560: EOF
59561:   done
59562: 
59563: 
59564:         ;;
59565:     esac
59566:     EXT_CLI_STATIC="$EXT_CLI_STATIC mbstring"
59567:   fi
59568: 
59569: 
59570:     BUILD_DIR="$BUILD_DIR $ext_builddir"
59571: 
59572: 
59573: 
59574:   if test "$ext_builddir" = "."; then
59575:     PHP_PECL_EXTENSION=mbstring
59576: 
59577:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
59578: 
59579:   fi
59580: 
59581: 
59582:   PHP_VAR_SUBST="$PHP_VAR_SUBST MBSTRING_SHARED_LIBADD"
59583: 
59584: 
59585:   for dir in $PHP_MBSTRING_EXTRA_BUILD_DIRS; do
59586: 
59587: 
59588:     $php_shtool mkdir -p $ext_builddir/$dir
59589: 
59590: 
59591:   done
59592: 
59593:   for dir in $PHP_MBSTRING_EXTRA_INCLUDES; do
59594: 
59595:   if test "$ext_srcdir/$dir" != "/usr/include"; then
59596: 
59597:   if test -z "$ext_srcdir/$dir" || echo "$ext_srcdir/$dir" | grep '^/' >/dev/null ; then
59598:     ai_p=$ext_srcdir/$dir
59599:   else
59600: 
59601:     ep_dir=`echo $ext_srcdir/$dir|$SED 's%/*[^/][^/]*/*$%%'`
59602: 
59603:     ep_realdir=`(cd "$ep_dir" && pwd)`
59604:     ai_p="$ep_realdir"/`basename "$ext_srcdir/$dir"`
59605:   fi
59606: 
59607: 
59608: 
59609:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
59610: 
59611:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
59612:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
59613:     eval "INCLUDEPATH$unique=set"
59614: 
59615:       if test ""; then
59616:         INCLUDES="-I$ai_p $INCLUDES"
59617:       else
59618:         INCLUDES="$INCLUDES -I$ai_p"
59619:       fi
59620: 
59621:   fi
59622: 
59623:   fi
59624: 
59625: 
59626:   if test "$ext_builddir/$dir" != "/usr/include"; then
59627: 
59628:   if test -z "$ext_builddir/$dir" || echo "$ext_builddir/$dir" | grep '^/' >/dev/null ; then
59629:     ai_p=$ext_builddir/$dir
59630:   else
59631: 
59632:     ep_dir=`echo $ext_builddir/$dir|$SED 's%/*[^/][^/]*/*$%%'`
59633: 
59634:     ep_realdir=`(cd "$ep_dir" && pwd)`
59635:     ai_p="$ep_realdir"/`basename "$ext_builddir/$dir"`
59636:   fi
59637: 
59638: 
59639: 
59640:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
59641: 
59642:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
59643:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
59644:     eval "INCLUDEPATH$unique=set"
59645: 
59646:       if test ""; then
59647:         INCLUDES="-I$ai_p $INCLUDES"
59648:       else
59649:         INCLUDES="$INCLUDES -I$ai_p"
59650:       fi
59651: 
59652:   fi
59653: 
59654:   fi
59655: 
59656:   done
59657: 
59658:   if test "$ext_shared" = "no"; then
59659: 
59660: 
59661:   case ext/mbstring in
59662:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
59663:   /*) ac_srcdir=`echo "ext/mbstring"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
59664:   *) ac_srcdir="$abs_srcdir/ext/mbstring/"; ac_bdir="ext/mbstring/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
59665:   esac
59666: 
59667: 
59668: 
59669:   b_c_pre=$php_c_pre
59670:   b_cxx_pre=$php_cxx_pre
59671:   b_c_meta=$php_c_meta
59672:   b_cxx_meta=$php_cxx_meta
59673:   b_c_post=$php_c_post
59674:   b_cxx_post=$php_cxx_post
59675:   b_lo=$php_lo
59676: 
59677: 
59678:   old_IFS=$IFS
59679:   for ac_src in $PHP_MBSTRING_BASE_SOURCES; do
59680: 
59681:       IFS=.
59682:       set $ac_src
59683:       ac_obj=$1
59684:       IFS=$old_IFS
59685: 
59686:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
59687: 
59688:       case $ac_src in
59689:         *.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" ;;
59690:         *.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" ;;
59691:         *.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" ;;
59692:         *.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" ;;
59693:       esac
59694: 
59695:     cat >>Makefile.objects<<EOF
59696: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
59697: 	$ac_comp
59698: EOF
59699:   done
59700: 
59701: 
59702:     out="php_config.h"
59703:   else
59704: 
59705:   case ext/mbstring in
59706:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
59707:   /*) ac_srcdir=`echo "ext/mbstring"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
59708:   *) ac_srcdir="$abs_srcdir/ext/mbstring/"; ac_bdir="ext/mbstring/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
59709:   esac
59710: 
59711: 
59712: 
59713:   b_c_pre=$shared_c_pre
59714:   b_cxx_pre=$shared_cxx_pre
59715:   b_c_meta=$shared_c_meta
59716:   b_cxx_meta=$shared_cxx_meta
59717:   b_c_post=$shared_c_post
59718:   b_cxx_post=$shared_cxx_post
59719:   b_lo=$shared_lo
59720: 
59721: 
59722:   old_IFS=$IFS
59723:   for ac_src in $PHP_MBSTRING_BASE_SOURCES; do
59724: 
59725:       IFS=.
59726:       set $ac_src
59727:       ac_obj=$1
59728:       IFS=$old_IFS
59729: 
59730:       shared_objects_mbstring="$shared_objects_mbstring $ac_bdir$ac_obj.lo"
59731: 
59732:       case $ac_src in
59733:         *.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" ;;
59734:         *.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" ;;
59735:         *.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" ;;
59736:         *.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" ;;
59737:       esac
59738: 
59739:     cat >>Makefile.objects<<EOF
59740: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
59741: 	$ac_comp
59742: EOF
59743:   done
59744: 
59745:     if test -f "$ext_builddir/config.h.in"; then
59746:       out="$abs_builddir/config.h"
59747:     else
59748:       out="php_config.h"
59749:     fi
59750:   fi
59751: 
59752:   for cfg in $PHP_MBSTRING_EXTRA_CONFIG_HEADERS; do
59753:     cat > $ext_builddir/$cfg <<EOF
59754: #include "$out"
59755: EOF
59756:   done
59757: 
59758:   PHP_MBSTRING_INSTALL_HEADERS="$PHP_MBSTRING_INSTALL_HEADERS mbstring.h"
59759: 
59760: 
59761: 
59762:     header_path=ext/mbstring
59763:     for header_file in $PHP_MBSTRING_INSTALL_HEADERS; do
59764:       hp_hf="$header_path/$header_file"
59765: 
59766: 
59767:   unique=`echo $hp_hf|$SED 's/[^a-zA-Z0-9]/_/g'`
59768: 
59769:   cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
59770:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
59771:     eval "INSTALLHEADERS$unique=set"
59772: 
59773:         INSTALL_HEADERS="$INSTALL_HEADERS $hp_hf"
59774: 
59775:   fi
59776: 
59777:     done
59778: 
59779: 
59780: 
59781: fi
59782: 
59783: # vim600: sts=2 sw=2 et
59784: 
59785: 
59786: 
59787: 
59788: 
59789: 
59790: php_with_mcrypt=no
59791: 
59792: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mcrypt support" >&5
59793: $as_echo_n "checking for mcrypt support... " >&6; }
59794: 
59795: # Check whether --with-mcrypt was given.
59796: if test "${with_mcrypt+set}" = set; then :
59797:   withval=$with_mcrypt; PHP_MCRYPT=$withval
59798: else
59799: 
59800:   PHP_MCRYPT=no
59801:   test "$PHP_ENABLE_ALL" && PHP_MCRYPT=$PHP_ENABLE_ALL
59802: 
59803: fi
59804: 
59805: 
59806: 
59807: ext_output="yes, shared"
59808: ext_shared=yes
59809: case $PHP_MCRYPT in
59810: shared,*)
59811:   PHP_MCRYPT=`echo "$PHP_MCRYPT"|$SED 's/^shared,//'`
59812:   ;;
59813: shared)
59814:   PHP_MCRYPT=yes
59815:   ;;
59816: no)
59817:   ext_output=no
59818:   ext_shared=no
59819:   ;;
59820: *)
59821:   ext_output=yes
59822:   ext_shared=no
59823:   ;;
59824: esac
59825: 
59826: 
59827: 
59828: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
59829: $as_echo "$ext_output" >&6; }
59830: 
59831: 
59832: 
59833: 
59834: if test "$PHP_MCRYPT" != "no"; then
59835:   for i in $PHP_MCRYPT /usr/local /usr; do
59836:     test -f $i/include/mcrypt.h && MCRYPT_DIR=$i && break
59837:   done
59838: 
59839:   if test -z "$MCRYPT_DIR"; then
59840:     as_fn_error $? "mcrypt.h not found. Please reinstall libmcrypt." "$LINENO" 5
59841:   fi
59842: 
59843: 
59844:   old_CPPFLAGS=$CPPFLAGS
59845:   CPPFLAGS=-I$MCRYPT_DIR/include
59846:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmcrypt version" >&5
59847: $as_echo_n "checking for libmcrypt version... " >&6; }
59848:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59849: /* end confdefs.h.  */
59850: 
59851: #include <mcrypt.h>
59852: #if MCRYPT_API_VERSION >= 20021217
59853:   yes
59854: #endif
59855: 
59856: _ACEOF
59857: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59858:   $EGREP "yes" >/dev/null 2>&1; then :
59859: 
59860:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: >= 2.5.6" >&5
59861: $as_echo ">= 2.5.6" >&6; }
59862: 
59863: else
59864: 
59865:     as_fn_error $? "libmcrypt version 2.5.6 or greater required." "$LINENO" 5
59866: 
59867: fi
59868: rm -f conftest*
59869: 
59870:   CPPFLAGS=$old_CPPFLAGS
59871: 
59872: 
59873: 
59874:   save_old_LDFLAGS=$LDFLAGS
59875:   ac_stuff="
59876:     -L$MCRYPT_DIR/$PHP_LIBDIR -lltdl
59877:   "
59878: 
59879:   save_ext_shared=$ext_shared
59880:   ext_shared=yes
59881: 
59882:   for ac_i in $ac_stuff; do
59883:     case $ac_i in
59884:     -pthread)
59885:       if test "$ext_shared" = "yes"; then
59886:         LDFLAGS="$LDFLAGS -pthread"
59887:       else
59888: 
59889: 
59890:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
59891: 
59892:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
59893:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
59894:     eval "EXTRA_LDFLAGS$unique=set"
59895:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
59896:   fi
59897: 
59898:       fi
59899:     ;;
59900:     -l*)
59901:       ac_ii=`echo $ac_i|cut -c 3-`
59902: 
59903: 
59904:   case $ac_ii in
59905:   c|c_r|pthread*) ;;
59906:   *)
59907:     if test "$ext_shared" = "yes"; then
59908:         LDFLAGS="$LDFLAGS -l$ac_ii"
59909:     else
59910: 
59911: 
59912:   case $ac_ii in
59913:   c|c_r|pthread*) ;;
59914:   *)
59915:       LIBS="$LIBS -l$ac_ii"
59916:    ;;
59917:   esac
59918: 
59919: 
59920:     fi
59921:    ;;
59922:   esac
59923: 
59924: 
59925:     ;;
59926:     -L*)
59927:       ac_ii=`echo $ac_i|cut -c 3-`
59928: 
59929:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
59930: 
59931:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
59932:     ai_p=$ac_ii
59933:   else
59934: 
59935:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
59936: 
59937:     ep_realdir=`(cd "$ep_dir" && pwd)`
59938:     ai_p="$ep_realdir"/`basename "$ac_ii"`
59939:   fi
59940: 
59941: 
59942:       if test "$ext_shared" = "yes"; then
59943:         LDFLAGS="-L$ai_p $LDFLAGS"
59944:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
59945:       else
59946: 
59947: 
59948: 
59949:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
59950: 
59951:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
59952:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
59953:     eval "LIBPATH$unique=set"
59954: 
59955:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
59956:     LDFLAGS="$LDFLAGS -L$ai_p"
59957:     PHP_RPATHS="$PHP_RPATHS $ai_p"
59958: 
59959:   fi
59960: 
59961: 
59962:       fi
59963: 
59964:   fi
59965: 
59966:     ;;
59967:     esac
59968:   done
59969: 
59970:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mcrypt_module_open in -lmcrypt" >&5
59971: $as_echo_n "checking for mcrypt_module_open in -lmcrypt... " >&6; }
59972: if ${ac_cv_lib_mcrypt_mcrypt_module_open+:} false; then :
59973:   $as_echo_n "(cached) " >&6
59974: else
59975:   ac_check_lib_save_LIBS=$LIBS
59976: LIBS="-lmcrypt  $LIBS"
59977: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59978: /* end confdefs.h.  */
59979: 
59980: /* Override any GCC internal prototype to avoid an error.
59981:    Use char because int might match the return type of a GCC
59982:    builtin and then its argument prototype would still apply.  */
59983: #ifdef __cplusplus
59984: extern "C"
59985: #endif
59986: char mcrypt_module_open ();
59987: int
59988: main ()
59989: {
59990: return mcrypt_module_open ();
59991:   ;
59992:   return 0;
59993: }
59994: _ACEOF
59995: if ac_fn_c_try_link "$LINENO"; then :
59996:   ac_cv_lib_mcrypt_mcrypt_module_open=yes
59997: else
59998:   ac_cv_lib_mcrypt_mcrypt_module_open=no
59999: fi
60000: rm -f core conftest.err conftest.$ac_objext \
60001:     conftest$ac_exeext conftest.$ac_ext
60002: LIBS=$ac_check_lib_save_LIBS
60003: fi
60004: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mcrypt_mcrypt_module_open" >&5
60005: $as_echo "$ac_cv_lib_mcrypt_mcrypt_module_open" >&6; }
60006: if test "x$ac_cv_lib_mcrypt_mcrypt_module_open" = xyes; then :
60007: 
60008:     LDFLAGS=$save_old_LDFLAGS
60009:     ext_shared=$save_ext_shared
60010: 
60011: 
60012: 
60013:   case ltdl in
60014:   c|c_r|pthread*) ;;
60015:   *)
60016:     if test "$ext_shared" = "yes"; then
60017:         MCRYPT_SHARED_LIBADD="-lltdl $MCRYPT_SHARED_LIBADD"
60018:     else
60019: 
60020: 
60021:   case ltdl in
60022:   c|c_r|pthread*) ;;
60023:   *)
60024:       LIBS="-lltdl $LIBS"
60025:    ;;
60026:   esac
60027: 
60028: 
60029:     fi
60030:    ;;
60031:   esac
60032: 
60033: 
60034: 
60035: $as_echo "#define HAVE_LIBMCRYPT 1" >>confdefs.h
60036: 
60037: 
60038: 
60039: else
60040: 
60041:     LDFLAGS=$save_old_LDFLAGS
60042:     ext_shared=$save_ext_shared
60043:     unset ac_cv_lib_mcrypt_mcrypt_module_open
60044: 
60045: 
60046:   save_old_LDFLAGS=$LDFLAGS
60047:   ac_stuff="
60048:       -L$MCRYPT_DIR/$PHP_LIBDIR
60049:     "
60050: 
60051:   save_ext_shared=$ext_shared
60052:   ext_shared=yes
60053: 
60054:   for ac_i in $ac_stuff; do
60055:     case $ac_i in
60056:     -pthread)
60057:       if test "$ext_shared" = "yes"; then
60058:         LDFLAGS="$LDFLAGS -pthread"
60059:       else
60060: 
60061: 
60062:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
60063: 
60064:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
60065:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
60066:     eval "EXTRA_LDFLAGS$unique=set"
60067:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
60068:   fi
60069: 
60070:       fi
60071:     ;;
60072:     -l*)
60073:       ac_ii=`echo $ac_i|cut -c 3-`
60074: 
60075: 
60076:   case $ac_ii in
60077:   c|c_r|pthread*) ;;
60078:   *)
60079:     if test "$ext_shared" = "yes"; then
60080:         LDFLAGS="$LDFLAGS -l$ac_ii"
60081:     else
60082: 
60083: 
60084:   case $ac_ii in
60085:   c|c_r|pthread*) ;;
60086:   *)
60087:       LIBS="$LIBS -l$ac_ii"
60088:    ;;
60089:   esac
60090: 
60091: 
60092:     fi
60093:    ;;
60094:   esac
60095: 
60096: 
60097:     ;;
60098:     -L*)
60099:       ac_ii=`echo $ac_i|cut -c 3-`
60100: 
60101:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
60102: 
60103:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
60104:     ai_p=$ac_ii
60105:   else
60106: 
60107:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
60108: 
60109:     ep_realdir=`(cd "$ep_dir" && pwd)`
60110:     ai_p="$ep_realdir"/`basename "$ac_ii"`
60111:   fi
60112: 
60113: 
60114:       if test "$ext_shared" = "yes"; then
60115:         LDFLAGS="-L$ai_p $LDFLAGS"
60116:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
60117:       else
60118: 
60119: 
60120: 
60121:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
60122: 
60123:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
60124:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
60125:     eval "LIBPATH$unique=set"
60126: 
60127:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
60128:     LDFLAGS="$LDFLAGS -L$ai_p"
60129:     PHP_RPATHS="$PHP_RPATHS $ai_p"
60130: 
60131:   fi
60132: 
60133: 
60134:       fi
60135: 
60136:   fi
60137: 
60138:     ;;
60139:     esac
60140:   done
60141: 
60142:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mcrypt_module_open in -lmcrypt" >&5
60143: $as_echo_n "checking for mcrypt_module_open in -lmcrypt... " >&6; }
60144: if ${ac_cv_lib_mcrypt_mcrypt_module_open+:} false; then :
60145:   $as_echo_n "(cached) " >&6
60146: else
60147:   ac_check_lib_save_LIBS=$LIBS
60148: LIBS="-lmcrypt  $LIBS"
60149: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60150: /* end confdefs.h.  */
60151: 
60152: /* Override any GCC internal prototype to avoid an error.
60153:    Use char because int might match the return type of a GCC
60154:    builtin and then its argument prototype would still apply.  */
60155: #ifdef __cplusplus
60156: extern "C"
60157: #endif
60158: char mcrypt_module_open ();
60159: int
60160: main ()
60161: {
60162: return mcrypt_module_open ();
60163:   ;
60164:   return 0;
60165: }
60166: _ACEOF
60167: if ac_fn_c_try_link "$LINENO"; then :
60168:   ac_cv_lib_mcrypt_mcrypt_module_open=yes
60169: else
60170:   ac_cv_lib_mcrypt_mcrypt_module_open=no
60171: fi
60172: rm -f core conftest.err conftest.$ac_objext \
60173:     conftest$ac_exeext conftest.$ac_ext
60174: LIBS=$ac_check_lib_save_LIBS
60175: fi
60176: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mcrypt_mcrypt_module_open" >&5
60177: $as_echo "$ac_cv_lib_mcrypt_mcrypt_module_open" >&6; }
60178: if test "x$ac_cv_lib_mcrypt_mcrypt_module_open" = xyes; then :
60179: 
60180:     LDFLAGS=$save_old_LDFLAGS
60181:     ext_shared=$save_ext_shared
60182: 
60183: 
60184: $as_echo "#define HAVE_LIBMCRYPT 1" >>confdefs.h
60185: 
60186: 
60187: 
60188: else
60189: 
60190:     LDFLAGS=$save_old_LDFLAGS
60191:     ext_shared=$save_ext_shared
60192:     unset ac_cv_lib_mcrypt_mcrypt_module_open
60193: 
60194:       as_fn_error $? "Sorry, I was not able to diagnose which libmcrypt version you have installed." "$LINENO" 5
60195: 
60196: 
60197: fi
60198: 
60199: 
60200: 
60201: fi
60202: 
60203: 
60204: 
60205: 
60206:   if test "$ext_shared" = "yes"; then
60207:     MCRYPT_SHARED_LIBADD="-lmcrypt $MCRYPT_SHARED_LIBADD"
60208:     if test -n "$MCRYPT_DIR/$PHP_LIBDIR"; then
60209: 
60210:   if test "$MCRYPT_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$MCRYPT_DIR/$PHP_LIBDIR" != "/usr/lib"; then
60211: 
60212:   if test -z "$MCRYPT_DIR/$PHP_LIBDIR" || echo "$MCRYPT_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
60213:     ai_p=$MCRYPT_DIR/$PHP_LIBDIR
60214:   else
60215: 
60216:     ep_dir=`echo $MCRYPT_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
60217: 
60218:     ep_realdir=`(cd "$ep_dir" && pwd)`
60219:     ai_p="$ep_realdir"/`basename "$MCRYPT_DIR/$PHP_LIBDIR"`
60220:   fi
60221: 
60222: 
60223:       if test "$ext_shared" = "yes"; then
60224:         MCRYPT_SHARED_LIBADD="-L$ai_p $MCRYPT_SHARED_LIBADD"
60225:         test -n "$ld_runpath_switch" && MCRYPT_SHARED_LIBADD="$ld_runpath_switch$ai_p $MCRYPT_SHARED_LIBADD"
60226:       else
60227: 
60228: 
60229: 
60230:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
60231: 
60232:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
60233:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
60234:     eval "LIBPATH$unique=set"
60235: 
60236:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
60237:     LDFLAGS="$LDFLAGS -L$ai_p"
60238:     PHP_RPATHS="$PHP_RPATHS $ai_p"
60239: 
60240:   fi
60241: 
60242: 
60243:       fi
60244: 
60245:   fi
60246: 
60247:     fi
60248:   else
60249: 
60250: 
60251:   if test -n "$MCRYPT_DIR/$PHP_LIBDIR"; then
60252: 
60253:   if test "$MCRYPT_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$MCRYPT_DIR/$PHP_LIBDIR" != "/usr/lib"; then
60254: 
60255:   if test -z "$MCRYPT_DIR/$PHP_LIBDIR" || echo "$MCRYPT_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
60256:     ai_p=$MCRYPT_DIR/$PHP_LIBDIR
60257:   else
60258: 
60259:     ep_dir=`echo $MCRYPT_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
60260: 
60261:     ep_realdir=`(cd "$ep_dir" && pwd)`
60262:     ai_p="$ep_realdir"/`basename "$MCRYPT_DIR/$PHP_LIBDIR"`
60263:   fi
60264: 
60265: 
60266: 
60267: 
60268: 
60269:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
60270: 
60271:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
60272:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
60273:     eval "LIBPATH$unique=set"
60274: 
60275:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
60276:     LDFLAGS="$LDFLAGS -L$ai_p"
60277:     PHP_RPATHS="$PHP_RPATHS $ai_p"
60278: 
60279:   fi
60280: 
60281: 
60282: 
60283:   fi
60284: 
60285:   fi
60286: 
60287: 
60288:   case mcrypt in
60289:   c|c_r|pthread*) ;;
60290:   *)
60291:       LIBS="-lmcrypt $LIBS"
60292:    ;;
60293:   esac
60294: 
60295: 
60296: 
60297: 
60298:   fi
60299: 
60300: 
60301: 
60302:   if test "$MCRYPT_DIR/include" != "/usr/include"; then
60303: 
60304:   if test -z "$MCRYPT_DIR/include" || echo "$MCRYPT_DIR/include" | grep '^/' >/dev/null ; then
60305:     ai_p=$MCRYPT_DIR/include
60306:   else
60307: 
60308:     ep_dir=`echo $MCRYPT_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`
60309: 
60310:     ep_realdir=`(cd "$ep_dir" && pwd)`
60311:     ai_p="$ep_realdir"/`basename "$MCRYPT_DIR/include"`
60312:   fi
60313: 
60314: 
60315: 
60316:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
60317: 
60318:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
60319:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
60320:     eval "INCLUDEPATH$unique=set"
60321: 
60322:       if test ""; then
60323:         INCLUDES="-I$ai_p $INCLUDES"
60324:       else
60325:         INCLUDES="$INCLUDES -I$ai_p"
60326:       fi
60327: 
60328:   fi
60329: 
60330:   fi
60331: 
60332: 
60333: 
60334:   PHP_VAR_SUBST="$PHP_VAR_SUBST MCRYPT_SHARED_LIBADD"
60335: 
60336: 
60337:   ext_builddir=ext/mcrypt
60338:   ext_srcdir=$abs_srcdir/ext/mcrypt
60339: 
60340:   ac_extra=
60341: 
60342:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
60343:     PHP_MCRYPT_SHARED=no
60344: 
60345: 
60346:   case ext/mcrypt in
60347:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
60348:   /*) ac_srcdir=`echo "ext/mcrypt"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
60349:   *) ac_srcdir="$abs_srcdir/ext/mcrypt/"; ac_bdir="ext/mcrypt/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
60350:   esac
60351: 
60352: 
60353: 
60354:   b_c_pre=$php_c_pre
60355:   b_cxx_pre=$php_cxx_pre
60356:   b_c_meta=$php_c_meta
60357:   b_cxx_meta=$php_cxx_meta
60358:   b_c_post=$php_c_post
60359:   b_cxx_post=$php_cxx_post
60360:   b_lo=$php_lo
60361: 
60362: 
60363:   old_IFS=$IFS
60364:   for ac_src in mcrypt.c mcrypt_filter.c; do
60365: 
60366:       IFS=.
60367:       set $ac_src
60368:       ac_obj=$1
60369:       IFS=$old_IFS
60370: 
60371:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
60372: 
60373:       case $ac_src in
60374:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
60375:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
60376:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
60377:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
60378:       esac
60379: 
60380:     cat >>Makefile.objects<<EOF
60381: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
60382: 	$ac_comp
60383: EOF
60384:   done
60385: 
60386: 
60387:     EXT_STATIC="$EXT_STATIC mcrypt"
60388:     if test "$ext_shared" != "nocli"; then
60389:       EXT_CLI_STATIC="$EXT_CLI_STATIC mcrypt"
60390:     fi
60391:   else
60392:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
60393:       PHP_MCRYPT_SHARED=yes
60394: 
60395:   case ext/mcrypt in
60396:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
60397:   /*) ac_srcdir=`echo "ext/mcrypt"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
60398:   *) ac_srcdir="$abs_srcdir/ext/mcrypt/"; ac_bdir="ext/mcrypt/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
60399:   esac
60400: 
60401: 
60402: 
60403:   b_c_pre=$shared_c_pre
60404:   b_cxx_pre=$shared_cxx_pre
60405:   b_c_meta=$shared_c_meta
60406:   b_cxx_meta=$shared_cxx_meta
60407:   b_c_post=$shared_c_post
60408:   b_cxx_post=$shared_cxx_post
60409:   b_lo=$shared_lo
60410: 
60411: 
60412:   old_IFS=$IFS
60413:   for ac_src in mcrypt.c mcrypt_filter.c; do
60414: 
60415:       IFS=.
60416:       set $ac_src
60417:       ac_obj=$1
60418:       IFS=$old_IFS
60419: 
60420:       shared_objects_mcrypt="$shared_objects_mcrypt $ac_bdir$ac_obj.lo"
60421: 
60422:       case $ac_src in
60423:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
60424:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
60425:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
60426:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
60427:       esac
60428: 
60429:     cat >>Makefile.objects<<EOF
60430: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
60431: 	$ac_comp
60432: EOF
60433:   done
60434: 
60435:       case $host_alias in
60436:         *netware*)
60437: 
60438:   install_modules="install-modules"
60439: 
60440:   case $host_alias in
60441:     *aix*)
60442:       suffix=so
60443:       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'
60444:       ;;
60445:     *netware*)
60446:       suffix=nlm
60447:       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)'
60448:       ;;
60449:     *)
60450:       suffix=la
60451:       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)'
60452:       ;;
60453:   esac
60454: 
60455:   if test "x" = "xyes"; then
60456:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpmcrypt.$suffix"
60457:   else
60458:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpmcrypt.$suffix"
60459:   fi
60460: 
60461:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_mcrypt"
60462: 
60463:   cat >>Makefile.objects<<EOF
60464: \$(phplibdir)/phpmcrypt.$suffix: $ext_builddir/phpmcrypt.$suffix
60465: 	\$(LIBTOOL) --mode=install cp $ext_builddir/phpmcrypt.$suffix \$(phplibdir)
60466: 
60467: $ext_builddir/phpmcrypt.$suffix: \$(shared_objects_mcrypt) \$(PHPMCRYPT_SHARED_DEPENDENCIES)
60468: 	$link_cmd
60469: 
60470: EOF
60471: 
60472:           ;;
60473:         *)
60474: 
60475:   install_modules="install-modules"
60476: 
60477:   case $host_alias in
60478:     *aix*)
60479:       suffix=so
60480:       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'
60481:       ;;
60482:     *netware*)
60483:       suffix=nlm
60484:       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)'
60485:       ;;
60486:     *)
60487:       suffix=la
60488:       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)'
60489:       ;;
60490:   esac
60491: 
60492:   if test "x" = "xyes"; then
60493:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/mcrypt.$suffix"
60494:   else
60495:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/mcrypt.$suffix"
60496:   fi
60497: 
60498:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_mcrypt"
60499: 
60500:   cat >>Makefile.objects<<EOF
60501: \$(phplibdir)/mcrypt.$suffix: $ext_builddir/mcrypt.$suffix
60502: 	\$(LIBTOOL) --mode=install cp $ext_builddir/mcrypt.$suffix \$(phplibdir)
60503: 
60504: $ext_builddir/mcrypt.$suffix: \$(shared_objects_mcrypt) \$(MCRYPT_SHARED_DEPENDENCIES)
60505: 	$link_cmd
60506: 
60507: EOF
60508: 
60509:           ;;
60510:       esac
60511: 
60512: cat >>confdefs.h <<_ACEOF
60513: #define COMPILE_DL_MCRYPT 1
60514: _ACEOF
60515: 
60516:     fi
60517:   fi
60518: 
60519:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
60520:     PHP_MCRYPT_SHARED=no
60521:     case "$PHP_SAPI" in
60522:       cgi|embed)
60523: 
60524: 
60525:   case ext/mcrypt in
60526:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
60527:   /*) ac_srcdir=`echo "ext/mcrypt"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
60528:   *) ac_srcdir="$abs_srcdir/ext/mcrypt/"; ac_bdir="ext/mcrypt/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
60529:   esac
60530: 
60531: 
60532: 
60533:   b_c_pre=$php_c_pre
60534:   b_cxx_pre=$php_cxx_pre
60535:   b_c_meta=$php_c_meta
60536:   b_cxx_meta=$php_cxx_meta
60537:   b_c_post=$php_c_post
60538:   b_cxx_post=$php_cxx_post
60539:   b_lo=$php_lo
60540: 
60541: 
60542:   old_IFS=$IFS
60543:   for ac_src in mcrypt.c mcrypt_filter.c; do
60544: 
60545:       IFS=.
60546:       set $ac_src
60547:       ac_obj=$1
60548:       IFS=$old_IFS
60549: 
60550:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
60551: 
60552:       case $ac_src in
60553:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
60554:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
60555:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
60556:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
60557:       esac
60558: 
60559:     cat >>Makefile.objects<<EOF
60560: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
60561: 	$ac_comp
60562: EOF
60563:   done
60564: 
60565: 
60566:         EXT_STATIC="$EXT_STATIC mcrypt"
60567:         ;;
60568:       *)
60569: 
60570: 
60571:   case ext/mcrypt in
60572:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
60573:   /*) ac_srcdir=`echo "ext/mcrypt"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
60574:   *) ac_srcdir="$abs_srcdir/ext/mcrypt/"; ac_bdir="ext/mcrypt/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
60575:   esac
60576: 
60577: 
60578: 
60579:   b_c_pre=$php_c_pre
60580:   b_cxx_pre=$php_cxx_pre
60581:   b_c_meta=$php_c_meta
60582:   b_cxx_meta=$php_cxx_meta
60583:   b_c_post=$php_c_post
60584:   b_cxx_post=$php_cxx_post
60585:   b_lo=$php_lo
60586: 
60587: 
60588:   old_IFS=$IFS
60589:   for ac_src in mcrypt.c mcrypt_filter.c; do
60590: 
60591:       IFS=.
60592:       set $ac_src
60593:       ac_obj=$1
60594:       IFS=$old_IFS
60595: 
60596:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
60597: 
60598:       case $ac_src in
60599:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
60600:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
60601:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
60602:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
60603:       esac
60604: 
60605:     cat >>Makefile.objects<<EOF
60606: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
60607: 	$ac_comp
60608: EOF
60609:   done
60610: 
60611: 
60612:         ;;
60613:     esac
60614:     EXT_CLI_STATIC="$EXT_CLI_STATIC mcrypt"
60615:   fi
60616: 
60617: 
60618:     BUILD_DIR="$BUILD_DIR $ext_builddir"
60619: 
60620: 
60621: 
60622:   if test "$ext_builddir" = "."; then
60623:     PHP_PECL_EXTENSION=mcrypt
60624: 
60625:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
60626: 
60627:   fi
60628: 
60629: fi
60630: 
60631: 
60632: 
60633: php_with_mssql=no
60634: 
60635: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSSQL support via FreeTDS" >&5
60636: $as_echo_n "checking for MSSQL support via FreeTDS... " >&6; }
60637: 
60638: # Check whether --with-mssql was given.
60639: if test "${with_mssql+set}" = set; then :
60640:   withval=$with_mssql; PHP_MSSQL=$withval
60641: else
60642: 
60643:   PHP_MSSQL=no
60644:   test "$PHP_ENABLE_ALL" && PHP_MSSQL=$PHP_ENABLE_ALL
60645: 
60646: fi
60647: 
60648: 
60649: 
60650: ext_output="yes, shared"
60651: ext_shared=yes
60652: case $PHP_MSSQL in
60653: shared,*)
60654:   PHP_MSSQL=`echo "$PHP_MSSQL"|$SED 's/^shared,//'`
60655:   ;;
60656: shared)
60657:   PHP_MSSQL=yes
60658:   ;;
60659: no)
60660:   ext_output=no
60661:   ext_shared=no
60662:   ;;
60663: *)
60664:   ext_output=yes
60665:   ext_shared=no
60666:   ;;
60667: esac
60668: 
60669: 
60670: 
60671: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
60672: $as_echo "$ext_output" >&6; }
60673: 
60674: 
60675: 
60676: 
60677: if test "$PHP_MSSQL" != "no"; then
60678: 
60679:   if test "$PHP_MSSQL" = "yes"; then
60680:     for i in /usr/local /usr; do
60681:       if test -f $i/include/sybdb.h; then
60682:         FREETDS_INSTALLATION_DIR=$i
60683:         FREETDS_INCLUDE_DIR=$i/include
60684:         break
60685:       elif test -f $i/include/freetds/sybdb.h; then
60686:         FREETDS_INSTALLATION_DIR=$i
60687:         FREETDS_INCLUDE_DIR=$i/include/freetds
60688:         break
60689:       fi
60690:     done
60691: 
60692:     if test -z "$FREETDS_INSTALLATION_DIR"; then
60693:       as_fn_error $? "Cannot find FreeTDS in known installation directories" "$LINENO" 5
60694:     fi
60695: 
60696:   elif test "$PHP_MSSQL" != "no"; then
60697: 
60698:     if test -f $PHP_MSSQL/include/sybdb.h; then
60699:       FREETDS_INSTALLATION_DIR=$PHP_MSSQL
60700:       FREETDS_INCLUDE_DIR=$PHP_MSSQL/include
60701:     elif test -f $PHP_MSSQL/include/freetds/sybdb.h; then
60702:       FREETDS_INSTALLATION_DIR=$PHP_MSSQL
60703:       FREETDS_INCLUDE_DIR=$PHP_MSSQL/include/freetds
60704:     else
60705:       as_fn_error $? "Directory $PHP_MSSQL is not a FreeTDS installation directory" "$LINENO" 5
60706:     fi
60707:   fi
60708: 
60709:   if test ! -r "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.a" && test ! -r "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.so"; then
60710:      as_fn_error $? "Could not find $FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.a|so" "$LINENO" 5
60711:   fi
60712: 
60713: 
60714:   if test "$FREETDS_INCLUDE_DIR" != "/usr/include"; then
60715: 
60716:   if test -z "$FREETDS_INCLUDE_DIR" || echo "$FREETDS_INCLUDE_DIR" | grep '^/' >/dev/null ; then
60717:     ai_p=$FREETDS_INCLUDE_DIR
60718:   else
60719: 
60720:     ep_dir=`echo $FREETDS_INCLUDE_DIR|$SED 's%/*[^/][^/]*/*$%%'`
60721: 
60722:     ep_realdir=`(cd "$ep_dir" && pwd)`
60723:     ai_p="$ep_realdir"/`basename "$FREETDS_INCLUDE_DIR"`
60724:   fi
60725: 
60726: 
60727: 
60728:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
60729: 
60730:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
60731:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
60732:     eval "INCLUDEPATH$unique=set"
60733: 
60734:       if test ""; then
60735:         INCLUDES="-I$ai_p $INCLUDES"
60736:       else
60737:         INCLUDES="$INCLUDES -I$ai_p"
60738:       fi
60739: 
60740:   fi
60741: 
60742:   fi
60743: 
60744: 
60745: 
60746:   if test "$ext_shared" = "yes"; then
60747:     MSSQL_SHARED_LIBADD="-lsybdb $MSSQL_SHARED_LIBADD"
60748:     if test -n "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR"; then
60749: 
60750:   if test "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" != "/usr/lib"; then
60751: 
60752:   if test -z "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" || echo "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
60753:     ai_p=$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR
60754:   else
60755: 
60756:     ep_dir=`echo $FREETDS_INSTALLATION_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
60757: 
60758:     ep_realdir=`(cd "$ep_dir" && pwd)`
60759:     ai_p="$ep_realdir"/`basename "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR"`
60760:   fi
60761: 
60762: 
60763:       if test "$ext_shared" = "yes"; then
60764:         MSSQL_SHARED_LIBADD="-L$ai_p $MSSQL_SHARED_LIBADD"
60765:         test -n "$ld_runpath_switch" && MSSQL_SHARED_LIBADD="$ld_runpath_switch$ai_p $MSSQL_SHARED_LIBADD"
60766:       else
60767: 
60768: 
60769: 
60770:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
60771: 
60772:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
60773:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
60774:     eval "LIBPATH$unique=set"
60775: 
60776:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
60777:     LDFLAGS="$LDFLAGS -L$ai_p"
60778:     PHP_RPATHS="$PHP_RPATHS $ai_p"
60779: 
60780:   fi
60781: 
60782: 
60783:       fi
60784: 
60785:   fi
60786: 
60787:     fi
60788:   else
60789: 
60790: 
60791:   if test -n "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR"; then
60792: 
60793:   if test "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" != "/usr/lib"; then
60794: 
60795:   if test -z "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" || echo "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
60796:     ai_p=$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR
60797:   else
60798: 
60799:     ep_dir=`echo $FREETDS_INSTALLATION_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
60800: 
60801:     ep_realdir=`(cd "$ep_dir" && pwd)`
60802:     ai_p="$ep_realdir"/`basename "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR"`
60803:   fi
60804: 
60805: 
60806: 
60807: 
60808: 
60809:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
60810: 
60811:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
60812:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
60813:     eval "LIBPATH$unique=set"
60814: 
60815:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
60816:     LDFLAGS="$LDFLAGS -L$ai_p"
60817:     PHP_RPATHS="$PHP_RPATHS $ai_p"
60818: 
60819:   fi
60820: 
60821: 
60822: 
60823:   fi
60824: 
60825:   fi
60826: 
60827: 
60828:   case sybdb in
60829:   c|c_r|pthread*) ;;
60830:   *)
60831:       LIBS="-lsybdb $LIBS"
60832:    ;;
60833:   esac
60834: 
60835: 
60836: 
60837: 
60838:   fi
60839: 
60840: 
60841: 
60842: 
60843:   ext_builddir=ext/mssql
60844:   ext_srcdir=$abs_srcdir/ext/mssql
60845: 
60846:   ac_extra=
60847: 
60848:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
60849:     PHP_MSSQL_SHARED=no
60850: 
60851: 
60852:   case ext/mssql in
60853:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
60854:   /*) ac_srcdir=`echo "ext/mssql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
60855:   *) ac_srcdir="$abs_srcdir/ext/mssql/"; ac_bdir="ext/mssql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
60856:   esac
60857: 
60858: 
60859: 
60860:   b_c_pre=$php_c_pre
60861:   b_cxx_pre=$php_cxx_pre
60862:   b_c_meta=$php_c_meta
60863:   b_cxx_meta=$php_cxx_meta
60864:   b_c_post=$php_c_post
60865:   b_cxx_post=$php_cxx_post
60866:   b_lo=$php_lo
60867: 
60868: 
60869:   old_IFS=$IFS
60870:   for ac_src in php_mssql.c; do
60871: 
60872:       IFS=.
60873:       set $ac_src
60874:       ac_obj=$1
60875:       IFS=$old_IFS
60876: 
60877:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
60878: 
60879:       case $ac_src in
60880:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
60881:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
60882:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
60883:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
60884:       esac
60885: 
60886:     cat >>Makefile.objects<<EOF
60887: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
60888: 	$ac_comp
60889: EOF
60890:   done
60891: 
60892: 
60893:     EXT_STATIC="$EXT_STATIC mssql"
60894:     if test "$ext_shared" != "nocli"; then
60895:       EXT_CLI_STATIC="$EXT_CLI_STATIC mssql"
60896:     fi
60897:   else
60898:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
60899:       PHP_MSSQL_SHARED=yes
60900: 
60901:   case ext/mssql in
60902:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
60903:   /*) ac_srcdir=`echo "ext/mssql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
60904:   *) ac_srcdir="$abs_srcdir/ext/mssql/"; ac_bdir="ext/mssql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
60905:   esac
60906: 
60907: 
60908: 
60909:   b_c_pre=$shared_c_pre
60910:   b_cxx_pre=$shared_cxx_pre
60911:   b_c_meta=$shared_c_meta
60912:   b_cxx_meta=$shared_cxx_meta
60913:   b_c_post=$shared_c_post
60914:   b_cxx_post=$shared_cxx_post
60915:   b_lo=$shared_lo
60916: 
60917: 
60918:   old_IFS=$IFS
60919:   for ac_src in php_mssql.c; do
60920: 
60921:       IFS=.
60922:       set $ac_src
60923:       ac_obj=$1
60924:       IFS=$old_IFS
60925: 
60926:       shared_objects_mssql="$shared_objects_mssql $ac_bdir$ac_obj.lo"
60927: 
60928:       case $ac_src in
60929:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
60930:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
60931:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
60932:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
60933:       esac
60934: 
60935:     cat >>Makefile.objects<<EOF
60936: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
60937: 	$ac_comp
60938: EOF
60939:   done
60940: 
60941:       case $host_alias in
60942:         *netware*)
60943: 
60944:   install_modules="install-modules"
60945: 
60946:   case $host_alias in
60947:     *aix*)
60948:       suffix=so
60949:       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'
60950:       ;;
60951:     *netware*)
60952:       suffix=nlm
60953:       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)'
60954:       ;;
60955:     *)
60956:       suffix=la
60957:       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)'
60958:       ;;
60959:   esac
60960: 
60961:   if test "x" = "xyes"; then
60962:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpmssql.$suffix"
60963:   else
60964:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpmssql.$suffix"
60965:   fi
60966: 
60967:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_mssql"
60968: 
60969:   cat >>Makefile.objects<<EOF
60970: \$(phplibdir)/phpmssql.$suffix: $ext_builddir/phpmssql.$suffix
60971: 	\$(LIBTOOL) --mode=install cp $ext_builddir/phpmssql.$suffix \$(phplibdir)
60972: 
60973: $ext_builddir/phpmssql.$suffix: \$(shared_objects_mssql) \$(PHPMSSQL_SHARED_DEPENDENCIES)
60974: 	$link_cmd
60975: 
60976: EOF
60977: 
60978:           ;;
60979:         *)
60980: 
60981:   install_modules="install-modules"
60982: 
60983:   case $host_alias in
60984:     *aix*)
60985:       suffix=so
60986:       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'
60987:       ;;
60988:     *netware*)
60989:       suffix=nlm
60990:       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)'
60991:       ;;
60992:     *)
60993:       suffix=la
60994:       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)'
60995:       ;;
60996:   esac
60997: 
60998:   if test "x" = "xyes"; then
60999:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/mssql.$suffix"
61000:   else
61001:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/mssql.$suffix"
61002:   fi
61003: 
61004:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_mssql"
61005: 
61006:   cat >>Makefile.objects<<EOF
61007: \$(phplibdir)/mssql.$suffix: $ext_builddir/mssql.$suffix
61008: 	\$(LIBTOOL) --mode=install cp $ext_builddir/mssql.$suffix \$(phplibdir)
61009: 
61010: $ext_builddir/mssql.$suffix: \$(shared_objects_mssql) \$(MSSQL_SHARED_DEPENDENCIES)
61011: 	$link_cmd
61012: 
61013: EOF
61014: 
61015:           ;;
61016:       esac
61017: 
61018: cat >>confdefs.h <<_ACEOF
61019: #define COMPILE_DL_MSSQL 1
61020: _ACEOF
61021: 
61022:     fi
61023:   fi
61024: 
61025:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
61026:     PHP_MSSQL_SHARED=no
61027:     case "$PHP_SAPI" in
61028:       cgi|embed)
61029: 
61030: 
61031:   case ext/mssql in
61032:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
61033:   /*) ac_srcdir=`echo "ext/mssql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
61034:   *) ac_srcdir="$abs_srcdir/ext/mssql/"; ac_bdir="ext/mssql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
61035:   esac
61036: 
61037: 
61038: 
61039:   b_c_pre=$php_c_pre
61040:   b_cxx_pre=$php_cxx_pre
61041:   b_c_meta=$php_c_meta
61042:   b_cxx_meta=$php_cxx_meta
61043:   b_c_post=$php_c_post
61044:   b_cxx_post=$php_cxx_post
61045:   b_lo=$php_lo
61046: 
61047: 
61048:   old_IFS=$IFS
61049:   for ac_src in php_mssql.c; do
61050: 
61051:       IFS=.
61052:       set $ac_src
61053:       ac_obj=$1
61054:       IFS=$old_IFS
61055: 
61056:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
61057: 
61058:       case $ac_src in
61059:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
61060:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
61061:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
61062:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
61063:       esac
61064: 
61065:     cat >>Makefile.objects<<EOF
61066: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
61067: 	$ac_comp
61068: EOF
61069:   done
61070: 
61071: 
61072:         EXT_STATIC="$EXT_STATIC mssql"
61073:         ;;
61074:       *)
61075: 
61076: 
61077:   case ext/mssql in
61078:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
61079:   /*) ac_srcdir=`echo "ext/mssql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
61080:   *) ac_srcdir="$abs_srcdir/ext/mssql/"; ac_bdir="ext/mssql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
61081:   esac
61082: 
61083: 
61084: 
61085:   b_c_pre=$php_c_pre
61086:   b_cxx_pre=$php_cxx_pre
61087:   b_c_meta=$php_c_meta
61088:   b_cxx_meta=$php_cxx_meta
61089:   b_c_post=$php_c_post
61090:   b_cxx_post=$php_cxx_post
61091:   b_lo=$php_lo
61092: 
61093: 
61094:   old_IFS=$IFS
61095:   for ac_src in php_mssql.c; do
61096: 
61097:       IFS=.
61098:       set $ac_src
61099:       ac_obj=$1
61100:       IFS=$old_IFS
61101: 
61102:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
61103: 
61104:       case $ac_src in
61105:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
61106:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
61107:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
61108:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
61109:       esac
61110: 
61111:     cat >>Makefile.objects<<EOF
61112: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
61113: 	$ac_comp
61114: EOF
61115:   done
61116: 
61117: 
61118:         ;;
61119:     esac
61120:     EXT_CLI_STATIC="$EXT_CLI_STATIC mssql"
61121:   fi
61122: 
61123: 
61124:     BUILD_DIR="$BUILD_DIR $ext_builddir"
61125: 
61126: 
61127: 
61128:   if test "$ext_builddir" = "."; then
61129:     PHP_PECL_EXTENSION=mssql
61130: 
61131:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
61132: 
61133:   fi
61134: 
61135:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_addr in -ldnet_stub" >&5
61136: $as_echo_n "checking for dnet_addr in -ldnet_stub... " >&6; }
61137: if ${ac_cv_lib_dnet_stub_dnet_addr+:} false; then :
61138:   $as_echo_n "(cached) " >&6
61139: else
61140:   ac_check_lib_save_LIBS=$LIBS
61141: LIBS="-ldnet_stub  $LIBS"
61142: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61143: /* end confdefs.h.  */
61144: 
61145: /* Override any GCC internal prototype to avoid an error.
61146:    Use char because int might match the return type of a GCC
61147:    builtin and then its argument prototype would still apply.  */
61148: #ifdef __cplusplus
61149: extern "C"
61150: #endif
61151: char dnet_addr ();
61152: int
61153: main ()
61154: {
61155: return dnet_addr ();
61156:   ;
61157:   return 0;
61158: }
61159: _ACEOF
61160: if ac_fn_c_try_link "$LINENO"; then :
61161:   ac_cv_lib_dnet_stub_dnet_addr=yes
61162: else
61163:   ac_cv_lib_dnet_stub_dnet_addr=no
61164: fi
61165: rm -f core conftest.err conftest.$ac_objext \
61166:     conftest$ac_exeext conftest.$ac_ext
61167: LIBS=$ac_check_lib_save_LIBS
61168: fi
61169: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_addr" >&5
61170: $as_echo "$ac_cv_lib_dnet_stub_dnet_addr" >&6; }
61171: if test "x$ac_cv_lib_dnet_stub_dnet_addr" = xyes; then :
61172: 
61173: 
61174:   if test "$ext_shared" = "yes"; then
61175:     MSSQL_SHARED_LIBADD="-ldnet_stub $MSSQL_SHARED_LIBADD"
61176:     if test -n ""; then
61177: 
61178:   if test "" != "/usr/$PHP_LIBDIR" && test "" != "/usr/lib"; then
61179: 
61180:   if test -z "" || echo "" | grep '^/' >/dev/null ; then
61181:     ai_p=
61182:   else
61183: 
61184:     ep_dir=`echo |$SED 's%/*[^/][^/]*/*$%%'`
61185: 
61186:     ep_realdir=`(cd "$ep_dir" && pwd)`
61187:     ai_p="$ep_realdir"/`basename ""`
61188:   fi
61189: 
61190: 
61191:       if test "$ext_shared" = "yes"; then
61192:         MSSQL_SHARED_LIBADD="-L$ai_p $MSSQL_SHARED_LIBADD"
61193:         test -n "$ld_runpath_switch" && MSSQL_SHARED_LIBADD="$ld_runpath_switch$ai_p $MSSQL_SHARED_LIBADD"
61194:       else
61195: 
61196: 
61197: 
61198:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
61199: 
61200:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
61201:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
61202:     eval "LIBPATH$unique=set"
61203: 
61204:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
61205:     LDFLAGS="$LDFLAGS -L$ai_p"
61206:     PHP_RPATHS="$PHP_RPATHS $ai_p"
61207: 
61208:   fi
61209: 
61210: 
61211:       fi
61212: 
61213:   fi
61214: 
61215:     fi
61216:   else
61217: 
61218: 
61219:   if test -n ""; then
61220: 
61221:   if test "" != "/usr/$PHP_LIBDIR" && test "" != "/usr/lib"; then
61222: 
61223:   if test -z "" || echo "" | grep '^/' >/dev/null ; then
61224:     ai_p=
61225:   else
61226: 
61227:     ep_dir=`echo |$SED 's%/*[^/][^/]*/*$%%'`
61228: 
61229:     ep_realdir=`(cd "$ep_dir" && pwd)`
61230:     ai_p="$ep_realdir"/`basename ""`
61231:   fi
61232: 
61233: 
61234: 
61235: 
61236: 
61237:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
61238: 
61239:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
61240:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
61241:     eval "LIBPATH$unique=set"
61242: 
61243:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
61244:     LDFLAGS="$LDFLAGS -L$ai_p"
61245:     PHP_RPATHS="$PHP_RPATHS $ai_p"
61246: 
61247:   fi
61248: 
61249: 
61250: 
61251:   fi
61252: 
61253:   fi
61254: 
61255: 
61256:   case dnet_stub in
61257:   c|c_r|pthread*) ;;
61258:   *)
61259:       LIBS="-ldnet_stub $LIBS"
61260:    ;;
61261:   esac
61262: 
61263: 
61264: 
61265: 
61266:   fi
61267: 
61268: 
61269: 
61270: $as_echo "#define HAVE_LIBDNET_STUB 1" >>confdefs.h
61271: 
61272: 
61273: fi
61274: 
61275: 
61276: $as_echo "#define HAVE_MSSQL 1" >>confdefs.h
61277: 
61278: 
61279: $as_echo "#define HAVE_FREETDS 1" >>confdefs.h
61280: 
61281: 
61282:   PHP_VAR_SUBST="$PHP_VAR_SUBST MSSQL_SHARED_LIBADD"
61283: 
61284: fi
61285: 
61286: 
61287: 
61288: 
61289: 
61290: 
61291: 
61292: 
61293: php_with_mysql=no
61294: 
61295: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
61296: $as_echo_n "checking for MySQL support... " >&6; }
61297: 
61298: # Check whether --with-mysql was given.
61299: if test "${with_mysql+set}" = set; then :
61300:   withval=$with_mysql; PHP_MYSQL=$withval
61301: else
61302: 
61303:   PHP_MYSQL=no
61304:   test "$PHP_ENABLE_ALL" && PHP_MYSQL=$PHP_ENABLE_ALL
61305: 
61306: fi
61307: 
61308: 
61309: 
61310: ext_output="yes, shared"
61311: ext_shared=yes
61312: case $PHP_MYSQL in
61313: shared,*)
61314:   PHP_MYSQL=`echo "$PHP_MYSQL"|$SED 's/^shared,//'`
61315:   ;;
61316: shared)
61317:   PHP_MYSQL=yes
61318:   ;;
61319: no)
61320:   ext_output=no
61321:   ext_shared=no
61322:   ;;
61323: *)
61324:   ext_output=yes
61325:   ext_shared=no
61326:   ;;
61327: esac
61328: 
61329: 
61330: 
61331: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
61332: $as_echo "$ext_output" >&6; }
61333: 
61334: 
61335: 
61336: 
61337: 
61338: php_with_mysql_sock=no
61339: 
61340: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for specified location of the MySQL UNIX socket" >&5
61341: $as_echo_n "checking for specified location of the MySQL UNIX socket... " >&6; }
61342: 
61343: # Check whether --with-mysql-sock was given.
61344: if test "${with_mysql_sock+set}" = set; then :
61345:   withval=$with_mysql_sock; PHP_MYSQL_SOCK=$withval
61346: else
61347: 
61348:   PHP_MYSQL_SOCK=no
61349: 
61350: 
61351: fi
61352: 
61353: 
61354: ext_output=$PHP_MYSQL_SOCK
61355: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
61356: $as_echo "$ext_output" >&6; }
61357: 
61358: 
61359: 
61360: 
61361: if test -z "$PHP_ZLIB_DIR"; then
61362: 
61363: php_with_zlib_dir=no
61364: 
61365: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the location of libz" >&5
61366: $as_echo_n "checking for the location of libz... " >&6; }
61367: 
61368: # Check whether --with-zlib-dir was given.
61369: if test "${with_zlib_dir+set}" = set; then :
61370:   withval=$with_zlib_dir; PHP_ZLIB_DIR=$withval
61371: else
61372: 
61373:   PHP_ZLIB_DIR=no
61374: 
61375: 
61376: fi
61377: 
61378: 
61379: ext_output=$PHP_ZLIB_DIR
61380: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
61381: $as_echo "$ext_output" >&6; }
61382: 
61383: 
61384: 
61385: fi
61386: 
61387: if test "$PHP_MYSQL" = "yes" || test "$PHP_MYSQL" = "mysqlnd"; then
61388:     PHP_MYSQLND_ENABLED=yes
61389: 
61390: elif test "$PHP_MYSQL" != "no"; then
61391:   MYSQL_DIR=
61392:   MYSQL_INC_DIR=
61393: 
61394:   if test -r $PHP_MYSQL/include/mysql/mysql.h; then
61395:     MYSQL_DIR=$PHP_MYSQL
61396:     MYSQL_INC_DIR=$PHP_MYSQL/include/mysql
61397:     break
61398:   elif test -r $PHP_MYSQL/include/mysql.h; then
61399:     MYSQL_DIR=$PHP_MYSQL
61400:     MYSQL_INC_DIR=$PHP_MYSQL/include
61401:     break
61402:   fi
61403: 
61404:   if test -z "$MYSQL_DIR"; then
61405:     as_fn_error $? "Cannot find MySQL header files under $PHP_MYSQL.
61406: Note that the MySQL client library is not bundled anymore!" "$LINENO" 5
61407:   fi
61408: 
61409:   if test "$enable_maintainer_zts" = "yes"; then
61410:     MYSQL_LIBNAME=mysqlclient_r
61411:   else
61412:     MYSQL_LIBNAME=mysqlclient
61413:   fi
61414:   case $host_alias in
61415:     *netware*)
61416:       MYSQL_LIBNAME=mysql
61417:       ;;
61418:   esac
61419: 
61420:     if test -z "$PHP_LIBDIR"; then
61421:     PHP_LIBDIR=lib
61422:   fi
61423: 
61424:   for i in $PHP_LIBDIR $PHP_LIBDIR/mysql; do
61425: 
61426:   str="$MYSQL_DIR/$i/lib$MYSQL_LIBNAME.*"
61427:   for j in `echo $str`; do
61428:     if test -r $j; then
61429:       MYSQL_LIB_DIR=$MYSQL_DIR/$i
61430:       break 2
61431:     fi
61432:   done
61433: 
61434:   done
61435: 
61436:   if test -z "$MYSQL_LIB_DIR"; then
61437: 
61438:   str="$MYSQL_DIR/lib/x86_64-linux-gnu/lib$MYSQL_LIBNAME.*"
61439:   for j in `echo $str`; do
61440:     if test -r $j; then
61441:       MYSQL_LIB_DIR=$MYSQL_DIR/lib/x86_64-linux-gnu
61442:       break 2
61443:     fi
61444:   done
61445: 
61446:   fi
61447:   if test -z "$MYSQL_LIB_DIR"; then
61448: 
61449:   str="$MYSQL_DIR/lib/i386-linux-gnu/lib$MYSQL_LIBNAME.*"
61450:   for j in `echo $str`; do
61451:     if test -r $j; then
61452:       MYSQL_LIB_DIR=$MYSQL_DIR/lib/i386-linux-gnu
61453:       break 2
61454:     fi
61455:   done
61456: 
61457:   fi
61458: 
61459:   if test -z "$MYSQL_LIB_DIR"; then
61460:     as_fn_error $? "Cannot find lib$MYSQL_LIBNAME under $MYSQL_DIR.
61461: Note that the MySQL client library is not bundled anymore!" "$LINENO" 5
61462:   fi
61463: 
61464: 
61465:   save_old_LDFLAGS=$LDFLAGS
61466:   ac_stuff="
61467:     -L$MYSQL_LIB_DIR
61468:   "
61469: 
61470:   save_ext_shared=$ext_shared
61471:   ext_shared=yes
61472: 
61473:   for ac_i in $ac_stuff; do
61474:     case $ac_i in
61475:     -pthread)
61476:       if test "$ext_shared" = "yes"; then
61477:         LDFLAGS="$LDFLAGS -pthread"
61478:       else
61479: 
61480: 
61481:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
61482: 
61483:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
61484:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
61485:     eval "EXTRA_LDFLAGS$unique=set"
61486:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
61487:   fi
61488: 
61489:       fi
61490:     ;;
61491:     -l*)
61492:       ac_ii=`echo $ac_i|cut -c 3-`
61493: 
61494: 
61495:   case $ac_ii in
61496:   c|c_r|pthread*) ;;
61497:   *)
61498:     if test "$ext_shared" = "yes"; then
61499:         LDFLAGS="$LDFLAGS -l$ac_ii"
61500:     else
61501: 
61502: 
61503:   case $ac_ii in
61504:   c|c_r|pthread*) ;;
61505:   *)
61506:       LIBS="$LIBS -l$ac_ii"
61507:    ;;
61508:   esac
61509: 
61510: 
61511:     fi
61512:    ;;
61513:   esac
61514: 
61515: 
61516:     ;;
61517:     -L*)
61518:       ac_ii=`echo $ac_i|cut -c 3-`
61519: 
61520:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
61521: 
61522:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
61523:     ai_p=$ac_ii
61524:   else
61525: 
61526:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
61527: 
61528:     ep_realdir=`(cd "$ep_dir" && pwd)`
61529:     ai_p="$ep_realdir"/`basename "$ac_ii"`
61530:   fi
61531: 
61532: 
61533:       if test "$ext_shared" = "yes"; then
61534:         LDFLAGS="-L$ai_p $LDFLAGS"
61535:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
61536:       else
61537: 
61538: 
61539: 
61540:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
61541: 
61542:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
61543:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
61544:     eval "LIBPATH$unique=set"
61545: 
61546:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
61547:     LDFLAGS="$LDFLAGS -L$ai_p"
61548:     PHP_RPATHS="$PHP_RPATHS $ai_p"
61549: 
61550:   fi
61551: 
61552: 
61553:       fi
61554: 
61555:   fi
61556: 
61557:     ;;
61558:     esac
61559:   done
61560: 
61561:   as_ac_Lib=`$as_echo "ac_cv_lib_$MYSQL_LIBNAME''_mysql_close" | $as_tr_sh`
61562: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_close in -l$MYSQL_LIBNAME" >&5
61563: $as_echo_n "checking for mysql_close in -l$MYSQL_LIBNAME... " >&6; }
61564: if eval \${$as_ac_Lib+:} false; then :
61565:   $as_echo_n "(cached) " >&6
61566: else
61567:   ac_check_lib_save_LIBS=$LIBS
61568: LIBS="-l$MYSQL_LIBNAME  $LIBS"
61569: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61570: /* end confdefs.h.  */
61571: 
61572: /* Override any GCC internal prototype to avoid an error.
61573:    Use char because int might match the return type of a GCC
61574:    builtin and then its argument prototype would still apply.  */
61575: #ifdef __cplusplus
61576: extern "C"
61577: #endif
61578: char mysql_close ();
61579: int
61580: main ()
61581: {
61582: return mysql_close ();
61583:   ;
61584:   return 0;
61585: }
61586: _ACEOF
61587: if ac_fn_c_try_link "$LINENO"; then :
61588:   eval "$as_ac_Lib=yes"
61589: else
61590:   eval "$as_ac_Lib=no"
61591: fi
61592: rm -f core conftest.err conftest.$ac_objext \
61593:     conftest$ac_exeext conftest.$ac_ext
61594: LIBS=$ac_check_lib_save_LIBS
61595: fi
61596: eval ac_res=\$$as_ac_Lib
61597: 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
61598: $as_echo "$ac_res" >&6; }
61599: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
61600: 
61601:     LDFLAGS=$save_old_LDFLAGS
61602:     ext_shared=$save_ext_shared
61603: 
61604: 
61605: else
61606: 
61607:     LDFLAGS=$save_old_LDFLAGS
61608:     ext_shared=$save_ext_shared
61609:     unset ac_cv_lib_$MYSQL_LIBNAME_mysql_close
61610: 
61611:     if test "$PHP_ZLIB_DIR" != "no"; then
61612: 
61613: 
61614:   if test "$ext_shared" = "yes"; then
61615:     MYSQL_SHARED_LIBADD="-lz $MYSQL_SHARED_LIBADD"
61616:     if test -n "$PHP_ZLIB_DIR"; then
61617: 
61618:   if test "$PHP_ZLIB_DIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ZLIB_DIR" != "/usr/lib"; then
61619: 
61620:   if test -z "$PHP_ZLIB_DIR" || echo "$PHP_ZLIB_DIR" | grep '^/' >/dev/null ; then
61621:     ai_p=$PHP_ZLIB_DIR
61622:   else
61623: 
61624:     ep_dir=`echo $PHP_ZLIB_DIR|$SED 's%/*[^/][^/]*/*$%%'`
61625: 
61626:     ep_realdir=`(cd "$ep_dir" && pwd)`
61627:     ai_p="$ep_realdir"/`basename "$PHP_ZLIB_DIR"`
61628:   fi
61629: 
61630: 
61631:       if test "$ext_shared" = "yes"; then
61632:         MYSQL_SHARED_LIBADD="-L$ai_p $MYSQL_SHARED_LIBADD"
61633:         test -n "$ld_runpath_switch" && MYSQL_SHARED_LIBADD="$ld_runpath_switch$ai_p $MYSQL_SHARED_LIBADD"
61634:       else
61635: 
61636: 
61637: 
61638:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
61639: 
61640:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
61641:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
61642:     eval "LIBPATH$unique=set"
61643: 
61644:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
61645:     LDFLAGS="$LDFLAGS -L$ai_p"
61646:     PHP_RPATHS="$PHP_RPATHS $ai_p"
61647: 
61648:   fi
61649: 
61650: 
61651:       fi
61652: 
61653:   fi
61654: 
61655:     fi
61656:   else
61657: 
61658: 
61659:   if test -n "$PHP_ZLIB_DIR"; then
61660: 
61661:   if test "$PHP_ZLIB_DIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ZLIB_DIR" != "/usr/lib"; then
61662: 
61663:   if test -z "$PHP_ZLIB_DIR" || echo "$PHP_ZLIB_DIR" | grep '^/' >/dev/null ; then
61664:     ai_p=$PHP_ZLIB_DIR
61665:   else
61666: 
61667:     ep_dir=`echo $PHP_ZLIB_DIR|$SED 's%/*[^/][^/]*/*$%%'`
61668: 
61669:     ep_realdir=`(cd "$ep_dir" && pwd)`
61670:     ai_p="$ep_realdir"/`basename "$PHP_ZLIB_DIR"`
61671:   fi
61672: 
61673: 
61674: 
61675: 
61676: 
61677:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
61678: 
61679:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
61680:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
61681:     eval "LIBPATH$unique=set"
61682: 
61683:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
61684:     LDFLAGS="$LDFLAGS -L$ai_p"
61685:     PHP_RPATHS="$PHP_RPATHS $ai_p"
61686: 
61687:   fi
61688: 
61689: 
61690: 
61691:   fi
61692: 
61693:   fi
61694: 
61695: 
61696:   case z in
61697:   c|c_r|pthread*) ;;
61698:   *)
61699:       LIBS="-lz $LIBS"
61700:    ;;
61701:   esac
61702: 
61703: 
61704: 
61705: 
61706:   fi
61707: 
61708: 
61709: 
61710:   save_old_LDFLAGS=$LDFLAGS
61711:   ac_stuff="
61712:         -L$PHP_ZLIB_DIR/$PHP_LIBDIR -L$MYSQL_LIB_DIR
61713:       "
61714: 
61715:   save_ext_shared=$ext_shared
61716:   ext_shared=yes
61717: 
61718:   for ac_i in $ac_stuff; do
61719:     case $ac_i in
61720:     -pthread)
61721:       if test "$ext_shared" = "yes"; then
61722:         LDFLAGS="$LDFLAGS -pthread"
61723:       else
61724: 
61725: 
61726:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
61727: 
61728:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
61729:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
61730:     eval "EXTRA_LDFLAGS$unique=set"
61731:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
61732:   fi
61733: 
61734:       fi
61735:     ;;
61736:     -l*)
61737:       ac_ii=`echo $ac_i|cut -c 3-`
61738: 
61739: 
61740:   case $ac_ii in
61741:   c|c_r|pthread*) ;;
61742:   *)
61743:     if test "$ext_shared" = "yes"; then
61744:         LDFLAGS="$LDFLAGS -l$ac_ii"
61745:     else
61746: 
61747: 
61748:   case $ac_ii in
61749:   c|c_r|pthread*) ;;
61750:   *)
61751:       LIBS="$LIBS -l$ac_ii"
61752:    ;;
61753:   esac
61754: 
61755: 
61756:     fi
61757:    ;;
61758:   esac
61759: 
61760: 
61761:     ;;
61762:     -L*)
61763:       ac_ii=`echo $ac_i|cut -c 3-`
61764: 
61765:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
61766: 
61767:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
61768:     ai_p=$ac_ii
61769:   else
61770: 
61771:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
61772: 
61773:     ep_realdir=`(cd "$ep_dir" && pwd)`
61774:     ai_p="$ep_realdir"/`basename "$ac_ii"`
61775:   fi
61776: 
61777: 
61778:       if test "$ext_shared" = "yes"; then
61779:         LDFLAGS="-L$ai_p $LDFLAGS"
61780:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
61781:       else
61782: 
61783: 
61784: 
61785:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
61786: 
61787:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
61788:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
61789:     eval "LIBPATH$unique=set"
61790: 
61791:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
61792:     LDFLAGS="$LDFLAGS -L$ai_p"
61793:     PHP_RPATHS="$PHP_RPATHS $ai_p"
61794: 
61795:   fi
61796: 
61797: 
61798:       fi
61799: 
61800:   fi
61801: 
61802:     ;;
61803:     esac
61804:   done
61805: 
61806:   as_ac_Lib=`$as_echo "ac_cv_lib_$MYSQL_LIBNAME''_mysql_error" | $as_tr_sh`
61807: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_error in -l$MYSQL_LIBNAME" >&5
61808: $as_echo_n "checking for mysql_error in -l$MYSQL_LIBNAME... " >&6; }
61809: if eval \${$as_ac_Lib+:} false; then :
61810:   $as_echo_n "(cached) " >&6
61811: else
61812:   ac_check_lib_save_LIBS=$LIBS
61813: LIBS="-l$MYSQL_LIBNAME  $LIBS"
61814: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61815: /* end confdefs.h.  */
61816: 
61817: /* Override any GCC internal prototype to avoid an error.
61818:    Use char because int might match the return type of a GCC
61819:    builtin and then its argument prototype would still apply.  */
61820: #ifdef __cplusplus
61821: extern "C"
61822: #endif
61823: char mysql_error ();
61824: int
61825: main ()
61826: {
61827: return mysql_error ();
61828:   ;
61829:   return 0;
61830: }
61831: _ACEOF
61832: if ac_fn_c_try_link "$LINENO"; then :
61833:   eval "$as_ac_Lib=yes"
61834: else
61835:   eval "$as_ac_Lib=no"
61836: fi
61837: rm -f core conftest.err conftest.$ac_objext \
61838:     conftest$ac_exeext conftest.$ac_ext
61839: LIBS=$ac_check_lib_save_LIBS
61840: fi
61841: eval ac_res=\$$as_ac_Lib
61842: 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
61843: $as_echo "$ac_res" >&6; }
61844: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
61845: 
61846:     LDFLAGS=$save_old_LDFLAGS
61847:     ext_shared=$save_ext_shared
61848: 
61849: 
61850: else
61851: 
61852:     LDFLAGS=$save_old_LDFLAGS
61853:     ext_shared=$save_ext_shared
61854:     unset ac_cv_lib_$MYSQL_LIBNAME_mysql_error
61855: 
61856:         as_fn_error $? "mysql configure failed. Please check config.log for more information." "$LINENO" 5
61857: 
61858: 
61859: fi
61860: 
61861:       MYSQL_LIBS="-L$PHP_ZLIB_DIR/$PHP_LIBDIR -lz"
61862:     else
61863: 
61864: 
61865:   case z in
61866:   c|c_r|pthread*) ;;
61867:   *)
61868:     if test "$ext_shared" = "yes"; then
61869:         MYSQL_SHARED_LIBADD="-lz $MYSQL_SHARED_LIBADD"
61870:     else
61871: 
61872: 
61873:   case z in
61874:   c|c_r|pthread*) ;;
61875:   *)
61876:       LIBS="-lz $LIBS"
61877:    ;;
61878:   esac
61879: 
61880: 
61881:     fi
61882:    ;;
61883:   esac
61884: 
61885: 
61886: 
61887:   save_old_LDFLAGS=$LDFLAGS
61888:   ac_stuff="
61889:         -L$MYSQL_LIB_DIR
61890:       "
61891: 
61892:   save_ext_shared=$ext_shared
61893:   ext_shared=yes
61894: 
61895:   for ac_i in $ac_stuff; do
61896:     case $ac_i in
61897:     -pthread)
61898:       if test "$ext_shared" = "yes"; then
61899:         LDFLAGS="$LDFLAGS -pthread"
61900:       else
61901: 
61902: 
61903:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
61904: 
61905:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
61906:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
61907:     eval "EXTRA_LDFLAGS$unique=set"
61908:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
61909:   fi
61910: 
61911:       fi
61912:     ;;
61913:     -l*)
61914:       ac_ii=`echo $ac_i|cut -c 3-`
61915: 
61916: 
61917:   case $ac_ii in
61918:   c|c_r|pthread*) ;;
61919:   *)
61920:     if test "$ext_shared" = "yes"; then
61921:         LDFLAGS="$LDFLAGS -l$ac_ii"
61922:     else
61923: 
61924: 
61925:   case $ac_ii in
61926:   c|c_r|pthread*) ;;
61927:   *)
61928:       LIBS="$LIBS -l$ac_ii"
61929:    ;;
61930:   esac
61931: 
61932: 
61933:     fi
61934:    ;;
61935:   esac
61936: 
61937: 
61938:     ;;
61939:     -L*)
61940:       ac_ii=`echo $ac_i|cut -c 3-`
61941: 
61942:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
61943: 
61944:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
61945:     ai_p=$ac_ii
61946:   else
61947: 
61948:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
61949: 
61950:     ep_realdir=`(cd "$ep_dir" && pwd)`
61951:     ai_p="$ep_realdir"/`basename "$ac_ii"`
61952:   fi
61953: 
61954: 
61955:       if test "$ext_shared" = "yes"; then
61956:         LDFLAGS="-L$ai_p $LDFLAGS"
61957:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
61958:       else
61959: 
61960: 
61961: 
61962:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
61963: 
61964:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
61965:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
61966:     eval "LIBPATH$unique=set"
61967: 
61968:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
61969:     LDFLAGS="$LDFLAGS -L$ai_p"
61970:     PHP_RPATHS="$PHP_RPATHS $ai_p"
61971: 
61972:   fi
61973: 
61974: 
61975:       fi
61976: 
61977:   fi
61978: 
61979:     ;;
61980:     esac
61981:   done
61982: 
61983:   as_ac_Lib=`$as_echo "ac_cv_lib_$MYSQL_LIBNAME''_mysql_errno" | $as_tr_sh`
61984: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_errno in -l$MYSQL_LIBNAME" >&5
61985: $as_echo_n "checking for mysql_errno in -l$MYSQL_LIBNAME... " >&6; }
61986: if eval \${$as_ac_Lib+:} false; then :
61987:   $as_echo_n "(cached) " >&6
61988: else
61989:   ac_check_lib_save_LIBS=$LIBS
61990: LIBS="-l$MYSQL_LIBNAME  $LIBS"
61991: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61992: /* end confdefs.h.  */
61993: 
61994: /* Override any GCC internal prototype to avoid an error.
61995:    Use char because int might match the return type of a GCC
61996:    builtin and then its argument prototype would still apply.  */
61997: #ifdef __cplusplus
61998: extern "C"
61999: #endif
62000: char mysql_errno ();
62001: int
62002: main ()
62003: {
62004: return mysql_errno ();
62005:   ;
62006:   return 0;
62007: }
62008: _ACEOF
62009: if ac_fn_c_try_link "$LINENO"; then :
62010:   eval "$as_ac_Lib=yes"
62011: else
62012:   eval "$as_ac_Lib=no"
62013: fi
62014: rm -f core conftest.err conftest.$ac_objext \
62015:     conftest$ac_exeext conftest.$ac_ext
62016: LIBS=$ac_check_lib_save_LIBS
62017: fi
62018: eval ac_res=\$$as_ac_Lib
62019: 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
62020: $as_echo "$ac_res" >&6; }
62021: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
62022: 
62023:     LDFLAGS=$save_old_LDFLAGS
62024:     ext_shared=$save_ext_shared
62025: 
62026: 
62027: else
62028: 
62029:     LDFLAGS=$save_old_LDFLAGS
62030:     ext_shared=$save_ext_shared
62031:     unset ac_cv_lib_$MYSQL_LIBNAME_mysql_errno
62032: 
62033:         as_fn_error $? "Try adding --with-zlib-dir=<DIR>. Please check config.log for more information." "$LINENO" 5
62034: 
62035: 
62036: fi
62037: 
62038:       MYSQL_LIBS="-lz"
62039:     fi
62040: 
62041: 
62042: fi
62043: 
62044: 
62045: 
62046: 
62047:   if test "$ext_shared" = "yes"; then
62048:     MYSQL_SHARED_LIBADD="-l$MYSQL_LIBNAME $MYSQL_SHARED_LIBADD"
62049:     if test -n "$MYSQL_LIB_DIR"; then
62050: 
62051:   if test "$MYSQL_LIB_DIR" != "/usr/$PHP_LIBDIR" && test "$MYSQL_LIB_DIR" != "/usr/lib"; then
62052: 
62053:   if test -z "$MYSQL_LIB_DIR" || echo "$MYSQL_LIB_DIR" | grep '^/' >/dev/null ; then
62054:     ai_p=$MYSQL_LIB_DIR
62055:   else
62056: 
62057:     ep_dir=`echo $MYSQL_LIB_DIR|$SED 's%/*[^/][^/]*/*$%%'`
62058: 
62059:     ep_realdir=`(cd "$ep_dir" && pwd)`
62060:     ai_p="$ep_realdir"/`basename "$MYSQL_LIB_DIR"`
62061:   fi
62062: 
62063: 
62064:       if test "$ext_shared" = "yes"; then
62065:         MYSQL_SHARED_LIBADD="-L$ai_p $MYSQL_SHARED_LIBADD"
62066:         test -n "$ld_runpath_switch" && MYSQL_SHARED_LIBADD="$ld_runpath_switch$ai_p $MYSQL_SHARED_LIBADD"
62067:       else
62068: 
62069: 
62070: 
62071:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
62072: 
62073:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
62074:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
62075:     eval "LIBPATH$unique=set"
62076: 
62077:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
62078:     LDFLAGS="$LDFLAGS -L$ai_p"
62079:     PHP_RPATHS="$PHP_RPATHS $ai_p"
62080: 
62081:   fi
62082: 
62083: 
62084:       fi
62085: 
62086:   fi
62087: 
62088:     fi
62089:   else
62090: 
62091: 
62092:   if test -n "$MYSQL_LIB_DIR"; then
62093: 
62094:   if test "$MYSQL_LIB_DIR" != "/usr/$PHP_LIBDIR" && test "$MYSQL_LIB_DIR" != "/usr/lib"; then
62095: 
62096:   if test -z "$MYSQL_LIB_DIR" || echo "$MYSQL_LIB_DIR" | grep '^/' >/dev/null ; then
62097:     ai_p=$MYSQL_LIB_DIR
62098:   else
62099: 
62100:     ep_dir=`echo $MYSQL_LIB_DIR|$SED 's%/*[^/][^/]*/*$%%'`
62101: 
62102:     ep_realdir=`(cd "$ep_dir" && pwd)`
62103:     ai_p="$ep_realdir"/`basename "$MYSQL_LIB_DIR"`
62104:   fi
62105: 
62106: 
62107: 
62108: 
62109: 
62110:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
62111: 
62112:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
62113:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
62114:     eval "LIBPATH$unique=set"
62115: 
62116:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
62117:     LDFLAGS="$LDFLAGS -L$ai_p"
62118:     PHP_RPATHS="$PHP_RPATHS $ai_p"
62119: 
62120:   fi
62121: 
62122: 
62123: 
62124:   fi
62125: 
62126:   fi
62127: 
62128: 
62129:   case $MYSQL_LIBNAME in
62130:   c|c_r|pthread*) ;;
62131:   *)
62132:       LIBS="-l$MYSQL_LIBNAME $LIBS"
62133:    ;;
62134:   esac
62135: 
62136: 
62137: 
62138: 
62139:   fi
62140: 
62141: 
62142: 
62143:   if test "$MYSQL_INC_DIR" != "/usr/include"; then
62144: 
62145:   if test -z "$MYSQL_INC_DIR" || echo "$MYSQL_INC_DIR" | grep '^/' >/dev/null ; then
62146:     ai_p=$MYSQL_INC_DIR
62147:   else
62148: 
62149:     ep_dir=`echo $MYSQL_INC_DIR|$SED 's%/*[^/][^/]*/*$%%'`
62150: 
62151:     ep_realdir=`(cd "$ep_dir" && pwd)`
62152:     ai_p="$ep_realdir"/`basename "$MYSQL_INC_DIR"`
62153:   fi
62154: 
62155: 
62156: 
62157:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
62158: 
62159:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
62160:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
62161:     eval "INCLUDEPATH$unique=set"
62162: 
62163:       if test ""; then
62164:         INCLUDES="-I$ai_p $INCLUDES"
62165:       else
62166:         INCLUDES="$INCLUDES -I$ai_p"
62167:       fi
62168: 
62169:   fi
62170: 
62171:   fi
62172: 
62173: 
62174:   MYSQL_MODULE_TYPE=external
62175:   MYSQL_LIBS="-L$MYSQL_LIB_DIR -l$MYSQL_LIBNAME $MYSQL_LIBS"
62176:   MYSQL_INCLUDE=-I$MYSQL_INC_DIR
62177: 
62178: 
62179: 
62180:   PHP_VAR_SUBST="$PHP_VAR_SUBST MYSQL_MODULE_TYPE"
62181: 
62182: 
62183: 
62184: 
62185: 
62186:   PHP_VAR_SUBST="$PHP_VAR_SUBST MYSQL_LIBS"
62187: 
62188: 
62189: 
62190: 
62191: 
62192:   PHP_VAR_SUBST="$PHP_VAR_SUBST MYSQL_INCLUDE"
62193: 
62194: 
62195: 
62196: fi
62197: 
62198: if test "$PHP_MYSQL" != "no"; then
62199:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL UNIX socket location" >&5
62200: $as_echo_n "checking for MySQL UNIX socket location... " >&6; }
62201:   if test "$PHP_MYSQL_SOCK" != "no" && test "$PHP_MYSQL_SOCK" != "yes"; then
62202:     MYSQL_SOCK=$PHP_MYSQL_SOCK
62203: 
62204: cat >>confdefs.h <<_ACEOF
62205: #define PHP_MYSQL_UNIX_SOCK_ADDR "$MYSQL_SOCK"
62206: _ACEOF
62207: 
62208:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_SOCK" >&5
62209: $as_echo "$MYSQL_SOCK" >&6; }
62210:   elif test "$PHP_MYSQL" = "yes" || test "$PHP_MYSQL_SOCK" = "yes"; then
62211: 
62212:   for i in  \
62213:     /var/run/mysqld/mysqld.sock \
62214:     /var/tmp/mysql.sock \
62215:     /var/run/mysql/mysql.sock \
62216:     /var/lib/mysql/mysql.sock \
62217:     /var/mysql/mysql.sock \
62218:     /usr/local/mysql/var/mysql.sock \
62219:     /Private/tmp/mysql.sock \
62220:     /private/tmp/mysql.sock \
62221:     /tmp/mysql.sock \
62222:   ; do
62223:     if test -r $i; then
62224:       MYSQL_SOCK=$i
62225:       break 2
62226:     fi
62227:   done
62228: 
62229:   if test -n "$MYSQL_SOCK"; then
62230: 
62231: cat >>confdefs.h <<_ACEOF
62232: #define PHP_MYSQL_UNIX_SOCK_ADDR "$MYSQL_SOCK"
62233: _ACEOF
62234: 
62235:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_SOCK" >&5
62236: $as_echo "$MYSQL_SOCK" >&6; }
62237:   else
62238:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
62239: $as_echo "no" >&6; }
62240:   fi
62241: 
62242:   else
62243:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
62244: $as_echo "no" >&6; }
62245:   fi
62246: 
62247: 
62248: $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
62249: 
62250: 
62251:   ext_builddir=ext/mysql
62252:   ext_srcdir=$abs_srcdir/ext/mysql
62253: 
62254:   ac_extra=
62255: 
62256:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
62257:     PHP_MYSQL_SHARED=no
62258: 
62259: 
62260:   case ext/mysql in
62261:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
62262:   /*) ac_srcdir=`echo "ext/mysql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
62263:   *) ac_srcdir="$abs_srcdir/ext/mysql/"; ac_bdir="ext/mysql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
62264:   esac
62265: 
62266: 
62267: 
62268:   b_c_pre=$php_c_pre
62269:   b_cxx_pre=$php_cxx_pre
62270:   b_c_meta=$php_c_meta
62271:   b_cxx_meta=$php_cxx_meta
62272:   b_c_post=$php_c_post
62273:   b_cxx_post=$php_cxx_post
62274:   b_lo=$php_lo
62275: 
62276: 
62277:   old_IFS=$IFS
62278:   for ac_src in php_mysql.c; do
62279: 
62280:       IFS=.
62281:       set $ac_src
62282:       ac_obj=$1
62283:       IFS=$old_IFS
62284: 
62285:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
62286: 
62287:       case $ac_src in
62288:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
62289:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
62290:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
62291:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
62292:       esac
62293: 
62294:     cat >>Makefile.objects<<EOF
62295: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
62296: 	$ac_comp
62297: EOF
62298:   done
62299: 
62300: 
62301:     EXT_STATIC="$EXT_STATIC mysql"
62302:     if test "$ext_shared" != "nocli"; then
62303:       EXT_CLI_STATIC="$EXT_CLI_STATIC mysql"
62304:     fi
62305:   else
62306:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
62307:       PHP_MYSQL_SHARED=yes
62308: 
62309:   case ext/mysql in
62310:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
62311:   /*) ac_srcdir=`echo "ext/mysql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
62312:   *) ac_srcdir="$abs_srcdir/ext/mysql/"; ac_bdir="ext/mysql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
62313:   esac
62314: 
62315: 
62316: 
62317:   b_c_pre=$shared_c_pre
62318:   b_cxx_pre=$shared_cxx_pre
62319:   b_c_meta=$shared_c_meta
62320:   b_cxx_meta=$shared_cxx_meta
62321:   b_c_post=$shared_c_post
62322:   b_cxx_post=$shared_cxx_post
62323:   b_lo=$shared_lo
62324: 
62325: 
62326:   old_IFS=$IFS
62327:   for ac_src in php_mysql.c; do
62328: 
62329:       IFS=.
62330:       set $ac_src
62331:       ac_obj=$1
62332:       IFS=$old_IFS
62333: 
62334:       shared_objects_mysql="$shared_objects_mysql $ac_bdir$ac_obj.lo"
62335: 
62336:       case $ac_src in
62337:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
62338:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
62339:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
62340:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
62341:       esac
62342: 
62343:     cat >>Makefile.objects<<EOF
62344: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
62345: 	$ac_comp
62346: EOF
62347:   done
62348: 
62349:       case $host_alias in
62350:         *netware*)
62351: 
62352:   install_modules="install-modules"
62353: 
62354:   case $host_alias in
62355:     *aix*)
62356:       suffix=so
62357:       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'
62358:       ;;
62359:     *netware*)
62360:       suffix=nlm
62361:       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)'
62362:       ;;
62363:     *)
62364:       suffix=la
62365:       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)'
62366:       ;;
62367:   esac
62368: 
62369:   if test "x" = "xyes"; then
62370:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpmysql.$suffix"
62371:   else
62372:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpmysql.$suffix"
62373:   fi
62374: 
62375:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_mysql"
62376: 
62377:   cat >>Makefile.objects<<EOF
62378: \$(phplibdir)/phpmysql.$suffix: $ext_builddir/phpmysql.$suffix
62379: 	\$(LIBTOOL) --mode=install cp $ext_builddir/phpmysql.$suffix \$(phplibdir)
62380: 
62381: $ext_builddir/phpmysql.$suffix: \$(shared_objects_mysql) \$(PHPMYSQL_SHARED_DEPENDENCIES)
62382: 	$link_cmd
62383: 
62384: EOF
62385: 
62386:           ;;
62387:         *)
62388: 
62389:   install_modules="install-modules"
62390: 
62391:   case $host_alias in
62392:     *aix*)
62393:       suffix=so
62394:       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'
62395:       ;;
62396:     *netware*)
62397:       suffix=nlm
62398:       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)'
62399:       ;;
62400:     *)
62401:       suffix=la
62402:       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)'
62403:       ;;
62404:   esac
62405: 
62406:   if test "x" = "xyes"; then
62407:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/mysql.$suffix"
62408:   else
62409:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/mysql.$suffix"
62410:   fi
62411: 
62412:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_mysql"
62413: 
62414:   cat >>Makefile.objects<<EOF
62415: \$(phplibdir)/mysql.$suffix: $ext_builddir/mysql.$suffix
62416: 	\$(LIBTOOL) --mode=install cp $ext_builddir/mysql.$suffix \$(phplibdir)
62417: 
62418: $ext_builddir/mysql.$suffix: \$(shared_objects_mysql) \$(MYSQL_SHARED_DEPENDENCIES)
62419: 	$link_cmd
62420: 
62421: EOF
62422: 
62423:           ;;
62424:       esac
62425: 
62426: cat >>confdefs.h <<_ACEOF
62427: #define COMPILE_DL_MYSQL 1
62428: _ACEOF
62429: 
62430:     fi
62431:   fi
62432: 
62433:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
62434:     PHP_MYSQL_SHARED=no
62435:     case "$PHP_SAPI" in
62436:       cgi|embed)
62437: 
62438: 
62439:   case ext/mysql in
62440:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
62441:   /*) ac_srcdir=`echo "ext/mysql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
62442:   *) ac_srcdir="$abs_srcdir/ext/mysql/"; ac_bdir="ext/mysql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
62443:   esac
62444: 
62445: 
62446: 
62447:   b_c_pre=$php_c_pre
62448:   b_cxx_pre=$php_cxx_pre
62449:   b_c_meta=$php_c_meta
62450:   b_cxx_meta=$php_cxx_meta
62451:   b_c_post=$php_c_post
62452:   b_cxx_post=$php_cxx_post
62453:   b_lo=$php_lo
62454: 
62455: 
62456:   old_IFS=$IFS
62457:   for ac_src in php_mysql.c; do
62458: 
62459:       IFS=.
62460:       set $ac_src
62461:       ac_obj=$1
62462:       IFS=$old_IFS
62463: 
62464:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
62465: 
62466:       case $ac_src in
62467:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
62468:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
62469:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
62470:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
62471:       esac
62472: 
62473:     cat >>Makefile.objects<<EOF
62474: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
62475: 	$ac_comp
62476: EOF
62477:   done
62478: 
62479: 
62480:         EXT_STATIC="$EXT_STATIC mysql"
62481:         ;;
62482:       *)
62483: 
62484: 
62485:   case ext/mysql in
62486:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
62487:   /*) ac_srcdir=`echo "ext/mysql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
62488:   *) ac_srcdir="$abs_srcdir/ext/mysql/"; ac_bdir="ext/mysql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
62489:   esac
62490: 
62491: 
62492: 
62493:   b_c_pre=$php_c_pre
62494:   b_cxx_pre=$php_cxx_pre
62495:   b_c_meta=$php_c_meta
62496:   b_cxx_meta=$php_cxx_meta
62497:   b_c_post=$php_c_post
62498:   b_cxx_post=$php_cxx_post
62499:   b_lo=$php_lo
62500: 
62501: 
62502:   old_IFS=$IFS
62503:   for ac_src in php_mysql.c; do
62504: 
62505:       IFS=.
62506:       set $ac_src
62507:       ac_obj=$1
62508:       IFS=$old_IFS
62509: 
62510:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
62511: 
62512:       case $ac_src in
62513:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
62514:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
62515:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
62516:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
62517:       esac
62518: 
62519:     cat >>Makefile.objects<<EOF
62520: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
62521: 	$ac_comp
62522: EOF
62523:   done
62524: 
62525: 
62526:         ;;
62527:     esac
62528:     EXT_CLI_STATIC="$EXT_CLI_STATIC mysql"
62529:   fi
62530: 
62531: 
62532:     BUILD_DIR="$BUILD_DIR $ext_builddir"
62533: 
62534: 
62535: 
62536:   if test "$ext_builddir" = "."; then
62537:     PHP_PECL_EXTENSION=mysql
62538: 
62539:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
62540: 
62541:   fi
62542: 
62543: 
62544:   PHP_VAR_SUBST="$PHP_VAR_SUBST MYSQL_SHARED_LIBADD"
62545: 
62546: 
62547:   if test "$PHP_MYSQL" = "yes" || test "$PHP_MYSQL" = "mysqlnd"; then
62548: 
62549:   am_i_shared=$PHP_MYSQL_SHARED
62550:   is_it_shared=$PHP_MYSQLND_SHARED
62551:   is_it_enabled=$PHP_MYSQLND
62552:   if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
62553:     as_fn_error $? "
62554: You've configured extension mysql to build statically, but it
62555: depends on extension mysqlnd, which you've configured to build shared.
62556: You either need to build mysql shared or build mysqlnd statically for the
62557: build to be successful.
62558: " "$LINENO" 5
62559:   fi
62560:   if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then
62561:     as_fn_error $? "
62562: You've configured extension mysql, which depends on extension mysqlnd,
62563: but you've either not enabled mysqlnd, or have disabled it.
62564: " "$LINENO" 5
62565:   fi
62566: 
62567: 
62568: $as_echo "#define MYSQL_USE_MYSQLND 1" >>confdefs.h
62569: 
62570:   fi
62571: fi
62572: 
62573: 
62574: 
62575: php_with_mysqli=no
62576: 
62577: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQLi support" >&5
62578: $as_echo_n "checking for MySQLi support... " >&6; }
62579: 
62580: # Check whether --with-mysqli was given.
62581: if test "${with_mysqli+set}" = set; then :
62582:   withval=$with_mysqli; PHP_MYSQLI=$withval
62583: else
62584: 
62585:   PHP_MYSQLI=no
62586:   test "$PHP_ENABLE_ALL" && PHP_MYSQLI=$PHP_ENABLE_ALL
62587: 
62588: fi
62589: 
62590: 
62591: 
62592: ext_output="yes, shared"
62593: ext_shared=yes
62594: case $PHP_MYSQLI in
62595: shared,*)
62596:   PHP_MYSQLI=`echo "$PHP_MYSQLI"|$SED 's/^shared,//'`
62597:   ;;
62598: shared)
62599:   PHP_MYSQLI=yes
62600:   ;;
62601: no)
62602:   ext_output=no
62603:   ext_shared=no
62604:   ;;
62605: *)
62606:   ext_output=yes
62607:   ext_shared=no
62608:   ;;
62609: esac
62610: 
62611: 
62612: 
62613: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
62614: $as_echo "$ext_output" >&6; }
62615: 
62616: 
62617: 
62618: 
62619: 
62620: php_enable_embedded_mysqli=no
62621: 
62622: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable embedded MySQLi support" >&5
62623: $as_echo_n "checking whether to enable embedded MySQLi support... " >&6; }
62624: # Check whether --enable-embedded_mysqli was given.
62625: if test "${enable_embedded_mysqli+set}" = set; then :
62626:   enableval=$enable_embedded_mysqli; PHP_EMBEDDED_MYSQLI=$enableval
62627: else
62628: 
62629:   PHP_EMBEDDED_MYSQLI=no
62630: 
62631: 
62632: fi
62633: 
62634: 
62635: ext_output=$PHP_EMBEDDED_MYSQLI
62636: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
62637: $as_echo "$ext_output" >&6; }
62638: 
62639: 
62640: 
62641: 
62642: if test "$PHP_MYSQLI" = "yes" || test "$PHP_MYSQLI" = "mysqlnd"; then
62643:     PHP_MYSQLND_ENABLED=yes
62644: 
62645: elif test "$PHP_MYSQLI" != "no"; then
62646: 
62647:   MYSQL_CONFIG=$PHP_MYSQLI
62648: 
62649:   MYSQL_LIB_NAME='mysqlclient'
62650:   if test "$PHP_EMBEDDED_MYSQLI" = "yes"; then
62651: 
62652: $as_echo "#define HAVE_EMBEDDED_MYSQLI 1" >>confdefs.h
62653: 
62654:     MYSQL_LIB_CFG='--libmysqld-libs'
62655:         mysqli_extra_sources="mysqli_embedded.c"
62656:   elif test "$enable_maintainer_zts" = "yes"; then
62657:     MYSQL_LIB_CFG='--libs_r'
62658:     MYSQL_LIB_NAME='mysqlclient_r'
62659:   else
62660:     MYSQL_LIB_CFG='--libs'
62661:   fi
62662: 
62663:   if test -x "$MYSQL_CONFIG" && $MYSQL_CONFIG $MYSQL_LIB_CFG > /dev/null 2>&1; then
62664:     MYSQLI_INCLINE=`$MYSQL_CONFIG --cflags | $SED -e "s/'//g"`
62665:     MYSQLI_LIBLINE=`$MYSQL_CONFIG $MYSQL_LIB_CFG | $SED -e "s/'//g"`
62666:   else
62667:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: mysql_config not found" >&5
62668: $as_echo "mysql_config not found" >&6; }
62669:     as_fn_error $? "Please reinstall the mysql distribution" "$LINENO" 5
62670:   fi
62671: 
62672: 
62673:   save_old_LDFLAGS=$LDFLAGS
62674:   ac_stuff="
62675:     $MYSQLI_LIBLINE
62676:   "
62677: 
62678:   save_ext_shared=$ext_shared
62679:   ext_shared=yes
62680: 
62681:   for ac_i in $ac_stuff; do
62682:     case $ac_i in
62683:     -pthread)
62684:       if test "$ext_shared" = "yes"; then
62685:         LDFLAGS="$LDFLAGS -pthread"
62686:       else
62687: 
62688: 
62689:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
62690: 
62691:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
62692:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
62693:     eval "EXTRA_LDFLAGS$unique=set"
62694:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
62695:   fi
62696: 
62697:       fi
62698:     ;;
62699:     -l*)
62700:       ac_ii=`echo $ac_i|cut -c 3-`
62701: 
62702: 
62703:   case $ac_ii in
62704:   c|c_r|pthread*) ;;
62705:   *)
62706:     if test "$ext_shared" = "yes"; then
62707:         LDFLAGS="$LDFLAGS -l$ac_ii"
62708:     else
62709: 
62710: 
62711:   case $ac_ii in
62712:   c|c_r|pthread*) ;;
62713:   *)
62714:       LIBS="$LIBS -l$ac_ii"
62715:    ;;
62716:   esac
62717: 
62718: 
62719:     fi
62720:    ;;
62721:   esac
62722: 
62723: 
62724:     ;;
62725:     -L*)
62726:       ac_ii=`echo $ac_i|cut -c 3-`
62727: 
62728:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
62729: 
62730:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
62731:     ai_p=$ac_ii
62732:   else
62733: 
62734:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
62735: 
62736:     ep_realdir=`(cd "$ep_dir" && pwd)`
62737:     ai_p="$ep_realdir"/`basename "$ac_ii"`
62738:   fi
62739: 
62740: 
62741:       if test "$ext_shared" = "yes"; then
62742:         LDFLAGS="-L$ai_p $LDFLAGS"
62743:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
62744:       else
62745: 
62746: 
62747: 
62748:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
62749: 
62750:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
62751:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
62752:     eval "LIBPATH$unique=set"
62753: 
62754:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
62755:     LDFLAGS="$LDFLAGS -L$ai_p"
62756:     PHP_RPATHS="$PHP_RPATHS $ai_p"
62757: 
62758:   fi
62759: 
62760: 
62761:       fi
62762: 
62763:   fi
62764: 
62765:     ;;
62766:     esac
62767:   done
62768: 
62769:   as_ac_Lib=`$as_echo "ac_cv_lib_$MYSQL_LIB_NAME''_mysql_set_server_option" | $as_tr_sh`
62770: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_set_server_option in -l$MYSQL_LIB_NAME" >&5
62771: $as_echo_n "checking for mysql_set_server_option in -l$MYSQL_LIB_NAME... " >&6; }
62772: if eval \${$as_ac_Lib+:} false; then :
62773:   $as_echo_n "(cached) " >&6
62774: else
62775:   ac_check_lib_save_LIBS=$LIBS
62776: LIBS="-l$MYSQL_LIB_NAME  $LIBS"
62777: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62778: /* end confdefs.h.  */
62779: 
62780: /* Override any GCC internal prototype to avoid an error.
62781:    Use char because int might match the return type of a GCC
62782:    builtin and then its argument prototype would still apply.  */
62783: #ifdef __cplusplus
62784: extern "C"
62785: #endif
62786: char mysql_set_server_option ();
62787: int
62788: main ()
62789: {
62790: return mysql_set_server_option ();
62791:   ;
62792:   return 0;
62793: }
62794: _ACEOF
62795: if ac_fn_c_try_link "$LINENO"; then :
62796:   eval "$as_ac_Lib=yes"
62797: else
62798:   eval "$as_ac_Lib=no"
62799: fi
62800: rm -f core conftest.err conftest.$ac_objext \
62801:     conftest$ac_exeext conftest.$ac_ext
62802: LIBS=$ac_check_lib_save_LIBS
62803: fi
62804: eval ac_res=\$$as_ac_Lib
62805: 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
62806: $as_echo "$ac_res" >&6; }
62807: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
62808: 
62809:     LDFLAGS=$save_old_LDFLAGS
62810:     ext_shared=$save_ext_shared
62811: 
62812: 
62813:   for ac_i in $MYSQLI_INCLINE; do
62814:     case $ac_i in
62815:     -I*)
62816:       ac_ii=`echo $ac_i|cut -c 3-`
62817: 
62818:   if test "$ac_ii" != "/usr/include"; then
62819: 
62820:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
62821:     ai_p=$ac_ii
62822:   else
62823: 
62824:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
62825: 
62826:     ep_realdir=`(cd "$ep_dir" && pwd)`
62827:     ai_p="$ep_realdir"/`basename "$ac_ii"`
62828:   fi
62829: 
62830: 
62831: 
62832:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
62833: 
62834:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
62835:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
62836:     eval "INCLUDEPATH$unique=set"
62837: 
62838:       if test ""; then
62839:         INCLUDES="-I$ai_p $INCLUDES"
62840:       else
62841:         INCLUDES="$INCLUDES -I$ai_p"
62842:       fi
62843: 
62844:   fi
62845: 
62846:   fi
62847: 
62848:     ;;
62849:     esac
62850:   done
62851: 
62852: 
62853:   for ac_i in $MYSQLI_LIBLINE; do
62854:     case $ac_i in
62855:     -pthread)
62856:       if test "$ext_shared" = "yes"; then
62857:         MYSQLI_SHARED_LIBADD="$MYSQLI_SHARED_LIBADD -pthread"
62858:       else
62859: 
62860: 
62861:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
62862: 
62863:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
62864:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
62865:     eval "EXTRA_LDFLAGS$unique=set"
62866:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
62867:   fi
62868: 
62869:       fi
62870:     ;;
62871:     -l*)
62872:       ac_ii=`echo $ac_i|cut -c 3-`
62873: 
62874: 
62875:   case $ac_ii in
62876:   c|c_r|pthread*) ;;
62877:   *)
62878:     if test "$ext_shared" = "yes"; then
62879:         MYSQLI_SHARED_LIBADD="$MYSQLI_SHARED_LIBADD -l$ac_ii"
62880:     else
62881: 
62882: 
62883:   case $ac_ii in
62884:   c|c_r|pthread*) ;;
62885:   *)
62886:       LIBS="$LIBS -l$ac_ii"
62887:    ;;
62888:   esac
62889: 
62890: 
62891:     fi
62892:    ;;
62893:   esac
62894: 
62895: 
62896:     ;;
62897:     -L*)
62898:       ac_ii=`echo $ac_i|cut -c 3-`
62899: 
62900:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
62901: 
62902:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
62903:     ai_p=$ac_ii
62904:   else
62905: 
62906:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
62907: 
62908:     ep_realdir=`(cd "$ep_dir" && pwd)`
62909:     ai_p="$ep_realdir"/`basename "$ac_ii"`
62910:   fi
62911: 
62912: 
62913:       if test "$ext_shared" = "yes"; then
62914:         MYSQLI_SHARED_LIBADD="-L$ai_p $MYSQLI_SHARED_LIBADD"
62915:         test -n "$ld_runpath_switch" && MYSQLI_SHARED_LIBADD="$ld_runpath_switch$ai_p $MYSQLI_SHARED_LIBADD"
62916:       else
62917: 
62918: 
62919: 
62920:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
62921: 
62922:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
62923:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
62924:     eval "LIBPATH$unique=set"
62925: 
62926:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
62927:     LDFLAGS="$LDFLAGS -L$ai_p"
62928:     PHP_RPATHS="$PHP_RPATHS $ai_p"
62929: 
62930:   fi
62931: 
62932: 
62933:       fi
62934: 
62935:   fi
62936: 
62937:     ;;
62938:     esac
62939:   done
62940: 
62941: 
62942: $as_echo "#define HAVE_MYSQLILIB 1" >>confdefs.h
62943: 
62944: 
62945:   save_old_LDFLAGS=$LDFLAGS
62946:   ac_stuff="$MYSQLI_LIBLINE"
62947: 
62948:   save_ext_shared=$ext_shared
62949:   ext_shared=yes
62950: 
62951:   for ac_i in $ac_stuff; do
62952:     case $ac_i in
62953:     -pthread)
62954:       if test "$ext_shared" = "yes"; then
62955:         LDFLAGS="$LDFLAGS -pthread"
62956:       else
62957: 
62958: 
62959:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
62960: 
62961:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
62962:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
62963:     eval "EXTRA_LDFLAGS$unique=set"
62964:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
62965:   fi
62966: 
62967:       fi
62968:     ;;
62969:     -l*)
62970:       ac_ii=`echo $ac_i|cut -c 3-`
62971: 
62972: 
62973:   case $ac_ii in
62974:   c|c_r|pthread*) ;;
62975:   *)
62976:     if test "$ext_shared" = "yes"; then
62977:         LDFLAGS="$LDFLAGS -l$ac_ii"
62978:     else
62979: 
62980: 
62981:   case $ac_ii in
62982:   c|c_r|pthread*) ;;
62983:   *)
62984:       LIBS="$LIBS -l$ac_ii"
62985:    ;;
62986:   esac
62987: 
62988: 
62989:     fi
62990:    ;;
62991:   esac
62992: 
62993: 
62994:     ;;
62995:     -L*)
62996:       ac_ii=`echo $ac_i|cut -c 3-`
62997: 
62998:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
62999: 
63000:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
63001:     ai_p=$ac_ii
63002:   else
63003: 
63004:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
63005: 
63006:     ep_realdir=`(cd "$ep_dir" && pwd)`
63007:     ai_p="$ep_realdir"/`basename "$ac_ii"`
63008:   fi
63009: 
63010: 
63011:       if test "$ext_shared" = "yes"; then
63012:         LDFLAGS="-L$ai_p $LDFLAGS"
63013:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
63014:       else
63015: 
63016: 
63017: 
63018:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
63019: 
63020:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
63021:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
63022:     eval "LIBPATH$unique=set"
63023: 
63024:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
63025:     LDFLAGS="$LDFLAGS -L$ai_p"
63026:     PHP_RPATHS="$PHP_RPATHS $ai_p"
63027: 
63028:   fi
63029: 
63030: 
63031:       fi
63032: 
63033:   fi
63034: 
63035:     ;;
63036:     esac
63037:   done
63038: 
63039:   as_ac_Lib=`$as_echo "ac_cv_lib_$MYSQL_LIB_NAME''_mysql_set_character_set" | $as_tr_sh`
63040: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_set_character_set in -l$MYSQL_LIB_NAME" >&5
63041: $as_echo_n "checking for mysql_set_character_set in -l$MYSQL_LIB_NAME... " >&6; }
63042: if eval \${$as_ac_Lib+:} false; then :
63043:   $as_echo_n "(cached) " >&6
63044: else
63045:   ac_check_lib_save_LIBS=$LIBS
63046: LIBS="-l$MYSQL_LIB_NAME  $LIBS"
63047: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
63048: /* end confdefs.h.  */
63049: 
63050: /* Override any GCC internal prototype to avoid an error.
63051:    Use char because int might match the return type of a GCC
63052:    builtin and then its argument prototype would still apply.  */
63053: #ifdef __cplusplus
63054: extern "C"
63055: #endif
63056: char mysql_set_character_set ();
63057: int
63058: main ()
63059: {
63060: return mysql_set_character_set ();
63061:   ;
63062:   return 0;
63063: }
63064: _ACEOF
63065: if ac_fn_c_try_link "$LINENO"; then :
63066:   eval "$as_ac_Lib=yes"
63067: else
63068:   eval "$as_ac_Lib=no"
63069: fi
63070: rm -f core conftest.err conftest.$ac_objext \
63071:     conftest$ac_exeext conftest.$ac_ext
63072: LIBS=$ac_check_lib_save_LIBS
63073: fi
63074: eval ac_res=\$$as_ac_Lib
63075: 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
63076: $as_echo "$ac_res" >&6; }
63077: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
63078: 
63079:     LDFLAGS=$save_old_LDFLAGS
63080:     ext_shared=$save_ext_shared
63081: 
63082: 
63083: else
63084: 
63085:     LDFLAGS=$save_old_LDFLAGS
63086:     ext_shared=$save_ext_shared
63087:     unset ac_cv_lib_$MYSQL_LIB_NAME_mysql_set_character_set
63088: 
63089:       as_fn_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." "$LINENO" 5
63090: 
63091: 
63092: fi
63093: 
63094: 
63095: 
63096: else
63097: 
63098:     LDFLAGS=$save_old_LDFLAGS
63099:     ext_shared=$save_ext_shared
63100:     unset ac_cv_lib_$MYSQL_LIB_NAME_mysql_set_server_option
63101: 
63102:     as_fn_error $? "wrong mysql library version or lib not found. Check config.log for more information." "$LINENO" 5
63103: 
63104: 
63105: fi
63106: 
63107: 
63108:   save_old_LDFLAGS=$LDFLAGS
63109:   ac_stuff="
63110:     $MYSQLI_LIBLINE
63111:   "
63112: 
63113:   save_ext_shared=$ext_shared
63114:   ext_shared=yes
63115: 
63116:   for ac_i in $ac_stuff; do
63117:     case $ac_i in
63118:     -pthread)
63119:       if test "$ext_shared" = "yes"; then
63120:         LDFLAGS="$LDFLAGS -pthread"
63121:       else
63122: 
63123: 
63124:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
63125: 
63126:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
63127:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
63128:     eval "EXTRA_LDFLAGS$unique=set"
63129:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
63130:   fi
63131: 
63132:       fi
63133:     ;;
63134:     -l*)
63135:       ac_ii=`echo $ac_i|cut -c 3-`
63136: 
63137: 
63138:   case $ac_ii in
63139:   c|c_r|pthread*) ;;
63140:   *)
63141:     if test "$ext_shared" = "yes"; then
63142:         LDFLAGS="$LDFLAGS -l$ac_ii"
63143:     else
63144: 
63145: 
63146:   case $ac_ii in
63147:   c|c_r|pthread*) ;;
63148:   *)
63149:       LIBS="$LIBS -l$ac_ii"
63150:    ;;
63151:   esac
63152: 
63153: 
63154:     fi
63155:    ;;
63156:   esac
63157: 
63158: 
63159:     ;;
63160:     -L*)
63161:       ac_ii=`echo $ac_i|cut -c 3-`
63162: 
63163:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
63164: 
63165:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
63166:     ai_p=$ac_ii
63167:   else
63168: 
63169:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
63170: 
63171:     ep_realdir=`(cd "$ep_dir" && pwd)`
63172:     ai_p="$ep_realdir"/`basename "$ac_ii"`
63173:   fi
63174: 
63175: 
63176:       if test "$ext_shared" = "yes"; then
63177:         LDFLAGS="-L$ai_p $LDFLAGS"
63178:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
63179:       else
63180: 
63181: 
63182: 
63183:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
63184: 
63185:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
63186:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
63187:     eval "LIBPATH$unique=set"
63188: 
63189:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
63190:     LDFLAGS="$LDFLAGS -L$ai_p"
63191:     PHP_RPATHS="$PHP_RPATHS $ai_p"
63192: 
63193:   fi
63194: 
63195: 
63196:       fi
63197: 
63198:   fi
63199: 
63200:     ;;
63201:     esac
63202:   done
63203: 
63204:   as_ac_Lib=`$as_echo "ac_cv_lib_$MYSQL_LIB_NAME''_mysql_stmt_next_result" | $as_tr_sh`
63205: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_stmt_next_result in -l$MYSQL_LIB_NAME" >&5
63206: $as_echo_n "checking for mysql_stmt_next_result in -l$MYSQL_LIB_NAME... " >&6; }
63207: if eval \${$as_ac_Lib+:} false; then :
63208:   $as_echo_n "(cached) " >&6
63209: else
63210:   ac_check_lib_save_LIBS=$LIBS
63211: LIBS="-l$MYSQL_LIB_NAME  $LIBS"
63212: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
63213: /* end confdefs.h.  */
63214: 
63215: /* Override any GCC internal prototype to avoid an error.
63216:    Use char because int might match the return type of a GCC
63217:    builtin and then its argument prototype would still apply.  */
63218: #ifdef __cplusplus
63219: extern "C"
63220: #endif
63221: char mysql_stmt_next_result ();
63222: int
63223: main ()
63224: {
63225: return mysql_stmt_next_result ();
63226:   ;
63227:   return 0;
63228: }
63229: _ACEOF
63230: if ac_fn_c_try_link "$LINENO"; then :
63231:   eval "$as_ac_Lib=yes"
63232: else
63233:   eval "$as_ac_Lib=no"
63234: fi
63235: rm -f core conftest.err conftest.$ac_objext \
63236:     conftest$ac_exeext conftest.$ac_ext
63237: LIBS=$ac_check_lib_save_LIBS
63238: fi
63239: eval ac_res=\$$as_ac_Lib
63240: 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
63241: $as_echo "$ac_res" >&6; }
63242: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
63243: 
63244:     LDFLAGS=$save_old_LDFLAGS
63245:     ext_shared=$save_ext_shared
63246: 
63247: 
63248: $as_echo "#define HAVE_STMT_NEXT_RESULT 1" >>confdefs.h
63249: 
63250: 
63251: 
63252: else
63253: 
63254:     LDFLAGS=$save_old_LDFLAGS
63255:     ext_shared=$save_ext_shared
63256:     unset ac_cv_lib_$MYSQL_LIB_NAME_mysql_stmt_next_result
63257: 
63258: 
63259: 
63260: fi
63261: 
63262: fi
63263: 
63264: if test "$PHP_MYSQLI" != "no"; then
63265:   mysqli_sources="mysqli.c mysqli_api.c mysqli_prop.c mysqli_nonapi.c \
63266:                   mysqli_fe.c mysqli_report.c mysqli_driver.c mysqli_warning.c \
63267:                   mysqli_exception.c mysqli_result_iterator.c $mysqli_extra_sources"
63268: 
63269:   ext_builddir=ext/mysqli
63270:   ext_srcdir=$abs_srcdir/ext/mysqli
63271: 
63272:   ac_extra=
63273: 
63274:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
63275:     PHP_MYSQLI_SHARED=no
63276: 
63277: 
63278:   case ext/mysqli in
63279:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
63280:   /*) ac_srcdir=`echo "ext/mysqli"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
63281:   *) ac_srcdir="$abs_srcdir/ext/mysqli/"; ac_bdir="ext/mysqli/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
63282:   esac
63283: 
63284: 
63285: 
63286:   b_c_pre=$php_c_pre
63287:   b_cxx_pre=$php_cxx_pre
63288:   b_c_meta=$php_c_meta
63289:   b_cxx_meta=$php_cxx_meta
63290:   b_c_post=$php_c_post
63291:   b_cxx_post=$php_cxx_post
63292:   b_lo=$php_lo
63293: 
63294: 
63295:   old_IFS=$IFS
63296:   for ac_src in $mysqli_sources; do
63297: 
63298:       IFS=.
63299:       set $ac_src
63300:       ac_obj=$1
63301:       IFS=$old_IFS
63302: 
63303:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
63304: 
63305:       case $ac_src in
63306:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
63307:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
63308:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
63309:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
63310:       esac
63311: 
63312:     cat >>Makefile.objects<<EOF
63313: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
63314: 	$ac_comp
63315: EOF
63316:   done
63317: 
63318: 
63319:     EXT_STATIC="$EXT_STATIC mysqli"
63320:     if test "$ext_shared" != "nocli"; then
63321:       EXT_CLI_STATIC="$EXT_CLI_STATIC mysqli"
63322:     fi
63323:   else
63324:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
63325:       PHP_MYSQLI_SHARED=yes
63326: 
63327:   case ext/mysqli in
63328:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
63329:   /*) ac_srcdir=`echo "ext/mysqli"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
63330:   *) ac_srcdir="$abs_srcdir/ext/mysqli/"; ac_bdir="ext/mysqli/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
63331:   esac
63332: 
63333: 
63334: 
63335:   b_c_pre=$shared_c_pre
63336:   b_cxx_pre=$shared_cxx_pre
63337:   b_c_meta=$shared_c_meta
63338:   b_cxx_meta=$shared_cxx_meta
63339:   b_c_post=$shared_c_post
63340:   b_cxx_post=$shared_cxx_post
63341:   b_lo=$shared_lo
63342: 
63343: 
63344:   old_IFS=$IFS
63345:   for ac_src in $mysqli_sources; do
63346: 
63347:       IFS=.
63348:       set $ac_src
63349:       ac_obj=$1
63350:       IFS=$old_IFS
63351: 
63352:       shared_objects_mysqli="$shared_objects_mysqli $ac_bdir$ac_obj.lo"
63353: 
63354:       case $ac_src in
63355:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
63356:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
63357:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
63358:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
63359:       esac
63360: 
63361:     cat >>Makefile.objects<<EOF
63362: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
63363: 	$ac_comp
63364: EOF
63365:   done
63366: 
63367:       case $host_alias in
63368:         *netware*)
63369: 
63370:   install_modules="install-modules"
63371: 
63372:   case $host_alias in
63373:     *aix*)
63374:       suffix=so
63375:       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'
63376:       ;;
63377:     *netware*)
63378:       suffix=nlm
63379:       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)'
63380:       ;;
63381:     *)
63382:       suffix=la
63383:       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)'
63384:       ;;
63385:   esac
63386: 
63387:   if test "x" = "xyes"; then
63388:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpmysqli.$suffix"
63389:   else
63390:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpmysqli.$suffix"
63391:   fi
63392: 
63393:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_mysqli"
63394: 
63395:   cat >>Makefile.objects<<EOF
63396: \$(phplibdir)/phpmysqli.$suffix: $ext_builddir/phpmysqli.$suffix
63397: 	\$(LIBTOOL) --mode=install cp $ext_builddir/phpmysqli.$suffix \$(phplibdir)
63398: 
63399: $ext_builddir/phpmysqli.$suffix: \$(shared_objects_mysqli) \$(PHPMYSQLI_SHARED_DEPENDENCIES)
63400: 	$link_cmd
63401: 
63402: EOF
63403: 
63404:           ;;
63405:         *)
63406: 
63407:   install_modules="install-modules"
63408: 
63409:   case $host_alias in
63410:     *aix*)
63411:       suffix=so
63412:       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'
63413:       ;;
63414:     *netware*)
63415:       suffix=nlm
63416:       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)'
63417:       ;;
63418:     *)
63419:       suffix=la
63420:       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)'
63421:       ;;
63422:   esac
63423: 
63424:   if test "x" = "xyes"; then
63425:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/mysqli.$suffix"
63426:   else
63427:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/mysqli.$suffix"
63428:   fi
63429: 
63430:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_mysqli"
63431: 
63432:   cat >>Makefile.objects<<EOF
63433: \$(phplibdir)/mysqli.$suffix: $ext_builddir/mysqli.$suffix
63434: 	\$(LIBTOOL) --mode=install cp $ext_builddir/mysqli.$suffix \$(phplibdir)
63435: 
63436: $ext_builddir/mysqli.$suffix: \$(shared_objects_mysqli) \$(MYSQLI_SHARED_DEPENDENCIES)
63437: 	$link_cmd
63438: 
63439: EOF
63440: 
63441:           ;;
63442:       esac
63443: 
63444: cat >>confdefs.h <<_ACEOF
63445: #define COMPILE_DL_MYSQLI 1
63446: _ACEOF
63447: 
63448:     fi
63449:   fi
63450: 
63451:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
63452:     PHP_MYSQLI_SHARED=no
63453:     case "$PHP_SAPI" in
63454:       cgi|embed)
63455: 
63456: 
63457:   case ext/mysqli in
63458:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
63459:   /*) ac_srcdir=`echo "ext/mysqli"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
63460:   *) ac_srcdir="$abs_srcdir/ext/mysqli/"; ac_bdir="ext/mysqli/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
63461:   esac
63462: 
63463: 
63464: 
63465:   b_c_pre=$php_c_pre
63466:   b_cxx_pre=$php_cxx_pre
63467:   b_c_meta=$php_c_meta
63468:   b_cxx_meta=$php_cxx_meta
63469:   b_c_post=$php_c_post
63470:   b_cxx_post=$php_cxx_post
63471:   b_lo=$php_lo
63472: 
63473: 
63474:   old_IFS=$IFS
63475:   for ac_src in $mysqli_sources; do
63476: 
63477:       IFS=.
63478:       set $ac_src
63479:       ac_obj=$1
63480:       IFS=$old_IFS
63481: 
63482:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
63483: 
63484:       case $ac_src in
63485:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
63486:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
63487:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
63488:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
63489:       esac
63490: 
63491:     cat >>Makefile.objects<<EOF
63492: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
63493: 	$ac_comp
63494: EOF
63495:   done
63496: 
63497: 
63498:         EXT_STATIC="$EXT_STATIC mysqli"
63499:         ;;
63500:       *)
63501: 
63502: 
63503:   case ext/mysqli in
63504:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
63505:   /*) ac_srcdir=`echo "ext/mysqli"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
63506:   *) ac_srcdir="$abs_srcdir/ext/mysqli/"; ac_bdir="ext/mysqli/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
63507:   esac
63508: 
63509: 
63510: 
63511:   b_c_pre=$php_c_pre
63512:   b_cxx_pre=$php_cxx_pre
63513:   b_c_meta=$php_c_meta
63514:   b_cxx_meta=$php_cxx_meta
63515:   b_c_post=$php_c_post
63516:   b_cxx_post=$php_cxx_post
63517:   b_lo=$php_lo
63518: 
63519: 
63520:   old_IFS=$IFS
63521:   for ac_src in $mysqli_sources; do
63522: 
63523:       IFS=.
63524:       set $ac_src
63525:       ac_obj=$1
63526:       IFS=$old_IFS
63527: 
63528:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
63529: 
63530:       case $ac_src in
63531:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
63532:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
63533:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
63534:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
63535:       esac
63536: 
63537:     cat >>Makefile.objects<<EOF
63538: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
63539: 	$ac_comp
63540: EOF
63541:   done
63542: 
63543: 
63544:         ;;
63545:     esac
63546:     EXT_CLI_STATIC="$EXT_CLI_STATIC mysqli"
63547:   fi
63548: 
63549: 
63550:     BUILD_DIR="$BUILD_DIR $ext_builddir"
63551: 
63552: 
63553: 
63554:   if test "$ext_builddir" = "."; then
63555:     PHP_PECL_EXTENSION=mysqli
63556: 
63557:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
63558: 
63559:   fi
63560: 
63561: 
63562:   PHP_VAR_SUBST="$PHP_VAR_SUBST MYSQLI_SHARED_LIBADD"
63563: 
63564: 
63565: 
63566:     for header_file in ext/mysqli/php_mysqli_structs.h; do
63567: 
63568: 
63569:   unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
63570: 
63571:   cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
63572:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
63573:     eval "INSTALLHEADERS$unique=set"
63574: 
63575:         INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
63576: 
63577:   fi
63578: 
63579:     done
63580: 
63581: 
63582: 
63583:   if test "$PHP_MYSQLI" = "yes" || test "$PHP_MYSQLI" = "mysqlnd"; then
63584: 
63585:   am_i_shared=$PHP_MYSQLI_SHARED
63586:   is_it_shared=$PHP_MYSQLND_SHARED
63587:   is_it_enabled=$PHP_MYSQLND
63588:   if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
63589:     as_fn_error $? "
63590: You've configured extension mysqli to build statically, but it
63591: depends on extension mysqlnd, which you've configured to build shared.
63592: You either need to build mysqli shared or build mysqlnd statically for the
63593: build to be successful.
63594: " "$LINENO" 5
63595:   fi
63596:   if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then
63597:     as_fn_error $? "
63598: You've configured extension mysqli, which depends on extension mysqlnd,
63599: but you've either not enabled mysqlnd, or have disabled it.
63600: " "$LINENO" 5
63601:   fi
63602: 
63603: 
63604: $as_echo "#define MYSQLI_USE_MYSQLND 1" >>confdefs.h
63605: 
63606: 
63607: 
63608:     for header_file in ext/mysqli/mysqli_mysqlnd.h; do
63609: 
63610: 
63611:   unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
63612: 
63613:   cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
63614:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
63615:     eval "INSTALLHEADERS$unique=set"
63616: 
63617:         INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
63618: 
63619:   fi
63620: 
63621:     done
63622: 
63623: 
63624:   else
63625: 
63626: 
63627:     for header_file in ext/mysqli/mysqli_libmysql.h; do
63628: 
63629: 
63630:   unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
63631: 
63632:   cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
63633:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
63634:     eval "INSTALLHEADERS$unique=set"
63635: 
63636:         INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
63637: 
63638:   fi
63639: 
63640:     done
63641: 
63642: 
63643:   fi
63644: fi
63645: 
63646: 
63647: if test -z "$SED"; then
63648:   PHP_OCI8_SED="sed";
63649: else
63650:   PHP_OCI8_SED="$SED";
63651: fi
63652: 
63653: PHP_OCI8_TAIL1=`echo a | tail -n1 2>/dev/null`
63654: if test "$PHP_OCI8_TAIL1" = "a"; then
63655:     PHP_OCI8_TAIL1="tail -n1"
63656: else
63657:     PHP_OCI8_TAIL1="tail -1"
63658: fi
63659: 
63660: 
63661: 
63662: 
63663: 
63664: 
63665: 
63666: 
63667: 
63668: 
63669: 
63670: php_with_oci8=no
63671: 
63672: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Oracle Database OCI8 support" >&5
63673: $as_echo_n "checking for Oracle Database OCI8 support... " >&6; }
63674: 
63675: # Check whether --with-oci8 was given.
63676: if test "${with_oci8+set}" = set; then :
63677:   withval=$with_oci8; PHP_OCI8=$withval
63678: else
63679: 
63680:   PHP_OCI8=no
63681:   test "$PHP_ENABLE_ALL" && PHP_OCI8=$PHP_ENABLE_ALL
63682: 
63683: fi
63684: 
63685: 
63686: 
63687: ext_output="yes, shared"
63688: ext_shared=yes
63689: case $PHP_OCI8 in
63690: shared,*)
63691:   PHP_OCI8=`echo "$PHP_OCI8"|$SED 's/^shared,//'`
63692:   ;;
63693: shared)
63694:   PHP_OCI8=yes
63695:   ;;
63696: no)
63697:   ext_output=no
63698:   ext_shared=no
63699:   ;;
63700: *)
63701:   ext_output=yes
63702:   ext_shared=no
63703:   ;;
63704: esac
63705: 
63706: 
63707: 
63708: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
63709: $as_echo "$ext_output" >&6; }
63710: 
63711: 
63712: 
63713: 
63714: if test "$PHP_OCI8" != "no"; then
63715: 
63716:   if test -z "$PHP_OCI8"; then
63717:         as_fn_error $? "Empty parameter value passed to --with-oci8" "$LINENO" 5
63718:   fi
63719: 
63720: 
63721:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking PHP version" >&5
63722: $as_echo_n "checking PHP version... " >&6; }
63723: 
63724:   tmp_version=$PHP_VERSION
63725:   if test -z "$tmp_version"; then
63726:     if test -z "$PHP_CONFIG"; then
63727:       as_fn_error $? "php-config not found" "$LINENO" 5
63728:     fi
63729:     php_version=`$PHP_CONFIG --version 2>/dev/null|head -n 1|$PHP_OCI8_SED -e 's#\([0-9]\.[0-9]*\.[0-9]*\)\(.*\)#\1#'`
63730:   else
63731:     php_version=`echo "$tmp_version"|$PHP_OCI8_SED -e 's#\([0-9]\.[0-9]*\.[0-9]*\)\(.*\)#\1#'`
63732:   fi
63733: 
63734:   if test -z "$php_version"; then
63735:     as_fn_error $? "failed to detect PHP version, please report" "$LINENO" 5
63736:   fi
63737: 
63738:   ac_IFS=$IFS
63739:   IFS="."
63740:   set $php_version
63741:   IFS=$ac_IFS
63742:   oci8_php_version=`expr $1 \* 1000000 + $2 \* 1000 + $3`
63743: 
63744:   if test "$oci8_php_version" -lt "4003009"; then
63745:     as_fn_error $? "You need at least PHP 4.3.9 to be able to use this version of OCI8. PHP $php_version found" "$LINENO" 5
63746:   elif test "$oci8_php_version" -ge "6000000"; then
63747:     as_fn_error $? "This version of OCI8 is not compatible with PHP 6 or higher" "$LINENO" 5
63748:   else
63749:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_version, ok" >&5
63750: $as_echo "$php_version, ok" >&6; }
63751:   fi
63752: 
63753: 
63754:   # The cast to long int works around a bug in the HP C Compiler
63755: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
63756: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
63757: # This bug is HP SR number 8606223364.
63758: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
63759: $as_echo_n "checking size of long int... " >&6; }
63760: if ${ac_cv_sizeof_long_int+:} false; then :
63761:   $as_echo_n "(cached) " >&6
63762: else
63763:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int"        "$ac_includes_default"; then :
63764: 
63765: else
63766:   if test "$ac_cv_type_long_int" = yes; then
63767:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
63768: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
63769: as_fn_error 77 "cannot compute sizeof (long int)
63770: See \`config.log' for more details" "$LINENO" 5; }
63771:    else
63772:      ac_cv_sizeof_long_int=0
63773:    fi
63774: fi
63775: 
63776: fi
63777: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
63778: $as_echo "$ac_cv_sizeof_long_int" >&6; }
63779: 
63780: 
63781: 
63782: cat >>confdefs.h <<_ACEOF
63783: #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
63784: _ACEOF
63785: 
63786: 
63787:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking checking if we're on a 64-bit platform" >&5
63788: $as_echo_n "checking checking if we're on a 64-bit platform... " >&6; }
63789:   if test "$ac_cv_sizeof_long_int" = "4"; then
63790:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
63791: $as_echo "no" >&6; }
63792:     PHP_OCI8_OH_LIBDIR=lib32
63793:     PHP_OCI8_IC_LIBDIR_SUFFIX=""
63794:   else
63795:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
63796: $as_echo "yes" >&6; }
63797:     PHP_OCI8_OH_LIBDIR=lib
63798:     PHP_OCI8_IC_LIBDIR_SUFFIX=64
63799:   fi
63800: 
63801: 
63802:   PHP_OCI8_INSTANT_CLIENT="no"
63803: 
63804:             if test "$PHP_OCI8" = "yes" && test -z "$ORACLE_HOME"; then
63805:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OCI8 extension: ORACLE_HOME is not set, looking for default Oracle Instant Client instead" >&5
63806: $as_echo "$as_me: WARNING: OCI8 extension: ORACLE_HOME is not set, looking for default Oracle Instant Client instead" >&2;}
63807:     PHP_OCI8=instantclient
63808:   fi
63809: 
63810:   if test "`echo $PHP_OCI8`" = "instantclient"; then
63811:     PHP_OCI8_INSTANT_CLIENT="yes"
63812:   elif test "`echo $PHP_OCI8 | cut -d, -f2`" = "instantclient"; then
63813:     PHP_OCI8_INSTANT_CLIENT="`echo $PHP_OCI8 | cut -d, -f3`"
63814:     PHP_OCI8="`echo $PHP_OCI8 | cut -d, -f1,4`"
63815:     if test "$PHP_OCI8_INSTANT_CLIENT" = ""; then
63816: 	PHP_OCI8_INSTANT_CLIENT="yes"
63817:     fi
63818:     if test -z "$PHP_OCI8"; then
63819: 	PHP_OCI8=yes
63820:     fi
63821:   elif test "`echo $PHP_OCI8 | cut -d, -f1`" = "instantclient"; then
63822:     PHP_OCI8_INSTANT_CLIENT="`echo $PHP_OCI8 | cut -d, -f2`"
63823:     PHP_OCI8="`echo $PHP_OCI8 | cut -d, -f3,4`"
63824:     if test "$PHP_OCI8_INSTANT_CLIENT" = ""; then
63825: 	PHP_OCI8_INSTANT_CLIENT="yes"
63826:     fi
63827:     if test -z "$PHP_OCI8"; then
63828: 	PHP_OCI8=yes
63829:     fi
63830:   fi
63831: 
63832:   if test "$PHP_OCI8_INSTANT_CLIENT" = "no"; then
63833: 
63834:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking Oracle ORACLE_HOME install directory" >&5
63835: $as_echo_n "checking Oracle ORACLE_HOME install directory... " >&6; }
63836: 
63837:     if test "$PHP_OCI8" = "yes"; then
63838:       OCI8_DIR=$ORACLE_HOME
63839:     else
63840:       OCI8_DIR=$PHP_OCI8
63841:     fi
63842:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCI8_DIR" >&5
63843: $as_echo "$OCI8_DIR" >&6; }
63844: 
63845: 
63846:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking ORACLE_HOME library validity" >&5
63847: $as_echo_n "checking ORACLE_HOME library validity... " >&6; }
63848:   if test ! -d "$OCI8_DIR"; then
63849:     as_fn_error $? "${OCI8_DIR} is not a directory" "$LINENO" 5
63850:   fi
63851:   if test -d "$OCI8_DIR/lib" && test ! -d "$OCI8_DIR/lib32"; then
63852:     OCI8_LIB_DIR=lib
63853:   elif test ! -d "$OCI8_DIR/lib" && test -d "$OCI8_DIR/lib32"; then
63854:     OCI8_LIB_DIR=lib32
63855:   elif test -d "$OCI8_DIR/lib" && test -d "$OCI8_DIR/lib32"; then
63856:     OCI8_LIB_DIR=$PHP_OCI8_OH_LIBDIR
63857:   else
63858:         if test -f "$OCI8_DIR/libociei.$SHLIB_SUFFIX_NAME"; then
63859:       as_fn_error $? "Expected an ORACLE_HOME top level directory but ${OCI8_DIR} appears to be an Instant Client directory. Try --with-oci8=instantclient,${OCI8_DIR}" "$LINENO" 5
63860:     else
63861:       as_fn_error $? "Oracle library directory not found in ${OCI8_DIR}" "$LINENO" 5
63862:     fi
63863:   fi
63864:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCI8_LIB_DIR" >&5
63865: $as_echo "$OCI8_LIB_DIR" >&6; }
63866: 
63867: 
63868:     if test -d "$OCI8_DIR/rdbms/public"; then
63869: 
63870:   if test "$OCI8_DIR/rdbms/public" != "/usr/include"; then
63871: 
63872:   if test -z "$OCI8_DIR/rdbms/public" || echo "$OCI8_DIR/rdbms/public" | grep '^/' >/dev/null ; then
63873:     ai_p=$OCI8_DIR/rdbms/public
63874:   else
63875: 
63876:     ep_dir=`echo $OCI8_DIR/rdbms/public|$SED 's%/*[^/][^/]*/*$%%'`
63877: 
63878:     ep_realdir=`(cd "$ep_dir" && pwd)`
63879:     ai_p="$ep_realdir"/`basename "$OCI8_DIR/rdbms/public"`
63880:   fi
63881: 
63882: 
63883: 
63884:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
63885: 
63886:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
63887:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
63888:     eval "INCLUDEPATH$unique=set"
63889: 
63890:       if test ""; then
63891:         INCLUDES="-I$ai_p $INCLUDES"
63892:       else
63893:         INCLUDES="$INCLUDES -I$ai_p"
63894:       fi
63895: 
63896:   fi
63897: 
63898:   fi
63899: 
63900:       OCI8_INCLUDES="$OCI8_INCLUDES -I$OCI8_DIR/rdbms/public"
63901:     fi
63902:     if test -d "$OCI8_DIR/rdbms/demo"; then
63903: 
63904:   if test "$OCI8_DIR/rdbms/demo" != "/usr/include"; then
63905: 
63906:   if test -z "$OCI8_DIR/rdbms/demo" || echo "$OCI8_DIR/rdbms/demo" | grep '^/' >/dev/null ; then
63907:     ai_p=$OCI8_DIR/rdbms/demo
63908:   else
63909: 
63910:     ep_dir=`echo $OCI8_DIR/rdbms/demo|$SED 's%/*[^/][^/]*/*$%%'`
63911: 
63912:     ep_realdir=`(cd "$ep_dir" && pwd)`
63913:     ai_p="$ep_realdir"/`basename "$OCI8_DIR/rdbms/demo"`
63914:   fi
63915: 
63916: 
63917: 
63918:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
63919: 
63920:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
63921:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
63922:     eval "INCLUDEPATH$unique=set"
63923: 
63924:       if test ""; then
63925:         INCLUDES="-I$ai_p $INCLUDES"
63926:       else
63927:         INCLUDES="$INCLUDES -I$ai_p"
63928:       fi
63929: 
63930:   fi
63931: 
63932:   fi
63933: 
63934:       OCI8_INCLUDES="$OCI8_INCLUDES -I$OCI8_DIR/rdbms/demo"
63935:     fi
63936:     if test -d "$OCI8_DIR/network/public"; then
63937: 
63938:   if test "$OCI8_DIR/network/public" != "/usr/include"; then
63939: 
63940:   if test -z "$OCI8_DIR/network/public" || echo "$OCI8_DIR/network/public" | grep '^/' >/dev/null ; then
63941:     ai_p=$OCI8_DIR/network/public
63942:   else
63943: 
63944:     ep_dir=`echo $OCI8_DIR/network/public|$SED 's%/*[^/][^/]*/*$%%'`
63945: 
63946:     ep_realdir=`(cd "$ep_dir" && pwd)`
63947:     ai_p="$ep_realdir"/`basename "$OCI8_DIR/network/public"`
63948:   fi
63949: 
63950: 
63951: 
63952:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
63953: 
63954:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
63955:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
63956:     eval "INCLUDEPATH$unique=set"
63957: 
63958:       if test ""; then
63959:         INCLUDES="-I$ai_p $INCLUDES"
63960:       else
63961:         INCLUDES="$INCLUDES -I$ai_p"
63962:       fi
63963: 
63964:   fi
63965: 
63966:   fi
63967: 
63968:       OCI8_INCLUDES="$OCI8_INCLUDES -I$OCI8_DIR/network/public"
63969:     fi
63970:     if test -d "$OCI8_DIR/plsql/public"; then
63971: 
63972:   if test "$OCI8_DIR/plsql/public" != "/usr/include"; then
63973: 
63974:   if test -z "$OCI8_DIR/plsql/public" || echo "$OCI8_DIR/plsql/public" | grep '^/' >/dev/null ; then
63975:     ai_p=$OCI8_DIR/plsql/public
63976:   else
63977: 
63978:     ep_dir=`echo $OCI8_DIR/plsql/public|$SED 's%/*[^/][^/]*/*$%%'`
63979: 
63980:     ep_realdir=`(cd "$ep_dir" && pwd)`
63981:     ai_p="$ep_realdir"/`basename "$OCI8_DIR/plsql/public"`
63982:   fi
63983: 
63984: 
63985: 
63986:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
63987: 
63988:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
63989:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
63990:     eval "INCLUDEPATH$unique=set"
63991: 
63992:       if test ""; then
63993:         INCLUDES="-I$ai_p $INCLUDES"
63994:       else
63995:         INCLUDES="$INCLUDES -I$ai_p"
63996:       fi
63997: 
63998:   fi
63999: 
64000:   fi
64001: 
64002:       OCI8_INCLUDES="$OCI8_INCLUDES -I$OCI8_DIR/plsql/public"
64003:     fi
64004: 
64005:     if test -f "$OCI8_DIR/$OCI8_LIB_DIR/sysliblist"; then
64006: 
64007:   for ac_i in `cat $OCI8_DIR/$OCI8_LIB_DIR/sysliblist`; do
64008:     case $ac_i in
64009:     -pthread)
64010:       if test "$ext_shared" = "yes"; then
64011:         OCI8_SYSLIB="$OCI8_SYSLIB -pthread"
64012:       else
64013: 
64014: 
64015:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
64016: 
64017:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
64018:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
64019:     eval "EXTRA_LDFLAGS$unique=set"
64020:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
64021:   fi
64022: 
64023:       fi
64024:     ;;
64025:     -l*)
64026:       ac_ii=`echo $ac_i|cut -c 3-`
64027: 
64028: 
64029:   case $ac_ii in
64030:   c|c_r|pthread*) ;;
64031:   *)
64032:     if test "$ext_shared" = "yes"; then
64033:         OCI8_SYSLIB="$OCI8_SYSLIB -l$ac_ii"
64034:     else
64035: 
64036: 
64037:   case $ac_ii in
64038:   c|c_r|pthread*) ;;
64039:   *)
64040:       LIBS="$LIBS -l$ac_ii"
64041:    ;;
64042:   esac
64043: 
64044: 
64045:     fi
64046:    ;;
64047:   esac
64048: 
64049: 
64050:     ;;
64051:     -L*)
64052:       ac_ii=`echo $ac_i|cut -c 3-`
64053: 
64054:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
64055: 
64056:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
64057:     ai_p=$ac_ii
64058:   else
64059: 
64060:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
64061: 
64062:     ep_realdir=`(cd "$ep_dir" && pwd)`
64063:     ai_p="$ep_realdir"/`basename "$ac_ii"`
64064:   fi
64065: 
64066: 
64067:       if test "$ext_shared" = "yes"; then
64068:         OCI8_SYSLIB="-L$ai_p $OCI8_SYSLIB"
64069:         test -n "$ld_runpath_switch" && OCI8_SYSLIB="$ld_runpath_switch$ai_p $OCI8_SYSLIB"
64070:       else
64071: 
64072: 
64073: 
64074:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
64075: 
64076:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
64077:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
64078:     eval "LIBPATH$unique=set"
64079: 
64080:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
64081:     LDFLAGS="$LDFLAGS -L$ai_p"
64082:     PHP_RPATHS="$PHP_RPATHS $ai_p"
64083: 
64084:   fi
64085: 
64086: 
64087:       fi
64088: 
64089:   fi
64090: 
64091:     ;;
64092:     esac
64093:   done
64094: 
64095:     elif test -f "$OCI8_DIR/rdbms/$OCI8_LIB_DIR/sysliblist"; then
64096: 
64097:   for ac_i in `cat $OCI8_DIR/rdbms/$OCI8_LIB_DIR/sysliblist`; do
64098:     case $ac_i in
64099:     -pthread)
64100:       if test "$ext_shared" = "yes"; then
64101:         OCI8_SYSLIB="$OCI8_SYSLIB -pthread"
64102:       else
64103: 
64104: 
64105:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
64106: 
64107:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
64108:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
64109:     eval "EXTRA_LDFLAGS$unique=set"
64110:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
64111:   fi
64112: 
64113:       fi
64114:     ;;
64115:     -l*)
64116:       ac_ii=`echo $ac_i|cut -c 3-`
64117: 
64118: 
64119:   case $ac_ii in
64120:   c|c_r|pthread*) ;;
64121:   *)
64122:     if test "$ext_shared" = "yes"; then
64123:         OCI8_SYSLIB="$OCI8_SYSLIB -l$ac_ii"
64124:     else
64125: 
64126: 
64127:   case $ac_ii in
64128:   c|c_r|pthread*) ;;
64129:   *)
64130:       LIBS="$LIBS -l$ac_ii"
64131:    ;;
64132:   esac
64133: 
64134: 
64135:     fi
64136:    ;;
64137:   esac
64138: 
64139: 
64140:     ;;
64141:     -L*)
64142:       ac_ii=`echo $ac_i|cut -c 3-`
64143: 
64144:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
64145: 
64146:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
64147:     ai_p=$ac_ii
64148:   else
64149: 
64150:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
64151: 
64152:     ep_realdir=`(cd "$ep_dir" && pwd)`
64153:     ai_p="$ep_realdir"/`basename "$ac_ii"`
64154:   fi
64155: 
64156: 
64157:       if test "$ext_shared" = "yes"; then
64158:         OCI8_SYSLIB="-L$ai_p $OCI8_SYSLIB"
64159:         test -n "$ld_runpath_switch" && OCI8_SYSLIB="$ld_runpath_switch$ai_p $OCI8_SYSLIB"
64160:       else
64161: 
64162: 
64163: 
64164:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
64165: 
64166:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
64167:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
64168:     eval "LIBPATH$unique=set"
64169: 
64170:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
64171:     LDFLAGS="$LDFLAGS -L$ai_p"
64172:     PHP_RPATHS="$PHP_RPATHS $ai_p"
64173: 
64174:   fi
64175: 
64176: 
64177:       fi
64178: 
64179:   fi
64180: 
64181:     ;;
64182:     esac
64183:   done
64184: 
64185:     fi
64186: 
64187: 
64188:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking Oracle library version compatibility" >&5
64189: $as_echo_n "checking Oracle library version compatibility... " >&6; }
64190:   OCI8_LCS_BASE=$OCI8_DIR/$OCI8_LIB_DIR/libclntsh.$SHLIB_SUFFIX_NAME
64191:   OCI8_LCS=`ls $OCI8_LCS_BASE.*.1 2> /dev/null | $PHP_OCI8_TAIL1`  # Oracle 10g, 11g etc
64192:   if test -s "$OCI8_DIR/orainst/unix.rgs"; then
64193:     OCI8_ORACLE_VERSION=`grep '"ocommon"' $OCI8_DIR/orainst/unix.rgs | $PHP_OCI8_SED 's/  */:/g' | cut -d: -f 6 | cut -c 2-4`
64194:     test -z "$OCI8_ORACLE_VERSION" && OCI8_ORACLE_VERSION=7.3
64195:   elif test -f "$OCI8_LCS"; then
64196:         OCI8_ORACLE_VERSION=`echo $OCI8_LCS | $PHP_OCI8_SED -e 's/.*\.\(.*\)\.1$/\1.1/'`
64197:   elif test -f $OCI8_LCS_BASE.9.0; then
64198:         OCI8_ORACLE_VERSION=9.0
64199:   elif test -f $OCI8_LCS_BASE.8.0; then
64200:     OCI8_ORACLE_VERSION=8.1
64201:   elif test -f $OCI8_LCS_BASE.1.0; then
64202:     OCI8_ORACLE_VERSION=8.0
64203:   elif test -f $OCI8_DIR/$OCI8_LIB_DIR/libclntsh.a; then
64204:     if test -f $OCI8_DIR/$OCI8_LIB_DIR/libcore4.a; then
64205:       OCI8_ORACLE_VERSION=8.0
64206:     else
64207:       OCI8_ORACLE_VERSION=8.1
64208:     fi
64209:   else
64210:     as_fn_error $? "Oracle libclntsh.$SHLIB_SUFFIX_NAME client library not found" "$LINENO" 5
64211:   fi
64212:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCI8_ORACLE_VERSION" >&5
64213: $as_echo "$OCI8_ORACLE_VERSION" >&6; }
64214: 
64215: 
64216:     case $OCI8_ORACLE_VERSION in
64217:       7.3|8.0|8.1)
64218: 	as_fn_error $? "Oracle client libraries < 9.2 are not supported" "$LINENO" 5
64219: 	;;
64220: 
64221:       9.0)
64222: 
64223:   save_old_LDFLAGS=$LDFLAGS
64224:   ac_stuff="
64225: 	  -L$OCI8_DIR/$OCI8_LIB_DIR $OCI8_SHARED_LIBADD
64226: 	"
64227: 
64228:   save_ext_shared=$ext_shared
64229:   ext_shared=yes
64230: 
64231:   for ac_i in $ac_stuff; do
64232:     case $ac_i in
64233:     -pthread)
64234:       if test "$ext_shared" = "yes"; then
64235:         LDFLAGS="$LDFLAGS -pthread"
64236:       else
64237: 
64238: 
64239:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
64240: 
64241:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
64242:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
64243:     eval "EXTRA_LDFLAGS$unique=set"
64244:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
64245:   fi
64246: 
64247:       fi
64248:     ;;
64249:     -l*)
64250:       ac_ii=`echo $ac_i|cut -c 3-`
64251: 
64252: 
64253:   case $ac_ii in
64254:   c|c_r|pthread*) ;;
64255:   *)
64256:     if test "$ext_shared" = "yes"; then
64257:         LDFLAGS="$LDFLAGS -l$ac_ii"
64258:     else
64259: 
64260: 
64261:   case $ac_ii in
64262:   c|c_r|pthread*) ;;
64263:   *)
64264:       LIBS="$LIBS -l$ac_ii"
64265:    ;;
64266:   esac
64267: 
64268: 
64269:     fi
64270:    ;;
64271:   esac
64272: 
64273: 
64274:     ;;
64275:     -L*)
64276:       ac_ii=`echo $ac_i|cut -c 3-`
64277: 
64278:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
64279: 
64280:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
64281:     ai_p=$ac_ii
64282:   else
64283: 
64284:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
64285: 
64286:     ep_realdir=`(cd "$ep_dir" && pwd)`
64287:     ai_p="$ep_realdir"/`basename "$ac_ii"`
64288:   fi
64289: 
64290: 
64291:       if test "$ext_shared" = "yes"; then
64292:         LDFLAGS="-L$ai_p $LDFLAGS"
64293:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
64294:       else
64295: 
64296: 
64297: 
64298:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
64299: 
64300:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
64301:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
64302:     eval "LIBPATH$unique=set"
64303: 
64304:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
64305:     LDFLAGS="$LDFLAGS -L$ai_p"
64306:     PHP_RPATHS="$PHP_RPATHS $ai_p"
64307: 
64308:   fi
64309: 
64310: 
64311:       fi
64312: 
64313:   fi
64314: 
64315:     ;;
64316:     esac
64317:   done
64318: 
64319:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCIEnvNlsCreate in -lclntsh" >&5
64320: $as_echo_n "checking for OCIEnvNlsCreate in -lclntsh... " >&6; }
64321: if ${ac_cv_lib_clntsh_OCIEnvNlsCreate+:} false; then :
64322:   $as_echo_n "(cached) " >&6
64323: else
64324:   ac_check_lib_save_LIBS=$LIBS
64325: LIBS="-lclntsh  $LIBS"
64326: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
64327: /* end confdefs.h.  */
64328: 
64329: /* Override any GCC internal prototype to avoid an error.
64330:    Use char because int might match the return type of a GCC
64331:    builtin and then its argument prototype would still apply.  */
64332: #ifdef __cplusplus
64333: extern "C"
64334: #endif
64335: char OCIEnvNlsCreate ();
64336: int
64337: main ()
64338: {
64339: return OCIEnvNlsCreate ();
64340:   ;
64341:   return 0;
64342: }
64343: _ACEOF
64344: if ac_fn_c_try_link "$LINENO"; then :
64345:   ac_cv_lib_clntsh_OCIEnvNlsCreate=yes
64346: else
64347:   ac_cv_lib_clntsh_OCIEnvNlsCreate=no
64348: fi
64349: rm -f core conftest.err conftest.$ac_objext \
64350:     conftest$ac_exeext conftest.$ac_ext
64351: LIBS=$ac_check_lib_save_LIBS
64352: fi
64353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clntsh_OCIEnvNlsCreate" >&5
64354: $as_echo "$ac_cv_lib_clntsh_OCIEnvNlsCreate" >&6; }
64355: if test "x$ac_cv_lib_clntsh_OCIEnvNlsCreate" = xyes; then :
64356: 
64357:     LDFLAGS=$save_old_LDFLAGS
64358:     ext_shared=$save_ext_shared
64359: 
64360: 	  OCI8_ORACLE_VERSION=9.2
64361: 
64362: 
64363: else
64364: 
64365:     LDFLAGS=$save_old_LDFLAGS
64366:     ext_shared=$save_ext_shared
64367:     unset ac_cv_lib_clntsh_OCIEnvNlsCreate
64368: 
64369: 	  as_fn_error $? "Oracle client libraries < 9.2 are not supported" "$LINENO" 5
64370: 
64371: 
64372: fi
64373: 
64374: 	;;
64375: 
64376:       *)
64377: 
64378: $as_echo "#define HAVE_OCI_LOB_READ2 1" >>confdefs.h
64379: 
64380: 	;;
64381:     esac
64382: 
64383: 
64384: 
64385:   case clntsh in
64386:   c|c_r|pthread*) ;;
64387:   *)
64388:     if test "$ext_shared" = "yes"; then
64389:         OCI8_SHARED_LIBADD="$OCI8_SHARED_LIBADD -lclntsh"
64390:     else
64391: 
64392: 
64393:   case clntsh in
64394:   c|c_r|pthread*) ;;
64395:   *)
64396:       LIBS="$LIBS -lclntsh"
64397:    ;;
64398:   esac
64399: 
64400: 
64401:     fi
64402:    ;;
64403:   esac
64404: 
64405: 
64406: 
64407:   if test "$OCI8_DIR/$OCI8_LIB_DIR" != "/usr/$PHP_LIBDIR" && test "$OCI8_DIR/$OCI8_LIB_DIR" != "/usr/lib"; then
64408: 
64409:   if test -z "$OCI8_DIR/$OCI8_LIB_DIR" || echo "$OCI8_DIR/$OCI8_LIB_DIR" | grep '^/' >/dev/null ; then
64410:     ai_p=$OCI8_DIR/$OCI8_LIB_DIR
64411:   else
64412: 
64413:     ep_dir=`echo $OCI8_DIR/$OCI8_LIB_DIR|$SED 's%/*[^/][^/]*/*$%%'`
64414: 
64415:     ep_realdir=`(cd "$ep_dir" && pwd)`
64416:     ai_p="$ep_realdir"/`basename "$OCI8_DIR/$OCI8_LIB_DIR"`
64417:   fi
64418: 
64419: 
64420:       if test "$ext_shared" = "yes"; then
64421:         OCI8_SHARED_LIBADD="-L$ai_p $OCI8_SHARED_LIBADD"
64422:         test -n "$ld_runpath_switch" && OCI8_SHARED_LIBADD="$ld_runpath_switch$ai_p $OCI8_SHARED_LIBADD"
64423:       else
64424: 
64425: 
64426: 
64427:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
64428: 
64429:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
64430:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
64431:     eval "LIBPATH$unique=set"
64432: 
64433:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
64434:     LDFLAGS="$LDFLAGS -L$ai_p"
64435:     PHP_RPATHS="$PHP_RPATHS $ai_p"
64436: 
64437:   fi
64438: 
64439: 
64440:       fi
64441: 
64442:   fi
64443: 
64444: 
64445:   ext_builddir=ext/oci8
64446:   ext_srcdir=$abs_srcdir/ext/oci8
64447: 
64448:   ac_extra=
64449: 
64450:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
64451:     PHP_OCI8_SHARED=no
64452: 
64453: 
64454:   case ext/oci8 in
64455:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
64456:   /*) ac_srcdir=`echo "ext/oci8"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
64457:   *) ac_srcdir="$abs_srcdir/ext/oci8/"; ac_bdir="ext/oci8/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
64458:   esac
64459: 
64460: 
64461: 
64462:   b_c_pre=$php_c_pre
64463:   b_cxx_pre=$php_cxx_pre
64464:   b_c_meta=$php_c_meta
64465:   b_cxx_meta=$php_cxx_meta
64466:   b_c_post=$php_c_post
64467:   b_cxx_post=$php_cxx_post
64468:   b_lo=$php_lo
64469: 
64470: 
64471:   old_IFS=$IFS
64472:   for ac_src in oci8.c oci8_lob.c oci8_statement.c oci8_collection.c oci8_interface.c; do
64473: 
64474:       IFS=.
64475:       set $ac_src
64476:       ac_obj=$1
64477:       IFS=$old_IFS
64478: 
64479:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
64480: 
64481:       case $ac_src in
64482:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
64483:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
64484:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
64485:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
64486:       esac
64487: 
64488:     cat >>Makefile.objects<<EOF
64489: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
64490: 	$ac_comp
64491: EOF
64492:   done
64493: 
64494: 
64495:     EXT_STATIC="$EXT_STATIC oci8"
64496:     if test "$ext_shared" != "nocli"; then
64497:       EXT_CLI_STATIC="$EXT_CLI_STATIC oci8"
64498:     fi
64499:   else
64500:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
64501:       PHP_OCI8_SHARED=yes
64502: 
64503:   case ext/oci8 in
64504:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
64505:   /*) ac_srcdir=`echo "ext/oci8"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
64506:   *) ac_srcdir="$abs_srcdir/ext/oci8/"; ac_bdir="ext/oci8/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
64507:   esac
64508: 
64509: 
64510: 
64511:   b_c_pre=$shared_c_pre
64512:   b_cxx_pre=$shared_cxx_pre
64513:   b_c_meta=$shared_c_meta
64514:   b_cxx_meta=$shared_cxx_meta
64515:   b_c_post=$shared_c_post
64516:   b_cxx_post=$shared_cxx_post
64517:   b_lo=$shared_lo
64518: 
64519: 
64520:   old_IFS=$IFS
64521:   for ac_src in oci8.c oci8_lob.c oci8_statement.c oci8_collection.c oci8_interface.c; do
64522: 
64523:       IFS=.
64524:       set $ac_src
64525:       ac_obj=$1
64526:       IFS=$old_IFS
64527: 
64528:       shared_objects_oci8="$shared_objects_oci8 $ac_bdir$ac_obj.lo"
64529: 
64530:       case $ac_src in
64531:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
64532:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
64533:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
64534:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
64535:       esac
64536: 
64537:     cat >>Makefile.objects<<EOF
64538: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
64539: 	$ac_comp
64540: EOF
64541:   done
64542: 
64543:       case $host_alias in
64544:         *netware*)
64545: 
64546:   install_modules="install-modules"
64547: 
64548:   case $host_alias in
64549:     *aix*)
64550:       suffix=so
64551:       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'
64552:       ;;
64553:     *netware*)
64554:       suffix=nlm
64555:       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)'
64556:       ;;
64557:     *)
64558:       suffix=la
64559:       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)'
64560:       ;;
64561:   esac
64562: 
64563:   if test "x" = "xyes"; then
64564:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpoci8.$suffix"
64565:   else
64566:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpoci8.$suffix"
64567:   fi
64568: 
64569:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_oci8"
64570: 
64571:   cat >>Makefile.objects<<EOF
64572: \$(phplibdir)/phpoci8.$suffix: $ext_builddir/phpoci8.$suffix
64573: 	\$(LIBTOOL) --mode=install cp $ext_builddir/phpoci8.$suffix \$(phplibdir)
64574: 
64575: $ext_builddir/phpoci8.$suffix: \$(shared_objects_oci8) \$(PHPOCI8_SHARED_DEPENDENCIES)
64576: 	$link_cmd
64577: 
64578: EOF
64579: 
64580:           ;;
64581:         *)
64582: 
64583:   install_modules="install-modules"
64584: 
64585:   case $host_alias in
64586:     *aix*)
64587:       suffix=so
64588:       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'
64589:       ;;
64590:     *netware*)
64591:       suffix=nlm
64592:       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)'
64593:       ;;
64594:     *)
64595:       suffix=la
64596:       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)'
64597:       ;;
64598:   esac
64599: 
64600:   if test "x" = "xyes"; then
64601:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/oci8.$suffix"
64602:   else
64603:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/oci8.$suffix"
64604:   fi
64605: 
64606:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_oci8"
64607: 
64608:   cat >>Makefile.objects<<EOF
64609: \$(phplibdir)/oci8.$suffix: $ext_builddir/oci8.$suffix
64610: 	\$(LIBTOOL) --mode=install cp $ext_builddir/oci8.$suffix \$(phplibdir)
64611: 
64612: $ext_builddir/oci8.$suffix: \$(shared_objects_oci8) \$(OCI8_SHARED_DEPENDENCIES)
64613: 	$link_cmd
64614: 
64615: EOF
64616: 
64617:           ;;
64618:       esac
64619: 
64620: cat >>confdefs.h <<_ACEOF
64621: #define COMPILE_DL_OCI8 1
64622: _ACEOF
64623: 
64624:     fi
64625:   fi
64626: 
64627:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
64628:     PHP_OCI8_SHARED=no
64629:     case "$PHP_SAPI" in
64630:       cgi|embed)
64631: 
64632: 
64633:   case ext/oci8 in
64634:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
64635:   /*) ac_srcdir=`echo "ext/oci8"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
64636:   *) ac_srcdir="$abs_srcdir/ext/oci8/"; ac_bdir="ext/oci8/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
64637:   esac
64638: 
64639: 
64640: 
64641:   b_c_pre=$php_c_pre
64642:   b_cxx_pre=$php_cxx_pre
64643:   b_c_meta=$php_c_meta
64644:   b_cxx_meta=$php_cxx_meta
64645:   b_c_post=$php_c_post
64646:   b_cxx_post=$php_cxx_post
64647:   b_lo=$php_lo
64648: 
64649: 
64650:   old_IFS=$IFS
64651:   for ac_src in oci8.c oci8_lob.c oci8_statement.c oci8_collection.c oci8_interface.c; do
64652: 
64653:       IFS=.
64654:       set $ac_src
64655:       ac_obj=$1
64656:       IFS=$old_IFS
64657: 
64658:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
64659: 
64660:       case $ac_src in
64661:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
64662:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
64663:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
64664:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
64665:       esac
64666: 
64667:     cat >>Makefile.objects<<EOF
64668: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
64669: 	$ac_comp
64670: EOF
64671:   done
64672: 
64673: 
64674:         EXT_STATIC="$EXT_STATIC oci8"
64675:         ;;
64676:       *)
64677: 
64678: 
64679:   case ext/oci8 in
64680:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
64681:   /*) ac_srcdir=`echo "ext/oci8"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
64682:   *) ac_srcdir="$abs_srcdir/ext/oci8/"; ac_bdir="ext/oci8/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
64683:   esac
64684: 
64685: 
64686: 
64687:   b_c_pre=$php_c_pre
64688:   b_cxx_pre=$php_cxx_pre
64689:   b_c_meta=$php_c_meta
64690:   b_cxx_meta=$php_cxx_meta
64691:   b_c_post=$php_c_post
64692:   b_cxx_post=$php_cxx_post
64693:   b_lo=$php_lo
64694: 
64695: 
64696:   old_IFS=$IFS
64697:   for ac_src in oci8.c oci8_lob.c oci8_statement.c oci8_collection.c oci8_interface.c; do
64698: 
64699:       IFS=.
64700:       set $ac_src
64701:       ac_obj=$1
64702:       IFS=$old_IFS
64703: 
64704:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
64705: 
64706:       case $ac_src in
64707:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
64708:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
64709:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
64710:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
64711:       esac
64712: 
64713:     cat >>Makefile.objects<<EOF
64714: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
64715: 	$ac_comp
64716: EOF
64717:   done
64718: 
64719: 
64720:         ;;
64721:     esac
64722:     EXT_CLI_STATIC="$EXT_CLI_STATIC oci8"
64723:   fi
64724: 
64725: 
64726:     BUILD_DIR="$BUILD_DIR $ext_builddir"
64727: 
64728: 
64729: 
64730:   if test "$ext_builddir" = "."; then
64731:     PHP_PECL_EXTENSION=oci8
64732: 
64733:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
64734: 
64735:   fi
64736: 
64737: 
64738: $as_echo "#define HAVE_OCI8 1" >>confdefs.h
64739: 
64740: 
64741: 
64742: 
64743:   PHP_VAR_SUBST="$PHP_VAR_SUBST OCI8_SHARED_LIBADD"
64744: 
64745: 
64746: 
64747: 
64748: 
64749:   PHP_VAR_SUBST="$PHP_VAR_SUBST OCI8_DIR"
64750: 
64751: 
64752: 
64753: 
64754: 
64755:   PHP_VAR_SUBST="$PHP_VAR_SUBST OCI8_ORACLE_VERSION"
64756: 
64757: 
64758: 
64759: 
64760: 
64761: cat >>confdefs.h <<_ACEOF
64762: #define PHP_OCI8_DEF_DIR "$OCI8_DIR"
64763: _ACEOF
64764: 
64765: 
64766: cat >>confdefs.h <<_ACEOF
64767: #define PHP_OCI8_DEF_SHARED_LIBADD "$OCI8_SHARED_LIBADD"
64768: _ACEOF
64769: 
64770: 
64771:   else
64772: 
64773:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking Oracle Instant Client directory" >&5
64774: $as_echo_n "checking Oracle Instant Client directory... " >&6; }
64775: 
64776:     if test "$PHP_OCI8_INSTANT_CLIENT" = "yes"; then
64777:                                     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[^/]*##'`
64778:       if test -z "$PHP_OCI8_INSTANT_CLIENT"; then
64779: 	as_fn_error $? "Oracle Instant Client directory /usr/lib/oracle/.../client${PHP_OCI8_IC_LIBDIR_SUFFIX}/lib libraries not found. Try --with-oci8=instantclient,DIR" "$LINENO" 5
64780:       fi
64781:     fi
64782:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_OCI8_INSTANT_CLIENT" >&5
64783: $as_echo "$PHP_OCI8_INSTANT_CLIENT" >&6; }
64784: 
64785:     OCI8_DIR=$PHP_OCI8_INSTANT_CLIENT
64786: 
64787:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking Oracle Instant Client SDK header directory" >&5
64788: $as_echo_n "checking Oracle Instant Client SDK header directory... " >&6; }
64789: 
64790:         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!'`
64791: 
64792:         OCISDKZIPINC=$PHP_OCI8_INSTANT_CLIENT/sdk/include
64793: 
64794:         OCISDKMANINC=`echo "$PHP_OCI8_INSTANT_CLIENT" | $PHP_OCI8_SED -e 's!\(.*\)/lib/*$!\1/include!'`
64795: 
64796:     if test -f "$OCISDKRPMINC/oci.h"; then
64797:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCISDKRPMINC" >&5
64798: $as_echo "$OCISDKRPMINC" >&6; }
64799: 
64800:   if test "$OCISDKRPMINC" != "/usr/include"; then
64801: 
64802:   if test -z "$OCISDKRPMINC" || echo "$OCISDKRPMINC" | grep '^/' >/dev/null ; then
64803:     ai_p=$OCISDKRPMINC
64804:   else
64805: 
64806:     ep_dir=`echo $OCISDKRPMINC|$SED 's%/*[^/][^/]*/*$%%'`
64807: 
64808:     ep_realdir=`(cd "$ep_dir" && pwd)`
64809:     ai_p="$ep_realdir"/`basename "$OCISDKRPMINC"`
64810:   fi
64811: 
64812: 
64813: 
64814:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
64815: 
64816:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
64817:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
64818:     eval "INCLUDEPATH$unique=set"
64819: 
64820:       if test ""; then
64821:         INCLUDES="-I$ai_p $INCLUDES"
64822:       else
64823:         INCLUDES="$INCLUDES -I$ai_p"
64824:       fi
64825: 
64826:   fi
64827: 
64828:   fi
64829: 
64830:       OCI8INCDIR=$OCISDKRPMINC
64831:     elif test -f "$OCISDKZIPINC/oci.h"; then
64832:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCISDKZIPINC" >&5
64833: $as_echo "$OCISDKZIPINC" >&6; }
64834: 
64835:   if test "$OCISDKZIPINC" != "/usr/include"; then
64836: 
64837:   if test -z "$OCISDKZIPINC" || echo "$OCISDKZIPINC" | grep '^/' >/dev/null ; then
64838:     ai_p=$OCISDKZIPINC
64839:   else
64840: 
64841:     ep_dir=`echo $OCISDKZIPINC|$SED 's%/*[^/][^/]*/*$%%'`
64842: 
64843:     ep_realdir=`(cd "$ep_dir" && pwd)`
64844:     ai_p="$ep_realdir"/`basename "$OCISDKZIPINC"`
64845:   fi
64846: 
64847: 
64848: 
64849:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
64850: 
64851:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
64852:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
64853:     eval "INCLUDEPATH$unique=set"
64854: 
64855:       if test ""; then
64856:         INCLUDES="-I$ai_p $INCLUDES"
64857:       else
64858:         INCLUDES="$INCLUDES -I$ai_p"
64859:       fi
64860: 
64861:   fi
64862: 
64863:   fi
64864: 
64865:       OCI8INCDIR=$OCISDKZIPINC
64866:     elif test -f "$OCISDKMANINC/oci.h"; then
64867:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCISDKMANINC" >&5
64868: $as_echo "$OCISDKMANINC" >&6; }
64869: 
64870:   if test "$OCISDKMANINC" != "/usr/include"; then
64871: 
64872:   if test -z "$OCISDKMANINC" || echo "$OCISDKMANINC" | grep '^/' >/dev/null ; then
64873:     ai_p=$OCISDKMANINC
64874:   else
64875: 
64876:     ep_dir=`echo $OCISDKMANINC|$SED 's%/*[^/][^/]*/*$%%'`
64877: 
64878:     ep_realdir=`(cd "$ep_dir" && pwd)`
64879:     ai_p="$ep_realdir"/`basename "$OCISDKMANINC"`
64880:   fi
64881: 
64882: 
64883: 
64884:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
64885: 
64886:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
64887:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
64888:     eval "INCLUDEPATH$unique=set"
64889: 
64890:       if test ""; then
64891:         INCLUDES="-I$ai_p $INCLUDES"
64892:       else
64893:         INCLUDES="$INCLUDES -I$ai_p"
64894:       fi
64895: 
64896:   fi
64897: 
64898:   fi
64899: 
64900:       OCI8INCDIR=$OCISDKMANINC
64901:     else
64902:       as_fn_error $? "Oracle Instant Client SDK header files not found" "$LINENO" 5
64903:     fi
64904: 
64905:     OCISYSLIBLIST=`echo "$OCI8INCDIR" | $PHP_OCI8_SED -e 's!\(.*\)/include$!\1/demo/sysliblist!'`
64906:     if test -f "$OCISYSLIBLIST"; then
64907: 
64908:   for ac_i in `cat $OCISYSLIBLIST`; do
64909:     case $ac_i in
64910:     -pthread)
64911:       if test "$ext_shared" = "yes"; then
64912:         OCI8_SYSLIB="$OCI8_SYSLIB -pthread"
64913:       else
64914: 
64915: 
64916:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
64917: 
64918:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
64919:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
64920:     eval "EXTRA_LDFLAGS$unique=set"
64921:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
64922:   fi
64923: 
64924:       fi
64925:     ;;
64926:     -l*)
64927:       ac_ii=`echo $ac_i|cut -c 3-`
64928: 
64929: 
64930:   case $ac_ii in
64931:   c|c_r|pthread*) ;;
64932:   *)
64933:     if test "$ext_shared" = "yes"; then
64934:         OCI8_SYSLIB="$OCI8_SYSLIB -l$ac_ii"
64935:     else
64936: 
64937: 
64938:   case $ac_ii in
64939:   c|c_r|pthread*) ;;
64940:   *)
64941:       LIBS="$LIBS -l$ac_ii"
64942:    ;;
64943:   esac
64944: 
64945: 
64946:     fi
64947:    ;;
64948:   esac
64949: 
64950: 
64951:     ;;
64952:     -L*)
64953:       ac_ii=`echo $ac_i|cut -c 3-`
64954: 
64955:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
64956: 
64957:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
64958:     ai_p=$ac_ii
64959:   else
64960: 
64961:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
64962: 
64963:     ep_realdir=`(cd "$ep_dir" && pwd)`
64964:     ai_p="$ep_realdir"/`basename "$ac_ii"`
64965:   fi
64966: 
64967: 
64968:       if test "$ext_shared" = "yes"; then
64969:         OCI8_SYSLIB="-L$ai_p $OCI8_SYSLIB"
64970:         test -n "$ld_runpath_switch" && OCI8_SYSLIB="$ld_runpath_switch$ai_p $OCI8_SYSLIB"
64971:       else
64972: 
64973: 
64974: 
64975:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
64976: 
64977:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
64978:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
64979:     eval "LIBPATH$unique=set"
64980: 
64981:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
64982:     LDFLAGS="$LDFLAGS -L$ai_p"
64983:     PHP_RPATHS="$PHP_RPATHS $ai_p"
64984: 
64985:   fi
64986: 
64987: 
64988:       fi
64989: 
64990:   fi
64991: 
64992:     ;;
64993:     esac
64994:   done
64995: 
64996:     fi
64997: 
64998: 
64999:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking Oracle Instant Client library version compatibility" >&5
65000: $as_echo_n "checking Oracle Instant Client library version compatibility... " >&6; }
65001:   OCI8_LCS_BASE=$PHP_OCI8_INSTANT_CLIENT/libclntsh.$SHLIB_SUFFIX_NAME
65002:   OCI8_LCS=`ls $OCI8_LCS_BASE.*.1 2> /dev/null | $PHP_OCI8_TAIL1`  # Oracle 10g, 11g etc
65003:   OCI8_NNZ=`ls $PHP_OCI8_INSTANT_CLIENT/libnnz*.$SHLIB_SUFFIX_NAME 2> /dev/null | $PHP_OCI8_TAIL1`
65004:   if test -f "$OCI8_NNZ" && test -f "$OCI8_LCS"; then
65005:     if test ! -f "$OCI8_LCS_BASE"; then
65006:       as_fn_error $? "Link from $OCI8_LCS_BASE to $OCI8_LCS_BASE.*.1 not found" "$LINENO" 5
65007:     fi
65008:     OCI8_ORACLE_VERSION=`echo $OCI8_LCS | $PHP_OCI8_SED -e 's/.*\.\(.*\)\.1$/\1.1/'`
65009:   else
65010:     as_fn_error $? "Oracle Instant Client libraries libnnz.$SHLIB_SUFFIX_NAME and libclntsh.$SHLIB_SUFFIX_NAME not found" "$LINENO" 5
65011:   fi
65012:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCI8_ORACLE_VERSION" >&5
65013: $as_echo "$OCI8_ORACLE_VERSION" >&6; }
65014: 
65015: 
65016: 
65017:   case clntsh in
65018:   c|c_r|pthread*) ;;
65019:   *)
65020:     if test "$ext_shared" = "yes"; then
65021:         OCI8_SHARED_LIBADD="$OCI8_SHARED_LIBADD -lclntsh"
65022:     else
65023: 
65024: 
65025:   case clntsh in
65026:   c|c_r|pthread*) ;;
65027:   *)
65028:       LIBS="$LIBS -lclntsh"
65029:    ;;
65030:   esac
65031: 
65032: 
65033:     fi
65034:    ;;
65035:   esac
65036: 
65037: 
65038: 
65039:   if test "$PHP_OCI8_INSTANT_CLIENT" != "/usr/$PHP_LIBDIR" && test "$PHP_OCI8_INSTANT_CLIENT" != "/usr/lib"; then
65040: 
65041:   if test -z "$PHP_OCI8_INSTANT_CLIENT" || echo "$PHP_OCI8_INSTANT_CLIENT" | grep '^/' >/dev/null ; then
65042:     ai_p=$PHP_OCI8_INSTANT_CLIENT
65043:   else
65044: 
65045:     ep_dir=`echo $PHP_OCI8_INSTANT_CLIENT|$SED 's%/*[^/][^/]*/*$%%'`
65046: 
65047:     ep_realdir=`(cd "$ep_dir" && pwd)`
65048:     ai_p="$ep_realdir"/`basename "$PHP_OCI8_INSTANT_CLIENT"`
65049:   fi
65050: 
65051: 
65052:       if test "$ext_shared" = "yes"; then
65053:         OCI8_SHARED_LIBADD="-L$ai_p $OCI8_SHARED_LIBADD"
65054:         test -n "$ld_runpath_switch" && OCI8_SHARED_LIBADD="$ld_runpath_switch$ai_p $OCI8_SHARED_LIBADD"
65055:       else
65056: 
65057: 
65058: 
65059:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
65060: 
65061:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
65062:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
65063:     eval "LIBPATH$unique=set"
65064: 
65065:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
65066:     LDFLAGS="$LDFLAGS -L$ai_p"
65067:     PHP_RPATHS="$PHP_RPATHS $ai_p"
65068: 
65069:   fi
65070: 
65071: 
65072:       fi
65073: 
65074:   fi
65075: 
65076: 
65077: 
65078: $as_echo "#define HAVE_OCI_INSTANT_CLIENT 1" >>confdefs.h
65079: 
65080: 
65081: $as_echo "#define HAVE_OCI_LOB_READ2 1" >>confdefs.h
65082: 
65083: 
65084: 
65085:   ext_builddir=ext/oci8
65086:   ext_srcdir=$abs_srcdir/ext/oci8
65087: 
65088:   ac_extra=
65089: 
65090:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
65091:     PHP_OCI8_SHARED=no
65092: 
65093: 
65094:   case ext/oci8 in
65095:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
65096:   /*) ac_srcdir=`echo "ext/oci8"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
65097:   *) ac_srcdir="$abs_srcdir/ext/oci8/"; ac_bdir="ext/oci8/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
65098:   esac
65099: 
65100: 
65101: 
65102:   b_c_pre=$php_c_pre
65103:   b_cxx_pre=$php_cxx_pre
65104:   b_c_meta=$php_c_meta
65105:   b_cxx_meta=$php_cxx_meta
65106:   b_c_post=$php_c_post
65107:   b_cxx_post=$php_cxx_post
65108:   b_lo=$php_lo
65109: 
65110: 
65111:   old_IFS=$IFS
65112:   for ac_src in oci8.c oci8_lob.c oci8_statement.c oci8_collection.c oci8_interface.c; do
65113: 
65114:       IFS=.
65115:       set $ac_src
65116:       ac_obj=$1
65117:       IFS=$old_IFS
65118: 
65119:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
65120: 
65121:       case $ac_src in
65122:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
65123:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
65124:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
65125:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
65126:       esac
65127: 
65128:     cat >>Makefile.objects<<EOF
65129: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
65130: 	$ac_comp
65131: EOF
65132:   done
65133: 
65134: 
65135:     EXT_STATIC="$EXT_STATIC oci8"
65136:     if test "$ext_shared" != "nocli"; then
65137:       EXT_CLI_STATIC="$EXT_CLI_STATIC oci8"
65138:     fi
65139:   else
65140:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
65141:       PHP_OCI8_SHARED=yes
65142: 
65143:   case ext/oci8 in
65144:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
65145:   /*) ac_srcdir=`echo "ext/oci8"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
65146:   *) ac_srcdir="$abs_srcdir/ext/oci8/"; ac_bdir="ext/oci8/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
65147:   esac
65148: 
65149: 
65150: 
65151:   b_c_pre=$shared_c_pre
65152:   b_cxx_pre=$shared_cxx_pre
65153:   b_c_meta=$shared_c_meta
65154:   b_cxx_meta=$shared_cxx_meta
65155:   b_c_post=$shared_c_post
65156:   b_cxx_post=$shared_cxx_post
65157:   b_lo=$shared_lo
65158: 
65159: 
65160:   old_IFS=$IFS
65161:   for ac_src in oci8.c oci8_lob.c oci8_statement.c oci8_collection.c oci8_interface.c; do
65162: 
65163:       IFS=.
65164:       set $ac_src
65165:       ac_obj=$1
65166:       IFS=$old_IFS
65167: 
65168:       shared_objects_oci8="$shared_objects_oci8 $ac_bdir$ac_obj.lo"
65169: 
65170:       case $ac_src in
65171:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
65172:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
65173:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
65174:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
65175:       esac
65176: 
65177:     cat >>Makefile.objects<<EOF
65178: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
65179: 	$ac_comp
65180: EOF
65181:   done
65182: 
65183:       case $host_alias in
65184:         *netware*)
65185: 
65186:   install_modules="install-modules"
65187: 
65188:   case $host_alias in
65189:     *aix*)
65190:       suffix=so
65191:       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'
65192:       ;;
65193:     *netware*)
65194:       suffix=nlm
65195:       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)'
65196:       ;;
65197:     *)
65198:       suffix=la
65199:       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)'
65200:       ;;
65201:   esac
65202: 
65203:   if test "x" = "xyes"; then
65204:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpoci8.$suffix"
65205:   else
65206:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpoci8.$suffix"
65207:   fi
65208: 
65209:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_oci8"
65210: 
65211:   cat >>Makefile.objects<<EOF
65212: \$(phplibdir)/phpoci8.$suffix: $ext_builddir/phpoci8.$suffix
65213: 	\$(LIBTOOL) --mode=install cp $ext_builddir/phpoci8.$suffix \$(phplibdir)
65214: 
65215: $ext_builddir/phpoci8.$suffix: \$(shared_objects_oci8) \$(PHPOCI8_SHARED_DEPENDENCIES)
65216: 	$link_cmd
65217: 
65218: EOF
65219: 
65220:           ;;
65221:         *)
65222: 
65223:   install_modules="install-modules"
65224: 
65225:   case $host_alias in
65226:     *aix*)
65227:       suffix=so
65228:       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'
65229:       ;;
65230:     *netware*)
65231:       suffix=nlm
65232:       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)'
65233:       ;;
65234:     *)
65235:       suffix=la
65236:       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)'
65237:       ;;
65238:   esac
65239: 
65240:   if test "x" = "xyes"; then
65241:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/oci8.$suffix"
65242:   else
65243:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/oci8.$suffix"
65244:   fi
65245: 
65246:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_oci8"
65247: 
65248:   cat >>Makefile.objects<<EOF
65249: \$(phplibdir)/oci8.$suffix: $ext_builddir/oci8.$suffix
65250: 	\$(LIBTOOL) --mode=install cp $ext_builddir/oci8.$suffix \$(phplibdir)
65251: 
65252: $ext_builddir/oci8.$suffix: \$(shared_objects_oci8) \$(OCI8_SHARED_DEPENDENCIES)
65253: 	$link_cmd
65254: 
65255: EOF
65256: 
65257:           ;;
65258:       esac
65259: 
65260: cat >>confdefs.h <<_ACEOF
65261: #define COMPILE_DL_OCI8 1
65262: _ACEOF
65263: 
65264:     fi
65265:   fi
65266: 
65267:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
65268:     PHP_OCI8_SHARED=no
65269:     case "$PHP_SAPI" in
65270:       cgi|embed)
65271: 
65272: 
65273:   case ext/oci8 in
65274:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
65275:   /*) ac_srcdir=`echo "ext/oci8"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
65276:   *) ac_srcdir="$abs_srcdir/ext/oci8/"; ac_bdir="ext/oci8/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
65277:   esac
65278: 
65279: 
65280: 
65281:   b_c_pre=$php_c_pre
65282:   b_cxx_pre=$php_cxx_pre
65283:   b_c_meta=$php_c_meta
65284:   b_cxx_meta=$php_cxx_meta
65285:   b_c_post=$php_c_post
65286:   b_cxx_post=$php_cxx_post
65287:   b_lo=$php_lo
65288: 
65289: 
65290:   old_IFS=$IFS
65291:   for ac_src in oci8.c oci8_lob.c oci8_statement.c oci8_collection.c oci8_interface.c; do
65292: 
65293:       IFS=.
65294:       set $ac_src
65295:       ac_obj=$1
65296:       IFS=$old_IFS
65297: 
65298:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
65299: 
65300:       case $ac_src in
65301:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
65302:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
65303:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
65304:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
65305:       esac
65306: 
65307:     cat >>Makefile.objects<<EOF
65308: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
65309: 	$ac_comp
65310: EOF
65311:   done
65312: 
65313: 
65314:         EXT_STATIC="$EXT_STATIC oci8"
65315:         ;;
65316:       *)
65317: 
65318: 
65319:   case ext/oci8 in
65320:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
65321:   /*) ac_srcdir=`echo "ext/oci8"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
65322:   *) ac_srcdir="$abs_srcdir/ext/oci8/"; ac_bdir="ext/oci8/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
65323:   esac
65324: 
65325: 
65326: 
65327:   b_c_pre=$php_c_pre
65328:   b_cxx_pre=$php_cxx_pre
65329:   b_c_meta=$php_c_meta
65330:   b_cxx_meta=$php_cxx_meta
65331:   b_c_post=$php_c_post
65332:   b_cxx_post=$php_cxx_post
65333:   b_lo=$php_lo
65334: 
65335: 
65336:   old_IFS=$IFS
65337:   for ac_src in oci8.c oci8_lob.c oci8_statement.c oci8_collection.c oci8_interface.c; do
65338: 
65339:       IFS=.
65340:       set $ac_src
65341:       ac_obj=$1
65342:       IFS=$old_IFS
65343: 
65344:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
65345: 
65346:       case $ac_src in
65347:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
65348:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
65349:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
65350:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
65351:       esac
65352: 
65353:     cat >>Makefile.objects<<EOF
65354: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
65355: 	$ac_comp
65356: EOF
65357:   done
65358: 
65359: 
65360:         ;;
65361:     esac
65362:     EXT_CLI_STATIC="$EXT_CLI_STATIC oci8"
65363:   fi
65364: 
65365: 
65366:     BUILD_DIR="$BUILD_DIR $ext_builddir"
65367: 
65368: 
65369: 
65370:   if test "$ext_builddir" = "."; then
65371:     PHP_PECL_EXTENSION=oci8
65372: 
65373:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
65374: 
65375:   fi
65376: 
65377: 
65378: $as_echo "#define HAVE_OCI8 1" >>confdefs.h
65379: 
65380: 
65381: 
65382: 
65383:   PHP_VAR_SUBST="$PHP_VAR_SUBST OCI8_SHARED_LIBADD"
65384: 
65385: 
65386: 
65387: 
65388: 
65389:   PHP_VAR_SUBST="$PHP_VAR_SUBST OCI8_DIR"
65390: 
65391: 
65392: 
65393: 
65394: 
65395:   PHP_VAR_SUBST="$PHP_VAR_SUBST OCI8_ORACLE_VERSION"
65396: 
65397: 
65398: 
65399: 
65400:   fi
65401: fi
65402: 
65403: 
65404: 
65405: 
65406: 
65407: 
65408: 
65409: 
65410: 
65411: 
65412: 
65413: 
65414: if test -z "$ODBC_TYPE"; then
65415: 
65416: php_with_adabas=no
65417: 
65418: 
65419: 
65420: # Check whether --with-adabas was given.
65421: if test "${with_adabas+set}" = set; then :
65422:   withval=$with_adabas; PHP_ADABAS=$withval
65423: else
65424: 
65425:   PHP_ADABAS=no
65426:   test "$PHP_ENABLE_ALL" && PHP_ADABAS=$PHP_ENABLE_ALL
65427: 
65428: fi
65429: 
65430: 
65431: 
65432: ext_output="yes, shared"
65433: ext_shared=yes
65434: case $PHP_ADABAS in
65435: shared,*)
65436:   PHP_ADABAS=`echo "$PHP_ADABAS"|$SED 's/^shared,//'`
65437:   ;;
65438: shared)
65439:   PHP_ADABAS=yes
65440:   ;;
65441: no)
65442:   ext_output=no
65443:   ext_shared=no
65444:   ;;
65445: *)
65446:   ext_output=yes
65447:   ext_shared=no
65448:   ;;
65449: esac
65450: 
65451: 
65452: 
65453: 
65454: 
65455: 
65456: 
65457: 
65458:   if test "$PHP_ADABAS" != "no"; then
65459:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Adabas support" >&5
65460: $as_echo_n "checking for Adabas support... " >&6; }
65461:     if test "$PHP_ADABAS" = "yes"; then
65462:       PHP_ADABAS=/usr/local
65463:     fi
65464: 
65465:   if test "$PHP_ADABAS/incl" != "/usr/include"; then
65466: 
65467:   if test -z "$PHP_ADABAS/incl" || echo "$PHP_ADABAS/incl" | grep '^/' >/dev/null ; then
65468:     ai_p=$PHP_ADABAS/incl
65469:   else
65470: 
65471:     ep_dir=`echo $PHP_ADABAS/incl|$SED 's%/*[^/][^/]*/*$%%'`
65472: 
65473:     ep_realdir=`(cd "$ep_dir" && pwd)`
65474:     ai_p="$ep_realdir"/`basename "$PHP_ADABAS/incl"`
65475:   fi
65476: 
65477: 
65478: 
65479:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
65480: 
65481:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
65482:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
65483:     eval "INCLUDEPATH$unique=set"
65484: 
65485:       if test ""; then
65486:         INCLUDES="-I$ai_p $INCLUDES"
65487:       else
65488:         INCLUDES="$INCLUDES -I$ai_p"
65489:       fi
65490: 
65491:   fi
65492: 
65493:   fi
65494: 
65495: 
65496:   if test "$PHP_ADABAS/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ADABAS/$PHP_LIBDIR" != "/usr/lib"; then
65497: 
65498:   if test -z "$PHP_ADABAS/$PHP_LIBDIR" || echo "$PHP_ADABAS/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
65499:     ai_p=$PHP_ADABAS/$PHP_LIBDIR
65500:   else
65501: 
65502:     ep_dir=`echo $PHP_ADABAS/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
65503: 
65504:     ep_realdir=`(cd "$ep_dir" && pwd)`
65505:     ai_p="$ep_realdir"/`basename "$PHP_ADABAS/$PHP_LIBDIR"`
65506:   fi
65507: 
65508: 
65509: 
65510: 
65511: 
65512:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
65513: 
65514:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
65515:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
65516:     eval "LIBPATH$unique=set"
65517: 
65518:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
65519:     LDFLAGS="$LDFLAGS -L$ai_p"
65520:     PHP_RPATHS="$PHP_RPATHS $ai_p"
65521: 
65522:   fi
65523: 
65524: 
65525: 
65526:   fi
65527: 
65528:     ODBC_OBJS="$PHP_ADABAS/$PHP_LIBDIR/odbclib.a"
65529:     ODBC_LIB="$abs_builddir/ext/odbc/libodbc_adabas.a"
65530:     $srcdir/build/shtool mkdir -f -p ext/odbc
65531:     rm -f "$ODBC_LIB"
65532:     cp "$ODBC_OBJS" "$ODBC_LIB"
65533: 
65534: 
65535:   case sqlptc in
65536:   c|c_r|pthread*) ;;
65537:   *)
65538:       LIBS="-lsqlptc $LIBS"
65539:    ;;
65540:   esac
65541: 
65542: 
65543: 
65544: 
65545:   case sqlrte in
65546:   c|c_r|pthread*) ;;
65547:   *)
65548:       LIBS="-lsqlrte $LIBS"
65549:    ;;
65550:   esac
65551: 
65552: 
65553: 
65554: 
65555:   if test -n "$abs_builddir/ext/odbc"; then
65556: 
65557:   if test "$abs_builddir/ext/odbc" != "/usr/$PHP_LIBDIR" && test "$abs_builddir/ext/odbc" != "/usr/lib"; then
65558: 
65559:   if test -z "$abs_builddir/ext/odbc" || echo "$abs_builddir/ext/odbc" | grep '^/' >/dev/null ; then
65560:     ai_p=$abs_builddir/ext/odbc
65561:   else
65562: 
65563:     ep_dir=`echo $abs_builddir/ext/odbc|$SED 's%/*[^/][^/]*/*$%%'`
65564: 
65565:     ep_realdir=`(cd "$ep_dir" && pwd)`
65566:     ai_p="$ep_realdir"/`basename "$abs_builddir/ext/odbc"`
65567:   fi
65568: 
65569: 
65570: 
65571: 
65572: 
65573:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
65574: 
65575:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
65576:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
65577:     eval "LIBPATH$unique=set"
65578: 
65579:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
65580:     LDFLAGS="$LDFLAGS -L$ai_p"
65581:     PHP_RPATHS="$PHP_RPATHS $ai_p"
65582: 
65583:   fi
65584: 
65585: 
65586: 
65587:   fi
65588: 
65589:   fi
65590: 
65591: 
65592:   case odbc_adabas in
65593:   c|c_r|pthread*) ;;
65594:   *)
65595:       LIBS="-lodbc_adabas $LIBS"
65596:    ;;
65597:   esac
65598: 
65599: 
65600: 
65601: 
65602:     ODBC_TYPE=adabas
65603:     ODBC_INCDIR=$PHP_ADABAS/incl
65604: 
65605: if ! test -f "$ODBC_INCDIR/sqlext.h"; then
65606:   as_fn_error $? "ODBC header file '$ODBC_INCDIR/sqlext.h' not found!" "$LINENO" 5
65607: fi
65608: 
65609: 
65610: $as_echo "#define HAVE_ADABAS 1" >>confdefs.h
65611: 
65612:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
65613: $as_echo "$ext_output" >&6; }
65614:   fi
65615: fi
65616: 
65617: if test -z "$ODBC_TYPE"; then
65618: 
65619: php_with_sapdb=no
65620: 
65621: 
65622: 
65623: # Check whether --with-sapdb was given.
65624: if test "${with_sapdb+set}" = set; then :
65625:   withval=$with_sapdb; PHP_SAPDB=$withval
65626: else
65627: 
65628:   PHP_SAPDB=no
65629:   test "$PHP_ENABLE_ALL" && PHP_SAPDB=$PHP_ENABLE_ALL
65630: 
65631: fi
65632: 
65633: 
65634: 
65635: ext_output="yes, shared"
65636: ext_shared=yes
65637: case $PHP_SAPDB in
65638: shared,*)
65639:   PHP_SAPDB=`echo "$PHP_SAPDB"|$SED 's/^shared,//'`
65640:   ;;
65641: shared)
65642:   PHP_SAPDB=yes
65643:   ;;
65644: no)
65645:   ext_output=no
65646:   ext_shared=no
65647:   ;;
65648: *)
65649:   ext_output=yes
65650:   ext_shared=no
65651:   ;;
65652: esac
65653: 
65654: 
65655: 
65656: 
65657: 
65658: 
65659: 
65660: 
65661:   if test "$PHP_SAPDB" != "no"; then
65662:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SAP DB support" >&5
65663: $as_echo_n "checking for SAP DB support... " >&6; }
65664:     if test "$PHP_SAPDB" = "yes"; then
65665:       PHP_SAPDB=/usr/local
65666:     fi
65667: 
65668:   if test "$PHP_SAPDB/incl" != "/usr/include"; then
65669: 
65670:   if test -z "$PHP_SAPDB/incl" || echo "$PHP_SAPDB/incl" | grep '^/' >/dev/null ; then
65671:     ai_p=$PHP_SAPDB/incl
65672:   else
65673: 
65674:     ep_dir=`echo $PHP_SAPDB/incl|$SED 's%/*[^/][^/]*/*$%%'`
65675: 
65676:     ep_realdir=`(cd "$ep_dir" && pwd)`
65677:     ai_p="$ep_realdir"/`basename "$PHP_SAPDB/incl"`
65678:   fi
65679: 
65680: 
65681: 
65682:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
65683: 
65684:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
65685:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
65686:     eval "INCLUDEPATH$unique=set"
65687: 
65688:       if test ""; then
65689:         INCLUDES="-I$ai_p $INCLUDES"
65690:       else
65691:         INCLUDES="$INCLUDES -I$ai_p"
65692:       fi
65693: 
65694:   fi
65695: 
65696:   fi
65697: 
65698: 
65699:   if test "$PHP_SAPDB/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_SAPDB/$PHP_LIBDIR" != "/usr/lib"; then
65700: 
65701:   if test -z "$PHP_SAPDB/$PHP_LIBDIR" || echo "$PHP_SAPDB/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
65702:     ai_p=$PHP_SAPDB/$PHP_LIBDIR
65703:   else
65704: 
65705:     ep_dir=`echo $PHP_SAPDB/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
65706: 
65707:     ep_realdir=`(cd "$ep_dir" && pwd)`
65708:     ai_p="$ep_realdir"/`basename "$PHP_SAPDB/$PHP_LIBDIR"`
65709:   fi
65710: 
65711: 
65712: 
65713: 
65714: 
65715:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
65716: 
65717:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
65718:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
65719:     eval "LIBPATH$unique=set"
65720: 
65721:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
65722:     LDFLAGS="$LDFLAGS -L$ai_p"
65723:     PHP_RPATHS="$PHP_RPATHS $ai_p"
65724: 
65725:   fi
65726: 
65727: 
65728: 
65729:   fi
65730: 
65731: 
65732: 
65733:   case sqlod in
65734:   c|c_r|pthread*) ;;
65735:   *)
65736:       LIBS="-lsqlod $LIBS"
65737:    ;;
65738:   esac
65739: 
65740: 
65741:     ODBC_TYPE=sapdb
65742: 
65743: $as_echo "#define HAVE_SAPDB 1" >>confdefs.h
65744: 
65745:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
65746: $as_echo "$ext_output" >&6; }
65747:   fi
65748: fi
65749: 
65750: if test -z "$ODBC_TYPE"; then
65751: 
65752: php_with_solid=no
65753: 
65754: 
65755: 
65756: # Check whether --with-solid was given.
65757: if test "${with_solid+set}" = set; then :
65758:   withval=$with_solid; PHP_SOLID=$withval
65759: else
65760: 
65761:   PHP_SOLID=no
65762:   test "$PHP_ENABLE_ALL" && PHP_SOLID=$PHP_ENABLE_ALL
65763: 
65764: fi
65765: 
65766: 
65767: 
65768: ext_output="yes, shared"
65769: ext_shared=yes
65770: case $PHP_SOLID in
65771: shared,*)
65772:   PHP_SOLID=`echo "$PHP_SOLID"|$SED 's/^shared,//'`
65773:   ;;
65774: shared)
65775:   PHP_SOLID=yes
65776:   ;;
65777: no)
65778:   ext_output=no
65779:   ext_shared=no
65780:   ;;
65781: *)
65782:   ext_output=yes
65783:   ext_shared=no
65784:   ;;
65785: esac
65786: 
65787: 
65788: 
65789: 
65790: 
65791: 
65792: 
65793: 
65794:   if test "$PHP_SOLID" != "no"; then
65795:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solid support" >&5
65796: $as_echo_n "checking for Solid support... " >&6; }
65797:     if test "$PHP_SOLID" = "yes"; then
65798:       PHP_SOLID=/usr/local/solid
65799:     fi
65800:     ODBC_INCDIR=$PHP_SOLID/include
65801:     ODBC_LIBDIR=$PHP_SOLID/$PHP_LIBDIR
65802:     ODBC_INCLUDE=-I$ODBC_INCDIR
65803:     ODBC_TYPE=solid
65804:     if test -f $ODBC_LIBDIR/soc*35.a; then
65805: 
65806: $as_echo "#define HAVE_SOLID_35 1" >>confdefs.h
65807: 
65808:     elif test -f $ODBC_LIBDIR/scl*30.a; then
65809: 
65810: $as_echo "#define HAVE_SOLID_30 1" >>confdefs.h
65811: 
65812:     elif test -f $ODBC_LIBDIR/scl*23.a; then
65813: 
65814: $as_echo "#define HAVE_SOLID 1" >>confdefs.h
65815: 
65816:     fi
65817:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
65818: $as_echo "$ext_output" >&6; }
65819: 
65820:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking Solid library file" >&5
65821: $as_echo_n "checking Solid library file... " >&6; }
65822:   ac_solid_uname_r=`uname -r 2>/dev/null`
65823:   ac_solid_uname_s=`uname -s 2>/dev/null`
65824:   case $ac_solid_uname_s in
65825:     AIX) ac_solid_os=a3x;;   # a4x for AIX4/ Solid 2.3/3.0 only
65826:     HP-UX) ac_solid_os=h9x;; # h1x for hpux11, h0x for hpux10
65827:     IRIX) ac_solid_os=irx;;  # Solid 2.3(?)/ 3.0 only
65828:     Linux)
65829:       if ldd -v /bin/sh | grep GLIBC > /dev/null; then
65830: 
65831: $as_echo "#define SS_LINUX 1" >>confdefs.h
65832: 
65833:         ac_solid_os=l2x
65834:       else
65835: 
65836: $as_echo "#define SS_LINUX 1" >>confdefs.h
65837: 
65838:         ac_solid_os=lux
65839:       fi;;
65840:     SunOS)
65841:       ac_solid_os=ssx;; # should we deal with SunOS 4?
65842:     FreeBSD)
65843:       if test `expr $ac_solid_uname_r : '\(.\)'` -gt "2"; then
65844: 
65845: $as_echo "#define SS_FBX 1" >>confdefs.h
65846: 
65847:         ac_solid_os=fex
65848:       else
65849: 
65850: $as_echo "#define SS_FBX 1" >>confdefs.h
65851: 
65852:         ac_solid_os=fbx
65853:       fi;;
65854:   esac
65855: 
65856:   if test -f $ODBC_LIBDIR/soc${ac_solid_os}35.a; then
65857:     ac_solid_version=35
65858:     ac_solid_prefix=soc
65859:   elif test -f $ODBC_LIBDIR/scl${ac_solid_os}30.a; then
65860:     ac_solid_version=30
65861:     ac_solid_prefix=scl
65862:   elif test -f $ODBC_LIBDIR/scl${ac_solid_os}23.a; then
65863:     ac_solid_version=23
65864:     ac_solid_prefix=scl
65865:   fi
65866: 
65867: #
65868: # Check for the library files, and setup the ODBC_LIBS path...
65869: #
65870: if test ! -f $ODBC_LIBDIR/lib${ac_solid_prefix}${ac_solid_os}${ac_solid_version}.so -a \
65871:   ! -f $ODBC_LIBDIR/lib${ac_solid_prefix}${ac_solid_os}${ac_solid_version}.a; then
65872:   #
65873:   # we have an error and should bail out, as we can't find the libs!
65874:   #
65875:   echo ""
65876:   echo "*********************************************************************"
65877:   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"
65878:   echo "* Please correct this by creating the following links and reconfiguring:"
65879:   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"
65880:   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"
65881:   echo "*********************************************************************"
65882: else
65883:   ODBC_LFLAGS=-L$ODBC_LIBDIR
65884:   ODBC_LIBS=-l${ac_solid_prefix}${ac_solid_os}${ac_solid_version}
65885: fi
65886: 
65887:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: \`echo $ODBC_LIBS | sed -e 's!.*/!!'\`" >&5
65888: $as_echo "\`echo $ODBC_LIBS | sed -e 's!.*/!!'\`" >&6; }
65889: 
65890:   fi
65891: fi
65892: 
65893: if test -z "$ODBC_TYPE"; then
65894: 
65895: php_with_ibm_db2=no
65896: 
65897: 
65898: 
65899: # Check whether --with-ibm-db2 was given.
65900: if test "${with_ibm_db2+set}" = set; then :
65901:   withval=$with_ibm_db2; PHP_IBM_DB2=$withval
65902: else
65903: 
65904:   PHP_IBM_DB2=no
65905:   test "$PHP_ENABLE_ALL" && PHP_IBM_DB2=$PHP_ENABLE_ALL
65906: 
65907: fi
65908: 
65909: 
65910: 
65911: ext_output="yes, shared"
65912: ext_shared=yes
65913: case $PHP_IBM_DB2 in
65914: shared,*)
65915:   PHP_IBM_DB2=`echo "$PHP_IBM_DB2"|$SED 's/^shared,//'`
65916:   ;;
65917: shared)
65918:   PHP_IBM_DB2=yes
65919:   ;;
65920: no)
65921:   ext_output=no
65922:   ext_shared=no
65923:   ;;
65924: *)
65925:   ext_output=yes
65926:   ext_shared=no
65927:   ;;
65928: esac
65929: 
65930: 
65931: 
65932: 
65933: 
65934: 
65935: 
65936: 
65937:   if test "$PHP_IBM_DB2" != "no"; then
65938:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IBM DB2 support" >&5
65939: $as_echo_n "checking for IBM DB2 support... " >&6; }
65940:     if test "$PHP_IBM_DB2" = "yes"; then
65941:       ODBC_INCDIR=/home/db2inst1/sqllib/include
65942:       ODBC_LIBDIR=/home/db2inst1/sqllib/lib
65943:     else
65944:       ODBC_INCDIR=$PHP_IBM_DB2/include
65945:       ODBC_LIBDIR=$PHP_IBM_DB2/$PHP_LIBDIR
65946:     fi
65947: 
65948: 
65949: if ! test -f "$ODBC_INCDIR/sqlcli1.h"; then
65950:   as_fn_error $? "ODBC header file '$ODBC_INCDIR/sqlcli1.h' not found!" "$LINENO" 5
65951: fi
65952: 
65953: 
65954:     ODBC_INCLUDE=-I$ODBC_INCDIR
65955:     ODBC_LFLAGS=-L$ODBC_LIBDIR
65956:     ODBC_TYPE=ibm-db2
65957:     ODBC_LIBS=-ldb2
65958: 
65959: 
65960:   old_LIBS=$LIBS
65961:   LIBS="
65962:       $ODBC_LFLAGS $ODBC_LIBS
65963:      $LIBS"
65964:   if test "$cross_compiling" = yes; then :
65965: 
65966:     LIBS=$old_LIBS
65967: 
65968: else
65969:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
65970: /* end confdefs.h.  */
65971: 
65972: 
65973:     char SQLExecute();
65974:     int main() {
65975:       SQLExecute();
65976:       return 0;
65977:     }
65978: 
65979: _ACEOF
65980: if ac_fn_c_try_run "$LINENO"; then :
65981: 
65982:     LIBS=$old_LIBS
65983: 
65984: 
65985: $as_echo "#define HAVE_IBMDB2 1" >>confdefs.h
65986: 
65987:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
65988: $as_echo "$ext_output" >&6; }
65989: 
65990: 
65991: else
65992: 
65993:     LIBS=$old_LIBS
65994: 
65995:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
65996: $as_echo "no" >&6; }
65997:       as_fn_error $? "
65998: build test failed. Please check the config.log for details.
65999: You need to source your DB2 environment before running PHP configure:
66000: # . \$IBM_DB2/db2profile
66001: " "$LINENO" 5
66002: 
66003: 
66004: fi
66005: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
66006:   conftest.$ac_objext conftest.beam conftest.$ac_ext
66007: fi
66008: 
66009: 
66010:   fi
66011: fi
66012: 
66013: if test -z "$ODBC_TYPE"; then
66014: 
66015: php_with_odbcrouter=no
66016: 
66017: 
66018: 
66019: # Check whether --with-ODBCRouter was given.
66020: if test "${with_ODBCRouter+set}" = set; then :
66021:   withval=$with_ODBCRouter; PHP_ODBCROUTER=$withval
66022: else
66023: 
66024:   PHP_ODBCROUTER=no
66025:   test "$PHP_ENABLE_ALL" && PHP_ODBCROUTER=$PHP_ENABLE_ALL
66026: 
66027: fi
66028: 
66029: 
66030: 
66031: ext_output="yes, shared"
66032: ext_shared=yes
66033: case $PHP_ODBCROUTER in
66034: shared,*)
66035:   PHP_ODBCROUTER=`echo "$PHP_ODBCROUTER"|$SED 's/^shared,//'`
66036:   ;;
66037: shared)
66038:   PHP_ODBCROUTER=yes
66039:   ;;
66040: no)
66041:   ext_output=no
66042:   ext_shared=no
66043:   ;;
66044: *)
66045:   ext_output=yes
66046:   ext_shared=no
66047:   ;;
66048: esac
66049: 
66050: 
66051: 
66052: 
66053: 
66054: 
66055: 
66056: 
66057:   if test "$PHP_ODBCROUTER" != "no"; then
66058:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ODBCRouter.com support" >&5
66059: $as_echo_n "checking for ODBCRouter.com support... " >&6; }
66060:     if test "$PHP_ODBCROUTER" = "yes"; then
66061:       PHP_ODBCROUTER=/usr
66062:     fi
66063:     ODBC_INCDIR=$PHP_ODBCROUTER/include
66064:     ODBC_LIBDIR=$PHP_ODBCROUTER/lib
66065:     ODBC_LFLAGS=-L$ODBC_LIBDIR
66066:     ODBC_INCLUDE=-I$ODBC_INCDIR
66067:     ODBC_LIBS=-lodbcsdk
66068:     ODBC_TYPE=ODBCRouter
66069: 
66070: $as_echo "#define HAVE_ODBC_ROUTER 1" >>confdefs.h
66071: 
66072:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
66073: $as_echo "$ext_output" >&6; }
66074:   fi
66075: fi
66076: 
66077: if test -z "$ODBC_TYPE"; then
66078: 
66079: php_with_empress=no
66080: 
66081: 
66082: 
66083: # Check whether --with-empress was given.
66084: if test "${with_empress+set}" = set; then :
66085:   withval=$with_empress; PHP_EMPRESS=$withval
66086: else
66087: 
66088:   PHP_EMPRESS=no
66089:   test "$PHP_ENABLE_ALL" && PHP_EMPRESS=$PHP_ENABLE_ALL
66090: 
66091: fi
66092: 
66093: 
66094: 
66095: ext_output="yes, shared"
66096: ext_shared=yes
66097: case $PHP_EMPRESS in
66098: shared,*)
66099:   PHP_EMPRESS=`echo "$PHP_EMPRESS"|$SED 's/^shared,//'`
66100:   ;;
66101: shared)
66102:   PHP_EMPRESS=yes
66103:   ;;
66104: no)
66105:   ext_output=no
66106:   ext_shared=no
66107:   ;;
66108: *)
66109:   ext_output=yes
66110:   ext_shared=no
66111:   ;;
66112: esac
66113: 
66114: 
66115: 
66116: 
66117: 
66118: 
66119: 
66120: 
66121:   if test "$PHP_EMPRESS" != "no"; then
66122:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Empress support" >&5
66123: $as_echo_n "checking for Empress support... " >&6; }
66124:     if test "$PHP_EMPRESS" = "yes"; then
66125:       ODBC_INCDIR=$EMPRESSPATH/include/odbc
66126:       ODBC_LIBDIR=$EMPRESSPATH/shlib
66127:     else
66128:       ODBC_INCDIR=$PHP_EMPRESS/include/odbc
66129:       ODBC_LIBDIR=$PHP_EMPRESS/shlib
66130:     fi
66131:     ODBC_INCLUDE=-I$ODBC_INCDIR
66132:     ODBC_LFLAGS=-L$ODBC_LIBDIR
66133:     ODBC_TYPE=empress
66134: 
66135: $as_echo "#define HAVE_EMPRESS 1" >>confdefs.h
66136: 
66137:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
66138: $as_echo "$ext_output" >&6; }
66139: 
66140:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking Empress library file" >&5
66141: $as_echo_n "checking Empress library file... " >&6; }
66142:   ODBC_LIBS=`echo $ODBC_LIBDIR/libempodbccl.so | cut -d' ' -f1`
66143:   if test ! -f $ODBC_LIBS; then
66144:     ODBC_LIBS=`echo $ODBC_LIBDIR/libempodbccl.so | cut -d' ' -f1`
66145:   fi
66146:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: \`echo $ODBC_LIBS | sed -e 's!.*/!!'\`" >&5
66147: $as_echo "\`echo $ODBC_LIBS | sed -e 's!.*/!!'\`" >&6; }
66148: 
66149:   fi
66150: fi
66151: 
66152: if test -z "$ODBC_TYPE"; then
66153: 
66154: php_with_empress_bcs=no
66155: 
66156: 
66157: 
66158: # Check whether --with-empress-bcs was given.
66159: if test "${with_empress_bcs+set}" = set; then :
66160:   withval=$with_empress_bcs; PHP_EMPRESS_BCS=$withval
66161: else
66162: 
66163:   PHP_EMPRESS_BCS=no
66164:   test "$PHP_ENABLE_ALL" && PHP_EMPRESS_BCS=$PHP_ENABLE_ALL
66165: 
66166: fi
66167: 
66168: 
66169: 
66170: ext_output="yes, shared"
66171: ext_shared=yes
66172: case $PHP_EMPRESS_BCS in
66173: shared,*)
66174:   PHP_EMPRESS_BCS=`echo "$PHP_EMPRESS_BCS"|$SED 's/^shared,//'`
66175:   ;;
66176: shared)
66177:   PHP_EMPRESS_BCS=yes
66178:   ;;
66179: no)
66180:   ext_output=no
66181:   ext_shared=no
66182:   ;;
66183: *)
66184:   ext_output=yes
66185:   ext_shared=no
66186:   ;;
66187: esac
66188: 
66189: 
66190: 
66191: 
66192: 
66193: 
66194: 
66195: 
66196:   if test "$PHP_EMPRESS_BCS" != "no"; then
66197:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Empress local access support" >&5
66198: $as_echo_n "checking for Empress local access support... " >&6; }
66199:     if test "$PHP_EMPRESS_BCS" = "yes"; then
66200:       ODBC_INCDIR=$EMPRESSPATH/include/odbc
66201:       ODBC_LIBDIR=$EMPRESSPATH/shlib
66202:     else
66203:       ODBC_INCDIR=$PHP_EMPRESS_BCS/include/odbc
66204:       ODBC_LIBDIR=$PHP_EMPRESS_BCS/shlib
66205:     fi
66206:     CC="empocc -bcs";export CC;
66207:     LD="empocc -bcs";export LD;
66208:     ODBC_INCLUDE=-I$ODBC_INCDIR
66209:     ODBC_LFLAGS=-L$ODBC_LIBDIR
66210:     LIST=`empocc -listlines -bcs -o a a.c`
66211: 
66212:     NEWLIST=
66213:     for I in $LIST
66214:     do
66215:       case $I in
66216:         $EMPRESSPATH/odbccl/lib/* | \
66217:         $EMPRESSPATH/rdbms/lib/* | \
66218:         $EMPRESSPATH/common/lib/*)
66219:               NEWLIST="$NEWLIST $I"
66220:               ;;
66221:       esac
66222:     done
66223:     ODBC_LIBS="-lempphpbcs -lms -lmscfg -lbasic -lbasic_os -lnlscstab -lnlsmsgtab -lm -ldl -lcrypt"
66224:     ODBC_TYPE=empress-bcs
66225: 
66226: $as_echo "#define HAVE_EMPRESS 1" >>confdefs.h
66227: 
66228:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
66229: $as_echo "$ext_output" >&6; }
66230: 
66231:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking Empress local access library file" >&5
66232: $as_echo_n "checking Empress local access library file... " >&6; }
66233:   ODBCBCS_LIBS=`echo $ODBC_LIBDIR/libempodbcbcs.a | cut -d' ' -f1`
66234:   if test ! -f $ODBCBCS_LIBS; then
66235:     ODBCBCS_LIBS=`echo $ODBC_LIBDIR/libempodbcbcs.a | cut -d' ' -f1`
66236:   fi
66237:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: \`echo $ODBCBCS_LIBS | sed -e 's!.*/!!'\`" >&5
66238: $as_echo "\`echo $ODBCBCS_LIBS | sed -e 's!.*/!!'\`" >&6; }
66239: 
66240:   fi
66241: fi
66242: 
66243: if test -z "$ODBC_TYPE"; then
66244: 
66245: php_with_birdstep=no
66246: 
66247: 
66248: 
66249: # Check whether --with-birdstep was given.
66250: if test "${with_birdstep+set}" = set; then :
66251:   withval=$with_birdstep; PHP_BIRDSTEP=$withval
66252: else
66253: 
66254:   PHP_BIRDSTEP=no
66255:   test "$PHP_ENABLE_ALL" && PHP_BIRDSTEP=$PHP_ENABLE_ALL
66256: 
66257: fi
66258: 
66259: 
66260: 
66261: ext_output="yes, shared"
66262: ext_shared=yes
66263: case $PHP_BIRDSTEP in
66264: shared,*)
66265:   PHP_BIRDSTEP=`echo "$PHP_BIRDSTEP"|$SED 's/^shared,//'`
66266:   ;;
66267: shared)
66268:   PHP_BIRDSTEP=yes
66269:   ;;
66270: no)
66271:   ext_output=no
66272:   ext_shared=no
66273:   ;;
66274: *)
66275:   ext_output=yes
66276:   ext_shared=no
66277:   ;;
66278: esac
66279: 
66280: 
66281: 
66282: 
66283: 
66284: 
66285: 
66286: 
66287:   if test "$PHP_BIRDSTEP" != "no"; then
66288:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Birdstep support" >&5
66289: $as_echo_n "checking for Birdstep support... " >&6; }
66290:     if test "$PHP_BIRDSTEP" = "yes"; then
66291:         ODBC_INCDIR=/usr/local/birdstep/include
66292:         ODBC_LIBDIR=/usr/local/birdstep/lib
66293:     else
66294:         ODBC_INCDIR=$PHP_BIRDSTEP/include
66295:         ODBC_LIBDIR=$PHP_BIRDSTEP/$PHP_LIBDIR
66296:     fi
66297: 
66298:     case $host_alias in
66299:       *aix*)
66300: 
66301: $as_echo "#define AIX 1" >>confdefs.h
66302: ;;
66303:       *hpux*)
66304: 
66305: $as_echo "#define HPUX 1" >>confdefs.h
66306: ;;
66307:       *linux*)
66308: 
66309: $as_echo "#define LINUX 1" >>confdefs.h
66310: ;;
66311:       *qnx*)
66312: 
66313: $as_echo "#define NEUTRINO 1" >>confdefs.h
66314: ;;
66315:       i?86-*-solaris*)
66316: 
66317: $as_echo "#define ISOLARIS 1" >>confdefs.h
66318: ;;
66319:       sparc-*-solaris*)
66320: 
66321: $as_echo "#define SOLARIS 1" >>confdefs.h
66322: ;;
66323:       *unixware*)
66324: 
66325: $as_echo "#define UNIXWARE 1" >>confdefs.h
66326: ;;
66327:     esac
66328: 
66329:     ODBC_INCLUDE=-I$ODBC_INCDIR
66330:     ODBC_TYPE=birdstep
66331:     ODBC_LFLAGS=-L$ODBC_LIBDIR
66332:     ODBC_LIBS="-lCadm -lCdict -lCenc -lCrdm -lCrpc -lCrdbc -lCrm -lCuapi -lutil"
66333: 
66334:     if test -f "$ODBC_LIBDIR/libCrdbc32.$SHLIB_SUFFIX_NAME"; then
66335:       ODBC_LIBS="-lCrdbc32 -lCadm32 -lCncp32 -lCrm32 -lCsql32 -lCdict32 -lCrdm32 -lCrpc32 -lutil"
66336:     elif test -f "$ODBC_LIBDIR/libCrdbc.$SHLIB_SUFFIX_NAME"; then
66337:       ODBC_LIBS="-lCrdbc -lCadm -lCncp -lCrm -lCsql -lCdict -lCrdm -lCrpc -lutil"
66338:     fi
66339: 
66340: 
66341: $as_echo "#define HAVE_BIRDSTEP 1" >>confdefs.h
66342: 
66343:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
66344: $as_echo "$ext_output" >&6; }
66345:   fi
66346: fi
66347: 
66348: if test -z "$ODBC_TYPE"; then
66349: 
66350: php_with_custom_odbc=no
66351: 
66352: 
66353: 
66354: # Check whether --with-custom-odbc was given.
66355: if test "${with_custom_odbc+set}" = set; then :
66356:   withval=$with_custom_odbc; PHP_CUSTOM_ODBC=$withval
66357: else
66358: 
66359:   PHP_CUSTOM_ODBC=no
66360:   test "$PHP_ENABLE_ALL" && PHP_CUSTOM_ODBC=$PHP_ENABLE_ALL
66361: 
66362: fi
66363: 
66364: 
66365: 
66366: ext_output="yes, shared"
66367: ext_shared=yes
66368: case $PHP_CUSTOM_ODBC in
66369: shared,*)
66370:   PHP_CUSTOM_ODBC=`echo "$PHP_CUSTOM_ODBC"|$SED 's/^shared,//'`
66371:   ;;
66372: shared)
66373:   PHP_CUSTOM_ODBC=yes
66374:   ;;
66375: no)
66376:   ext_output=no
66377:   ext_shared=no
66378:   ;;
66379: *)
66380:   ext_output=yes
66381:   ext_shared=no
66382:   ;;
66383: esac
66384: 
66385: 
66386: 
66387: 
66388: 
66389: 
66390: 
66391: 
66392:   if test "$PHP_CUSTOM_ODBC" != "no"; then
66393:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a custom ODBC support" >&5
66394: $as_echo_n "checking for a custom ODBC support... " >&6; }
66395:     if test "$PHP_CUSTOM_ODBC" = "yes"; then
66396:       PHP_CUSTOM_ODBC=/usr/local
66397:     fi
66398:     ODBC_INCDIR=$PHP_CUSTOM_ODBC/include
66399:     ODBC_LIBDIR=$PHP_CUSTOM_ODBC/$PHP_LIBDIR
66400:     ODBC_LFLAGS=-L$ODBC_LIBDIR
66401:     ODBC_INCLUDE=-I$ODBC_INCDIR
66402:     ODBC_LIBS=$CUSTOM_ODBC_LIBS
66403:     ODBC_TYPE=custom-odbc
66404: 
66405: $as_echo "#define HAVE_CODBC 1" >>confdefs.h
66406: 
66407:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_ouput" >&5
66408: $as_echo "$ext_ouput" >&6; }
66409:   fi
66410: fi
66411: 
66412: if test -z "$ODBC_TYPE"; then
66413: 
66414: php_with_iodbc=no
66415: 
66416: 
66417: 
66418: # Check whether --with-iodbc was given.
66419: if test "${with_iodbc+set}" = set; then :
66420:   withval=$with_iodbc; PHP_IODBC=$withval
66421: else
66422: 
66423:   PHP_IODBC=no
66424:   test "$PHP_ENABLE_ALL" && PHP_IODBC=$PHP_ENABLE_ALL
66425: 
66426: fi
66427: 
66428: 
66429: 
66430: ext_output="yes, shared"
66431: ext_shared=yes
66432: case $PHP_IODBC in
66433: shared,*)
66434:   PHP_IODBC=`echo "$PHP_IODBC"|$SED 's/^shared,//'`
66435:   ;;
66436: shared)
66437:   PHP_IODBC=yes
66438:   ;;
66439: no)
66440:   ext_output=no
66441:   ext_shared=no
66442:   ;;
66443: *)
66444:   ext_output=yes
66445:   ext_shared=no
66446:   ;;
66447: esac
66448: 
66449: 
66450: 
66451: 
66452: 
66453: 
66454: 
66455: 
66456:   if test "$PHP_IODBC" != "no"; then
66457:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iODBC support" >&5
66458: $as_echo_n "checking for iODBC support... " >&6; }
66459:     if test -z "$PKG_CONFIG"; then
66460:       # Extract the first word of "pkg-config", so it can be a program name with args.
66461: set dummy pkg-config; ac_word=$2
66462: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
66463: $as_echo_n "checking for $ac_word... " >&6; }
66464: if ${ac_cv_path_PKG_CONFIG+:} false; then :
66465:   $as_echo_n "(cached) " >&6
66466: else
66467:   case $PKG_CONFIG in
66468:   [\\/]* | ?:[\\/]*)
66469:   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
66470:   ;;
66471:   *)
66472:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
66473: for as_dir in $PATH
66474: do
66475:   IFS=$as_save_IFS
66476:   test -z "$as_dir" && as_dir=.
66477:     for ac_exec_ext in '' $ac_executable_extensions; do
66478:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
66479:     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
66480:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
66481:     break 2
66482:   fi
66483: done
66484:   done
66485: IFS=$as_save_IFS
66486: 
66487:   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
66488:   ;;
66489: esac
66490: fi
66491: PKG_CONFIG=$ac_cv_path_PKG_CONFIG
66492: if test -n "$PKG_CONFIG"; then
66493:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
66494: $as_echo "$PKG_CONFIG" >&6; }
66495: else
66496:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
66497: $as_echo "no" >&6; }
66498: fi
66499: 
66500: 
66501:     fi
66502:     if test -x "$PKG_CONFIG" && $PKG_CONFIG --exists libiodbc ; then
66503: 
66504: 
66505:   if test -n "$PHP_IODBC/$PHP_LIBDIR"; then
66506: 
66507:   if test "$PHP_IODBC/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_IODBC/$PHP_LIBDIR" != "/usr/lib"; then
66508: 
66509:   if test -z "$PHP_IODBC/$PHP_LIBDIR" || echo "$PHP_IODBC/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
66510:     ai_p=$PHP_IODBC/$PHP_LIBDIR
66511:   else
66512: 
66513:     ep_dir=`echo $PHP_IODBC/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
66514: 
66515:     ep_realdir=`(cd "$ep_dir" && pwd)`
66516:     ai_p="$ep_realdir"/`basename "$PHP_IODBC/$PHP_LIBDIR"`
66517:   fi
66518: 
66519: 
66520: 
66521: 
66522: 
66523:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
66524: 
66525:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
66526:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
66527:     eval "LIBPATH$unique=set"
66528: 
66529:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
66530:     LDFLAGS="$LDFLAGS -L$ai_p"
66531:     PHP_RPATHS="$PHP_RPATHS $ai_p"
66532: 
66533:   fi
66534: 
66535: 
66536: 
66537:   fi
66538: 
66539:   fi
66540: 
66541: 
66542:   case iodbc in
66543:   c|c_r|pthread*) ;;
66544:   *)
66545:       LIBS="-liodbc $LIBS"
66546:    ;;
66547:   esac
66548: 
66549: 
66550: 
66551: 
66552:       ODBC_TYPE=iodbc
66553:       ODBC_INCLUDE=`$PKG_CONFIG --cflags-only-I libiodbc`
66554:       ODBC_LFLAGS=`$PKG_CONFIG --libs-only-L libiodbc`
66555:       ODBC_LIBS=`$PKG_CONFIG --libs-only-l libiodbc`
66556: 
66557:   for ac_i in $ODBC_INCLUDE; do
66558:     case $ac_i in
66559:     -I*)
66560:       ac_ii=`echo $ac_i|cut -c 3-`
66561: 
66562:   if test "$ac_ii" != "/usr/include"; then
66563: 
66564:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
66565:     ai_p=$ac_ii
66566:   else
66567: 
66568:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
66569: 
66570:     ep_realdir=`(cd "$ep_dir" && pwd)`
66571:     ai_p="$ep_realdir"/`basename "$ac_ii"`
66572:   fi
66573: 
66574: 
66575: 
66576:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
66577: 
66578:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
66579:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
66580:     eval "INCLUDEPATH$unique=set"
66581: 
66582:       if test ""; then
66583:         INCLUDES="-I$ai_p $INCLUDES"
66584:       else
66585:         INCLUDES="$INCLUDES -I$ai_p"
66586:       fi
66587: 
66588:   fi
66589: 
66590:   fi
66591: 
66592:     ;;
66593:     esac
66594:   done
66595: 
66596: 
66597: $as_echo "#define HAVE_IODBC 1" >>confdefs.h
66598: 
66599: 
66600: $as_echo "#define HAVE_ODBC2 1" >>confdefs.h
66601: 
66602:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
66603: $as_echo "$ext_output" >&6; }
66604:     else
66605:       if test "$PHP_IODBC" = "yes"; then
66606:         PHP_IODBC=/usr/local
66607:       fi
66608: 
66609: 
66610:   if test -n "$PHP_IODBC/$PHP_LIBDIR"; then
66611: 
66612:   if test "$PHP_IODBC/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_IODBC/$PHP_LIBDIR" != "/usr/lib"; then
66613: 
66614:   if test -z "$PHP_IODBC/$PHP_LIBDIR" || echo "$PHP_IODBC/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
66615:     ai_p=$PHP_IODBC/$PHP_LIBDIR
66616:   else
66617: 
66618:     ep_dir=`echo $PHP_IODBC/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
66619: 
66620:     ep_realdir=`(cd "$ep_dir" && pwd)`
66621:     ai_p="$ep_realdir"/`basename "$PHP_IODBC/$PHP_LIBDIR"`
66622:   fi
66623: 
66624: 
66625: 
66626: 
66627: 
66628:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
66629: 
66630:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
66631:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
66632:     eval "LIBPATH$unique=set"
66633: 
66634:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
66635:     LDFLAGS="$LDFLAGS -L$ai_p"
66636:     PHP_RPATHS="$PHP_RPATHS $ai_p"
66637: 
66638:   fi
66639: 
66640: 
66641: 
66642:   fi
66643: 
66644:   fi
66645: 
66646: 
66647:   case iodbc in
66648:   c|c_r|pthread*) ;;
66649:   *)
66650:       LIBS="-liodbc $LIBS"
66651:    ;;
66652:   esac
66653: 
66654: 
66655: 
66656: 
66657: 
66658:   if test "$PHP_IODBC/include" != "/usr/include"; then
66659: 
66660:   if test -z "$PHP_IODBC/include" || echo "$PHP_IODBC/include" | grep '^/' >/dev/null ; then
66661:     ai_p=$PHP_IODBC/include
66662:   else
66663: 
66664:     ep_dir=`echo $PHP_IODBC/include|$SED 's%/*[^/][^/]*/*$%%'`
66665: 
66666:     ep_realdir=`(cd "$ep_dir" && pwd)`
66667:     ai_p="$ep_realdir"/`basename "$PHP_IODBC/include"`
66668:   fi
66669: 
66670: 
66671: 
66672:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
66673: 
66674:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
66675:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
66676:     eval "INCLUDEPATH$unique=set"
66677: 
66678:       if test "1"; then
66679:         INCLUDES="-I$ai_p $INCLUDES"
66680:       else
66681:         INCLUDES="$INCLUDES -I$ai_p"
66682:       fi
66683: 
66684:   fi
66685: 
66686:   fi
66687: 
66688:       ODBC_TYPE=iodbc
66689:       ODBC_INCLUDE=-I$PHP_IODBC/include
66690:       ODBC_LFLAGS=-L$PHP_IODBC/$PHP_LIBDIR
66691:       ODBC_LIBS=-liodbc
66692: 
66693: $as_echo "#define HAVE_IODBC 1" >>confdefs.h
66694: 
66695: 
66696: $as_echo "#define HAVE_ODBC2 1" >>confdefs.h
66697: 
66698:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
66699: $as_echo "$ext_output" >&6; }
66700:     fi
66701:   fi
66702: fi
66703: 
66704: if test -z "$ODBC_TYPE"; then
66705: 
66706: php_with_esoob=no
66707: 
66708: 
66709: 
66710: # Check whether --with-esoob was given.
66711: if test "${with_esoob+set}" = set; then :
66712:   withval=$with_esoob; PHP_ESOOB=$withval
66713: else
66714: 
66715:   PHP_ESOOB=no
66716:   test "$PHP_ENABLE_ALL" && PHP_ESOOB=$PHP_ENABLE_ALL
66717: 
66718: fi
66719: 
66720: 
66721: 
66722: ext_output="yes, shared"
66723: ext_shared=yes
66724: case $PHP_ESOOB in
66725: shared,*)
66726:   PHP_ESOOB=`echo "$PHP_ESOOB"|$SED 's/^shared,//'`
66727:   ;;
66728: shared)
66729:   PHP_ESOOB=yes
66730:   ;;
66731: no)
66732:   ext_output=no
66733:   ext_shared=no
66734:   ;;
66735: *)
66736:   ext_output=yes
66737:   ext_shared=no
66738:   ;;
66739: esac
66740: 
66741: 
66742: 
66743: 
66744: 
66745: 
66746: 
66747: 
66748:   if test "$PHP_ESOOB" != "no"; then
66749:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Easysoft ODBC-ODBC Bridge support" >&5
66750: $as_echo_n "checking for Easysoft ODBC-ODBC Bridge support... " >&6; }
66751:     if test "$PHP_ESOOB" = "yes"; then
66752:       PHP_ESOOB=/usr/local/easysoft/oob/client
66753:     fi
66754:     ODBC_INCDIR=$PHP_ESOOB/include
66755:     ODBC_LIBDIR=$PHP_ESOOB/$PHP_LIBDIR
66756:     ODBC_LFLAGS=-L$ODBC_LIBDIR
66757:     ODBC_INCLUDE=-I$ODBC_INCDIR
66758:     ODBC_LIBS=-lesoobclient
66759:     ODBC_TYPE=esoob
66760: 
66761: $as_echo "#define HAVE_ESOOB 1" >>confdefs.h
66762: 
66763:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
66764: $as_echo "$ext_output" >&6; }
66765:   fi
66766: fi
66767: 
66768: if test -z "$ODBC_TYPE"; then
66769: 
66770: php_with_unixodbc=no
66771: 
66772: 
66773: 
66774: # Check whether --with-unixODBC was given.
66775: if test "${with_unixODBC+set}" = set; then :
66776:   withval=$with_unixODBC; PHP_UNIXODBC=$withval
66777: else
66778: 
66779:   PHP_UNIXODBC=no
66780:   test "$PHP_ENABLE_ALL" && PHP_UNIXODBC=$PHP_ENABLE_ALL
66781: 
66782: fi
66783: 
66784: 
66785: 
66786: ext_output="yes, shared"
66787: ext_shared=yes
66788: case $PHP_UNIXODBC in
66789: shared,*)
66790:   PHP_UNIXODBC=`echo "$PHP_UNIXODBC"|$SED 's/^shared,//'`
66791:   ;;
66792: shared)
66793:   PHP_UNIXODBC=yes
66794:   ;;
66795: no)
66796:   ext_output=no
66797:   ext_shared=no
66798:   ;;
66799: *)
66800:   ext_output=yes
66801:   ext_shared=no
66802:   ;;
66803: esac
66804: 
66805: 
66806: 
66807: 
66808: 
66809: 
66810: 
66811: 
66812:   if test "$PHP_UNIXODBC" != "no"; then
66813:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unixODBC support" >&5
66814: $as_echo_n "checking for unixODBC support... " >&6; }
66815:     if test "$PHP_UNIXODBC" = "yes"; then
66816:       PHP_UNIXODBC=/usr/local
66817:     fi
66818:     ODBC_INCDIR=$PHP_UNIXODBC/include
66819:     ODBC_LIBDIR=$PHP_UNIXODBC/$PHP_LIBDIR
66820:     ODBC_LFLAGS=-L$ODBC_LIBDIR
66821:     ODBC_INCLUDE=-I$ODBC_INCDIR
66822:     ODBC_LIBS=-lodbc
66823:     ODBC_TYPE=unixODBC
66824: 
66825: if ! test -f "$ODBC_INCDIR/sqlext.h"; then
66826:   as_fn_error $? "ODBC header file '$ODBC_INCDIR/sqlext.h' not found!" "$LINENO" 5
66827: fi
66828: 
66829: 
66830: $as_echo "#define HAVE_UNIXODBC 1" >>confdefs.h
66831: 
66832:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
66833: $as_echo "$ext_output" >&6; }
66834:   fi
66835: fi
66836: 
66837: if test -z "$ODBC_TYPE"; then
66838: 
66839: php_with_dbmaker=no
66840: 
66841: 
66842: 
66843: # Check whether --with-dbmaker was given.
66844: if test "${with_dbmaker+set}" = set; then :
66845:   withval=$with_dbmaker; PHP_DBMAKER=$withval
66846: else
66847: 
66848:   PHP_DBMAKER=no
66849:   test "$PHP_ENABLE_ALL" && PHP_DBMAKER=$PHP_ENABLE_ALL
66850: 
66851: fi
66852: 
66853: 
66854: 
66855: ext_output="yes, shared"
66856: ext_shared=yes
66857: case $PHP_DBMAKER in
66858: shared,*)
66859:   PHP_DBMAKER=`echo "$PHP_DBMAKER"|$SED 's/^shared,//'`
66860:   ;;
66861: shared)
66862:   PHP_DBMAKER=yes
66863:   ;;
66864: no)
66865:   ext_output=no
66866:   ext_shared=no
66867:   ;;
66868: *)
66869:   ext_output=yes
66870:   ext_shared=no
66871:   ;;
66872: esac
66873: 
66874: 
66875: 
66876: 
66877: 
66878: 
66879: 
66880: 
66881:   if test "$PHP_DBMAKER" != "no"; then
66882:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBMaker support" >&5
66883: $as_echo_n "checking for DBMaker support... " >&6; }
66884:     if test "$PHP_DBMAKER" = "yes"; then
66885:       # find dbmaker's home directory
66886:       DBMAKER_HOME=`grep "^dbmaker:" /etc/passwd | $AWK -F: '{print $6}'`
66887: 
66888:       # check DBMaker version (from 5.0 to 2.0)
66889:       DBMAKER_VERSION=5.0
66890: 
66891:       while test ! -d $DBMAKER_HOME/$DBMAKER_VERSION -a "$DBMAKER_VERSION" != "2.9"; do
66892:         DM_VER=`echo $DBMAKER_VERSION | sed -e 's/\.//' | $AWK '{ print $1-1;}'`
66893:         MAJOR_V=`echo $DM_VER | $AWK '{ print $1/10; }'  | $AWK -F. '{ print $1; }'`
66894:         MINOR_V=`echo $DM_VER | $AWK '{ print $1%10; }'`
66895:         DBMAKER_VERSION=$MAJOR_V.$MINOR_V
66896:       done
66897: 
66898:       if test "$DBMAKER_VERSION" = "2.9"; then
66899:         PHP_DBMAKER=$DBMAKER_HOME
66900:       else
66901:         PHP_DBMAKER=$DBMAKER_HOME/$DBMAKER_VERSION
66902:       fi
66903:     fi
66904: 
66905:     ODBC_INCDIR=$PHP_DBMAKER/include
66906:     ODBC_LIBDIR=$PHP_DBMAKER/$PHP_LIBDIR
66907:     ODBC_INCLUDE=-I$ODBC_INCDIR
66908:     ODBC_LFLAGS=-L$ODBC_LIBDIR
66909:     ODBC_INCLUDE=-I$ODBC_INCDIR
66910:     ODBC_LIBS="-ldmapic -lc"
66911:     ODBC_TYPE=dbmaker
66912: 
66913: 
66914: $as_echo "#define HAVE_DBMAKER 1" >>confdefs.h
66915: 
66916: 
66917:     if test "$ext_shared" = "yes"; then
66918:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (shared)" >&5
66919: $as_echo "yes (shared)" >&6; }
66920:       ODBC_LIBS="-ldmapic -lc -lm"
66921:       ODBC_SHARED="odbc.la"
66922:     else
66923:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (static)" >&5
66924: $as_echo "yes (static)" >&6; }
66925: 
66926: 
66927:   if test -n "$ODBC_LIBDIR"; then
66928: 
66929:   if test "$ODBC_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$ODBC_LIBDIR" != "/usr/lib"; then
66930: 
66931:   if test -z "$ODBC_LIBDIR" || echo "$ODBC_LIBDIR" | grep '^/' >/dev/null ; then
66932:     ai_p=$ODBC_LIBDIR
66933:   else
66934: 
66935:     ep_dir=`echo $ODBC_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
66936: 
66937:     ep_realdir=`(cd "$ep_dir" && pwd)`
66938:     ai_p="$ep_realdir"/`basename "$ODBC_LIBDIR"`
66939:   fi
66940: 
66941: 
66942: 
66943: 
66944: 
66945:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
66946: 
66947:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
66948:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
66949:     eval "LIBPATH$unique=set"
66950: 
66951:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
66952:     LDFLAGS="$LDFLAGS -L$ai_p"
66953:     PHP_RPATHS="$PHP_RPATHS $ai_p"
66954: 
66955:   fi
66956: 
66957: 
66958: 
66959:   fi
66960: 
66961:   fi
66962: 
66963: 
66964:   case dmapic in
66965:   c|c_r|pthread*) ;;
66966:   *)
66967:       LIBS="-ldmapic $LIBS"
66968:    ;;
66969:   esac
66970: 
66971: 
66972: 
66973: 
66974: 
66975:   if test "$ODBC_INCDIR" != "/usr/include"; then
66976: 
66977:   if test -z "$ODBC_INCDIR" || echo "$ODBC_INCDIR" | grep '^/' >/dev/null ; then
66978:     ai_p=$ODBC_INCDIR
66979:   else
66980: 
66981:     ep_dir=`echo $ODBC_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`
66982: 
66983:     ep_realdir=`(cd "$ep_dir" && pwd)`
66984:     ai_p="$ep_realdir"/`basename "$ODBC_INCDIR"`
66985:   fi
66986: 
66987: 
66988: 
66989:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
66990: 
66991:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
66992:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
66993:     eval "INCLUDEPATH$unique=set"
66994: 
66995:       if test ""; then
66996:         INCLUDES="-I$ai_p $INCLUDES"
66997:       else
66998:         INCLUDES="$INCLUDES -I$ai_p"
66999:       fi
67000: 
67001:   fi
67002: 
67003:   fi
67004: 
67005:       ODBC_STATIC="libphpext_odbc.la"
67006:     fi
67007:   fi
67008: fi
67009: 
67010: if test -n "$ODBC_TYPE"; then
67011:   if test "$ODBC_TYPE" != "dbmaker"; then
67012: 
67013:   for ac_i in $ODBC_LFLAGS $ODBC_LIBS; do
67014:     case $ac_i in
67015:     -pthread)
67016:       if test "$ext_shared" = "yes"; then
67017:         ODBC_SHARED_LIBADD="$ODBC_SHARED_LIBADD -pthread"
67018:       else
67019: 
67020: 
67021:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
67022: 
67023:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
67024:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
67025:     eval "EXTRA_LDFLAGS$unique=set"
67026:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
67027:   fi
67028: 
67029:       fi
67030:     ;;
67031:     -l*)
67032:       ac_ii=`echo $ac_i|cut -c 3-`
67033: 
67034: 
67035:   case $ac_ii in
67036:   c|c_r|pthread*) ;;
67037:   *)
67038:     if test "$ext_shared" = "yes"; then
67039:         ODBC_SHARED_LIBADD="$ODBC_SHARED_LIBADD -l$ac_ii"
67040:     else
67041: 
67042: 
67043:   case $ac_ii in
67044:   c|c_r|pthread*) ;;
67045:   *)
67046:       LIBS="$LIBS -l$ac_ii"
67047:    ;;
67048:   esac
67049: 
67050: 
67051:     fi
67052:    ;;
67053:   esac
67054: 
67055: 
67056:     ;;
67057:     -L*)
67058:       ac_ii=`echo $ac_i|cut -c 3-`
67059: 
67060:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
67061: 
67062:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
67063:     ai_p=$ac_ii
67064:   else
67065: 
67066:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
67067: 
67068:     ep_realdir=`(cd "$ep_dir" && pwd)`
67069:     ai_p="$ep_realdir"/`basename "$ac_ii"`
67070:   fi
67071: 
67072: 
67073:       if test "$ext_shared" = "yes"; then
67074:         ODBC_SHARED_LIBADD="-L$ai_p $ODBC_SHARED_LIBADD"
67075:         test -n "$ld_runpath_switch" && ODBC_SHARED_LIBADD="$ld_runpath_switch$ai_p $ODBC_SHARED_LIBADD"
67076:       else
67077: 
67078: 
67079: 
67080:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
67081: 
67082:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
67083:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
67084:     eval "LIBPATH$unique=set"
67085: 
67086:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
67087:     LDFLAGS="$LDFLAGS -L$ai_p"
67088:     PHP_RPATHS="$PHP_RPATHS $ai_p"
67089: 
67090:   fi
67091: 
67092: 
67093:       fi
67094: 
67095:   fi
67096: 
67097:     ;;
67098:     esac
67099:   done
67100: 
67101:     if test "$ODBC_TYPE" != "birdstep" && test "$ODBC_TYPE" != "solid"; then
67102: 
67103: $as_echo "#define HAVE_SQLDATASOURCES 1" >>confdefs.h
67104: 
67105:     fi
67106:   fi
67107: 
67108: 
67109: $as_echo "#define HAVE_UODBC 1" >>confdefs.h
67110: 
67111: 
67112:   PHP_VAR_SUBST="$PHP_VAR_SUBST ODBC_SHARED_LIBADD"
67113: 
67114: 
67115:   PHP_VAR_SUBST="$PHP_VAR_SUBST ODBC_INCDIR"
67116: 
67117: 
67118:   PHP_VAR_SUBST="$PHP_VAR_SUBST ODBC_LIBDIR"
67119: 
67120: 
67121: 
67122:   PHP_VAR_SUBST="$PHP_VAR_SUBST ODBC_INCLUDE"
67123: 
67124: 
67125: 
67126: 
67127: 
67128:   PHP_VAR_SUBST="$PHP_VAR_SUBST ODBC_LIBS"
67129: 
67130: 
67131: 
67132: 
67133: 
67134:   PHP_VAR_SUBST="$PHP_VAR_SUBST ODBC_LFLAGS"
67135: 
67136: 
67137: 
67138: 
67139: 
67140:   PHP_VAR_SUBST="$PHP_VAR_SUBST ODBC_TYPE"
67141: 
67142: 
67143: 
67144: 
67145: 
67146:   ext_builddir=ext/odbc
67147:   ext_srcdir=$abs_srcdir/ext/odbc
67148: 
67149:   ac_extra=`echo "$ODBC_INCLUDE"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
67150: 
67151:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
67152:     PHP_ODBC_SHARED=no
67153: 
67154: 
67155:   case ext/odbc in
67156:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
67157:   /*) ac_srcdir=`echo "ext/odbc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
67158:   *) ac_srcdir="$abs_srcdir/ext/odbc/"; ac_bdir="ext/odbc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
67159:   esac
67160: 
67161: 
67162: 
67163:   b_c_pre=$php_c_pre
67164:   b_cxx_pre=$php_cxx_pre
67165:   b_c_meta=$php_c_meta
67166:   b_cxx_meta=$php_cxx_meta
67167:   b_c_post=$php_c_post
67168:   b_cxx_post=$php_cxx_post
67169:   b_lo=$php_lo
67170: 
67171: 
67172:   old_IFS=$IFS
67173:   for ac_src in php_odbc.c; do
67174: 
67175:       IFS=.
67176:       set $ac_src
67177:       ac_obj=$1
67178:       IFS=$old_IFS
67179: 
67180:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
67181: 
67182:       case $ac_src in
67183:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
67184:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
67185:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
67186:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
67187:       esac
67188: 
67189:     cat >>Makefile.objects<<EOF
67190: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
67191: 	$ac_comp
67192: EOF
67193:   done
67194: 
67195: 
67196:     EXT_STATIC="$EXT_STATIC odbc"
67197:     if test "$ext_shared" != "nocli"; then
67198:       EXT_CLI_STATIC="$EXT_CLI_STATIC odbc"
67199:     fi
67200:   else
67201:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
67202:       PHP_ODBC_SHARED=yes
67203: 
67204:   case ext/odbc in
67205:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
67206:   /*) ac_srcdir=`echo "ext/odbc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
67207:   *) ac_srcdir="$abs_srcdir/ext/odbc/"; ac_bdir="ext/odbc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
67208:   esac
67209: 
67210: 
67211: 
67212:   b_c_pre=$shared_c_pre
67213:   b_cxx_pre=$shared_cxx_pre
67214:   b_c_meta=$shared_c_meta
67215:   b_cxx_meta=$shared_cxx_meta
67216:   b_c_post=$shared_c_post
67217:   b_cxx_post=$shared_cxx_post
67218:   b_lo=$shared_lo
67219: 
67220: 
67221:   old_IFS=$IFS
67222:   for ac_src in php_odbc.c; do
67223: 
67224:       IFS=.
67225:       set $ac_src
67226:       ac_obj=$1
67227:       IFS=$old_IFS
67228: 
67229:       shared_objects_odbc="$shared_objects_odbc $ac_bdir$ac_obj.lo"
67230: 
67231:       case $ac_src in
67232:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
67233:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
67234:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
67235:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
67236:       esac
67237: 
67238:     cat >>Makefile.objects<<EOF
67239: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
67240: 	$ac_comp
67241: EOF
67242:   done
67243: 
67244:       case $host_alias in
67245:         *netware*)
67246: 
67247:   install_modules="install-modules"
67248: 
67249:   case $host_alias in
67250:     *aix*)
67251:       suffix=so
67252:       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'
67253:       ;;
67254:     *netware*)
67255:       suffix=nlm
67256:       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)'
67257:       ;;
67258:     *)
67259:       suffix=la
67260:       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)'
67261:       ;;
67262:   esac
67263: 
67264:   if test "x" = "xyes"; then
67265:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpodbc.$suffix"
67266:   else
67267:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpodbc.$suffix"
67268:   fi
67269: 
67270:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_odbc"
67271: 
67272:   cat >>Makefile.objects<<EOF
67273: \$(phplibdir)/phpodbc.$suffix: $ext_builddir/phpodbc.$suffix
67274: 	\$(LIBTOOL) --mode=install cp $ext_builddir/phpodbc.$suffix \$(phplibdir)
67275: 
67276: $ext_builddir/phpodbc.$suffix: \$(shared_objects_odbc) \$(PHPODBC_SHARED_DEPENDENCIES)
67277: 	$link_cmd
67278: 
67279: EOF
67280: 
67281:           ;;
67282:         *)
67283: 
67284:   install_modules="install-modules"
67285: 
67286:   case $host_alias in
67287:     *aix*)
67288:       suffix=so
67289:       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'
67290:       ;;
67291:     *netware*)
67292:       suffix=nlm
67293:       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)'
67294:       ;;
67295:     *)
67296:       suffix=la
67297:       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)'
67298:       ;;
67299:   esac
67300: 
67301:   if test "x" = "xyes"; then
67302:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/odbc.$suffix"
67303:   else
67304:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/odbc.$suffix"
67305:   fi
67306: 
67307:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_odbc"
67308: 
67309:   cat >>Makefile.objects<<EOF
67310: \$(phplibdir)/odbc.$suffix: $ext_builddir/odbc.$suffix
67311: 	\$(LIBTOOL) --mode=install cp $ext_builddir/odbc.$suffix \$(phplibdir)
67312: 
67313: $ext_builddir/odbc.$suffix: \$(shared_objects_odbc) \$(ODBC_SHARED_DEPENDENCIES)
67314: 	$link_cmd
67315: 
67316: EOF
67317: 
67318:           ;;
67319:       esac
67320: 
67321: cat >>confdefs.h <<_ACEOF
67322: #define COMPILE_DL_ODBC 1
67323: _ACEOF
67324: 
67325:     fi
67326:   fi
67327: 
67328:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
67329:     PHP_ODBC_SHARED=no
67330:     case "$PHP_SAPI" in
67331:       cgi|embed)
67332: 
67333: 
67334:   case ext/odbc in
67335:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
67336:   /*) ac_srcdir=`echo "ext/odbc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
67337:   *) ac_srcdir="$abs_srcdir/ext/odbc/"; ac_bdir="ext/odbc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
67338:   esac
67339: 
67340: 
67341: 
67342:   b_c_pre=$php_c_pre
67343:   b_cxx_pre=$php_cxx_pre
67344:   b_c_meta=$php_c_meta
67345:   b_cxx_meta=$php_cxx_meta
67346:   b_c_post=$php_c_post
67347:   b_cxx_post=$php_cxx_post
67348:   b_lo=$php_lo
67349: 
67350: 
67351:   old_IFS=$IFS
67352:   for ac_src in php_odbc.c; do
67353: 
67354:       IFS=.
67355:       set $ac_src
67356:       ac_obj=$1
67357:       IFS=$old_IFS
67358: 
67359:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
67360: 
67361:       case $ac_src in
67362:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
67363:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
67364:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
67365:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
67366:       esac
67367: 
67368:     cat >>Makefile.objects<<EOF
67369: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
67370: 	$ac_comp
67371: EOF
67372:   done
67373: 
67374: 
67375:         EXT_STATIC="$EXT_STATIC odbc"
67376:         ;;
67377:       *)
67378: 
67379: 
67380:   case ext/odbc in
67381:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
67382:   /*) ac_srcdir=`echo "ext/odbc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
67383:   *) ac_srcdir="$abs_srcdir/ext/odbc/"; ac_bdir="ext/odbc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
67384:   esac
67385: 
67386: 
67387: 
67388:   b_c_pre=$php_c_pre
67389:   b_cxx_pre=$php_cxx_pre
67390:   b_c_meta=$php_c_meta
67391:   b_cxx_meta=$php_cxx_meta
67392:   b_c_post=$php_c_post
67393:   b_cxx_post=$php_cxx_post
67394:   b_lo=$php_lo
67395: 
67396: 
67397:   old_IFS=$IFS
67398:   for ac_src in php_odbc.c; do
67399: 
67400:       IFS=.
67401:       set $ac_src
67402:       ac_obj=$1
67403:       IFS=$old_IFS
67404: 
67405:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
67406: 
67407:       case $ac_src in
67408:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
67409:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
67410:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
67411:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
67412:       esac
67413: 
67414:     cat >>Makefile.objects<<EOF
67415: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
67416: 	$ac_comp
67417: EOF
67418:   done
67419: 
67420: 
67421:         ;;
67422:     esac
67423:     EXT_CLI_STATIC="$EXT_CLI_STATIC odbc"
67424:   fi
67425: 
67426: 
67427:     BUILD_DIR="$BUILD_DIR $ext_builddir"
67428: 
67429: 
67430: 
67431:   if test "$ext_builddir" = "."; then
67432:     PHP_PECL_EXTENSION=odbc
67433: 
67434:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
67435: 
67436:   fi
67437: 
67438: fi
67439: 
67440: 
67441: 
67442: php_enable_pcntl=no
67443: 
67444: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable pcntl support" >&5
67445: $as_echo_n "checking whether to enable pcntl support... " >&6; }
67446: # Check whether --enable-pcntl was given.
67447: if test "${enable_pcntl+set}" = set; then :
67448:   enableval=$enable_pcntl; PHP_PCNTL=$enableval
67449: else
67450: 
67451:   PHP_PCNTL=no
67452:   test "$PHP_ENABLE_ALL" && PHP_PCNTL=$PHP_ENABLE_ALL
67453: 
67454: fi
67455: 
67456: 
67457: 
67458: ext_output="yes, shared"
67459: ext_shared=yes
67460: case $PHP_PCNTL in
67461: shared,*)
67462:   PHP_PCNTL=`echo "$PHP_PCNTL"|$SED 's/^shared,//'`
67463:   ;;
67464: shared)
67465:   PHP_PCNTL=yes
67466:   ;;
67467: no)
67468:   ext_output=no
67469:   ext_shared=no
67470:   ;;
67471: *)
67472:   ext_output=yes
67473:   ext_shared=no
67474:   ;;
67475: esac
67476: 
67477: 
67478: 
67479: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
67480: $as_echo "$ext_output" >&6; }
67481: 
67482: 
67483: 
67484: 
67485: if test "$PHP_PCNTL" != "no"; then
67486:   for ac_func in fork
67487: do :
67488:   ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork"
67489: if test "x$ac_cv_func_fork" = xyes; then :
67490:   cat >>confdefs.h <<_ACEOF
67491: #define HAVE_FORK 1
67492: _ACEOF
67493: 
67494: $as_echo "#define HAVE_FORK 1" >>confdefs.h
67495: 
67496: else
67497:    as_fn_error $? "pcntl: fork() not supported by this platform" "$LINENO" 5
67498: fi
67499: done
67500: 
67501:   for ac_func in waitpid
67502: do :
67503:   ac_fn_c_check_func "$LINENO" "waitpid" "ac_cv_func_waitpid"
67504: if test "x$ac_cv_func_waitpid" = xyes; then :
67505:   cat >>confdefs.h <<_ACEOF
67506: #define HAVE_WAITPID 1
67507: _ACEOF
67508: 
67509: $as_echo "#define HAVE_WAITPID 1" >>confdefs.h
67510: 
67511: else
67512:    as_fn_error $? "pcntl: waitpid() not supported by this platform" "$LINENO" 5
67513: fi
67514: done
67515: 
67516:   for ac_func in sigaction
67517: do :
67518:   ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
67519: if test "x$ac_cv_func_sigaction" = xyes; then :
67520:   cat >>confdefs.h <<_ACEOF
67521: #define HAVE_SIGACTION 1
67522: _ACEOF
67523: 
67524: $as_echo "#define HAVE_SIGACTION 1" >>confdefs.h
67525: 
67526: else
67527:    as_fn_error $? "pcntl: sigaction() not supported by this platform" "$LINENO" 5
67528: fi
67529: done
67530: 
67531:   for ac_func in getpriority setpriority wait3 sigprocmask sigwaitinfo sigtimedwait
67532: do :
67533:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
67534: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
67535: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
67536:   cat >>confdefs.h <<_ACEOF
67537: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
67538: _ACEOF
67539: 
67540: fi
67541: done
67542: 
67543: 
67544:   ext_builddir=ext/pcntl
67545:   ext_srcdir=$abs_srcdir/ext/pcntl
67546: 
67547:   ac_extra=
67548: 
67549:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "cli" != "cli"; then
67550:     PHP_PCNTL_SHARED=no
67551: 
67552: 
67553:   case ext/pcntl in
67554:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
67555:   /*) ac_srcdir=`echo "ext/pcntl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
67556:   *) ac_srcdir="$abs_srcdir/ext/pcntl/"; ac_bdir="ext/pcntl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
67557:   esac
67558: 
67559: 
67560: 
67561:   b_c_pre=$php_c_pre
67562:   b_cxx_pre=$php_cxx_pre
67563:   b_c_meta=$php_c_meta
67564:   b_cxx_meta=$php_cxx_meta
67565:   b_c_post=$php_c_post
67566:   b_cxx_post=$php_cxx_post
67567:   b_lo=$php_lo
67568: 
67569: 
67570:   old_IFS=$IFS
67571:   for ac_src in pcntl.c php_signal.c; do
67572: 
67573:       IFS=.
67574:       set $ac_src
67575:       ac_obj=$1
67576:       IFS=$old_IFS
67577: 
67578:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
67579: 
67580:       case $ac_src in
67581:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
67582:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
67583:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
67584:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
67585:       esac
67586: 
67587:     cat >>Makefile.objects<<EOF
67588: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
67589: 	$ac_comp
67590: EOF
67591:   done
67592: 
67593: 
67594:     EXT_STATIC="$EXT_STATIC pcntl"
67595:     if test "$ext_shared" != "nocli"; then
67596:       EXT_CLI_STATIC="$EXT_CLI_STATIC pcntl"
67597:     fi
67598:   else
67599:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
67600:       PHP_PCNTL_SHARED=yes
67601: 
67602:   case ext/pcntl in
67603:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
67604:   /*) ac_srcdir=`echo "ext/pcntl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
67605:   *) ac_srcdir="$abs_srcdir/ext/pcntl/"; ac_bdir="ext/pcntl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
67606:   esac
67607: 
67608: 
67609: 
67610:   b_c_pre=$shared_c_pre
67611:   b_cxx_pre=$shared_cxx_pre
67612:   b_c_meta=$shared_c_meta
67613:   b_cxx_meta=$shared_cxx_meta
67614:   b_c_post=$shared_c_post
67615:   b_cxx_post=$shared_cxx_post
67616:   b_lo=$shared_lo
67617: 
67618: 
67619:   old_IFS=$IFS
67620:   for ac_src in pcntl.c php_signal.c; do
67621: 
67622:       IFS=.
67623:       set $ac_src
67624:       ac_obj=$1
67625:       IFS=$old_IFS
67626: 
67627:       shared_objects_pcntl="$shared_objects_pcntl $ac_bdir$ac_obj.lo"
67628: 
67629:       case $ac_src in
67630:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
67631:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
67632:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
67633:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
67634:       esac
67635: 
67636:     cat >>Makefile.objects<<EOF
67637: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
67638: 	$ac_comp
67639: EOF
67640:   done
67641: 
67642:       case $host_alias in
67643:         *netware*)
67644: 
67645:   install_modules="install-modules"
67646: 
67647:   case $host_alias in
67648:     *aix*)
67649:       suffix=so
67650:       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'
67651:       ;;
67652:     *netware*)
67653:       suffix=nlm
67654:       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)'
67655:       ;;
67656:     *)
67657:       suffix=la
67658:       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)'
67659:       ;;
67660:   esac
67661: 
67662:   if test "x" = "xyes"; then
67663:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phppcntl.$suffix"
67664:   else
67665:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phppcntl.$suffix"
67666:   fi
67667: 
67668:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pcntl"
67669: 
67670:   cat >>Makefile.objects<<EOF
67671: \$(phplibdir)/phppcntl.$suffix: $ext_builddir/phppcntl.$suffix
67672: 	\$(LIBTOOL) --mode=install cp $ext_builddir/phppcntl.$suffix \$(phplibdir)
67673: 
67674: $ext_builddir/phppcntl.$suffix: \$(shared_objects_pcntl) \$(PHPPCNTL_SHARED_DEPENDENCIES)
67675: 	$link_cmd
67676: 
67677: EOF
67678: 
67679:           ;;
67680:         *)
67681: 
67682:   install_modules="install-modules"
67683: 
67684:   case $host_alias in
67685:     *aix*)
67686:       suffix=so
67687:       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'
67688:       ;;
67689:     *netware*)
67690:       suffix=nlm
67691:       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)'
67692:       ;;
67693:     *)
67694:       suffix=la
67695:       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)'
67696:       ;;
67697:   esac
67698: 
67699:   if test "x" = "xyes"; then
67700:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/pcntl.$suffix"
67701:   else
67702:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/pcntl.$suffix"
67703:   fi
67704: 
67705:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pcntl"
67706: 
67707:   cat >>Makefile.objects<<EOF
67708: \$(phplibdir)/pcntl.$suffix: $ext_builddir/pcntl.$suffix
67709: 	\$(LIBTOOL) --mode=install cp $ext_builddir/pcntl.$suffix \$(phplibdir)
67710: 
67711: $ext_builddir/pcntl.$suffix: \$(shared_objects_pcntl) \$(PCNTL_SHARED_DEPENDENCIES)
67712: 	$link_cmd
67713: 
67714: EOF
67715: 
67716:           ;;
67717:       esac
67718: 
67719: cat >>confdefs.h <<_ACEOF
67720: #define COMPILE_DL_PCNTL 1
67721: _ACEOF
67722: 
67723:     fi
67724:   fi
67725: 
67726:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "cli" = "cli"; then
67727:     PHP_PCNTL_SHARED=no
67728:     case "$PHP_SAPI" in
67729:       cgi|embed)
67730: 
67731: 
67732:   case ext/pcntl in
67733:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
67734:   /*) ac_srcdir=`echo "ext/pcntl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
67735:   *) ac_srcdir="$abs_srcdir/ext/pcntl/"; ac_bdir="ext/pcntl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
67736:   esac
67737: 
67738: 
67739: 
67740:   b_c_pre=$php_c_pre
67741:   b_cxx_pre=$php_cxx_pre
67742:   b_c_meta=$php_c_meta
67743:   b_cxx_meta=$php_cxx_meta
67744:   b_c_post=$php_c_post
67745:   b_cxx_post=$php_cxx_post
67746:   b_lo=$php_lo
67747: 
67748: 
67749:   old_IFS=$IFS
67750:   for ac_src in pcntl.c php_signal.c; do
67751: 
67752:       IFS=.
67753:       set $ac_src
67754:       ac_obj=$1
67755:       IFS=$old_IFS
67756: 
67757:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
67758: 
67759:       case $ac_src in
67760:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
67761:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
67762:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
67763:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
67764:       esac
67765: 
67766:     cat >>Makefile.objects<<EOF
67767: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
67768: 	$ac_comp
67769: EOF
67770:   done
67771: 
67772: 
67773:         EXT_STATIC="$EXT_STATIC pcntl"
67774:         ;;
67775:       *)
67776: 
67777: 
67778:   case ext/pcntl in
67779:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
67780:   /*) ac_srcdir=`echo "ext/pcntl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
67781:   *) ac_srcdir="$abs_srcdir/ext/pcntl/"; ac_bdir="ext/pcntl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
67782:   esac
67783: 
67784: 
67785: 
67786:   b_c_pre=$php_c_pre
67787:   b_cxx_pre=$php_cxx_pre
67788:   b_c_meta=$php_c_meta
67789:   b_cxx_meta=$php_cxx_meta
67790:   b_c_post=$php_c_post
67791:   b_cxx_post=$php_cxx_post
67792:   b_lo=$php_lo
67793: 
67794: 
67795:   old_IFS=$IFS
67796:   for ac_src in pcntl.c php_signal.c; do
67797: 
67798:       IFS=.
67799:       set $ac_src
67800:       ac_obj=$1
67801:       IFS=$old_IFS
67802: 
67803:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
67804: 
67805:       case $ac_src in
67806:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
67807:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
67808:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
67809:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
67810:       esac
67811: 
67812:     cat >>Makefile.objects<<EOF
67813: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
67814: 	$ac_comp
67815: EOF
67816:   done
67817: 
67818: 
67819:         ;;
67820:     esac
67821:     EXT_CLI_STATIC="$EXT_CLI_STATIC pcntl"
67822:   fi
67823: 
67824: 
67825:     BUILD_DIR="$BUILD_DIR $ext_builddir"
67826: 
67827: 
67828: 
67829:   if test "$ext_builddir" = "."; then
67830:     PHP_PECL_EXTENSION=pcntl
67831: 
67832:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
67833: 
67834:   fi
67835: 
67836: fi
67837: 
67838: 
67839: 
67840: 
67841: 
67842: php_enable_pdo=yes
67843: 
67844: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable PDO support" >&5
67845: $as_echo_n "checking whether to enable PDO support... " >&6; }
67846: # Check whether --enable-pdo was given.
67847: if test "${enable_pdo+set}" = set; then :
67848:   enableval=$enable_pdo; PHP_PDO=$enableval
67849: else
67850: 
67851:   PHP_PDO=yes
67852:   test "$PHP_ENABLE_ALL" && PHP_PDO=$PHP_ENABLE_ALL
67853: 
67854: fi
67855: 
67856: 
67857: 
67858: ext_output="yes, shared"
67859: ext_shared=yes
67860: case $PHP_PDO in
67861: shared,*)
67862:   PHP_PDO=`echo "$PHP_PDO"|$SED 's/^shared,//'`
67863:   ;;
67864: shared)
67865:   PHP_PDO=yes
67866:   ;;
67867: no)
67868:   ext_output=no
67869:   ext_shared=no
67870:   ;;
67871: *)
67872:   ext_output=yes
67873:   ext_shared=no
67874:   ;;
67875: esac
67876: 
67877: 
67878: 
67879: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
67880: $as_echo "$ext_output" >&6; }
67881: 
67882: 
67883: 
67884: 
67885: if test "$PHP_PDO" != "no"; then
67886: 
67887:     PHP_PDO=yes
67888: 
67889: 
67890:   pdo_running_under_pear=0
67891:   case `pwd` in
67892:     /var/tmp/pear-build-*)
67893:       pdo_running_under_pear=1
67894:       ;;
67895:   esac
67896: 
67897:   if test "$pdo_running_under_pear$PHP_PEAR_VERSION" = "1"; then
67898:     # we're running in an environment that smells like pear,
67899:     # and the PHP_PEAR_VERSION env var is not set.  That implies
67900:     # that we're running under a slightly broken pear installer
67901:     as_fn_error $? "
67902: PDO requires that you upgrade your PEAR installer tools. Please
67903: do so now by running:
67904: 
67905:   % sudo pear upgrade pear
67906: 
67907: or by manually downloading and installing PEAR version 1.3.5 or higher.
67908: 
67909: Once you've upgraded, please re-try your PDO install.
67910:     " "$LINENO" 5
67911:   fi
67912: 
67913: 
67914:   if test "$ext_shared" = "yes" ; then
67915:     case $host_alias in
67916:       *darwin*)
67917:           as_fn_error $? "
67918: Due to the way that loadable modules work on OSX/Darwin, you need to
67919: compile the PDO package statically into the PHP core.
67920: 
67921: Please follow the instructions at: http://netevil.org/node.php?nid=202
67922: for more detail on this issue.
67923:           " "$LINENO" 5
67924:         ext_shared=no
67925:         ;;
67926:     esac
67927:   fi
67928: 
67929:   ext_builddir=ext/pdo
67930:   ext_srcdir=$abs_srcdir/ext/pdo
67931: 
67932:   ac_extra=
67933: 
67934:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
67935:     PHP_PDO_SHARED=no
67936: 
67937: 
67938:   case ext/pdo in
67939:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
67940:   /*) ac_srcdir=`echo "ext/pdo"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
67941:   *) ac_srcdir="$abs_srcdir/ext/pdo/"; ac_bdir="ext/pdo/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
67942:   esac
67943: 
67944: 
67945: 
67946:   b_c_pre=$php_c_pre
67947:   b_cxx_pre=$php_cxx_pre
67948:   b_c_meta=$php_c_meta
67949:   b_cxx_meta=$php_cxx_meta
67950:   b_c_post=$php_c_post
67951:   b_cxx_post=$php_cxx_post
67952:   b_lo=$php_lo
67953: 
67954: 
67955:   old_IFS=$IFS
67956:   for ac_src in pdo.c pdo_dbh.c pdo_stmt.c pdo_sql_parser.c pdo_sqlstate.c; do
67957: 
67958:       IFS=.
67959:       set $ac_src
67960:       ac_obj=$1
67961:       IFS=$old_IFS
67962: 
67963:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
67964: 
67965:       case $ac_src in
67966:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
67967:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
67968:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
67969:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
67970:       esac
67971: 
67972:     cat >>Makefile.objects<<EOF
67973: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
67974: 	$ac_comp
67975: EOF
67976:   done
67977: 
67978: 
67979:     EXT_STATIC="$EXT_STATIC pdo"
67980:     if test "$ext_shared" != "nocli"; then
67981:       EXT_CLI_STATIC="$EXT_CLI_STATIC pdo"
67982:     fi
67983:   else
67984:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
67985:       PHP_PDO_SHARED=yes
67986: 
67987:   case ext/pdo in
67988:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
67989:   /*) ac_srcdir=`echo "ext/pdo"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
67990:   *) ac_srcdir="$abs_srcdir/ext/pdo/"; ac_bdir="ext/pdo/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
67991:   esac
67992: 
67993: 
67994: 
67995:   b_c_pre=$shared_c_pre
67996:   b_cxx_pre=$shared_cxx_pre
67997:   b_c_meta=$shared_c_meta
67998:   b_cxx_meta=$shared_cxx_meta
67999:   b_c_post=$shared_c_post
68000:   b_cxx_post=$shared_cxx_post
68001:   b_lo=$shared_lo
68002: 
68003: 
68004:   old_IFS=$IFS
68005:   for ac_src in pdo.c pdo_dbh.c pdo_stmt.c pdo_sql_parser.c pdo_sqlstate.c; do
68006: 
68007:       IFS=.
68008:       set $ac_src
68009:       ac_obj=$1
68010:       IFS=$old_IFS
68011: 
68012:       shared_objects_pdo="$shared_objects_pdo $ac_bdir$ac_obj.lo"
68013: 
68014:       case $ac_src in
68015:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
68016:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
68017:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
68018:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
68019:       esac
68020: 
68021:     cat >>Makefile.objects<<EOF
68022: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
68023: 	$ac_comp
68024: EOF
68025:   done
68026: 
68027:       case $host_alias in
68028:         *netware*)
68029: 
68030:   install_modules="install-modules"
68031: 
68032:   case $host_alias in
68033:     *aix*)
68034:       suffix=so
68035:       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'
68036:       ;;
68037:     *netware*)
68038:       suffix=nlm
68039:       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)'
68040:       ;;
68041:     *)
68042:       suffix=la
68043:       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)'
68044:       ;;
68045:   esac
68046: 
68047:   if test "x" = "xyes"; then
68048:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phppdo.$suffix"
68049:   else
68050:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phppdo.$suffix"
68051:   fi
68052: 
68053:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo"
68054: 
68055:   cat >>Makefile.objects<<EOF
68056: \$(phplibdir)/phppdo.$suffix: $ext_builddir/phppdo.$suffix
68057: 	\$(LIBTOOL) --mode=install cp $ext_builddir/phppdo.$suffix \$(phplibdir)
68058: 
68059: $ext_builddir/phppdo.$suffix: \$(shared_objects_pdo) \$(PHPPDO_SHARED_DEPENDENCIES)
68060: 	$link_cmd
68061: 
68062: EOF
68063: 
68064:           ;;
68065:         *)
68066: 
68067:   install_modules="install-modules"
68068: 
68069:   case $host_alias in
68070:     *aix*)
68071:       suffix=so
68072:       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'
68073:       ;;
68074:     *netware*)
68075:       suffix=nlm
68076:       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)'
68077:       ;;
68078:     *)
68079:       suffix=la
68080:       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)'
68081:       ;;
68082:   esac
68083: 
68084:   if test "x" = "xyes"; then
68085:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/pdo.$suffix"
68086:   else
68087:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/pdo.$suffix"
68088:   fi
68089: 
68090:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo"
68091: 
68092:   cat >>Makefile.objects<<EOF
68093: \$(phplibdir)/pdo.$suffix: $ext_builddir/pdo.$suffix
68094: 	\$(LIBTOOL) --mode=install cp $ext_builddir/pdo.$suffix \$(phplibdir)
68095: 
68096: $ext_builddir/pdo.$suffix: \$(shared_objects_pdo) \$(PDO_SHARED_DEPENDENCIES)
68097: 	$link_cmd
68098: 
68099: EOF
68100: 
68101:           ;;
68102:       esac
68103: 
68104: cat >>confdefs.h <<_ACEOF
68105: #define COMPILE_DL_PDO 1
68106: _ACEOF
68107: 
68108:     fi
68109:   fi
68110: 
68111:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
68112:     PHP_PDO_SHARED=no
68113:     case "$PHP_SAPI" in
68114:       cgi|embed)
68115: 
68116: 
68117:   case ext/pdo in
68118:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
68119:   /*) ac_srcdir=`echo "ext/pdo"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
68120:   *) ac_srcdir="$abs_srcdir/ext/pdo/"; ac_bdir="ext/pdo/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
68121:   esac
68122: 
68123: 
68124: 
68125:   b_c_pre=$php_c_pre
68126:   b_cxx_pre=$php_cxx_pre
68127:   b_c_meta=$php_c_meta
68128:   b_cxx_meta=$php_cxx_meta
68129:   b_c_post=$php_c_post
68130:   b_cxx_post=$php_cxx_post
68131:   b_lo=$php_lo
68132: 
68133: 
68134:   old_IFS=$IFS
68135:   for ac_src in pdo.c pdo_dbh.c pdo_stmt.c pdo_sql_parser.c pdo_sqlstate.c; do
68136: 
68137:       IFS=.
68138:       set $ac_src
68139:       ac_obj=$1
68140:       IFS=$old_IFS
68141: 
68142:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
68143: 
68144:       case $ac_src in
68145:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
68146:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
68147:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
68148:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
68149:       esac
68150: 
68151:     cat >>Makefile.objects<<EOF
68152: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
68153: 	$ac_comp
68154: EOF
68155:   done
68156: 
68157: 
68158:         EXT_STATIC="$EXT_STATIC pdo"
68159:         ;;
68160:       *)
68161: 
68162: 
68163:   case ext/pdo in
68164:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
68165:   /*) ac_srcdir=`echo "ext/pdo"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
68166:   *) ac_srcdir="$abs_srcdir/ext/pdo/"; ac_bdir="ext/pdo/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
68167:   esac
68168: 
68169: 
68170: 
68171:   b_c_pre=$php_c_pre
68172:   b_cxx_pre=$php_cxx_pre
68173:   b_c_meta=$php_c_meta
68174:   b_cxx_meta=$php_cxx_meta
68175:   b_c_post=$php_c_post
68176:   b_cxx_post=$php_cxx_post
68177:   b_lo=$php_lo
68178: 
68179: 
68180:   old_IFS=$IFS
68181:   for ac_src in pdo.c pdo_dbh.c pdo_stmt.c pdo_sql_parser.c pdo_sqlstate.c; do
68182: 
68183:       IFS=.
68184:       set $ac_src
68185:       ac_obj=$1
68186:       IFS=$old_IFS
68187: 
68188:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
68189: 
68190:       case $ac_src in
68191:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
68192:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
68193:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
68194:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
68195:       esac
68196: 
68197:     cat >>Makefile.objects<<EOF
68198: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
68199: 	$ac_comp
68200: EOF
68201:   done
68202: 
68203: 
68204:         ;;
68205:     esac
68206:     EXT_CLI_STATIC="$EXT_CLI_STATIC pdo"
68207:   fi
68208: 
68209: 
68210:     BUILD_DIR="$BUILD_DIR $ext_builddir"
68211: 
68212: 
68213: 
68214:   if test "$ext_builddir" = "."; then
68215:     PHP_PECL_EXTENSION=pdo
68216: 
68217:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
68218: 
68219:   fi
68220: 
68221: 
68222: 
68223:   am_i_shared=$PHP_PDO_SHARED
68224:   is_it_shared=$PHP_SPL_SHARED
68225:   is_it_enabled=$PHP_SPL
68226:   if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
68227:     as_fn_error $? "
68228: You've configured extension pdo to build statically, but it
68229: depends on extension spl, which you've configured to build shared.
68230: You either need to build pdo shared or build spl statically for the
68231: build to be successful.
68232: " "$LINENO" 5
68233:   fi
68234:   if test "x$is_it_enabled" = "xno" && test "xtrue" != "xtrue"; then
68235:     as_fn_error $? "
68236: You've configured extension pdo, which depends on extension spl,
68237: but you've either not enabled spl, or have disabled it.
68238: " "$LINENO" 5
68239:   fi
68240: 
68241: 
68242: 
68243: 
68244: 
68245: 
68246:     header_path=ext/pdo
68247:     for header_file in php_pdo.h php_pdo_driver.h; do
68248:       hp_hf="$header_path/$header_file"
68249: 
68250: 
68251:   unique=`echo $hp_hf|$SED 's/[^a-zA-Z0-9]/_/g'`
68252: 
68253:   cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
68254:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
68255:     eval "INSTALLHEADERS$unique=set"
68256: 
68257:         INSTALL_HEADERS="$INSTALL_HEADERS $hp_hf"
68258: 
68259:   fi
68260: 
68261:     done
68262: 
68263: 
68264: 
68265: 
68266: 
68267:   src=$ext_srcdir/Makefile.frag
68268:   ac_srcdir=$ext_srcdir
68269:   ac_builddir=$ext_builddir
68270:   test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src  >> Makefile.fragments
68271: 
68272: fi
68273: 
68274: 
68275: 
68276: 
68277: php_with_pdo_dblib=no
68278: 
68279: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO_DBLIB support via FreeTDS" >&5
68280: $as_echo_n "checking for PDO_DBLIB support via FreeTDS... " >&6; }
68281: 
68282: # Check whether --with-pdo-dblib was given.
68283: if test "${with_pdo_dblib+set}" = set; then :
68284:   withval=$with_pdo_dblib; PHP_PDO_DBLIB=$withval
68285: else
68286: 
68287:   PHP_PDO_DBLIB=no
68288:   test "$PHP_ENABLE_ALL" && PHP_PDO_DBLIB=$PHP_ENABLE_ALL
68289: 
68290: fi
68291: 
68292: 
68293: 
68294: ext_output="yes, shared"
68295: ext_shared=yes
68296: case $PHP_PDO_DBLIB in
68297: shared,*)
68298:   PHP_PDO_DBLIB=`echo "$PHP_PDO_DBLIB"|$SED 's/^shared,//'`
68299:   ;;
68300: shared)
68301:   PHP_PDO_DBLIB=yes
68302:   ;;
68303: no)
68304:   ext_output=no
68305:   ext_shared=no
68306:   ;;
68307: *)
68308:   ext_output=yes
68309:   ext_shared=no
68310:   ;;
68311: esac
68312: 
68313: 
68314: 
68315: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
68316: $as_echo "$ext_output" >&6; }
68317: 
68318: 
68319: 
68320: 
68321: if test "$PHP_PDO_DBLIB" != "no"; then
68322: 
68323:   if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then
68324:     as_fn_error $? "PDO is not enabled! Add --enable-pdo to your configure line." "$LINENO" 5
68325:   fi
68326: 
68327:   if test "$PHP_PDO_DBLIB" = "yes"; then
68328: 
68329:     for i in /usr/local /usr; do
68330:       if test -f $i/include/sybdb.h; then
68331:         PDO_FREETDS_INSTALLATION_DIR=$i
68332:         PDO_FREETDS_INCLUDE_DIR=$i/include
68333:         break
68334:       elif test -f $i/include/freetds/sybdb.h; then
68335:         PDO_FREETDS_INSTALLATION_DIR=$i
68336:         PDO_FREETDS_INCLUDE_DIR=$i/include/freetds
68337:         break;
68338:       fi
68339:     done
68340: 
68341:     if test -z "$PDO_FREETDS_INSTALLATION_DIR"; then
68342:       as_fn_error $? "Cannot find FreeTDS in known installation directories" "$LINENO" 5
68343:     fi
68344: 
68345:   elif test "$PHP_PDO_DBLIB" != "no"; then
68346: 
68347:     if test -f $PHP_PDO_DBLIB/include/sybdb.h; then
68348:       PDO_FREETDS_INSTALLATION_DIR=$PHP_PDO_DBLIB
68349:       PDO_FREETDS_INCLUDE_DIR=$PHP_PDO_DBLIB/include
68350:     elif test -f $PHP_PDO_DBLIB/include/freetds/sybdb.h; then
68351:       PDO_FREETDS_INSTALLATION_DIR=$PHP_PDO_DBLIB
68352:       PDO_FREETDS_INCLUDE_DIR=$PHP_PDO_DBLIB/include/freetds
68353:     else
68354:       as_fn_error $? "Directory $PHP_PDO_DBLIB is not a FreeTDS installation directory" "$LINENO" 5
68355:     fi
68356:   fi
68357: 
68358:   if test "x$PHP_LIBDIR" = "x" ; then
68359:     PHP_LIBDIR=lib
68360:   fi
68361: 
68362:   if test ! -r "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.a" && test ! -r "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.so"; then
68363:      as_fn_error $? "Could not find $PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.a|so" "$LINENO" 5
68364:   fi
68365: 
68366: 
68367:   if test "$PDO_FREETDS_INCLUDE_DIR" != "/usr/include"; then
68368: 
68369:   if test -z "$PDO_FREETDS_INCLUDE_DIR" || echo "$PDO_FREETDS_INCLUDE_DIR" | grep '^/' >/dev/null ; then
68370:     ai_p=$PDO_FREETDS_INCLUDE_DIR
68371:   else
68372: 
68373:     ep_dir=`echo $PDO_FREETDS_INCLUDE_DIR|$SED 's%/*[^/][^/]*/*$%%'`
68374: 
68375:     ep_realdir=`(cd "$ep_dir" && pwd)`
68376:     ai_p="$ep_realdir"/`basename "$PDO_FREETDS_INCLUDE_DIR"`
68377:   fi
68378: 
68379: 
68380: 
68381:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
68382: 
68383:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
68384:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
68385:     eval "INCLUDEPATH$unique=set"
68386: 
68387:       if test ""; then
68388:         INCLUDES="-I$ai_p $INCLUDES"
68389:       else
68390:         INCLUDES="$INCLUDES -I$ai_p"
68391:       fi
68392: 
68393:   fi
68394: 
68395:   fi
68396: 
68397: 
68398: 
68399:   if test "$ext_shared" = "yes"; then
68400:     PDO_DBLIB_SHARED_LIBADD="-lsybdb $PDO_DBLIB_SHARED_LIBADD"
68401:     if test -n "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR"; then
68402: 
68403:   if test "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" != "/usr/lib"; then
68404: 
68405:   if test -z "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" || echo "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
68406:     ai_p=$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR
68407:   else
68408: 
68409:     ep_dir=`echo $PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
68410: 
68411:     ep_realdir=`(cd "$ep_dir" && pwd)`
68412:     ai_p="$ep_realdir"/`basename "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR"`
68413:   fi
68414: 
68415: 
68416:       if test "$ext_shared" = "yes"; then
68417:         PDO_DBLIB_SHARED_LIBADD="-L$ai_p $PDO_DBLIB_SHARED_LIBADD"
68418:         test -n "$ld_runpath_switch" && PDO_DBLIB_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_DBLIB_SHARED_LIBADD"
68419:       else
68420: 
68421: 
68422: 
68423:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
68424: 
68425:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
68426:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
68427:     eval "LIBPATH$unique=set"
68428: 
68429:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
68430:     LDFLAGS="$LDFLAGS -L$ai_p"
68431:     PHP_RPATHS="$PHP_RPATHS $ai_p"
68432: 
68433:   fi
68434: 
68435: 
68436:       fi
68437: 
68438:   fi
68439: 
68440:     fi
68441:   else
68442: 
68443: 
68444:   if test -n "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR"; then
68445: 
68446:   if test "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" != "/usr/lib"; then
68447: 
68448:   if test -z "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" || echo "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
68449:     ai_p=$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR
68450:   else
68451: 
68452:     ep_dir=`echo $PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
68453: 
68454:     ep_realdir=`(cd "$ep_dir" && pwd)`
68455:     ai_p="$ep_realdir"/`basename "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR"`
68456:   fi
68457: 
68458: 
68459: 
68460: 
68461: 
68462:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
68463: 
68464:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
68465:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
68466:     eval "LIBPATH$unique=set"
68467: 
68468:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
68469:     LDFLAGS="$LDFLAGS -L$ai_p"
68470:     PHP_RPATHS="$PHP_RPATHS $ai_p"
68471: 
68472:   fi
68473: 
68474: 
68475: 
68476:   fi
68477: 
68478:   fi
68479: 
68480: 
68481:   case sybdb in
68482:   c|c_r|pthread*) ;;
68483:   *)
68484:       LIBS="-lsybdb $LIBS"
68485:    ;;
68486:   esac
68487: 
68488: 
68489: 
68490: 
68491:   fi
68492: 
68493: 
68494: 
68495: 
68496: 
68497:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5
68498: $as_echo_n "checking for PDO includes... " >&6; }
68499: if ${pdo_cv_inc_path+:} false; then :
68500:   $as_echo_n "(cached) " >&6
68501: else
68502: 
68503:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5
68504: $as_echo_n "checking for PDO includes... " >&6; }
68505:     if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then
68506:       pdo_cv_inc_path=$abs_srcdir/ext
68507:     elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then
68508:       pdo_cv_inc_path=$abs_srcdir/ext
68509:     elif test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then
68510:       pdo_cv_inc_path=$prefix/include/php/ext
68511:     fi
68512: 
68513: fi
68514: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pdo_cv_inc_path" >&5
68515: $as_echo "$pdo_cv_inc_path" >&6; }
68516:   if test -n "$pdo_cv_inc_path"; then
68517: :
68518:   else
68519: as_fn_error $? "Cannot find php_pdo_driver.h." "$LINENO" 5
68520:   fi
68521: 
68522: 
68523: 
68524:   PDO_DBLIB_DEFS="-DPDO_DBLIB_FLAVOUR=\\\"freetds\\\""
68525: 
68526:   ext_builddir=ext/pdo_dblib
68527:   ext_srcdir=$abs_srcdir/ext/pdo_dblib
68528: 
68529:   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`
68530: 
68531:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
68532:     PHP_PDO_DBLIB_SHARED=no
68533: 
68534: 
68535:   case ext/pdo_dblib in
68536:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
68537:   /*) ac_srcdir=`echo "ext/pdo_dblib"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
68538:   *) ac_srcdir="$abs_srcdir/ext/pdo_dblib/"; ac_bdir="ext/pdo_dblib/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
68539:   esac
68540: 
68541: 
68542: 
68543:   b_c_pre=$php_c_pre
68544:   b_cxx_pre=$php_cxx_pre
68545:   b_c_meta=$php_c_meta
68546:   b_cxx_meta=$php_cxx_meta
68547:   b_c_post=$php_c_post
68548:   b_cxx_post=$php_cxx_post
68549:   b_lo=$php_lo
68550: 
68551: 
68552:   old_IFS=$IFS
68553:   for ac_src in pdo_dblib.c dblib_driver.c dblib_stmt.c; do
68554: 
68555:       IFS=.
68556:       set $ac_src
68557:       ac_obj=$1
68558:       IFS=$old_IFS
68559: 
68560:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
68561: 
68562:       case $ac_src in
68563:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
68564:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
68565:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
68566:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
68567:       esac
68568: 
68569:     cat >>Makefile.objects<<EOF
68570: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
68571: 	$ac_comp
68572: EOF
68573:   done
68574: 
68575: 
68576:     EXT_STATIC="$EXT_STATIC pdo_dblib"
68577:     if test "$ext_shared" != "nocli"; then
68578:       EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_dblib"
68579:     fi
68580:   else
68581:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
68582:       PHP_PDO_DBLIB_SHARED=yes
68583: 
68584:   case ext/pdo_dblib in
68585:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
68586:   /*) ac_srcdir=`echo "ext/pdo_dblib"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
68587:   *) ac_srcdir="$abs_srcdir/ext/pdo_dblib/"; ac_bdir="ext/pdo_dblib/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
68588:   esac
68589: 
68590: 
68591: 
68592:   b_c_pre=$shared_c_pre
68593:   b_cxx_pre=$shared_cxx_pre
68594:   b_c_meta=$shared_c_meta
68595:   b_cxx_meta=$shared_cxx_meta
68596:   b_c_post=$shared_c_post
68597:   b_cxx_post=$shared_cxx_post
68598:   b_lo=$shared_lo
68599: 
68600: 
68601:   old_IFS=$IFS
68602:   for ac_src in pdo_dblib.c dblib_driver.c dblib_stmt.c; do
68603: 
68604:       IFS=.
68605:       set $ac_src
68606:       ac_obj=$1
68607:       IFS=$old_IFS
68608: 
68609:       shared_objects_pdo_dblib="$shared_objects_pdo_dblib $ac_bdir$ac_obj.lo"
68610: 
68611:       case $ac_src in
68612:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
68613:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
68614:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
68615:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
68616:       esac
68617: 
68618:     cat >>Makefile.objects<<EOF
68619: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
68620: 	$ac_comp
68621: EOF
68622:   done
68623: 
68624:       case $host_alias in
68625:         *netware*)
68626: 
68627:   install_modules="install-modules"
68628: 
68629:   case $host_alias in
68630:     *aix*)
68631:       suffix=so
68632:       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'
68633:       ;;
68634:     *netware*)
68635:       suffix=nlm
68636:       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)'
68637:       ;;
68638:     *)
68639:       suffix=la
68640:       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)'
68641:       ;;
68642:   esac
68643: 
68644:   if test "x" = "xyes"; then
68645:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phppdo_dblib.$suffix"
68646:   else
68647:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phppdo_dblib.$suffix"
68648:   fi
68649: 
68650:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo_dblib"
68651: 
68652:   cat >>Makefile.objects<<EOF
68653: \$(phplibdir)/phppdo_dblib.$suffix: $ext_builddir/phppdo_dblib.$suffix
68654: 	\$(LIBTOOL) --mode=install cp $ext_builddir/phppdo_dblib.$suffix \$(phplibdir)
68655: 
68656: $ext_builddir/phppdo_dblib.$suffix: \$(shared_objects_pdo_dblib) \$(PHPPDO_DBLIB_SHARED_DEPENDENCIES)
68657: 	$link_cmd
68658: 
68659: EOF
68660: 
68661:           ;;
68662:         *)
68663: 
68664:   install_modules="install-modules"
68665: 
68666:   case $host_alias in
68667:     *aix*)
68668:       suffix=so
68669:       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'
68670:       ;;
68671:     *netware*)
68672:       suffix=nlm
68673:       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)'
68674:       ;;
68675:     *)
68676:       suffix=la
68677:       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)'
68678:       ;;
68679:   esac
68680: 
68681:   if test "x" = "xyes"; then
68682:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/pdo_dblib.$suffix"
68683:   else
68684:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/pdo_dblib.$suffix"
68685:   fi
68686: 
68687:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo_dblib"
68688: 
68689:   cat >>Makefile.objects<<EOF
68690: \$(phplibdir)/pdo_dblib.$suffix: $ext_builddir/pdo_dblib.$suffix
68691: 	\$(LIBTOOL) --mode=install cp $ext_builddir/pdo_dblib.$suffix \$(phplibdir)
68692: 
68693: $ext_builddir/pdo_dblib.$suffix: \$(shared_objects_pdo_dblib) \$(PDO_DBLIB_SHARED_DEPENDENCIES)
68694: 	$link_cmd
68695: 
68696: EOF
68697: 
68698:           ;;
68699:       esac
68700: 
68701: cat >>confdefs.h <<_ACEOF
68702: #define COMPILE_DL_PDO_DBLIB 1
68703: _ACEOF
68704: 
68705:     fi
68706:   fi
68707: 
68708:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
68709:     PHP_PDO_DBLIB_SHARED=no
68710:     case "$PHP_SAPI" in
68711:       cgi|embed)
68712: 
68713: 
68714:   case ext/pdo_dblib in
68715:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
68716:   /*) ac_srcdir=`echo "ext/pdo_dblib"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
68717:   *) ac_srcdir="$abs_srcdir/ext/pdo_dblib/"; ac_bdir="ext/pdo_dblib/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
68718:   esac
68719: 
68720: 
68721: 
68722:   b_c_pre=$php_c_pre
68723:   b_cxx_pre=$php_cxx_pre
68724:   b_c_meta=$php_c_meta
68725:   b_cxx_meta=$php_cxx_meta
68726:   b_c_post=$php_c_post
68727:   b_cxx_post=$php_cxx_post
68728:   b_lo=$php_lo
68729: 
68730: 
68731:   old_IFS=$IFS
68732:   for ac_src in pdo_dblib.c dblib_driver.c dblib_stmt.c; do
68733: 
68734:       IFS=.
68735:       set $ac_src
68736:       ac_obj=$1
68737:       IFS=$old_IFS
68738: 
68739:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
68740: 
68741:       case $ac_src in
68742:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
68743:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
68744:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
68745:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
68746:       esac
68747: 
68748:     cat >>Makefile.objects<<EOF
68749: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
68750: 	$ac_comp
68751: EOF
68752:   done
68753: 
68754: 
68755:         EXT_STATIC="$EXT_STATIC pdo_dblib"
68756:         ;;
68757:       *)
68758: 
68759: 
68760:   case ext/pdo_dblib in
68761:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
68762:   /*) ac_srcdir=`echo "ext/pdo_dblib"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
68763:   *) ac_srcdir="$abs_srcdir/ext/pdo_dblib/"; ac_bdir="ext/pdo_dblib/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
68764:   esac
68765: 
68766: 
68767: 
68768:   b_c_pre=$php_c_pre
68769:   b_cxx_pre=$php_cxx_pre
68770:   b_c_meta=$php_c_meta
68771:   b_cxx_meta=$php_cxx_meta
68772:   b_c_post=$php_c_post
68773:   b_cxx_post=$php_cxx_post
68774:   b_lo=$php_lo
68775: 
68776: 
68777:   old_IFS=$IFS
68778:   for ac_src in pdo_dblib.c dblib_driver.c dblib_stmt.c; do
68779: 
68780:       IFS=.
68781:       set $ac_src
68782:       ac_obj=$1
68783:       IFS=$old_IFS
68784: 
68785:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
68786: 
68787:       case $ac_src in
68788:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
68789:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
68790:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
68791:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
68792:       esac
68793: 
68794:     cat >>Makefile.objects<<EOF
68795: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
68796: 	$ac_comp
68797: EOF
68798:   done
68799: 
68800: 
68801:         ;;
68802:     esac
68803:     EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_dblib"
68804:   fi
68805: 
68806: 
68807:     BUILD_DIR="$BUILD_DIR $ext_builddir"
68808: 
68809: 
68810: 
68811:   if test "$ext_builddir" = "."; then
68812:     PHP_PECL_EXTENSION=pdo_dblib
68813: 
68814:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
68815: 
68816:   fi
68817: 
68818:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_addr in -ldnet_stub" >&5
68819: $as_echo_n "checking for dnet_addr in -ldnet_stub... " >&6; }
68820: if ${ac_cv_lib_dnet_stub_dnet_addr+:} false; then :
68821:   $as_echo_n "(cached) " >&6
68822: else
68823:   ac_check_lib_save_LIBS=$LIBS
68824: LIBS="-ldnet_stub  $LIBS"
68825: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
68826: /* end confdefs.h.  */
68827: 
68828: /* Override any GCC internal prototype to avoid an error.
68829:    Use char because int might match the return type of a GCC
68830:    builtin and then its argument prototype would still apply.  */
68831: #ifdef __cplusplus
68832: extern "C"
68833: #endif
68834: char dnet_addr ();
68835: int
68836: main ()
68837: {
68838: return dnet_addr ();
68839:   ;
68840:   return 0;
68841: }
68842: _ACEOF
68843: if ac_fn_c_try_link "$LINENO"; then :
68844:   ac_cv_lib_dnet_stub_dnet_addr=yes
68845: else
68846:   ac_cv_lib_dnet_stub_dnet_addr=no
68847: fi
68848: rm -f core conftest.err conftest.$ac_objext \
68849:     conftest$ac_exeext conftest.$ac_ext
68850: LIBS=$ac_check_lib_save_LIBS
68851: fi
68852: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_addr" >&5
68853: $as_echo "$ac_cv_lib_dnet_stub_dnet_addr" >&6; }
68854: if test "x$ac_cv_lib_dnet_stub_dnet_addr" = xyes; then :
68855: 
68856: 
68857:   if test "$ext_shared" = "yes"; then
68858:     PDO_DBLIB_SHARED_LIBADD="-ldnet_stub $PDO_DBLIB_SHARED_LIBADD"
68859:     if test -n ""; then
68860: 
68861:   if test "" != "/usr/$PHP_LIBDIR" && test "" != "/usr/lib"; then
68862: 
68863:   if test -z "" || echo "" | grep '^/' >/dev/null ; then
68864:     ai_p=
68865:   else
68866: 
68867:     ep_dir=`echo |$SED 's%/*[^/][^/]*/*$%%'`
68868: 
68869:     ep_realdir=`(cd "$ep_dir" && pwd)`
68870:     ai_p="$ep_realdir"/`basename ""`
68871:   fi
68872: 
68873: 
68874:       if test "$ext_shared" = "yes"; then
68875:         PDO_DBLIB_SHARED_LIBADD="-L$ai_p $PDO_DBLIB_SHARED_LIBADD"
68876:         test -n "$ld_runpath_switch" && PDO_DBLIB_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_DBLIB_SHARED_LIBADD"
68877:       else
68878: 
68879: 
68880: 
68881:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
68882: 
68883:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
68884:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
68885:     eval "LIBPATH$unique=set"
68886: 
68887:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
68888:     LDFLAGS="$LDFLAGS -L$ai_p"
68889:     PHP_RPATHS="$PHP_RPATHS $ai_p"
68890: 
68891:   fi
68892: 
68893: 
68894:       fi
68895: 
68896:   fi
68897: 
68898:     fi
68899:   else
68900: 
68901: 
68902:   if test -n ""; then
68903: 
68904:   if test "" != "/usr/$PHP_LIBDIR" && test "" != "/usr/lib"; then
68905: 
68906:   if test -z "" || echo "" | grep '^/' >/dev/null ; then
68907:     ai_p=
68908:   else
68909: 
68910:     ep_dir=`echo |$SED 's%/*[^/][^/]*/*$%%'`
68911: 
68912:     ep_realdir=`(cd "$ep_dir" && pwd)`
68913:     ai_p="$ep_realdir"/`basename ""`
68914:   fi
68915: 
68916: 
68917: 
68918: 
68919: 
68920:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
68921: 
68922:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
68923:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
68924:     eval "LIBPATH$unique=set"
68925: 
68926:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
68927:     LDFLAGS="$LDFLAGS -L$ai_p"
68928:     PHP_RPATHS="$PHP_RPATHS $ai_p"
68929: 
68930:   fi
68931: 
68932: 
68933: 
68934:   fi
68935: 
68936:   fi
68937: 
68938: 
68939:   case dnet_stub in
68940:   c|c_r|pthread*) ;;
68941:   *)
68942:       LIBS="-ldnet_stub $LIBS"
68943:    ;;
68944:   esac
68945: 
68946: 
68947: 
68948: 
68949:   fi
68950: 
68951: 
68952: 
68953: $as_echo "#define HAVE_LIBDNET_STUB 1" >>confdefs.h
68954: 
68955: 
68956: fi
68957: 
68958: 
68959: $as_echo "#define HAVE_PDO_DBLIB 1" >>confdefs.h
68960: 
68961: 
68962: $as_echo "#define HAVE_FREETDS 1" >>confdefs.h
68963: 
68964: 
68965:   PHP_VAR_SUBST="$PHP_VAR_SUBST PDO_DBLIB_SHARED_LIBADD"
68966: 
68967: 
68968: 
68969: 
68970:   am_i_shared=$PHP_PDO_DBLIB_SHARED
68971:   is_it_shared=$PHP_PDO_SHARED
68972:   is_it_enabled=$PHP_PDO
68973:   if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
68974:     as_fn_error $? "
68975: You've configured extension pdo_dblib to build statically, but it
68976: depends on extension pdo, which you've configured to build shared.
68977: You either need to build pdo_dblib shared or build pdo statically for the
68978: build to be successful.
68979: " "$LINENO" 5
68980:   fi
68981:   if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then
68982:     as_fn_error $? "
68983: You've configured extension pdo_dblib, which depends on extension pdo,
68984: but you've either not enabled pdo, or have disabled it.
68985: " "$LINENO" 5
68986:   fi
68987: 
68988: 
68989: fi
68990: 
68991: 
68992: php_with_pdo_firebird=no
68993: 
68994: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Firebird support for PDO" >&5
68995: $as_echo_n "checking for Firebird support for PDO... " >&6; }
68996: 
68997: # Check whether --with-pdo-firebird was given.
68998: if test "${with_pdo_firebird+set}" = set; then :
68999:   withval=$with_pdo_firebird; PHP_PDO_FIREBIRD=$withval
69000: else
69001: 
69002:   PHP_PDO_FIREBIRD=no
69003:   test "$PHP_ENABLE_ALL" && PHP_PDO_FIREBIRD=$PHP_ENABLE_ALL
69004: 
69005: fi
69006: 
69007: 
69008: 
69009: ext_output="yes, shared"
69010: ext_shared=yes
69011: case $PHP_PDO_FIREBIRD in
69012: shared,*)
69013:   PHP_PDO_FIREBIRD=`echo "$PHP_PDO_FIREBIRD"|$SED 's/^shared,//'`
69014:   ;;
69015: shared)
69016:   PHP_PDO_FIREBIRD=yes
69017:   ;;
69018: no)
69019:   ext_output=no
69020:   ext_shared=no
69021:   ;;
69022: *)
69023:   ext_output=yes
69024:   ext_shared=no
69025:   ;;
69026: esac
69027: 
69028: 
69029: 
69030: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
69031: $as_echo "$ext_output" >&6; }
69032: 
69033: 
69034: 
69035: 
69036: if test "$PHP_PDO_FIREBIRD" != "no"; then
69037: 
69038:   if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then
69039:     as_fn_error $? "PDO is not enabled! Add --enable-pdo to your configure line." "$LINENO" 5
69040:   fi
69041: 
69042:   if test "$PHP_PDO_FIREBIRD" = "yes"; then
69043:     FIREBIRD_INCDIR=
69044:     FIREBIRD_LIBDIR=
69045:     FIREBIRD_LIBDIR_FLAG=
69046:   else
69047:     FIREBIRD_INCDIR=$PHP_PDO_FIREBIRD/include
69048:     FIREBIRD_LIBDIR=$PHP_PDO_FIREBIRD/$PHP_LIBDIR
69049:     FIREBIRD_LIBDIR_FLAG=-L$FIREBIRD_LIBDIR
69050:   fi
69051: 
69052: 
69053:   save_old_LDFLAGS=$LDFLAGS
69054:   ac_stuff="
69055:     $FIREBIRD_LIBDIR_FLAG
69056:   "
69057: 
69058:   save_ext_shared=$ext_shared
69059:   ext_shared=yes
69060: 
69061:   for ac_i in $ac_stuff; do
69062:     case $ac_i in
69063:     -pthread)
69064:       if test "$ext_shared" = "yes"; then
69065:         LDFLAGS="$LDFLAGS -pthread"
69066:       else
69067: 
69068: 
69069:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
69070: 
69071:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
69072:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
69073:     eval "EXTRA_LDFLAGS$unique=set"
69074:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
69075:   fi
69076: 
69077:       fi
69078:     ;;
69079:     -l*)
69080:       ac_ii=`echo $ac_i|cut -c 3-`
69081: 
69082: 
69083:   case $ac_ii in
69084:   c|c_r|pthread*) ;;
69085:   *)
69086:     if test "$ext_shared" = "yes"; then
69087:         LDFLAGS="$LDFLAGS -l$ac_ii"
69088:     else
69089: 
69090: 
69091:   case $ac_ii in
69092:   c|c_r|pthread*) ;;
69093:   *)
69094:       LIBS="$LIBS -l$ac_ii"
69095:    ;;
69096:   esac
69097: 
69098: 
69099:     fi
69100:    ;;
69101:   esac
69102: 
69103: 
69104:     ;;
69105:     -L*)
69106:       ac_ii=`echo $ac_i|cut -c 3-`
69107: 
69108:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
69109: 
69110:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
69111:     ai_p=$ac_ii
69112:   else
69113: 
69114:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
69115: 
69116:     ep_realdir=`(cd "$ep_dir" && pwd)`
69117:     ai_p="$ep_realdir"/`basename "$ac_ii"`
69118:   fi
69119: 
69120: 
69121:       if test "$ext_shared" = "yes"; then
69122:         LDFLAGS="-L$ai_p $LDFLAGS"
69123:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
69124:       else
69125: 
69126: 
69127: 
69128:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
69129: 
69130:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
69131:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
69132:     eval "LIBPATH$unique=set"
69133: 
69134:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
69135:     LDFLAGS="$LDFLAGS -L$ai_p"
69136:     PHP_RPATHS="$PHP_RPATHS $ai_p"
69137: 
69138:   fi
69139: 
69140: 
69141:       fi
69142: 
69143:   fi
69144: 
69145:     ;;
69146:     esac
69147:   done
69148: 
69149:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isc_detach_database in -lfbclient" >&5
69150: $as_echo_n "checking for isc_detach_database in -lfbclient... " >&6; }
69151: if ${ac_cv_lib_fbclient_isc_detach_database+:} false; then :
69152:   $as_echo_n "(cached) " >&6
69153: else
69154:   ac_check_lib_save_LIBS=$LIBS
69155: LIBS="-lfbclient  $LIBS"
69156: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
69157: /* end confdefs.h.  */
69158: 
69159: /* Override any GCC internal prototype to avoid an error.
69160:    Use char because int might match the return type of a GCC
69161:    builtin and then its argument prototype would still apply.  */
69162: #ifdef __cplusplus
69163: extern "C"
69164: #endif
69165: char isc_detach_database ();
69166: int
69167: main ()
69168: {
69169: return isc_detach_database ();
69170:   ;
69171:   return 0;
69172: }
69173: _ACEOF
69174: if ac_fn_c_try_link "$LINENO"; then :
69175:   ac_cv_lib_fbclient_isc_detach_database=yes
69176: else
69177:   ac_cv_lib_fbclient_isc_detach_database=no
69178: fi
69179: rm -f core conftest.err conftest.$ac_objext \
69180:     conftest$ac_exeext conftest.$ac_ext
69181: LIBS=$ac_check_lib_save_LIBS
69182: fi
69183: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fbclient_isc_detach_database" >&5
69184: $as_echo "$ac_cv_lib_fbclient_isc_detach_database" >&6; }
69185: if test "x$ac_cv_lib_fbclient_isc_detach_database" = xyes; then :
69186: 
69187:     LDFLAGS=$save_old_LDFLAGS
69188:     ext_shared=$save_ext_shared
69189: 
69190:     FIREBIRD_LIBNAME=fbclient
69191: 
69192: 
69193: else
69194: 
69195:     LDFLAGS=$save_old_LDFLAGS
69196:     ext_shared=$save_ext_shared
69197:     unset ac_cv_lib_fbclient_isc_detach_database
69198: 
69199: 
69200:   save_old_LDFLAGS=$LDFLAGS
69201:   ac_stuff="
69202:       $FIREBIRD_LIBDIR_FLAG
69203:     "
69204: 
69205:   save_ext_shared=$ext_shared
69206:   ext_shared=yes
69207: 
69208:   for ac_i in $ac_stuff; do
69209:     case $ac_i in
69210:     -pthread)
69211:       if test "$ext_shared" = "yes"; then
69212:         LDFLAGS="$LDFLAGS -pthread"
69213:       else
69214: 
69215: 
69216:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
69217: 
69218:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
69219:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
69220:     eval "EXTRA_LDFLAGS$unique=set"
69221:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
69222:   fi
69223: 
69224:       fi
69225:     ;;
69226:     -l*)
69227:       ac_ii=`echo $ac_i|cut -c 3-`
69228: 
69229: 
69230:   case $ac_ii in
69231:   c|c_r|pthread*) ;;
69232:   *)
69233:     if test "$ext_shared" = "yes"; then
69234:         LDFLAGS="$LDFLAGS -l$ac_ii"
69235:     else
69236: 
69237: 
69238:   case $ac_ii in
69239:   c|c_r|pthread*) ;;
69240:   *)
69241:       LIBS="$LIBS -l$ac_ii"
69242:    ;;
69243:   esac
69244: 
69245: 
69246:     fi
69247:    ;;
69248:   esac
69249: 
69250: 
69251:     ;;
69252:     -L*)
69253:       ac_ii=`echo $ac_i|cut -c 3-`
69254: 
69255:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
69256: 
69257:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
69258:     ai_p=$ac_ii
69259:   else
69260: 
69261:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
69262: 
69263:     ep_realdir=`(cd "$ep_dir" && pwd)`
69264:     ai_p="$ep_realdir"/`basename "$ac_ii"`
69265:   fi
69266: 
69267: 
69268:       if test "$ext_shared" = "yes"; then
69269:         LDFLAGS="-L$ai_p $LDFLAGS"
69270:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
69271:       else
69272: 
69273: 
69274: 
69275:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
69276: 
69277:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
69278:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
69279:     eval "LIBPATH$unique=set"
69280: 
69281:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
69282:     LDFLAGS="$LDFLAGS -L$ai_p"
69283:     PHP_RPATHS="$PHP_RPATHS $ai_p"
69284: 
69285:   fi
69286: 
69287: 
69288:       fi
69289: 
69290:   fi
69291: 
69292:     ;;
69293:     esac
69294:   done
69295: 
69296:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isc_detach_database in -lgds" >&5
69297: $as_echo_n "checking for isc_detach_database in -lgds... " >&6; }
69298: if ${ac_cv_lib_gds_isc_detach_database+:} false; then :
69299:   $as_echo_n "(cached) " >&6
69300: else
69301:   ac_check_lib_save_LIBS=$LIBS
69302: LIBS="-lgds  $LIBS"
69303: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
69304: /* end confdefs.h.  */
69305: 
69306: /* Override any GCC internal prototype to avoid an error.
69307:    Use char because int might match the return type of a GCC
69308:    builtin and then its argument prototype would still apply.  */
69309: #ifdef __cplusplus
69310: extern "C"
69311: #endif
69312: char isc_detach_database ();
69313: int
69314: main ()
69315: {
69316: return isc_detach_database ();
69317:   ;
69318:   return 0;
69319: }
69320: _ACEOF
69321: if ac_fn_c_try_link "$LINENO"; then :
69322:   ac_cv_lib_gds_isc_detach_database=yes
69323: else
69324:   ac_cv_lib_gds_isc_detach_database=no
69325: fi
69326: rm -f core conftest.err conftest.$ac_objext \
69327:     conftest$ac_exeext conftest.$ac_ext
69328: LIBS=$ac_check_lib_save_LIBS
69329: fi
69330: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gds_isc_detach_database" >&5
69331: $as_echo "$ac_cv_lib_gds_isc_detach_database" >&6; }
69332: if test "x$ac_cv_lib_gds_isc_detach_database" = xyes; then :
69333: 
69334:     LDFLAGS=$save_old_LDFLAGS
69335:     ext_shared=$save_ext_shared
69336: 
69337:       FIREBIRD_LIBNAME=gds
69338: 
69339: 
69340: else
69341: 
69342:     LDFLAGS=$save_old_LDFLAGS
69343:     ext_shared=$save_ext_shared
69344:     unset ac_cv_lib_gds_isc_detach_database
69345: 
69346: 
69347:   save_old_LDFLAGS=$LDFLAGS
69348:   ac_stuff="
69349:         $FIREBIRD_LIBDIR_FLAG
69350:       "
69351: 
69352:   save_ext_shared=$ext_shared
69353:   ext_shared=yes
69354: 
69355:   for ac_i in $ac_stuff; do
69356:     case $ac_i in
69357:     -pthread)
69358:       if test "$ext_shared" = "yes"; then
69359:         LDFLAGS="$LDFLAGS -pthread"
69360:       else
69361: 
69362: 
69363:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
69364: 
69365:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
69366:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
69367:     eval "EXTRA_LDFLAGS$unique=set"
69368:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
69369:   fi
69370: 
69371:       fi
69372:     ;;
69373:     -l*)
69374:       ac_ii=`echo $ac_i|cut -c 3-`
69375: 
69376: 
69377:   case $ac_ii in
69378:   c|c_r|pthread*) ;;
69379:   *)
69380:     if test "$ext_shared" = "yes"; then
69381:         LDFLAGS="$LDFLAGS -l$ac_ii"
69382:     else
69383: 
69384: 
69385:   case $ac_ii in
69386:   c|c_r|pthread*) ;;
69387:   *)
69388:       LIBS="$LIBS -l$ac_ii"
69389:    ;;
69390:   esac
69391: 
69392: 
69393:     fi
69394:    ;;
69395:   esac
69396: 
69397: 
69398:     ;;
69399:     -L*)
69400:       ac_ii=`echo $ac_i|cut -c 3-`
69401: 
69402:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
69403: 
69404:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
69405:     ai_p=$ac_ii
69406:   else
69407: 
69408:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
69409: 
69410:     ep_realdir=`(cd "$ep_dir" && pwd)`
69411:     ai_p="$ep_realdir"/`basename "$ac_ii"`
69412:   fi
69413: 
69414: 
69415:       if test "$ext_shared" = "yes"; then
69416:         LDFLAGS="-L$ai_p $LDFLAGS"
69417:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
69418:       else
69419: 
69420: 
69421: 
69422:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
69423: 
69424:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
69425:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
69426:     eval "LIBPATH$unique=set"
69427: 
69428:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
69429:     LDFLAGS="$LDFLAGS -L$ai_p"
69430:     PHP_RPATHS="$PHP_RPATHS $ai_p"
69431: 
69432:   fi
69433: 
69434: 
69435:       fi
69436: 
69437:   fi
69438: 
69439:     ;;
69440:     esac
69441:   done
69442: 
69443:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isc_detach_database in -lib_util" >&5
69444: $as_echo_n "checking for isc_detach_database in -lib_util... " >&6; }
69445: if ${ac_cv_lib_ib_util_isc_detach_database+:} false; then :
69446:   $as_echo_n "(cached) " >&6
69447: else
69448:   ac_check_lib_save_LIBS=$LIBS
69449: LIBS="-lib_util  $LIBS"
69450: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
69451: /* end confdefs.h.  */
69452: 
69453: /* Override any GCC internal prototype to avoid an error.
69454:    Use char because int might match the return type of a GCC
69455:    builtin and then its argument prototype would still apply.  */
69456: #ifdef __cplusplus
69457: extern "C"
69458: #endif
69459: char isc_detach_database ();
69460: int
69461: main ()
69462: {
69463: return isc_detach_database ();
69464:   ;
69465:   return 0;
69466: }
69467: _ACEOF
69468: if ac_fn_c_try_link "$LINENO"; then :
69469:   ac_cv_lib_ib_util_isc_detach_database=yes
69470: else
69471:   ac_cv_lib_ib_util_isc_detach_database=no
69472: fi
69473: rm -f core conftest.err conftest.$ac_objext \
69474:     conftest$ac_exeext conftest.$ac_ext
69475: LIBS=$ac_check_lib_save_LIBS
69476: fi
69477: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ib_util_isc_detach_database" >&5
69478: $as_echo "$ac_cv_lib_ib_util_isc_detach_database" >&6; }
69479: if test "x$ac_cv_lib_ib_util_isc_detach_database" = xyes; then :
69480: 
69481:     LDFLAGS=$save_old_LDFLAGS
69482:     ext_shared=$save_ext_shared
69483: 
69484:         FIREBIRD_LIBNAME=ib_util
69485: 
69486: 
69487: else
69488: 
69489:     LDFLAGS=$save_old_LDFLAGS
69490:     ext_shared=$save_ext_shared
69491:     unset ac_cv_lib_ib_util_isc_detach_database
69492: 
69493:         as_fn_error $? "libfbclient, libgds or libib_util not found! Check config.log for more information." "$LINENO" 5
69494: 
69495: 
69496: fi
69497: 
69498: 
69499: 
69500: fi
69501: 
69502: 
69503: 
69504: fi
69505: 
69506: 
69507: 
69508:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5
69509: $as_echo_n "checking for PDO includes... " >&6; }
69510: if ${pdo_cv_inc_path+:} false; then :
69511:   $as_echo_n "(cached) " >&6
69512: else
69513: 
69514:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5
69515: $as_echo_n "checking for PDO includes... " >&6; }
69516:     if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then
69517:       pdo_cv_inc_path=$abs_srcdir/ext
69518:     elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then
69519:       pdo_cv_inc_path=$abs_srcdir/ext
69520:     elif test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then
69521:       pdo_cv_inc_path=$prefix/include/php/ext
69522:     fi
69523: 
69524: fi
69525: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pdo_cv_inc_path" >&5
69526: $as_echo "$pdo_cv_inc_path" >&6; }
69527:   if test -n "$pdo_cv_inc_path"; then
69528: :
69529:   else
69530: as_fn_error $? "Cannot find php_pdo_driver.h." "$LINENO" 5
69531:   fi
69532: 
69533: 
69534: 
69535: 
69536:   if test "$ext_shared" = "yes"; then
69537:     PDO_FIREBIRD_SHARED_LIBADD="-l$FIREBIRD_LIBNAME $PDO_FIREBIRD_SHARED_LIBADD"
69538:     if test -n "$FIREBIRD_LIBDIR"; then
69539: 
69540:   if test "$FIREBIRD_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$FIREBIRD_LIBDIR" != "/usr/lib"; then
69541: 
69542:   if test -z "$FIREBIRD_LIBDIR" || echo "$FIREBIRD_LIBDIR" | grep '^/' >/dev/null ; then
69543:     ai_p=$FIREBIRD_LIBDIR
69544:   else
69545: 
69546:     ep_dir=`echo $FIREBIRD_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
69547: 
69548:     ep_realdir=`(cd "$ep_dir" && pwd)`
69549:     ai_p="$ep_realdir"/`basename "$FIREBIRD_LIBDIR"`
69550:   fi
69551: 
69552: 
69553:       if test "$ext_shared" = "yes"; then
69554:         PDO_FIREBIRD_SHARED_LIBADD="-L$ai_p $PDO_FIREBIRD_SHARED_LIBADD"
69555:         test -n "$ld_runpath_switch" && PDO_FIREBIRD_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_FIREBIRD_SHARED_LIBADD"
69556:       else
69557: 
69558: 
69559: 
69560:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
69561: 
69562:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
69563:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
69564:     eval "LIBPATH$unique=set"
69565: 
69566:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
69567:     LDFLAGS="$LDFLAGS -L$ai_p"
69568:     PHP_RPATHS="$PHP_RPATHS $ai_p"
69569: 
69570:   fi
69571: 
69572: 
69573:       fi
69574: 
69575:   fi
69576: 
69577:     fi
69578:   else
69579: 
69580: 
69581:   if test -n "$FIREBIRD_LIBDIR"; then
69582: 
69583:   if test "$FIREBIRD_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$FIREBIRD_LIBDIR" != "/usr/lib"; then
69584: 
69585:   if test -z "$FIREBIRD_LIBDIR" || echo "$FIREBIRD_LIBDIR" | grep '^/' >/dev/null ; then
69586:     ai_p=$FIREBIRD_LIBDIR
69587:   else
69588: 
69589:     ep_dir=`echo $FIREBIRD_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
69590: 
69591:     ep_realdir=`(cd "$ep_dir" && pwd)`
69592:     ai_p="$ep_realdir"/`basename "$FIREBIRD_LIBDIR"`
69593:   fi
69594: 
69595: 
69596: 
69597: 
69598: 
69599:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
69600: 
69601:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
69602:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
69603:     eval "LIBPATH$unique=set"
69604: 
69605:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
69606:     LDFLAGS="$LDFLAGS -L$ai_p"
69607:     PHP_RPATHS="$PHP_RPATHS $ai_p"
69608: 
69609:   fi
69610: 
69611: 
69612: 
69613:   fi
69614: 
69615:   fi
69616: 
69617: 
69618:   case $FIREBIRD_LIBNAME in
69619:   c|c_r|pthread*) ;;
69620:   *)
69621:       LIBS="-l$FIREBIRD_LIBNAME $LIBS"
69622:    ;;
69623:   esac
69624: 
69625: 
69626: 
69627: 
69628:   fi
69629: 
69630: 
69631: 
69632:   if test "$FIREBIRD_INCDIR" != "/usr/include"; then
69633: 
69634:   if test -z "$FIREBIRD_INCDIR" || echo "$FIREBIRD_INCDIR" | grep '^/' >/dev/null ; then
69635:     ai_p=$FIREBIRD_INCDIR
69636:   else
69637: 
69638:     ep_dir=`echo $FIREBIRD_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`
69639: 
69640:     ep_realdir=`(cd "$ep_dir" && pwd)`
69641:     ai_p="$ep_realdir"/`basename "$FIREBIRD_INCDIR"`
69642:   fi
69643: 
69644: 
69645: 
69646:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
69647: 
69648:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
69649:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
69650:     eval "INCLUDEPATH$unique=set"
69651: 
69652:       if test ""; then
69653:         INCLUDES="-I$ai_p $INCLUDES"
69654:       else
69655:         INCLUDES="$INCLUDES -I$ai_p"
69656:       fi
69657: 
69658:   fi
69659: 
69660:   fi
69661: 
69662: 
69663: $as_echo "#define HAVE_PDO_FIREBIRD 1" >>confdefs.h
69664: 
69665: 
69666:   ext_builddir=ext/pdo_firebird
69667:   ext_srcdir=$abs_srcdir/ext/pdo_firebird
69668: 
69669:   ac_extra=`echo "-I$pdo_cv_inc_path"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
69670: 
69671:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
69672:     PHP_PDO_FIREBIRD_SHARED=no
69673: 
69674: 
69675:   case ext/pdo_firebird in
69676:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
69677:   /*) ac_srcdir=`echo "ext/pdo_firebird"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
69678:   *) ac_srcdir="$abs_srcdir/ext/pdo_firebird/"; ac_bdir="ext/pdo_firebird/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
69679:   esac
69680: 
69681: 
69682: 
69683:   b_c_pre=$php_c_pre
69684:   b_cxx_pre=$php_cxx_pre
69685:   b_c_meta=$php_c_meta
69686:   b_cxx_meta=$php_cxx_meta
69687:   b_c_post=$php_c_post
69688:   b_cxx_post=$php_cxx_post
69689:   b_lo=$php_lo
69690: 
69691: 
69692:   old_IFS=$IFS
69693:   for ac_src in pdo_firebird.c firebird_driver.c firebird_statement.c; do
69694: 
69695:       IFS=.
69696:       set $ac_src
69697:       ac_obj=$1
69698:       IFS=$old_IFS
69699: 
69700:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
69701: 
69702:       case $ac_src in
69703:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
69704:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
69705:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
69706:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
69707:       esac
69708: 
69709:     cat >>Makefile.objects<<EOF
69710: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
69711: 	$ac_comp
69712: EOF
69713:   done
69714: 
69715: 
69716:     EXT_STATIC="$EXT_STATIC pdo_firebird"
69717:     if test "$ext_shared" != "nocli"; then
69718:       EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_firebird"
69719:     fi
69720:   else
69721:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
69722:       PHP_PDO_FIREBIRD_SHARED=yes
69723: 
69724:   case ext/pdo_firebird in
69725:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
69726:   /*) ac_srcdir=`echo "ext/pdo_firebird"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
69727:   *) ac_srcdir="$abs_srcdir/ext/pdo_firebird/"; ac_bdir="ext/pdo_firebird/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
69728:   esac
69729: 
69730: 
69731: 
69732:   b_c_pre=$shared_c_pre
69733:   b_cxx_pre=$shared_cxx_pre
69734:   b_c_meta=$shared_c_meta
69735:   b_cxx_meta=$shared_cxx_meta
69736:   b_c_post=$shared_c_post
69737:   b_cxx_post=$shared_cxx_post
69738:   b_lo=$shared_lo
69739: 
69740: 
69741:   old_IFS=$IFS
69742:   for ac_src in pdo_firebird.c firebird_driver.c firebird_statement.c; do
69743: 
69744:       IFS=.
69745:       set $ac_src
69746:       ac_obj=$1
69747:       IFS=$old_IFS
69748: 
69749:       shared_objects_pdo_firebird="$shared_objects_pdo_firebird $ac_bdir$ac_obj.lo"
69750: 
69751:       case $ac_src in
69752:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
69753:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
69754:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
69755:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
69756:       esac
69757: 
69758:     cat >>Makefile.objects<<EOF
69759: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
69760: 	$ac_comp
69761: EOF
69762:   done
69763: 
69764:       case $host_alias in
69765:         *netware*)
69766: 
69767:   install_modules="install-modules"
69768: 
69769:   case $host_alias in
69770:     *aix*)
69771:       suffix=so
69772:       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'
69773:       ;;
69774:     *netware*)
69775:       suffix=nlm
69776:       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)'
69777:       ;;
69778:     *)
69779:       suffix=la
69780:       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)'
69781:       ;;
69782:   esac
69783: 
69784:   if test "x" = "xyes"; then
69785:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phppdo_firebird.$suffix"
69786:   else
69787:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phppdo_firebird.$suffix"
69788:   fi
69789: 
69790:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo_firebird"
69791: 
69792:   cat >>Makefile.objects<<EOF
69793: \$(phplibdir)/phppdo_firebird.$suffix: $ext_builddir/phppdo_firebird.$suffix
69794: 	\$(LIBTOOL) --mode=install cp $ext_builddir/phppdo_firebird.$suffix \$(phplibdir)
69795: 
69796: $ext_builddir/phppdo_firebird.$suffix: \$(shared_objects_pdo_firebird) \$(PHPPDO_FIREBIRD_SHARED_DEPENDENCIES)
69797: 	$link_cmd
69798: 
69799: EOF
69800: 
69801:           ;;
69802:         *)
69803: 
69804:   install_modules="install-modules"
69805: 
69806:   case $host_alias in
69807:     *aix*)
69808:       suffix=so
69809:       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'
69810:       ;;
69811:     *netware*)
69812:       suffix=nlm
69813:       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)'
69814:       ;;
69815:     *)
69816:       suffix=la
69817:       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)'
69818:       ;;
69819:   esac
69820: 
69821:   if test "x" = "xyes"; then
69822:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/pdo_firebird.$suffix"
69823:   else
69824:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/pdo_firebird.$suffix"
69825:   fi
69826: 
69827:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo_firebird"
69828: 
69829:   cat >>Makefile.objects<<EOF
69830: \$(phplibdir)/pdo_firebird.$suffix: $ext_builddir/pdo_firebird.$suffix
69831: 	\$(LIBTOOL) --mode=install cp $ext_builddir/pdo_firebird.$suffix \$(phplibdir)
69832: 
69833: $ext_builddir/pdo_firebird.$suffix: \$(shared_objects_pdo_firebird) \$(PDO_FIREBIRD_SHARED_DEPENDENCIES)
69834: 	$link_cmd
69835: 
69836: EOF
69837: 
69838:           ;;
69839:       esac
69840: 
69841: cat >>confdefs.h <<_ACEOF
69842: #define COMPILE_DL_PDO_FIREBIRD 1
69843: _ACEOF
69844: 
69845:     fi
69846:   fi
69847: 
69848:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
69849:     PHP_PDO_FIREBIRD_SHARED=no
69850:     case "$PHP_SAPI" in
69851:       cgi|embed)
69852: 
69853: 
69854:   case ext/pdo_firebird in
69855:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
69856:   /*) ac_srcdir=`echo "ext/pdo_firebird"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
69857:   *) ac_srcdir="$abs_srcdir/ext/pdo_firebird/"; ac_bdir="ext/pdo_firebird/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
69858:   esac
69859: 
69860: 
69861: 
69862:   b_c_pre=$php_c_pre
69863:   b_cxx_pre=$php_cxx_pre
69864:   b_c_meta=$php_c_meta
69865:   b_cxx_meta=$php_cxx_meta
69866:   b_c_post=$php_c_post
69867:   b_cxx_post=$php_cxx_post
69868:   b_lo=$php_lo
69869: 
69870: 
69871:   old_IFS=$IFS
69872:   for ac_src in pdo_firebird.c firebird_driver.c firebird_statement.c; do
69873: 
69874:       IFS=.
69875:       set $ac_src
69876:       ac_obj=$1
69877:       IFS=$old_IFS
69878: 
69879:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
69880: 
69881:       case $ac_src in
69882:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
69883:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
69884:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
69885:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
69886:       esac
69887: 
69888:     cat >>Makefile.objects<<EOF
69889: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
69890: 	$ac_comp
69891: EOF
69892:   done
69893: 
69894: 
69895:         EXT_STATIC="$EXT_STATIC pdo_firebird"
69896:         ;;
69897:       *)
69898: 
69899: 
69900:   case ext/pdo_firebird in
69901:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
69902:   /*) ac_srcdir=`echo "ext/pdo_firebird"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
69903:   *) ac_srcdir="$abs_srcdir/ext/pdo_firebird/"; ac_bdir="ext/pdo_firebird/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
69904:   esac
69905: 
69906: 
69907: 
69908:   b_c_pre=$php_c_pre
69909:   b_cxx_pre=$php_cxx_pre
69910:   b_c_meta=$php_c_meta
69911:   b_cxx_meta=$php_cxx_meta
69912:   b_c_post=$php_c_post
69913:   b_cxx_post=$php_cxx_post
69914:   b_lo=$php_lo
69915: 
69916: 
69917:   old_IFS=$IFS
69918:   for ac_src in pdo_firebird.c firebird_driver.c firebird_statement.c; do
69919: 
69920:       IFS=.
69921:       set $ac_src
69922:       ac_obj=$1
69923:       IFS=$old_IFS
69924: 
69925:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
69926: 
69927:       case $ac_src in
69928:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
69929:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
69930:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
69931:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
69932:       esac
69933: 
69934:     cat >>Makefile.objects<<EOF
69935: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
69936: 	$ac_comp
69937: EOF
69938:   done
69939: 
69940: 
69941:         ;;
69942:     esac
69943:     EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_firebird"
69944:   fi
69945: 
69946: 
69947:     BUILD_DIR="$BUILD_DIR $ext_builddir"
69948: 
69949: 
69950: 
69951:   if test "$ext_builddir" = "."; then
69952:     PHP_PECL_EXTENSION=pdo_firebird
69953: 
69954:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
69955: 
69956:   fi
69957: 
69958: 
69959:   PHP_VAR_SUBST="$PHP_VAR_SUBST PDO_FIREBIRD_SHARED_LIBADD"
69960: 
69961: 
69962:   am_i_shared=$PHP_PDO_FIREBIRD_SHARED
69963:   is_it_shared=$PHP_PDO_SHARED
69964:   is_it_enabled=$PHP_PDO
69965:   if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
69966:     as_fn_error $? "
69967: You've configured extension pdo_firebird to build statically, but it
69968: depends on extension pdo, which you've configured to build shared.
69969: You either need to build pdo_firebird shared or build pdo statically for the
69970: build to be successful.
69971: " "$LINENO" 5
69972:   fi
69973:   if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then
69974:     as_fn_error $? "
69975: You've configured extension pdo_firebird, which depends on extension pdo,
69976: but you've either not enabled pdo, or have disabled it.
69977: " "$LINENO" 5
69978:   fi
69979: 
69980: fi
69981: 
69982: 
69983: 
69984: php_with_pdo_mysql=no
69985: 
69986: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support for PDO" >&5
69987: $as_echo_n "checking for MySQL support for PDO... " >&6; }
69988: 
69989: # Check whether --with-pdo-mysql was given.
69990: if test "${with_pdo_mysql+set}" = set; then :
69991:   withval=$with_pdo_mysql; PHP_PDO_MYSQL=$withval
69992: else
69993: 
69994:   PHP_PDO_MYSQL=no
69995:   test "$PHP_ENABLE_ALL" && PHP_PDO_MYSQL=$PHP_ENABLE_ALL
69996: 
69997: fi
69998: 
69999: 
70000: 
70001: ext_output="yes, shared"
70002: ext_shared=yes
70003: case $PHP_PDO_MYSQL in
70004: shared,*)
70005:   PHP_PDO_MYSQL=`echo "$PHP_PDO_MYSQL"|$SED 's/^shared,//'`
70006:   ;;
70007: shared)
70008:   PHP_PDO_MYSQL=yes
70009:   ;;
70010: no)
70011:   ext_output=no
70012:   ext_shared=no
70013:   ;;
70014: *)
70015:   ext_output=yes
70016:   ext_shared=no
70017:   ;;
70018: esac
70019: 
70020: 
70021: 
70022: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
70023: $as_echo "$ext_output" >&6; }
70024: 
70025: 
70026: 
70027: 
70028: if test -z "$PHP_ZLIB_DIR"; then
70029: 
70030: php_with_zlib_dir=no
70031: 
70032: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the location of libz" >&5
70033: $as_echo_n "checking for the location of libz... " >&6; }
70034: 
70035: # Check whether --with-zlib-dir was given.
70036: if test "${with_zlib_dir+set}" = set; then :
70037:   withval=$with_zlib_dir; PHP_ZLIB_DIR=$withval
70038: else
70039: 
70040:   PHP_ZLIB_DIR=no
70041: 
70042: 
70043: fi
70044: 
70045: 
70046: ext_output=$PHP_ZLIB_DIR
70047: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
70048: $as_echo "$ext_output" >&6; }
70049: 
70050: 
70051: 
70052: fi
70053: 
70054: if test "$PHP_PDO_MYSQL" != "no"; then
70055: 
70056:   if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then
70057:     as_fn_error $? "PDO is not enabled! Add --enable-pdo to your configure line." "$LINENO" 5
70058:   fi
70059: 
70060: 
70061: 
70062:   if test "$PHP_PDO_MYSQL" != "yes" && test "$PHP_PDO_MYSQL" != "mysqlnd"; then
70063:     if test -f $PHP_PDO_MYSQL && test -x $PHP_PDO_MYSQL ; then
70064:       PDO_MYSQL_CONFIG=$PHP_PDO_MYSQL
70065:     else
70066:       if test -d "$PHP_PDO_MYSQL" ; then
70067:         if test -x "$PHP_PDO_MYSQL/bin/mysql_config" ; then
70068:           PDO_MYSQL_CONFIG="$PHP_PDO_MYSQL/bin/mysql_config"
70069:         else
70070:           PDO_MYSQL_DIR="$PHP_PDO_MYSQL"
70071:         fi
70072:       fi
70073:     fi
70074:   fi
70075: 
70076:   if test "$PHP_PDO_MYSQL" = "yes" || test "$PHP_PDO_MYSQL" = "mysqlnd"; then
70077:         PHP_MYSQLND_ENABLED=yes
70078: 
70079: $as_echo "#define PDO_USE_MYSQLND 1" >>confdefs.h
70080: 
70081:   else
70082: 
70083: $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
70084: 
70085: 
70086:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_config" >&5
70087: $as_echo_n "checking for mysql_config... " >&6; }
70088:     if test -n "$PDO_MYSQL_CONFIG"; then
70089:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDO_MYSQL_CONFIG" >&5
70090: $as_echo "$PDO_MYSQL_CONFIG" >&6; }
70091:       if test "x$SED" = "x"; then
70092:         # Extract the first word of "sed", so it can be a program name with args.
70093: set dummy sed; ac_word=$2
70094: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
70095: $as_echo_n "checking for $ac_word... " >&6; }
70096: if ${ac_cv_path_SED+:} false; then :
70097:   $as_echo_n "(cached) " >&6
70098: else
70099:   case $SED in
70100:   [\\/]* | ?:[\\/]*)
70101:   ac_cv_path_SED="$SED" # Let the user override the test with a path.
70102:   ;;
70103:   *)
70104:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
70105: for as_dir in $PATH
70106: do
70107:   IFS=$as_save_IFS
70108:   test -z "$as_dir" && as_dir=.
70109:     for ac_exec_ext in '' $ac_executable_extensions; do
70110:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
70111:     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
70112:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
70113:     break 2
70114:   fi
70115: done
70116:   done
70117: IFS=$as_save_IFS
70118: 
70119:   ;;
70120: esac
70121: fi
70122: SED=$ac_cv_path_SED
70123: if test -n "$SED"; then
70124:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
70125: $as_echo "$SED" >&6; }
70126: else
70127:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
70128: $as_echo "no" >&6; }
70129: fi
70130: 
70131: 
70132:       fi
70133:       if test "$enable_maintainer_zts" = "yes"; then
70134:         PDO_MYSQL_LIBNAME=mysqlclient_r
70135:         PDO_MYSQL_LIBS=`$PDO_MYSQL_CONFIG --libs_r | $SED -e "s/'//g"`
70136:       else
70137:         PDO_MYSQL_LIBNAME=mysqlclient
70138:         PDO_MYSQL_LIBS=`$PDO_MYSQL_CONFIG --libs | $SED -e "s/'//g"`
70139:       fi
70140:       PDO_MYSQL_INCLUDE=`$PDO_MYSQL_CONFIG --cflags | $SED -e "s/'//g"`
70141:     elif test -n "$PDO_MYSQL_DIR"; then
70142:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
70143: $as_echo "not found" >&6; }
70144:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql install under $PDO_MYSQL_DIR" >&5
70145: $as_echo_n "checking for mysql install under $PDO_MYSQL_DIR... " >&6; }
70146:       if test -r $PDO_MYSQL_DIR/include/mysql; then
70147:         PDO_MYSQL_INC_DIR=$PDO_MYSQL_DIR/include/mysql
70148:       else
70149:         PDO_MYSQL_INC_DIR=$PDO_MYSQL_DIR/include
70150:       fi
70151:       if test -r $PDO_MYSQL_DIR/$PHP_LIBDIR/mysql; then
70152:         PDO_MYSQL_LIB_DIR=$PDO_MYSQL_DIR/$PHP_LIBDIR/mysql
70153:       else
70154:         PDO_MYSQL_LIB_DIR=$PDO_MYSQL_DIR/$PHP_LIBDIR
70155:       fi
70156: 
70157:       if test -r "$PDO_MYSQL_LIB_DIR"; then
70158:         { $as_echo "$as_me:${as_lineno-$LINENO}: result: libs under $PDO_MYSQL_LIB_DIR; seems promising" >&5
70159: $as_echo "libs under $PDO_MYSQL_LIB_DIR; seems promising" >&6; }
70160:       else
70161:         { $as_echo "$as_me:${as_lineno-$LINENO}: result: can not find it" >&5
70162: $as_echo "can not find it" >&6; }
70163:         as_fn_error $? "Unable to find your mysql installation" "$LINENO" 5
70164:       fi
70165: 
70166: 
70167:   if test "$PDO_MYSQL_INC_DIR" != "/usr/include"; then
70168: 
70169:   if test -z "$PDO_MYSQL_INC_DIR" || echo "$PDO_MYSQL_INC_DIR" | grep '^/' >/dev/null ; then
70170:     ai_p=$PDO_MYSQL_INC_DIR
70171:   else
70172: 
70173:     ep_dir=`echo $PDO_MYSQL_INC_DIR|$SED 's%/*[^/][^/]*/*$%%'`
70174: 
70175:     ep_realdir=`(cd "$ep_dir" && pwd)`
70176:     ai_p="$ep_realdir"/`basename "$PDO_MYSQL_INC_DIR"`
70177:   fi
70178: 
70179: 
70180: 
70181:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
70182: 
70183:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
70184:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
70185:     eval "INCLUDEPATH$unique=set"
70186: 
70187:       if test ""; then
70188:         INCLUDES="-I$ai_p $INCLUDES"
70189:       else
70190:         INCLUDES="$INCLUDES -I$ai_p"
70191:       fi
70192: 
70193:   fi
70194: 
70195:   fi
70196: 
70197:       PDO_MYSQL_INCLUDE=-I$PDO_MYSQL_INC_DIR
70198:     else
70199:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
70200: $as_echo "not found" >&6; }
70201:       as_fn_error $? "Unable to find your mysql installation" "$LINENO" 5
70202:     fi
70203: 
70204: 
70205:   save_old_LDFLAGS=$LDFLAGS
70206:   ac_stuff="
70207:       $PDO_MYSQL_LIBS
70208:     "
70209: 
70210:   save_ext_shared=$ext_shared
70211:   ext_shared=yes
70212: 
70213:   for ac_i in $ac_stuff; do
70214:     case $ac_i in
70215:     -pthread)
70216:       if test "$ext_shared" = "yes"; then
70217:         LDFLAGS="$LDFLAGS -pthread"
70218:       else
70219: 
70220: 
70221:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
70222: 
70223:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
70224:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
70225:     eval "EXTRA_LDFLAGS$unique=set"
70226:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
70227:   fi
70228: 
70229:       fi
70230:     ;;
70231:     -l*)
70232:       ac_ii=`echo $ac_i|cut -c 3-`
70233: 
70234: 
70235:   case $ac_ii in
70236:   c|c_r|pthread*) ;;
70237:   *)
70238:     if test "$ext_shared" = "yes"; then
70239:         LDFLAGS="$LDFLAGS -l$ac_ii"
70240:     else
70241: 
70242: 
70243:   case $ac_ii in
70244:   c|c_r|pthread*) ;;
70245:   *)
70246:       LIBS="$LIBS -l$ac_ii"
70247:    ;;
70248:   esac
70249: 
70250: 
70251:     fi
70252:    ;;
70253:   esac
70254: 
70255: 
70256:     ;;
70257:     -L*)
70258:       ac_ii=`echo $ac_i|cut -c 3-`
70259: 
70260:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
70261: 
70262:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
70263:     ai_p=$ac_ii
70264:   else
70265: 
70266:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
70267: 
70268:     ep_realdir=`(cd "$ep_dir" && pwd)`
70269:     ai_p="$ep_realdir"/`basename "$ac_ii"`
70270:   fi
70271: 
70272: 
70273:       if test "$ext_shared" = "yes"; then
70274:         LDFLAGS="-L$ai_p $LDFLAGS"
70275:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
70276:       else
70277: 
70278: 
70279: 
70280:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
70281: 
70282:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
70283:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
70284:     eval "LIBPATH$unique=set"
70285: 
70286:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
70287:     LDFLAGS="$LDFLAGS -L$ai_p"
70288:     PHP_RPATHS="$PHP_RPATHS $ai_p"
70289: 
70290:   fi
70291: 
70292: 
70293:       fi
70294: 
70295:   fi
70296: 
70297:     ;;
70298:     esac
70299:   done
70300: 
70301:   as_ac_Lib=`$as_echo "ac_cv_lib_$PDO_MYSQL_LIBNAME''_mysql_commit" | $as_tr_sh`
70302: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_commit in -l$PDO_MYSQL_LIBNAME" >&5
70303: $as_echo_n "checking for mysql_commit in -l$PDO_MYSQL_LIBNAME... " >&6; }
70304: if eval \${$as_ac_Lib+:} false; then :
70305:   $as_echo_n "(cached) " >&6
70306: else
70307:   ac_check_lib_save_LIBS=$LIBS
70308: LIBS="-l$PDO_MYSQL_LIBNAME  $LIBS"
70309: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
70310: /* end confdefs.h.  */
70311: 
70312: /* Override any GCC internal prototype to avoid an error.
70313:    Use char because int might match the return type of a GCC
70314:    builtin and then its argument prototype would still apply.  */
70315: #ifdef __cplusplus
70316: extern "C"
70317: #endif
70318: char mysql_commit ();
70319: int
70320: main ()
70321: {
70322: return mysql_commit ();
70323:   ;
70324:   return 0;
70325: }
70326: _ACEOF
70327: if ac_fn_c_try_link "$LINENO"; then :
70328:   eval "$as_ac_Lib=yes"
70329: else
70330:   eval "$as_ac_Lib=no"
70331: fi
70332: rm -f core conftest.err conftest.$ac_objext \
70333:     conftest$ac_exeext conftest.$ac_ext
70334: LIBS=$ac_check_lib_save_LIBS
70335: fi
70336: eval ac_res=\$$as_ac_Lib
70337: 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
70338: $as_echo "$ac_res" >&6; }
70339: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
70340: 
70341:     LDFLAGS=$save_old_LDFLAGS
70342:     ext_shared=$save_ext_shared
70343: 
70344: 
70345:   for ac_i in $PDO_MYSQL_INCLUDE; do
70346:     case $ac_i in
70347:     -I*)
70348:       ac_ii=`echo $ac_i|cut -c 3-`
70349: 
70350:   if test "$ac_ii" != "/usr/include"; then
70351: 
70352:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
70353:     ai_p=$ac_ii
70354:   else
70355: 
70356:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
70357: 
70358:     ep_realdir=`(cd "$ep_dir" && pwd)`
70359:     ai_p="$ep_realdir"/`basename "$ac_ii"`
70360:   fi
70361: 
70362: 
70363: 
70364:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
70365: 
70366:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
70367:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
70368:     eval "INCLUDEPATH$unique=set"
70369: 
70370:       if test ""; then
70371:         INCLUDES="-I$ai_p $INCLUDES"
70372:       else
70373:         INCLUDES="$INCLUDES -I$ai_p"
70374:       fi
70375: 
70376:   fi
70377: 
70378:   fi
70379: 
70380:     ;;
70381:     esac
70382:   done
70383: 
70384: 
70385:   for ac_i in $PDO_MYSQL_LIBS; do
70386:     case $ac_i in
70387:     -pthread)
70388:       if test "$ext_shared" = "yes"; then
70389:         PDO_MYSQL_SHARED_LIBADD="$PDO_MYSQL_SHARED_LIBADD -pthread"
70390:       else
70391: 
70392: 
70393:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
70394: 
70395:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
70396:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
70397:     eval "EXTRA_LDFLAGS$unique=set"
70398:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
70399:   fi
70400: 
70401:       fi
70402:     ;;
70403:     -l*)
70404:       ac_ii=`echo $ac_i|cut -c 3-`
70405: 
70406: 
70407:   case $ac_ii in
70408:   c|c_r|pthread*) ;;
70409:   *)
70410:     if test "$ext_shared" = "yes"; then
70411:         PDO_MYSQL_SHARED_LIBADD="$PDO_MYSQL_SHARED_LIBADD -l$ac_ii"
70412:     else
70413: 
70414: 
70415:   case $ac_ii in
70416:   c|c_r|pthread*) ;;
70417:   *)
70418:       LIBS="$LIBS -l$ac_ii"
70419:    ;;
70420:   esac
70421: 
70422: 
70423:     fi
70424:    ;;
70425:   esac
70426: 
70427: 
70428:     ;;
70429:     -L*)
70430:       ac_ii=`echo $ac_i|cut -c 3-`
70431: 
70432:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
70433: 
70434:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
70435:     ai_p=$ac_ii
70436:   else
70437: 
70438:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
70439: 
70440:     ep_realdir=`(cd "$ep_dir" && pwd)`
70441:     ai_p="$ep_realdir"/`basename "$ac_ii"`
70442:   fi
70443: 
70444: 
70445:       if test "$ext_shared" = "yes"; then
70446:         PDO_MYSQL_SHARED_LIBADD="-L$ai_p $PDO_MYSQL_SHARED_LIBADD"
70447:         test -n "$ld_runpath_switch" && PDO_MYSQL_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_MYSQL_SHARED_LIBADD"
70448:       else
70449: 
70450: 
70451: 
70452:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
70453: 
70454:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
70455:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
70456:     eval "LIBPATH$unique=set"
70457: 
70458:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
70459:     LDFLAGS="$LDFLAGS -L$ai_p"
70460:     PHP_RPATHS="$PHP_RPATHS $ai_p"
70461: 
70462:   fi
70463: 
70464: 
70465:       fi
70466: 
70467:   fi
70468: 
70469:     ;;
70470:     esac
70471:   done
70472: 
70473: 
70474: 
70475: else
70476: 
70477:     LDFLAGS=$save_old_LDFLAGS
70478:     ext_shared=$save_ext_shared
70479:     unset ac_cv_lib_$PDO_MYSQL_LIBNAME_mysql_commit
70480: 
70481:       if test "$PHP_ZLIB_DIR" != "no"; then
70482: 
70483: 
70484:   if test "$ext_shared" = "yes"; then
70485:     PDO_MYSQL_SHARED_LIBADD="-lz $PDO_MYSQL_SHARED_LIBADD"
70486:     if test -n "$PHP_ZLIB_DIR"; then
70487: 
70488:   if test "$PHP_ZLIB_DIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ZLIB_DIR" != "/usr/lib"; then
70489: 
70490:   if test -z "$PHP_ZLIB_DIR" || echo "$PHP_ZLIB_DIR" | grep '^/' >/dev/null ; then
70491:     ai_p=$PHP_ZLIB_DIR
70492:   else
70493: 
70494:     ep_dir=`echo $PHP_ZLIB_DIR|$SED 's%/*[^/][^/]*/*$%%'`
70495: 
70496:     ep_realdir=`(cd "$ep_dir" && pwd)`
70497:     ai_p="$ep_realdir"/`basename "$PHP_ZLIB_DIR"`
70498:   fi
70499: 
70500: 
70501:       if test "$ext_shared" = "yes"; then
70502:         PDO_MYSQL_SHARED_LIBADD="-L$ai_p $PDO_MYSQL_SHARED_LIBADD"
70503:         test -n "$ld_runpath_switch" && PDO_MYSQL_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_MYSQL_SHARED_LIBADD"
70504:       else
70505: 
70506: 
70507: 
70508:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
70509: 
70510:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
70511:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
70512:     eval "LIBPATH$unique=set"
70513: 
70514:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
70515:     LDFLAGS="$LDFLAGS -L$ai_p"
70516:     PHP_RPATHS="$PHP_RPATHS $ai_p"
70517: 
70518:   fi
70519: 
70520: 
70521:       fi
70522: 
70523:   fi
70524: 
70525:     fi
70526:   else
70527: 
70528: 
70529:   if test -n "$PHP_ZLIB_DIR"; then
70530: 
70531:   if test "$PHP_ZLIB_DIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ZLIB_DIR" != "/usr/lib"; then
70532: 
70533:   if test -z "$PHP_ZLIB_DIR" || echo "$PHP_ZLIB_DIR" | grep '^/' >/dev/null ; then
70534:     ai_p=$PHP_ZLIB_DIR
70535:   else
70536: 
70537:     ep_dir=`echo $PHP_ZLIB_DIR|$SED 's%/*[^/][^/]*/*$%%'`
70538: 
70539:     ep_realdir=`(cd "$ep_dir" && pwd)`
70540:     ai_p="$ep_realdir"/`basename "$PHP_ZLIB_DIR"`
70541:   fi
70542: 
70543: 
70544: 
70545: 
70546: 
70547:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
70548: 
70549:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
70550:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
70551:     eval "LIBPATH$unique=set"
70552: 
70553:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
70554:     LDFLAGS="$LDFLAGS -L$ai_p"
70555:     PHP_RPATHS="$PHP_RPATHS $ai_p"
70556: 
70557:   fi
70558: 
70559: 
70560: 
70561:   fi
70562: 
70563:   fi
70564: 
70565: 
70566:   case z in
70567:   c|c_r|pthread*) ;;
70568:   *)
70569:       LIBS="-lz $LIBS"
70570:    ;;
70571:   esac
70572: 
70573: 
70574: 
70575: 
70576:   fi
70577: 
70578: 
70579: 
70580:   save_old_LDFLAGS=$LDFLAGS
70581:   ac_stuff="
70582:           -L$PHP_ZLIB_DIR/$PHP_LIBDIR -L$PDO_MYSQL_LIB_DIR
70583:         "
70584: 
70585:   save_ext_shared=$ext_shared
70586:   ext_shared=yes
70587: 
70588:   for ac_i in $ac_stuff; do
70589:     case $ac_i in
70590:     -pthread)
70591:       if test "$ext_shared" = "yes"; then
70592:         LDFLAGS="$LDFLAGS -pthread"
70593:       else
70594: 
70595: 
70596:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
70597: 
70598:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
70599:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
70600:     eval "EXTRA_LDFLAGS$unique=set"
70601:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
70602:   fi
70603: 
70604:       fi
70605:     ;;
70606:     -l*)
70607:       ac_ii=`echo $ac_i|cut -c 3-`
70608: 
70609: 
70610:   case $ac_ii in
70611:   c|c_r|pthread*) ;;
70612:   *)
70613:     if test "$ext_shared" = "yes"; then
70614:         LDFLAGS="$LDFLAGS -l$ac_ii"
70615:     else
70616: 
70617: 
70618:   case $ac_ii in
70619:   c|c_r|pthread*) ;;
70620:   *)
70621:       LIBS="$LIBS -l$ac_ii"
70622:    ;;
70623:   esac
70624: 
70625: 
70626:     fi
70627:    ;;
70628:   esac
70629: 
70630: 
70631:     ;;
70632:     -L*)
70633:       ac_ii=`echo $ac_i|cut -c 3-`
70634: 
70635:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
70636: 
70637:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
70638:     ai_p=$ac_ii
70639:   else
70640: 
70641:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
70642: 
70643:     ep_realdir=`(cd "$ep_dir" && pwd)`
70644:     ai_p="$ep_realdir"/`basename "$ac_ii"`
70645:   fi
70646: 
70647: 
70648:       if test "$ext_shared" = "yes"; then
70649:         LDFLAGS="-L$ai_p $LDFLAGS"
70650:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
70651:       else
70652: 
70653: 
70654: 
70655:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
70656: 
70657:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
70658:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
70659:     eval "LIBPATH$unique=set"
70660: 
70661:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
70662:     LDFLAGS="$LDFLAGS -L$ai_p"
70663:     PHP_RPATHS="$PHP_RPATHS $ai_p"
70664: 
70665:   fi
70666: 
70667: 
70668:       fi
70669: 
70670:   fi
70671: 
70672:     ;;
70673:     esac
70674:   done
70675: 
70676:   as_ac_Lib=`$as_echo "ac_cv_lib_$PDO_MYSQL_LIBNAME''_mysql_commit" | $as_tr_sh`
70677: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_commit in -l$PDO_MYSQL_LIBNAME" >&5
70678: $as_echo_n "checking for mysql_commit in -l$PDO_MYSQL_LIBNAME... " >&6; }
70679: if eval \${$as_ac_Lib+:} false; then :
70680:   $as_echo_n "(cached) " >&6
70681: else
70682:   ac_check_lib_save_LIBS=$LIBS
70683: LIBS="-l$PDO_MYSQL_LIBNAME  $LIBS"
70684: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
70685: /* end confdefs.h.  */
70686: 
70687: /* Override any GCC internal prototype to avoid an error.
70688:    Use char because int might match the return type of a GCC
70689:    builtin and then its argument prototype would still apply.  */
70690: #ifdef __cplusplus
70691: extern "C"
70692: #endif
70693: char mysql_commit ();
70694: int
70695: main ()
70696: {
70697: return mysql_commit ();
70698:   ;
70699:   return 0;
70700: }
70701: _ACEOF
70702: if ac_fn_c_try_link "$LINENO"; then :
70703:   eval "$as_ac_Lib=yes"
70704: else
70705:   eval "$as_ac_Lib=no"
70706: fi
70707: rm -f core conftest.err conftest.$ac_objext \
70708:     conftest$ac_exeext conftest.$ac_ext
70709: LIBS=$ac_check_lib_save_LIBS
70710: fi
70711: eval ac_res=\$$as_ac_Lib
70712: 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
70713: $as_echo "$ac_res" >&6; }
70714: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
70715: 
70716:     LDFLAGS=$save_old_LDFLAGS
70717:     ext_shared=$save_ext_shared
70718: 
70719: 
70720: else
70721: 
70722:     LDFLAGS=$save_old_LDFLAGS
70723:     ext_shared=$save_ext_shared
70724:     unset ac_cv_lib_$PDO_MYSQL_LIBNAME_mysql_commit
70725: 
70726:           as_fn_error $? "PDO_MYSQL configure failed, MySQL 4.1 needed. Please check config.log for more information." "$LINENO" 5
70727: 
70728: 
70729: fi
70730: 
70731:         PDO_MYSQL_LIBS="$PDO_MYSQL_LIBS -L$PHP_ZLIB_DIR/$PHP_LIBDIR -lz"
70732:       else
70733: 
70734: 
70735:   case z in
70736:   c|c_r|pthread*) ;;
70737:   *)
70738:     if test "$ext_shared" = "yes"; then
70739:         PDO_MYSQL_SHARED_LIBADD="-lz $PDO_MYSQL_SHARED_LIBADD"
70740:     else
70741: 
70742: 
70743:   case z in
70744:   c|c_r|pthread*) ;;
70745:   *)
70746:       LIBS="-lz $LIBS"
70747:    ;;
70748:   esac
70749: 
70750: 
70751:     fi
70752:    ;;
70753:   esac
70754: 
70755: 
70756: 
70757:   save_old_LDFLAGS=$LDFLAGS
70758:   ac_stuff="
70759:           -L$PDO_MYSQL_LIB_DIR
70760:         "
70761: 
70762:   save_ext_shared=$ext_shared
70763:   ext_shared=yes
70764: 
70765:   for ac_i in $ac_stuff; do
70766:     case $ac_i in
70767:     -pthread)
70768:       if test "$ext_shared" = "yes"; then
70769:         LDFLAGS="$LDFLAGS -pthread"
70770:       else
70771: 
70772: 
70773:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
70774: 
70775:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
70776:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
70777:     eval "EXTRA_LDFLAGS$unique=set"
70778:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
70779:   fi
70780: 
70781:       fi
70782:     ;;
70783:     -l*)
70784:       ac_ii=`echo $ac_i|cut -c 3-`
70785: 
70786: 
70787:   case $ac_ii in
70788:   c|c_r|pthread*) ;;
70789:   *)
70790:     if test "$ext_shared" = "yes"; then
70791:         LDFLAGS="$LDFLAGS -l$ac_ii"
70792:     else
70793: 
70794: 
70795:   case $ac_ii in
70796:   c|c_r|pthread*) ;;
70797:   *)
70798:       LIBS="$LIBS -l$ac_ii"
70799:    ;;
70800:   esac
70801: 
70802: 
70803:     fi
70804:    ;;
70805:   esac
70806: 
70807: 
70808:     ;;
70809:     -L*)
70810:       ac_ii=`echo $ac_i|cut -c 3-`
70811: 
70812:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
70813: 
70814:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
70815:     ai_p=$ac_ii
70816:   else
70817: 
70818:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
70819: 
70820:     ep_realdir=`(cd "$ep_dir" && pwd)`
70821:     ai_p="$ep_realdir"/`basename "$ac_ii"`
70822:   fi
70823: 
70824: 
70825:       if test "$ext_shared" = "yes"; then
70826:         LDFLAGS="-L$ai_p $LDFLAGS"
70827:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
70828:       else
70829: 
70830: 
70831: 
70832:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
70833: 
70834:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
70835:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
70836:     eval "LIBPATH$unique=set"
70837: 
70838:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
70839:     LDFLAGS="$LDFLAGS -L$ai_p"
70840:     PHP_RPATHS="$PHP_RPATHS $ai_p"
70841: 
70842:   fi
70843: 
70844: 
70845:       fi
70846: 
70847:   fi
70848: 
70849:     ;;
70850:     esac
70851:   done
70852: 
70853:   as_ac_Lib=`$as_echo "ac_cv_lib_$PDO_MYSQL_LIBNAME''_mysql_query" | $as_tr_sh`
70854: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_query in -l$PDO_MYSQL_LIBNAME" >&5
70855: $as_echo_n "checking for mysql_query in -l$PDO_MYSQL_LIBNAME... " >&6; }
70856: if eval \${$as_ac_Lib+:} false; then :
70857:   $as_echo_n "(cached) " >&6
70858: else
70859:   ac_check_lib_save_LIBS=$LIBS
70860: LIBS="-l$PDO_MYSQL_LIBNAME  $LIBS"
70861: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
70862: /* end confdefs.h.  */
70863: 
70864: /* Override any GCC internal prototype to avoid an error.
70865:    Use char because int might match the return type of a GCC
70866:    builtin and then its argument prototype would still apply.  */
70867: #ifdef __cplusplus
70868: extern "C"
70869: #endif
70870: char mysql_query ();
70871: int
70872: main ()
70873: {
70874: return mysql_query ();
70875:   ;
70876:   return 0;
70877: }
70878: _ACEOF
70879: if ac_fn_c_try_link "$LINENO"; then :
70880:   eval "$as_ac_Lib=yes"
70881: else
70882:   eval "$as_ac_Lib=no"
70883: fi
70884: rm -f core conftest.err conftest.$ac_objext \
70885:     conftest$ac_exeext conftest.$ac_ext
70886: LIBS=$ac_check_lib_save_LIBS
70887: fi
70888: eval ac_res=\$$as_ac_Lib
70889: 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
70890: $as_echo "$ac_res" >&6; }
70891: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
70892: 
70893:     LDFLAGS=$save_old_LDFLAGS
70894:     ext_shared=$save_ext_shared
70895: 
70896: 
70897: else
70898: 
70899:     LDFLAGS=$save_old_LDFLAGS
70900:     ext_shared=$save_ext_shared
70901:     unset ac_cv_lib_$PDO_MYSQL_LIBNAME_mysql_query
70902: 
70903:           as_fn_error $? "Try adding --with-zlib-dir=<DIR>. Please check config.log for more information." "$LINENO" 5
70904: 
70905: 
70906: fi
70907: 
70908:         PDO_MYSQL_LIBS="$PDO_MYSQL_LIBS -lz"
70909:       fi
70910: 
70911: 
70912:   for ac_i in $PDO_MYSQL_INCLUDE; do
70913:     case $ac_i in
70914:     -I*)
70915:       ac_ii=`echo $ac_i|cut -c 3-`
70916: 
70917:   if test "$ac_ii" != "/usr/include"; then
70918: 
70919:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
70920:     ai_p=$ac_ii
70921:   else
70922: 
70923:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
70924: 
70925:     ep_realdir=`(cd "$ep_dir" && pwd)`
70926:     ai_p="$ep_realdir"/`basename "$ac_ii"`
70927:   fi
70928: 
70929: 
70930: 
70931:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
70932: 
70933:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
70934:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
70935:     eval "INCLUDEPATH$unique=set"
70936: 
70937:       if test ""; then
70938:         INCLUDES="-I$ai_p $INCLUDES"
70939:       else
70940:         INCLUDES="$INCLUDES -I$ai_p"
70941:       fi
70942: 
70943:   fi
70944: 
70945:   fi
70946: 
70947:     ;;
70948:     esac
70949:   done
70950: 
70951: 
70952:   for ac_i in $PDO_MYSQL_LIBS; do
70953:     case $ac_i in
70954:     -pthread)
70955:       if test "$ext_shared" = "yes"; then
70956:         PDO_MYSQL_SHARED_LIBADD="$PDO_MYSQL_SHARED_LIBADD -pthread"
70957:       else
70958: 
70959: 
70960:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
70961: 
70962:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
70963:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
70964:     eval "EXTRA_LDFLAGS$unique=set"
70965:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
70966:   fi
70967: 
70968:       fi
70969:     ;;
70970:     -l*)
70971:       ac_ii=`echo $ac_i|cut -c 3-`
70972: 
70973: 
70974:   case $ac_ii in
70975:   c|c_r|pthread*) ;;
70976:   *)
70977:     if test "$ext_shared" = "yes"; then
70978:         PDO_MYSQL_SHARED_LIBADD="$PDO_MYSQL_SHARED_LIBADD -l$ac_ii"
70979:     else
70980: 
70981: 
70982:   case $ac_ii in
70983:   c|c_r|pthread*) ;;
70984:   *)
70985:       LIBS="$LIBS -l$ac_ii"
70986:    ;;
70987:   esac
70988: 
70989: 
70990:     fi
70991:    ;;
70992:   esac
70993: 
70994: 
70995:     ;;
70996:     -L*)
70997:       ac_ii=`echo $ac_i|cut -c 3-`
70998: 
70999:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
71000: 
71001:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
71002:     ai_p=$ac_ii
71003:   else
71004: 
71005:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
71006: 
71007:     ep_realdir=`(cd "$ep_dir" && pwd)`
71008:     ai_p="$ep_realdir"/`basename "$ac_ii"`
71009:   fi
71010: 
71011: 
71012:       if test "$ext_shared" = "yes"; then
71013:         PDO_MYSQL_SHARED_LIBADD="-L$ai_p $PDO_MYSQL_SHARED_LIBADD"
71014:         test -n "$ld_runpath_switch" && PDO_MYSQL_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_MYSQL_SHARED_LIBADD"
71015:       else
71016: 
71017: 
71018: 
71019:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
71020: 
71021:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
71022:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
71023:     eval "LIBPATH$unique=set"
71024: 
71025:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
71026:     LDFLAGS="$LDFLAGS -L$ai_p"
71027:     PHP_RPATHS="$PHP_RPATHS $ai_p"
71028: 
71029:   fi
71030: 
71031: 
71032:       fi
71033: 
71034:   fi
71035: 
71036:     ;;
71037:     esac
71038:   done
71039: 
71040: 
71041: 
71042: fi
71043: 
71044:   fi
71045: 
71046: 
71047: 
71048:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5
71049: $as_echo_n "checking for PDO includes... " >&6; }
71050: if ${pdo_cv_inc_path+:} false; then :
71051:   $as_echo_n "(cached) " >&6
71052: else
71053: 
71054:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5
71055: $as_echo_n "checking for PDO includes... " >&6; }
71056:     if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then
71057:       pdo_cv_inc_path=$abs_srcdir/ext
71058:     elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then
71059:       pdo_cv_inc_path=$abs_srcdir/ext
71060:     elif test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then
71061:       pdo_cv_inc_path=$prefix/include/php/ext
71062:     fi
71063: 
71064: fi
71065: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pdo_cv_inc_path" >&5
71066: $as_echo "$pdo_cv_inc_path" >&6; }
71067:   if test -n "$pdo_cv_inc_path"; then
71068: :
71069:   else
71070: as_fn_error $? "Cannot find php_pdo_driver.h." "$LINENO" 5
71071:   fi
71072: 
71073: 
71074: 
71075:   if test -n "$PDO_MYSQL_CONFIG"; then
71076:     PDO_MYSQL_SOCKET=`$PDO_MYSQL_CONFIG --socket`
71077: 
71078: cat >>confdefs.h <<_ACEOF
71079: #define PDO_MYSQL_UNIX_ADDR "$PDO_MYSQL_SOCKET"
71080: _ACEOF
71081: 
71082:   fi
71083: 
71084: 
71085:   ext_builddir=ext/pdo_mysql
71086:   ext_srcdir=$abs_srcdir/ext/pdo_mysql
71087: 
71088:   ac_extra=`echo "-I$pdo_cv_inc_path -I"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
71089: 
71090:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
71091:     PHP_PDO_MYSQL_SHARED=no
71092: 
71093: 
71094:   case ext/pdo_mysql in
71095:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
71096:   /*) ac_srcdir=`echo "ext/pdo_mysql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
71097:   *) ac_srcdir="$abs_srcdir/ext/pdo_mysql/"; ac_bdir="ext/pdo_mysql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
71098:   esac
71099: 
71100: 
71101: 
71102:   b_c_pre=$php_c_pre
71103:   b_cxx_pre=$php_cxx_pre
71104:   b_c_meta=$php_c_meta
71105:   b_cxx_meta=$php_cxx_meta
71106:   b_c_post=$php_c_post
71107:   b_cxx_post=$php_cxx_post
71108:   b_lo=$php_lo
71109: 
71110: 
71111:   old_IFS=$IFS
71112:   for ac_src in pdo_mysql.c mysql_driver.c mysql_statement.c; do
71113: 
71114:       IFS=.
71115:       set $ac_src
71116:       ac_obj=$1
71117:       IFS=$old_IFS
71118: 
71119:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
71120: 
71121:       case $ac_src in
71122:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
71123:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
71124:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
71125:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
71126:       esac
71127: 
71128:     cat >>Makefile.objects<<EOF
71129: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
71130: 	$ac_comp
71131: EOF
71132:   done
71133: 
71134: 
71135:     EXT_STATIC="$EXT_STATIC pdo_mysql"
71136:     if test "$ext_shared" != "nocli"; then
71137:       EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_mysql"
71138:     fi
71139:   else
71140:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
71141:       PHP_PDO_MYSQL_SHARED=yes
71142: 
71143:   case ext/pdo_mysql in
71144:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
71145:   /*) ac_srcdir=`echo "ext/pdo_mysql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
71146:   *) ac_srcdir="$abs_srcdir/ext/pdo_mysql/"; ac_bdir="ext/pdo_mysql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
71147:   esac
71148: 
71149: 
71150: 
71151:   b_c_pre=$shared_c_pre
71152:   b_cxx_pre=$shared_cxx_pre
71153:   b_c_meta=$shared_c_meta
71154:   b_cxx_meta=$shared_cxx_meta
71155:   b_c_post=$shared_c_post
71156:   b_cxx_post=$shared_cxx_post
71157:   b_lo=$shared_lo
71158: 
71159: 
71160:   old_IFS=$IFS
71161:   for ac_src in pdo_mysql.c mysql_driver.c mysql_statement.c; do
71162: 
71163:       IFS=.
71164:       set $ac_src
71165:       ac_obj=$1
71166:       IFS=$old_IFS
71167: 
71168:       shared_objects_pdo_mysql="$shared_objects_pdo_mysql $ac_bdir$ac_obj.lo"
71169: 
71170:       case $ac_src in
71171:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
71172:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
71173:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
71174:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
71175:       esac
71176: 
71177:     cat >>Makefile.objects<<EOF
71178: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
71179: 	$ac_comp
71180: EOF
71181:   done
71182: 
71183:       case $host_alias in
71184:         *netware*)
71185: 
71186:   install_modules="install-modules"
71187: 
71188:   case $host_alias in
71189:     *aix*)
71190:       suffix=so
71191:       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'
71192:       ;;
71193:     *netware*)
71194:       suffix=nlm
71195:       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)'
71196:       ;;
71197:     *)
71198:       suffix=la
71199:       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)'
71200:       ;;
71201:   esac
71202: 
71203:   if test "x" = "xyes"; then
71204:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phppdo_mysql.$suffix"
71205:   else
71206:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phppdo_mysql.$suffix"
71207:   fi
71208: 
71209:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo_mysql"
71210: 
71211:   cat >>Makefile.objects<<EOF
71212: \$(phplibdir)/phppdo_mysql.$suffix: $ext_builddir/phppdo_mysql.$suffix
71213: 	\$(LIBTOOL) --mode=install cp $ext_builddir/phppdo_mysql.$suffix \$(phplibdir)
71214: 
71215: $ext_builddir/phppdo_mysql.$suffix: \$(shared_objects_pdo_mysql) \$(PHPPDO_MYSQL_SHARED_DEPENDENCIES)
71216: 	$link_cmd
71217: 
71218: EOF
71219: 
71220:           ;;
71221:         *)
71222: 
71223:   install_modules="install-modules"
71224: 
71225:   case $host_alias in
71226:     *aix*)
71227:       suffix=so
71228:       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'
71229:       ;;
71230:     *netware*)
71231:       suffix=nlm
71232:       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)'
71233:       ;;
71234:     *)
71235:       suffix=la
71236:       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)'
71237:       ;;
71238:   esac
71239: 
71240:   if test "x" = "xyes"; then
71241:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/pdo_mysql.$suffix"
71242:   else
71243:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/pdo_mysql.$suffix"
71244:   fi
71245: 
71246:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo_mysql"
71247: 
71248:   cat >>Makefile.objects<<EOF
71249: \$(phplibdir)/pdo_mysql.$suffix: $ext_builddir/pdo_mysql.$suffix
71250: 	\$(LIBTOOL) --mode=install cp $ext_builddir/pdo_mysql.$suffix \$(phplibdir)
71251: 
71252: $ext_builddir/pdo_mysql.$suffix: \$(shared_objects_pdo_mysql) \$(PDO_MYSQL_SHARED_DEPENDENCIES)
71253: 	$link_cmd
71254: 
71255: EOF
71256: 
71257:           ;;
71258:       esac
71259: 
71260: cat >>confdefs.h <<_ACEOF
71261: #define COMPILE_DL_PDO_MYSQL 1
71262: _ACEOF
71263: 
71264:     fi
71265:   fi
71266: 
71267:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
71268:     PHP_PDO_MYSQL_SHARED=no
71269:     case "$PHP_SAPI" in
71270:       cgi|embed)
71271: 
71272: 
71273:   case ext/pdo_mysql in
71274:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
71275:   /*) ac_srcdir=`echo "ext/pdo_mysql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
71276:   *) ac_srcdir="$abs_srcdir/ext/pdo_mysql/"; ac_bdir="ext/pdo_mysql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
71277:   esac
71278: 
71279: 
71280: 
71281:   b_c_pre=$php_c_pre
71282:   b_cxx_pre=$php_cxx_pre
71283:   b_c_meta=$php_c_meta
71284:   b_cxx_meta=$php_cxx_meta
71285:   b_c_post=$php_c_post
71286:   b_cxx_post=$php_cxx_post
71287:   b_lo=$php_lo
71288: 
71289: 
71290:   old_IFS=$IFS
71291:   for ac_src in pdo_mysql.c mysql_driver.c mysql_statement.c; do
71292: 
71293:       IFS=.
71294:       set $ac_src
71295:       ac_obj=$1
71296:       IFS=$old_IFS
71297: 
71298:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
71299: 
71300:       case $ac_src in
71301:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
71302:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
71303:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
71304:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
71305:       esac
71306: 
71307:     cat >>Makefile.objects<<EOF
71308: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
71309: 	$ac_comp
71310: EOF
71311:   done
71312: 
71313: 
71314:         EXT_STATIC="$EXT_STATIC pdo_mysql"
71315:         ;;
71316:       *)
71317: 
71318: 
71319:   case ext/pdo_mysql in
71320:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
71321:   /*) ac_srcdir=`echo "ext/pdo_mysql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
71322:   *) ac_srcdir="$abs_srcdir/ext/pdo_mysql/"; ac_bdir="ext/pdo_mysql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
71323:   esac
71324: 
71325: 
71326: 
71327:   b_c_pre=$php_c_pre
71328:   b_cxx_pre=$php_cxx_pre
71329:   b_c_meta=$php_c_meta
71330:   b_cxx_meta=$php_cxx_meta
71331:   b_c_post=$php_c_post
71332:   b_cxx_post=$php_cxx_post
71333:   b_lo=$php_lo
71334: 
71335: 
71336:   old_IFS=$IFS
71337:   for ac_src in pdo_mysql.c mysql_driver.c mysql_statement.c; do
71338: 
71339:       IFS=.
71340:       set $ac_src
71341:       ac_obj=$1
71342:       IFS=$old_IFS
71343: 
71344:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
71345: 
71346:       case $ac_src in
71347:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
71348:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
71349:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
71350:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
71351:       esac
71352: 
71353:     cat >>Makefile.objects<<EOF
71354: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
71355: 	$ac_comp
71356: EOF
71357:   done
71358: 
71359: 
71360:         ;;
71361:     esac
71362:     EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_mysql"
71363:   fi
71364: 
71365: 
71366:     BUILD_DIR="$BUILD_DIR $ext_builddir"
71367: 
71368: 
71369: 
71370:   if test "$ext_builddir" = "."; then
71371:     PHP_PECL_EXTENSION=pdo_mysql
71372: 
71373:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
71374: 
71375:   fi
71376: 
71377: 
71378: 
71379:   am_i_shared=$PHP_PDO_MYSQL_SHARED
71380:   is_it_shared=$PHP_PDO_SHARED
71381:   is_it_enabled=$PHP_PDO
71382:   if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
71383:     as_fn_error $? "
71384: You've configured extension pdo_mysql to build statically, but it
71385: depends on extension pdo, which you've configured to build shared.
71386: You either need to build pdo_mysql shared or build pdo statically for the
71387: build to be successful.
71388: " "$LINENO" 5
71389:   fi
71390:   if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then
71391:     as_fn_error $? "
71392: You've configured extension pdo_mysql, which depends on extension pdo,
71393: but you've either not enabled pdo, or have disabled it.
71394: " "$LINENO" 5
71395:   fi
71396: 
71397:     if test "$PHP_MYSQL" = "mysqlnd"; then
71398: 
71399:   am_i_shared=$PHP_PDO_MYSQL_SHARED
71400:   is_it_shared=$PHP_MYSQLND_SHARED
71401:   is_it_enabled=$PHP_MYSQLND
71402:   if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
71403:     as_fn_error $? "
71404: You've configured extension pdo_mysql to build statically, but it
71405: depends on extension mysqlnd, which you've configured to build shared.
71406: You either need to build pdo_mysql shared or build mysqlnd statically for the
71407: build to be successful.
71408: " "$LINENO" 5
71409:   fi
71410:   if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then
71411:     as_fn_error $? "
71412: You've configured extension pdo_mysql, which depends on extension mysqlnd,
71413: but you've either not enabled mysqlnd, or have disabled it.
71414: " "$LINENO" 5
71415:   fi
71416: 
71417:     fi
71418: 
71419:   PDO_MYSQL_MODULE_TYPE=external
71420: 
71421: 
71422:   PHP_VAR_SUBST="$PHP_VAR_SUBST PDO_MYSQL_SHARED_LIBADD"
71423: 
71424: 
71425: 
71426:   PHP_VAR_SUBST="$PHP_VAR_SUBST PDO_MYSQL_MODULE_TYPE"
71427: 
71428: 
71429: 
71430: fi
71431: 
71432: 
71433: SUPPORTED_LIB_VERS="9.0 10.1 11.1 12.1"  # The lib vers are not bumped when the DB version is bumped
71434: 
71435: 
71436: 
71437: 
71438: 
71439: php_with_pdo_oci=no
71440: 
71441: { $as_echo "$as_me:${as_lineno-$LINENO}: checking Oracle OCI support for PDO" >&5
71442: $as_echo_n "checking Oracle OCI support for PDO... " >&6; }
71443: 
71444: # Check whether --with-pdo-oci was given.
71445: if test "${with_pdo_oci+set}" = set; then :
71446:   withval=$with_pdo_oci; PHP_PDO_OCI=$withval
71447: else
71448: 
71449:   PHP_PDO_OCI=no
71450:   test "$PHP_ENABLE_ALL" && PHP_PDO_OCI=$PHP_ENABLE_ALL
71451: 
71452: fi
71453: 
71454: 
71455: 
71456: ext_output="yes, shared"
71457: ext_shared=yes
71458: case $PHP_PDO_OCI in
71459: shared,*)
71460:   PHP_PDO_OCI=`echo "$PHP_PDO_OCI"|$SED 's/^shared,//'`
71461:   ;;
71462: shared)
71463:   PHP_PDO_OCI=yes
71464:   ;;
71465: no)
71466:   ext_output=no
71467:   ext_shared=no
71468:   ;;
71469: *)
71470:   ext_output=yes
71471:   ext_shared=no
71472:   ;;
71473: esac
71474: 
71475: 
71476: 
71477: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
71478: $as_echo "$ext_output" >&6; }
71479: 
71480: 
71481: 
71482: 
71483: if test "$PHP_PDO_OCI" != "no"; then
71484: 
71485:   if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then
71486:     as_fn_error $? "PDO is not enabled! Add --enable-pdo to your configure line." "$LINENO" 5
71487:   fi
71488: 
71489:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking Oracle Install-Dir" >&5
71490: $as_echo_n "checking Oracle Install-Dir... " >&6; }
71491:   if test "$PHP_PDO_OCI" = "yes" || test -z "$PHP_PDO_OCI"; then
71492:     PDO_OCI_DIR=$ORACLE_HOME
71493:   else
71494:     PDO_OCI_DIR=$PHP_PDO_OCI
71495:   fi
71496:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_PDO_OCI" >&5
71497: $as_echo "$PHP_PDO_OCI" >&6; }
71498: 
71499:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if that is sane" >&5
71500: $as_echo_n "checking if that is sane... " >&6; }
71501:   if test -z "$PDO_OCI_DIR"; then
71502:     as_fn_error $? "
71503: You need to tell me where to find your Oracle Instant Client SDK, or set ORACLE_HOME.
71504: " "$LINENO" 5
71505:   else
71506:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
71507: $as_echo "yes" >&6; }
71508:   fi
71509: 
71510:   if test "instantclient" = "`echo $PDO_OCI_DIR | cut -d, -f1`" ; then
71511:     # The cast to long int works around a bug in the HP C Compiler
71512: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
71513: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
71514: # This bug is HP SR number 8606223364.
71515: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
71516: $as_echo_n "checking size of long int... " >&6; }
71517: if ${ac_cv_sizeof_long_int+:} false; then :
71518:   $as_echo_n "(cached) " >&6
71519: else
71520:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int"        "$ac_includes_default"; then :
71521: 
71522: else
71523:   if test "$ac_cv_type_long_int" = yes; then
71524:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
71525: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
71526: as_fn_error 77 "cannot compute sizeof (long int)
71527: See \`config.log' for more details" "$LINENO" 5; }
71528:    else
71529:      ac_cv_sizeof_long_int=0
71530:    fi
71531: fi
71532: 
71533: fi
71534: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
71535: $as_echo "$ac_cv_sizeof_long_int" >&6; }
71536: 
71537: 
71538: 
71539: cat >>confdefs.h <<_ACEOF
71540: #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
71541: _ACEOF
71542: 
71543: 
71544:     if test "$ac_cv_sizeof_long_int" = "4" ; then
71545:       PDO_OCI_CLIENT_DIR="client"
71546:     else
71547:       PDO_OCI_CLIENT_DIR="client64"
71548:     fi
71549:     PDO_OCI_IC_PREFIX="`echo $PDO_OCI_DIR | cut -d, -f2`"
71550:     PDO_OCI_IC_VERS="`echo $PDO_OCI_DIR | cut -d, -f3`"
71551:     if test -n "$PDO_OCI_IC_VERS"; then
71552:       PDO_OCI_IC_MAJ_VER="`echo $PDO_OCI_IC_VERS | cut -d. -f1`"
71553:       if test "$PDO_OCI_IC_MAJ_VER" -ge 11; then
71554:         # From 11.1.0.7 the RPM path only has an X.Y component
71555:         PDO_OCI_IC_VERS="`echo $PDO_OCI_IC_VERS | cut -d. -f1-2`"
71556:       fi
71557:     fi
71558:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for oci.h" >&5
71559: $as_echo_n "checking for oci.h... " >&6; }
71560:     if test -f $PDO_OCI_IC_PREFIX/include/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/oci.h ; then
71561: 
71562:   if test "$PDO_OCI_IC_PREFIX/include/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR" != "/usr/include"; then
71563: 
71564:   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
71565:     ai_p=$PDO_OCI_IC_PREFIX/include/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR
71566:   else
71567: 
71568:     ep_dir=`echo $PDO_OCI_IC_PREFIX/include/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR|$SED 's%/*[^/][^/]*/*$%%'`
71569: 
71570:     ep_realdir=`(cd "$ep_dir" && pwd)`
71571:     ai_p="$ep_realdir"/`basename "$PDO_OCI_IC_PREFIX/include/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR"`
71572:   fi
71573: 
71574: 
71575: 
71576:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
71577: 
71578:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
71579:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
71580:     eval "INCLUDEPATH$unique=set"
71581: 
71582:       if test ""; then
71583:         INCLUDES="-I$ai_p $INCLUDES"
71584:       else
71585:         INCLUDES="$INCLUDES -I$ai_p"
71586:       fi
71587: 
71588:   fi
71589: 
71590:   fi
71591: 
71592:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDO_OCI_IC_PREFIX/include/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR" >&5
71593: $as_echo "$PDO_OCI_IC_PREFIX/include/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR" >&6; }
71594:     elif test -f $PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/include/oci.h ; then
71595: 
71596:   if test "$PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/include" != "/usr/include"; then
71597: 
71598:   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
71599:     ai_p=$PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/include
71600:   else
71601: 
71602:     ep_dir=`echo $PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`
71603: 
71604:     ep_realdir=`(cd "$ep_dir" && pwd)`
71605:     ai_p="$ep_realdir"/`basename "$PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/include"`
71606:   fi
71607: 
71608: 
71609: 
71610:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
71611: 
71612:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
71613:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
71614:     eval "INCLUDEPATH$unique=set"
71615: 
71616:       if test ""; then
71617:         INCLUDES="-I$ai_p $INCLUDES"
71618:       else
71619:         INCLUDES="$INCLUDES -I$ai_p"
71620:       fi
71621: 
71622:   fi
71623: 
71624:   fi
71625: 
71626:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/include" >&5
71627: $as_echo "$PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/include" >&6; }
71628:     elif test -f $PDO_OCI_IC_PREFIX/sdk/include/oci.h ; then
71629: 
71630:   if test "$PDO_OCI_IC_PREFIX/sdk/include" != "/usr/include"; then
71631: 
71632:   if test -z "$PDO_OCI_IC_PREFIX/sdk/include" || echo "$PDO_OCI_IC_PREFIX/sdk/include" | grep '^/' >/dev/null ; then
71633:     ai_p=$PDO_OCI_IC_PREFIX/sdk/include
71634:   else
71635: 
71636:     ep_dir=`echo $PDO_OCI_IC_PREFIX/sdk/include|$SED 's%/*[^/][^/]*/*$%%'`
71637: 
71638:     ep_realdir=`(cd "$ep_dir" && pwd)`
71639:     ai_p="$ep_realdir"/`basename "$PDO_OCI_IC_PREFIX/sdk/include"`
71640:   fi
71641: 
71642: 
71643: 
71644:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
71645: 
71646:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
71647:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
71648:     eval "INCLUDEPATH$unique=set"
71649: 
71650:       if test ""; then
71651:         INCLUDES="-I$ai_p $INCLUDES"
71652:       else
71653:         INCLUDES="$INCLUDES -I$ai_p"
71654:       fi
71655: 
71656:   fi
71657: 
71658:   fi
71659: 
71660:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDO_OCI_IC_PREFIX/sdk/include" >&5
71661: $as_echo "$PDO_OCI_IC_PREFIX/sdk/include" >&6; }
71662:     elif test -f $PDO_OCI_IC_PREFIX/$PDO_OCI_CLIENT_DIR/include/oci.h ; then
71663: 
71664:   if test "$PDO_OCI_IC_PREFIX/$PDO_OCI_CLIENT_DIR/include" != "/usr/include"; then
71665: 
71666:   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
71667:     ai_p=$PDO_OCI_IC_PREFIX/$PDO_OCI_CLIENT_DIR/include
71668:   else
71669: 
71670:     ep_dir=`echo $PDO_OCI_IC_PREFIX/$PDO_OCI_CLIENT_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`
71671: 
71672:     ep_realdir=`(cd "$ep_dir" && pwd)`
71673:     ai_p="$ep_realdir"/`basename "$PDO_OCI_IC_PREFIX/$PDO_OCI_CLIENT_DIR/include"`
71674:   fi
71675: 
71676: 
71677: 
71678:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
71679: 
71680:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
71681:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
71682:     eval "INCLUDEPATH$unique=set"
71683: 
71684:       if test ""; then
71685:         INCLUDES="-I$ai_p $INCLUDES"
71686:       else
71687:         INCLUDES="$INCLUDES -I$ai_p"
71688:       fi
71689: 
71690:   fi
71691: 
71692:   fi
71693: 
71694:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDO_OCI_IC_PREFIX/$PDO_OCI_CLIENT_DIR/include" >&5
71695: $as_echo "$PDO_OCI_IC_PREFIX/$PDO_OCI_CLIENT_DIR/include" >&6; }
71696:     else
71697:       as_fn_error $? "I'm too dumb to figure out where the include dir is in your Instant Client install" "$LINENO" 5
71698:     fi
71699:     if test -f "$PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/lib/libclntsh.$SHLIB_SUFFIX_NAME" ; then
71700:     PDO_OCI_LIB_DIR="$PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/lib"
71701:     elif test -f "$PDO_OCI_IC_PREFIX/$PDO_OCI_CLIENT_DIR/lib/libclntsh.$SHLIB_SUFFIX_NAME" ; then
71702:       PDO_OCI_LIB_DIR="$PDO_OCI_IC_PREFIX/$PDO_OCI_CLIENT_DIR/lib"
71703:     elif test -f "$PDO_OCI_IC_PREFIX/libclntsh.$SHLIB_SUFFIX_NAME" ; then
71704:       PDO_OCI_LIB_DIR="$PDO_OCI_IC_PREFIX"
71705:     else
71706:       as_fn_error $? "I'm too dumb to figure out where the libraries are in your Instant Client install" "$LINENO" 5
71707:     fi
71708:     PDO_OCI_VERSION="`echo $PDO_OCI_IC_VERS | cut -d. -f1-2`"
71709:   else
71710: 
71711:   # The cast to long int works around a bug in the HP C Compiler
71712: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
71713: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
71714: # This bug is HP SR number 8606223364.
71715: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
71716: $as_echo_n "checking size of long int... " >&6; }
71717: if ${ac_cv_sizeof_long_int+:} false; then :
71718:   $as_echo_n "(cached) " >&6
71719: else
71720:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int"        "$ac_includes_default"; then :
71721: 
71722: else
71723:   if test "$ac_cv_type_long_int" = yes; then
71724:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
71725: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
71726: as_fn_error 77 "cannot compute sizeof (long int)
71727: See \`config.log' for more details" "$LINENO" 5; }
71728:    else
71729:      ac_cv_sizeof_long_int=0
71730:    fi
71731: fi
71732: 
71733: fi
71734: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
71735: $as_echo "$ac_cv_sizeof_long_int" >&6; }
71736: 
71737: 
71738: 
71739: cat >>confdefs.h <<_ACEOF
71740: #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
71741: _ACEOF
71742: 
71743: 
71744:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're on a 64-bit platform" >&5
71745: $as_echo_n "checking if we're on a 64-bit platform... " >&6; }
71746:   if test "$ac_cv_sizeof_long_int" = "4" ; then
71747:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
71748: $as_echo "no" >&6; }
71749:     TMP_PDO_OCI_LIB_DIR="$PDO_OCI_DIR/lib32"
71750:   else
71751:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
71752: $as_echo "yes" >&6; }
71753:     TMP_PDO_OCI_LIB_DIR="$PDO_OCI_DIR/lib"
71754:   fi
71755: 
71756:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking OCI8 libraries dir" >&5
71757: $as_echo_n "checking OCI8 libraries dir... " >&6; }
71758:   if test -d "$PDO_OCI_DIR/lib" && test ! -d "$PDO_OCI_DIR/lib32"; then
71759:     PDO_OCI_LIB_DIR="$PDO_OCI_DIR/lib"
71760:   elif test ! -d "$PDO_OCI_DIR/lib" && test -d "$PDO_OCI_DIR/lib32"; then
71761:     PDO_OCI_LIB_DIR="$PDO_OCI_DIR/lib32"
71762:   elif test -d "$PDO_OCI_DIR/lib" && test -d "$PDO_OCI_DIR/lib32"; then
71763:     PDO_OCI_LIB_DIR=$TMP_PDO_OCI_LIB_DIR
71764:   else
71765:     as_fn_error $? "Oracle required OCI8 libraries not found" "$LINENO" 5
71766:   fi
71767:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDO_OCI_LIB_DIR" >&5
71768: $as_echo "$PDO_OCI_LIB_DIR" >&6; }
71769: 
71770: 
71771:     if test -d "$PDO_OCI_DIR/rdbms/public"; then
71772: 
71773:   if test "$PDO_OCI_DIR/rdbms/public" != "/usr/include"; then
71774: 
71775:   if test -z "$PDO_OCI_DIR/rdbms/public" || echo "$PDO_OCI_DIR/rdbms/public" | grep '^/' >/dev/null ; then
71776:     ai_p=$PDO_OCI_DIR/rdbms/public
71777:   else
71778: 
71779:     ep_dir=`echo $PDO_OCI_DIR/rdbms/public|$SED 's%/*[^/][^/]*/*$%%'`
71780: 
71781:     ep_realdir=`(cd "$ep_dir" && pwd)`
71782:     ai_p="$ep_realdir"/`basename "$PDO_OCI_DIR/rdbms/public"`
71783:   fi
71784: 
71785: 
71786: 
71787:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
71788: 
71789:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
71790:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
71791:     eval "INCLUDEPATH$unique=set"
71792: 
71793:       if test ""; then
71794:         INCLUDES="-I$ai_p $INCLUDES"
71795:       else
71796:         INCLUDES="$INCLUDES -I$ai_p"
71797:       fi
71798: 
71799:   fi
71800: 
71801:   fi
71802: 
71803:       PDO_OCI_INCLUDES="$PDO_OCI_INCLUDES -I$PDO_OCI_DIR/rdbms/public"
71804:     fi
71805:     if test -d "$PDO_OCI_DIR/rdbms/demo"; then
71806: 
71807:   if test "$PDO_OCI_DIR/rdbms/demo" != "/usr/include"; then
71808: 
71809:   if test -z "$PDO_OCI_DIR/rdbms/demo" || echo "$PDO_OCI_DIR/rdbms/demo" | grep '^/' >/dev/null ; then
71810:     ai_p=$PDO_OCI_DIR/rdbms/demo
71811:   else
71812: 
71813:     ep_dir=`echo $PDO_OCI_DIR/rdbms/demo|$SED 's%/*[^/][^/]*/*$%%'`
71814: 
71815:     ep_realdir=`(cd "$ep_dir" && pwd)`
71816:     ai_p="$ep_realdir"/`basename "$PDO_OCI_DIR/rdbms/demo"`
71817:   fi
71818: 
71819: 
71820: 
71821:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
71822: 
71823:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
71824:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
71825:     eval "INCLUDEPATH$unique=set"
71826: 
71827:       if test ""; then
71828:         INCLUDES="-I$ai_p $INCLUDES"
71829:       else
71830:         INCLUDES="$INCLUDES -I$ai_p"
71831:       fi
71832: 
71833:   fi
71834: 
71835:   fi
71836: 
71837:       PDO_OCI_INCLUDES="$PDO_OCI_INCLUDES -I$PDO_OCI_DIR/rdbms/demo"
71838:     fi
71839:     if test -d "$PDO_OCI_DIR/network/public"; then
71840: 
71841:   if test "$PDO_OCI_DIR/network/public" != "/usr/include"; then
71842: 
71843:   if test -z "$PDO_OCI_DIR/network/public" || echo "$PDO_OCI_DIR/network/public" | grep '^/' >/dev/null ; then
71844:     ai_p=$PDO_OCI_DIR/network/public
71845:   else
71846: 
71847:     ep_dir=`echo $PDO_OCI_DIR/network/public|$SED 's%/*[^/][^/]*/*$%%'`
71848: 
71849:     ep_realdir=`(cd "$ep_dir" && pwd)`
71850:     ai_p="$ep_realdir"/`basename "$PDO_OCI_DIR/network/public"`
71851:   fi
71852: 
71853: 
71854: 
71855:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
71856: 
71857:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
71858:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
71859:     eval "INCLUDEPATH$unique=set"
71860: 
71861:       if test ""; then
71862:         INCLUDES="-I$ai_p $INCLUDES"
71863:       else
71864:         INCLUDES="$INCLUDES -I$ai_p"
71865:       fi
71866: 
71867:   fi
71868: 
71869:   fi
71870: 
71871:       PDO_OCI_INCLUDES="$PDO_OCI_INCLUDES -I$PDO_OCI_DIR/network/public"
71872:     fi
71873:     if test -d "$PDO_OCI_DIR/plsql/public"; then
71874: 
71875:   if test "$PDO_OCI_DIR/plsql/public" != "/usr/include"; then
71876: 
71877:   if test -z "$PDO_OCI_DIR/plsql/public" || echo "$PDO_OCI_DIR/plsql/public" | grep '^/' >/dev/null ; then
71878:     ai_p=$PDO_OCI_DIR/plsql/public
71879:   else
71880: 
71881:     ep_dir=`echo $PDO_OCI_DIR/plsql/public|$SED 's%/*[^/][^/]*/*$%%'`
71882: 
71883:     ep_realdir=`(cd "$ep_dir" && pwd)`
71884:     ai_p="$ep_realdir"/`basename "$PDO_OCI_DIR/plsql/public"`
71885:   fi
71886: 
71887: 
71888: 
71889:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
71890: 
71891:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
71892:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
71893:     eval "INCLUDEPATH$unique=set"
71894: 
71895:       if test ""; then
71896:         INCLUDES="-I$ai_p $INCLUDES"
71897:       else
71898:         INCLUDES="$INCLUDES -I$ai_p"
71899:       fi
71900: 
71901:   fi
71902: 
71903:   fi
71904: 
71905:       PDO_OCI_INCLUDES="$PDO_OCI_INCLUDES -I$PDO_OCI_DIR/plsql/public"
71906:     fi
71907:     if test -d "$PDO_OCI_DIR/include"; then
71908: 
71909:   if test "$PDO_OCI_DIR/include" != "/usr/include"; then
71910: 
71911:   if test -z "$PDO_OCI_DIR/include" || echo "$PDO_OCI_DIR/include" | grep '^/' >/dev/null ; then
71912:     ai_p=$PDO_OCI_DIR/include
71913:   else
71914: 
71915:     ep_dir=`echo $PDO_OCI_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`
71916: 
71917:     ep_realdir=`(cd "$ep_dir" && pwd)`
71918:     ai_p="$ep_realdir"/`basename "$PDO_OCI_DIR/include"`
71919:   fi
71920: 
71921: 
71922: 
71923:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
71924: 
71925:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
71926:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
71927:     eval "INCLUDEPATH$unique=set"
71928: 
71929:       if test ""; then
71930:         INCLUDES="-I$ai_p $INCLUDES"
71931:       else
71932:         INCLUDES="$INCLUDES -I$ai_p"
71933:       fi
71934: 
71935:   fi
71936: 
71937:   fi
71938: 
71939:       PDO_OCI_INCLUDES="$PDO_OCI_INCLUDES -I$PDO_OCI_DIR/include"
71940:     fi
71941: 
71942:     if test -f "$PDO_OCI_LIB_DIR/sysliblist"; then
71943: 
71944:   for ac_i in `cat $PDO_OCI_LIB_DIR/sysliblist`; do
71945:     case $ac_i in
71946:     -pthread)
71947:       if test "$ext_shared" = "yes"; then
71948:         PDO_OCI_SYSLIB="$PDO_OCI_SYSLIB -pthread"
71949:       else
71950: 
71951: 
71952:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
71953: 
71954:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
71955:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
71956:     eval "EXTRA_LDFLAGS$unique=set"
71957:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
71958:   fi
71959: 
71960:       fi
71961:     ;;
71962:     -l*)
71963:       ac_ii=`echo $ac_i|cut -c 3-`
71964: 
71965: 
71966:   case $ac_ii in
71967:   c|c_r|pthread*) ;;
71968:   *)
71969:     if test "$ext_shared" = "yes"; then
71970:         PDO_OCI_SYSLIB="$PDO_OCI_SYSLIB -l$ac_ii"
71971:     else
71972: 
71973: 
71974:   case $ac_ii in
71975:   c|c_r|pthread*) ;;
71976:   *)
71977:       LIBS="$LIBS -l$ac_ii"
71978:    ;;
71979:   esac
71980: 
71981: 
71982:     fi
71983:    ;;
71984:   esac
71985: 
71986: 
71987:     ;;
71988:     -L*)
71989:       ac_ii=`echo $ac_i|cut -c 3-`
71990: 
71991:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
71992: 
71993:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
71994:     ai_p=$ac_ii
71995:   else
71996: 
71997:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
71998: 
71999:     ep_realdir=`(cd "$ep_dir" && pwd)`
72000:     ai_p="$ep_realdir"/`basename "$ac_ii"`
72001:   fi
72002: 
72003: 
72004:       if test "$ext_shared" = "yes"; then
72005:         PDO_OCI_SYSLIB="-L$ai_p $PDO_OCI_SYSLIB"
72006:         test -n "$ld_runpath_switch" && PDO_OCI_SYSLIB="$ld_runpath_switch$ai_p $PDO_OCI_SYSLIB"
72007:       else
72008: 
72009: 
72010: 
72011:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
72012: 
72013:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
72014:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
72015:     eval "LIBPATH$unique=set"
72016: 
72017:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
72018:     LDFLAGS="$LDFLAGS -L$ai_p"
72019:     PHP_RPATHS="$PHP_RPATHS $ai_p"
72020: 
72021:   fi
72022: 
72023: 
72024:       fi
72025: 
72026:   fi
72027: 
72028:     ;;
72029:     esac
72030:   done
72031: 
72032:     elif test -f "$PDO_OCI_DIR/rdbms/lib/sysliblist"; then
72033: 
72034:   for ac_i in `cat $PDO_OCI_DIR/rdbms/lib/sysliblist`; do
72035:     case $ac_i in
72036:     -pthread)
72037:       if test "$ext_shared" = "yes"; then
72038:         PDO_OCI_SYSLIB="$PDO_OCI_SYSLIB -pthread"
72039:       else
72040: 
72041: 
72042:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
72043: 
72044:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
72045:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
72046:     eval "EXTRA_LDFLAGS$unique=set"
72047:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
72048:   fi
72049: 
72050:       fi
72051:     ;;
72052:     -l*)
72053:       ac_ii=`echo $ac_i|cut -c 3-`
72054: 
72055: 
72056:   case $ac_ii in
72057:   c|c_r|pthread*) ;;
72058:   *)
72059:     if test "$ext_shared" = "yes"; then
72060:         PDO_OCI_SYSLIB="$PDO_OCI_SYSLIB -l$ac_ii"
72061:     else
72062: 
72063: 
72064:   case $ac_ii in
72065:   c|c_r|pthread*) ;;
72066:   *)
72067:       LIBS="$LIBS -l$ac_ii"
72068:    ;;
72069:   esac
72070: 
72071: 
72072:     fi
72073:    ;;
72074:   esac
72075: 
72076: 
72077:     ;;
72078:     -L*)
72079:       ac_ii=`echo $ac_i|cut -c 3-`
72080: 
72081:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
72082: 
72083:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
72084:     ai_p=$ac_ii
72085:   else
72086: 
72087:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
72088: 
72089:     ep_realdir=`(cd "$ep_dir" && pwd)`
72090:     ai_p="$ep_realdir"/`basename "$ac_ii"`
72091:   fi
72092: 
72093: 
72094:       if test "$ext_shared" = "yes"; then
72095:         PDO_OCI_SYSLIB="-L$ai_p $PDO_OCI_SYSLIB"
72096:         test -n "$ld_runpath_switch" && PDO_OCI_SYSLIB="$ld_runpath_switch$ai_p $PDO_OCI_SYSLIB"
72097:       else
72098: 
72099: 
72100: 
72101:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
72102: 
72103:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
72104:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
72105:     eval "LIBPATH$unique=set"
72106: 
72107:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
72108:     LDFLAGS="$LDFLAGS -L$ai_p"
72109:     PHP_RPATHS="$PHP_RPATHS $ai_p"
72110: 
72111:   fi
72112: 
72113: 
72114:       fi
72115: 
72116:   fi
72117: 
72118:     ;;
72119:     esac
72120:   done
72121: 
72122:     fi
72123: 
72124:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking Oracle version" >&5
72125: $as_echo_n "checking Oracle version... " >&6; }
72126:   for OCI_VER in $SUPPORTED_LIB_VERS; do
72127:     if test -f $PDO_OCI_DIR/lib/libclntsh.$SHLIB_SUFFIX_NAME.$OCI_VER; then
72128:       PDO_OCI_VERSION="$OCI_VER"
72129:     fi
72130:   done
72131:   if test -z "$PDO_OCI_VERSION"; then
72132:     as_fn_error $? "Oracle required OCI8 libraries not found under $PDO_OCI_DIR" "$LINENO" 5
72133:   fi
72134:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDO_OCI_VERSION" >&5
72135: $as_echo "$PDO_OCI_VERSION" >&6; }
72136: 
72137:   fi
72138: 
72139:   case $PDO_OCI_VERSION in
72140:     9.0|10.1|10.2|11.1|11.2|12.1)
72141: 
72142: 
72143:   case clntsh in
72144:   c|c_r|pthread*) ;;
72145:   *)
72146:     if test "$ext_shared" = "yes"; then
72147:         PDO_OCI_SHARED_LIBADD="$PDO_OCI_SHARED_LIBADD -lclntsh"
72148:     else
72149: 
72150: 
72151:   case clntsh in
72152:   c|c_r|pthread*) ;;
72153:   *)
72154:       LIBS="$LIBS -lclntsh"
72155:    ;;
72156:   esac
72157: 
72158: 
72159:     fi
72160:    ;;
72161:   esac
72162: 
72163: 
72164:       ;;
72165: 
72166:     *)
72167:       as_fn_error $? "Unsupported Oracle version $PDO_OCI_VERSION" "$LINENO" 5
72168:       ;;
72169:   esac
72170: 
72171: 
72172:   if test "$PDO_OCI_LIB_DIR" != "/usr/$PHP_LIBDIR" && test "$PDO_OCI_LIB_DIR" != "/usr/lib"; then
72173: 
72174:   if test -z "$PDO_OCI_LIB_DIR" || echo "$PDO_OCI_LIB_DIR" | grep '^/' >/dev/null ; then
72175:     ai_p=$PDO_OCI_LIB_DIR
72176:   else
72177: 
72178:     ep_dir=`echo $PDO_OCI_LIB_DIR|$SED 's%/*[^/][^/]*/*$%%'`
72179: 
72180:     ep_realdir=`(cd "$ep_dir" && pwd)`
72181:     ai_p="$ep_realdir"/`basename "$PDO_OCI_LIB_DIR"`
72182:   fi
72183: 
72184: 
72185:       if test "$ext_shared" = "yes"; then
72186:         PDO_OCI_SHARED_LIBADD="-L$ai_p $PDO_OCI_SHARED_LIBADD"
72187:         test -n "$ld_runpath_switch" && PDO_OCI_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_OCI_SHARED_LIBADD"
72188:       else
72189: 
72190: 
72191: 
72192:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
72193: 
72194:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
72195:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
72196:     eval "LIBPATH$unique=set"
72197: 
72198:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
72199:     LDFLAGS="$LDFLAGS -L$ai_p"
72200:     PHP_RPATHS="$PHP_RPATHS $ai_p"
72201: 
72202:   fi
72203: 
72204: 
72205:       fi
72206: 
72207:   fi
72208: 
72209: 
72210: 
72211:   save_old_LDFLAGS=$LDFLAGS
72212:   ac_stuff="
72213:     -L$PDO_OCI_LIB_DIR $PDO_OCI_SHARED_LIBADD
72214:   "
72215: 
72216:   save_ext_shared=$ext_shared
72217:   ext_shared=yes
72218: 
72219:   for ac_i in $ac_stuff; do
72220:     case $ac_i in
72221:     -pthread)
72222:       if test "$ext_shared" = "yes"; then
72223:         LDFLAGS="$LDFLAGS -pthread"
72224:       else
72225: 
72226: 
72227:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
72228: 
72229:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
72230:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
72231:     eval "EXTRA_LDFLAGS$unique=set"
72232:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
72233:   fi
72234: 
72235:       fi
72236:     ;;
72237:     -l*)
72238:       ac_ii=`echo $ac_i|cut -c 3-`
72239: 
72240: 
72241:   case $ac_ii in
72242:   c|c_r|pthread*) ;;
72243:   *)
72244:     if test "$ext_shared" = "yes"; then
72245:         LDFLAGS="$LDFLAGS -l$ac_ii"
72246:     else
72247: 
72248: 
72249:   case $ac_ii in
72250:   c|c_r|pthread*) ;;
72251:   *)
72252:       LIBS="$LIBS -l$ac_ii"
72253:    ;;
72254:   esac
72255: 
72256: 
72257:     fi
72258:    ;;
72259:   esac
72260: 
72261: 
72262:     ;;
72263:     -L*)
72264:       ac_ii=`echo $ac_i|cut -c 3-`
72265: 
72266:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
72267: 
72268:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
72269:     ai_p=$ac_ii
72270:   else
72271: 
72272:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
72273: 
72274:     ep_realdir=`(cd "$ep_dir" && pwd)`
72275:     ai_p="$ep_realdir"/`basename "$ac_ii"`
72276:   fi
72277: 
72278: 
72279:       if test "$ext_shared" = "yes"; then
72280:         LDFLAGS="-L$ai_p $LDFLAGS"
72281:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
72282:       else
72283: 
72284: 
72285: 
72286:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
72287: 
72288:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
72289:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
72290:     eval "LIBPATH$unique=set"
72291: 
72292:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
72293:     LDFLAGS="$LDFLAGS -L$ai_p"
72294:     PHP_RPATHS="$PHP_RPATHS $ai_p"
72295: 
72296:   fi
72297: 
72298: 
72299:       fi
72300: 
72301:   fi
72302: 
72303:     ;;
72304:     esac
72305:   done
72306: 
72307:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCIEnvCreate in -lclntsh" >&5
72308: $as_echo_n "checking for OCIEnvCreate in -lclntsh... " >&6; }
72309: if ${ac_cv_lib_clntsh_OCIEnvCreate+:} false; then :
72310:   $as_echo_n "(cached) " >&6
72311: else
72312:   ac_check_lib_save_LIBS=$LIBS
72313: LIBS="-lclntsh  $LIBS"
72314: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
72315: /* end confdefs.h.  */
72316: 
72317: /* Override any GCC internal prototype to avoid an error.
72318:    Use char because int might match the return type of a GCC
72319:    builtin and then its argument prototype would still apply.  */
72320: #ifdef __cplusplus
72321: extern "C"
72322: #endif
72323: char OCIEnvCreate ();
72324: int
72325: main ()
72326: {
72327: return OCIEnvCreate ();
72328:   ;
72329:   return 0;
72330: }
72331: _ACEOF
72332: if ac_fn_c_try_link "$LINENO"; then :
72333:   ac_cv_lib_clntsh_OCIEnvCreate=yes
72334: else
72335:   ac_cv_lib_clntsh_OCIEnvCreate=no
72336: fi
72337: rm -f core conftest.err conftest.$ac_objext \
72338:     conftest$ac_exeext conftest.$ac_ext
72339: LIBS=$ac_check_lib_save_LIBS
72340: fi
72341: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clntsh_OCIEnvCreate" >&5
72342: $as_echo "$ac_cv_lib_clntsh_OCIEnvCreate" >&6; }
72343: if test "x$ac_cv_lib_clntsh_OCIEnvCreate" = xyes; then :
72344: 
72345:     LDFLAGS=$save_old_LDFLAGS
72346:     ext_shared=$save_ext_shared
72347: 
72348: 
72349: $as_echo "#define HAVE_OCIENVCREATE 1" >>confdefs.h
72350: 
72351: 
72352: 
72353: else
72354: 
72355:     LDFLAGS=$save_old_LDFLAGS
72356:     ext_shared=$save_ext_shared
72357:     unset ac_cv_lib_clntsh_OCIEnvCreate
72358: 
72359: 
72360: fi
72361: 
72362: 
72363: 
72364:   save_old_LDFLAGS=$LDFLAGS
72365:   ac_stuff="
72366:     -L$PDO_OCI_LIB_DIR $PDO_OCI_SHARED_LIBADD
72367:   "
72368: 
72369:   save_ext_shared=$ext_shared
72370:   ext_shared=yes
72371: 
72372:   for ac_i in $ac_stuff; do
72373:     case $ac_i in
72374:     -pthread)
72375:       if test "$ext_shared" = "yes"; then
72376:         LDFLAGS="$LDFLAGS -pthread"
72377:       else
72378: 
72379: 
72380:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
72381: 
72382:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
72383:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
72384:     eval "EXTRA_LDFLAGS$unique=set"
72385:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
72386:   fi
72387: 
72388:       fi
72389:     ;;
72390:     -l*)
72391:       ac_ii=`echo $ac_i|cut -c 3-`
72392: 
72393: 
72394:   case $ac_ii in
72395:   c|c_r|pthread*) ;;
72396:   *)
72397:     if test "$ext_shared" = "yes"; then
72398:         LDFLAGS="$LDFLAGS -l$ac_ii"
72399:     else
72400: 
72401: 
72402:   case $ac_ii in
72403:   c|c_r|pthread*) ;;
72404:   *)
72405:       LIBS="$LIBS -l$ac_ii"
72406:    ;;
72407:   esac
72408: 
72409: 
72410:     fi
72411:    ;;
72412:   esac
72413: 
72414: 
72415:     ;;
72416:     -L*)
72417:       ac_ii=`echo $ac_i|cut -c 3-`
72418: 
72419:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
72420: 
72421:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
72422:     ai_p=$ac_ii
72423:   else
72424: 
72425:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
72426: 
72427:     ep_realdir=`(cd "$ep_dir" && pwd)`
72428:     ai_p="$ep_realdir"/`basename "$ac_ii"`
72429:   fi
72430: 
72431: 
72432:       if test "$ext_shared" = "yes"; then
72433:         LDFLAGS="-L$ai_p $LDFLAGS"
72434:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
72435:       else
72436: 
72437: 
72438: 
72439:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
72440: 
72441:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
72442:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
72443:     eval "LIBPATH$unique=set"
72444: 
72445:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
72446:     LDFLAGS="$LDFLAGS -L$ai_p"
72447:     PHP_RPATHS="$PHP_RPATHS $ai_p"
72448: 
72449:   fi
72450: 
72451: 
72452:       fi
72453: 
72454:   fi
72455: 
72456:     ;;
72457:     esac
72458:   done
72459: 
72460:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCIEnvNlsCreate in -lclntsh" >&5
72461: $as_echo_n "checking for OCIEnvNlsCreate in -lclntsh... " >&6; }
72462: if ${ac_cv_lib_clntsh_OCIEnvNlsCreate+:} false; then :
72463:   $as_echo_n "(cached) " >&6
72464: else
72465:   ac_check_lib_save_LIBS=$LIBS
72466: LIBS="-lclntsh  $LIBS"
72467: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
72468: /* end confdefs.h.  */
72469: 
72470: /* Override any GCC internal prototype to avoid an error.
72471:    Use char because int might match the return type of a GCC
72472:    builtin and then its argument prototype would still apply.  */
72473: #ifdef __cplusplus
72474: extern "C"
72475: #endif
72476: char OCIEnvNlsCreate ();
72477: int
72478: main ()
72479: {
72480: return OCIEnvNlsCreate ();
72481:   ;
72482:   return 0;
72483: }
72484: _ACEOF
72485: if ac_fn_c_try_link "$LINENO"; then :
72486:   ac_cv_lib_clntsh_OCIEnvNlsCreate=yes
72487: else
72488:   ac_cv_lib_clntsh_OCIEnvNlsCreate=no
72489: fi
72490: rm -f core conftest.err conftest.$ac_objext \
72491:     conftest$ac_exeext conftest.$ac_ext
72492: LIBS=$ac_check_lib_save_LIBS
72493: fi
72494: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clntsh_OCIEnvNlsCreate" >&5
72495: $as_echo "$ac_cv_lib_clntsh_OCIEnvNlsCreate" >&6; }
72496: if test "x$ac_cv_lib_clntsh_OCIEnvNlsCreate" = xyes; then :
72497: 
72498:     LDFLAGS=$save_old_LDFLAGS
72499:     ext_shared=$save_ext_shared
72500: 
72501: 
72502: $as_echo "#define HAVE_OCIENVNLSCREATE 1" >>confdefs.h
72503: 
72504: 
72505: 
72506: else
72507: 
72508:     LDFLAGS=$save_old_LDFLAGS
72509:     ext_shared=$save_ext_shared
72510:     unset ac_cv_lib_clntsh_OCIEnvNlsCreate
72511: 
72512: 
72513: fi
72514: 
72515: 
72516: 
72517:   save_old_LDFLAGS=$LDFLAGS
72518:   ac_stuff="
72519:     -L$PDO_OCI_LIB_DIR $PDO_OCI_SHARED_LIBADD
72520:   "
72521: 
72522:   save_ext_shared=$ext_shared
72523:   ext_shared=yes
72524: 
72525:   for ac_i in $ac_stuff; do
72526:     case $ac_i in
72527:     -pthread)
72528:       if test "$ext_shared" = "yes"; then
72529:         LDFLAGS="$LDFLAGS -pthread"
72530:       else
72531: 
72532: 
72533:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
72534: 
72535:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
72536:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
72537:     eval "EXTRA_LDFLAGS$unique=set"
72538:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
72539:   fi
72540: 
72541:       fi
72542:     ;;
72543:     -l*)
72544:       ac_ii=`echo $ac_i|cut -c 3-`
72545: 
72546: 
72547:   case $ac_ii in
72548:   c|c_r|pthread*) ;;
72549:   *)
72550:     if test "$ext_shared" = "yes"; then
72551:         LDFLAGS="$LDFLAGS -l$ac_ii"
72552:     else
72553: 
72554: 
72555:   case $ac_ii in
72556:   c|c_r|pthread*) ;;
72557:   *)
72558:       LIBS="$LIBS -l$ac_ii"
72559:    ;;
72560:   esac
72561: 
72562: 
72563:     fi
72564:    ;;
72565:   esac
72566: 
72567: 
72568:     ;;
72569:     -L*)
72570:       ac_ii=`echo $ac_i|cut -c 3-`
72571: 
72572:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
72573: 
72574:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
72575:     ai_p=$ac_ii
72576:   else
72577: 
72578:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
72579: 
72580:     ep_realdir=`(cd "$ep_dir" && pwd)`
72581:     ai_p="$ep_realdir"/`basename "$ac_ii"`
72582:   fi
72583: 
72584: 
72585:       if test "$ext_shared" = "yes"; then
72586:         LDFLAGS="-L$ai_p $LDFLAGS"
72587:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
72588:       else
72589: 
72590: 
72591: 
72592:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
72593: 
72594:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
72595:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
72596:     eval "LIBPATH$unique=set"
72597: 
72598:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
72599:     LDFLAGS="$LDFLAGS -L$ai_p"
72600:     PHP_RPATHS="$PHP_RPATHS $ai_p"
72601: 
72602:   fi
72603: 
72604: 
72605:       fi
72606: 
72607:   fi
72608: 
72609:     ;;
72610:     esac
72611:   done
72612: 
72613:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCILobIsTemporary in -lclntsh" >&5
72614: $as_echo_n "checking for OCILobIsTemporary in -lclntsh... " >&6; }
72615: if ${ac_cv_lib_clntsh_OCILobIsTemporary+:} false; then :
72616:   $as_echo_n "(cached) " >&6
72617: else
72618:   ac_check_lib_save_LIBS=$LIBS
72619: LIBS="-lclntsh  $LIBS"
72620: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
72621: /* end confdefs.h.  */
72622: 
72623: /* Override any GCC internal prototype to avoid an error.
72624:    Use char because int might match the return type of a GCC
72625:    builtin and then its argument prototype would still apply.  */
72626: #ifdef __cplusplus
72627: extern "C"
72628: #endif
72629: char OCILobIsTemporary ();
72630: int
72631: main ()
72632: {
72633: return OCILobIsTemporary ();
72634:   ;
72635:   return 0;
72636: }
72637: _ACEOF
72638: if ac_fn_c_try_link "$LINENO"; then :
72639:   ac_cv_lib_clntsh_OCILobIsTemporary=yes
72640: else
72641:   ac_cv_lib_clntsh_OCILobIsTemporary=no
72642: fi
72643: rm -f core conftest.err conftest.$ac_objext \
72644:     conftest$ac_exeext conftest.$ac_ext
72645: LIBS=$ac_check_lib_save_LIBS
72646: fi
72647: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clntsh_OCILobIsTemporary" >&5
72648: $as_echo "$ac_cv_lib_clntsh_OCILobIsTemporary" >&6; }
72649: if test "x$ac_cv_lib_clntsh_OCILobIsTemporary" = xyes; then :
72650: 
72651:     LDFLAGS=$save_old_LDFLAGS
72652:     ext_shared=$save_ext_shared
72653: 
72654: 
72655: $as_echo "#define HAVE_OCILOBISTEMPORARY 1" >>confdefs.h
72656: 
72657: 
72658: 
72659: else
72660: 
72661:     LDFLAGS=$save_old_LDFLAGS
72662:     ext_shared=$save_ext_shared
72663:     unset ac_cv_lib_clntsh_OCILobIsTemporary
72664: 
72665: 
72666:   save_old_LDFLAGS=$LDFLAGS
72667:   ac_stuff="
72668:       -L$PDO_OCI_LIB_DIR $PDO_OCI_SHARED_LIBADD
72669:     "
72670: 
72671:   save_ext_shared=$ext_shared
72672:   ext_shared=yes
72673: 
72674:   for ac_i in $ac_stuff; do
72675:     case $ac_i in
72676:     -pthread)
72677:       if test "$ext_shared" = "yes"; then
72678:         LDFLAGS="$LDFLAGS -pthread"
72679:       else
72680: 
72681: 
72682:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
72683: 
72684:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
72685:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
72686:     eval "EXTRA_LDFLAGS$unique=set"
72687:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
72688:   fi
72689: 
72690:       fi
72691:     ;;
72692:     -l*)
72693:       ac_ii=`echo $ac_i|cut -c 3-`
72694: 
72695: 
72696:   case $ac_ii in
72697:   c|c_r|pthread*) ;;
72698:   *)
72699:     if test "$ext_shared" = "yes"; then
72700:         LDFLAGS="$LDFLAGS -l$ac_ii"
72701:     else
72702: 
72703: 
72704:   case $ac_ii in
72705:   c|c_r|pthread*) ;;
72706:   *)
72707:       LIBS="$LIBS -l$ac_ii"
72708:    ;;
72709:   esac
72710: 
72711: 
72712:     fi
72713:    ;;
72714:   esac
72715: 
72716: 
72717:     ;;
72718:     -L*)
72719:       ac_ii=`echo $ac_i|cut -c 3-`
72720: 
72721:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
72722: 
72723:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
72724:     ai_p=$ac_ii
72725:   else
72726: 
72727:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
72728: 
72729:     ep_realdir=`(cd "$ep_dir" && pwd)`
72730:     ai_p="$ep_realdir"/`basename "$ac_ii"`
72731:   fi
72732: 
72733: 
72734:       if test "$ext_shared" = "yes"; then
72735:         LDFLAGS="-L$ai_p $LDFLAGS"
72736:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
72737:       else
72738: 
72739: 
72740: 
72741:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
72742: 
72743:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
72744:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
72745:     eval "LIBPATH$unique=set"
72746: 
72747:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
72748:     LDFLAGS="$LDFLAGS -L$ai_p"
72749:     PHP_RPATHS="$PHP_RPATHS $ai_p"
72750: 
72751:   fi
72752: 
72753: 
72754:       fi
72755: 
72756:   fi
72757: 
72758:     ;;
72759:     esac
72760:   done
72761: 
72762:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCILobIsTemporary in -locijdbc8" >&5
72763: $as_echo_n "checking for OCILobIsTemporary in -locijdbc8... " >&6; }
72764: if ${ac_cv_lib_ocijdbc8_OCILobIsTemporary+:} false; then :
72765:   $as_echo_n "(cached) " >&6
72766: else
72767:   ac_check_lib_save_LIBS=$LIBS
72768: LIBS="-locijdbc8  $LIBS"
72769: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
72770: /* end confdefs.h.  */
72771: 
72772: /* Override any GCC internal prototype to avoid an error.
72773:    Use char because int might match the return type of a GCC
72774:    builtin and then its argument prototype would still apply.  */
72775: #ifdef __cplusplus
72776: extern "C"
72777: #endif
72778: char OCILobIsTemporary ();
72779: int
72780: main ()
72781: {
72782: return OCILobIsTemporary ();
72783:   ;
72784:   return 0;
72785: }
72786: _ACEOF
72787: if ac_fn_c_try_link "$LINENO"; then :
72788:   ac_cv_lib_ocijdbc8_OCILobIsTemporary=yes
72789: else
72790:   ac_cv_lib_ocijdbc8_OCILobIsTemporary=no
72791: fi
72792: rm -f core conftest.err conftest.$ac_objext \
72793:     conftest$ac_exeext conftest.$ac_ext
72794: LIBS=$ac_check_lib_save_LIBS
72795: fi
72796: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ocijdbc8_OCILobIsTemporary" >&5
72797: $as_echo "$ac_cv_lib_ocijdbc8_OCILobIsTemporary" >&6; }
72798: if test "x$ac_cv_lib_ocijdbc8_OCILobIsTemporary" = xyes; then :
72799: 
72800:     LDFLAGS=$save_old_LDFLAGS
72801:     ext_shared=$save_ext_shared
72802: 
72803: 
72804: 
72805:   case ocijdbc8 in
72806:   c|c_r|pthread*) ;;
72807:   *)
72808:     if test "$ext_shared" = "yes"; then
72809:         PDO_OCI_SHARED_LIBADD="$PDO_OCI_SHARED_LIBADD -locijdbc8"
72810:     else
72811: 
72812: 
72813:   case ocijdbc8 in
72814:   c|c_r|pthread*) ;;
72815:   *)
72816:       LIBS="$LIBS -locijdbc8"
72817:    ;;
72818:   esac
72819: 
72820: 
72821:     fi
72822:    ;;
72823:   esac
72824: 
72825: 
72826: 
72827: $as_echo "#define HAVE_OCILOBISTEMPORARY 1" >>confdefs.h
72828: 
72829: 
72830: 
72831: else
72832: 
72833:     LDFLAGS=$save_old_LDFLAGS
72834:     ext_shared=$save_ext_shared
72835:     unset ac_cv_lib_ocijdbc8_OCILobIsTemporary
72836: 
72837: 
72838: fi
72839: 
72840: 
72841: 
72842: fi
72843: 
72844: 
72845: 
72846:   save_old_LDFLAGS=$LDFLAGS
72847:   ac_stuff="
72848:     -L$PDO_OCI_LIB_DIR $PDO_OCI_SHARED_LIBADD
72849:   "
72850: 
72851:   save_ext_shared=$ext_shared
72852:   ext_shared=yes
72853: 
72854:   for ac_i in $ac_stuff; do
72855:     case $ac_i in
72856:     -pthread)
72857:       if test "$ext_shared" = "yes"; then
72858:         LDFLAGS="$LDFLAGS -pthread"
72859:       else
72860: 
72861: 
72862:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
72863: 
72864:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
72865:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
72866:     eval "EXTRA_LDFLAGS$unique=set"
72867:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
72868:   fi
72869: 
72870:       fi
72871:     ;;
72872:     -l*)
72873:       ac_ii=`echo $ac_i|cut -c 3-`
72874: 
72875: 
72876:   case $ac_ii in
72877:   c|c_r|pthread*) ;;
72878:   *)
72879:     if test "$ext_shared" = "yes"; then
72880:         LDFLAGS="$LDFLAGS -l$ac_ii"
72881:     else
72882: 
72883: 
72884:   case $ac_ii in
72885:   c|c_r|pthread*) ;;
72886:   *)
72887:       LIBS="$LIBS -l$ac_ii"
72888:    ;;
72889:   esac
72890: 
72891: 
72892:     fi
72893:    ;;
72894:   esac
72895: 
72896: 
72897:     ;;
72898:     -L*)
72899:       ac_ii=`echo $ac_i|cut -c 3-`
72900: 
72901:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
72902: 
72903:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
72904:     ai_p=$ac_ii
72905:   else
72906: 
72907:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
72908: 
72909:     ep_realdir=`(cd "$ep_dir" && pwd)`
72910:     ai_p="$ep_realdir"/`basename "$ac_ii"`
72911:   fi
72912: 
72913: 
72914:       if test "$ext_shared" = "yes"; then
72915:         LDFLAGS="-L$ai_p $LDFLAGS"
72916:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
72917:       else
72918: 
72919: 
72920: 
72921:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
72922: 
72923:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
72924:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
72925:     eval "LIBPATH$unique=set"
72926: 
72927:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
72928:     LDFLAGS="$LDFLAGS -L$ai_p"
72929:     PHP_RPATHS="$PHP_RPATHS $ai_p"
72930: 
72931:   fi
72932: 
72933: 
72934:       fi
72935: 
72936:   fi
72937: 
72938:     ;;
72939:     esac
72940:   done
72941: 
72942:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCICollAssign in -lclntsh" >&5
72943: $as_echo_n "checking for OCICollAssign in -lclntsh... " >&6; }
72944: if ${ac_cv_lib_clntsh_OCICollAssign+:} false; then :
72945:   $as_echo_n "(cached) " >&6
72946: else
72947:   ac_check_lib_save_LIBS=$LIBS
72948: LIBS="-lclntsh  $LIBS"
72949: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
72950: /* end confdefs.h.  */
72951: 
72952: /* Override any GCC internal prototype to avoid an error.
72953:    Use char because int might match the return type of a GCC
72954:    builtin and then its argument prototype would still apply.  */
72955: #ifdef __cplusplus
72956: extern "C"
72957: #endif
72958: char OCICollAssign ();
72959: int
72960: main ()
72961: {
72962: return OCICollAssign ();
72963:   ;
72964:   return 0;
72965: }
72966: _ACEOF
72967: if ac_fn_c_try_link "$LINENO"; then :
72968:   ac_cv_lib_clntsh_OCICollAssign=yes
72969: else
72970:   ac_cv_lib_clntsh_OCICollAssign=no
72971: fi
72972: rm -f core conftest.err conftest.$ac_objext \
72973:     conftest$ac_exeext conftest.$ac_ext
72974: LIBS=$ac_check_lib_save_LIBS
72975: fi
72976: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clntsh_OCICollAssign" >&5
72977: $as_echo "$ac_cv_lib_clntsh_OCICollAssign" >&6; }
72978: if test "x$ac_cv_lib_clntsh_OCICollAssign" = xyes; then :
72979: 
72980:     LDFLAGS=$save_old_LDFLAGS
72981:     ext_shared=$save_ext_shared
72982: 
72983: 
72984: $as_echo "#define HAVE_OCICOLLASSIGN 1" >>confdefs.h
72985: 
72986: 
72987: 
72988: else
72989: 
72990:     LDFLAGS=$save_old_LDFLAGS
72991:     ext_shared=$save_ext_shared
72992:     unset ac_cv_lib_clntsh_OCICollAssign
72993: 
72994: 
72995: fi
72996: 
72997: 
72998: 
72999:   save_old_LDFLAGS=$LDFLAGS
73000:   ac_stuff="
73001:     -L$PDO_OCI_LIB_DIR $PDO_OCI_SHARED_LIBADD
73002:   "
73003: 
73004:   save_ext_shared=$ext_shared
73005:   ext_shared=yes
73006: 
73007:   for ac_i in $ac_stuff; do
73008:     case $ac_i in
73009:     -pthread)
73010:       if test "$ext_shared" = "yes"; then
73011:         LDFLAGS="$LDFLAGS -pthread"
73012:       else
73013: 
73014: 
73015:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
73016: 
73017:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
73018:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
73019:     eval "EXTRA_LDFLAGS$unique=set"
73020:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
73021:   fi
73022: 
73023:       fi
73024:     ;;
73025:     -l*)
73026:       ac_ii=`echo $ac_i|cut -c 3-`
73027: 
73028: 
73029:   case $ac_ii in
73030:   c|c_r|pthread*) ;;
73031:   *)
73032:     if test "$ext_shared" = "yes"; then
73033:         LDFLAGS="$LDFLAGS -l$ac_ii"
73034:     else
73035: 
73036: 
73037:   case $ac_ii in
73038:   c|c_r|pthread*) ;;
73039:   *)
73040:       LIBS="$LIBS -l$ac_ii"
73041:    ;;
73042:   esac
73043: 
73044: 
73045:     fi
73046:    ;;
73047:   esac
73048: 
73049: 
73050:     ;;
73051:     -L*)
73052:       ac_ii=`echo $ac_i|cut -c 3-`
73053: 
73054:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
73055: 
73056:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
73057:     ai_p=$ac_ii
73058:   else
73059: 
73060:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
73061: 
73062:     ep_realdir=`(cd "$ep_dir" && pwd)`
73063:     ai_p="$ep_realdir"/`basename "$ac_ii"`
73064:   fi
73065: 
73066: 
73067:       if test "$ext_shared" = "yes"; then
73068:         LDFLAGS="-L$ai_p $LDFLAGS"
73069:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
73070:       else
73071: 
73072: 
73073: 
73074:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
73075: 
73076:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
73077:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
73078:     eval "LIBPATH$unique=set"
73079: 
73080:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
73081:     LDFLAGS="$LDFLAGS -L$ai_p"
73082:     PHP_RPATHS="$PHP_RPATHS $ai_p"
73083: 
73084:   fi
73085: 
73086: 
73087:       fi
73088: 
73089:   fi
73090: 
73091:     ;;
73092:     esac
73093:   done
73094: 
73095:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCIStmtFetch2 in -lclntsh" >&5
73096: $as_echo_n "checking for OCIStmtFetch2 in -lclntsh... " >&6; }
73097: if ${ac_cv_lib_clntsh_OCIStmtFetch2+:} false; then :
73098:   $as_echo_n "(cached) " >&6
73099: else
73100:   ac_check_lib_save_LIBS=$LIBS
73101: LIBS="-lclntsh  $LIBS"
73102: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
73103: /* end confdefs.h.  */
73104: 
73105: /* Override any GCC internal prototype to avoid an error.
73106:    Use char because int might match the return type of a GCC
73107:    builtin and then its argument prototype would still apply.  */
73108: #ifdef __cplusplus
73109: extern "C"
73110: #endif
73111: char OCIStmtFetch2 ();
73112: int
73113: main ()
73114: {
73115: return OCIStmtFetch2 ();
73116:   ;
73117:   return 0;
73118: }
73119: _ACEOF
73120: if ac_fn_c_try_link "$LINENO"; then :
73121:   ac_cv_lib_clntsh_OCIStmtFetch2=yes
73122: else
73123:   ac_cv_lib_clntsh_OCIStmtFetch2=no
73124: fi
73125: rm -f core conftest.err conftest.$ac_objext \
73126:     conftest$ac_exeext conftest.$ac_ext
73127: LIBS=$ac_check_lib_save_LIBS
73128: fi
73129: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clntsh_OCIStmtFetch2" >&5
73130: $as_echo "$ac_cv_lib_clntsh_OCIStmtFetch2" >&6; }
73131: if test "x$ac_cv_lib_clntsh_OCIStmtFetch2" = xyes; then :
73132: 
73133:     LDFLAGS=$save_old_LDFLAGS
73134:     ext_shared=$save_ext_shared
73135: 
73136: 
73137: $as_echo "#define HAVE_OCISTMTFETCH2 1" >>confdefs.h
73138: 
73139: 
73140: 
73141: else
73142: 
73143:     LDFLAGS=$save_old_LDFLAGS
73144:     ext_shared=$save_ext_shared
73145:     unset ac_cv_lib_clntsh_OCIStmtFetch2
73146: 
73147: 
73148: fi
73149: 
73150: 
73151: 
73152: 
73153:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5
73154: $as_echo_n "checking for PDO includes... " >&6; }
73155: if ${pdo_cv_inc_path+:} false; then :
73156:   $as_echo_n "(cached) " >&6
73157: else
73158: 
73159:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5
73160: $as_echo_n "checking for PDO includes... " >&6; }
73161:     if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then
73162:       pdo_cv_inc_path=$abs_srcdir/ext
73163:     elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then
73164:       pdo_cv_inc_path=$abs_srcdir/ext
73165:     elif test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then
73166:       pdo_cv_inc_path=$prefix/include/php/ext
73167:     fi
73168: 
73169: fi
73170: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pdo_cv_inc_path" >&5
73171: $as_echo "$pdo_cv_inc_path" >&6; }
73172:   if test -n "$pdo_cv_inc_path"; then
73173: :
73174:   else
73175: as_fn_error $? "Cannot find php_pdo_driver.h." "$LINENO" 5
73176:   fi
73177: 
73178: 
73179: 
73180: 
73181:   ext_builddir=ext/pdo_oci
73182:   ext_srcdir=$abs_srcdir/ext/pdo_oci
73183: 
73184:   ac_extra=`echo "-I$pdo_cv_inc_path"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
73185: 
73186:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
73187:     PHP_PDO_OCI_SHARED=no
73188: 
73189: 
73190:   case ext/pdo_oci in
73191:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
73192:   /*) ac_srcdir=`echo "ext/pdo_oci"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
73193:   *) ac_srcdir="$abs_srcdir/ext/pdo_oci/"; ac_bdir="ext/pdo_oci/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
73194:   esac
73195: 
73196: 
73197: 
73198:   b_c_pre=$php_c_pre
73199:   b_cxx_pre=$php_cxx_pre
73200:   b_c_meta=$php_c_meta
73201:   b_cxx_meta=$php_cxx_meta
73202:   b_c_post=$php_c_post
73203:   b_cxx_post=$php_cxx_post
73204:   b_lo=$php_lo
73205: 
73206: 
73207:   old_IFS=$IFS
73208:   for ac_src in pdo_oci.c oci_driver.c oci_statement.c; do
73209: 
73210:       IFS=.
73211:       set $ac_src
73212:       ac_obj=$1
73213:       IFS=$old_IFS
73214: 
73215:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
73216: 
73217:       case $ac_src in
73218:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
73219:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
73220:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
73221:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
73222:       esac
73223: 
73224:     cat >>Makefile.objects<<EOF
73225: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
73226: 	$ac_comp
73227: EOF
73228:   done
73229: 
73230: 
73231:     EXT_STATIC="$EXT_STATIC pdo_oci"
73232:     if test "$ext_shared" != "nocli"; then
73233:       EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_oci"
73234:     fi
73235:   else
73236:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
73237:       PHP_PDO_OCI_SHARED=yes
73238: 
73239:   case ext/pdo_oci in
73240:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
73241:   /*) ac_srcdir=`echo "ext/pdo_oci"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
73242:   *) ac_srcdir="$abs_srcdir/ext/pdo_oci/"; ac_bdir="ext/pdo_oci/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
73243:   esac
73244: 
73245: 
73246: 
73247:   b_c_pre=$shared_c_pre
73248:   b_cxx_pre=$shared_cxx_pre
73249:   b_c_meta=$shared_c_meta
73250:   b_cxx_meta=$shared_cxx_meta
73251:   b_c_post=$shared_c_post
73252:   b_cxx_post=$shared_cxx_post
73253:   b_lo=$shared_lo
73254: 
73255: 
73256:   old_IFS=$IFS
73257:   for ac_src in pdo_oci.c oci_driver.c oci_statement.c; do
73258: 
73259:       IFS=.
73260:       set $ac_src
73261:       ac_obj=$1
73262:       IFS=$old_IFS
73263: 
73264:       shared_objects_pdo_oci="$shared_objects_pdo_oci $ac_bdir$ac_obj.lo"
73265: 
73266:       case $ac_src in
73267:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
73268:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
73269:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
73270:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
73271:       esac
73272: 
73273:     cat >>Makefile.objects<<EOF
73274: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
73275: 	$ac_comp
73276: EOF
73277:   done
73278: 
73279:       case $host_alias in
73280:         *netware*)
73281: 
73282:   install_modules="install-modules"
73283: 
73284:   case $host_alias in
73285:     *aix*)
73286:       suffix=so
73287:       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'
73288:       ;;
73289:     *netware*)
73290:       suffix=nlm
73291:       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)'
73292:       ;;
73293:     *)
73294:       suffix=la
73295:       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)'
73296:       ;;
73297:   esac
73298: 
73299:   if test "x" = "xyes"; then
73300:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phppdo_oci.$suffix"
73301:   else
73302:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phppdo_oci.$suffix"
73303:   fi
73304: 
73305:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo_oci"
73306: 
73307:   cat >>Makefile.objects<<EOF
73308: \$(phplibdir)/phppdo_oci.$suffix: $ext_builddir/phppdo_oci.$suffix
73309: 	\$(LIBTOOL) --mode=install cp $ext_builddir/phppdo_oci.$suffix \$(phplibdir)
73310: 
73311: $ext_builddir/phppdo_oci.$suffix: \$(shared_objects_pdo_oci) \$(PHPPDO_OCI_SHARED_DEPENDENCIES)
73312: 	$link_cmd
73313: 
73314: EOF
73315: 
73316:           ;;
73317:         *)
73318: 
73319:   install_modules="install-modules"
73320: 
73321:   case $host_alias in
73322:     *aix*)
73323:       suffix=so
73324:       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'
73325:       ;;
73326:     *netware*)
73327:       suffix=nlm
73328:       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)'
73329:       ;;
73330:     *)
73331:       suffix=la
73332:       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)'
73333:       ;;
73334:   esac
73335: 
73336:   if test "x" = "xyes"; then
73337:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/pdo_oci.$suffix"
73338:   else
73339:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/pdo_oci.$suffix"
73340:   fi
73341: 
73342:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo_oci"
73343: 
73344:   cat >>Makefile.objects<<EOF
73345: \$(phplibdir)/pdo_oci.$suffix: $ext_builddir/pdo_oci.$suffix
73346: 	\$(LIBTOOL) --mode=install cp $ext_builddir/pdo_oci.$suffix \$(phplibdir)
73347: 
73348: $ext_builddir/pdo_oci.$suffix: \$(shared_objects_pdo_oci) \$(PDO_OCI_SHARED_DEPENDENCIES)
73349: 	$link_cmd
73350: 
73351: EOF
73352: 
73353:           ;;
73354:       esac
73355: 
73356: cat >>confdefs.h <<_ACEOF
73357: #define COMPILE_DL_PDO_OCI 1
73358: _ACEOF
73359: 
73360:     fi
73361:   fi
73362: 
73363:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
73364:     PHP_PDO_OCI_SHARED=no
73365:     case "$PHP_SAPI" in
73366:       cgi|embed)
73367: 
73368: 
73369:   case ext/pdo_oci in
73370:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
73371:   /*) ac_srcdir=`echo "ext/pdo_oci"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
73372:   *) ac_srcdir="$abs_srcdir/ext/pdo_oci/"; ac_bdir="ext/pdo_oci/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
73373:   esac
73374: 
73375: 
73376: 
73377:   b_c_pre=$php_c_pre
73378:   b_cxx_pre=$php_cxx_pre
73379:   b_c_meta=$php_c_meta
73380:   b_cxx_meta=$php_cxx_meta
73381:   b_c_post=$php_c_post
73382:   b_cxx_post=$php_cxx_post
73383:   b_lo=$php_lo
73384: 
73385: 
73386:   old_IFS=$IFS
73387:   for ac_src in pdo_oci.c oci_driver.c oci_statement.c; do
73388: 
73389:       IFS=.
73390:       set $ac_src
73391:       ac_obj=$1
73392:       IFS=$old_IFS
73393: 
73394:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
73395: 
73396:       case $ac_src in
73397:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
73398:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
73399:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
73400:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
73401:       esac
73402: 
73403:     cat >>Makefile.objects<<EOF
73404: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
73405: 	$ac_comp
73406: EOF
73407:   done
73408: 
73409: 
73410:         EXT_STATIC="$EXT_STATIC pdo_oci"
73411:         ;;
73412:       *)
73413: 
73414: 
73415:   case ext/pdo_oci in
73416:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
73417:   /*) ac_srcdir=`echo "ext/pdo_oci"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
73418:   *) ac_srcdir="$abs_srcdir/ext/pdo_oci/"; ac_bdir="ext/pdo_oci/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
73419:   esac
73420: 
73421: 
73422: 
73423:   b_c_pre=$php_c_pre
73424:   b_cxx_pre=$php_cxx_pre
73425:   b_c_meta=$php_c_meta
73426:   b_cxx_meta=$php_cxx_meta
73427:   b_c_post=$php_c_post
73428:   b_cxx_post=$php_cxx_post
73429:   b_lo=$php_lo
73430: 
73431: 
73432:   old_IFS=$IFS
73433:   for ac_src in pdo_oci.c oci_driver.c oci_statement.c; do
73434: 
73435:       IFS=.
73436:       set $ac_src
73437:       ac_obj=$1
73438:       IFS=$old_IFS
73439: 
73440:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
73441: 
73442:       case $ac_src in
73443:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
73444:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
73445:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
73446:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
73447:       esac
73448: 
73449:     cat >>Makefile.objects<<EOF
73450: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
73451: 	$ac_comp
73452: EOF
73453:   done
73454: 
73455: 
73456:         ;;
73457:     esac
73458:     EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_oci"
73459:   fi
73460: 
73461: 
73462:     BUILD_DIR="$BUILD_DIR $ext_builddir"
73463: 
73464: 
73465: 
73466:   if test "$ext_builddir" = "."; then
73467:     PHP_PECL_EXTENSION=pdo_oci
73468: 
73469:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
73470: 
73471:   fi
73472: 
73473: 
73474: 
73475: 
73476:   PHP_VAR_SUBST="$PHP_VAR_SUBST PDO_OCI_SHARED_LIBADD"
73477: 
73478: 
73479: 
73480: 
73481: 
73482:   PHP_VAR_SUBST="$PHP_VAR_SUBST PDO_OCI_DIR"
73483: 
73484: 
73485: 
73486: 
73487: 
73488:   PHP_VAR_SUBST="$PHP_VAR_SUBST PDO_OCI_VERSION"
73489: 
73490: 
73491: 
73492: 
73493: 
73494: 
73495:   am_i_shared=$PHP_PDO_OCI_SHARED
73496:   is_it_shared=$PHP_PDO_SHARED
73497:   is_it_enabled=$PHP_PDO
73498:   if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
73499:     as_fn_error $? "
73500: You've configured extension pdo_oci to build statically, but it
73501: depends on extension pdo, which you've configured to build shared.
73502: You either need to build pdo_oci shared or build pdo statically for the
73503: build to be successful.
73504: " "$LINENO" 5
73505:   fi
73506:   if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then
73507:     as_fn_error $? "
73508: You've configured extension pdo_oci, which depends on extension pdo,
73509: but you've either not enabled pdo, or have disabled it.
73510: " "$LINENO" 5
73511:   fi
73512: 
73513: 
73514: 
73515: 
73516: cat >>confdefs.h <<_ACEOF
73517: #define PHP_PDO_OCI_CLIENT_VERSION "$PDO_OCI_VERSION"
73518: _ACEOF
73519: 
73520: fi
73521: 
73522: 
73523: 
73524: 
73525: 
73526: 
73527: php_with_pdo_odbc=no
73528: 
73529: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ODBC v3 support for PDO" >&5
73530: $as_echo_n "checking for ODBC v3 support for PDO... " >&6; }
73531: 
73532: # Check whether --with-pdo-odbc was given.
73533: if test "${with_pdo_odbc+set}" = set; then :
73534:   withval=$with_pdo_odbc; PHP_PDO_ODBC=$withval
73535: else
73536: 
73537:   PHP_PDO_ODBC=no
73538:   test "$PHP_ENABLE_ALL" && PHP_PDO_ODBC=$PHP_ENABLE_ALL
73539: 
73540: fi
73541: 
73542: 
73543: 
73544: ext_output="yes, shared"
73545: ext_shared=yes
73546: case $PHP_PDO_ODBC in
73547: shared,*)
73548:   PHP_PDO_ODBC=`echo "$PHP_PDO_ODBC"|$SED 's/^shared,//'`
73549:   ;;
73550: shared)
73551:   PHP_PDO_ODBC=yes
73552:   ;;
73553: no)
73554:   ext_output=no
73555:   ext_shared=no
73556:   ;;
73557: *)
73558:   ext_output=yes
73559:   ext_shared=no
73560:   ;;
73561: esac
73562: 
73563: 
73564: 
73565: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
73566: $as_echo "$ext_output" >&6; }
73567: 
73568: 
73569: 
73570: 
73571: 
73572: 
73573: 
73574: if test "$PHP_PDO_ODBC" != "no"; then
73575: 
73576:   if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then
73577:     as_fn_error $? "PDO is not enabled! Add --enable-pdo to your configure line." "$LINENO" 5
73578:   fi
73579: 
73580: 
73581: 
73582:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5
73583: $as_echo_n "checking for PDO includes... " >&6; }
73584: if ${pdo_cv_inc_path+:} false; then :
73585:   $as_echo_n "(cached) " >&6
73586: else
73587: 
73588:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5
73589: $as_echo_n "checking for PDO includes... " >&6; }
73590:     if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then
73591:       pdo_cv_inc_path=$abs_srcdir/ext
73592:     elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then
73593:       pdo_cv_inc_path=$abs_srcdir/ext
73594:     elif test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then
73595:       pdo_cv_inc_path=$prefix/include/php/ext
73596:     fi
73597: 
73598: fi
73599: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pdo_cv_inc_path" >&5
73600: $as_echo "$pdo_cv_inc_path" >&6; }
73601:   if test -n "$pdo_cv_inc_path"; then
73602: :
73603:   else
73604: as_fn_error $? "Cannot find php_pdo_driver.h." "$LINENO" 5
73605:   fi
73606: 
73607: 
73608: 
73609:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for selected PDO ODBC flavour" >&5
73610: $as_echo_n "checking for selected PDO ODBC flavour... " >&6; }
73611: 
73612:   pdo_odbc_flavour="`echo $PHP_PDO_ODBC | cut -d, -f1`"
73613:   pdo_odbc_dir="`echo $PHP_PDO_ODBC | cut -d, -f2`"
73614: 
73615:   if test "$pdo_odbc_dir" = "$PHP_PDO_ODBC" ; then
73616:     pdo_odbc_dir=
73617:   fi
73618: 
73619:   case $pdo_odbc_flavour in
73620:     ibm-db2)
73621:         pdo_odbc_def_libdir=/home/db2inst1/sqllib/lib
73622:         pdo_odbc_def_incdir=/home/db2inst1/sqllib/include
73623:         pdo_odbc_def_lib=db2
73624:         ;;
73625: 
73626:     iODBC|iodbc)
73627:         pdo_odbc_def_libdir=/usr/local/$PHP_LIBDIR
73628:         pdo_odbc_def_incdir=/usr/local/include
73629:         pdo_odbc_def_lib=iodbc
73630:         ;;
73631: 
73632:     unixODBC|unixodbc)
73633:         pdo_odbc_def_libdir=/usr/local/$PHP_LIBDIR
73634:         pdo_odbc_def_incdir=/usr/local/include
73635:         pdo_odbc_def_lib=odbc
73636:         ;;
73637: 
73638:     ODBCRouter|odbcrouter)
73639:         pdo_odbc_def_libdir=/usr/$PHP_LIBDIR
73640:         pdo_odbc_def_incdir=/usr/include
73641:         pdo_odbc_def_lib=odbcsdk
73642:         ;;
73643: 
73644:     generic)
73645:         pdo_odbc_def_lib="`echo $PHP_PDO_ODBC | cut -d, -f3`"
73646:         pdo_odbc_def_ldflags="`echo $PHP_PDO_ODBC | cut -d, -f4`"
73647:         pdo_odbc_def_cflags="`echo $PHP_PDO_ODBC | cut -d, -f5`"
73648:         pdo_odbc_flavour="generic-$pdo_odbc_def_lib"
73649:         ;;
73650: 
73651:       *)
73652:         as_fn_error $? "Unknown ODBC flavour $pdo_odbc_flavour
73653:                             include and lib dirs are looked for under 'dir'.
73654: 
73655:                             'flavour' can be one of:  ibm-db2, iODBC, unixODBC, generic
73656:                             If ',dir' part is omitted, default for the flavour
73657:                             you have selected will used. e.g.:
73658: 
73659:                               --with-pdo-odbc=unixODBC
73660: 
73661:                             will check for unixODBC under /usr/local. You may attempt
73662:                             to use an otherwise unsupported driver using the \"generic\"
73663:                             flavour.  The syntax for generic ODBC support is:
73664: 
73665:                               --with-pdo-odbc=generic,dir,libname,ldflags,cflags
73666: 
73667:                             When build as shared the extension filename is always pdo_odbc.so" "$LINENO" 5
73668:         ;;
73669:   esac
73670: 
73671:   if test -n "$pdo_odbc_dir"; then
73672:     PDO_ODBC_INCDIR="$pdo_odbc_dir/include"
73673:     PDO_ODBC_LIBDIR="$pdo_odbc_dir/$PHP_LIBDIR"
73674:   else
73675:     PDO_ODBC_INCDIR="$pdo_odbc_def_incdir"
73676:     PDO_ODBC_LIBDIR="$pdo_odbc_def_libdir"
73677:   fi
73678: 
73679:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pdo_odbc_flavour
73680:           libs       $PDO_ODBC_LIBDIR,
73681:           headers    $PDO_ODBC_INCDIR" >&5
73682: $as_echo "$pdo_odbc_flavour
73683:           libs       $PDO_ODBC_LIBDIR,
73684:           headers    $PDO_ODBC_INCDIR" >&6; }
73685: 
73686:   if test ! -d "$PDO_ODBC_LIBDIR" ; then
73687:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: library dir $PDO_ODBC_LIBDIR does not exist" >&5
73688: $as_echo "$as_me: WARNING: library dir $PDO_ODBC_LIBDIR does not exist" >&2;}
73689:   fi
73690: 
73691: 
73692:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for odbc.h in $PDO_ODBC_INCDIR" >&5
73693: $as_echo_n "checking for odbc.h in $PDO_ODBC_INCDIR... " >&6; }
73694:   if test -f "$PDO_ODBC_INCDIR/odbc.h"; then
73695:     php_pdo_have_header=yes
73696: 
73697: $as_echo "#define HAVE_ODBC_H 1" >>confdefs.h
73698: 
73699:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
73700: $as_echo "yes" >&6; }
73701:   else
73702:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
73703: $as_echo "no" >&6; }
73704:   fi
73705: 
73706: 
73707:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for odbcsdk.h in $PDO_ODBC_INCDIR" >&5
73708: $as_echo_n "checking for odbcsdk.h in $PDO_ODBC_INCDIR... " >&6; }
73709:   if test -f "$PDO_ODBC_INCDIR/odbcsdk.h"; then
73710:     php_pdo_have_header=yes
73711: 
73712: $as_echo "#define HAVE_ODBCSDK_H 1" >>confdefs.h
73713: 
73714:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
73715: $as_echo "yes" >&6; }
73716:   else
73717:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
73718: $as_echo "no" >&6; }
73719:   fi
73720: 
73721: 
73722:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iodbc.h in $PDO_ODBC_INCDIR" >&5
73723: $as_echo_n "checking for iodbc.h in $PDO_ODBC_INCDIR... " >&6; }
73724:   if test -f "$PDO_ODBC_INCDIR/iodbc.h"; then
73725:     php_pdo_have_header=yes
73726: 
73727: $as_echo "#define HAVE_IODBC_H 1" >>confdefs.h
73728: 
73729:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
73730: $as_echo "yes" >&6; }
73731:   else
73732:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
73733: $as_echo "no" >&6; }
73734:   fi
73735: 
73736: 
73737:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlunix.h in $PDO_ODBC_INCDIR" >&5
73738: $as_echo_n "checking for sqlunix.h in $PDO_ODBC_INCDIR... " >&6; }
73739:   if test -f "$PDO_ODBC_INCDIR/sqlunix.h"; then
73740:     php_pdo_have_header=yes
73741: 
73742: $as_echo "#define HAVE_SQLUNIX_H 1" >>confdefs.h
73743: 
73744:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
73745: $as_echo "yes" >&6; }
73746:   else
73747:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
73748: $as_echo "no" >&6; }
73749:   fi
73750: 
73751: 
73752:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqltypes.h in $PDO_ODBC_INCDIR" >&5
73753: $as_echo_n "checking for sqltypes.h in $PDO_ODBC_INCDIR... " >&6; }
73754:   if test -f "$PDO_ODBC_INCDIR/sqltypes.h"; then
73755:     php_pdo_have_header=yes
73756: 
73757: $as_echo "#define HAVE_SQLTYPES_H 1" >>confdefs.h
73758: 
73759:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
73760: $as_echo "yes" >&6; }
73761:   else
73762:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
73763: $as_echo "no" >&6; }
73764:   fi
73765: 
73766: 
73767:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlucode.h in $PDO_ODBC_INCDIR" >&5
73768: $as_echo_n "checking for sqlucode.h in $PDO_ODBC_INCDIR... " >&6; }
73769:   if test -f "$PDO_ODBC_INCDIR/sqlucode.h"; then
73770:     php_pdo_have_header=yes
73771: 
73772: $as_echo "#define HAVE_SQLUCODE_H 1" >>confdefs.h
73773: 
73774:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
73775: $as_echo "yes" >&6; }
73776:   else
73777:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
73778: $as_echo "no" >&6; }
73779:   fi
73780: 
73781: 
73782:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sql.h in $PDO_ODBC_INCDIR" >&5
73783: $as_echo_n "checking for sql.h in $PDO_ODBC_INCDIR... " >&6; }
73784:   if test -f "$PDO_ODBC_INCDIR/sql.h"; then
73785:     php_pdo_have_header=yes
73786: 
73787: $as_echo "#define HAVE_SQL_H 1" >>confdefs.h
73788: 
73789:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
73790: $as_echo "yes" >&6; }
73791:   else
73792:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
73793: $as_echo "no" >&6; }
73794:   fi
73795: 
73796: 
73797:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isql.h in $PDO_ODBC_INCDIR" >&5
73798: $as_echo_n "checking for isql.h in $PDO_ODBC_INCDIR... " >&6; }
73799:   if test -f "$PDO_ODBC_INCDIR/isql.h"; then
73800:     php_pdo_have_header=yes
73801: 
73802: $as_echo "#define HAVE_ISQL_H 1" >>confdefs.h
73803: 
73804:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
73805: $as_echo "yes" >&6; }
73806:   else
73807:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
73808: $as_echo "no" >&6; }
73809:   fi
73810: 
73811: 
73812:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlext.h in $PDO_ODBC_INCDIR" >&5
73813: $as_echo_n "checking for sqlext.h in $PDO_ODBC_INCDIR... " >&6; }
73814:   if test -f "$PDO_ODBC_INCDIR/sqlext.h"; then
73815:     php_pdo_have_header=yes
73816: 
73817: $as_echo "#define HAVE_SQLEXT_H 1" >>confdefs.h
73818: 
73819:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
73820: $as_echo "yes" >&6; }
73821:   else
73822:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
73823: $as_echo "no" >&6; }
73824:   fi
73825: 
73826: 
73827:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isqlext.h in $PDO_ODBC_INCDIR" >&5
73828: $as_echo_n "checking for isqlext.h in $PDO_ODBC_INCDIR... " >&6; }
73829:   if test -f "$PDO_ODBC_INCDIR/isqlext.h"; then
73830:     php_pdo_have_header=yes
73831: 
73832: $as_echo "#define HAVE_ISQLEXT_H 1" >>confdefs.h
73833: 
73834:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
73835: $as_echo "yes" >&6; }
73836:   else
73837:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
73838: $as_echo "no" >&6; }
73839:   fi
73840: 
73841: 
73842:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udbcext.h in $PDO_ODBC_INCDIR" >&5
73843: $as_echo_n "checking for udbcext.h in $PDO_ODBC_INCDIR... " >&6; }
73844:   if test -f "$PDO_ODBC_INCDIR/udbcext.h"; then
73845:     php_pdo_have_header=yes
73846: 
73847: $as_echo "#define HAVE_UDBCEXT_H 1" >>confdefs.h
73848: 
73849:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
73850: $as_echo "yes" >&6; }
73851:   else
73852:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
73853: $as_echo "no" >&6; }
73854:   fi
73855: 
73856: 
73857:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlcli1.h in $PDO_ODBC_INCDIR" >&5
73858: $as_echo_n "checking for sqlcli1.h in $PDO_ODBC_INCDIR... " >&6; }
73859:   if test -f "$PDO_ODBC_INCDIR/sqlcli1.h"; then
73860:     php_pdo_have_header=yes
73861: 
73862: $as_echo "#define HAVE_SQLCLI1_H 1" >>confdefs.h
73863: 
73864:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
73865: $as_echo "yes" >&6; }
73866:   else
73867:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
73868: $as_echo "no" >&6; }
73869:   fi
73870: 
73871: 
73872:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibraryManager.h in $PDO_ODBC_INCDIR" >&5
73873: $as_echo_n "checking for LibraryManager.h in $PDO_ODBC_INCDIR... " >&6; }
73874:   if test -f "$PDO_ODBC_INCDIR/LibraryManager.h"; then
73875:     php_pdo_have_header=yes
73876: 
73877: $as_echo "#define HAVE_LIBRARYMANAGER_H 1" >>confdefs.h
73878: 
73879:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
73880: $as_echo "yes" >&6; }
73881:   else
73882:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
73883: $as_echo "no" >&6; }
73884:   fi
73885: 
73886: 
73887:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cli0core.h in $PDO_ODBC_INCDIR" >&5
73888: $as_echo_n "checking for cli0core.h in $PDO_ODBC_INCDIR... " >&6; }
73889:   if test -f "$PDO_ODBC_INCDIR/cli0core.h"; then
73890:     php_pdo_have_header=yes
73891: 
73892: $as_echo "#define HAVE_CLI0CORE_H 1" >>confdefs.h
73893: 
73894:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
73895: $as_echo "yes" >&6; }
73896:   else
73897:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
73898: $as_echo "no" >&6; }
73899:   fi
73900: 
73901: 
73902:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cli0ext.h in $PDO_ODBC_INCDIR" >&5
73903: $as_echo_n "checking for cli0ext.h in $PDO_ODBC_INCDIR... " >&6; }
73904:   if test -f "$PDO_ODBC_INCDIR/cli0ext.h"; then
73905:     php_pdo_have_header=yes
73906: 
73907: $as_echo "#define HAVE_CLI0EXT_H 1" >>confdefs.h
73908: 
73909:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
73910: $as_echo "yes" >&6; }
73911:   else
73912:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
73913: $as_echo "no" >&6; }
73914:   fi
73915: 
73916: 
73917:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cli0cli.h in $PDO_ODBC_INCDIR" >&5
73918: $as_echo_n "checking for cli0cli.h in $PDO_ODBC_INCDIR... " >&6; }
73919:   if test -f "$PDO_ODBC_INCDIR/cli0cli.h"; then
73920:     php_pdo_have_header=yes
73921: 
73922: $as_echo "#define HAVE_CLI0CLI_H 1" >>confdefs.h
73923: 
73924:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
73925: $as_echo "yes" >&6; }
73926:   else
73927:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
73928: $as_echo "no" >&6; }
73929:   fi
73930: 
73931: 
73932:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cli0defs.h in $PDO_ODBC_INCDIR" >&5
73933: $as_echo_n "checking for cli0defs.h in $PDO_ODBC_INCDIR... " >&6; }
73934:   if test -f "$PDO_ODBC_INCDIR/cli0defs.h"; then
73935:     php_pdo_have_header=yes
73936: 
73937: $as_echo "#define HAVE_CLI0DEFS_H 1" >>confdefs.h
73938: 
73939:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
73940: $as_echo "yes" >&6; }
73941:   else
73942:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
73943: $as_echo "no" >&6; }
73944:   fi
73945: 
73946: 
73947:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cli0env.h in $PDO_ODBC_INCDIR" >&5
73948: $as_echo_n "checking for cli0env.h in $PDO_ODBC_INCDIR... " >&6; }
73949:   if test -f "$PDO_ODBC_INCDIR/cli0env.h"; then
73950:     php_pdo_have_header=yes
73951: 
73952: $as_echo "#define HAVE_CLI0ENV_H 1" >>confdefs.h
73953: 
73954:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
73955: $as_echo "yes" >&6; }
73956:   else
73957:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
73958: $as_echo "no" >&6; }
73959:   fi
73960: 
73961: 
73962:   if test "$php_pdo_have_header" != "yes"; then
73963:     as_fn_error $? "Cannot find header file(s) for pdo_odbc" "$LINENO" 5
73964:   fi
73965: 
73966:   PDO_ODBC_INCLUDE="$pdo_odbc_def_cflags -I$PDO_ODBC_INCDIR -DPDO_ODBC_TYPE=\\\"$pdo_odbc_flavour\\\""
73967:   PDO_ODBC_LDFLAGS="$pdo_odbc_def_ldflags -L$PDO_ODBC_LIBDIR -l$pdo_odbc_def_lib"
73968: 
73969: 
73970:   for ac_i in $PDO_ODBC_LDFLAGS; do
73971:     case $ac_i in
73972:     -pthread)
73973:       if test "$ext_shared" = "yes"; then
73974:         PDO_ODBC_SHARED_LIBADD="$PDO_ODBC_SHARED_LIBADD -pthread"
73975:       else
73976: 
73977: 
73978:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
73979: 
73980:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
73981:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
73982:     eval "EXTRA_LDFLAGS$unique=set"
73983:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
73984:   fi
73985: 
73986:       fi
73987:     ;;
73988:     -l*)
73989:       ac_ii=`echo $ac_i|cut -c 3-`
73990: 
73991: 
73992:   case $ac_ii in
73993:   c|c_r|pthread*) ;;
73994:   *)
73995:     if test "$ext_shared" = "yes"; then
73996:         PDO_ODBC_SHARED_LIBADD="$PDO_ODBC_SHARED_LIBADD -l$ac_ii"
73997:     else
73998: 
73999: 
74000:   case $ac_ii in
74001:   c|c_r|pthread*) ;;
74002:   *)
74003:       LIBS="$LIBS -l$ac_ii"
74004:    ;;
74005:   esac
74006: 
74007: 
74008:     fi
74009:    ;;
74010:   esac
74011: 
74012: 
74013:     ;;
74014:     -L*)
74015:       ac_ii=`echo $ac_i|cut -c 3-`
74016: 
74017:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
74018: 
74019:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
74020:     ai_p=$ac_ii
74021:   else
74022: 
74023:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
74024: 
74025:     ep_realdir=`(cd "$ep_dir" && pwd)`
74026:     ai_p="$ep_realdir"/`basename "$ac_ii"`
74027:   fi
74028: 
74029: 
74030:       if test "$ext_shared" = "yes"; then
74031:         PDO_ODBC_SHARED_LIBADD="-L$ai_p $PDO_ODBC_SHARED_LIBADD"
74032:         test -n "$ld_runpath_switch" && PDO_ODBC_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_ODBC_SHARED_LIBADD"
74033:       else
74034: 
74035: 
74036: 
74037:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
74038: 
74039:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
74040:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
74041:     eval "LIBPATH$unique=set"
74042: 
74043:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
74044:     LDFLAGS="$LDFLAGS -L$ai_p"
74045:     PHP_RPATHS="$PHP_RPATHS $ai_p"
74046: 
74047:   fi
74048: 
74049: 
74050:       fi
74051: 
74052:   fi
74053: 
74054:     ;;
74055:     esac
74056:   done
74057: 
74058: 
74059: 
74060:   save_old_LDFLAGS=$LDFLAGS
74061:   ac_stuff="$PDO_ODBC_LDFLAGS"
74062: 
74063:   save_ext_shared=$ext_shared
74064:   ext_shared=yes
74065: 
74066:   for ac_i in $ac_stuff; do
74067:     case $ac_i in
74068:     -pthread)
74069:       if test "$ext_shared" = "yes"; then
74070:         LDFLAGS="$LDFLAGS -pthread"
74071:       else
74072: 
74073: 
74074:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
74075: 
74076:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
74077:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
74078:     eval "EXTRA_LDFLAGS$unique=set"
74079:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
74080:   fi
74081: 
74082:       fi
74083:     ;;
74084:     -l*)
74085:       ac_ii=`echo $ac_i|cut -c 3-`
74086: 
74087: 
74088:   case $ac_ii in
74089:   c|c_r|pthread*) ;;
74090:   *)
74091:     if test "$ext_shared" = "yes"; then
74092:         LDFLAGS="$LDFLAGS -l$ac_ii"
74093:     else
74094: 
74095: 
74096:   case $ac_ii in
74097:   c|c_r|pthread*) ;;
74098:   *)
74099:       LIBS="$LIBS -l$ac_ii"
74100:    ;;
74101:   esac
74102: 
74103: 
74104:     fi
74105:    ;;
74106:   esac
74107: 
74108: 
74109:     ;;
74110:     -L*)
74111:       ac_ii=`echo $ac_i|cut -c 3-`
74112: 
74113:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
74114: 
74115:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
74116:     ai_p=$ac_ii
74117:   else
74118: 
74119:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
74120: 
74121:     ep_realdir=`(cd "$ep_dir" && pwd)`
74122:     ai_p="$ep_realdir"/`basename "$ac_ii"`
74123:   fi
74124: 
74125: 
74126:       if test "$ext_shared" = "yes"; then
74127:         LDFLAGS="-L$ai_p $LDFLAGS"
74128:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
74129:       else
74130: 
74131: 
74132: 
74133:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
74134: 
74135:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
74136:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
74137:     eval "LIBPATH$unique=set"
74138: 
74139:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
74140:     LDFLAGS="$LDFLAGS -L$ai_p"
74141:     PHP_RPATHS="$PHP_RPATHS $ai_p"
74142: 
74143:   fi
74144: 
74145: 
74146:       fi
74147: 
74148:   fi
74149: 
74150:     ;;
74151:     esac
74152:   done
74153: 
74154:   as_ac_Lib=`$as_echo "ac_cv_lib_$pdo_odbc_def_lib''_SQLBindCol" | $as_tr_sh`
74155: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLBindCol in -l$pdo_odbc_def_lib" >&5
74156: $as_echo_n "checking for SQLBindCol in -l$pdo_odbc_def_lib... " >&6; }
74157: if eval \${$as_ac_Lib+:} false; then :
74158:   $as_echo_n "(cached) " >&6
74159: else
74160:   ac_check_lib_save_LIBS=$LIBS
74161: LIBS="-l$pdo_odbc_def_lib  $LIBS"
74162: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
74163: /* end confdefs.h.  */
74164: 
74165: /* Override any GCC internal prototype to avoid an error.
74166:    Use char because int might match the return type of a GCC
74167:    builtin and then its argument prototype would still apply.  */
74168: #ifdef __cplusplus
74169: extern "C"
74170: #endif
74171: char SQLBindCol ();
74172: int
74173: main ()
74174: {
74175: return SQLBindCol ();
74176:   ;
74177:   return 0;
74178: }
74179: _ACEOF
74180: if ac_fn_c_try_link "$LINENO"; then :
74181:   eval "$as_ac_Lib=yes"
74182: else
74183:   eval "$as_ac_Lib=no"
74184: fi
74185: rm -f core conftest.err conftest.$ac_objext \
74186:     conftest$ac_exeext conftest.$ac_ext
74187: LIBS=$ac_check_lib_save_LIBS
74188: fi
74189: eval ac_res=\$$as_ac_Lib
74190: 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
74191: $as_echo "$ac_res" >&6; }
74192: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
74193: 
74194:     LDFLAGS=$save_old_LDFLAGS
74195:     ext_shared=$save_ext_shared
74196: 
74197: 
74198:   save_old_LDFLAGS=$LDFLAGS
74199:   ac_stuff="$PDO_ODBC_LDFLAGS"
74200: 
74201:   save_ext_shared=$ext_shared
74202:   ext_shared=yes
74203: 
74204:   for ac_i in $ac_stuff; do
74205:     case $ac_i in
74206:     -pthread)
74207:       if test "$ext_shared" = "yes"; then
74208:         LDFLAGS="$LDFLAGS -pthread"
74209:       else
74210: 
74211: 
74212:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
74213: 
74214:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
74215:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
74216:     eval "EXTRA_LDFLAGS$unique=set"
74217:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
74218:   fi
74219: 
74220:       fi
74221:     ;;
74222:     -l*)
74223:       ac_ii=`echo $ac_i|cut -c 3-`
74224: 
74225: 
74226:   case $ac_ii in
74227:   c|c_r|pthread*) ;;
74228:   *)
74229:     if test "$ext_shared" = "yes"; then
74230:         LDFLAGS="$LDFLAGS -l$ac_ii"
74231:     else
74232: 
74233: 
74234:   case $ac_ii in
74235:   c|c_r|pthread*) ;;
74236:   *)
74237:       LIBS="$LIBS -l$ac_ii"
74238:    ;;
74239:   esac
74240: 
74241: 
74242:     fi
74243:    ;;
74244:   esac
74245: 
74246: 
74247:     ;;
74248:     -L*)
74249:       ac_ii=`echo $ac_i|cut -c 3-`
74250: 
74251:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
74252: 
74253:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
74254:     ai_p=$ac_ii
74255:   else
74256: 
74257:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
74258: 
74259:     ep_realdir=`(cd "$ep_dir" && pwd)`
74260:     ai_p="$ep_realdir"/`basename "$ac_ii"`
74261:   fi
74262: 
74263: 
74264:       if test "$ext_shared" = "yes"; then
74265:         LDFLAGS="-L$ai_p $LDFLAGS"
74266:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
74267:       else
74268: 
74269: 
74270: 
74271:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
74272: 
74273:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
74274:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
74275:     eval "LIBPATH$unique=set"
74276: 
74277:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
74278:     LDFLAGS="$LDFLAGS -L$ai_p"
74279:     PHP_RPATHS="$PHP_RPATHS $ai_p"
74280: 
74281:   fi
74282: 
74283: 
74284:       fi
74285: 
74286:   fi
74287: 
74288:     ;;
74289:     esac
74290:   done
74291: 
74292:   as_ac_Lib=`$as_echo "ac_cv_lib_$pdo_odbc_def_lib''_SQLAllocHandle" | $as_tr_sh`
74293: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLAllocHandle in -l$pdo_odbc_def_lib" >&5
74294: $as_echo_n "checking for SQLAllocHandle in -l$pdo_odbc_def_lib... " >&6; }
74295: if eval \${$as_ac_Lib+:} false; then :
74296:   $as_echo_n "(cached) " >&6
74297: else
74298:   ac_check_lib_save_LIBS=$LIBS
74299: LIBS="-l$pdo_odbc_def_lib  $LIBS"
74300: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
74301: /* end confdefs.h.  */
74302: 
74303: /* Override any GCC internal prototype to avoid an error.
74304:    Use char because int might match the return type of a GCC
74305:    builtin and then its argument prototype would still apply.  */
74306: #ifdef __cplusplus
74307: extern "C"
74308: #endif
74309: char SQLAllocHandle ();
74310: int
74311: main ()
74312: {
74313: return SQLAllocHandle ();
74314:   ;
74315:   return 0;
74316: }
74317: _ACEOF
74318: if ac_fn_c_try_link "$LINENO"; then :
74319:   eval "$as_ac_Lib=yes"
74320: else
74321:   eval "$as_ac_Lib=no"
74322: fi
74323: rm -f core conftest.err conftest.$ac_objext \
74324:     conftest$ac_exeext conftest.$ac_ext
74325: LIBS=$ac_check_lib_save_LIBS
74326: fi
74327: eval ac_res=\$$as_ac_Lib
74328: 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
74329: $as_echo "$ac_res" >&6; }
74330: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
74331: 
74332:     LDFLAGS=$save_old_LDFLAGS
74333:     ext_shared=$save_ext_shared
74334: 
74335: 
74336: else
74337: 
74338:     LDFLAGS=$save_old_LDFLAGS
74339:     ext_shared=$save_ext_shared
74340:     unset ac_cv_lib_$pdo_odbc_def_lib_SQLAllocHandle
74341: 
74342:       as_fn_error $? "
74343: Your ODBC library does not appear to be ODBC 3 compatible.
74344: You should consider using iODBC or unixODBC instead, and loading your
74345: libraries as a driver in that environment; it will emulate the
74346: functions required for PDO support.
74347: " "$LINENO" 5
74348: 
74349: fi
74350: 
74351: 
74352: 
74353: else
74354: 
74355:     LDFLAGS=$save_old_LDFLAGS
74356:     ext_shared=$save_ext_shared
74357:     unset ac_cv_lib_$pdo_odbc_def_lib_SQLBindCol
74358: 
74359:     as_fn_error $? "Your ODBC library does not exist or there was an error. Check config.log for more information" "$LINENO" 5
74360: 
74361: 
74362: fi
74363: 
74364: 
74365: 
74366:   ext_builddir=ext/pdo_odbc
74367:   ext_srcdir=$abs_srcdir/ext/pdo_odbc
74368: 
74369:   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`
74370: 
74371:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
74372:     PHP_PDO_ODBC_SHARED=no
74373: 
74374: 
74375:   case ext/pdo_odbc in
74376:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
74377:   /*) ac_srcdir=`echo "ext/pdo_odbc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
74378:   *) ac_srcdir="$abs_srcdir/ext/pdo_odbc/"; ac_bdir="ext/pdo_odbc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
74379:   esac
74380: 
74381: 
74382: 
74383:   b_c_pre=$php_c_pre
74384:   b_cxx_pre=$php_cxx_pre
74385:   b_c_meta=$php_c_meta
74386:   b_cxx_meta=$php_cxx_meta
74387:   b_c_post=$php_c_post
74388:   b_cxx_post=$php_cxx_post
74389:   b_lo=$php_lo
74390: 
74391: 
74392:   old_IFS=$IFS
74393:   for ac_src in pdo_odbc.c odbc_driver.c odbc_stmt.c; do
74394: 
74395:       IFS=.
74396:       set $ac_src
74397:       ac_obj=$1
74398:       IFS=$old_IFS
74399: 
74400:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
74401: 
74402:       case $ac_src in
74403:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
74404:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
74405:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
74406:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
74407:       esac
74408: 
74409:     cat >>Makefile.objects<<EOF
74410: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
74411: 	$ac_comp
74412: EOF
74413:   done
74414: 
74415: 
74416:     EXT_STATIC="$EXT_STATIC pdo_odbc"
74417:     if test "$ext_shared" != "nocli"; then
74418:       EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_odbc"
74419:     fi
74420:   else
74421:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
74422:       PHP_PDO_ODBC_SHARED=yes
74423: 
74424:   case ext/pdo_odbc in
74425:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
74426:   /*) ac_srcdir=`echo "ext/pdo_odbc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
74427:   *) ac_srcdir="$abs_srcdir/ext/pdo_odbc/"; ac_bdir="ext/pdo_odbc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
74428:   esac
74429: 
74430: 
74431: 
74432:   b_c_pre=$shared_c_pre
74433:   b_cxx_pre=$shared_cxx_pre
74434:   b_c_meta=$shared_c_meta
74435:   b_cxx_meta=$shared_cxx_meta
74436:   b_c_post=$shared_c_post
74437:   b_cxx_post=$shared_cxx_post
74438:   b_lo=$shared_lo
74439: 
74440: 
74441:   old_IFS=$IFS
74442:   for ac_src in pdo_odbc.c odbc_driver.c odbc_stmt.c; do
74443: 
74444:       IFS=.
74445:       set $ac_src
74446:       ac_obj=$1
74447:       IFS=$old_IFS
74448: 
74449:       shared_objects_pdo_odbc="$shared_objects_pdo_odbc $ac_bdir$ac_obj.lo"
74450: 
74451:       case $ac_src in
74452:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
74453:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
74454:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
74455:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
74456:       esac
74457: 
74458:     cat >>Makefile.objects<<EOF
74459: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
74460: 	$ac_comp
74461: EOF
74462:   done
74463: 
74464:       case $host_alias in
74465:         *netware*)
74466: 
74467:   install_modules="install-modules"
74468: 
74469:   case $host_alias in
74470:     *aix*)
74471:       suffix=so
74472:       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'
74473:       ;;
74474:     *netware*)
74475:       suffix=nlm
74476:       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)'
74477:       ;;
74478:     *)
74479:       suffix=la
74480:       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)'
74481:       ;;
74482:   esac
74483: 
74484:   if test "x" = "xyes"; then
74485:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phppdo_odbc.$suffix"
74486:   else
74487:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phppdo_odbc.$suffix"
74488:   fi
74489: 
74490:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo_odbc"
74491: 
74492:   cat >>Makefile.objects<<EOF
74493: \$(phplibdir)/phppdo_odbc.$suffix: $ext_builddir/phppdo_odbc.$suffix
74494: 	\$(LIBTOOL) --mode=install cp $ext_builddir/phppdo_odbc.$suffix \$(phplibdir)
74495: 
74496: $ext_builddir/phppdo_odbc.$suffix: \$(shared_objects_pdo_odbc) \$(PHPPDO_ODBC_SHARED_DEPENDENCIES)
74497: 	$link_cmd
74498: 
74499: EOF
74500: 
74501:           ;;
74502:         *)
74503: 
74504:   install_modules="install-modules"
74505: 
74506:   case $host_alias in
74507:     *aix*)
74508:       suffix=so
74509:       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'
74510:       ;;
74511:     *netware*)
74512:       suffix=nlm
74513:       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)'
74514:       ;;
74515:     *)
74516:       suffix=la
74517:       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)'
74518:       ;;
74519:   esac
74520: 
74521:   if test "x" = "xyes"; then
74522:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/pdo_odbc.$suffix"
74523:   else
74524:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/pdo_odbc.$suffix"
74525:   fi
74526: 
74527:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo_odbc"
74528: 
74529:   cat >>Makefile.objects<<EOF
74530: \$(phplibdir)/pdo_odbc.$suffix: $ext_builddir/pdo_odbc.$suffix
74531: 	\$(LIBTOOL) --mode=install cp $ext_builddir/pdo_odbc.$suffix \$(phplibdir)
74532: 
74533: $ext_builddir/pdo_odbc.$suffix: \$(shared_objects_pdo_odbc) \$(PDO_ODBC_SHARED_DEPENDENCIES)
74534: 	$link_cmd
74535: 
74536: EOF
74537: 
74538:           ;;
74539:       esac
74540: 
74541: cat >>confdefs.h <<_ACEOF
74542: #define COMPILE_DL_PDO_ODBC 1
74543: _ACEOF
74544: 
74545:     fi
74546:   fi
74547: 
74548:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
74549:     PHP_PDO_ODBC_SHARED=no
74550:     case "$PHP_SAPI" in
74551:       cgi|embed)
74552: 
74553: 
74554:   case ext/pdo_odbc in
74555:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
74556:   /*) ac_srcdir=`echo "ext/pdo_odbc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
74557:   *) ac_srcdir="$abs_srcdir/ext/pdo_odbc/"; ac_bdir="ext/pdo_odbc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
74558:   esac
74559: 
74560: 
74561: 
74562:   b_c_pre=$php_c_pre
74563:   b_cxx_pre=$php_cxx_pre
74564:   b_c_meta=$php_c_meta
74565:   b_cxx_meta=$php_cxx_meta
74566:   b_c_post=$php_c_post
74567:   b_cxx_post=$php_cxx_post
74568:   b_lo=$php_lo
74569: 
74570: 
74571:   old_IFS=$IFS
74572:   for ac_src in pdo_odbc.c odbc_driver.c odbc_stmt.c; do
74573: 
74574:       IFS=.
74575:       set $ac_src
74576:       ac_obj=$1
74577:       IFS=$old_IFS
74578: 
74579:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
74580: 
74581:       case $ac_src in
74582:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
74583:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
74584:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
74585:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
74586:       esac
74587: 
74588:     cat >>Makefile.objects<<EOF
74589: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
74590: 	$ac_comp
74591: EOF
74592:   done
74593: 
74594: 
74595:         EXT_STATIC="$EXT_STATIC pdo_odbc"
74596:         ;;
74597:       *)
74598: 
74599: 
74600:   case ext/pdo_odbc in
74601:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
74602:   /*) ac_srcdir=`echo "ext/pdo_odbc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
74603:   *) ac_srcdir="$abs_srcdir/ext/pdo_odbc/"; ac_bdir="ext/pdo_odbc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
74604:   esac
74605: 
74606: 
74607: 
74608:   b_c_pre=$php_c_pre
74609:   b_cxx_pre=$php_cxx_pre
74610:   b_c_meta=$php_c_meta
74611:   b_cxx_meta=$php_cxx_meta
74612:   b_c_post=$php_c_post
74613:   b_cxx_post=$php_cxx_post
74614:   b_lo=$php_lo
74615: 
74616: 
74617:   old_IFS=$IFS
74618:   for ac_src in pdo_odbc.c odbc_driver.c odbc_stmt.c; do
74619: 
74620:       IFS=.
74621:       set $ac_src
74622:       ac_obj=$1
74623:       IFS=$old_IFS
74624: 
74625:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
74626: 
74627:       case $ac_src in
74628:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
74629:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
74630:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
74631:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
74632:       esac
74633: 
74634:     cat >>Makefile.objects<<EOF
74635: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
74636: 	$ac_comp
74637: EOF
74638:   done
74639: 
74640: 
74641:         ;;
74642:     esac
74643:     EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_odbc"
74644:   fi
74645: 
74646: 
74647:     BUILD_DIR="$BUILD_DIR $ext_builddir"
74648: 
74649: 
74650: 
74651:   if test "$ext_builddir" = "."; then
74652:     PHP_PECL_EXTENSION=pdo_odbc
74653: 
74654:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
74655: 
74656:   fi
74657: 
74658: 
74659:   PHP_VAR_SUBST="$PHP_VAR_SUBST PDO_ODBC_SHARED_LIBADD"
74660: 
74661: 
74662: 
74663:   am_i_shared=$PHP_PDO_ODBC_SHARED
74664:   is_it_shared=$PHP_PDO_SHARED
74665:   is_it_enabled=$PHP_PDO
74666:   if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
74667:     as_fn_error $? "
74668: You've configured extension pdo_odbc to build statically, but it
74669: depends on extension pdo, which you've configured to build shared.
74670: You either need to build pdo_odbc shared or build pdo statically for the
74671: build to be successful.
74672: " "$LINENO" 5
74673:   fi
74674:   if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then
74675:     as_fn_error $? "
74676: You've configured extension pdo_odbc, which depends on extension pdo,
74677: but you've either not enabled pdo, or have disabled it.
74678: " "$LINENO" 5
74679:   fi
74680: 
74681: 
74682: fi
74683: 
74684: 
74685: 
74686: php_with_pdo_pgsql=no
74687: 
74688: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support for PDO" >&5
74689: $as_echo_n "checking for PostgreSQL support for PDO... " >&6; }
74690: 
74691: # Check whether --with-pdo-pgsql was given.
74692: if test "${with_pdo_pgsql+set}" = set; then :
74693:   withval=$with_pdo_pgsql; PHP_PDO_PGSQL=$withval
74694: else
74695: 
74696:   PHP_PDO_PGSQL=no
74697:   test "$PHP_ENABLE_ALL" && PHP_PDO_PGSQL=$PHP_ENABLE_ALL
74698: 
74699: fi
74700: 
74701: 
74702: 
74703: ext_output="yes, shared"
74704: ext_shared=yes
74705: case $PHP_PDO_PGSQL in
74706: shared,*)
74707:   PHP_PDO_PGSQL=`echo "$PHP_PDO_PGSQL"|$SED 's/^shared,//'`
74708:   ;;
74709: shared)
74710:   PHP_PDO_PGSQL=yes
74711:   ;;
74712: no)
74713:   ext_output=no
74714:   ext_shared=no
74715:   ;;
74716: *)
74717:   ext_output=yes
74718:   ext_shared=no
74719:   ;;
74720: esac
74721: 
74722: 
74723: 
74724: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
74725: $as_echo "$ext_output" >&6; }
74726: 
74727: 
74728: 
74729: 
74730: if test "$PHP_PDO_PGSQL" != "no"; then
74731: 
74732:   if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then
74733:     as_fn_error $? "PDO is not enabled! Add --enable-pdo to your configure line." "$LINENO" 5
74734:   fi
74735: 
74736: 
74737:   if test -z "$PGSQL_INCLUDE" || echo "$PGSQL_INCLUDE" | grep '^/' >/dev/null ; then
74738:     PGSQL_INCLUDE=$PGSQL_INCLUDE
74739:   else
74740: 
74741:     ep_dir=`echo $PGSQL_INCLUDE|$SED 's%/*[^/][^/]*/*$%%'`
74742: 
74743:     ep_realdir=`(cd "$ep_dir" && pwd)`
74744:     PGSQL_INCLUDE="$ep_realdir"/`basename "$PGSQL_INCLUDE"`
74745:   fi
74746: 
74747: 
74748:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pg_config" >&5
74749: $as_echo_n "checking for pg_config... " >&6; }
74750:   for i in $PHP_PDO_PGSQL $PHP_PDO_PGSQL/bin /usr/local/pgsql/bin /usr/local/bin /usr/bin ""; do
74751:     if test -x $i/pg_config; then
74752:       PG_CONFIG="$i/pg_config"
74753:       break;
74754:     fi
74755:   done
74756: 
74757:   if test -n "$PG_CONFIG"; then
74758:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5
74759: $as_echo "$PG_CONFIG" >&6; }
74760:     PGSQL_INCLUDE=`$PG_CONFIG --includedir`
74761:     PGSQL_LIBDIR=`$PG_CONFIG --libdir`
74762: 
74763: $as_echo "#define HAVE_PG_CONFIG_H 1" >>confdefs.h
74764: 
74765:   else
74766:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
74767: $as_echo "not found" >&6; }
74768:     if test "$PHP_PDO_PGSQL" = "yes"; then
74769:       PGSQL_SEARCH_PATHS="/usr /usr/local /usr/local/pgsql"
74770:     else
74771:       PGSQL_SEARCH_PATHS=$PHP_PDO_PGSQL
74772:     fi
74773: 
74774:     for i in $PGSQL_SEARCH_PATHS; do
74775:       for j in include include/pgsql include/postgres include/postgresql ""; do
74776:         if test -r "$i/$j/libpq-fe.h"; then
74777:           PGSQL_INC_BASE=$i
74778:           PGSQL_INCLUDE=$i/$j
74779:           if test -r "$i/$j/pg_config.h"; then
74780: 
74781: $as_echo "#define HAVE_PG_CONFIG_H 1" >>confdefs.h
74782: 
74783:           fi
74784:         fi
74785:       done
74786: 
74787:       for j in $PHP_LIBDIR $PHP_LIBDIR/pgsql $PHP_LIBDIR/postgres $PHP_LIBDIR/postgresql ""; do
74788:         if test -f "$i/$j/libpq.so" || test -f "$i/$j/libpq.a"; then
74789:           PGSQL_LIBDIR=$i/$j
74790:         fi
74791:       done
74792:     done
74793:   fi
74794: 
74795:   if test -z "$PGSQL_INCLUDE"; then
74796:     as_fn_error $? "Cannot find libpq-fe.h. Please specify correct PostgreSQL installation path" "$LINENO" 5
74797:   fi
74798: 
74799:   if test -z "$PGSQL_LIBDIR"; then
74800:     as_fn_error $? "Cannot find libpq.so. Please specify correct PostgreSQL installation path" "$LINENO" 5
74801:   fi
74802: 
74803:   if test -z "$PGSQL_INCLUDE" -a -z "$PGSQL_LIBDIR" ; then
74804:     as_fn_error $? "Unable to find libpq anywhere under $PGSQL_SEARCH_PATHS" "$LINENO" 5
74805:   fi
74806: 
74807: 
74808: $as_echo "#define HAVE_PDO_PGSQL 1" >>confdefs.h
74809: 
74810: 
74811:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl dependencies" >&5
74812: $as_echo_n "checking for openssl dependencies... " >&6; }
74813:   grep openssl $PGSQL_INCLUDE/libpq-fe.h >/dev/null 2>&1
74814:   if test $? -eq 0 ; then
74815:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
74816: $as_echo "yes" >&6; }
74817:         # Extract the first word of "pkg-config", so it can be a program name with args.
74818: set dummy pkg-config; ac_word=$2
74819: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
74820: $as_echo_n "checking for $ac_word... " >&6; }
74821: if ${ac_cv_path_PKG_CONFIG+:} false; then :
74822:   $as_echo_n "(cached) " >&6
74823: else
74824:   case $PKG_CONFIG in
74825:   [\\/]* | ?:[\\/]*)
74826:   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
74827:   ;;
74828:   *)
74829:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74830: for as_dir in $PATH
74831: do
74832:   IFS=$as_save_IFS
74833:   test -z "$as_dir" && as_dir=.
74834:     for ac_exec_ext in '' $ac_executable_extensions; do
74835:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
74836:     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
74837:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
74838:     break 2
74839:   fi
74840: done
74841:   done
74842: IFS=$as_save_IFS
74843: 
74844:   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
74845:   ;;
74846: esac
74847: fi
74848: PKG_CONFIG=$ac_cv_path_PKG_CONFIG
74849: if test -n "$PKG_CONFIG"; then
74850:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
74851: $as_echo "$PKG_CONFIG" >&6; }
74852: else
74853:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
74854: $as_echo "no" >&6; }
74855: fi
74856: 
74857: 
74858:     if test -x "$PKG_CONFIG" && $PKG_CONFIG --exists openssl; then
74859:       PDO_PGSQL_CFLAGS=`$PKG_CONFIG openssl --cflags`
74860:     fi
74861:   else
74862:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
74863: $as_echo "no" >&6; }
74864:   fi
74865: 
74866:   old_LIBS=$LIBS
74867:   old_LDFLAGS=$LDFLAGS
74868:   LDFLAGS="-L$PGSQL_LIBDIR $LDFLAGS"
74869:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQparameterStatus in -lpq" >&5
74870: $as_echo_n "checking for PQparameterStatus in -lpq... " >&6; }
74871: if ${ac_cv_lib_pq_PQparameterStatus+:} false; then :
74872:   $as_echo_n "(cached) " >&6
74873: else
74874:   ac_check_lib_save_LIBS=$LIBS
74875: LIBS="-lpq  $LIBS"
74876: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
74877: /* end confdefs.h.  */
74878: 
74879: /* Override any GCC internal prototype to avoid an error.
74880:    Use char because int might match the return type of a GCC
74881:    builtin and then its argument prototype would still apply.  */
74882: #ifdef __cplusplus
74883: extern "C"
74884: #endif
74885: char PQparameterStatus ();
74886: int
74887: main ()
74888: {
74889: return PQparameterStatus ();
74890:   ;
74891:   return 0;
74892: }
74893: _ACEOF
74894: if ac_fn_c_try_link "$LINENO"; then :
74895:   ac_cv_lib_pq_PQparameterStatus=yes
74896: else
74897:   ac_cv_lib_pq_PQparameterStatus=no
74898: fi
74899: rm -f core conftest.err conftest.$ac_objext \
74900:     conftest$ac_exeext conftest.$ac_ext
74901: LIBS=$ac_check_lib_save_LIBS
74902: fi
74903: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQparameterStatus" >&5
74904: $as_echo "$ac_cv_lib_pq_PQparameterStatus" >&6; }
74905: if test "x$ac_cv_lib_pq_PQparameterStatus" = xyes; then :
74906: 
74907: $as_echo "#define HAVE_PQPARAMETERSTATUS 1" >>confdefs.h
74908: 
74909: else
74910: 
74911:     echo "Unable to build the PDO PostgreSQL driver: libpq 7.4+ is required"
74912:     exit 1
74913: 
74914: fi
74915: 
74916: 
74917:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQprepare in -lpq" >&5
74918: $as_echo_n "checking for PQprepare in -lpq... " >&6; }
74919: if ${ac_cv_lib_pq_PQprepare+:} false; then :
74920:   $as_echo_n "(cached) " >&6
74921: else
74922:   ac_check_lib_save_LIBS=$LIBS
74923: LIBS="-lpq  $LIBS"
74924: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
74925: /* end confdefs.h.  */
74926: 
74927: /* Override any GCC internal prototype to avoid an error.
74928:    Use char because int might match the return type of a GCC
74929:    builtin and then its argument prototype would still apply.  */
74930: #ifdef __cplusplus
74931: extern "C"
74932: #endif
74933: char PQprepare ();
74934: int
74935: main ()
74936: {
74937: return PQprepare ();
74938:   ;
74939:   return 0;
74940: }
74941: _ACEOF
74942: if ac_fn_c_try_link "$LINENO"; then :
74943:   ac_cv_lib_pq_PQprepare=yes
74944: else
74945:   ac_cv_lib_pq_PQprepare=no
74946: fi
74947: rm -f core conftest.err conftest.$ac_objext \
74948:     conftest$ac_exeext conftest.$ac_ext
74949: LIBS=$ac_check_lib_save_LIBS
74950: fi
74951: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQprepare" >&5
74952: $as_echo "$ac_cv_lib_pq_PQprepare" >&6; }
74953: if test "x$ac_cv_lib_pq_PQprepare" = xyes; then :
74954: 
74955: $as_echo "#define HAVE_PQPREPARE 1" >>confdefs.h
74956: 
74957: fi
74958: 
74959:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQescapeStringConn in -lpq" >&5
74960: $as_echo_n "checking for PQescapeStringConn in -lpq... " >&6; }
74961: if ${ac_cv_lib_pq_PQescapeStringConn+:} false; then :
74962:   $as_echo_n "(cached) " >&6
74963: else
74964:   ac_check_lib_save_LIBS=$LIBS
74965: LIBS="-lpq  $LIBS"
74966: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
74967: /* end confdefs.h.  */
74968: 
74969: /* Override any GCC internal prototype to avoid an error.
74970:    Use char because int might match the return type of a GCC
74971:    builtin and then its argument prototype would still apply.  */
74972: #ifdef __cplusplus
74973: extern "C"
74974: #endif
74975: char PQescapeStringConn ();
74976: int
74977: main ()
74978: {
74979: return PQescapeStringConn ();
74980:   ;
74981:   return 0;
74982: }
74983: _ACEOF
74984: if ac_fn_c_try_link "$LINENO"; then :
74985:   ac_cv_lib_pq_PQescapeStringConn=yes
74986: else
74987:   ac_cv_lib_pq_PQescapeStringConn=no
74988: fi
74989: rm -f core conftest.err conftest.$ac_objext \
74990:     conftest$ac_exeext conftest.$ac_ext
74991: LIBS=$ac_check_lib_save_LIBS
74992: fi
74993: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQescapeStringConn" >&5
74994: $as_echo "$ac_cv_lib_pq_PQescapeStringConn" >&6; }
74995: if test "x$ac_cv_lib_pq_PQescapeStringConn" = xyes; then :
74996: 
74997: $as_echo "#define HAVE_PQESCAPE_CONN 1" >>confdefs.h
74998: 
74999: fi
75000: 
75001:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQescapeByteaConn in -lpq" >&5
75002: $as_echo_n "checking for PQescapeByteaConn in -lpq... " >&6; }
75003: if ${ac_cv_lib_pq_PQescapeByteaConn+:} false; then :
75004:   $as_echo_n "(cached) " >&6
75005: else
75006:   ac_check_lib_save_LIBS=$LIBS
75007: LIBS="-lpq  $LIBS"
75008: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
75009: /* end confdefs.h.  */
75010: 
75011: /* Override any GCC internal prototype to avoid an error.
75012:    Use char because int might match the return type of a GCC
75013:    builtin and then its argument prototype would still apply.  */
75014: #ifdef __cplusplus
75015: extern "C"
75016: #endif
75017: char PQescapeByteaConn ();
75018: int
75019: main ()
75020: {
75021: return PQescapeByteaConn ();
75022:   ;
75023:   return 0;
75024: }
75025: _ACEOF
75026: if ac_fn_c_try_link "$LINENO"; then :
75027:   ac_cv_lib_pq_PQescapeByteaConn=yes
75028: else
75029:   ac_cv_lib_pq_PQescapeByteaConn=no
75030: fi
75031: rm -f core conftest.err conftest.$ac_objext \
75032:     conftest$ac_exeext conftest.$ac_ext
75033: LIBS=$ac_check_lib_save_LIBS
75034: fi
75035: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQescapeByteaConn" >&5
75036: $as_echo "$ac_cv_lib_pq_PQescapeByteaConn" >&6; }
75037: if test "x$ac_cv_lib_pq_PQescapeByteaConn" = xyes; then :
75038: 
75039: $as_echo "#define HAVE_PQESCAPE_BYTEA_CONN 1" >>confdefs.h
75040: 
75041: fi
75042: 
75043: 
75044:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pg_encoding_to_char in -lpq" >&5
75045: $as_echo_n "checking for pg_encoding_to_char in -lpq... " >&6; }
75046: if ${ac_cv_lib_pq_pg_encoding_to_char+:} false; then :
75047:   $as_echo_n "(cached) " >&6
75048: else
75049:   ac_check_lib_save_LIBS=$LIBS
75050: LIBS="-lpq  $LIBS"
75051: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
75052: /* end confdefs.h.  */
75053: 
75054: /* Override any GCC internal prototype to avoid an error.
75055:    Use char because int might match the return type of a GCC
75056:    builtin and then its argument prototype would still apply.  */
75057: #ifdef __cplusplus
75058: extern "C"
75059: #endif
75060: char pg_encoding_to_char ();
75061: int
75062: main ()
75063: {
75064: return pg_encoding_to_char ();
75065:   ;
75066:   return 0;
75067: }
75068: _ACEOF
75069: if ac_fn_c_try_link "$LINENO"; then :
75070:   ac_cv_lib_pq_pg_encoding_to_char=yes
75071: else
75072:   ac_cv_lib_pq_pg_encoding_to_char=no
75073: fi
75074: rm -f core conftest.err conftest.$ac_objext \
75075:     conftest$ac_exeext conftest.$ac_ext
75076: LIBS=$ac_check_lib_save_LIBS
75077: fi
75078: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_pg_encoding_to_char" >&5
75079: $as_echo "$ac_cv_lib_pq_pg_encoding_to_char" >&6; }
75080: if test "x$ac_cv_lib_pq_pg_encoding_to_char" = xyes; then :
75081: 
75082: $as_echo "#define HAVE_PGSQL_WITH_MULTIBYTE_SUPPORT 1" >>confdefs.h
75083: 
75084: fi
75085: 
75086: 
75087: 
75088:   LIBS=$old_LIBS
75089:   LDFLAGS=$old_LDFLAGS
75090: 
75091: 
75092: 
75093:   if test "$ext_shared" = "yes"; then
75094:     PDO_PGSQL_SHARED_LIBADD="-lpq $PDO_PGSQL_SHARED_LIBADD"
75095:     if test -n "$PGSQL_LIBDIR"; then
75096: 
75097:   if test "$PGSQL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PGSQL_LIBDIR" != "/usr/lib"; then
75098: 
75099:   if test -z "$PGSQL_LIBDIR" || echo "$PGSQL_LIBDIR" | grep '^/' >/dev/null ; then
75100:     ai_p=$PGSQL_LIBDIR
75101:   else
75102: 
75103:     ep_dir=`echo $PGSQL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
75104: 
75105:     ep_realdir=`(cd "$ep_dir" && pwd)`
75106:     ai_p="$ep_realdir"/`basename "$PGSQL_LIBDIR"`
75107:   fi
75108: 
75109: 
75110:       if test "$ext_shared" = "yes"; then
75111:         PDO_PGSQL_SHARED_LIBADD="-L$ai_p $PDO_PGSQL_SHARED_LIBADD"
75112:         test -n "$ld_runpath_switch" && PDO_PGSQL_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_PGSQL_SHARED_LIBADD"
75113:       else
75114: 
75115: 
75116: 
75117:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
75118: 
75119:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
75120:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
75121:     eval "LIBPATH$unique=set"
75122: 
75123:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
75124:     LDFLAGS="$LDFLAGS -L$ai_p"
75125:     PHP_RPATHS="$PHP_RPATHS $ai_p"
75126: 
75127:   fi
75128: 
75129: 
75130:       fi
75131: 
75132:   fi
75133: 
75134:     fi
75135:   else
75136: 
75137: 
75138:   if test -n "$PGSQL_LIBDIR"; then
75139: 
75140:   if test "$PGSQL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PGSQL_LIBDIR" != "/usr/lib"; then
75141: 
75142:   if test -z "$PGSQL_LIBDIR" || echo "$PGSQL_LIBDIR" | grep '^/' >/dev/null ; then
75143:     ai_p=$PGSQL_LIBDIR
75144:   else
75145: 
75146:     ep_dir=`echo $PGSQL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
75147: 
75148:     ep_realdir=`(cd "$ep_dir" && pwd)`
75149:     ai_p="$ep_realdir"/`basename "$PGSQL_LIBDIR"`
75150:   fi
75151: 
75152: 
75153: 
75154: 
75155: 
75156:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
75157: 
75158:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
75159:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
75160:     eval "LIBPATH$unique=set"
75161: 
75162:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
75163:     LDFLAGS="$LDFLAGS -L$ai_p"
75164:     PHP_RPATHS="$PHP_RPATHS $ai_p"
75165: 
75166:   fi
75167: 
75168: 
75169: 
75170:   fi
75171: 
75172:   fi
75173: 
75174: 
75175:   case pq in
75176:   c|c_r|pthread*) ;;
75177:   *)
75178:       LIBS="-lpq $LIBS"
75179:    ;;
75180:   esac
75181: 
75182: 
75183: 
75184: 
75185:   fi
75186: 
75187: 
75188: 
75189:   PHP_VAR_SUBST="$PHP_VAR_SUBST PDO_PGSQL_SHARED_LIBADD"
75190: 
75191: 
75192: 
75193:   if test "$PGSQL_INCLUDE" != "/usr/include"; then
75194: 
75195:   if test -z "$PGSQL_INCLUDE" || echo "$PGSQL_INCLUDE" | grep '^/' >/dev/null ; then
75196:     ai_p=$PGSQL_INCLUDE
75197:   else
75198: 
75199:     ep_dir=`echo $PGSQL_INCLUDE|$SED 's%/*[^/][^/]*/*$%%'`
75200: 
75201:     ep_realdir=`(cd "$ep_dir" && pwd)`
75202:     ai_p="$ep_realdir"/`basename "$PGSQL_INCLUDE"`
75203:   fi
75204: 
75205: 
75206: 
75207:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
75208: 
75209:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
75210:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
75211:     eval "INCLUDEPATH$unique=set"
75212: 
75213:       if test ""; then
75214:         INCLUDES="-I$ai_p $INCLUDES"
75215:       else
75216:         INCLUDES="$INCLUDES -I$ai_p"
75217:       fi
75218: 
75219:   fi
75220: 
75221:   fi
75222: 
75223: 
75224: 
75225: 
75226:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5
75227: $as_echo_n "checking for PDO includes... " >&6; }
75228: if ${pdo_cv_inc_path+:} false; then :
75229:   $as_echo_n "(cached) " >&6
75230: else
75231: 
75232:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5
75233: $as_echo_n "checking for PDO includes... " >&6; }
75234:     if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then
75235:       pdo_cv_inc_path=$abs_srcdir/ext
75236:     elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then
75237:       pdo_cv_inc_path=$abs_srcdir/ext
75238:     elif test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then
75239:       pdo_cv_inc_path=$prefix/include/php/ext
75240:     fi
75241: 
75242: fi
75243: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pdo_cv_inc_path" >&5
75244: $as_echo "$pdo_cv_inc_path" >&6; }
75245:   if test -n "$pdo_cv_inc_path"; then
75246: :
75247:   else
75248: as_fn_error $? "Cannot find php_pdo_driver.h." "$LINENO" 5
75249:   fi
75250: 
75251: 
75252: 
75253: 
75254:   ext_builddir=ext/pdo_pgsql
75255:   ext_srcdir=$abs_srcdir/ext/pdo_pgsql
75256: 
75257:   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`
75258: 
75259:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
75260:     PHP_PDO_PGSQL_SHARED=no
75261: 
75262: 
75263:   case ext/pdo_pgsql in
75264:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
75265:   /*) ac_srcdir=`echo "ext/pdo_pgsql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
75266:   *) ac_srcdir="$abs_srcdir/ext/pdo_pgsql/"; ac_bdir="ext/pdo_pgsql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
75267:   esac
75268: 
75269: 
75270: 
75271:   b_c_pre=$php_c_pre
75272:   b_cxx_pre=$php_cxx_pre
75273:   b_c_meta=$php_c_meta
75274:   b_cxx_meta=$php_cxx_meta
75275:   b_c_post=$php_c_post
75276:   b_cxx_post=$php_cxx_post
75277:   b_lo=$php_lo
75278: 
75279: 
75280:   old_IFS=$IFS
75281:   for ac_src in pdo_pgsql.c pgsql_driver.c pgsql_statement.c; do
75282: 
75283:       IFS=.
75284:       set $ac_src
75285:       ac_obj=$1
75286:       IFS=$old_IFS
75287: 
75288:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
75289: 
75290:       case $ac_src in
75291:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
75292:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
75293:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
75294:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
75295:       esac
75296: 
75297:     cat >>Makefile.objects<<EOF
75298: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
75299: 	$ac_comp
75300: EOF
75301:   done
75302: 
75303: 
75304:     EXT_STATIC="$EXT_STATIC pdo_pgsql"
75305:     if test "$ext_shared" != "nocli"; then
75306:       EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_pgsql"
75307:     fi
75308:   else
75309:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
75310:       PHP_PDO_PGSQL_SHARED=yes
75311: 
75312:   case ext/pdo_pgsql in
75313:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
75314:   /*) ac_srcdir=`echo "ext/pdo_pgsql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
75315:   *) ac_srcdir="$abs_srcdir/ext/pdo_pgsql/"; ac_bdir="ext/pdo_pgsql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
75316:   esac
75317: 
75318: 
75319: 
75320:   b_c_pre=$shared_c_pre
75321:   b_cxx_pre=$shared_cxx_pre
75322:   b_c_meta=$shared_c_meta
75323:   b_cxx_meta=$shared_cxx_meta
75324:   b_c_post=$shared_c_post
75325:   b_cxx_post=$shared_cxx_post
75326:   b_lo=$shared_lo
75327: 
75328: 
75329:   old_IFS=$IFS
75330:   for ac_src in pdo_pgsql.c pgsql_driver.c pgsql_statement.c; do
75331: 
75332:       IFS=.
75333:       set $ac_src
75334:       ac_obj=$1
75335:       IFS=$old_IFS
75336: 
75337:       shared_objects_pdo_pgsql="$shared_objects_pdo_pgsql $ac_bdir$ac_obj.lo"
75338: 
75339:       case $ac_src in
75340:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
75341:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
75342:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
75343:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
75344:       esac
75345: 
75346:     cat >>Makefile.objects<<EOF
75347: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
75348: 	$ac_comp
75349: EOF
75350:   done
75351: 
75352:       case $host_alias in
75353:         *netware*)
75354: 
75355:   install_modules="install-modules"
75356: 
75357:   case $host_alias in
75358:     *aix*)
75359:       suffix=so
75360:       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'
75361:       ;;
75362:     *netware*)
75363:       suffix=nlm
75364:       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)'
75365:       ;;
75366:     *)
75367:       suffix=la
75368:       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)'
75369:       ;;
75370:   esac
75371: 
75372:   if test "x" = "xyes"; then
75373:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phppdo_pgsql.$suffix"
75374:   else
75375:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phppdo_pgsql.$suffix"
75376:   fi
75377: 
75378:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo_pgsql"
75379: 
75380:   cat >>Makefile.objects<<EOF
75381: \$(phplibdir)/phppdo_pgsql.$suffix: $ext_builddir/phppdo_pgsql.$suffix
75382: 	\$(LIBTOOL) --mode=install cp $ext_builddir/phppdo_pgsql.$suffix \$(phplibdir)
75383: 
75384: $ext_builddir/phppdo_pgsql.$suffix: \$(shared_objects_pdo_pgsql) \$(PHPPDO_PGSQL_SHARED_DEPENDENCIES)
75385: 	$link_cmd
75386: 
75387: EOF
75388: 
75389:           ;;
75390:         *)
75391: 
75392:   install_modules="install-modules"
75393: 
75394:   case $host_alias in
75395:     *aix*)
75396:       suffix=so
75397:       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'
75398:       ;;
75399:     *netware*)
75400:       suffix=nlm
75401:       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)'
75402:       ;;
75403:     *)
75404:       suffix=la
75405:       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)'
75406:       ;;
75407:   esac
75408: 
75409:   if test "x" = "xyes"; then
75410:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/pdo_pgsql.$suffix"
75411:   else
75412:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/pdo_pgsql.$suffix"
75413:   fi
75414: 
75415:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo_pgsql"
75416: 
75417:   cat >>Makefile.objects<<EOF
75418: \$(phplibdir)/pdo_pgsql.$suffix: $ext_builddir/pdo_pgsql.$suffix
75419: 	\$(LIBTOOL) --mode=install cp $ext_builddir/pdo_pgsql.$suffix \$(phplibdir)
75420: 
75421: $ext_builddir/pdo_pgsql.$suffix: \$(shared_objects_pdo_pgsql) \$(PDO_PGSQL_SHARED_DEPENDENCIES)
75422: 	$link_cmd
75423: 
75424: EOF
75425: 
75426:           ;;
75427:       esac
75428: 
75429: cat >>confdefs.h <<_ACEOF
75430: #define COMPILE_DL_PDO_PGSQL 1
75431: _ACEOF
75432: 
75433:     fi
75434:   fi
75435: 
75436:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
75437:     PHP_PDO_PGSQL_SHARED=no
75438:     case "$PHP_SAPI" in
75439:       cgi|embed)
75440: 
75441: 
75442:   case ext/pdo_pgsql in
75443:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
75444:   /*) ac_srcdir=`echo "ext/pdo_pgsql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
75445:   *) ac_srcdir="$abs_srcdir/ext/pdo_pgsql/"; ac_bdir="ext/pdo_pgsql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
75446:   esac
75447: 
75448: 
75449: 
75450:   b_c_pre=$php_c_pre
75451:   b_cxx_pre=$php_cxx_pre
75452:   b_c_meta=$php_c_meta
75453:   b_cxx_meta=$php_cxx_meta
75454:   b_c_post=$php_c_post
75455:   b_cxx_post=$php_cxx_post
75456:   b_lo=$php_lo
75457: 
75458: 
75459:   old_IFS=$IFS
75460:   for ac_src in pdo_pgsql.c pgsql_driver.c pgsql_statement.c; do
75461: 
75462:       IFS=.
75463:       set $ac_src
75464:       ac_obj=$1
75465:       IFS=$old_IFS
75466: 
75467:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
75468: 
75469:       case $ac_src in
75470:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
75471:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
75472:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
75473:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
75474:       esac
75475: 
75476:     cat >>Makefile.objects<<EOF
75477: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
75478: 	$ac_comp
75479: EOF
75480:   done
75481: 
75482: 
75483:         EXT_STATIC="$EXT_STATIC pdo_pgsql"
75484:         ;;
75485:       *)
75486: 
75487: 
75488:   case ext/pdo_pgsql in
75489:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
75490:   /*) ac_srcdir=`echo "ext/pdo_pgsql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
75491:   *) ac_srcdir="$abs_srcdir/ext/pdo_pgsql/"; ac_bdir="ext/pdo_pgsql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
75492:   esac
75493: 
75494: 
75495: 
75496:   b_c_pre=$php_c_pre
75497:   b_cxx_pre=$php_cxx_pre
75498:   b_c_meta=$php_c_meta
75499:   b_cxx_meta=$php_cxx_meta
75500:   b_c_post=$php_c_post
75501:   b_cxx_post=$php_cxx_post
75502:   b_lo=$php_lo
75503: 
75504: 
75505:   old_IFS=$IFS
75506:   for ac_src in pdo_pgsql.c pgsql_driver.c pgsql_statement.c; do
75507: 
75508:       IFS=.
75509:       set $ac_src
75510:       ac_obj=$1
75511:       IFS=$old_IFS
75512: 
75513:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
75514: 
75515:       case $ac_src in
75516:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
75517:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
75518:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
75519:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
75520:       esac
75521: 
75522:     cat >>Makefile.objects<<EOF
75523: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
75524: 	$ac_comp
75525: EOF
75526:   done
75527: 
75528: 
75529:         ;;
75530:     esac
75531:     EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_pgsql"
75532:   fi
75533: 
75534: 
75535:     BUILD_DIR="$BUILD_DIR $ext_builddir"
75536: 
75537: 
75538: 
75539:   if test "$ext_builddir" = "."; then
75540:     PHP_PECL_EXTENSION=pdo_pgsql
75541: 
75542:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
75543: 
75544:   fi
75545: 
75546: 
75547: 
75548:   am_i_shared=$PHP_PDO_PGSQL_SHARED
75549:   is_it_shared=$PHP_PDO_SHARED
75550:   is_it_enabled=$PHP_PDO
75551:   if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
75552:     as_fn_error $? "
75553: You've configured extension pdo_pgsql to build statically, but it
75554: depends on extension pdo, which you've configured to build shared.
75555: You either need to build pdo_pgsql shared or build pdo statically for the
75556: build to be successful.
75557: " "$LINENO" 5
75558:   fi
75559:   if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then
75560:     as_fn_error $? "
75561: You've configured extension pdo_pgsql, which depends on extension pdo,
75562: but you've either not enabled pdo, or have disabled it.
75563: " "$LINENO" 5
75564:   fi
75565: 
75566: 
75567: fi
75568: 
75569: 
75570: 
75571: php_with_pdo_sqlite=$PHP_PDO
75572: 
75573: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite 3 support for PDO" >&5
75574: $as_echo_n "checking for sqlite 3 support for PDO... " >&6; }
75575: 
75576: # Check whether --with-pdo-sqlite was given.
75577: if test "${with_pdo_sqlite+set}" = set; then :
75578:   withval=$with_pdo_sqlite; PHP_PDO_SQLITE=$withval
75579: else
75580: 
75581:   PHP_PDO_SQLITE=$PHP_PDO
75582:   test "$PHP_ENABLE_ALL" && PHP_PDO_SQLITE=$PHP_ENABLE_ALL
75583: 
75584: fi
75585: 
75586: 
75587: 
75588: ext_output="yes, shared"
75589: ext_shared=yes
75590: case $PHP_PDO_SQLITE in
75591: shared,*)
75592:   PHP_PDO_SQLITE=`echo "$PHP_PDO_SQLITE"|$SED 's/^shared,//'`
75593:   ;;
75594: shared)
75595:   PHP_PDO_SQLITE=yes
75596:   ;;
75597: no)
75598:   ext_output=no
75599:   ext_shared=no
75600:   ;;
75601: *)
75602:   ext_output=yes
75603:   ext_shared=no
75604:   ;;
75605: esac
75606: 
75607: 
75608: 
75609: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
75610: $as_echo "$ext_output" >&6; }
75611: 
75612: 
75613: 
75614: 
75615: if test "$PHP_PDO_SQLITE" != "no"; then
75616: 
75617:   if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then
75618:     as_fn_error $? "PDO is not enabled! Add --enable-pdo to your configure line." "$LINENO" 5
75619:   fi
75620: 
75621: 
75622: 
75623:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5
75624: $as_echo_n "checking for PDO includes... " >&6; }
75625: if ${pdo_cv_inc_path+:} false; then :
75626:   $as_echo_n "(cached) " >&6
75627: else
75628: 
75629:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5
75630: $as_echo_n "checking for PDO includes... " >&6; }
75631:     if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then
75632:       pdo_cv_inc_path=$abs_srcdir/ext
75633:     elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then
75634:       pdo_cv_inc_path=$abs_srcdir/ext
75635:     elif test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then
75636:       pdo_cv_inc_path=$prefix/include/php/ext
75637:     fi
75638: 
75639: fi
75640: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pdo_cv_inc_path" >&5
75641: $as_echo "$pdo_cv_inc_path" >&6; }
75642:   if test -n "$pdo_cv_inc_path"; then
75643: :
75644:   else
75645: as_fn_error $? "Cannot find php_pdo_driver.h." "$LINENO" 5
75646:   fi
75647: 
75648: 
75649: 
75650:   php_pdo_sqlite_sources_core="pdo_sqlite.c sqlite_driver.c sqlite_statement.c"
75651: 
75652:   if test "$PHP_PDO_SQLITE" != "yes"; then
75653:     SEARCH_PATH="$PHP_PDO_SQLITE /usr/local /usr"     # you might want to change this
75654:     SEARCH_FOR="/include/sqlite3.h"  # you most likely want to change this
75655:     if test -r $PHP_PDO_SQLITE/$SEARCH_FOR; then # path given as parameter
75656:       PDO_SQLITE_DIR=$PHP_PDO_SQLITE
75657:     else # search default path list
75658:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3 files in default path" >&5
75659: $as_echo_n "checking for sqlite3 files in default path... " >&6; }
75660:       for i in $SEARCH_PATH ; do
75661:         if test -r $i/$SEARCH_FOR; then
75662:           PDO_SQLITE_DIR=$i
75663:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $i" >&5
75664: $as_echo "found in $i" >&6; }
75665:         fi
75666:       done
75667:     fi
75668:     if test -z "$PDO_SQLITE_DIR"; then
75669:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
75670: $as_echo "not found" >&6; }
75671:       as_fn_error $? "Please reinstall the sqlite3 distribution" "$LINENO" 5
75672:     fi
75673: 
75674: 
75675:   if test "$PDO_SQLITE_DIR/include" != "/usr/include"; then
75676: 
75677:   if test -z "$PDO_SQLITE_DIR/include" || echo "$PDO_SQLITE_DIR/include" | grep '^/' >/dev/null ; then
75678:     ai_p=$PDO_SQLITE_DIR/include
75679:   else
75680: 
75681:     ep_dir=`echo $PDO_SQLITE_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`
75682: 
75683:     ep_realdir=`(cd "$ep_dir" && pwd)`
75684:     ai_p="$ep_realdir"/`basename "$PDO_SQLITE_DIR/include"`
75685:   fi
75686: 
75687: 
75688: 
75689:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
75690: 
75691:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
75692:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
75693:     eval "INCLUDEPATH$unique=set"
75694: 
75695:       if test ""; then
75696:         INCLUDES="-I$ai_p $INCLUDES"
75697:       else
75698:         INCLUDES="$INCLUDES -I$ai_p"
75699:       fi
75700: 
75701:   fi
75702: 
75703:   fi
75704: 
75705: 
75706:     LIBNAME=sqlite3
75707:     LIBSYMBOL=sqlite3_open
75708: 
75709: 
75710:   save_old_LDFLAGS=$LDFLAGS
75711:   ac_stuff="
75712:       -L$PDO_SQLITE_DIR/$PHP_LIBDIR -lm
75713:     "
75714: 
75715:   save_ext_shared=$ext_shared
75716:   ext_shared=yes
75717: 
75718:   for ac_i in $ac_stuff; do
75719:     case $ac_i in
75720:     -pthread)
75721:       if test "$ext_shared" = "yes"; then
75722:         LDFLAGS="$LDFLAGS -pthread"
75723:       else
75724: 
75725: 
75726:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
75727: 
75728:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
75729:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
75730:     eval "EXTRA_LDFLAGS$unique=set"
75731:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
75732:   fi
75733: 
75734:       fi
75735:     ;;
75736:     -l*)
75737:       ac_ii=`echo $ac_i|cut -c 3-`
75738: 
75739: 
75740:   case $ac_ii in
75741:   c|c_r|pthread*) ;;
75742:   *)
75743:     if test "$ext_shared" = "yes"; then
75744:         LDFLAGS="$LDFLAGS -l$ac_ii"
75745:     else
75746: 
75747: 
75748:   case $ac_ii in
75749:   c|c_r|pthread*) ;;
75750:   *)
75751:       LIBS="$LIBS -l$ac_ii"
75752:    ;;
75753:   esac
75754: 
75755: 
75756:     fi
75757:    ;;
75758:   esac
75759: 
75760: 
75761:     ;;
75762:     -L*)
75763:       ac_ii=`echo $ac_i|cut -c 3-`
75764: 
75765:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
75766: 
75767:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
75768:     ai_p=$ac_ii
75769:   else
75770: 
75771:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
75772: 
75773:     ep_realdir=`(cd "$ep_dir" && pwd)`
75774:     ai_p="$ep_realdir"/`basename "$ac_ii"`
75775:   fi
75776: 
75777: 
75778:       if test "$ext_shared" = "yes"; then
75779:         LDFLAGS="-L$ai_p $LDFLAGS"
75780:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
75781:       else
75782: 
75783: 
75784: 
75785:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
75786: 
75787:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
75788:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
75789:     eval "LIBPATH$unique=set"
75790: 
75791:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
75792:     LDFLAGS="$LDFLAGS -L$ai_p"
75793:     PHP_RPATHS="$PHP_RPATHS $ai_p"
75794: 
75795:   fi
75796: 
75797: 
75798:       fi
75799: 
75800:   fi
75801: 
75802:     ;;
75803:     esac
75804:   done
75805: 
75806:   as_ac_Lib=`$as_echo "ac_cv_lib_$LIBNAME''_$LIBSYMBOL" | $as_tr_sh`
75807: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LIBSYMBOL in -l$LIBNAME" >&5
75808: $as_echo_n "checking for $LIBSYMBOL in -l$LIBNAME... " >&6; }
75809: if eval \${$as_ac_Lib+:} false; then :
75810:   $as_echo_n "(cached) " >&6
75811: else
75812:   ac_check_lib_save_LIBS=$LIBS
75813: LIBS="-l$LIBNAME  $LIBS"
75814: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
75815: /* end confdefs.h.  */
75816: 
75817: /* Override any GCC internal prototype to avoid an error.
75818:    Use char because int might match the return type of a GCC
75819:    builtin and then its argument prototype would still apply.  */
75820: #ifdef __cplusplus
75821: extern "C"
75822: #endif
75823: char $LIBSYMBOL ();
75824: int
75825: main ()
75826: {
75827: return $LIBSYMBOL ();
75828:   ;
75829:   return 0;
75830: }
75831: _ACEOF
75832: if ac_fn_c_try_link "$LINENO"; then :
75833:   eval "$as_ac_Lib=yes"
75834: else
75835:   eval "$as_ac_Lib=no"
75836: fi
75837: rm -f core conftest.err conftest.$ac_objext \
75838:     conftest$ac_exeext conftest.$ac_ext
75839: LIBS=$ac_check_lib_save_LIBS
75840: fi
75841: eval ac_res=\$$as_ac_Lib
75842: 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
75843: $as_echo "$ac_res" >&6; }
75844: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
75845: 
75846:     LDFLAGS=$save_old_LDFLAGS
75847:     ext_shared=$save_ext_shared
75848: 
75849: 
75850: 
75851:   if test "$ext_shared" = "yes"; then
75852:     PDO_SQLITE_SHARED_LIBADD="-l$LIBNAME $PDO_SQLITE_SHARED_LIBADD"
75853:     if test -n "$PDO_SQLITE_DIR/$PHP_LIBDIR"; then
75854: 
75855:   if test "$PDO_SQLITE_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PDO_SQLITE_DIR/$PHP_LIBDIR" != "/usr/lib"; then
75856: 
75857:   if test -z "$PDO_SQLITE_DIR/$PHP_LIBDIR" || echo "$PDO_SQLITE_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
75858:     ai_p=$PDO_SQLITE_DIR/$PHP_LIBDIR
75859:   else
75860: 
75861:     ep_dir=`echo $PDO_SQLITE_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
75862: 
75863:     ep_realdir=`(cd "$ep_dir" && pwd)`
75864:     ai_p="$ep_realdir"/`basename "$PDO_SQLITE_DIR/$PHP_LIBDIR"`
75865:   fi
75866: 
75867: 
75868:       if test "$ext_shared" = "yes"; then
75869:         PDO_SQLITE_SHARED_LIBADD="-L$ai_p $PDO_SQLITE_SHARED_LIBADD"
75870:         test -n "$ld_runpath_switch" && PDO_SQLITE_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_SQLITE_SHARED_LIBADD"
75871:       else
75872: 
75873: 
75874: 
75875:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
75876: 
75877:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
75878:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
75879:     eval "LIBPATH$unique=set"
75880: 
75881:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
75882:     LDFLAGS="$LDFLAGS -L$ai_p"
75883:     PHP_RPATHS="$PHP_RPATHS $ai_p"
75884: 
75885:   fi
75886: 
75887: 
75888:       fi
75889: 
75890:   fi
75891: 
75892:     fi
75893:   else
75894: 
75895: 
75896:   if test -n "$PDO_SQLITE_DIR/$PHP_LIBDIR"; then
75897: 
75898:   if test "$PDO_SQLITE_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PDO_SQLITE_DIR/$PHP_LIBDIR" != "/usr/lib"; then
75899: 
75900:   if test -z "$PDO_SQLITE_DIR/$PHP_LIBDIR" || echo "$PDO_SQLITE_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
75901:     ai_p=$PDO_SQLITE_DIR/$PHP_LIBDIR
75902:   else
75903: 
75904:     ep_dir=`echo $PDO_SQLITE_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
75905: 
75906:     ep_realdir=`(cd "$ep_dir" && pwd)`
75907:     ai_p="$ep_realdir"/`basename "$PDO_SQLITE_DIR/$PHP_LIBDIR"`
75908:   fi
75909: 
75910: 
75911: 
75912: 
75913: 
75914:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
75915: 
75916:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
75917:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
75918:     eval "LIBPATH$unique=set"
75919: 
75920:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
75921:     LDFLAGS="$LDFLAGS -L$ai_p"
75922:     PHP_RPATHS="$PHP_RPATHS $ai_p"
75923: 
75924:   fi
75925: 
75926: 
75927: 
75928:   fi
75929: 
75930:   fi
75931: 
75932: 
75933:   case $LIBNAME in
75934:   c|c_r|pthread*) ;;
75935:   *)
75936:       LIBS="-l$LIBNAME $LIBS"
75937:    ;;
75938:   esac
75939: 
75940: 
75941: 
75942: 
75943:   fi
75944: 
75945: 
75946: 
75947: $as_echo "#define HAVE_PDO_SQLITELIB 1" >>confdefs.h
75948: 
75949: 
75950: 
75951: else
75952: 
75953:     LDFLAGS=$save_old_LDFLAGS
75954:     ext_shared=$save_ext_shared
75955:     unset ac_cv_lib_$LIBNAME_$LIBSYMBOL
75956: 
75957:       as_fn_error $? "wrong sqlite lib version or lib not found" "$LINENO" 5
75958: 
75959: 
75960: fi
75961: 
75962: 
75963:   save_old_LDFLAGS=$LDFLAGS
75964:   ac_stuff=""
75965: 
75966:   save_ext_shared=$ext_shared
75967:   ext_shared=yes
75968: 
75969:   for ac_i in $ac_stuff; do
75970:     case $ac_i in
75971:     -pthread)
75972:       if test "$ext_shared" = "yes"; then
75973:         LDFLAGS="$LDFLAGS -pthread"
75974:       else
75975: 
75976: 
75977:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
75978: 
75979:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
75980:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
75981:     eval "EXTRA_LDFLAGS$unique=set"
75982:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
75983:   fi
75984: 
75985:       fi
75986:     ;;
75987:     -l*)
75988:       ac_ii=`echo $ac_i|cut -c 3-`
75989: 
75990: 
75991:   case $ac_ii in
75992:   c|c_r|pthread*) ;;
75993:   *)
75994:     if test "$ext_shared" = "yes"; then
75995:         LDFLAGS="$LDFLAGS -l$ac_ii"
75996:     else
75997: 
75998: 
75999:   case $ac_ii in
76000:   c|c_r|pthread*) ;;
76001:   *)
76002:       LIBS="$LIBS -l$ac_ii"
76003:    ;;
76004:   esac
76005: 
76006: 
76007:     fi
76008:    ;;
76009:   esac
76010: 
76011: 
76012:     ;;
76013:     -L*)
76014:       ac_ii=`echo $ac_i|cut -c 3-`
76015: 
76016:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
76017: 
76018:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
76019:     ai_p=$ac_ii
76020:   else
76021: 
76022:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
76023: 
76024:     ep_realdir=`(cd "$ep_dir" && pwd)`
76025:     ai_p="$ep_realdir"/`basename "$ac_ii"`
76026:   fi
76027: 
76028: 
76029:       if test "$ext_shared" = "yes"; then
76030:         LDFLAGS="-L$ai_p $LDFLAGS"
76031:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
76032:       else
76033: 
76034: 
76035: 
76036:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
76037: 
76038:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
76039:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
76040:     eval "LIBPATH$unique=set"
76041: 
76042:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
76043:     LDFLAGS="$LDFLAGS -L$ai_p"
76044:     PHP_RPATHS="$PHP_RPATHS $ai_p"
76045: 
76046:   fi
76047: 
76048: 
76049:       fi
76050: 
76051:   fi
76052: 
76053:     ;;
76054:     esac
76055:   done
76056: 
76057:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_key in -lsqlite3" >&5
76058: $as_echo_n "checking for sqlite3_key in -lsqlite3... " >&6; }
76059: if ${ac_cv_lib_sqlite3_sqlite3_key+:} false; then :
76060:   $as_echo_n "(cached) " >&6
76061: else
76062:   ac_check_lib_save_LIBS=$LIBS
76063: LIBS="-lsqlite3  $LIBS"
76064: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
76065: /* end confdefs.h.  */
76066: 
76067: /* Override any GCC internal prototype to avoid an error.
76068:    Use char because int might match the return type of a GCC
76069:    builtin and then its argument prototype would still apply.  */
76070: #ifdef __cplusplus
76071: extern "C"
76072: #endif
76073: char sqlite3_key ();
76074: int
76075: main ()
76076: {
76077: return sqlite3_key ();
76078:   ;
76079:   return 0;
76080: }
76081: _ACEOF
76082: if ac_fn_c_try_link "$LINENO"; then :
76083:   ac_cv_lib_sqlite3_sqlite3_key=yes
76084: else
76085:   ac_cv_lib_sqlite3_sqlite3_key=no
76086: fi
76087: rm -f core conftest.err conftest.$ac_objext \
76088:     conftest$ac_exeext conftest.$ac_ext
76089: LIBS=$ac_check_lib_save_LIBS
76090: fi
76091: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_key" >&5
76092: $as_echo "$ac_cv_lib_sqlite3_sqlite3_key" >&6; }
76093: if test "x$ac_cv_lib_sqlite3_sqlite3_key" = xyes; then :
76094: 
76095:     LDFLAGS=$save_old_LDFLAGS
76096:     ext_shared=$save_ext_shared
76097: 
76098: 
76099: $as_echo "#define HAVE_SQLITE3_KEY 1" >>confdefs.h
76100: 
76101: 
76102: 
76103: else
76104: 
76105:     LDFLAGS=$save_old_LDFLAGS
76106:     ext_shared=$save_ext_shared
76107:     unset ac_cv_lib_sqlite3_sqlite3_key
76108: 
76109: 
76110: fi
76111: 
76112: 
76113: 
76114:   PHP_VAR_SUBST="$PHP_VAR_SUBST PDO_SQLITE_SHARED_LIBADD"
76115: 
76116: 
76117:   ext_builddir=ext/pdo_sqlite
76118:   ext_srcdir=$abs_srcdir/ext/pdo_sqlite
76119: 
76120:   ac_extra=`echo "-I$pdo_cv_inc_path"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
76121: 
76122:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
76123:     PHP_PDO_SQLITE_SHARED=no
76124: 
76125: 
76126:   case ext/pdo_sqlite in
76127:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
76128:   /*) ac_srcdir=`echo "ext/pdo_sqlite"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
76129:   *) ac_srcdir="$abs_srcdir/ext/pdo_sqlite/"; ac_bdir="ext/pdo_sqlite/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
76130:   esac
76131: 
76132: 
76133: 
76134:   b_c_pre=$php_c_pre
76135:   b_cxx_pre=$php_cxx_pre
76136:   b_c_meta=$php_c_meta
76137:   b_cxx_meta=$php_cxx_meta
76138:   b_c_post=$php_c_post
76139:   b_cxx_post=$php_cxx_post
76140:   b_lo=$php_lo
76141: 
76142: 
76143:   old_IFS=$IFS
76144:   for ac_src in $php_pdo_sqlite_sources_core; do
76145: 
76146:       IFS=.
76147:       set $ac_src
76148:       ac_obj=$1
76149:       IFS=$old_IFS
76150: 
76151:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
76152: 
76153:       case $ac_src in
76154:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
76155:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
76156:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
76157:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
76158:       esac
76159: 
76160:     cat >>Makefile.objects<<EOF
76161: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
76162: 	$ac_comp
76163: EOF
76164:   done
76165: 
76166: 
76167:     EXT_STATIC="$EXT_STATIC pdo_sqlite"
76168:     if test "$ext_shared" != "nocli"; then
76169:       EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_sqlite"
76170:     fi
76171:   else
76172:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
76173:       PHP_PDO_SQLITE_SHARED=yes
76174: 
76175:   case ext/pdo_sqlite in
76176:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
76177:   /*) ac_srcdir=`echo "ext/pdo_sqlite"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
76178:   *) ac_srcdir="$abs_srcdir/ext/pdo_sqlite/"; ac_bdir="ext/pdo_sqlite/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
76179:   esac
76180: 
76181: 
76182: 
76183:   b_c_pre=$shared_c_pre
76184:   b_cxx_pre=$shared_cxx_pre
76185:   b_c_meta=$shared_c_meta
76186:   b_cxx_meta=$shared_cxx_meta
76187:   b_c_post=$shared_c_post
76188:   b_cxx_post=$shared_cxx_post
76189:   b_lo=$shared_lo
76190: 
76191: 
76192:   old_IFS=$IFS
76193:   for ac_src in $php_pdo_sqlite_sources_core; do
76194: 
76195:       IFS=.
76196:       set $ac_src
76197:       ac_obj=$1
76198:       IFS=$old_IFS
76199: 
76200:       shared_objects_pdo_sqlite="$shared_objects_pdo_sqlite $ac_bdir$ac_obj.lo"
76201: 
76202:       case $ac_src in
76203:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
76204:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
76205:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
76206:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
76207:       esac
76208: 
76209:     cat >>Makefile.objects<<EOF
76210: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
76211: 	$ac_comp
76212: EOF
76213:   done
76214: 
76215:       case $host_alias in
76216:         *netware*)
76217: 
76218:   install_modules="install-modules"
76219: 
76220:   case $host_alias in
76221:     *aix*)
76222:       suffix=so
76223:       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'
76224:       ;;
76225:     *netware*)
76226:       suffix=nlm
76227:       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)'
76228:       ;;
76229:     *)
76230:       suffix=la
76231:       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)'
76232:       ;;
76233:   esac
76234: 
76235:   if test "x" = "xyes"; then
76236:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phppdo_sqlite.$suffix"
76237:   else
76238:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phppdo_sqlite.$suffix"
76239:   fi
76240: 
76241:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo_sqlite"
76242: 
76243:   cat >>Makefile.objects<<EOF
76244: \$(phplibdir)/phppdo_sqlite.$suffix: $ext_builddir/phppdo_sqlite.$suffix
76245: 	\$(LIBTOOL) --mode=install cp $ext_builddir/phppdo_sqlite.$suffix \$(phplibdir)
76246: 
76247: $ext_builddir/phppdo_sqlite.$suffix: \$(shared_objects_pdo_sqlite) \$(PHPPDO_SQLITE_SHARED_DEPENDENCIES)
76248: 	$link_cmd
76249: 
76250: EOF
76251: 
76252:           ;;
76253:         *)
76254: 
76255:   install_modules="install-modules"
76256: 
76257:   case $host_alias in
76258:     *aix*)
76259:       suffix=so
76260:       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'
76261:       ;;
76262:     *netware*)
76263:       suffix=nlm
76264:       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)'
76265:       ;;
76266:     *)
76267:       suffix=la
76268:       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)'
76269:       ;;
76270:   esac
76271: 
76272:   if test "x" = "xyes"; then
76273:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/pdo_sqlite.$suffix"
76274:   else
76275:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/pdo_sqlite.$suffix"
76276:   fi
76277: 
76278:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo_sqlite"
76279: 
76280:   cat >>Makefile.objects<<EOF
76281: \$(phplibdir)/pdo_sqlite.$suffix: $ext_builddir/pdo_sqlite.$suffix
76282: 	\$(LIBTOOL) --mode=install cp $ext_builddir/pdo_sqlite.$suffix \$(phplibdir)
76283: 
76284: $ext_builddir/pdo_sqlite.$suffix: \$(shared_objects_pdo_sqlite) \$(PDO_SQLITE_SHARED_DEPENDENCIES)
76285: 	$link_cmd
76286: 
76287: EOF
76288: 
76289:           ;;
76290:       esac
76291: 
76292: cat >>confdefs.h <<_ACEOF
76293: #define COMPILE_DL_PDO_SQLITE 1
76294: _ACEOF
76295: 
76296:     fi
76297:   fi
76298: 
76299:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
76300:     PHP_PDO_SQLITE_SHARED=no
76301:     case "$PHP_SAPI" in
76302:       cgi|embed)
76303: 
76304: 
76305:   case ext/pdo_sqlite in
76306:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
76307:   /*) ac_srcdir=`echo "ext/pdo_sqlite"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
76308:   *) ac_srcdir="$abs_srcdir/ext/pdo_sqlite/"; ac_bdir="ext/pdo_sqlite/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
76309:   esac
76310: 
76311: 
76312: 
76313:   b_c_pre=$php_c_pre
76314:   b_cxx_pre=$php_cxx_pre
76315:   b_c_meta=$php_c_meta
76316:   b_cxx_meta=$php_cxx_meta
76317:   b_c_post=$php_c_post
76318:   b_cxx_post=$php_cxx_post
76319:   b_lo=$php_lo
76320: 
76321: 
76322:   old_IFS=$IFS
76323:   for ac_src in $php_pdo_sqlite_sources_core; do
76324: 
76325:       IFS=.
76326:       set $ac_src
76327:       ac_obj=$1
76328:       IFS=$old_IFS
76329: 
76330:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
76331: 
76332:       case $ac_src in
76333:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
76334:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
76335:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
76336:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
76337:       esac
76338: 
76339:     cat >>Makefile.objects<<EOF
76340: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
76341: 	$ac_comp
76342: EOF
76343:   done
76344: 
76345: 
76346:         EXT_STATIC="$EXT_STATIC pdo_sqlite"
76347:         ;;
76348:       *)
76349: 
76350: 
76351:   case ext/pdo_sqlite in
76352:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
76353:   /*) ac_srcdir=`echo "ext/pdo_sqlite"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
76354:   *) ac_srcdir="$abs_srcdir/ext/pdo_sqlite/"; ac_bdir="ext/pdo_sqlite/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
76355:   esac
76356: 
76357: 
76358: 
76359:   b_c_pre=$php_c_pre
76360:   b_cxx_pre=$php_cxx_pre
76361:   b_c_meta=$php_c_meta
76362:   b_cxx_meta=$php_cxx_meta
76363:   b_c_post=$php_c_post
76364:   b_cxx_post=$php_cxx_post
76365:   b_lo=$php_lo
76366: 
76367: 
76368:   old_IFS=$IFS
76369:   for ac_src in $php_pdo_sqlite_sources_core; do
76370: 
76371:       IFS=.
76372:       set $ac_src
76373:       ac_obj=$1
76374:       IFS=$old_IFS
76375: 
76376:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
76377: 
76378:       case $ac_src in
76379:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
76380:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
76381:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
76382:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
76383:       esac
76384: 
76385:     cat >>Makefile.objects<<EOF
76386: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
76387: 	$ac_comp
76388: EOF
76389:   done
76390: 
76391: 
76392:         ;;
76393:     esac
76394:     EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_sqlite"
76395:   fi
76396: 
76397: 
76398:     BUILD_DIR="$BUILD_DIR $ext_builddir"
76399: 
76400: 
76401: 
76402:   if test "$ext_builddir" = "."; then
76403:     PHP_PECL_EXTENSION=pdo_sqlite
76404: 
76405:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
76406: 
76407:   fi
76408: 
76409:   else
76410:       # use bundled libs
76411:       if test "$enable_maintainer_zts" = "yes"; then
76412:         threadsafe_flags="-DSQLITE_THREADSAFE=1"
76413:       else
76414:         threadsafe_flags="-DSQLITE_THREADSAFE=0"
76415:       fi
76416: 
76417:       other_flags="-DSQLITE_ENABLE_FTS3=1 -DSQLITE_CORE=1 -DSQLITE_ENABLE_COLUMN_METADATA=1"
76418: 
76419: 	        if test "$PHP_INTL" = "yes" && test "$PHP_INTL_SHARED" != "yes"; then
76420:         other_flags="$other_flags -DSQLITE_ENABLE_ICU=1"
76421:       fi
76422: 
76423:       if test "$PHP_SQLITE3" != "yes"; then
76424: 
76425: 
76426:   case ext/sqlite3 in
76427:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
76428:   /*) ac_srcdir=`echo "ext/sqlite3"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
76429:   *) ac_srcdir="$abs_srcdir/ext/sqlite3/"; ac_bdir="ext/sqlite3/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
76430:   esac
76431: 
76432: 
76433: 
76434:   b_c_pre=$php_c_pre
76435:   b_cxx_pre=$php_cxx_pre
76436:   b_c_meta=$php_c_meta
76437:   b_cxx_meta=$php_cxx_meta
76438:   b_c_post=$php_c_post
76439:   b_cxx_post=$php_cxx_post
76440:   b_lo=$php_lo
76441: 
76442: 
76443:   old_IFS=$IFS
76444:   for ac_src in libsqlite/sqlite3.c; do
76445: 
76446:       IFS=.
76447:       set $ac_src
76448:       ac_obj=$1
76449:       IFS=$old_IFS
76450: 
76451:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
76452: 
76453:       case $ac_src in
76454:         *.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" ;;
76455:         *.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" ;;
76456:         *.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" ;;
76457:         *.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" ;;
76458:       esac
76459: 
76460:     cat >>Makefile.objects<<EOF
76461: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
76462: 	$ac_comp
76463: EOF
76464:   done
76465: 
76466: 
76467:       fi
76468: 
76469: 
76470:   ext_builddir=ext/pdo_sqlite
76471:   ext_srcdir=$abs_srcdir/ext/pdo_sqlite
76472: 
76473:   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`
76474: 
76475:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
76476:     PHP_PDO_SQLITE_SHARED=no
76477: 
76478: 
76479:   case ext/pdo_sqlite in
76480:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
76481:   /*) ac_srcdir=`echo "ext/pdo_sqlite"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
76482:   *) ac_srcdir="$abs_srcdir/ext/pdo_sqlite/"; ac_bdir="ext/pdo_sqlite/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
76483:   esac
76484: 
76485: 
76486: 
76487:   b_c_pre=$php_c_pre
76488:   b_cxx_pre=$php_cxx_pre
76489:   b_c_meta=$php_c_meta
76490:   b_cxx_meta=$php_cxx_meta
76491:   b_c_post=$php_c_post
76492:   b_cxx_post=$php_cxx_post
76493:   b_lo=$php_lo
76494: 
76495: 
76496:   old_IFS=$IFS
76497:   for ac_src in $php_pdo_sqlite_sources_core; do
76498: 
76499:       IFS=.
76500:       set $ac_src
76501:       ac_obj=$1
76502:       IFS=$old_IFS
76503: 
76504:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
76505: 
76506:       case $ac_src in
76507:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
76508:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
76509:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
76510:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
76511:       esac
76512: 
76513:     cat >>Makefile.objects<<EOF
76514: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
76515: 	$ac_comp
76516: EOF
76517:   done
76518: 
76519: 
76520:     EXT_STATIC="$EXT_STATIC pdo_sqlite"
76521:     if test "$ext_shared" != "nocli"; then
76522:       EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_sqlite"
76523:     fi
76524:   else
76525:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
76526:       PHP_PDO_SQLITE_SHARED=yes
76527: 
76528:   case ext/pdo_sqlite in
76529:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
76530:   /*) ac_srcdir=`echo "ext/pdo_sqlite"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
76531:   *) ac_srcdir="$abs_srcdir/ext/pdo_sqlite/"; ac_bdir="ext/pdo_sqlite/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
76532:   esac
76533: 
76534: 
76535: 
76536:   b_c_pre=$shared_c_pre
76537:   b_cxx_pre=$shared_cxx_pre
76538:   b_c_meta=$shared_c_meta
76539:   b_cxx_meta=$shared_cxx_meta
76540:   b_c_post=$shared_c_post
76541:   b_cxx_post=$shared_cxx_post
76542:   b_lo=$shared_lo
76543: 
76544: 
76545:   old_IFS=$IFS
76546:   for ac_src in $php_pdo_sqlite_sources_core; do
76547: 
76548:       IFS=.
76549:       set $ac_src
76550:       ac_obj=$1
76551:       IFS=$old_IFS
76552: 
76553:       shared_objects_pdo_sqlite="$shared_objects_pdo_sqlite $ac_bdir$ac_obj.lo"
76554: 
76555:       case $ac_src in
76556:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
76557:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
76558:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
76559:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
76560:       esac
76561: 
76562:     cat >>Makefile.objects<<EOF
76563: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
76564: 	$ac_comp
76565: EOF
76566:   done
76567: 
76568:       case $host_alias in
76569:         *netware*)
76570: 
76571:   install_modules="install-modules"
76572: 
76573:   case $host_alias in
76574:     *aix*)
76575:       suffix=so
76576:       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'
76577:       ;;
76578:     *netware*)
76579:       suffix=nlm
76580:       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)'
76581:       ;;
76582:     *)
76583:       suffix=la
76584:       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)'
76585:       ;;
76586:   esac
76587: 
76588:   if test "x" = "xyes"; then
76589:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phppdo_sqlite.$suffix"
76590:   else
76591:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phppdo_sqlite.$suffix"
76592:   fi
76593: 
76594:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo_sqlite"
76595: 
76596:   cat >>Makefile.objects<<EOF
76597: \$(phplibdir)/phppdo_sqlite.$suffix: $ext_builddir/phppdo_sqlite.$suffix
76598: 	\$(LIBTOOL) --mode=install cp $ext_builddir/phppdo_sqlite.$suffix \$(phplibdir)
76599: 
76600: $ext_builddir/phppdo_sqlite.$suffix: \$(shared_objects_pdo_sqlite) \$(PHPPDO_SQLITE_SHARED_DEPENDENCIES)
76601: 	$link_cmd
76602: 
76603: EOF
76604: 
76605:           ;;
76606:         *)
76607: 
76608:   install_modules="install-modules"
76609: 
76610:   case $host_alias in
76611:     *aix*)
76612:       suffix=so
76613:       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'
76614:       ;;
76615:     *netware*)
76616:       suffix=nlm
76617:       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)'
76618:       ;;
76619:     *)
76620:       suffix=la
76621:       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)'
76622:       ;;
76623:   esac
76624: 
76625:   if test "x" = "xyes"; then
76626:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/pdo_sqlite.$suffix"
76627:   else
76628:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/pdo_sqlite.$suffix"
76629:   fi
76630: 
76631:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo_sqlite"
76632: 
76633:   cat >>Makefile.objects<<EOF
76634: \$(phplibdir)/pdo_sqlite.$suffix: $ext_builddir/pdo_sqlite.$suffix
76635: 	\$(LIBTOOL) --mode=install cp $ext_builddir/pdo_sqlite.$suffix \$(phplibdir)
76636: 
76637: $ext_builddir/pdo_sqlite.$suffix: \$(shared_objects_pdo_sqlite) \$(PDO_SQLITE_SHARED_DEPENDENCIES)
76638: 	$link_cmd
76639: 
76640: EOF
76641: 
76642:           ;;
76643:       esac
76644: 
76645: cat >>confdefs.h <<_ACEOF
76646: #define COMPILE_DL_PDO_SQLITE 1
76647: _ACEOF
76648: 
76649:     fi
76650:   fi
76651: 
76652:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
76653:     PHP_PDO_SQLITE_SHARED=no
76654:     case "$PHP_SAPI" in
76655:       cgi|embed)
76656: 
76657: 
76658:   case ext/pdo_sqlite in
76659:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
76660:   /*) ac_srcdir=`echo "ext/pdo_sqlite"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
76661:   *) ac_srcdir="$abs_srcdir/ext/pdo_sqlite/"; ac_bdir="ext/pdo_sqlite/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
76662:   esac
76663: 
76664: 
76665: 
76666:   b_c_pre=$php_c_pre
76667:   b_cxx_pre=$php_cxx_pre
76668:   b_c_meta=$php_c_meta
76669:   b_cxx_meta=$php_cxx_meta
76670:   b_c_post=$php_c_post
76671:   b_cxx_post=$php_cxx_post
76672:   b_lo=$php_lo
76673: 
76674: 
76675:   old_IFS=$IFS
76676:   for ac_src in $php_pdo_sqlite_sources_core; do
76677: 
76678:       IFS=.
76679:       set $ac_src
76680:       ac_obj=$1
76681:       IFS=$old_IFS
76682: 
76683:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
76684: 
76685:       case $ac_src in
76686:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
76687:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
76688:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
76689:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
76690:       esac
76691: 
76692:     cat >>Makefile.objects<<EOF
76693: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
76694: 	$ac_comp
76695: EOF
76696:   done
76697: 
76698: 
76699:         EXT_STATIC="$EXT_STATIC pdo_sqlite"
76700:         ;;
76701:       *)
76702: 
76703: 
76704:   case ext/pdo_sqlite in
76705:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
76706:   /*) ac_srcdir=`echo "ext/pdo_sqlite"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
76707:   *) ac_srcdir="$abs_srcdir/ext/pdo_sqlite/"; ac_bdir="ext/pdo_sqlite/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
76708:   esac
76709: 
76710: 
76711: 
76712:   b_c_pre=$php_c_pre
76713:   b_cxx_pre=$php_cxx_pre
76714:   b_c_meta=$php_c_meta
76715:   b_cxx_meta=$php_cxx_meta
76716:   b_c_post=$php_c_post
76717:   b_cxx_post=$php_cxx_post
76718:   b_lo=$php_lo
76719: 
76720: 
76721:   old_IFS=$IFS
76722:   for ac_src in $php_pdo_sqlite_sources_core; do
76723: 
76724:       IFS=.
76725:       set $ac_src
76726:       ac_obj=$1
76727:       IFS=$old_IFS
76728: 
76729:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
76730: 
76731:       case $ac_src in
76732:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
76733:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
76734:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
76735:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
76736:       esac
76737: 
76738:     cat >>Makefile.objects<<EOF
76739: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
76740: 	$ac_comp
76741: EOF
76742:   done
76743: 
76744: 
76745:         ;;
76746:     esac
76747:     EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_sqlite"
76748:   fi
76749: 
76750: 
76751:     BUILD_DIR="$BUILD_DIR $ext_builddir"
76752: 
76753: 
76754: 
76755:   if test "$ext_builddir" = "."; then
76756:     PHP_PECL_EXTENSION=pdo_sqlite
76757: 
76758:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
76759: 
76760:   fi
76761: 
76762: 
76763: 
76764:   PHP_VAR_SUBST="$PHP_VAR_SUBST PDO_SQLITE_SHARED_LIBADD"
76765: 
76766: 
76767:   am_i_shared=$PHP_PDO_SQLITE_SHARED
76768:   is_it_shared=$PHP_SQLITE3_SHARED
76769:   is_it_enabled=$PHP_SQLITE3
76770:   if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
76771:     as_fn_error $? "
76772: You've configured extension pdo_sqlite to build statically, but it
76773: depends on extension sqlite3, which you've configured to build shared.
76774: You either need to build pdo_sqlite shared or build sqlite3 statically for the
76775: build to be successful.
76776: " "$LINENO" 5
76777:   fi
76778:   if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then
76779:     as_fn_error $? "
76780: You've configured extension pdo_sqlite, which depends on extension sqlite3,
76781: but you've either not enabled sqlite3, or have disabled it.
76782: " "$LINENO" 5
76783:   fi
76784: 
76785: 
76786:   if test "$abs_srcdir/ext/sqlite3/libsqlite" != "/usr/include"; then
76787: 
76788:   if test -z "$abs_srcdir/ext/sqlite3/libsqlite" || echo "$abs_srcdir/ext/sqlite3/libsqlite" | grep '^/' >/dev/null ; then
76789:     ai_p=$abs_srcdir/ext/sqlite3/libsqlite
76790:   else
76791: 
76792:     ep_dir=`echo $abs_srcdir/ext/sqlite3/libsqlite|$SED 's%/*[^/][^/]*/*$%%'`
76793: 
76794:     ep_realdir=`(cd "$ep_dir" && pwd)`
76795:     ai_p="$ep_realdir"/`basename "$abs_srcdir/ext/sqlite3/libsqlite"`
76796:   fi
76797: 
76798: 
76799: 
76800:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
76801: 
76802:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
76803:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
76804:     eval "INCLUDEPATH$unique=set"
76805: 
76806:       if test ""; then
76807:         INCLUDES="-I$ai_p $INCLUDES"
76808:       else
76809:         INCLUDES="$INCLUDES -I$ai_p"
76810:       fi
76811: 
76812:   fi
76813: 
76814:   fi
76815: 
76816: 
76817:       for ac_func in usleep nanosleep
76818: do :
76819:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
76820: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
76821: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
76822:   cat >>confdefs.h <<_ACEOF
76823: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
76824: _ACEOF
76825: 
76826: fi
76827: done
76828: 
76829:       for ac_header in time.h
76830: do :
76831:   ac_fn_c_check_header_mongrel "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
76832: if test "x$ac_cv_header_time_h" = xyes; then :
76833:   cat >>confdefs.h <<_ACEOF
76834: #define HAVE_TIME_H 1
76835: _ACEOF
76836: 
76837: fi
76838: 
76839: done
76840: 
76841:   fi
76842: 
76843: 
76844:   save_old_LDFLAGS=$LDFLAGS
76845:   ac_stuff=""
76846: 
76847:   save_ext_shared=$ext_shared
76848:   ext_shared=yes
76849: 
76850:   for ac_i in $ac_stuff; do
76851:     case $ac_i in
76852:     -pthread)
76853:       if test "$ext_shared" = "yes"; then
76854:         LDFLAGS="$LDFLAGS -pthread"
76855:       else
76856: 
76857: 
76858:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
76859: 
76860:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
76861:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
76862:     eval "EXTRA_LDFLAGS$unique=set"
76863:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
76864:   fi
76865: 
76866:       fi
76867:     ;;
76868:     -l*)
76869:       ac_ii=`echo $ac_i|cut -c 3-`
76870: 
76871: 
76872:   case $ac_ii in
76873:   c|c_r|pthread*) ;;
76874:   *)
76875:     if test "$ext_shared" = "yes"; then
76876:         LDFLAGS="$LDFLAGS -l$ac_ii"
76877:     else
76878: 
76879: 
76880:   case $ac_ii in
76881:   c|c_r|pthread*) ;;
76882:   *)
76883:       LIBS="$LIBS -l$ac_ii"
76884:    ;;
76885:   esac
76886: 
76887: 
76888:     fi
76889:    ;;
76890:   esac
76891: 
76892: 
76893:     ;;
76894:     -L*)
76895:       ac_ii=`echo $ac_i|cut -c 3-`
76896: 
76897:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
76898: 
76899:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
76900:     ai_p=$ac_ii
76901:   else
76902: 
76903:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
76904: 
76905:     ep_realdir=`(cd "$ep_dir" && pwd)`
76906:     ai_p="$ep_realdir"/`basename "$ac_ii"`
76907:   fi
76908: 
76909: 
76910:       if test "$ext_shared" = "yes"; then
76911:         LDFLAGS="-L$ai_p $LDFLAGS"
76912:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
76913:       else
76914: 
76915: 
76916: 
76917:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
76918: 
76919:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
76920:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
76921:     eval "LIBPATH$unique=set"
76922: 
76923:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
76924:     LDFLAGS="$LDFLAGS -L$ai_p"
76925:     PHP_RPATHS="$PHP_RPATHS $ai_p"
76926: 
76927:   fi
76928: 
76929: 
76930:       fi
76931: 
76932:   fi
76933: 
76934:     ;;
76935:     esac
76936:   done
76937: 
76938:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdatasync in -lrt" >&5
76939: $as_echo_n "checking for fdatasync in -lrt... " >&6; }
76940: if ${ac_cv_lib_rt_fdatasync+:} false; then :
76941:   $as_echo_n "(cached) " >&6
76942: else
76943:   ac_check_lib_save_LIBS=$LIBS
76944: LIBS="-lrt  $LIBS"
76945: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
76946: /* end confdefs.h.  */
76947: 
76948: /* Override any GCC internal prototype to avoid an error.
76949:    Use char because int might match the return type of a GCC
76950:    builtin and then its argument prototype would still apply.  */
76951: #ifdef __cplusplus
76952: extern "C"
76953: #endif
76954: char fdatasync ();
76955: int
76956: main ()
76957: {
76958: return fdatasync ();
76959:   ;
76960:   return 0;
76961: }
76962: _ACEOF
76963: if ac_fn_c_try_link "$LINENO"; then :
76964:   ac_cv_lib_rt_fdatasync=yes
76965: else
76966:   ac_cv_lib_rt_fdatasync=no
76967: fi
76968: rm -f core conftest.err conftest.$ac_objext \
76969:     conftest$ac_exeext conftest.$ac_ext
76970: LIBS=$ac_check_lib_save_LIBS
76971: fi
76972: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_fdatasync" >&5
76973: $as_echo "$ac_cv_lib_rt_fdatasync" >&6; }
76974: if test "x$ac_cv_lib_rt_fdatasync" = xyes; then :
76975: 
76976:     LDFLAGS=$save_old_LDFLAGS
76977:     ext_shared=$save_ext_shared
76978: 
76979: 
76980:   case rt in
76981:   c|c_r|pthread*) ;;
76982:   *)
76983:     if test "$ext_shared" = "yes"; then
76984:         PDO_SQLITE_SHARED_LIBADD="-lrt $PDO_SQLITE_SHARED_LIBADD"
76985:     else
76986: 
76987: 
76988:   case rt in
76989:   c|c_r|pthread*) ;;
76990:   *)
76991:       LIBS="-lrt $LIBS"
76992:    ;;
76993:   esac
76994: 
76995: 
76996:     fi
76997:    ;;
76998:   esac
76999: 
77000: 
77001: 
77002: else
77003: 
77004:     LDFLAGS=$save_old_LDFLAGS
77005:     ext_shared=$save_ext_shared
77006:     unset ac_cv_lib_rt_fdatasync
77007: 
77008: 
77009: fi
77010: 
77011: 
77012: 
77013: 
77014:   am_i_shared=$PHP_PDO_SQLITE_SHARED
77015:   is_it_shared=$PHP_PDO_SHARED
77016:   is_it_enabled=$PHP_PDO
77017:   if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
77018:     as_fn_error $? "
77019: You've configured extension pdo_sqlite to build statically, but it
77020: depends on extension pdo, which you've configured to build shared.
77021: You either need to build pdo_sqlite shared or build pdo statically for the
77022: build to be successful.
77023: " "$LINENO" 5
77024:   fi
77025:   if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then
77026:     as_fn_error $? "
77027: You've configured extension pdo_sqlite, which depends on extension pdo,
77028: but you've either not enabled pdo, or have disabled it.
77029: " "$LINENO" 5
77030:   fi
77031: 
77032: 
77033: fi
77034: 
77035: 
77036: 
77037: php_with_pgsql=no
77038: 
77039: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support" >&5
77040: $as_echo_n "checking for PostgreSQL support... " >&6; }
77041: 
77042: # Check whether --with-pgsql was given.
77043: if test "${with_pgsql+set}" = set; then :
77044:   withval=$with_pgsql; PHP_PGSQL=$withval
77045: else
77046: 
77047:   PHP_PGSQL=no
77048:   test "$PHP_ENABLE_ALL" && PHP_PGSQL=$PHP_ENABLE_ALL
77049: 
77050: fi
77051: 
77052: 
77053: 
77054: ext_output="yes, shared"
77055: ext_shared=yes
77056: case $PHP_PGSQL in
77057: shared,*)
77058:   PHP_PGSQL=`echo "$PHP_PGSQL"|$SED 's/^shared,//'`
77059:   ;;
77060: shared)
77061:   PHP_PGSQL=yes
77062:   ;;
77063: no)
77064:   ext_output=no
77065:   ext_shared=no
77066:   ;;
77067: *)
77068:   ext_output=yes
77069:   ext_shared=no
77070:   ;;
77071: esac
77072: 
77073: 
77074: 
77075: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
77076: $as_echo "$ext_output" >&6; }
77077: 
77078: 
77079: 
77080: 
77081: if test "$PHP_PGSQL" != "no"; then
77082: 
77083:   if test -z "$PGSQL_INCLUDE" || echo "$PGSQL_INCLUDE" | grep '^/' >/dev/null ; then
77084:     PGSQL_INCLUDE=$PGSQL_INCLUDE
77085:   else
77086: 
77087:     ep_dir=`echo $PGSQL_INCLUDE|$SED 's%/*[^/][^/]*/*$%%'`
77088: 
77089:     ep_realdir=`(cd "$ep_dir" && pwd)`
77090:     PGSQL_INCLUDE="$ep_realdir"/`basename "$PGSQL_INCLUDE"`
77091:   fi
77092: 
77093: 
77094:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pg_config" >&5
77095: $as_echo_n "checking for pg_config... " >&6; }
77096:   for i in $PHP_PGSQL $PHP_PGSQL/bin /usr/local/pgsql/bin /usr/local/bin /usr/bin ""; do
77097: 	if test -x $i/pg_config; then
77098:       PG_CONFIG="$i/pg_config"
77099:       break;
77100:     fi
77101:   done
77102: 
77103:   if test -n "$PG_CONFIG"; then
77104:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5
77105: $as_echo "$PG_CONFIG" >&6; }
77106:     PGSQL_INCLUDE=`$PG_CONFIG --includedir`
77107:     PGSQL_LIBDIR=`$PG_CONFIG --libdir`
77108:     if test -r "$PGSQL_INCLUDE/pg_config.h"; then
77109: 
77110: $as_echo "#define HAVE_PG_CONFIG_H 1" >>confdefs.h
77111: 
77112:     fi
77113:   else
77114:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
77115: $as_echo "not found" >&6; }
77116:     if test "$PHP_PGSQL" = "yes"; then
77117:       PGSQL_SEARCH_PATHS="/usr /usr/local /usr/local/pgsql"
77118:     else
77119:       PGSQL_SEARCH_PATHS=$PHP_PGSQL
77120:     fi
77121: 
77122:     for i in $PGSQL_SEARCH_PATHS; do
77123:       for j in include include/pgsql include/postgres include/postgresql ""; do
77124:         if test -r "$i/$j/libpq-fe.h"; then
77125:           PGSQL_INC_BASE=$i
77126:           PGSQL_INCLUDE=$i/$j
77127:           if test -r "$i/$j/pg_config.h"; then
77128: 
77129: $as_echo "#define HAVE_PG_CONFIG_H 1" >>confdefs.h
77130: 
77131:           fi
77132:         fi
77133:       done
77134: 
77135:       for j in lib $PHP_LIBDIR/pgsql $PHP_LIBDIR/postgres $PHP_LIBDIR/postgresql ""; do
77136:         if test -f "$i/$j/libpq.so" || test -f "$i/$j/libpq.a"; then
77137:           PGSQL_LIBDIR=$i/$j
77138:         fi
77139:       done
77140:     done
77141:   fi
77142: 
77143:   if test -z "$PGSQL_INCLUDE"; then
77144:     as_fn_error $? "Cannot find libpq-fe.h. Please specify correct PostgreSQL installation path" "$LINENO" 5
77145:   fi
77146: 
77147:   if test -z "$PGSQL_LIBDIR"; then
77148:     as_fn_error $? "Cannot find libpq.so. Please specify correct PostgreSQL installation path" "$LINENO" 5
77149:   fi
77150: 
77151:   if test -z "$PGSQL_INCLUDE" -a -z "$PGSQL_LIBDIR" ; then
77152:     as_fn_error $? "Unable to find libpq anywhere under $PGSQL_SEARCH_PATHS" "$LINENO" 5
77153:   fi
77154: 
77155: 
77156: $as_echo "#define HAVE_PGSQL 1" >>confdefs.h
77157: 
77158:   old_LIBS=$LIBS
77159:   old_LDFLAGS=$LDFLAGS
77160:   LDFLAGS="-L$PGSQL_LIBDIR $LDFLAGS"
77161:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQescapeString in -lpq" >&5
77162: $as_echo_n "checking for PQescapeString in -lpq... " >&6; }
77163: if ${ac_cv_lib_pq_PQescapeString+:} false; then :
77164:   $as_echo_n "(cached) " >&6
77165: else
77166:   ac_check_lib_save_LIBS=$LIBS
77167: LIBS="-lpq  $LIBS"
77168: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
77169: /* end confdefs.h.  */
77170: 
77171: /* Override any GCC internal prototype to avoid an error.
77172:    Use char because int might match the return type of a GCC
77173:    builtin and then its argument prototype would still apply.  */
77174: #ifdef __cplusplus
77175: extern "C"
77176: #endif
77177: char PQescapeString ();
77178: int
77179: main ()
77180: {
77181: return PQescapeString ();
77182:   ;
77183:   return 0;
77184: }
77185: _ACEOF
77186: if ac_fn_c_try_link "$LINENO"; then :
77187:   ac_cv_lib_pq_PQescapeString=yes
77188: else
77189:   ac_cv_lib_pq_PQescapeString=no
77190: fi
77191: rm -f core conftest.err conftest.$ac_objext \
77192:     conftest$ac_exeext conftest.$ac_ext
77193: LIBS=$ac_check_lib_save_LIBS
77194: fi
77195: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQescapeString" >&5
77196: $as_echo "$ac_cv_lib_pq_PQescapeString" >&6; }
77197: if test "x$ac_cv_lib_pq_PQescapeString" = xyes; then :
77198: 
77199: $as_echo "#define HAVE_PQESCAPE 1" >>confdefs.h
77200: 
77201: fi
77202: 
77203:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQunescapeBytea in -lpq" >&5
77204: $as_echo_n "checking for PQunescapeBytea in -lpq... " >&6; }
77205: if ${ac_cv_lib_pq_PQunescapeBytea+:} false; then :
77206:   $as_echo_n "(cached) " >&6
77207: else
77208:   ac_check_lib_save_LIBS=$LIBS
77209: LIBS="-lpq  $LIBS"
77210: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
77211: /* end confdefs.h.  */
77212: 
77213: /* Override any GCC internal prototype to avoid an error.
77214:    Use char because int might match the return type of a GCC
77215:    builtin and then its argument prototype would still apply.  */
77216: #ifdef __cplusplus
77217: extern "C"
77218: #endif
77219: char PQunescapeBytea ();
77220: int
77221: main ()
77222: {
77223: return PQunescapeBytea ();
77224:   ;
77225:   return 0;
77226: }
77227: _ACEOF
77228: if ac_fn_c_try_link "$LINENO"; then :
77229:   ac_cv_lib_pq_PQunescapeBytea=yes
77230: else
77231:   ac_cv_lib_pq_PQunescapeBytea=no
77232: fi
77233: rm -f core conftest.err conftest.$ac_objext \
77234:     conftest$ac_exeext conftest.$ac_ext
77235: LIBS=$ac_check_lib_save_LIBS
77236: fi
77237: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQunescapeBytea" >&5
77238: $as_echo "$ac_cv_lib_pq_PQunescapeBytea" >&6; }
77239: if test "x$ac_cv_lib_pq_PQunescapeBytea" = xyes; then :
77240: 
77241: $as_echo "#define HAVE_PQUNESCAPEBYTEA 1" >>confdefs.h
77242: 
77243: fi
77244: 
77245:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsetnonblocking in -lpq" >&5
77246: $as_echo_n "checking for PQsetnonblocking in -lpq... " >&6; }
77247: if ${ac_cv_lib_pq_PQsetnonblocking+:} false; then :
77248:   $as_echo_n "(cached) " >&6
77249: else
77250:   ac_check_lib_save_LIBS=$LIBS
77251: LIBS="-lpq  $LIBS"
77252: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
77253: /* end confdefs.h.  */
77254: 
77255: /* Override any GCC internal prototype to avoid an error.
77256:    Use char because int might match the return type of a GCC
77257:    builtin and then its argument prototype would still apply.  */
77258: #ifdef __cplusplus
77259: extern "C"
77260: #endif
77261: char PQsetnonblocking ();
77262: int
77263: main ()
77264: {
77265: return PQsetnonblocking ();
77266:   ;
77267:   return 0;
77268: }
77269: _ACEOF
77270: if ac_fn_c_try_link "$LINENO"; then :
77271:   ac_cv_lib_pq_PQsetnonblocking=yes
77272: else
77273:   ac_cv_lib_pq_PQsetnonblocking=no
77274: fi
77275: rm -f core conftest.err conftest.$ac_objext \
77276:     conftest$ac_exeext conftest.$ac_ext
77277: LIBS=$ac_check_lib_save_LIBS
77278: fi
77279: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsetnonblocking" >&5
77280: $as_echo "$ac_cv_lib_pq_PQsetnonblocking" >&6; }
77281: if test "x$ac_cv_lib_pq_PQsetnonblocking" = xyes; then :
77282: 
77283: $as_echo "#define HAVE_PQSETNONBLOCKING 1" >>confdefs.h
77284: 
77285: fi
77286: 
77287:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQcmdTuples in -lpq" >&5
77288: $as_echo_n "checking for PQcmdTuples in -lpq... " >&6; }
77289: if ${ac_cv_lib_pq_PQcmdTuples+:} false; then :
77290:   $as_echo_n "(cached) " >&6
77291: else
77292:   ac_check_lib_save_LIBS=$LIBS
77293: LIBS="-lpq  $LIBS"
77294: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
77295: /* end confdefs.h.  */
77296: 
77297: /* Override any GCC internal prototype to avoid an error.
77298:    Use char because int might match the return type of a GCC
77299:    builtin and then its argument prototype would still apply.  */
77300: #ifdef __cplusplus
77301: extern "C"
77302: #endif
77303: char PQcmdTuples ();
77304: int
77305: main ()
77306: {
77307: return PQcmdTuples ();
77308:   ;
77309:   return 0;
77310: }
77311: _ACEOF
77312: if ac_fn_c_try_link "$LINENO"; then :
77313:   ac_cv_lib_pq_PQcmdTuples=yes
77314: else
77315:   ac_cv_lib_pq_PQcmdTuples=no
77316: fi
77317: rm -f core conftest.err conftest.$ac_objext \
77318:     conftest$ac_exeext conftest.$ac_ext
77319: LIBS=$ac_check_lib_save_LIBS
77320: fi
77321: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQcmdTuples" >&5
77322: $as_echo "$ac_cv_lib_pq_PQcmdTuples" >&6; }
77323: if test "x$ac_cv_lib_pq_PQcmdTuples" = xyes; then :
77324: 
77325: $as_echo "#define HAVE_PQCMDTUPLES 1" >>confdefs.h
77326: 
77327: fi
77328: 
77329:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQoidValue in -lpq" >&5
77330: $as_echo_n "checking for PQoidValue in -lpq... " >&6; }
77331: if ${ac_cv_lib_pq_PQoidValue+:} false; then :
77332:   $as_echo_n "(cached) " >&6
77333: else
77334:   ac_check_lib_save_LIBS=$LIBS
77335: LIBS="-lpq  $LIBS"
77336: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
77337: /* end confdefs.h.  */
77338: 
77339: /* Override any GCC internal prototype to avoid an error.
77340:    Use char because int might match the return type of a GCC
77341:    builtin and then its argument prototype would still apply.  */
77342: #ifdef __cplusplus
77343: extern "C"
77344: #endif
77345: char PQoidValue ();
77346: int
77347: main ()
77348: {
77349: return PQoidValue ();
77350:   ;
77351:   return 0;
77352: }
77353: _ACEOF
77354: if ac_fn_c_try_link "$LINENO"; then :
77355:   ac_cv_lib_pq_PQoidValue=yes
77356: else
77357:   ac_cv_lib_pq_PQoidValue=no
77358: fi
77359: rm -f core conftest.err conftest.$ac_objext \
77360:     conftest$ac_exeext conftest.$ac_ext
77361: LIBS=$ac_check_lib_save_LIBS
77362: fi
77363: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQoidValue" >&5
77364: $as_echo "$ac_cv_lib_pq_PQoidValue" >&6; }
77365: if test "x$ac_cv_lib_pq_PQoidValue" = xyes; then :
77366: 
77367: $as_echo "#define HAVE_PQOIDVALUE 1" >>confdefs.h
77368: 
77369: fi
77370: 
77371:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQclientEncoding in -lpq" >&5
77372: $as_echo_n "checking for PQclientEncoding in -lpq... " >&6; }
77373: if ${ac_cv_lib_pq_PQclientEncoding+:} false; then :
77374:   $as_echo_n "(cached) " >&6
77375: else
77376:   ac_check_lib_save_LIBS=$LIBS
77377: LIBS="-lpq  $LIBS"
77378: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
77379: /* end confdefs.h.  */
77380: 
77381: /* Override any GCC internal prototype to avoid an error.
77382:    Use char because int might match the return type of a GCC
77383:    builtin and then its argument prototype would still apply.  */
77384: #ifdef __cplusplus
77385: extern "C"
77386: #endif
77387: char PQclientEncoding ();
77388: int
77389: main ()
77390: {
77391: return PQclientEncoding ();
77392:   ;
77393:   return 0;
77394: }
77395: _ACEOF
77396: if ac_fn_c_try_link "$LINENO"; then :
77397:   ac_cv_lib_pq_PQclientEncoding=yes
77398: else
77399:   ac_cv_lib_pq_PQclientEncoding=no
77400: fi
77401: rm -f core conftest.err conftest.$ac_objext \
77402:     conftest$ac_exeext conftest.$ac_ext
77403: LIBS=$ac_check_lib_save_LIBS
77404: fi
77405: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQclientEncoding" >&5
77406: $as_echo "$ac_cv_lib_pq_PQclientEncoding" >&6; }
77407: if test "x$ac_cv_lib_pq_PQclientEncoding" = xyes; then :
77408: 
77409: $as_echo "#define HAVE_PQCLIENTENCODING 1" >>confdefs.h
77410: 
77411: fi
77412: 
77413:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQparameterStatus in -lpq" >&5
77414: $as_echo_n "checking for PQparameterStatus in -lpq... " >&6; }
77415: if ${ac_cv_lib_pq_PQparameterStatus+:} false; then :
77416:   $as_echo_n "(cached) " >&6
77417: else
77418:   ac_check_lib_save_LIBS=$LIBS
77419: LIBS="-lpq  $LIBS"
77420: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
77421: /* end confdefs.h.  */
77422: 
77423: /* Override any GCC internal prototype to avoid an error.
77424:    Use char because int might match the return type of a GCC
77425:    builtin and then its argument prototype would still apply.  */
77426: #ifdef __cplusplus
77427: extern "C"
77428: #endif
77429: char PQparameterStatus ();
77430: int
77431: main ()
77432: {
77433: return PQparameterStatus ();
77434:   ;
77435:   return 0;
77436: }
77437: _ACEOF
77438: if ac_fn_c_try_link "$LINENO"; then :
77439:   ac_cv_lib_pq_PQparameterStatus=yes
77440: else
77441:   ac_cv_lib_pq_PQparameterStatus=no
77442: fi
77443: rm -f core conftest.err conftest.$ac_objext \
77444:     conftest$ac_exeext conftest.$ac_ext
77445: LIBS=$ac_check_lib_save_LIBS
77446: fi
77447: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQparameterStatus" >&5
77448: $as_echo "$ac_cv_lib_pq_PQparameterStatus" >&6; }
77449: if test "x$ac_cv_lib_pq_PQparameterStatus" = xyes; then :
77450: 
77451: $as_echo "#define HAVE_PQPARAMETERSTATUS 1" >>confdefs.h
77452: 
77453: fi
77454: 
77455:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQprotocolVersion in -lpq" >&5
77456: $as_echo_n "checking for PQprotocolVersion in -lpq... " >&6; }
77457: if ${ac_cv_lib_pq_PQprotocolVersion+:} false; then :
77458:   $as_echo_n "(cached) " >&6
77459: else
77460:   ac_check_lib_save_LIBS=$LIBS
77461: LIBS="-lpq  $LIBS"
77462: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
77463: /* end confdefs.h.  */
77464: 
77465: /* Override any GCC internal prototype to avoid an error.
77466:    Use char because int might match the return type of a GCC
77467:    builtin and then its argument prototype would still apply.  */
77468: #ifdef __cplusplus
77469: extern "C"
77470: #endif
77471: char PQprotocolVersion ();
77472: int
77473: main ()
77474: {
77475: return PQprotocolVersion ();
77476:   ;
77477:   return 0;
77478: }
77479: _ACEOF
77480: if ac_fn_c_try_link "$LINENO"; then :
77481:   ac_cv_lib_pq_PQprotocolVersion=yes
77482: else
77483:   ac_cv_lib_pq_PQprotocolVersion=no
77484: fi
77485: rm -f core conftest.err conftest.$ac_objext \
77486:     conftest$ac_exeext conftest.$ac_ext
77487: LIBS=$ac_check_lib_save_LIBS
77488: fi
77489: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQprotocolVersion" >&5
77490: $as_echo "$ac_cv_lib_pq_PQprotocolVersion" >&6; }
77491: if test "x$ac_cv_lib_pq_PQprotocolVersion" = xyes; then :
77492: 
77493: $as_echo "#define HAVE_PQPROTOCOLVERSION 1" >>confdefs.h
77494: 
77495: fi
77496: 
77497:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQtransactionStatus in -lpq" >&5
77498: $as_echo_n "checking for PQtransactionStatus in -lpq... " >&6; }
77499: if ${ac_cv_lib_pq_PQtransactionStatus+:} false; then :
77500:   $as_echo_n "(cached) " >&6
77501: else
77502:   ac_check_lib_save_LIBS=$LIBS
77503: LIBS="-lpq  $LIBS"
77504: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
77505: /* end confdefs.h.  */
77506: 
77507: /* Override any GCC internal prototype to avoid an error.
77508:    Use char because int might match the return type of a GCC
77509:    builtin and then its argument prototype would still apply.  */
77510: #ifdef __cplusplus
77511: extern "C"
77512: #endif
77513: char PQtransactionStatus ();
77514: int
77515: main ()
77516: {
77517: return PQtransactionStatus ();
77518:   ;
77519:   return 0;
77520: }
77521: _ACEOF
77522: if ac_fn_c_try_link "$LINENO"; then :
77523:   ac_cv_lib_pq_PQtransactionStatus=yes
77524: else
77525:   ac_cv_lib_pq_PQtransactionStatus=no
77526: fi
77527: rm -f core conftest.err conftest.$ac_objext \
77528:     conftest$ac_exeext conftest.$ac_ext
77529: LIBS=$ac_check_lib_save_LIBS
77530: fi
77531: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQtransactionStatus" >&5
77532: $as_echo "$ac_cv_lib_pq_PQtransactionStatus" >&6; }
77533: if test "x$ac_cv_lib_pq_PQtransactionStatus" = xyes; then :
77534: 
77535: $as_echo "#define HAVE_PGTRANSACTIONSTATUS 1" >>confdefs.h
77536: 
77537: fi
77538: 
77539:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQexecParams in -lpq" >&5
77540: $as_echo_n "checking for PQexecParams in -lpq... " >&6; }
77541: if ${ac_cv_lib_pq_PQexecParams+:} false; then :
77542:   $as_echo_n "(cached) " >&6
77543: else
77544:   ac_check_lib_save_LIBS=$LIBS
77545: LIBS="-lpq  $LIBS"
77546: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
77547: /* end confdefs.h.  */
77548: 
77549: /* Override any GCC internal prototype to avoid an error.
77550:    Use char because int might match the return type of a GCC
77551:    builtin and then its argument prototype would still apply.  */
77552: #ifdef __cplusplus
77553: extern "C"
77554: #endif
77555: char PQexecParams ();
77556: int
77557: main ()
77558: {
77559: return PQexecParams ();
77560:   ;
77561:   return 0;
77562: }
77563: _ACEOF
77564: if ac_fn_c_try_link "$LINENO"; then :
77565:   ac_cv_lib_pq_PQexecParams=yes
77566: else
77567:   ac_cv_lib_pq_PQexecParams=no
77568: fi
77569: rm -f core conftest.err conftest.$ac_objext \
77570:     conftest$ac_exeext conftest.$ac_ext
77571: LIBS=$ac_check_lib_save_LIBS
77572: fi
77573: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQexecParams" >&5
77574: $as_echo "$ac_cv_lib_pq_PQexecParams" >&6; }
77575: if test "x$ac_cv_lib_pq_PQexecParams" = xyes; then :
77576: 
77577: $as_echo "#define HAVE_PQEXECPARAMS 1" >>confdefs.h
77578: 
77579: fi
77580: 
77581:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQprepare in -lpq" >&5
77582: $as_echo_n "checking for PQprepare in -lpq... " >&6; }
77583: if ${ac_cv_lib_pq_PQprepare+:} false; then :
77584:   $as_echo_n "(cached) " >&6
77585: else
77586:   ac_check_lib_save_LIBS=$LIBS
77587: LIBS="-lpq  $LIBS"
77588: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
77589: /* end confdefs.h.  */
77590: 
77591: /* Override any GCC internal prototype to avoid an error.
77592:    Use char because int might match the return type of a GCC
77593:    builtin and then its argument prototype would still apply.  */
77594: #ifdef __cplusplus
77595: extern "C"
77596: #endif
77597: char PQprepare ();
77598: int
77599: main ()
77600: {
77601: return PQprepare ();
77602:   ;
77603:   return 0;
77604: }
77605: _ACEOF
77606: if ac_fn_c_try_link "$LINENO"; then :
77607:   ac_cv_lib_pq_PQprepare=yes
77608: else
77609:   ac_cv_lib_pq_PQprepare=no
77610: fi
77611: rm -f core conftest.err conftest.$ac_objext \
77612:     conftest$ac_exeext conftest.$ac_ext
77613: LIBS=$ac_check_lib_save_LIBS
77614: fi
77615: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQprepare" >&5
77616: $as_echo "$ac_cv_lib_pq_PQprepare" >&6; }
77617: if test "x$ac_cv_lib_pq_PQprepare" = xyes; then :
77618: 
77619: $as_echo "#define HAVE_PQPREPARE 1" >>confdefs.h
77620: 
77621: fi
77622: 
77623:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQexecPrepared in -lpq" >&5
77624: $as_echo_n "checking for PQexecPrepared in -lpq... " >&6; }
77625: if ${ac_cv_lib_pq_PQexecPrepared+:} false; then :
77626:   $as_echo_n "(cached) " >&6
77627: else
77628:   ac_check_lib_save_LIBS=$LIBS
77629: LIBS="-lpq  $LIBS"
77630: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
77631: /* end confdefs.h.  */
77632: 
77633: /* Override any GCC internal prototype to avoid an error.
77634:    Use char because int might match the return type of a GCC
77635:    builtin and then its argument prototype would still apply.  */
77636: #ifdef __cplusplus
77637: extern "C"
77638: #endif
77639: char PQexecPrepared ();
77640: int
77641: main ()
77642: {
77643: return PQexecPrepared ();
77644:   ;
77645:   return 0;
77646: }
77647: _ACEOF
77648: if ac_fn_c_try_link "$LINENO"; then :
77649:   ac_cv_lib_pq_PQexecPrepared=yes
77650: else
77651:   ac_cv_lib_pq_PQexecPrepared=no
77652: fi
77653: rm -f core conftest.err conftest.$ac_objext \
77654:     conftest$ac_exeext conftest.$ac_ext
77655: LIBS=$ac_check_lib_save_LIBS
77656: fi
77657: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQexecPrepared" >&5
77658: $as_echo "$ac_cv_lib_pq_PQexecPrepared" >&6; }
77659: if test "x$ac_cv_lib_pq_PQexecPrepared" = xyes; then :
77660: 
77661: $as_echo "#define HAVE_PQEXECPREPARED 1" >>confdefs.h
77662: 
77663: fi
77664: 
77665:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQresultErrorField in -lpq" >&5
77666: $as_echo_n "checking for PQresultErrorField in -lpq... " >&6; }
77667: if ${ac_cv_lib_pq_PQresultErrorField+:} false; then :
77668:   $as_echo_n "(cached) " >&6
77669: else
77670:   ac_check_lib_save_LIBS=$LIBS
77671: LIBS="-lpq  $LIBS"
77672: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
77673: /* end confdefs.h.  */
77674: 
77675: /* Override any GCC internal prototype to avoid an error.
77676:    Use char because int might match the return type of a GCC
77677:    builtin and then its argument prototype would still apply.  */
77678: #ifdef __cplusplus
77679: extern "C"
77680: #endif
77681: char PQresultErrorField ();
77682: int
77683: main ()
77684: {
77685: return PQresultErrorField ();
77686:   ;
77687:   return 0;
77688: }
77689: _ACEOF
77690: if ac_fn_c_try_link "$LINENO"; then :
77691:   ac_cv_lib_pq_PQresultErrorField=yes
77692: else
77693:   ac_cv_lib_pq_PQresultErrorField=no
77694: fi
77695: rm -f core conftest.err conftest.$ac_objext \
77696:     conftest$ac_exeext conftest.$ac_ext
77697: LIBS=$ac_check_lib_save_LIBS
77698: fi
77699: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQresultErrorField" >&5
77700: $as_echo "$ac_cv_lib_pq_PQresultErrorField" >&6; }
77701: if test "x$ac_cv_lib_pq_PQresultErrorField" = xyes; then :
77702: 
77703: $as_echo "#define HAVE_PQRESULTERRORFIELD 1" >>confdefs.h
77704: 
77705: fi
77706: 
77707:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsendQueryParams in -lpq" >&5
77708: $as_echo_n "checking for PQsendQueryParams in -lpq... " >&6; }
77709: if ${ac_cv_lib_pq_PQsendQueryParams+:} false; then :
77710:   $as_echo_n "(cached) " >&6
77711: else
77712:   ac_check_lib_save_LIBS=$LIBS
77713: LIBS="-lpq  $LIBS"
77714: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
77715: /* end confdefs.h.  */
77716: 
77717: /* Override any GCC internal prototype to avoid an error.
77718:    Use char because int might match the return type of a GCC
77719:    builtin and then its argument prototype would still apply.  */
77720: #ifdef __cplusplus
77721: extern "C"
77722: #endif
77723: char PQsendQueryParams ();
77724: int
77725: main ()
77726: {
77727: return PQsendQueryParams ();
77728:   ;
77729:   return 0;
77730: }
77731: _ACEOF
77732: if ac_fn_c_try_link "$LINENO"; then :
77733:   ac_cv_lib_pq_PQsendQueryParams=yes
77734: else
77735:   ac_cv_lib_pq_PQsendQueryParams=no
77736: fi
77737: rm -f core conftest.err conftest.$ac_objext \
77738:     conftest$ac_exeext conftest.$ac_ext
77739: LIBS=$ac_check_lib_save_LIBS
77740: fi
77741: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsendQueryParams" >&5
77742: $as_echo "$ac_cv_lib_pq_PQsendQueryParams" >&6; }
77743: if test "x$ac_cv_lib_pq_PQsendQueryParams" = xyes; then :
77744: 
77745: $as_echo "#define HAVE_PQSENDQUERYPARAMS 1" >>confdefs.h
77746: 
77747: fi
77748: 
77749:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsendPrepare in -lpq" >&5
77750: $as_echo_n "checking for PQsendPrepare in -lpq... " >&6; }
77751: if ${ac_cv_lib_pq_PQsendPrepare+:} false; then :
77752:   $as_echo_n "(cached) " >&6
77753: else
77754:   ac_check_lib_save_LIBS=$LIBS
77755: LIBS="-lpq  $LIBS"
77756: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
77757: /* end confdefs.h.  */
77758: 
77759: /* Override any GCC internal prototype to avoid an error.
77760:    Use char because int might match the return type of a GCC
77761:    builtin and then its argument prototype would still apply.  */
77762: #ifdef __cplusplus
77763: extern "C"
77764: #endif
77765: char PQsendPrepare ();
77766: int
77767: main ()
77768: {
77769: return PQsendPrepare ();
77770:   ;
77771:   return 0;
77772: }
77773: _ACEOF
77774: if ac_fn_c_try_link "$LINENO"; then :
77775:   ac_cv_lib_pq_PQsendPrepare=yes
77776: else
77777:   ac_cv_lib_pq_PQsendPrepare=no
77778: fi
77779: rm -f core conftest.err conftest.$ac_objext \
77780:     conftest$ac_exeext conftest.$ac_ext
77781: LIBS=$ac_check_lib_save_LIBS
77782: fi
77783: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsendPrepare" >&5
77784: $as_echo "$ac_cv_lib_pq_PQsendPrepare" >&6; }
77785: if test "x$ac_cv_lib_pq_PQsendPrepare" = xyes; then :
77786: 
77787: $as_echo "#define HAVE_PQSENDPREPARE 1" >>confdefs.h
77788: 
77789: fi
77790: 
77791:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsendQueryPrepared in -lpq" >&5
77792: $as_echo_n "checking for PQsendQueryPrepared in -lpq... " >&6; }
77793: if ${ac_cv_lib_pq_PQsendQueryPrepared+:} false; then :
77794:   $as_echo_n "(cached) " >&6
77795: else
77796:   ac_check_lib_save_LIBS=$LIBS
77797: LIBS="-lpq  $LIBS"
77798: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
77799: /* end confdefs.h.  */
77800: 
77801: /* Override any GCC internal prototype to avoid an error.
77802:    Use char because int might match the return type of a GCC
77803:    builtin and then its argument prototype would still apply.  */
77804: #ifdef __cplusplus
77805: extern "C"
77806: #endif
77807: char PQsendQueryPrepared ();
77808: int
77809: main ()
77810: {
77811: return PQsendQueryPrepared ();
77812:   ;
77813:   return 0;
77814: }
77815: _ACEOF
77816: if ac_fn_c_try_link "$LINENO"; then :
77817:   ac_cv_lib_pq_PQsendQueryPrepared=yes
77818: else
77819:   ac_cv_lib_pq_PQsendQueryPrepared=no
77820: fi
77821: rm -f core conftest.err conftest.$ac_objext \
77822:     conftest$ac_exeext conftest.$ac_ext
77823: LIBS=$ac_check_lib_save_LIBS
77824: fi
77825: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsendQueryPrepared" >&5
77826: $as_echo "$ac_cv_lib_pq_PQsendQueryPrepared" >&6; }
77827: if test "x$ac_cv_lib_pq_PQsendQueryPrepared" = xyes; then :
77828: 
77829: $as_echo "#define HAVE_PQSENDQUERYPREPARED 1" >>confdefs.h
77830: 
77831: fi
77832: 
77833:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
77834: $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
77835: if ${ac_cv_lib_pq_PQputCopyData+:} false; then :
77836:   $as_echo_n "(cached) " >&6
77837: else
77838:   ac_check_lib_save_LIBS=$LIBS
77839: LIBS="-lpq  $LIBS"
77840: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
77841: /* end confdefs.h.  */
77842: 
77843: /* Override any GCC internal prototype to avoid an error.
77844:    Use char because int might match the return type of a GCC
77845:    builtin and then its argument prototype would still apply.  */
77846: #ifdef __cplusplus
77847: extern "C"
77848: #endif
77849: char PQputCopyData ();
77850: int
77851: main ()
77852: {
77853: return PQputCopyData ();
77854:   ;
77855:   return 0;
77856: }
77857: _ACEOF
77858: if ac_fn_c_try_link "$LINENO"; then :
77859:   ac_cv_lib_pq_PQputCopyData=yes
77860: else
77861:   ac_cv_lib_pq_PQputCopyData=no
77862: fi
77863: rm -f core conftest.err conftest.$ac_objext \
77864:     conftest$ac_exeext conftest.$ac_ext
77865: LIBS=$ac_check_lib_save_LIBS
77866: fi
77867: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
77868: $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
77869: if test "x$ac_cv_lib_pq_PQputCopyData" = xyes; then :
77870: 
77871: $as_echo "#define HAVE_PQPUTCOPYDATA 1" >>confdefs.h
77872: 
77873: fi
77874: 
77875:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyEnd in -lpq" >&5
77876: $as_echo_n "checking for PQputCopyEnd in -lpq... " >&6; }
77877: if ${ac_cv_lib_pq_PQputCopyEnd+:} false; then :
77878:   $as_echo_n "(cached) " >&6
77879: else
77880:   ac_check_lib_save_LIBS=$LIBS
77881: LIBS="-lpq  $LIBS"
77882: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
77883: /* end confdefs.h.  */
77884: 
77885: /* Override any GCC internal prototype to avoid an error.
77886:    Use char because int might match the return type of a GCC
77887:    builtin and then its argument prototype would still apply.  */
77888: #ifdef __cplusplus
77889: extern "C"
77890: #endif
77891: char PQputCopyEnd ();
77892: int
77893: main ()
77894: {
77895: return PQputCopyEnd ();
77896:   ;
77897:   return 0;
77898: }
77899: _ACEOF
77900: if ac_fn_c_try_link "$LINENO"; then :
77901:   ac_cv_lib_pq_PQputCopyEnd=yes
77902: else
77903:   ac_cv_lib_pq_PQputCopyEnd=no
77904: fi
77905: rm -f core conftest.err conftest.$ac_objext \
77906:     conftest$ac_exeext conftest.$ac_ext
77907: LIBS=$ac_check_lib_save_LIBS
77908: fi
77909: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyEnd" >&5
77910: $as_echo "$ac_cv_lib_pq_PQputCopyEnd" >&6; }
77911: if test "x$ac_cv_lib_pq_PQputCopyEnd" = xyes; then :
77912: 
77913: $as_echo "#define HAVE_PQPUTCOPYEND 1" >>confdefs.h
77914: 
77915: fi
77916: 
77917:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQgetCopyData in -lpq" >&5
77918: $as_echo_n "checking for PQgetCopyData in -lpq... " >&6; }
77919: if ${ac_cv_lib_pq_PQgetCopyData+:} false; then :
77920:   $as_echo_n "(cached) " >&6
77921: else
77922:   ac_check_lib_save_LIBS=$LIBS
77923: LIBS="-lpq  $LIBS"
77924: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
77925: /* end confdefs.h.  */
77926: 
77927: /* Override any GCC internal prototype to avoid an error.
77928:    Use char because int might match the return type of a GCC
77929:    builtin and then its argument prototype would still apply.  */
77930: #ifdef __cplusplus
77931: extern "C"
77932: #endif
77933: char PQgetCopyData ();
77934: int
77935: main ()
77936: {
77937: return PQgetCopyData ();
77938:   ;
77939:   return 0;
77940: }
77941: _ACEOF
77942: if ac_fn_c_try_link "$LINENO"; then :
77943:   ac_cv_lib_pq_PQgetCopyData=yes
77944: else
77945:   ac_cv_lib_pq_PQgetCopyData=no
77946: fi
77947: rm -f core conftest.err conftest.$ac_objext \
77948:     conftest$ac_exeext conftest.$ac_ext
77949: LIBS=$ac_check_lib_save_LIBS
77950: fi
77951: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQgetCopyData" >&5
77952: $as_echo "$ac_cv_lib_pq_PQgetCopyData" >&6; }
77953: if test "x$ac_cv_lib_pq_PQgetCopyData" = xyes; then :
77954: 
77955: $as_echo "#define HAVE_PQGETCOPYDATA 1" >>confdefs.h
77956: 
77957: fi
77958: 
77959:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQfreemem in -lpq" >&5
77960: $as_echo_n "checking for PQfreemem in -lpq... " >&6; }
77961: if ${ac_cv_lib_pq_PQfreemem+:} false; then :
77962:   $as_echo_n "(cached) " >&6
77963: else
77964:   ac_check_lib_save_LIBS=$LIBS
77965: LIBS="-lpq  $LIBS"
77966: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
77967: /* end confdefs.h.  */
77968: 
77969: /* Override any GCC internal prototype to avoid an error.
77970:    Use char because int might match the return type of a GCC
77971:    builtin and then its argument prototype would still apply.  */
77972: #ifdef __cplusplus
77973: extern "C"
77974: #endif
77975: char PQfreemem ();
77976: int
77977: main ()
77978: {
77979: return PQfreemem ();
77980:   ;
77981:   return 0;
77982: }
77983: _ACEOF
77984: if ac_fn_c_try_link "$LINENO"; then :
77985:   ac_cv_lib_pq_PQfreemem=yes
77986: else
77987:   ac_cv_lib_pq_PQfreemem=no
77988: fi
77989: rm -f core conftest.err conftest.$ac_objext \
77990:     conftest$ac_exeext conftest.$ac_ext
77991: LIBS=$ac_check_lib_save_LIBS
77992: fi
77993: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQfreemem" >&5
77994: $as_echo "$ac_cv_lib_pq_PQfreemem" >&6; }
77995: if test "x$ac_cv_lib_pq_PQfreemem" = xyes; then :
77996: 
77997: $as_echo "#define HAVE_PQFREEMEM 1" >>confdefs.h
77998: 
77999: fi
78000: 
78001:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsetErrorVerbosity in -lpq" >&5
78002: $as_echo_n "checking for PQsetErrorVerbosity in -lpq... " >&6; }
78003: if ${ac_cv_lib_pq_PQsetErrorVerbosity+:} false; then :
78004:   $as_echo_n "(cached) " >&6
78005: else
78006:   ac_check_lib_save_LIBS=$LIBS
78007: LIBS="-lpq  $LIBS"
78008: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
78009: /* end confdefs.h.  */
78010: 
78011: /* Override any GCC internal prototype to avoid an error.
78012:    Use char because int might match the return type of a GCC
78013:    builtin and then its argument prototype would still apply.  */
78014: #ifdef __cplusplus
78015: extern "C"
78016: #endif
78017: char PQsetErrorVerbosity ();
78018: int
78019: main ()
78020: {
78021: return PQsetErrorVerbosity ();
78022:   ;
78023:   return 0;
78024: }
78025: _ACEOF
78026: if ac_fn_c_try_link "$LINENO"; then :
78027:   ac_cv_lib_pq_PQsetErrorVerbosity=yes
78028: else
78029:   ac_cv_lib_pq_PQsetErrorVerbosity=no
78030: fi
78031: rm -f core conftest.err conftest.$ac_objext \
78032:     conftest$ac_exeext conftest.$ac_ext
78033: LIBS=$ac_check_lib_save_LIBS
78034: fi
78035: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsetErrorVerbosity" >&5
78036: $as_echo "$ac_cv_lib_pq_PQsetErrorVerbosity" >&6; }
78037: if test "x$ac_cv_lib_pq_PQsetErrorVerbosity" = xyes; then :
78038: 
78039: $as_echo "#define HAVE_PQSETERRORVERBOSITY 1" >>confdefs.h
78040: 
78041: fi
78042: 
78043:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQftable in -lpq" >&5
78044: $as_echo_n "checking for PQftable in -lpq... " >&6; }
78045: if ${ac_cv_lib_pq_PQftable+:} false; then :
78046:   $as_echo_n "(cached) " >&6
78047: else
78048:   ac_check_lib_save_LIBS=$LIBS
78049: LIBS="-lpq  $LIBS"
78050: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
78051: /* end confdefs.h.  */
78052: 
78053: /* Override any GCC internal prototype to avoid an error.
78054:    Use char because int might match the return type of a GCC
78055:    builtin and then its argument prototype would still apply.  */
78056: #ifdef __cplusplus
78057: extern "C"
78058: #endif
78059: char PQftable ();
78060: int
78061: main ()
78062: {
78063: return PQftable ();
78064:   ;
78065:   return 0;
78066: }
78067: _ACEOF
78068: if ac_fn_c_try_link "$LINENO"; then :
78069:   ac_cv_lib_pq_PQftable=yes
78070: else
78071:   ac_cv_lib_pq_PQftable=no
78072: fi
78073: rm -f core conftest.err conftest.$ac_objext \
78074:     conftest$ac_exeext conftest.$ac_ext
78075: LIBS=$ac_check_lib_save_LIBS
78076: fi
78077: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQftable" >&5
78078: $as_echo "$ac_cv_lib_pq_PQftable" >&6; }
78079: if test "x$ac_cv_lib_pq_PQftable" = xyes; then :
78080: 
78081: $as_echo "#define HAVE_PQFTABLE 1" >>confdefs.h
78082: 
78083: fi
78084: 
78085:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQescapeStringConn in -lpq" >&5
78086: $as_echo_n "checking for PQescapeStringConn in -lpq... " >&6; }
78087: if ${ac_cv_lib_pq_PQescapeStringConn+:} false; then :
78088:   $as_echo_n "(cached) " >&6
78089: else
78090:   ac_check_lib_save_LIBS=$LIBS
78091: LIBS="-lpq  $LIBS"
78092: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
78093: /* end confdefs.h.  */
78094: 
78095: /* Override any GCC internal prototype to avoid an error.
78096:    Use char because int might match the return type of a GCC
78097:    builtin and then its argument prototype would still apply.  */
78098: #ifdef __cplusplus
78099: extern "C"
78100: #endif
78101: char PQescapeStringConn ();
78102: int
78103: main ()
78104: {
78105: return PQescapeStringConn ();
78106:   ;
78107:   return 0;
78108: }
78109: _ACEOF
78110: if ac_fn_c_try_link "$LINENO"; then :
78111:   ac_cv_lib_pq_PQescapeStringConn=yes
78112: else
78113:   ac_cv_lib_pq_PQescapeStringConn=no
78114: fi
78115: rm -f core conftest.err conftest.$ac_objext \
78116:     conftest$ac_exeext conftest.$ac_ext
78117: LIBS=$ac_check_lib_save_LIBS
78118: fi
78119: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQescapeStringConn" >&5
78120: $as_echo "$ac_cv_lib_pq_PQescapeStringConn" >&6; }
78121: if test "x$ac_cv_lib_pq_PQescapeStringConn" = xyes; then :
78122: 
78123: $as_echo "#define HAVE_PQESCAPE_CONN 1" >>confdefs.h
78124: 
78125: fi
78126: 
78127:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQescapeByteaConn in -lpq" >&5
78128: $as_echo_n "checking for PQescapeByteaConn in -lpq... " >&6; }
78129: if ${ac_cv_lib_pq_PQescapeByteaConn+:} false; then :
78130:   $as_echo_n "(cached) " >&6
78131: else
78132:   ac_check_lib_save_LIBS=$LIBS
78133: LIBS="-lpq  $LIBS"
78134: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
78135: /* end confdefs.h.  */
78136: 
78137: /* Override any GCC internal prototype to avoid an error.
78138:    Use char because int might match the return type of a GCC
78139:    builtin and then its argument prototype would still apply.  */
78140: #ifdef __cplusplus
78141: extern "C"
78142: #endif
78143: char PQescapeByteaConn ();
78144: int
78145: main ()
78146: {
78147: return PQescapeByteaConn ();
78148:   ;
78149:   return 0;
78150: }
78151: _ACEOF
78152: if ac_fn_c_try_link "$LINENO"; then :
78153:   ac_cv_lib_pq_PQescapeByteaConn=yes
78154: else
78155:   ac_cv_lib_pq_PQescapeByteaConn=no
78156: fi
78157: rm -f core conftest.err conftest.$ac_objext \
78158:     conftest$ac_exeext conftest.$ac_ext
78159: LIBS=$ac_check_lib_save_LIBS
78160: fi
78161: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQescapeByteaConn" >&5
78162: $as_echo "$ac_cv_lib_pq_PQescapeByteaConn" >&6; }
78163: if test "x$ac_cv_lib_pq_PQescapeByteaConn" = xyes; then :
78164: 
78165: $as_echo "#define HAVE_PQESCAPE_BYTEA_CONN 1" >>confdefs.h
78166: 
78167: fi
78168: 
78169:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pg_encoding_to_char in -lpq" >&5
78170: $as_echo_n "checking for pg_encoding_to_char in -lpq... " >&6; }
78171: if ${ac_cv_lib_pq_pg_encoding_to_char+:} false; then :
78172:   $as_echo_n "(cached) " >&6
78173: else
78174:   ac_check_lib_save_LIBS=$LIBS
78175: LIBS="-lpq  $LIBS"
78176: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
78177: /* end confdefs.h.  */
78178: 
78179: /* Override any GCC internal prototype to avoid an error.
78180:    Use char because int might match the return type of a GCC
78181:    builtin and then its argument prototype would still apply.  */
78182: #ifdef __cplusplus
78183: extern "C"
78184: #endif
78185: char pg_encoding_to_char ();
78186: int
78187: main ()
78188: {
78189: return pg_encoding_to_char ();
78190:   ;
78191:   return 0;
78192: }
78193: _ACEOF
78194: if ac_fn_c_try_link "$LINENO"; then :
78195:   ac_cv_lib_pq_pg_encoding_to_char=yes
78196: else
78197:   ac_cv_lib_pq_pg_encoding_to_char=no
78198: fi
78199: rm -f core conftest.err conftest.$ac_objext \
78200:     conftest$ac_exeext conftest.$ac_ext
78201: LIBS=$ac_check_lib_save_LIBS
78202: fi
78203: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_pg_encoding_to_char" >&5
78204: $as_echo "$ac_cv_lib_pq_pg_encoding_to_char" >&6; }
78205: if test "x$ac_cv_lib_pq_pg_encoding_to_char" = xyes; then :
78206: 
78207: $as_echo "#define HAVE_PGSQL_WITH_MULTIBYTE_SUPPORT 1" >>confdefs.h
78208: 
78209: fi
78210: 
78211:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lo_create in -lpq" >&5
78212: $as_echo_n "checking for lo_create in -lpq... " >&6; }
78213: if ${ac_cv_lib_pq_lo_create+:} false; then :
78214:   $as_echo_n "(cached) " >&6
78215: else
78216:   ac_check_lib_save_LIBS=$LIBS
78217: LIBS="-lpq  $LIBS"
78218: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
78219: /* end confdefs.h.  */
78220: 
78221: /* Override any GCC internal prototype to avoid an error.
78222:    Use char because int might match the return type of a GCC
78223:    builtin and then its argument prototype would still apply.  */
78224: #ifdef __cplusplus
78225: extern "C"
78226: #endif
78227: char lo_create ();
78228: int
78229: main ()
78230: {
78231: return lo_create ();
78232:   ;
78233:   return 0;
78234: }
78235: _ACEOF
78236: if ac_fn_c_try_link "$LINENO"; then :
78237:   ac_cv_lib_pq_lo_create=yes
78238: else
78239:   ac_cv_lib_pq_lo_create=no
78240: fi
78241: rm -f core conftest.err conftest.$ac_objext \
78242:     conftest$ac_exeext conftest.$ac_ext
78243: LIBS=$ac_check_lib_save_LIBS
78244: fi
78245: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_lo_create" >&5
78246: $as_echo "$ac_cv_lib_pq_lo_create" >&6; }
78247: if test "x$ac_cv_lib_pq_lo_create" = xyes; then :
78248: 
78249: $as_echo "#define HAVE_PG_LO_CREATE 1" >>confdefs.h
78250: 
78251: fi
78252: 
78253:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lo_import_with_oid in -lpq" >&5
78254: $as_echo_n "checking for lo_import_with_oid in -lpq... " >&6; }
78255: if ${ac_cv_lib_pq_lo_import_with_oid+:} false; then :
78256:   $as_echo_n "(cached) " >&6
78257: else
78258:   ac_check_lib_save_LIBS=$LIBS
78259: LIBS="-lpq  $LIBS"
78260: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
78261: /* end confdefs.h.  */
78262: 
78263: /* Override any GCC internal prototype to avoid an error.
78264:    Use char because int might match the return type of a GCC
78265:    builtin and then its argument prototype would still apply.  */
78266: #ifdef __cplusplus
78267: extern "C"
78268: #endif
78269: char lo_import_with_oid ();
78270: int
78271: main ()
78272: {
78273: return lo_import_with_oid ();
78274:   ;
78275:   return 0;
78276: }
78277: _ACEOF
78278: if ac_fn_c_try_link "$LINENO"; then :
78279:   ac_cv_lib_pq_lo_import_with_oid=yes
78280: else
78281:   ac_cv_lib_pq_lo_import_with_oid=no
78282: fi
78283: rm -f core conftest.err conftest.$ac_objext \
78284:     conftest$ac_exeext conftest.$ac_ext
78285: LIBS=$ac_check_lib_save_LIBS
78286: fi
78287: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_lo_import_with_oid" >&5
78288: $as_echo "$ac_cv_lib_pq_lo_import_with_oid" >&6; }
78289: if test "x$ac_cv_lib_pq_lo_import_with_oid" = xyes; then :
78290: 
78291: $as_echo "#define HAVE_PG_LO_IMPORT_WITH_OID 1" >>confdefs.h
78292: 
78293: fi
78294: 
78295:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQescapeLiteral in -lpq" >&5
78296: $as_echo_n "checking for PQescapeLiteral in -lpq... " >&6; }
78297: if ${ac_cv_lib_pq_PQescapeLiteral+:} false; then :
78298:   $as_echo_n "(cached) " >&6
78299: else
78300:   ac_check_lib_save_LIBS=$LIBS
78301: LIBS="-lpq  $LIBS"
78302: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
78303: /* end confdefs.h.  */
78304: 
78305: /* Override any GCC internal prototype to avoid an error.
78306:    Use char because int might match the return type of a GCC
78307:    builtin and then its argument prototype would still apply.  */
78308: #ifdef __cplusplus
78309: extern "C"
78310: #endif
78311: char PQescapeLiteral ();
78312: int
78313: main ()
78314: {
78315: return PQescapeLiteral ();
78316:   ;
78317:   return 0;
78318: }
78319: _ACEOF
78320: if ac_fn_c_try_link "$LINENO"; then :
78321:   ac_cv_lib_pq_PQescapeLiteral=yes
78322: else
78323:   ac_cv_lib_pq_PQescapeLiteral=no
78324: fi
78325: rm -f core conftest.err conftest.$ac_objext \
78326:     conftest$ac_exeext conftest.$ac_ext
78327: LIBS=$ac_check_lib_save_LIBS
78328: fi
78329: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQescapeLiteral" >&5
78330: $as_echo "$ac_cv_lib_pq_PQescapeLiteral" >&6; }
78331: if test "x$ac_cv_lib_pq_PQescapeLiteral" = xyes; then :
78332: 
78333: $as_echo "#define HAVE_PQESCAPELITERAL 1" >>confdefs.h
78334: 
78335: fi
78336: 
78337:   LIBS=$old_LIBS
78338:   LDFLAGS=$old_LDFLAGS
78339: 
78340: 
78341: 
78342:   if test "$ext_shared" = "yes"; then
78343:     PGSQL_SHARED_LIBADD="-lpq $PGSQL_SHARED_LIBADD"
78344:     if test -n "$PGSQL_LIBDIR"; then
78345: 
78346:   if test "$PGSQL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PGSQL_LIBDIR" != "/usr/lib"; then
78347: 
78348:   if test -z "$PGSQL_LIBDIR" || echo "$PGSQL_LIBDIR" | grep '^/' >/dev/null ; then
78349:     ai_p=$PGSQL_LIBDIR
78350:   else
78351: 
78352:     ep_dir=`echo $PGSQL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
78353: 
78354:     ep_realdir=`(cd "$ep_dir" && pwd)`
78355:     ai_p="$ep_realdir"/`basename "$PGSQL_LIBDIR"`
78356:   fi
78357: 
78358: 
78359:       if test "$ext_shared" = "yes"; then
78360:         PGSQL_SHARED_LIBADD="-L$ai_p $PGSQL_SHARED_LIBADD"
78361:         test -n "$ld_runpath_switch" && PGSQL_SHARED_LIBADD="$ld_runpath_switch$ai_p $PGSQL_SHARED_LIBADD"
78362:       else
78363: 
78364: 
78365: 
78366:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
78367: 
78368:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
78369:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
78370:     eval "LIBPATH$unique=set"
78371: 
78372:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
78373:     LDFLAGS="$LDFLAGS -L$ai_p"
78374:     PHP_RPATHS="$PHP_RPATHS $ai_p"
78375: 
78376:   fi
78377: 
78378: 
78379:       fi
78380: 
78381:   fi
78382: 
78383:     fi
78384:   else
78385: 
78386: 
78387:   if test -n "$PGSQL_LIBDIR"; then
78388: 
78389:   if test "$PGSQL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PGSQL_LIBDIR" != "/usr/lib"; then
78390: 
78391:   if test -z "$PGSQL_LIBDIR" || echo "$PGSQL_LIBDIR" | grep '^/' >/dev/null ; then
78392:     ai_p=$PGSQL_LIBDIR
78393:   else
78394: 
78395:     ep_dir=`echo $PGSQL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
78396: 
78397:     ep_realdir=`(cd "$ep_dir" && pwd)`
78398:     ai_p="$ep_realdir"/`basename "$PGSQL_LIBDIR"`
78399:   fi
78400: 
78401: 
78402: 
78403: 
78404: 
78405:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
78406: 
78407:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
78408:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
78409:     eval "LIBPATH$unique=set"
78410: 
78411:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
78412:     LDFLAGS="$LDFLAGS -L$ai_p"
78413:     PHP_RPATHS="$PHP_RPATHS $ai_p"
78414: 
78415:   fi
78416: 
78417: 
78418: 
78419:   fi
78420: 
78421:   fi
78422: 
78423: 
78424:   case pq in
78425:   c|c_r|pthread*) ;;
78426:   *)
78427:       LIBS="-lpq $LIBS"
78428:    ;;
78429:   esac
78430: 
78431: 
78432: 
78433: 
78434:   fi
78435: 
78436: 
78437: 
78438:   PHP_VAR_SUBST="$PHP_VAR_SUBST PGSQL_SHARED_LIBADD"
78439: 
78440: 
78441: 
78442:   if test "$PGSQL_INCLUDE" != "/usr/include"; then
78443: 
78444:   if test -z "$PGSQL_INCLUDE" || echo "$PGSQL_INCLUDE" | grep '^/' >/dev/null ; then
78445:     ai_p=$PGSQL_INCLUDE
78446:   else
78447: 
78448:     ep_dir=`echo $PGSQL_INCLUDE|$SED 's%/*[^/][^/]*/*$%%'`
78449: 
78450:     ep_realdir=`(cd "$ep_dir" && pwd)`
78451:     ai_p="$ep_realdir"/`basename "$PGSQL_INCLUDE"`
78452:   fi
78453: 
78454: 
78455: 
78456:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
78457: 
78458:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
78459:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
78460:     eval "INCLUDEPATH$unique=set"
78461: 
78462:       if test ""; then
78463:         INCLUDES="-I$ai_p $INCLUDES"
78464:       else
78465:         INCLUDES="$INCLUDES -I$ai_p"
78466:       fi
78467: 
78468:   fi
78469: 
78470:   fi
78471: 
78472: 
78473: 
78474:   ext_builddir=ext/pgsql
78475:   ext_srcdir=$abs_srcdir/ext/pgsql
78476: 
78477:   ac_extra=
78478: 
78479:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
78480:     PHP_PGSQL_SHARED=no
78481: 
78482: 
78483:   case ext/pgsql in
78484:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
78485:   /*) ac_srcdir=`echo "ext/pgsql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
78486:   *) ac_srcdir="$abs_srcdir/ext/pgsql/"; ac_bdir="ext/pgsql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
78487:   esac
78488: 
78489: 
78490: 
78491:   b_c_pre=$php_c_pre
78492:   b_cxx_pre=$php_cxx_pre
78493:   b_c_meta=$php_c_meta
78494:   b_cxx_meta=$php_cxx_meta
78495:   b_c_post=$php_c_post
78496:   b_cxx_post=$php_cxx_post
78497:   b_lo=$php_lo
78498: 
78499: 
78500:   old_IFS=$IFS
78501:   for ac_src in pgsql.c; do
78502: 
78503:       IFS=.
78504:       set $ac_src
78505:       ac_obj=$1
78506:       IFS=$old_IFS
78507: 
78508:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
78509: 
78510:       case $ac_src in
78511:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
78512:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
78513:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
78514:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
78515:       esac
78516: 
78517:     cat >>Makefile.objects<<EOF
78518: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
78519: 	$ac_comp
78520: EOF
78521:   done
78522: 
78523: 
78524:     EXT_STATIC="$EXT_STATIC pgsql"
78525:     if test "$ext_shared" != "nocli"; then
78526:       EXT_CLI_STATIC="$EXT_CLI_STATIC pgsql"
78527:     fi
78528:   else
78529:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
78530:       PHP_PGSQL_SHARED=yes
78531: 
78532:   case ext/pgsql in
78533:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
78534:   /*) ac_srcdir=`echo "ext/pgsql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
78535:   *) ac_srcdir="$abs_srcdir/ext/pgsql/"; ac_bdir="ext/pgsql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
78536:   esac
78537: 
78538: 
78539: 
78540:   b_c_pre=$shared_c_pre
78541:   b_cxx_pre=$shared_cxx_pre
78542:   b_c_meta=$shared_c_meta
78543:   b_cxx_meta=$shared_cxx_meta
78544:   b_c_post=$shared_c_post
78545:   b_cxx_post=$shared_cxx_post
78546:   b_lo=$shared_lo
78547: 
78548: 
78549:   old_IFS=$IFS
78550:   for ac_src in pgsql.c; do
78551: 
78552:       IFS=.
78553:       set $ac_src
78554:       ac_obj=$1
78555:       IFS=$old_IFS
78556: 
78557:       shared_objects_pgsql="$shared_objects_pgsql $ac_bdir$ac_obj.lo"
78558: 
78559:       case $ac_src in
78560:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
78561:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
78562:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
78563:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
78564:       esac
78565: 
78566:     cat >>Makefile.objects<<EOF
78567: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
78568: 	$ac_comp
78569: EOF
78570:   done
78571: 
78572:       case $host_alias in
78573:         *netware*)
78574: 
78575:   install_modules="install-modules"
78576: 
78577:   case $host_alias in
78578:     *aix*)
78579:       suffix=so
78580:       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'
78581:       ;;
78582:     *netware*)
78583:       suffix=nlm
78584:       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)'
78585:       ;;
78586:     *)
78587:       suffix=la
78588:       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)'
78589:       ;;
78590:   esac
78591: 
78592:   if test "x" = "xyes"; then
78593:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phppgsql.$suffix"
78594:   else
78595:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phppgsql.$suffix"
78596:   fi
78597: 
78598:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pgsql"
78599: 
78600:   cat >>Makefile.objects<<EOF
78601: \$(phplibdir)/phppgsql.$suffix: $ext_builddir/phppgsql.$suffix
78602: 	\$(LIBTOOL) --mode=install cp $ext_builddir/phppgsql.$suffix \$(phplibdir)
78603: 
78604: $ext_builddir/phppgsql.$suffix: \$(shared_objects_pgsql) \$(PHPPGSQL_SHARED_DEPENDENCIES)
78605: 	$link_cmd
78606: 
78607: EOF
78608: 
78609:           ;;
78610:         *)
78611: 
78612:   install_modules="install-modules"
78613: 
78614:   case $host_alias in
78615:     *aix*)
78616:       suffix=so
78617:       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'
78618:       ;;
78619:     *netware*)
78620:       suffix=nlm
78621:       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)'
78622:       ;;
78623:     *)
78624:       suffix=la
78625:       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)'
78626:       ;;
78627:   esac
78628: 
78629:   if test "x" = "xyes"; then
78630:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/pgsql.$suffix"
78631:   else
78632:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/pgsql.$suffix"
78633:   fi
78634: 
78635:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pgsql"
78636: 
78637:   cat >>Makefile.objects<<EOF
78638: \$(phplibdir)/pgsql.$suffix: $ext_builddir/pgsql.$suffix
78639: 	\$(LIBTOOL) --mode=install cp $ext_builddir/pgsql.$suffix \$(phplibdir)
78640: 
78641: $ext_builddir/pgsql.$suffix: \$(shared_objects_pgsql) \$(PGSQL_SHARED_DEPENDENCIES)
78642: 	$link_cmd
78643: 
78644: EOF
78645: 
78646:           ;;
78647:       esac
78648: 
78649: cat >>confdefs.h <<_ACEOF
78650: #define COMPILE_DL_PGSQL 1
78651: _ACEOF
78652: 
78653:     fi
78654:   fi
78655: 
78656:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
78657:     PHP_PGSQL_SHARED=no
78658:     case "$PHP_SAPI" in
78659:       cgi|embed)
78660: 
78661: 
78662:   case ext/pgsql in
78663:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
78664:   /*) ac_srcdir=`echo "ext/pgsql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
78665:   *) ac_srcdir="$abs_srcdir/ext/pgsql/"; ac_bdir="ext/pgsql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
78666:   esac
78667: 
78668: 
78669: 
78670:   b_c_pre=$php_c_pre
78671:   b_cxx_pre=$php_cxx_pre
78672:   b_c_meta=$php_c_meta
78673:   b_cxx_meta=$php_cxx_meta
78674:   b_c_post=$php_c_post
78675:   b_cxx_post=$php_cxx_post
78676:   b_lo=$php_lo
78677: 
78678: 
78679:   old_IFS=$IFS
78680:   for ac_src in pgsql.c; do
78681: 
78682:       IFS=.
78683:       set $ac_src
78684:       ac_obj=$1
78685:       IFS=$old_IFS
78686: 
78687:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
78688: 
78689:       case $ac_src in
78690:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
78691:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
78692:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
78693:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
78694:       esac
78695: 
78696:     cat >>Makefile.objects<<EOF
78697: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
78698: 	$ac_comp
78699: EOF
78700:   done
78701: 
78702: 
78703:         EXT_STATIC="$EXT_STATIC pgsql"
78704:         ;;
78705:       *)
78706: 
78707: 
78708:   case ext/pgsql in
78709:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
78710:   /*) ac_srcdir=`echo "ext/pgsql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
78711:   *) ac_srcdir="$abs_srcdir/ext/pgsql/"; ac_bdir="ext/pgsql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
78712:   esac
78713: 
78714: 
78715: 
78716:   b_c_pre=$php_c_pre
78717:   b_cxx_pre=$php_cxx_pre
78718:   b_c_meta=$php_c_meta
78719:   b_cxx_meta=$php_cxx_meta
78720:   b_c_post=$php_c_post
78721:   b_cxx_post=$php_cxx_post
78722:   b_lo=$php_lo
78723: 
78724: 
78725:   old_IFS=$IFS
78726:   for ac_src in pgsql.c; do
78727: 
78728:       IFS=.
78729:       set $ac_src
78730:       ac_obj=$1
78731:       IFS=$old_IFS
78732: 
78733:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
78734: 
78735:       case $ac_src in
78736:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
78737:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
78738:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
78739:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
78740:       esac
78741: 
78742:     cat >>Makefile.objects<<EOF
78743: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
78744: 	$ac_comp
78745: EOF
78746:   done
78747: 
78748: 
78749:         ;;
78750:     esac
78751:     EXT_CLI_STATIC="$EXT_CLI_STATIC pgsql"
78752:   fi
78753: 
78754: 
78755:     BUILD_DIR="$BUILD_DIR $ext_builddir"
78756: 
78757: 
78758: 
78759:   if test "$ext_builddir" = "."; then
78760:     PHP_PECL_EXTENSION=pgsql
78761: 
78762:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
78763: 
78764:   fi
78765: 
78766: fi
78767: 
78768: 
78769: 
78770: 
78771: 
78772: php_enable_phar=yes
78773: 
78774: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for phar archive support" >&5
78775: $as_echo_n "checking for phar archive support... " >&6; }
78776: # Check whether --enable-phar was given.
78777: if test "${enable_phar+set}" = set; then :
78778:   enableval=$enable_phar; PHP_PHAR=$enableval
78779: else
78780: 
78781:   PHP_PHAR=yes
78782:   test "$PHP_ENABLE_ALL" && PHP_PHAR=$PHP_ENABLE_ALL
78783: 
78784: fi
78785: 
78786: 
78787: 
78788: ext_output="yes, shared"
78789: ext_shared=yes
78790: case $PHP_PHAR in
78791: shared,*)
78792:   PHP_PHAR=`echo "$PHP_PHAR"|$SED 's/^shared,//'`
78793:   ;;
78794: shared)
78795:   PHP_PHAR=yes
78796:   ;;
78797: no)
78798:   ext_output=no
78799:   ext_shared=no
78800:   ;;
78801: *)
78802:   ext_output=yes
78803:   ext_shared=no
78804:   ;;
78805: esac
78806: 
78807: 
78808: 
78809: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
78810: $as_echo "$ext_output" >&6; }
78811: 
78812: 
78813: 
78814: 
78815: if test "$PHP_PHAR" != "no"; then
78816: 
78817:   ext_builddir=ext/phar
78818:   ext_srcdir=$abs_srcdir/ext/phar
78819: 
78820:   ac_extra=
78821: 
78822:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
78823:     PHP_PHAR_SHARED=no
78824: 
78825: 
78826:   case ext/phar in
78827:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
78828:   /*) ac_srcdir=`echo "ext/phar"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
78829:   *) ac_srcdir="$abs_srcdir/ext/phar/"; ac_bdir="ext/phar/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
78830:   esac
78831: 
78832: 
78833: 
78834:   b_c_pre=$php_c_pre
78835:   b_cxx_pre=$php_cxx_pre
78836:   b_c_meta=$php_c_meta
78837:   b_cxx_meta=$php_cxx_meta
78838:   b_c_post=$php_c_post
78839:   b_cxx_post=$php_cxx_post
78840:   b_lo=$php_lo
78841: 
78842: 
78843:   old_IFS=$IFS
78844:   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
78845: 
78846:       IFS=.
78847:       set $ac_src
78848:       ac_obj=$1
78849:       IFS=$old_IFS
78850: 
78851:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
78852: 
78853:       case $ac_src in
78854:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
78855:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
78856:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
78857:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
78858:       esac
78859: 
78860:     cat >>Makefile.objects<<EOF
78861: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
78862: 	$ac_comp
78863: EOF
78864:   done
78865: 
78866: 
78867:     EXT_STATIC="$EXT_STATIC phar"
78868:     if test "$ext_shared" != "nocli"; then
78869:       EXT_CLI_STATIC="$EXT_CLI_STATIC phar"
78870:     fi
78871:   else
78872:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
78873:       PHP_PHAR_SHARED=yes
78874: 
78875:   case ext/phar in
78876:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
78877:   /*) ac_srcdir=`echo "ext/phar"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
78878:   *) ac_srcdir="$abs_srcdir/ext/phar/"; ac_bdir="ext/phar/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
78879:   esac
78880: 
78881: 
78882: 
78883:   b_c_pre=$shared_c_pre
78884:   b_cxx_pre=$shared_cxx_pre
78885:   b_c_meta=$shared_c_meta
78886:   b_cxx_meta=$shared_cxx_meta
78887:   b_c_post=$shared_c_post
78888:   b_cxx_post=$shared_cxx_post
78889:   b_lo=$shared_lo
78890: 
78891: 
78892:   old_IFS=$IFS
78893:   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
78894: 
78895:       IFS=.
78896:       set $ac_src
78897:       ac_obj=$1
78898:       IFS=$old_IFS
78899: 
78900:       shared_objects_phar="$shared_objects_phar $ac_bdir$ac_obj.lo"
78901: 
78902:       case $ac_src in
78903:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
78904:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
78905:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
78906:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
78907:       esac
78908: 
78909:     cat >>Makefile.objects<<EOF
78910: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
78911: 	$ac_comp
78912: EOF
78913:   done
78914: 
78915:       case $host_alias in
78916:         *netware*)
78917: 
78918:   install_modules="install-modules"
78919: 
78920:   case $host_alias in
78921:     *aix*)
78922:       suffix=so
78923:       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'
78924:       ;;
78925:     *netware*)
78926:       suffix=nlm
78927:       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)'
78928:       ;;
78929:     *)
78930:       suffix=la
78931:       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)'
78932:       ;;
78933:   esac
78934: 
78935:   if test "x" = "xyes"; then
78936:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpphar.$suffix"
78937:   else
78938:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpphar.$suffix"
78939:   fi
78940: 
78941:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_phar"
78942: 
78943:   cat >>Makefile.objects<<EOF
78944: \$(phplibdir)/phpphar.$suffix: $ext_builddir/phpphar.$suffix
78945: 	\$(LIBTOOL) --mode=install cp $ext_builddir/phpphar.$suffix \$(phplibdir)
78946: 
78947: $ext_builddir/phpphar.$suffix: \$(shared_objects_phar) \$(PHPPHAR_SHARED_DEPENDENCIES)
78948: 	$link_cmd
78949: 
78950: EOF
78951: 
78952:           ;;
78953:         *)
78954: 
78955:   install_modules="install-modules"
78956: 
78957:   case $host_alias in
78958:     *aix*)
78959:       suffix=so
78960:       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'
78961:       ;;
78962:     *netware*)
78963:       suffix=nlm
78964:       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)'
78965:       ;;
78966:     *)
78967:       suffix=la
78968:       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)'
78969:       ;;
78970:   esac
78971: 
78972:   if test "x" = "xyes"; then
78973:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phar.$suffix"
78974:   else
78975:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phar.$suffix"
78976:   fi
78977: 
78978:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_phar"
78979: 
78980:   cat >>Makefile.objects<<EOF
78981: \$(phplibdir)/phar.$suffix: $ext_builddir/phar.$suffix
78982: 	\$(LIBTOOL) --mode=install cp $ext_builddir/phar.$suffix \$(phplibdir)
78983: 
78984: $ext_builddir/phar.$suffix: \$(shared_objects_phar) \$(PHAR_SHARED_DEPENDENCIES)
78985: 	$link_cmd
78986: 
78987: EOF
78988: 
78989:           ;;
78990:       esac
78991: 
78992: cat >>confdefs.h <<_ACEOF
78993: #define COMPILE_DL_PHAR 1
78994: _ACEOF
78995: 
78996:     fi
78997:   fi
78998: 
78999:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
79000:     PHP_PHAR_SHARED=no
79001:     case "$PHP_SAPI" in
79002:       cgi|embed)
79003: 
79004: 
79005:   case ext/phar in
79006:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
79007:   /*) ac_srcdir=`echo "ext/phar"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
79008:   *) ac_srcdir="$abs_srcdir/ext/phar/"; ac_bdir="ext/phar/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
79009:   esac
79010: 
79011: 
79012: 
79013:   b_c_pre=$php_c_pre
79014:   b_cxx_pre=$php_cxx_pre
79015:   b_c_meta=$php_c_meta
79016:   b_cxx_meta=$php_cxx_meta
79017:   b_c_post=$php_c_post
79018:   b_cxx_post=$php_cxx_post
79019:   b_lo=$php_lo
79020: 
79021: 
79022:   old_IFS=$IFS
79023:   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
79024: 
79025:       IFS=.
79026:       set $ac_src
79027:       ac_obj=$1
79028:       IFS=$old_IFS
79029: 
79030:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
79031: 
79032:       case $ac_src in
79033:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
79034:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
79035:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
79036:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
79037:       esac
79038: 
79039:     cat >>Makefile.objects<<EOF
79040: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
79041: 	$ac_comp
79042: EOF
79043:   done
79044: 
79045: 
79046:         EXT_STATIC="$EXT_STATIC phar"
79047:         ;;
79048:       *)
79049: 
79050: 
79051:   case ext/phar in
79052:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
79053:   /*) ac_srcdir=`echo "ext/phar"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
79054:   *) ac_srcdir="$abs_srcdir/ext/phar/"; ac_bdir="ext/phar/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
79055:   esac
79056: 
79057: 
79058: 
79059:   b_c_pre=$php_c_pre
79060:   b_cxx_pre=$php_cxx_pre
79061:   b_c_meta=$php_c_meta
79062:   b_cxx_meta=$php_cxx_meta
79063:   b_c_post=$php_c_post
79064:   b_cxx_post=$php_cxx_post
79065:   b_lo=$php_lo
79066: 
79067: 
79068:   old_IFS=$IFS
79069:   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
79070: 
79071:       IFS=.
79072:       set $ac_src
79073:       ac_obj=$1
79074:       IFS=$old_IFS
79075: 
79076:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
79077: 
79078:       case $ac_src in
79079:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
79080:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
79081:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
79082:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
79083:       esac
79084: 
79085:     cat >>Makefile.objects<<EOF
79086: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
79087: 	$ac_comp
79088: EOF
79089:   done
79090: 
79091: 
79092:         ;;
79093:     esac
79094:     EXT_CLI_STATIC="$EXT_CLI_STATIC phar"
79095:   fi
79096: 
79097: 
79098:     BUILD_DIR="$BUILD_DIR $ext_builddir"
79099: 
79100: 
79101: 
79102:   if test "$ext_builddir" = "."; then
79103:     PHP_PECL_EXTENSION=phar
79104: 
79105:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
79106: 
79107:   fi
79108: 
79109:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for phar openssl support" >&5
79110: $as_echo_n "checking for phar openssl support... " >&6; }
79111:   if test "$PHP_HASH_SHARED" != "yes"; then
79112:     if test "$PHP_HASH" != "no"; then
79113: 
79114: $as_echo "#define PHAR_HASH_OK 1" >>confdefs.h
79115: 
79116:     fi
79117:   else
79118:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Phar: sha256/sha512 signature support disabled if ext/hash is built shared" >&5
79119: $as_echo "$as_me: WARNING: Phar: sha256/sha512 signature support disabled if ext/hash is built shared" >&2;}
79120:   fi
79121:   if test "$PHP_OPENSSL_SHARED" = "yes"; then
79122:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (shared openssl)" >&5
79123: $as_echo "no (shared openssl)" >&6; }
79124:   else
79125:     if test "$PHP_OPENSSL" = "yes"; then
79126:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
79127: $as_echo "yes" >&6; }
79128: 
79129: $as_echo "#define PHAR_HAVE_OPENSSL 1" >>confdefs.h
79130: 
79131:     else
79132:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
79133: $as_echo "no" >&6; }
79134:     fi
79135:   fi
79136: 
79137:   am_i_shared=$PHP_PHAR_SHARED
79138:   is_it_shared=$PHP_HASH_SHARED
79139:   is_it_enabled=$PHP_HASH
79140:   if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
79141:     as_fn_error $? "
79142: You've configured extension phar to build statically, but it
79143: depends on extension hash, which you've configured to build shared.
79144: You either need to build phar shared or build hash statically for the
79145: build to be successful.
79146: " "$LINENO" 5
79147:   fi
79148:   if test "x$is_it_enabled" = "xno" && test "xtrue" != "xtrue"; then
79149:     as_fn_error $? "
79150: You've configured extension phar, which depends on extension hash,
79151: but you've either not enabled hash, or have disabled it.
79152: " "$LINENO" 5
79153:   fi
79154: 
79155: 
79156:   am_i_shared=$PHP_PHAR_SHARED
79157:   is_it_shared=$PHP_SPL_SHARED
79158:   is_it_enabled=$PHP_SPL
79159:   if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
79160:     as_fn_error $? "
79161: You've configured extension phar to build statically, but it
79162: depends on extension spl, which you've configured to build shared.
79163: You either need to build phar shared or build spl statically for the
79164: build to be successful.
79165: " "$LINENO" 5
79166:   fi
79167:   if test "x$is_it_enabled" = "xno" && test "xtrue" != "xtrue"; then
79168:     as_fn_error $? "
79169: You've configured extension phar, which depends on extension spl,
79170: but you've either not enabled spl, or have disabled it.
79171: " "$LINENO" 5
79172:   fi
79173: 
79174: 
79175:   src=$ext_srcdir/Makefile.frag
79176:   ac_srcdir=$ext_srcdir
79177:   ac_builddir=$ext_builddir
79178:   test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src  >> Makefile.fragments
79179: 
79180: 
79181: 
79182:   PHP_OUTPUT_FILES="$PHP_OUTPUT_FILES ext/phar/phar.1 ext/phar/phar.phar.1"
79183: 
79184: fi
79185: 
79186: 
79187: 
79188: php_enable_posix=yes
79189: 
79190: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable POSIX-like functions" >&5
79191: $as_echo_n "checking whether to enable POSIX-like functions... " >&6; }
79192: # Check whether --enable-posix was given.
79193: if test "${enable_posix+set}" = set; then :
79194:   enableval=$enable_posix; PHP_POSIX=$enableval
79195: else
79196: 
79197:   PHP_POSIX=yes
79198:   test "$PHP_ENABLE_ALL" && PHP_POSIX=$PHP_ENABLE_ALL
79199: 
79200: fi
79201: 
79202: 
79203: 
79204: ext_output="yes, shared"
79205: ext_shared=yes
79206: case $PHP_POSIX in
79207: shared,*)
79208:   PHP_POSIX=`echo "$PHP_POSIX"|$SED 's/^shared,//'`
79209:   ;;
79210: shared)
79211:   PHP_POSIX=yes
79212:   ;;
79213: no)
79214:   ext_output=no
79215:   ext_shared=no
79216:   ;;
79217: *)
79218:   ext_output=yes
79219:   ext_shared=no
79220:   ;;
79221: esac
79222: 
79223: 
79224: 
79225: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
79226: $as_echo "$ext_output" >&6; }
79227: 
79228: 
79229: 
79230: 
79231: if test "$PHP_POSIX" = "yes"; then
79232: 
79233: $as_echo "#define HAVE_POSIX 1" >>confdefs.h
79234: 
79235: 
79236:   ext_builddir=ext/posix
79237:   ext_srcdir=$abs_srcdir/ext/posix
79238: 
79239:   ac_extra=
79240: 
79241:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
79242:     PHP_POSIX_SHARED=no
79243: 
79244: 
79245:   case ext/posix in
79246:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
79247:   /*) ac_srcdir=`echo "ext/posix"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
79248:   *) ac_srcdir="$abs_srcdir/ext/posix/"; ac_bdir="ext/posix/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
79249:   esac
79250: 
79251: 
79252: 
79253:   b_c_pre=$php_c_pre
79254:   b_cxx_pre=$php_cxx_pre
79255:   b_c_meta=$php_c_meta
79256:   b_cxx_meta=$php_cxx_meta
79257:   b_c_post=$php_c_post
79258:   b_cxx_post=$php_cxx_post
79259:   b_lo=$php_lo
79260: 
79261: 
79262:   old_IFS=$IFS
79263:   for ac_src in posix.c; do
79264: 
79265:       IFS=.
79266:       set $ac_src
79267:       ac_obj=$1
79268:       IFS=$old_IFS
79269: 
79270:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
79271: 
79272:       case $ac_src in
79273:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
79274:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
79275:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
79276:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
79277:       esac
79278: 
79279:     cat >>Makefile.objects<<EOF
79280: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
79281: 	$ac_comp
79282: EOF
79283:   done
79284: 
79285: 
79286:     EXT_STATIC="$EXT_STATIC posix"
79287:     if test "$ext_shared" != "nocli"; then
79288:       EXT_CLI_STATIC="$EXT_CLI_STATIC posix"
79289:     fi
79290:   else
79291:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
79292:       PHP_POSIX_SHARED=yes
79293: 
79294:   case ext/posix in
79295:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
79296:   /*) ac_srcdir=`echo "ext/posix"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
79297:   *) ac_srcdir="$abs_srcdir/ext/posix/"; ac_bdir="ext/posix/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
79298:   esac
79299: 
79300: 
79301: 
79302:   b_c_pre=$shared_c_pre
79303:   b_cxx_pre=$shared_cxx_pre
79304:   b_c_meta=$shared_c_meta
79305:   b_cxx_meta=$shared_cxx_meta
79306:   b_c_post=$shared_c_post
79307:   b_cxx_post=$shared_cxx_post
79308:   b_lo=$shared_lo
79309: 
79310: 
79311:   old_IFS=$IFS
79312:   for ac_src in posix.c; do
79313: 
79314:       IFS=.
79315:       set $ac_src
79316:       ac_obj=$1
79317:       IFS=$old_IFS
79318: 
79319:       shared_objects_posix="$shared_objects_posix $ac_bdir$ac_obj.lo"
79320: 
79321:       case $ac_src in
79322:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
79323:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
79324:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
79325:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
79326:       esac
79327: 
79328:     cat >>Makefile.objects<<EOF
79329: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
79330: 	$ac_comp
79331: EOF
79332:   done
79333: 
79334:       case $host_alias in
79335:         *netware*)
79336: 
79337:   install_modules="install-modules"
79338: 
79339:   case $host_alias in
79340:     *aix*)
79341:       suffix=so
79342:       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'
79343:       ;;
79344:     *netware*)
79345:       suffix=nlm
79346:       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)'
79347:       ;;
79348:     *)
79349:       suffix=la
79350:       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)'
79351:       ;;
79352:   esac
79353: 
79354:   if test "x" = "xyes"; then
79355:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpposix.$suffix"
79356:   else
79357:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpposix.$suffix"
79358:   fi
79359: 
79360:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_posix"
79361: 
79362:   cat >>Makefile.objects<<EOF
79363: \$(phplibdir)/phpposix.$suffix: $ext_builddir/phpposix.$suffix
79364: 	\$(LIBTOOL) --mode=install cp $ext_builddir/phpposix.$suffix \$(phplibdir)
79365: 
79366: $ext_builddir/phpposix.$suffix: \$(shared_objects_posix) \$(PHPPOSIX_SHARED_DEPENDENCIES)
79367: 	$link_cmd
79368: 
79369: EOF
79370: 
79371:           ;;
79372:         *)
79373: 
79374:   install_modules="install-modules"
79375: 
79376:   case $host_alias in
79377:     *aix*)
79378:       suffix=so
79379:       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'
79380:       ;;
79381:     *netware*)
79382:       suffix=nlm
79383:       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)'
79384:       ;;
79385:     *)
79386:       suffix=la
79387:       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)'
79388:       ;;
79389:   esac
79390: 
79391:   if test "x" = "xyes"; then
79392:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/posix.$suffix"
79393:   else
79394:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/posix.$suffix"
79395:   fi
79396: 
79397:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_posix"
79398: 
79399:   cat >>Makefile.objects<<EOF
79400: \$(phplibdir)/posix.$suffix: $ext_builddir/posix.$suffix
79401: 	\$(LIBTOOL) --mode=install cp $ext_builddir/posix.$suffix \$(phplibdir)
79402: 
79403: $ext_builddir/posix.$suffix: \$(shared_objects_posix) \$(POSIX_SHARED_DEPENDENCIES)
79404: 	$link_cmd
79405: 
79406: EOF
79407: 
79408:           ;;
79409:       esac
79410: 
79411: cat >>confdefs.h <<_ACEOF
79412: #define COMPILE_DL_POSIX 1
79413: _ACEOF
79414: 
79415:     fi
79416:   fi
79417: 
79418:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
79419:     PHP_POSIX_SHARED=no
79420:     case "$PHP_SAPI" in
79421:       cgi|embed)
79422: 
79423: 
79424:   case ext/posix in
79425:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
79426:   /*) ac_srcdir=`echo "ext/posix"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
79427:   *) ac_srcdir="$abs_srcdir/ext/posix/"; ac_bdir="ext/posix/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
79428:   esac
79429: 
79430: 
79431: 
79432:   b_c_pre=$php_c_pre
79433:   b_cxx_pre=$php_cxx_pre
79434:   b_c_meta=$php_c_meta
79435:   b_cxx_meta=$php_cxx_meta
79436:   b_c_post=$php_c_post
79437:   b_cxx_post=$php_cxx_post
79438:   b_lo=$php_lo
79439: 
79440: 
79441:   old_IFS=$IFS
79442:   for ac_src in posix.c; do
79443: 
79444:       IFS=.
79445:       set $ac_src
79446:       ac_obj=$1
79447:       IFS=$old_IFS
79448: 
79449:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
79450: 
79451:       case $ac_src in
79452:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
79453:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
79454:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
79455:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
79456:       esac
79457: 
79458:     cat >>Makefile.objects<<EOF
79459: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
79460: 	$ac_comp
79461: EOF
79462:   done
79463: 
79464: 
79465:         EXT_STATIC="$EXT_STATIC posix"
79466:         ;;
79467:       *)
79468: 
79469: 
79470:   case ext/posix in
79471:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
79472:   /*) ac_srcdir=`echo "ext/posix"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
79473:   *) ac_srcdir="$abs_srcdir/ext/posix/"; ac_bdir="ext/posix/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
79474:   esac
79475: 
79476: 
79477: 
79478:   b_c_pre=$php_c_pre
79479:   b_cxx_pre=$php_cxx_pre
79480:   b_c_meta=$php_c_meta
79481:   b_cxx_meta=$php_cxx_meta
79482:   b_c_post=$php_c_post
79483:   b_cxx_post=$php_cxx_post
79484:   b_lo=$php_lo
79485: 
79486: 
79487:   old_IFS=$IFS
79488:   for ac_src in posix.c; do
79489: 
79490:       IFS=.
79491:       set $ac_src
79492:       ac_obj=$1
79493:       IFS=$old_IFS
79494: 
79495:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
79496: 
79497:       case $ac_src in
79498:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
79499:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
79500:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
79501:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
79502:       esac
79503: 
79504:     cat >>Makefile.objects<<EOF
79505: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
79506: 	$ac_comp
79507: EOF
79508:   done
79509: 
79510: 
79511:         ;;
79512:     esac
79513:     EXT_CLI_STATIC="$EXT_CLI_STATIC posix"
79514:   fi
79515: 
79516: 
79517:     BUILD_DIR="$BUILD_DIR $ext_builddir"
79518: 
79519: 
79520: 
79521:   if test "$ext_builddir" = "."; then
79522:     PHP_PECL_EXTENSION=posix
79523: 
79524:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
79525: 
79526:   fi
79527: 
79528: 
79529:   for ac_header in sys/mkdev.h
79530: do :
79531:   ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
79532: if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
79533:   cat >>confdefs.h <<_ACEOF
79534: #define HAVE_SYS_MKDEV_H 1
79535: _ACEOF
79536: 
79537: fi
79538: 
79539: done
79540: 
79541: 
79542:   for ac_func in seteuid setegid setsid getsid setpgid getpgid ctermid mkfifo mknod getrlimit getlogin getgroups makedev initgroups getpwuid_r getgrgid_r
79543: do :
79544:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
79545: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
79546: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
79547:   cat >>confdefs.h <<_ACEOF
79548: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
79549: _ACEOF
79550: 
79551: fi
79552: done
79553: 
79554: 
79555:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working ttyname_r() implementation" >&5
79556: $as_echo_n "checking for working ttyname_r() implementation... " >&6; }
79557:   if test "$cross_compiling" = yes; then :
79558: 
79559:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, cannot detect working ttyname_r() when cross compiling. posix_ttyname() will be thread-unsafe" >&5
79560: $as_echo "no, cannot detect working ttyname_r() when cross compiling. posix_ttyname() will be thread-unsafe" >&6; }
79561: 
79562: else
79563:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
79564: /* end confdefs.h.  */
79565: 
79566: #include <unistd.h>
79567: 
79568: int main(int argc, char *argv[])
79569: {
79570: 	char buf[64];
79571: 
79572: 	return ttyname_r(0, buf, 64) ? 1 : 0;
79573: }
79574: 
79575: _ACEOF
79576: if ac_fn_c_try_run "$LINENO"; then :
79577: 
79578:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
79579: $as_echo "yes" >&6; }
79580: 
79581: $as_echo "#define HAVE_TTYNAME_R 1" >>confdefs.h
79582: 
79583: 
79584: else
79585: 
79586:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, posix_ttyname() will be thread-unsafe" >&5
79587: $as_echo "no, posix_ttyname() will be thread-unsafe" >&6; }
79588: 
79589: fi
79590: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
79591:   conftest.$ac_objext conftest.beam conftest.$ac_ext
79592: fi
79593: 
79594: 
79595:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utsname.domainname" >&5
79596: $as_echo_n "checking for utsname.domainname... " >&6; }
79597: if ${ac_cv_have_utsname_domainname+:} false; then :
79598:   $as_echo_n "(cached) " >&6
79599: else
79600: 
79601:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
79602: /* end confdefs.h.  */
79603: 
79604:       #define _GNU_SOURCE
79605:       #include <sys/utsname.h>
79606: 
79607: int
79608: main ()
79609: {
79610: 
79611:       return sizeof(((struct utsname *)0)->domainname);
79612: 
79613:   ;
79614:   return 0;
79615: }
79616: _ACEOF
79617: if ac_fn_c_try_compile "$LINENO"; then :
79618: 
79619:       ac_cv_have_utsname_domainname=yes
79620: 
79621: else
79622: 
79623:       ac_cv_have_utsname_domainname=no
79624: 
79625: fi
79626: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
79627: 
79628: fi
79629: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_utsname_domainname" >&5
79630: $as_echo "$ac_cv_have_utsname_domainname" >&6; }
79631:   if test "$ac_cv_have_utsname_domainname" = yes; then
79632: 
79633: $as_echo "#define HAVE_UTSNAME_DOMAINNAME 1" >>confdefs.h
79634: 
79635:   fi
79636: fi
79637: 
79638: 
79639: 
79640: php_with_pspell=no
79641: 
79642: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PSPELL support" >&5
79643: $as_echo_n "checking for PSPELL support... " >&6; }
79644: 
79645: # Check whether --with-pspell was given.
79646: if test "${with_pspell+set}" = set; then :
79647:   withval=$with_pspell; PHP_PSPELL=$withval
79648: else
79649: 
79650:   PHP_PSPELL=no
79651:   test "$PHP_ENABLE_ALL" && PHP_PSPELL=$PHP_ENABLE_ALL
79652: 
79653: fi
79654: 
79655: 
79656: 
79657: ext_output="yes, shared"
79658: ext_shared=yes
79659: case $PHP_PSPELL in
79660: shared,*)
79661:   PHP_PSPELL=`echo "$PHP_PSPELL"|$SED 's/^shared,//'`
79662:   ;;
79663: shared)
79664:   PHP_PSPELL=yes
79665:   ;;
79666: no)
79667:   ext_output=no
79668:   ext_shared=no
79669:   ;;
79670: *)
79671:   ext_output=yes
79672:   ext_shared=no
79673:   ;;
79674: esac
79675: 
79676: 
79677: 
79678: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
79679: $as_echo "$ext_output" >&6; }
79680: 
79681: 
79682: 
79683: 
79684: if test "$PHP_PSPELL" != "no"; then
79685: 
79686:   ext_builddir=ext/pspell
79687:   ext_srcdir=$abs_srcdir/ext/pspell
79688: 
79689:   ac_extra=
79690: 
79691:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
79692:     PHP_PSPELL_SHARED=no
79693: 
79694: 
79695:   case ext/pspell in
79696:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
79697:   /*) ac_srcdir=`echo "ext/pspell"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
79698:   *) ac_srcdir="$abs_srcdir/ext/pspell/"; ac_bdir="ext/pspell/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
79699:   esac
79700: 
79701: 
79702: 
79703:   b_c_pre=$php_c_pre
79704:   b_cxx_pre=$php_cxx_pre
79705:   b_c_meta=$php_c_meta
79706:   b_cxx_meta=$php_cxx_meta
79707:   b_c_post=$php_c_post
79708:   b_cxx_post=$php_cxx_post
79709:   b_lo=$php_lo
79710: 
79711: 
79712:   old_IFS=$IFS
79713:   for ac_src in pspell.c; do
79714: 
79715:       IFS=.
79716:       set $ac_src
79717:       ac_obj=$1
79718:       IFS=$old_IFS
79719: 
79720:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
79721: 
79722:       case $ac_src in
79723:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
79724:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
79725:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
79726:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
79727:       esac
79728: 
79729:     cat >>Makefile.objects<<EOF
79730: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
79731: 	$ac_comp
79732: EOF
79733:   done
79734: 
79735: 
79736:     EXT_STATIC="$EXT_STATIC pspell"
79737:     if test "$ext_shared" != "nocli"; then
79738:       EXT_CLI_STATIC="$EXT_CLI_STATIC pspell"
79739:     fi
79740:   else
79741:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
79742:       PHP_PSPELL_SHARED=yes
79743: 
79744:   case ext/pspell in
79745:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
79746:   /*) ac_srcdir=`echo "ext/pspell"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
79747:   *) ac_srcdir="$abs_srcdir/ext/pspell/"; ac_bdir="ext/pspell/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
79748:   esac
79749: 
79750: 
79751: 
79752:   b_c_pre=$shared_c_pre
79753:   b_cxx_pre=$shared_cxx_pre
79754:   b_c_meta=$shared_c_meta
79755:   b_cxx_meta=$shared_cxx_meta
79756:   b_c_post=$shared_c_post
79757:   b_cxx_post=$shared_cxx_post
79758:   b_lo=$shared_lo
79759: 
79760: 
79761:   old_IFS=$IFS
79762:   for ac_src in pspell.c; do
79763: 
79764:       IFS=.
79765:       set $ac_src
79766:       ac_obj=$1
79767:       IFS=$old_IFS
79768: 
79769:       shared_objects_pspell="$shared_objects_pspell $ac_bdir$ac_obj.lo"
79770: 
79771:       case $ac_src in
79772:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
79773:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
79774:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
79775:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
79776:       esac
79777: 
79778:     cat >>Makefile.objects<<EOF
79779: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
79780: 	$ac_comp
79781: EOF
79782:   done
79783: 
79784:       case $host_alias in
79785:         *netware*)
79786: 
79787:   install_modules="install-modules"
79788: 
79789:   case $host_alias in
79790:     *aix*)
79791:       suffix=so
79792:       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'
79793:       ;;
79794:     *netware*)
79795:       suffix=nlm
79796:       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)'
79797:       ;;
79798:     *)
79799:       suffix=la
79800:       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)'
79801:       ;;
79802:   esac
79803: 
79804:   if test "x" = "xyes"; then
79805:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phppspell.$suffix"
79806:   else
79807:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phppspell.$suffix"
79808:   fi
79809: 
79810:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pspell"
79811: 
79812:   cat >>Makefile.objects<<EOF
79813: \$(phplibdir)/phppspell.$suffix: $ext_builddir/phppspell.$suffix
79814: 	\$(LIBTOOL) --mode=install cp $ext_builddir/phppspell.$suffix \$(phplibdir)
79815: 
79816: $ext_builddir/phppspell.$suffix: \$(shared_objects_pspell) \$(PHPPSPELL_SHARED_DEPENDENCIES)
79817: 	$link_cmd
79818: 
79819: EOF
79820: 
79821:           ;;
79822:         *)
79823: 
79824:   install_modules="install-modules"
79825: 
79826:   case $host_alias in
79827:     *aix*)
79828:       suffix=so
79829:       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'
79830:       ;;
79831:     *netware*)
79832:       suffix=nlm
79833:       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)'
79834:       ;;
79835:     *)
79836:       suffix=la
79837:       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)'
79838:       ;;
79839:   esac
79840: 
79841:   if test "x" = "xyes"; then
79842:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/pspell.$suffix"
79843:   else
79844:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/pspell.$suffix"
79845:   fi
79846: 
79847:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pspell"
79848: 
79849:   cat >>Makefile.objects<<EOF
79850: \$(phplibdir)/pspell.$suffix: $ext_builddir/pspell.$suffix
79851: 	\$(LIBTOOL) --mode=install cp $ext_builddir/pspell.$suffix \$(phplibdir)
79852: 
79853: $ext_builddir/pspell.$suffix: \$(shared_objects_pspell) \$(PSPELL_SHARED_DEPENDENCIES)
79854: 	$link_cmd
79855: 
79856: EOF
79857: 
79858:           ;;
79859:       esac
79860: 
79861: cat >>confdefs.h <<_ACEOF
79862: #define COMPILE_DL_PSPELL 1
79863: _ACEOF
79864: 
79865:     fi
79866:   fi
79867: 
79868:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
79869:     PHP_PSPELL_SHARED=no
79870:     case "$PHP_SAPI" in
79871:       cgi|embed)
79872: 
79873: 
79874:   case ext/pspell in
79875:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
79876:   /*) ac_srcdir=`echo "ext/pspell"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
79877:   *) ac_srcdir="$abs_srcdir/ext/pspell/"; ac_bdir="ext/pspell/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
79878:   esac
79879: 
79880: 
79881: 
79882:   b_c_pre=$php_c_pre
79883:   b_cxx_pre=$php_cxx_pre
79884:   b_c_meta=$php_c_meta
79885:   b_cxx_meta=$php_cxx_meta
79886:   b_c_post=$php_c_post
79887:   b_cxx_post=$php_cxx_post
79888:   b_lo=$php_lo
79889: 
79890: 
79891:   old_IFS=$IFS
79892:   for ac_src in pspell.c; do
79893: 
79894:       IFS=.
79895:       set $ac_src
79896:       ac_obj=$1
79897:       IFS=$old_IFS
79898: 
79899:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
79900: 
79901:       case $ac_src in
79902:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
79903:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
79904:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
79905:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
79906:       esac
79907: 
79908:     cat >>Makefile.objects<<EOF
79909: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
79910: 	$ac_comp
79911: EOF
79912:   done
79913: 
79914: 
79915:         EXT_STATIC="$EXT_STATIC pspell"
79916:         ;;
79917:       *)
79918: 
79919: 
79920:   case ext/pspell in
79921:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
79922:   /*) ac_srcdir=`echo "ext/pspell"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
79923:   *) ac_srcdir="$abs_srcdir/ext/pspell/"; ac_bdir="ext/pspell/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
79924:   esac
79925: 
79926: 
79927: 
79928:   b_c_pre=$php_c_pre
79929:   b_cxx_pre=$php_cxx_pre
79930:   b_c_meta=$php_c_meta
79931:   b_cxx_meta=$php_cxx_meta
79932:   b_c_post=$php_c_post
79933:   b_cxx_post=$php_cxx_post
79934:   b_lo=$php_lo
79935: 
79936: 
79937:   old_IFS=$IFS
79938:   for ac_src in pspell.c; do
79939: 
79940:       IFS=.
79941:       set $ac_src
79942:       ac_obj=$1
79943:       IFS=$old_IFS
79944: 
79945:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
79946: 
79947:       case $ac_src in
79948:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
79949:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
79950:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
79951:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
79952:       esac
79953: 
79954:     cat >>Makefile.objects<<EOF
79955: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
79956: 	$ac_comp
79957: EOF
79958:   done
79959: 
79960: 
79961:         ;;
79962:     esac
79963:     EXT_CLI_STATIC="$EXT_CLI_STATIC pspell"
79964:   fi
79965: 
79966: 
79967:     BUILD_DIR="$BUILD_DIR $ext_builddir"
79968: 
79969: 
79970: 
79971:   if test "$ext_builddir" = "."; then
79972:     PHP_PECL_EXTENSION=pspell
79973: 
79974:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
79975: 
79976:   fi
79977: 
79978: 	if test "$PHP_PSPELL" != "yes"; then
79979: 	    PSPELL_SEARCH_DIRS=$PHP_PSPELL
79980: 	else
79981: 	    PSPELL_SEARCH_DIRS="/usr/local /usr"
79982: 	fi
79983: 	for i in $PSPELL_SEARCH_DIRS; do
79984: 		if test -f $i/include/pspell/pspell.h; then
79985: 			PSPELL_DIR=$i
79986: 			PSPELL_INCDIR=$i/include/pspell
79987: 		elif test -f $i/include/pspell.h; then
79988: 			PSPELL_DIR=$i
79989: 			PSPELL_INCDIR=$i/include
79990: 		fi
79991: 	done
79992: 
79993: 	if test -z "$PSPELL_DIR"; then
79994: 		as_fn_error $? "Cannot find pspell" "$LINENO" 5
79995: 	fi
79996: 
79997: 	PSPELL_LIBDIR=$PSPELL_DIR/$PHP_LIBDIR
79998: 
79999: 
80000: 
80001:   if test "$ext_shared" = "yes"; then
80002:     PSPELL_SHARED_LIBADD="-lpspell $PSPELL_SHARED_LIBADD"
80003:     if test -n "$PSPELL_LIBDIR"; then
80004: 
80005:   if test "$PSPELL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PSPELL_LIBDIR" != "/usr/lib"; then
80006: 
80007:   if test -z "$PSPELL_LIBDIR" || echo "$PSPELL_LIBDIR" | grep '^/' >/dev/null ; then
80008:     ai_p=$PSPELL_LIBDIR
80009:   else
80010: 
80011:     ep_dir=`echo $PSPELL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
80012: 
80013:     ep_realdir=`(cd "$ep_dir" && pwd)`
80014:     ai_p="$ep_realdir"/`basename "$PSPELL_LIBDIR"`
80015:   fi
80016: 
80017: 
80018:       if test "$ext_shared" = "yes"; then
80019:         PSPELL_SHARED_LIBADD="-L$ai_p $PSPELL_SHARED_LIBADD"
80020:         test -n "$ld_runpath_switch" && PSPELL_SHARED_LIBADD="$ld_runpath_switch$ai_p $PSPELL_SHARED_LIBADD"
80021:       else
80022: 
80023: 
80024: 
80025:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
80026: 
80027:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
80028:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
80029:     eval "LIBPATH$unique=set"
80030: 
80031:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
80032:     LDFLAGS="$LDFLAGS -L$ai_p"
80033:     PHP_RPATHS="$PHP_RPATHS $ai_p"
80034: 
80035:   fi
80036: 
80037: 
80038:       fi
80039: 
80040:   fi
80041: 
80042:     fi
80043:   else
80044: 
80045: 
80046:   if test -n "$PSPELL_LIBDIR"; then
80047: 
80048:   if test "$PSPELL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PSPELL_LIBDIR" != "/usr/lib"; then
80049: 
80050:   if test -z "$PSPELL_LIBDIR" || echo "$PSPELL_LIBDIR" | grep '^/' >/dev/null ; then
80051:     ai_p=$PSPELL_LIBDIR
80052:   else
80053: 
80054:     ep_dir=`echo $PSPELL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
80055: 
80056:     ep_realdir=`(cd "$ep_dir" && pwd)`
80057:     ai_p="$ep_realdir"/`basename "$PSPELL_LIBDIR"`
80058:   fi
80059: 
80060: 
80061: 
80062: 
80063: 
80064:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
80065: 
80066:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
80067:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
80068:     eval "LIBPATH$unique=set"
80069: 
80070:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
80071:     LDFLAGS="$LDFLAGS -L$ai_p"
80072:     PHP_RPATHS="$PHP_RPATHS $ai_p"
80073: 
80074:   fi
80075: 
80076: 
80077: 
80078:   fi
80079: 
80080:   fi
80081: 
80082: 
80083:   case pspell in
80084:   c|c_r|pthread*) ;;
80085:   *)
80086:       LIBS="-lpspell $LIBS"
80087:    ;;
80088:   esac
80089: 
80090: 
80091: 
80092: 
80093:   fi
80094: 
80095: 
80096: 
80097: 
80098:   save_old_LDFLAGS=$LDFLAGS
80099:   ac_stuff="
80100: 		-L$PSPELL_LIBDIR
80101: 	"
80102: 
80103:   save_ext_shared=$ext_shared
80104:   ext_shared=yes
80105: 
80106:   for ac_i in $ac_stuff; do
80107:     case $ac_i in
80108:     -pthread)
80109:       if test "$ext_shared" = "yes"; then
80110:         LDFLAGS="$LDFLAGS -pthread"
80111:       else
80112: 
80113: 
80114:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
80115: 
80116:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
80117:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
80118:     eval "EXTRA_LDFLAGS$unique=set"
80119:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
80120:   fi
80121: 
80122:       fi
80123:     ;;
80124:     -l*)
80125:       ac_ii=`echo $ac_i|cut -c 3-`
80126: 
80127: 
80128:   case $ac_ii in
80129:   c|c_r|pthread*) ;;
80130:   *)
80131:     if test "$ext_shared" = "yes"; then
80132:         LDFLAGS="$LDFLAGS -l$ac_ii"
80133:     else
80134: 
80135: 
80136:   case $ac_ii in
80137:   c|c_r|pthread*) ;;
80138:   *)
80139:       LIBS="$LIBS -l$ac_ii"
80140:    ;;
80141:   esac
80142: 
80143: 
80144:     fi
80145:    ;;
80146:   esac
80147: 
80148: 
80149:     ;;
80150:     -L*)
80151:       ac_ii=`echo $ac_i|cut -c 3-`
80152: 
80153:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
80154: 
80155:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
80156:     ai_p=$ac_ii
80157:   else
80158: 
80159:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
80160: 
80161:     ep_realdir=`(cd "$ep_dir" && pwd)`
80162:     ai_p="$ep_realdir"/`basename "$ac_ii"`
80163:   fi
80164: 
80165: 
80166:       if test "$ext_shared" = "yes"; then
80167:         LDFLAGS="-L$ai_p $LDFLAGS"
80168:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
80169:       else
80170: 
80171: 
80172: 
80173:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
80174: 
80175:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
80176:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
80177:     eval "LIBPATH$unique=set"
80178: 
80179:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
80180:     LDFLAGS="$LDFLAGS -L$ai_p"
80181:     PHP_RPATHS="$PHP_RPATHS $ai_p"
80182: 
80183:   fi
80184: 
80185: 
80186:       fi
80187: 
80188:   fi
80189: 
80190:     ;;
80191:     esac
80192:   done
80193: 
80194:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new_aspell_config in -laspell" >&5
80195: $as_echo_n "checking for new_aspell_config in -laspell... " >&6; }
80196: if ${ac_cv_lib_aspell_new_aspell_config+:} false; then :
80197:   $as_echo_n "(cached) " >&6
80198: else
80199:   ac_check_lib_save_LIBS=$LIBS
80200: LIBS="-laspell  $LIBS"
80201: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
80202: /* end confdefs.h.  */
80203: 
80204: /* Override any GCC internal prototype to avoid an error.
80205:    Use char because int might match the return type of a GCC
80206:    builtin and then its argument prototype would still apply.  */
80207: #ifdef __cplusplus
80208: extern "C"
80209: #endif
80210: char new_aspell_config ();
80211: int
80212: main ()
80213: {
80214: return new_aspell_config ();
80215:   ;
80216:   return 0;
80217: }
80218: _ACEOF
80219: if ac_fn_c_try_link "$LINENO"; then :
80220:   ac_cv_lib_aspell_new_aspell_config=yes
80221: else
80222:   ac_cv_lib_aspell_new_aspell_config=no
80223: fi
80224: rm -f core conftest.err conftest.$ac_objext \
80225:     conftest$ac_exeext conftest.$ac_ext
80226: LIBS=$ac_check_lib_save_LIBS
80227: fi
80228: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_aspell_new_aspell_config" >&5
80229: $as_echo "$ac_cv_lib_aspell_new_aspell_config" >&6; }
80230: if test "x$ac_cv_lib_aspell_new_aspell_config" = xyes; then :
80231: 
80232:     LDFLAGS=$save_old_LDFLAGS
80233:     ext_shared=$save_ext_shared
80234: 
80235: 
80236: 
80237:   if test "$ext_shared" = "yes"; then
80238:     PSPELL_SHARED_LIBADD="-laspell $PSPELL_SHARED_LIBADD"
80239:     if test -n "$PSPELL_LIBDIR"; then
80240: 
80241:   if test "$PSPELL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PSPELL_LIBDIR" != "/usr/lib"; then
80242: 
80243:   if test -z "$PSPELL_LIBDIR" || echo "$PSPELL_LIBDIR" | grep '^/' >/dev/null ; then
80244:     ai_p=$PSPELL_LIBDIR
80245:   else
80246: 
80247:     ep_dir=`echo $PSPELL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
80248: 
80249:     ep_realdir=`(cd "$ep_dir" && pwd)`
80250:     ai_p="$ep_realdir"/`basename "$PSPELL_LIBDIR"`
80251:   fi
80252: 
80253: 
80254:       if test "$ext_shared" = "yes"; then
80255:         PSPELL_SHARED_LIBADD="-L$ai_p $PSPELL_SHARED_LIBADD"
80256:         test -n "$ld_runpath_switch" && PSPELL_SHARED_LIBADD="$ld_runpath_switch$ai_p $PSPELL_SHARED_LIBADD"
80257:       else
80258: 
80259: 
80260: 
80261:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
80262: 
80263:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
80264:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
80265:     eval "LIBPATH$unique=set"
80266: 
80267:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
80268:     LDFLAGS="$LDFLAGS -L$ai_p"
80269:     PHP_RPATHS="$PHP_RPATHS $ai_p"
80270: 
80271:   fi
80272: 
80273: 
80274:       fi
80275: 
80276:   fi
80277: 
80278:     fi
80279:   else
80280: 
80281: 
80282:   if test -n "$PSPELL_LIBDIR"; then
80283: 
80284:   if test "$PSPELL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PSPELL_LIBDIR" != "/usr/lib"; then
80285: 
80286:   if test -z "$PSPELL_LIBDIR" || echo "$PSPELL_LIBDIR" | grep '^/' >/dev/null ; then
80287:     ai_p=$PSPELL_LIBDIR
80288:   else
80289: 
80290:     ep_dir=`echo $PSPELL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
80291: 
80292:     ep_realdir=`(cd "$ep_dir" && pwd)`
80293:     ai_p="$ep_realdir"/`basename "$PSPELL_LIBDIR"`
80294:   fi
80295: 
80296: 
80297: 
80298: 
80299: 
80300:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
80301: 
80302:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
80303:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
80304:     eval "LIBPATH$unique=set"
80305: 
80306:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
80307:     LDFLAGS="$LDFLAGS -L$ai_p"
80308:     PHP_RPATHS="$PHP_RPATHS $ai_p"
80309: 
80310:   fi
80311: 
80312: 
80313: 
80314:   fi
80315: 
80316:   fi
80317: 
80318: 
80319:   case aspell in
80320:   c|c_r|pthread*) ;;
80321:   *)
80322:       LIBS="-laspell $LIBS"
80323:    ;;
80324:   esac
80325: 
80326: 
80327: 
80328: 
80329:   fi
80330: 
80331: 
80332: 
80333: 
80334: else
80335: 
80336:     LDFLAGS=$save_old_LDFLAGS
80337:     ext_shared=$save_ext_shared
80338:     unset ac_cv_lib_aspell_new_aspell_config
80339: 
80340: 
80341: fi
80342: 
80343: 
80344: 
80345:   if test "$PSPELL_INCDIR" != "/usr/include"; then
80346: 
80347:   if test -z "$PSPELL_INCDIR" || echo "$PSPELL_INCDIR" | grep '^/' >/dev/null ; then
80348:     ai_p=$PSPELL_INCDIR
80349:   else
80350: 
80351:     ep_dir=`echo $PSPELL_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`
80352: 
80353:     ep_realdir=`(cd "$ep_dir" && pwd)`
80354:     ai_p="$ep_realdir"/`basename "$PSPELL_INCDIR"`
80355:   fi
80356: 
80357: 
80358: 
80359:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
80360: 
80361:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
80362:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
80363:     eval "INCLUDEPATH$unique=set"
80364: 
80365:       if test ""; then
80366:         INCLUDES="-I$ai_p $INCLUDES"
80367:       else
80368:         INCLUDES="$INCLUDES -I$ai_p"
80369:       fi
80370: 
80371:   fi
80372: 
80373:   fi
80374: 
80375: 
80376:   PHP_VAR_SUBST="$PHP_VAR_SUBST PSPELL_SHARED_LIBADD"
80377: 
80378: 
80379: $as_echo "#define HAVE_PSPELL 1" >>confdefs.h
80380: 
80381: fi
80382: 
80383: 
80384: 
80385: php_with_libedit=no
80386: 
80387: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libedit readline replacement" >&5
80388: $as_echo_n "checking for libedit readline replacement... " >&6; }
80389: 
80390: # Check whether --with-libedit was given.
80391: if test "${with_libedit+set}" = set; then :
80392:   withval=$with_libedit; PHP_LIBEDIT=$withval
80393: else
80394: 
80395:   PHP_LIBEDIT=no
80396:   test "$PHP_ENABLE_ALL" && PHP_LIBEDIT=$PHP_ENABLE_ALL
80397: 
80398: fi
80399: 
80400: 
80401: 
80402: ext_output="yes, shared"
80403: ext_shared=yes
80404: case $PHP_LIBEDIT in
80405: shared,*)
80406:   PHP_LIBEDIT=`echo "$PHP_LIBEDIT"|$SED 's/^shared,//'`
80407:   ;;
80408: shared)
80409:   PHP_LIBEDIT=yes
80410:   ;;
80411: no)
80412:   ext_output=no
80413:   ext_shared=no
80414:   ;;
80415: *)
80416:   ext_output=yes
80417:   ext_shared=no
80418:   ;;
80419: esac
80420: 
80421: 
80422: 
80423: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
80424: $as_echo "$ext_output" >&6; }
80425: 
80426: 
80427: 
80428: 
80429: if test "$PHP_LIBEDIT" = "no"; then
80430: 
80431: php_with_readline=no
80432: 
80433: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline support" >&5
80434: $as_echo_n "checking for readline support... " >&6; }
80435: 
80436: # Check whether --with-readline was given.
80437: if test "${with_readline+set}" = set; then :
80438:   withval=$with_readline; PHP_READLINE=$withval
80439: else
80440: 
80441:   PHP_READLINE=no
80442:   test "$PHP_ENABLE_ALL" && PHP_READLINE=$PHP_ENABLE_ALL
80443: 
80444: fi
80445: 
80446: 
80447: 
80448: ext_output="yes, shared"
80449: ext_shared=yes
80450: case $PHP_READLINE in
80451: shared,*)
80452:   PHP_READLINE=`echo "$PHP_READLINE"|$SED 's/^shared,//'`
80453:   ;;
80454: shared)
80455:   PHP_READLINE=yes
80456:   ;;
80457: no)
80458:   ext_output=no
80459:   ext_shared=no
80460:   ;;
80461: *)
80462:   ext_output=yes
80463:   ext_shared=no
80464:   ;;
80465: esac
80466: 
80467: 
80468: 
80469: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
80470: $as_echo "$ext_output" >&6; }
80471: 
80472: 
80473: 
80474: else
80475:     php_with_readline=no
80476: fi
80477: 
80478: if test "$PHP_READLINE" && test "$PHP_READLINE" != "no"; then
80479:   for i in $PHP_READLINE /usr/local /usr; do
80480:     test -f $i/include/readline/readline.h && READLINE_DIR=$i && break
80481:   done
80482: 
80483:   if test -z "$READLINE_DIR"; then
80484:     as_fn_error $? "Please reinstall readline - I cannot find readline.h" "$LINENO" 5
80485:   fi
80486: 
80487: 
80488:   if test "$READLINE_DIR/include" != "/usr/include"; then
80489: 
80490:   if test -z "$READLINE_DIR/include" || echo "$READLINE_DIR/include" | grep '^/' >/dev/null ; then
80491:     ai_p=$READLINE_DIR/include
80492:   else
80493: 
80494:     ep_dir=`echo $READLINE_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`
80495: 
80496:     ep_realdir=`(cd "$ep_dir" && pwd)`
80497:     ai_p="$ep_realdir"/`basename "$READLINE_DIR/include"`
80498:   fi
80499: 
80500: 
80501: 
80502:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
80503: 
80504:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
80505:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
80506:     eval "INCLUDEPATH$unique=set"
80507: 
80508:       if test ""; then
80509:         INCLUDES="-I$ai_p $INCLUDES"
80510:       else
80511:         INCLUDES="$INCLUDES -I$ai_p"
80512:       fi
80513: 
80514:   fi
80515: 
80516:   fi
80517: 
80518: 
80519:   PHP_READLINE_LIBS=""
80520:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
80521: $as_echo_n "checking for tgetent in -lncurses... " >&6; }
80522: if ${ac_cv_lib_ncurses_tgetent+:} false; then :
80523:   $as_echo_n "(cached) " >&6
80524: else
80525:   ac_check_lib_save_LIBS=$LIBS
80526: LIBS="-lncurses  $LIBS"
80527: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
80528: /* end confdefs.h.  */
80529: 
80530: /* Override any GCC internal prototype to avoid an error.
80531:    Use char because int might match the return type of a GCC
80532:    builtin and then its argument prototype would still apply.  */
80533: #ifdef __cplusplus
80534: extern "C"
80535: #endif
80536: char tgetent ();
80537: int
80538: main ()
80539: {
80540: return tgetent ();
80541:   ;
80542:   return 0;
80543: }
80544: _ACEOF
80545: if ac_fn_c_try_link "$LINENO"; then :
80546:   ac_cv_lib_ncurses_tgetent=yes
80547: else
80548:   ac_cv_lib_ncurses_tgetent=no
80549: fi
80550: rm -f core conftest.err conftest.$ac_objext \
80551:     conftest$ac_exeext conftest.$ac_ext
80552: LIBS=$ac_check_lib_save_LIBS
80553: fi
80554: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
80555: $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
80556: if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then :
80557: 
80558: 
80559: 
80560:   case ncurses in
80561:   c|c_r|pthread*) ;;
80562:   *)
80563:     if test "$ext_shared" = "yes"; then
80564:         READLINE_SHARED_LIBADD="-lncurses $READLINE_SHARED_LIBADD"
80565:     else
80566: 
80567: 
80568:   case ncurses in
80569:   c|c_r|pthread*) ;;
80570:   *)
80571:       LIBS="-lncurses $LIBS"
80572:    ;;
80573:   esac
80574: 
80575: 
80576:     fi
80577:    ;;
80578:   esac
80579: 
80580: 
80581:     PHP_READLINE_LIBS="$PHP_READLINE_LIBS -lncurses"
80582: 
80583: else
80584: 
80585:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
80586: $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
80587: if ${ac_cv_lib_termcap_tgetent+:} false; then :
80588:   $as_echo_n "(cached) " >&6
80589: else
80590:   ac_check_lib_save_LIBS=$LIBS
80591: LIBS="-ltermcap  $LIBS"
80592: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
80593: /* end confdefs.h.  */
80594: 
80595: /* Override any GCC internal prototype to avoid an error.
80596:    Use char because int might match the return type of a GCC
80597:    builtin and then its argument prototype would still apply.  */
80598: #ifdef __cplusplus
80599: extern "C"
80600: #endif
80601: char tgetent ();
80602: int
80603: main ()
80604: {
80605: return tgetent ();
80606:   ;
80607:   return 0;
80608: }
80609: _ACEOF
80610: if ac_fn_c_try_link "$LINENO"; then :
80611:   ac_cv_lib_termcap_tgetent=yes
80612: else
80613:   ac_cv_lib_termcap_tgetent=no
80614: fi
80615: rm -f core conftest.err conftest.$ac_objext \
80616:     conftest$ac_exeext conftest.$ac_ext
80617: LIBS=$ac_check_lib_save_LIBS
80618: fi
80619: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
80620: $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
80621: if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
80622: 
80623: 
80624: 
80625:   case termcap in
80626:   c|c_r|pthread*) ;;
80627:   *)
80628:     if test "$ext_shared" = "yes"; then
80629:         READLINE_SHARED_LIBADD="-ltermcap $READLINE_SHARED_LIBADD"
80630:     else
80631: 
80632: 
80633:   case termcap in
80634:   c|c_r|pthread*) ;;
80635:   *)
80636:       LIBS="-ltermcap $LIBS"
80637:    ;;
80638:   esac
80639: 
80640: 
80641:     fi
80642:    ;;
80643:   esac
80644: 
80645: 
80646:       PHP_READLINE_LIBS="$PHP_READLINE_LIBS -ltermcap"
80647: 
80648: fi
80649: 
80650: 
80651: fi
80652: 
80653: 
80654: 
80655:   save_old_LDFLAGS=$LDFLAGS
80656:   ac_stuff="
80657:     -L$READLINE_DIR/$PHP_LIBDIR $PHP_READLINE_LIBS
80658:   "
80659: 
80660:   save_ext_shared=$ext_shared
80661:   ext_shared=yes
80662: 
80663:   for ac_i in $ac_stuff; do
80664:     case $ac_i in
80665:     -pthread)
80666:       if test "$ext_shared" = "yes"; then
80667:         LDFLAGS="$LDFLAGS -pthread"
80668:       else
80669: 
80670: 
80671:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
80672: 
80673:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
80674:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
80675:     eval "EXTRA_LDFLAGS$unique=set"
80676:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
80677:   fi
80678: 
80679:       fi
80680:     ;;
80681:     -l*)
80682:       ac_ii=`echo $ac_i|cut -c 3-`
80683: 
80684: 
80685:   case $ac_ii in
80686:   c|c_r|pthread*) ;;
80687:   *)
80688:     if test "$ext_shared" = "yes"; then
80689:         LDFLAGS="$LDFLAGS -l$ac_ii"
80690:     else
80691: 
80692: 
80693:   case $ac_ii in
80694:   c|c_r|pthread*) ;;
80695:   *)
80696:       LIBS="$LIBS -l$ac_ii"
80697:    ;;
80698:   esac
80699: 
80700: 
80701:     fi
80702:    ;;
80703:   esac
80704: 
80705: 
80706:     ;;
80707:     -L*)
80708:       ac_ii=`echo $ac_i|cut -c 3-`
80709: 
80710:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
80711: 
80712:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
80713:     ai_p=$ac_ii
80714:   else
80715: 
80716:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
80717: 
80718:     ep_realdir=`(cd "$ep_dir" && pwd)`
80719:     ai_p="$ep_realdir"/`basename "$ac_ii"`
80720:   fi
80721: 
80722: 
80723:       if test "$ext_shared" = "yes"; then
80724:         LDFLAGS="-L$ai_p $LDFLAGS"
80725:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
80726:       else
80727: 
80728: 
80729: 
80730:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
80731: 
80732:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
80733:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
80734:     eval "LIBPATH$unique=set"
80735: 
80736:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
80737:     LDFLAGS="$LDFLAGS -L$ai_p"
80738:     PHP_RPATHS="$PHP_RPATHS $ai_p"
80739: 
80740:   fi
80741: 
80742: 
80743:       fi
80744: 
80745:   fi
80746: 
80747:     ;;
80748:     esac
80749:   done
80750: 
80751:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
80752: $as_echo_n "checking for readline in -lreadline... " >&6; }
80753: if ${ac_cv_lib_readline_readline+:} false; then :
80754:   $as_echo_n "(cached) " >&6
80755: else
80756:   ac_check_lib_save_LIBS=$LIBS
80757: LIBS="-lreadline  $LIBS"
80758: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
80759: /* end confdefs.h.  */
80760: 
80761: /* Override any GCC internal prototype to avoid an error.
80762:    Use char because int might match the return type of a GCC
80763:    builtin and then its argument prototype would still apply.  */
80764: #ifdef __cplusplus
80765: extern "C"
80766: #endif
80767: char readline ();
80768: int
80769: main ()
80770: {
80771: return readline ();
80772:   ;
80773:   return 0;
80774: }
80775: _ACEOF
80776: if ac_fn_c_try_link "$LINENO"; then :
80777:   ac_cv_lib_readline_readline=yes
80778: else
80779:   ac_cv_lib_readline_readline=no
80780: fi
80781: rm -f core conftest.err conftest.$ac_objext \
80782:     conftest$ac_exeext conftest.$ac_ext
80783: LIBS=$ac_check_lib_save_LIBS
80784: fi
80785: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
80786: $as_echo "$ac_cv_lib_readline_readline" >&6; }
80787: if test "x$ac_cv_lib_readline_readline" = xyes; then :
80788: 
80789:     LDFLAGS=$save_old_LDFLAGS
80790:     ext_shared=$save_ext_shared
80791: 
80792: 
80793: 
80794:   if test "$ext_shared" = "yes"; then
80795:     READLINE_SHARED_LIBADD="-lreadline $READLINE_SHARED_LIBADD"
80796:     if test -n "$READLINE_DIR/$PHP_LIBDIR"; then
80797: 
80798:   if test "$READLINE_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$READLINE_DIR/$PHP_LIBDIR" != "/usr/lib"; then
80799: 
80800:   if test -z "$READLINE_DIR/$PHP_LIBDIR" || echo "$READLINE_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
80801:     ai_p=$READLINE_DIR/$PHP_LIBDIR
80802:   else
80803: 
80804:     ep_dir=`echo $READLINE_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
80805: 
80806:     ep_realdir=`(cd "$ep_dir" && pwd)`
80807:     ai_p="$ep_realdir"/`basename "$READLINE_DIR/$PHP_LIBDIR"`
80808:   fi
80809: 
80810: 
80811:       if test "$ext_shared" = "yes"; then
80812:         READLINE_SHARED_LIBADD="-L$ai_p $READLINE_SHARED_LIBADD"
80813:         test -n "$ld_runpath_switch" && READLINE_SHARED_LIBADD="$ld_runpath_switch$ai_p $READLINE_SHARED_LIBADD"
80814:       else
80815: 
80816: 
80817: 
80818:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
80819: 
80820:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
80821:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
80822:     eval "LIBPATH$unique=set"
80823: 
80824:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
80825:     LDFLAGS="$LDFLAGS -L$ai_p"
80826:     PHP_RPATHS="$PHP_RPATHS $ai_p"
80827: 
80828:   fi
80829: 
80830: 
80831:       fi
80832: 
80833:   fi
80834: 
80835:     fi
80836:   else
80837: 
80838: 
80839:   if test -n "$READLINE_DIR/$PHP_LIBDIR"; then
80840: 
80841:   if test "$READLINE_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$READLINE_DIR/$PHP_LIBDIR" != "/usr/lib"; then
80842: 
80843:   if test -z "$READLINE_DIR/$PHP_LIBDIR" || echo "$READLINE_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
80844:     ai_p=$READLINE_DIR/$PHP_LIBDIR
80845:   else
80846: 
80847:     ep_dir=`echo $READLINE_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
80848: 
80849:     ep_realdir=`(cd "$ep_dir" && pwd)`
80850:     ai_p="$ep_realdir"/`basename "$READLINE_DIR/$PHP_LIBDIR"`
80851:   fi
80852: 
80853: 
80854: 
80855: 
80856: 
80857:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
80858: 
80859:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
80860:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
80861:     eval "LIBPATH$unique=set"
80862: 
80863:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
80864:     LDFLAGS="$LDFLAGS -L$ai_p"
80865:     PHP_RPATHS="$PHP_RPATHS $ai_p"
80866: 
80867:   fi
80868: 
80869: 
80870: 
80871:   fi
80872: 
80873:   fi
80874: 
80875: 
80876:   case readline in
80877:   c|c_r|pthread*) ;;
80878:   *)
80879:       LIBS="-lreadline $LIBS"
80880:    ;;
80881:   esac
80882: 
80883: 
80884: 
80885: 
80886:   fi
80887: 
80888: 
80889: 
80890: 
80891: else
80892: 
80893:     LDFLAGS=$save_old_LDFLAGS
80894:     ext_shared=$save_ext_shared
80895:     unset ac_cv_lib_readline_readline
80896: 
80897:     as_fn_error $? "readline library not found" "$LINENO" 5
80898: 
80899: 
80900: fi
80901: 
80902: 
80903: 
80904:   save_old_LDFLAGS=$LDFLAGS
80905:   ac_stuff="
80906:     -L$READLINE_DIR/$PHP_LIBDIR $PHP_READLINE_LIBS
80907:   "
80908: 
80909:   save_ext_shared=$ext_shared
80910:   ext_shared=yes
80911: 
80912:   for ac_i in $ac_stuff; do
80913:     case $ac_i in
80914:     -pthread)
80915:       if test "$ext_shared" = "yes"; then
80916:         LDFLAGS="$LDFLAGS -pthread"
80917:       else
80918: 
80919: 
80920:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
80921: 
80922:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
80923:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
80924:     eval "EXTRA_LDFLAGS$unique=set"
80925:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
80926:   fi
80927: 
80928:       fi
80929:     ;;
80930:     -l*)
80931:       ac_ii=`echo $ac_i|cut -c 3-`
80932: 
80933: 
80934:   case $ac_ii in
80935:   c|c_r|pthread*) ;;
80936:   *)
80937:     if test "$ext_shared" = "yes"; then
80938:         LDFLAGS="$LDFLAGS -l$ac_ii"
80939:     else
80940: 
80941: 
80942:   case $ac_ii in
80943:   c|c_r|pthread*) ;;
80944:   *)
80945:       LIBS="$LIBS -l$ac_ii"
80946:    ;;
80947:   esac
80948: 
80949: 
80950:     fi
80951:    ;;
80952:   esac
80953: 
80954: 
80955:     ;;
80956:     -L*)
80957:       ac_ii=`echo $ac_i|cut -c 3-`
80958: 
80959:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
80960: 
80961:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
80962:     ai_p=$ac_ii
80963:   else
80964: 
80965:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
80966: 
80967:     ep_realdir=`(cd "$ep_dir" && pwd)`
80968:     ai_p="$ep_realdir"/`basename "$ac_ii"`
80969:   fi
80970: 
80971: 
80972:       if test "$ext_shared" = "yes"; then
80973:         LDFLAGS="-L$ai_p $LDFLAGS"
80974:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
80975:       else
80976: 
80977: 
80978: 
80979:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
80980: 
80981:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
80982:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
80983:     eval "LIBPATH$unique=set"
80984: 
80985:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
80986:     LDFLAGS="$LDFLAGS -L$ai_p"
80987:     PHP_RPATHS="$PHP_RPATHS $ai_p"
80988: 
80989:   fi
80990: 
80991: 
80992:       fi
80993: 
80994:   fi
80995: 
80996:     ;;
80997:     esac
80998:   done
80999: 
81000:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_pending_input in -lreadline" >&5
81001: $as_echo_n "checking for rl_pending_input in -lreadline... " >&6; }
81002: if ${ac_cv_lib_readline_rl_pending_input+:} false; then :
81003:   $as_echo_n "(cached) " >&6
81004: else
81005:   ac_check_lib_save_LIBS=$LIBS
81006: LIBS="-lreadline  $LIBS"
81007: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
81008: /* end confdefs.h.  */
81009: 
81010: /* Override any GCC internal prototype to avoid an error.
81011:    Use char because int might match the return type of a GCC
81012:    builtin and then its argument prototype would still apply.  */
81013: #ifdef __cplusplus
81014: extern "C"
81015: #endif
81016: char rl_pending_input ();
81017: int
81018: main ()
81019: {
81020: return rl_pending_input ();
81021:   ;
81022:   return 0;
81023: }
81024: _ACEOF
81025: if ac_fn_c_try_link "$LINENO"; then :
81026:   ac_cv_lib_readline_rl_pending_input=yes
81027: else
81028:   ac_cv_lib_readline_rl_pending_input=no
81029: fi
81030: rm -f core conftest.err conftest.$ac_objext \
81031:     conftest$ac_exeext conftest.$ac_ext
81032: LIBS=$ac_check_lib_save_LIBS
81033: fi
81034: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_pending_input" >&5
81035: $as_echo "$ac_cv_lib_readline_rl_pending_input" >&6; }
81036: if test "x$ac_cv_lib_readline_rl_pending_input" = xyes; then :
81037: 
81038:     LDFLAGS=$save_old_LDFLAGS
81039:     ext_shared=$save_ext_shared
81040: 
81041: 
81042: else
81043: 
81044:     LDFLAGS=$save_old_LDFLAGS
81045:     ext_shared=$save_ext_shared
81046:     unset ac_cv_lib_readline_rl_pending_input
81047: 
81048:     as_fn_error $? "invalid readline installation detected. Try --with-libedit instead." "$LINENO" 5
81049: 
81050: 
81051: fi
81052: 
81053: 
81054: 
81055:   save_old_LDFLAGS=$LDFLAGS
81056:   ac_stuff="
81057:     -L$READLINE_DIR/$PHP_LIBDIR $PHP_READLINE_LIBS
81058:   "
81059: 
81060:   save_ext_shared=$ext_shared
81061:   ext_shared=yes
81062: 
81063:   for ac_i in $ac_stuff; do
81064:     case $ac_i in
81065:     -pthread)
81066:       if test "$ext_shared" = "yes"; then
81067:         LDFLAGS="$LDFLAGS -pthread"
81068:       else
81069: 
81070: 
81071:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
81072: 
81073:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
81074:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
81075:     eval "EXTRA_LDFLAGS$unique=set"
81076:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
81077:   fi
81078: 
81079:       fi
81080:     ;;
81081:     -l*)
81082:       ac_ii=`echo $ac_i|cut -c 3-`
81083: 
81084: 
81085:   case $ac_ii in
81086:   c|c_r|pthread*) ;;
81087:   *)
81088:     if test "$ext_shared" = "yes"; then
81089:         LDFLAGS="$LDFLAGS -l$ac_ii"
81090:     else
81091: 
81092: 
81093:   case $ac_ii in
81094:   c|c_r|pthread*) ;;
81095:   *)
81096:       LIBS="$LIBS -l$ac_ii"
81097:    ;;
81098:   esac
81099: 
81100: 
81101:     fi
81102:    ;;
81103:   esac
81104: 
81105: 
81106:     ;;
81107:     -L*)
81108:       ac_ii=`echo $ac_i|cut -c 3-`
81109: 
81110:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
81111: 
81112:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
81113:     ai_p=$ac_ii
81114:   else
81115: 
81116:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
81117: 
81118:     ep_realdir=`(cd "$ep_dir" && pwd)`
81119:     ai_p="$ep_realdir"/`basename "$ac_ii"`
81120:   fi
81121: 
81122: 
81123:       if test "$ext_shared" = "yes"; then
81124:         LDFLAGS="-L$ai_p $LDFLAGS"
81125:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
81126:       else
81127: 
81128: 
81129: 
81130:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
81131: 
81132:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
81133:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
81134:     eval "LIBPATH$unique=set"
81135: 
81136:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
81137:     LDFLAGS="$LDFLAGS -L$ai_p"
81138:     PHP_RPATHS="$PHP_RPATHS $ai_p"
81139: 
81140:   fi
81141: 
81142: 
81143:       fi
81144: 
81145:   fi
81146: 
81147:     ;;
81148:     esac
81149:   done
81150: 
81151:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_callback_read_char in -lreadline" >&5
81152: $as_echo_n "checking for rl_callback_read_char in -lreadline... " >&6; }
81153: if ${ac_cv_lib_readline_rl_callback_read_char+:} false; then :
81154:   $as_echo_n "(cached) " >&6
81155: else
81156:   ac_check_lib_save_LIBS=$LIBS
81157: LIBS="-lreadline  $LIBS"
81158: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
81159: /* end confdefs.h.  */
81160: 
81161: /* Override any GCC internal prototype to avoid an error.
81162:    Use char because int might match the return type of a GCC
81163:    builtin and then its argument prototype would still apply.  */
81164: #ifdef __cplusplus
81165: extern "C"
81166: #endif
81167: char rl_callback_read_char ();
81168: int
81169: main ()
81170: {
81171: return rl_callback_read_char ();
81172:   ;
81173:   return 0;
81174: }
81175: _ACEOF
81176: if ac_fn_c_try_link "$LINENO"; then :
81177:   ac_cv_lib_readline_rl_callback_read_char=yes
81178: else
81179:   ac_cv_lib_readline_rl_callback_read_char=no
81180: fi
81181: rm -f core conftest.err conftest.$ac_objext \
81182:     conftest$ac_exeext conftest.$ac_ext
81183: LIBS=$ac_check_lib_save_LIBS
81184: fi
81185: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_callback_read_char" >&5
81186: $as_echo "$ac_cv_lib_readline_rl_callback_read_char" >&6; }
81187: if test "x$ac_cv_lib_readline_rl_callback_read_char" = xyes; then :
81188: 
81189:     LDFLAGS=$save_old_LDFLAGS
81190:     ext_shared=$save_ext_shared
81191: 
81192: 
81193: $as_echo "#define HAVE_RL_CALLBACK_READ_CHAR 1" >>confdefs.h
81194: 
81195: 
81196: 
81197: else
81198: 
81199:     LDFLAGS=$save_old_LDFLAGS
81200:     ext_shared=$save_ext_shared
81201:     unset ac_cv_lib_readline_rl_callback_read_char
81202: 
81203: 
81204: fi
81205: 
81206: 
81207: 
81208:   save_old_LDFLAGS=$LDFLAGS
81209:   ac_stuff="
81210:     -L$READLINE_DIR/$PHP_LIBDIR $PHP_READLINE_LIBS
81211:   "
81212: 
81213:   save_ext_shared=$ext_shared
81214:   ext_shared=yes
81215: 
81216:   for ac_i in $ac_stuff; do
81217:     case $ac_i in
81218:     -pthread)
81219:       if test "$ext_shared" = "yes"; then
81220:         LDFLAGS="$LDFLAGS -pthread"
81221:       else
81222: 
81223: 
81224:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
81225: 
81226:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
81227:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
81228:     eval "EXTRA_LDFLAGS$unique=set"
81229:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
81230:   fi
81231: 
81232:       fi
81233:     ;;
81234:     -l*)
81235:       ac_ii=`echo $ac_i|cut -c 3-`
81236: 
81237: 
81238:   case $ac_ii in
81239:   c|c_r|pthread*) ;;
81240:   *)
81241:     if test "$ext_shared" = "yes"; then
81242:         LDFLAGS="$LDFLAGS -l$ac_ii"
81243:     else
81244: 
81245: 
81246:   case $ac_ii in
81247:   c|c_r|pthread*) ;;
81248:   *)
81249:       LIBS="$LIBS -l$ac_ii"
81250:    ;;
81251:   esac
81252: 
81253: 
81254:     fi
81255:    ;;
81256:   esac
81257: 
81258: 
81259:     ;;
81260:     -L*)
81261:       ac_ii=`echo $ac_i|cut -c 3-`
81262: 
81263:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
81264: 
81265:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
81266:     ai_p=$ac_ii
81267:   else
81268: 
81269:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
81270: 
81271:     ep_realdir=`(cd "$ep_dir" && pwd)`
81272:     ai_p="$ep_realdir"/`basename "$ac_ii"`
81273:   fi
81274: 
81275: 
81276:       if test "$ext_shared" = "yes"; then
81277:         LDFLAGS="-L$ai_p $LDFLAGS"
81278:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
81279:       else
81280: 
81281: 
81282: 
81283:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
81284: 
81285:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
81286:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
81287:     eval "LIBPATH$unique=set"
81288: 
81289:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
81290:     LDFLAGS="$LDFLAGS -L$ai_p"
81291:     PHP_RPATHS="$PHP_RPATHS $ai_p"
81292: 
81293:   fi
81294: 
81295: 
81296:       fi
81297: 
81298:   fi
81299: 
81300:     ;;
81301:     esac
81302:   done
81303: 
81304:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_on_new_line in -ledit" >&5
81305: $as_echo_n "checking for rl_on_new_line in -ledit... " >&6; }
81306: if ${ac_cv_lib_edit_rl_on_new_line+:} false; then :
81307:   $as_echo_n "(cached) " >&6
81308: else
81309:   ac_check_lib_save_LIBS=$LIBS
81310: LIBS="-ledit  $LIBS"
81311: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
81312: /* end confdefs.h.  */
81313: 
81314: /* Override any GCC internal prototype to avoid an error.
81315:    Use char because int might match the return type of a GCC
81316:    builtin and then its argument prototype would still apply.  */
81317: #ifdef __cplusplus
81318: extern "C"
81319: #endif
81320: char rl_on_new_line ();
81321: int
81322: main ()
81323: {
81324: return rl_on_new_line ();
81325:   ;
81326:   return 0;
81327: }
81328: _ACEOF
81329: if ac_fn_c_try_link "$LINENO"; then :
81330:   ac_cv_lib_edit_rl_on_new_line=yes
81331: else
81332:   ac_cv_lib_edit_rl_on_new_line=no
81333: fi
81334: rm -f core conftest.err conftest.$ac_objext \
81335:     conftest$ac_exeext conftest.$ac_ext
81336: LIBS=$ac_check_lib_save_LIBS
81337: fi
81338: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_rl_on_new_line" >&5
81339: $as_echo "$ac_cv_lib_edit_rl_on_new_line" >&6; }
81340: if test "x$ac_cv_lib_edit_rl_on_new_line" = xyes; then :
81341: 
81342:     LDFLAGS=$save_old_LDFLAGS
81343:     ext_shared=$save_ext_shared
81344: 
81345: 
81346: $as_echo "#define HAVE_RL_ON_NEW_LINE 1" >>confdefs.h
81347: 
81348: 
81349: 
81350: else
81351: 
81352:     LDFLAGS=$save_old_LDFLAGS
81353:     ext_shared=$save_ext_shared
81354:     unset ac_cv_lib_edit_rl_on_new_line
81355: 
81356: 
81357: fi
81358: 
81359: 
81360: 
81361: $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
81362: 
81363: 
81364: elif test "$PHP_LIBEDIT" != "no"; then
81365: 
81366:   for i in $PHP_LIBEDIT /usr/local /usr; do
81367:     test -f $i/include/editline/readline.h && LIBEDIT_DIR=$i && break
81368:   done
81369: 
81370:   if test -z "$LIBEDIT_DIR"; then
81371:     as_fn_error $? "Please reinstall libedit - I cannot find readline.h" "$LINENO" 5
81372:   fi
81373: 
81374: 
81375:   if test "$LIBEDIT_DIR/include" != "/usr/include"; then
81376: 
81377:   if test -z "$LIBEDIT_DIR/include" || echo "$LIBEDIT_DIR/include" | grep '^/' >/dev/null ; then
81378:     ai_p=$LIBEDIT_DIR/include
81379:   else
81380: 
81381:     ep_dir=`echo $LIBEDIT_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`
81382: 
81383:     ep_realdir=`(cd "$ep_dir" && pwd)`
81384:     ai_p="$ep_realdir"/`basename "$LIBEDIT_DIR/include"`
81385:   fi
81386: 
81387: 
81388: 
81389:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
81390: 
81391:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
81392:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
81393:     eval "INCLUDEPATH$unique=set"
81394: 
81395:       if test ""; then
81396:         INCLUDES="-I$ai_p $INCLUDES"
81397:       else
81398:         INCLUDES="$INCLUDES -I$ai_p"
81399:       fi
81400: 
81401:   fi
81402: 
81403:   fi
81404: 
81405: 
81406:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
81407: $as_echo_n "checking for tgetent in -lncurses... " >&6; }
81408: if ${ac_cv_lib_ncurses_tgetent+:} false; then :
81409:   $as_echo_n "(cached) " >&6
81410: else
81411:   ac_check_lib_save_LIBS=$LIBS
81412: LIBS="-lncurses  $LIBS"
81413: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
81414: /* end confdefs.h.  */
81415: 
81416: /* Override any GCC internal prototype to avoid an error.
81417:    Use char because int might match the return type of a GCC
81418:    builtin and then its argument prototype would still apply.  */
81419: #ifdef __cplusplus
81420: extern "C"
81421: #endif
81422: char tgetent ();
81423: int
81424: main ()
81425: {
81426: return tgetent ();
81427:   ;
81428:   return 0;
81429: }
81430: _ACEOF
81431: if ac_fn_c_try_link "$LINENO"; then :
81432:   ac_cv_lib_ncurses_tgetent=yes
81433: else
81434:   ac_cv_lib_ncurses_tgetent=no
81435: fi
81436: rm -f core conftest.err conftest.$ac_objext \
81437:     conftest$ac_exeext conftest.$ac_ext
81438: LIBS=$ac_check_lib_save_LIBS
81439: fi
81440: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
81441: $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
81442: if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then :
81443: 
81444: 
81445: 
81446:   case ncurses in
81447:   c|c_r|pthread*) ;;
81448:   *)
81449:     if test "$ext_shared" = "yes"; then
81450:         READLINE_SHARED_LIBADD="-lncurses $READLINE_SHARED_LIBADD"
81451:     else
81452: 
81453: 
81454:   case ncurses in
81455:   c|c_r|pthread*) ;;
81456:   *)
81457:       LIBS="-lncurses $LIBS"
81458:    ;;
81459:   esac
81460: 
81461: 
81462:     fi
81463:    ;;
81464:   esac
81465: 
81466: 
81467: 
81468: else
81469: 
81470:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
81471: $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
81472: if ${ac_cv_lib_termcap_tgetent+:} false; then :
81473:   $as_echo_n "(cached) " >&6
81474: else
81475:   ac_check_lib_save_LIBS=$LIBS
81476: LIBS="-ltermcap  $LIBS"
81477: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
81478: /* end confdefs.h.  */
81479: 
81480: /* Override any GCC internal prototype to avoid an error.
81481:    Use char because int might match the return type of a GCC
81482:    builtin and then its argument prototype would still apply.  */
81483: #ifdef __cplusplus
81484: extern "C"
81485: #endif
81486: char tgetent ();
81487: int
81488: main ()
81489: {
81490: return tgetent ();
81491:   ;
81492:   return 0;
81493: }
81494: _ACEOF
81495: if ac_fn_c_try_link "$LINENO"; then :
81496:   ac_cv_lib_termcap_tgetent=yes
81497: else
81498:   ac_cv_lib_termcap_tgetent=no
81499: fi
81500: rm -f core conftest.err conftest.$ac_objext \
81501:     conftest$ac_exeext conftest.$ac_ext
81502: LIBS=$ac_check_lib_save_LIBS
81503: fi
81504: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
81505: $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
81506: if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
81507: 
81508: 
81509: 
81510:   case termcap in
81511:   c|c_r|pthread*) ;;
81512:   *)
81513:     if test "$ext_shared" = "yes"; then
81514:         READLINE_SHARED_LIBADD="-ltermcap $READLINE_SHARED_LIBADD"
81515:     else
81516: 
81517: 
81518:   case termcap in
81519:   c|c_r|pthread*) ;;
81520:   *)
81521:       LIBS="-ltermcap $LIBS"
81522:    ;;
81523:   esac
81524: 
81525: 
81526:     fi
81527:    ;;
81528:   esac
81529: 
81530: 
81531: 
81532: fi
81533: 
81534: 
81535: fi
81536: 
81537: 
81538: 
81539:   save_old_LDFLAGS=$LDFLAGS
81540:   ac_stuff="
81541:     -L$READLINE_DIR/$PHP_LIBDIR
81542:   "
81543: 
81544:   save_ext_shared=$ext_shared
81545:   ext_shared=yes
81546: 
81547:   for ac_i in $ac_stuff; do
81548:     case $ac_i in
81549:     -pthread)
81550:       if test "$ext_shared" = "yes"; then
81551:         LDFLAGS="$LDFLAGS -pthread"
81552:       else
81553: 
81554: 
81555:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
81556: 
81557:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
81558:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
81559:     eval "EXTRA_LDFLAGS$unique=set"
81560:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
81561:   fi
81562: 
81563:       fi
81564:     ;;
81565:     -l*)
81566:       ac_ii=`echo $ac_i|cut -c 3-`
81567: 
81568: 
81569:   case $ac_ii in
81570:   c|c_r|pthread*) ;;
81571:   *)
81572:     if test "$ext_shared" = "yes"; then
81573:         LDFLAGS="$LDFLAGS -l$ac_ii"
81574:     else
81575: 
81576: 
81577:   case $ac_ii in
81578:   c|c_r|pthread*) ;;
81579:   *)
81580:       LIBS="$LIBS -l$ac_ii"
81581:    ;;
81582:   esac
81583: 
81584: 
81585:     fi
81586:    ;;
81587:   esac
81588: 
81589: 
81590:     ;;
81591:     -L*)
81592:       ac_ii=`echo $ac_i|cut -c 3-`
81593: 
81594:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
81595: 
81596:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
81597:     ai_p=$ac_ii
81598:   else
81599: 
81600:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
81601: 
81602:     ep_realdir=`(cd "$ep_dir" && pwd)`
81603:     ai_p="$ep_realdir"/`basename "$ac_ii"`
81604:   fi
81605: 
81606: 
81607:       if test "$ext_shared" = "yes"; then
81608:         LDFLAGS="-L$ai_p $LDFLAGS"
81609:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
81610:       else
81611: 
81612: 
81613: 
81614:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
81615: 
81616:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
81617:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
81618:     eval "LIBPATH$unique=set"
81619: 
81620:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
81621:     LDFLAGS="$LDFLAGS -L$ai_p"
81622:     PHP_RPATHS="$PHP_RPATHS $ai_p"
81623: 
81624:   fi
81625: 
81626: 
81627:       fi
81628: 
81629:   fi
81630: 
81631:     ;;
81632:     esac
81633:   done
81634: 
81635:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -ledit" >&5
81636: $as_echo_n "checking for readline in -ledit... " >&6; }
81637: if ${ac_cv_lib_edit_readline+:} false; then :
81638:   $as_echo_n "(cached) " >&6
81639: else
81640:   ac_check_lib_save_LIBS=$LIBS
81641: LIBS="-ledit  $LIBS"
81642: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
81643: /* end confdefs.h.  */
81644: 
81645: /* Override any GCC internal prototype to avoid an error.
81646:    Use char because int might match the return type of a GCC
81647:    builtin and then its argument prototype would still apply.  */
81648: #ifdef __cplusplus
81649: extern "C"
81650: #endif
81651: char readline ();
81652: int
81653: main ()
81654: {
81655: return readline ();
81656:   ;
81657:   return 0;
81658: }
81659: _ACEOF
81660: if ac_fn_c_try_link "$LINENO"; then :
81661:   ac_cv_lib_edit_readline=yes
81662: else
81663:   ac_cv_lib_edit_readline=no
81664: fi
81665: rm -f core conftest.err conftest.$ac_objext \
81666:     conftest$ac_exeext conftest.$ac_ext
81667: LIBS=$ac_check_lib_save_LIBS
81668: fi
81669: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_readline" >&5
81670: $as_echo "$ac_cv_lib_edit_readline" >&6; }
81671: if test "x$ac_cv_lib_edit_readline" = xyes; then :
81672: 
81673:     LDFLAGS=$save_old_LDFLAGS
81674:     ext_shared=$save_ext_shared
81675: 
81676: 
81677: 
81678:   if test "$ext_shared" = "yes"; then
81679:     READLINE_SHARED_LIBADD="-ledit $READLINE_SHARED_LIBADD"
81680:     if test -n "$LIBEDIT_DIR/$PHP_LIBDIR"; then
81681: 
81682:   if test "$LIBEDIT_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LIBEDIT_DIR/$PHP_LIBDIR" != "/usr/lib"; then
81683: 
81684:   if test -z "$LIBEDIT_DIR/$PHP_LIBDIR" || echo "$LIBEDIT_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
81685:     ai_p=$LIBEDIT_DIR/$PHP_LIBDIR
81686:   else
81687: 
81688:     ep_dir=`echo $LIBEDIT_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
81689: 
81690:     ep_realdir=`(cd "$ep_dir" && pwd)`
81691:     ai_p="$ep_realdir"/`basename "$LIBEDIT_DIR/$PHP_LIBDIR"`
81692:   fi
81693: 
81694: 
81695:       if test "$ext_shared" = "yes"; then
81696:         READLINE_SHARED_LIBADD="-L$ai_p $READLINE_SHARED_LIBADD"
81697:         test -n "$ld_runpath_switch" && READLINE_SHARED_LIBADD="$ld_runpath_switch$ai_p $READLINE_SHARED_LIBADD"
81698:       else
81699: 
81700: 
81701: 
81702:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
81703: 
81704:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
81705:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
81706:     eval "LIBPATH$unique=set"
81707: 
81708:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
81709:     LDFLAGS="$LDFLAGS -L$ai_p"
81710:     PHP_RPATHS="$PHP_RPATHS $ai_p"
81711: 
81712:   fi
81713: 
81714: 
81715:       fi
81716: 
81717:   fi
81718: 
81719:     fi
81720:   else
81721: 
81722: 
81723:   if test -n "$LIBEDIT_DIR/$PHP_LIBDIR"; then
81724: 
81725:   if test "$LIBEDIT_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LIBEDIT_DIR/$PHP_LIBDIR" != "/usr/lib"; then
81726: 
81727:   if test -z "$LIBEDIT_DIR/$PHP_LIBDIR" || echo "$LIBEDIT_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
81728:     ai_p=$LIBEDIT_DIR/$PHP_LIBDIR
81729:   else
81730: 
81731:     ep_dir=`echo $LIBEDIT_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
81732: 
81733:     ep_realdir=`(cd "$ep_dir" && pwd)`
81734:     ai_p="$ep_realdir"/`basename "$LIBEDIT_DIR/$PHP_LIBDIR"`
81735:   fi
81736: 
81737: 
81738: 
81739: 
81740: 
81741:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
81742: 
81743:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
81744:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
81745:     eval "LIBPATH$unique=set"
81746: 
81747:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
81748:     LDFLAGS="$LDFLAGS -L$ai_p"
81749:     PHP_RPATHS="$PHP_RPATHS $ai_p"
81750: 
81751:   fi
81752: 
81753: 
81754: 
81755:   fi
81756: 
81757:   fi
81758: 
81759: 
81760:   case edit in
81761:   c|c_r|pthread*) ;;
81762:   *)
81763:       LIBS="-ledit $LIBS"
81764:    ;;
81765:   esac
81766: 
81767: 
81768: 
81769: 
81770:   fi
81771: 
81772: 
81773: 
81774: 
81775: else
81776: 
81777:     LDFLAGS=$save_old_LDFLAGS
81778:     ext_shared=$save_ext_shared
81779:     unset ac_cv_lib_edit_readline
81780: 
81781:     as_fn_error $? "edit library required by readline not found" "$LINENO" 5
81782: 
81783: 
81784: fi
81785: 
81786: 
81787: 
81788:   save_old_LDFLAGS=$LDFLAGS
81789:   ac_stuff="
81790:     -L$READLINE_DIR/$PHP_LIBDIR
81791:   "
81792: 
81793:   save_ext_shared=$ext_shared
81794:   ext_shared=yes
81795: 
81796:   for ac_i in $ac_stuff; do
81797:     case $ac_i in
81798:     -pthread)
81799:       if test "$ext_shared" = "yes"; then
81800:         LDFLAGS="$LDFLAGS -pthread"
81801:       else
81802: 
81803: 
81804:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
81805: 
81806:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
81807:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
81808:     eval "EXTRA_LDFLAGS$unique=set"
81809:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
81810:   fi
81811: 
81812:       fi
81813:     ;;
81814:     -l*)
81815:       ac_ii=`echo $ac_i|cut -c 3-`
81816: 
81817: 
81818:   case $ac_ii in
81819:   c|c_r|pthread*) ;;
81820:   *)
81821:     if test "$ext_shared" = "yes"; then
81822:         LDFLAGS="$LDFLAGS -l$ac_ii"
81823:     else
81824: 
81825: 
81826:   case $ac_ii in
81827:   c|c_r|pthread*) ;;
81828:   *)
81829:       LIBS="$LIBS -l$ac_ii"
81830:    ;;
81831:   esac
81832: 
81833: 
81834:     fi
81835:    ;;
81836:   esac
81837: 
81838: 
81839:     ;;
81840:     -L*)
81841:       ac_ii=`echo $ac_i|cut -c 3-`
81842: 
81843:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
81844: 
81845:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
81846:     ai_p=$ac_ii
81847:   else
81848: 
81849:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
81850: 
81851:     ep_realdir=`(cd "$ep_dir" && pwd)`
81852:     ai_p="$ep_realdir"/`basename "$ac_ii"`
81853:   fi
81854: 
81855: 
81856:       if test "$ext_shared" = "yes"; then
81857:         LDFLAGS="-L$ai_p $LDFLAGS"
81858:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
81859:       else
81860: 
81861: 
81862: 
81863:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
81864: 
81865:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
81866:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
81867:     eval "LIBPATH$unique=set"
81868: 
81869:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
81870:     LDFLAGS="$LDFLAGS -L$ai_p"
81871:     PHP_RPATHS="$PHP_RPATHS $ai_p"
81872: 
81873:   fi
81874: 
81875: 
81876:       fi
81877: 
81878:   fi
81879: 
81880:     ;;
81881:     esac
81882:   done
81883: 
81884:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_callback_read_char in -ledit" >&5
81885: $as_echo_n "checking for rl_callback_read_char in -ledit... " >&6; }
81886: if ${ac_cv_lib_edit_rl_callback_read_char+:} false; then :
81887:   $as_echo_n "(cached) " >&6
81888: else
81889:   ac_check_lib_save_LIBS=$LIBS
81890: LIBS="-ledit  $LIBS"
81891: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
81892: /* end confdefs.h.  */
81893: 
81894: /* Override any GCC internal prototype to avoid an error.
81895:    Use char because int might match the return type of a GCC
81896:    builtin and then its argument prototype would still apply.  */
81897: #ifdef __cplusplus
81898: extern "C"
81899: #endif
81900: char rl_callback_read_char ();
81901: int
81902: main ()
81903: {
81904: return rl_callback_read_char ();
81905:   ;
81906:   return 0;
81907: }
81908: _ACEOF
81909: if ac_fn_c_try_link "$LINENO"; then :
81910:   ac_cv_lib_edit_rl_callback_read_char=yes
81911: else
81912:   ac_cv_lib_edit_rl_callback_read_char=no
81913: fi
81914: rm -f core conftest.err conftest.$ac_objext \
81915:     conftest$ac_exeext conftest.$ac_ext
81916: LIBS=$ac_check_lib_save_LIBS
81917: fi
81918: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_rl_callback_read_char" >&5
81919: $as_echo "$ac_cv_lib_edit_rl_callback_read_char" >&6; }
81920: if test "x$ac_cv_lib_edit_rl_callback_read_char" = xyes; then :
81921: 
81922:     LDFLAGS=$save_old_LDFLAGS
81923:     ext_shared=$save_ext_shared
81924: 
81925: 
81926: $as_echo "#define HAVE_RL_CALLBACK_READ_CHAR 1" >>confdefs.h
81927: 
81928: 
81929: 
81930: else
81931: 
81932:     LDFLAGS=$save_old_LDFLAGS
81933:     ext_shared=$save_ext_shared
81934:     unset ac_cv_lib_edit_rl_callback_read_char
81935: 
81936: 
81937: fi
81938: 
81939: 
81940: 
81941:   save_old_LDFLAGS=$LDFLAGS
81942:   ac_stuff="
81943:     -L$READLINE_DIR/$PHP_LIBDIR
81944:   "
81945: 
81946:   save_ext_shared=$ext_shared
81947:   ext_shared=yes
81948: 
81949:   for ac_i in $ac_stuff; do
81950:     case $ac_i in
81951:     -pthread)
81952:       if test "$ext_shared" = "yes"; then
81953:         LDFLAGS="$LDFLAGS -pthread"
81954:       else
81955: 
81956: 
81957:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
81958: 
81959:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
81960:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
81961:     eval "EXTRA_LDFLAGS$unique=set"
81962:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
81963:   fi
81964: 
81965:       fi
81966:     ;;
81967:     -l*)
81968:       ac_ii=`echo $ac_i|cut -c 3-`
81969: 
81970: 
81971:   case $ac_ii in
81972:   c|c_r|pthread*) ;;
81973:   *)
81974:     if test "$ext_shared" = "yes"; then
81975:         LDFLAGS="$LDFLAGS -l$ac_ii"
81976:     else
81977: 
81978: 
81979:   case $ac_ii in
81980:   c|c_r|pthread*) ;;
81981:   *)
81982:       LIBS="$LIBS -l$ac_ii"
81983:    ;;
81984:   esac
81985: 
81986: 
81987:     fi
81988:    ;;
81989:   esac
81990: 
81991: 
81992:     ;;
81993:     -L*)
81994:       ac_ii=`echo $ac_i|cut -c 3-`
81995: 
81996:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
81997: 
81998:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
81999:     ai_p=$ac_ii
82000:   else
82001: 
82002:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
82003: 
82004:     ep_realdir=`(cd "$ep_dir" && pwd)`
82005:     ai_p="$ep_realdir"/`basename "$ac_ii"`
82006:   fi
82007: 
82008: 
82009:       if test "$ext_shared" = "yes"; then
82010:         LDFLAGS="-L$ai_p $LDFLAGS"
82011:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
82012:       else
82013: 
82014: 
82015: 
82016:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
82017: 
82018:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
82019:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
82020:     eval "LIBPATH$unique=set"
82021: 
82022:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
82023:     LDFLAGS="$LDFLAGS -L$ai_p"
82024:     PHP_RPATHS="$PHP_RPATHS $ai_p"
82025: 
82026:   fi
82027: 
82028: 
82029:       fi
82030: 
82031:   fi
82032: 
82033:     ;;
82034:     esac
82035:   done
82036: 
82037:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_on_new_line in -ledit" >&5
82038: $as_echo_n "checking for rl_on_new_line in -ledit... " >&6; }
82039: if ${ac_cv_lib_edit_rl_on_new_line+:} false; then :
82040:   $as_echo_n "(cached) " >&6
82041: else
82042:   ac_check_lib_save_LIBS=$LIBS
82043: LIBS="-ledit  $LIBS"
82044: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
82045: /* end confdefs.h.  */
82046: 
82047: /* Override any GCC internal prototype to avoid an error.
82048:    Use char because int might match the return type of a GCC
82049:    builtin and then its argument prototype would still apply.  */
82050: #ifdef __cplusplus
82051: extern "C"
82052: #endif
82053: char rl_on_new_line ();
82054: int
82055: main ()
82056: {
82057: return rl_on_new_line ();
82058:   ;
82059:   return 0;
82060: }
82061: _ACEOF
82062: if ac_fn_c_try_link "$LINENO"; then :
82063:   ac_cv_lib_edit_rl_on_new_line=yes
82064: else
82065:   ac_cv_lib_edit_rl_on_new_line=no
82066: fi
82067: rm -f core conftest.err conftest.$ac_objext \
82068:     conftest$ac_exeext conftest.$ac_ext
82069: LIBS=$ac_check_lib_save_LIBS
82070: fi
82071: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_rl_on_new_line" >&5
82072: $as_echo "$ac_cv_lib_edit_rl_on_new_line" >&6; }
82073: if test "x$ac_cv_lib_edit_rl_on_new_line" = xyes; then :
82074: 
82075:     LDFLAGS=$save_old_LDFLAGS
82076:     ext_shared=$save_ext_shared
82077: 
82078: 
82079: $as_echo "#define HAVE_RL_ON_NEW_LINE 1" >>confdefs.h
82080: 
82081: 
82082: 
82083: else
82084: 
82085:     LDFLAGS=$save_old_LDFLAGS
82086:     ext_shared=$save_ext_shared
82087:     unset ac_cv_lib_edit_rl_on_new_line
82088: 
82089: 
82090: fi
82091: 
82092: 
82093: 
82094: $as_echo "#define HAVE_LIBEDIT 1" >>confdefs.h
82095: 
82096: fi
82097: 
82098: if test "$PHP_READLINE" != "no" || test "$PHP_LIBEDIT" != "no"; then
82099:   for ac_func in rl_completion_matches
82100: do :
82101:   ac_fn_c_check_func "$LINENO" "rl_completion_matches" "ac_cv_func_rl_completion_matches"
82102: if test "x$ac_cv_func_rl_completion_matches" = xyes; then :
82103:   cat >>confdefs.h <<_ACEOF
82104: #define HAVE_RL_COMPLETION_MATCHES 1
82105: _ACEOF
82106: 
82107: fi
82108: done
82109: 
82110: 
82111:   ext_builddir=ext/readline
82112:   ext_srcdir=$abs_srcdir/ext/readline
82113: 
82114:   ac_extra=
82115: 
82116:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "cli" != "cli"; then
82117:     PHP_READLINE_SHARED=no
82118: 
82119: 
82120:   case ext/readline in
82121:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
82122:   /*) ac_srcdir=`echo "ext/readline"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
82123:   *) ac_srcdir="$abs_srcdir/ext/readline/"; ac_bdir="ext/readline/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
82124:   esac
82125: 
82126: 
82127: 
82128:   b_c_pre=$php_c_pre
82129:   b_cxx_pre=$php_cxx_pre
82130:   b_c_meta=$php_c_meta
82131:   b_cxx_meta=$php_cxx_meta
82132:   b_c_post=$php_c_post
82133:   b_cxx_post=$php_cxx_post
82134:   b_lo=$php_lo
82135: 
82136: 
82137:   old_IFS=$IFS
82138:   for ac_src in readline.c readline_cli.c; do
82139: 
82140:       IFS=.
82141:       set $ac_src
82142:       ac_obj=$1
82143:       IFS=$old_IFS
82144: 
82145:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
82146: 
82147:       case $ac_src in
82148:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
82149:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
82150:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
82151:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
82152:       esac
82153: 
82154:     cat >>Makefile.objects<<EOF
82155: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
82156: 	$ac_comp
82157: EOF
82158:   done
82159: 
82160: 
82161:     EXT_STATIC="$EXT_STATIC readline"
82162:     if test "$ext_shared" != "nocli"; then
82163:       EXT_CLI_STATIC="$EXT_CLI_STATIC readline"
82164:     fi
82165:   else
82166:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
82167:       PHP_READLINE_SHARED=yes
82168: 
82169:   case ext/readline in
82170:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
82171:   /*) ac_srcdir=`echo "ext/readline"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
82172:   *) ac_srcdir="$abs_srcdir/ext/readline/"; ac_bdir="ext/readline/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
82173:   esac
82174: 
82175: 
82176: 
82177:   b_c_pre=$shared_c_pre
82178:   b_cxx_pre=$shared_cxx_pre
82179:   b_c_meta=$shared_c_meta
82180:   b_cxx_meta=$shared_cxx_meta
82181:   b_c_post=$shared_c_post
82182:   b_cxx_post=$shared_cxx_post
82183:   b_lo=$shared_lo
82184: 
82185: 
82186:   old_IFS=$IFS
82187:   for ac_src in readline.c readline_cli.c; do
82188: 
82189:       IFS=.
82190:       set $ac_src
82191:       ac_obj=$1
82192:       IFS=$old_IFS
82193: 
82194:       shared_objects_readline="$shared_objects_readline $ac_bdir$ac_obj.lo"
82195: 
82196:       case $ac_src in
82197:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
82198:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
82199:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
82200:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
82201:       esac
82202: 
82203:     cat >>Makefile.objects<<EOF
82204: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
82205: 	$ac_comp
82206: EOF
82207:   done
82208: 
82209:       case $host_alias in
82210:         *netware*)
82211: 
82212:   install_modules="install-modules"
82213: 
82214:   case $host_alias in
82215:     *aix*)
82216:       suffix=so
82217:       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'
82218:       ;;
82219:     *netware*)
82220:       suffix=nlm
82221:       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)'
82222:       ;;
82223:     *)
82224:       suffix=la
82225:       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)'
82226:       ;;
82227:   esac
82228: 
82229:   if test "x" = "xyes"; then
82230:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpreadline.$suffix"
82231:   else
82232:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpreadline.$suffix"
82233:   fi
82234: 
82235:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_readline"
82236: 
82237:   cat >>Makefile.objects<<EOF
82238: \$(phplibdir)/phpreadline.$suffix: $ext_builddir/phpreadline.$suffix
82239: 	\$(LIBTOOL) --mode=install cp $ext_builddir/phpreadline.$suffix \$(phplibdir)
82240: 
82241: $ext_builddir/phpreadline.$suffix: \$(shared_objects_readline) \$(PHPREADLINE_SHARED_DEPENDENCIES)
82242: 	$link_cmd
82243: 
82244: EOF
82245: 
82246:           ;;
82247:         *)
82248: 
82249:   install_modules="install-modules"
82250: 
82251:   case $host_alias in
82252:     *aix*)
82253:       suffix=so
82254:       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'
82255:       ;;
82256:     *netware*)
82257:       suffix=nlm
82258:       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)'
82259:       ;;
82260:     *)
82261:       suffix=la
82262:       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)'
82263:       ;;
82264:   esac
82265: 
82266:   if test "x" = "xyes"; then
82267:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/readline.$suffix"
82268:   else
82269:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/readline.$suffix"
82270:   fi
82271: 
82272:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_readline"
82273: 
82274:   cat >>Makefile.objects<<EOF
82275: \$(phplibdir)/readline.$suffix: $ext_builddir/readline.$suffix
82276: 	\$(LIBTOOL) --mode=install cp $ext_builddir/readline.$suffix \$(phplibdir)
82277: 
82278: $ext_builddir/readline.$suffix: \$(shared_objects_readline) \$(READLINE_SHARED_DEPENDENCIES)
82279: 	$link_cmd
82280: 
82281: EOF
82282: 
82283:           ;;
82284:       esac
82285: 
82286: cat >>confdefs.h <<_ACEOF
82287: #define COMPILE_DL_READLINE 1
82288: _ACEOF
82289: 
82290:     fi
82291:   fi
82292: 
82293:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "cli" = "cli"; then
82294:     PHP_READLINE_SHARED=no
82295:     case "$PHP_SAPI" in
82296:       cgi|embed)
82297: 
82298: 
82299:   case ext/readline in
82300:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
82301:   /*) ac_srcdir=`echo "ext/readline"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
82302:   *) ac_srcdir="$abs_srcdir/ext/readline/"; ac_bdir="ext/readline/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
82303:   esac
82304: 
82305: 
82306: 
82307:   b_c_pre=$php_c_pre
82308:   b_cxx_pre=$php_cxx_pre
82309:   b_c_meta=$php_c_meta
82310:   b_cxx_meta=$php_cxx_meta
82311:   b_c_post=$php_c_post
82312:   b_cxx_post=$php_cxx_post
82313:   b_lo=$php_lo
82314: 
82315: 
82316:   old_IFS=$IFS
82317:   for ac_src in readline.c readline_cli.c; do
82318: 
82319:       IFS=.
82320:       set $ac_src
82321:       ac_obj=$1
82322:       IFS=$old_IFS
82323: 
82324:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
82325: 
82326:       case $ac_src in
82327:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
82328:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
82329:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
82330:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
82331:       esac
82332: 
82333:     cat >>Makefile.objects<<EOF
82334: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
82335: 	$ac_comp
82336: EOF
82337:   done
82338: 
82339: 
82340:         EXT_STATIC="$EXT_STATIC readline"
82341:         ;;
82342:       *)
82343: 
82344: 
82345:   case ext/readline in
82346:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
82347:   /*) ac_srcdir=`echo "ext/readline"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
82348:   *) ac_srcdir="$abs_srcdir/ext/readline/"; ac_bdir="ext/readline/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
82349:   esac
82350: 
82351: 
82352: 
82353:   b_c_pre=$php_c_pre
82354:   b_cxx_pre=$php_cxx_pre
82355:   b_c_meta=$php_c_meta
82356:   b_cxx_meta=$php_cxx_meta
82357:   b_c_post=$php_c_post
82358:   b_cxx_post=$php_cxx_post
82359:   b_lo=$php_lo
82360: 
82361: 
82362:   old_IFS=$IFS
82363:   for ac_src in readline.c readline_cli.c; do
82364: 
82365:       IFS=.
82366:       set $ac_src
82367:       ac_obj=$1
82368:       IFS=$old_IFS
82369: 
82370:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
82371: 
82372:       case $ac_src in
82373:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
82374:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
82375:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
82376:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
82377:       esac
82378: 
82379:     cat >>Makefile.objects<<EOF
82380: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
82381: 	$ac_comp
82382: EOF
82383:   done
82384: 
82385: 
82386:         ;;
82387:     esac
82388:     EXT_CLI_STATIC="$EXT_CLI_STATIC readline"
82389:   fi
82390: 
82391: 
82392:     BUILD_DIR="$BUILD_DIR $ext_builddir"
82393: 
82394: 
82395: 
82396:   if test "$ext_builddir" = "."; then
82397:     PHP_PECL_EXTENSION=readline
82398: 
82399:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
82400: 
82401:   fi
82402: 
82403: 
82404:   PHP_VAR_SUBST="$PHP_VAR_SUBST READLINE_SHARED_LIBADD"
82405: 
82406: fi
82407: 
82408: 
82409: 
82410: php_with_recode=no
82411: 
82412: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recode support" >&5
82413: $as_echo_n "checking for recode support... " >&6; }
82414: 
82415: # Check whether --with-recode was given.
82416: if test "${with_recode+set}" = set; then :
82417:   withval=$with_recode; PHP_RECODE=$withval
82418: else
82419: 
82420:   PHP_RECODE=no
82421:   test "$PHP_ENABLE_ALL" && PHP_RECODE=$PHP_ENABLE_ALL
82422: 
82423: fi
82424: 
82425: 
82426: 
82427: ext_output="yes, shared"
82428: ext_shared=yes
82429: case $PHP_RECODE in
82430: shared,*)
82431:   PHP_RECODE=`echo "$PHP_RECODE"|$SED 's/^shared,//'`
82432:   ;;
82433: shared)
82434:   PHP_RECODE=yes
82435:   ;;
82436: no)
82437:   ext_output=no
82438:   ext_shared=no
82439:   ;;
82440: *)
82441:   ext_output=yes
82442:   ext_shared=no
82443:   ;;
82444: esac
82445: 
82446: 
82447: 
82448: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
82449: $as_echo "$ext_output" >&6; }
82450: 
82451: 
82452: 
82453: 
82454: if test "$PHP_RECODE" != "no"; then
82455:   RECODE_LIST="$PHP_RECODE /usr/local /usr /opt"
82456: 
82457:   for i in $RECODE_LIST; do
82458:     if test -f $i/include/recode.h; then
82459:       RECODE_DIR=$i
82460:       RECODE_INC=include
82461:       RECODE_LIB=$PHP_LIBDIR
82462:     fi
82463:     if test -f $i/include/recode/recode.h; then
82464:       RECODE_DIR=$i
82465:       RECODE_INC=include/recode
82466:       RECODE_LIB=$PHP_LIBDIR/recode
82467:     fi
82468:     if test -f $i/recode/include/recode.h; then
82469:       RECODE_DIR=$i/recode
82470:       RECODE_INC=include
82471:       RECODE_LIB=$PHP_LIBDIR
82472:     fi
82473:     test -n "$RECODE_DIR" && break
82474:   done
82475: 
82476:   if test -z "$RECODE_DIR"; then
82477:     as_fn_error $? "Can not find recode.h anywhere under $RECODE_LIST." "$LINENO" 5
82478:   fi
82479: 
82480: 
82481:   save_old_LDFLAGS=$LDFLAGS
82482:   ac_stuff="
82483:     -L$RECODE_DIR/$RECODE_LIB
82484:   "
82485: 
82486:   save_ext_shared=$ext_shared
82487:   ext_shared=yes
82488: 
82489:   for ac_i in $ac_stuff; do
82490:     case $ac_i in
82491:     -pthread)
82492:       if test "$ext_shared" = "yes"; then
82493:         LDFLAGS="$LDFLAGS -pthread"
82494:       else
82495: 
82496: 
82497:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
82498: 
82499:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
82500:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
82501:     eval "EXTRA_LDFLAGS$unique=set"
82502:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
82503:   fi
82504: 
82505:       fi
82506:     ;;
82507:     -l*)
82508:       ac_ii=`echo $ac_i|cut -c 3-`
82509: 
82510: 
82511:   case $ac_ii in
82512:   c|c_r|pthread*) ;;
82513:   *)
82514:     if test "$ext_shared" = "yes"; then
82515:         LDFLAGS="$LDFLAGS -l$ac_ii"
82516:     else
82517: 
82518: 
82519:   case $ac_ii in
82520:   c|c_r|pthread*) ;;
82521:   *)
82522:       LIBS="$LIBS -l$ac_ii"
82523:    ;;
82524:   esac
82525: 
82526: 
82527:     fi
82528:    ;;
82529:   esac
82530: 
82531: 
82532:     ;;
82533:     -L*)
82534:       ac_ii=`echo $ac_i|cut -c 3-`
82535: 
82536:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
82537: 
82538:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
82539:     ai_p=$ac_ii
82540:   else
82541: 
82542:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
82543: 
82544:     ep_realdir=`(cd "$ep_dir" && pwd)`
82545:     ai_p="$ep_realdir"/`basename "$ac_ii"`
82546:   fi
82547: 
82548: 
82549:       if test "$ext_shared" = "yes"; then
82550:         LDFLAGS="-L$ai_p $LDFLAGS"
82551:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
82552:       else
82553: 
82554: 
82555: 
82556:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
82557: 
82558:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
82559:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
82560:     eval "LIBPATH$unique=set"
82561: 
82562:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
82563:     LDFLAGS="$LDFLAGS -L$ai_p"
82564:     PHP_RPATHS="$PHP_RPATHS $ai_p"
82565: 
82566:   fi
82567: 
82568: 
82569:       fi
82570: 
82571:   fi
82572: 
82573:     ;;
82574:     esac
82575:   done
82576: 
82577:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recode_format_table in -lrecode" >&5
82578: $as_echo_n "checking for recode_format_table in -lrecode... " >&6; }
82579: if ${ac_cv_lib_recode_recode_format_table+:} false; then :
82580:   $as_echo_n "(cached) " >&6
82581: else
82582:   ac_check_lib_save_LIBS=$LIBS
82583: LIBS="-lrecode  $LIBS"
82584: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
82585: /* end confdefs.h.  */
82586: 
82587: /* Override any GCC internal prototype to avoid an error.
82588:    Use char because int might match the return type of a GCC
82589:    builtin and then its argument prototype would still apply.  */
82590: #ifdef __cplusplus
82591: extern "C"
82592: #endif
82593: char recode_format_table ();
82594: int
82595: main ()
82596: {
82597: return recode_format_table ();
82598:   ;
82599:   return 0;
82600: }
82601: _ACEOF
82602: if ac_fn_c_try_link "$LINENO"; then :
82603:   ac_cv_lib_recode_recode_format_table=yes
82604: else
82605:   ac_cv_lib_recode_recode_format_table=no
82606: fi
82607: rm -f core conftest.err conftest.$ac_objext \
82608:     conftest$ac_exeext conftest.$ac_ext
82609: LIBS=$ac_check_lib_save_LIBS
82610: fi
82611: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_recode_recode_format_table" >&5
82612: $as_echo "$ac_cv_lib_recode_recode_format_table" >&6; }
82613: if test "x$ac_cv_lib_recode_recode_format_table" = xyes; then :
82614: 
82615:     LDFLAGS=$save_old_LDFLAGS
82616:     ext_shared=$save_ext_shared
82617: 
82618: 
82619: 
82620:   if test "$ext_shared" = "yes"; then
82621:     RECODE_SHARED_LIBADD="-lrecode $RECODE_SHARED_LIBADD"
82622:     if test -n "$RECODE_DIR/$RECODE_LIB"; then
82623: 
82624:   if test "$RECODE_DIR/$RECODE_LIB" != "/usr/$PHP_LIBDIR" && test "$RECODE_DIR/$RECODE_LIB" != "/usr/lib"; then
82625: 
82626:   if test -z "$RECODE_DIR/$RECODE_LIB" || echo "$RECODE_DIR/$RECODE_LIB" | grep '^/' >/dev/null ; then
82627:     ai_p=$RECODE_DIR/$RECODE_LIB
82628:   else
82629: 
82630:     ep_dir=`echo $RECODE_DIR/$RECODE_LIB|$SED 's%/*[^/][^/]*/*$%%'`
82631: 
82632:     ep_realdir=`(cd "$ep_dir" && pwd)`
82633:     ai_p="$ep_realdir"/`basename "$RECODE_DIR/$RECODE_LIB"`
82634:   fi
82635: 
82636: 
82637:       if test "$ext_shared" = "yes"; then
82638:         RECODE_SHARED_LIBADD="-L$ai_p $RECODE_SHARED_LIBADD"
82639:         test -n "$ld_runpath_switch" && RECODE_SHARED_LIBADD="$ld_runpath_switch$ai_p $RECODE_SHARED_LIBADD"
82640:       else
82641: 
82642: 
82643: 
82644:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
82645: 
82646:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
82647:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
82648:     eval "LIBPATH$unique=set"
82649: 
82650:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
82651:     LDFLAGS="$LDFLAGS -L$ai_p"
82652:     PHP_RPATHS="$PHP_RPATHS $ai_p"
82653: 
82654:   fi
82655: 
82656: 
82657:       fi
82658: 
82659:   fi
82660: 
82661:     fi
82662:   else
82663: 
82664: 
82665:   if test -n "$RECODE_DIR/$RECODE_LIB"; then
82666: 
82667:   if test "$RECODE_DIR/$RECODE_LIB" != "/usr/$PHP_LIBDIR" && test "$RECODE_DIR/$RECODE_LIB" != "/usr/lib"; then
82668: 
82669:   if test -z "$RECODE_DIR/$RECODE_LIB" || echo "$RECODE_DIR/$RECODE_LIB" | grep '^/' >/dev/null ; then
82670:     ai_p=$RECODE_DIR/$RECODE_LIB
82671:   else
82672: 
82673:     ep_dir=`echo $RECODE_DIR/$RECODE_LIB|$SED 's%/*[^/][^/]*/*$%%'`
82674: 
82675:     ep_realdir=`(cd "$ep_dir" && pwd)`
82676:     ai_p="$ep_realdir"/`basename "$RECODE_DIR/$RECODE_LIB"`
82677:   fi
82678: 
82679: 
82680: 
82681: 
82682: 
82683:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
82684: 
82685:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
82686:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
82687:     eval "LIBPATH$unique=set"
82688: 
82689:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
82690:     LDFLAGS="$LDFLAGS -L$ai_p"
82691:     PHP_RPATHS="$PHP_RPATHS $ai_p"
82692: 
82693:   fi
82694: 
82695: 
82696: 
82697:   fi
82698: 
82699:   fi
82700: 
82701: 
82702:   case recode in
82703:   c|c_r|pthread*) ;;
82704:   *)
82705:       LIBS="-lrecode $LIBS"
82706:    ;;
82707:   esac
82708: 
82709: 
82710: 
82711: 
82712:   fi
82713: 
82714: 
82715: 
82716: 
82717: else
82718: 
82719:     LDFLAGS=$save_old_LDFLAGS
82720:     ext_shared=$save_ext_shared
82721:     unset ac_cv_lib_recode_recode_format_table
82722: 
82723:     old_LDFLAGS=$LDFLAGS
82724:     old_LIBS=$LIBS
82725:     LDFLAGS="$LDFLAGS -L$RECODE_DIR/$RECODE_LIB"
82726:     LIBS="$LIBS -lrecode"
82727:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
82728: /* end confdefs.h.  */
82729: 
82730: char *program_name;
82731: 
82732: int
82733: main ()
82734: {
82735: 
82736: recode_format_table();
82737: 
82738:   ;
82739:   return 0;
82740: }
82741: _ACEOF
82742: if ac_fn_c_try_link "$LINENO"; then :
82743: 
82744: 
82745: 
82746:   if test "$ext_shared" = "yes"; then
82747:     RECODE_SHARED_LIBADD="-lrecode $RECODE_SHARED_LIBADD"
82748:     if test -n "$RECODE_DIR/$RECODE_LIB"; then
82749: 
82750:   if test "$RECODE_DIR/$RECODE_LIB" != "/usr/$PHP_LIBDIR" && test "$RECODE_DIR/$RECODE_LIB" != "/usr/lib"; then
82751: 
82752:   if test -z "$RECODE_DIR/$RECODE_LIB" || echo "$RECODE_DIR/$RECODE_LIB" | grep '^/' >/dev/null ; then
82753:     ai_p=$RECODE_DIR/$RECODE_LIB
82754:   else
82755: 
82756:     ep_dir=`echo $RECODE_DIR/$RECODE_LIB|$SED 's%/*[^/][^/]*/*$%%'`
82757: 
82758:     ep_realdir=`(cd "$ep_dir" && pwd)`
82759:     ai_p="$ep_realdir"/`basename "$RECODE_DIR/$RECODE_LIB"`
82760:   fi
82761: 
82762: 
82763:       if test "$ext_shared" = "yes"; then
82764:         RECODE_SHARED_LIBADD="-L$ai_p $RECODE_SHARED_LIBADD"
82765:         test -n "$ld_runpath_switch" && RECODE_SHARED_LIBADD="$ld_runpath_switch$ai_p $RECODE_SHARED_LIBADD"
82766:       else
82767: 
82768: 
82769: 
82770:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
82771: 
82772:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
82773:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
82774:     eval "LIBPATH$unique=set"
82775: 
82776:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
82777:     LDFLAGS="$LDFLAGS -L$ai_p"
82778:     PHP_RPATHS="$PHP_RPATHS $ai_p"
82779: 
82780:   fi
82781: 
82782: 
82783:       fi
82784: 
82785:   fi
82786: 
82787:     fi
82788:   else
82789: 
82790: 
82791:   if test -n "$RECODE_DIR/$RECODE_LIB"; then
82792: 
82793:   if test "$RECODE_DIR/$RECODE_LIB" != "/usr/$PHP_LIBDIR" && test "$RECODE_DIR/$RECODE_LIB" != "/usr/lib"; then
82794: 
82795:   if test -z "$RECODE_DIR/$RECODE_LIB" || echo "$RECODE_DIR/$RECODE_LIB" | grep '^/' >/dev/null ; then
82796:     ai_p=$RECODE_DIR/$RECODE_LIB
82797:   else
82798: 
82799:     ep_dir=`echo $RECODE_DIR/$RECODE_LIB|$SED 's%/*[^/][^/]*/*$%%'`
82800: 
82801:     ep_realdir=`(cd "$ep_dir" && pwd)`
82802:     ai_p="$ep_realdir"/`basename "$RECODE_DIR/$RECODE_LIB"`
82803:   fi
82804: 
82805: 
82806: 
82807: 
82808: 
82809:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
82810: 
82811:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
82812:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
82813:     eval "LIBPATH$unique=set"
82814: 
82815:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
82816:     LDFLAGS="$LDFLAGS -L$ai_p"
82817:     PHP_RPATHS="$PHP_RPATHS $ai_p"
82818: 
82819:   fi
82820: 
82821: 
82822: 
82823:   fi
82824: 
82825:   fi
82826: 
82827: 
82828:   case recode in
82829:   c|c_r|pthread*) ;;
82830:   *)
82831:       DLIBS="-lrecode $DLIBS"
82832:    ;;
82833:   esac
82834: 
82835: 
82836: 
82837: 
82838:   fi
82839: 
82840: 
82841: 
82842: $as_echo "#define HAVE_BROKEN_RECODE 1" >>confdefs.h
82843: 
82844: 
82845: else
82846: 
82847:       as_fn_error $? "I cannot link librecode (-L$RECODE_DIR/$RECODE_LIB -lrecode). Is it installed?" "$LINENO" 5
82848: 
82849: fi
82850: rm -f core conftest.err conftest.$ac_objext \
82851:     conftest$ac_exeext conftest.$ac_ext
82852:     LIBS=$old_LIBS
82853:     LDFLAGS=$old_LDFLAGS
82854: 
82855: 
82856: fi
82857: 
82858: 
82859: 
82860: $as_echo "#define HAVE_LIBRECODE 1" >>confdefs.h
82861: 
82862: 
82863:   if test "$RECODE_DIR/$RECODE_INC" != "/usr/include"; then
82864: 
82865:   if test -z "$RECODE_DIR/$RECODE_INC" || echo "$RECODE_DIR/$RECODE_INC" | grep '^/' >/dev/null ; then
82866:     ai_p=$RECODE_DIR/$RECODE_INC
82867:   else
82868: 
82869:     ep_dir=`echo $RECODE_DIR/$RECODE_INC|$SED 's%/*[^/][^/]*/*$%%'`
82870: 
82871:     ep_realdir=`(cd "$ep_dir" && pwd)`
82872:     ai_p="$ep_realdir"/`basename "$RECODE_DIR/$RECODE_INC"`
82873:   fi
82874: 
82875: 
82876: 
82877:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
82878: 
82879:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
82880:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
82881:     eval "INCLUDEPATH$unique=set"
82882: 
82883:       if test ""; then
82884:         INCLUDES="-I$ai_p $INCLUDES"
82885:       else
82886:         INCLUDES="$INCLUDES -I$ai_p"
82887:       fi
82888: 
82889:   fi
82890: 
82891:   fi
82892: 
82893: 
82894:   PHP_VAR_SUBST="$PHP_VAR_SUBST RECODE_SHARED_LIBADD"
82895: 
82896:   for ac_header in stdbool.h
82897: do :
82898:   ac_fn_c_check_header_mongrel "$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" "$ac_includes_default"
82899: if test "x$ac_cv_header_stdbool_h" = xyes; then :
82900:   cat >>confdefs.h <<_ACEOF
82901: #define HAVE_STDBOOL_H 1
82902: _ACEOF
82903: 
82904: fi
82905: 
82906: done
82907: 
82908: 
82909:   ext_builddir=ext/recode
82910:   ext_srcdir=$abs_srcdir/ext/recode
82911: 
82912:   ac_extra=
82913: 
82914:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
82915:     PHP_RECODE_SHARED=no
82916: 
82917: 
82918:   case ext/recode in
82919:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
82920:   /*) ac_srcdir=`echo "ext/recode"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
82921:   *) ac_srcdir="$abs_srcdir/ext/recode/"; ac_bdir="ext/recode/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
82922:   esac
82923: 
82924: 
82925: 
82926:   b_c_pre=$php_c_pre
82927:   b_cxx_pre=$php_cxx_pre
82928:   b_c_meta=$php_c_meta
82929:   b_cxx_meta=$php_cxx_meta
82930:   b_c_post=$php_c_post
82931:   b_cxx_post=$php_cxx_post
82932:   b_lo=$php_lo
82933: 
82934: 
82935:   old_IFS=$IFS
82936:   for ac_src in recode.c; do
82937: 
82938:       IFS=.
82939:       set $ac_src
82940:       ac_obj=$1
82941:       IFS=$old_IFS
82942: 
82943:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
82944: 
82945:       case $ac_src in
82946:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
82947:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
82948:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
82949:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
82950:       esac
82951: 
82952:     cat >>Makefile.objects<<EOF
82953: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
82954: 	$ac_comp
82955: EOF
82956:   done
82957: 
82958: 
82959:     EXT_STATIC="$EXT_STATIC recode"
82960:     if test "$ext_shared" != "nocli"; then
82961:       EXT_CLI_STATIC="$EXT_CLI_STATIC recode"
82962:     fi
82963:   else
82964:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
82965:       PHP_RECODE_SHARED=yes
82966: 
82967:   case ext/recode in
82968:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
82969:   /*) ac_srcdir=`echo "ext/recode"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
82970:   *) ac_srcdir="$abs_srcdir/ext/recode/"; ac_bdir="ext/recode/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
82971:   esac
82972: 
82973: 
82974: 
82975:   b_c_pre=$shared_c_pre
82976:   b_cxx_pre=$shared_cxx_pre
82977:   b_c_meta=$shared_c_meta
82978:   b_cxx_meta=$shared_cxx_meta
82979:   b_c_post=$shared_c_post
82980:   b_cxx_post=$shared_cxx_post
82981:   b_lo=$shared_lo
82982: 
82983: 
82984:   old_IFS=$IFS
82985:   for ac_src in recode.c; do
82986: 
82987:       IFS=.
82988:       set $ac_src
82989:       ac_obj=$1
82990:       IFS=$old_IFS
82991: 
82992:       shared_objects_recode="$shared_objects_recode $ac_bdir$ac_obj.lo"
82993: 
82994:       case $ac_src in
82995:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
82996:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
82997:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
82998:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
82999:       esac
83000: 
83001:     cat >>Makefile.objects<<EOF
83002: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
83003: 	$ac_comp
83004: EOF
83005:   done
83006: 
83007:       case $host_alias in
83008:         *netware*)
83009: 
83010:   install_modules="install-modules"
83011: 
83012:   case $host_alias in
83013:     *aix*)
83014:       suffix=so
83015:       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'
83016:       ;;
83017:     *netware*)
83018:       suffix=nlm
83019:       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)'
83020:       ;;
83021:     *)
83022:       suffix=la
83023:       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)'
83024:       ;;
83025:   esac
83026: 
83027:   if test "x" = "xyes"; then
83028:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phprecode.$suffix"
83029:   else
83030:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phprecode.$suffix"
83031:   fi
83032: 
83033:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_recode"
83034: 
83035:   cat >>Makefile.objects<<EOF
83036: \$(phplibdir)/phprecode.$suffix: $ext_builddir/phprecode.$suffix
83037: 	\$(LIBTOOL) --mode=install cp $ext_builddir/phprecode.$suffix \$(phplibdir)
83038: 
83039: $ext_builddir/phprecode.$suffix: \$(shared_objects_recode) \$(PHPRECODE_SHARED_DEPENDENCIES)
83040: 	$link_cmd
83041: 
83042: EOF
83043: 
83044:           ;;
83045:         *)
83046: 
83047:   install_modules="install-modules"
83048: 
83049:   case $host_alias in
83050:     *aix*)
83051:       suffix=so
83052:       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'
83053:       ;;
83054:     *netware*)
83055:       suffix=nlm
83056:       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)'
83057:       ;;
83058:     *)
83059:       suffix=la
83060:       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)'
83061:       ;;
83062:   esac
83063: 
83064:   if test "x" = "xyes"; then
83065:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/recode.$suffix"
83066:   else
83067:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/recode.$suffix"
83068:   fi
83069: 
83070:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_recode"
83071: 
83072:   cat >>Makefile.objects<<EOF
83073: \$(phplibdir)/recode.$suffix: $ext_builddir/recode.$suffix
83074: 	\$(LIBTOOL) --mode=install cp $ext_builddir/recode.$suffix \$(phplibdir)
83075: 
83076: $ext_builddir/recode.$suffix: \$(shared_objects_recode) \$(RECODE_SHARED_DEPENDENCIES)
83077: 	$link_cmd
83078: 
83079: EOF
83080: 
83081:           ;;
83082:       esac
83083: 
83084: cat >>confdefs.h <<_ACEOF
83085: #define COMPILE_DL_RECODE 1
83086: _ACEOF
83087: 
83088:     fi
83089:   fi
83090: 
83091:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
83092:     PHP_RECODE_SHARED=no
83093:     case "$PHP_SAPI" in
83094:       cgi|embed)
83095: 
83096: 
83097:   case ext/recode in
83098:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
83099:   /*) ac_srcdir=`echo "ext/recode"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
83100:   *) ac_srcdir="$abs_srcdir/ext/recode/"; ac_bdir="ext/recode/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
83101:   esac
83102: 
83103: 
83104: 
83105:   b_c_pre=$php_c_pre
83106:   b_cxx_pre=$php_cxx_pre
83107:   b_c_meta=$php_c_meta
83108:   b_cxx_meta=$php_cxx_meta
83109:   b_c_post=$php_c_post
83110:   b_cxx_post=$php_cxx_post
83111:   b_lo=$php_lo
83112: 
83113: 
83114:   old_IFS=$IFS
83115:   for ac_src in recode.c; do
83116: 
83117:       IFS=.
83118:       set $ac_src
83119:       ac_obj=$1
83120:       IFS=$old_IFS
83121: 
83122:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
83123: 
83124:       case $ac_src in
83125:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
83126:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
83127:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
83128:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
83129:       esac
83130: 
83131:     cat >>Makefile.objects<<EOF
83132: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
83133: 	$ac_comp
83134: EOF
83135:   done
83136: 
83137: 
83138:         EXT_STATIC="$EXT_STATIC recode"
83139:         ;;
83140:       *)
83141: 
83142: 
83143:   case ext/recode in
83144:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
83145:   /*) ac_srcdir=`echo "ext/recode"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
83146:   *) ac_srcdir="$abs_srcdir/ext/recode/"; ac_bdir="ext/recode/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
83147:   esac
83148: 
83149: 
83150: 
83151:   b_c_pre=$php_c_pre
83152:   b_cxx_pre=$php_cxx_pre
83153:   b_c_meta=$php_c_meta
83154:   b_cxx_meta=$php_cxx_meta
83155:   b_c_post=$php_c_post
83156:   b_cxx_post=$php_cxx_post
83157:   b_lo=$php_lo
83158: 
83159: 
83160:   old_IFS=$IFS
83161:   for ac_src in recode.c; do
83162: 
83163:       IFS=.
83164:       set $ac_src
83165:       ac_obj=$1
83166:       IFS=$old_IFS
83167: 
83168:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
83169: 
83170:       case $ac_src in
83171:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
83172:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
83173:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
83174:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
83175:       esac
83176: 
83177:     cat >>Makefile.objects<<EOF
83178: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
83179: 	$ac_comp
83180: EOF
83181:   done
83182: 
83183: 
83184:         ;;
83185:     esac
83186:     EXT_CLI_STATIC="$EXT_CLI_STATIC recode"
83187:   fi
83188: 
83189: 
83190:     BUILD_DIR="$BUILD_DIR $ext_builddir"
83191: 
83192: 
83193: 
83194:   if test "$ext_builddir" = "."; then
83195:     PHP_PECL_EXTENSION=recode
83196: 
83197:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
83198: 
83199:   fi
83200: 
83201: fi
83202: 
83203: 
83204: 
83205: $as_echo "#define HAVE_REFLECTION 1" >>confdefs.h
83206: 
83207: 
83208:   ext_builddir=ext/reflection
83209:   ext_srcdir=$abs_srcdir/ext/reflection
83210: 
83211:   ac_extra=
83212: 
83213:   if test "no" != "shared" && test "no" != "yes" && test "" != "cli"; then
83214:     PHP_REFLECTION_SHARED=no
83215: 
83216: 
83217:   case ext/reflection in
83218:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
83219:   /*) ac_srcdir=`echo "ext/reflection"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
83220:   *) ac_srcdir="$abs_srcdir/ext/reflection/"; ac_bdir="ext/reflection/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
83221:   esac
83222: 
83223: 
83224: 
83225:   b_c_pre=$php_c_pre
83226:   b_cxx_pre=$php_cxx_pre
83227:   b_c_meta=$php_c_meta
83228:   b_cxx_meta=$php_cxx_meta
83229:   b_c_post=$php_c_post
83230:   b_cxx_post=$php_cxx_post
83231:   b_lo=$php_lo
83232: 
83233: 
83234:   old_IFS=$IFS
83235:   for ac_src in php_reflection.c; do
83236: 
83237:       IFS=.
83238:       set $ac_src
83239:       ac_obj=$1
83240:       IFS=$old_IFS
83241: 
83242:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
83243: 
83244:       case $ac_src in
83245:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
83246:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
83247:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
83248:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
83249:       esac
83250: 
83251:     cat >>Makefile.objects<<EOF
83252: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
83253: 	$ac_comp
83254: EOF
83255:   done
83256: 
83257: 
83258:     EXT_STATIC="$EXT_STATIC reflection"
83259:     if test "no" != "nocli"; then
83260:       EXT_CLI_STATIC="$EXT_CLI_STATIC reflection"
83261:     fi
83262:   else
83263:     if test "no" = "shared" || test "no" = "yes"; then
83264:       PHP_REFLECTION_SHARED=yes
83265: 
83266:   case ext/reflection in
83267:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
83268:   /*) ac_srcdir=`echo "ext/reflection"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
83269:   *) ac_srcdir="$abs_srcdir/ext/reflection/"; ac_bdir="ext/reflection/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
83270:   esac
83271: 
83272: 
83273: 
83274:   b_c_pre=$shared_c_pre
83275:   b_cxx_pre=$shared_cxx_pre
83276:   b_c_meta=$shared_c_meta
83277:   b_cxx_meta=$shared_cxx_meta
83278:   b_c_post=$shared_c_post
83279:   b_cxx_post=$shared_cxx_post
83280:   b_lo=$shared_lo
83281: 
83282: 
83283:   old_IFS=$IFS
83284:   for ac_src in php_reflection.c; do
83285: 
83286:       IFS=.
83287:       set $ac_src
83288:       ac_obj=$1
83289:       IFS=$old_IFS
83290: 
83291:       shared_objects_reflection="$shared_objects_reflection $ac_bdir$ac_obj.lo"
83292: 
83293:       case $ac_src in
83294:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
83295:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
83296:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
83297:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
83298:       esac
83299: 
83300:     cat >>Makefile.objects<<EOF
83301: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
83302: 	$ac_comp
83303: EOF
83304:   done
83305: 
83306:       case $host_alias in
83307:         *netware*)
83308: 
83309:   install_modules="install-modules"
83310: 
83311:   case $host_alias in
83312:     *aix*)
83313:       suffix=so
83314:       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'
83315:       ;;
83316:     *netware*)
83317:       suffix=nlm
83318:       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)'
83319:       ;;
83320:     *)
83321:       suffix=la
83322:       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)'
83323:       ;;
83324:   esac
83325: 
83326:   if test "x" = "xyes"; then
83327:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpreflection.$suffix"
83328:   else
83329:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpreflection.$suffix"
83330:   fi
83331: 
83332:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_reflection"
83333: 
83334:   cat >>Makefile.objects<<EOF
83335: \$(phplibdir)/phpreflection.$suffix: $ext_builddir/phpreflection.$suffix
83336: 	\$(LIBTOOL) --mode=install cp $ext_builddir/phpreflection.$suffix \$(phplibdir)
83337: 
83338: $ext_builddir/phpreflection.$suffix: \$(shared_objects_reflection) \$(PHPREFLECTION_SHARED_DEPENDENCIES)
83339: 	$link_cmd
83340: 
83341: EOF
83342: 
83343:           ;;
83344:         *)
83345: 
83346:   install_modules="install-modules"
83347: 
83348:   case $host_alias in
83349:     *aix*)
83350:       suffix=so
83351:       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'
83352:       ;;
83353:     *netware*)
83354:       suffix=nlm
83355:       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)'
83356:       ;;
83357:     *)
83358:       suffix=la
83359:       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)'
83360:       ;;
83361:   esac
83362: 
83363:   if test "x" = "xyes"; then
83364:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/reflection.$suffix"
83365:   else
83366:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/reflection.$suffix"
83367:   fi
83368: 
83369:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_reflection"
83370: 
83371:   cat >>Makefile.objects<<EOF
83372: \$(phplibdir)/reflection.$suffix: $ext_builddir/reflection.$suffix
83373: 	\$(LIBTOOL) --mode=install cp $ext_builddir/reflection.$suffix \$(phplibdir)
83374: 
83375: $ext_builddir/reflection.$suffix: \$(shared_objects_reflection) \$(REFLECTION_SHARED_DEPENDENCIES)
83376: 	$link_cmd
83377: 
83378: EOF
83379: 
83380:           ;;
83381:       esac
83382: 
83383: cat >>confdefs.h <<_ACEOF
83384: #define COMPILE_DL_REFLECTION 1
83385: _ACEOF
83386: 
83387:     fi
83388:   fi
83389: 
83390:   if test "no" != "shared" && test "no" != "yes" && test "" = "cli"; then
83391:     PHP_REFLECTION_SHARED=no
83392:     case "$PHP_SAPI" in
83393:       cgi|embed)
83394: 
83395: 
83396:   case ext/reflection in
83397:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
83398:   /*) ac_srcdir=`echo "ext/reflection"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
83399:   *) ac_srcdir="$abs_srcdir/ext/reflection/"; ac_bdir="ext/reflection/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
83400:   esac
83401: 
83402: 
83403: 
83404:   b_c_pre=$php_c_pre
83405:   b_cxx_pre=$php_cxx_pre
83406:   b_c_meta=$php_c_meta
83407:   b_cxx_meta=$php_cxx_meta
83408:   b_c_post=$php_c_post
83409:   b_cxx_post=$php_cxx_post
83410:   b_lo=$php_lo
83411: 
83412: 
83413:   old_IFS=$IFS
83414:   for ac_src in php_reflection.c; do
83415: 
83416:       IFS=.
83417:       set $ac_src
83418:       ac_obj=$1
83419:       IFS=$old_IFS
83420: 
83421:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
83422: 
83423:       case $ac_src in
83424:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
83425:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
83426:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
83427:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
83428:       esac
83429: 
83430:     cat >>Makefile.objects<<EOF
83431: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
83432: 	$ac_comp
83433: EOF
83434:   done
83435: 
83436: 
83437:         EXT_STATIC="$EXT_STATIC reflection"
83438:         ;;
83439:       *)
83440: 
83441: 
83442:   case ext/reflection in
83443:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
83444:   /*) ac_srcdir=`echo "ext/reflection"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
83445:   *) ac_srcdir="$abs_srcdir/ext/reflection/"; ac_bdir="ext/reflection/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
83446:   esac
83447: 
83448: 
83449: 
83450:   b_c_pre=$php_c_pre
83451:   b_cxx_pre=$php_cxx_pre
83452:   b_c_meta=$php_c_meta
83453:   b_cxx_meta=$php_cxx_meta
83454:   b_c_post=$php_c_post
83455:   b_cxx_post=$php_cxx_post
83456:   b_lo=$php_lo
83457: 
83458: 
83459:   old_IFS=$IFS
83460:   for ac_src in php_reflection.c; do
83461: 
83462:       IFS=.
83463:       set $ac_src
83464:       ac_obj=$1
83465:       IFS=$old_IFS
83466: 
83467:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
83468: 
83469:       case $ac_src in
83470:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
83471:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
83472:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
83473:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
83474:       esac
83475: 
83476:     cat >>Makefile.objects<<EOF
83477: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
83478: 	$ac_comp
83479: EOF
83480:   done
83481: 
83482: 
83483:         ;;
83484:     esac
83485:     EXT_CLI_STATIC="$EXT_CLI_STATIC reflection"
83486:   fi
83487: 
83488: 
83489:     BUILD_DIR="$BUILD_DIR $ext_builddir"
83490: 
83491: 
83492: 
83493:   if test "$ext_builddir" = "."; then
83494:     PHP_PECL_EXTENSION=reflection
83495: 
83496:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
83497: 
83498:   fi
83499: 
83500: 
83501: 
83502: 
83503: php_enable_session=yes
83504: 
83505: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable PHP sessions" >&5
83506: $as_echo_n "checking whether to enable PHP sessions... " >&6; }
83507: # Check whether --enable-session was given.
83508: if test "${enable_session+set}" = set; then :
83509:   enableval=$enable_session; PHP_SESSION=$enableval
83510: else
83511: 
83512:   PHP_SESSION=yes
83513:   test "$PHP_ENABLE_ALL" && PHP_SESSION=$PHP_ENABLE_ALL
83514: 
83515: fi
83516: 
83517: 
83518: 
83519: ext_output="yes, shared"
83520: ext_shared=yes
83521: case $PHP_SESSION in
83522: shared,*)
83523:   PHP_SESSION=`echo "$PHP_SESSION"|$SED 's/^shared,//'`
83524:   ;;
83525: shared)
83526:   PHP_SESSION=yes
83527:   ;;
83528: no)
83529:   ext_output=no
83530:   ext_shared=no
83531:   ;;
83532: *)
83533:   ext_output=yes
83534:   ext_shared=no
83535:   ;;
83536: esac
83537: 
83538: 
83539: 
83540: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
83541: $as_echo "$ext_output" >&6; }
83542: 
83543: 
83544: 
83545: 
83546: 
83547: php_with_mm=no
83548: 
83549: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mm support" >&5
83550: $as_echo_n "checking for mm support... " >&6; }
83551: 
83552: # Check whether --with-mm was given.
83553: if test "${with_mm+set}" = set; then :
83554:   withval=$with_mm; PHP_MM=$withval
83555: else
83556: 
83557:   PHP_MM=no
83558: 
83559: 
83560: fi
83561: 
83562: 
83563: ext_output=$PHP_MM
83564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
83565: $as_echo "$ext_output" >&6; }
83566: 
83567: 
83568: 
83569: 
83570: if test "$PHP_SESSION" != "no"; then
83571: 
83572:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pwrite works" >&5
83573: $as_echo_n "checking whether pwrite works... " >&6; }
83574: if ${ac_cv_pwrite+:} false; then :
83575:   $as_echo_n "(cached) " >&6
83576: else
83577: 
83578: 
83579:   if test "$cross_compiling" = yes; then :
83580: 
83581:     ac_cv_pwrite=no
83582: 
83583: else
83584:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
83585: /* end confdefs.h.  */
83586: 
83587: #include <sys/types.h>
83588: #include <sys/stat.h>
83589: #include <fcntl.h>
83590: #include <unistd.h>
83591: #include <errno.h>
83592: 
83593:     main() {
83594:     int fd = open("conftest_in", O_WRONLY|O_CREAT, 0600);
83595: 
83596:     if (fd < 0) exit(1);
83597:     if (pwrite(fd, "text", 4, 0) != 4) exit(1);
83598:     /* Linux glibc breakage until 2.2.5 */
83599:     if (pwrite(fd, "text", 4, -1) != -1 || errno != EINVAL) exit(1);
83600:     exit(0);
83601:     }
83602: 
83603: 
83604: _ACEOF
83605: if ac_fn_c_try_run "$LINENO"; then :
83606: 
83607:     ac_cv_pwrite=yes
83608: 
83609: else
83610: 
83611:     ac_cv_pwrite=no
83612: 
83613: fi
83614: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
83615:   conftest.$ac_objext conftest.beam conftest.$ac_ext
83616: fi
83617: 
83618: 
83619:     if test "$ac_cv_pwrite" = "no"; then
83620: 
83621:   if test "$cross_compiling" = yes; then :
83622: 
83623:     ac_cv_pwrite=no
83624: 
83625: else
83626:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
83627: /* end confdefs.h.  */
83628: 
83629: #include <sys/types.h>
83630: #include <sys/stat.h>
83631: #include <fcntl.h>
83632: #include <unistd.h>
83633: #include <errno.h>
83634: ssize_t pwrite(int, void *, size_t, off64_t);
83635:     main() {
83636:     int fd = open("conftest_in", O_WRONLY|O_CREAT, 0600);
83637: 
83638:     if (fd < 0) exit(1);
83639:     if (pwrite(fd, "text", 4, 0) != 4) exit(1);
83640:     /* Linux glibc breakage until 2.2.5 */
83641:     if (pwrite(fd, "text", 4, -1) != -1 || errno != EINVAL) exit(1);
83642:     exit(0);
83643:     }
83644: 
83645: 
83646: _ACEOF
83647: if ac_fn_c_try_run "$LINENO"; then :
83648: 
83649:     ac_cv_pwrite=yes
83650: 
83651: else
83652: 
83653:     ac_cv_pwrite=no
83654: 
83655: fi
83656: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
83657:   conftest.$ac_objext conftest.beam conftest.$ac_ext
83658: fi
83659: 
83660: 
83661:       if test "$ac_cv_pwrite" = "yes"; then
83662:         ac_cv_pwrite=64
83663:       fi
83664:     fi
83665: 
83666: fi
83667: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pwrite" >&5
83668: $as_echo "$ac_cv_pwrite" >&6; }
83669: 
83670:   if test "$ac_cv_pwrite" != "no"; then
83671: 
83672: $as_echo "#define HAVE_PWRITE 1" >>confdefs.h
83673: 
83674:     if test "$ac_cv_pwrite" = "64"; then
83675: 
83676: $as_echo "#define PHP_PWRITE_64 1" >>confdefs.h
83677: 
83678:     fi
83679:   fi
83680: 
83681: 
83682:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pread works" >&5
83683: $as_echo_n "checking whether pread works... " >&6; }
83684: if ${ac_cv_pread+:} false; then :
83685:   $as_echo_n "(cached) " >&6
83686: else
83687: 
83688: 
83689:   echo test > conftest_in
83690:   if test "$cross_compiling" = yes; then :
83691: 
83692:     ac_cv_pread=no
83693: 
83694: else
83695:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
83696: /* end confdefs.h.  */
83697: 
83698: #include <sys/types.h>
83699: #include <sys/stat.h>
83700: #include <fcntl.h>
83701: #include <unistd.h>
83702: #include <errno.h>
83703: 
83704:     main() {
83705:     char buf[3];
83706:     int fd = open("conftest_in", O_RDONLY);
83707:     if (fd < 0) exit(1);
83708:     if (pread(fd, buf, 2, 0) != 2) exit(1);
83709:     /* Linux glibc breakage until 2.2.5 */
83710:     if (pread(fd, buf, 2, -1) != -1 || errno != EINVAL) exit(1);
83711:     exit(0);
83712:     }
83713: 
83714: _ACEOF
83715: if ac_fn_c_try_run "$LINENO"; then :
83716: 
83717:     ac_cv_pread=yes
83718: 
83719: else
83720: 
83721:     ac_cv_pread=no
83722: 
83723: fi
83724: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
83725:   conftest.$ac_objext conftest.beam conftest.$ac_ext
83726: fi
83727: 
83728:   rm -f conftest_in
83729: 
83730:     if test "$ac_cv_pread" = "no"; then
83731: 
83732:   echo test > conftest_in
83733:   if test "$cross_compiling" = yes; then :
83734: 
83735:     ac_cv_pread=no
83736: 
83737: else
83738:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
83739: /* end confdefs.h.  */
83740: 
83741: #include <sys/types.h>
83742: #include <sys/stat.h>
83743: #include <fcntl.h>
83744: #include <unistd.h>
83745: #include <errno.h>
83746: ssize_t pread(int, void *, size_t, off64_t);
83747:     main() {
83748:     char buf[3];
83749:     int fd = open("conftest_in", O_RDONLY);
83750:     if (fd < 0) exit(1);
83751:     if (pread(fd, buf, 2, 0) != 2) exit(1);
83752:     /* Linux glibc breakage until 2.2.5 */
83753:     if (pread(fd, buf, 2, -1) != -1 || errno != EINVAL) exit(1);
83754:     exit(0);
83755:     }
83756: 
83757: _ACEOF
83758: if ac_fn_c_try_run "$LINENO"; then :
83759: 
83760:     ac_cv_pread=yes
83761: 
83762: else
83763: 
83764:     ac_cv_pread=no
83765: 
83766: fi
83767: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
83768:   conftest.$ac_objext conftest.beam conftest.$ac_ext
83769: fi
83770: 
83771:   rm -f conftest_in
83772: 
83773:       if test "$ac_cv_pread" = "yes"; then
83774:         ac_cv_pread=64
83775:       fi
83776:     fi
83777: 
83778: fi
83779: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pread" >&5
83780: $as_echo "$ac_cv_pread" >&6; }
83781: 
83782:   if test "$ac_cv_pread" != "no"; then
83783: 
83784: $as_echo "#define HAVE_PREAD 1" >>confdefs.h
83785: 
83786:     if test "$ac_cv_pread" = "64"; then
83787: 
83788: $as_echo "#define PHP_PREAD_64 1" >>confdefs.h
83789: 
83790:     fi
83791:   fi
83792: 
83793: 
83794:   ext_builddir=ext/session
83795:   ext_srcdir=$abs_srcdir/ext/session
83796: 
83797:   ac_extra=
83798: 
83799:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
83800:     PHP_SESSION_SHARED=no
83801: 
83802: 
83803:   case ext/session in
83804:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
83805:   /*) ac_srcdir=`echo "ext/session"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
83806:   *) ac_srcdir="$abs_srcdir/ext/session/"; ac_bdir="ext/session/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
83807:   esac
83808: 
83809: 
83810: 
83811:   b_c_pre=$php_c_pre
83812:   b_cxx_pre=$php_cxx_pre
83813:   b_c_meta=$php_c_meta
83814:   b_cxx_meta=$php_cxx_meta
83815:   b_c_post=$php_c_post
83816:   b_cxx_post=$php_cxx_post
83817:   b_lo=$php_lo
83818: 
83819: 
83820:   old_IFS=$IFS
83821:   for ac_src in mod_user_class.c session.c mod_files.c mod_mm.c mod_user.c; do
83822: 
83823:       IFS=.
83824:       set $ac_src
83825:       ac_obj=$1
83826:       IFS=$old_IFS
83827: 
83828:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
83829: 
83830:       case $ac_src in
83831:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
83832:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
83833:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
83834:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
83835:       esac
83836: 
83837:     cat >>Makefile.objects<<EOF
83838: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
83839: 	$ac_comp
83840: EOF
83841:   done
83842: 
83843: 
83844:     EXT_STATIC="$EXT_STATIC session"
83845:     if test "$ext_shared" != "nocli"; then
83846:       EXT_CLI_STATIC="$EXT_CLI_STATIC session"
83847:     fi
83848:   else
83849:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
83850:       PHP_SESSION_SHARED=yes
83851: 
83852:   case ext/session in
83853:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
83854:   /*) ac_srcdir=`echo "ext/session"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
83855:   *) ac_srcdir="$abs_srcdir/ext/session/"; ac_bdir="ext/session/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
83856:   esac
83857: 
83858: 
83859: 
83860:   b_c_pre=$shared_c_pre
83861:   b_cxx_pre=$shared_cxx_pre
83862:   b_c_meta=$shared_c_meta
83863:   b_cxx_meta=$shared_cxx_meta
83864:   b_c_post=$shared_c_post
83865:   b_cxx_post=$shared_cxx_post
83866:   b_lo=$shared_lo
83867: 
83868: 
83869:   old_IFS=$IFS
83870:   for ac_src in mod_user_class.c session.c mod_files.c mod_mm.c mod_user.c; do
83871: 
83872:       IFS=.
83873:       set $ac_src
83874:       ac_obj=$1
83875:       IFS=$old_IFS
83876: 
83877:       shared_objects_session="$shared_objects_session $ac_bdir$ac_obj.lo"
83878: 
83879:       case $ac_src in
83880:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
83881:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
83882:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
83883:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
83884:       esac
83885: 
83886:     cat >>Makefile.objects<<EOF
83887: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
83888: 	$ac_comp
83889: EOF
83890:   done
83891: 
83892:       case $host_alias in
83893:         *netware*)
83894: 
83895:   install_modules="install-modules"
83896: 
83897:   case $host_alias in
83898:     *aix*)
83899:       suffix=so
83900:       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'
83901:       ;;
83902:     *netware*)
83903:       suffix=nlm
83904:       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)'
83905:       ;;
83906:     *)
83907:       suffix=la
83908:       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)'
83909:       ;;
83910:   esac
83911: 
83912:   if test "x" = "xyes"; then
83913:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpsession.$suffix"
83914:   else
83915:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpsession.$suffix"
83916:   fi
83917: 
83918:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_session"
83919: 
83920:   cat >>Makefile.objects<<EOF
83921: \$(phplibdir)/phpsession.$suffix: $ext_builddir/phpsession.$suffix
83922: 	\$(LIBTOOL) --mode=install cp $ext_builddir/phpsession.$suffix \$(phplibdir)
83923: 
83924: $ext_builddir/phpsession.$suffix: \$(shared_objects_session) \$(PHPSESSION_SHARED_DEPENDENCIES)
83925: 	$link_cmd
83926: 
83927: EOF
83928: 
83929:           ;;
83930:         *)
83931: 
83932:   install_modules="install-modules"
83933: 
83934:   case $host_alias in
83935:     *aix*)
83936:       suffix=so
83937:       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'
83938:       ;;
83939:     *netware*)
83940:       suffix=nlm
83941:       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)'
83942:       ;;
83943:     *)
83944:       suffix=la
83945:       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)'
83946:       ;;
83947:   esac
83948: 
83949:   if test "x" = "xyes"; then
83950:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/session.$suffix"
83951:   else
83952:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/session.$suffix"
83953:   fi
83954: 
83955:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_session"
83956: 
83957:   cat >>Makefile.objects<<EOF
83958: \$(phplibdir)/session.$suffix: $ext_builddir/session.$suffix
83959: 	\$(LIBTOOL) --mode=install cp $ext_builddir/session.$suffix \$(phplibdir)
83960: 
83961: $ext_builddir/session.$suffix: \$(shared_objects_session) \$(SESSION_SHARED_DEPENDENCIES)
83962: 	$link_cmd
83963: 
83964: EOF
83965: 
83966:           ;;
83967:       esac
83968: 
83969: cat >>confdefs.h <<_ACEOF
83970: #define COMPILE_DL_SESSION 1
83971: _ACEOF
83972: 
83973:     fi
83974:   fi
83975: 
83976:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
83977:     PHP_SESSION_SHARED=no
83978:     case "$PHP_SAPI" in
83979:       cgi|embed)
83980: 
83981: 
83982:   case ext/session in
83983:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
83984:   /*) ac_srcdir=`echo "ext/session"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
83985:   *) ac_srcdir="$abs_srcdir/ext/session/"; ac_bdir="ext/session/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
83986:   esac
83987: 
83988: 
83989: 
83990:   b_c_pre=$php_c_pre
83991:   b_cxx_pre=$php_cxx_pre
83992:   b_c_meta=$php_c_meta
83993:   b_cxx_meta=$php_cxx_meta
83994:   b_c_post=$php_c_post
83995:   b_cxx_post=$php_cxx_post
83996:   b_lo=$php_lo
83997: 
83998: 
83999:   old_IFS=$IFS
84000:   for ac_src in mod_user_class.c session.c mod_files.c mod_mm.c mod_user.c; do
84001: 
84002:       IFS=.
84003:       set $ac_src
84004:       ac_obj=$1
84005:       IFS=$old_IFS
84006: 
84007:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
84008: 
84009:       case $ac_src in
84010:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
84011:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
84012:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
84013:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
84014:       esac
84015: 
84016:     cat >>Makefile.objects<<EOF
84017: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
84018: 	$ac_comp
84019: EOF
84020:   done
84021: 
84022: 
84023:         EXT_STATIC="$EXT_STATIC session"
84024:         ;;
84025:       *)
84026: 
84027: 
84028:   case ext/session in
84029:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
84030:   /*) ac_srcdir=`echo "ext/session"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
84031:   *) ac_srcdir="$abs_srcdir/ext/session/"; ac_bdir="ext/session/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
84032:   esac
84033: 
84034: 
84035: 
84036:   b_c_pre=$php_c_pre
84037:   b_cxx_pre=$php_cxx_pre
84038:   b_c_meta=$php_c_meta
84039:   b_cxx_meta=$php_cxx_meta
84040:   b_c_post=$php_c_post
84041:   b_cxx_post=$php_cxx_post
84042:   b_lo=$php_lo
84043: 
84044: 
84045:   old_IFS=$IFS
84046:   for ac_src in mod_user_class.c session.c mod_files.c mod_mm.c mod_user.c; do
84047: 
84048:       IFS=.
84049:       set $ac_src
84050:       ac_obj=$1
84051:       IFS=$old_IFS
84052: 
84053:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
84054: 
84055:       case $ac_src in
84056:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
84057:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
84058:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
84059:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
84060:       esac
84061: 
84062:     cat >>Makefile.objects<<EOF
84063: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
84064: 	$ac_comp
84065: EOF
84066:   done
84067: 
84068: 
84069:         ;;
84070:     esac
84071:     EXT_CLI_STATIC="$EXT_CLI_STATIC session"
84072:   fi
84073: 
84074: 
84075:     BUILD_DIR="$BUILD_DIR $ext_builddir"
84076: 
84077: 
84078: 
84079:   if test "$ext_builddir" = "."; then
84080:     PHP_PECL_EXTENSION=session
84081: 
84082:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
84083: 
84084:   fi
84085: 
84086: 
84087:   am_i_shared=$PHP_SESSION_SHARED
84088:   is_it_shared=$PHP_HASH_SHARED
84089:   is_it_enabled=$PHP_HASH
84090:   if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
84091:     as_fn_error $? "
84092: You've configured extension session to build statically, but it
84093: depends on extension hash, which you've configured to build shared.
84094: You either need to build session shared or build hash statically for the
84095: build to be successful.
84096: " "$LINENO" 5
84097:   fi
84098:   if test "x$is_it_enabled" = "xno" && test "xtrue" != "xtrue"; then
84099:     as_fn_error $? "
84100: You've configured extension session, which depends on extension hash,
84101: but you've either not enabled hash, or have disabled it.
84102: " "$LINENO" 5
84103:   fi
84104: 
84105: 
84106:   am_i_shared=$PHP_SESSION_SHARED
84107:   is_it_shared=$PHP_SPL_SHARED
84108:   is_it_enabled=$PHP_SPL
84109:   if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
84110:     as_fn_error $? "
84111: You've configured extension session to build statically, but it
84112: depends on extension spl, which you've configured to build shared.
84113: You either need to build session shared or build spl statically for the
84114: build to be successful.
84115: " "$LINENO" 5
84116:   fi
84117:   if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then
84118:     as_fn_error $? "
84119: You've configured extension session, which depends on extension spl,
84120: but you've either not enabled spl, or have disabled it.
84121: " "$LINENO" 5
84122:   fi
84123: 
84124: 
84125:   PHP_VAR_SUBST="$PHP_VAR_SUBST SESSION_SHARED_LIBADD"
84126: 
84127: 
84128: 
84129:     header_path=ext/session
84130:     for header_file in php_session.h mod_files.h mod_user.h; do
84131:       hp_hf="$header_path/$header_file"
84132: 
84133: 
84134:   unique=`echo $hp_hf|$SED 's/[^a-zA-Z0-9]/_/g'`
84135: 
84136:   cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
84137:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
84138:     eval "INSTALLHEADERS$unique=set"
84139: 
84140:         INSTALL_HEADERS="$INSTALL_HEADERS $hp_hf"
84141: 
84142:   fi
84143: 
84144:     done
84145: 
84146: 
84147: 
84148: $as_echo "#define HAVE_PHP_SESSION 1" >>confdefs.h
84149: 
84150: fi
84151: 
84152: if test "$PHP_MM" != "no"; then
84153:   for i in $PHP_MM /usr/local /usr; do
84154:     test -f "$i/include/mm.h" && MM_DIR=$i && break
84155:   done
84156: 
84157:   if test -z "$MM_DIR" ; then
84158:     as_fn_error $? "cannot find mm library" "$LINENO" 5
84159:   fi
84160: 
84161: 
84162: 
84163:   if test "$ext_shared" = "yes"; then
84164:     SESSION_SHARED_LIBADD="-lmm $SESSION_SHARED_LIBADD"
84165:     if test -n "$MM_DIR/$PHP_LIBDIR"; then
84166: 
84167:   if test "$MM_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$MM_DIR/$PHP_LIBDIR" != "/usr/lib"; then
84168: 
84169:   if test -z "$MM_DIR/$PHP_LIBDIR" || echo "$MM_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
84170:     ai_p=$MM_DIR/$PHP_LIBDIR
84171:   else
84172: 
84173:     ep_dir=`echo $MM_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
84174: 
84175:     ep_realdir=`(cd "$ep_dir" && pwd)`
84176:     ai_p="$ep_realdir"/`basename "$MM_DIR/$PHP_LIBDIR"`
84177:   fi
84178: 
84179: 
84180:       if test "$ext_shared" = "yes"; then
84181:         SESSION_SHARED_LIBADD="-L$ai_p $SESSION_SHARED_LIBADD"
84182:         test -n "$ld_runpath_switch" && SESSION_SHARED_LIBADD="$ld_runpath_switch$ai_p $SESSION_SHARED_LIBADD"
84183:       else
84184: 
84185: 
84186: 
84187:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
84188: 
84189:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
84190:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
84191:     eval "LIBPATH$unique=set"
84192: 
84193:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
84194:     LDFLAGS="$LDFLAGS -L$ai_p"
84195:     PHP_RPATHS="$PHP_RPATHS $ai_p"
84196: 
84197:   fi
84198: 
84199: 
84200:       fi
84201: 
84202:   fi
84203: 
84204:     fi
84205:   else
84206: 
84207: 
84208:   if test -n "$MM_DIR/$PHP_LIBDIR"; then
84209: 
84210:   if test "$MM_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$MM_DIR/$PHP_LIBDIR" != "/usr/lib"; then
84211: 
84212:   if test -z "$MM_DIR/$PHP_LIBDIR" || echo "$MM_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
84213:     ai_p=$MM_DIR/$PHP_LIBDIR
84214:   else
84215: 
84216:     ep_dir=`echo $MM_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
84217: 
84218:     ep_realdir=`(cd "$ep_dir" && pwd)`
84219:     ai_p="$ep_realdir"/`basename "$MM_DIR/$PHP_LIBDIR"`
84220:   fi
84221: 
84222: 
84223: 
84224: 
84225: 
84226:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
84227: 
84228:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
84229:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
84230:     eval "LIBPATH$unique=set"
84231: 
84232:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
84233:     LDFLAGS="$LDFLAGS -L$ai_p"
84234:     PHP_RPATHS="$PHP_RPATHS $ai_p"
84235: 
84236:   fi
84237: 
84238: 
84239: 
84240:   fi
84241: 
84242:   fi
84243: 
84244: 
84245:   case mm in
84246:   c|c_r|pthread*) ;;
84247:   *)
84248:       LIBS="-lmm $LIBS"
84249:    ;;
84250:   esac
84251: 
84252: 
84253: 
84254: 
84255:   fi
84256: 
84257: 
84258: 
84259:   if test "$MM_DIR/include" != "/usr/include"; then
84260: 
84261:   if test -z "$MM_DIR/include" || echo "$MM_DIR/include" | grep '^/' >/dev/null ; then
84262:     ai_p=$MM_DIR/include
84263:   else
84264: 
84265:     ep_dir=`echo $MM_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`
84266: 
84267:     ep_realdir=`(cd "$ep_dir" && pwd)`
84268:     ai_p="$ep_realdir"/`basename "$MM_DIR/include"`
84269:   fi
84270: 
84271: 
84272: 
84273:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
84274: 
84275:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
84276:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
84277:     eval "INCLUDEPATH$unique=set"
84278: 
84279:       if test ""; then
84280:         INCLUDES="-I$ai_p $INCLUDES"
84281:       else
84282:         INCLUDES="$INCLUDES -I$ai_p"
84283:       fi
84284: 
84285:   fi
84286: 
84287:   fi
84288: 
84289: 
84290: 
84291:     for header_file in ext/session/mod_mm.h; do
84292: 
84293: 
84294:   unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
84295: 
84296:   cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
84297:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
84298:     eval "INSTALLHEADERS$unique=set"
84299: 
84300:         INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
84301: 
84302:   fi
84303: 
84304:     done
84305: 
84306: 
84307: 
84308: $as_echo "#define HAVE_LIBMM 1" >>confdefs.h
84309: 
84310: fi
84311: 
84312: 
84313: php_enable_shmop=no
84314: 
84315: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable shmop support" >&5
84316: $as_echo_n "checking whether to enable shmop support... " >&6; }
84317: # Check whether --enable-shmop was given.
84318: if test "${enable_shmop+set}" = set; then :
84319:   enableval=$enable_shmop; PHP_SHMOP=$enableval
84320: else
84321: 
84322:   PHP_SHMOP=no
84323:   test "$PHP_ENABLE_ALL" && PHP_SHMOP=$PHP_ENABLE_ALL
84324: 
84325: fi
84326: 
84327: 
84328: 
84329: ext_output="yes, shared"
84330: ext_shared=yes
84331: case $PHP_SHMOP in
84332: shared,*)
84333:   PHP_SHMOP=`echo "$PHP_SHMOP"|$SED 's/^shared,//'`
84334:   ;;
84335: shared)
84336:   PHP_SHMOP=yes
84337:   ;;
84338: no)
84339:   ext_output=no
84340:   ext_shared=no
84341:   ;;
84342: *)
84343:   ext_output=yes
84344:   ext_shared=no
84345:   ;;
84346: esac
84347: 
84348: 
84349: 
84350: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
84351: $as_echo "$ext_output" >&6; }
84352: 
84353: 
84354: 
84355: 
84356: if test "$PHP_SHMOP" != "no"; then
84357: 
84358: $as_echo "#define HAVE_SHMOP 1" >>confdefs.h
84359: 
84360: 
84361:   ext_builddir=ext/shmop
84362:   ext_srcdir=$abs_srcdir/ext/shmop
84363: 
84364:   ac_extra=
84365: 
84366:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
84367:     PHP_SHMOP_SHARED=no
84368: 
84369: 
84370:   case ext/shmop in
84371:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
84372:   /*) ac_srcdir=`echo "ext/shmop"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
84373:   *) ac_srcdir="$abs_srcdir/ext/shmop/"; ac_bdir="ext/shmop/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
84374:   esac
84375: 
84376: 
84377: 
84378:   b_c_pre=$php_c_pre
84379:   b_cxx_pre=$php_cxx_pre
84380:   b_c_meta=$php_c_meta
84381:   b_cxx_meta=$php_cxx_meta
84382:   b_c_post=$php_c_post
84383:   b_cxx_post=$php_cxx_post
84384:   b_lo=$php_lo
84385: 
84386: 
84387:   old_IFS=$IFS
84388:   for ac_src in shmop.c; do
84389: 
84390:       IFS=.
84391:       set $ac_src
84392:       ac_obj=$1
84393:       IFS=$old_IFS
84394: 
84395:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
84396: 
84397:       case $ac_src in
84398:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
84399:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
84400:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
84401:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
84402:       esac
84403: 
84404:     cat >>Makefile.objects<<EOF
84405: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
84406: 	$ac_comp
84407: EOF
84408:   done
84409: 
84410: 
84411:     EXT_STATIC="$EXT_STATIC shmop"
84412:     if test "$ext_shared" != "nocli"; then
84413:       EXT_CLI_STATIC="$EXT_CLI_STATIC shmop"
84414:     fi
84415:   else
84416:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
84417:       PHP_SHMOP_SHARED=yes
84418: 
84419:   case ext/shmop in
84420:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
84421:   /*) ac_srcdir=`echo "ext/shmop"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
84422:   *) ac_srcdir="$abs_srcdir/ext/shmop/"; ac_bdir="ext/shmop/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
84423:   esac
84424: 
84425: 
84426: 
84427:   b_c_pre=$shared_c_pre
84428:   b_cxx_pre=$shared_cxx_pre
84429:   b_c_meta=$shared_c_meta
84430:   b_cxx_meta=$shared_cxx_meta
84431:   b_c_post=$shared_c_post
84432:   b_cxx_post=$shared_cxx_post
84433:   b_lo=$shared_lo
84434: 
84435: 
84436:   old_IFS=$IFS
84437:   for ac_src in shmop.c; do
84438: 
84439:       IFS=.
84440:       set $ac_src
84441:       ac_obj=$1
84442:       IFS=$old_IFS
84443: 
84444:       shared_objects_shmop="$shared_objects_shmop $ac_bdir$ac_obj.lo"
84445: 
84446:       case $ac_src in
84447:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
84448:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
84449:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
84450:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
84451:       esac
84452: 
84453:     cat >>Makefile.objects<<EOF
84454: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
84455: 	$ac_comp
84456: EOF
84457:   done
84458: 
84459:       case $host_alias in
84460:         *netware*)
84461: 
84462:   install_modules="install-modules"
84463: 
84464:   case $host_alias in
84465:     *aix*)
84466:       suffix=so
84467:       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'
84468:       ;;
84469:     *netware*)
84470:       suffix=nlm
84471:       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)'
84472:       ;;
84473:     *)
84474:       suffix=la
84475:       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)'
84476:       ;;
84477:   esac
84478: 
84479:   if test "x" = "xyes"; then
84480:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpshmop.$suffix"
84481:   else
84482:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpshmop.$suffix"
84483:   fi
84484: 
84485:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_shmop"
84486: 
84487:   cat >>Makefile.objects<<EOF
84488: \$(phplibdir)/phpshmop.$suffix: $ext_builddir/phpshmop.$suffix
84489: 	\$(LIBTOOL) --mode=install cp $ext_builddir/phpshmop.$suffix \$(phplibdir)
84490: 
84491: $ext_builddir/phpshmop.$suffix: \$(shared_objects_shmop) \$(PHPSHMOP_SHARED_DEPENDENCIES)
84492: 	$link_cmd
84493: 
84494: EOF
84495: 
84496:           ;;
84497:         *)
84498: 
84499:   install_modules="install-modules"
84500: 
84501:   case $host_alias in
84502:     *aix*)
84503:       suffix=so
84504:       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'
84505:       ;;
84506:     *netware*)
84507:       suffix=nlm
84508:       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)'
84509:       ;;
84510:     *)
84511:       suffix=la
84512:       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)'
84513:       ;;
84514:   esac
84515: 
84516:   if test "x" = "xyes"; then
84517:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/shmop.$suffix"
84518:   else
84519:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/shmop.$suffix"
84520:   fi
84521: 
84522:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_shmop"
84523: 
84524:   cat >>Makefile.objects<<EOF
84525: \$(phplibdir)/shmop.$suffix: $ext_builddir/shmop.$suffix
84526: 	\$(LIBTOOL) --mode=install cp $ext_builddir/shmop.$suffix \$(phplibdir)
84527: 
84528: $ext_builddir/shmop.$suffix: \$(shared_objects_shmop) \$(SHMOP_SHARED_DEPENDENCIES)
84529: 	$link_cmd
84530: 
84531: EOF
84532: 
84533:           ;;
84534:       esac
84535: 
84536: cat >>confdefs.h <<_ACEOF
84537: #define COMPILE_DL_SHMOP 1
84538: _ACEOF
84539: 
84540:     fi
84541:   fi
84542: 
84543:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
84544:     PHP_SHMOP_SHARED=no
84545:     case "$PHP_SAPI" in
84546:       cgi|embed)
84547: 
84548: 
84549:   case ext/shmop in
84550:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
84551:   /*) ac_srcdir=`echo "ext/shmop"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
84552:   *) ac_srcdir="$abs_srcdir/ext/shmop/"; ac_bdir="ext/shmop/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
84553:   esac
84554: 
84555: 
84556: 
84557:   b_c_pre=$php_c_pre
84558:   b_cxx_pre=$php_cxx_pre
84559:   b_c_meta=$php_c_meta
84560:   b_cxx_meta=$php_cxx_meta
84561:   b_c_post=$php_c_post
84562:   b_cxx_post=$php_cxx_post
84563:   b_lo=$php_lo
84564: 
84565: 
84566:   old_IFS=$IFS
84567:   for ac_src in shmop.c; do
84568: 
84569:       IFS=.
84570:       set $ac_src
84571:       ac_obj=$1
84572:       IFS=$old_IFS
84573: 
84574:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
84575: 
84576:       case $ac_src in
84577:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
84578:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
84579:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
84580:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
84581:       esac
84582: 
84583:     cat >>Makefile.objects<<EOF
84584: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
84585: 	$ac_comp
84586: EOF
84587:   done
84588: 
84589: 
84590:         EXT_STATIC="$EXT_STATIC shmop"
84591:         ;;
84592:       *)
84593: 
84594: 
84595:   case ext/shmop in
84596:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
84597:   /*) ac_srcdir=`echo "ext/shmop"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
84598:   *) ac_srcdir="$abs_srcdir/ext/shmop/"; ac_bdir="ext/shmop/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
84599:   esac
84600: 
84601: 
84602: 
84603:   b_c_pre=$php_c_pre
84604:   b_cxx_pre=$php_cxx_pre
84605:   b_c_meta=$php_c_meta
84606:   b_cxx_meta=$php_cxx_meta
84607:   b_c_post=$php_c_post
84608:   b_cxx_post=$php_cxx_post
84609:   b_lo=$php_lo
84610: 
84611: 
84612:   old_IFS=$IFS
84613:   for ac_src in shmop.c; do
84614: 
84615:       IFS=.
84616:       set $ac_src
84617:       ac_obj=$1
84618:       IFS=$old_IFS
84619: 
84620:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
84621: 
84622:       case $ac_src in
84623:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
84624:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
84625:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
84626:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
84627:       esac
84628: 
84629:     cat >>Makefile.objects<<EOF
84630: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
84631: 	$ac_comp
84632: EOF
84633:   done
84634: 
84635: 
84636:         ;;
84637:     esac
84638:     EXT_CLI_STATIC="$EXT_CLI_STATIC shmop"
84639:   fi
84640: 
84641: 
84642:     BUILD_DIR="$BUILD_DIR $ext_builddir"
84643: 
84644: 
84645: 
84646:   if test "$ext_builddir" = "."; then
84647:     PHP_PECL_EXTENSION=shmop
84648: 
84649:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
84650: 
84651:   fi
84652: 
84653: fi
84654: 
84655: 
84656: 
84657: php_enable_simplexml=yes
84658: 
84659: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable SimpleXML support" >&5
84660: $as_echo_n "checking whether to enable SimpleXML support... " >&6; }
84661: # Check whether --enable-simplexml was given.
84662: if test "${enable_simplexml+set}" = set; then :
84663:   enableval=$enable_simplexml; PHP_SIMPLEXML=$enableval
84664: else
84665: 
84666:   PHP_SIMPLEXML=yes
84667:   test "$PHP_ENABLE_ALL" && PHP_SIMPLEXML=$PHP_ENABLE_ALL
84668: 
84669: fi
84670: 
84671: 
84672: 
84673: ext_output="yes, shared"
84674: ext_shared=yes
84675: case $PHP_SIMPLEXML in
84676: shared,*)
84677:   PHP_SIMPLEXML=`echo "$PHP_SIMPLEXML"|$SED 's/^shared,//'`
84678:   ;;
84679: shared)
84680:   PHP_SIMPLEXML=yes
84681:   ;;
84682: no)
84683:   ext_output=no
84684:   ext_shared=no
84685:   ;;
84686: *)
84687:   ext_output=yes
84688:   ext_shared=no
84689:   ;;
84690: esac
84691: 
84692: 
84693: 
84694: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
84695: $as_echo "$ext_output" >&6; }
84696: 
84697: 
84698: 
84699: 
84700: if test -z "$PHP_LIBXML_DIR"; then
84701: 
84702: php_with_libxml_dir=no
84703: 
84704: { $as_echo "$as_me:${as_lineno-$LINENO}: checking libxml2 install dir" >&5
84705: $as_echo_n "checking libxml2 install dir... " >&6; }
84706: 
84707: # Check whether --with-libxml-dir was given.
84708: if test "${with_libxml_dir+set}" = set; then :
84709:   withval=$with_libxml_dir; PHP_LIBXML_DIR=$withval
84710: else
84711: 
84712:   PHP_LIBXML_DIR=no
84713: 
84714: 
84715: fi
84716: 
84717: 
84718: ext_output=$PHP_LIBXML_DIR
84719: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
84720: $as_echo "$ext_output" >&6; }
84721: 
84722: 
84723: 
84724: fi
84725: 
84726: if test "$PHP_SIMPLEXML" != "no"; then
84727: 
84728:   if test "$PHP_LIBXML" = "no"; then
84729:     as_fn_error $? "SimpleXML extension requires LIBXML extension, add --enable-libxml" "$LINENO" 5
84730:   fi
84731: 
84732: 
84733: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xml2-config path" >&5
84734: $as_echo_n "checking for xml2-config path... " >&6; }
84735: if ${ac_cv_php_xml2_config_path+:} false; then :
84736:   $as_echo_n "(cached) " >&6
84737: else
84738: 
84739:   for i in $PHP_LIBXML_DIR /usr/local /usr; do
84740:     if test -x "$i/bin/xml2-config"; then
84741:       ac_cv_php_xml2_config_path="$i/bin/xml2-config"
84742:       break
84743:     fi
84744:   done
84745: 
84746: fi
84747: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_php_xml2_config_path" >&5
84748: $as_echo "$ac_cv_php_xml2_config_path" >&6; }
84749: 
84750:   if test -x "$ac_cv_php_xml2_config_path"; then
84751:     XML2_CONFIG="$ac_cv_php_xml2_config_path"
84752:     libxml_full_version=`$XML2_CONFIG --version`
84753:     ac_IFS=$IFS
84754:     IFS="."
84755:     set $libxml_full_version
84756:     IFS=$ac_IFS
84757:     LIBXML_VERSION=`expr $1 \* 1000000 + $2 \* 1000 + $3`
84758:     if test "$LIBXML_VERSION" -ge "2006011"; then
84759:       LIBXML_LIBS=`$XML2_CONFIG --libs`
84760:       LIBXML_INCS=`$XML2_CONFIG --cflags`
84761: 
84762:   for ac_i in $LIBXML_LIBS; do
84763:     case $ac_i in
84764:     -pthread)
84765:       if test "$ext_shared" = "yes"; then
84766:         SIMPLEXML_SHARED_LIBADD="$SIMPLEXML_SHARED_LIBADD -pthread"
84767:       else
84768: 
84769: 
84770:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
84771: 
84772:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
84773:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
84774:     eval "EXTRA_LDFLAGS$unique=set"
84775:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
84776:   fi
84777: 
84778:       fi
84779:     ;;
84780:     -l*)
84781:       ac_ii=`echo $ac_i|cut -c 3-`
84782: 
84783: 
84784:   case $ac_ii in
84785:   c|c_r|pthread*) ;;
84786:   *)
84787:     if test "$ext_shared" = "yes"; then
84788:         SIMPLEXML_SHARED_LIBADD="$SIMPLEXML_SHARED_LIBADD -l$ac_ii"
84789:     else
84790: 
84791: 
84792:   case $ac_ii in
84793:   c|c_r|pthread*) ;;
84794:   *)
84795:       LIBS="$LIBS -l$ac_ii"
84796:    ;;
84797:   esac
84798: 
84799: 
84800:     fi
84801:    ;;
84802:   esac
84803: 
84804: 
84805:     ;;
84806:     -L*)
84807:       ac_ii=`echo $ac_i|cut -c 3-`
84808: 
84809:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
84810: 
84811:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
84812:     ai_p=$ac_ii
84813:   else
84814: 
84815:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
84816: 
84817:     ep_realdir=`(cd "$ep_dir" && pwd)`
84818:     ai_p="$ep_realdir"/`basename "$ac_ii"`
84819:   fi
84820: 
84821: 
84822:       if test "$ext_shared" = "yes"; then
84823:         SIMPLEXML_SHARED_LIBADD="-L$ai_p $SIMPLEXML_SHARED_LIBADD"
84824:         test -n "$ld_runpath_switch" && SIMPLEXML_SHARED_LIBADD="$ld_runpath_switch$ai_p $SIMPLEXML_SHARED_LIBADD"
84825:       else
84826: 
84827: 
84828: 
84829:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
84830: 
84831:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
84832:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
84833:     eval "LIBPATH$unique=set"
84834: 
84835:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
84836:     LDFLAGS="$LDFLAGS -L$ai_p"
84837:     PHP_RPATHS="$PHP_RPATHS $ai_p"
84838: 
84839:   fi
84840: 
84841: 
84842:       fi
84843: 
84844:   fi
84845: 
84846:     ;;
84847:     esac
84848:   done
84849: 
84850: 
84851:   for ac_i in $LIBXML_INCS; do
84852:     case $ac_i in
84853:     -I*)
84854:       ac_ii=`echo $ac_i|cut -c 3-`
84855: 
84856:   if test "$ac_ii" != "/usr/include"; then
84857: 
84858:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
84859:     ai_p=$ac_ii
84860:   else
84861: 
84862:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
84863: 
84864:     ep_realdir=`(cd "$ep_dir" && pwd)`
84865:     ai_p="$ep_realdir"/`basename "$ac_ii"`
84866:   fi
84867: 
84868: 
84869: 
84870:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
84871: 
84872:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
84873:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
84874:     eval "INCLUDEPATH$unique=set"
84875: 
84876:       if test ""; then
84877:         INCLUDES="-I$ai_p $INCLUDES"
84878:       else
84879:         INCLUDES="$INCLUDES -I$ai_p"
84880:       fi
84881: 
84882:   fi
84883: 
84884:   fi
84885: 
84886:     ;;
84887:     esac
84888:   done
84889: 
84890: 
84891:             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libxml build works" >&5
84892: $as_echo_n "checking whether libxml build works... " >&6; }
84893: if ${php_cv_libxml_build_works+:} false; then :
84894:   $as_echo_n "(cached) " >&6
84895: else
84896: 
84897: 
84898:   old_LIBS=$LIBS
84899:   LIBS="
84900:           $SIMPLEXML_SHARED_LIBADD
84901:          $LIBS"
84902:   if test "$cross_compiling" = yes; then :
84903: 
84904:     LIBS=$old_LIBS
84905: 
84906: else
84907:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
84908: /* end confdefs.h.  */
84909: 
84910: 
84911:     char xmlInitParser();
84912:     int main() {
84913:       xmlInitParser();
84914:       return 0;
84915:     }
84916: 
84917: _ACEOF
84918: if ac_fn_c_try_run "$LINENO"; then :
84919: 
84920:     LIBS=$old_LIBS
84921: 
84922:           php_cv_libxml_build_works=yes
84923: 
84924: 
84925: else
84926: 
84927:     LIBS=$old_LIBS
84928: 
84929:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
84930: $as_echo "no" >&6; }
84931:           as_fn_error $? "build test failed.  Please check the config.log for details." "$LINENO" 5
84932: 
84933: 
84934: fi
84935: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
84936:   conftest.$ac_objext conftest.beam conftest.$ac_ext
84937: fi
84938: 
84939: 
84940: 
84941: fi
84942: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_libxml_build_works" >&5
84943: $as_echo "$php_cv_libxml_build_works" >&6; }
84944:       if test "$php_cv_libxml_build_works" = "yes"; then
84945: 
84946: $as_echo "#define HAVE_LIBXML 1" >>confdefs.h
84947: 
84948:       fi
84949: 
84950: 
84951: $as_echo "#define HAVE_SIMPLEXML 1" >>confdefs.h
84952: 
84953: 
84954:   ext_builddir=ext/simplexml
84955:   ext_srcdir=$abs_srcdir/ext/simplexml
84956: 
84957:   ac_extra=
84958: 
84959:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
84960:     PHP_SIMPLEXML_SHARED=no
84961: 
84962: 
84963:   case ext/simplexml in
84964:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
84965:   /*) ac_srcdir=`echo "ext/simplexml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
84966:   *) ac_srcdir="$abs_srcdir/ext/simplexml/"; ac_bdir="ext/simplexml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
84967:   esac
84968: 
84969: 
84970: 
84971:   b_c_pre=$php_c_pre
84972:   b_cxx_pre=$php_cxx_pre
84973:   b_c_meta=$php_c_meta
84974:   b_cxx_meta=$php_cxx_meta
84975:   b_c_post=$php_c_post
84976:   b_cxx_post=$php_cxx_post
84977:   b_lo=$php_lo
84978: 
84979: 
84980:   old_IFS=$IFS
84981:   for ac_src in simplexml.c sxe.c; do
84982: 
84983:       IFS=.
84984:       set $ac_src
84985:       ac_obj=$1
84986:       IFS=$old_IFS
84987: 
84988:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
84989: 
84990:       case $ac_src in
84991:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
84992:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
84993:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
84994:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
84995:       esac
84996: 
84997:     cat >>Makefile.objects<<EOF
84998: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
84999: 	$ac_comp
85000: EOF
85001:   done
85002: 
85003: 
85004:     EXT_STATIC="$EXT_STATIC simplexml"
85005:     if test "$ext_shared" != "nocli"; then
85006:       EXT_CLI_STATIC="$EXT_CLI_STATIC simplexml"
85007:     fi
85008:   else
85009:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
85010:       PHP_SIMPLEXML_SHARED=yes
85011: 
85012:   case ext/simplexml in
85013:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
85014:   /*) ac_srcdir=`echo "ext/simplexml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
85015:   *) ac_srcdir="$abs_srcdir/ext/simplexml/"; ac_bdir="ext/simplexml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
85016:   esac
85017: 
85018: 
85019: 
85020:   b_c_pre=$shared_c_pre
85021:   b_cxx_pre=$shared_cxx_pre
85022:   b_c_meta=$shared_c_meta
85023:   b_cxx_meta=$shared_cxx_meta
85024:   b_c_post=$shared_c_post
85025:   b_cxx_post=$shared_cxx_post
85026:   b_lo=$shared_lo
85027: 
85028: 
85029:   old_IFS=$IFS
85030:   for ac_src in simplexml.c sxe.c; do
85031: 
85032:       IFS=.
85033:       set $ac_src
85034:       ac_obj=$1
85035:       IFS=$old_IFS
85036: 
85037:       shared_objects_simplexml="$shared_objects_simplexml $ac_bdir$ac_obj.lo"
85038: 
85039:       case $ac_src in
85040:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
85041:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
85042:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
85043:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
85044:       esac
85045: 
85046:     cat >>Makefile.objects<<EOF
85047: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
85048: 	$ac_comp
85049: EOF
85050:   done
85051: 
85052:       case $host_alias in
85053:         *netware*)
85054: 
85055:   install_modules="install-modules"
85056: 
85057:   case $host_alias in
85058:     *aix*)
85059:       suffix=so
85060:       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'
85061:       ;;
85062:     *netware*)
85063:       suffix=nlm
85064:       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)'
85065:       ;;
85066:     *)
85067:       suffix=la
85068:       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)'
85069:       ;;
85070:   esac
85071: 
85072:   if test "x" = "xyes"; then
85073:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpsimplexml.$suffix"
85074:   else
85075:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpsimplexml.$suffix"
85076:   fi
85077: 
85078:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_simplexml"
85079: 
85080:   cat >>Makefile.objects<<EOF
85081: \$(phplibdir)/phpsimplexml.$suffix: $ext_builddir/phpsimplexml.$suffix
85082: 	\$(LIBTOOL) --mode=install cp $ext_builddir/phpsimplexml.$suffix \$(phplibdir)
85083: 
85084: $ext_builddir/phpsimplexml.$suffix: \$(shared_objects_simplexml) \$(PHPSIMPLEXML_SHARED_DEPENDENCIES)
85085: 	$link_cmd
85086: 
85087: EOF
85088: 
85089:           ;;
85090:         *)
85091: 
85092:   install_modules="install-modules"
85093: 
85094:   case $host_alias in
85095:     *aix*)
85096:       suffix=so
85097:       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'
85098:       ;;
85099:     *netware*)
85100:       suffix=nlm
85101:       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)'
85102:       ;;
85103:     *)
85104:       suffix=la
85105:       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)'
85106:       ;;
85107:   esac
85108: 
85109:   if test "x" = "xyes"; then
85110:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/simplexml.$suffix"
85111:   else
85112:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/simplexml.$suffix"
85113:   fi
85114: 
85115:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_simplexml"
85116: 
85117:   cat >>Makefile.objects<<EOF
85118: \$(phplibdir)/simplexml.$suffix: $ext_builddir/simplexml.$suffix
85119: 	\$(LIBTOOL) --mode=install cp $ext_builddir/simplexml.$suffix \$(phplibdir)
85120: 
85121: $ext_builddir/simplexml.$suffix: \$(shared_objects_simplexml) \$(SIMPLEXML_SHARED_DEPENDENCIES)
85122: 	$link_cmd
85123: 
85124: EOF
85125: 
85126:           ;;
85127:       esac
85128: 
85129: cat >>confdefs.h <<_ACEOF
85130: #define COMPILE_DL_SIMPLEXML 1
85131: _ACEOF
85132: 
85133:     fi
85134:   fi
85135: 
85136:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
85137:     PHP_SIMPLEXML_SHARED=no
85138:     case "$PHP_SAPI" in
85139:       cgi|embed)
85140: 
85141: 
85142:   case ext/simplexml in
85143:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
85144:   /*) ac_srcdir=`echo "ext/simplexml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
85145:   *) ac_srcdir="$abs_srcdir/ext/simplexml/"; ac_bdir="ext/simplexml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
85146:   esac
85147: 
85148: 
85149: 
85150:   b_c_pre=$php_c_pre
85151:   b_cxx_pre=$php_cxx_pre
85152:   b_c_meta=$php_c_meta
85153:   b_cxx_meta=$php_cxx_meta
85154:   b_c_post=$php_c_post
85155:   b_cxx_post=$php_cxx_post
85156:   b_lo=$php_lo
85157: 
85158: 
85159:   old_IFS=$IFS
85160:   for ac_src in simplexml.c sxe.c; do
85161: 
85162:       IFS=.
85163:       set $ac_src
85164:       ac_obj=$1
85165:       IFS=$old_IFS
85166: 
85167:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
85168: 
85169:       case $ac_src in
85170:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
85171:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
85172:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
85173:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
85174:       esac
85175: 
85176:     cat >>Makefile.objects<<EOF
85177: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
85178: 	$ac_comp
85179: EOF
85180:   done
85181: 
85182: 
85183:         EXT_STATIC="$EXT_STATIC simplexml"
85184:         ;;
85185:       *)
85186: 
85187: 
85188:   case ext/simplexml in
85189:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
85190:   /*) ac_srcdir=`echo "ext/simplexml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
85191:   *) ac_srcdir="$abs_srcdir/ext/simplexml/"; ac_bdir="ext/simplexml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
85192:   esac
85193: 
85194: 
85195: 
85196:   b_c_pre=$php_c_pre
85197:   b_cxx_pre=$php_cxx_pre
85198:   b_c_meta=$php_c_meta
85199:   b_cxx_meta=$php_cxx_meta
85200:   b_c_post=$php_c_post
85201:   b_cxx_post=$php_cxx_post
85202:   b_lo=$php_lo
85203: 
85204: 
85205:   old_IFS=$IFS
85206:   for ac_src in simplexml.c sxe.c; do
85207: 
85208:       IFS=.
85209:       set $ac_src
85210:       ac_obj=$1
85211:       IFS=$old_IFS
85212: 
85213:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
85214: 
85215:       case $ac_src in
85216:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
85217:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
85218:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
85219:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
85220:       esac
85221: 
85222:     cat >>Makefile.objects<<EOF
85223: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
85224: 	$ac_comp
85225: EOF
85226:   done
85227: 
85228: 
85229:         ;;
85230:     esac
85231:     EXT_CLI_STATIC="$EXT_CLI_STATIC simplexml"
85232:   fi
85233: 
85234: 
85235:     BUILD_DIR="$BUILD_DIR $ext_builddir"
85236: 
85237: 
85238: 
85239:   if test "$ext_builddir" = "."; then
85240:     PHP_PECL_EXTENSION=simplexml
85241: 
85242:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
85243: 
85244:   fi
85245: 
85246: 
85247:   PHP_VAR_SUBST="$PHP_VAR_SUBST SIMPLEXML_SHARED_LIBADD"
85248: 
85249: 
85250:     else
85251:       as_fn_error $? "libxml2 version 2.6.11 or greater required." "$LINENO" 5
85252:     fi
85253: else
85254:     as_fn_error $? "xml2-config not found. Please check your libxml2 installation." "$LINENO" 5
85255: 
85256:   fi
85257: 
85258: 
85259:   am_i_shared=$PHP_SIMPLEXML_SHARED
85260:   is_it_shared=$PHP_LIBXML_SHARED
85261:   is_it_enabled=$PHP_LIBXML
85262:   if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
85263:     as_fn_error $? "
85264: You've configured extension simplexml to build statically, but it
85265: depends on extension libxml, which you've configured to build shared.
85266: You either need to build simplexml shared or build libxml statically for the
85267: build to be successful.
85268: " "$LINENO" 5
85269:   fi
85270:   if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then
85271:     as_fn_error $? "
85272: You've configured extension simplexml, which depends on extension libxml,
85273: but you've either not enabled libxml, or have disabled it.
85274: " "$LINENO" 5
85275:   fi
85276: 
85277: 
85278:   am_i_shared=$PHP_SIMPLEXML_SHARED
85279:   is_it_shared=$PHP_SPL_SHARED
85280:   is_it_enabled=$PHP_SPL
85281:   if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
85282:     as_fn_error $? "
85283: You've configured extension simplexml to build statically, but it
85284: depends on extension spl, which you've configured to build shared.
85285: You either need to build simplexml shared or build spl statically for the
85286: build to be successful.
85287: " "$LINENO" 5
85288:   fi
85289:   if test "x$is_it_enabled" = "xno" && test "xtrue" != "xtrue"; then
85290:     as_fn_error $? "
85291: You've configured extension simplexml, which depends on extension spl,
85292: but you've either not enabled spl, or have disabled it.
85293: " "$LINENO" 5
85294:   fi
85295: 
85296: fi
85297: 
85298: 
85299: 
85300: php_with_snmp=no
85301: 
85302: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SNMP support" >&5
85303: $as_echo_n "checking for SNMP support... " >&6; }
85304: 
85305: # Check whether --with-snmp was given.
85306: if test "${with_snmp+set}" = set; then :
85307:   withval=$with_snmp; PHP_SNMP=$withval
85308: else
85309: 
85310:   PHP_SNMP=no
85311:   test "$PHP_ENABLE_ALL" && PHP_SNMP=$PHP_ENABLE_ALL
85312: 
85313: fi
85314: 
85315: 
85316: 
85317: ext_output="yes, shared"
85318: ext_shared=yes
85319: case $PHP_SNMP in
85320: shared,*)
85321:   PHP_SNMP=`echo "$PHP_SNMP"|$SED 's/^shared,//'`
85322:   ;;
85323: shared)
85324:   PHP_SNMP=yes
85325:   ;;
85326: no)
85327:   ext_output=no
85328:   ext_shared=no
85329:   ;;
85330: *)
85331:   ext_output=yes
85332:   ext_shared=no
85333:   ;;
85334: esac
85335: 
85336: 
85337: 
85338: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
85339: $as_echo "$ext_output" >&6; }
85340: 
85341: 
85342: 
85343: 
85344: 
85345: php_with_openssl_dir=no
85346: 
85347: { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL dir for SNMP" >&5
85348: $as_echo_n "checking OpenSSL dir for SNMP... " >&6; }
85349: 
85350: # Check whether --with-openssl-dir was given.
85351: if test "${with_openssl_dir+set}" = set; then :
85352:   withval=$with_openssl_dir; PHP_OPENSSL_DIR=$withval
85353: else
85354: 
85355:   PHP_OPENSSL_DIR=no
85356: 
85357: 
85358: fi
85359: 
85360: 
85361: ext_output=$PHP_OPENSSL_DIR
85362: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
85363: $as_echo "$ext_output" >&6; }
85364: 
85365: 
85366: 
85367: 
85368: if test "$PHP_SNMP" != "no"; then
85369: 
85370:   if test "$PHP_SNMP" = "yes"; then
85371:     # Extract the first word of "net-snmp-config", so it can be a program name with args.
85372: set dummy net-snmp-config; ac_word=$2
85373: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
85374: $as_echo_n "checking for $ac_word... " >&6; }
85375: if ${ac_cv_path_SNMP_CONFIG+:} false; then :
85376:   $as_echo_n "(cached) " >&6
85377: else
85378:   case $SNMP_CONFIG in
85379:   [\\/]* | ?:[\\/]*)
85380:   ac_cv_path_SNMP_CONFIG="$SNMP_CONFIG" # Let the user override the test with a path.
85381:   ;;
85382:   *)
85383:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
85384: as_dummy="/usr/local/bin:$PATH"
85385: for as_dir in $as_dummy
85386: do
85387:   IFS=$as_save_IFS
85388:   test -z "$as_dir" && as_dir=.
85389:     for ac_exec_ext in '' $ac_executable_extensions; do
85390:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
85391:     ac_cv_path_SNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
85392:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
85393:     break 2
85394:   fi
85395: done
85396:   done
85397: IFS=$as_save_IFS
85398: 
85399:   ;;
85400: esac
85401: fi
85402: SNMP_CONFIG=$ac_cv_path_SNMP_CONFIG
85403: if test -n "$SNMP_CONFIG"; then
85404:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMP_CONFIG" >&5
85405: $as_echo "$SNMP_CONFIG" >&6; }
85406: else
85407:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
85408: $as_echo "no" >&6; }
85409: fi
85410: 
85411: 
85412:   else
85413:     SNMP_CONFIG="$PHP_SNMP/bin/net-snmp-config"
85414:   fi
85415: 
85416:   if test -x "$SNMP_CONFIG"; then
85417:     SNMP_LIBS=`$SNMP_CONFIG --netsnmp-libs`
85418:     SNMP_LIBS="$SNMP_LIBS `$SNMP_CONFIG --external-libs`"
85419:     SNMP_PREFIX=`$SNMP_CONFIG --prefix`
85420:     snmp_full_version=`$SNMP_CONFIG --version`
85421:     ac_IFS=$IFS
85422:     IFS="."
85423:     set $snmp_full_version
85424:     IFS=$ac_IFS
85425:     SNMP_VERSION=`expr $1 \* 1000 + $2`
85426:     if test "$SNMP_VERSION" -ge "5003"; then
85427:       if test -n "$SNMP_LIBS" && test -n "$SNMP_PREFIX"; then
85428: 
85429:   if test "${SNMP_PREFIX}/include" != "/usr/include"; then
85430: 
85431:   if test -z "${SNMP_PREFIX}/include" || echo "${SNMP_PREFIX}/include" | grep '^/' >/dev/null ; then
85432:     ai_p=${SNMP_PREFIX}/include
85433:   else
85434: 
85435:     ep_dir=`echo $SNMP_PREFIX/include|$SED 's%/*[^/][^/]*/*$%%'`
85436: 
85437:     ep_realdir=`(cd "$ep_dir" && pwd)`
85438:     ai_p="$ep_realdir"/`basename "${SNMP_PREFIX}/include"`
85439:   fi
85440: 
85441: 
85442: 
85443:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
85444: 
85445:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
85446:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
85447:     eval "INCLUDEPATH$unique=set"
85448: 
85449:       if test ""; then
85450:         INCLUDES="-I$ai_p $INCLUDES"
85451:       else
85452:         INCLUDES="$INCLUDES -I$ai_p"
85453:       fi
85454: 
85455:   fi
85456: 
85457:   fi
85458: 
85459: 
85460:   for ac_i in $SNMP_LIBS; do
85461:     case $ac_i in
85462:     -pthread)
85463:       if test "$ext_shared" = "yes"; then
85464:         SNMP_SHARED_LIBADD="$SNMP_SHARED_LIBADD -pthread"
85465:       else
85466: 
85467: 
85468:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
85469: 
85470:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
85471:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
85472:     eval "EXTRA_LDFLAGS$unique=set"
85473:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
85474:   fi
85475: 
85476:       fi
85477:     ;;
85478:     -l*)
85479:       ac_ii=`echo $ac_i|cut -c 3-`
85480: 
85481: 
85482:   case $ac_ii in
85483:   c|c_r|pthread*) ;;
85484:   *)
85485:     if test "$ext_shared" = "yes"; then
85486:         SNMP_SHARED_LIBADD="$SNMP_SHARED_LIBADD -l$ac_ii"
85487:     else
85488: 
85489: 
85490:   case $ac_ii in
85491:   c|c_r|pthread*) ;;
85492:   *)
85493:       LIBS="$LIBS -l$ac_ii"
85494:    ;;
85495:   esac
85496: 
85497: 
85498:     fi
85499:    ;;
85500:   esac
85501: 
85502: 
85503:     ;;
85504:     -L*)
85505:       ac_ii=`echo $ac_i|cut -c 3-`
85506: 
85507:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
85508: 
85509:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
85510:     ai_p=$ac_ii
85511:   else
85512: 
85513:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
85514: 
85515:     ep_realdir=`(cd "$ep_dir" && pwd)`
85516:     ai_p="$ep_realdir"/`basename "$ac_ii"`
85517:   fi
85518: 
85519: 
85520:       if test "$ext_shared" = "yes"; then
85521:         SNMP_SHARED_LIBADD="-L$ai_p $SNMP_SHARED_LIBADD"
85522:         test -n "$ld_runpath_switch" && SNMP_SHARED_LIBADD="$ld_runpath_switch$ai_p $SNMP_SHARED_LIBADD"
85523:       else
85524: 
85525: 
85526: 
85527:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
85528: 
85529:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
85530:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
85531:     eval "LIBPATH$unique=set"
85532: 
85533:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
85534:     LDFLAGS="$LDFLAGS -L$ai_p"
85535:     PHP_RPATHS="$PHP_RPATHS $ai_p"
85536: 
85537:   fi
85538: 
85539: 
85540:       fi
85541: 
85542:   fi
85543: 
85544:     ;;
85545:     esac
85546:   done
85547: 
85548:         SNMP_LIBNAME=netsnmp
85549:       else
85550:         as_fn_error $? "Could not find the required paths. Please check your net-snmp installation." "$LINENO" 5
85551:       fi
85552:     else
85553:       as_fn_error $? "Net-SNMP version 5.3 or greater reqired (detected $snmp_full_version)." "$LINENO" 5
85554:     fi
85555:   else
85556:     as_fn_error $? "Could not find net-snmp-config binary. Please check your net-snmp installation." "$LINENO" 5
85557:   fi
85558: 
85559: 
85560:   save_old_LDFLAGS=$LDFLAGS
85561:   ac_stuff="
85562:     $SNMP_SHARED_LIBADD
85563:   "
85564: 
85565:   save_ext_shared=$ext_shared
85566:   ext_shared=yes
85567: 
85568:   for ac_i in $ac_stuff; do
85569:     case $ac_i in
85570:     -pthread)
85571:       if test "$ext_shared" = "yes"; then
85572:         LDFLAGS="$LDFLAGS -pthread"
85573:       else
85574: 
85575: 
85576:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
85577: 
85578:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
85579:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
85580:     eval "EXTRA_LDFLAGS$unique=set"
85581:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
85582:   fi
85583: 
85584:       fi
85585:     ;;
85586:     -l*)
85587:       ac_ii=`echo $ac_i|cut -c 3-`
85588: 
85589: 
85590:   case $ac_ii in
85591:   c|c_r|pthread*) ;;
85592:   *)
85593:     if test "$ext_shared" = "yes"; then
85594:         LDFLAGS="$LDFLAGS -l$ac_ii"
85595:     else
85596: 
85597: 
85598:   case $ac_ii in
85599:   c|c_r|pthread*) ;;
85600:   *)
85601:       LIBS="$LIBS -l$ac_ii"
85602:    ;;
85603:   esac
85604: 
85605: 
85606:     fi
85607:    ;;
85608:   esac
85609: 
85610: 
85611:     ;;
85612:     -L*)
85613:       ac_ii=`echo $ac_i|cut -c 3-`
85614: 
85615:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
85616: 
85617:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
85618:     ai_p=$ac_ii
85619:   else
85620: 
85621:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
85622: 
85623:     ep_realdir=`(cd "$ep_dir" && pwd)`
85624:     ai_p="$ep_realdir"/`basename "$ac_ii"`
85625:   fi
85626: 
85627: 
85628:       if test "$ext_shared" = "yes"; then
85629:         LDFLAGS="-L$ai_p $LDFLAGS"
85630:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
85631:       else
85632: 
85633: 
85634: 
85635:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
85636: 
85637:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
85638:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
85639:     eval "LIBPATH$unique=set"
85640: 
85641:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
85642:     LDFLAGS="$LDFLAGS -L$ai_p"
85643:     PHP_RPATHS="$PHP_RPATHS $ai_p"
85644: 
85645:   fi
85646: 
85647: 
85648:       fi
85649: 
85650:   fi
85651: 
85652:     ;;
85653:     esac
85654:   done
85655: 
85656:   as_ac_Lib=`$as_echo "ac_cv_lib_$SNMP_LIBNAME''_init_snmp" | $as_tr_sh`
85657: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for init_snmp in -l$SNMP_LIBNAME" >&5
85658: $as_echo_n "checking for init_snmp in -l$SNMP_LIBNAME... " >&6; }
85659: if eval \${$as_ac_Lib+:} false; then :
85660:   $as_echo_n "(cached) " >&6
85661: else
85662:   ac_check_lib_save_LIBS=$LIBS
85663: LIBS="-l$SNMP_LIBNAME  $LIBS"
85664: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
85665: /* end confdefs.h.  */
85666: 
85667: /* Override any GCC internal prototype to avoid an error.
85668:    Use char because int might match the return type of a GCC
85669:    builtin and then its argument prototype would still apply.  */
85670: #ifdef __cplusplus
85671: extern "C"
85672: #endif
85673: char init_snmp ();
85674: int
85675: main ()
85676: {
85677: return init_snmp ();
85678:   ;
85679:   return 0;
85680: }
85681: _ACEOF
85682: if ac_fn_c_try_link "$LINENO"; then :
85683:   eval "$as_ac_Lib=yes"
85684: else
85685:   eval "$as_ac_Lib=no"
85686: fi
85687: rm -f core conftest.err conftest.$ac_objext \
85688:     conftest$ac_exeext conftest.$ac_ext
85689: LIBS=$ac_check_lib_save_LIBS
85690: fi
85691: eval ac_res=\$$as_ac_Lib
85692: 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
85693: $as_echo "$ac_res" >&6; }
85694: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
85695: 
85696:     LDFLAGS=$save_old_LDFLAGS
85697:     ext_shared=$save_ext_shared
85698: 
85699: 
85700: $as_echo "#define HAVE_SNMP 1" >>confdefs.h
85701: 
85702: 
85703: 
85704: else
85705: 
85706:     LDFLAGS=$save_old_LDFLAGS
85707:     ext_shared=$save_ext_shared
85708:     unset ac_cv_lib_$SNMP_LIBNAME_init_snmp
85709: 
85710:     as_fn_error $? "SNMP sanity check failed. Please check config.log for more information." "$LINENO" 5
85711: 
85712: 
85713: fi
85714: 
85715: 
85716: 
85717:   save_old_LDFLAGS=$LDFLAGS
85718:   ac_stuff="
85719:     $SNMP_SHARED_LIBADD
85720:   "
85721: 
85722:   save_ext_shared=$ext_shared
85723:   ext_shared=yes
85724: 
85725:   for ac_i in $ac_stuff; do
85726:     case $ac_i in
85727:     -pthread)
85728:       if test "$ext_shared" = "yes"; then
85729:         LDFLAGS="$LDFLAGS -pthread"
85730:       else
85731: 
85732: 
85733:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
85734: 
85735:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
85736:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
85737:     eval "EXTRA_LDFLAGS$unique=set"
85738:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
85739:   fi
85740: 
85741:       fi
85742:     ;;
85743:     -l*)
85744:       ac_ii=`echo $ac_i|cut -c 3-`
85745: 
85746: 
85747:   case $ac_ii in
85748:   c|c_r|pthread*) ;;
85749:   *)
85750:     if test "$ext_shared" = "yes"; then
85751:         LDFLAGS="$LDFLAGS -l$ac_ii"
85752:     else
85753: 
85754: 
85755:   case $ac_ii in
85756:   c|c_r|pthread*) ;;
85757:   *)
85758:       LIBS="$LIBS -l$ac_ii"
85759:    ;;
85760:   esac
85761: 
85762: 
85763:     fi
85764:    ;;
85765:   esac
85766: 
85767: 
85768:     ;;
85769:     -L*)
85770:       ac_ii=`echo $ac_i|cut -c 3-`
85771: 
85772:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
85773: 
85774:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
85775:     ai_p=$ac_ii
85776:   else
85777: 
85778:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
85779: 
85780:     ep_realdir=`(cd "$ep_dir" && pwd)`
85781:     ai_p="$ep_realdir"/`basename "$ac_ii"`
85782:   fi
85783: 
85784: 
85785:       if test "$ext_shared" = "yes"; then
85786:         LDFLAGS="-L$ai_p $LDFLAGS"
85787:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
85788:       else
85789: 
85790: 
85791: 
85792:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
85793: 
85794:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
85795:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
85796:     eval "LIBPATH$unique=set"
85797: 
85798:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
85799:     LDFLAGS="$LDFLAGS -L$ai_p"
85800:     PHP_RPATHS="$PHP_RPATHS $ai_p"
85801: 
85802:   fi
85803: 
85804: 
85805:       fi
85806: 
85807:   fi
85808: 
85809:     ;;
85810:     esac
85811:   done
85812: 
85813:   as_ac_Lib=`$as_echo "ac_cv_lib_$SNMP_LIBNAME''_shutdown_snmp_logging" | $as_tr_sh`
85814: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shutdown_snmp_logging in -l$SNMP_LIBNAME" >&5
85815: $as_echo_n "checking for shutdown_snmp_logging in -l$SNMP_LIBNAME... " >&6; }
85816: if eval \${$as_ac_Lib+:} false; then :
85817:   $as_echo_n "(cached) " >&6
85818: else
85819:   ac_check_lib_save_LIBS=$LIBS
85820: LIBS="-l$SNMP_LIBNAME  $LIBS"
85821: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
85822: /* end confdefs.h.  */
85823: 
85824: /* Override any GCC internal prototype to avoid an error.
85825:    Use char because int might match the return type of a GCC
85826:    builtin and then its argument prototype would still apply.  */
85827: #ifdef __cplusplus
85828: extern "C"
85829: #endif
85830: char shutdown_snmp_logging ();
85831: int
85832: main ()
85833: {
85834: return shutdown_snmp_logging ();
85835:   ;
85836:   return 0;
85837: }
85838: _ACEOF
85839: if ac_fn_c_try_link "$LINENO"; then :
85840:   eval "$as_ac_Lib=yes"
85841: else
85842:   eval "$as_ac_Lib=no"
85843: fi
85844: rm -f core conftest.err conftest.$ac_objext \
85845:     conftest$ac_exeext conftest.$ac_ext
85846: LIBS=$ac_check_lib_save_LIBS
85847: fi
85848: eval ac_res=\$$as_ac_Lib
85849: 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
85850: $as_echo "$ac_res" >&6; }
85851: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
85852: 
85853:     LDFLAGS=$save_old_LDFLAGS
85854:     ext_shared=$save_ext_shared
85855: 
85856: 
85857: $as_echo "#define HAVE_SHUTDOWN_SNMP_LOGGING 1" >>confdefs.h
85858: 
85859: 
85860: 
85861: else
85862: 
85863:     LDFLAGS=$save_old_LDFLAGS
85864:     ext_shared=$save_ext_shared
85865:     unset ac_cv_lib_$SNMP_LIBNAME_shutdown_snmp_logging
85866: 
85867: 
85868: fi
85869: 
85870: 
85871: 
85872:   ext_builddir=ext/snmp
85873:   ext_srcdir=$abs_srcdir/ext/snmp
85874: 
85875:   ac_extra=
85876: 
85877:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
85878:     PHP_SNMP_SHARED=no
85879: 
85880: 
85881:   case ext/snmp in
85882:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
85883:   /*) ac_srcdir=`echo "ext/snmp"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
85884:   *) ac_srcdir="$abs_srcdir/ext/snmp/"; ac_bdir="ext/snmp/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
85885:   esac
85886: 
85887: 
85888: 
85889:   b_c_pre=$php_c_pre
85890:   b_cxx_pre=$php_cxx_pre
85891:   b_c_meta=$php_c_meta
85892:   b_cxx_meta=$php_cxx_meta
85893:   b_c_post=$php_c_post
85894:   b_cxx_post=$php_cxx_post
85895:   b_lo=$php_lo
85896: 
85897: 
85898:   old_IFS=$IFS
85899:   for ac_src in snmp.c; do
85900: 
85901:       IFS=.
85902:       set $ac_src
85903:       ac_obj=$1
85904:       IFS=$old_IFS
85905: 
85906:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
85907: 
85908:       case $ac_src in
85909:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
85910:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
85911:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
85912:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
85913:       esac
85914: 
85915:     cat >>Makefile.objects<<EOF
85916: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
85917: 	$ac_comp
85918: EOF
85919:   done
85920: 
85921: 
85922:     EXT_STATIC="$EXT_STATIC snmp"
85923:     if test "$ext_shared" != "nocli"; then
85924:       EXT_CLI_STATIC="$EXT_CLI_STATIC snmp"
85925:     fi
85926:   else
85927:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
85928:       PHP_SNMP_SHARED=yes
85929: 
85930:   case ext/snmp in
85931:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
85932:   /*) ac_srcdir=`echo "ext/snmp"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
85933:   *) ac_srcdir="$abs_srcdir/ext/snmp/"; ac_bdir="ext/snmp/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
85934:   esac
85935: 
85936: 
85937: 
85938:   b_c_pre=$shared_c_pre
85939:   b_cxx_pre=$shared_cxx_pre
85940:   b_c_meta=$shared_c_meta
85941:   b_cxx_meta=$shared_cxx_meta
85942:   b_c_post=$shared_c_post
85943:   b_cxx_post=$shared_cxx_post
85944:   b_lo=$shared_lo
85945: 
85946: 
85947:   old_IFS=$IFS
85948:   for ac_src in snmp.c; do
85949: 
85950:       IFS=.
85951:       set $ac_src
85952:       ac_obj=$1
85953:       IFS=$old_IFS
85954: 
85955:       shared_objects_snmp="$shared_objects_snmp $ac_bdir$ac_obj.lo"
85956: 
85957:       case $ac_src in
85958:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
85959:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
85960:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
85961:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
85962:       esac
85963: 
85964:     cat >>Makefile.objects<<EOF
85965: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
85966: 	$ac_comp
85967: EOF
85968:   done
85969: 
85970:       case $host_alias in
85971:         *netware*)
85972: 
85973:   install_modules="install-modules"
85974: 
85975:   case $host_alias in
85976:     *aix*)
85977:       suffix=so
85978:       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'
85979:       ;;
85980:     *netware*)
85981:       suffix=nlm
85982:       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)'
85983:       ;;
85984:     *)
85985:       suffix=la
85986:       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)'
85987:       ;;
85988:   esac
85989: 
85990:   if test "x" = "xyes"; then
85991:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpsnmp.$suffix"
85992:   else
85993:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpsnmp.$suffix"
85994:   fi
85995: 
85996:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_snmp"
85997: 
85998:   cat >>Makefile.objects<<EOF
85999: \$(phplibdir)/phpsnmp.$suffix: $ext_builddir/phpsnmp.$suffix
86000: 	\$(LIBTOOL) --mode=install cp $ext_builddir/phpsnmp.$suffix \$(phplibdir)
86001: 
86002: $ext_builddir/phpsnmp.$suffix: \$(shared_objects_snmp) \$(PHPSNMP_SHARED_DEPENDENCIES)
86003: 	$link_cmd
86004: 
86005: EOF
86006: 
86007:           ;;
86008:         *)
86009: 
86010:   install_modules="install-modules"
86011: 
86012:   case $host_alias in
86013:     *aix*)
86014:       suffix=so
86015:       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'
86016:       ;;
86017:     *netware*)
86018:       suffix=nlm
86019:       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)'
86020:       ;;
86021:     *)
86022:       suffix=la
86023:       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)'
86024:       ;;
86025:   esac
86026: 
86027:   if test "x" = "xyes"; then
86028:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/snmp.$suffix"
86029:   else
86030:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/snmp.$suffix"
86031:   fi
86032: 
86033:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_snmp"
86034: 
86035:   cat >>Makefile.objects<<EOF
86036: \$(phplibdir)/snmp.$suffix: $ext_builddir/snmp.$suffix
86037: 	\$(LIBTOOL) --mode=install cp $ext_builddir/snmp.$suffix \$(phplibdir)
86038: 
86039: $ext_builddir/snmp.$suffix: \$(shared_objects_snmp) \$(SNMP_SHARED_DEPENDENCIES)
86040: 	$link_cmd
86041: 
86042: EOF
86043: 
86044:           ;;
86045:       esac
86046: 
86047: cat >>confdefs.h <<_ACEOF
86048: #define COMPILE_DL_SNMP 1
86049: _ACEOF
86050: 
86051:     fi
86052:   fi
86053: 
86054:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
86055:     PHP_SNMP_SHARED=no
86056:     case "$PHP_SAPI" in
86057:       cgi|embed)
86058: 
86059: 
86060:   case ext/snmp in
86061:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
86062:   /*) ac_srcdir=`echo "ext/snmp"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
86063:   *) ac_srcdir="$abs_srcdir/ext/snmp/"; ac_bdir="ext/snmp/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
86064:   esac
86065: 
86066: 
86067: 
86068:   b_c_pre=$php_c_pre
86069:   b_cxx_pre=$php_cxx_pre
86070:   b_c_meta=$php_c_meta
86071:   b_cxx_meta=$php_cxx_meta
86072:   b_c_post=$php_c_post
86073:   b_cxx_post=$php_cxx_post
86074:   b_lo=$php_lo
86075: 
86076: 
86077:   old_IFS=$IFS
86078:   for ac_src in snmp.c; do
86079: 
86080:       IFS=.
86081:       set $ac_src
86082:       ac_obj=$1
86083:       IFS=$old_IFS
86084: 
86085:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
86086: 
86087:       case $ac_src in
86088:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
86089:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
86090:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
86091:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
86092:       esac
86093: 
86094:     cat >>Makefile.objects<<EOF
86095: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
86096: 	$ac_comp
86097: EOF
86098:   done
86099: 
86100: 
86101:         EXT_STATIC="$EXT_STATIC snmp"
86102:         ;;
86103:       *)
86104: 
86105: 
86106:   case ext/snmp in
86107:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
86108:   /*) ac_srcdir=`echo "ext/snmp"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
86109:   *) ac_srcdir="$abs_srcdir/ext/snmp/"; ac_bdir="ext/snmp/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
86110:   esac
86111: 
86112: 
86113: 
86114:   b_c_pre=$php_c_pre
86115:   b_cxx_pre=$php_cxx_pre
86116:   b_c_meta=$php_c_meta
86117:   b_cxx_meta=$php_cxx_meta
86118:   b_c_post=$php_c_post
86119:   b_cxx_post=$php_cxx_post
86120:   b_lo=$php_lo
86121: 
86122: 
86123:   old_IFS=$IFS
86124:   for ac_src in snmp.c; do
86125: 
86126:       IFS=.
86127:       set $ac_src
86128:       ac_obj=$1
86129:       IFS=$old_IFS
86130: 
86131:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
86132: 
86133:       case $ac_src in
86134:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
86135:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
86136:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
86137:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
86138:       esac
86139: 
86140:     cat >>Makefile.objects<<EOF
86141: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
86142: 	$ac_comp
86143: EOF
86144:   done
86145: 
86146: 
86147:         ;;
86148:     esac
86149:     EXT_CLI_STATIC="$EXT_CLI_STATIC snmp"
86150:   fi
86151: 
86152: 
86153:     BUILD_DIR="$BUILD_DIR $ext_builddir"
86154: 
86155: 
86156: 
86157:   if test "$ext_builddir" = "."; then
86158:     PHP_PECL_EXTENSION=snmp
86159: 
86160:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
86161: 
86162:   fi
86163: 
86164: 
86165:   PHP_VAR_SUBST="$PHP_VAR_SUBST SNMP_SHARED_LIBADD"
86166: 
86167: fi
86168: 
86169: 
86170: 
86171: php_enable_soap=no
86172: 
86173: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable SOAP support" >&5
86174: $as_echo_n "checking whether to enable SOAP support... " >&6; }
86175: # Check whether --enable-soap was given.
86176: if test "${enable_soap+set}" = set; then :
86177:   enableval=$enable_soap; PHP_SOAP=$enableval
86178: else
86179: 
86180:   PHP_SOAP=no
86181:   test "$PHP_ENABLE_ALL" && PHP_SOAP=$PHP_ENABLE_ALL
86182: 
86183: fi
86184: 
86185: 
86186: 
86187: ext_output="yes, shared"
86188: ext_shared=yes
86189: case $PHP_SOAP in
86190: shared,*)
86191:   PHP_SOAP=`echo "$PHP_SOAP"|$SED 's/^shared,//'`
86192:   ;;
86193: shared)
86194:   PHP_SOAP=yes
86195:   ;;
86196: no)
86197:   ext_output=no
86198:   ext_shared=no
86199:   ;;
86200: *)
86201:   ext_output=yes
86202:   ext_shared=no
86203:   ;;
86204: esac
86205: 
86206: 
86207: 
86208: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
86209: $as_echo "$ext_output" >&6; }
86210: 
86211: 
86212: 
86213: 
86214: if test -z "$PHP_LIBXML_DIR"; then
86215: 
86216: php_with_libxml_dir=no
86217: 
86218: { $as_echo "$as_me:${as_lineno-$LINENO}: checking libxml2 install dir" >&5
86219: $as_echo_n "checking libxml2 install dir... " >&6; }
86220: 
86221: # Check whether --with-libxml-dir was given.
86222: if test "${with_libxml_dir+set}" = set; then :
86223:   withval=$with_libxml_dir; PHP_LIBXML_DIR=$withval
86224: else
86225: 
86226:   PHP_LIBXML_DIR=no
86227: 
86228: 
86229: fi
86230: 
86231: 
86232: ext_output=$PHP_LIBXML_DIR
86233: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
86234: $as_echo "$ext_output" >&6; }
86235: 
86236: 
86237: 
86238: fi
86239: 
86240: if test "$PHP_SOAP" != "no"; then
86241: 
86242:   if test "$PHP_LIBXML" = "no"; then
86243:     as_fn_error $? "SOAP extension requires LIBXML extension, add --enable-libxml" "$LINENO" 5
86244:   fi
86245: 
86246: 
86247: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xml2-config path" >&5
86248: $as_echo_n "checking for xml2-config path... " >&6; }
86249: if ${ac_cv_php_xml2_config_path+:} false; then :
86250:   $as_echo_n "(cached) " >&6
86251: else
86252: 
86253:   for i in $PHP_LIBXML_DIR /usr/local /usr; do
86254:     if test -x "$i/bin/xml2-config"; then
86255:       ac_cv_php_xml2_config_path="$i/bin/xml2-config"
86256:       break
86257:     fi
86258:   done
86259: 
86260: fi
86261: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_php_xml2_config_path" >&5
86262: $as_echo "$ac_cv_php_xml2_config_path" >&6; }
86263: 
86264:   if test -x "$ac_cv_php_xml2_config_path"; then
86265:     XML2_CONFIG="$ac_cv_php_xml2_config_path"
86266:     libxml_full_version=`$XML2_CONFIG --version`
86267:     ac_IFS=$IFS
86268:     IFS="."
86269:     set $libxml_full_version
86270:     IFS=$ac_IFS
86271:     LIBXML_VERSION=`expr $1 \* 1000000 + $2 \* 1000 + $3`
86272:     if test "$LIBXML_VERSION" -ge "2006011"; then
86273:       LIBXML_LIBS=`$XML2_CONFIG --libs`
86274:       LIBXML_INCS=`$XML2_CONFIG --cflags`
86275: 
86276:   for ac_i in $LIBXML_LIBS; do
86277:     case $ac_i in
86278:     -pthread)
86279:       if test "$ext_shared" = "yes"; then
86280:         SOAP_SHARED_LIBADD="$SOAP_SHARED_LIBADD -pthread"
86281:       else
86282: 
86283: 
86284:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
86285: 
86286:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
86287:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
86288:     eval "EXTRA_LDFLAGS$unique=set"
86289:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
86290:   fi
86291: 
86292:       fi
86293:     ;;
86294:     -l*)
86295:       ac_ii=`echo $ac_i|cut -c 3-`
86296: 
86297: 
86298:   case $ac_ii in
86299:   c|c_r|pthread*) ;;
86300:   *)
86301:     if test "$ext_shared" = "yes"; then
86302:         SOAP_SHARED_LIBADD="$SOAP_SHARED_LIBADD -l$ac_ii"
86303:     else
86304: 
86305: 
86306:   case $ac_ii in
86307:   c|c_r|pthread*) ;;
86308:   *)
86309:       LIBS="$LIBS -l$ac_ii"
86310:    ;;
86311:   esac
86312: 
86313: 
86314:     fi
86315:    ;;
86316:   esac
86317: 
86318: 
86319:     ;;
86320:     -L*)
86321:       ac_ii=`echo $ac_i|cut -c 3-`
86322: 
86323:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
86324: 
86325:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
86326:     ai_p=$ac_ii
86327:   else
86328: 
86329:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
86330: 
86331:     ep_realdir=`(cd "$ep_dir" && pwd)`
86332:     ai_p="$ep_realdir"/`basename "$ac_ii"`
86333:   fi
86334: 
86335: 
86336:       if test "$ext_shared" = "yes"; then
86337:         SOAP_SHARED_LIBADD="-L$ai_p $SOAP_SHARED_LIBADD"
86338:         test -n "$ld_runpath_switch" && SOAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $SOAP_SHARED_LIBADD"
86339:       else
86340: 
86341: 
86342: 
86343:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
86344: 
86345:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
86346:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
86347:     eval "LIBPATH$unique=set"
86348: 
86349:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
86350:     LDFLAGS="$LDFLAGS -L$ai_p"
86351:     PHP_RPATHS="$PHP_RPATHS $ai_p"
86352: 
86353:   fi
86354: 
86355: 
86356:       fi
86357: 
86358:   fi
86359: 
86360:     ;;
86361:     esac
86362:   done
86363: 
86364: 
86365:   for ac_i in $LIBXML_INCS; do
86366:     case $ac_i in
86367:     -I*)
86368:       ac_ii=`echo $ac_i|cut -c 3-`
86369: 
86370:   if test "$ac_ii" != "/usr/include"; then
86371: 
86372:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
86373:     ai_p=$ac_ii
86374:   else
86375: 
86376:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
86377: 
86378:     ep_realdir=`(cd "$ep_dir" && pwd)`
86379:     ai_p="$ep_realdir"/`basename "$ac_ii"`
86380:   fi
86381: 
86382: 
86383: 
86384:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
86385: 
86386:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
86387:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
86388:     eval "INCLUDEPATH$unique=set"
86389: 
86390:       if test ""; then
86391:         INCLUDES="-I$ai_p $INCLUDES"
86392:       else
86393:         INCLUDES="$INCLUDES -I$ai_p"
86394:       fi
86395: 
86396:   fi
86397: 
86398:   fi
86399: 
86400:     ;;
86401:     esac
86402:   done
86403: 
86404: 
86405:             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libxml build works" >&5
86406: $as_echo_n "checking whether libxml build works... " >&6; }
86407: if ${php_cv_libxml_build_works+:} false; then :
86408:   $as_echo_n "(cached) " >&6
86409: else
86410: 
86411: 
86412:   old_LIBS=$LIBS
86413:   LIBS="
86414:           $SOAP_SHARED_LIBADD
86415:          $LIBS"
86416:   if test "$cross_compiling" = yes; then :
86417: 
86418:     LIBS=$old_LIBS
86419: 
86420: else
86421:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
86422: /* end confdefs.h.  */
86423: 
86424: 
86425:     char xmlInitParser();
86426:     int main() {
86427:       xmlInitParser();
86428:       return 0;
86429:     }
86430: 
86431: _ACEOF
86432: if ac_fn_c_try_run "$LINENO"; then :
86433: 
86434:     LIBS=$old_LIBS
86435: 
86436:           php_cv_libxml_build_works=yes
86437: 
86438: 
86439: else
86440: 
86441:     LIBS=$old_LIBS
86442: 
86443:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
86444: $as_echo "no" >&6; }
86445:           as_fn_error $? "build test failed.  Please check the config.log for details." "$LINENO" 5
86446: 
86447: 
86448: fi
86449: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
86450:   conftest.$ac_objext conftest.beam conftest.$ac_ext
86451: fi
86452: 
86453: 
86454: 
86455: fi
86456: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_libxml_build_works" >&5
86457: $as_echo "$php_cv_libxml_build_works" >&6; }
86458:       if test "$php_cv_libxml_build_works" = "yes"; then
86459: 
86460: $as_echo "#define HAVE_LIBXML 1" >>confdefs.h
86461: 
86462:       fi
86463: 
86464: 
86465: $as_echo "#define HAVE_SOAP 1" >>confdefs.h
86466: 
86467: 
86468:   ext_builddir=ext/soap
86469:   ext_srcdir=$abs_srcdir/ext/soap
86470: 
86471:   ac_extra=
86472: 
86473:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
86474:     PHP_SOAP_SHARED=no
86475: 
86476: 
86477:   case ext/soap in
86478:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
86479:   /*) ac_srcdir=`echo "ext/soap"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
86480:   *) ac_srcdir="$abs_srcdir/ext/soap/"; ac_bdir="ext/soap/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
86481:   esac
86482: 
86483: 
86484: 
86485:   b_c_pre=$php_c_pre
86486:   b_cxx_pre=$php_cxx_pre
86487:   b_c_meta=$php_c_meta
86488:   b_cxx_meta=$php_cxx_meta
86489:   b_c_post=$php_c_post
86490:   b_cxx_post=$php_cxx_post
86491:   b_lo=$php_lo
86492: 
86493: 
86494:   old_IFS=$IFS
86495:   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
86496: 
86497:       IFS=.
86498:       set $ac_src
86499:       ac_obj=$1
86500:       IFS=$old_IFS
86501: 
86502:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
86503: 
86504:       case $ac_src in
86505:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
86506:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
86507:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
86508:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
86509:       esac
86510: 
86511:     cat >>Makefile.objects<<EOF
86512: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
86513: 	$ac_comp
86514: EOF
86515:   done
86516: 
86517: 
86518:     EXT_STATIC="$EXT_STATIC soap"
86519:     if test "$ext_shared" != "nocli"; then
86520:       EXT_CLI_STATIC="$EXT_CLI_STATIC soap"
86521:     fi
86522:   else
86523:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
86524:       PHP_SOAP_SHARED=yes
86525: 
86526:   case ext/soap in
86527:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
86528:   /*) ac_srcdir=`echo "ext/soap"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
86529:   *) ac_srcdir="$abs_srcdir/ext/soap/"; ac_bdir="ext/soap/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
86530:   esac
86531: 
86532: 
86533: 
86534:   b_c_pre=$shared_c_pre
86535:   b_cxx_pre=$shared_cxx_pre
86536:   b_c_meta=$shared_c_meta
86537:   b_cxx_meta=$shared_cxx_meta
86538:   b_c_post=$shared_c_post
86539:   b_cxx_post=$shared_cxx_post
86540:   b_lo=$shared_lo
86541: 
86542: 
86543:   old_IFS=$IFS
86544:   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
86545: 
86546:       IFS=.
86547:       set $ac_src
86548:       ac_obj=$1
86549:       IFS=$old_IFS
86550: 
86551:       shared_objects_soap="$shared_objects_soap $ac_bdir$ac_obj.lo"
86552: 
86553:       case $ac_src in
86554:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
86555:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
86556:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
86557:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
86558:       esac
86559: 
86560:     cat >>Makefile.objects<<EOF
86561: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
86562: 	$ac_comp
86563: EOF
86564:   done
86565: 
86566:       case $host_alias in
86567:         *netware*)
86568: 
86569:   install_modules="install-modules"
86570: 
86571:   case $host_alias in
86572:     *aix*)
86573:       suffix=so
86574:       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'
86575:       ;;
86576:     *netware*)
86577:       suffix=nlm
86578:       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)'
86579:       ;;
86580:     *)
86581:       suffix=la
86582:       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)'
86583:       ;;
86584:   esac
86585: 
86586:   if test "x" = "xyes"; then
86587:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpsoap.$suffix"
86588:   else
86589:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpsoap.$suffix"
86590:   fi
86591: 
86592:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_soap"
86593: 
86594:   cat >>Makefile.objects<<EOF
86595: \$(phplibdir)/phpsoap.$suffix: $ext_builddir/phpsoap.$suffix
86596: 	\$(LIBTOOL) --mode=install cp $ext_builddir/phpsoap.$suffix \$(phplibdir)
86597: 
86598: $ext_builddir/phpsoap.$suffix: \$(shared_objects_soap) \$(PHPSOAP_SHARED_DEPENDENCIES)
86599: 	$link_cmd
86600: 
86601: EOF
86602: 
86603:           ;;
86604:         *)
86605: 
86606:   install_modules="install-modules"
86607: 
86608:   case $host_alias in
86609:     *aix*)
86610:       suffix=so
86611:       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'
86612:       ;;
86613:     *netware*)
86614:       suffix=nlm
86615:       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)'
86616:       ;;
86617:     *)
86618:       suffix=la
86619:       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)'
86620:       ;;
86621:   esac
86622: 
86623:   if test "x" = "xyes"; then
86624:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/soap.$suffix"
86625:   else
86626:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/soap.$suffix"
86627:   fi
86628: 
86629:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_soap"
86630: 
86631:   cat >>Makefile.objects<<EOF
86632: \$(phplibdir)/soap.$suffix: $ext_builddir/soap.$suffix
86633: 	\$(LIBTOOL) --mode=install cp $ext_builddir/soap.$suffix \$(phplibdir)
86634: 
86635: $ext_builddir/soap.$suffix: \$(shared_objects_soap) \$(SOAP_SHARED_DEPENDENCIES)
86636: 	$link_cmd
86637: 
86638: EOF
86639: 
86640:           ;;
86641:       esac
86642: 
86643: cat >>confdefs.h <<_ACEOF
86644: #define COMPILE_DL_SOAP 1
86645: _ACEOF
86646: 
86647:     fi
86648:   fi
86649: 
86650:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
86651:     PHP_SOAP_SHARED=no
86652:     case "$PHP_SAPI" in
86653:       cgi|embed)
86654: 
86655: 
86656:   case ext/soap in
86657:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
86658:   /*) ac_srcdir=`echo "ext/soap"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
86659:   *) ac_srcdir="$abs_srcdir/ext/soap/"; ac_bdir="ext/soap/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
86660:   esac
86661: 
86662: 
86663: 
86664:   b_c_pre=$php_c_pre
86665:   b_cxx_pre=$php_cxx_pre
86666:   b_c_meta=$php_c_meta
86667:   b_cxx_meta=$php_cxx_meta
86668:   b_c_post=$php_c_post
86669:   b_cxx_post=$php_cxx_post
86670:   b_lo=$php_lo
86671: 
86672: 
86673:   old_IFS=$IFS
86674:   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
86675: 
86676:       IFS=.
86677:       set $ac_src
86678:       ac_obj=$1
86679:       IFS=$old_IFS
86680: 
86681:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
86682: 
86683:       case $ac_src in
86684:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
86685:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
86686:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
86687:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
86688:       esac
86689: 
86690:     cat >>Makefile.objects<<EOF
86691: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
86692: 	$ac_comp
86693: EOF
86694:   done
86695: 
86696: 
86697:         EXT_STATIC="$EXT_STATIC soap"
86698:         ;;
86699:       *)
86700: 
86701: 
86702:   case ext/soap in
86703:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
86704:   /*) ac_srcdir=`echo "ext/soap"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
86705:   *) ac_srcdir="$abs_srcdir/ext/soap/"; ac_bdir="ext/soap/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
86706:   esac
86707: 
86708: 
86709: 
86710:   b_c_pre=$php_c_pre
86711:   b_cxx_pre=$php_cxx_pre
86712:   b_c_meta=$php_c_meta
86713:   b_cxx_meta=$php_cxx_meta
86714:   b_c_post=$php_c_post
86715:   b_cxx_post=$php_cxx_post
86716:   b_lo=$php_lo
86717: 
86718: 
86719:   old_IFS=$IFS
86720:   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
86721: 
86722:       IFS=.
86723:       set $ac_src
86724:       ac_obj=$1
86725:       IFS=$old_IFS
86726: 
86727:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
86728: 
86729:       case $ac_src in
86730:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
86731:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
86732:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
86733:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
86734:       esac
86735: 
86736:     cat >>Makefile.objects<<EOF
86737: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
86738: 	$ac_comp
86739: EOF
86740:   done
86741: 
86742: 
86743:         ;;
86744:     esac
86745:     EXT_CLI_STATIC="$EXT_CLI_STATIC soap"
86746:   fi
86747: 
86748: 
86749:     BUILD_DIR="$BUILD_DIR $ext_builddir"
86750: 
86751: 
86752: 
86753:   if test "$ext_builddir" = "."; then
86754:     PHP_PECL_EXTENSION=soap
86755: 
86756:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
86757: 
86758:   fi
86759: 
86760: 
86761:   PHP_VAR_SUBST="$PHP_VAR_SUBST SOAP_SHARED_LIBADD"
86762: 
86763: 
86764:     else
86765:       as_fn_error $? "libxml2 version 2.6.11 or greater required." "$LINENO" 5
86766:     fi
86767: else
86768:     as_fn_error $? "xml2-config not found. Please check your libxml2 installation." "$LINENO" 5
86769: 
86770:   fi
86771: 
86772: fi
86773: 
86774: 
86775: 
86776: php_enable_sockets=no
86777: 
86778: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable sockets support" >&5
86779: $as_echo_n "checking whether to enable sockets support... " >&6; }
86780: # Check whether --enable-sockets was given.
86781: if test "${enable_sockets+set}" = set; then :
86782:   enableval=$enable_sockets; PHP_SOCKETS=$enableval
86783: else
86784: 
86785:   PHP_SOCKETS=no
86786:   test "$PHP_ENABLE_ALL" && PHP_SOCKETS=$PHP_ENABLE_ALL
86787: 
86788: fi
86789: 
86790: 
86791: 
86792: ext_output="yes, shared"
86793: ext_shared=yes
86794: case $PHP_SOCKETS in
86795: shared,*)
86796:   PHP_SOCKETS=`echo "$PHP_SOCKETS"|$SED 's/^shared,//'`
86797:   ;;
86798: shared)
86799:   PHP_SOCKETS=yes
86800:   ;;
86801: no)
86802:   ext_output=no
86803:   ext_shared=no
86804:   ;;
86805: *)
86806:   ext_output=yes
86807:   ext_shared=no
86808:   ;;
86809: esac
86810: 
86811: 
86812: 
86813: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
86814: $as_echo "$ext_output" >&6; }
86815: 
86816: 
86817: 
86818: 
86819: if test "$PHP_SOCKETS" != "no"; then
86820:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct cmsghdr" >&5
86821: $as_echo_n "checking for struct cmsghdr... " >&6; }
86822: if ${ac_cv_cmsghdr+:} false; then :
86823:   $as_echo_n "(cached) " >&6
86824: else
86825: 
86826:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
86827: /* end confdefs.h.  */
86828: 
86829: #include <sys/types.h>
86830: #include <sys/socket.h>
86831: int
86832: main ()
86833: {
86834: struct cmsghdr s; s
86835:   ;
86836:   return 0;
86837: }
86838: _ACEOF
86839: if ac_fn_c_try_compile "$LINENO"; then :
86840:   ac_cv_cmsghdr=yes
86841: else
86842:   ac_cv_cmsghdr=no
86843: fi
86844: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
86845: 
86846: fi
86847: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cmsghdr" >&5
86848: $as_echo "$ac_cv_cmsghdr" >&6; }
86849: 
86850:   if test "$ac_cv_cmsghdr" = yes; then
86851: 
86852: $as_echo "#define HAVE_CMSGHDR 1" >>confdefs.h
86853: 
86854:   fi
86855: 
86856:   for ac_func in hstrerror socketpair if_nametoindex if_indextoname
86857: do :
86858:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
86859: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
86860: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
86861:   cat >>confdefs.h <<_ACEOF
86862: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
86863: _ACEOF
86864: 
86865: fi
86866: done
86867: 
86868:   for ac_header in netdb.h netinet/tcp.h sys/un.h sys/sockio.h errno.h
86869: do :
86870:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
86871: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
86872: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
86873:   cat >>confdefs.h <<_ACEOF
86874: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
86875: _ACEOF
86876: 
86877: fi
86878: 
86879: done
86880: 
86881:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
86882: /* end confdefs.h.  */
86883: 
86884: #include <sys/types.h>
86885: #include <sys/socket.h>
86886: 
86887: int
86888: main ()
86889: {
86890: static struct msghdr tp; int n = (int) tp.msg_flags; return n
86891:   ;
86892:   return 0;
86893: }
86894: _ACEOF
86895: if ac_fn_c_try_compile "$LINENO"; then :
86896: 
86897: else
86898: 
86899: $as_echo "#define MISSING_MSGHDR_MSGFLAGS 1" >>confdefs.h
86900: 
86901: 
86902: fi
86903: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
86904: 
86905: $as_echo "#define HAVE_SOCKETS 1" >>confdefs.h
86906: 
86907: 
86908:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for field ss_family in struct sockaddr_storage" >&5
86909: $as_echo_n "checking for field ss_family in struct sockaddr_storage... " >&6; }
86910: if ${ac_cv_ss_family+:} false; then :
86911:   $as_echo_n "(cached) " >&6
86912: else
86913: 
86914:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
86915: /* end confdefs.h.  */
86916: 
86917: #include <sys/socket.h>
86918: #include <sys/types.h>
86919: #include <netdb.h>
86920: 
86921: int
86922: main ()
86923: {
86924: struct sockaddr_storage sa_store; sa_store.ss_family = AF_INET6;
86925:   ;
86926:   return 0;
86927: }
86928: _ACEOF
86929: if ac_fn_c_try_compile "$LINENO"; then :
86930:   ac_cv_ss_family=yes
86931: else
86932:   ac_cv_ss_family=no
86933: fi
86934: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
86935: 
86936: fi
86937: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ss_family" >&5
86938: $as_echo "$ac_cv_ss_family" >&6; }
86939: 
86940:   if test "$ac_cv_ss_family" = yes; then
86941: 
86942: $as_echo "#define HAVE_SA_SS_FAMILY 1" >>confdefs.h
86943: 
86944:   fi
86945: 
86946: 
86947:   ext_builddir=ext/sockets
86948:   ext_srcdir=$abs_srcdir/ext/sockets
86949: 
86950:   ac_extra=
86951: 
86952:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
86953:     PHP_SOCKETS_SHARED=no
86954: 
86955: 
86956:   case ext/sockets in
86957:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
86958:   /*) ac_srcdir=`echo "ext/sockets"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
86959:   *) ac_srcdir="$abs_srcdir/ext/sockets/"; ac_bdir="ext/sockets/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
86960:   esac
86961: 
86962: 
86963: 
86964:   b_c_pre=$php_c_pre
86965:   b_cxx_pre=$php_cxx_pre
86966:   b_c_meta=$php_c_meta
86967:   b_cxx_meta=$php_cxx_meta
86968:   b_c_post=$php_c_post
86969:   b_cxx_post=$php_cxx_post
86970:   b_lo=$php_lo
86971: 
86972: 
86973:   old_IFS=$IFS
86974:   for ac_src in sockets.c multicast.c; do
86975: 
86976:       IFS=.
86977:       set $ac_src
86978:       ac_obj=$1
86979:       IFS=$old_IFS
86980: 
86981:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
86982: 
86983:       case $ac_src in
86984:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
86985:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
86986:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
86987:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
86988:       esac
86989: 
86990:     cat >>Makefile.objects<<EOF
86991: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
86992: 	$ac_comp
86993: EOF
86994:   done
86995: 
86996: 
86997:     EXT_STATIC="$EXT_STATIC sockets"
86998:     if test "$ext_shared" != "nocli"; then
86999:       EXT_CLI_STATIC="$EXT_CLI_STATIC sockets"
87000:     fi
87001:   else
87002:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
87003:       PHP_SOCKETS_SHARED=yes
87004: 
87005:   case ext/sockets in
87006:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
87007:   /*) ac_srcdir=`echo "ext/sockets"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
87008:   *) ac_srcdir="$abs_srcdir/ext/sockets/"; ac_bdir="ext/sockets/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
87009:   esac
87010: 
87011: 
87012: 
87013:   b_c_pre=$shared_c_pre
87014:   b_cxx_pre=$shared_cxx_pre
87015:   b_c_meta=$shared_c_meta
87016:   b_cxx_meta=$shared_cxx_meta
87017:   b_c_post=$shared_c_post
87018:   b_cxx_post=$shared_cxx_post
87019:   b_lo=$shared_lo
87020: 
87021: 
87022:   old_IFS=$IFS
87023:   for ac_src in sockets.c multicast.c; do
87024: 
87025:       IFS=.
87026:       set $ac_src
87027:       ac_obj=$1
87028:       IFS=$old_IFS
87029: 
87030:       shared_objects_sockets="$shared_objects_sockets $ac_bdir$ac_obj.lo"
87031: 
87032:       case $ac_src in
87033:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
87034:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
87035:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
87036:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
87037:       esac
87038: 
87039:     cat >>Makefile.objects<<EOF
87040: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
87041: 	$ac_comp
87042: EOF
87043:   done
87044: 
87045:       case $host_alias in
87046:         *netware*)
87047: 
87048:   install_modules="install-modules"
87049: 
87050:   case $host_alias in
87051:     *aix*)
87052:       suffix=so
87053:       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'
87054:       ;;
87055:     *netware*)
87056:       suffix=nlm
87057:       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)'
87058:       ;;
87059:     *)
87060:       suffix=la
87061:       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)'
87062:       ;;
87063:   esac
87064: 
87065:   if test "x" = "xyes"; then
87066:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpsockets.$suffix"
87067:   else
87068:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpsockets.$suffix"
87069:   fi
87070: 
87071:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_sockets"
87072: 
87073:   cat >>Makefile.objects<<EOF
87074: \$(phplibdir)/phpsockets.$suffix: $ext_builddir/phpsockets.$suffix
87075: 	\$(LIBTOOL) --mode=install cp $ext_builddir/phpsockets.$suffix \$(phplibdir)
87076: 
87077: $ext_builddir/phpsockets.$suffix: \$(shared_objects_sockets) \$(PHPSOCKETS_SHARED_DEPENDENCIES)
87078: 	$link_cmd
87079: 
87080: EOF
87081: 
87082:           ;;
87083:         *)
87084: 
87085:   install_modules="install-modules"
87086: 
87087:   case $host_alias in
87088:     *aix*)
87089:       suffix=so
87090:       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'
87091:       ;;
87092:     *netware*)
87093:       suffix=nlm
87094:       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)'
87095:       ;;
87096:     *)
87097:       suffix=la
87098:       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)'
87099:       ;;
87100:   esac
87101: 
87102:   if test "x" = "xyes"; then
87103:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/sockets.$suffix"
87104:   else
87105:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/sockets.$suffix"
87106:   fi
87107: 
87108:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_sockets"
87109: 
87110:   cat >>Makefile.objects<<EOF
87111: \$(phplibdir)/sockets.$suffix: $ext_builddir/sockets.$suffix
87112: 	\$(LIBTOOL) --mode=install cp $ext_builddir/sockets.$suffix \$(phplibdir)
87113: 
87114: $ext_builddir/sockets.$suffix: \$(shared_objects_sockets) \$(SOCKETS_SHARED_DEPENDENCIES)
87115: 	$link_cmd
87116: 
87117: EOF
87118: 
87119:           ;;
87120:       esac
87121: 
87122: cat >>confdefs.h <<_ACEOF
87123: #define COMPILE_DL_SOCKETS 1
87124: _ACEOF
87125: 
87126:     fi
87127:   fi
87128: 
87129:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
87130:     PHP_SOCKETS_SHARED=no
87131:     case "$PHP_SAPI" in
87132:       cgi|embed)
87133: 
87134: 
87135:   case ext/sockets in
87136:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
87137:   /*) ac_srcdir=`echo "ext/sockets"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
87138:   *) ac_srcdir="$abs_srcdir/ext/sockets/"; ac_bdir="ext/sockets/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
87139:   esac
87140: 
87141: 
87142: 
87143:   b_c_pre=$php_c_pre
87144:   b_cxx_pre=$php_cxx_pre
87145:   b_c_meta=$php_c_meta
87146:   b_cxx_meta=$php_cxx_meta
87147:   b_c_post=$php_c_post
87148:   b_cxx_post=$php_cxx_post
87149:   b_lo=$php_lo
87150: 
87151: 
87152:   old_IFS=$IFS
87153:   for ac_src in sockets.c multicast.c; do
87154: 
87155:       IFS=.
87156:       set $ac_src
87157:       ac_obj=$1
87158:       IFS=$old_IFS
87159: 
87160:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
87161: 
87162:       case $ac_src in
87163:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
87164:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
87165:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
87166:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
87167:       esac
87168: 
87169:     cat >>Makefile.objects<<EOF
87170: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
87171: 	$ac_comp
87172: EOF
87173:   done
87174: 
87175: 
87176:         EXT_STATIC="$EXT_STATIC sockets"
87177:         ;;
87178:       *)
87179: 
87180: 
87181:   case ext/sockets in
87182:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
87183:   /*) ac_srcdir=`echo "ext/sockets"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
87184:   *) ac_srcdir="$abs_srcdir/ext/sockets/"; ac_bdir="ext/sockets/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
87185:   esac
87186: 
87187: 
87188: 
87189:   b_c_pre=$php_c_pre
87190:   b_cxx_pre=$php_cxx_pre
87191:   b_c_meta=$php_c_meta
87192:   b_cxx_meta=$php_cxx_meta
87193:   b_c_post=$php_c_post
87194:   b_cxx_post=$php_cxx_post
87195:   b_lo=$php_lo
87196: 
87197: 
87198:   old_IFS=$IFS
87199:   for ac_src in sockets.c multicast.c; do
87200: 
87201:       IFS=.
87202:       set $ac_src
87203:       ac_obj=$1
87204:       IFS=$old_IFS
87205: 
87206:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
87207: 
87208:       case $ac_src in
87209:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
87210:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
87211:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
87212:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
87213:       esac
87214: 
87215:     cat >>Makefile.objects<<EOF
87216: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
87217: 	$ac_comp
87218: EOF
87219:   done
87220: 
87221: 
87222:         ;;
87223:     esac
87224:     EXT_CLI_STATIC="$EXT_CLI_STATIC sockets"
87225:   fi
87226: 
87227: 
87228:     BUILD_DIR="$BUILD_DIR $ext_builddir"
87229: 
87230: 
87231: 
87232:   if test "$ext_builddir" = "."; then
87233:     PHP_PECL_EXTENSION=sockets
87234: 
87235:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
87236: 
87237:   fi
87238: 
87239: 
87240: 
87241:     header_path=ext/sockets/
87242:     for header_file in php_sockets.h; do
87243:       hp_hf="$header_path/$header_file"
87244: 
87245: 
87246:   unique=`echo $hp_hf|$SED 's/[^a-zA-Z0-9]/_/g'`
87247: 
87248:   cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
87249:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
87250:     eval "INSTALLHEADERS$unique=set"
87251: 
87252:         INSTALL_HEADERS="$INSTALL_HEADERS $hp_hf"
87253: 
87254:   fi
87255: 
87256:     done
87257: 
87258: 
87259: fi
87260: 
87261: 
87262:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether zend_object_value is packed" >&5
87263: $as_echo_n "checking whether zend_object_value is packed... " >&6; }
87264:   old_CPPFLAGS=$CPPFLAGS
87265:   CPPFLAGS="$INCLUDES -I$abs_srcdir $CPPFLAGS"
87266:   if test "$cross_compiling" = yes; then :
87267: 
87268:     ac_result=0
87269:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
87270: $as_echo "no" >&6; }
87271: 
87272: else
87273:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
87274: /* end confdefs.h.  */
87275: 
87276: #include "Zend/zend_types.h"
87277: int main(int argc, char **argv) {
87278: 	return ((sizeof(zend_object_handle) + sizeof(zend_object_handlers*)) == sizeof(zend_object_value)) ? 0 : 1;
87279: }
87280: 
87281: _ACEOF
87282: if ac_fn_c_try_run "$LINENO"; then :
87283: 
87284:     ac_result=1
87285:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
87286: $as_echo "yes" >&6; }
87287: 
87288: else
87289: 
87290:     ac_result=0
87291:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
87292: $as_echo "no" >&6; }
87293: 
87294: fi
87295: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
87296:   conftest.$ac_objext conftest.beam conftest.$ac_ext
87297: fi
87298: 
87299:   CPPFLAGS=$old_CPPFLAGS
87300: 
87301: cat >>confdefs.h <<_ACEOF
87302: #define HAVE_PACKED_OBJECT_VALUE $ac_result
87303: _ACEOF
87304: 
87305: 
87306: $as_echo "#define HAVE_SPL 1" >>confdefs.h
87307: 
87308: 
87309:   ext_builddir=ext/spl
87310:   ext_srcdir=$abs_srcdir/ext/spl
87311: 
87312:   ac_extra=
87313: 
87314:   if test "no" != "shared" && test "no" != "yes" && test "" != "cli"; then
87315:     PHP_SPL_SHARED=no
87316: 
87317: 
87318:   case ext/spl in
87319:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
87320:   /*) ac_srcdir=`echo "ext/spl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
87321:   *) ac_srcdir="$abs_srcdir/ext/spl/"; ac_bdir="ext/spl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
87322:   esac
87323: 
87324: 
87325: 
87326:   b_c_pre=$php_c_pre
87327:   b_cxx_pre=$php_cxx_pre
87328:   b_c_meta=$php_c_meta
87329:   b_cxx_meta=$php_cxx_meta
87330:   b_c_post=$php_c_post
87331:   b_cxx_post=$php_cxx_post
87332:   b_lo=$php_lo
87333: 
87334: 
87335:   old_IFS=$IFS
87336:   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
87337: 
87338:       IFS=.
87339:       set $ac_src
87340:       ac_obj=$1
87341:       IFS=$old_IFS
87342: 
87343:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
87344: 
87345:       case $ac_src in
87346:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
87347:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
87348:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
87349:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
87350:       esac
87351: 
87352:     cat >>Makefile.objects<<EOF
87353: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
87354: 	$ac_comp
87355: EOF
87356:   done
87357: 
87358: 
87359:     EXT_STATIC="$EXT_STATIC spl"
87360:     if test "no" != "nocli"; then
87361:       EXT_CLI_STATIC="$EXT_CLI_STATIC spl"
87362:     fi
87363:   else
87364:     if test "no" = "shared" || test "no" = "yes"; then
87365:       PHP_SPL_SHARED=yes
87366: 
87367:   case ext/spl in
87368:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
87369:   /*) ac_srcdir=`echo "ext/spl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
87370:   *) ac_srcdir="$abs_srcdir/ext/spl/"; ac_bdir="ext/spl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
87371:   esac
87372: 
87373: 
87374: 
87375:   b_c_pre=$shared_c_pre
87376:   b_cxx_pre=$shared_cxx_pre
87377:   b_c_meta=$shared_c_meta
87378:   b_cxx_meta=$shared_cxx_meta
87379:   b_c_post=$shared_c_post
87380:   b_cxx_post=$shared_cxx_post
87381:   b_lo=$shared_lo
87382: 
87383: 
87384:   old_IFS=$IFS
87385:   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
87386: 
87387:       IFS=.
87388:       set $ac_src
87389:       ac_obj=$1
87390:       IFS=$old_IFS
87391: 
87392:       shared_objects_spl="$shared_objects_spl $ac_bdir$ac_obj.lo"
87393: 
87394:       case $ac_src in
87395:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
87396:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
87397:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
87398:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
87399:       esac
87400: 
87401:     cat >>Makefile.objects<<EOF
87402: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
87403: 	$ac_comp
87404: EOF
87405:   done
87406: 
87407:       case $host_alias in
87408:         *netware*)
87409: 
87410:   install_modules="install-modules"
87411: 
87412:   case $host_alias in
87413:     *aix*)
87414:       suffix=so
87415:       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'
87416:       ;;
87417:     *netware*)
87418:       suffix=nlm
87419:       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)'
87420:       ;;
87421:     *)
87422:       suffix=la
87423:       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)'
87424:       ;;
87425:   esac
87426: 
87427:   if test "x" = "xyes"; then
87428:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpspl.$suffix"
87429:   else
87430:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpspl.$suffix"
87431:   fi
87432: 
87433:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_spl"
87434: 
87435:   cat >>Makefile.objects<<EOF
87436: \$(phplibdir)/phpspl.$suffix: $ext_builddir/phpspl.$suffix
87437: 	\$(LIBTOOL) --mode=install cp $ext_builddir/phpspl.$suffix \$(phplibdir)
87438: 
87439: $ext_builddir/phpspl.$suffix: \$(shared_objects_spl) \$(PHPSPL_SHARED_DEPENDENCIES)
87440: 	$link_cmd
87441: 
87442: EOF
87443: 
87444:           ;;
87445:         *)
87446: 
87447:   install_modules="install-modules"
87448: 
87449:   case $host_alias in
87450:     *aix*)
87451:       suffix=so
87452:       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'
87453:       ;;
87454:     *netware*)
87455:       suffix=nlm
87456:       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)'
87457:       ;;
87458:     *)
87459:       suffix=la
87460:       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)'
87461:       ;;
87462:   esac
87463: 
87464:   if test "x" = "xyes"; then
87465:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/spl.$suffix"
87466:   else
87467:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/spl.$suffix"
87468:   fi
87469: 
87470:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_spl"
87471: 
87472:   cat >>Makefile.objects<<EOF
87473: \$(phplibdir)/spl.$suffix: $ext_builddir/spl.$suffix
87474: 	\$(LIBTOOL) --mode=install cp $ext_builddir/spl.$suffix \$(phplibdir)
87475: 
87476: $ext_builddir/spl.$suffix: \$(shared_objects_spl) \$(SPL_SHARED_DEPENDENCIES)
87477: 	$link_cmd
87478: 
87479: EOF
87480: 
87481:           ;;
87482:       esac
87483: 
87484: cat >>confdefs.h <<_ACEOF
87485: #define COMPILE_DL_SPL 1
87486: _ACEOF
87487: 
87488:     fi
87489:   fi
87490: 
87491:   if test "no" != "shared" && test "no" != "yes" && test "" = "cli"; then
87492:     PHP_SPL_SHARED=no
87493:     case "$PHP_SAPI" in
87494:       cgi|embed)
87495: 
87496: 
87497:   case ext/spl in
87498:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
87499:   /*) ac_srcdir=`echo "ext/spl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
87500:   *) ac_srcdir="$abs_srcdir/ext/spl/"; ac_bdir="ext/spl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
87501:   esac
87502: 
87503: 
87504: 
87505:   b_c_pre=$php_c_pre
87506:   b_cxx_pre=$php_cxx_pre
87507:   b_c_meta=$php_c_meta
87508:   b_cxx_meta=$php_cxx_meta
87509:   b_c_post=$php_c_post
87510:   b_cxx_post=$php_cxx_post
87511:   b_lo=$php_lo
87512: 
87513: 
87514:   old_IFS=$IFS
87515:   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
87516: 
87517:       IFS=.
87518:       set $ac_src
87519:       ac_obj=$1
87520:       IFS=$old_IFS
87521: 
87522:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
87523: 
87524:       case $ac_src in
87525:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
87526:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
87527:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
87528:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
87529:       esac
87530: 
87531:     cat >>Makefile.objects<<EOF
87532: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
87533: 	$ac_comp
87534: EOF
87535:   done
87536: 
87537: 
87538:         EXT_STATIC="$EXT_STATIC spl"
87539:         ;;
87540:       *)
87541: 
87542: 
87543:   case ext/spl in
87544:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
87545:   /*) ac_srcdir=`echo "ext/spl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
87546:   *) ac_srcdir="$abs_srcdir/ext/spl/"; ac_bdir="ext/spl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
87547:   esac
87548: 
87549: 
87550: 
87551:   b_c_pre=$php_c_pre
87552:   b_cxx_pre=$php_cxx_pre
87553:   b_c_meta=$php_c_meta
87554:   b_cxx_meta=$php_cxx_meta
87555:   b_c_post=$php_c_post
87556:   b_cxx_post=$php_cxx_post
87557:   b_lo=$php_lo
87558: 
87559: 
87560:   old_IFS=$IFS
87561:   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
87562: 
87563:       IFS=.
87564:       set $ac_src
87565:       ac_obj=$1
87566:       IFS=$old_IFS
87567: 
87568:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
87569: 
87570:       case $ac_src in
87571:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
87572:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
87573:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
87574:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
87575:       esac
87576: 
87577:     cat >>Makefile.objects<<EOF
87578: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
87579: 	$ac_comp
87580: EOF
87581:   done
87582: 
87583: 
87584:         ;;
87585:     esac
87586:     EXT_CLI_STATIC="$EXT_CLI_STATIC spl"
87587:   fi
87588: 
87589: 
87590:     BUILD_DIR="$BUILD_DIR $ext_builddir"
87591: 
87592: 
87593: 
87594:   if test "$ext_builddir" = "."; then
87595:     PHP_PECL_EXTENSION=spl
87596: 
87597:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
87598: 
87599:   fi
87600: 
87601: 
87602: 
87603:     header_path=ext/spl
87604:     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
87605:       hp_hf="$header_path/$header_file"
87606: 
87607: 
87608:   unique=`echo $hp_hf|$SED 's/[^a-zA-Z0-9]/_/g'`
87609: 
87610:   cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
87611:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
87612:     eval "INSTALLHEADERS$unique=set"
87613: 
87614:         INSTALL_HEADERS="$INSTALL_HEADERS $hp_hf"
87615: 
87616:   fi
87617: 
87618:     done
87619: 
87620: 
87621: 
87622:   am_i_shared=$PHP_SPL_SHARED
87623:   is_it_shared=$PHP_PCRE_SHARED
87624:   is_it_enabled=$PHP_PCRE
87625:   if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
87626:     as_fn_error $? "
87627: You've configured extension spl to build statically, but it
87628: depends on extension pcre, which you've configured to build shared.
87629: You either need to build spl shared or build pcre statically for the
87630: build to be successful.
87631: " "$LINENO" 5
87632:   fi
87633:   if test "x$is_it_enabled" = "xno" && test "xtrue" != "xtrue"; then
87634:     as_fn_error $? "
87635: You've configured extension spl, which depends on extension pcre,
87636: but you've either not enabled pcre, or have disabled it.
87637: " "$LINENO" 5
87638:   fi
87639: 
87640: 
87641: 
87642: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flush should be called explicitly after a buffered io" >&5
87643: $as_echo_n "checking whether flush should be called explicitly after a buffered io... " >&6; }
87644: if ${ac_cv_flush_io+:} false; then :
87645:   $as_echo_n "(cached) " >&6
87646: else
87647: 
87648: if test "$cross_compiling" = yes; then :
87649: 
87650:   ac_cv_flush_io=no
87651: 
87652: else
87653:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
87654: /* end confdefs.h.  */
87655: 
87656: #include <stdio.h>
87657: #include <stdlib.h>
87658: 
87659: int main(int argc, char **argv)
87660: {
87661: 	char *filename = tmpnam(NULL);
87662: 	char buffer[64];
87663: 	int result = 0;
87664: 
87665: 	FILE *fp = fopen(filename, "wb");
87666: 	if (NULL == fp)
87667: 		return 0;
87668: 	fputs("line 1\n", fp);
87669: 	fputs("line 2\n", fp);
87670: 	fclose(fp);
87671: 
87672: 	fp = fopen(filename, "rb+");
87673: 	if (NULL == fp)
87674: 		return 0;
87675: 	fgets(buffer, sizeof(buffer), fp);
87676: 	fputs("line 3\n", fp);
87677: 	rewind(fp);
87678: 	fgets(buffer, sizeof(buffer), fp);
87679: 	if (0 != strcmp(buffer, "line 1\n"))
87680: 		result = 1;
87681: 	fgets(buffer, sizeof(buffer), fp);
87682: 	if (0 != strcmp(buffer, "line 3\n"))
87683: 		result = 1;
87684: 	fclose(fp);
87685: 	unlink(filename);
87686: 
87687: 	exit(result);
87688: }
87689: 
87690: _ACEOF
87691: if ac_fn_c_try_run "$LINENO"; then :
87692: 
87693:   ac_cv_flush_io=no
87694: 
87695: else
87696: 
87697:   ac_cv_flush_io=yes
87698: 
87699: fi
87700: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
87701:   conftest.$ac_objext conftest.beam conftest.$ac_ext
87702: fi
87703: 
87704: fi
87705: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flush_io" >&5
87706: $as_echo "$ac_cv_flush_io" >&6; }
87707: if test "$ac_cv_flush_io" = "yes"; then
87708: 
87709: $as_echo "#define HAVE_FLUSHIO 1" >>confdefs.h
87710: 
87711: fi
87712: 
87713: if test "$ac_cv_func_crypt" = "no"; then
87714:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
87715: $as_echo_n "checking for crypt in -lcrypt... " >&6; }
87716: if ${ac_cv_lib_crypt_crypt+:} false; then :
87717:   $as_echo_n "(cached) " >&6
87718: else
87719:   ac_check_lib_save_LIBS=$LIBS
87720: LIBS="-lcrypt  $LIBS"
87721: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
87722: /* end confdefs.h.  */
87723: 
87724: /* Override any GCC internal prototype to avoid an error.
87725:    Use char because int might match the return type of a GCC
87726:    builtin and then its argument prototype would still apply.  */
87727: #ifdef __cplusplus
87728: extern "C"
87729: #endif
87730: char crypt ();
87731: int
87732: main ()
87733: {
87734: return crypt ();
87735:   ;
87736:   return 0;
87737: }
87738: _ACEOF
87739: if ac_fn_c_try_link "$LINENO"; then :
87740:   ac_cv_lib_crypt_crypt=yes
87741: else
87742:   ac_cv_lib_crypt_crypt=no
87743: fi
87744: rm -f core conftest.err conftest.$ac_objext \
87745:     conftest$ac_exeext conftest.$ac_ext
87746: LIBS=$ac_check_lib_save_LIBS
87747: fi
87748: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
87749: $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
87750: if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
87751: 
87752:     LIBS="-lcrypt $LIBS -lcrypt"
87753: 
87754: $as_echo "#define HAVE_CRYPT 1" >>confdefs.h
87755: 
87756: 
87757: fi
87758: 
87759: fi
87760: 
87761: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for standard DES crypt" >&5
87762: $as_echo_n "checking for standard DES crypt... " >&6; }
87763: if ${ac_cv_crypt_des+:} false; then :
87764:   $as_echo_n "(cached) " >&6
87765: else
87766: 
87767:   if test "$cross_compiling" = yes; then :
87768: 
87769:   ac_cv_crypt_des=yes
87770: 
87771: else
87772:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
87773: /* end confdefs.h.  */
87774: 
87775: #if HAVE_UNISTD_H
87776: #include <unistd.h>
87777: #endif
87778: 
87779: #if HAVE_CRYPT_H
87780: #include <crypt.h>
87781: #endif
87782: 
87783: main() {
87784: #if HAVE_CRYPT
87785:     exit (strcmp((char *)crypt("rasmuslerdorf","rl"),"rl.3StKT.4T8M"));
87786: #else
87787: 	exit(0);
87788: #endif
87789: }
87790: _ACEOF
87791: if ac_fn_c_try_run "$LINENO"; then :
87792: 
87793:   ac_cv_crypt_des=yes
87794: 
87795: else
87796: 
87797:   ac_cv_crypt_des=no
87798: 
87799: fi
87800: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
87801:   conftest.$ac_objext conftest.beam conftest.$ac_ext
87802: fi
87803: 
87804: fi
87805: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_crypt_des" >&5
87806: $as_echo "$ac_cv_crypt_des" >&6; }
87807: 
87808: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extended DES crypt" >&5
87809: $as_echo_n "checking for extended DES crypt... " >&6; }
87810: if ${ac_cv_crypt_ext_des+:} false; then :
87811:   $as_echo_n "(cached) " >&6
87812: else
87813: 
87814:   if test "$cross_compiling" = yes; then :
87815: 
87816:   ac_cv_crypt_ext_des=no
87817: 
87818: else
87819:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
87820: /* end confdefs.h.  */
87821: 
87822: #if HAVE_UNISTD_H
87823: #include <unistd.h>
87824: #endif
87825: 
87826: #if HAVE_CRYPT_H
87827: #include <crypt.h>
87828: #endif
87829: 
87830: main() {
87831: #if HAVE_CRYPT
87832:   exit (strcmp((char *)crypt("rasmuslerdorf","_J9..rasm"),"_J9..rasmBYk8r9AiWNc"));
87833: #else
87834:   exit(0);
87835: #endif
87836: }
87837: _ACEOF
87838: if ac_fn_c_try_run "$LINENO"; then :
87839: 
87840:   ac_cv_crypt_ext_des=yes
87841: 
87842: else
87843: 
87844:   ac_cv_crypt_ext_des=no
87845: 
87846: fi
87847: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
87848:   conftest.$ac_objext conftest.beam conftest.$ac_ext
87849: fi
87850: 
87851: fi
87852: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_crypt_ext_des" >&5
87853: $as_echo "$ac_cv_crypt_ext_des" >&6; }
87854: 
87855: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MD5 crypt" >&5
87856: $as_echo_n "checking for MD5 crypt... " >&6; }
87857: if ${ac_cv_crypt_md5+:} false; then :
87858:   $as_echo_n "(cached) " >&6
87859: else
87860: 
87861: if test "$cross_compiling" = yes; then :
87862: 
87863:   ac_cv_crypt_md5=no
87864: 
87865: else
87866:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
87867: /* end confdefs.h.  */
87868: 
87869: #if HAVE_UNISTD_H
87870: #include <unistd.h>
87871: #endif
87872: 
87873: #if HAVE_CRYPT_H
87874: #include <crypt.h>
87875: #endif
87876: 
87877: main() {
87878: #if HAVE_CRYPT
87879:     char salt[15], answer[40];
87880: 
87881:     salt[0]='$'; salt[1]='1'; salt[2]='$';
87882:     salt[3]='r'; salt[4]='a'; salt[5]='s';
87883:     salt[6]='m'; salt[7]='u'; salt[8]='s';
87884:     salt[9]='l'; salt[10]='e'; salt[11]='$';
87885:     salt[12]='\0';
87886:     strcpy(answer,salt);
87887:     strcat(answer,"rISCgZzpwk3UhDidwXvin0");
87888:     exit (strcmp((char *)crypt("rasmuslerdorf",salt),answer));
87889: #else
87890: 	exit(0);
87891: #endif
87892: }
87893: _ACEOF
87894: if ac_fn_c_try_run "$LINENO"; then :
87895: 
87896:   ac_cv_crypt_md5=yes
87897: 
87898: else
87899: 
87900:   ac_cv_crypt_md5=no
87901: 
87902: fi
87903: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
87904:   conftest.$ac_objext conftest.beam conftest.$ac_ext
87905: fi
87906: 
87907: fi
87908: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_crypt_md5" >&5
87909: $as_echo "$ac_cv_crypt_md5" >&6; }
87910: 
87911: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Blowfish crypt" >&5
87912: $as_echo_n "checking for Blowfish crypt... " >&6; }
87913: if ${ac_cv_crypt_blowfish+:} false; then :
87914:   $as_echo_n "(cached) " >&6
87915: else
87916: 
87917: if test "$cross_compiling" = yes; then :
87918: 
87919:   ac_cv_crypt_blowfish=no
87920: 
87921: else
87922:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
87923: /* end confdefs.h.  */
87924: 
87925: #if HAVE_UNISTD_H
87926: #include <unistd.h>
87927: #endif
87928: 
87929: #if HAVE_CRYPT_H
87930: #include <crypt.h>
87931: #endif
87932: 
87933: main() {
87934: #if HAVE_CRYPT
87935:     char salt[30], answer[70];
87936: 
87937:     salt[0]='$'; salt[1]='2'; salt[2]='a'; salt[3]='$'; salt[4]='0'; salt[5]='7'; salt[6]='$'; salt[7]='\0';
87938:     strcat(salt,"rasmuslerd............");
87939:     strcpy(answer,salt);
87940:     strcpy(&answer[29],"nIdrcHdxcUxWomQX9j6kvERCFjTg7Ra");
87941:     exit (strcmp((char *)crypt("rasmuslerdorf",salt),answer));
87942: #else
87943: 	exit(0);
87944: #endif
87945: }
87946: _ACEOF
87947: if ac_fn_c_try_run "$LINENO"; then :
87948: 
87949:   ac_cv_crypt_blowfish=yes
87950: 
87951: else
87952: 
87953:   ac_cv_crypt_blowfish=no
87954: 
87955: fi
87956: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
87957:   conftest.$ac_objext conftest.beam conftest.$ac_ext
87958: fi
87959: 
87960: fi
87961: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_crypt_blowfish" >&5
87962: $as_echo "$ac_cv_crypt_blowfish" >&6; }
87963: 
87964: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA512 crypt" >&5
87965: $as_echo_n "checking for SHA512 crypt... " >&6; }
87966: if ${ac_cv_crypt_SHA512+:} false; then :
87967:   $as_echo_n "(cached) " >&6
87968: else
87969: 
87970: if test "$cross_compiling" = yes; then :
87971: 
87972:   ac_cv_crypt_SHA512=no
87973: 
87974: else
87975:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
87976: /* end confdefs.h.  */
87977: 
87978: #if HAVE_UNISTD_H
87979: #include <unistd.h>
87980: #endif
87981: 
87982: #if HAVE_CRYPT_H
87983: #include <crypt.h>
87984: #endif
87985: 
87986: main() {
87987: #if HAVE_CRYPT
87988:     char salt[30], answer[80];
87989: 
87990:     salt[0]='$'; salt[1]='6'; salt[2]='$'; salt[3]='$'; salt[4]='b'; salt[5]='a'; salt[6]='r'; salt[7]='\0';
87991:     strcpy(answer, salt);
87992:     strcpy(&answer[29],"$6$$QMXjqd7rHQZPQ1yHsXkQqC1FBzDiVfTHXL.LaeDAeVV.IzMaV9VU4MQ8kPuZa2SOP1A0RPm772EaFYjpEJtdu.");
87993:     exit (strcmp((char *)crypt("foo",salt),answer));
87994: #else
87995: 	exit(0);
87996: #endif
87997: }
87998: _ACEOF
87999: if ac_fn_c_try_run "$LINENO"; then :
88000: 
88001:   ac_cv_crypt_SHA512=yes
88002: 
88003: else
88004: 
88005:   ac_cv_crypt_SHA512=no
88006: 
88007: fi
88008: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
88009:   conftest.$ac_objext conftest.beam conftest.$ac_ext
88010: fi
88011: 
88012: fi
88013: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_crypt_SHA512" >&5
88014: $as_echo "$ac_cv_crypt_SHA512" >&6; }
88015: 
88016: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA256 crypt" >&5
88017: $as_echo_n "checking for SHA256 crypt... " >&6; }
88018: if ${ac_cv_crypt_SHA256+:} false; then :
88019:   $as_echo_n "(cached) " >&6
88020: else
88021: 
88022: if test "$cross_compiling" = yes; then :
88023: 
88024:   ac_cv_crypt_SHA256=no
88025: 
88026: else
88027:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
88028: /* end confdefs.h.  */
88029: 
88030: #if HAVE_UNISTD_H
88031: #include <unistd.h>
88032: #endif
88033: 
88034: #if HAVE_CRYPT_H
88035: #include <crypt.h>
88036: #endif
88037: 
88038: main() {
88039: #if HAVE_CRYPT
88040:     char salt[30], answer[80];
88041:     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';
88042:     strcat(salt,"");
88043:     strcpy(answer, salt);
88044:     strcpy(&answer[29], "$5$saltstring$5B8vYYiY.CVt1RlTTf8KbXBH3hsxY/GNooZaBBGWEc5");
88045:     exit (strcmp((char *)crypt("foo",salt),answer));
88046: #else
88047: 	exit(0);
88048: #endif
88049: }
88050: _ACEOF
88051: if ac_fn_c_try_run "$LINENO"; then :
88052: 
88053:   ac_cv_crypt_SHA256=yes
88054: 
88055: else
88056: 
88057:   ac_cv_crypt_SHA256=no
88058: 
88059: fi
88060: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
88061:   conftest.$ac_objext conftest.beam conftest.$ac_ext
88062: fi
88063: 
88064: fi
88065: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_crypt_SHA256" >&5
88066: $as_echo "$ac_cv_crypt_SHA256" >&6; }
88067: 
88068: 
88069: 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
88070: 
88071:         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports __alignof__" >&5
88072: $as_echo_n "checking whether the compiler supports __alignof__... " >&6; }
88073: if ${ac_cv_alignof_exists+:} false; then :
88074:   $as_echo_n "(cached) " >&6
88075: else
88076: 
88077:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
88078: /* end confdefs.h.  */
88079: 
88080: 
88081: int
88082: main ()
88083: {
88084: 
88085:     int align = __alignof__(int);
88086: 
88087:   ;
88088:   return 0;
88089: }
88090: _ACEOF
88091: if ac_fn_c_try_compile "$LINENO"; then :
88092: 
88093:     ac_cv_alignof_exists=yes
88094: 
88095: else
88096: 
88097:     ac_cv_alignof_exists=no
88098: 
88099: fi
88100: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
88101: fi
88102: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_exists" >&5
88103: $as_echo "$ac_cv_alignof_exists" >&6; }
88104:   if test "$ac_cv_alignof_exists" = "yes"; then
88105: 
88106: $as_echo "#define HAVE_ALIGNOF 1" >>confdefs.h
88107: 
88108:   fi
88109: 
88110:         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports aligned attribute" >&5
88111: $as_echo_n "checking whether the compiler supports aligned attribute... " >&6; }
88112: if ${ac_cv_attribute_aligned+:} false; then :
88113:   $as_echo_n "(cached) " >&6
88114: else
88115: 
88116:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
88117: /* end confdefs.h.  */
88118: 
88119: 
88120: int
88121: main ()
88122: {
88123: 
88124:     unsigned char test[32] __attribute__ ((__aligned__ (__alignof__ (int))));
88125: 
88126:   ;
88127:   return 0;
88128: }
88129: _ACEOF
88130: if ac_fn_c_try_compile "$LINENO"; then :
88131: 
88132:     ac_cv_attribute_aligned=yes
88133: 
88134: else
88135: 
88136:     ac_cv_attribute_aligned=no
88137: 
88138: fi
88139: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
88140: fi
88141: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_attribute_aligned" >&5
88142: $as_echo "$ac_cv_attribute_aligned" >&6; }
88143:   if test "$ac_cv_attribute_aligned" = "yes"; then
88144: 
88145: $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
88146: 
88147:   fi
88148: 
88149: 
88150: 
88151: cat >>confdefs.h <<_ACEOF
88152: #define PHP_USE_PHP_CRYPT_R 1
88153: _ACEOF
88154: 
88155: 
88156: cat >>confdefs.h <<_ACEOF
88157: #define PHP_STD_DES_CRYPT 1
88158: _ACEOF
88159: 
88160: 
88161: cat >>confdefs.h <<_ACEOF
88162: #define PHP_BLOWFISH_CRYPT 1
88163: _ACEOF
88164: 
88165: 
88166: cat >>confdefs.h <<_ACEOF
88167: #define PHP_EXT_DES_CRYPT 1
88168: _ACEOF
88169: 
88170: 
88171: cat >>confdefs.h <<_ACEOF
88172: #define PHP_MD5_CRYPT 1
88173: _ACEOF
88174: 
88175: 
88176: cat >>confdefs.h <<_ACEOF
88177: #define PHP_SHA512_CRYPT 1
88178: _ACEOF
88179: 
88180: 
88181: cat >>confdefs.h <<_ACEOF
88182: #define PHP_SHA256_CRYPT 1
88183: _ACEOF
88184: 
88185: 
88186: 
88187: 
88188:   case ext/standard in
88189:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
88190:   /*) ac_srcdir=`echo "ext/standard"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
88191:   *) ac_srcdir="$abs_srcdir/ext/standard/"; ac_bdir="ext/standard/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
88192:   esac
88193: 
88194: 
88195: 
88196:   b_c_pre=$php_c_pre
88197:   b_cxx_pre=$php_cxx_pre
88198:   b_c_meta=$php_c_meta
88199:   b_cxx_meta=$php_cxx_meta
88200:   b_c_post=$php_c_post
88201:   b_cxx_post=$php_cxx_post
88202:   b_lo=$php_lo
88203: 
88204: 
88205:   old_IFS=$IFS
88206:   for ac_src in crypt_freesec.c crypt_blowfish.c crypt_sha512.c crypt_sha256.c php_crypt_r.c; do
88207: 
88208:       IFS=.
88209:       set $ac_src
88210:       ac_obj=$1
88211:       IFS=$old_IFS
88212: 
88213:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
88214: 
88215:       case $ac_src in
88216:         *.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" ;;
88217:         *.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" ;;
88218:         *.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" ;;
88219:         *.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" ;;
88220:       esac
88221: 
88222:     cat >>Makefile.objects<<EOF
88223: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
88224: 	$ac_comp
88225: EOF
88226:   done
88227: 
88228: 
88229: else
88230:   if test "$ac_cv_crypt_des" = "yes"; then
88231:     ac_result=1
88232:     ac_crypt_des=1
88233:   else
88234:     ac_result=0
88235:     ac_crypt_des=0
88236:   fi
88237: 
88238: cat >>confdefs.h <<_ACEOF
88239: #define PHP_STD_DES_CRYPT $ac_result
88240: _ACEOF
88241: 
88242: 
88243:   if test "$ac_cv_crypt_blowfish" = "yes"; then
88244:     ac_result=1
88245:     ac_crypt_blowfish=1
88246:   else
88247:     ac_result=0
88248:     ac_crypt_blowfish=0
88249:   fi
88250: 
88251: cat >>confdefs.h <<_ACEOF
88252: #define PHP_BLOWFISH_CRYPT $ac_result
88253: _ACEOF
88254: 
88255: 
88256:   if test "$ac_cv_crypt_ext_des" = "yes"; then
88257:     ac_result=1
88258:     ac_crypt_edes=1
88259:   else
88260:     ac_result=0
88261:     ac_crypt_edes=0
88262:   fi
88263: 
88264: cat >>confdefs.h <<_ACEOF
88265: #define PHP_EXT_DES_CRYPT $ac_result
88266: _ACEOF
88267: 
88268: 
88269:   if test "$ac_cv_crypt_md5" = "yes"; then
88270:     ac_result=1
88271:     ac_crypt_md5=1
88272:   else
88273:     ac_result=0
88274:     ac_crypt_md5=0
88275:   fi
88276: 
88277: cat >>confdefs.h <<_ACEOF
88278: #define PHP_MD5_CRYPT $ac_result
88279: _ACEOF
88280: 
88281: 
88282:   if test "$ac_cv_crypt_sha512" = "yes"; then
88283:     ac_result=1
88284:     ac_crypt_sha512=1
88285:   else
88286:     ac_result=0
88287:     ac_crypt_sha512=0
88288:   fi
88289: 
88290: cat >>confdefs.h <<_ACEOF
88291: #define PHP_SHA512_CRYPT $ac_result
88292: _ACEOF
88293: 
88294: 
88295:   if test "$ac_cv_crypt_sha256" = "yes"; then
88296:     ac_result=1
88297:     ac_crypt_sha256=1
88298:   else
88299:     ac_result=0
88300:     ac_crypt_sha256=0
88301:   fi
88302: 
88303: cat >>confdefs.h <<_ACEOF
88304: #define PHP_SHA256_CRYPT $ac_result
88305: _ACEOF
88306: 
88307: 
88308: 
88309: cat >>confdefs.h <<_ACEOF
88310: #define PHP_USE_PHP_CRYPT_R 0
88311: _ACEOF
88312: 
88313: fi
88314: 
88315: for ac_func in getcwd getwd asinh acosh atanh log1p hypot glob strfmon nice fpclass isinf isnan mempcpy strpncpy
88316: do :
88317:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
88318: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
88319: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
88320:   cat >>confdefs.h <<_ACEOF
88321: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
88322: _ACEOF
88323: 
88324: fi
88325: done
88326: 
88327: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working POSIX fnmatch" >&5
88328: $as_echo_n "checking for working POSIX fnmatch... " >&6; }
88329: if ${ac_cv_func_fnmatch_works+:} false; then :
88330:   $as_echo_n "(cached) " >&6
88331: else
88332:   # Some versions of Solaris, SCO, and the GNU C Library
88333:    # have a broken or incompatible fnmatch.
88334:    # So we run a test program.  If we are cross-compiling, take no chance.
88335:    # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
88336:    if test "$cross_compiling" = yes; then :
88337:   ac_cv_func_fnmatch_works=cross
88338: else
88339:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
88340: /* end confdefs.h.  */
88341: #include <fnmatch.h>
88342: #	   define y(a, b, c) (fnmatch (a, b, c) == 0)
88343: #	   define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
88344: 
88345: int
88346: main ()
88347: {
88348: return
88349: 	   (!(y ("a*", "abc", 0)
88350: 	      && n ("d*/*1", "d/s/1", FNM_PATHNAME)
88351: 	      && y ("a\\\\bc", "abc", 0)
88352: 	      && n ("a\\\\bc", "abc", FNM_NOESCAPE)
88353: 	      && y ("*x", ".x", 0)
88354: 	      && n ("*x", ".x", FNM_PERIOD)
88355: 	      && 1));
88356:   ;
88357:   return 0;
88358: }
88359: _ACEOF
88360: if ac_fn_c_try_run "$LINENO"; then :
88361:   ac_cv_func_fnmatch_works=yes
88362: else
88363:   ac_cv_func_fnmatch_works=no
88364: fi
88365: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
88366:   conftest.$ac_objext conftest.beam conftest.$ac_ext
88367: fi
88368: 
88369: fi
88370: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fnmatch_works" >&5
88371: $as_echo "$ac_cv_func_fnmatch_works" >&6; }
88372: if test $ac_cv_func_fnmatch_works = yes; then :
88373: 
88374: $as_echo "#define HAVE_FNMATCH 1" >>confdefs.h
88375: 
88376: fi
88377: 
88378: 
88379: 
88380: for ac_func in fork CreateProcess
88381: do :
88382:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
88383: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
88384: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
88385:   cat >>confdefs.h <<_ACEOF
88386: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
88387: _ACEOF
88388: 
88389:   php_can_support_proc_open=yes
88390:   break
88391: 
88392: else
88393: 
88394:   php_can_support_proc_open=no
88395: 
88396: fi
88397: done
88398: 
88399: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your OS can spawn processes with inherited handles" >&5
88400: $as_echo_n "checking if your OS can spawn processes with inherited handles... " >&6; }
88401: if test "$php_can_support_proc_open" = "yes"; then
88402:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
88403: $as_echo "yes" >&6; }
88404: 
88405: $as_echo "#define PHP_CAN_SUPPORT_PROC_OPEN 1" >>confdefs.h
88406: 
88407: else
88408:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
88409: $as_echo "no" >&6; }
88410: fi
88411: 
88412: PHP_ENABLE_CHROOT_FUNC=no
88413: case "$PHP_SAPI" in
88414:   embed)
88415:     PHP_ENABLE_CHROOT_FUNC=yes
88416:   ;;
88417: 
88418:   none)
88419:     for PROG in $PHP_BINARIES; do
88420:       case "$PROG" in
88421:         cgi|cli)
88422:           PHP_ENABLE_CHROOT_FUNC=yes
88423:         ;;
88424: 
88425:         *)
88426:           PHP_ENABLE_CHROOT_FUNC=no
88427:           break
88428:         ;;
88429:       esac
88430:    done
88431:   ;;
88432: esac
88433: 
88434: if test "$PHP_ENABLE_CHROOT_FUNC" = "yes"; then
88435: 
88436: $as_echo "#define ENABLE_CHROOT_FUNC 1" >>confdefs.h
88437: 
88438: fi
88439: 
88440: 
88441:   unset ac_cv_func_res_nsearch
88442:   unset ac_cv_func___res_nsearch
88443:   unset found
88444: 
88445:   ac_fn_c_check_func "$LINENO" "res_nsearch" "ac_cv_func_res_nsearch"
88446: if test "x$ac_cv_func_res_nsearch" = xyes; then :
88447:   found=yes
88448: else
88449:    ac_fn_c_check_func "$LINENO" "__res_nsearch" "ac_cv_func___res_nsearch"
88450: if test "x$ac_cv_func___res_nsearch" = xyes; then :
88451:   found=yes
88452: else
88453:   found=no
88454: fi
88455: 
88456: fi
88457: 
88458: 
88459:   case $found in
88460:   yes)
88461: 
88462: $as_echo "#define HAVE_RES_NSEARCH 1" >>confdefs.h
88463: 
88464:     ac_cv_func_res_nsearch=yes
88465:   ;;
88466: 
88467:     *)
88468: 
88469:   unset ac_cv_lib_resolv_res_nsearch
88470:   unset ac_cv_lib_resolv___res_nsearch
88471:   unset found
88472:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_nsearch in -lresolv" >&5
88473: $as_echo_n "checking for res_nsearch in -lresolv... " >&6; }
88474: if ${ac_cv_lib_resolv_res_nsearch+:} false; then :
88475:   $as_echo_n "(cached) " >&6
88476: else
88477:   ac_check_lib_save_LIBS=$LIBS
88478: LIBS="-lresolv  $LIBS"
88479: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
88480: /* end confdefs.h.  */
88481: 
88482: /* Override any GCC internal prototype to avoid an error.
88483:    Use char because int might match the return type of a GCC
88484:    builtin and then its argument prototype would still apply.  */
88485: #ifdef __cplusplus
88486: extern "C"
88487: #endif
88488: char res_nsearch ();
88489: int
88490: main ()
88491: {
88492: return res_nsearch ();
88493:   ;
88494:   return 0;
88495: }
88496: _ACEOF
88497: if ac_fn_c_try_link "$LINENO"; then :
88498:   ac_cv_lib_resolv_res_nsearch=yes
88499: else
88500:   ac_cv_lib_resolv_res_nsearch=no
88501: fi
88502: rm -f core conftest.err conftest.$ac_objext \
88503:     conftest$ac_exeext conftest.$ac_ext
88504: LIBS=$ac_check_lib_save_LIBS
88505: fi
88506: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_nsearch" >&5
88507: $as_echo "$ac_cv_lib_resolv_res_nsearch" >&6; }
88508: if test "x$ac_cv_lib_resolv_res_nsearch" = xyes; then :
88509:   found=yes
88510: else
88511: 
88512:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_nsearch in -lresolv" >&5
88513: $as_echo_n "checking for __res_nsearch in -lresolv... " >&6; }
88514: if ${ac_cv_lib_resolv___res_nsearch+:} false; then :
88515:   $as_echo_n "(cached) " >&6
88516: else
88517:   ac_check_lib_save_LIBS=$LIBS
88518: LIBS="-lresolv  $LIBS"
88519: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
88520: /* end confdefs.h.  */
88521: 
88522: /* Override any GCC internal prototype to avoid an error.
88523:    Use char because int might match the return type of a GCC
88524:    builtin and then its argument prototype would still apply.  */
88525: #ifdef __cplusplus
88526: extern "C"
88527: #endif
88528: char __res_nsearch ();
88529: int
88530: main ()
88531: {
88532: return __res_nsearch ();
88533:   ;
88534:   return 0;
88535: }
88536: _ACEOF
88537: if ac_fn_c_try_link "$LINENO"; then :
88538:   ac_cv_lib_resolv___res_nsearch=yes
88539: else
88540:   ac_cv_lib_resolv___res_nsearch=no
88541: fi
88542: rm -f core conftest.err conftest.$ac_objext \
88543:     conftest$ac_exeext conftest.$ac_ext
88544: LIBS=$ac_check_lib_save_LIBS
88545: fi
88546: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_nsearch" >&5
88547: $as_echo "$ac_cv_lib_resolv___res_nsearch" >&6; }
88548: if test "x$ac_cv_lib_resolv___res_nsearch" = xyes; then :
88549:   found=yes
88550: else
88551:   found=no
88552: fi
88553: 
88554: 
88555: fi
88556: 
88557: 
88558:   if test "$found" = "yes"; then
88559:     ac_libs=$LIBS
88560:     LIBS="$LIBS -lresolv"
88561:     if test "$cross_compiling" = yes; then :
88562:   found=no
88563: else
88564:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
88565: /* end confdefs.h.  */
88566: main() { return (0); }
88567: _ACEOF
88568: if ac_fn_c_try_run "$LINENO"; then :
88569:   found=yes
88570: else
88571:   found=no
88572: fi
88573: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
88574:   conftest.$ac_objext conftest.beam conftest.$ac_ext
88575: fi
88576: 
88577:     LIBS=$ac_libs
88578:   fi
88579: 
88580:   if test "$found" = "yes"; then
88581: 
88582: 
88583:   case resolv in
88584:   c|c_r|pthread*) ;;
88585:   *)
88586:       LIBS="-lresolv $LIBS"
88587:    ;;
88588:   esac
88589: 
88590: 
88591: 
88592: $as_echo "#define HAVE_RES_NSEARCH 1" >>confdefs.h
88593: 
88594: 
88595: $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
88596: 
88597:     ac_cv_func_res_nsearch=yes
88598:   else
88599: 
88600: 
88601:   unset ac_cv_lib_bind_res_nsearch
88602:   unset ac_cv_lib_bind___res_nsearch
88603:   unset found
88604:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_nsearch in -lbind" >&5
88605: $as_echo_n "checking for res_nsearch in -lbind... " >&6; }
88606: if ${ac_cv_lib_bind_res_nsearch+:} false; then :
88607:   $as_echo_n "(cached) " >&6
88608: else
88609:   ac_check_lib_save_LIBS=$LIBS
88610: LIBS="-lbind  $LIBS"
88611: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
88612: /* end confdefs.h.  */
88613: 
88614: /* Override any GCC internal prototype to avoid an error.
88615:    Use char because int might match the return type of a GCC
88616:    builtin and then its argument prototype would still apply.  */
88617: #ifdef __cplusplus
88618: extern "C"
88619: #endif
88620: char res_nsearch ();
88621: int
88622: main ()
88623: {
88624: return res_nsearch ();
88625:   ;
88626:   return 0;
88627: }
88628: _ACEOF
88629: if ac_fn_c_try_link "$LINENO"; then :
88630:   ac_cv_lib_bind_res_nsearch=yes
88631: else
88632:   ac_cv_lib_bind_res_nsearch=no
88633: fi
88634: rm -f core conftest.err conftest.$ac_objext \
88635:     conftest$ac_exeext conftest.$ac_ext
88636: LIBS=$ac_check_lib_save_LIBS
88637: fi
88638: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_res_nsearch" >&5
88639: $as_echo "$ac_cv_lib_bind_res_nsearch" >&6; }
88640: if test "x$ac_cv_lib_bind_res_nsearch" = xyes; then :
88641:   found=yes
88642: else
88643: 
88644:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_nsearch in -lbind" >&5
88645: $as_echo_n "checking for __res_nsearch in -lbind... " >&6; }
88646: if ${ac_cv_lib_bind___res_nsearch+:} false; then :
88647:   $as_echo_n "(cached) " >&6
88648: else
88649:   ac_check_lib_save_LIBS=$LIBS
88650: LIBS="-lbind  $LIBS"
88651: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
88652: /* end confdefs.h.  */
88653: 
88654: /* Override any GCC internal prototype to avoid an error.
88655:    Use char because int might match the return type of a GCC
88656:    builtin and then its argument prototype would still apply.  */
88657: #ifdef __cplusplus
88658: extern "C"
88659: #endif
88660: char __res_nsearch ();
88661: int
88662: main ()
88663: {
88664: return __res_nsearch ();
88665:   ;
88666:   return 0;
88667: }
88668: _ACEOF
88669: if ac_fn_c_try_link "$LINENO"; then :
88670:   ac_cv_lib_bind___res_nsearch=yes
88671: else
88672:   ac_cv_lib_bind___res_nsearch=no
88673: fi
88674: rm -f core conftest.err conftest.$ac_objext \
88675:     conftest$ac_exeext conftest.$ac_ext
88676: LIBS=$ac_check_lib_save_LIBS
88677: fi
88678: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind___res_nsearch" >&5
88679: $as_echo "$ac_cv_lib_bind___res_nsearch" >&6; }
88680: if test "x$ac_cv_lib_bind___res_nsearch" = xyes; then :
88681:   found=yes
88682: else
88683:   found=no
88684: fi
88685: 
88686: 
88687: fi
88688: 
88689: 
88690:   if test "$found" = "yes"; then
88691:     ac_libs=$LIBS
88692:     LIBS="$LIBS -lbind"
88693:     if test "$cross_compiling" = yes; then :
88694:   found=no
88695: else
88696:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
88697: /* end confdefs.h.  */
88698: main() { return (0); }
88699: _ACEOF
88700: if ac_fn_c_try_run "$LINENO"; then :
88701:   found=yes
88702: else
88703:   found=no
88704: fi
88705: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
88706:   conftest.$ac_objext conftest.beam conftest.$ac_ext
88707: fi
88708: 
88709:     LIBS=$ac_libs
88710:   fi
88711: 
88712:   if test "$found" = "yes"; then
88713: 
88714: 
88715:   case bind in
88716:   c|c_r|pthread*) ;;
88717:   *)
88718:       LIBS="-lbind $LIBS"
88719:    ;;
88720:   esac
88721: 
88722: 
88723: 
88724: $as_echo "#define HAVE_RES_NSEARCH 1" >>confdefs.h
88725: 
88726: 
88727: $as_echo "#define HAVE_LIBBIND 1" >>confdefs.h
88728: 
88729:     ac_cv_func_res_nsearch=yes
88730:   else
88731: 
88732: 
88733:   unset ac_cv_lib_socket_res_nsearch
88734:   unset ac_cv_lib_socket___res_nsearch
88735:   unset found
88736:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_nsearch in -lsocket" >&5
88737: $as_echo_n "checking for res_nsearch in -lsocket... " >&6; }
88738: if ${ac_cv_lib_socket_res_nsearch+:} false; then :
88739:   $as_echo_n "(cached) " >&6
88740: else
88741:   ac_check_lib_save_LIBS=$LIBS
88742: LIBS="-lsocket  $LIBS"
88743: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
88744: /* end confdefs.h.  */
88745: 
88746: /* Override any GCC internal prototype to avoid an error.
88747:    Use char because int might match the return type of a GCC
88748:    builtin and then its argument prototype would still apply.  */
88749: #ifdef __cplusplus
88750: extern "C"
88751: #endif
88752: char res_nsearch ();
88753: int
88754: main ()
88755: {
88756: return res_nsearch ();
88757:   ;
88758:   return 0;
88759: }
88760: _ACEOF
88761: if ac_fn_c_try_link "$LINENO"; then :
88762:   ac_cv_lib_socket_res_nsearch=yes
88763: else
88764:   ac_cv_lib_socket_res_nsearch=no
88765: fi
88766: rm -f core conftest.err conftest.$ac_objext \
88767:     conftest$ac_exeext conftest.$ac_ext
88768: LIBS=$ac_check_lib_save_LIBS
88769: fi
88770: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_res_nsearch" >&5
88771: $as_echo "$ac_cv_lib_socket_res_nsearch" >&6; }
88772: if test "x$ac_cv_lib_socket_res_nsearch" = xyes; then :
88773:   found=yes
88774: else
88775: 
88776:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_nsearch in -lsocket" >&5
88777: $as_echo_n "checking for __res_nsearch in -lsocket... " >&6; }
88778: if ${ac_cv_lib_socket___res_nsearch+:} false; then :
88779:   $as_echo_n "(cached) " >&6
88780: else
88781:   ac_check_lib_save_LIBS=$LIBS
88782: LIBS="-lsocket  $LIBS"
88783: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
88784: /* end confdefs.h.  */
88785: 
88786: /* Override any GCC internal prototype to avoid an error.
88787:    Use char because int might match the return type of a GCC
88788:    builtin and then its argument prototype would still apply.  */
88789: #ifdef __cplusplus
88790: extern "C"
88791: #endif
88792: char __res_nsearch ();
88793: int
88794: main ()
88795: {
88796: return __res_nsearch ();
88797:   ;
88798:   return 0;
88799: }
88800: _ACEOF
88801: if ac_fn_c_try_link "$LINENO"; then :
88802:   ac_cv_lib_socket___res_nsearch=yes
88803: else
88804:   ac_cv_lib_socket___res_nsearch=no
88805: fi
88806: rm -f core conftest.err conftest.$ac_objext \
88807:     conftest$ac_exeext conftest.$ac_ext
88808: LIBS=$ac_check_lib_save_LIBS
88809: fi
88810: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___res_nsearch" >&5
88811: $as_echo "$ac_cv_lib_socket___res_nsearch" >&6; }
88812: if test "x$ac_cv_lib_socket___res_nsearch" = xyes; then :
88813:   found=yes
88814: else
88815:   found=no
88816: fi
88817: 
88818: 
88819: fi
88820: 
88821: 
88822:   if test "$found" = "yes"; then
88823:     ac_libs=$LIBS
88824:     LIBS="$LIBS -lsocket"
88825:     if test "$cross_compiling" = yes; then :
88826:   found=no
88827: else
88828:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
88829: /* end confdefs.h.  */
88830: main() { return (0); }
88831: _ACEOF
88832: if ac_fn_c_try_run "$LINENO"; then :
88833:   found=yes
88834: else
88835:   found=no
88836: fi
88837: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
88838:   conftest.$ac_objext conftest.beam conftest.$ac_ext
88839: fi
88840: 
88841:     LIBS=$ac_libs
88842:   fi
88843: 
88844:   if test "$found" = "yes"; then
88845: 
88846: 
88847:   case socket in
88848:   c|c_r|pthread*) ;;
88849:   *)
88850:       LIBS="-lsocket $LIBS"
88851:    ;;
88852:   esac
88853: 
88854: 
88855: 
88856: $as_echo "#define HAVE_RES_NSEARCH 1" >>confdefs.h
88857: 
88858: 
88859: $as_echo "#define HAVE_LIBSOCKET 1" >>confdefs.h
88860: 
88861:     ac_cv_func_res_nsearch=yes
88862:   else
88863: 
88864:   :
88865: 
88866:   fi
88867: 
88868: 
88869:   fi
88870: 
88871: 
88872:   fi
88873: 
88874:  ;;
88875: 
88876:   esac
88877: 
88878: 
88879:   unset ac_cv_func_dns_search
88880:   unset ac_cv_func___dns_search
88881:   unset found
88882: 
88883:   ac_fn_c_check_func "$LINENO" "dns_search" "ac_cv_func_dns_search"
88884: if test "x$ac_cv_func_dns_search" = xyes; then :
88885:   found=yes
88886: else
88887:    ac_fn_c_check_func "$LINENO" "__dns_search" "ac_cv_func___dns_search"
88888: if test "x$ac_cv_func___dns_search" = xyes; then :
88889:   found=yes
88890: else
88891:   found=no
88892: fi
88893: 
88894: fi
88895: 
88896: 
88897:   case $found in
88898:   yes)
88899: 
88900: $as_echo "#define HAVE_DNS_SEARCH 1" >>confdefs.h
88901: 
88902:     ac_cv_func_dns_search=yes
88903:   ;;
88904: 
88905:     *)
88906: 
88907:   unset ac_cv_lib_resolv_dns_search
88908:   unset ac_cv_lib_resolv___dns_search
88909:   unset found
88910:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dns_search in -lresolv" >&5
88911: $as_echo_n "checking for dns_search in -lresolv... " >&6; }
88912: if ${ac_cv_lib_resolv_dns_search+:} false; then :
88913:   $as_echo_n "(cached) " >&6
88914: else
88915:   ac_check_lib_save_LIBS=$LIBS
88916: LIBS="-lresolv  $LIBS"
88917: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
88918: /* end confdefs.h.  */
88919: 
88920: /* Override any GCC internal prototype to avoid an error.
88921:    Use char because int might match the return type of a GCC
88922:    builtin and then its argument prototype would still apply.  */
88923: #ifdef __cplusplus
88924: extern "C"
88925: #endif
88926: char dns_search ();
88927: int
88928: main ()
88929: {
88930: return dns_search ();
88931:   ;
88932:   return 0;
88933: }
88934: _ACEOF
88935: if ac_fn_c_try_link "$LINENO"; then :
88936:   ac_cv_lib_resolv_dns_search=yes
88937: else
88938:   ac_cv_lib_resolv_dns_search=no
88939: fi
88940: rm -f core conftest.err conftest.$ac_objext \
88941:     conftest$ac_exeext conftest.$ac_ext
88942: LIBS=$ac_check_lib_save_LIBS
88943: fi
88944: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_dns_search" >&5
88945: $as_echo "$ac_cv_lib_resolv_dns_search" >&6; }
88946: if test "x$ac_cv_lib_resolv_dns_search" = xyes; then :
88947:   found=yes
88948: else
88949: 
88950:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dns_search in -lresolv" >&5
88951: $as_echo_n "checking for __dns_search in -lresolv... " >&6; }
88952: if ${ac_cv_lib_resolv___dns_search+:} false; then :
88953:   $as_echo_n "(cached) " >&6
88954: else
88955:   ac_check_lib_save_LIBS=$LIBS
88956: LIBS="-lresolv  $LIBS"
88957: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
88958: /* end confdefs.h.  */
88959: 
88960: /* Override any GCC internal prototype to avoid an error.
88961:    Use char because int might match the return type of a GCC
88962:    builtin and then its argument prototype would still apply.  */
88963: #ifdef __cplusplus
88964: extern "C"
88965: #endif
88966: char __dns_search ();
88967: int
88968: main ()
88969: {
88970: return __dns_search ();
88971:   ;
88972:   return 0;
88973: }
88974: _ACEOF
88975: if ac_fn_c_try_link "$LINENO"; then :
88976:   ac_cv_lib_resolv___dns_search=yes
88977: else
88978:   ac_cv_lib_resolv___dns_search=no
88979: fi
88980: rm -f core conftest.err conftest.$ac_objext \
88981:     conftest$ac_exeext conftest.$ac_ext
88982: LIBS=$ac_check_lib_save_LIBS
88983: fi
88984: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___dns_search" >&5
88985: $as_echo "$ac_cv_lib_resolv___dns_search" >&6; }
88986: if test "x$ac_cv_lib_resolv___dns_search" = xyes; then :
88987:   found=yes
88988: else
88989:   found=no
88990: fi
88991: 
88992: 
88993: fi
88994: 
88995: 
88996:   if test "$found" = "yes"; then
88997:     ac_libs=$LIBS
88998:     LIBS="$LIBS -lresolv"
88999:     if test "$cross_compiling" = yes; then :
89000:   found=no
89001: else
89002:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
89003: /* end confdefs.h.  */
89004: main() { return (0); }
89005: _ACEOF
89006: if ac_fn_c_try_run "$LINENO"; then :
89007:   found=yes
89008: else
89009:   found=no
89010: fi
89011: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
89012:   conftest.$ac_objext conftest.beam conftest.$ac_ext
89013: fi
89014: 
89015:     LIBS=$ac_libs
89016:   fi
89017: 
89018:   if test "$found" = "yes"; then
89019: 
89020: 
89021:   case resolv in
89022:   c|c_r|pthread*) ;;
89023:   *)
89024:       LIBS="-lresolv $LIBS"
89025:    ;;
89026:   esac
89027: 
89028: 
89029: 
89030: $as_echo "#define HAVE_DNS_SEARCH 1" >>confdefs.h
89031: 
89032: 
89033: $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
89034: 
89035:     ac_cv_func_dns_search=yes
89036:   else
89037: 
89038: 
89039:   unset ac_cv_lib_bind_dns_search
89040:   unset ac_cv_lib_bind___dns_search
89041:   unset found
89042:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dns_search in -lbind" >&5
89043: $as_echo_n "checking for dns_search in -lbind... " >&6; }
89044: if ${ac_cv_lib_bind_dns_search+:} false; then :
89045:   $as_echo_n "(cached) " >&6
89046: else
89047:   ac_check_lib_save_LIBS=$LIBS
89048: LIBS="-lbind  $LIBS"
89049: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
89050: /* end confdefs.h.  */
89051: 
89052: /* Override any GCC internal prototype to avoid an error.
89053:    Use char because int might match the return type of a GCC
89054:    builtin and then its argument prototype would still apply.  */
89055: #ifdef __cplusplus
89056: extern "C"
89057: #endif
89058: char dns_search ();
89059: int
89060: main ()
89061: {
89062: return dns_search ();
89063:   ;
89064:   return 0;
89065: }
89066: _ACEOF
89067: if ac_fn_c_try_link "$LINENO"; then :
89068:   ac_cv_lib_bind_dns_search=yes
89069: else
89070:   ac_cv_lib_bind_dns_search=no
89071: fi
89072: rm -f core conftest.err conftest.$ac_objext \
89073:     conftest$ac_exeext conftest.$ac_ext
89074: LIBS=$ac_check_lib_save_LIBS
89075: fi
89076: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_dns_search" >&5
89077: $as_echo "$ac_cv_lib_bind_dns_search" >&6; }
89078: if test "x$ac_cv_lib_bind_dns_search" = xyes; then :
89079:   found=yes
89080: else
89081: 
89082:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dns_search in -lbind" >&5
89083: $as_echo_n "checking for __dns_search in -lbind... " >&6; }
89084: if ${ac_cv_lib_bind___dns_search+:} false; then :
89085:   $as_echo_n "(cached) " >&6
89086: else
89087:   ac_check_lib_save_LIBS=$LIBS
89088: LIBS="-lbind  $LIBS"
89089: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
89090: /* end confdefs.h.  */
89091: 
89092: /* Override any GCC internal prototype to avoid an error.
89093:    Use char because int might match the return type of a GCC
89094:    builtin and then its argument prototype would still apply.  */
89095: #ifdef __cplusplus
89096: extern "C"
89097: #endif
89098: char __dns_search ();
89099: int
89100: main ()
89101: {
89102: return __dns_search ();
89103:   ;
89104:   return 0;
89105: }
89106: _ACEOF
89107: if ac_fn_c_try_link "$LINENO"; then :
89108:   ac_cv_lib_bind___dns_search=yes
89109: else
89110:   ac_cv_lib_bind___dns_search=no
89111: fi
89112: rm -f core conftest.err conftest.$ac_objext \
89113:     conftest$ac_exeext conftest.$ac_ext
89114: LIBS=$ac_check_lib_save_LIBS
89115: fi
89116: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind___dns_search" >&5
89117: $as_echo "$ac_cv_lib_bind___dns_search" >&6; }
89118: if test "x$ac_cv_lib_bind___dns_search" = xyes; then :
89119:   found=yes
89120: else
89121:   found=no
89122: fi
89123: 
89124: 
89125: fi
89126: 
89127: 
89128:   if test "$found" = "yes"; then
89129:     ac_libs=$LIBS
89130:     LIBS="$LIBS -lbind"
89131:     if test "$cross_compiling" = yes; then :
89132:   found=no
89133: else
89134:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
89135: /* end confdefs.h.  */
89136: main() { return (0); }
89137: _ACEOF
89138: if ac_fn_c_try_run "$LINENO"; then :
89139:   found=yes
89140: else
89141:   found=no
89142: fi
89143: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
89144:   conftest.$ac_objext conftest.beam conftest.$ac_ext
89145: fi
89146: 
89147:     LIBS=$ac_libs
89148:   fi
89149: 
89150:   if test "$found" = "yes"; then
89151: 
89152: 
89153:   case bind in
89154:   c|c_r|pthread*) ;;
89155:   *)
89156:       LIBS="-lbind $LIBS"
89157:    ;;
89158:   esac
89159: 
89160: 
89161: 
89162: $as_echo "#define HAVE_DNS_SEARCH 1" >>confdefs.h
89163: 
89164: 
89165: $as_echo "#define HAVE_LIBBIND 1" >>confdefs.h
89166: 
89167:     ac_cv_func_dns_search=yes
89168:   else
89169: 
89170: 
89171:   unset ac_cv_lib_socket_dns_search
89172:   unset ac_cv_lib_socket___dns_search
89173:   unset found
89174:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dns_search in -lsocket" >&5
89175: $as_echo_n "checking for dns_search in -lsocket... " >&6; }
89176: if ${ac_cv_lib_socket_dns_search+:} false; then :
89177:   $as_echo_n "(cached) " >&6
89178: else
89179:   ac_check_lib_save_LIBS=$LIBS
89180: LIBS="-lsocket  $LIBS"
89181: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
89182: /* end confdefs.h.  */
89183: 
89184: /* Override any GCC internal prototype to avoid an error.
89185:    Use char because int might match the return type of a GCC
89186:    builtin and then its argument prototype would still apply.  */
89187: #ifdef __cplusplus
89188: extern "C"
89189: #endif
89190: char dns_search ();
89191: int
89192: main ()
89193: {
89194: return dns_search ();
89195:   ;
89196:   return 0;
89197: }
89198: _ACEOF
89199: if ac_fn_c_try_link "$LINENO"; then :
89200:   ac_cv_lib_socket_dns_search=yes
89201: else
89202:   ac_cv_lib_socket_dns_search=no
89203: fi
89204: rm -f core conftest.err conftest.$ac_objext \
89205:     conftest$ac_exeext conftest.$ac_ext
89206: LIBS=$ac_check_lib_save_LIBS
89207: fi
89208: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_dns_search" >&5
89209: $as_echo "$ac_cv_lib_socket_dns_search" >&6; }
89210: if test "x$ac_cv_lib_socket_dns_search" = xyes; then :
89211:   found=yes
89212: else
89213: 
89214:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dns_search in -lsocket" >&5
89215: $as_echo_n "checking for __dns_search in -lsocket... " >&6; }
89216: if ${ac_cv_lib_socket___dns_search+:} false; then :
89217:   $as_echo_n "(cached) " >&6
89218: else
89219:   ac_check_lib_save_LIBS=$LIBS
89220: LIBS="-lsocket  $LIBS"
89221: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
89222: /* end confdefs.h.  */
89223: 
89224: /* Override any GCC internal prototype to avoid an error.
89225:    Use char because int might match the return type of a GCC
89226:    builtin and then its argument prototype would still apply.  */
89227: #ifdef __cplusplus
89228: extern "C"
89229: #endif
89230: char __dns_search ();
89231: int
89232: main ()
89233: {
89234: return __dns_search ();
89235:   ;
89236:   return 0;
89237: }
89238: _ACEOF
89239: if ac_fn_c_try_link "$LINENO"; then :
89240:   ac_cv_lib_socket___dns_search=yes
89241: else
89242:   ac_cv_lib_socket___dns_search=no
89243: fi
89244: rm -f core conftest.err conftest.$ac_objext \
89245:     conftest$ac_exeext conftest.$ac_ext
89246: LIBS=$ac_check_lib_save_LIBS
89247: fi
89248: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___dns_search" >&5
89249: $as_echo "$ac_cv_lib_socket___dns_search" >&6; }
89250: if test "x$ac_cv_lib_socket___dns_search" = xyes; then :
89251:   found=yes
89252: else
89253:   found=no
89254: fi
89255: 
89256: 
89257: fi
89258: 
89259: 
89260:   if test "$found" = "yes"; then
89261:     ac_libs=$LIBS
89262:     LIBS="$LIBS -lsocket"
89263:     if test "$cross_compiling" = yes; then :
89264:   found=no
89265: else
89266:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
89267: /* end confdefs.h.  */
89268: main() { return (0); }
89269: _ACEOF
89270: if ac_fn_c_try_run "$LINENO"; then :
89271:   found=yes
89272: else
89273:   found=no
89274: fi
89275: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
89276:   conftest.$ac_objext conftest.beam conftest.$ac_ext
89277: fi
89278: 
89279:     LIBS=$ac_libs
89280:   fi
89281: 
89282:   if test "$found" = "yes"; then
89283: 
89284: 
89285:   case socket in
89286:   c|c_r|pthread*) ;;
89287:   *)
89288:       LIBS="-lsocket $LIBS"
89289:    ;;
89290:   esac
89291: 
89292: 
89293: 
89294: $as_echo "#define HAVE_DNS_SEARCH 1" >>confdefs.h
89295: 
89296: 
89297: $as_echo "#define HAVE_LIBSOCKET 1" >>confdefs.h
89298: 
89299:     ac_cv_func_dns_search=yes
89300:   else
89301: 
89302:   :
89303: 
89304:   fi
89305: 
89306: 
89307:   fi
89308: 
89309: 
89310:   fi
89311: 
89312:  ;;
89313: 
89314:   esac
89315: 
89316: 
89317:   unset ac_cv_func_dn_expand
89318:   unset ac_cv_func___dn_expand
89319:   unset found
89320: 
89321:   ac_fn_c_check_func "$LINENO" "dn_expand" "ac_cv_func_dn_expand"
89322: if test "x$ac_cv_func_dn_expand" = xyes; then :
89323:   found=yes
89324: else
89325:    ac_fn_c_check_func "$LINENO" "__dn_expand" "ac_cv_func___dn_expand"
89326: if test "x$ac_cv_func___dn_expand" = xyes; then :
89327:   found=yes
89328: else
89329:   found=no
89330: fi
89331: 
89332: fi
89333: 
89334: 
89335:   case $found in
89336:   yes)
89337: 
89338: $as_echo "#define HAVE_DN_EXPAND 1" >>confdefs.h
89339: 
89340:     ac_cv_func_dn_expand=yes
89341:   ;;
89342: 
89343:     *)
89344: 
89345:   unset ac_cv_lib_resolv_dn_expand
89346:   unset ac_cv_lib_resolv___dn_expand
89347:   unset found
89348:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dn_expand in -lresolv" >&5
89349: $as_echo_n "checking for dn_expand in -lresolv... " >&6; }
89350: if ${ac_cv_lib_resolv_dn_expand+:} false; then :
89351:   $as_echo_n "(cached) " >&6
89352: else
89353:   ac_check_lib_save_LIBS=$LIBS
89354: LIBS="-lresolv  $LIBS"
89355: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
89356: /* end confdefs.h.  */
89357: 
89358: /* Override any GCC internal prototype to avoid an error.
89359:    Use char because int might match the return type of a GCC
89360:    builtin and then its argument prototype would still apply.  */
89361: #ifdef __cplusplus
89362: extern "C"
89363: #endif
89364: char dn_expand ();
89365: int
89366: main ()
89367: {
89368: return dn_expand ();
89369:   ;
89370:   return 0;
89371: }
89372: _ACEOF
89373: if ac_fn_c_try_link "$LINENO"; then :
89374:   ac_cv_lib_resolv_dn_expand=yes
89375: else
89376:   ac_cv_lib_resolv_dn_expand=no
89377: fi
89378: rm -f core conftest.err conftest.$ac_objext \
89379:     conftest$ac_exeext conftest.$ac_ext
89380: LIBS=$ac_check_lib_save_LIBS
89381: fi
89382: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_dn_expand" >&5
89383: $as_echo "$ac_cv_lib_resolv_dn_expand" >&6; }
89384: if test "x$ac_cv_lib_resolv_dn_expand" = xyes; then :
89385:   found=yes
89386: else
89387: 
89388:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dn_expand in -lresolv" >&5
89389: $as_echo_n "checking for __dn_expand in -lresolv... " >&6; }
89390: if ${ac_cv_lib_resolv___dn_expand+:} false; then :
89391:   $as_echo_n "(cached) " >&6
89392: else
89393:   ac_check_lib_save_LIBS=$LIBS
89394: LIBS="-lresolv  $LIBS"
89395: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
89396: /* end confdefs.h.  */
89397: 
89398: /* Override any GCC internal prototype to avoid an error.
89399:    Use char because int might match the return type of a GCC
89400:    builtin and then its argument prototype would still apply.  */
89401: #ifdef __cplusplus
89402: extern "C"
89403: #endif
89404: char __dn_expand ();
89405: int
89406: main ()
89407: {
89408: return __dn_expand ();
89409:   ;
89410:   return 0;
89411: }
89412: _ACEOF
89413: if ac_fn_c_try_link "$LINENO"; then :
89414:   ac_cv_lib_resolv___dn_expand=yes
89415: else
89416:   ac_cv_lib_resolv___dn_expand=no
89417: fi
89418: rm -f core conftest.err conftest.$ac_objext \
89419:     conftest$ac_exeext conftest.$ac_ext
89420: LIBS=$ac_check_lib_save_LIBS
89421: fi
89422: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___dn_expand" >&5
89423: $as_echo "$ac_cv_lib_resolv___dn_expand" >&6; }
89424: if test "x$ac_cv_lib_resolv___dn_expand" = xyes; then :
89425:   found=yes
89426: else
89427:   found=no
89428: fi
89429: 
89430: 
89431: fi
89432: 
89433: 
89434:   if test "$found" = "yes"; then
89435:     ac_libs=$LIBS
89436:     LIBS="$LIBS -lresolv"
89437:     if test "$cross_compiling" = yes; then :
89438:   found=no
89439: else
89440:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
89441: /* end confdefs.h.  */
89442: main() { return (0); }
89443: _ACEOF
89444: if ac_fn_c_try_run "$LINENO"; then :
89445:   found=yes
89446: else
89447:   found=no
89448: fi
89449: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
89450:   conftest.$ac_objext conftest.beam conftest.$ac_ext
89451: fi
89452: 
89453:     LIBS=$ac_libs
89454:   fi
89455: 
89456:   if test "$found" = "yes"; then
89457: 
89458: 
89459:   case resolv in
89460:   c|c_r|pthread*) ;;
89461:   *)
89462:       LIBS="-lresolv $LIBS"
89463:    ;;
89464:   esac
89465: 
89466: 
89467: 
89468: $as_echo "#define HAVE_DN_EXPAND 1" >>confdefs.h
89469: 
89470: 
89471: $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
89472: 
89473:     ac_cv_func_dn_expand=yes
89474:   else
89475: 
89476: 
89477:   unset ac_cv_lib_bind_dn_expand
89478:   unset ac_cv_lib_bind___dn_expand
89479:   unset found
89480:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dn_expand in -lbind" >&5
89481: $as_echo_n "checking for dn_expand in -lbind... " >&6; }
89482: if ${ac_cv_lib_bind_dn_expand+:} false; then :
89483:   $as_echo_n "(cached) " >&6
89484: else
89485:   ac_check_lib_save_LIBS=$LIBS
89486: LIBS="-lbind  $LIBS"
89487: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
89488: /* end confdefs.h.  */
89489: 
89490: /* Override any GCC internal prototype to avoid an error.
89491:    Use char because int might match the return type of a GCC
89492:    builtin and then its argument prototype would still apply.  */
89493: #ifdef __cplusplus
89494: extern "C"
89495: #endif
89496: char dn_expand ();
89497: int
89498: main ()
89499: {
89500: return dn_expand ();
89501:   ;
89502:   return 0;
89503: }
89504: _ACEOF
89505: if ac_fn_c_try_link "$LINENO"; then :
89506:   ac_cv_lib_bind_dn_expand=yes
89507: else
89508:   ac_cv_lib_bind_dn_expand=no
89509: fi
89510: rm -f core conftest.err conftest.$ac_objext \
89511:     conftest$ac_exeext conftest.$ac_ext
89512: LIBS=$ac_check_lib_save_LIBS
89513: fi
89514: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_dn_expand" >&5
89515: $as_echo "$ac_cv_lib_bind_dn_expand" >&6; }
89516: if test "x$ac_cv_lib_bind_dn_expand" = xyes; then :
89517:   found=yes
89518: else
89519: 
89520:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dn_expand in -lbind" >&5
89521: $as_echo_n "checking for __dn_expand in -lbind... " >&6; }
89522: if ${ac_cv_lib_bind___dn_expand+:} false; then :
89523:   $as_echo_n "(cached) " >&6
89524: else
89525:   ac_check_lib_save_LIBS=$LIBS
89526: LIBS="-lbind  $LIBS"
89527: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
89528: /* end confdefs.h.  */
89529: 
89530: /* Override any GCC internal prototype to avoid an error.
89531:    Use char because int might match the return type of a GCC
89532:    builtin and then its argument prototype would still apply.  */
89533: #ifdef __cplusplus
89534: extern "C"
89535: #endif
89536: char __dn_expand ();
89537: int
89538: main ()
89539: {
89540: return __dn_expand ();
89541:   ;
89542:   return 0;
89543: }
89544: _ACEOF
89545: if ac_fn_c_try_link "$LINENO"; then :
89546:   ac_cv_lib_bind___dn_expand=yes
89547: else
89548:   ac_cv_lib_bind___dn_expand=no
89549: fi
89550: rm -f core conftest.err conftest.$ac_objext \
89551:     conftest$ac_exeext conftest.$ac_ext
89552: LIBS=$ac_check_lib_save_LIBS
89553: fi
89554: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind___dn_expand" >&5
89555: $as_echo "$ac_cv_lib_bind___dn_expand" >&6; }
89556: if test "x$ac_cv_lib_bind___dn_expand" = xyes; then :
89557:   found=yes
89558: else
89559:   found=no
89560: fi
89561: 
89562: 
89563: fi
89564: 
89565: 
89566:   if test "$found" = "yes"; then
89567:     ac_libs=$LIBS
89568:     LIBS="$LIBS -lbind"
89569:     if test "$cross_compiling" = yes; then :
89570:   found=no
89571: else
89572:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
89573: /* end confdefs.h.  */
89574: main() { return (0); }
89575: _ACEOF
89576: if ac_fn_c_try_run "$LINENO"; then :
89577:   found=yes
89578: else
89579:   found=no
89580: fi
89581: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
89582:   conftest.$ac_objext conftest.beam conftest.$ac_ext
89583: fi
89584: 
89585:     LIBS=$ac_libs
89586:   fi
89587: 
89588:   if test "$found" = "yes"; then
89589: 
89590: 
89591:   case bind in
89592:   c|c_r|pthread*) ;;
89593:   *)
89594:       LIBS="-lbind $LIBS"
89595:    ;;
89596:   esac
89597: 
89598: 
89599: 
89600: $as_echo "#define HAVE_DN_EXPAND 1" >>confdefs.h
89601: 
89602: 
89603: $as_echo "#define HAVE_LIBBIND 1" >>confdefs.h
89604: 
89605:     ac_cv_func_dn_expand=yes
89606:   else
89607: 
89608: 
89609:   unset ac_cv_lib_socket_dn_expand
89610:   unset ac_cv_lib_socket___dn_expand
89611:   unset found
89612:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dn_expand in -lsocket" >&5
89613: $as_echo_n "checking for dn_expand in -lsocket... " >&6; }
89614: if ${ac_cv_lib_socket_dn_expand+:} false; then :
89615:   $as_echo_n "(cached) " >&6
89616: else
89617:   ac_check_lib_save_LIBS=$LIBS
89618: LIBS="-lsocket  $LIBS"
89619: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
89620: /* end confdefs.h.  */
89621: 
89622: /* Override any GCC internal prototype to avoid an error.
89623:    Use char because int might match the return type of a GCC
89624:    builtin and then its argument prototype would still apply.  */
89625: #ifdef __cplusplus
89626: extern "C"
89627: #endif
89628: char dn_expand ();
89629: int
89630: main ()
89631: {
89632: return dn_expand ();
89633:   ;
89634:   return 0;
89635: }
89636: _ACEOF
89637: if ac_fn_c_try_link "$LINENO"; then :
89638:   ac_cv_lib_socket_dn_expand=yes
89639: else
89640:   ac_cv_lib_socket_dn_expand=no
89641: fi
89642: rm -f core conftest.err conftest.$ac_objext \
89643:     conftest$ac_exeext conftest.$ac_ext
89644: LIBS=$ac_check_lib_save_LIBS
89645: fi
89646: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_dn_expand" >&5
89647: $as_echo "$ac_cv_lib_socket_dn_expand" >&6; }
89648: if test "x$ac_cv_lib_socket_dn_expand" = xyes; then :
89649:   found=yes
89650: else
89651: 
89652:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dn_expand in -lsocket" >&5
89653: $as_echo_n "checking for __dn_expand in -lsocket... " >&6; }
89654: if ${ac_cv_lib_socket___dn_expand+:} false; then :
89655:   $as_echo_n "(cached) " >&6
89656: else
89657:   ac_check_lib_save_LIBS=$LIBS
89658: LIBS="-lsocket  $LIBS"
89659: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
89660: /* end confdefs.h.  */
89661: 
89662: /* Override any GCC internal prototype to avoid an error.
89663:    Use char because int might match the return type of a GCC
89664:    builtin and then its argument prototype would still apply.  */
89665: #ifdef __cplusplus
89666: extern "C"
89667: #endif
89668: char __dn_expand ();
89669: int
89670: main ()
89671: {
89672: return __dn_expand ();
89673:   ;
89674:   return 0;
89675: }
89676: _ACEOF
89677: if ac_fn_c_try_link "$LINENO"; then :
89678:   ac_cv_lib_socket___dn_expand=yes
89679: else
89680:   ac_cv_lib_socket___dn_expand=no
89681: fi
89682: rm -f core conftest.err conftest.$ac_objext \
89683:     conftest$ac_exeext conftest.$ac_ext
89684: LIBS=$ac_check_lib_save_LIBS
89685: fi
89686: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___dn_expand" >&5
89687: $as_echo "$ac_cv_lib_socket___dn_expand" >&6; }
89688: if test "x$ac_cv_lib_socket___dn_expand" = xyes; then :
89689:   found=yes
89690: else
89691:   found=no
89692: fi
89693: 
89694: 
89695: fi
89696: 
89697: 
89698:   if test "$found" = "yes"; then
89699:     ac_libs=$LIBS
89700:     LIBS="$LIBS -lsocket"
89701:     if test "$cross_compiling" = yes; then :
89702:   found=no
89703: else
89704:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
89705: /* end confdefs.h.  */
89706: main() { return (0); }
89707: _ACEOF
89708: if ac_fn_c_try_run "$LINENO"; then :
89709:   found=yes
89710: else
89711:   found=no
89712: fi
89713: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
89714:   conftest.$ac_objext conftest.beam conftest.$ac_ext
89715: fi
89716: 
89717:     LIBS=$ac_libs
89718:   fi
89719: 
89720:   if test "$found" = "yes"; then
89721: 
89722: 
89723:   case socket in
89724:   c|c_r|pthread*) ;;
89725:   *)
89726:       LIBS="-lsocket $LIBS"
89727:    ;;
89728:   esac
89729: 
89730: 
89731: 
89732: $as_echo "#define HAVE_DN_EXPAND 1" >>confdefs.h
89733: 
89734: 
89735: $as_echo "#define HAVE_LIBSOCKET 1" >>confdefs.h
89736: 
89737:     ac_cv_func_dn_expand=yes
89738:   else
89739: 
89740:   :
89741: 
89742:   fi
89743: 
89744: 
89745:   fi
89746: 
89747: 
89748:   fi
89749: 
89750:  ;;
89751: 
89752:   esac
89753: 
89754: 
89755:   unset ac_cv_func_dn_skipname
89756:   unset ac_cv_func___dn_skipname
89757:   unset found
89758: 
89759:   ac_fn_c_check_func "$LINENO" "dn_skipname" "ac_cv_func_dn_skipname"
89760: if test "x$ac_cv_func_dn_skipname" = xyes; then :
89761:   found=yes
89762: else
89763:    ac_fn_c_check_func "$LINENO" "__dn_skipname" "ac_cv_func___dn_skipname"
89764: if test "x$ac_cv_func___dn_skipname" = xyes; then :
89765:   found=yes
89766: else
89767:   found=no
89768: fi
89769: 
89770: fi
89771: 
89772: 
89773:   case $found in
89774:   yes)
89775: 
89776: $as_echo "#define HAVE_DN_SKIPNAME 1" >>confdefs.h
89777: 
89778:     ac_cv_func_dn_skipname=yes
89779:   ;;
89780: 
89781:     *)
89782: 
89783:   unset ac_cv_lib_resolv_dn_skipname
89784:   unset ac_cv_lib_resolv___dn_skipname
89785:   unset found
89786:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dn_skipname in -lresolv" >&5
89787: $as_echo_n "checking for dn_skipname in -lresolv... " >&6; }
89788: if ${ac_cv_lib_resolv_dn_skipname+:} false; then :
89789:   $as_echo_n "(cached) " >&6
89790: else
89791:   ac_check_lib_save_LIBS=$LIBS
89792: LIBS="-lresolv  $LIBS"
89793: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
89794: /* end confdefs.h.  */
89795: 
89796: /* Override any GCC internal prototype to avoid an error.
89797:    Use char because int might match the return type of a GCC
89798:    builtin and then its argument prototype would still apply.  */
89799: #ifdef __cplusplus
89800: extern "C"
89801: #endif
89802: char dn_skipname ();
89803: int
89804: main ()
89805: {
89806: return dn_skipname ();
89807:   ;
89808:   return 0;
89809: }
89810: _ACEOF
89811: if ac_fn_c_try_link "$LINENO"; then :
89812:   ac_cv_lib_resolv_dn_skipname=yes
89813: else
89814:   ac_cv_lib_resolv_dn_skipname=no
89815: fi
89816: rm -f core conftest.err conftest.$ac_objext \
89817:     conftest$ac_exeext conftest.$ac_ext
89818: LIBS=$ac_check_lib_save_LIBS
89819: fi
89820: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_dn_skipname" >&5
89821: $as_echo "$ac_cv_lib_resolv_dn_skipname" >&6; }
89822: if test "x$ac_cv_lib_resolv_dn_skipname" = xyes; then :
89823:   found=yes
89824: else
89825: 
89826:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dn_skipname in -lresolv" >&5
89827: $as_echo_n "checking for __dn_skipname in -lresolv... " >&6; }
89828: if ${ac_cv_lib_resolv___dn_skipname+:} false; then :
89829:   $as_echo_n "(cached) " >&6
89830: else
89831:   ac_check_lib_save_LIBS=$LIBS
89832: LIBS="-lresolv  $LIBS"
89833: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
89834: /* end confdefs.h.  */
89835: 
89836: /* Override any GCC internal prototype to avoid an error.
89837:    Use char because int might match the return type of a GCC
89838:    builtin and then its argument prototype would still apply.  */
89839: #ifdef __cplusplus
89840: extern "C"
89841: #endif
89842: char __dn_skipname ();
89843: int
89844: main ()
89845: {
89846: return __dn_skipname ();
89847:   ;
89848:   return 0;
89849: }
89850: _ACEOF
89851: if ac_fn_c_try_link "$LINENO"; then :
89852:   ac_cv_lib_resolv___dn_skipname=yes
89853: else
89854:   ac_cv_lib_resolv___dn_skipname=no
89855: fi
89856: rm -f core conftest.err conftest.$ac_objext \
89857:     conftest$ac_exeext conftest.$ac_ext
89858: LIBS=$ac_check_lib_save_LIBS
89859: fi
89860: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___dn_skipname" >&5
89861: $as_echo "$ac_cv_lib_resolv___dn_skipname" >&6; }
89862: if test "x$ac_cv_lib_resolv___dn_skipname" = xyes; then :
89863:   found=yes
89864: else
89865:   found=no
89866: fi
89867: 
89868: 
89869: fi
89870: 
89871: 
89872:   if test "$found" = "yes"; then
89873:     ac_libs=$LIBS
89874:     LIBS="$LIBS -lresolv"
89875:     if test "$cross_compiling" = yes; then :
89876:   found=no
89877: else
89878:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
89879: /* end confdefs.h.  */
89880: main() { return (0); }
89881: _ACEOF
89882: if ac_fn_c_try_run "$LINENO"; then :
89883:   found=yes
89884: else
89885:   found=no
89886: fi
89887: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
89888:   conftest.$ac_objext conftest.beam conftest.$ac_ext
89889: fi
89890: 
89891:     LIBS=$ac_libs
89892:   fi
89893: 
89894:   if test "$found" = "yes"; then
89895: 
89896: 
89897:   case resolv in
89898:   c|c_r|pthread*) ;;
89899:   *)
89900:       LIBS="-lresolv $LIBS"
89901:    ;;
89902:   esac
89903: 
89904: 
89905: 
89906: $as_echo "#define HAVE_DN_SKIPNAME 1" >>confdefs.h
89907: 
89908: 
89909: $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
89910: 
89911:     ac_cv_func_dn_skipname=yes
89912:   else
89913: 
89914: 
89915:   unset ac_cv_lib_bind_dn_skipname
89916:   unset ac_cv_lib_bind___dn_skipname
89917:   unset found
89918:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dn_skipname in -lbind" >&5
89919: $as_echo_n "checking for dn_skipname in -lbind... " >&6; }
89920: if ${ac_cv_lib_bind_dn_skipname+:} false; then :
89921:   $as_echo_n "(cached) " >&6
89922: else
89923:   ac_check_lib_save_LIBS=$LIBS
89924: LIBS="-lbind  $LIBS"
89925: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
89926: /* end confdefs.h.  */
89927: 
89928: /* Override any GCC internal prototype to avoid an error.
89929:    Use char because int might match the return type of a GCC
89930:    builtin and then its argument prototype would still apply.  */
89931: #ifdef __cplusplus
89932: extern "C"
89933: #endif
89934: char dn_skipname ();
89935: int
89936: main ()
89937: {
89938: return dn_skipname ();
89939:   ;
89940:   return 0;
89941: }
89942: _ACEOF
89943: if ac_fn_c_try_link "$LINENO"; then :
89944:   ac_cv_lib_bind_dn_skipname=yes
89945: else
89946:   ac_cv_lib_bind_dn_skipname=no
89947: fi
89948: rm -f core conftest.err conftest.$ac_objext \
89949:     conftest$ac_exeext conftest.$ac_ext
89950: LIBS=$ac_check_lib_save_LIBS
89951: fi
89952: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_dn_skipname" >&5
89953: $as_echo "$ac_cv_lib_bind_dn_skipname" >&6; }
89954: if test "x$ac_cv_lib_bind_dn_skipname" = xyes; then :
89955:   found=yes
89956: else
89957: 
89958:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dn_skipname in -lbind" >&5
89959: $as_echo_n "checking for __dn_skipname in -lbind... " >&6; }
89960: if ${ac_cv_lib_bind___dn_skipname+:} false; then :
89961:   $as_echo_n "(cached) " >&6
89962: else
89963:   ac_check_lib_save_LIBS=$LIBS
89964: LIBS="-lbind  $LIBS"
89965: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
89966: /* end confdefs.h.  */
89967: 
89968: /* Override any GCC internal prototype to avoid an error.
89969:    Use char because int might match the return type of a GCC
89970:    builtin and then its argument prototype would still apply.  */
89971: #ifdef __cplusplus
89972: extern "C"
89973: #endif
89974: char __dn_skipname ();
89975: int
89976: main ()
89977: {
89978: return __dn_skipname ();
89979:   ;
89980:   return 0;
89981: }
89982: _ACEOF
89983: if ac_fn_c_try_link "$LINENO"; then :
89984:   ac_cv_lib_bind___dn_skipname=yes
89985: else
89986:   ac_cv_lib_bind___dn_skipname=no
89987: fi
89988: rm -f core conftest.err conftest.$ac_objext \
89989:     conftest$ac_exeext conftest.$ac_ext
89990: LIBS=$ac_check_lib_save_LIBS
89991: fi
89992: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind___dn_skipname" >&5
89993: $as_echo "$ac_cv_lib_bind___dn_skipname" >&6; }
89994: if test "x$ac_cv_lib_bind___dn_skipname" = xyes; then :
89995:   found=yes
89996: else
89997:   found=no
89998: fi
89999: 
90000: 
90001: fi
90002: 
90003: 
90004:   if test "$found" = "yes"; then
90005:     ac_libs=$LIBS
90006:     LIBS="$LIBS -lbind"
90007:     if test "$cross_compiling" = yes; then :
90008:   found=no
90009: else
90010:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
90011: /* end confdefs.h.  */
90012: main() { return (0); }
90013: _ACEOF
90014: if ac_fn_c_try_run "$LINENO"; then :
90015:   found=yes
90016: else
90017:   found=no
90018: fi
90019: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
90020:   conftest.$ac_objext conftest.beam conftest.$ac_ext
90021: fi
90022: 
90023:     LIBS=$ac_libs
90024:   fi
90025: 
90026:   if test "$found" = "yes"; then
90027: 
90028: 
90029:   case bind in
90030:   c|c_r|pthread*) ;;
90031:   *)
90032:       LIBS="-lbind $LIBS"
90033:    ;;
90034:   esac
90035: 
90036: 
90037: 
90038: $as_echo "#define HAVE_DN_SKIPNAME 1" >>confdefs.h
90039: 
90040: 
90041: $as_echo "#define HAVE_LIBBIND 1" >>confdefs.h
90042: 
90043:     ac_cv_func_dn_skipname=yes
90044:   else
90045: 
90046: 
90047:   unset ac_cv_lib_socket_dn_skipname
90048:   unset ac_cv_lib_socket___dn_skipname
90049:   unset found
90050:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dn_skipname in -lsocket" >&5
90051: $as_echo_n "checking for dn_skipname in -lsocket... " >&6; }
90052: if ${ac_cv_lib_socket_dn_skipname+:} false; then :
90053:   $as_echo_n "(cached) " >&6
90054: else
90055:   ac_check_lib_save_LIBS=$LIBS
90056: LIBS="-lsocket  $LIBS"
90057: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
90058: /* end confdefs.h.  */
90059: 
90060: /* Override any GCC internal prototype to avoid an error.
90061:    Use char because int might match the return type of a GCC
90062:    builtin and then its argument prototype would still apply.  */
90063: #ifdef __cplusplus
90064: extern "C"
90065: #endif
90066: char dn_skipname ();
90067: int
90068: main ()
90069: {
90070: return dn_skipname ();
90071:   ;
90072:   return 0;
90073: }
90074: _ACEOF
90075: if ac_fn_c_try_link "$LINENO"; then :
90076:   ac_cv_lib_socket_dn_skipname=yes
90077: else
90078:   ac_cv_lib_socket_dn_skipname=no
90079: fi
90080: rm -f core conftest.err conftest.$ac_objext \
90081:     conftest$ac_exeext conftest.$ac_ext
90082: LIBS=$ac_check_lib_save_LIBS
90083: fi
90084: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_dn_skipname" >&5
90085: $as_echo "$ac_cv_lib_socket_dn_skipname" >&6; }
90086: if test "x$ac_cv_lib_socket_dn_skipname" = xyes; then :
90087:   found=yes
90088: else
90089: 
90090:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dn_skipname in -lsocket" >&5
90091: $as_echo_n "checking for __dn_skipname in -lsocket... " >&6; }
90092: if ${ac_cv_lib_socket___dn_skipname+:} false; then :
90093:   $as_echo_n "(cached) " >&6
90094: else
90095:   ac_check_lib_save_LIBS=$LIBS
90096: LIBS="-lsocket  $LIBS"
90097: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
90098: /* end confdefs.h.  */
90099: 
90100: /* Override any GCC internal prototype to avoid an error.
90101:    Use char because int might match the return type of a GCC
90102:    builtin and then its argument prototype would still apply.  */
90103: #ifdef __cplusplus
90104: extern "C"
90105: #endif
90106: char __dn_skipname ();
90107: int
90108: main ()
90109: {
90110: return __dn_skipname ();
90111:   ;
90112:   return 0;
90113: }
90114: _ACEOF
90115: if ac_fn_c_try_link "$LINENO"; then :
90116:   ac_cv_lib_socket___dn_skipname=yes
90117: else
90118:   ac_cv_lib_socket___dn_skipname=no
90119: fi
90120: rm -f core conftest.err conftest.$ac_objext \
90121:     conftest$ac_exeext conftest.$ac_ext
90122: LIBS=$ac_check_lib_save_LIBS
90123: fi
90124: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___dn_skipname" >&5
90125: $as_echo "$ac_cv_lib_socket___dn_skipname" >&6; }
90126: if test "x$ac_cv_lib_socket___dn_skipname" = xyes; then :
90127:   found=yes
90128: else
90129:   found=no
90130: fi
90131: 
90132: 
90133: fi
90134: 
90135: 
90136:   if test "$found" = "yes"; then
90137:     ac_libs=$LIBS
90138:     LIBS="$LIBS -lsocket"
90139:     if test "$cross_compiling" = yes; then :
90140:   found=no
90141: else
90142:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
90143: /* end confdefs.h.  */
90144: main() { return (0); }
90145: _ACEOF
90146: if ac_fn_c_try_run "$LINENO"; then :
90147:   found=yes
90148: else
90149:   found=no
90150: fi
90151: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
90152:   conftest.$ac_objext conftest.beam conftest.$ac_ext
90153: fi
90154: 
90155:     LIBS=$ac_libs
90156:   fi
90157: 
90158:   if test "$found" = "yes"; then
90159: 
90160: 
90161:   case socket in
90162:   c|c_r|pthread*) ;;
90163:   *)
90164:       LIBS="-lsocket $LIBS"
90165:    ;;
90166:   esac
90167: 
90168: 
90169: 
90170: $as_echo "#define HAVE_DN_SKIPNAME 1" >>confdefs.h
90171: 
90172: 
90173: $as_echo "#define HAVE_LIBSOCKET 1" >>confdefs.h
90174: 
90175:     ac_cv_func_dn_skipname=yes
90176:   else
90177: 
90178:   :
90179: 
90180:   fi
90181: 
90182: 
90183:   fi
90184: 
90185: 
90186:   fi
90187: 
90188:  ;;
90189: 
90190:   esac
90191: 
90192: 
90193: 
90194: 
90195:   unset ac_cv_func_res_search
90196:   unset ac_cv_func___res_search
90197:   unset found
90198: 
90199:   ac_fn_c_check_func "$LINENO" "res_search" "ac_cv_func_res_search"
90200: if test "x$ac_cv_func_res_search" = xyes; then :
90201:   found=yes
90202: else
90203:    ac_fn_c_check_func "$LINENO" "__res_search" "ac_cv_func___res_search"
90204: if test "x$ac_cv_func___res_search" = xyes; then :
90205:   found=yes
90206: else
90207:   found=no
90208: fi
90209: 
90210: fi
90211: 
90212: 
90213:   case $found in
90214:   yes)
90215: 
90216: $as_echo "#define HAVE_RES_SEARCH 1" >>confdefs.h
90217: 
90218:     ac_cv_func_res_search=yes
90219:   ;;
90220: 
90221:     *)
90222: 
90223:   unset ac_cv_lib_resolv_res_search
90224:   unset ac_cv_lib_resolv___res_search
90225:   unset found
90226:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_search in -lresolv" >&5
90227: $as_echo_n "checking for res_search in -lresolv... " >&6; }
90228: if ${ac_cv_lib_resolv_res_search+:} false; then :
90229:   $as_echo_n "(cached) " >&6
90230: else
90231:   ac_check_lib_save_LIBS=$LIBS
90232: LIBS="-lresolv  $LIBS"
90233: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
90234: /* end confdefs.h.  */
90235: 
90236: /* Override any GCC internal prototype to avoid an error.
90237:    Use char because int might match the return type of a GCC
90238:    builtin and then its argument prototype would still apply.  */
90239: #ifdef __cplusplus
90240: extern "C"
90241: #endif
90242: char res_search ();
90243: int
90244: main ()
90245: {
90246: return res_search ();
90247:   ;
90248:   return 0;
90249: }
90250: _ACEOF
90251: if ac_fn_c_try_link "$LINENO"; then :
90252:   ac_cv_lib_resolv_res_search=yes
90253: else
90254:   ac_cv_lib_resolv_res_search=no
90255: fi
90256: rm -f core conftest.err conftest.$ac_objext \
90257:     conftest$ac_exeext conftest.$ac_ext
90258: LIBS=$ac_check_lib_save_LIBS
90259: fi
90260: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_search" >&5
90261: $as_echo "$ac_cv_lib_resolv_res_search" >&6; }
90262: if test "x$ac_cv_lib_resolv_res_search" = xyes; then :
90263:   found=yes
90264: else
90265: 
90266:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_search in -lresolv" >&5
90267: $as_echo_n "checking for __res_search in -lresolv... " >&6; }
90268: if ${ac_cv_lib_resolv___res_search+:} false; then :
90269:   $as_echo_n "(cached) " >&6
90270: else
90271:   ac_check_lib_save_LIBS=$LIBS
90272: LIBS="-lresolv  $LIBS"
90273: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
90274: /* end confdefs.h.  */
90275: 
90276: /* Override any GCC internal prototype to avoid an error.
90277:    Use char because int might match the return type of a GCC
90278:    builtin and then its argument prototype would still apply.  */
90279: #ifdef __cplusplus
90280: extern "C"
90281: #endif
90282: char __res_search ();
90283: int
90284: main ()
90285: {
90286: return __res_search ();
90287:   ;
90288:   return 0;
90289: }
90290: _ACEOF
90291: if ac_fn_c_try_link "$LINENO"; then :
90292:   ac_cv_lib_resolv___res_search=yes
90293: else
90294:   ac_cv_lib_resolv___res_search=no
90295: fi
90296: rm -f core conftest.err conftest.$ac_objext \
90297:     conftest$ac_exeext conftest.$ac_ext
90298: LIBS=$ac_check_lib_save_LIBS
90299: fi
90300: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_search" >&5
90301: $as_echo "$ac_cv_lib_resolv___res_search" >&6; }
90302: if test "x$ac_cv_lib_resolv___res_search" = xyes; then :
90303:   found=yes
90304: else
90305:   found=no
90306: fi
90307: 
90308: 
90309: fi
90310: 
90311: 
90312:   if test "$found" = "yes"; then
90313:     ac_libs=$LIBS
90314:     LIBS="$LIBS -lresolv"
90315:     if test "$cross_compiling" = yes; then :
90316:   found=no
90317: else
90318:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
90319: /* end confdefs.h.  */
90320: main() { return (0); }
90321: _ACEOF
90322: if ac_fn_c_try_run "$LINENO"; then :
90323:   found=yes
90324: else
90325:   found=no
90326: fi
90327: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
90328:   conftest.$ac_objext conftest.beam conftest.$ac_ext
90329: fi
90330: 
90331:     LIBS=$ac_libs
90332:   fi
90333: 
90334:   if test "$found" = "yes"; then
90335: 
90336: 
90337:   case resolv in
90338:   c|c_r|pthread*) ;;
90339:   *)
90340:       LIBS="-lresolv $LIBS"
90341:    ;;
90342:   esac
90343: 
90344: 
90345: 
90346: $as_echo "#define HAVE_RES_SEARCH 1" >>confdefs.h
90347: 
90348: 
90349: $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
90350: 
90351:     ac_cv_func_res_search=yes
90352:   else
90353: 
90354: 
90355:   unset ac_cv_lib_bind_res_search
90356:   unset ac_cv_lib_bind___res_search
90357:   unset found
90358:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_search in -lbind" >&5
90359: $as_echo_n "checking for res_search in -lbind... " >&6; }
90360: if ${ac_cv_lib_bind_res_search+:} false; then :
90361:   $as_echo_n "(cached) " >&6
90362: else
90363:   ac_check_lib_save_LIBS=$LIBS
90364: LIBS="-lbind  $LIBS"
90365: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
90366: /* end confdefs.h.  */
90367: 
90368: /* Override any GCC internal prototype to avoid an error.
90369:    Use char because int might match the return type of a GCC
90370:    builtin and then its argument prototype would still apply.  */
90371: #ifdef __cplusplus
90372: extern "C"
90373: #endif
90374: char res_search ();
90375: int
90376: main ()
90377: {
90378: return res_search ();
90379:   ;
90380:   return 0;
90381: }
90382: _ACEOF
90383: if ac_fn_c_try_link "$LINENO"; then :
90384:   ac_cv_lib_bind_res_search=yes
90385: else
90386:   ac_cv_lib_bind_res_search=no
90387: fi
90388: rm -f core conftest.err conftest.$ac_objext \
90389:     conftest$ac_exeext conftest.$ac_ext
90390: LIBS=$ac_check_lib_save_LIBS
90391: fi
90392: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_res_search" >&5
90393: $as_echo "$ac_cv_lib_bind_res_search" >&6; }
90394: if test "x$ac_cv_lib_bind_res_search" = xyes; then :
90395:   found=yes
90396: else
90397: 
90398:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_search in -lbind" >&5
90399: $as_echo_n "checking for __res_search in -lbind... " >&6; }
90400: if ${ac_cv_lib_bind___res_search+:} false; then :
90401:   $as_echo_n "(cached) " >&6
90402: else
90403:   ac_check_lib_save_LIBS=$LIBS
90404: LIBS="-lbind  $LIBS"
90405: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
90406: /* end confdefs.h.  */
90407: 
90408: /* Override any GCC internal prototype to avoid an error.
90409:    Use char because int might match the return type of a GCC
90410:    builtin and then its argument prototype would still apply.  */
90411: #ifdef __cplusplus
90412: extern "C"
90413: #endif
90414: char __res_search ();
90415: int
90416: main ()
90417: {
90418: return __res_search ();
90419:   ;
90420:   return 0;
90421: }
90422: _ACEOF
90423: if ac_fn_c_try_link "$LINENO"; then :
90424:   ac_cv_lib_bind___res_search=yes
90425: else
90426:   ac_cv_lib_bind___res_search=no
90427: fi
90428: rm -f core conftest.err conftest.$ac_objext \
90429:     conftest$ac_exeext conftest.$ac_ext
90430: LIBS=$ac_check_lib_save_LIBS
90431: fi
90432: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind___res_search" >&5
90433: $as_echo "$ac_cv_lib_bind___res_search" >&6; }
90434: if test "x$ac_cv_lib_bind___res_search" = xyes; then :
90435:   found=yes
90436: else
90437:   found=no
90438: fi
90439: 
90440: 
90441: fi
90442: 
90443: 
90444:   if test "$found" = "yes"; then
90445:     ac_libs=$LIBS
90446:     LIBS="$LIBS -lbind"
90447:     if test "$cross_compiling" = yes; then :
90448:   found=no
90449: else
90450:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
90451: /* end confdefs.h.  */
90452: main() { return (0); }
90453: _ACEOF
90454: if ac_fn_c_try_run "$LINENO"; then :
90455:   found=yes
90456: else
90457:   found=no
90458: fi
90459: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
90460:   conftest.$ac_objext conftest.beam conftest.$ac_ext
90461: fi
90462: 
90463:     LIBS=$ac_libs
90464:   fi
90465: 
90466:   if test "$found" = "yes"; then
90467: 
90468: 
90469:   case bind in
90470:   c|c_r|pthread*) ;;
90471:   *)
90472:       LIBS="-lbind $LIBS"
90473:    ;;
90474:   esac
90475: 
90476: 
90477: 
90478: $as_echo "#define HAVE_RES_SEARCH 1" >>confdefs.h
90479: 
90480: 
90481: $as_echo "#define HAVE_LIBBIND 1" >>confdefs.h
90482: 
90483:     ac_cv_func_res_search=yes
90484:   else
90485: 
90486: 
90487:   unset ac_cv_lib_socket_res_search
90488:   unset ac_cv_lib_socket___res_search
90489:   unset found
90490:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_search in -lsocket" >&5
90491: $as_echo_n "checking for res_search in -lsocket... " >&6; }
90492: if ${ac_cv_lib_socket_res_search+:} false; then :
90493:   $as_echo_n "(cached) " >&6
90494: else
90495:   ac_check_lib_save_LIBS=$LIBS
90496: LIBS="-lsocket  $LIBS"
90497: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
90498: /* end confdefs.h.  */
90499: 
90500: /* Override any GCC internal prototype to avoid an error.
90501:    Use char because int might match the return type of a GCC
90502:    builtin and then its argument prototype would still apply.  */
90503: #ifdef __cplusplus
90504: extern "C"
90505: #endif
90506: char res_search ();
90507: int
90508: main ()
90509: {
90510: return res_search ();
90511:   ;
90512:   return 0;
90513: }
90514: _ACEOF
90515: if ac_fn_c_try_link "$LINENO"; then :
90516:   ac_cv_lib_socket_res_search=yes
90517: else
90518:   ac_cv_lib_socket_res_search=no
90519: fi
90520: rm -f core conftest.err conftest.$ac_objext \
90521:     conftest$ac_exeext conftest.$ac_ext
90522: LIBS=$ac_check_lib_save_LIBS
90523: fi
90524: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_res_search" >&5
90525: $as_echo "$ac_cv_lib_socket_res_search" >&6; }
90526: if test "x$ac_cv_lib_socket_res_search" = xyes; then :
90527:   found=yes
90528: else
90529: 
90530:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_search in -lsocket" >&5
90531: $as_echo_n "checking for __res_search in -lsocket... " >&6; }
90532: if ${ac_cv_lib_socket___res_search+:} false; then :
90533:   $as_echo_n "(cached) " >&6
90534: else
90535:   ac_check_lib_save_LIBS=$LIBS
90536: LIBS="-lsocket  $LIBS"
90537: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
90538: /* end confdefs.h.  */
90539: 
90540: /* Override any GCC internal prototype to avoid an error.
90541:    Use char because int might match the return type of a GCC
90542:    builtin and then its argument prototype would still apply.  */
90543: #ifdef __cplusplus
90544: extern "C"
90545: #endif
90546: char __res_search ();
90547: int
90548: main ()
90549: {
90550: return __res_search ();
90551:   ;
90552:   return 0;
90553: }
90554: _ACEOF
90555: if ac_fn_c_try_link "$LINENO"; then :
90556:   ac_cv_lib_socket___res_search=yes
90557: else
90558:   ac_cv_lib_socket___res_search=no
90559: fi
90560: rm -f core conftest.err conftest.$ac_objext \
90561:     conftest$ac_exeext conftest.$ac_ext
90562: LIBS=$ac_check_lib_save_LIBS
90563: fi
90564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___res_search" >&5
90565: $as_echo "$ac_cv_lib_socket___res_search" >&6; }
90566: if test "x$ac_cv_lib_socket___res_search" = xyes; then :
90567:   found=yes
90568: else
90569:   found=no
90570: fi
90571: 
90572: 
90573: fi
90574: 
90575: 
90576:   if test "$found" = "yes"; then
90577:     ac_libs=$LIBS
90578:     LIBS="$LIBS -lsocket"
90579:     if test "$cross_compiling" = yes; then :
90580:   found=no
90581: else
90582:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
90583: /* end confdefs.h.  */
90584: main() { return (0); }
90585: _ACEOF
90586: if ac_fn_c_try_run "$LINENO"; then :
90587:   found=yes
90588: else
90589:   found=no
90590: fi
90591: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
90592:   conftest.$ac_objext conftest.beam conftest.$ac_ext
90593: fi
90594: 
90595:     LIBS=$ac_libs
90596:   fi
90597: 
90598:   if test "$found" = "yes"; then
90599: 
90600: 
90601:   case socket in
90602:   c|c_r|pthread*) ;;
90603:   *)
90604:       LIBS="-lsocket $LIBS"
90605:    ;;
90606:   esac
90607: 
90608: 
90609: 
90610: $as_echo "#define HAVE_RES_SEARCH 1" >>confdefs.h
90611: 
90612: 
90613: $as_echo "#define HAVE_LIBSOCKET 1" >>confdefs.h
90614: 
90615:     ac_cv_func_res_search=yes
90616:   else
90617: 
90618:   :
90619: 
90620:   fi
90621: 
90622: 
90623:   fi
90624: 
90625: 
90626:   fi
90627: 
90628:  ;;
90629: 
90630:   esac
90631: 
90632: 
90633: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether atof() accepts NAN" >&5
90634: $as_echo_n "checking whether atof() accepts NAN... " >&6; }
90635: if ${ac_cv_atof_accept_nan+:} false; then :
90636:   $as_echo_n "(cached) " >&6
90637: else
90638: 
90639: if test "$cross_compiling" = yes; then :
90640: 
90641:   ac_cv_atof_accept_nan=no
90642: 
90643: else
90644:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
90645: /* end confdefs.h.  */
90646: 
90647: #include <math.h>
90648: #include <stdlib.h>
90649: 
90650: #ifdef HAVE_ISNAN
90651: #define zend_isnan(a) isnan(a)
90652: #elif defined(HAVE_FPCLASS)
90653: #define zend_isnan(a) ((fpclass(a) == FP_SNAN) || (fpclass(a) == FP_QNAN))
90654: #else
90655: #define zend_isnan(a) 0
90656: #endif
90657: 
90658: int main(int argc, char** argv)
90659: {
90660: 	return zend_isnan(atof("NAN")) ? 0 : 1;
90661: }
90662: 
90663: _ACEOF
90664: if ac_fn_c_try_run "$LINENO"; then :
90665: 
90666:   ac_cv_atof_accept_nan=yes
90667: 
90668: else
90669: 
90670:   ac_cv_atof_accept_nan=no
90671: 
90672: fi
90673: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
90674:   conftest.$ac_objext conftest.beam conftest.$ac_ext
90675: fi
90676: 
90677: fi
90678: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_atof_accept_nan" >&5
90679: $as_echo "$ac_cv_atof_accept_nan" >&6; }
90680: if test "$ac_cv_atof_accept_nan" = "yes"; then
90681: 
90682: $as_echo "#define HAVE_ATOF_ACCEPTS_NAN 1" >>confdefs.h
90683: 
90684: fi
90685: 
90686: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether atof() accepts INF" >&5
90687: $as_echo_n "checking whether atof() accepts INF... " >&6; }
90688: if ${ac_cv_atof_accept_inf+:} false; then :
90689:   $as_echo_n "(cached) " >&6
90690: else
90691: 
90692: if test "$cross_compiling" = yes; then :
90693: 
90694:   ac_cv_atof_accept_inf=no
90695: 
90696: else
90697:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
90698: /* end confdefs.h.  */
90699: 
90700: #include <math.h>
90701: #include <stdlib.h>
90702: 
90703: #ifdef HAVE_ISINF
90704: #define zend_isinf(a) isinf(a)
90705: #elif defined(INFINITY)
90706: /* Might not work, but is required by ISO C99 */
90707: #define zend_isinf(a) (((a)==INFINITY)?1:0)
90708: #elif defined(HAVE_FPCLASS)
90709: #define zend_isinf(a) ((fpclass(a) == FP_PINF) || (fpclass(a) == FP_NINF))
90710: #else
90711: #define zend_isinf(a) 0
90712: #endif
90713: 
90714: int main(int argc, char** argv)
90715: {
90716: 	return zend_isinf(atof("INF")) && zend_isinf(atof("-INF")) ? 0 : 1;
90717: }
90718: 
90719: _ACEOF
90720: if ac_fn_c_try_run "$LINENO"; then :
90721: 
90722:   ac_cv_atof_accept_inf=yes
90723: 
90724: else
90725: 
90726:   ac_cv_atof_accept_inf=no
90727: 
90728: fi
90729: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
90730:   conftest.$ac_objext conftest.beam conftest.$ac_ext
90731: fi
90732: 
90733: fi
90734: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_atof_accept_inf" >&5
90735: $as_echo "$ac_cv_atof_accept_inf" >&6; }
90736: if test "$ac_cv_atof_accept_inf" = "yes"; then
90737: 
90738: $as_echo "#define HAVE_ATOF_ACCEPTS_INF 1" >>confdefs.h
90739: 
90740: fi
90741: 
90742: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL == INF" >&5
90743: $as_echo_n "checking whether HUGE_VAL == INF... " >&6; }
90744: if ${ac_cv_huge_val_inf+:} false; then :
90745:   $as_echo_n "(cached) " >&6
90746: else
90747: 
90748: if test "$cross_compiling" = yes; then :
90749: 
90750:   ac_cv_huge_val_inf=yes
90751: 
90752: else
90753:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
90754: /* end confdefs.h.  */
90755: 
90756: #include <math.h>
90757: #include <stdlib.h>
90758: 
90759: #ifdef HAVE_ISINF
90760: #define zend_isinf(a) isinf(a)
90761: #elif defined(INFINITY)
90762: /* Might not work, but is required by ISO C99 */
90763: #define zend_isinf(a) (((a)==INFINITY)?1:0)
90764: #elif defined(HAVE_FPCLASS)
90765: #define zend_isinf(a) ((fpclass(a) == FP_PINF) || (fpclass(a) == FP_NINF))
90766: #else
90767: #define zend_isinf(a) 0
90768: #endif
90769: 
90770: int main(int argc, char** argv)
90771: {
90772: 	return zend_isinf(HUGE_VAL) ? 0 : 1;
90773: }
90774: 
90775: _ACEOF
90776: if ac_fn_c_try_run "$LINENO"; then :
90777: 
90778:   ac_cv_huge_val_inf=yes
90779: 
90780: else
90781: 
90782:   ac_cv_huge_val_inf=no
90783: 
90784: fi
90785: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
90786:   conftest.$ac_objext conftest.beam conftest.$ac_ext
90787: fi
90788: 
90789: fi
90790: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_huge_val_inf" >&5
90791: $as_echo "$ac_cv_huge_val_inf" >&6; }
90792: if test "$ac_cv_huge_val_inf" = "yes"; then
90793: 
90794: $as_echo "#define HAVE_HUGE_VAL_INF 1" >>confdefs.h
90795: 
90796: fi
90797: 
90798: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL + -HUGEVAL == NAN" >&5
90799: $as_echo_n "checking whether HUGE_VAL + -HUGEVAL == NAN... " >&6; }
90800: if ${ac_cv_huge_val_nan+:} false; then :
90801:   $as_echo_n "(cached) " >&6
90802: else
90803: 
90804: if test "$cross_compiling" = yes; then :
90805: 
90806:   ac_cv_huge_val_nan=yes
90807: 
90808: else
90809:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
90810: /* end confdefs.h.  */
90811: 
90812: #include <math.h>
90813: #include <stdlib.h>
90814: 
90815: #ifdef HAVE_ISNAN
90816: #define zend_isnan(a) isnan(a)
90817: #elif defined(HAVE_FPCLASS)
90818: #define zend_isnan(a) ((fpclass(a) == FP_SNAN) || (fpclass(a) == FP_QNAN))
90819: #else
90820: #define zend_isnan(a) 0
90821: #endif
90822: 
90823: int main(int argc, char** argv)
90824: {
90825: #if defined(__sparc__) && !(__GNUC__ >= 3)
90826: 	/* prevent bug #27830 */
90827: 	return 1;
90828: #else
90829: 	return zend_isnan(HUGE_VAL + -HUGE_VAL) ? 0 : 1;
90830: #endif
90831: }
90832: 
90833: _ACEOF
90834: if ac_fn_c_try_run "$LINENO"; then :
90835: 
90836:   ac_cv_huge_val_nan=yes
90837: 
90838: else
90839: 
90840:   ac_cv_huge_val_nan=no
90841: 
90842: fi
90843: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
90844:   conftest.$ac_objext conftest.beam conftest.$ac_ext
90845: fi
90846: 
90847: fi
90848: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_huge_val_nan" >&5
90849: $as_echo "$ac_cv_huge_val_nan" >&6; }
90850: if test "$ac_cv_huge_val_nan" = "yes"; then
90851: 
90852: $as_echo "#define HAVE_HUGE_VAL_NAN 1" >>confdefs.h
90853: 
90854: fi
90855: 
90856: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strptime() declaration fails" >&5
90857: $as_echo_n "checking whether strptime() declaration fails... " >&6; }
90858: if ${ac_cv_strptime_decl_fails+:} false; then :
90859:   $as_echo_n "(cached) " >&6
90860: else
90861: 
90862: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
90863: /* end confdefs.h.  */
90864: 
90865: #include <time.h>
90866: 
90867: int
90868: main ()
90869: {
90870: 
90871: #ifndef HAVE_STRPTIME
90872: #error no strptime() on this platform
90873: #else
90874: /* use invalid strptime() declaration to see if it fails to compile */
90875: int strptime(const char *s, const char *format, struct tm *tm);
90876: #endif
90877: 
90878:   ;
90879:   return 0;
90880: }
90881: _ACEOF
90882: if ac_fn_c_try_compile "$LINENO"; then :
90883: 
90884:   ac_cv_strptime_decl_fails=no
90885: 
90886: else
90887: 
90888:   ac_cv_strptime_decl_fails=yes
90889: 
90890: fi
90891: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
90892: fi
90893: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_strptime_decl_fails" >&5
90894: $as_echo "$ac_cv_strptime_decl_fails" >&6; }
90895: if test "$ac_cv_strptime_decl_fails" = "yes"; then
90896: 
90897: $as_echo "#define HAVE_STRPTIME_DECL_FAILS 1" >>confdefs.h
90898: 
90899: fi
90900: 
90901: for ac_header in wchar.h
90902: do :
90903:   ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
90904: if test "x$ac_cv_header_wchar_h" = xyes; then :
90905:   cat >>confdefs.h <<_ACEOF
90906: #define HAVE_WCHAR_H 1
90907: _ACEOF
90908: 
90909: fi
90910: 
90911: done
90912: 
90913: for ac_func in mblen
90914: do :
90915:   ac_fn_c_check_func "$LINENO" "mblen" "ac_cv_func_mblen"
90916: if test "x$ac_cv_func_mblen" = xyes; then :
90917:   cat >>confdefs.h <<_ACEOF
90918: #define HAVE_MBLEN 1
90919: _ACEOF
90920: 
90921: fi
90922: done
90923: 
90924: for ac_func in mbrlen mbsinit
90925: do :
90926:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
90927: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
90928: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
90929:   cat >>confdefs.h <<_ACEOF
90930: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
90931: _ACEOF
90932: 
90933: fi
90934: done
90935: 
90936: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
90937: $as_echo_n "checking for mbstate_t... " >&6; }
90938: if ${ac_cv_type_mbstate_t+:} false; then :
90939:   $as_echo_n "(cached) " >&6
90940: else
90941: 
90942: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
90943: /* end confdefs.h.  */
90944: 
90945: #ifdef HAVE_WCHAR_H
90946: # include <wchar.h>
90947: #endif
90948: 
90949: int
90950: main ()
90951: {
90952: 
90953: int __tmp__() { mbstate_t a; }
90954: 
90955:   ;
90956:   return 0;
90957: }
90958: _ACEOF
90959: if ac_fn_c_try_compile "$LINENO"; then :
90960: 
90961:   ac_cv_type_mbstate_t=yes
90962: 
90963: else
90964: 
90965:   ac_cv_type_mbstate_t=no
90966: 
90967: fi
90968: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
90969: fi
90970: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
90971: $as_echo "$ac_cv_type_mbstate_t" >&6; }
90972: if test "$ac_cv_type_mbstate_t" = "yes"; then
90973: 
90974: $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
90975: 
90976: fi
90977: 
90978: for ac_header in atomic.h
90979: do :
90980:   ac_fn_c_check_header_mongrel "$LINENO" "atomic.h" "ac_cv_header_atomic_h" "$ac_includes_default"
90981: if test "x$ac_cv_header_atomic_h" = xyes; then :
90982:   cat >>confdefs.h <<_ACEOF
90983: #define HAVE_ATOMIC_H 1
90984: _ACEOF
90985: 
90986: fi
90987: 
90988: done
90989: 
90990: 
90991: 
90992:   ext_builddir=ext/standard
90993:   ext_srcdir=$abs_srcdir/ext/standard
90994: 
90995:   ac_extra=
90996: 
90997:   if test "" != "shared" && test "" != "yes" && test "" != "cli"; then
90998:     PHP_STANDARD_SHARED=no
90999: 
91000: 
91001:   case ext/standard in
91002:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
91003:   /*) ac_srcdir=`echo "ext/standard"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
91004:   *) ac_srcdir="$abs_srcdir/ext/standard/"; ac_bdir="ext/standard/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
91005:   esac
91006: 
91007: 
91008: 
91009:   b_c_pre=$php_c_pre
91010:   b_cxx_pre=$php_cxx_pre
91011:   b_c_meta=$php_c_meta
91012:   b_cxx_meta=$php_cxx_meta
91013:   b_c_post=$php_c_post
91014:   b_cxx_post=$php_cxx_post
91015:   b_lo=$php_lo
91016: 
91017: 
91018:   old_IFS=$IFS
91019:   for ac_src in array.c base64.c basic_functions.c browscap.c crc32.c crypt.c \
91020:                             cyr_convert.c datetime.c dir.c dl.c dns.c exec.c file.c filestat.c \
91021:                             flock_compat.c formatted_print.c fsock.c head.c html.c image.c \
91022:                             info.c iptc.c lcg.c link.c mail.c math.c md5.c metaphone.c \
91023:                             microtime.c pack.c pageinfo.c quot_print.c rand.c \
91024:                             soundex.c string.c scanf.c syslog.c type.c uniqid.c url.c \
91025:                             var.c versioning.c assert.c strnatcmp.c levenshtein.c \
91026:                             incomplete_class.c url_scanner_ex.c ftp_fopen_wrapper.c \
91027:                             http_fopen_wrapper.c php_fopen_wrapper.c credits.c css.c \
91028:                             var_unserializer.c ftok.c sha1.c user_filters.c uuencode.c \
91029:                             filters.c proc_open.c streamsfuncs.c http.c; do
91030: 
91031:       IFS=.
91032:       set $ac_src
91033:       ac_obj=$1
91034:       IFS=$old_IFS
91035: 
91036:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
91037: 
91038:       case $ac_src in
91039:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
91040:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
91041:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
91042:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
91043:       esac
91044: 
91045:     cat >>Makefile.objects<<EOF
91046: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
91047: 	$ac_comp
91048: EOF
91049:   done
91050: 
91051: 
91052:     EXT_STATIC="$EXT_STATIC standard"
91053:     if test "" != "nocli"; then
91054:       EXT_CLI_STATIC="$EXT_CLI_STATIC standard"
91055:     fi
91056:   else
91057:     if test "" = "shared" || test "" = "yes"; then
91058:       PHP_STANDARD_SHARED=yes
91059: 
91060:   case ext/standard in
91061:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
91062:   /*) ac_srcdir=`echo "ext/standard"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
91063:   *) ac_srcdir="$abs_srcdir/ext/standard/"; ac_bdir="ext/standard/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
91064:   esac
91065: 
91066: 
91067: 
91068:   b_c_pre=$shared_c_pre
91069:   b_cxx_pre=$shared_cxx_pre
91070:   b_c_meta=$shared_c_meta
91071:   b_cxx_meta=$shared_cxx_meta
91072:   b_c_post=$shared_c_post
91073:   b_cxx_post=$shared_cxx_post
91074:   b_lo=$shared_lo
91075: 
91076: 
91077:   old_IFS=$IFS
91078:   for ac_src in array.c base64.c basic_functions.c browscap.c crc32.c crypt.c \
91079:                             cyr_convert.c datetime.c dir.c dl.c dns.c exec.c file.c filestat.c \
91080:                             flock_compat.c formatted_print.c fsock.c head.c html.c image.c \
91081:                             info.c iptc.c lcg.c link.c mail.c math.c md5.c metaphone.c \
91082:                             microtime.c pack.c pageinfo.c quot_print.c rand.c \
91083:                             soundex.c string.c scanf.c syslog.c type.c uniqid.c url.c \
91084:                             var.c versioning.c assert.c strnatcmp.c levenshtein.c \
91085:                             incomplete_class.c url_scanner_ex.c ftp_fopen_wrapper.c \
91086:                             http_fopen_wrapper.c php_fopen_wrapper.c credits.c css.c \
91087:                             var_unserializer.c ftok.c sha1.c user_filters.c uuencode.c \
91088:                             filters.c proc_open.c streamsfuncs.c http.c; do
91089: 
91090:       IFS=.
91091:       set $ac_src
91092:       ac_obj=$1
91093:       IFS=$old_IFS
91094: 
91095:       shared_objects_standard="$shared_objects_standard $ac_bdir$ac_obj.lo"
91096: 
91097:       case $ac_src in
91098:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
91099:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
91100:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
91101:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
91102:       esac
91103: 
91104:     cat >>Makefile.objects<<EOF
91105: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
91106: 	$ac_comp
91107: EOF
91108:   done
91109: 
91110:       case $host_alias in
91111:         *netware*)
91112: 
91113:   install_modules="install-modules"
91114: 
91115:   case $host_alias in
91116:     *aix*)
91117:       suffix=so
91118:       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'
91119:       ;;
91120:     *netware*)
91121:       suffix=nlm
91122:       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)'
91123:       ;;
91124:     *)
91125:       suffix=la
91126:       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)'
91127:       ;;
91128:   esac
91129: 
91130:   if test "x" = "xyes"; then
91131:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpstandard.$suffix"
91132:   else
91133:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpstandard.$suffix"
91134:   fi
91135: 
91136:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_standard"
91137: 
91138:   cat >>Makefile.objects<<EOF
91139: \$(phplibdir)/phpstandard.$suffix: $ext_builddir/phpstandard.$suffix
91140: 	\$(LIBTOOL) --mode=install cp $ext_builddir/phpstandard.$suffix \$(phplibdir)
91141: 
91142: $ext_builddir/phpstandard.$suffix: \$(shared_objects_standard) \$(PHPSTANDARD_SHARED_DEPENDENCIES)
91143: 	$link_cmd
91144: 
91145: EOF
91146: 
91147:           ;;
91148:         *)
91149: 
91150:   install_modules="install-modules"
91151: 
91152:   case $host_alias in
91153:     *aix*)
91154:       suffix=so
91155:       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'
91156:       ;;
91157:     *netware*)
91158:       suffix=nlm
91159:       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)'
91160:       ;;
91161:     *)
91162:       suffix=la
91163:       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)'
91164:       ;;
91165:   esac
91166: 
91167:   if test "x" = "xyes"; then
91168:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/standard.$suffix"
91169:   else
91170:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/standard.$suffix"
91171:   fi
91172: 
91173:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_standard"
91174: 
91175:   cat >>Makefile.objects<<EOF
91176: \$(phplibdir)/standard.$suffix: $ext_builddir/standard.$suffix
91177: 	\$(LIBTOOL) --mode=install cp $ext_builddir/standard.$suffix \$(phplibdir)
91178: 
91179: $ext_builddir/standard.$suffix: \$(shared_objects_standard) \$(STANDARD_SHARED_DEPENDENCIES)
91180: 	$link_cmd
91181: 
91182: EOF
91183: 
91184:           ;;
91185:       esac
91186: 
91187: cat >>confdefs.h <<_ACEOF
91188: #define COMPILE_DL_STANDARD 1
91189: _ACEOF
91190: 
91191:     fi
91192:   fi
91193: 
91194:   if test "" != "shared" && test "" != "yes" && test "" = "cli"; then
91195:     PHP_STANDARD_SHARED=no
91196:     case "$PHP_SAPI" in
91197:       cgi|embed)
91198: 
91199: 
91200:   case ext/standard in
91201:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
91202:   /*) ac_srcdir=`echo "ext/standard"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
91203:   *) ac_srcdir="$abs_srcdir/ext/standard/"; ac_bdir="ext/standard/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
91204:   esac
91205: 
91206: 
91207: 
91208:   b_c_pre=$php_c_pre
91209:   b_cxx_pre=$php_cxx_pre
91210:   b_c_meta=$php_c_meta
91211:   b_cxx_meta=$php_cxx_meta
91212:   b_c_post=$php_c_post
91213:   b_cxx_post=$php_cxx_post
91214:   b_lo=$php_lo
91215: 
91216: 
91217:   old_IFS=$IFS
91218:   for ac_src in array.c base64.c basic_functions.c browscap.c crc32.c crypt.c \
91219:                             cyr_convert.c datetime.c dir.c dl.c dns.c exec.c file.c filestat.c \
91220:                             flock_compat.c formatted_print.c fsock.c head.c html.c image.c \
91221:                             info.c iptc.c lcg.c link.c mail.c math.c md5.c metaphone.c \
91222:                             microtime.c pack.c pageinfo.c quot_print.c rand.c \
91223:                             soundex.c string.c scanf.c syslog.c type.c uniqid.c url.c \
91224:                             var.c versioning.c assert.c strnatcmp.c levenshtein.c \
91225:                             incomplete_class.c url_scanner_ex.c ftp_fopen_wrapper.c \
91226:                             http_fopen_wrapper.c php_fopen_wrapper.c credits.c css.c \
91227:                             var_unserializer.c ftok.c sha1.c user_filters.c uuencode.c \
91228:                             filters.c proc_open.c streamsfuncs.c http.c; do
91229: 
91230:       IFS=.
91231:       set $ac_src
91232:       ac_obj=$1
91233:       IFS=$old_IFS
91234: 
91235:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
91236: 
91237:       case $ac_src in
91238:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
91239:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
91240:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
91241:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
91242:       esac
91243: 
91244:     cat >>Makefile.objects<<EOF
91245: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
91246: 	$ac_comp
91247: EOF
91248:   done
91249: 
91250: 
91251:         EXT_STATIC="$EXT_STATIC standard"
91252:         ;;
91253:       *)
91254: 
91255: 
91256:   case ext/standard in
91257:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
91258:   /*) ac_srcdir=`echo "ext/standard"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
91259:   *) ac_srcdir="$abs_srcdir/ext/standard/"; ac_bdir="ext/standard/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
91260:   esac
91261: 
91262: 
91263: 
91264:   b_c_pre=$php_c_pre
91265:   b_cxx_pre=$php_cxx_pre
91266:   b_c_meta=$php_c_meta
91267:   b_cxx_meta=$php_cxx_meta
91268:   b_c_post=$php_c_post
91269:   b_cxx_post=$php_cxx_post
91270:   b_lo=$php_lo
91271: 
91272: 
91273:   old_IFS=$IFS
91274:   for ac_src in array.c base64.c basic_functions.c browscap.c crc32.c crypt.c \
91275:                             cyr_convert.c datetime.c dir.c dl.c dns.c exec.c file.c filestat.c \
91276:                             flock_compat.c formatted_print.c fsock.c head.c html.c image.c \
91277:                             info.c iptc.c lcg.c link.c mail.c math.c md5.c metaphone.c \
91278:                             microtime.c pack.c pageinfo.c quot_print.c rand.c \
91279:                             soundex.c string.c scanf.c syslog.c type.c uniqid.c url.c \
91280:                             var.c versioning.c assert.c strnatcmp.c levenshtein.c \
91281:                             incomplete_class.c url_scanner_ex.c ftp_fopen_wrapper.c \
91282:                             http_fopen_wrapper.c php_fopen_wrapper.c credits.c css.c \
91283:                             var_unserializer.c ftok.c sha1.c user_filters.c uuencode.c \
91284:                             filters.c proc_open.c streamsfuncs.c http.c; do
91285: 
91286:       IFS=.
91287:       set $ac_src
91288:       ac_obj=$1
91289:       IFS=$old_IFS
91290: 
91291:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
91292: 
91293:       case $ac_src in
91294:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
91295:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
91296:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
91297:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
91298:       esac
91299: 
91300:     cat >>Makefile.objects<<EOF
91301: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
91302: 	$ac_comp
91303: EOF
91304:   done
91305: 
91306: 
91307:         ;;
91308:     esac
91309:     EXT_CLI_STATIC="$EXT_CLI_STATIC standard"
91310:   fi
91311: 
91312: 
91313:     BUILD_DIR="$BUILD_DIR $ext_builddir"
91314: 
91315: 
91316: 
91317:   if test "$ext_builddir" = "."; then
91318:     PHP_PECL_EXTENSION=standard
91319: 
91320:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
91321: 
91322:   fi
91323: 
91324: 
91325: 
91326:   src=$ext_srcdir/Makefile.frag
91327:   ac_srcdir=$ext_srcdir
91328:   ac_builddir=$ext_builddir
91329:   test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src  >> Makefile.fragments
91330: 
91331: 
91332: 
91333:     for header_file in ext/standard/; do
91334: 
91335: 
91336:   unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
91337: 
91338:   cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
91339:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
91340:     eval "INSTALLHEADERS$unique=set"
91341: 
91342:         INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
91343: 
91344:   fi
91345: 
91346:     done
91347: 
91348: 
91349: 
91350: 
91351: 
91352: php_with_sybase_ct=no
91353: 
91354: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Sybase-CT support" >&5
91355: $as_echo_n "checking for Sybase-CT support... " >&6; }
91356: 
91357: # Check whether --with-sybase-ct was given.
91358: if test "${with_sybase_ct+set}" = set; then :
91359:   withval=$with_sybase_ct; PHP_SYBASE_CT=$withval
91360: else
91361: 
91362:   PHP_SYBASE_CT=no
91363:   test "$PHP_ENABLE_ALL" && PHP_SYBASE_CT=$PHP_ENABLE_ALL
91364: 
91365: fi
91366: 
91367: 
91368: 
91369: ext_output="yes, shared"
91370: ext_shared=yes
91371: case $PHP_SYBASE_CT in
91372: shared,*)
91373:   PHP_SYBASE_CT=`echo "$PHP_SYBASE_CT"|$SED 's/^shared,//'`
91374:   ;;
91375: shared)
91376:   PHP_SYBASE_CT=yes
91377:   ;;
91378: no)
91379:   ext_output=no
91380:   ext_shared=no
91381:   ;;
91382: *)
91383:   ext_output=yes
91384:   ext_shared=no
91385:   ;;
91386: esac
91387: 
91388: 
91389: 
91390: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
91391: $as_echo "$ext_output" >&6; }
91392: 
91393: 
91394: 
91395: 
91396: if test "$PHP_SYBASE_CT" != "no"; then
91397: 
91398:   if test "$PHP_SYBASE" && test "$PHP_SYBASE" != "no" && test "$ext_shared" = "no"; then
91399:     as_fn_error $? "You can not use both --with-sybase and --with-sybase-ct in same build!" "$LINENO" 5
91400:   fi
91401: 
91402: 
91403: $as_echo "#define HAVE_SYBASE_CT 1" >>confdefs.h
91404: 
91405: 
91406:   ext_builddir=ext/sybase_ct
91407:   ext_srcdir=$abs_srcdir/ext/sybase_ct
91408: 
91409:   ac_extra=
91410: 
91411:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
91412:     PHP_SYBASE_CT_SHARED=no
91413: 
91414: 
91415:   case ext/sybase_ct in
91416:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
91417:   /*) ac_srcdir=`echo "ext/sybase_ct"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
91418:   *) ac_srcdir="$abs_srcdir/ext/sybase_ct/"; ac_bdir="ext/sybase_ct/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
91419:   esac
91420: 
91421: 
91422: 
91423:   b_c_pre=$php_c_pre
91424:   b_cxx_pre=$php_cxx_pre
91425:   b_c_meta=$php_c_meta
91426:   b_cxx_meta=$php_cxx_meta
91427:   b_c_post=$php_c_post
91428:   b_cxx_post=$php_cxx_post
91429:   b_lo=$php_lo
91430: 
91431: 
91432:   old_IFS=$IFS
91433:   for ac_src in php_sybase_ct.c; do
91434: 
91435:       IFS=.
91436:       set $ac_src
91437:       ac_obj=$1
91438:       IFS=$old_IFS
91439: 
91440:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
91441: 
91442:       case $ac_src in
91443:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
91444:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
91445:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
91446:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
91447:       esac
91448: 
91449:     cat >>Makefile.objects<<EOF
91450: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
91451: 	$ac_comp
91452: EOF
91453:   done
91454: 
91455: 
91456:     EXT_STATIC="$EXT_STATIC sybase_ct"
91457:     if test "$ext_shared" != "nocli"; then
91458:       EXT_CLI_STATIC="$EXT_CLI_STATIC sybase_ct"
91459:     fi
91460:   else
91461:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
91462:       PHP_SYBASE_CT_SHARED=yes
91463: 
91464:   case ext/sybase_ct in
91465:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
91466:   /*) ac_srcdir=`echo "ext/sybase_ct"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
91467:   *) ac_srcdir="$abs_srcdir/ext/sybase_ct/"; ac_bdir="ext/sybase_ct/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
91468:   esac
91469: 
91470: 
91471: 
91472:   b_c_pre=$shared_c_pre
91473:   b_cxx_pre=$shared_cxx_pre
91474:   b_c_meta=$shared_c_meta
91475:   b_cxx_meta=$shared_cxx_meta
91476:   b_c_post=$shared_c_post
91477:   b_cxx_post=$shared_cxx_post
91478:   b_lo=$shared_lo
91479: 
91480: 
91481:   old_IFS=$IFS
91482:   for ac_src in php_sybase_ct.c; do
91483: 
91484:       IFS=.
91485:       set $ac_src
91486:       ac_obj=$1
91487:       IFS=$old_IFS
91488: 
91489:       shared_objects_sybase_ct="$shared_objects_sybase_ct $ac_bdir$ac_obj.lo"
91490: 
91491:       case $ac_src in
91492:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
91493:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
91494:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
91495:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
91496:       esac
91497: 
91498:     cat >>Makefile.objects<<EOF
91499: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
91500: 	$ac_comp
91501: EOF
91502:   done
91503: 
91504:       case $host_alias in
91505:         *netware*)
91506: 
91507:   install_modules="install-modules"
91508: 
91509:   case $host_alias in
91510:     *aix*)
91511:       suffix=so
91512:       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'
91513:       ;;
91514:     *netware*)
91515:       suffix=nlm
91516:       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)'
91517:       ;;
91518:     *)
91519:       suffix=la
91520:       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)'
91521:       ;;
91522:   esac
91523: 
91524:   if test "x" = "xyes"; then
91525:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpsybase_ct.$suffix"
91526:   else
91527:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpsybase_ct.$suffix"
91528:   fi
91529: 
91530:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_sybase_ct"
91531: 
91532:   cat >>Makefile.objects<<EOF
91533: \$(phplibdir)/phpsybase_ct.$suffix: $ext_builddir/phpsybase_ct.$suffix
91534: 	\$(LIBTOOL) --mode=install cp $ext_builddir/phpsybase_ct.$suffix \$(phplibdir)
91535: 
91536: $ext_builddir/phpsybase_ct.$suffix: \$(shared_objects_sybase_ct) \$(PHPSYBASE_CT_SHARED_DEPENDENCIES)
91537: 	$link_cmd
91538: 
91539: EOF
91540: 
91541:           ;;
91542:         *)
91543: 
91544:   install_modules="install-modules"
91545: 
91546:   case $host_alias in
91547:     *aix*)
91548:       suffix=so
91549:       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'
91550:       ;;
91551:     *netware*)
91552:       suffix=nlm
91553:       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)'
91554:       ;;
91555:     *)
91556:       suffix=la
91557:       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)'
91558:       ;;
91559:   esac
91560: 
91561:   if test "x" = "xyes"; then
91562:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/sybase_ct.$suffix"
91563:   else
91564:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/sybase_ct.$suffix"
91565:   fi
91566: 
91567:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_sybase_ct"
91568: 
91569:   cat >>Makefile.objects<<EOF
91570: \$(phplibdir)/sybase_ct.$suffix: $ext_builddir/sybase_ct.$suffix
91571: 	\$(LIBTOOL) --mode=install cp $ext_builddir/sybase_ct.$suffix \$(phplibdir)
91572: 
91573: $ext_builddir/sybase_ct.$suffix: \$(shared_objects_sybase_ct) \$(SYBASE_CT_SHARED_DEPENDENCIES)
91574: 	$link_cmd
91575: 
91576: EOF
91577: 
91578:           ;;
91579:       esac
91580: 
91581: cat >>confdefs.h <<_ACEOF
91582: #define COMPILE_DL_SYBASE_CT 1
91583: _ACEOF
91584: 
91585:     fi
91586:   fi
91587: 
91588:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
91589:     PHP_SYBASE_CT_SHARED=no
91590:     case "$PHP_SAPI" in
91591:       cgi|embed)
91592: 
91593: 
91594:   case ext/sybase_ct in
91595:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
91596:   /*) ac_srcdir=`echo "ext/sybase_ct"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
91597:   *) ac_srcdir="$abs_srcdir/ext/sybase_ct/"; ac_bdir="ext/sybase_ct/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
91598:   esac
91599: 
91600: 
91601: 
91602:   b_c_pre=$php_c_pre
91603:   b_cxx_pre=$php_cxx_pre
91604:   b_c_meta=$php_c_meta
91605:   b_cxx_meta=$php_cxx_meta
91606:   b_c_post=$php_c_post
91607:   b_cxx_post=$php_cxx_post
91608:   b_lo=$php_lo
91609: 
91610: 
91611:   old_IFS=$IFS
91612:   for ac_src in php_sybase_ct.c; do
91613: 
91614:       IFS=.
91615:       set $ac_src
91616:       ac_obj=$1
91617:       IFS=$old_IFS
91618: 
91619:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
91620: 
91621:       case $ac_src in
91622:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
91623:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
91624:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
91625:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
91626:       esac
91627: 
91628:     cat >>Makefile.objects<<EOF
91629: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
91630: 	$ac_comp
91631: EOF
91632:   done
91633: 
91634: 
91635:         EXT_STATIC="$EXT_STATIC sybase_ct"
91636:         ;;
91637:       *)
91638: 
91639: 
91640:   case ext/sybase_ct in
91641:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
91642:   /*) ac_srcdir=`echo "ext/sybase_ct"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
91643:   *) ac_srcdir="$abs_srcdir/ext/sybase_ct/"; ac_bdir="ext/sybase_ct/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
91644:   esac
91645: 
91646: 
91647: 
91648:   b_c_pre=$php_c_pre
91649:   b_cxx_pre=$php_cxx_pre
91650:   b_c_meta=$php_c_meta
91651:   b_cxx_meta=$php_cxx_meta
91652:   b_c_post=$php_c_post
91653:   b_cxx_post=$php_cxx_post
91654:   b_lo=$php_lo
91655: 
91656: 
91657:   old_IFS=$IFS
91658:   for ac_src in php_sybase_ct.c; do
91659: 
91660:       IFS=.
91661:       set $ac_src
91662:       ac_obj=$1
91663:       IFS=$old_IFS
91664: 
91665:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
91666: 
91667:       case $ac_src in
91668:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
91669:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
91670:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
91671:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
91672:       esac
91673: 
91674:     cat >>Makefile.objects<<EOF
91675: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
91676: 	$ac_comp
91677: EOF
91678:   done
91679: 
91680: 
91681:         ;;
91682:     esac
91683:     EXT_CLI_STATIC="$EXT_CLI_STATIC sybase_ct"
91684:   fi
91685: 
91686: 
91687:     BUILD_DIR="$BUILD_DIR $ext_builddir"
91688: 
91689: 
91690: 
91691:   if test "$ext_builddir" = "."; then
91692:     PHP_PECL_EXTENSION=sybase_ct
91693: 
91694:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
91695: 
91696:   fi
91697: 
91698: 
91699:   PHP_VAR_SUBST="$PHP_VAR_SUBST SYBASE_CT_SHARED_LIBADD"
91700: 
91701: 
91702:   if test "$PHP_SYBASE_CT" = "yes"; then
91703:     SYBASE_CT_INCDIR=/home/sybase/include
91704:     SYBASE_CT_LIBDIR=/home/sybase/lib
91705:   else
91706:     SYBASE_CT_INCDIR=$PHP_SYBASE_CT/include
91707:     SYBASE_CT_LIBDIR=$PHP_SYBASE_CT/lib
91708:   fi
91709: 
91710:     # The cast to long int works around a bug in the HP C Compiler
91711: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
91712: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
91713: # This bug is HP SR number 8606223364.
91714: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
91715: $as_echo_n "checking size of long int... " >&6; }
91716: if ${ac_cv_sizeof_long_int+:} false; then :
91717:   $as_echo_n "(cached) " >&6
91718: else
91719:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int"        "$ac_includes_default"; then :
91720: 
91721: else
91722:   if test "$ac_cv_type_long_int" = yes; then
91723:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
91724: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
91725: as_fn_error 77 "cannot compute sizeof (long int)
91726: See \`config.log' for more details" "$LINENO" 5; }
91727:    else
91728:      ac_cv_sizeof_long_int=0
91729:    fi
91730: fi
91731: 
91732: fi
91733: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
91734: $as_echo "$ac_cv_sizeof_long_int" >&6; }
91735: 
91736: 
91737: 
91738: cat >>confdefs.h <<_ACEOF
91739: #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
91740: _ACEOF
91741: 
91742: 
91743:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking checking if we're on a 64-bit platform" >&5
91744: $as_echo_n "checking checking if we're on a 64-bit platform... " >&6; }
91745:   if test "$ac_cv_sizeof_long_int" = "4"; then
91746:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
91747: $as_echo "no" >&6; }
91748:     PHP_SYBASE_64=no
91749:   else
91750:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
91751: $as_echo "yes" >&6; }
91752:     PHP_SYBASE_64=yes
91753:   fi
91754: 
91755: 
91756:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for ctpublic.h" >&5
91757: $as_echo_n "checking Checking for ctpublic.h... " >&6; }
91758:   if test -f $SYBASE_CT_INCDIR/ctpublic.h; then
91759:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $SYBASE_CT_INCDIR" >&5
91760: $as_echo "found in $SYBASE_CT_INCDIR" >&6; }
91761: 
91762:   if test "$SYBASE_CT_INCDIR" != "/usr/include"; then
91763: 
91764:   if test -z "$SYBASE_CT_INCDIR" || echo "$SYBASE_CT_INCDIR" | grep '^/' >/dev/null ; then
91765:     ai_p=$SYBASE_CT_INCDIR
91766:   else
91767: 
91768:     ep_dir=`echo $SYBASE_CT_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`
91769: 
91770:     ep_realdir=`(cd "$ep_dir" && pwd)`
91771:     ai_p="$ep_realdir"/`basename "$SYBASE_CT_INCDIR"`
91772:   fi
91773: 
91774: 
91775: 
91776:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
91777: 
91778:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
91779:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
91780:     eval "INCLUDEPATH$unique=set"
91781: 
91782:       if test ""; then
91783:         INCLUDES="-I$ai_p $INCLUDES"
91784:       else
91785:         INCLUDES="$INCLUDES -I$ai_p"
91786:       fi
91787: 
91788:   fi
91789: 
91790:   fi
91791: 
91792:   else
91793:     as_fn_error $? "ctpublic.h missing!" "$LINENO" 5
91794:   fi
91795: 
91796:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking Sybase libdir" >&5
91797: $as_echo_n "checking Checking Sybase libdir... " >&6; }
91798:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Have $SYBASE_CT_LIBDIR" >&5
91799: $as_echo "Have $SYBASE_CT_LIBDIR" >&6; }
91800: 
91801:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for Sybase platform libraries" >&5
91802: $as_echo_n "checking Checking for Sybase platform libraries... " >&6; }
91803: 
91804: 
91805:   if test "$SYBASE_CT_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$SYBASE_CT_LIBDIR" != "/usr/lib"; then
91806: 
91807:   if test -z "$SYBASE_CT_LIBDIR" || echo "$SYBASE_CT_LIBDIR" | grep '^/' >/dev/null ; then
91808:     ai_p=$SYBASE_CT_LIBDIR
91809:   else
91810: 
91811:     ep_dir=`echo $SYBASE_CT_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
91812: 
91813:     ep_realdir=`(cd "$ep_dir" && pwd)`
91814:     ai_p="$ep_realdir"/`basename "$SYBASE_CT_LIBDIR"`
91815:   fi
91816: 
91817: 
91818:       if test "$ext_shared" = "yes"; then
91819:         SYBASE_CT_SHARED_LIBADD="-L$ai_p $SYBASE_CT_SHARED_LIBADD"
91820:         test -n "$ld_runpath_switch" && SYBASE_CT_SHARED_LIBADD="$ld_runpath_switch$ai_p $SYBASE_CT_SHARED_LIBADD"
91821:       else
91822: 
91823: 
91824: 
91825:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
91826: 
91827:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
91828:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
91829:     eval "LIBPATH$unique=set"
91830: 
91831:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
91832:     LDFLAGS="$LDFLAGS -L$ai_p"
91833:     PHP_RPATHS="$PHP_RPATHS $ai_p"
91834: 
91835:   fi
91836: 
91837: 
91838:       fi
91839: 
91840:   fi
91841: 
91842:   if test -f $SYBASE_CT_INCDIR/tds.h || test -f $SYBASE_CT_INCDIR/tds_sysdep_public.h; then
91843: 
91844: 
91845:   case ct in
91846:   c|c_r|pthread*) ;;
91847:   *)
91848:     if test "$ext_shared" = "yes"; then
91849:         SYBASE_CT_SHARED_LIBADD="-lct $SYBASE_CT_SHARED_LIBADD"
91850:     else
91851: 
91852: 
91853:   case ct in
91854:   c|c_r|pthread*) ;;
91855:   *)
91856:       LIBS="-lct $LIBS"
91857:    ;;
91858:   esac
91859: 
91860: 
91861:     fi
91862:    ;;
91863:   esac
91864: 
91865: 
91866:     SYBASE_CT_LIBS="-L$SYBASE_CT_LIBDIR -lct"
91867:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: FreeTDS: $SYBASE_CT_LIBS" >&5
91868: $as_echo "FreeTDS: $SYBASE_CT_LIBS" >&6; }
91869:   elif test -f $SYBASE_CT_LIBDIR/libsybct64.so && test $PHP_SYBASE_64 = "yes"; then
91870: 
91871: 
91872:   case sybcs64 in
91873:   c|c_r|pthread*) ;;
91874:   *)
91875:     if test "$ext_shared" = "yes"; then
91876:         SYBASE_CT_SHARED_LIBADD="-lsybcs64 $SYBASE_CT_SHARED_LIBADD"
91877:     else
91878: 
91879: 
91880:   case sybcs64 in
91881:   c|c_r|pthread*) ;;
91882:   *)
91883:       LIBS="-lsybcs64 $LIBS"
91884:    ;;
91885:   esac
91886: 
91887: 
91888:     fi
91889:    ;;
91890:   esac
91891: 
91892: 
91893: 
91894: 
91895:   case sybct64 in
91896:   c|c_r|pthread*) ;;
91897:   *)
91898:     if test "$ext_shared" = "yes"; then
91899:         SYBASE_CT_SHARED_LIBADD="-lsybct64 $SYBASE_CT_SHARED_LIBADD"
91900:     else
91901: 
91902: 
91903:   case sybct64 in
91904:   c|c_r|pthread*) ;;
91905:   *)
91906:       LIBS="-lsybct64 $LIBS"
91907:    ;;
91908:   esac
91909: 
91910: 
91911:     fi
91912:    ;;
91913:   esac
91914: 
91915: 
91916: 
91917: 
91918:   case sybcomn64 in
91919:   c|c_r|pthread*) ;;
91920:   *)
91921:     if test "$ext_shared" = "yes"; then
91922:         SYBASE_CT_SHARED_LIBADD="-lsybcomn64 $SYBASE_CT_SHARED_LIBADD"
91923:     else
91924: 
91925: 
91926:   case sybcomn64 in
91927:   c|c_r|pthread*) ;;
91928:   *)
91929:       LIBS="-lsybcomn64 $LIBS"
91930:    ;;
91931:   esac
91932: 
91933: 
91934:     fi
91935:    ;;
91936:   esac
91937: 
91938: 
91939: 
91940: 
91941:   case sybintl64 in
91942:   c|c_r|pthread*) ;;
91943:   *)
91944:     if test "$ext_shared" = "yes"; then
91945:         SYBASE_CT_SHARED_LIBADD="-lsybintl64 $SYBASE_CT_SHARED_LIBADD"
91946:     else
91947: 
91948: 
91949:   case sybintl64 in
91950:   c|c_r|pthread*) ;;
91951:   *)
91952:       LIBS="-lsybintl64 $LIBS"
91953:    ;;
91954:   esac
91955: 
91956: 
91957:     fi
91958:    ;;
91959:   esac
91960: 
91961: 
91962: 
91963:     ac_solid_uname_s=`uname -s 2>/dev/null`
91964:     case $ac_solid_uname_s in
91965:       *OSF*)                            ;; # Tru64/DEC OSF does NOT use the SYB_LP64 define
91966:       *) CFLAGS="${CFLAGS} -DSYB_LP64"  ;; #
91967:     esac
91968:     SYBASE_CT_LIBS="-L$SYBASE_CT_LIBDIR -lsybcs64 -lsybct64 -lsybcomn64 -lsybintl64"
91969:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sybase64: $SYBASE_CT_LIBS" >&5
91970: $as_echo "Sybase64: $SYBASE_CT_LIBS" >&6; }
91971: 
91972: 
91973:   save_old_LDFLAGS=$LDFLAGS
91974:   ac_stuff="
91975:       $SYBASE_CT_LIBS
91976:     "
91977: 
91978:   save_ext_shared=$ext_shared
91979:   ext_shared=yes
91980: 
91981:   for ac_i in $ac_stuff; do
91982:     case $ac_i in
91983:     -pthread)
91984:       if test "$ext_shared" = "yes"; then
91985:         LDFLAGS="$LDFLAGS -pthread"
91986:       else
91987: 
91988: 
91989:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
91990: 
91991:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
91992:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
91993:     eval "EXTRA_LDFLAGS$unique=set"
91994:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
91995:   fi
91996: 
91997:       fi
91998:     ;;
91999:     -l*)
92000:       ac_ii=`echo $ac_i|cut -c 3-`
92001: 
92002: 
92003:   case $ac_ii in
92004:   c|c_r|pthread*) ;;
92005:   *)
92006:     if test "$ext_shared" = "yes"; then
92007:         LDFLAGS="$LDFLAGS -l$ac_ii"
92008:     else
92009: 
92010: 
92011:   case $ac_ii in
92012:   c|c_r|pthread*) ;;
92013:   *)
92014:       LIBS="$LIBS -l$ac_ii"
92015:    ;;
92016:   esac
92017: 
92018: 
92019:     fi
92020:    ;;
92021:   esac
92022: 
92023: 
92024:     ;;
92025:     -L*)
92026:       ac_ii=`echo $ac_i|cut -c 3-`
92027: 
92028:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
92029: 
92030:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
92031:     ai_p=$ac_ii
92032:   else
92033: 
92034:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
92035: 
92036:     ep_realdir=`(cd "$ep_dir" && pwd)`
92037:     ai_p="$ep_realdir"/`basename "$ac_ii"`
92038:   fi
92039: 
92040: 
92041:       if test "$ext_shared" = "yes"; then
92042:         LDFLAGS="-L$ai_p $LDFLAGS"
92043:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
92044:       else
92045: 
92046: 
92047: 
92048:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
92049: 
92050:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
92051:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
92052:     eval "LIBPATH$unique=set"
92053: 
92054:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
92055:     LDFLAGS="$LDFLAGS -L$ai_p"
92056:     PHP_RPATHS="$PHP_RPATHS $ai_p"
92057: 
92058:   fi
92059: 
92060: 
92061:       fi
92062: 
92063:   fi
92064: 
92065:     ;;
92066:     esac
92067:   done
92068: 
92069:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netg_errstr in -lsybtcl64" >&5
92070: $as_echo_n "checking for netg_errstr in -lsybtcl64... " >&6; }
92071: if ${ac_cv_lib_sybtcl64_netg_errstr+:} false; then :
92072:   $as_echo_n "(cached) " >&6
92073: else
92074:   ac_check_lib_save_LIBS=$LIBS
92075: LIBS="-lsybtcl64  $LIBS"
92076: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
92077: /* end confdefs.h.  */
92078: 
92079: /* Override any GCC internal prototype to avoid an error.
92080:    Use char because int might match the return type of a GCC
92081:    builtin and then its argument prototype would still apply.  */
92082: #ifdef __cplusplus
92083: extern "C"
92084: #endif
92085: char netg_errstr ();
92086: int
92087: main ()
92088: {
92089: return netg_errstr ();
92090:   ;
92091:   return 0;
92092: }
92093: _ACEOF
92094: if ac_fn_c_try_link "$LINENO"; then :
92095:   ac_cv_lib_sybtcl64_netg_errstr=yes
92096: else
92097:   ac_cv_lib_sybtcl64_netg_errstr=no
92098: fi
92099: rm -f core conftest.err conftest.$ac_objext \
92100:     conftest$ac_exeext conftest.$ac_ext
92101: LIBS=$ac_check_lib_save_LIBS
92102: fi
92103: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sybtcl64_netg_errstr" >&5
92104: $as_echo "$ac_cv_lib_sybtcl64_netg_errstr" >&6; }
92105: if test "x$ac_cv_lib_sybtcl64_netg_errstr" = xyes; then :
92106: 
92107:     LDFLAGS=$save_old_LDFLAGS
92108:     ext_shared=$save_ext_shared
92109: 
92110: 
92111: 
92112:   case sybtcl64 in
92113:   c|c_r|pthread*) ;;
92114:   *)
92115:     if test "$ext_shared" = "yes"; then
92116:         SYBASE_CT_SHARED_LIBADD="-lsybtcl64 $SYBASE_CT_SHARED_LIBADD"
92117:     else
92118: 
92119: 
92120:   case sybtcl64 in
92121:   c|c_r|pthread*) ;;
92122:   *)
92123:       LIBS="-lsybtcl64 $LIBS"
92124:    ;;
92125:   esac
92126: 
92127: 
92128:     fi
92129:    ;;
92130:   esac
92131: 
92132: 
92133: 
92134: 
92135: else
92136: 
92137:     LDFLAGS=$save_old_LDFLAGS
92138:     ext_shared=$save_ext_shared
92139:     unset ac_cv_lib_sybtcl64_netg_errstr
92140: 
92141: 
92142: 
92143:   case sybtcl64 in
92144:   c|c_r|pthread*) ;;
92145:   *)
92146:     if test "$ext_shared" = "yes"; then
92147:         SYBASE_CT_SHARED_LIBADD="-lsybtcl64 $SYBASE_CT_SHARED_LIBADD"
92148:     else
92149: 
92150: 
92151:   case sybtcl64 in
92152:   c|c_r|pthread*) ;;
92153:   *)
92154:       LIBS="-lsybtcl64 $LIBS"
92155:    ;;
92156:   esac
92157: 
92158: 
92159:     fi
92160:    ;;
92161:   esac
92162: 
92163: 
92164: 
92165: 
92166: fi
92167: 
92168: 
92169: 
92170:   save_old_LDFLAGS=$LDFLAGS
92171:   ac_stuff="-L$SYBASE_CT_LIBDIR"
92172: 
92173:   save_ext_shared=$ext_shared
92174:   ext_shared=yes
92175: 
92176:   for ac_i in $ac_stuff; do
92177:     case $ac_i in
92178:     -pthread)
92179:       if test "$ext_shared" = "yes"; then
92180:         LDFLAGS="$LDFLAGS -pthread"
92181:       else
92182: 
92183: 
92184:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
92185: 
92186:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
92187:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
92188:     eval "EXTRA_LDFLAGS$unique=set"
92189:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
92190:   fi
92191: 
92192:       fi
92193:     ;;
92194:     -l*)
92195:       ac_ii=`echo $ac_i|cut -c 3-`
92196: 
92197: 
92198:   case $ac_ii in
92199:   c|c_r|pthread*) ;;
92200:   *)
92201:     if test "$ext_shared" = "yes"; then
92202:         LDFLAGS="$LDFLAGS -l$ac_ii"
92203:     else
92204: 
92205: 
92206:   case $ac_ii in
92207:   c|c_r|pthread*) ;;
92208:   *)
92209:       LIBS="$LIBS -l$ac_ii"
92210:    ;;
92211:   esac
92212: 
92213: 
92214:     fi
92215:    ;;
92216:   esac
92217: 
92218: 
92219:     ;;
92220:     -L*)
92221:       ac_ii=`echo $ac_i|cut -c 3-`
92222: 
92223:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
92224: 
92225:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
92226:     ai_p=$ac_ii
92227:   else
92228: 
92229:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
92230: 
92231:     ep_realdir=`(cd "$ep_dir" && pwd)`
92232:     ai_p="$ep_realdir"/`basename "$ac_ii"`
92233:   fi
92234: 
92235: 
92236:       if test "$ext_shared" = "yes"; then
92237:         LDFLAGS="-L$ai_p $LDFLAGS"
92238:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
92239:       else
92240: 
92241: 
92242: 
92243:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
92244: 
92245:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
92246:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
92247:     eval "LIBPATH$unique=set"
92248: 
92249:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
92250:     LDFLAGS="$LDFLAGS -L$ai_p"
92251:     PHP_RPATHS="$PHP_RPATHS $ai_p"
92252: 
92253:   fi
92254: 
92255: 
92256:       fi
92257: 
92258:   fi
92259: 
92260:     ;;
92261:     esac
92262:   done
92263: 
92264:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for insck__getVdate in -linsck64" >&5
92265: $as_echo_n "checking for insck__getVdate in -linsck64... " >&6; }
92266: if ${ac_cv_lib_insck64_insck__getVdate+:} false; then :
92267:   $as_echo_n "(cached) " >&6
92268: else
92269:   ac_check_lib_save_LIBS=$LIBS
92270: LIBS="-linsck64  $LIBS"
92271: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
92272: /* end confdefs.h.  */
92273: 
92274: /* Override any GCC internal prototype to avoid an error.
92275:    Use char because int might match the return type of a GCC
92276:    builtin and then its argument prototype would still apply.  */
92277: #ifdef __cplusplus
92278: extern "C"
92279: #endif
92280: char insck__getVdate ();
92281: int
92282: main ()
92283: {
92284: return insck__getVdate ();
92285:   ;
92286:   return 0;
92287: }
92288: _ACEOF
92289: if ac_fn_c_try_link "$LINENO"; then :
92290:   ac_cv_lib_insck64_insck__getVdate=yes
92291: else
92292:   ac_cv_lib_insck64_insck__getVdate=no
92293: fi
92294: rm -f core conftest.err conftest.$ac_objext \
92295:     conftest$ac_exeext conftest.$ac_ext
92296: LIBS=$ac_check_lib_save_LIBS
92297: fi
92298: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_insck64_insck__getVdate" >&5
92299: $as_echo "$ac_cv_lib_insck64_insck__getVdate" >&6; }
92300: if test "x$ac_cv_lib_insck64_insck__getVdate" = xyes; then :
92301: 
92302:     LDFLAGS=$save_old_LDFLAGS
92303:     ext_shared=$save_ext_shared
92304: 
92305: 
92306:   case insck64 in
92307:   c|c_r|pthread*) ;;
92308:   *)
92309:     if test "$ext_shared" = "yes"; then
92310:         SYBASE_CT_SHARED_LIBADD="-linsck64 $SYBASE_CT_SHARED_LIBADD"
92311:     else
92312: 
92313: 
92314:   case insck64 in
92315:   c|c_r|pthread*) ;;
92316:   *)
92317:       LIBS="-linsck64 $LIBS"
92318:    ;;
92319:   esac
92320: 
92321: 
92322:     fi
92323:    ;;
92324:   esac
92325: 
92326: 
92327: 
92328: else
92329: 
92330:     LDFLAGS=$save_old_LDFLAGS
92331:     ext_shared=$save_ext_shared
92332:     unset ac_cv_lib_insck64_insck__getVdate
92333: 
92334: 
92335: fi
92336: 
92337: 
92338:   save_old_LDFLAGS=$LDFLAGS
92339:   ac_stuff="-L$SYBASE_CT_LIBDIR"
92340: 
92341:   save_ext_shared=$ext_shared
92342:   ext_shared=yes
92343: 
92344:   for ac_i in $ac_stuff; do
92345:     case $ac_i in
92346:     -pthread)
92347:       if test "$ext_shared" = "yes"; then
92348:         LDFLAGS="$LDFLAGS -pthread"
92349:       else
92350: 
92351: 
92352:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
92353: 
92354:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
92355:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
92356:     eval "EXTRA_LDFLAGS$unique=set"
92357:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
92358:   fi
92359: 
92360:       fi
92361:     ;;
92362:     -l*)
92363:       ac_ii=`echo $ac_i|cut -c 3-`
92364: 
92365: 
92366:   case $ac_ii in
92367:   c|c_r|pthread*) ;;
92368:   *)
92369:     if test "$ext_shared" = "yes"; then
92370:         LDFLAGS="$LDFLAGS -l$ac_ii"
92371:     else
92372: 
92373: 
92374:   case $ac_ii in
92375:   c|c_r|pthread*) ;;
92376:   *)
92377:       LIBS="$LIBS -l$ac_ii"
92378:    ;;
92379:   esac
92380: 
92381: 
92382:     fi
92383:    ;;
92384:   esac
92385: 
92386: 
92387:     ;;
92388:     -L*)
92389:       ac_ii=`echo $ac_i|cut -c 3-`
92390: 
92391:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
92392: 
92393:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
92394:     ai_p=$ac_ii
92395:   else
92396: 
92397:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
92398: 
92399:     ep_realdir=`(cd "$ep_dir" && pwd)`
92400:     ai_p="$ep_realdir"/`basename "$ac_ii"`
92401:   fi
92402: 
92403: 
92404:       if test "$ext_shared" = "yes"; then
92405:         LDFLAGS="-L$ai_p $LDFLAGS"
92406:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
92407:       else
92408: 
92409: 
92410: 
92411:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
92412: 
92413:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
92414:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
92415:     eval "LIBPATH$unique=set"
92416: 
92417:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
92418:     LDFLAGS="$LDFLAGS -L$ai_p"
92419:     PHP_RPATHS="$PHP_RPATHS $ai_p"
92420: 
92421:   fi
92422: 
92423: 
92424:       fi
92425: 
92426:   fi
92427: 
92428:     ;;
92429:     esac
92430:   done
92431: 
92432:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bsd_tcp in -linsck64" >&5
92433: $as_echo_n "checking for bsd_tcp in -linsck64... " >&6; }
92434: if ${ac_cv_lib_insck64_bsd_tcp+:} false; then :
92435:   $as_echo_n "(cached) " >&6
92436: else
92437:   ac_check_lib_save_LIBS=$LIBS
92438: LIBS="-linsck64  $LIBS"
92439: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
92440: /* end confdefs.h.  */
92441: 
92442: /* Override any GCC internal prototype to avoid an error.
92443:    Use char because int might match the return type of a GCC
92444:    builtin and then its argument prototype would still apply.  */
92445: #ifdef __cplusplus
92446: extern "C"
92447: #endif
92448: char bsd_tcp ();
92449: int
92450: main ()
92451: {
92452: return bsd_tcp ();
92453:   ;
92454:   return 0;
92455: }
92456: _ACEOF
92457: if ac_fn_c_try_link "$LINENO"; then :
92458:   ac_cv_lib_insck64_bsd_tcp=yes
92459: else
92460:   ac_cv_lib_insck64_bsd_tcp=no
92461: fi
92462: rm -f core conftest.err conftest.$ac_objext \
92463:     conftest$ac_exeext conftest.$ac_ext
92464: LIBS=$ac_check_lib_save_LIBS
92465: fi
92466: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_insck64_bsd_tcp" >&5
92467: $as_echo "$ac_cv_lib_insck64_bsd_tcp" >&6; }
92468: if test "x$ac_cv_lib_insck64_bsd_tcp" = xyes; then :
92469: 
92470:     LDFLAGS=$save_old_LDFLAGS
92471:     ext_shared=$save_ext_shared
92472: 
92473: 
92474:   case insck64 in
92475:   c|c_r|pthread*) ;;
92476:   *)
92477:     if test "$ext_shared" = "yes"; then
92478:         SYBASE_CT_SHARED_LIBADD="-linsck64 $SYBASE_CT_SHARED_LIBADD"
92479:     else
92480: 
92481: 
92482:   case insck64 in
92483:   c|c_r|pthread*) ;;
92484:   *)
92485:       LIBS="-linsck64 $LIBS"
92486:    ;;
92487:   esac
92488: 
92489: 
92490:     fi
92491:    ;;
92492:   esac
92493: 
92494: 
92495: 
92496: else
92497: 
92498:     LDFLAGS=$save_old_LDFLAGS
92499:     ext_shared=$save_ext_shared
92500:     unset ac_cv_lib_insck64_bsd_tcp
92501: 
92502: 
92503: fi
92504: 
92505:   elif test -f $SYBASE_CT_LIBDIR/libsybct.so; then
92506: 
92507: 
92508:   case sybcs in
92509:   c|c_r|pthread*) ;;
92510:   *)
92511:     if test "$ext_shared" = "yes"; then
92512:         SYBASE_CT_SHARED_LIBADD="-lsybcs $SYBASE_CT_SHARED_LIBADD"
92513:     else
92514: 
92515: 
92516:   case sybcs in
92517:   c|c_r|pthread*) ;;
92518:   *)
92519:       LIBS="-lsybcs $LIBS"
92520:    ;;
92521:   esac
92522: 
92523: 
92524:     fi
92525:    ;;
92526:   esac
92527: 
92528: 
92529: 
92530: 
92531:   case sybct in
92532:   c|c_r|pthread*) ;;
92533:   *)
92534:     if test "$ext_shared" = "yes"; then
92535:         SYBASE_CT_SHARED_LIBADD="-lsybct $SYBASE_CT_SHARED_LIBADD"
92536:     else
92537: 
92538: 
92539:   case sybct in
92540:   c|c_r|pthread*) ;;
92541:   *)
92542:       LIBS="-lsybct $LIBS"
92543:    ;;
92544:   esac
92545: 
92546: 
92547:     fi
92548:    ;;
92549:   esac
92550: 
92551: 
92552: 
92553: 
92554:   case sybcomn in
92555:   c|c_r|pthread*) ;;
92556:   *)
92557:     if test "$ext_shared" = "yes"; then
92558:         SYBASE_CT_SHARED_LIBADD="-lsybcomn $SYBASE_CT_SHARED_LIBADD"
92559:     else
92560: 
92561: 
92562:   case sybcomn in
92563:   c|c_r|pthread*) ;;
92564:   *)
92565:       LIBS="-lsybcomn $LIBS"
92566:    ;;
92567:   esac
92568: 
92569: 
92570:     fi
92571:    ;;
92572:   esac
92573: 
92574: 
92575: 
92576: 
92577:   case sybintl in
92578:   c|c_r|pthread*) ;;
92579:   *)
92580:     if test "$ext_shared" = "yes"; then
92581:         SYBASE_CT_SHARED_LIBADD="-lsybintl $SYBASE_CT_SHARED_LIBADD"
92582:     else
92583: 
92584: 
92585:   case sybintl in
92586:   c|c_r|pthread*) ;;
92587:   *)
92588:       LIBS="-lsybintl $LIBS"
92589:    ;;
92590:   esac
92591: 
92592: 
92593:     fi
92594:    ;;
92595:   esac
92596: 
92597: 
92598: 
92599:     SYBASE_CT_LIBS="-L$SYBASE_CT_LIBDIR -lsybcs -lsybct -lsybcomn -lsybintl"
92600:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sybase32 syb-prefix: $SYBASE_CT_LIBS" >&5
92601: $as_echo "Sybase32 syb-prefix: $SYBASE_CT_LIBS" >&6; }
92602: 
92603: 
92604:   save_old_LDFLAGS=$LDFLAGS
92605:   ac_stuff="
92606:       $SYBASE_CT_LIBS
92607:     "
92608: 
92609:   save_ext_shared=$ext_shared
92610:   ext_shared=yes
92611: 
92612:   for ac_i in $ac_stuff; do
92613:     case $ac_i in
92614:     -pthread)
92615:       if test "$ext_shared" = "yes"; then
92616:         LDFLAGS="$LDFLAGS -pthread"
92617:       else
92618: 
92619: 
92620:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
92621: 
92622:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
92623:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
92624:     eval "EXTRA_LDFLAGS$unique=set"
92625:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
92626:   fi
92627: 
92628:       fi
92629:     ;;
92630:     -l*)
92631:       ac_ii=`echo $ac_i|cut -c 3-`
92632: 
92633: 
92634:   case $ac_ii in
92635:   c|c_r|pthread*) ;;
92636:   *)
92637:     if test "$ext_shared" = "yes"; then
92638:         LDFLAGS="$LDFLAGS -l$ac_ii"
92639:     else
92640: 
92641: 
92642:   case $ac_ii in
92643:   c|c_r|pthread*) ;;
92644:   *)
92645:       LIBS="$LIBS -l$ac_ii"
92646:    ;;
92647:   esac
92648: 
92649: 
92650:     fi
92651:    ;;
92652:   esac
92653: 
92654: 
92655:     ;;
92656:     -L*)
92657:       ac_ii=`echo $ac_i|cut -c 3-`
92658: 
92659:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
92660: 
92661:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
92662:     ai_p=$ac_ii
92663:   else
92664: 
92665:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
92666: 
92667:     ep_realdir=`(cd "$ep_dir" && pwd)`
92668:     ai_p="$ep_realdir"/`basename "$ac_ii"`
92669:   fi
92670: 
92671: 
92672:       if test "$ext_shared" = "yes"; then
92673:         LDFLAGS="-L$ai_p $LDFLAGS"
92674:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
92675:       else
92676: 
92677: 
92678: 
92679:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
92680: 
92681:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
92682:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
92683:     eval "LIBPATH$unique=set"
92684: 
92685:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
92686:     LDFLAGS="$LDFLAGS -L$ai_p"
92687:     PHP_RPATHS="$PHP_RPATHS $ai_p"
92688: 
92689:   fi
92690: 
92691: 
92692:       fi
92693: 
92694:   fi
92695: 
92696:     ;;
92697:     esac
92698:   done
92699: 
92700:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netg_errstr in -lsybtcl" >&5
92701: $as_echo_n "checking for netg_errstr in -lsybtcl... " >&6; }
92702: if ${ac_cv_lib_sybtcl_netg_errstr+:} false; then :
92703:   $as_echo_n "(cached) " >&6
92704: else
92705:   ac_check_lib_save_LIBS=$LIBS
92706: LIBS="-lsybtcl  $LIBS"
92707: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
92708: /* end confdefs.h.  */
92709: 
92710: /* Override any GCC internal prototype to avoid an error.
92711:    Use char because int might match the return type of a GCC
92712:    builtin and then its argument prototype would still apply.  */
92713: #ifdef __cplusplus
92714: extern "C"
92715: #endif
92716: char netg_errstr ();
92717: int
92718: main ()
92719: {
92720: return netg_errstr ();
92721:   ;
92722:   return 0;
92723: }
92724: _ACEOF
92725: if ac_fn_c_try_link "$LINENO"; then :
92726:   ac_cv_lib_sybtcl_netg_errstr=yes
92727: else
92728:   ac_cv_lib_sybtcl_netg_errstr=no
92729: fi
92730: rm -f core conftest.err conftest.$ac_objext \
92731:     conftest$ac_exeext conftest.$ac_ext
92732: LIBS=$ac_check_lib_save_LIBS
92733: fi
92734: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sybtcl_netg_errstr" >&5
92735: $as_echo "$ac_cv_lib_sybtcl_netg_errstr" >&6; }
92736: if test "x$ac_cv_lib_sybtcl_netg_errstr" = xyes; then :
92737: 
92738:     LDFLAGS=$save_old_LDFLAGS
92739:     ext_shared=$save_ext_shared
92740: 
92741: 
92742: 
92743:   case sybtcl in
92744:   c|c_r|pthread*) ;;
92745:   *)
92746:     if test "$ext_shared" = "yes"; then
92747:         SYBASE_CT_SHARED_LIBADD="-lsybtcl $SYBASE_CT_SHARED_LIBADD"
92748:     else
92749: 
92750: 
92751:   case sybtcl in
92752:   c|c_r|pthread*) ;;
92753:   *)
92754:       LIBS="-lsybtcl $LIBS"
92755:    ;;
92756:   esac
92757: 
92758: 
92759:     fi
92760:    ;;
92761:   esac
92762: 
92763: 
92764: 
92765: 
92766: else
92767: 
92768:     LDFLAGS=$save_old_LDFLAGS
92769:     ext_shared=$save_ext_shared
92770:     unset ac_cv_lib_sybtcl_netg_errstr
92771: 
92772: 
92773: 
92774:   case sybtcl in
92775:   c|c_r|pthread*) ;;
92776:   *)
92777:     if test "$ext_shared" = "yes"; then
92778:         SYBASE_CT_SHARED_LIBADD="-lsybtcl $SYBASE_CT_SHARED_LIBADD"
92779:     else
92780: 
92781: 
92782:   case sybtcl in
92783:   c|c_r|pthread*) ;;
92784:   *)
92785:       LIBS="-lsybtcl $LIBS"
92786:    ;;
92787:   esac
92788: 
92789: 
92790:     fi
92791:    ;;
92792:   esac
92793: 
92794: 
92795: 
92796: 
92797: fi
92798: 
92799: 
92800: 
92801:   save_old_LDFLAGS=$LDFLAGS
92802:   ac_stuff="-L$SYBASE_CT_LIBDIR"
92803: 
92804:   save_ext_shared=$ext_shared
92805:   ext_shared=yes
92806: 
92807:   for ac_i in $ac_stuff; do
92808:     case $ac_i in
92809:     -pthread)
92810:       if test "$ext_shared" = "yes"; then
92811:         LDFLAGS="$LDFLAGS -pthread"
92812:       else
92813: 
92814: 
92815:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
92816: 
92817:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
92818:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
92819:     eval "EXTRA_LDFLAGS$unique=set"
92820:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
92821:   fi
92822: 
92823:       fi
92824:     ;;
92825:     -l*)
92826:       ac_ii=`echo $ac_i|cut -c 3-`
92827: 
92828: 
92829:   case $ac_ii in
92830:   c|c_r|pthread*) ;;
92831:   *)
92832:     if test "$ext_shared" = "yes"; then
92833:         LDFLAGS="$LDFLAGS -l$ac_ii"
92834:     else
92835: 
92836: 
92837:   case $ac_ii in
92838:   c|c_r|pthread*) ;;
92839:   *)
92840:       LIBS="$LIBS -l$ac_ii"
92841:    ;;
92842:   esac
92843: 
92844: 
92845:     fi
92846:    ;;
92847:   esac
92848: 
92849: 
92850:     ;;
92851:     -L*)
92852:       ac_ii=`echo $ac_i|cut -c 3-`
92853: 
92854:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
92855: 
92856:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
92857:     ai_p=$ac_ii
92858:   else
92859: 
92860:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
92861: 
92862:     ep_realdir=`(cd "$ep_dir" && pwd)`
92863:     ai_p="$ep_realdir"/`basename "$ac_ii"`
92864:   fi
92865: 
92866: 
92867:       if test "$ext_shared" = "yes"; then
92868:         LDFLAGS="-L$ai_p $LDFLAGS"
92869:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
92870:       else
92871: 
92872: 
92873: 
92874:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
92875: 
92876:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
92877:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
92878:     eval "LIBPATH$unique=set"
92879: 
92880:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
92881:     LDFLAGS="$LDFLAGS -L$ai_p"
92882:     PHP_RPATHS="$PHP_RPATHS $ai_p"
92883: 
92884:   fi
92885: 
92886: 
92887:       fi
92888: 
92889:   fi
92890: 
92891:     ;;
92892:     esac
92893:   done
92894: 
92895:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for insck__getVdate in -linsck" >&5
92896: $as_echo_n "checking for insck__getVdate in -linsck... " >&6; }
92897: if ${ac_cv_lib_insck_insck__getVdate+:} false; then :
92898:   $as_echo_n "(cached) " >&6
92899: else
92900:   ac_check_lib_save_LIBS=$LIBS
92901: LIBS="-linsck  $LIBS"
92902: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
92903: /* end confdefs.h.  */
92904: 
92905: /* Override any GCC internal prototype to avoid an error.
92906:    Use char because int might match the return type of a GCC
92907:    builtin and then its argument prototype would still apply.  */
92908: #ifdef __cplusplus
92909: extern "C"
92910: #endif
92911: char insck__getVdate ();
92912: int
92913: main ()
92914: {
92915: return insck__getVdate ();
92916:   ;
92917:   return 0;
92918: }
92919: _ACEOF
92920: if ac_fn_c_try_link "$LINENO"; then :
92921:   ac_cv_lib_insck_insck__getVdate=yes
92922: else
92923:   ac_cv_lib_insck_insck__getVdate=no
92924: fi
92925: rm -f core conftest.err conftest.$ac_objext \
92926:     conftest$ac_exeext conftest.$ac_ext
92927: LIBS=$ac_check_lib_save_LIBS
92928: fi
92929: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_insck_insck__getVdate" >&5
92930: $as_echo "$ac_cv_lib_insck_insck__getVdate" >&6; }
92931: if test "x$ac_cv_lib_insck_insck__getVdate" = xyes; then :
92932: 
92933:     LDFLAGS=$save_old_LDFLAGS
92934:     ext_shared=$save_ext_shared
92935: 
92936: 
92937:   case insck in
92938:   c|c_r|pthread*) ;;
92939:   *)
92940:     if test "$ext_shared" = "yes"; then
92941:         SYBASE_CT_SHARED_LIBADD="-linsck $SYBASE_CT_SHARED_LIBADD"
92942:     else
92943: 
92944: 
92945:   case insck in
92946:   c|c_r|pthread*) ;;
92947:   *)
92948:       LIBS="-linsck $LIBS"
92949:    ;;
92950:   esac
92951: 
92952: 
92953:     fi
92954:    ;;
92955:   esac
92956: 
92957: 
92958: 
92959: else
92960: 
92961:     LDFLAGS=$save_old_LDFLAGS
92962:     ext_shared=$save_ext_shared
92963:     unset ac_cv_lib_insck_insck__getVdate
92964: 
92965: 
92966: fi
92967: 
92968: 
92969:   save_old_LDFLAGS=$LDFLAGS
92970:   ac_stuff="-L$SYBASE_CT_LIBDIR"
92971: 
92972:   save_ext_shared=$ext_shared
92973:   ext_shared=yes
92974: 
92975:   for ac_i in $ac_stuff; do
92976:     case $ac_i in
92977:     -pthread)
92978:       if test "$ext_shared" = "yes"; then
92979:         LDFLAGS="$LDFLAGS -pthread"
92980:       else
92981: 
92982: 
92983:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
92984: 
92985:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
92986:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
92987:     eval "EXTRA_LDFLAGS$unique=set"
92988:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
92989:   fi
92990: 
92991:       fi
92992:     ;;
92993:     -l*)
92994:       ac_ii=`echo $ac_i|cut -c 3-`
92995: 
92996: 
92997:   case $ac_ii in
92998:   c|c_r|pthread*) ;;
92999:   *)
93000:     if test "$ext_shared" = "yes"; then
93001:         LDFLAGS="$LDFLAGS -l$ac_ii"
93002:     else
93003: 
93004: 
93005:   case $ac_ii in
93006:   c|c_r|pthread*) ;;
93007:   *)
93008:       LIBS="$LIBS -l$ac_ii"
93009:    ;;
93010:   esac
93011: 
93012: 
93013:     fi
93014:    ;;
93015:   esac
93016: 
93017: 
93018:     ;;
93019:     -L*)
93020:       ac_ii=`echo $ac_i|cut -c 3-`
93021: 
93022:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
93023: 
93024:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
93025:     ai_p=$ac_ii
93026:   else
93027: 
93028:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
93029: 
93030:     ep_realdir=`(cd "$ep_dir" && pwd)`
93031:     ai_p="$ep_realdir"/`basename "$ac_ii"`
93032:   fi
93033: 
93034: 
93035:       if test "$ext_shared" = "yes"; then
93036:         LDFLAGS="-L$ai_p $LDFLAGS"
93037:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
93038:       else
93039: 
93040: 
93041: 
93042:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
93043: 
93044:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
93045:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
93046:     eval "LIBPATH$unique=set"
93047: 
93048:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
93049:     LDFLAGS="$LDFLAGS -L$ai_p"
93050:     PHP_RPATHS="$PHP_RPATHS $ai_p"
93051: 
93052:   fi
93053: 
93054: 
93055:       fi
93056: 
93057:   fi
93058: 
93059:     ;;
93060:     esac
93061:   done
93062: 
93063:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bsd_tcp in -linsck" >&5
93064: $as_echo_n "checking for bsd_tcp in -linsck... " >&6; }
93065: if ${ac_cv_lib_insck_bsd_tcp+:} false; then :
93066:   $as_echo_n "(cached) " >&6
93067: else
93068:   ac_check_lib_save_LIBS=$LIBS
93069: LIBS="-linsck  $LIBS"
93070: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
93071: /* end confdefs.h.  */
93072: 
93073: /* Override any GCC internal prototype to avoid an error.
93074:    Use char because int might match the return type of a GCC
93075:    builtin and then its argument prototype would still apply.  */
93076: #ifdef __cplusplus
93077: extern "C"
93078: #endif
93079: char bsd_tcp ();
93080: int
93081: main ()
93082: {
93083: return bsd_tcp ();
93084:   ;
93085:   return 0;
93086: }
93087: _ACEOF
93088: if ac_fn_c_try_link "$LINENO"; then :
93089:   ac_cv_lib_insck_bsd_tcp=yes
93090: else
93091:   ac_cv_lib_insck_bsd_tcp=no
93092: fi
93093: rm -f core conftest.err conftest.$ac_objext \
93094:     conftest$ac_exeext conftest.$ac_ext
93095: LIBS=$ac_check_lib_save_LIBS
93096: fi
93097: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_insck_bsd_tcp" >&5
93098: $as_echo "$ac_cv_lib_insck_bsd_tcp" >&6; }
93099: if test "x$ac_cv_lib_insck_bsd_tcp" = xyes; then :
93100: 
93101:     LDFLAGS=$save_old_LDFLAGS
93102:     ext_shared=$save_ext_shared
93103: 
93104: 
93105:   case insck in
93106:   c|c_r|pthread*) ;;
93107:   *)
93108:     if test "$ext_shared" = "yes"; then
93109:         SYBASE_CT_SHARED_LIBADD="-linsck $SYBASE_CT_SHARED_LIBADD"
93110:     else
93111: 
93112: 
93113:   case insck in
93114:   c|c_r|pthread*) ;;
93115:   *)
93116:       LIBS="-linsck $LIBS"
93117:    ;;
93118:   esac
93119: 
93120: 
93121:     fi
93122:    ;;
93123:   esac
93124: 
93125: 
93126: 
93127: else
93128: 
93129:     LDFLAGS=$save_old_LDFLAGS
93130:     ext_shared=$save_ext_shared
93131:     unset ac_cv_lib_insck_bsd_tcp
93132: 
93133: 
93134: fi
93135: 
93136:   else
93137: 
93138: 
93139:   case cs in
93140:   c|c_r|pthread*) ;;
93141:   *)
93142:     if test "$ext_shared" = "yes"; then
93143:         SYBASE_CT_SHARED_LIBADD="-lcs $SYBASE_CT_SHARED_LIBADD"
93144:     else
93145: 
93146: 
93147:   case cs in
93148:   c|c_r|pthread*) ;;
93149:   *)
93150:       LIBS="-lcs $LIBS"
93151:    ;;
93152:   esac
93153: 
93154: 
93155:     fi
93156:    ;;
93157:   esac
93158: 
93159: 
93160: 
93161: 
93162:   case ct in
93163:   c|c_r|pthread*) ;;
93164:   *)
93165:     if test "$ext_shared" = "yes"; then
93166:         SYBASE_CT_SHARED_LIBADD="-lct $SYBASE_CT_SHARED_LIBADD"
93167:     else
93168: 
93169: 
93170:   case ct in
93171:   c|c_r|pthread*) ;;
93172:   *)
93173:       LIBS="-lct $LIBS"
93174:    ;;
93175:   esac
93176: 
93177: 
93178:     fi
93179:    ;;
93180:   esac
93181: 
93182: 
93183: 
93184: 
93185:   case comn in
93186:   c|c_r|pthread*) ;;
93187:   *)
93188:     if test "$ext_shared" = "yes"; then
93189:         SYBASE_CT_SHARED_LIBADD="-lcomn $SYBASE_CT_SHARED_LIBADD"
93190:     else
93191: 
93192: 
93193:   case comn in
93194:   c|c_r|pthread*) ;;
93195:   *)
93196:       LIBS="-lcomn $LIBS"
93197:    ;;
93198:   esac
93199: 
93200: 
93201:     fi
93202:    ;;
93203:   esac
93204: 
93205: 
93206: 
93207: 
93208:   case intl in
93209:   c|c_r|pthread*) ;;
93210:   *)
93211:     if test "$ext_shared" = "yes"; then
93212:         SYBASE_CT_SHARED_LIBADD="-lintl $SYBASE_CT_SHARED_LIBADD"
93213:     else
93214: 
93215: 
93216:   case intl in
93217:   c|c_r|pthread*) ;;
93218:   *)
93219:       LIBS="-lintl $LIBS"
93220:    ;;
93221:   esac
93222: 
93223: 
93224:     fi
93225:    ;;
93226:   esac
93227: 
93228: 
93229: 
93230:     SYBASE_CT_LIBS="-L$SYBASE_CT_LIBDIR -lcs -lct -lcomn -lintl"
93231:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sybase32 default: $SYBASE_CT_LIBS" >&5
93232: $as_echo "Sybase32 default: $SYBASE_CT_LIBS" >&6; }
93233: 
93234: 
93235:   save_old_LDFLAGS=$LDFLAGS
93236:   ac_stuff="
93237:       $SYBASE_CT_LIBS
93238:     "
93239: 
93240:   save_ext_shared=$ext_shared
93241:   ext_shared=yes
93242: 
93243:   for ac_i in $ac_stuff; do
93244:     case $ac_i in
93245:     -pthread)
93246:       if test "$ext_shared" = "yes"; then
93247:         LDFLAGS="$LDFLAGS -pthread"
93248:       else
93249: 
93250: 
93251:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
93252: 
93253:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
93254:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
93255:     eval "EXTRA_LDFLAGS$unique=set"
93256:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
93257:   fi
93258: 
93259:       fi
93260:     ;;
93261:     -l*)
93262:       ac_ii=`echo $ac_i|cut -c 3-`
93263: 
93264: 
93265:   case $ac_ii in
93266:   c|c_r|pthread*) ;;
93267:   *)
93268:     if test "$ext_shared" = "yes"; then
93269:         LDFLAGS="$LDFLAGS -l$ac_ii"
93270:     else
93271: 
93272: 
93273:   case $ac_ii in
93274:   c|c_r|pthread*) ;;
93275:   *)
93276:       LIBS="$LIBS -l$ac_ii"
93277:    ;;
93278:   esac
93279: 
93280: 
93281:     fi
93282:    ;;
93283:   esac
93284: 
93285: 
93286:     ;;
93287:     -L*)
93288:       ac_ii=`echo $ac_i|cut -c 3-`
93289: 
93290:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
93291: 
93292:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
93293:     ai_p=$ac_ii
93294:   else
93295: 
93296:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
93297: 
93298:     ep_realdir=`(cd "$ep_dir" && pwd)`
93299:     ai_p="$ep_realdir"/`basename "$ac_ii"`
93300:   fi
93301: 
93302: 
93303:       if test "$ext_shared" = "yes"; then
93304:         LDFLAGS="-L$ai_p $LDFLAGS"
93305:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
93306:       else
93307: 
93308: 
93309: 
93310:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
93311: 
93312:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
93313:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
93314:     eval "LIBPATH$unique=set"
93315: 
93316:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
93317:     LDFLAGS="$LDFLAGS -L$ai_p"
93318:     PHP_RPATHS="$PHP_RPATHS $ai_p"
93319: 
93320:   fi
93321: 
93322: 
93323:       fi
93324: 
93325:   fi
93326: 
93327:     ;;
93328:     esac
93329:   done
93330: 
93331:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netg_errstr in -ltcl" >&5
93332: $as_echo_n "checking for netg_errstr in -ltcl... " >&6; }
93333: if ${ac_cv_lib_tcl_netg_errstr+:} false; then :
93334:   $as_echo_n "(cached) " >&6
93335: else
93336:   ac_check_lib_save_LIBS=$LIBS
93337: LIBS="-ltcl  $LIBS"
93338: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
93339: /* end confdefs.h.  */
93340: 
93341: /* Override any GCC internal prototype to avoid an error.
93342:    Use char because int might match the return type of a GCC
93343:    builtin and then its argument prototype would still apply.  */
93344: #ifdef __cplusplus
93345: extern "C"
93346: #endif
93347: char netg_errstr ();
93348: int
93349: main ()
93350: {
93351: return netg_errstr ();
93352:   ;
93353:   return 0;
93354: }
93355: _ACEOF
93356: if ac_fn_c_try_link "$LINENO"; then :
93357:   ac_cv_lib_tcl_netg_errstr=yes
93358: else
93359:   ac_cv_lib_tcl_netg_errstr=no
93360: fi
93361: rm -f core conftest.err conftest.$ac_objext \
93362:     conftest$ac_exeext conftest.$ac_ext
93363: LIBS=$ac_check_lib_save_LIBS
93364: fi
93365: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tcl_netg_errstr" >&5
93366: $as_echo "$ac_cv_lib_tcl_netg_errstr" >&6; }
93367: if test "x$ac_cv_lib_tcl_netg_errstr" = xyes; then :
93368: 
93369:     LDFLAGS=$save_old_LDFLAGS
93370:     ext_shared=$save_ext_shared
93371: 
93372: 
93373: 
93374:   case tcl in
93375:   c|c_r|pthread*) ;;
93376:   *)
93377:     if test "$ext_shared" = "yes"; then
93378:         SYBASE_CT_SHARED_LIBADD="-ltcl $SYBASE_CT_SHARED_LIBADD"
93379:     else
93380: 
93381: 
93382:   case tcl in
93383:   c|c_r|pthread*) ;;
93384:   *)
93385:       LIBS="-ltcl $LIBS"
93386:    ;;
93387:   esac
93388: 
93389: 
93390:     fi
93391:    ;;
93392:   esac
93393: 
93394: 
93395: 
93396: 
93397: else
93398: 
93399:     LDFLAGS=$save_old_LDFLAGS
93400:     ext_shared=$save_ext_shared
93401:     unset ac_cv_lib_tcl_netg_errstr
93402: 
93403: 
93404: 
93405:   case sybtcl in
93406:   c|c_r|pthread*) ;;
93407:   *)
93408:     if test "$ext_shared" = "yes"; then
93409:         SYBASE_CT_SHARED_LIBADD="-lsybtcl $SYBASE_CT_SHARED_LIBADD"
93410:     else
93411: 
93412: 
93413:   case sybtcl in
93414:   c|c_r|pthread*) ;;
93415:   *)
93416:       LIBS="-lsybtcl $LIBS"
93417:    ;;
93418:   esac
93419: 
93420: 
93421:     fi
93422:    ;;
93423:   esac
93424: 
93425: 
93426: 
93427: 
93428: fi
93429: 
93430: 
93431: 
93432:   save_old_LDFLAGS=$LDFLAGS
93433:   ac_stuff="-L$SYBASE_CT_LIBDIR"
93434: 
93435:   save_ext_shared=$ext_shared
93436:   ext_shared=yes
93437: 
93438:   for ac_i in $ac_stuff; do
93439:     case $ac_i in
93440:     -pthread)
93441:       if test "$ext_shared" = "yes"; then
93442:         LDFLAGS="$LDFLAGS -pthread"
93443:       else
93444: 
93445: 
93446:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
93447: 
93448:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
93449:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
93450:     eval "EXTRA_LDFLAGS$unique=set"
93451:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
93452:   fi
93453: 
93454:       fi
93455:     ;;
93456:     -l*)
93457:       ac_ii=`echo $ac_i|cut -c 3-`
93458: 
93459: 
93460:   case $ac_ii in
93461:   c|c_r|pthread*) ;;
93462:   *)
93463:     if test "$ext_shared" = "yes"; then
93464:         LDFLAGS="$LDFLAGS -l$ac_ii"
93465:     else
93466: 
93467: 
93468:   case $ac_ii in
93469:   c|c_r|pthread*) ;;
93470:   *)
93471:       LIBS="$LIBS -l$ac_ii"
93472:    ;;
93473:   esac
93474: 
93475: 
93476:     fi
93477:    ;;
93478:   esac
93479: 
93480: 
93481:     ;;
93482:     -L*)
93483:       ac_ii=`echo $ac_i|cut -c 3-`
93484: 
93485:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
93486: 
93487:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
93488:     ai_p=$ac_ii
93489:   else
93490: 
93491:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
93492: 
93493:     ep_realdir=`(cd "$ep_dir" && pwd)`
93494:     ai_p="$ep_realdir"/`basename "$ac_ii"`
93495:   fi
93496: 
93497: 
93498:       if test "$ext_shared" = "yes"; then
93499:         LDFLAGS="-L$ai_p $LDFLAGS"
93500:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
93501:       else
93502: 
93503: 
93504: 
93505:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
93506: 
93507:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
93508:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
93509:     eval "LIBPATH$unique=set"
93510: 
93511:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
93512:     LDFLAGS="$LDFLAGS -L$ai_p"
93513:     PHP_RPATHS="$PHP_RPATHS $ai_p"
93514: 
93515:   fi
93516: 
93517: 
93518:       fi
93519: 
93520:   fi
93521: 
93522:     ;;
93523:     esac
93524:   done
93525: 
93526:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for insck__getVdate in -linsck" >&5
93527: $as_echo_n "checking for insck__getVdate in -linsck... " >&6; }
93528: if ${ac_cv_lib_insck_insck__getVdate+:} false; then :
93529:   $as_echo_n "(cached) " >&6
93530: else
93531:   ac_check_lib_save_LIBS=$LIBS
93532: LIBS="-linsck  $LIBS"
93533: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
93534: /* end confdefs.h.  */
93535: 
93536: /* Override any GCC internal prototype to avoid an error.
93537:    Use char because int might match the return type of a GCC
93538:    builtin and then its argument prototype would still apply.  */
93539: #ifdef __cplusplus
93540: extern "C"
93541: #endif
93542: char insck__getVdate ();
93543: int
93544: main ()
93545: {
93546: return insck__getVdate ();
93547:   ;
93548:   return 0;
93549: }
93550: _ACEOF
93551: if ac_fn_c_try_link "$LINENO"; then :
93552:   ac_cv_lib_insck_insck__getVdate=yes
93553: else
93554:   ac_cv_lib_insck_insck__getVdate=no
93555: fi
93556: rm -f core conftest.err conftest.$ac_objext \
93557:     conftest$ac_exeext conftest.$ac_ext
93558: LIBS=$ac_check_lib_save_LIBS
93559: fi
93560: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_insck_insck__getVdate" >&5
93561: $as_echo "$ac_cv_lib_insck_insck__getVdate" >&6; }
93562: if test "x$ac_cv_lib_insck_insck__getVdate" = xyes; then :
93563: 
93564:     LDFLAGS=$save_old_LDFLAGS
93565:     ext_shared=$save_ext_shared
93566: 
93567: 
93568:   case insck in
93569:   c|c_r|pthread*) ;;
93570:   *)
93571:     if test "$ext_shared" = "yes"; then
93572:         SYBASE_CT_SHARED_LIBADD="-linsck $SYBASE_CT_SHARED_LIBADD"
93573:     else
93574: 
93575: 
93576:   case insck in
93577:   c|c_r|pthread*) ;;
93578:   *)
93579:       LIBS="-linsck $LIBS"
93580:    ;;
93581:   esac
93582: 
93583: 
93584:     fi
93585:    ;;
93586:   esac
93587: 
93588: 
93589: 
93590: else
93591: 
93592:     LDFLAGS=$save_old_LDFLAGS
93593:     ext_shared=$save_ext_shared
93594:     unset ac_cv_lib_insck_insck__getVdate
93595: 
93596: 
93597: fi
93598: 
93599: 
93600:   save_old_LDFLAGS=$LDFLAGS
93601:   ac_stuff="-L$SYBASE_CT_LIBDIR"
93602: 
93603:   save_ext_shared=$ext_shared
93604:   ext_shared=yes
93605: 
93606:   for ac_i in $ac_stuff; do
93607:     case $ac_i in
93608:     -pthread)
93609:       if test "$ext_shared" = "yes"; then
93610:         LDFLAGS="$LDFLAGS -pthread"
93611:       else
93612: 
93613: 
93614:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
93615: 
93616:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
93617:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
93618:     eval "EXTRA_LDFLAGS$unique=set"
93619:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
93620:   fi
93621: 
93622:       fi
93623:     ;;
93624:     -l*)
93625:       ac_ii=`echo $ac_i|cut -c 3-`
93626: 
93627: 
93628:   case $ac_ii in
93629:   c|c_r|pthread*) ;;
93630:   *)
93631:     if test "$ext_shared" = "yes"; then
93632:         LDFLAGS="$LDFLAGS -l$ac_ii"
93633:     else
93634: 
93635: 
93636:   case $ac_ii in
93637:   c|c_r|pthread*) ;;
93638:   *)
93639:       LIBS="$LIBS -l$ac_ii"
93640:    ;;
93641:   esac
93642: 
93643: 
93644:     fi
93645:    ;;
93646:   esac
93647: 
93648: 
93649:     ;;
93650:     -L*)
93651:       ac_ii=`echo $ac_i|cut -c 3-`
93652: 
93653:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
93654: 
93655:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
93656:     ai_p=$ac_ii
93657:   else
93658: 
93659:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
93660: 
93661:     ep_realdir=`(cd "$ep_dir" && pwd)`
93662:     ai_p="$ep_realdir"/`basename "$ac_ii"`
93663:   fi
93664: 
93665: 
93666:       if test "$ext_shared" = "yes"; then
93667:         LDFLAGS="-L$ai_p $LDFLAGS"
93668:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
93669:       else
93670: 
93671: 
93672: 
93673:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
93674: 
93675:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
93676:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
93677:     eval "LIBPATH$unique=set"
93678: 
93679:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
93680:     LDFLAGS="$LDFLAGS -L$ai_p"
93681:     PHP_RPATHS="$PHP_RPATHS $ai_p"
93682: 
93683:   fi
93684: 
93685: 
93686:       fi
93687: 
93688:   fi
93689: 
93690:     ;;
93691:     esac
93692:   done
93693: 
93694:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bsd_tcp in -linsck" >&5
93695: $as_echo_n "checking for bsd_tcp in -linsck... " >&6; }
93696: if ${ac_cv_lib_insck_bsd_tcp+:} false; then :
93697:   $as_echo_n "(cached) " >&6
93698: else
93699:   ac_check_lib_save_LIBS=$LIBS
93700: LIBS="-linsck  $LIBS"
93701: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
93702: /* end confdefs.h.  */
93703: 
93704: /* Override any GCC internal prototype to avoid an error.
93705:    Use char because int might match the return type of a GCC
93706:    builtin and then its argument prototype would still apply.  */
93707: #ifdef __cplusplus
93708: extern "C"
93709: #endif
93710: char bsd_tcp ();
93711: int
93712: main ()
93713: {
93714: return bsd_tcp ();
93715:   ;
93716:   return 0;
93717: }
93718: _ACEOF
93719: if ac_fn_c_try_link "$LINENO"; then :
93720:   ac_cv_lib_insck_bsd_tcp=yes
93721: else
93722:   ac_cv_lib_insck_bsd_tcp=no
93723: fi
93724: rm -f core conftest.err conftest.$ac_objext \
93725:     conftest$ac_exeext conftest.$ac_ext
93726: LIBS=$ac_check_lib_save_LIBS
93727: fi
93728: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_insck_bsd_tcp" >&5
93729: $as_echo "$ac_cv_lib_insck_bsd_tcp" >&6; }
93730: if test "x$ac_cv_lib_insck_bsd_tcp" = xyes; then :
93731: 
93732:     LDFLAGS=$save_old_LDFLAGS
93733:     ext_shared=$save_ext_shared
93734: 
93735: 
93736:   case insck in
93737:   c|c_r|pthread*) ;;
93738:   *)
93739:     if test "$ext_shared" = "yes"; then
93740:         SYBASE_CT_SHARED_LIBADD="-linsck $SYBASE_CT_SHARED_LIBADD"
93741:     else
93742: 
93743: 
93744:   case insck in
93745:   c|c_r|pthread*) ;;
93746:   *)
93747:       LIBS="-linsck $LIBS"
93748:    ;;
93749:   esac
93750: 
93751: 
93752:     fi
93753:    ;;
93754:   esac
93755: 
93756: 
93757: 
93758: else
93759: 
93760:     LDFLAGS=$save_old_LDFLAGS
93761:     ext_shared=$save_ext_shared
93762:     unset ac_cv_lib_insck_bsd_tcp
93763: 
93764: 
93765: fi
93766: 
93767:   fi
93768: fi
93769: 
93770: 
93771: 
93772: php_enable_sysvmsg=no
93773: 
93774: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable System V IPC support" >&5
93775: $as_echo_n "checking whether to enable System V IPC support... " >&6; }
93776: # Check whether --enable-sysvmsg was given.
93777: if test "${enable_sysvmsg+set}" = set; then :
93778:   enableval=$enable_sysvmsg; PHP_SYSVMSG=$enableval
93779: else
93780: 
93781:   PHP_SYSVMSG=no
93782:   test "$PHP_ENABLE_ALL" && PHP_SYSVMSG=$PHP_ENABLE_ALL
93783: 
93784: fi
93785: 
93786: 
93787: 
93788: ext_output="yes, shared"
93789: ext_shared=yes
93790: case $PHP_SYSVMSG in
93791: shared,*)
93792:   PHP_SYSVMSG=`echo "$PHP_SYSVMSG"|$SED 's/^shared,//'`
93793:   ;;
93794: shared)
93795:   PHP_SYSVMSG=yes
93796:   ;;
93797: no)
93798:   ext_output=no
93799:   ext_shared=no
93800:   ;;
93801: *)
93802:   ext_output=yes
93803:   ext_shared=no
93804:   ;;
93805: esac
93806: 
93807: 
93808: 
93809: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
93810: $as_echo "$ext_output" >&6; }
93811: 
93812: 
93813: 
93814: 
93815: if test "$PHP_SYSVMSG" != "no"; then
93816:   ac_fn_c_check_header_mongrel "$LINENO" "sys/msg.h" "ac_cv_header_sys_msg_h" "$ac_includes_default"
93817: if test "x$ac_cv_header_sys_msg_h" = xyes; then :
93818: 
93819: else
93820:   as_fn_error $? "Cannot enable System V IPC support, sys/msg.h is missing" "$LINENO" 5
93821: 
93822: fi
93823: 
93824: 
93825: 
93826: 
93827: $as_echo "#define HAVE_SYSVMSG 1" >>confdefs.h
93828: 
93829: 
93830:   ext_builddir=ext/sysvmsg
93831:   ext_srcdir=$abs_srcdir/ext/sysvmsg
93832: 
93833:   ac_extra=
93834: 
93835:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
93836:     PHP_SYSVMSG_SHARED=no
93837: 
93838: 
93839:   case ext/sysvmsg in
93840:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
93841:   /*) ac_srcdir=`echo "ext/sysvmsg"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
93842:   *) ac_srcdir="$abs_srcdir/ext/sysvmsg/"; ac_bdir="ext/sysvmsg/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
93843:   esac
93844: 
93845: 
93846: 
93847:   b_c_pre=$php_c_pre
93848:   b_cxx_pre=$php_cxx_pre
93849:   b_c_meta=$php_c_meta
93850:   b_cxx_meta=$php_cxx_meta
93851:   b_c_post=$php_c_post
93852:   b_cxx_post=$php_cxx_post
93853:   b_lo=$php_lo
93854: 
93855: 
93856:   old_IFS=$IFS
93857:   for ac_src in sysvmsg.c; do
93858: 
93859:       IFS=.
93860:       set $ac_src
93861:       ac_obj=$1
93862:       IFS=$old_IFS
93863: 
93864:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
93865: 
93866:       case $ac_src in
93867:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
93868:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
93869:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
93870:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
93871:       esac
93872: 
93873:     cat >>Makefile.objects<<EOF
93874: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
93875: 	$ac_comp
93876: EOF
93877:   done
93878: 
93879: 
93880:     EXT_STATIC="$EXT_STATIC sysvmsg"
93881:     if test "$ext_shared" != "nocli"; then
93882:       EXT_CLI_STATIC="$EXT_CLI_STATIC sysvmsg"
93883:     fi
93884:   else
93885:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
93886:       PHP_SYSVMSG_SHARED=yes
93887: 
93888:   case ext/sysvmsg in
93889:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
93890:   /*) ac_srcdir=`echo "ext/sysvmsg"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
93891:   *) ac_srcdir="$abs_srcdir/ext/sysvmsg/"; ac_bdir="ext/sysvmsg/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
93892:   esac
93893: 
93894: 
93895: 
93896:   b_c_pre=$shared_c_pre
93897:   b_cxx_pre=$shared_cxx_pre
93898:   b_c_meta=$shared_c_meta
93899:   b_cxx_meta=$shared_cxx_meta
93900:   b_c_post=$shared_c_post
93901:   b_cxx_post=$shared_cxx_post
93902:   b_lo=$shared_lo
93903: 
93904: 
93905:   old_IFS=$IFS
93906:   for ac_src in sysvmsg.c; do
93907: 
93908:       IFS=.
93909:       set $ac_src
93910:       ac_obj=$1
93911:       IFS=$old_IFS
93912: 
93913:       shared_objects_sysvmsg="$shared_objects_sysvmsg $ac_bdir$ac_obj.lo"
93914: 
93915:       case $ac_src in
93916:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
93917:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
93918:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
93919:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
93920:       esac
93921: 
93922:     cat >>Makefile.objects<<EOF
93923: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
93924: 	$ac_comp
93925: EOF
93926:   done
93927: 
93928:       case $host_alias in
93929:         *netware*)
93930: 
93931:   install_modules="install-modules"
93932: 
93933:   case $host_alias in
93934:     *aix*)
93935:       suffix=so
93936:       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'
93937:       ;;
93938:     *netware*)
93939:       suffix=nlm
93940:       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)'
93941:       ;;
93942:     *)
93943:       suffix=la
93944:       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)'
93945:       ;;
93946:   esac
93947: 
93948:   if test "x" = "xyes"; then
93949:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpsysvmsg.$suffix"
93950:   else
93951:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpsysvmsg.$suffix"
93952:   fi
93953: 
93954:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_sysvmsg"
93955: 
93956:   cat >>Makefile.objects<<EOF
93957: \$(phplibdir)/phpsysvmsg.$suffix: $ext_builddir/phpsysvmsg.$suffix
93958: 	\$(LIBTOOL) --mode=install cp $ext_builddir/phpsysvmsg.$suffix \$(phplibdir)
93959: 
93960: $ext_builddir/phpsysvmsg.$suffix: \$(shared_objects_sysvmsg) \$(PHPSYSVMSG_SHARED_DEPENDENCIES)
93961: 	$link_cmd
93962: 
93963: EOF
93964: 
93965:           ;;
93966:         *)
93967: 
93968:   install_modules="install-modules"
93969: 
93970:   case $host_alias in
93971:     *aix*)
93972:       suffix=so
93973:       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'
93974:       ;;
93975:     *netware*)
93976:       suffix=nlm
93977:       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)'
93978:       ;;
93979:     *)
93980:       suffix=la
93981:       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)'
93982:       ;;
93983:   esac
93984: 
93985:   if test "x" = "xyes"; then
93986:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/sysvmsg.$suffix"
93987:   else
93988:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/sysvmsg.$suffix"
93989:   fi
93990: 
93991:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_sysvmsg"
93992: 
93993:   cat >>Makefile.objects<<EOF
93994: \$(phplibdir)/sysvmsg.$suffix: $ext_builddir/sysvmsg.$suffix
93995: 	\$(LIBTOOL) --mode=install cp $ext_builddir/sysvmsg.$suffix \$(phplibdir)
93996: 
93997: $ext_builddir/sysvmsg.$suffix: \$(shared_objects_sysvmsg) \$(SYSVMSG_SHARED_DEPENDENCIES)
93998: 	$link_cmd
93999: 
94000: EOF
94001: 
94002:           ;;
94003:       esac
94004: 
94005: cat >>confdefs.h <<_ACEOF
94006: #define COMPILE_DL_SYSVMSG 1
94007: _ACEOF
94008: 
94009:     fi
94010:   fi
94011: 
94012:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
94013:     PHP_SYSVMSG_SHARED=no
94014:     case "$PHP_SAPI" in
94015:       cgi|embed)
94016: 
94017: 
94018:   case ext/sysvmsg in
94019:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
94020:   /*) ac_srcdir=`echo "ext/sysvmsg"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
94021:   *) ac_srcdir="$abs_srcdir/ext/sysvmsg/"; ac_bdir="ext/sysvmsg/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
94022:   esac
94023: 
94024: 
94025: 
94026:   b_c_pre=$php_c_pre
94027:   b_cxx_pre=$php_cxx_pre
94028:   b_c_meta=$php_c_meta
94029:   b_cxx_meta=$php_cxx_meta
94030:   b_c_post=$php_c_post
94031:   b_cxx_post=$php_cxx_post
94032:   b_lo=$php_lo
94033: 
94034: 
94035:   old_IFS=$IFS
94036:   for ac_src in sysvmsg.c; do
94037: 
94038:       IFS=.
94039:       set $ac_src
94040:       ac_obj=$1
94041:       IFS=$old_IFS
94042: 
94043:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
94044: 
94045:       case $ac_src in
94046:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
94047:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
94048:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
94049:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
94050:       esac
94051: 
94052:     cat >>Makefile.objects<<EOF
94053: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
94054: 	$ac_comp
94055: EOF
94056:   done
94057: 
94058: 
94059:         EXT_STATIC="$EXT_STATIC sysvmsg"
94060:         ;;
94061:       *)
94062: 
94063: 
94064:   case ext/sysvmsg in
94065:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
94066:   /*) ac_srcdir=`echo "ext/sysvmsg"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
94067:   *) ac_srcdir="$abs_srcdir/ext/sysvmsg/"; ac_bdir="ext/sysvmsg/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
94068:   esac
94069: 
94070: 
94071: 
94072:   b_c_pre=$php_c_pre
94073:   b_cxx_pre=$php_cxx_pre
94074:   b_c_meta=$php_c_meta
94075:   b_cxx_meta=$php_cxx_meta
94076:   b_c_post=$php_c_post
94077:   b_cxx_post=$php_cxx_post
94078:   b_lo=$php_lo
94079: 
94080: 
94081:   old_IFS=$IFS
94082:   for ac_src in sysvmsg.c; do
94083: 
94084:       IFS=.
94085:       set $ac_src
94086:       ac_obj=$1
94087:       IFS=$old_IFS
94088: 
94089:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
94090: 
94091:       case $ac_src in
94092:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
94093:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
94094:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
94095:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
94096:       esac
94097: 
94098:     cat >>Makefile.objects<<EOF
94099: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
94100: 	$ac_comp
94101: EOF
94102:   done
94103: 
94104: 
94105:         ;;
94106:     esac
94107:     EXT_CLI_STATIC="$EXT_CLI_STATIC sysvmsg"
94108:   fi
94109: 
94110: 
94111:     BUILD_DIR="$BUILD_DIR $ext_builddir"
94112: 
94113: 
94114: 
94115:   if test "$ext_builddir" = "."; then
94116:     PHP_PECL_EXTENSION=sysvmsg
94117: 
94118:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
94119: 
94120:   fi
94121: 
94122: fi
94123: 
94124: 
94125: 
94126: php_enable_sysvsem=no
94127: 
94128: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable System V semaphore support" >&5
94129: $as_echo_n "checking whether to enable System V semaphore support... " >&6; }
94130: # Check whether --enable-sysvsem was given.
94131: if test "${enable_sysvsem+set}" = set; then :
94132:   enableval=$enable_sysvsem; PHP_SYSVSEM=$enableval
94133: else
94134: 
94135:   PHP_SYSVSEM=no
94136:   test "$PHP_ENABLE_ALL" && PHP_SYSVSEM=$PHP_ENABLE_ALL
94137: 
94138: fi
94139: 
94140: 
94141: 
94142: ext_output="yes, shared"
94143: ext_shared=yes
94144: case $PHP_SYSVSEM in
94145: shared,*)
94146:   PHP_SYSVSEM=`echo "$PHP_SYSVSEM"|$SED 's/^shared,//'`
94147:   ;;
94148: shared)
94149:   PHP_SYSVSEM=yes
94150:   ;;
94151: no)
94152:   ext_output=no
94153:   ext_shared=no
94154:   ;;
94155: *)
94156:   ext_output=yes
94157:   ext_shared=no
94158:   ;;
94159: esac
94160: 
94161: 
94162: 
94163: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
94164: $as_echo "$ext_output" >&6; }
94165: 
94166: 
94167: 
94168: 
94169: if test "$PHP_SYSVSEM" != "no"; then
94170: 
94171:   ext_builddir=ext/sysvsem
94172:   ext_srcdir=$abs_srcdir/ext/sysvsem
94173: 
94174:   ac_extra=
94175: 
94176:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
94177:     PHP_SYSVSEM_SHARED=no
94178: 
94179: 
94180:   case ext/sysvsem in
94181:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
94182:   /*) ac_srcdir=`echo "ext/sysvsem"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
94183:   *) ac_srcdir="$abs_srcdir/ext/sysvsem/"; ac_bdir="ext/sysvsem/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
94184:   esac
94185: 
94186: 
94187: 
94188:   b_c_pre=$php_c_pre
94189:   b_cxx_pre=$php_cxx_pre
94190:   b_c_meta=$php_c_meta
94191:   b_cxx_meta=$php_cxx_meta
94192:   b_c_post=$php_c_post
94193:   b_cxx_post=$php_cxx_post
94194:   b_lo=$php_lo
94195: 
94196: 
94197:   old_IFS=$IFS
94198:   for ac_src in sysvsem.c; do
94199: 
94200:       IFS=.
94201:       set $ac_src
94202:       ac_obj=$1
94203:       IFS=$old_IFS
94204: 
94205:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
94206: 
94207:       case $ac_src in
94208:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
94209:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
94210:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
94211:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
94212:       esac
94213: 
94214:     cat >>Makefile.objects<<EOF
94215: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
94216: 	$ac_comp
94217: EOF
94218:   done
94219: 
94220: 
94221:     EXT_STATIC="$EXT_STATIC sysvsem"
94222:     if test "$ext_shared" != "nocli"; then
94223:       EXT_CLI_STATIC="$EXT_CLI_STATIC sysvsem"
94224:     fi
94225:   else
94226:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
94227:       PHP_SYSVSEM_SHARED=yes
94228: 
94229:   case ext/sysvsem in
94230:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
94231:   /*) ac_srcdir=`echo "ext/sysvsem"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
94232:   *) ac_srcdir="$abs_srcdir/ext/sysvsem/"; ac_bdir="ext/sysvsem/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
94233:   esac
94234: 
94235: 
94236: 
94237:   b_c_pre=$shared_c_pre
94238:   b_cxx_pre=$shared_cxx_pre
94239:   b_c_meta=$shared_c_meta
94240:   b_cxx_meta=$shared_cxx_meta
94241:   b_c_post=$shared_c_post
94242:   b_cxx_post=$shared_cxx_post
94243:   b_lo=$shared_lo
94244: 
94245: 
94246:   old_IFS=$IFS
94247:   for ac_src in sysvsem.c; do
94248: 
94249:       IFS=.
94250:       set $ac_src
94251:       ac_obj=$1
94252:       IFS=$old_IFS
94253: 
94254:       shared_objects_sysvsem="$shared_objects_sysvsem $ac_bdir$ac_obj.lo"
94255: 
94256:       case $ac_src in
94257:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
94258:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
94259:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
94260:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
94261:       esac
94262: 
94263:     cat >>Makefile.objects<<EOF
94264: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
94265: 	$ac_comp
94266: EOF
94267:   done
94268: 
94269:       case $host_alias in
94270:         *netware*)
94271: 
94272:   install_modules="install-modules"
94273: 
94274:   case $host_alias in
94275:     *aix*)
94276:       suffix=so
94277:       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'
94278:       ;;
94279:     *netware*)
94280:       suffix=nlm
94281:       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)'
94282:       ;;
94283:     *)
94284:       suffix=la
94285:       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)'
94286:       ;;
94287:   esac
94288: 
94289:   if test "x" = "xyes"; then
94290:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpsysvsem.$suffix"
94291:   else
94292:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpsysvsem.$suffix"
94293:   fi
94294: 
94295:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_sysvsem"
94296: 
94297:   cat >>Makefile.objects<<EOF
94298: \$(phplibdir)/phpsysvsem.$suffix: $ext_builddir/phpsysvsem.$suffix
94299: 	\$(LIBTOOL) --mode=install cp $ext_builddir/phpsysvsem.$suffix \$(phplibdir)
94300: 
94301: $ext_builddir/phpsysvsem.$suffix: \$(shared_objects_sysvsem) \$(PHPSYSVSEM_SHARED_DEPENDENCIES)
94302: 	$link_cmd
94303: 
94304: EOF
94305: 
94306:           ;;
94307:         *)
94308: 
94309:   install_modules="install-modules"
94310: 
94311:   case $host_alias in
94312:     *aix*)
94313:       suffix=so
94314:       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'
94315:       ;;
94316:     *netware*)
94317:       suffix=nlm
94318:       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)'
94319:       ;;
94320:     *)
94321:       suffix=la
94322:       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)'
94323:       ;;
94324:   esac
94325: 
94326:   if test "x" = "xyes"; then
94327:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/sysvsem.$suffix"
94328:   else
94329:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/sysvsem.$suffix"
94330:   fi
94331: 
94332:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_sysvsem"
94333: 
94334:   cat >>Makefile.objects<<EOF
94335: \$(phplibdir)/sysvsem.$suffix: $ext_builddir/sysvsem.$suffix
94336: 	\$(LIBTOOL) --mode=install cp $ext_builddir/sysvsem.$suffix \$(phplibdir)
94337: 
94338: $ext_builddir/sysvsem.$suffix: \$(shared_objects_sysvsem) \$(SYSVSEM_SHARED_DEPENDENCIES)
94339: 	$link_cmd
94340: 
94341: EOF
94342: 
94343:           ;;
94344:       esac
94345: 
94346: cat >>confdefs.h <<_ACEOF
94347: #define COMPILE_DL_SYSVSEM 1
94348: _ACEOF
94349: 
94350:     fi
94351:   fi
94352: 
94353:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
94354:     PHP_SYSVSEM_SHARED=no
94355:     case "$PHP_SAPI" in
94356:       cgi|embed)
94357: 
94358: 
94359:   case ext/sysvsem in
94360:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
94361:   /*) ac_srcdir=`echo "ext/sysvsem"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
94362:   *) ac_srcdir="$abs_srcdir/ext/sysvsem/"; ac_bdir="ext/sysvsem/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
94363:   esac
94364: 
94365: 
94366: 
94367:   b_c_pre=$php_c_pre
94368:   b_cxx_pre=$php_cxx_pre
94369:   b_c_meta=$php_c_meta
94370:   b_cxx_meta=$php_cxx_meta
94371:   b_c_post=$php_c_post
94372:   b_cxx_post=$php_cxx_post
94373:   b_lo=$php_lo
94374: 
94375: 
94376:   old_IFS=$IFS
94377:   for ac_src in sysvsem.c; do
94378: 
94379:       IFS=.
94380:       set $ac_src
94381:       ac_obj=$1
94382:       IFS=$old_IFS
94383: 
94384:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
94385: 
94386:       case $ac_src in
94387:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
94388:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
94389:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
94390:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
94391:       esac
94392: 
94393:     cat >>Makefile.objects<<EOF
94394: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
94395: 	$ac_comp
94396: EOF
94397:   done
94398: 
94399: 
94400:         EXT_STATIC="$EXT_STATIC sysvsem"
94401:         ;;
94402:       *)
94403: 
94404: 
94405:   case ext/sysvsem in
94406:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
94407:   /*) ac_srcdir=`echo "ext/sysvsem"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
94408:   *) ac_srcdir="$abs_srcdir/ext/sysvsem/"; ac_bdir="ext/sysvsem/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
94409:   esac
94410: 
94411: 
94412: 
94413:   b_c_pre=$php_c_pre
94414:   b_cxx_pre=$php_cxx_pre
94415:   b_c_meta=$php_c_meta
94416:   b_cxx_meta=$php_cxx_meta
94417:   b_c_post=$php_c_post
94418:   b_cxx_post=$php_cxx_post
94419:   b_lo=$php_lo
94420: 
94421: 
94422:   old_IFS=$IFS
94423:   for ac_src in sysvsem.c; do
94424: 
94425:       IFS=.
94426:       set $ac_src
94427:       ac_obj=$1
94428:       IFS=$old_IFS
94429: 
94430:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
94431: 
94432:       case $ac_src in
94433:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
94434:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
94435:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
94436:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
94437:       esac
94438: 
94439:     cat >>Makefile.objects<<EOF
94440: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
94441: 	$ac_comp
94442: EOF
94443:   done
94444: 
94445: 
94446:         ;;
94447:     esac
94448:     EXT_CLI_STATIC="$EXT_CLI_STATIC sysvsem"
94449:   fi
94450: 
94451: 
94452:     BUILD_DIR="$BUILD_DIR $ext_builddir"
94453: 
94454: 
94455: 
94456:   if test "$ext_builddir" = "."; then
94457:     PHP_PECL_EXTENSION=sysvsem
94458: 
94459:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
94460: 
94461:   fi
94462: 
94463: 
94464: $as_echo "#define HAVE_SYSVSEM 1" >>confdefs.h
94465: 
94466:  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for union semun" >&5
94467: $as_echo_n "checking for union semun... " >&6; }
94468: if ${php_cv_semun+:} false; then :
94469:   $as_echo_n "(cached) " >&6
94470: else
94471:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
94472: /* end confdefs.h.  */
94473: 
94474: #include <sys/types.h>
94475: #include <sys/ipc.h>
94476: #include <sys/sem.h>
94477: 
94478: int
94479: main ()
94480: {
94481: union semun x;
94482:   ;
94483:   return 0;
94484: }
94485: _ACEOF
94486: if ac_fn_c_try_compile "$LINENO"; then :
94487: 
94488:      php_cv_semun=yes
94489: 
94490: else
94491: 
94492:      php_cv_semun=no
94493: 
94494: fi
94495: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
94496: 
94497: fi
94498: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_semun" >&5
94499: $as_echo "$php_cv_semun" >&6; }
94500:  if test "$php_cv_semun" = "yes"; then
94501: 
94502: $as_echo "#define HAVE_SEMUN 1" >>confdefs.h
94503: 
94504:  else
94505: 
94506: $as_echo "#define HAVE_SEMUN 0" >>confdefs.h
94507: 
94508:  fi
94509: fi
94510: 
94511: 
94512: 
94513: php_enable_sysvshm=no
94514: 
94515: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable System V shared memory support" >&5
94516: $as_echo_n "checking whether to enable System V shared memory support... " >&6; }
94517: # Check whether --enable-sysvshm was given.
94518: if test "${enable_sysvshm+set}" = set; then :
94519:   enableval=$enable_sysvshm; PHP_SYSVSHM=$enableval
94520: else
94521: 
94522:   PHP_SYSVSHM=no
94523:   test "$PHP_ENABLE_ALL" && PHP_SYSVSHM=$PHP_ENABLE_ALL
94524: 
94525: fi
94526: 
94527: 
94528: 
94529: ext_output="yes, shared"
94530: ext_shared=yes
94531: case $PHP_SYSVSHM in
94532: shared,*)
94533:   PHP_SYSVSHM=`echo "$PHP_SYSVSHM"|$SED 's/^shared,//'`
94534:   ;;
94535: shared)
94536:   PHP_SYSVSHM=yes
94537:   ;;
94538: no)
94539:   ext_output=no
94540:   ext_shared=no
94541:   ;;
94542: *)
94543:   ext_output=yes
94544:   ext_shared=no
94545:   ;;
94546: esac
94547: 
94548: 
94549: 
94550: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
94551: $as_echo "$ext_output" >&6; }
94552: 
94553: 
94554: 
94555: 
94556: if test "$PHP_SYSVSHM" != "no"; then
94557: 
94558: $as_echo "#define HAVE_SYSVSHM 1" >>confdefs.h
94559: 
94560: 
94561:   ext_builddir=ext/sysvshm
94562:   ext_srcdir=$abs_srcdir/ext/sysvshm
94563: 
94564:   ac_extra=
94565: 
94566:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
94567:     PHP_SYSVSHM_SHARED=no
94568: 
94569: 
94570:   case ext/sysvshm in
94571:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
94572:   /*) ac_srcdir=`echo "ext/sysvshm"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
94573:   *) ac_srcdir="$abs_srcdir/ext/sysvshm/"; ac_bdir="ext/sysvshm/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
94574:   esac
94575: 
94576: 
94577: 
94578:   b_c_pre=$php_c_pre
94579:   b_cxx_pre=$php_cxx_pre
94580:   b_c_meta=$php_c_meta
94581:   b_cxx_meta=$php_cxx_meta
94582:   b_c_post=$php_c_post
94583:   b_cxx_post=$php_cxx_post
94584:   b_lo=$php_lo
94585: 
94586: 
94587:   old_IFS=$IFS
94588:   for ac_src in sysvshm.c; do
94589: 
94590:       IFS=.
94591:       set $ac_src
94592:       ac_obj=$1
94593:       IFS=$old_IFS
94594: 
94595:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
94596: 
94597:       case $ac_src in
94598:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
94599:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
94600:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
94601:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
94602:       esac
94603: 
94604:     cat >>Makefile.objects<<EOF
94605: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
94606: 	$ac_comp
94607: EOF
94608:   done
94609: 
94610: 
94611:     EXT_STATIC="$EXT_STATIC sysvshm"
94612:     if test "$ext_shared" != "nocli"; then
94613:       EXT_CLI_STATIC="$EXT_CLI_STATIC sysvshm"
94614:     fi
94615:   else
94616:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
94617:       PHP_SYSVSHM_SHARED=yes
94618: 
94619:   case ext/sysvshm in
94620:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
94621:   /*) ac_srcdir=`echo "ext/sysvshm"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
94622:   *) ac_srcdir="$abs_srcdir/ext/sysvshm/"; ac_bdir="ext/sysvshm/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
94623:   esac
94624: 
94625: 
94626: 
94627:   b_c_pre=$shared_c_pre
94628:   b_cxx_pre=$shared_cxx_pre
94629:   b_c_meta=$shared_c_meta
94630:   b_cxx_meta=$shared_cxx_meta
94631:   b_c_post=$shared_c_post
94632:   b_cxx_post=$shared_cxx_post
94633:   b_lo=$shared_lo
94634: 
94635: 
94636:   old_IFS=$IFS
94637:   for ac_src in sysvshm.c; do
94638: 
94639:       IFS=.
94640:       set $ac_src
94641:       ac_obj=$1
94642:       IFS=$old_IFS
94643: 
94644:       shared_objects_sysvshm="$shared_objects_sysvshm $ac_bdir$ac_obj.lo"
94645: 
94646:       case $ac_src in
94647:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
94648:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
94649:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
94650:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
94651:       esac
94652: 
94653:     cat >>Makefile.objects<<EOF
94654: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
94655: 	$ac_comp
94656: EOF
94657:   done
94658: 
94659:       case $host_alias in
94660:         *netware*)
94661: 
94662:   install_modules="install-modules"
94663: 
94664:   case $host_alias in
94665:     *aix*)
94666:       suffix=so
94667:       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'
94668:       ;;
94669:     *netware*)
94670:       suffix=nlm
94671:       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)'
94672:       ;;
94673:     *)
94674:       suffix=la
94675:       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)'
94676:       ;;
94677:   esac
94678: 
94679:   if test "x" = "xyes"; then
94680:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpsysvshm.$suffix"
94681:   else
94682:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpsysvshm.$suffix"
94683:   fi
94684: 
94685:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_sysvshm"
94686: 
94687:   cat >>Makefile.objects<<EOF
94688: \$(phplibdir)/phpsysvshm.$suffix: $ext_builddir/phpsysvshm.$suffix
94689: 	\$(LIBTOOL) --mode=install cp $ext_builddir/phpsysvshm.$suffix \$(phplibdir)
94690: 
94691: $ext_builddir/phpsysvshm.$suffix: \$(shared_objects_sysvshm) \$(PHPSYSVSHM_SHARED_DEPENDENCIES)
94692: 	$link_cmd
94693: 
94694: EOF
94695: 
94696:           ;;
94697:         *)
94698: 
94699:   install_modules="install-modules"
94700: 
94701:   case $host_alias in
94702:     *aix*)
94703:       suffix=so
94704:       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'
94705:       ;;
94706:     *netware*)
94707:       suffix=nlm
94708:       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)'
94709:       ;;
94710:     *)
94711:       suffix=la
94712:       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)'
94713:       ;;
94714:   esac
94715: 
94716:   if test "x" = "xyes"; then
94717:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/sysvshm.$suffix"
94718:   else
94719:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/sysvshm.$suffix"
94720:   fi
94721: 
94722:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_sysvshm"
94723: 
94724:   cat >>Makefile.objects<<EOF
94725: \$(phplibdir)/sysvshm.$suffix: $ext_builddir/sysvshm.$suffix
94726: 	\$(LIBTOOL) --mode=install cp $ext_builddir/sysvshm.$suffix \$(phplibdir)
94727: 
94728: $ext_builddir/sysvshm.$suffix: \$(shared_objects_sysvshm) \$(SYSVSHM_SHARED_DEPENDENCIES)
94729: 	$link_cmd
94730: 
94731: EOF
94732: 
94733:           ;;
94734:       esac
94735: 
94736: cat >>confdefs.h <<_ACEOF
94737: #define COMPILE_DL_SYSVSHM 1
94738: _ACEOF
94739: 
94740:     fi
94741:   fi
94742: 
94743:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
94744:     PHP_SYSVSHM_SHARED=no
94745:     case "$PHP_SAPI" in
94746:       cgi|embed)
94747: 
94748: 
94749:   case ext/sysvshm in
94750:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
94751:   /*) ac_srcdir=`echo "ext/sysvshm"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
94752:   *) ac_srcdir="$abs_srcdir/ext/sysvshm/"; ac_bdir="ext/sysvshm/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
94753:   esac
94754: 
94755: 
94756: 
94757:   b_c_pre=$php_c_pre
94758:   b_cxx_pre=$php_cxx_pre
94759:   b_c_meta=$php_c_meta
94760:   b_cxx_meta=$php_cxx_meta
94761:   b_c_post=$php_c_post
94762:   b_cxx_post=$php_cxx_post
94763:   b_lo=$php_lo
94764: 
94765: 
94766:   old_IFS=$IFS
94767:   for ac_src in sysvshm.c; do
94768: 
94769:       IFS=.
94770:       set $ac_src
94771:       ac_obj=$1
94772:       IFS=$old_IFS
94773: 
94774:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
94775: 
94776:       case $ac_src in
94777:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
94778:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
94779:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
94780:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
94781:       esac
94782: 
94783:     cat >>Makefile.objects<<EOF
94784: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
94785: 	$ac_comp
94786: EOF
94787:   done
94788: 
94789: 
94790:         EXT_STATIC="$EXT_STATIC sysvshm"
94791:         ;;
94792:       *)
94793: 
94794: 
94795:   case ext/sysvshm in
94796:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
94797:   /*) ac_srcdir=`echo "ext/sysvshm"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
94798:   *) ac_srcdir="$abs_srcdir/ext/sysvshm/"; ac_bdir="ext/sysvshm/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
94799:   esac
94800: 
94801: 
94802: 
94803:   b_c_pre=$php_c_pre
94804:   b_cxx_pre=$php_cxx_pre
94805:   b_c_meta=$php_c_meta
94806:   b_cxx_meta=$php_cxx_meta
94807:   b_c_post=$php_c_post
94808:   b_cxx_post=$php_cxx_post
94809:   b_lo=$php_lo
94810: 
94811: 
94812:   old_IFS=$IFS
94813:   for ac_src in sysvshm.c; do
94814: 
94815:       IFS=.
94816:       set $ac_src
94817:       ac_obj=$1
94818:       IFS=$old_IFS
94819: 
94820:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
94821: 
94822:       case $ac_src in
94823:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
94824:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
94825:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
94826:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
94827:       esac
94828: 
94829:     cat >>Makefile.objects<<EOF
94830: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
94831: 	$ac_comp
94832: EOF
94833:   done
94834: 
94835: 
94836:         ;;
94837:     esac
94838:     EXT_CLI_STATIC="$EXT_CLI_STATIC sysvshm"
94839:   fi
94840: 
94841: 
94842:     BUILD_DIR="$BUILD_DIR $ext_builddir"
94843: 
94844: 
94845: 
94846:   if test "$ext_builddir" = "."; then
94847:     PHP_PECL_EXTENSION=sysvshm
94848: 
94849:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
94850: 
94851:   fi
94852: 
94853: fi
94854: 
94855: 
94856: 
94857: php_with_tidy=no
94858: 
94859: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIDY support" >&5
94860: $as_echo_n "checking for TIDY support... " >&6; }
94861: 
94862: # Check whether --with-tidy was given.
94863: if test "${with_tidy+set}" = set; then :
94864:   withval=$with_tidy; PHP_TIDY=$withval
94865: else
94866: 
94867:   PHP_TIDY=no
94868:   test "$PHP_ENABLE_ALL" && PHP_TIDY=$PHP_ENABLE_ALL
94869: 
94870: fi
94871: 
94872: 
94873: 
94874: ext_output="yes, shared"
94875: ext_shared=yes
94876: case $PHP_TIDY in
94877: shared,*)
94878:   PHP_TIDY=`echo "$PHP_TIDY"|$SED 's/^shared,//'`
94879:   ;;
94880: shared)
94881:   PHP_TIDY=yes
94882:   ;;
94883: no)
94884:   ext_output=no
94885:   ext_shared=no
94886:   ;;
94887: *)
94888:   ext_output=yes
94889:   ext_shared=no
94890:   ;;
94891: esac
94892: 
94893: 
94894: 
94895: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
94896: $as_echo "$ext_output" >&6; }
94897: 
94898: 
94899: 
94900: 
94901: if test "$PHP_TIDY" != "no"; then
94902: 
94903:   if test "$PHP_TIDY" != "yes"; then
94904:     TIDY_SEARCH_DIRS=$PHP_TIDY
94905:   else
94906:     TIDY_SEARCH_DIRS="/usr/local /usr"
94907:   fi
94908: 
94909:   for i in $TIDY_SEARCH_DIRS; do
94910:     if test -f $i/include/tidy/tidy.h; then
94911:       TIDY_DIR=$i
94912:       TIDY_INCDIR=$i/include/tidy
94913:     elif test -f $i/include/tidy.h; then
94914:       TIDY_DIR=$i
94915:       TIDY_INCDIR=$i/include
94916:     fi
94917:   done
94918: 
94919:   if test -z "$TIDY_DIR"; then
94920:     as_fn_error $? "Cannot find libtidy" "$LINENO" 5
94921:   fi
94922: 
94923:   TIDY_LIBDIR=$TIDY_DIR/$PHP_LIBDIR
94924: 
94925: 
94926: 
94927:   if test "$ext_shared" = "yes"; then
94928:     TIDY_SHARED_LIBADD="-ltidy $TIDY_SHARED_LIBADD"
94929:     if test -n "$TIDY_LIBDIR"; then
94930: 
94931:   if test "$TIDY_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$TIDY_LIBDIR" != "/usr/lib"; then
94932: 
94933:   if test -z "$TIDY_LIBDIR" || echo "$TIDY_LIBDIR" | grep '^/' >/dev/null ; then
94934:     ai_p=$TIDY_LIBDIR
94935:   else
94936: 
94937:     ep_dir=`echo $TIDY_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
94938: 
94939:     ep_realdir=`(cd "$ep_dir" && pwd)`
94940:     ai_p="$ep_realdir"/`basename "$TIDY_LIBDIR"`
94941:   fi
94942: 
94943: 
94944:       if test "$ext_shared" = "yes"; then
94945:         TIDY_SHARED_LIBADD="-L$ai_p $TIDY_SHARED_LIBADD"
94946:         test -n "$ld_runpath_switch" && TIDY_SHARED_LIBADD="$ld_runpath_switch$ai_p $TIDY_SHARED_LIBADD"
94947:       else
94948: 
94949: 
94950: 
94951:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
94952: 
94953:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
94954:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
94955:     eval "LIBPATH$unique=set"
94956: 
94957:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
94958:     LDFLAGS="$LDFLAGS -L$ai_p"
94959:     PHP_RPATHS="$PHP_RPATHS $ai_p"
94960: 
94961:   fi
94962: 
94963: 
94964:       fi
94965: 
94966:   fi
94967: 
94968:     fi
94969:   else
94970: 
94971: 
94972:   if test -n "$TIDY_LIBDIR"; then
94973: 
94974:   if test "$TIDY_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$TIDY_LIBDIR" != "/usr/lib"; then
94975: 
94976:   if test -z "$TIDY_LIBDIR" || echo "$TIDY_LIBDIR" | grep '^/' >/dev/null ; then
94977:     ai_p=$TIDY_LIBDIR
94978:   else
94979: 
94980:     ep_dir=`echo $TIDY_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
94981: 
94982:     ep_realdir=`(cd "$ep_dir" && pwd)`
94983:     ai_p="$ep_realdir"/`basename "$TIDY_LIBDIR"`
94984:   fi
94985: 
94986: 
94987: 
94988: 
94989: 
94990:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
94991: 
94992:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
94993:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
94994:     eval "LIBPATH$unique=set"
94995: 
94996:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
94997:     LDFLAGS="$LDFLAGS -L$ai_p"
94998:     PHP_RPATHS="$PHP_RPATHS $ai_p"
94999: 
95000:   fi
95001: 
95002: 
95003: 
95004:   fi
95005: 
95006:   fi
95007: 
95008: 
95009:   case tidy in
95010:   c|c_r|pthread*) ;;
95011:   *)
95012:       LIBS="-ltidy $LIBS"
95013:    ;;
95014:   esac
95015: 
95016: 
95017: 
95018: 
95019:   fi
95020: 
95021: 
95022: 
95023:   if test "$TIDY_INCDIR" != "/usr/include"; then
95024: 
95025:   if test -z "$TIDY_INCDIR" || echo "$TIDY_INCDIR" | grep '^/' >/dev/null ; then
95026:     ai_p=$TIDY_INCDIR
95027:   else
95028: 
95029:     ep_dir=`echo $TIDY_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`
95030: 
95031:     ep_realdir=`(cd "$ep_dir" && pwd)`
95032:     ai_p="$ep_realdir"/`basename "$TIDY_INCDIR"`
95033:   fi
95034: 
95035: 
95036: 
95037:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
95038: 
95039:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
95040:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
95041:     eval "INCLUDEPATH$unique=set"
95042: 
95043:       if test ""; then
95044:         INCLUDES="-I$ai_p $INCLUDES"
95045:       else
95046:         INCLUDES="$INCLUDES -I$ai_p"
95047:       fi
95048: 
95049:   fi
95050: 
95051:   fi
95052: 
95053: 
95054: 
95055:   save_old_LDFLAGS=$LDFLAGS
95056:   ac_stuff=""
95057: 
95058:   save_ext_shared=$ext_shared
95059:   ext_shared=yes
95060: 
95061:   for ac_i in $ac_stuff; do
95062:     case $ac_i in
95063:     -pthread)
95064:       if test "$ext_shared" = "yes"; then
95065:         LDFLAGS="$LDFLAGS -pthread"
95066:       else
95067: 
95068: 
95069:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
95070: 
95071:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
95072:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
95073:     eval "EXTRA_LDFLAGS$unique=set"
95074:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
95075:   fi
95076: 
95077:       fi
95078:     ;;
95079:     -l*)
95080:       ac_ii=`echo $ac_i|cut -c 3-`
95081: 
95082: 
95083:   case $ac_ii in
95084:   c|c_r|pthread*) ;;
95085:   *)
95086:     if test "$ext_shared" = "yes"; then
95087:         LDFLAGS="$LDFLAGS -l$ac_ii"
95088:     else
95089: 
95090: 
95091:   case $ac_ii in
95092:   c|c_r|pthread*) ;;
95093:   *)
95094:       LIBS="$LIBS -l$ac_ii"
95095:    ;;
95096:   esac
95097: 
95098: 
95099:     fi
95100:    ;;
95101:   esac
95102: 
95103: 
95104:     ;;
95105:     -L*)
95106:       ac_ii=`echo $ac_i|cut -c 3-`
95107: 
95108:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
95109: 
95110:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
95111:     ai_p=$ac_ii
95112:   else
95113: 
95114:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
95115: 
95116:     ep_realdir=`(cd "$ep_dir" && pwd)`
95117:     ai_p="$ep_realdir"/`basename "$ac_ii"`
95118:   fi
95119: 
95120: 
95121:       if test "$ext_shared" = "yes"; then
95122:         LDFLAGS="-L$ai_p $LDFLAGS"
95123:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
95124:       else
95125: 
95126: 
95127: 
95128:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
95129: 
95130:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
95131:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
95132:     eval "LIBPATH$unique=set"
95133: 
95134:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
95135:     LDFLAGS="$LDFLAGS -L$ai_p"
95136:     PHP_RPATHS="$PHP_RPATHS $ai_p"
95137: 
95138:   fi
95139: 
95140: 
95141:       fi
95142: 
95143:   fi
95144: 
95145:     ;;
95146:     esac
95147:   done
95148: 
95149:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tidyOptGetDoc in -ltidy" >&5
95150: $as_echo_n "checking for tidyOptGetDoc in -ltidy... " >&6; }
95151: if ${ac_cv_lib_tidy_tidyOptGetDoc+:} false; then :
95152:   $as_echo_n "(cached) " >&6
95153: else
95154:   ac_check_lib_save_LIBS=$LIBS
95155: LIBS="-ltidy  $LIBS"
95156: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
95157: /* end confdefs.h.  */
95158: 
95159: /* Override any GCC internal prototype to avoid an error.
95160:    Use char because int might match the return type of a GCC
95161:    builtin and then its argument prototype would still apply.  */
95162: #ifdef __cplusplus
95163: extern "C"
95164: #endif
95165: char tidyOptGetDoc ();
95166: int
95167: main ()
95168: {
95169: return tidyOptGetDoc ();
95170:   ;
95171:   return 0;
95172: }
95173: _ACEOF
95174: if ac_fn_c_try_link "$LINENO"; then :
95175:   ac_cv_lib_tidy_tidyOptGetDoc=yes
95176: else
95177:   ac_cv_lib_tidy_tidyOptGetDoc=no
95178: fi
95179: rm -f core conftest.err conftest.$ac_objext \
95180:     conftest$ac_exeext conftest.$ac_ext
95181: LIBS=$ac_check_lib_save_LIBS
95182: fi
95183: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tidy_tidyOptGetDoc" >&5
95184: $as_echo "$ac_cv_lib_tidy_tidyOptGetDoc" >&6; }
95185: if test "x$ac_cv_lib_tidy_tidyOptGetDoc" = xyes; then :
95186: 
95187:     LDFLAGS=$save_old_LDFLAGS
95188:     ext_shared=$save_ext_shared
95189: 
95190: 
95191: $as_echo "#define HAVE_TIDYOPTGETDOC 1" >>confdefs.h
95192: 
95193: 
95194: 
95195: else
95196: 
95197:     LDFLAGS=$save_old_LDFLAGS
95198:     ext_shared=$save_ext_shared
95199:     unset ac_cv_lib_tidy_tidyOptGetDoc
95200: 
95201: 
95202: fi
95203: 
95204: 
95205: 
95206: 
95207:   ext_builddir=ext/tidy
95208:   ext_srcdir=$abs_srcdir/ext/tidy
95209: 
95210:   ac_extra=
95211: 
95212:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
95213:     PHP_TIDY_SHARED=no
95214: 
95215: 
95216:   case ext/tidy in
95217:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
95218:   /*) ac_srcdir=`echo "ext/tidy"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
95219:   *) ac_srcdir="$abs_srcdir/ext/tidy/"; ac_bdir="ext/tidy/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
95220:   esac
95221: 
95222: 
95223: 
95224:   b_c_pre=$php_c_pre
95225:   b_cxx_pre=$php_cxx_pre
95226:   b_c_meta=$php_c_meta
95227:   b_cxx_meta=$php_cxx_meta
95228:   b_c_post=$php_c_post
95229:   b_cxx_post=$php_cxx_post
95230:   b_lo=$php_lo
95231: 
95232: 
95233:   old_IFS=$IFS
95234:   for ac_src in tidy.c; do
95235: 
95236:       IFS=.
95237:       set $ac_src
95238:       ac_obj=$1
95239:       IFS=$old_IFS
95240: 
95241:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
95242: 
95243:       case $ac_src in
95244:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
95245:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
95246:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
95247:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
95248:       esac
95249: 
95250:     cat >>Makefile.objects<<EOF
95251: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
95252: 	$ac_comp
95253: EOF
95254:   done
95255: 
95256: 
95257:     EXT_STATIC="$EXT_STATIC tidy"
95258:     if test "$ext_shared" != "nocli"; then
95259:       EXT_CLI_STATIC="$EXT_CLI_STATIC tidy"
95260:     fi
95261:   else
95262:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
95263:       PHP_TIDY_SHARED=yes
95264: 
95265:   case ext/tidy in
95266:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
95267:   /*) ac_srcdir=`echo "ext/tidy"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
95268:   *) ac_srcdir="$abs_srcdir/ext/tidy/"; ac_bdir="ext/tidy/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
95269:   esac
95270: 
95271: 
95272: 
95273:   b_c_pre=$shared_c_pre
95274:   b_cxx_pre=$shared_cxx_pre
95275:   b_c_meta=$shared_c_meta
95276:   b_cxx_meta=$shared_cxx_meta
95277:   b_c_post=$shared_c_post
95278:   b_cxx_post=$shared_cxx_post
95279:   b_lo=$shared_lo
95280: 
95281: 
95282:   old_IFS=$IFS
95283:   for ac_src in tidy.c; do
95284: 
95285:       IFS=.
95286:       set $ac_src
95287:       ac_obj=$1
95288:       IFS=$old_IFS
95289: 
95290:       shared_objects_tidy="$shared_objects_tidy $ac_bdir$ac_obj.lo"
95291: 
95292:       case $ac_src in
95293:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
95294:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
95295:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
95296:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
95297:       esac
95298: 
95299:     cat >>Makefile.objects<<EOF
95300: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
95301: 	$ac_comp
95302: EOF
95303:   done
95304: 
95305:       case $host_alias in
95306:         *netware*)
95307: 
95308:   install_modules="install-modules"
95309: 
95310:   case $host_alias in
95311:     *aix*)
95312:       suffix=so
95313:       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'
95314:       ;;
95315:     *netware*)
95316:       suffix=nlm
95317:       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)'
95318:       ;;
95319:     *)
95320:       suffix=la
95321:       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)'
95322:       ;;
95323:   esac
95324: 
95325:   if test "x" = "xyes"; then
95326:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phptidy.$suffix"
95327:   else
95328:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phptidy.$suffix"
95329:   fi
95330: 
95331:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_tidy"
95332: 
95333:   cat >>Makefile.objects<<EOF
95334: \$(phplibdir)/phptidy.$suffix: $ext_builddir/phptidy.$suffix
95335: 	\$(LIBTOOL) --mode=install cp $ext_builddir/phptidy.$suffix \$(phplibdir)
95336: 
95337: $ext_builddir/phptidy.$suffix: \$(shared_objects_tidy) \$(PHPTIDY_SHARED_DEPENDENCIES)
95338: 	$link_cmd
95339: 
95340: EOF
95341: 
95342:           ;;
95343:         *)
95344: 
95345:   install_modules="install-modules"
95346: 
95347:   case $host_alias in
95348:     *aix*)
95349:       suffix=so
95350:       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'
95351:       ;;
95352:     *netware*)
95353:       suffix=nlm
95354:       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)'
95355:       ;;
95356:     *)
95357:       suffix=la
95358:       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)'
95359:       ;;
95360:   esac
95361: 
95362:   if test "x" = "xyes"; then
95363:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/tidy.$suffix"
95364:   else
95365:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/tidy.$suffix"
95366:   fi
95367: 
95368:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_tidy"
95369: 
95370:   cat >>Makefile.objects<<EOF
95371: \$(phplibdir)/tidy.$suffix: $ext_builddir/tidy.$suffix
95372: 	\$(LIBTOOL) --mode=install cp $ext_builddir/tidy.$suffix \$(phplibdir)
95373: 
95374: $ext_builddir/tidy.$suffix: \$(shared_objects_tidy) \$(TIDY_SHARED_DEPENDENCIES)
95375: 	$link_cmd
95376: 
95377: EOF
95378: 
95379:           ;;
95380:       esac
95381: 
95382: cat >>confdefs.h <<_ACEOF
95383: #define COMPILE_DL_TIDY 1
95384: _ACEOF
95385: 
95386:     fi
95387:   fi
95388: 
95389:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
95390:     PHP_TIDY_SHARED=no
95391:     case "$PHP_SAPI" in
95392:       cgi|embed)
95393: 
95394: 
95395:   case ext/tidy in
95396:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
95397:   /*) ac_srcdir=`echo "ext/tidy"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
95398:   *) ac_srcdir="$abs_srcdir/ext/tidy/"; ac_bdir="ext/tidy/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
95399:   esac
95400: 
95401: 
95402: 
95403:   b_c_pre=$php_c_pre
95404:   b_cxx_pre=$php_cxx_pre
95405:   b_c_meta=$php_c_meta
95406:   b_cxx_meta=$php_cxx_meta
95407:   b_c_post=$php_c_post
95408:   b_cxx_post=$php_cxx_post
95409:   b_lo=$php_lo
95410: 
95411: 
95412:   old_IFS=$IFS
95413:   for ac_src in tidy.c; do
95414: 
95415:       IFS=.
95416:       set $ac_src
95417:       ac_obj=$1
95418:       IFS=$old_IFS
95419: 
95420:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
95421: 
95422:       case $ac_src in
95423:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
95424:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
95425:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
95426:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
95427:       esac
95428: 
95429:     cat >>Makefile.objects<<EOF
95430: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
95431: 	$ac_comp
95432: EOF
95433:   done
95434: 
95435: 
95436:         EXT_STATIC="$EXT_STATIC tidy"
95437:         ;;
95438:       *)
95439: 
95440: 
95441:   case ext/tidy in
95442:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
95443:   /*) ac_srcdir=`echo "ext/tidy"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
95444:   *) ac_srcdir="$abs_srcdir/ext/tidy/"; ac_bdir="ext/tidy/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
95445:   esac
95446: 
95447: 
95448: 
95449:   b_c_pre=$php_c_pre
95450:   b_cxx_pre=$php_cxx_pre
95451:   b_c_meta=$php_c_meta
95452:   b_cxx_meta=$php_cxx_meta
95453:   b_c_post=$php_c_post
95454:   b_cxx_post=$php_cxx_post
95455:   b_lo=$php_lo
95456: 
95457: 
95458:   old_IFS=$IFS
95459:   for ac_src in tidy.c; do
95460: 
95461:       IFS=.
95462:       set $ac_src
95463:       ac_obj=$1
95464:       IFS=$old_IFS
95465: 
95466:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
95467: 
95468:       case $ac_src in
95469:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
95470:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
95471:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
95472:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
95473:       esac
95474: 
95475:     cat >>Makefile.objects<<EOF
95476: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
95477: 	$ac_comp
95478: EOF
95479:   done
95480: 
95481: 
95482:         ;;
95483:     esac
95484:     EXT_CLI_STATIC="$EXT_CLI_STATIC tidy"
95485:   fi
95486: 
95487: 
95488:     BUILD_DIR="$BUILD_DIR $ext_builddir"
95489: 
95490: 
95491: 
95492:   if test "$ext_builddir" = "."; then
95493:     PHP_PECL_EXTENSION=tidy
95494: 
95495:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
95496: 
95497:   fi
95498: 
95499: 
95500:   PHP_VAR_SUBST="$PHP_VAR_SUBST TIDY_SHARED_LIBADD"
95501: 
95502: 
95503: $as_echo "#define HAVE_TIDY 1" >>confdefs.h
95504: 
95505: fi
95506: 
95507: 
95508: 
95509: 
95510: php_enable_tokenizer=yes
95511: 
95512: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable tokenizer support" >&5
95513: $as_echo_n "checking whether to enable tokenizer support... " >&6; }
95514: # Check whether --enable-tokenizer was given.
95515: if test "${enable_tokenizer+set}" = set; then :
95516:   enableval=$enable_tokenizer; PHP_TOKENIZER=$enableval
95517: else
95518: 
95519:   PHP_TOKENIZER=yes
95520:   test "$PHP_ENABLE_ALL" && PHP_TOKENIZER=$PHP_ENABLE_ALL
95521: 
95522: fi
95523: 
95524: 
95525: 
95526: ext_output="yes, shared"
95527: ext_shared=yes
95528: case $PHP_TOKENIZER in
95529: shared,*)
95530:   PHP_TOKENIZER=`echo "$PHP_TOKENIZER"|$SED 's/^shared,//'`
95531:   ;;
95532: shared)
95533:   PHP_TOKENIZER=yes
95534:   ;;
95535: no)
95536:   ext_output=no
95537:   ext_shared=no
95538:   ;;
95539: *)
95540:   ext_output=yes
95541:   ext_shared=no
95542:   ;;
95543: esac
95544: 
95545: 
95546: 
95547: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
95548: $as_echo "$ext_output" >&6; }
95549: 
95550: 
95551: 
95552: 
95553: if test "$PHP_TOKENIZER" != "no"; then
95554: 
95555:   ext_builddir=ext/tokenizer
95556:   ext_srcdir=$abs_srcdir/ext/tokenizer
95557: 
95558:   ac_extra=
95559: 
95560:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
95561:     PHP_TOKENIZER_SHARED=no
95562: 
95563: 
95564:   case ext/tokenizer in
95565:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
95566:   /*) ac_srcdir=`echo "ext/tokenizer"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
95567:   *) ac_srcdir="$abs_srcdir/ext/tokenizer/"; ac_bdir="ext/tokenizer/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
95568:   esac
95569: 
95570: 
95571: 
95572:   b_c_pre=$php_c_pre
95573:   b_cxx_pre=$php_cxx_pre
95574:   b_c_meta=$php_c_meta
95575:   b_cxx_meta=$php_cxx_meta
95576:   b_c_post=$php_c_post
95577:   b_cxx_post=$php_cxx_post
95578:   b_lo=$php_lo
95579: 
95580: 
95581:   old_IFS=$IFS
95582:   for ac_src in tokenizer.c tokenizer_data.c; do
95583: 
95584:       IFS=.
95585:       set $ac_src
95586:       ac_obj=$1
95587:       IFS=$old_IFS
95588: 
95589:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
95590: 
95591:       case $ac_src in
95592:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
95593:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
95594:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
95595:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
95596:       esac
95597: 
95598:     cat >>Makefile.objects<<EOF
95599: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
95600: 	$ac_comp
95601: EOF
95602:   done
95603: 
95604: 
95605:     EXT_STATIC="$EXT_STATIC tokenizer"
95606:     if test "$ext_shared" != "nocli"; then
95607:       EXT_CLI_STATIC="$EXT_CLI_STATIC tokenizer"
95608:     fi
95609:   else
95610:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
95611:       PHP_TOKENIZER_SHARED=yes
95612: 
95613:   case ext/tokenizer in
95614:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
95615:   /*) ac_srcdir=`echo "ext/tokenizer"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
95616:   *) ac_srcdir="$abs_srcdir/ext/tokenizer/"; ac_bdir="ext/tokenizer/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
95617:   esac
95618: 
95619: 
95620: 
95621:   b_c_pre=$shared_c_pre
95622:   b_cxx_pre=$shared_cxx_pre
95623:   b_c_meta=$shared_c_meta
95624:   b_cxx_meta=$shared_cxx_meta
95625:   b_c_post=$shared_c_post
95626:   b_cxx_post=$shared_cxx_post
95627:   b_lo=$shared_lo
95628: 
95629: 
95630:   old_IFS=$IFS
95631:   for ac_src in tokenizer.c tokenizer_data.c; do
95632: 
95633:       IFS=.
95634:       set $ac_src
95635:       ac_obj=$1
95636:       IFS=$old_IFS
95637: 
95638:       shared_objects_tokenizer="$shared_objects_tokenizer $ac_bdir$ac_obj.lo"
95639: 
95640:       case $ac_src in
95641:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
95642:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
95643:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
95644:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
95645:       esac
95646: 
95647:     cat >>Makefile.objects<<EOF
95648: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
95649: 	$ac_comp
95650: EOF
95651:   done
95652: 
95653:       case $host_alias in
95654:         *netware*)
95655: 
95656:   install_modules="install-modules"
95657: 
95658:   case $host_alias in
95659:     *aix*)
95660:       suffix=so
95661:       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'
95662:       ;;
95663:     *netware*)
95664:       suffix=nlm
95665:       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)'
95666:       ;;
95667:     *)
95668:       suffix=la
95669:       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)'
95670:       ;;
95671:   esac
95672: 
95673:   if test "x" = "xyes"; then
95674:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phptokenizer.$suffix"
95675:   else
95676:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phptokenizer.$suffix"
95677:   fi
95678: 
95679:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_tokenizer"
95680: 
95681:   cat >>Makefile.objects<<EOF
95682: \$(phplibdir)/phptokenizer.$suffix: $ext_builddir/phptokenizer.$suffix
95683: 	\$(LIBTOOL) --mode=install cp $ext_builddir/phptokenizer.$suffix \$(phplibdir)
95684: 
95685: $ext_builddir/phptokenizer.$suffix: \$(shared_objects_tokenizer) \$(PHPTOKENIZER_SHARED_DEPENDENCIES)
95686: 	$link_cmd
95687: 
95688: EOF
95689: 
95690:           ;;
95691:         *)
95692: 
95693:   install_modules="install-modules"
95694: 
95695:   case $host_alias in
95696:     *aix*)
95697:       suffix=so
95698:       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'
95699:       ;;
95700:     *netware*)
95701:       suffix=nlm
95702:       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)'
95703:       ;;
95704:     *)
95705:       suffix=la
95706:       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)'
95707:       ;;
95708:   esac
95709: 
95710:   if test "x" = "xyes"; then
95711:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/tokenizer.$suffix"
95712:   else
95713:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/tokenizer.$suffix"
95714:   fi
95715: 
95716:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_tokenizer"
95717: 
95718:   cat >>Makefile.objects<<EOF
95719: \$(phplibdir)/tokenizer.$suffix: $ext_builddir/tokenizer.$suffix
95720: 	\$(LIBTOOL) --mode=install cp $ext_builddir/tokenizer.$suffix \$(phplibdir)
95721: 
95722: $ext_builddir/tokenizer.$suffix: \$(shared_objects_tokenizer) \$(TOKENIZER_SHARED_DEPENDENCIES)
95723: 	$link_cmd
95724: 
95725: EOF
95726: 
95727:           ;;
95728:       esac
95729: 
95730: cat >>confdefs.h <<_ACEOF
95731: #define COMPILE_DL_TOKENIZER 1
95732: _ACEOF
95733: 
95734:     fi
95735:   fi
95736: 
95737:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
95738:     PHP_TOKENIZER_SHARED=no
95739:     case "$PHP_SAPI" in
95740:       cgi|embed)
95741: 
95742: 
95743:   case ext/tokenizer in
95744:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
95745:   /*) ac_srcdir=`echo "ext/tokenizer"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
95746:   *) ac_srcdir="$abs_srcdir/ext/tokenizer/"; ac_bdir="ext/tokenizer/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
95747:   esac
95748: 
95749: 
95750: 
95751:   b_c_pre=$php_c_pre
95752:   b_cxx_pre=$php_cxx_pre
95753:   b_c_meta=$php_c_meta
95754:   b_cxx_meta=$php_cxx_meta
95755:   b_c_post=$php_c_post
95756:   b_cxx_post=$php_cxx_post
95757:   b_lo=$php_lo
95758: 
95759: 
95760:   old_IFS=$IFS
95761:   for ac_src in tokenizer.c tokenizer_data.c; do
95762: 
95763:       IFS=.
95764:       set $ac_src
95765:       ac_obj=$1
95766:       IFS=$old_IFS
95767: 
95768:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
95769: 
95770:       case $ac_src in
95771:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
95772:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
95773:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
95774:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
95775:       esac
95776: 
95777:     cat >>Makefile.objects<<EOF
95778: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
95779: 	$ac_comp
95780: EOF
95781:   done
95782: 
95783: 
95784:         EXT_STATIC="$EXT_STATIC tokenizer"
95785:         ;;
95786:       *)
95787: 
95788: 
95789:   case ext/tokenizer in
95790:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
95791:   /*) ac_srcdir=`echo "ext/tokenizer"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
95792:   *) ac_srcdir="$abs_srcdir/ext/tokenizer/"; ac_bdir="ext/tokenizer/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
95793:   esac
95794: 
95795: 
95796: 
95797:   b_c_pre=$php_c_pre
95798:   b_cxx_pre=$php_cxx_pre
95799:   b_c_meta=$php_c_meta
95800:   b_cxx_meta=$php_cxx_meta
95801:   b_c_post=$php_c_post
95802:   b_cxx_post=$php_cxx_post
95803:   b_lo=$php_lo
95804: 
95805: 
95806:   old_IFS=$IFS
95807:   for ac_src in tokenizer.c tokenizer_data.c; do
95808: 
95809:       IFS=.
95810:       set $ac_src
95811:       ac_obj=$1
95812:       IFS=$old_IFS
95813: 
95814:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
95815: 
95816:       case $ac_src in
95817:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
95818:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
95819:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
95820:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
95821:       esac
95822: 
95823:     cat >>Makefile.objects<<EOF
95824: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
95825: 	$ac_comp
95826: EOF
95827:   done
95828: 
95829: 
95830:         ;;
95831:     esac
95832:     EXT_CLI_STATIC="$EXT_CLI_STATIC tokenizer"
95833:   fi
95834: 
95835: 
95836:     BUILD_DIR="$BUILD_DIR $ext_builddir"
95837: 
95838: 
95839: 
95840:   if test "$ext_builddir" = "."; then
95841:     PHP_PECL_EXTENSION=tokenizer
95842: 
95843:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
95844: 
95845:   fi
95846: 
95847: 
95848:   src=$ext_srcdir/Makefile.frag
95849:   ac_srcdir=$ext_srcdir
95850:   ac_builddir=$ext_builddir
95851:   test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src  >> Makefile.fragments
95852: 
95853: fi
95854: 
95855: 
95856: 
95857: php_enable_wddx=no
95858: 
95859: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable WDDX support" >&5
95860: $as_echo_n "checking whether to enable WDDX support... " >&6; }
95861: # Check whether --enable-wddx was given.
95862: if test "${enable_wddx+set}" = set; then :
95863:   enableval=$enable_wddx; PHP_WDDX=$enableval
95864: else
95865: 
95866:   PHP_WDDX=no
95867:   test "$PHP_ENABLE_ALL" && PHP_WDDX=$PHP_ENABLE_ALL
95868: 
95869: fi
95870: 
95871: 
95872: 
95873: ext_output="yes, shared"
95874: ext_shared=yes
95875: case $PHP_WDDX in
95876: shared,*)
95877:   PHP_WDDX=`echo "$PHP_WDDX"|$SED 's/^shared,//'`
95878:   ;;
95879: shared)
95880:   PHP_WDDX=yes
95881:   ;;
95882: no)
95883:   ext_output=no
95884:   ext_shared=no
95885:   ;;
95886: *)
95887:   ext_output=yes
95888:   ext_shared=no
95889:   ;;
95890: esac
95891: 
95892: 
95893: 
95894: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
95895: $as_echo "$ext_output" >&6; }
95896: 
95897: 
95898: 
95899: 
95900: if test -z "$PHP_LIBXML_DIR"; then
95901: 
95902: php_with_libxml_dir=no
95903: 
95904: { $as_echo "$as_me:${as_lineno-$LINENO}: checking libxml2 install dir" >&5
95905: $as_echo_n "checking libxml2 install dir... " >&6; }
95906: 
95907: # Check whether --with-libxml-dir was given.
95908: if test "${with_libxml_dir+set}" = set; then :
95909:   withval=$with_libxml_dir; PHP_LIBXML_DIR=$withval
95910: else
95911: 
95912:   PHP_LIBXML_DIR=no
95913: 
95914: 
95915: fi
95916: 
95917: 
95918: ext_output=$PHP_LIBXML_DIR
95919: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
95920: $as_echo "$ext_output" >&6; }
95921: 
95922: 
95923: 
95924: fi
95925: 
95926: 
95927: php_with_libexpat_dir=no
95928: 
95929: { $as_echo "$as_me:${as_lineno-$LINENO}: checking libexpat dir for WDDX" >&5
95930: $as_echo_n "checking libexpat dir for WDDX... " >&6; }
95931: 
95932: # Check whether --with-libexpat-dir was given.
95933: if test "${with_libexpat_dir+set}" = set; then :
95934:   withval=$with_libexpat_dir; PHP_LIBEXPAT_DIR=$withval
95935: else
95936: 
95937:   PHP_LIBEXPAT_DIR=no
95938: 
95939: 
95940: fi
95941: 
95942: 
95943: ext_output=$PHP_LIBEXPAT_DIR
95944: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
95945: $as_echo "$ext_output" >&6; }
95946: 
95947: 
95948: 
95949: 
95950: if test "$PHP_WDDX" != "no"; then
95951: 
95952:         if test "$PHP_LIBEXPAT_DIR" = "no"; then
95953:     if test "$PHP_LIBXML" = "no"; then
95954:       as_fn_error $? "WDDX extension requires LIBXML extension, add --enable-libxml" "$LINENO" 5
95955:     fi
95956: 
95957: 
95958: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xml2-config path" >&5
95959: $as_echo_n "checking for xml2-config path... " >&6; }
95960: if ${ac_cv_php_xml2_config_path+:} false; then :
95961:   $as_echo_n "(cached) " >&6
95962: else
95963: 
95964:   for i in $PHP_LIBXML_DIR /usr/local /usr; do
95965:     if test -x "$i/bin/xml2-config"; then
95966:       ac_cv_php_xml2_config_path="$i/bin/xml2-config"
95967:       break
95968:     fi
95969:   done
95970: 
95971: fi
95972: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_php_xml2_config_path" >&5
95973: $as_echo "$ac_cv_php_xml2_config_path" >&6; }
95974: 
95975:   if test -x "$ac_cv_php_xml2_config_path"; then
95976:     XML2_CONFIG="$ac_cv_php_xml2_config_path"
95977:     libxml_full_version=`$XML2_CONFIG --version`
95978:     ac_IFS=$IFS
95979:     IFS="."
95980:     set $libxml_full_version
95981:     IFS=$ac_IFS
95982:     LIBXML_VERSION=`expr $1 \* 1000000 + $2 \* 1000 + $3`
95983:     if test "$LIBXML_VERSION" -ge "2006011"; then
95984:       LIBXML_LIBS=`$XML2_CONFIG --libs`
95985:       LIBXML_INCS=`$XML2_CONFIG --cflags`
95986: 
95987:   for ac_i in $LIBXML_LIBS; do
95988:     case $ac_i in
95989:     -pthread)
95990:       if test "$ext_shared" = "yes"; then
95991:         WDDX_SHARED_LIBADD="$WDDX_SHARED_LIBADD -pthread"
95992:       else
95993: 
95994: 
95995:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
95996: 
95997:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
95998:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
95999:     eval "EXTRA_LDFLAGS$unique=set"
96000:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
96001:   fi
96002: 
96003:       fi
96004:     ;;
96005:     -l*)
96006:       ac_ii=`echo $ac_i|cut -c 3-`
96007: 
96008: 
96009:   case $ac_ii in
96010:   c|c_r|pthread*) ;;
96011:   *)
96012:     if test "$ext_shared" = "yes"; then
96013:         WDDX_SHARED_LIBADD="$WDDX_SHARED_LIBADD -l$ac_ii"
96014:     else
96015: 
96016: 
96017:   case $ac_ii in
96018:   c|c_r|pthread*) ;;
96019:   *)
96020:       LIBS="$LIBS -l$ac_ii"
96021:    ;;
96022:   esac
96023: 
96024: 
96025:     fi
96026:    ;;
96027:   esac
96028: 
96029: 
96030:     ;;
96031:     -L*)
96032:       ac_ii=`echo $ac_i|cut -c 3-`
96033: 
96034:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
96035: 
96036:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
96037:     ai_p=$ac_ii
96038:   else
96039: 
96040:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
96041: 
96042:     ep_realdir=`(cd "$ep_dir" && pwd)`
96043:     ai_p="$ep_realdir"/`basename "$ac_ii"`
96044:   fi
96045: 
96046: 
96047:       if test "$ext_shared" = "yes"; then
96048:         WDDX_SHARED_LIBADD="-L$ai_p $WDDX_SHARED_LIBADD"
96049:         test -n "$ld_runpath_switch" && WDDX_SHARED_LIBADD="$ld_runpath_switch$ai_p $WDDX_SHARED_LIBADD"
96050:       else
96051: 
96052: 
96053: 
96054:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
96055: 
96056:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
96057:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
96058:     eval "LIBPATH$unique=set"
96059: 
96060:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
96061:     LDFLAGS="$LDFLAGS -L$ai_p"
96062:     PHP_RPATHS="$PHP_RPATHS $ai_p"
96063: 
96064:   fi
96065: 
96066: 
96067:       fi
96068: 
96069:   fi
96070: 
96071:     ;;
96072:     esac
96073:   done
96074: 
96075: 
96076:   for ac_i in $LIBXML_INCS; do
96077:     case $ac_i in
96078:     -I*)
96079:       ac_ii=`echo $ac_i|cut -c 3-`
96080: 
96081:   if test "$ac_ii" != "/usr/include"; then
96082: 
96083:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
96084:     ai_p=$ac_ii
96085:   else
96086: 
96087:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
96088: 
96089:     ep_realdir=`(cd "$ep_dir" && pwd)`
96090:     ai_p="$ep_realdir"/`basename "$ac_ii"`
96091:   fi
96092: 
96093: 
96094: 
96095:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
96096: 
96097:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
96098:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
96099:     eval "INCLUDEPATH$unique=set"
96100: 
96101:       if test ""; then
96102:         INCLUDES="-I$ai_p $INCLUDES"
96103:       else
96104:         INCLUDES="$INCLUDES -I$ai_p"
96105:       fi
96106: 
96107:   fi
96108: 
96109:   fi
96110: 
96111:     ;;
96112:     esac
96113:   done
96114: 
96115: 
96116:             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libxml build works" >&5
96117: $as_echo_n "checking whether libxml build works... " >&6; }
96118: if ${php_cv_libxml_build_works+:} false; then :
96119:   $as_echo_n "(cached) " >&6
96120: else
96121: 
96122: 
96123:   old_LIBS=$LIBS
96124:   LIBS="
96125:           $WDDX_SHARED_LIBADD
96126:          $LIBS"
96127:   if test "$cross_compiling" = yes; then :
96128: 
96129:     LIBS=$old_LIBS
96130: 
96131: else
96132:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
96133: /* end confdefs.h.  */
96134: 
96135: 
96136:     char xmlInitParser();
96137:     int main() {
96138:       xmlInitParser();
96139:       return 0;
96140:     }
96141: 
96142: _ACEOF
96143: if ac_fn_c_try_run "$LINENO"; then :
96144: 
96145:     LIBS=$old_LIBS
96146: 
96147:           php_cv_libxml_build_works=yes
96148: 
96149: 
96150: else
96151: 
96152:     LIBS=$old_LIBS
96153: 
96154:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
96155: $as_echo "no" >&6; }
96156:           as_fn_error $? "build test failed.  Please check the config.log for details." "$LINENO" 5
96157: 
96158: 
96159: fi
96160: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
96161:   conftest.$ac_objext conftest.beam conftest.$ac_ext
96162: fi
96163: 
96164: 
96165: 
96166: fi
96167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_libxml_build_works" >&5
96168: $as_echo "$php_cv_libxml_build_works" >&6; }
96169:       if test "$php_cv_libxml_build_works" = "yes"; then
96170: 
96171: $as_echo "#define HAVE_LIBXML 1" >>confdefs.h
96172: 
96173:       fi
96174: 
96175:       if test "$PHP_XML" = "no"; then
96176: 
96177: 
96178:   case ext/xml in
96179:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
96180:   /*) ac_srcdir=`echo "ext/xml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
96181:   *) ac_srcdir="$abs_srcdir/ext/xml/"; ac_bdir="ext/xml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
96182:   esac
96183: 
96184: 
96185: 
96186:   b_c_pre=$php_c_pre
96187:   b_cxx_pre=$php_cxx_pre
96188:   b_c_meta=$php_c_meta
96189:   b_cxx_meta=$php_cxx_meta
96190:   b_c_post=$php_c_post
96191:   b_cxx_post=$php_cxx_post
96192:   b_lo=$php_lo
96193: 
96194: 
96195:   old_IFS=$IFS
96196:   for ac_src in compat.c; do
96197: 
96198:       IFS=.
96199:       set $ac_src
96200:       ac_obj=$1
96201:       IFS=$old_IFS
96202: 
96203:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
96204: 
96205:       case $ac_src in
96206:         *.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" ;;
96207:         *.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" ;;
96208:         *.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" ;;
96209:         *.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" ;;
96210:       esac
96211: 
96212:     cat >>Makefile.objects<<EOF
96213: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
96214: 	$ac_comp
96215: EOF
96216:   done
96217: 
96218: 
96219: 
96220: 
96221:     BUILD_DIR="$BUILD_DIR ext/xml"
96222: 
96223: 
96224:       fi
96225: 
96226:     else
96227:       as_fn_error $? "libxml2 version 2.6.11 or greater required." "$LINENO" 5
96228:     fi
96229: else
96230:       as_fn_error $? "xml2-config not found. Use --with-libxml-dir=<DIR>" "$LINENO" 5
96231: 
96232:   fi
96233: 
96234:   fi
96235: 
96236:         if test "$PHP_LIBEXPAT_DIR" != "no"; then
96237:     for i in $PHP_XML $PHP_LIBEXPAT_DIR /usr /usr/local; do
96238:       if test -f "$i/$PHP_LIBDIR/libexpat.a" || test -f "$i/$PHP_LIBDIR/libexpat.$SHLIB_SUFFIX_NAME"; then
96239:         EXPAT_DIR=$i
96240:         break
96241:       fi
96242:     done
96243: 
96244:     if test -z "$EXPAT_DIR"; then
96245:       as_fn_error $? "not found. Please reinstall the expat distribution." "$LINENO" 5
96246:     fi
96247: 
96248: 
96249:   if test "$EXPAT_DIR/include" != "/usr/include"; then
96250: 
96251:   if test -z "$EXPAT_DIR/include" || echo "$EXPAT_DIR/include" | grep '^/' >/dev/null ; then
96252:     ai_p=$EXPAT_DIR/include
96253:   else
96254: 
96255:     ep_dir=`echo $EXPAT_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`
96256: 
96257:     ep_realdir=`(cd "$ep_dir" && pwd)`
96258:     ai_p="$ep_realdir"/`basename "$EXPAT_DIR/include"`
96259:   fi
96260: 
96261: 
96262: 
96263:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
96264: 
96265:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
96266:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
96267:     eval "INCLUDEPATH$unique=set"
96268: 
96269:       if test ""; then
96270:         INCLUDES="-I$ai_p $INCLUDES"
96271:       else
96272:         INCLUDES="$INCLUDES -I$ai_p"
96273:       fi
96274: 
96275:   fi
96276: 
96277:   fi
96278: 
96279: 
96280: 
96281:   if test "$ext_shared" = "yes"; then
96282:     WDDX_SHARED_LIBADD="-lexpat $WDDX_SHARED_LIBADD"
96283:     if test -n "$EXPAT_DIR/$PHP_LIBDIR"; then
96284: 
96285:   if test "$EXPAT_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$EXPAT_DIR/$PHP_LIBDIR" != "/usr/lib"; then
96286: 
96287:   if test -z "$EXPAT_DIR/$PHP_LIBDIR" || echo "$EXPAT_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
96288:     ai_p=$EXPAT_DIR/$PHP_LIBDIR
96289:   else
96290: 
96291:     ep_dir=`echo $EXPAT_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
96292: 
96293:     ep_realdir=`(cd "$ep_dir" && pwd)`
96294:     ai_p="$ep_realdir"/`basename "$EXPAT_DIR/$PHP_LIBDIR"`
96295:   fi
96296: 
96297: 
96298:       if test "$ext_shared" = "yes"; then
96299:         WDDX_SHARED_LIBADD="-L$ai_p $WDDX_SHARED_LIBADD"
96300:         test -n "$ld_runpath_switch" && WDDX_SHARED_LIBADD="$ld_runpath_switch$ai_p $WDDX_SHARED_LIBADD"
96301:       else
96302: 
96303: 
96304: 
96305:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
96306: 
96307:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
96308:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
96309:     eval "LIBPATH$unique=set"
96310: 
96311:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
96312:     LDFLAGS="$LDFLAGS -L$ai_p"
96313:     PHP_RPATHS="$PHP_RPATHS $ai_p"
96314: 
96315:   fi
96316: 
96317: 
96318:       fi
96319: 
96320:   fi
96321: 
96322:     fi
96323:   else
96324: 
96325: 
96326:   if test -n "$EXPAT_DIR/$PHP_LIBDIR"; then
96327: 
96328:   if test "$EXPAT_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$EXPAT_DIR/$PHP_LIBDIR" != "/usr/lib"; then
96329: 
96330:   if test -z "$EXPAT_DIR/$PHP_LIBDIR" || echo "$EXPAT_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
96331:     ai_p=$EXPAT_DIR/$PHP_LIBDIR
96332:   else
96333: 
96334:     ep_dir=`echo $EXPAT_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
96335: 
96336:     ep_realdir=`(cd "$ep_dir" && pwd)`
96337:     ai_p="$ep_realdir"/`basename "$EXPAT_DIR/$PHP_LIBDIR"`
96338:   fi
96339: 
96340: 
96341: 
96342: 
96343: 
96344:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
96345: 
96346:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
96347:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
96348:     eval "LIBPATH$unique=set"
96349: 
96350:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
96351:     LDFLAGS="$LDFLAGS -L$ai_p"
96352:     PHP_RPATHS="$PHP_RPATHS $ai_p"
96353: 
96354:   fi
96355: 
96356: 
96357: 
96358:   fi
96359: 
96360:   fi
96361: 
96362: 
96363:   case expat in
96364:   c|c_r|pthread*) ;;
96365:   *)
96366:       LIBS="-lexpat $LIBS"
96367:    ;;
96368:   esac
96369: 
96370: 
96371: 
96372: 
96373:   fi
96374: 
96375: 
96376: 
96377: $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
96378: 
96379:   fi
96380: 
96381: 
96382: $as_echo "#define HAVE_WDDX 1" >>confdefs.h
96383: 
96384: 
96385:   ext_builddir=ext/wddx
96386:   ext_srcdir=$abs_srcdir/ext/wddx
96387: 
96388:   ac_extra=
96389: 
96390:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
96391:     PHP_WDDX_SHARED=no
96392: 
96393: 
96394:   case ext/wddx in
96395:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
96396:   /*) ac_srcdir=`echo "ext/wddx"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
96397:   *) ac_srcdir="$abs_srcdir/ext/wddx/"; ac_bdir="ext/wddx/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
96398:   esac
96399: 
96400: 
96401: 
96402:   b_c_pre=$php_c_pre
96403:   b_cxx_pre=$php_cxx_pre
96404:   b_c_meta=$php_c_meta
96405:   b_cxx_meta=$php_cxx_meta
96406:   b_c_post=$php_c_post
96407:   b_cxx_post=$php_cxx_post
96408:   b_lo=$php_lo
96409: 
96410: 
96411:   old_IFS=$IFS
96412:   for ac_src in wddx.c; do
96413: 
96414:       IFS=.
96415:       set $ac_src
96416:       ac_obj=$1
96417:       IFS=$old_IFS
96418: 
96419:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
96420: 
96421:       case $ac_src in
96422:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
96423:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
96424:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
96425:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
96426:       esac
96427: 
96428:     cat >>Makefile.objects<<EOF
96429: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
96430: 	$ac_comp
96431: EOF
96432:   done
96433: 
96434: 
96435:     EXT_STATIC="$EXT_STATIC wddx"
96436:     if test "$ext_shared" != "nocli"; then
96437:       EXT_CLI_STATIC="$EXT_CLI_STATIC wddx"
96438:     fi
96439:   else
96440:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
96441:       PHP_WDDX_SHARED=yes
96442: 
96443:   case ext/wddx in
96444:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
96445:   /*) ac_srcdir=`echo "ext/wddx"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
96446:   *) ac_srcdir="$abs_srcdir/ext/wddx/"; ac_bdir="ext/wddx/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
96447:   esac
96448: 
96449: 
96450: 
96451:   b_c_pre=$shared_c_pre
96452:   b_cxx_pre=$shared_cxx_pre
96453:   b_c_meta=$shared_c_meta
96454:   b_cxx_meta=$shared_cxx_meta
96455:   b_c_post=$shared_c_post
96456:   b_cxx_post=$shared_cxx_post
96457:   b_lo=$shared_lo
96458: 
96459: 
96460:   old_IFS=$IFS
96461:   for ac_src in wddx.c; do
96462: 
96463:       IFS=.
96464:       set $ac_src
96465:       ac_obj=$1
96466:       IFS=$old_IFS
96467: 
96468:       shared_objects_wddx="$shared_objects_wddx $ac_bdir$ac_obj.lo"
96469: 
96470:       case $ac_src in
96471:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
96472:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
96473:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
96474:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
96475:       esac
96476: 
96477:     cat >>Makefile.objects<<EOF
96478: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
96479: 	$ac_comp
96480: EOF
96481:   done
96482: 
96483:       case $host_alias in
96484:         *netware*)
96485: 
96486:   install_modules="install-modules"
96487: 
96488:   case $host_alias in
96489:     *aix*)
96490:       suffix=so
96491:       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'
96492:       ;;
96493:     *netware*)
96494:       suffix=nlm
96495:       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)'
96496:       ;;
96497:     *)
96498:       suffix=la
96499:       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)'
96500:       ;;
96501:   esac
96502: 
96503:   if test "x" = "xyes"; then
96504:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpwddx.$suffix"
96505:   else
96506:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpwddx.$suffix"
96507:   fi
96508: 
96509:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_wddx"
96510: 
96511:   cat >>Makefile.objects<<EOF
96512: \$(phplibdir)/phpwddx.$suffix: $ext_builddir/phpwddx.$suffix
96513: 	\$(LIBTOOL) --mode=install cp $ext_builddir/phpwddx.$suffix \$(phplibdir)
96514: 
96515: $ext_builddir/phpwddx.$suffix: \$(shared_objects_wddx) \$(PHPWDDX_SHARED_DEPENDENCIES)
96516: 	$link_cmd
96517: 
96518: EOF
96519: 
96520:           ;;
96521:         *)
96522: 
96523:   install_modules="install-modules"
96524: 
96525:   case $host_alias in
96526:     *aix*)
96527:       suffix=so
96528:       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'
96529:       ;;
96530:     *netware*)
96531:       suffix=nlm
96532:       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)'
96533:       ;;
96534:     *)
96535:       suffix=la
96536:       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)'
96537:       ;;
96538:   esac
96539: 
96540:   if test "x" = "xyes"; then
96541:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/wddx.$suffix"
96542:   else
96543:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/wddx.$suffix"
96544:   fi
96545: 
96546:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_wddx"
96547: 
96548:   cat >>Makefile.objects<<EOF
96549: \$(phplibdir)/wddx.$suffix: $ext_builddir/wddx.$suffix
96550: 	\$(LIBTOOL) --mode=install cp $ext_builddir/wddx.$suffix \$(phplibdir)
96551: 
96552: $ext_builddir/wddx.$suffix: \$(shared_objects_wddx) \$(WDDX_SHARED_DEPENDENCIES)
96553: 	$link_cmd
96554: 
96555: EOF
96556: 
96557:           ;;
96558:       esac
96559: 
96560: cat >>confdefs.h <<_ACEOF
96561: #define COMPILE_DL_WDDX 1
96562: _ACEOF
96563: 
96564:     fi
96565:   fi
96566: 
96567:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
96568:     PHP_WDDX_SHARED=no
96569:     case "$PHP_SAPI" in
96570:       cgi|embed)
96571: 
96572: 
96573:   case ext/wddx in
96574:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
96575:   /*) ac_srcdir=`echo "ext/wddx"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
96576:   *) ac_srcdir="$abs_srcdir/ext/wddx/"; ac_bdir="ext/wddx/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
96577:   esac
96578: 
96579: 
96580: 
96581:   b_c_pre=$php_c_pre
96582:   b_cxx_pre=$php_cxx_pre
96583:   b_c_meta=$php_c_meta
96584:   b_cxx_meta=$php_cxx_meta
96585:   b_c_post=$php_c_post
96586:   b_cxx_post=$php_cxx_post
96587:   b_lo=$php_lo
96588: 
96589: 
96590:   old_IFS=$IFS
96591:   for ac_src in wddx.c; do
96592: 
96593:       IFS=.
96594:       set $ac_src
96595:       ac_obj=$1
96596:       IFS=$old_IFS
96597: 
96598:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
96599: 
96600:       case $ac_src in
96601:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
96602:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
96603:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
96604:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
96605:       esac
96606: 
96607:     cat >>Makefile.objects<<EOF
96608: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
96609: 	$ac_comp
96610: EOF
96611:   done
96612: 
96613: 
96614:         EXT_STATIC="$EXT_STATIC wddx"
96615:         ;;
96616:       *)
96617: 
96618: 
96619:   case ext/wddx in
96620:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
96621:   /*) ac_srcdir=`echo "ext/wddx"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
96622:   *) ac_srcdir="$abs_srcdir/ext/wddx/"; ac_bdir="ext/wddx/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
96623:   esac
96624: 
96625: 
96626: 
96627:   b_c_pre=$php_c_pre
96628:   b_cxx_pre=$php_cxx_pre
96629:   b_c_meta=$php_c_meta
96630:   b_cxx_meta=$php_cxx_meta
96631:   b_c_post=$php_c_post
96632:   b_cxx_post=$php_cxx_post
96633:   b_lo=$php_lo
96634: 
96635: 
96636:   old_IFS=$IFS
96637:   for ac_src in wddx.c; do
96638: 
96639:       IFS=.
96640:       set $ac_src
96641:       ac_obj=$1
96642:       IFS=$old_IFS
96643: 
96644:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
96645: 
96646:       case $ac_src in
96647:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
96648:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
96649:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
96650:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
96651:       esac
96652: 
96653:     cat >>Makefile.objects<<EOF
96654: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
96655: 	$ac_comp
96656: EOF
96657:   done
96658: 
96659: 
96660:         ;;
96661:     esac
96662:     EXT_CLI_STATIC="$EXT_CLI_STATIC wddx"
96663:   fi
96664: 
96665: 
96666:     BUILD_DIR="$BUILD_DIR $ext_builddir"
96667: 
96668: 
96669: 
96670:   if test "$ext_builddir" = "."; then
96671:     PHP_PECL_EXTENSION=wddx
96672: 
96673:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
96674: 
96675:   fi
96676: 
96677: 
96678:   am_i_shared=$PHP_WDDX_SHARED
96679:   is_it_shared=$PHP_LIBXML_SHARED
96680:   is_it_enabled=$PHP_LIBXML
96681:   if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
96682:     as_fn_error $? "
96683: You've configured extension wddx to build statically, but it
96684: depends on extension libxml, which you've configured to build shared.
96685: You either need to build wddx shared or build libxml statically for the
96686: build to be successful.
96687: " "$LINENO" 5
96688:   fi
96689:   if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then
96690:     as_fn_error $? "
96691: You've configured extension wddx, which depends on extension libxml,
96692: but you've either not enabled libxml, or have disabled it.
96693: " "$LINENO" 5
96694:   fi
96695: 
96696: 
96697:   PHP_VAR_SUBST="$PHP_VAR_SUBST XMLRPC_SHARED_LIBADD"
96698: 
96699: fi
96700: 
96701: 
96702: 
96703: php_enable_xml=yes
96704: 
96705: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable XML support" >&5
96706: $as_echo_n "checking whether to enable XML support... " >&6; }
96707: # Check whether --enable-xml was given.
96708: if test "${enable_xml+set}" = set; then :
96709:   enableval=$enable_xml; PHP_XML=$enableval
96710: else
96711: 
96712:   PHP_XML=yes
96713:   test "$PHP_ENABLE_ALL" && PHP_XML=$PHP_ENABLE_ALL
96714: 
96715: fi
96716: 
96717: 
96718: 
96719: ext_output="yes, shared"
96720: ext_shared=yes
96721: case $PHP_XML in
96722: shared,*)
96723:   PHP_XML=`echo "$PHP_XML"|$SED 's/^shared,//'`
96724:   ;;
96725: shared)
96726:   PHP_XML=yes
96727:   ;;
96728: no)
96729:   ext_output=no
96730:   ext_shared=no
96731:   ;;
96732: *)
96733:   ext_output=yes
96734:   ext_shared=no
96735:   ;;
96736: esac
96737: 
96738: 
96739: 
96740: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
96741: $as_echo "$ext_output" >&6; }
96742: 
96743: 
96744: 
96745: 
96746: if test -z "$PHP_LIBXML_DIR"; then
96747: 
96748: php_with_libxml_dir=no
96749: 
96750: { $as_echo "$as_me:${as_lineno-$LINENO}: checking libxml2 install dir" >&5
96751: $as_echo_n "checking libxml2 install dir... " >&6; }
96752: 
96753: # Check whether --with-libxml-dir was given.
96754: if test "${with_libxml_dir+set}" = set; then :
96755:   withval=$with_libxml_dir; PHP_LIBXML_DIR=$withval
96756: else
96757: 
96758:   PHP_LIBXML_DIR=no
96759: 
96760: 
96761: fi
96762: 
96763: 
96764: ext_output=$PHP_LIBXML_DIR
96765: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
96766: $as_echo "$ext_output" >&6; }
96767: 
96768: 
96769: 
96770: fi
96771: 
96772: 
96773: php_with_libexpat_dir=no
96774: 
96775: { $as_echo "$as_me:${as_lineno-$LINENO}: checking libexpat install dir" >&5
96776: $as_echo_n "checking libexpat install dir... " >&6; }
96777: 
96778: # Check whether --with-libexpat-dir was given.
96779: if test "${with_libexpat_dir+set}" = set; then :
96780:   withval=$with_libexpat_dir; PHP_LIBEXPAT_DIR=$withval
96781: else
96782: 
96783:   PHP_LIBEXPAT_DIR=no
96784: 
96785: 
96786: fi
96787: 
96788: 
96789: ext_output=$PHP_LIBEXPAT_DIR
96790: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
96791: $as_echo "$ext_output" >&6; }
96792: 
96793: 
96794: 
96795: 
96796: if test "$PHP_XML" != "no"; then
96797: 
96798:         if test "$PHP_LIBEXPAT_DIR" = "no"; then
96799: 
96800:     if test "$PHP_LIBXML" = "no"; then
96801:       as_fn_error $? "XML extension requires LIBXML extension, add --enable-libxml" "$LINENO" 5
96802:     fi
96803: 
96804: 
96805: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xml2-config path" >&5
96806: $as_echo_n "checking for xml2-config path... " >&6; }
96807: if ${ac_cv_php_xml2_config_path+:} false; then :
96808:   $as_echo_n "(cached) " >&6
96809: else
96810: 
96811:   for i in $PHP_LIBXML_DIR /usr/local /usr; do
96812:     if test -x "$i/bin/xml2-config"; then
96813:       ac_cv_php_xml2_config_path="$i/bin/xml2-config"
96814:       break
96815:     fi
96816:   done
96817: 
96818: fi
96819: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_php_xml2_config_path" >&5
96820: $as_echo "$ac_cv_php_xml2_config_path" >&6; }
96821: 
96822:   if test -x "$ac_cv_php_xml2_config_path"; then
96823:     XML2_CONFIG="$ac_cv_php_xml2_config_path"
96824:     libxml_full_version=`$XML2_CONFIG --version`
96825:     ac_IFS=$IFS
96826:     IFS="."
96827:     set $libxml_full_version
96828:     IFS=$ac_IFS
96829:     LIBXML_VERSION=`expr $1 \* 1000000 + $2 \* 1000 + $3`
96830:     if test "$LIBXML_VERSION" -ge "2006011"; then
96831:       LIBXML_LIBS=`$XML2_CONFIG --libs`
96832:       LIBXML_INCS=`$XML2_CONFIG --cflags`
96833: 
96834:   for ac_i in $LIBXML_LIBS; do
96835:     case $ac_i in
96836:     -pthread)
96837:       if test "$ext_shared" = "yes"; then
96838:         XML_SHARED_LIBADD="$XML_SHARED_LIBADD -pthread"
96839:       else
96840: 
96841: 
96842:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
96843: 
96844:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
96845:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
96846:     eval "EXTRA_LDFLAGS$unique=set"
96847:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
96848:   fi
96849: 
96850:       fi
96851:     ;;
96852:     -l*)
96853:       ac_ii=`echo $ac_i|cut -c 3-`
96854: 
96855: 
96856:   case $ac_ii in
96857:   c|c_r|pthread*) ;;
96858:   *)
96859:     if test "$ext_shared" = "yes"; then
96860:         XML_SHARED_LIBADD="$XML_SHARED_LIBADD -l$ac_ii"
96861:     else
96862: 
96863: 
96864:   case $ac_ii in
96865:   c|c_r|pthread*) ;;
96866:   *)
96867:       LIBS="$LIBS -l$ac_ii"
96868:    ;;
96869:   esac
96870: 
96871: 
96872:     fi
96873:    ;;
96874:   esac
96875: 
96876: 
96877:     ;;
96878:     -L*)
96879:       ac_ii=`echo $ac_i|cut -c 3-`
96880: 
96881:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
96882: 
96883:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
96884:     ai_p=$ac_ii
96885:   else
96886: 
96887:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
96888: 
96889:     ep_realdir=`(cd "$ep_dir" && pwd)`
96890:     ai_p="$ep_realdir"/`basename "$ac_ii"`
96891:   fi
96892: 
96893: 
96894:       if test "$ext_shared" = "yes"; then
96895:         XML_SHARED_LIBADD="-L$ai_p $XML_SHARED_LIBADD"
96896:         test -n "$ld_runpath_switch" && XML_SHARED_LIBADD="$ld_runpath_switch$ai_p $XML_SHARED_LIBADD"
96897:       else
96898: 
96899: 
96900: 
96901:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
96902: 
96903:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
96904:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
96905:     eval "LIBPATH$unique=set"
96906: 
96907:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
96908:     LDFLAGS="$LDFLAGS -L$ai_p"
96909:     PHP_RPATHS="$PHP_RPATHS $ai_p"
96910: 
96911:   fi
96912: 
96913: 
96914:       fi
96915: 
96916:   fi
96917: 
96918:     ;;
96919:     esac
96920:   done
96921: 
96922: 
96923:   for ac_i in $LIBXML_INCS; do
96924:     case $ac_i in
96925:     -I*)
96926:       ac_ii=`echo $ac_i|cut -c 3-`
96927: 
96928:   if test "$ac_ii" != "/usr/include"; then
96929: 
96930:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
96931:     ai_p=$ac_ii
96932:   else
96933: 
96934:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
96935: 
96936:     ep_realdir=`(cd "$ep_dir" && pwd)`
96937:     ai_p="$ep_realdir"/`basename "$ac_ii"`
96938:   fi
96939: 
96940: 
96941: 
96942:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
96943: 
96944:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
96945:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
96946:     eval "INCLUDEPATH$unique=set"
96947: 
96948:       if test ""; then
96949:         INCLUDES="-I$ai_p $INCLUDES"
96950:       else
96951:         INCLUDES="$INCLUDES -I$ai_p"
96952:       fi
96953: 
96954:   fi
96955: 
96956:   fi
96957: 
96958:     ;;
96959:     esac
96960:   done
96961: 
96962: 
96963:             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libxml build works" >&5
96964: $as_echo_n "checking whether libxml build works... " >&6; }
96965: if ${php_cv_libxml_build_works+:} false; then :
96966:   $as_echo_n "(cached) " >&6
96967: else
96968: 
96969: 
96970:   old_LIBS=$LIBS
96971:   LIBS="
96972:           $XML_SHARED_LIBADD
96973:          $LIBS"
96974:   if test "$cross_compiling" = yes; then :
96975: 
96976:     LIBS=$old_LIBS
96977: 
96978: else
96979:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
96980: /* end confdefs.h.  */
96981: 
96982: 
96983:     char xmlInitParser();
96984:     int main() {
96985:       xmlInitParser();
96986:       return 0;
96987:     }
96988: 
96989: _ACEOF
96990: if ac_fn_c_try_run "$LINENO"; then :
96991: 
96992:     LIBS=$old_LIBS
96993: 
96994:           php_cv_libxml_build_works=yes
96995: 
96996: 
96997: else
96998: 
96999:     LIBS=$old_LIBS
97000: 
97001:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
97002: $as_echo "no" >&6; }
97003:           as_fn_error $? "build test failed.  Please check the config.log for details." "$LINENO" 5
97004: 
97005: 
97006: fi
97007: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
97008:   conftest.$ac_objext conftest.beam conftest.$ac_ext
97009: fi
97010: 
97011: 
97012: 
97013: fi
97014: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_libxml_build_works" >&5
97015: $as_echo "$php_cv_libxml_build_works" >&6; }
97016:       if test "$php_cv_libxml_build_works" = "yes"; then
97017: 
97018: $as_echo "#define HAVE_LIBXML 1" >>confdefs.h
97019: 
97020:       fi
97021: 
97022:       xml_extra_sources="compat.c"
97023: 
97024:   am_i_shared=$PHP_XML_SHARED
97025:   is_it_shared=$PHP_LIBXML_SHARED
97026:   is_it_enabled=$PHP_LIBXML
97027:   if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
97028:     as_fn_error $? "
97029: You've configured extension xml to build statically, but it
97030: depends on extension libxml, which you've configured to build shared.
97031: You either need to build xml shared or build libxml statically for the
97032: build to be successful.
97033: " "$LINENO" 5
97034:   fi
97035:   if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then
97036:     as_fn_error $? "
97037: You've configured extension xml, which depends on extension libxml,
97038: but you've either not enabled libxml, or have disabled it.
97039: " "$LINENO" 5
97040:   fi
97041: 
97042: 
97043:     else
97044:       as_fn_error $? "libxml2 version 2.6.11 or greater required." "$LINENO" 5
97045:     fi
97046: else
97047:       as_fn_error $? "xml2-config not found. Use --with-libxml-dir=<DIR>" "$LINENO" 5
97048: 
97049:   fi
97050: 
97051:   fi
97052: 
97053:         if test "$PHP_LIBEXPAT_DIR" != "no"; then
97054:     for i in $PHP_XML $PHP_LIBEXPAT_DIR /usr /usr/local; do
97055:       if test -f "$i/$PHP_LIBDIR/libexpat.a" || test -f "$i/$PHP_LIBDIR/libexpat.$SHLIB_SUFFIX_NAME"; then
97056:         EXPAT_DIR=$i
97057:         break
97058:       fi
97059:     done
97060: 
97061:     if test -z "$EXPAT_DIR"; then
97062:       as_fn_error $? "not found. Please reinstall the expat distribution." "$LINENO" 5
97063:     fi
97064: 
97065: 
97066:   if test "$EXPAT_DIR/include" != "/usr/include"; then
97067: 
97068:   if test -z "$EXPAT_DIR/include" || echo "$EXPAT_DIR/include" | grep '^/' >/dev/null ; then
97069:     ai_p=$EXPAT_DIR/include
97070:   else
97071: 
97072:     ep_dir=`echo $EXPAT_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`
97073: 
97074:     ep_realdir=`(cd "$ep_dir" && pwd)`
97075:     ai_p="$ep_realdir"/`basename "$EXPAT_DIR/include"`
97076:   fi
97077: 
97078: 
97079: 
97080:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
97081: 
97082:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
97083:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
97084:     eval "INCLUDEPATH$unique=set"
97085: 
97086:       if test ""; then
97087:         INCLUDES="-I$ai_p $INCLUDES"
97088:       else
97089:         INCLUDES="$INCLUDES -I$ai_p"
97090:       fi
97091: 
97092:   fi
97093: 
97094:   fi
97095: 
97096: 
97097: 
97098:   if test "$ext_shared" = "yes"; then
97099:     XML_SHARED_LIBADD="-lexpat $XML_SHARED_LIBADD"
97100:     if test -n "$EXPAT_DIR/$PHP_LIBDIR"; then
97101: 
97102:   if test "$EXPAT_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$EXPAT_DIR/$PHP_LIBDIR" != "/usr/lib"; then
97103: 
97104:   if test -z "$EXPAT_DIR/$PHP_LIBDIR" || echo "$EXPAT_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
97105:     ai_p=$EXPAT_DIR/$PHP_LIBDIR
97106:   else
97107: 
97108:     ep_dir=`echo $EXPAT_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
97109: 
97110:     ep_realdir=`(cd "$ep_dir" && pwd)`
97111:     ai_p="$ep_realdir"/`basename "$EXPAT_DIR/$PHP_LIBDIR"`
97112:   fi
97113: 
97114: 
97115:       if test "$ext_shared" = "yes"; then
97116:         XML_SHARED_LIBADD="-L$ai_p $XML_SHARED_LIBADD"
97117:         test -n "$ld_runpath_switch" && XML_SHARED_LIBADD="$ld_runpath_switch$ai_p $XML_SHARED_LIBADD"
97118:       else
97119: 
97120: 
97121: 
97122:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
97123: 
97124:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
97125:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
97126:     eval "LIBPATH$unique=set"
97127: 
97128:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
97129:     LDFLAGS="$LDFLAGS -L$ai_p"
97130:     PHP_RPATHS="$PHP_RPATHS $ai_p"
97131: 
97132:   fi
97133: 
97134: 
97135:       fi
97136: 
97137:   fi
97138: 
97139:     fi
97140:   else
97141: 
97142: 
97143:   if test -n "$EXPAT_DIR/$PHP_LIBDIR"; then
97144: 
97145:   if test "$EXPAT_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$EXPAT_DIR/$PHP_LIBDIR" != "/usr/lib"; then
97146: 
97147:   if test -z "$EXPAT_DIR/$PHP_LIBDIR" || echo "$EXPAT_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
97148:     ai_p=$EXPAT_DIR/$PHP_LIBDIR
97149:   else
97150: 
97151:     ep_dir=`echo $EXPAT_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
97152: 
97153:     ep_realdir=`(cd "$ep_dir" && pwd)`
97154:     ai_p="$ep_realdir"/`basename "$EXPAT_DIR/$PHP_LIBDIR"`
97155:   fi
97156: 
97157: 
97158: 
97159: 
97160: 
97161:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
97162: 
97163:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
97164:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
97165:     eval "LIBPATH$unique=set"
97166: 
97167:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
97168:     LDFLAGS="$LDFLAGS -L$ai_p"
97169:     PHP_RPATHS="$PHP_RPATHS $ai_p"
97170: 
97171:   fi
97172: 
97173: 
97174: 
97175:   fi
97176: 
97177:   fi
97178: 
97179: 
97180:   case expat in
97181:   c|c_r|pthread*) ;;
97182:   *)
97183:       LIBS="-lexpat $LIBS"
97184:    ;;
97185:   esac
97186: 
97187: 
97188: 
97189: 
97190:   fi
97191: 
97192: 
97193: 
97194: $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
97195: 
97196:   fi
97197: 
97198: 
97199:   ext_builddir=ext/xml
97200:   ext_srcdir=$abs_srcdir/ext/xml
97201: 
97202:   ac_extra=
97203: 
97204:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
97205:     PHP_XML_SHARED=no
97206: 
97207: 
97208:   case ext/xml in
97209:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
97210:   /*) ac_srcdir=`echo "ext/xml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
97211:   *) ac_srcdir="$abs_srcdir/ext/xml/"; ac_bdir="ext/xml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
97212:   esac
97213: 
97214: 
97215: 
97216:   b_c_pre=$php_c_pre
97217:   b_cxx_pre=$php_cxx_pre
97218:   b_c_meta=$php_c_meta
97219:   b_cxx_meta=$php_cxx_meta
97220:   b_c_post=$php_c_post
97221:   b_cxx_post=$php_cxx_post
97222:   b_lo=$php_lo
97223: 
97224: 
97225:   old_IFS=$IFS
97226:   for ac_src in xml.c $xml_extra_sources; do
97227: 
97228:       IFS=.
97229:       set $ac_src
97230:       ac_obj=$1
97231:       IFS=$old_IFS
97232: 
97233:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
97234: 
97235:       case $ac_src in
97236:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
97237:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
97238:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
97239:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
97240:       esac
97241: 
97242:     cat >>Makefile.objects<<EOF
97243: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
97244: 	$ac_comp
97245: EOF
97246:   done
97247: 
97248: 
97249:     EXT_STATIC="$EXT_STATIC xml"
97250:     if test "$ext_shared" != "nocli"; then
97251:       EXT_CLI_STATIC="$EXT_CLI_STATIC xml"
97252:     fi
97253:   else
97254:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
97255:       PHP_XML_SHARED=yes
97256: 
97257:   case ext/xml in
97258:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
97259:   /*) ac_srcdir=`echo "ext/xml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
97260:   *) ac_srcdir="$abs_srcdir/ext/xml/"; ac_bdir="ext/xml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
97261:   esac
97262: 
97263: 
97264: 
97265:   b_c_pre=$shared_c_pre
97266:   b_cxx_pre=$shared_cxx_pre
97267:   b_c_meta=$shared_c_meta
97268:   b_cxx_meta=$shared_cxx_meta
97269:   b_c_post=$shared_c_post
97270:   b_cxx_post=$shared_cxx_post
97271:   b_lo=$shared_lo
97272: 
97273: 
97274:   old_IFS=$IFS
97275:   for ac_src in xml.c $xml_extra_sources; do
97276: 
97277:       IFS=.
97278:       set $ac_src
97279:       ac_obj=$1
97280:       IFS=$old_IFS
97281: 
97282:       shared_objects_xml="$shared_objects_xml $ac_bdir$ac_obj.lo"
97283: 
97284:       case $ac_src in
97285:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
97286:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
97287:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
97288:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
97289:       esac
97290: 
97291:     cat >>Makefile.objects<<EOF
97292: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
97293: 	$ac_comp
97294: EOF
97295:   done
97296: 
97297:       case $host_alias in
97298:         *netware*)
97299: 
97300:   install_modules="install-modules"
97301: 
97302:   case $host_alias in
97303:     *aix*)
97304:       suffix=so
97305:       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'
97306:       ;;
97307:     *netware*)
97308:       suffix=nlm
97309:       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)'
97310:       ;;
97311:     *)
97312:       suffix=la
97313:       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)'
97314:       ;;
97315:   esac
97316: 
97317:   if test "x" = "xyes"; then
97318:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpxml.$suffix"
97319:   else
97320:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpxml.$suffix"
97321:   fi
97322: 
97323:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_xml"
97324: 
97325:   cat >>Makefile.objects<<EOF
97326: \$(phplibdir)/phpxml.$suffix: $ext_builddir/phpxml.$suffix
97327: 	\$(LIBTOOL) --mode=install cp $ext_builddir/phpxml.$suffix \$(phplibdir)
97328: 
97329: $ext_builddir/phpxml.$suffix: \$(shared_objects_xml) \$(PHPXML_SHARED_DEPENDENCIES)
97330: 	$link_cmd
97331: 
97332: EOF
97333: 
97334:           ;;
97335:         *)
97336: 
97337:   install_modules="install-modules"
97338: 
97339:   case $host_alias in
97340:     *aix*)
97341:       suffix=so
97342:       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'
97343:       ;;
97344:     *netware*)
97345:       suffix=nlm
97346:       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)'
97347:       ;;
97348:     *)
97349:       suffix=la
97350:       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)'
97351:       ;;
97352:   esac
97353: 
97354:   if test "x" = "xyes"; then
97355:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/xml.$suffix"
97356:   else
97357:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/xml.$suffix"
97358:   fi
97359: 
97360:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_xml"
97361: 
97362:   cat >>Makefile.objects<<EOF
97363: \$(phplibdir)/xml.$suffix: $ext_builddir/xml.$suffix
97364: 	\$(LIBTOOL) --mode=install cp $ext_builddir/xml.$suffix \$(phplibdir)
97365: 
97366: $ext_builddir/xml.$suffix: \$(shared_objects_xml) \$(XML_SHARED_DEPENDENCIES)
97367: 	$link_cmd
97368: 
97369: EOF
97370: 
97371:           ;;
97372:       esac
97373: 
97374: cat >>confdefs.h <<_ACEOF
97375: #define COMPILE_DL_XML 1
97376: _ACEOF
97377: 
97378:     fi
97379:   fi
97380: 
97381:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
97382:     PHP_XML_SHARED=no
97383:     case "$PHP_SAPI" in
97384:       cgi|embed)
97385: 
97386: 
97387:   case ext/xml in
97388:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
97389:   /*) ac_srcdir=`echo "ext/xml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
97390:   *) ac_srcdir="$abs_srcdir/ext/xml/"; ac_bdir="ext/xml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
97391:   esac
97392: 
97393: 
97394: 
97395:   b_c_pre=$php_c_pre
97396:   b_cxx_pre=$php_cxx_pre
97397:   b_c_meta=$php_c_meta
97398:   b_cxx_meta=$php_cxx_meta
97399:   b_c_post=$php_c_post
97400:   b_cxx_post=$php_cxx_post
97401:   b_lo=$php_lo
97402: 
97403: 
97404:   old_IFS=$IFS
97405:   for ac_src in xml.c $xml_extra_sources; do
97406: 
97407:       IFS=.
97408:       set $ac_src
97409:       ac_obj=$1
97410:       IFS=$old_IFS
97411: 
97412:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
97413: 
97414:       case $ac_src in
97415:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
97416:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
97417:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
97418:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
97419:       esac
97420: 
97421:     cat >>Makefile.objects<<EOF
97422: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
97423: 	$ac_comp
97424: EOF
97425:   done
97426: 
97427: 
97428:         EXT_STATIC="$EXT_STATIC xml"
97429:         ;;
97430:       *)
97431: 
97432: 
97433:   case ext/xml in
97434:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
97435:   /*) ac_srcdir=`echo "ext/xml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
97436:   *) ac_srcdir="$abs_srcdir/ext/xml/"; ac_bdir="ext/xml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
97437:   esac
97438: 
97439: 
97440: 
97441:   b_c_pre=$php_c_pre
97442:   b_cxx_pre=$php_cxx_pre
97443:   b_c_meta=$php_c_meta
97444:   b_cxx_meta=$php_cxx_meta
97445:   b_c_post=$php_c_post
97446:   b_cxx_post=$php_cxx_post
97447:   b_lo=$php_lo
97448: 
97449: 
97450:   old_IFS=$IFS
97451:   for ac_src in xml.c $xml_extra_sources; do
97452: 
97453:       IFS=.
97454:       set $ac_src
97455:       ac_obj=$1
97456:       IFS=$old_IFS
97457: 
97458:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
97459: 
97460:       case $ac_src in
97461:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
97462:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
97463:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
97464:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
97465:       esac
97466: 
97467:     cat >>Makefile.objects<<EOF
97468: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
97469: 	$ac_comp
97470: EOF
97471:   done
97472: 
97473: 
97474:         ;;
97475:     esac
97476:     EXT_CLI_STATIC="$EXT_CLI_STATIC xml"
97477:   fi
97478: 
97479: 
97480:     BUILD_DIR="$BUILD_DIR $ext_builddir"
97481: 
97482: 
97483: 
97484:   if test "$ext_builddir" = "."; then
97485:     PHP_PECL_EXTENSION=xml
97486: 
97487:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
97488: 
97489:   fi
97490: 
97491: 
97492:   PHP_VAR_SUBST="$PHP_VAR_SUBST XML_SHARED_LIBADD"
97493: 
97494: 
97495: 
97496:     for header_file in ext/xml/; do
97497: 
97498: 
97499:   unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
97500: 
97501:   cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
97502:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
97503:     eval "INSTALLHEADERS$unique=set"
97504: 
97505:         INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
97506: 
97507:   fi
97508: 
97509:     done
97510: 
97511: 
97512: 
97513: $as_echo "#define HAVE_XML 1" >>confdefs.h
97514: 
97515: fi
97516: 
97517: 
97518: 
97519: php_enable_xmlreader=yes
97520: 
97521: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable XMLReader support" >&5
97522: $as_echo_n "checking whether to enable XMLReader support... " >&6; }
97523: # Check whether --enable-xmlreader was given.
97524: if test "${enable_xmlreader+set}" = set; then :
97525:   enableval=$enable_xmlreader; PHP_XMLREADER=$enableval
97526: else
97527: 
97528:   PHP_XMLREADER=yes
97529:   test "$PHP_ENABLE_ALL" && PHP_XMLREADER=$PHP_ENABLE_ALL
97530: 
97531: fi
97532: 
97533: 
97534: 
97535: ext_output="yes, shared"
97536: ext_shared=yes
97537: case $PHP_XMLREADER in
97538: shared,*)
97539:   PHP_XMLREADER=`echo "$PHP_XMLREADER"|$SED 's/^shared,//'`
97540:   ;;
97541: shared)
97542:   PHP_XMLREADER=yes
97543:   ;;
97544: no)
97545:   ext_output=no
97546:   ext_shared=no
97547:   ;;
97548: *)
97549:   ext_output=yes
97550:   ext_shared=no
97551:   ;;
97552: esac
97553: 
97554: 
97555: 
97556: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
97557: $as_echo "$ext_output" >&6; }
97558: 
97559: 
97560: 
97561: 
97562: if test -z "$PHP_LIBXML_DIR"; then
97563: 
97564: php_with_libxml_dir=no
97565: 
97566: { $as_echo "$as_me:${as_lineno-$LINENO}: checking libxml2 install dir" >&5
97567: $as_echo_n "checking libxml2 install dir... " >&6; }
97568: 
97569: # Check whether --with-libxml-dir was given.
97570: if test "${with_libxml_dir+set}" = set; then :
97571:   withval=$with_libxml_dir; PHP_LIBXML_DIR=$withval
97572: else
97573: 
97574:   PHP_LIBXML_DIR=no
97575: 
97576: 
97577: fi
97578: 
97579: 
97580: ext_output=$PHP_LIBXML_DIR
97581: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
97582: $as_echo "$ext_output" >&6; }
97583: 
97584: 
97585: 
97586: fi
97587: 
97588: if test "$PHP_XMLREADER" != "no"; then
97589: 
97590:   if test "$PHP_LIBXML" = "no"; then
97591:     as_fn_error $? "XMLReader extension requires LIBXML extension, add --enable-libxml" "$LINENO" 5
97592:   fi
97593: 
97594: 
97595: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xml2-config path" >&5
97596: $as_echo_n "checking for xml2-config path... " >&6; }
97597: if ${ac_cv_php_xml2_config_path+:} false; then :
97598:   $as_echo_n "(cached) " >&6
97599: else
97600: 
97601:   for i in $PHP_LIBXML_DIR /usr/local /usr; do
97602:     if test -x "$i/bin/xml2-config"; then
97603:       ac_cv_php_xml2_config_path="$i/bin/xml2-config"
97604:       break
97605:     fi
97606:   done
97607: 
97608: fi
97609: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_php_xml2_config_path" >&5
97610: $as_echo "$ac_cv_php_xml2_config_path" >&6; }
97611: 
97612:   if test -x "$ac_cv_php_xml2_config_path"; then
97613:     XML2_CONFIG="$ac_cv_php_xml2_config_path"
97614:     libxml_full_version=`$XML2_CONFIG --version`
97615:     ac_IFS=$IFS
97616:     IFS="."
97617:     set $libxml_full_version
97618:     IFS=$ac_IFS
97619:     LIBXML_VERSION=`expr $1 \* 1000000 + $2 \* 1000 + $3`
97620:     if test "$LIBXML_VERSION" -ge "2006011"; then
97621:       LIBXML_LIBS=`$XML2_CONFIG --libs`
97622:       LIBXML_INCS=`$XML2_CONFIG --cflags`
97623: 
97624:   for ac_i in $LIBXML_LIBS; do
97625:     case $ac_i in
97626:     -pthread)
97627:       if test "$ext_shared" = "yes"; then
97628:         XMLREADER_SHARED_LIBADD="$XMLREADER_SHARED_LIBADD -pthread"
97629:       else
97630: 
97631: 
97632:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
97633: 
97634:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
97635:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
97636:     eval "EXTRA_LDFLAGS$unique=set"
97637:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
97638:   fi
97639: 
97640:       fi
97641:     ;;
97642:     -l*)
97643:       ac_ii=`echo $ac_i|cut -c 3-`
97644: 
97645: 
97646:   case $ac_ii in
97647:   c|c_r|pthread*) ;;
97648:   *)
97649:     if test "$ext_shared" = "yes"; then
97650:         XMLREADER_SHARED_LIBADD="$XMLREADER_SHARED_LIBADD -l$ac_ii"
97651:     else
97652: 
97653: 
97654:   case $ac_ii in
97655:   c|c_r|pthread*) ;;
97656:   *)
97657:       LIBS="$LIBS -l$ac_ii"
97658:    ;;
97659:   esac
97660: 
97661: 
97662:     fi
97663:    ;;
97664:   esac
97665: 
97666: 
97667:     ;;
97668:     -L*)
97669:       ac_ii=`echo $ac_i|cut -c 3-`
97670: 
97671:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
97672: 
97673:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
97674:     ai_p=$ac_ii
97675:   else
97676: 
97677:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
97678: 
97679:     ep_realdir=`(cd "$ep_dir" && pwd)`
97680:     ai_p="$ep_realdir"/`basename "$ac_ii"`
97681:   fi
97682: 
97683: 
97684:       if test "$ext_shared" = "yes"; then
97685:         XMLREADER_SHARED_LIBADD="-L$ai_p $XMLREADER_SHARED_LIBADD"
97686:         test -n "$ld_runpath_switch" && XMLREADER_SHARED_LIBADD="$ld_runpath_switch$ai_p $XMLREADER_SHARED_LIBADD"
97687:       else
97688: 
97689: 
97690: 
97691:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
97692: 
97693:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
97694:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
97695:     eval "LIBPATH$unique=set"
97696: 
97697:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
97698:     LDFLAGS="$LDFLAGS -L$ai_p"
97699:     PHP_RPATHS="$PHP_RPATHS $ai_p"
97700: 
97701:   fi
97702: 
97703: 
97704:       fi
97705: 
97706:   fi
97707: 
97708:     ;;
97709:     esac
97710:   done
97711: 
97712: 
97713:   for ac_i in $LIBXML_INCS; do
97714:     case $ac_i in
97715:     -I*)
97716:       ac_ii=`echo $ac_i|cut -c 3-`
97717: 
97718:   if test "$ac_ii" != "/usr/include"; then
97719: 
97720:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
97721:     ai_p=$ac_ii
97722:   else
97723: 
97724:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
97725: 
97726:     ep_realdir=`(cd "$ep_dir" && pwd)`
97727:     ai_p="$ep_realdir"/`basename "$ac_ii"`
97728:   fi
97729: 
97730: 
97731: 
97732:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
97733: 
97734:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
97735:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
97736:     eval "INCLUDEPATH$unique=set"
97737: 
97738:       if test ""; then
97739:         INCLUDES="-I$ai_p $INCLUDES"
97740:       else
97741:         INCLUDES="$INCLUDES -I$ai_p"
97742:       fi
97743: 
97744:   fi
97745: 
97746:   fi
97747: 
97748:     ;;
97749:     esac
97750:   done
97751: 
97752: 
97753:             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libxml build works" >&5
97754: $as_echo_n "checking whether libxml build works... " >&6; }
97755: if ${php_cv_libxml_build_works+:} false; then :
97756:   $as_echo_n "(cached) " >&6
97757: else
97758: 
97759: 
97760:   old_LIBS=$LIBS
97761:   LIBS="
97762:           $XMLREADER_SHARED_LIBADD
97763:          $LIBS"
97764:   if test "$cross_compiling" = yes; then :
97765: 
97766:     LIBS=$old_LIBS
97767: 
97768: else
97769:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
97770: /* end confdefs.h.  */
97771: 
97772: 
97773:     char xmlInitParser();
97774:     int main() {
97775:       xmlInitParser();
97776:       return 0;
97777:     }
97778: 
97779: _ACEOF
97780: if ac_fn_c_try_run "$LINENO"; then :
97781: 
97782:     LIBS=$old_LIBS
97783: 
97784:           php_cv_libxml_build_works=yes
97785: 
97786: 
97787: else
97788: 
97789:     LIBS=$old_LIBS
97790: 
97791:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
97792: $as_echo "no" >&6; }
97793:           as_fn_error $? "build test failed.  Please check the config.log for details." "$LINENO" 5
97794: 
97795: 
97796: fi
97797: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
97798:   conftest.$ac_objext conftest.beam conftest.$ac_ext
97799: fi
97800: 
97801: 
97802: 
97803: fi
97804: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_libxml_build_works" >&5
97805: $as_echo "$php_cv_libxml_build_works" >&6; }
97806:       if test "$php_cv_libxml_build_works" = "yes"; then
97807: 
97808: $as_echo "#define HAVE_LIBXML 1" >>confdefs.h
97809: 
97810:       fi
97811: 
97812: 
97813: $as_echo "#define HAVE_XMLREADER 1" >>confdefs.h
97814: 
97815: 
97816:   ext_builddir=ext/xmlreader
97817:   ext_srcdir=$abs_srcdir/ext/xmlreader
97818: 
97819:   ac_extra=
97820: 
97821:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
97822:     PHP_XMLREADER_SHARED=no
97823: 
97824: 
97825:   case ext/xmlreader in
97826:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
97827:   /*) ac_srcdir=`echo "ext/xmlreader"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
97828:   *) ac_srcdir="$abs_srcdir/ext/xmlreader/"; ac_bdir="ext/xmlreader/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
97829:   esac
97830: 
97831: 
97832: 
97833:   b_c_pre=$php_c_pre
97834:   b_cxx_pre=$php_cxx_pre
97835:   b_c_meta=$php_c_meta
97836:   b_cxx_meta=$php_cxx_meta
97837:   b_c_post=$php_c_post
97838:   b_cxx_post=$php_cxx_post
97839:   b_lo=$php_lo
97840: 
97841: 
97842:   old_IFS=$IFS
97843:   for ac_src in php_xmlreader.c; do
97844: 
97845:       IFS=.
97846:       set $ac_src
97847:       ac_obj=$1
97848:       IFS=$old_IFS
97849: 
97850:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
97851: 
97852:       case $ac_src in
97853:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
97854:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
97855:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
97856:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
97857:       esac
97858: 
97859:     cat >>Makefile.objects<<EOF
97860: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
97861: 	$ac_comp
97862: EOF
97863:   done
97864: 
97865: 
97866:     EXT_STATIC="$EXT_STATIC xmlreader"
97867:     if test "$ext_shared" != "nocli"; then
97868:       EXT_CLI_STATIC="$EXT_CLI_STATIC xmlreader"
97869:     fi
97870:   else
97871:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
97872:       PHP_XMLREADER_SHARED=yes
97873: 
97874:   case ext/xmlreader in
97875:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
97876:   /*) ac_srcdir=`echo "ext/xmlreader"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
97877:   *) ac_srcdir="$abs_srcdir/ext/xmlreader/"; ac_bdir="ext/xmlreader/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
97878:   esac
97879: 
97880: 
97881: 
97882:   b_c_pre=$shared_c_pre
97883:   b_cxx_pre=$shared_cxx_pre
97884:   b_c_meta=$shared_c_meta
97885:   b_cxx_meta=$shared_cxx_meta
97886:   b_c_post=$shared_c_post
97887:   b_cxx_post=$shared_cxx_post
97888:   b_lo=$shared_lo
97889: 
97890: 
97891:   old_IFS=$IFS
97892:   for ac_src in php_xmlreader.c; do
97893: 
97894:       IFS=.
97895:       set $ac_src
97896:       ac_obj=$1
97897:       IFS=$old_IFS
97898: 
97899:       shared_objects_xmlreader="$shared_objects_xmlreader $ac_bdir$ac_obj.lo"
97900: 
97901:       case $ac_src in
97902:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
97903:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
97904:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
97905:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
97906:       esac
97907: 
97908:     cat >>Makefile.objects<<EOF
97909: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
97910: 	$ac_comp
97911: EOF
97912:   done
97913: 
97914:       case $host_alias in
97915:         *netware*)
97916: 
97917:   install_modules="install-modules"
97918: 
97919:   case $host_alias in
97920:     *aix*)
97921:       suffix=so
97922:       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'
97923:       ;;
97924:     *netware*)
97925:       suffix=nlm
97926:       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)'
97927:       ;;
97928:     *)
97929:       suffix=la
97930:       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)'
97931:       ;;
97932:   esac
97933: 
97934:   if test "x" = "xyes"; then
97935:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpxmlreader.$suffix"
97936:   else
97937:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpxmlreader.$suffix"
97938:   fi
97939: 
97940:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_xmlreader"
97941: 
97942:   cat >>Makefile.objects<<EOF
97943: \$(phplibdir)/phpxmlreader.$suffix: $ext_builddir/phpxmlreader.$suffix
97944: 	\$(LIBTOOL) --mode=install cp $ext_builddir/phpxmlreader.$suffix \$(phplibdir)
97945: 
97946: $ext_builddir/phpxmlreader.$suffix: \$(shared_objects_xmlreader) \$(PHPXMLREADER_SHARED_DEPENDENCIES)
97947: 	$link_cmd
97948: 
97949: EOF
97950: 
97951:           ;;
97952:         *)
97953: 
97954:   install_modules="install-modules"
97955: 
97956:   case $host_alias in
97957:     *aix*)
97958:       suffix=so
97959:       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'
97960:       ;;
97961:     *netware*)
97962:       suffix=nlm
97963:       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)'
97964:       ;;
97965:     *)
97966:       suffix=la
97967:       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)'
97968:       ;;
97969:   esac
97970: 
97971:   if test "x" = "xyes"; then
97972:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/xmlreader.$suffix"
97973:   else
97974:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/xmlreader.$suffix"
97975:   fi
97976: 
97977:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_xmlreader"
97978: 
97979:   cat >>Makefile.objects<<EOF
97980: \$(phplibdir)/xmlreader.$suffix: $ext_builddir/xmlreader.$suffix
97981: 	\$(LIBTOOL) --mode=install cp $ext_builddir/xmlreader.$suffix \$(phplibdir)
97982: 
97983: $ext_builddir/xmlreader.$suffix: \$(shared_objects_xmlreader) \$(XMLREADER_SHARED_DEPENDENCIES)
97984: 	$link_cmd
97985: 
97986: EOF
97987: 
97988:           ;;
97989:       esac
97990: 
97991: cat >>confdefs.h <<_ACEOF
97992: #define COMPILE_DL_XMLREADER 1
97993: _ACEOF
97994: 
97995:     fi
97996:   fi
97997: 
97998:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
97999:     PHP_XMLREADER_SHARED=no
98000:     case "$PHP_SAPI" in
98001:       cgi|embed)
98002: 
98003: 
98004:   case ext/xmlreader in
98005:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
98006:   /*) ac_srcdir=`echo "ext/xmlreader"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
98007:   *) ac_srcdir="$abs_srcdir/ext/xmlreader/"; ac_bdir="ext/xmlreader/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
98008:   esac
98009: 
98010: 
98011: 
98012:   b_c_pre=$php_c_pre
98013:   b_cxx_pre=$php_cxx_pre
98014:   b_c_meta=$php_c_meta
98015:   b_cxx_meta=$php_cxx_meta
98016:   b_c_post=$php_c_post
98017:   b_cxx_post=$php_cxx_post
98018:   b_lo=$php_lo
98019: 
98020: 
98021:   old_IFS=$IFS
98022:   for ac_src in php_xmlreader.c; do
98023: 
98024:       IFS=.
98025:       set $ac_src
98026:       ac_obj=$1
98027:       IFS=$old_IFS
98028: 
98029:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
98030: 
98031:       case $ac_src in
98032:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
98033:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
98034:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
98035:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
98036:       esac
98037: 
98038:     cat >>Makefile.objects<<EOF
98039: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
98040: 	$ac_comp
98041: EOF
98042:   done
98043: 
98044: 
98045:         EXT_STATIC="$EXT_STATIC xmlreader"
98046:         ;;
98047:       *)
98048: 
98049: 
98050:   case ext/xmlreader in
98051:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
98052:   /*) ac_srcdir=`echo "ext/xmlreader"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
98053:   *) ac_srcdir="$abs_srcdir/ext/xmlreader/"; ac_bdir="ext/xmlreader/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
98054:   esac
98055: 
98056: 
98057: 
98058:   b_c_pre=$php_c_pre
98059:   b_cxx_pre=$php_cxx_pre
98060:   b_c_meta=$php_c_meta
98061:   b_cxx_meta=$php_cxx_meta
98062:   b_c_post=$php_c_post
98063:   b_cxx_post=$php_cxx_post
98064:   b_lo=$php_lo
98065: 
98066: 
98067:   old_IFS=$IFS
98068:   for ac_src in php_xmlreader.c; do
98069: 
98070:       IFS=.
98071:       set $ac_src
98072:       ac_obj=$1
98073:       IFS=$old_IFS
98074: 
98075:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
98076: 
98077:       case $ac_src in
98078:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
98079:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
98080:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
98081:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
98082:       esac
98083: 
98084:     cat >>Makefile.objects<<EOF
98085: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
98086: 	$ac_comp
98087: EOF
98088:   done
98089: 
98090: 
98091:         ;;
98092:     esac
98093:     EXT_CLI_STATIC="$EXT_CLI_STATIC xmlreader"
98094:   fi
98095: 
98096: 
98097:     BUILD_DIR="$BUILD_DIR $ext_builddir"
98098: 
98099: 
98100: 
98101:   if test "$ext_builddir" = "."; then
98102:     PHP_PECL_EXTENSION=xmlreader
98103: 
98104:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
98105: 
98106:   fi
98107: 
98108: 
98109:   am_i_shared=$PHP_XMLREADER_SHARED
98110:   is_it_shared=$PHP_DOM_SHARED
98111:   is_it_enabled=$PHP_DOM
98112:   if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
98113:     as_fn_error $? "
98114: You've configured extension xmlreader to build statically, but it
98115: depends on extension dom, which you've configured to build shared.
98116: You either need to build xmlreader shared or build dom statically for the
98117: build to be successful.
98118: " "$LINENO" 5
98119:   fi
98120:   if test "x$is_it_enabled" = "xno" && test "xtrue" != "xtrue"; then
98121:     as_fn_error $? "
98122: You've configured extension xmlreader, which depends on extension dom,
98123: but you've either not enabled dom, or have disabled it.
98124: " "$LINENO" 5
98125:   fi
98126: 
98127: 
98128:   PHP_VAR_SUBST="$PHP_VAR_SUBST XMLREADER_SHARED_LIBADD"
98129: 
98130: 
98131:     else
98132:       as_fn_error $? "libxml2 version 2.6.11 or greater required." "$LINENO" 5
98133:     fi
98134: else
98135:     as_fn_error $? "xml2-config not found. Please check your libxml2 installation." "$LINENO" 5
98136: 
98137:   fi
98138: 
98139: fi
98140: 
98141: 
98142: # Local macros for automake & autoconf
98143: 
98144: 
98145: 
98146: 
98147: 
98148: 
98149: 
98150: 
98151: 
98152: 
98153: 
98154: 
98155: 
98156: php_with_xmlrpc=no
98157: 
98158: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XMLRPC-EPI support" >&5
98159: $as_echo_n "checking for XMLRPC-EPI support... " >&6; }
98160: 
98161: # Check whether --with-xmlrpc was given.
98162: if test "${with_xmlrpc+set}" = set; then :
98163:   withval=$with_xmlrpc; PHP_XMLRPC=$withval
98164: else
98165: 
98166:   PHP_XMLRPC=no
98167:   test "$PHP_ENABLE_ALL" && PHP_XMLRPC=$PHP_ENABLE_ALL
98168: 
98169: fi
98170: 
98171: 
98172: 
98173: ext_output="yes, shared"
98174: ext_shared=yes
98175: case $PHP_XMLRPC in
98176: shared,*)
98177:   PHP_XMLRPC=`echo "$PHP_XMLRPC"|$SED 's/^shared,//'`
98178:   ;;
98179: shared)
98180:   PHP_XMLRPC=yes
98181:   ;;
98182: no)
98183:   ext_output=no
98184:   ext_shared=no
98185:   ;;
98186: *)
98187:   ext_output=yes
98188:   ext_shared=no
98189:   ;;
98190: esac
98191: 
98192: 
98193: 
98194: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
98195: $as_echo "$ext_output" >&6; }
98196: 
98197: 
98198: 
98199: 
98200: if test -z "$PHP_LIBXML_DIR"; then
98201: 
98202: php_with_libxml_dir=no
98203: 
98204: { $as_echo "$as_me:${as_lineno-$LINENO}: checking libxml2 install dir" >&5
98205: $as_echo_n "checking libxml2 install dir... " >&6; }
98206: 
98207: # Check whether --with-libxml-dir was given.
98208: if test "${with_libxml_dir+set}" = set; then :
98209:   withval=$with_libxml_dir; PHP_LIBXML_DIR=$withval
98210: else
98211: 
98212:   PHP_LIBXML_DIR=no
98213: 
98214: 
98215: fi
98216: 
98217: 
98218: ext_output=$PHP_LIBXML_DIR
98219: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
98220: $as_echo "$ext_output" >&6; }
98221: 
98222: 
98223: 
98224: fi
98225: 
98226: 
98227: php_with_libexpat_dir=no
98228: 
98229: { $as_echo "$as_me:${as_lineno-$LINENO}: checking libexpat dir for XMLRPC-EPI" >&5
98230: $as_echo_n "checking libexpat dir for XMLRPC-EPI... " >&6; }
98231: 
98232: # Check whether --with-libexpat-dir was given.
98233: if test "${with_libexpat_dir+set}" = set; then :
98234:   withval=$with_libexpat_dir; PHP_LIBEXPAT_DIR=$withval
98235: else
98236: 
98237:   PHP_LIBEXPAT_DIR=no
98238: 
98239: 
98240: fi
98241: 
98242: 
98243: ext_output=$PHP_LIBEXPAT_DIR
98244: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
98245: $as_echo "$ext_output" >&6; }
98246: 
98247: 
98248: 
98249: 
98250: 
98251: php_with_iconv_dir=no
98252: 
98253: { $as_echo "$as_me:${as_lineno-$LINENO}: checking iconv dir for XMLRPC-EPI" >&5
98254: $as_echo_n "checking iconv dir for XMLRPC-EPI... " >&6; }
98255: 
98256: # Check whether --with-iconv-dir was given.
98257: if test "${with_iconv_dir+set}" = set; then :
98258:   withval=$with_iconv_dir; PHP_ICONV_DIR=$withval
98259: else
98260: 
98261:   PHP_ICONV_DIR=no
98262: 
98263: 
98264: fi
98265: 
98266: 
98267: ext_output=$PHP_ICONV_DIR
98268: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
98269: $as_echo "$ext_output" >&6; }
98270: 
98271: 
98272: 
98273: 
98274: if test "$PHP_XMLRPC" != "no"; then
98275: 
98276: 
98277:   am_i_shared=$PHP_XMLRPC_SHARED
98278:   is_it_shared=$PHP_LIBXML_SHARED
98279:   is_it_enabled=$PHP_LIBXML
98280:   if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
98281:     as_fn_error $? "
98282: You've configured extension xmlrpc to build statically, but it
98283: depends on extension libxml, which you've configured to build shared.
98284: You either need to build xmlrpc shared or build libxml statically for the
98285: build to be successful.
98286: " "$LINENO" 5
98287:   fi
98288:   if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then
98289:     as_fn_error $? "
98290: You've configured extension xmlrpc, which depends on extension libxml,
98291: but you've either not enabled libxml, or have disabled it.
98292: " "$LINENO" 5
98293:   fi
98294: 
98295: 
98296:   PHP_VAR_SUBST="$PHP_VAR_SUBST XMLRPC_SHARED_LIBADD"
98297: 
98298: 
98299: $as_echo "#define HAVE_XMLRPC 1" >>confdefs.h
98300: 
98301: 
98302:         if test "$PHP_LIBEXPAT_DIR" = "no"; then
98303: 
98304:     if test "$PHP_LIBXML" = "no"; then
98305:       as_fn_error $? "XML-RPC extension requires LIBXML extension, add --enable-libxml" "$LINENO" 5
98306:     fi
98307: 
98308: 
98309: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xml2-config path" >&5
98310: $as_echo_n "checking for xml2-config path... " >&6; }
98311: if ${ac_cv_php_xml2_config_path+:} false; then :
98312:   $as_echo_n "(cached) " >&6
98313: else
98314: 
98315:   for i in $PHP_LIBXML_DIR /usr/local /usr; do
98316:     if test -x "$i/bin/xml2-config"; then
98317:       ac_cv_php_xml2_config_path="$i/bin/xml2-config"
98318:       break
98319:     fi
98320:   done
98321: 
98322: fi
98323: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_php_xml2_config_path" >&5
98324: $as_echo "$ac_cv_php_xml2_config_path" >&6; }
98325: 
98326:   if test -x "$ac_cv_php_xml2_config_path"; then
98327:     XML2_CONFIG="$ac_cv_php_xml2_config_path"
98328:     libxml_full_version=`$XML2_CONFIG --version`
98329:     ac_IFS=$IFS
98330:     IFS="."
98331:     set $libxml_full_version
98332:     IFS=$ac_IFS
98333:     LIBXML_VERSION=`expr $1 \* 1000000 + $2 \* 1000 + $3`
98334:     if test "$LIBXML_VERSION" -ge "2006011"; then
98335:       LIBXML_LIBS=`$XML2_CONFIG --libs`
98336:       LIBXML_INCS=`$XML2_CONFIG --cflags`
98337: 
98338:   for ac_i in $LIBXML_LIBS; do
98339:     case $ac_i in
98340:     -pthread)
98341:       if test "$ext_shared" = "yes"; then
98342:         XMLRPC_SHARED_LIBADD="$XMLRPC_SHARED_LIBADD -pthread"
98343:       else
98344: 
98345: 
98346:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
98347: 
98348:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
98349:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
98350:     eval "EXTRA_LDFLAGS$unique=set"
98351:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
98352:   fi
98353: 
98354:       fi
98355:     ;;
98356:     -l*)
98357:       ac_ii=`echo $ac_i|cut -c 3-`
98358: 
98359: 
98360:   case $ac_ii in
98361:   c|c_r|pthread*) ;;
98362:   *)
98363:     if test "$ext_shared" = "yes"; then
98364:         XMLRPC_SHARED_LIBADD="$XMLRPC_SHARED_LIBADD -l$ac_ii"
98365:     else
98366: 
98367: 
98368:   case $ac_ii in
98369:   c|c_r|pthread*) ;;
98370:   *)
98371:       LIBS="$LIBS -l$ac_ii"
98372:    ;;
98373:   esac
98374: 
98375: 
98376:     fi
98377:    ;;
98378:   esac
98379: 
98380: 
98381:     ;;
98382:     -L*)
98383:       ac_ii=`echo $ac_i|cut -c 3-`
98384: 
98385:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
98386: 
98387:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
98388:     ai_p=$ac_ii
98389:   else
98390: 
98391:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
98392: 
98393:     ep_realdir=`(cd "$ep_dir" && pwd)`
98394:     ai_p="$ep_realdir"/`basename "$ac_ii"`
98395:   fi
98396: 
98397: 
98398:       if test "$ext_shared" = "yes"; then
98399:         XMLRPC_SHARED_LIBADD="-L$ai_p $XMLRPC_SHARED_LIBADD"
98400:         test -n "$ld_runpath_switch" && XMLRPC_SHARED_LIBADD="$ld_runpath_switch$ai_p $XMLRPC_SHARED_LIBADD"
98401:       else
98402: 
98403: 
98404: 
98405:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
98406: 
98407:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
98408:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
98409:     eval "LIBPATH$unique=set"
98410: 
98411:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
98412:     LDFLAGS="$LDFLAGS -L$ai_p"
98413:     PHP_RPATHS="$PHP_RPATHS $ai_p"
98414: 
98415:   fi
98416: 
98417: 
98418:       fi
98419: 
98420:   fi
98421: 
98422:     ;;
98423:     esac
98424:   done
98425: 
98426: 
98427:   for ac_i in $LIBXML_INCS; do
98428:     case $ac_i in
98429:     -I*)
98430:       ac_ii=`echo $ac_i|cut -c 3-`
98431: 
98432:   if test "$ac_ii" != "/usr/include"; then
98433: 
98434:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
98435:     ai_p=$ac_ii
98436:   else
98437: 
98438:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
98439: 
98440:     ep_realdir=`(cd "$ep_dir" && pwd)`
98441:     ai_p="$ep_realdir"/`basename "$ac_ii"`
98442:   fi
98443: 
98444: 
98445: 
98446:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
98447: 
98448:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
98449:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
98450:     eval "INCLUDEPATH$unique=set"
98451: 
98452:       if test ""; then
98453:         INCLUDES="-I$ai_p $INCLUDES"
98454:       else
98455:         INCLUDES="$INCLUDES -I$ai_p"
98456:       fi
98457: 
98458:   fi
98459: 
98460:   fi
98461: 
98462:     ;;
98463:     esac
98464:   done
98465: 
98466: 
98467:             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libxml build works" >&5
98468: $as_echo_n "checking whether libxml build works... " >&6; }
98469: if ${php_cv_libxml_build_works+:} false; then :
98470:   $as_echo_n "(cached) " >&6
98471: else
98472: 
98473: 
98474:   old_LIBS=$LIBS
98475:   LIBS="
98476:           $XMLRPC_SHARED_LIBADD
98477:          $LIBS"
98478:   if test "$cross_compiling" = yes; then :
98479: 
98480:     LIBS=$old_LIBS
98481: 
98482: else
98483:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
98484: /* end confdefs.h.  */
98485: 
98486: 
98487:     char xmlInitParser();
98488:     int main() {
98489:       xmlInitParser();
98490:       return 0;
98491:     }
98492: 
98493: _ACEOF
98494: if ac_fn_c_try_run "$LINENO"; then :
98495: 
98496:     LIBS=$old_LIBS
98497: 
98498:           php_cv_libxml_build_works=yes
98499: 
98500: 
98501: else
98502: 
98503:     LIBS=$old_LIBS
98504: 
98505:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
98506: $as_echo "no" >&6; }
98507:           as_fn_error $? "build test failed.  Please check the config.log for details." "$LINENO" 5
98508: 
98509: 
98510: fi
98511: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
98512:   conftest.$ac_objext conftest.beam conftest.$ac_ext
98513: fi
98514: 
98515: 
98516: 
98517: fi
98518: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_libxml_build_works" >&5
98519: $as_echo "$php_cv_libxml_build_works" >&6; }
98520:       if test "$php_cv_libxml_build_works" = "yes"; then
98521: 
98522: $as_echo "#define HAVE_LIBXML 1" >>confdefs.h
98523: 
98524:       fi
98525: 
98526:       if test "$PHP_XML" = "no"; then
98527: 
98528: 
98529:   case ext/xml in
98530:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
98531:   /*) ac_srcdir=`echo "ext/xml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
98532:   *) ac_srcdir="$abs_srcdir/ext/xml/"; ac_bdir="ext/xml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
98533:   esac
98534: 
98535: 
98536: 
98537:   b_c_pre=$php_c_pre
98538:   b_cxx_pre=$php_cxx_pre
98539:   b_c_meta=$php_c_meta
98540:   b_cxx_meta=$php_cxx_meta
98541:   b_c_post=$php_c_post
98542:   b_cxx_post=$php_cxx_post
98543:   b_lo=$php_lo
98544: 
98545: 
98546:   old_IFS=$IFS
98547:   for ac_src in compat.c; do
98548: 
98549:       IFS=.
98550:       set $ac_src
98551:       ac_obj=$1
98552:       IFS=$old_IFS
98553: 
98554:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
98555: 
98556:       case $ac_src in
98557:         *.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" ;;
98558:         *.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" ;;
98559:         *.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" ;;
98560:         *.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" ;;
98561:       esac
98562: 
98563:     cat >>Makefile.objects<<EOF
98564: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
98565: 	$ac_comp
98566: EOF
98567:   done
98568: 
98569: 
98570: 
98571: 
98572:     BUILD_DIR="$BUILD_DIR ext/xml"
98573: 
98574: 
98575:       fi
98576: 
98577:     else
98578:       as_fn_error $? "libxml2 version 2.6.11 or greater required." "$LINENO" 5
98579:     fi
98580: else
98581:       as_fn_error $? "xml2-config not found. Use --with-libxml-dir=<DIR>" "$LINENO" 5
98582: 
98583:   fi
98584: 
98585:   else
98586:     testval=no
98587:     for i in $PHP_LIBEXPAT_DIR $XMLRPC_DIR /usr/local /usr; do
98588:       if test -f $i/$PHP_LIBDIR/libexpat.a || test -f $i/$PHP_LIBDIR/libexpat.$SHLIB_SUFFIX_NAME; then
98589: 
98590: $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
98591: 
98592: 
98593: 
98594:   if test "$ext_shared" = "yes"; then
98595:     XMLRPC_SHARED_LIBADD="-lexpat $XMLRPC_SHARED_LIBADD"
98596:     if test -n "$i/$PHP_LIBDIR"; then
98597: 
98598:   if test "$i/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$i/$PHP_LIBDIR" != "/usr/lib"; then
98599: 
98600:   if test -z "$i/$PHP_LIBDIR" || echo "$i/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
98601:     ai_p=$i/$PHP_LIBDIR
98602:   else
98603: 
98604:     ep_dir=`echo $i/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
98605: 
98606:     ep_realdir=`(cd "$ep_dir" && pwd)`
98607:     ai_p="$ep_realdir"/`basename "$i/$PHP_LIBDIR"`
98608:   fi
98609: 
98610: 
98611:       if test "$ext_shared" = "yes"; then
98612:         XMLRPC_SHARED_LIBADD="-L$ai_p $XMLRPC_SHARED_LIBADD"
98613:         test -n "$ld_runpath_switch" && XMLRPC_SHARED_LIBADD="$ld_runpath_switch$ai_p $XMLRPC_SHARED_LIBADD"
98614:       else
98615: 
98616: 
98617: 
98618:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
98619: 
98620:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
98621:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
98622:     eval "LIBPATH$unique=set"
98623: 
98624:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
98625:     LDFLAGS="$LDFLAGS -L$ai_p"
98626:     PHP_RPATHS="$PHP_RPATHS $ai_p"
98627: 
98628:   fi
98629: 
98630: 
98631:       fi
98632: 
98633:   fi
98634: 
98635:     fi
98636:   else
98637: 
98638: 
98639:   if test -n "$i/$PHP_LIBDIR"; then
98640: 
98641:   if test "$i/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$i/$PHP_LIBDIR" != "/usr/lib"; then
98642: 
98643:   if test -z "$i/$PHP_LIBDIR" || echo "$i/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
98644:     ai_p=$i/$PHP_LIBDIR
98645:   else
98646: 
98647:     ep_dir=`echo $i/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
98648: 
98649:     ep_realdir=`(cd "$ep_dir" && pwd)`
98650:     ai_p="$ep_realdir"/`basename "$i/$PHP_LIBDIR"`
98651:   fi
98652: 
98653: 
98654: 
98655: 
98656: 
98657:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
98658: 
98659:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
98660:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
98661:     eval "LIBPATH$unique=set"
98662: 
98663:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
98664:     LDFLAGS="$LDFLAGS -L$ai_p"
98665:     PHP_RPATHS="$PHP_RPATHS $ai_p"
98666: 
98667:   fi
98668: 
98669: 
98670: 
98671:   fi
98672: 
98673:   fi
98674: 
98675: 
98676:   case expat in
98677:   c|c_r|pthread*) ;;
98678:   *)
98679:       LIBS="-lexpat $LIBS"
98680:    ;;
98681:   esac
98682: 
98683: 
98684: 
98685: 
98686:   fi
98687: 
98688: 
98689: 
98690:   if test "$i/include" != "/usr/include"; then
98691: 
98692:   if test -z "$i/include" || echo "$i/include" | grep '^/' >/dev/null ; then
98693:     ai_p=$i/include
98694:   else
98695: 
98696:     ep_dir=`echo $i/include|$SED 's%/*[^/][^/]*/*$%%'`
98697: 
98698:     ep_realdir=`(cd "$ep_dir" && pwd)`
98699:     ai_p="$ep_realdir"/`basename "$i/include"`
98700:   fi
98701: 
98702: 
98703: 
98704:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
98705: 
98706:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
98707:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
98708:     eval "INCLUDEPATH$unique=set"
98709: 
98710:       if test ""; then
98711:         INCLUDES="-I$ai_p $INCLUDES"
98712:       else
98713:         INCLUDES="$INCLUDES -I$ai_p"
98714:       fi
98715: 
98716:   fi
98717: 
98718:   fi
98719: 
98720:         testval=yes
98721:         break
98722:       fi
98723:     done
98724: 
98725:     if test "$testval" = "no"; then
98726:       as_fn_error $? "XML-RPC support requires libexpat. Use --with-libexpat-dir=<DIR> (deprecated!)" "$LINENO" 5
98727:     fi
98728:   fi
98729: 
98730:     if test "$PHP_ICONV_SHARED" = "yes" || test "$PHP_ICONV" = "no"; then
98731: 
98732:     if test "$PHP_ICONV_DIR" != "no"; then
98733:       PHP_ICONV=$PHP_ICONV_DIR
98734:     fi
98735: 
98736:     if test -z "$PHP_ICONV" || test "$PHP_ICONV" = "no"; then
98737:       PHP_ICONV=yes
98738:     fi
98739: 
98740: 
98741:   found_iconv=no
98742:   unset ICONV_DIR
98743: 
98744:   # Create the directories for a VPATH build:
98745:   $php_shtool mkdir -p ext/iconv
98746: 
98747:   echo > ext/iconv/php_have_bsd_iconv.h
98748:   echo > ext/iconv/php_have_ibm_iconv.h
98749:   echo > ext/iconv/php_have_glibc_iconv.h
98750:   echo > ext/iconv/php_have_libiconv.h
98751:   echo > ext/iconv/php_have_iconv.h
98752:   echo > ext/iconv/php_php_iconv_impl.h
98753:   echo > ext/iconv/php_iconv_aliased_libiconv.h
98754:   echo > ext/iconv/php_php_iconv_h_path.h
98755:   echo > ext/iconv/php_iconv_supports_errno.h
98756: 
98757: 
98758:   if test "$PHP_ICONV" = "yes"; then
98759:             LIBS_save="$LIBS"
98760:     LIBS=
98761:     ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
98762: if test "x$ac_cv_func_iconv" = xyes; then :
98763: 
98764:       found_iconv=yes
98765: 
98766: else
98767: 
98768:       ac_fn_c_check_func "$LINENO" "libiconv" "ac_cv_func_libiconv"
98769: if test "x$ac_cv_func_libiconv" = xyes; then :
98770: 
98771: 
98772:   echo "#define HAVE_LIBICONV 1" > ext/iconv/php_have_libiconv.h
98773: 
98774: 
98775: $as_echo "#define HAVE_LIBICONV 1" >>confdefs.h
98776: 
98777:         found_iconv=yes
98778: 
98779: fi
98780: 
98781: 
98782: fi
98783: 
98784:     LIBS="$LIBS_save"
98785:   fi
98786: 
98787:         if test "$found_iconv" = "no"; then
98788: 
98789:     for i in $PHP_ICONV /usr/local /usr; do
98790:       if test -r $i/include/giconv.h; then
98791: 
98792: $as_echo "#define HAVE_GICONV_H 1" >>confdefs.h
98793: 
98794:         ICONV_DIR=$i
98795:         iconv_lib_name=giconv
98796:         break
98797:       elif test -r $i/include/iconv.h; then
98798:         ICONV_DIR=$i
98799:         iconv_lib_name=iconv
98800:         break
98801:       fi
98802:     done
98803: 
98804:     if test -z "$ICONV_DIR"; then
98805:       as_fn_error $? "Please specify the install prefix of iconv with --with-iconv=<DIR>" "$LINENO" 5
98806:     fi
98807: 
98808:     if test -f $ICONV_DIR/$PHP_LIBDIR/lib$iconv_lib_name.a ||
98809:        test -f $ICONV_DIR/$PHP_LIBDIR/lib$iconv_lib_name.$SHLIB_SUFFIX_NAME
98810:     then
98811: 
98812:   save_old_LDFLAGS=$LDFLAGS
98813:   ac_stuff="
98814:         -L$ICONV_DIR/$PHP_LIBDIR
98815:       "
98816: 
98817:   save_ext_shared=$ext_shared
98818:   ext_shared=yes
98819: 
98820:   for ac_i in $ac_stuff; do
98821:     case $ac_i in
98822:     -pthread)
98823:       if test "$ext_shared" = "yes"; then
98824:         LDFLAGS="$LDFLAGS -pthread"
98825:       else
98826: 
98827: 
98828:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
98829: 
98830:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
98831:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
98832:     eval "EXTRA_LDFLAGS$unique=set"
98833:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
98834:   fi
98835: 
98836:       fi
98837:     ;;
98838:     -l*)
98839:       ac_ii=`echo $ac_i|cut -c 3-`
98840: 
98841: 
98842:   case $ac_ii in
98843:   c|c_r|pthread*) ;;
98844:   *)
98845:     if test "$ext_shared" = "yes"; then
98846:         LDFLAGS="$LDFLAGS -l$ac_ii"
98847:     else
98848: 
98849: 
98850:   case $ac_ii in
98851:   c|c_r|pthread*) ;;
98852:   *)
98853:       LIBS="$LIBS -l$ac_ii"
98854:    ;;
98855:   esac
98856: 
98857: 
98858:     fi
98859:    ;;
98860:   esac
98861: 
98862: 
98863:     ;;
98864:     -L*)
98865:       ac_ii=`echo $ac_i|cut -c 3-`
98866: 
98867:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
98868: 
98869:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
98870:     ai_p=$ac_ii
98871:   else
98872: 
98873:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
98874: 
98875:     ep_realdir=`(cd "$ep_dir" && pwd)`
98876:     ai_p="$ep_realdir"/`basename "$ac_ii"`
98877:   fi
98878: 
98879: 
98880:       if test "$ext_shared" = "yes"; then
98881:         LDFLAGS="-L$ai_p $LDFLAGS"
98882:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
98883:       else
98884: 
98885: 
98886: 
98887:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
98888: 
98889:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
98890:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
98891:     eval "LIBPATH$unique=set"
98892: 
98893:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
98894:     LDFLAGS="$LDFLAGS -L$ai_p"
98895:     PHP_RPATHS="$PHP_RPATHS $ai_p"
98896: 
98897:   fi
98898: 
98899: 
98900:       fi
98901: 
98902:   fi
98903: 
98904:     ;;
98905:     esac
98906:   done
98907: 
98908:   as_ac_Lib=`$as_echo "ac_cv_lib_$iconv_lib_name''_libiconv" | $as_tr_sh`
98909: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiconv in -l$iconv_lib_name" >&5
98910: $as_echo_n "checking for libiconv in -l$iconv_lib_name... " >&6; }
98911: if eval \${$as_ac_Lib+:} false; then :
98912:   $as_echo_n "(cached) " >&6
98913: else
98914:   ac_check_lib_save_LIBS=$LIBS
98915: LIBS="-l$iconv_lib_name  $LIBS"
98916: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
98917: /* end confdefs.h.  */
98918: 
98919: /* Override any GCC internal prototype to avoid an error.
98920:    Use char because int might match the return type of a GCC
98921:    builtin and then its argument prototype would still apply.  */
98922: #ifdef __cplusplus
98923: extern "C"
98924: #endif
98925: char libiconv ();
98926: int
98927: main ()
98928: {
98929: return libiconv ();
98930:   ;
98931:   return 0;
98932: }
98933: _ACEOF
98934: if ac_fn_c_try_link "$LINENO"; then :
98935:   eval "$as_ac_Lib=yes"
98936: else
98937:   eval "$as_ac_Lib=no"
98938: fi
98939: rm -f core conftest.err conftest.$ac_objext \
98940:     conftest$ac_exeext conftest.$ac_ext
98941: LIBS=$ac_check_lib_save_LIBS
98942: fi
98943: eval ac_res=\$$as_ac_Lib
98944: 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
98945: $as_echo "$ac_res" >&6; }
98946: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
98947: 
98948:     LDFLAGS=$save_old_LDFLAGS
98949:     ext_shared=$save_ext_shared
98950: 
98951:         found_iconv=yes
98952: 
98953:   echo "#define HAVE_LIBICONV 1" > ext/iconv/php_have_libiconv.h
98954: 
98955: 
98956: $as_echo "#define HAVE_LIBICONV 1" >>confdefs.h
98957: 
98958: 
98959:   echo "#define ICONV_ALIASED_LIBICONV 1" > ext/iconv/php_iconv_aliased_libiconv.h
98960: 
98961: 
98962: $as_echo "#define ICONV_ALIASED_LIBICONV 1" >>confdefs.h
98963: 
98964: 
98965: 
98966: else
98967: 
98968:     LDFLAGS=$save_old_LDFLAGS
98969:     ext_shared=$save_ext_shared
98970:     unset ac_cv_lib_$iconv_lib_name_libiconv
98971: 
98972: 
98973:   save_old_LDFLAGS=$LDFLAGS
98974:   ac_stuff="
98975:           -L$ICONV_DIR/$PHP_LIBDIR
98976:         "
98977: 
98978:   save_ext_shared=$ext_shared
98979:   ext_shared=yes
98980: 
98981:   for ac_i in $ac_stuff; do
98982:     case $ac_i in
98983:     -pthread)
98984:       if test "$ext_shared" = "yes"; then
98985:         LDFLAGS="$LDFLAGS -pthread"
98986:       else
98987: 
98988: 
98989:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
98990: 
98991:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
98992:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
98993:     eval "EXTRA_LDFLAGS$unique=set"
98994:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
98995:   fi
98996: 
98997:       fi
98998:     ;;
98999:     -l*)
99000:       ac_ii=`echo $ac_i|cut -c 3-`
99001: 
99002: 
99003:   case $ac_ii in
99004:   c|c_r|pthread*) ;;
99005:   *)
99006:     if test "$ext_shared" = "yes"; then
99007:         LDFLAGS="$LDFLAGS -l$ac_ii"
99008:     else
99009: 
99010: 
99011:   case $ac_ii in
99012:   c|c_r|pthread*) ;;
99013:   *)
99014:       LIBS="$LIBS -l$ac_ii"
99015:    ;;
99016:   esac
99017: 
99018: 
99019:     fi
99020:    ;;
99021:   esac
99022: 
99023: 
99024:     ;;
99025:     -L*)
99026:       ac_ii=`echo $ac_i|cut -c 3-`
99027: 
99028:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
99029: 
99030:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
99031:     ai_p=$ac_ii
99032:   else
99033: 
99034:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
99035: 
99036:     ep_realdir=`(cd "$ep_dir" && pwd)`
99037:     ai_p="$ep_realdir"/`basename "$ac_ii"`
99038:   fi
99039: 
99040: 
99041:       if test "$ext_shared" = "yes"; then
99042:         LDFLAGS="-L$ai_p $LDFLAGS"
99043:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
99044:       else
99045: 
99046: 
99047: 
99048:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
99049: 
99050:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
99051:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
99052:     eval "LIBPATH$unique=set"
99053: 
99054:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
99055:     LDFLAGS="$LDFLAGS -L$ai_p"
99056:     PHP_RPATHS="$PHP_RPATHS $ai_p"
99057: 
99058:   fi
99059: 
99060: 
99061:       fi
99062: 
99063:   fi
99064: 
99065:     ;;
99066:     esac
99067:   done
99068: 
99069:   as_ac_Lib=`$as_echo "ac_cv_lib_$iconv_lib_name''_iconv" | $as_tr_sh`
99070: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv in -l$iconv_lib_name" >&5
99071: $as_echo_n "checking for iconv in -l$iconv_lib_name... " >&6; }
99072: if eval \${$as_ac_Lib+:} false; then :
99073:   $as_echo_n "(cached) " >&6
99074: else
99075:   ac_check_lib_save_LIBS=$LIBS
99076: LIBS="-l$iconv_lib_name  $LIBS"
99077: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
99078: /* end confdefs.h.  */
99079: 
99080: /* Override any GCC internal prototype to avoid an error.
99081:    Use char because int might match the return type of a GCC
99082:    builtin and then its argument prototype would still apply.  */
99083: #ifdef __cplusplus
99084: extern "C"
99085: #endif
99086: char iconv ();
99087: int
99088: main ()
99089: {
99090: return iconv ();
99091:   ;
99092:   return 0;
99093: }
99094: _ACEOF
99095: if ac_fn_c_try_link "$LINENO"; then :
99096:   eval "$as_ac_Lib=yes"
99097: else
99098:   eval "$as_ac_Lib=no"
99099: fi
99100: rm -f core conftest.err conftest.$ac_objext \
99101:     conftest$ac_exeext conftest.$ac_ext
99102: LIBS=$ac_check_lib_save_LIBS
99103: fi
99104: eval ac_res=\$$as_ac_Lib
99105: 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
99106: $as_echo "$ac_res" >&6; }
99107: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
99108: 
99109:     LDFLAGS=$save_old_LDFLAGS
99110:     ext_shared=$save_ext_shared
99111: 
99112:           found_iconv=yes
99113: 
99114: 
99115: else
99116: 
99117:     LDFLAGS=$save_old_LDFLAGS
99118:     ext_shared=$save_ext_shared
99119:     unset ac_cv_lib_$iconv_lib_name_iconv
99120: 
99121: 
99122: fi
99123: 
99124: 
99125: 
99126: fi
99127: 
99128:     fi
99129:   fi
99130: 
99131:   if test "$found_iconv" = "yes"; then
99132: 
99133:   echo "#define HAVE_ICONV 1" > ext/iconv/php_have_iconv.h
99134: 
99135: 
99136: $as_echo "#define HAVE_ICONV 1" >>confdefs.h
99137: 
99138:     if test -n "$ICONV_DIR"; then
99139: 
99140: 
99141:   if test "$ext_shared" = "yes"; then
99142:     XMLRPC_SHARED_LIBADD="-l$iconv_lib_name $XMLRPC_SHARED_LIBADD"
99143:     if test -n "$ICONV_DIR/$PHP_LIBDIR"; then
99144: 
99145:   if test "$ICONV_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$ICONV_DIR/$PHP_LIBDIR" != "/usr/lib"; then
99146: 
99147:   if test -z "$ICONV_DIR/$PHP_LIBDIR" || echo "$ICONV_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
99148:     ai_p=$ICONV_DIR/$PHP_LIBDIR
99149:   else
99150: 
99151:     ep_dir=`echo $ICONV_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
99152: 
99153:     ep_realdir=`(cd "$ep_dir" && pwd)`
99154:     ai_p="$ep_realdir"/`basename "$ICONV_DIR/$PHP_LIBDIR"`
99155:   fi
99156: 
99157: 
99158:       if test "$ext_shared" = "yes"; then
99159:         XMLRPC_SHARED_LIBADD="-L$ai_p $XMLRPC_SHARED_LIBADD"
99160:         test -n "$ld_runpath_switch" && XMLRPC_SHARED_LIBADD="$ld_runpath_switch$ai_p $XMLRPC_SHARED_LIBADD"
99161:       else
99162: 
99163: 
99164: 
99165:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
99166: 
99167:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
99168:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
99169:     eval "LIBPATH$unique=set"
99170: 
99171:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
99172:     LDFLAGS="$LDFLAGS -L$ai_p"
99173:     PHP_RPATHS="$PHP_RPATHS $ai_p"
99174: 
99175:   fi
99176: 
99177: 
99178:       fi
99179: 
99180:   fi
99181: 
99182:     fi
99183:   else
99184: 
99185: 
99186:   if test -n "$ICONV_DIR/$PHP_LIBDIR"; then
99187: 
99188:   if test "$ICONV_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$ICONV_DIR/$PHP_LIBDIR" != "/usr/lib"; then
99189: 
99190:   if test -z "$ICONV_DIR/$PHP_LIBDIR" || echo "$ICONV_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
99191:     ai_p=$ICONV_DIR/$PHP_LIBDIR
99192:   else
99193: 
99194:     ep_dir=`echo $ICONV_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
99195: 
99196:     ep_realdir=`(cd "$ep_dir" && pwd)`
99197:     ai_p="$ep_realdir"/`basename "$ICONV_DIR/$PHP_LIBDIR"`
99198:   fi
99199: 
99200: 
99201: 
99202: 
99203: 
99204:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
99205: 
99206:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
99207:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
99208:     eval "LIBPATH$unique=set"
99209: 
99210:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
99211:     LDFLAGS="$LDFLAGS -L$ai_p"
99212:     PHP_RPATHS="$PHP_RPATHS $ai_p"
99213: 
99214:   fi
99215: 
99216: 
99217: 
99218:   fi
99219: 
99220:   fi
99221: 
99222: 
99223:   case $iconv_lib_name in
99224:   c|c_r|pthread*) ;;
99225:   *)
99226:       LIBS="-l$iconv_lib_name $LIBS"
99227:    ;;
99228:   esac
99229: 
99230: 
99231: 
99232: 
99233:   fi
99234: 
99235: 
99236: 
99237:   if test "$ICONV_DIR/include" != "/usr/include"; then
99238: 
99239:   if test -z "$ICONV_DIR/include" || echo "$ICONV_DIR/include" | grep '^/' >/dev/null ; then
99240:     ai_p=$ICONV_DIR/include
99241:   else
99242: 
99243:     ep_dir=`echo $ICONV_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`
99244: 
99245:     ep_realdir=`(cd "$ep_dir" && pwd)`
99246:     ai_p="$ep_realdir"/`basename "$ICONV_DIR/include"`
99247:   fi
99248: 
99249: 
99250: 
99251:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
99252: 
99253:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
99254:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
99255:     eval "INCLUDEPATH$unique=set"
99256: 
99257:       if test ""; then
99258:         INCLUDES="-I$ai_p $INCLUDES"
99259:       else
99260:         INCLUDES="$INCLUDES -I$ai_p"
99261:       fi
99262: 
99263:   fi
99264: 
99265:   fi
99266: 
99267:     fi
99268: 
99269: else
99270:       as_fn_error $? "iconv not found, in order to build xmlrpc you need the iconv library" "$LINENO" 5
99271: 
99272:   fi
99273: 
99274:   fi
99275: fi
99276: 
99277: if test "$PHP_XMLRPC" = "yes"; then
99278:   if test -n "$ac_tool_prefix"; then
99279:   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
99280: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
99281: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
99282: $as_echo_n "checking for $ac_word... " >&6; }
99283: if ${ac_cv_prog_RANLIB+:} false; then :
99284:   $as_echo_n "(cached) " >&6
99285: else
99286:   if test -n "$RANLIB"; then
99287:   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
99288: else
99289: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99290: for as_dir in $PATH
99291: do
99292:   IFS=$as_save_IFS
99293:   test -z "$as_dir" && as_dir=.
99294:     for ac_exec_ext in '' $ac_executable_extensions; do
99295:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
99296:     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
99297:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
99298:     break 2
99299:   fi
99300: done
99301:   done
99302: IFS=$as_save_IFS
99303: 
99304: fi
99305: fi
99306: RANLIB=$ac_cv_prog_RANLIB
99307: if test -n "$RANLIB"; then
99308:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
99309: $as_echo "$RANLIB" >&6; }
99310: else
99311:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
99312: $as_echo "no" >&6; }
99313: fi
99314: 
99315: 
99316: fi
99317: if test -z "$ac_cv_prog_RANLIB"; then
99318:   ac_ct_RANLIB=$RANLIB
99319:   # Extract the first word of "ranlib", so it can be a program name with args.
99320: set dummy ranlib; ac_word=$2
99321: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
99322: $as_echo_n "checking for $ac_word... " >&6; }
99323: if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
99324:   $as_echo_n "(cached) " >&6
99325: else
99326:   if test -n "$ac_ct_RANLIB"; then
99327:   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
99328: else
99329: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99330: for as_dir in $PATH
99331: do
99332:   IFS=$as_save_IFS
99333:   test -z "$as_dir" && as_dir=.
99334:     for ac_exec_ext in '' $ac_executable_extensions; do
99335:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
99336:     ac_cv_prog_ac_ct_RANLIB="ranlib"
99337:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
99338:     break 2
99339:   fi
99340: done
99341:   done
99342: IFS=$as_save_IFS
99343: 
99344: fi
99345: fi
99346: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
99347: if test -n "$ac_ct_RANLIB"; then
99348:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
99349: $as_echo "$ac_ct_RANLIB" >&6; }
99350: else
99351:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
99352: $as_echo "no" >&6; }
99353: fi
99354: 
99355:   if test "x$ac_ct_RANLIB" = x; then
99356:     RANLIB=":"
99357:   else
99358:     case $cross_compiling:$ac_tool_warned in
99359: yes:)
99360: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
99361: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
99362: ac_tool_warned=yes ;;
99363: esac
99364:     RANLIB=$ac_ct_RANLIB
99365:   fi
99366: else
99367:   RANLIB="$ac_cv_prog_RANLIB"
99368: fi
99369: 
99370: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
99371: $as_echo_n "checking for inline... " >&6; }
99372: if ${ac_cv_c_inline+:} false; then :
99373:   $as_echo_n "(cached) " >&6
99374: else
99375:   ac_cv_c_inline=no
99376: for ac_kw in inline __inline__ __inline; do
99377:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
99378: /* end confdefs.h.  */
99379: #ifndef __cplusplus
99380: typedef int foo_t;
99381: static $ac_kw foo_t static_foo () {return 0; }
99382: $ac_kw foo_t foo () {return 0; }
99383: #endif
99384: 
99385: _ACEOF
99386: if ac_fn_c_try_compile "$LINENO"; then :
99387:   ac_cv_c_inline=$ac_kw
99388: fi
99389: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
99390:   test "$ac_cv_c_inline" != no && break
99391: done
99392: 
99393: fi
99394: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
99395: $as_echo "$ac_cv_c_inline" >&6; }
99396: 
99397: case $ac_cv_c_inline in
99398:   inline | yes) ;;
99399:   *)
99400:     case $ac_cv_c_inline in
99401:       no) ac_val=;;
99402:       *) ac_val=$ac_cv_c_inline;;
99403:     esac
99404:     cat >>confdefs.h <<_ACEOF
99405: #ifndef __cplusplus
99406: #define inline $ac_val
99407: #endif
99408: _ACEOF
99409:     ;;
99410: esac
99411: 
99412: 
99413: 
99414: 
99415: 
99416: 
99417: 
99418: 
99419: $as_echo "#define UNDEF_THREADS_HACK /**/" >>confdefs.h
99420: 
99421: 
99422: 
99423: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
99424: $as_echo_n "checking for ANSI C header files... " >&6; }
99425: if ${ac_cv_header_stdc+:} false; then :
99426:   $as_echo_n "(cached) " >&6
99427: else
99428:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
99429: /* end confdefs.h.  */
99430: #include <stdlib.h>
99431: #include <stdarg.h>
99432: #include <string.h>
99433: #include <float.h>
99434: 
99435: int
99436: main ()
99437: {
99438: 
99439:   ;
99440:   return 0;
99441: }
99442: _ACEOF
99443: if ac_fn_c_try_compile "$LINENO"; then :
99444:   ac_cv_header_stdc=yes
99445: else
99446:   ac_cv_header_stdc=no
99447: fi
99448: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
99449: 
99450: if test $ac_cv_header_stdc = yes; then
99451:   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
99452:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
99453: /* end confdefs.h.  */
99454: #include <string.h>
99455: 
99456: _ACEOF
99457: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
99458:   $EGREP "memchr" >/dev/null 2>&1; then :
99459: 
99460: else
99461:   ac_cv_header_stdc=no
99462: fi
99463: rm -f conftest*
99464: 
99465: fi
99466: 
99467: if test $ac_cv_header_stdc = yes; then
99468:   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
99469:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
99470: /* end confdefs.h.  */
99471: #include <stdlib.h>
99472: 
99473: _ACEOF
99474: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
99475:   $EGREP "free" >/dev/null 2>&1; then :
99476: 
99477: else
99478:   ac_cv_header_stdc=no
99479: fi
99480: rm -f conftest*
99481: 
99482: fi
99483: 
99484: if test $ac_cv_header_stdc = yes; then
99485:   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
99486:   if test "$cross_compiling" = yes; then :
99487:   :
99488: else
99489:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
99490: /* end confdefs.h.  */
99491: #include <ctype.h>
99492: #include <stdlib.h>
99493: #if ((' ' & 0x0FF) == 0x020)
99494: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
99495: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
99496: #else
99497: # define ISLOWER(c) \
99498: 		   (('a' <= (c) && (c) <= 'i') \
99499: 		     || ('j' <= (c) && (c) <= 'r') \
99500: 		     || ('s' <= (c) && (c) <= 'z'))
99501: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
99502: #endif
99503: 
99504: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
99505: int
99506: main ()
99507: {
99508:   int i;
99509:   for (i = 0; i < 256; i++)
99510:     if (XOR (islower (i), ISLOWER (i))
99511: 	|| toupper (i) != TOUPPER (i))
99512:       return 2;
99513:   return 0;
99514: }
99515: _ACEOF
99516: if ac_fn_c_try_run "$LINENO"; then :
99517: 
99518: else
99519:   ac_cv_header_stdc=no
99520: fi
99521: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
99522:   conftest.$ac_objext conftest.beam conftest.$ac_ext
99523: fi
99524: 
99525: fi
99526: fi
99527: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
99528: $as_echo "$ac_cv_header_stdc" >&6; }
99529: if test $ac_cv_header_stdc = yes; then
99530: 
99531: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
99532: 
99533: fi
99534: 
99535: for ac_header in xmlparse.h xmltok.h stdlib.h strings.h string.h
99536: do :
99537:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
99538: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
99539: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
99540:   cat >>confdefs.h <<_ACEOF
99541: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
99542: _ACEOF
99543: 
99544: fi
99545: 
99546: done
99547: 
99548: 
99549: 
99550: 
99551: 
99552: 
99553: # The cast to long int works around a bug in the HP C Compiler
99554: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
99555: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
99556: # This bug is HP SR number 8606223364.
99557: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
99558: $as_echo_n "checking size of char... " >&6; }
99559: if ${ac_cv_sizeof_char+:} false; then :
99560:   $as_echo_n "(cached) " >&6
99561: else
99562:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
99563: 
99564: else
99565:   if test "$ac_cv_type_char" = yes; then
99566:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
99567: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
99568: as_fn_error 77 "cannot compute sizeof (char)
99569: See \`config.log' for more details" "$LINENO" 5; }
99570:    else
99571:      ac_cv_sizeof_char=0
99572:    fi
99573: fi
99574: 
99575: fi
99576: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
99577: $as_echo "$ac_cv_sizeof_char" >&6; }
99578: 
99579: 
99580: 
99581: cat >>confdefs.h <<_ACEOF
99582: #define SIZEOF_CHAR $ac_cv_sizeof_char
99583: _ACEOF
99584: 
99585: 
99586: 
99587: # The cast to long int works around a bug in the HP C Compiler
99588: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
99589: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
99590: # This bug is HP SR number 8606223364.
99591: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
99592: $as_echo_n "checking size of int... " >&6; }
99593: if ${ac_cv_sizeof_int+:} false; then :
99594:   $as_echo_n "(cached) " >&6
99595: else
99596:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
99597: 
99598: else
99599:   if test "$ac_cv_type_int" = yes; then
99600:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
99601: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
99602: as_fn_error 77 "cannot compute sizeof (int)
99603: See \`config.log' for more details" "$LINENO" 5; }
99604:    else
99605:      ac_cv_sizeof_int=0
99606:    fi
99607: fi
99608: 
99609: fi
99610: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
99611: $as_echo "$ac_cv_sizeof_int" >&6; }
99612: 
99613: 
99614: 
99615: cat >>confdefs.h <<_ACEOF
99616: #define SIZEOF_INT $ac_cv_sizeof_int
99617: _ACEOF
99618: 
99619: 
99620: # The cast to long int works around a bug in the HP C Compiler
99621: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
99622: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
99623: # This bug is HP SR number 8606223364.
99624: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
99625: $as_echo_n "checking size of long... " >&6; }
99626: if ${ac_cv_sizeof_long+:} false; then :
99627:   $as_echo_n "(cached) " >&6
99628: else
99629:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
99630: 
99631: else
99632:   if test "$ac_cv_type_long" = yes; then
99633:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
99634: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
99635: as_fn_error 77 "cannot compute sizeof (long)
99636: See \`config.log' for more details" "$LINENO" 5; }
99637:    else
99638:      ac_cv_sizeof_long=0
99639:    fi
99640: fi
99641: 
99642: fi
99643: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
99644: $as_echo "$ac_cv_sizeof_long" >&6; }
99645: 
99646: 
99647: 
99648: cat >>confdefs.h <<_ACEOF
99649: #define SIZEOF_LONG $ac_cv_sizeof_long
99650: _ACEOF
99651: 
99652: 
99653: # The cast to long int works around a bug in the HP C Compiler
99654: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
99655: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
99656: # This bug is HP SR number 8606223364.
99657: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
99658: $as_echo_n "checking size of long long... " >&6; }
99659: if ${ac_cv_sizeof_long_long+:} false; then :
99660:   $as_echo_n "(cached) " >&6
99661: else
99662:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
99663: 
99664: else
99665:   if test "$ac_cv_type_long_long" = yes; then
99666:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
99667: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
99668: as_fn_error 77 "cannot compute sizeof (long long)
99669: See \`config.log' for more details" "$LINENO" 5; }
99670:    else
99671:      ac_cv_sizeof_long_long=0
99672:    fi
99673: fi
99674: 
99675: fi
99676: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
99677: $as_echo "$ac_cv_sizeof_long_long" >&6; }
99678: 
99679: 
99680: 
99681: cat >>confdefs.h <<_ACEOF
99682: #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
99683: _ACEOF
99684: 
99685: 
99686: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
99687: if test "x$ac_cv_type_size_t" = xyes; then :
99688: 
99689: else
99690: 
99691: cat >>confdefs.h <<_ACEOF
99692: #define size_t unsigned int
99693: _ACEOF
99694: 
99695: fi
99696: 
99697: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
99698: $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
99699: if ${ac_cv_header_time+:} false; then :
99700:   $as_echo_n "(cached) " >&6
99701: else
99702:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
99703: /* end confdefs.h.  */
99704: #include <sys/types.h>
99705: #include <sys/time.h>
99706: #include <time.h>
99707: 
99708: int
99709: main ()
99710: {
99711: if ((struct tm *) 0)
99712: return 0;
99713:   ;
99714:   return 0;
99715: }
99716: _ACEOF
99717: if ac_fn_c_try_compile "$LINENO"; then :
99718:   ac_cv_header_time=yes
99719: else
99720:   ac_cv_header_time=no
99721: fi
99722: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
99723: fi
99724: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
99725: $as_echo "$ac_cv_header_time" >&6; }
99726: if test $ac_cv_header_time = yes; then
99727: 
99728: $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
99729: 
99730: fi
99731: 
99732: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
99733: $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
99734: if ${ac_cv_type_uid_t+:} false; then :
99735:   $as_echo_n "(cached) " >&6
99736: else
99737:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
99738: /* end confdefs.h.  */
99739: #include <sys/types.h>
99740: 
99741: _ACEOF
99742: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
99743:   $EGREP "uid_t" >/dev/null 2>&1; then :
99744:   ac_cv_type_uid_t=yes
99745: else
99746:   ac_cv_type_uid_t=no
99747: fi
99748: rm -f conftest*
99749: 
99750: fi
99751: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
99752: $as_echo "$ac_cv_type_uid_t" >&6; }
99753: if test $ac_cv_type_uid_t = no; then
99754: 
99755: $as_echo "#define uid_t int" >>confdefs.h
99756: 
99757: 
99758: $as_echo "#define gid_t int" >>confdefs.h
99759: 
99760: fi
99761: 
99762: 
99763: 
99764: 
99765: 
99766: 
99767: # Standard XMLRPC list
99768: for ac_func in \
99769:  strtoul strtoull snprintf \
99770:  strstr strpbrk strerror\
99771:  memcpy memmove
99772: do :
99773:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
99774: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
99775: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
99776:   cat >>confdefs.h <<_ACEOF
99777: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
99778: _ACEOF
99779: 
99780: fi
99781: done
99782: 
99783: 
99784: 
99785: 
99786: 
99787:   ext_builddir=ext/xmlrpc
99788:   ext_srcdir=$abs_srcdir/ext/xmlrpc
99789: 
99790:   ac_extra=`echo "-I@ext_srcdir@/libxmlrpc -DVERSION="0.50""|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
99791: 
99792:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
99793:     PHP_XMLRPC_SHARED=no
99794: 
99795: 
99796:   case ext/xmlrpc in
99797:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
99798:   /*) ac_srcdir=`echo "ext/xmlrpc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
99799:   *) ac_srcdir="$abs_srcdir/ext/xmlrpc/"; ac_bdir="ext/xmlrpc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
99800:   esac
99801: 
99802: 
99803: 
99804:   b_c_pre=$php_c_pre
99805:   b_cxx_pre=$php_cxx_pre
99806:   b_c_meta=$php_c_meta
99807:   b_cxx_meta=$php_cxx_meta
99808:   b_c_post=$php_c_post
99809:   b_cxx_post=$php_cxx_post
99810:   b_lo=$php_lo
99811: 
99812: 
99813:   old_IFS=$IFS
99814:   for ac_src in xmlrpc-epi-php.c libxmlrpc/base64.c \
99815:           libxmlrpc/simplestring.c libxmlrpc/xml_to_dandarpc.c \
99816:           libxmlrpc/xmlrpc_introspection.c libxmlrpc/encodings.c \
99817:           libxmlrpc/system_methods.c libxmlrpc/xml_to_xmlrpc.c \
99818:           libxmlrpc/queue.c libxmlrpc/xml_element.c libxmlrpc/xmlrpc.c \
99819:           libxmlrpc/xml_to_soap.c; do
99820: 
99821:       IFS=.
99822:       set $ac_src
99823:       ac_obj=$1
99824:       IFS=$old_IFS
99825: 
99826:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
99827: 
99828:       case $ac_src in
99829:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
99830:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
99831:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
99832:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
99833:       esac
99834: 
99835:     cat >>Makefile.objects<<EOF
99836: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
99837: 	$ac_comp
99838: EOF
99839:   done
99840: 
99841: 
99842:     EXT_STATIC="$EXT_STATIC xmlrpc"
99843:     if test "$ext_shared" != "nocli"; then
99844:       EXT_CLI_STATIC="$EXT_CLI_STATIC xmlrpc"
99845:     fi
99846:   else
99847:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
99848:       PHP_XMLRPC_SHARED=yes
99849: 
99850:   case ext/xmlrpc in
99851:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
99852:   /*) ac_srcdir=`echo "ext/xmlrpc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
99853:   *) ac_srcdir="$abs_srcdir/ext/xmlrpc/"; ac_bdir="ext/xmlrpc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
99854:   esac
99855: 
99856: 
99857: 
99858:   b_c_pre=$shared_c_pre
99859:   b_cxx_pre=$shared_cxx_pre
99860:   b_c_meta=$shared_c_meta
99861:   b_cxx_meta=$shared_cxx_meta
99862:   b_c_post=$shared_c_post
99863:   b_cxx_post=$shared_cxx_post
99864:   b_lo=$shared_lo
99865: 
99866: 
99867:   old_IFS=$IFS
99868:   for ac_src in xmlrpc-epi-php.c libxmlrpc/base64.c \
99869:           libxmlrpc/simplestring.c libxmlrpc/xml_to_dandarpc.c \
99870:           libxmlrpc/xmlrpc_introspection.c libxmlrpc/encodings.c \
99871:           libxmlrpc/system_methods.c libxmlrpc/xml_to_xmlrpc.c \
99872:           libxmlrpc/queue.c libxmlrpc/xml_element.c libxmlrpc/xmlrpc.c \
99873:           libxmlrpc/xml_to_soap.c; do
99874: 
99875:       IFS=.
99876:       set $ac_src
99877:       ac_obj=$1
99878:       IFS=$old_IFS
99879: 
99880:       shared_objects_xmlrpc="$shared_objects_xmlrpc $ac_bdir$ac_obj.lo"
99881: 
99882:       case $ac_src in
99883:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
99884:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
99885:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
99886:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
99887:       esac
99888: 
99889:     cat >>Makefile.objects<<EOF
99890: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
99891: 	$ac_comp
99892: EOF
99893:   done
99894: 
99895:       case $host_alias in
99896:         *netware*)
99897: 
99898:   install_modules="install-modules"
99899: 
99900:   case $host_alias in
99901:     *aix*)
99902:       suffix=so
99903:       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'
99904:       ;;
99905:     *netware*)
99906:       suffix=nlm
99907:       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)'
99908:       ;;
99909:     *)
99910:       suffix=la
99911:       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)'
99912:       ;;
99913:   esac
99914: 
99915:   if test "x" = "xyes"; then
99916:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpxmlrpc.$suffix"
99917:   else
99918:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpxmlrpc.$suffix"
99919:   fi
99920: 
99921:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_xmlrpc"
99922: 
99923:   cat >>Makefile.objects<<EOF
99924: \$(phplibdir)/phpxmlrpc.$suffix: $ext_builddir/phpxmlrpc.$suffix
99925: 	\$(LIBTOOL) --mode=install cp $ext_builddir/phpxmlrpc.$suffix \$(phplibdir)
99926: 
99927: $ext_builddir/phpxmlrpc.$suffix: \$(shared_objects_xmlrpc) \$(PHPXMLRPC_SHARED_DEPENDENCIES)
99928: 	$link_cmd
99929: 
99930: EOF
99931: 
99932:           ;;
99933:         *)
99934: 
99935:   install_modules="install-modules"
99936: 
99937:   case $host_alias in
99938:     *aix*)
99939:       suffix=so
99940:       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'
99941:       ;;
99942:     *netware*)
99943:       suffix=nlm
99944:       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)'
99945:       ;;
99946:     *)
99947:       suffix=la
99948:       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)'
99949:       ;;
99950:   esac
99951: 
99952:   if test "x" = "xyes"; then
99953:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/xmlrpc.$suffix"
99954:   else
99955:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/xmlrpc.$suffix"
99956:   fi
99957: 
99958:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_xmlrpc"
99959: 
99960:   cat >>Makefile.objects<<EOF
99961: \$(phplibdir)/xmlrpc.$suffix: $ext_builddir/xmlrpc.$suffix
99962: 	\$(LIBTOOL) --mode=install cp $ext_builddir/xmlrpc.$suffix \$(phplibdir)
99963: 
99964: $ext_builddir/xmlrpc.$suffix: \$(shared_objects_xmlrpc) \$(XMLRPC_SHARED_DEPENDENCIES)
99965: 	$link_cmd
99966: 
99967: EOF
99968: 
99969:           ;;
99970:       esac
99971: 
99972: cat >>confdefs.h <<_ACEOF
99973: #define COMPILE_DL_XMLRPC 1
99974: _ACEOF
99975: 
99976:     fi
99977:   fi
99978: 
99979:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
99980:     PHP_XMLRPC_SHARED=no
99981:     case "$PHP_SAPI" in
99982:       cgi|embed)
99983: 
99984: 
99985:   case ext/xmlrpc in
99986:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
99987:   /*) ac_srcdir=`echo "ext/xmlrpc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
99988:   *) ac_srcdir="$abs_srcdir/ext/xmlrpc/"; ac_bdir="ext/xmlrpc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
99989:   esac
99990: 
99991: 
99992: 
99993:   b_c_pre=$php_c_pre
99994:   b_cxx_pre=$php_cxx_pre
99995:   b_c_meta=$php_c_meta
99996:   b_cxx_meta=$php_cxx_meta
99997:   b_c_post=$php_c_post
99998:   b_cxx_post=$php_cxx_post
99999:   b_lo=$php_lo
100000: 
100001: 
100002:   old_IFS=$IFS
100003:   for ac_src in xmlrpc-epi-php.c libxmlrpc/base64.c \
100004:           libxmlrpc/simplestring.c libxmlrpc/xml_to_dandarpc.c \
100005:           libxmlrpc/xmlrpc_introspection.c libxmlrpc/encodings.c \
100006:           libxmlrpc/system_methods.c libxmlrpc/xml_to_xmlrpc.c \
100007:           libxmlrpc/queue.c libxmlrpc/xml_element.c libxmlrpc/xmlrpc.c \
100008:           libxmlrpc/xml_to_soap.c; do
100009: 
100010:       IFS=.
100011:       set $ac_src
100012:       ac_obj=$1
100013:       IFS=$old_IFS
100014: 
100015:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
100016: 
100017:       case $ac_src in
100018:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100019:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100020:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100021:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
100022:       esac
100023: 
100024:     cat >>Makefile.objects<<EOF
100025: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
100026: 	$ac_comp
100027: EOF
100028:   done
100029: 
100030: 
100031:         EXT_STATIC="$EXT_STATIC xmlrpc"
100032:         ;;
100033:       *)
100034: 
100035: 
100036:   case ext/xmlrpc in
100037:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
100038:   /*) ac_srcdir=`echo "ext/xmlrpc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
100039:   *) ac_srcdir="$abs_srcdir/ext/xmlrpc/"; ac_bdir="ext/xmlrpc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
100040:   esac
100041: 
100042: 
100043: 
100044:   b_c_pre=$php_c_pre
100045:   b_cxx_pre=$php_cxx_pre
100046:   b_c_meta=$php_c_meta
100047:   b_cxx_meta=$php_cxx_meta
100048:   b_c_post=$php_c_post
100049:   b_cxx_post=$php_cxx_post
100050:   b_lo=$php_lo
100051: 
100052: 
100053:   old_IFS=$IFS
100054:   for ac_src in xmlrpc-epi-php.c libxmlrpc/base64.c \
100055:           libxmlrpc/simplestring.c libxmlrpc/xml_to_dandarpc.c \
100056:           libxmlrpc/xmlrpc_introspection.c libxmlrpc/encodings.c \
100057:           libxmlrpc/system_methods.c libxmlrpc/xml_to_xmlrpc.c \
100058:           libxmlrpc/queue.c libxmlrpc/xml_element.c libxmlrpc/xmlrpc.c \
100059:           libxmlrpc/xml_to_soap.c; do
100060: 
100061:       IFS=.
100062:       set $ac_src
100063:       ac_obj=$1
100064:       IFS=$old_IFS
100065: 
100066:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
100067: 
100068:       case $ac_src in
100069:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100070:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100071:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100072:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
100073:       esac
100074: 
100075:     cat >>Makefile.objects<<EOF
100076: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
100077: 	$ac_comp
100078: EOF
100079:   done
100080: 
100081: 
100082:         ;;
100083:     esac
100084:     EXT_CLI_STATIC="$EXT_CLI_STATIC xmlrpc"
100085:   fi
100086: 
100087: 
100088:     BUILD_DIR="$BUILD_DIR $ext_builddir"
100089: 
100090: 
100091: 
100092:   if test "$ext_builddir" = "."; then
100093:     PHP_PECL_EXTENSION=xmlrpc
100094: 
100095:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
100096: 
100097:   fi
100098: 
100099: 
100100: 
100101:     BUILD_DIR="$BUILD_DIR $ext_builddir/libxmlrpc"
100102: 
100103: 
100104:   XMLRPC_MODULE_TYPE=builtin
100105: 
100106: elif test "$PHP_XMLRPC" != "no"; then
100107: 
100108:   if test -r $PHP_XMLRPC/include/xmlrpc.h; then
100109:     XMLRPC_DIR=$PHP_XMLRPC/include
100110:   elif test -r $PHP_XMLRPC/include/xmlrpc-epi/xmlrpc.h; then
100111:     XMLRPC_DIR=$PHP_XMLRPC/include/xmlrpc-epi
100112:   else
100113:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XMLRPC-EPI in default path" >&5
100114: $as_echo_n "checking for XMLRPC-EPI in default path... " >&6; }
100115:     for i in /usr/local /usr; do
100116:       if test -r $i/include/xmlrpc.h; then
100117:         XMLRPC_DIR=$i/include
100118:         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $i" >&5
100119: $as_echo "found in $i" >&6; }
100120:         break
100121:       fi
100122:     done
100123:   fi
100124: 
100125:   if test -z "$XMLRPC_DIR"; then
100126:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
100127: $as_echo "not found" >&6; }
100128:     as_fn_error $? "Please reinstall the XMLRPC-EPI distribution" "$LINENO" 5
100129:   fi
100130: 
100131: 
100132:   if test "$XMLRPC_DIR" != "/usr/include"; then
100133: 
100134:   if test -z "$XMLRPC_DIR" || echo "$XMLRPC_DIR" | grep '^/' >/dev/null ; then
100135:     ai_p=$XMLRPC_DIR
100136:   else
100137: 
100138:     ep_dir=`echo $XMLRPC_DIR|$SED 's%/*[^/][^/]*/*$%%'`
100139: 
100140:     ep_realdir=`(cd "$ep_dir" && pwd)`
100141:     ai_p="$ep_realdir"/`basename "$XMLRPC_DIR"`
100142:   fi
100143: 
100144: 
100145: 
100146:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
100147: 
100148:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
100149:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
100150:     eval "INCLUDEPATH$unique=set"
100151: 
100152:       if test ""; then
100153:         INCLUDES="-I$ai_p $INCLUDES"
100154:       else
100155:         INCLUDES="$INCLUDES -I$ai_p"
100156:       fi
100157: 
100158:   fi
100159: 
100160:   fi
100161: 
100162: 
100163: 
100164:   if test "$ext_shared" = "yes"; then
100165:     XMLRPC_SHARED_LIBADD="-lxmlrpc $XMLRPC_SHARED_LIBADD"
100166:     if test -n "$XMLRPC_DIR/$PHP_LIBDIR"; then
100167: 
100168:   if test "$XMLRPC_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$XMLRPC_DIR/$PHP_LIBDIR" != "/usr/lib"; then
100169: 
100170:   if test -z "$XMLRPC_DIR/$PHP_LIBDIR" || echo "$XMLRPC_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
100171:     ai_p=$XMLRPC_DIR/$PHP_LIBDIR
100172:   else
100173: 
100174:     ep_dir=`echo $XMLRPC_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
100175: 
100176:     ep_realdir=`(cd "$ep_dir" && pwd)`
100177:     ai_p="$ep_realdir"/`basename "$XMLRPC_DIR/$PHP_LIBDIR"`
100178:   fi
100179: 
100180: 
100181:       if test "$ext_shared" = "yes"; then
100182:         XMLRPC_SHARED_LIBADD="-L$ai_p $XMLRPC_SHARED_LIBADD"
100183:         test -n "$ld_runpath_switch" && XMLRPC_SHARED_LIBADD="$ld_runpath_switch$ai_p $XMLRPC_SHARED_LIBADD"
100184:       else
100185: 
100186: 
100187: 
100188:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
100189: 
100190:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
100191:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
100192:     eval "LIBPATH$unique=set"
100193: 
100194:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
100195:     LDFLAGS="$LDFLAGS -L$ai_p"
100196:     PHP_RPATHS="$PHP_RPATHS $ai_p"
100197: 
100198:   fi
100199: 
100200: 
100201:       fi
100202: 
100203:   fi
100204: 
100205:     fi
100206:   else
100207: 
100208: 
100209:   if test -n "$XMLRPC_DIR/$PHP_LIBDIR"; then
100210: 
100211:   if test "$XMLRPC_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$XMLRPC_DIR/$PHP_LIBDIR" != "/usr/lib"; then
100212: 
100213:   if test -z "$XMLRPC_DIR/$PHP_LIBDIR" || echo "$XMLRPC_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
100214:     ai_p=$XMLRPC_DIR/$PHP_LIBDIR
100215:   else
100216: 
100217:     ep_dir=`echo $XMLRPC_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
100218: 
100219:     ep_realdir=`(cd "$ep_dir" && pwd)`
100220:     ai_p="$ep_realdir"/`basename "$XMLRPC_DIR/$PHP_LIBDIR"`
100221:   fi
100222: 
100223: 
100224: 
100225: 
100226: 
100227:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
100228: 
100229:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
100230:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
100231:     eval "LIBPATH$unique=set"
100232: 
100233:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
100234:     LDFLAGS="$LDFLAGS -L$ai_p"
100235:     PHP_RPATHS="$PHP_RPATHS $ai_p"
100236: 
100237:   fi
100238: 
100239: 
100240: 
100241:   fi
100242: 
100243:   fi
100244: 
100245: 
100246:   case xmlrpc in
100247:   c|c_r|pthread*) ;;
100248:   *)
100249:       LIBS="-lxmlrpc $LIBS"
100250:    ;;
100251:   esac
100252: 
100253: 
100254: 
100255: 
100256:   fi
100257: 
100258: 
100259: 
100260:   ext_builddir=ext/xmlrpc
100261:   ext_srcdir=$abs_srcdir/ext/xmlrpc
100262: 
100263:   ac_extra=
100264: 
100265:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
100266:     PHP_XMLRPC_SHARED=no
100267: 
100268: 
100269:   case ext/xmlrpc in
100270:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
100271:   /*) ac_srcdir=`echo "ext/xmlrpc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
100272:   *) ac_srcdir="$abs_srcdir/ext/xmlrpc/"; ac_bdir="ext/xmlrpc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
100273:   esac
100274: 
100275: 
100276: 
100277:   b_c_pre=$php_c_pre
100278:   b_cxx_pre=$php_cxx_pre
100279:   b_c_meta=$php_c_meta
100280:   b_cxx_meta=$php_cxx_meta
100281:   b_c_post=$php_c_post
100282:   b_cxx_post=$php_cxx_post
100283:   b_lo=$php_lo
100284: 
100285: 
100286:   old_IFS=$IFS
100287:   for ac_src in xmlrpc-epi-php.c; do
100288: 
100289:       IFS=.
100290:       set $ac_src
100291:       ac_obj=$1
100292:       IFS=$old_IFS
100293: 
100294:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
100295: 
100296:       case $ac_src in
100297:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100298:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100299:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100300:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
100301:       esac
100302: 
100303:     cat >>Makefile.objects<<EOF
100304: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
100305: 	$ac_comp
100306: EOF
100307:   done
100308: 
100309: 
100310:     EXT_STATIC="$EXT_STATIC xmlrpc"
100311:     if test "$ext_shared" != "nocli"; then
100312:       EXT_CLI_STATIC="$EXT_CLI_STATIC xmlrpc"
100313:     fi
100314:   else
100315:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
100316:       PHP_XMLRPC_SHARED=yes
100317: 
100318:   case ext/xmlrpc in
100319:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
100320:   /*) ac_srcdir=`echo "ext/xmlrpc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
100321:   *) ac_srcdir="$abs_srcdir/ext/xmlrpc/"; ac_bdir="ext/xmlrpc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
100322:   esac
100323: 
100324: 
100325: 
100326:   b_c_pre=$shared_c_pre
100327:   b_cxx_pre=$shared_cxx_pre
100328:   b_c_meta=$shared_c_meta
100329:   b_cxx_meta=$shared_cxx_meta
100330:   b_c_post=$shared_c_post
100331:   b_cxx_post=$shared_cxx_post
100332:   b_lo=$shared_lo
100333: 
100334: 
100335:   old_IFS=$IFS
100336:   for ac_src in xmlrpc-epi-php.c; do
100337: 
100338:       IFS=.
100339:       set $ac_src
100340:       ac_obj=$1
100341:       IFS=$old_IFS
100342: 
100343:       shared_objects_xmlrpc="$shared_objects_xmlrpc $ac_bdir$ac_obj.lo"
100344: 
100345:       case $ac_src in
100346:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100347:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100348:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100349:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
100350:       esac
100351: 
100352:     cat >>Makefile.objects<<EOF
100353: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
100354: 	$ac_comp
100355: EOF
100356:   done
100357: 
100358:       case $host_alias in
100359:         *netware*)
100360: 
100361:   install_modules="install-modules"
100362: 
100363:   case $host_alias in
100364:     *aix*)
100365:       suffix=so
100366:       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'
100367:       ;;
100368:     *netware*)
100369:       suffix=nlm
100370:       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)'
100371:       ;;
100372:     *)
100373:       suffix=la
100374:       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)'
100375:       ;;
100376:   esac
100377: 
100378:   if test "x" = "xyes"; then
100379:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpxmlrpc.$suffix"
100380:   else
100381:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpxmlrpc.$suffix"
100382:   fi
100383: 
100384:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_xmlrpc"
100385: 
100386:   cat >>Makefile.objects<<EOF
100387: \$(phplibdir)/phpxmlrpc.$suffix: $ext_builddir/phpxmlrpc.$suffix
100388: 	\$(LIBTOOL) --mode=install cp $ext_builddir/phpxmlrpc.$suffix \$(phplibdir)
100389: 
100390: $ext_builddir/phpxmlrpc.$suffix: \$(shared_objects_xmlrpc) \$(PHPXMLRPC_SHARED_DEPENDENCIES)
100391: 	$link_cmd
100392: 
100393: EOF
100394: 
100395:           ;;
100396:         *)
100397: 
100398:   install_modules="install-modules"
100399: 
100400:   case $host_alias in
100401:     *aix*)
100402:       suffix=so
100403:       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'
100404:       ;;
100405:     *netware*)
100406:       suffix=nlm
100407:       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)'
100408:       ;;
100409:     *)
100410:       suffix=la
100411:       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)'
100412:       ;;
100413:   esac
100414: 
100415:   if test "x" = "xyes"; then
100416:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/xmlrpc.$suffix"
100417:   else
100418:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/xmlrpc.$suffix"
100419:   fi
100420: 
100421:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_xmlrpc"
100422: 
100423:   cat >>Makefile.objects<<EOF
100424: \$(phplibdir)/xmlrpc.$suffix: $ext_builddir/xmlrpc.$suffix
100425: 	\$(LIBTOOL) --mode=install cp $ext_builddir/xmlrpc.$suffix \$(phplibdir)
100426: 
100427: $ext_builddir/xmlrpc.$suffix: \$(shared_objects_xmlrpc) \$(XMLRPC_SHARED_DEPENDENCIES)
100428: 	$link_cmd
100429: 
100430: EOF
100431: 
100432:           ;;
100433:       esac
100434: 
100435: cat >>confdefs.h <<_ACEOF
100436: #define COMPILE_DL_XMLRPC 1
100437: _ACEOF
100438: 
100439:     fi
100440:   fi
100441: 
100442:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
100443:     PHP_XMLRPC_SHARED=no
100444:     case "$PHP_SAPI" in
100445:       cgi|embed)
100446: 
100447: 
100448:   case ext/xmlrpc in
100449:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
100450:   /*) ac_srcdir=`echo "ext/xmlrpc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
100451:   *) ac_srcdir="$abs_srcdir/ext/xmlrpc/"; ac_bdir="ext/xmlrpc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
100452:   esac
100453: 
100454: 
100455: 
100456:   b_c_pre=$php_c_pre
100457:   b_cxx_pre=$php_cxx_pre
100458:   b_c_meta=$php_c_meta
100459:   b_cxx_meta=$php_cxx_meta
100460:   b_c_post=$php_c_post
100461:   b_cxx_post=$php_cxx_post
100462:   b_lo=$php_lo
100463: 
100464: 
100465:   old_IFS=$IFS
100466:   for ac_src in xmlrpc-epi-php.c; do
100467: 
100468:       IFS=.
100469:       set $ac_src
100470:       ac_obj=$1
100471:       IFS=$old_IFS
100472: 
100473:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
100474: 
100475:       case $ac_src in
100476:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100477:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100478:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100479:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
100480:       esac
100481: 
100482:     cat >>Makefile.objects<<EOF
100483: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
100484: 	$ac_comp
100485: EOF
100486:   done
100487: 
100488: 
100489:         EXT_STATIC="$EXT_STATIC xmlrpc"
100490:         ;;
100491:       *)
100492: 
100493: 
100494:   case ext/xmlrpc in
100495:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
100496:   /*) ac_srcdir=`echo "ext/xmlrpc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
100497:   *) ac_srcdir="$abs_srcdir/ext/xmlrpc/"; ac_bdir="ext/xmlrpc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
100498:   esac
100499: 
100500: 
100501: 
100502:   b_c_pre=$php_c_pre
100503:   b_cxx_pre=$php_cxx_pre
100504:   b_c_meta=$php_c_meta
100505:   b_cxx_meta=$php_cxx_meta
100506:   b_c_post=$php_c_post
100507:   b_cxx_post=$php_cxx_post
100508:   b_lo=$php_lo
100509: 
100510: 
100511:   old_IFS=$IFS
100512:   for ac_src in xmlrpc-epi-php.c; do
100513: 
100514:       IFS=.
100515:       set $ac_src
100516:       ac_obj=$1
100517:       IFS=$old_IFS
100518: 
100519:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
100520: 
100521:       case $ac_src in
100522:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100523:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100524:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100525:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
100526:       esac
100527: 
100528:     cat >>Makefile.objects<<EOF
100529: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
100530: 	$ac_comp
100531: EOF
100532:   done
100533: 
100534: 
100535:         ;;
100536:     esac
100537:     EXT_CLI_STATIC="$EXT_CLI_STATIC xmlrpc"
100538:   fi
100539: 
100540: 
100541:     BUILD_DIR="$BUILD_DIR $ext_builddir"
100542: 
100543: 
100544: 
100545:   if test "$ext_builddir" = "."; then
100546:     PHP_PECL_EXTENSION=xmlrpc
100547: 
100548:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
100549: 
100550:   fi
100551: 
100552:   XMLRPC_MODULE_TYPE=external
100553: fi
100554: 
100555: 
100556: 
100557: php_enable_xmlwriter=yes
100558: 
100559: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable XMLWriter support" >&5
100560: $as_echo_n "checking whether to enable XMLWriter support... " >&6; }
100561: # Check whether --enable-xmlwriter was given.
100562: if test "${enable_xmlwriter+set}" = set; then :
100563:   enableval=$enable_xmlwriter; PHP_XMLWRITER=$enableval
100564: else
100565: 
100566:   PHP_XMLWRITER=yes
100567:   test "$PHP_ENABLE_ALL" && PHP_XMLWRITER=$PHP_ENABLE_ALL
100568: 
100569: fi
100570: 
100571: 
100572: 
100573: ext_output="yes, shared"
100574: ext_shared=yes
100575: case $PHP_XMLWRITER in
100576: shared,*)
100577:   PHP_XMLWRITER=`echo "$PHP_XMLWRITER"|$SED 's/^shared,//'`
100578:   ;;
100579: shared)
100580:   PHP_XMLWRITER=yes
100581:   ;;
100582: no)
100583:   ext_output=no
100584:   ext_shared=no
100585:   ;;
100586: *)
100587:   ext_output=yes
100588:   ext_shared=no
100589:   ;;
100590: esac
100591: 
100592: 
100593: 
100594: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
100595: $as_echo "$ext_output" >&6; }
100596: 
100597: 
100598: 
100599: 
100600: if test -z "$PHP_LIBXML_DIR"; then
100601: 
100602: php_with_libxml_dir=no
100603: 
100604: { $as_echo "$as_me:${as_lineno-$LINENO}: checking libxml2 install dir" >&5
100605: $as_echo_n "checking libxml2 install dir... " >&6; }
100606: 
100607: # Check whether --with-libxml-dir was given.
100608: if test "${with_libxml_dir+set}" = set; then :
100609:   withval=$with_libxml_dir; PHP_LIBXML_DIR=$withval
100610: else
100611: 
100612:   PHP_LIBXML_DIR=no
100613: 
100614: 
100615: fi
100616: 
100617: 
100618: ext_output=$PHP_LIBXML_DIR
100619: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
100620: $as_echo "$ext_output" >&6; }
100621: 
100622: 
100623: 
100624: fi
100625: 
100626: if test "$PHP_XMLWRITER" != "no"; then
100627: 
100628:   if test "$PHP_LIBXML" = "no"; then
100629:     as_fn_error $? "XMLWriter extension requires LIBXML extension, add --enable-libxml" "$LINENO" 5
100630:   fi
100631: 
100632: 
100633: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xml2-config path" >&5
100634: $as_echo_n "checking for xml2-config path... " >&6; }
100635: if ${ac_cv_php_xml2_config_path+:} false; then :
100636:   $as_echo_n "(cached) " >&6
100637: else
100638: 
100639:   for i in $PHP_LIBXML_DIR /usr/local /usr; do
100640:     if test -x "$i/bin/xml2-config"; then
100641:       ac_cv_php_xml2_config_path="$i/bin/xml2-config"
100642:       break
100643:     fi
100644:   done
100645: 
100646: fi
100647: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_php_xml2_config_path" >&5
100648: $as_echo "$ac_cv_php_xml2_config_path" >&6; }
100649: 
100650:   if test -x "$ac_cv_php_xml2_config_path"; then
100651:     XML2_CONFIG="$ac_cv_php_xml2_config_path"
100652:     libxml_full_version=`$XML2_CONFIG --version`
100653:     ac_IFS=$IFS
100654:     IFS="."
100655:     set $libxml_full_version
100656:     IFS=$ac_IFS
100657:     LIBXML_VERSION=`expr $1 \* 1000000 + $2 \* 1000 + $3`
100658:     if test "$LIBXML_VERSION" -ge "2006011"; then
100659:       LIBXML_LIBS=`$XML2_CONFIG --libs`
100660:       LIBXML_INCS=`$XML2_CONFIG --cflags`
100661: 
100662:   for ac_i in $LIBXML_LIBS; do
100663:     case $ac_i in
100664:     -pthread)
100665:       if test "$ext_shared" = "yes"; then
100666:         XMLWRITER_SHARED_LIBADD="$XMLWRITER_SHARED_LIBADD -pthread"
100667:       else
100668: 
100669: 
100670:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
100671: 
100672:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
100673:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
100674:     eval "EXTRA_LDFLAGS$unique=set"
100675:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
100676:   fi
100677: 
100678:       fi
100679:     ;;
100680:     -l*)
100681:       ac_ii=`echo $ac_i|cut -c 3-`
100682: 
100683: 
100684:   case $ac_ii in
100685:   c|c_r|pthread*) ;;
100686:   *)
100687:     if test "$ext_shared" = "yes"; then
100688:         XMLWRITER_SHARED_LIBADD="$XMLWRITER_SHARED_LIBADD -l$ac_ii"
100689:     else
100690: 
100691: 
100692:   case $ac_ii in
100693:   c|c_r|pthread*) ;;
100694:   *)
100695:       LIBS="$LIBS -l$ac_ii"
100696:    ;;
100697:   esac
100698: 
100699: 
100700:     fi
100701:    ;;
100702:   esac
100703: 
100704: 
100705:     ;;
100706:     -L*)
100707:       ac_ii=`echo $ac_i|cut -c 3-`
100708: 
100709:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
100710: 
100711:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
100712:     ai_p=$ac_ii
100713:   else
100714: 
100715:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
100716: 
100717:     ep_realdir=`(cd "$ep_dir" && pwd)`
100718:     ai_p="$ep_realdir"/`basename "$ac_ii"`
100719:   fi
100720: 
100721: 
100722:       if test "$ext_shared" = "yes"; then
100723:         XMLWRITER_SHARED_LIBADD="-L$ai_p $XMLWRITER_SHARED_LIBADD"
100724:         test -n "$ld_runpath_switch" && XMLWRITER_SHARED_LIBADD="$ld_runpath_switch$ai_p $XMLWRITER_SHARED_LIBADD"
100725:       else
100726: 
100727: 
100728: 
100729:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
100730: 
100731:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
100732:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
100733:     eval "LIBPATH$unique=set"
100734: 
100735:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
100736:     LDFLAGS="$LDFLAGS -L$ai_p"
100737:     PHP_RPATHS="$PHP_RPATHS $ai_p"
100738: 
100739:   fi
100740: 
100741: 
100742:       fi
100743: 
100744:   fi
100745: 
100746:     ;;
100747:     esac
100748:   done
100749: 
100750: 
100751:   for ac_i in $LIBXML_INCS; do
100752:     case $ac_i in
100753:     -I*)
100754:       ac_ii=`echo $ac_i|cut -c 3-`
100755: 
100756:   if test "$ac_ii" != "/usr/include"; then
100757: 
100758:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
100759:     ai_p=$ac_ii
100760:   else
100761: 
100762:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
100763: 
100764:     ep_realdir=`(cd "$ep_dir" && pwd)`
100765:     ai_p="$ep_realdir"/`basename "$ac_ii"`
100766:   fi
100767: 
100768: 
100769: 
100770:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
100771: 
100772:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
100773:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
100774:     eval "INCLUDEPATH$unique=set"
100775: 
100776:       if test ""; then
100777:         INCLUDES="-I$ai_p $INCLUDES"
100778:       else
100779:         INCLUDES="$INCLUDES -I$ai_p"
100780:       fi
100781: 
100782:   fi
100783: 
100784:   fi
100785: 
100786:     ;;
100787:     esac
100788:   done
100789: 
100790: 
100791:             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libxml build works" >&5
100792: $as_echo_n "checking whether libxml build works... " >&6; }
100793: if ${php_cv_libxml_build_works+:} false; then :
100794:   $as_echo_n "(cached) " >&6
100795: else
100796: 
100797: 
100798:   old_LIBS=$LIBS
100799:   LIBS="
100800:           $XMLWRITER_SHARED_LIBADD
100801:          $LIBS"
100802:   if test "$cross_compiling" = yes; then :
100803: 
100804:     LIBS=$old_LIBS
100805: 
100806: else
100807:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
100808: /* end confdefs.h.  */
100809: 
100810: 
100811:     char xmlInitParser();
100812:     int main() {
100813:       xmlInitParser();
100814:       return 0;
100815:     }
100816: 
100817: _ACEOF
100818: if ac_fn_c_try_run "$LINENO"; then :
100819: 
100820:     LIBS=$old_LIBS
100821: 
100822:           php_cv_libxml_build_works=yes
100823: 
100824: 
100825: else
100826: 
100827:     LIBS=$old_LIBS
100828: 
100829:           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
100830: $as_echo "no" >&6; }
100831:           as_fn_error $? "build test failed.  Please check the config.log for details." "$LINENO" 5
100832: 
100833: 
100834: fi
100835: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
100836:   conftest.$ac_objext conftest.beam conftest.$ac_ext
100837: fi
100838: 
100839: 
100840: 
100841: fi
100842: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_libxml_build_works" >&5
100843: $as_echo "$php_cv_libxml_build_works" >&6; }
100844:       if test "$php_cv_libxml_build_works" = "yes"; then
100845: 
100846: $as_echo "#define HAVE_LIBXML 1" >>confdefs.h
100847: 
100848:       fi
100849: 
100850: 
100851: $as_echo "#define HAVE_XMLWRITER 1" >>confdefs.h
100852: 
100853: 
100854:   ext_builddir=ext/xmlwriter
100855:   ext_srcdir=$abs_srcdir/ext/xmlwriter
100856: 
100857:   ac_extra=
100858: 
100859:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
100860:     PHP_XMLWRITER_SHARED=no
100861: 
100862: 
100863:   case ext/xmlwriter in
100864:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
100865:   /*) ac_srcdir=`echo "ext/xmlwriter"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
100866:   *) ac_srcdir="$abs_srcdir/ext/xmlwriter/"; ac_bdir="ext/xmlwriter/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
100867:   esac
100868: 
100869: 
100870: 
100871:   b_c_pre=$php_c_pre
100872:   b_cxx_pre=$php_cxx_pre
100873:   b_c_meta=$php_c_meta
100874:   b_cxx_meta=$php_cxx_meta
100875:   b_c_post=$php_c_post
100876:   b_cxx_post=$php_cxx_post
100877:   b_lo=$php_lo
100878: 
100879: 
100880:   old_IFS=$IFS
100881:   for ac_src in php_xmlwriter.c; do
100882: 
100883:       IFS=.
100884:       set $ac_src
100885:       ac_obj=$1
100886:       IFS=$old_IFS
100887: 
100888:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
100889: 
100890:       case $ac_src in
100891:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100892:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100893:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100894:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
100895:       esac
100896: 
100897:     cat >>Makefile.objects<<EOF
100898: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
100899: 	$ac_comp
100900: EOF
100901:   done
100902: 
100903: 
100904:     EXT_STATIC="$EXT_STATIC xmlwriter"
100905:     if test "$ext_shared" != "nocli"; then
100906:       EXT_CLI_STATIC="$EXT_CLI_STATIC xmlwriter"
100907:     fi
100908:   else
100909:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
100910:       PHP_XMLWRITER_SHARED=yes
100911: 
100912:   case ext/xmlwriter in
100913:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
100914:   /*) ac_srcdir=`echo "ext/xmlwriter"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
100915:   *) ac_srcdir="$abs_srcdir/ext/xmlwriter/"; ac_bdir="ext/xmlwriter/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
100916:   esac
100917: 
100918: 
100919: 
100920:   b_c_pre=$shared_c_pre
100921:   b_cxx_pre=$shared_cxx_pre
100922:   b_c_meta=$shared_c_meta
100923:   b_cxx_meta=$shared_cxx_meta
100924:   b_c_post=$shared_c_post
100925:   b_cxx_post=$shared_cxx_post
100926:   b_lo=$shared_lo
100927: 
100928: 
100929:   old_IFS=$IFS
100930:   for ac_src in php_xmlwriter.c; do
100931: 
100932:       IFS=.
100933:       set $ac_src
100934:       ac_obj=$1
100935:       IFS=$old_IFS
100936: 
100937:       shared_objects_xmlwriter="$shared_objects_xmlwriter $ac_bdir$ac_obj.lo"
100938: 
100939:       case $ac_src in
100940:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100941:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100942:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100943:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
100944:       esac
100945: 
100946:     cat >>Makefile.objects<<EOF
100947: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
100948: 	$ac_comp
100949: EOF
100950:   done
100951: 
100952:       case $host_alias in
100953:         *netware*)
100954: 
100955:   install_modules="install-modules"
100956: 
100957:   case $host_alias in
100958:     *aix*)
100959:       suffix=so
100960:       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'
100961:       ;;
100962:     *netware*)
100963:       suffix=nlm
100964:       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)'
100965:       ;;
100966:     *)
100967:       suffix=la
100968:       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)'
100969:       ;;
100970:   esac
100971: 
100972:   if test "x" = "xyes"; then
100973:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpxmlwriter.$suffix"
100974:   else
100975:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpxmlwriter.$suffix"
100976:   fi
100977: 
100978:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_xmlwriter"
100979: 
100980:   cat >>Makefile.objects<<EOF
100981: \$(phplibdir)/phpxmlwriter.$suffix: $ext_builddir/phpxmlwriter.$suffix
100982: 	\$(LIBTOOL) --mode=install cp $ext_builddir/phpxmlwriter.$suffix \$(phplibdir)
100983: 
100984: $ext_builddir/phpxmlwriter.$suffix: \$(shared_objects_xmlwriter) \$(PHPXMLWRITER_SHARED_DEPENDENCIES)
100985: 	$link_cmd
100986: 
100987: EOF
100988: 
100989:           ;;
100990:         *)
100991: 
100992:   install_modules="install-modules"
100993: 
100994:   case $host_alias in
100995:     *aix*)
100996:       suffix=so
100997:       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'
100998:       ;;
100999:     *netware*)
101000:       suffix=nlm
101001:       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)'
101002:       ;;
101003:     *)
101004:       suffix=la
101005:       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)'
101006:       ;;
101007:   esac
101008: 
101009:   if test "x" = "xyes"; then
101010:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/xmlwriter.$suffix"
101011:   else
101012:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/xmlwriter.$suffix"
101013:   fi
101014: 
101015:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_xmlwriter"
101016: 
101017:   cat >>Makefile.objects<<EOF
101018: \$(phplibdir)/xmlwriter.$suffix: $ext_builddir/xmlwriter.$suffix
101019: 	\$(LIBTOOL) --mode=install cp $ext_builddir/xmlwriter.$suffix \$(phplibdir)
101020: 
101021: $ext_builddir/xmlwriter.$suffix: \$(shared_objects_xmlwriter) \$(XMLWRITER_SHARED_DEPENDENCIES)
101022: 	$link_cmd
101023: 
101024: EOF
101025: 
101026:           ;;
101027:       esac
101028: 
101029: cat >>confdefs.h <<_ACEOF
101030: #define COMPILE_DL_XMLWRITER 1
101031: _ACEOF
101032: 
101033:     fi
101034:   fi
101035: 
101036:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
101037:     PHP_XMLWRITER_SHARED=no
101038:     case "$PHP_SAPI" in
101039:       cgi|embed)
101040: 
101041: 
101042:   case ext/xmlwriter in
101043:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
101044:   /*) ac_srcdir=`echo "ext/xmlwriter"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
101045:   *) ac_srcdir="$abs_srcdir/ext/xmlwriter/"; ac_bdir="ext/xmlwriter/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
101046:   esac
101047: 
101048: 
101049: 
101050:   b_c_pre=$php_c_pre
101051:   b_cxx_pre=$php_cxx_pre
101052:   b_c_meta=$php_c_meta
101053:   b_cxx_meta=$php_cxx_meta
101054:   b_c_post=$php_c_post
101055:   b_cxx_post=$php_cxx_post
101056:   b_lo=$php_lo
101057: 
101058: 
101059:   old_IFS=$IFS
101060:   for ac_src in php_xmlwriter.c; do
101061: 
101062:       IFS=.
101063:       set $ac_src
101064:       ac_obj=$1
101065:       IFS=$old_IFS
101066: 
101067:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
101068: 
101069:       case $ac_src in
101070:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
101071:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
101072:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
101073:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
101074:       esac
101075: 
101076:     cat >>Makefile.objects<<EOF
101077: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
101078: 	$ac_comp
101079: EOF
101080:   done
101081: 
101082: 
101083:         EXT_STATIC="$EXT_STATIC xmlwriter"
101084:         ;;
101085:       *)
101086: 
101087: 
101088:   case ext/xmlwriter in
101089:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
101090:   /*) ac_srcdir=`echo "ext/xmlwriter"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
101091:   *) ac_srcdir="$abs_srcdir/ext/xmlwriter/"; ac_bdir="ext/xmlwriter/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
101092:   esac
101093: 
101094: 
101095: 
101096:   b_c_pre=$php_c_pre
101097:   b_cxx_pre=$php_cxx_pre
101098:   b_c_meta=$php_c_meta
101099:   b_cxx_meta=$php_cxx_meta
101100:   b_c_post=$php_c_post
101101:   b_cxx_post=$php_cxx_post
101102:   b_lo=$php_lo
101103: 
101104: 
101105:   old_IFS=$IFS
101106:   for ac_src in php_xmlwriter.c; do
101107: 
101108:       IFS=.
101109:       set $ac_src
101110:       ac_obj=$1
101111:       IFS=$old_IFS
101112: 
101113:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
101114: 
101115:       case $ac_src in
101116:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
101117:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
101118:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
101119:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
101120:       esac
101121: 
101122:     cat >>Makefile.objects<<EOF
101123: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
101124: 	$ac_comp
101125: EOF
101126:   done
101127: 
101128: 
101129:         ;;
101130:     esac
101131:     EXT_CLI_STATIC="$EXT_CLI_STATIC xmlwriter"
101132:   fi
101133: 
101134: 
101135:     BUILD_DIR="$BUILD_DIR $ext_builddir"
101136: 
101137: 
101138: 
101139:   if test "$ext_builddir" = "."; then
101140:     PHP_PECL_EXTENSION=xmlwriter
101141: 
101142:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
101143: 
101144:   fi
101145: 
101146: 
101147:   PHP_VAR_SUBST="$PHP_VAR_SUBST XMLWRITER_SHARED_LIBADD"
101148: 
101149: 
101150:     else
101151:       as_fn_error $? "libxml2 version 2.6.11 or greater required." "$LINENO" 5
101152:     fi
101153: else
101154:     as_fn_error $? "xml2-config not found. Please check your libxml2 installation." "$LINENO" 5
101155: 
101156:   fi
101157: 
101158: fi
101159: 
101160: 
101161: 
101162: php_with_xsl=no
101163: 
101164: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XSL support" >&5
101165: $as_echo_n "checking for XSL support... " >&6; }
101166: 
101167: # Check whether --with-xsl was given.
101168: if test "${with_xsl+set}" = set; then :
101169:   withval=$with_xsl; PHP_XSL=$withval
101170: else
101171: 
101172:   PHP_XSL=no
101173:   test "$PHP_ENABLE_ALL" && PHP_XSL=$PHP_ENABLE_ALL
101174: 
101175: fi
101176: 
101177: 
101178: 
101179: ext_output="yes, shared"
101180: ext_shared=yes
101181: case $PHP_XSL in
101182: shared,*)
101183:   PHP_XSL=`echo "$PHP_XSL"|$SED 's/^shared,//'`
101184:   ;;
101185: shared)
101186:   PHP_XSL=yes
101187:   ;;
101188: no)
101189:   ext_output=no
101190:   ext_shared=no
101191:   ;;
101192: *)
101193:   ext_output=yes
101194:   ext_shared=no
101195:   ;;
101196: esac
101197: 
101198: 
101199: 
101200: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
101201: $as_echo "$ext_output" >&6; }
101202: 
101203: 
101204: 
101205: 
101206: if test "$PHP_XSL" != "no"; then
101207: 
101208:   if test "$PHP_LIBXML" = "no"; then
101209:     as_fn_error $? "XSL extension requires LIBXML extension, add --enable-libxml" "$LINENO" 5
101210:   fi
101211: 
101212:   if test "$PHP_DOM" = "no"; then
101213:     as_fn_error $? "XSL extension requires DOM extension, add --enable-dom" "$LINENO" 5
101214:   fi
101215: 
101216:   for i in $PHP_XSL /usr/local /usr; do
101217:     if test -x "$i/bin/xslt-config"; then
101218:       XSLT_CONFIG=$i/bin/xslt-config
101219:       break
101220:     fi
101221:   done
101222: 
101223:   if test -z "$XSLT_CONFIG"; then
101224:     as_fn_error $? "xslt-config not found. Please reinstall the libxslt >= 1.1.0 distribution" "$LINENO" 5
101225:   else
101226:     libxslt_full_version=`$XSLT_CONFIG --version`
101227:     ac_IFS=$IFS
101228:     IFS="."
101229:     set $libxslt_full_version
101230:     IFS=$ac_IFS
101231:     LIBXSLT_VERSION=`expr $1 \* 1000000 + $2 \* 1000 + $3`
101232:     if test "$LIBXSLT_VERSION" -ge "1001000"; then
101233:       XSL_LIBS=`$XSLT_CONFIG --libs`
101234:       XSL_INCS=`$XSLT_CONFIG --cflags`
101235: 
101236:   for ac_i in $XSL_LIBS; do
101237:     case $ac_i in
101238:     -pthread)
101239:       if test "$ext_shared" = "yes"; then
101240:         XSL_SHARED_LIBADD="$XSL_SHARED_LIBADD -pthread"
101241:       else
101242: 
101243: 
101244:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
101245: 
101246:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
101247:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
101248:     eval "EXTRA_LDFLAGS$unique=set"
101249:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
101250:   fi
101251: 
101252:       fi
101253:     ;;
101254:     -l*)
101255:       ac_ii=`echo $ac_i|cut -c 3-`
101256: 
101257: 
101258:   case $ac_ii in
101259:   c|c_r|pthread*) ;;
101260:   *)
101261:     if test "$ext_shared" = "yes"; then
101262:         XSL_SHARED_LIBADD="$XSL_SHARED_LIBADD -l$ac_ii"
101263:     else
101264: 
101265: 
101266:   case $ac_ii in
101267:   c|c_r|pthread*) ;;
101268:   *)
101269:       LIBS="$LIBS -l$ac_ii"
101270:    ;;
101271:   esac
101272: 
101273: 
101274:     fi
101275:    ;;
101276:   esac
101277: 
101278: 
101279:     ;;
101280:     -L*)
101281:       ac_ii=`echo $ac_i|cut -c 3-`
101282: 
101283:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
101284: 
101285:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
101286:     ai_p=$ac_ii
101287:   else
101288: 
101289:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
101290: 
101291:     ep_realdir=`(cd "$ep_dir" && pwd)`
101292:     ai_p="$ep_realdir"/`basename "$ac_ii"`
101293:   fi
101294: 
101295: 
101296:       if test "$ext_shared" = "yes"; then
101297:         XSL_SHARED_LIBADD="-L$ai_p $XSL_SHARED_LIBADD"
101298:         test -n "$ld_runpath_switch" && XSL_SHARED_LIBADD="$ld_runpath_switch$ai_p $XSL_SHARED_LIBADD"
101299:       else
101300: 
101301: 
101302: 
101303:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
101304: 
101305:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
101306:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
101307:     eval "LIBPATH$unique=set"
101308: 
101309:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
101310:     LDFLAGS="$LDFLAGS -L$ai_p"
101311:     PHP_RPATHS="$PHP_RPATHS $ai_p"
101312: 
101313:   fi
101314: 
101315: 
101316:       fi
101317: 
101318:   fi
101319: 
101320:     ;;
101321:     esac
101322:   done
101323: 
101324: 
101325:   for ac_i in $XSL_INCS; do
101326:     case $ac_i in
101327:     -I*)
101328:       ac_ii=`echo $ac_i|cut -c 3-`
101329: 
101330:   if test "$ac_ii" != "/usr/include"; then
101331: 
101332:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
101333:     ai_p=$ac_ii
101334:   else
101335: 
101336:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
101337: 
101338:     ep_realdir=`(cd "$ep_dir" && pwd)`
101339:     ai_p="$ep_realdir"/`basename "$ac_ii"`
101340:   fi
101341: 
101342: 
101343: 
101344:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
101345: 
101346:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
101347:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
101348:     eval "INCLUDEPATH$unique=set"
101349: 
101350:       if test ""; then
101351:         INCLUDES="-I$ai_p $INCLUDES"
101352:       else
101353:         INCLUDES="$INCLUDES -I$ai_p"
101354:       fi
101355: 
101356:   fi
101357: 
101358:   fi
101359: 
101360:     ;;
101361:     esac
101362:   done
101363: 
101364: 
101365:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXSLT support" >&5
101366: $as_echo_n "checking for EXSLT support... " >&6; }
101367:       for i in $PHP_XSL /usr/local /usr; do
101368:         if test -r "$i/include/libexslt/exslt.h"; then
101369:           PHP_XSL_EXSL_DIR=$i
101370:           break
101371:         fi
101372:       done
101373:       if test -z "$PHP_XSL_EXSL_DIR"; then
101374:         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
101375: $as_echo "not found" >&6; }
101376:       else
101377:         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
101378: $as_echo "found" >&6; }
101379: 
101380: 
101381:   if test "$ext_shared" = "yes"; then
101382:     XSL_SHARED_LIBADD="-lexslt $XSL_SHARED_LIBADD"
101383:     if test -n "$PHP_XSL_EXSL_DIR/$PHP_LIBDIR"; then
101384: 
101385:   if test "$PHP_XSL_EXSL_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_XSL_EXSL_DIR/$PHP_LIBDIR" != "/usr/lib"; then
101386: 
101387:   if test -z "$PHP_XSL_EXSL_DIR/$PHP_LIBDIR" || echo "$PHP_XSL_EXSL_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
101388:     ai_p=$PHP_XSL_EXSL_DIR/$PHP_LIBDIR
101389:   else
101390: 
101391:     ep_dir=`echo $PHP_XSL_EXSL_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
101392: 
101393:     ep_realdir=`(cd "$ep_dir" && pwd)`
101394:     ai_p="$ep_realdir"/`basename "$PHP_XSL_EXSL_DIR/$PHP_LIBDIR"`
101395:   fi
101396: 
101397: 
101398:       if test "$ext_shared" = "yes"; then
101399:         XSL_SHARED_LIBADD="-L$ai_p $XSL_SHARED_LIBADD"
101400:         test -n "$ld_runpath_switch" && XSL_SHARED_LIBADD="$ld_runpath_switch$ai_p $XSL_SHARED_LIBADD"
101401:       else
101402: 
101403: 
101404: 
101405:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
101406: 
101407:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
101408:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
101409:     eval "LIBPATH$unique=set"
101410: 
101411:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
101412:     LDFLAGS="$LDFLAGS -L$ai_p"
101413:     PHP_RPATHS="$PHP_RPATHS $ai_p"
101414: 
101415:   fi
101416: 
101417: 
101418:       fi
101419: 
101420:   fi
101421: 
101422:     fi
101423:   else
101424: 
101425: 
101426:   if test -n "$PHP_XSL_EXSL_DIR/$PHP_LIBDIR"; then
101427: 
101428:   if test "$PHP_XSL_EXSL_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_XSL_EXSL_DIR/$PHP_LIBDIR" != "/usr/lib"; then
101429: 
101430:   if test -z "$PHP_XSL_EXSL_DIR/$PHP_LIBDIR" || echo "$PHP_XSL_EXSL_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
101431:     ai_p=$PHP_XSL_EXSL_DIR/$PHP_LIBDIR
101432:   else
101433: 
101434:     ep_dir=`echo $PHP_XSL_EXSL_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
101435: 
101436:     ep_realdir=`(cd "$ep_dir" && pwd)`
101437:     ai_p="$ep_realdir"/`basename "$PHP_XSL_EXSL_DIR/$PHP_LIBDIR"`
101438:   fi
101439: 
101440: 
101441: 
101442: 
101443: 
101444:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
101445: 
101446:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
101447:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
101448:     eval "LIBPATH$unique=set"
101449: 
101450:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
101451:     LDFLAGS="$LDFLAGS -L$ai_p"
101452:     PHP_RPATHS="$PHP_RPATHS $ai_p"
101453: 
101454:   fi
101455: 
101456: 
101457: 
101458:   fi
101459: 
101460:   fi
101461: 
101462: 
101463:   case exslt in
101464:   c|c_r|pthread*) ;;
101465:   *)
101466:       LIBS="-lexslt $LIBS"
101467:    ;;
101468:   esac
101469: 
101470: 
101471: 
101472: 
101473:   fi
101474: 
101475: 
101476: 
101477:   if test "$PHP_XSL_EXSL_DIR/include" != "/usr/include"; then
101478: 
101479:   if test -z "$PHP_XSL_EXSL_DIR/include" || echo "$PHP_XSL_EXSL_DIR/include" | grep '^/' >/dev/null ; then
101480:     ai_p=$PHP_XSL_EXSL_DIR/include
101481:   else
101482: 
101483:     ep_dir=`echo $PHP_XSL_EXSL_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`
101484: 
101485:     ep_realdir=`(cd "$ep_dir" && pwd)`
101486:     ai_p="$ep_realdir"/`basename "$PHP_XSL_EXSL_DIR/include"`
101487:   fi
101488: 
101489: 
101490: 
101491:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
101492: 
101493:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
101494:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
101495:     eval "INCLUDEPATH$unique=set"
101496: 
101497:       if test ""; then
101498:         INCLUDES="-I$ai_p $INCLUDES"
101499:       else
101500:         INCLUDES="$INCLUDES -I$ai_p"
101501:       fi
101502: 
101503:   fi
101504: 
101505:   fi
101506: 
101507: 
101508: $as_echo "#define HAVE_XSL_EXSLT 1" >>confdefs.h
101509: 
101510:       fi
101511:     else
101512:       as_fn_error $? "libxslt version 1.1.0 or greater required." "$LINENO" 5
101513:     fi
101514: 
101515: 
101516:   fi
101517: 
101518: 
101519: $as_echo "#define HAVE_XSL 1" >>confdefs.h
101520: 
101521: 
101522:   ext_builddir=ext/xsl
101523:   ext_srcdir=$abs_srcdir/ext/xsl
101524: 
101525:   ac_extra=
101526: 
101527:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
101528:     PHP_XSL_SHARED=no
101529: 
101530: 
101531:   case ext/xsl in
101532:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
101533:   /*) ac_srcdir=`echo "ext/xsl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
101534:   *) ac_srcdir="$abs_srcdir/ext/xsl/"; ac_bdir="ext/xsl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
101535:   esac
101536: 
101537: 
101538: 
101539:   b_c_pre=$php_c_pre
101540:   b_cxx_pre=$php_cxx_pre
101541:   b_c_meta=$php_c_meta
101542:   b_cxx_meta=$php_cxx_meta
101543:   b_c_post=$php_c_post
101544:   b_cxx_post=$php_cxx_post
101545:   b_lo=$php_lo
101546: 
101547: 
101548:   old_IFS=$IFS
101549:   for ac_src in php_xsl.c xsltprocessor.c; do
101550: 
101551:       IFS=.
101552:       set $ac_src
101553:       ac_obj=$1
101554:       IFS=$old_IFS
101555: 
101556:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
101557: 
101558:       case $ac_src in
101559:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
101560:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
101561:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
101562:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
101563:       esac
101564: 
101565:     cat >>Makefile.objects<<EOF
101566: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
101567: 	$ac_comp
101568: EOF
101569:   done
101570: 
101571: 
101572:     EXT_STATIC="$EXT_STATIC xsl"
101573:     if test "$ext_shared" != "nocli"; then
101574:       EXT_CLI_STATIC="$EXT_CLI_STATIC xsl"
101575:     fi
101576:   else
101577:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
101578:       PHP_XSL_SHARED=yes
101579: 
101580:   case ext/xsl in
101581:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
101582:   /*) ac_srcdir=`echo "ext/xsl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
101583:   *) ac_srcdir="$abs_srcdir/ext/xsl/"; ac_bdir="ext/xsl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
101584:   esac
101585: 
101586: 
101587: 
101588:   b_c_pre=$shared_c_pre
101589:   b_cxx_pre=$shared_cxx_pre
101590:   b_c_meta=$shared_c_meta
101591:   b_cxx_meta=$shared_cxx_meta
101592:   b_c_post=$shared_c_post
101593:   b_cxx_post=$shared_cxx_post
101594:   b_lo=$shared_lo
101595: 
101596: 
101597:   old_IFS=$IFS
101598:   for ac_src in php_xsl.c xsltprocessor.c; do
101599: 
101600:       IFS=.
101601:       set $ac_src
101602:       ac_obj=$1
101603:       IFS=$old_IFS
101604: 
101605:       shared_objects_xsl="$shared_objects_xsl $ac_bdir$ac_obj.lo"
101606: 
101607:       case $ac_src in
101608:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
101609:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
101610:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
101611:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
101612:       esac
101613: 
101614:     cat >>Makefile.objects<<EOF
101615: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
101616: 	$ac_comp
101617: EOF
101618:   done
101619: 
101620:       case $host_alias in
101621:         *netware*)
101622: 
101623:   install_modules="install-modules"
101624: 
101625:   case $host_alias in
101626:     *aix*)
101627:       suffix=so
101628:       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'
101629:       ;;
101630:     *netware*)
101631:       suffix=nlm
101632:       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)'
101633:       ;;
101634:     *)
101635:       suffix=la
101636:       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)'
101637:       ;;
101638:   esac
101639: 
101640:   if test "x" = "xyes"; then
101641:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpxsl.$suffix"
101642:   else
101643:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpxsl.$suffix"
101644:   fi
101645: 
101646:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_xsl"
101647: 
101648:   cat >>Makefile.objects<<EOF
101649: \$(phplibdir)/phpxsl.$suffix: $ext_builddir/phpxsl.$suffix
101650: 	\$(LIBTOOL) --mode=install cp $ext_builddir/phpxsl.$suffix \$(phplibdir)
101651: 
101652: $ext_builddir/phpxsl.$suffix: \$(shared_objects_xsl) \$(PHPXSL_SHARED_DEPENDENCIES)
101653: 	$link_cmd
101654: 
101655: EOF
101656: 
101657:           ;;
101658:         *)
101659: 
101660:   install_modules="install-modules"
101661: 
101662:   case $host_alias in
101663:     *aix*)
101664:       suffix=so
101665:       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'
101666:       ;;
101667:     *netware*)
101668:       suffix=nlm
101669:       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)'
101670:       ;;
101671:     *)
101672:       suffix=la
101673:       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)'
101674:       ;;
101675:   esac
101676: 
101677:   if test "x" = "xyes"; then
101678:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/xsl.$suffix"
101679:   else
101680:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/xsl.$suffix"
101681:   fi
101682: 
101683:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_xsl"
101684: 
101685:   cat >>Makefile.objects<<EOF
101686: \$(phplibdir)/xsl.$suffix: $ext_builddir/xsl.$suffix
101687: 	\$(LIBTOOL) --mode=install cp $ext_builddir/xsl.$suffix \$(phplibdir)
101688: 
101689: $ext_builddir/xsl.$suffix: \$(shared_objects_xsl) \$(XSL_SHARED_DEPENDENCIES)
101690: 	$link_cmd
101691: 
101692: EOF
101693: 
101694:           ;;
101695:       esac
101696: 
101697: cat >>confdefs.h <<_ACEOF
101698: #define COMPILE_DL_XSL 1
101699: _ACEOF
101700: 
101701:     fi
101702:   fi
101703: 
101704:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
101705:     PHP_XSL_SHARED=no
101706:     case "$PHP_SAPI" in
101707:       cgi|embed)
101708: 
101709: 
101710:   case ext/xsl in
101711:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
101712:   /*) ac_srcdir=`echo "ext/xsl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
101713:   *) ac_srcdir="$abs_srcdir/ext/xsl/"; ac_bdir="ext/xsl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
101714:   esac
101715: 
101716: 
101717: 
101718:   b_c_pre=$php_c_pre
101719:   b_cxx_pre=$php_cxx_pre
101720:   b_c_meta=$php_c_meta
101721:   b_cxx_meta=$php_cxx_meta
101722:   b_c_post=$php_c_post
101723:   b_cxx_post=$php_cxx_post
101724:   b_lo=$php_lo
101725: 
101726: 
101727:   old_IFS=$IFS
101728:   for ac_src in php_xsl.c xsltprocessor.c; do
101729: 
101730:       IFS=.
101731:       set $ac_src
101732:       ac_obj=$1
101733:       IFS=$old_IFS
101734: 
101735:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
101736: 
101737:       case $ac_src in
101738:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
101739:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
101740:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
101741:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
101742:       esac
101743: 
101744:     cat >>Makefile.objects<<EOF
101745: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
101746: 	$ac_comp
101747: EOF
101748:   done
101749: 
101750: 
101751:         EXT_STATIC="$EXT_STATIC xsl"
101752:         ;;
101753:       *)
101754: 
101755: 
101756:   case ext/xsl in
101757:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
101758:   /*) ac_srcdir=`echo "ext/xsl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
101759:   *) ac_srcdir="$abs_srcdir/ext/xsl/"; ac_bdir="ext/xsl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
101760:   esac
101761: 
101762: 
101763: 
101764:   b_c_pre=$php_c_pre
101765:   b_cxx_pre=$php_cxx_pre
101766:   b_c_meta=$php_c_meta
101767:   b_cxx_meta=$php_cxx_meta
101768:   b_c_post=$php_c_post
101769:   b_cxx_post=$php_cxx_post
101770:   b_lo=$php_lo
101771: 
101772: 
101773:   old_IFS=$IFS
101774:   for ac_src in php_xsl.c xsltprocessor.c; do
101775: 
101776:       IFS=.
101777:       set $ac_src
101778:       ac_obj=$1
101779:       IFS=$old_IFS
101780: 
101781:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
101782: 
101783:       case $ac_src in
101784:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
101785:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
101786:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
101787:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
101788:       esac
101789: 
101790:     cat >>Makefile.objects<<EOF
101791: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
101792: 	$ac_comp
101793: EOF
101794:   done
101795: 
101796: 
101797:         ;;
101798:     esac
101799:     EXT_CLI_STATIC="$EXT_CLI_STATIC xsl"
101800:   fi
101801: 
101802: 
101803:     BUILD_DIR="$BUILD_DIR $ext_builddir"
101804: 
101805: 
101806: 
101807:   if test "$ext_builddir" = "."; then
101808:     PHP_PECL_EXTENSION=xsl
101809: 
101810:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
101811: 
101812:   fi
101813: 
101814: 
101815:   PHP_VAR_SUBST="$PHP_VAR_SUBST XSL_SHARED_LIBADD"
101816: 
101817: 
101818:   am_i_shared=$PHP_XSL_SHARED
101819:   is_it_shared=$PHP_LIBXML_SHARED
101820:   is_it_enabled=$PHP_LIBXML
101821:   if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
101822:     as_fn_error $? "
101823: You've configured extension xsl to build statically, but it
101824: depends on extension libxml, which you've configured to build shared.
101825: You either need to build xsl shared or build libxml statically for the
101826: build to be successful.
101827: " "$LINENO" 5
101828:   fi
101829:   if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then
101830:     as_fn_error $? "
101831: You've configured extension xsl, which depends on extension libxml,
101832: but you've either not enabled libxml, or have disabled it.
101833: " "$LINENO" 5
101834:   fi
101835: 
101836: fi
101837: 
101838: 
101839: 
101840: php_enable_zip=no
101841: 
101842: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zip archive read/writesupport" >&5
101843: $as_echo_n "checking for zip archive read/writesupport... " >&6; }
101844: # Check whether --enable-zip was given.
101845: if test "${enable_zip+set}" = set; then :
101846:   enableval=$enable_zip; PHP_ZIP=$enableval
101847: else
101848: 
101849:   PHP_ZIP=no
101850:   test "$PHP_ENABLE_ALL" && PHP_ZIP=$PHP_ENABLE_ALL
101851: 
101852: fi
101853: 
101854: 
101855: 
101856: ext_output="yes, shared"
101857: ext_shared=yes
101858: case $PHP_ZIP in
101859: shared,*)
101860:   PHP_ZIP=`echo "$PHP_ZIP"|$SED 's/^shared,//'`
101861:   ;;
101862: shared)
101863:   PHP_ZIP=yes
101864:   ;;
101865: no)
101866:   ext_output=no
101867:   ext_shared=no
101868:   ;;
101869: *)
101870:   ext_output=yes
101871:   ext_shared=no
101872:   ;;
101873: esac
101874: 
101875: 
101876: 
101877: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
101878: $as_echo "$ext_output" >&6; }
101879: 
101880: 
101881: 
101882: 
101883: if test -z "$PHP_ZLIB_DIR"; then
101884: 
101885: php_with_zlib_dir=no
101886: 
101887: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the location of libz" >&5
101888: $as_echo_n "checking for the location of libz... " >&6; }
101889: 
101890: # Check whether --with-zlib-dir was given.
101891: if test "${with_zlib_dir+set}" = set; then :
101892:   withval=$with_zlib_dir; PHP_ZLIB_DIR=$withval
101893: else
101894: 
101895:   PHP_ZLIB_DIR=no
101896: 
101897: 
101898: fi
101899: 
101900: 
101901: ext_output=$PHP_ZLIB_DIR
101902: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
101903: $as_echo "$ext_output" >&6; }
101904: 
101905: 
101906: 
101907: fi
101908: 
101909: 
101910: php_with_pcre_dir=no
101911: 
101912: { $as_echo "$as_me:${as_lineno-$LINENO}: checking pcre install prefix" >&5
101913: $as_echo_n "checking pcre install prefix... " >&6; }
101914: 
101915: # Check whether --with-pcre-dir was given.
101916: if test "${with_pcre_dir+set}" = set; then :
101917:   withval=$with_pcre_dir; PHP_PCRE_DIR=$withval
101918: else
101919: 
101920:   PHP_PCRE_DIR=no
101921: 
101922: 
101923: fi
101924: 
101925: 
101926: ext_output=$PHP_PCRE_DIR
101927: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
101928: $as_echo "$ext_output" >&6; }
101929: 
101930: 
101931: 
101932: 
101933: if test "$PHP_ZIP" != "no"; then
101934: 
101935:   if test "$PHP_ZLIB_DIR" != "no" && test "$PHP_ZLIB_DIR" != "yes"; then
101936:     if test -f "$PHP_ZLIB_DIR/include/zlib/zlib.h"; then
101937:       PHP_ZLIB_DIR="$PHP_ZLIB_DIR"
101938:       PHP_ZLIB_INCDIR="$PHP_ZLIB_DIR/include/zlib"
101939:     elif test -f "$PHP_ZLIB_DIR/include/zlib.h"; then
101940:       PHP_ZLIB_DIR="$PHP_ZLIB_DIR"
101941:       PHP_ZLIB_INCDIR="$PHP_ZLIB_DIR/include"
101942:     else
101943:       as_fn_error $? "Can not find zlib headers under \"$PHP_ZLIB_DIR\"" "$LINENO" 5
101944:     fi
101945:   else
101946:     for i in /usr/local /usr; do
101947:       if test -f "$i/include/zlib/zlib.h"; then
101948:         PHP_ZLIB_DIR="$i"
101949:         PHP_ZLIB_INCDIR="$i/include/zlib"
101950:       elif test -f "$i/include/zlib.h"; then
101951:         PHP_ZLIB_DIR="$i"
101952:         PHP_ZLIB_INCDIR="$i/include"
101953:       fi
101954:     done
101955:   fi
101956: 
101957:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the location of zlib" >&5
101958: $as_echo_n "checking for the location of zlib... " >&6; }
101959:   if test "$PHP_ZLIB_DIR" = "no"; then
101960:     as_fn_error $? "zip support requires ZLIB. Use --with-zlib-dir=<DIR> to specify prefix where ZLIB include and library are located" "$LINENO" 5
101961:   else
101962:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_ZLIB_DIR" >&5
101963: $as_echo "$PHP_ZLIB_DIR" >&6; }
101964: 
101965: 
101966:   if test "$ext_shared" = "yes"; then
101967:     ZIP_SHARED_LIBADD="-lz $ZIP_SHARED_LIBADD"
101968:     if test -n "$PHP_ZLIB_DIR/$PHP_LIBDIR"; then
101969: 
101970:   if test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/lib"; then
101971: 
101972:   if test -z "$PHP_ZLIB_DIR/$PHP_LIBDIR" || echo "$PHP_ZLIB_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
101973:     ai_p=$PHP_ZLIB_DIR/$PHP_LIBDIR
101974:   else
101975: 
101976:     ep_dir=`echo $PHP_ZLIB_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
101977: 
101978:     ep_realdir=`(cd "$ep_dir" && pwd)`
101979:     ai_p="$ep_realdir"/`basename "$PHP_ZLIB_DIR/$PHP_LIBDIR"`
101980:   fi
101981: 
101982: 
101983:       if test "$ext_shared" = "yes"; then
101984:         ZIP_SHARED_LIBADD="-L$ai_p $ZIP_SHARED_LIBADD"
101985:         test -n "$ld_runpath_switch" && ZIP_SHARED_LIBADD="$ld_runpath_switch$ai_p $ZIP_SHARED_LIBADD"
101986:       else
101987: 
101988: 
101989: 
101990:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
101991: 
101992:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
101993:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
101994:     eval "LIBPATH$unique=set"
101995: 
101996:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
101997:     LDFLAGS="$LDFLAGS -L$ai_p"
101998:     PHP_RPATHS="$PHP_RPATHS $ai_p"
101999: 
102000:   fi
102001: 
102002: 
102003:       fi
102004: 
102005:   fi
102006: 
102007:     fi
102008:   else
102009: 
102010: 
102011:   if test -n "$PHP_ZLIB_DIR/$PHP_LIBDIR"; then
102012: 
102013:   if test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/lib"; then
102014: 
102015:   if test -z "$PHP_ZLIB_DIR/$PHP_LIBDIR" || echo "$PHP_ZLIB_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
102016:     ai_p=$PHP_ZLIB_DIR/$PHP_LIBDIR
102017:   else
102018: 
102019:     ep_dir=`echo $PHP_ZLIB_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
102020: 
102021:     ep_realdir=`(cd "$ep_dir" && pwd)`
102022:     ai_p="$ep_realdir"/`basename "$PHP_ZLIB_DIR/$PHP_LIBDIR"`
102023:   fi
102024: 
102025: 
102026: 
102027: 
102028: 
102029:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
102030: 
102031:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
102032:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
102033:     eval "LIBPATH$unique=set"
102034: 
102035:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
102036:     LDFLAGS="$LDFLAGS -L$ai_p"
102037:     PHP_RPATHS="$PHP_RPATHS $ai_p"
102038: 
102039:   fi
102040: 
102041: 
102042: 
102043:   fi
102044: 
102045:   fi
102046: 
102047: 
102048:   case z in
102049:   c|c_r|pthread*) ;;
102050:   *)
102051:       LIBS="-lz $LIBS"
102052:    ;;
102053:   esac
102054: 
102055: 
102056: 
102057: 
102058:   fi
102059: 
102060: 
102061: 
102062:   if test "$PHP_ZLIB_INCDIR" != "/usr/include"; then
102063: 
102064:   if test -z "$PHP_ZLIB_INCDIR" || echo "$PHP_ZLIB_INCDIR" | grep '^/' >/dev/null ; then
102065:     ai_p=$PHP_ZLIB_INCDIR
102066:   else
102067: 
102068:     ep_dir=`echo $PHP_ZLIB_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`
102069: 
102070:     ep_realdir=`(cd "$ep_dir" && pwd)`
102071:     ai_p="$ep_realdir"/`basename "$PHP_ZLIB_INCDIR"`
102072:   fi
102073: 
102074: 
102075: 
102076:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
102077: 
102078:   cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
102079:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
102080:     eval "INCLUDEPATH$unique=set"
102081: 
102082:       if test ""; then
102083:         INCLUDES="-I$ai_p $INCLUDES"
102084:       else
102085:         INCLUDES="$INCLUDES -I$ai_p"
102086:       fi
102087: 
102088:   fi
102089: 
102090:   fi
102091: 
102092:   fi
102093: 
102094:     old_CPPFLAGS=$CPPFLAGS
102095:   CPPFLAGS=$INCLUDES
102096:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
102097: /* end confdefs.h.  */
102098: 
102099: #include <main/php_config.h>
102100: #if defined(HAVE_BUNDLED_PCRE) && !defined(COMPILE_DL_PCRE)
102101: yes
102102: #endif
102103: 
102104: _ACEOF
102105: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
102106:   $EGREP "yes" >/dev/null 2>&1; then :
102107: 
102108:     PHP_PCRE_REGEX=yes
102109: 
102110: else
102111: 
102112:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
102113: /* end confdefs.h.  */
102114: 
102115: #include <main/php_config.h>
102116: #if defined(HAVE_PCRE) && !defined(COMPILE_DL_PCRE)
102117: yes
102118: #endif
102119: 
102120: _ACEOF
102121: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
102122:   $EGREP "yes" >/dev/null 2>&1; then :
102123: 
102124:       PHP_PCRE_REGEX=pecl
102125: 
102126: else
102127: 
102128:       PHP_PCRE_REGEX=no
102129: 
102130: fi
102131: rm -f conftest*
102132: 
102133: 
102134: fi
102135: rm -f conftest*
102136: 
102137:   CPPFLAGS=$old_CPPFLAGS
102138: 
102139:   PHP_ZIP_SOURCES="$PHP_ZIP_SOURCES lib/zip_add.c lib/zip_error.c lib/zip_fclose.c \
102140:                          lib/zip_fread.c lib/zip_open.c lib/zip_source_filep.c  \
102141:                          lib/zip_strerror.c lib/zip_close.c lib/zip_error_get.c \
102142:                          lib/zip_file_error_get.c lib/zip_free.c lib/zip_rename.c \
102143:                          lib/zip_source_free.c lib/zip_unchange_all.c lib/zip_delete.c \
102144:                          lib/zip_error_get_sys_type.c lib/zip_file_get_offset.c \
102145:                          lib/zip_get_name.c lib/zip_replace.c lib/zip_source_function.c \
102146:                          lib/zip_unchange.c lib/zip_dirent.c lib/zip_error_strerror.c \
102147:                          lib/zip_filerange_crc.c lib/zip_file_strerror.c lib/zip_get_num_files.c \
102148:                          lib/zip_get_archive_flag.c lib/zip_set_archive_flag.c \
102149:                          lib/zip_set_name.c lib/zip_source_zip.c lib/zip_unchange_data.c \
102150:                          lib/zip_entry_free.c lib/zip_error_to_str.c lib/zip_fopen.c \
102151:                          lib/zip_name_locate.c lib/zip_source_buffer.c lib/zip_stat.c \
102152:                          lib/zip_entry_new.c lib/zip_err_str.c lib/zip_fopen_index.c \
102153:                          lib/zip_get_archive_comment.c lib/zip_get_file_comment.c \
102154:                          lib/zip_new.c lib/zip_source_file.c lib/zip_stat_index.c \
102155:                          lib/zip_set_archive_comment.c lib/zip_set_file_comment.c \
102156:                          lib/zip_unchange_archive.c lib/zip_memdup.c lib/zip_stat_init.c lib/zip_add_dir.c \
102157:                          lib/zip_error_clear.c lib/zip_file_error_clear.c \
102158: 						 lib/zip_fdopen.c lib/zip_fopen_encrypted.c lib/zip_fopen_index_encrypted.c \
102159: 						 lib/zip_get_compression_implementation.c lib/zip_get_encryption_implementation.c \
102160: 						 lib/zip_get_file_extra.c lib/zip_get_num_entries.c lib/zip_set_default_password.c \
102161: 						 lib/zip_set_file_extra.c lib/zip_source_close.c lib/zip_source_crc.c \
102162: 						 lib/zip_source_deflate.c lib/zip_source_error.c lib/zip_source_layered.c \
102163: 						 lib/zip_source_open.c lib/zip_source_pkware.c lib/zip_source_pop.c \
102164: 						 lib/zip_source_read.c lib/zip_source_stat.c"
102165: 
102166: 
102167: $as_echo "#define HAVE_ZIP 1" >>confdefs.h
102168: 
102169: 
102170:   ext_builddir=ext/zip
102171:   ext_srcdir=$abs_srcdir/ext/zip
102172: 
102173:   ac_extra=
102174: 
102175:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
102176:     PHP_ZIP_SHARED=no
102177: 
102178: 
102179:   case ext/zip in
102180:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
102181:   /*) ac_srcdir=`echo "ext/zip"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
102182:   *) ac_srcdir="$abs_srcdir/ext/zip/"; ac_bdir="ext/zip/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
102183:   esac
102184: 
102185: 
102186: 
102187:   b_c_pre=$php_c_pre
102188:   b_cxx_pre=$php_cxx_pre
102189:   b_c_meta=$php_c_meta
102190:   b_cxx_meta=$php_cxx_meta
102191:   b_c_post=$php_c_post
102192:   b_cxx_post=$php_cxx_post
102193:   b_lo=$php_lo
102194: 
102195: 
102196:   old_IFS=$IFS
102197:   for ac_src in php_zip.c zip_stream.c $PHP_ZIP_SOURCES; do
102198: 
102199:       IFS=.
102200:       set $ac_src
102201:       ac_obj=$1
102202:       IFS=$old_IFS
102203: 
102204:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
102205: 
102206:       case $ac_src in
102207:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
102208:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
102209:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
102210:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
102211:       esac
102212: 
102213:     cat >>Makefile.objects<<EOF
102214: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
102215: 	$ac_comp
102216: EOF
102217:   done
102218: 
102219: 
102220:     EXT_STATIC="$EXT_STATIC zip"
102221:     if test "$ext_shared" != "nocli"; then
102222:       EXT_CLI_STATIC="$EXT_CLI_STATIC zip"
102223:     fi
102224:   else
102225:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
102226:       PHP_ZIP_SHARED=yes
102227: 
102228:   case ext/zip in
102229:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
102230:   /*) ac_srcdir=`echo "ext/zip"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
102231:   *) ac_srcdir="$abs_srcdir/ext/zip/"; ac_bdir="ext/zip/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
102232:   esac
102233: 
102234: 
102235: 
102236:   b_c_pre=$shared_c_pre
102237:   b_cxx_pre=$shared_cxx_pre
102238:   b_c_meta=$shared_c_meta
102239:   b_cxx_meta=$shared_cxx_meta
102240:   b_c_post=$shared_c_post
102241:   b_cxx_post=$shared_cxx_post
102242:   b_lo=$shared_lo
102243: 
102244: 
102245:   old_IFS=$IFS
102246:   for ac_src in php_zip.c zip_stream.c $PHP_ZIP_SOURCES; do
102247: 
102248:       IFS=.
102249:       set $ac_src
102250:       ac_obj=$1
102251:       IFS=$old_IFS
102252: 
102253:       shared_objects_zip="$shared_objects_zip $ac_bdir$ac_obj.lo"
102254: 
102255:       case $ac_src in
102256:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
102257:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
102258:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
102259:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
102260:       esac
102261: 
102262:     cat >>Makefile.objects<<EOF
102263: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
102264: 	$ac_comp
102265: EOF
102266:   done
102267: 
102268:       case $host_alias in
102269:         *netware*)
102270: 
102271:   install_modules="install-modules"
102272: 
102273:   case $host_alias in
102274:     *aix*)
102275:       suffix=so
102276:       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'
102277:       ;;
102278:     *netware*)
102279:       suffix=nlm
102280:       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)'
102281:       ;;
102282:     *)
102283:       suffix=la
102284:       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)'
102285:       ;;
102286:   esac
102287: 
102288:   if test "x" = "xyes"; then
102289:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpzip.$suffix"
102290:   else
102291:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpzip.$suffix"
102292:   fi
102293: 
102294:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_zip"
102295: 
102296:   cat >>Makefile.objects<<EOF
102297: \$(phplibdir)/phpzip.$suffix: $ext_builddir/phpzip.$suffix
102298: 	\$(LIBTOOL) --mode=install cp $ext_builddir/phpzip.$suffix \$(phplibdir)
102299: 
102300: $ext_builddir/phpzip.$suffix: \$(shared_objects_zip) \$(PHPZIP_SHARED_DEPENDENCIES)
102301: 	$link_cmd
102302: 
102303: EOF
102304: 
102305:           ;;
102306:         *)
102307: 
102308:   install_modules="install-modules"
102309: 
102310:   case $host_alias in
102311:     *aix*)
102312:       suffix=so
102313:       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'
102314:       ;;
102315:     *netware*)
102316:       suffix=nlm
102317:       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)'
102318:       ;;
102319:     *)
102320:       suffix=la
102321:       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)'
102322:       ;;
102323:   esac
102324: 
102325:   if test "x" = "xyes"; then
102326:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/zip.$suffix"
102327:   else
102328:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/zip.$suffix"
102329:   fi
102330: 
102331:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_zip"
102332: 
102333:   cat >>Makefile.objects<<EOF
102334: \$(phplibdir)/zip.$suffix: $ext_builddir/zip.$suffix
102335: 	\$(LIBTOOL) --mode=install cp $ext_builddir/zip.$suffix \$(phplibdir)
102336: 
102337: $ext_builddir/zip.$suffix: \$(shared_objects_zip) \$(ZIP_SHARED_DEPENDENCIES)
102338: 	$link_cmd
102339: 
102340: EOF
102341: 
102342:           ;;
102343:       esac
102344: 
102345: cat >>confdefs.h <<_ACEOF
102346: #define COMPILE_DL_ZIP 1
102347: _ACEOF
102348: 
102349:     fi
102350:   fi
102351: 
102352:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
102353:     PHP_ZIP_SHARED=no
102354:     case "$PHP_SAPI" in
102355:       cgi|embed)
102356: 
102357: 
102358:   case ext/zip in
102359:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
102360:   /*) ac_srcdir=`echo "ext/zip"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
102361:   *) ac_srcdir="$abs_srcdir/ext/zip/"; ac_bdir="ext/zip/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
102362:   esac
102363: 
102364: 
102365: 
102366:   b_c_pre=$php_c_pre
102367:   b_cxx_pre=$php_cxx_pre
102368:   b_c_meta=$php_c_meta
102369:   b_cxx_meta=$php_cxx_meta
102370:   b_c_post=$php_c_post
102371:   b_cxx_post=$php_cxx_post
102372:   b_lo=$php_lo
102373: 
102374: 
102375:   old_IFS=$IFS
102376:   for ac_src in php_zip.c zip_stream.c $PHP_ZIP_SOURCES; do
102377: 
102378:       IFS=.
102379:       set $ac_src
102380:       ac_obj=$1
102381:       IFS=$old_IFS
102382: 
102383:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
102384: 
102385:       case $ac_src in
102386:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
102387:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
102388:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
102389:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
102390:       esac
102391: 
102392:     cat >>Makefile.objects<<EOF
102393: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
102394: 	$ac_comp
102395: EOF
102396:   done
102397: 
102398: 
102399:         EXT_STATIC="$EXT_STATIC zip"
102400:         ;;
102401:       *)
102402: 
102403: 
102404:   case ext/zip in
102405:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
102406:   /*) ac_srcdir=`echo "ext/zip"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
102407:   *) ac_srcdir="$abs_srcdir/ext/zip/"; ac_bdir="ext/zip/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
102408:   esac
102409: 
102410: 
102411: 
102412:   b_c_pre=$php_c_pre
102413:   b_cxx_pre=$php_cxx_pre
102414:   b_c_meta=$php_c_meta
102415:   b_cxx_meta=$php_cxx_meta
102416:   b_c_post=$php_c_post
102417:   b_cxx_post=$php_cxx_post
102418:   b_lo=$php_lo
102419: 
102420: 
102421:   old_IFS=$IFS
102422:   for ac_src in php_zip.c zip_stream.c $PHP_ZIP_SOURCES; do
102423: 
102424:       IFS=.
102425:       set $ac_src
102426:       ac_obj=$1
102427:       IFS=$old_IFS
102428: 
102429:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
102430: 
102431:       case $ac_src in
102432:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
102433:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
102434:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
102435:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
102436:       esac
102437: 
102438:     cat >>Makefile.objects<<EOF
102439: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
102440: 	$ac_comp
102441: EOF
102442:   done
102443: 
102444: 
102445:         ;;
102446:     esac
102447:     EXT_CLI_STATIC="$EXT_CLI_STATIC zip"
102448:   fi
102449: 
102450: 
102451:     BUILD_DIR="$BUILD_DIR $ext_builddir"
102452: 
102453: 
102454: 
102455:   if test "$ext_builddir" = "."; then
102456:     PHP_PECL_EXTENSION=zip
102457: 
102458:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
102459: 
102460:   fi
102461: 
102462: 
102463: 
102464:     $php_shtool mkdir -p $ext_builddir/lib
102465: 
102466: 
102467: 
102468:   PHP_VAR_SUBST="$PHP_VAR_SUBST ZIP_SHARED_LIBADD"
102469: 
102470: 
102471: 
102472:   src=$ext_srcdir/Makefile.frag
102473:   ac_srcdir=$ext_srcdir
102474:   ac_builddir=$ext_builddir
102475:   test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src  >> Makefile.fragments
102476: 
102477: fi
102478: 
102479: 
102480: 
102481: php_enable_mysqlnd=no
102482: 
102483: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mysqlnd" >&5
102484: $as_echo_n "checking whether to enable mysqlnd... " >&6; }
102485: # Check whether --enable-mysqlnd was given.
102486: if test "${enable_mysqlnd+set}" = set; then :
102487:   enableval=$enable_mysqlnd; PHP_MYSQLND=$enableval
102488: else
102489: 
102490:   PHP_MYSQLND=no
102491:   test "$PHP_ENABLE_ALL" && PHP_MYSQLND=$PHP_ENABLE_ALL
102492: 
102493: fi
102494: 
102495: 
102496: 
102497: ext_output="yes, shared"
102498: ext_shared=yes
102499: case $PHP_MYSQLND in
102500: shared,*)
102501:   PHP_MYSQLND=`echo "$PHP_MYSQLND"|$SED 's/^shared,//'`
102502:   ;;
102503: shared)
102504:   PHP_MYSQLND=yes
102505:   ;;
102506: no)
102507:   ext_output=no
102508:   ext_shared=no
102509:   ;;
102510: *)
102511:   ext_output=yes
102512:   ext_shared=no
102513:   ;;
102514: esac
102515: 
102516: 
102517: 
102518: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
102519: $as_echo "$ext_output" >&6; }
102520: 
102521: 
102522: 
102523: 
102524: 
102525: php_enable_mysqlnd_compression_support=yes
102526: 
102527: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable compressed protocol support in mysqlnd" >&5
102528: $as_echo_n "checking whether to disable compressed protocol support in mysqlnd... " >&6; }
102529: # Check whether --enable-mysqlnd_compression_support was given.
102530: if test "${enable_mysqlnd_compression_support+set}" = set; then :
102531:   enableval=$enable_mysqlnd_compression_support; PHP_MYSQLND_COMPRESSION_SUPPORT=$enableval
102532: else
102533: 
102534:   PHP_MYSQLND_COMPRESSION_SUPPORT=yes
102535: 
102536: 
102537: fi
102538: 
102539: 
102540: ext_output=$PHP_MYSQLND_COMPRESSION_SUPPORT
102541: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
102542: $as_echo "$ext_output" >&6; }
102543: 
102544: 
102545: 
102546: 
102547: if test -z "$PHP_ZLIB_DIR"; then
102548: 
102549: php_with_zlib_dir=no
102550: 
102551: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the location of libz" >&5
102552: $as_echo_n "checking for the location of libz... " >&6; }
102553: 
102554: # Check whether --with-zlib-dir was given.
102555: if test "${with_zlib_dir+set}" = set; then :
102556:   withval=$with_zlib_dir; PHP_ZLIB_DIR=$withval
102557: else
102558: 
102559:   PHP_ZLIB_DIR=no
102560: 
102561: 
102562: fi
102563: 
102564: 
102565: ext_output=$PHP_ZLIB_DIR
102566: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
102567: $as_echo "$ext_output" >&6; }
102568: 
102569: 
102570: 
102571: fi
102572: 
102573: if test "$PHP_MYSQLND" != "no" || test "$PHP_MYSQLND_ENABLED" = "yes"; then
102574:   mysqlnd_ps_sources="mysqlnd_ps.c mysqlnd_ps_codec.c"
102575:   mysqlnd_base_sources="mysqlnd.c mysqlnd_alloc.c mysqlnd_bt.c mysqlnd_charset.c mysqlnd_wireprotocol.c \
102576:                    mysqlnd_loaddata.c mysqlnd_reverse_api.c mysqlnd_net.c \
102577:                    mysqlnd_statistics.c mysqlnd_driver.c mysqlnd_ext_plugin.c mysqlnd_auth.c \
102578: 				   mysqlnd_result.c mysqlnd_result_meta.c mysqlnd_debug.c\
102579: 				   mysqlnd_block_alloc.c mysqlnd_plugin.c php_mysqlnd.c"
102580: 
102581: 
102582:   if test "$PHP_MYSQLND_COMPRESSION_SUPPORT" != "no"; then
102583: 
102584: $as_echo "#define MYSQLND_COMPRESSION_WANTED 1" >>confdefs.h
102585: 
102586:   fi
102587: 
102588: $as_echo "#define MYSQLND_SSL_SUPPORTED 1" >>confdefs.h
102589: 
102590: 
102591:   mysqlnd_sources="$mysqlnd_base_sources $mysqlnd_ps_sources"
102592: 
102593:   ext_builddir=ext/mysqlnd
102594:   ext_srcdir=$abs_srcdir/ext/mysqlnd
102595: 
102596:   ac_extra=
102597: 
102598:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
102599:     PHP_MYSQLND_SHARED=no
102600: 
102601: 
102602:   case ext/mysqlnd in
102603:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
102604:   /*) ac_srcdir=`echo "ext/mysqlnd"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
102605:   *) ac_srcdir="$abs_srcdir/ext/mysqlnd/"; ac_bdir="ext/mysqlnd/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
102606:   esac
102607: 
102608: 
102609: 
102610:   b_c_pre=$php_c_pre
102611:   b_cxx_pre=$php_cxx_pre
102612:   b_c_meta=$php_c_meta
102613:   b_cxx_meta=$php_cxx_meta
102614:   b_c_post=$php_c_post
102615:   b_cxx_post=$php_cxx_post
102616:   b_lo=$php_lo
102617: 
102618: 
102619:   old_IFS=$IFS
102620:   for ac_src in $mysqlnd_sources; do
102621: 
102622:       IFS=.
102623:       set $ac_src
102624:       ac_obj=$1
102625:       IFS=$old_IFS
102626: 
102627:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
102628: 
102629:       case $ac_src in
102630:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
102631:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
102632:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
102633:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
102634:       esac
102635: 
102636:     cat >>Makefile.objects<<EOF
102637: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
102638: 	$ac_comp
102639: EOF
102640:   done
102641: 
102642: 
102643:     EXT_STATIC="$EXT_STATIC mysqlnd"
102644:     if test "$ext_shared" != "nocli"; then
102645:       EXT_CLI_STATIC="$EXT_CLI_STATIC mysqlnd"
102646:     fi
102647:   else
102648:     if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
102649:       PHP_MYSQLND_SHARED=yes
102650: 
102651:   case ext/mysqlnd in
102652:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
102653:   /*) ac_srcdir=`echo "ext/mysqlnd"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
102654:   *) ac_srcdir="$abs_srcdir/ext/mysqlnd/"; ac_bdir="ext/mysqlnd/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
102655:   esac
102656: 
102657: 
102658: 
102659:   b_c_pre=$shared_c_pre
102660:   b_cxx_pre=$shared_cxx_pre
102661:   b_c_meta=$shared_c_meta
102662:   b_cxx_meta=$shared_cxx_meta
102663:   b_c_post=$shared_c_post
102664:   b_cxx_post=$shared_cxx_post
102665:   b_lo=$shared_lo
102666: 
102667: 
102668:   old_IFS=$IFS
102669:   for ac_src in $mysqlnd_sources; do
102670: 
102671:       IFS=.
102672:       set $ac_src
102673:       ac_obj=$1
102674:       IFS=$old_IFS
102675: 
102676:       shared_objects_mysqlnd="$shared_objects_mysqlnd $ac_bdir$ac_obj.lo"
102677: 
102678:       case $ac_src in
102679:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
102680:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
102681:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
102682:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
102683:       esac
102684: 
102685:     cat >>Makefile.objects<<EOF
102686: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
102687: 	$ac_comp
102688: EOF
102689:   done
102690: 
102691:       case $host_alias in
102692:         *netware*)
102693: 
102694:   install_modules="install-modules"
102695: 
102696:   case $host_alias in
102697:     *aix*)
102698:       suffix=so
102699:       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'
102700:       ;;
102701:     *netware*)
102702:       suffix=nlm
102703:       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)'
102704:       ;;
102705:     *)
102706:       suffix=la
102707:       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)'
102708:       ;;
102709:   esac
102710: 
102711:   if test "x" = "xyes"; then
102712:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpmysqlnd.$suffix"
102713:   else
102714:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpmysqlnd.$suffix"
102715:   fi
102716: 
102717:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_mysqlnd"
102718: 
102719:   cat >>Makefile.objects<<EOF
102720: \$(phplibdir)/phpmysqlnd.$suffix: $ext_builddir/phpmysqlnd.$suffix
102721: 	\$(LIBTOOL) --mode=install cp $ext_builddir/phpmysqlnd.$suffix \$(phplibdir)
102722: 
102723: $ext_builddir/phpmysqlnd.$suffix: \$(shared_objects_mysqlnd) \$(PHPMYSQLND_SHARED_DEPENDENCIES)
102724: 	$link_cmd
102725: 
102726: EOF
102727: 
102728:           ;;
102729:         *)
102730: 
102731:   install_modules="install-modules"
102732: 
102733:   case $host_alias in
102734:     *aix*)
102735:       suffix=so
102736:       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'
102737:       ;;
102738:     *netware*)
102739:       suffix=nlm
102740:       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)'
102741:       ;;
102742:     *)
102743:       suffix=la
102744:       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)'
102745:       ;;
102746:   esac
102747: 
102748:   if test "x" = "xyes"; then
102749:     PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/mysqlnd.$suffix"
102750:   else
102751:     PHP_MODULES="$PHP_MODULES \$(phplibdir)/mysqlnd.$suffix"
102752:   fi
102753: 
102754:   PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_mysqlnd"
102755: 
102756:   cat >>Makefile.objects<<EOF
102757: \$(phplibdir)/mysqlnd.$suffix: $ext_builddir/mysqlnd.$suffix
102758: 	\$(LIBTOOL) --mode=install cp $ext_builddir/mysqlnd.$suffix \$(phplibdir)
102759: 
102760: $ext_builddir/mysqlnd.$suffix: \$(shared_objects_mysqlnd) \$(MYSQLND_SHARED_DEPENDENCIES)
102761: 	$link_cmd
102762: 
102763: EOF
102764: 
102765:           ;;
102766:       esac
102767: 
102768: cat >>confdefs.h <<_ACEOF
102769: #define COMPILE_DL_MYSQLND 1
102770: _ACEOF
102771: 
102772:     fi
102773:   fi
102774: 
102775:   if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
102776:     PHP_MYSQLND_SHARED=no
102777:     case "$PHP_SAPI" in
102778:       cgi|embed)
102779: 
102780: 
102781:   case ext/mysqlnd in
102782:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
102783:   /*) ac_srcdir=`echo "ext/mysqlnd"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
102784:   *) ac_srcdir="$abs_srcdir/ext/mysqlnd/"; ac_bdir="ext/mysqlnd/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
102785:   esac
102786: 
102787: 
102788: 
102789:   b_c_pre=$php_c_pre
102790:   b_cxx_pre=$php_cxx_pre
102791:   b_c_meta=$php_c_meta
102792:   b_cxx_meta=$php_cxx_meta
102793:   b_c_post=$php_c_post
102794:   b_cxx_post=$php_cxx_post
102795:   b_lo=$php_lo
102796: 
102797: 
102798:   old_IFS=$IFS
102799:   for ac_src in $mysqlnd_sources; do
102800: 
102801:       IFS=.
102802:       set $ac_src
102803:       ac_obj=$1
102804:       IFS=$old_IFS
102805: 
102806:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
102807: 
102808:       case $ac_src in
102809:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
102810:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
102811:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
102812:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
102813:       esac
102814: 
102815:     cat >>Makefile.objects<<EOF
102816: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
102817: 	$ac_comp
102818: EOF
102819:   done
102820: 
102821: 
102822:         EXT_STATIC="$EXT_STATIC mysqlnd"
102823:         ;;
102824:       *)
102825: 
102826: 
102827:   case ext/mysqlnd in
102828:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
102829:   /*) ac_srcdir=`echo "ext/mysqlnd"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
102830:   *) ac_srcdir="$abs_srcdir/ext/mysqlnd/"; ac_bdir="ext/mysqlnd/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
102831:   esac
102832: 
102833: 
102834: 
102835:   b_c_pre=$php_c_pre
102836:   b_cxx_pre=$php_cxx_pre
102837:   b_c_meta=$php_c_meta
102838:   b_cxx_meta=$php_cxx_meta
102839:   b_c_post=$php_c_post
102840:   b_cxx_post=$php_cxx_post
102841:   b_lo=$php_lo
102842: 
102843: 
102844:   old_IFS=$IFS
102845:   for ac_src in $mysqlnd_sources; do
102846: 
102847:       IFS=.
102848:       set $ac_src
102849:       ac_obj=$1
102850:       IFS=$old_IFS
102851: 
102852:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
102853: 
102854:       case $ac_src in
102855:         *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
102856:         *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
102857:         *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
102858:         *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
102859:       esac
102860: 
102861:     cat >>Makefile.objects<<EOF
102862: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
102863: 	$ac_comp
102864: EOF
102865:   done
102866: 
102867: 
102868:         ;;
102869:     esac
102870:     EXT_CLI_STATIC="$EXT_CLI_STATIC mysqlnd"
102871:   fi
102872: 
102873: 
102874:     BUILD_DIR="$BUILD_DIR $ext_builddir"
102875: 
102876: 
102877: 
102878:   if test "$ext_builddir" = "."; then
102879:     PHP_PECL_EXTENSION=mysqlnd
102880: 
102881:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
102882: 
102883:   fi
102884: 
102885: 
102886: 
102887:     $php_shtool mkdir -p ext/mysqlnd
102888: 
102889: 
102890: 
102891: 
102892:     for header_file in ext/mysqlnd/; do
102893: 
102894: 
102895:   unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
102896: 
102897:   cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
102898:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
102899:     eval "INSTALLHEADERS$unique=set"
102900: 
102901:         INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
102902: 
102903:   fi
102904: 
102905:     done
102906: 
102907: 
102908: fi
102909: 
102910: if test "$PHP_MYSQLND" != "no" || test "$PHP_MYSQLND_ENABLED" = "yes" || test "$PHP_MYSQLI" != "no"; then
102911: 
102912: 
102913:     $php_shtool mkdir -p ext/mysqlnd
102914: 
102915: 
102916: 
102917: 
102918:   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
102919:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $php_typename exists" >&5
102920: $as_echo_n "checking whether $php_typename exists... " >&6; }
102921: 
102922:   php_cache_value=php_cv_sizeof_$php_typename
102923:   if eval \${php_cv_sizeof_$php_typename+:} false; then :
102924:   $as_echo_n "(cached) " >&6
102925: else
102926: 
102927:     old_LIBS=$LIBS
102928:     LIBS=
102929:     old_LDFLAGS=$LDFLAGS
102930:     LDFLAGS=
102931:     if test "$cross_compiling" = yes; then :
102932: 
102933:     eval $php_cache_value=0
102934: 
102935: else
102936:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
102937: /* end confdefs.h.  */
102938: #include <stdio.h>
102939: #if STDC_HEADERS
102940: #include <stdlib.h>
102941: #include <stddef.h>
102942: #endif
102943: #ifdef HAVE_INTTYPES_H
102944: #include <inttypes.h>
102945: #endif
102946: #ifdef HAVE_UNISTD_H
102947: #include <unistd.h>
102948: #endif
102949: #ifdef HAVE_SYS_TYPES_H
102950: #include <sys/types.h>
102951: #endif
102952: #ifdef HAVE_STDINT_H
102953: #include <stdint.h>
102954: #endif
102955: 
102956: 
102957: int main()
102958: {
102959: 	FILE *fp = fopen("conftestval", "w");
102960: 	if (!fp) return(1);
102961: 	fprintf(fp, "%d\n", sizeof($php_typename));
102962: 	return(0);
102963: }
102964: 
102965: _ACEOF
102966: if ac_fn_c_try_run "$LINENO"; then :
102967: 
102968:     eval $php_cache_value=`cat conftestval`
102969: 
102970: else
102971: 
102972:     eval $php_cache_value=0
102973: 
102974: fi
102975: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
102976:   conftest.$ac_objext conftest.beam conftest.$ac_ext
102977: fi
102978: 
102979:   LDFLAGS=$old_LDFLAGS
102980:   LIBS=$old_LIBS
102981: 
102982: fi
102983: 
102984:   if eval test "\$$php_cache_value" != "0"; then
102985: 
102986: 
102987:   php_def_have_what=HAVE_`echo $php_typename | tr 'abcdefghijklmnopqrstuvwxyz-' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_' `
102988:   echo "#define $php_def_have_what 1" >> ext/mysqlnd/php_mysqlnd_config.h
102989: 
102990: 
102991:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
102992: $as_echo "yes" >&6; }
102993: 
102994: else
102995:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
102996: $as_echo "no" >&6; }
102997: 
102998:   fi
102999: 
103000:   done
103001: 
103002: fi
103003: 
103004: 
103005: if test "$PHP_RECODE" != "no"; then
103006:   test "$PHP_IMAP"  != "no" && recode_conflict="$recode_conflict imap"
103007: 
103008:   if test -n "$MYSQL_LIBNAME"; then
103009: 
103010:   save_old_LDFLAGS=$LDFLAGS
103011:   ac_stuff=""
103012: 
103013:   save_ext_shared=$ext_shared
103014:   ext_shared=yes
103015: 
103016:   for ac_i in $ac_stuff; do
103017:     case $ac_i in
103018:     -pthread)
103019:       if test "$ext_shared" = "yes"; then
103020:         LDFLAGS="$LDFLAGS -pthread"
103021:       else
103022: 
103023: 
103024:   unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
103025: 
103026:   cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
103027:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
103028:     eval "EXTRA_LDFLAGS$unique=set"
103029:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
103030:   fi
103031: 
103032:       fi
103033:     ;;
103034:     -l*)
103035:       ac_ii=`echo $ac_i|cut -c 3-`
103036: 
103037: 
103038:   case $ac_ii in
103039:   c|c_r|pthread*) ;;
103040:   *)
103041:     if test "$ext_shared" = "yes"; then
103042:         LDFLAGS="$LDFLAGS -l$ac_ii"
103043:     else
103044: 
103045: 
103046:   case $ac_ii in
103047:   c|c_r|pthread*) ;;
103048:   *)
103049:       LIBS="$LIBS -l$ac_ii"
103050:    ;;
103051:   esac
103052: 
103053: 
103054:     fi
103055:    ;;
103056:   esac
103057: 
103058: 
103059:     ;;
103060:     -L*)
103061:       ac_ii=`echo $ac_i|cut -c 3-`
103062: 
103063:   if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
103064: 
103065:   if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
103066:     ai_p=$ac_ii
103067:   else
103068: 
103069:     ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
103070: 
103071:     ep_realdir=`(cd "$ep_dir" && pwd)`
103072:     ai_p="$ep_realdir"/`basename "$ac_ii"`
103073:   fi
103074: 
103075: 
103076:       if test "$ext_shared" = "yes"; then
103077:         LDFLAGS="-L$ai_p $LDFLAGS"
103078:         test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
103079:       else
103080: 
103081: 
103082: 
103083:   unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
103084: 
103085:   cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
103086:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
103087:     eval "LIBPATH$unique=set"
103088: 
103089:     test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
103090:     LDFLAGS="$LDFLAGS -L$ai_p"
103091:     PHP_RPATHS="$PHP_RPATHS $ai_p"
103092: 
103093:   fi
103094: 
103095: 
103096:       fi
103097: 
103098:   fi
103099: 
103100:     ;;
103101:     esac
103102:   done
103103: 
103104:   as_ac_Lib=`$as_echo "ac_cv_lib_$MYSQL_LIBNAME''_hash_insert" | $as_tr_sh`
103105: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hash_insert in -l$MYSQL_LIBNAME" >&5
103106: $as_echo_n "checking for hash_insert in -l$MYSQL_LIBNAME... " >&6; }
103107: if eval \${$as_ac_Lib+:} false; then :
103108:   $as_echo_n "(cached) " >&6
103109: else
103110:   ac_check_lib_save_LIBS=$LIBS
103111: LIBS="-l$MYSQL_LIBNAME  $LIBS"
103112: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
103113: /* end confdefs.h.  */
103114: 
103115: /* Override any GCC internal prototype to avoid an error.
103116:    Use char because int might match the return type of a GCC
103117:    builtin and then its argument prototype would still apply.  */
103118: #ifdef __cplusplus
103119: extern "C"
103120: #endif
103121: char hash_insert ();
103122: int
103123: main ()
103124: {
103125: return hash_insert ();
103126:   ;
103127:   return 0;
103128: }
103129: _ACEOF
103130: if ac_fn_c_try_link "$LINENO"; then :
103131:   eval "$as_ac_Lib=yes"
103132: else
103133:   eval "$as_ac_Lib=no"
103134: fi
103135: rm -f core conftest.err conftest.$ac_objext \
103136:     conftest$ac_exeext conftest.$ac_ext
103137: LIBS=$ac_check_lib_save_LIBS
103138: fi
103139: eval ac_res=\$$as_ac_Lib
103140: 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
103141: $as_echo "$ac_res" >&6; }
103142: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
103143: 
103144:     LDFLAGS=$save_old_LDFLAGS
103145:     ext_shared=$save_ext_shared
103146: 
103147:       recode_conflict="$recode_conflict mysql"
103148: 
103149: 
103150: else
103151: 
103152:     LDFLAGS=$save_old_LDFLAGS
103153:     ext_shared=$save_ext_shared
103154:     unset ac_cv_lib_$MYSQL_LIBNAME_hash_insert
103155: 
103156: 
103157: fi
103158: 
103159:   fi
103160: 
103161:   if test -n "$recode_conflict"; then
103162:     as_fn_error $? "recode extension can not be configured together with:$recode_conflict" "$LINENO" 5
103163:   fi
103164: fi
103165: 
103166: 
103167: 
103168: 
103169: enable_shared=yes
103170: enable_static=yes
103171: 
103172: case $php_sapi_module in
103173:   shared)
103174:     enable_static=no
103175:     case $with_pic in
103176:       yes)
103177:         standard_libtool_flag='-prefer-pic'
103178:         ;;
103179:       no)
103180:         standard_libtool_flag='-prefer-non-pic'
103181:         ;;
103182:     esac
103183:     EXTRA_LDFLAGS="$EXTRA_LDFLAGS -avoid-version -module"
103184:     ;;
103185:   *)
103186:     standard_libtool_flag='-prefer-non-pic -static'
103187:     if test -z "$PHP_MODULES" && test -z "$PHP_ZEND_EX"; then
103188:       enable_shared=no
103189:     fi
103190:     ;;
103191: esac
103192: 
103193: EXTRA_LIBS="$EXTRA_LIBS $DLIBS $LIBS"
103194: 
103195: if test "$ac_cv_lib_crypt_crypt" = "yes"; then
103196:   EXTRA_LIBS="-lcrypt $EXTRA_LIBS -lcrypt"
103197: fi
103198: 
103199: unset LIBS LDFLAGS
103200: 
103201: 
103202: 
103203: # Check whether --enable- was given.
103204: if test "${enable_+set}" = set; then :
103205:   enableval=$enable_;
103206: fi
103207: 
103208: 
103209: 
103210:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
103211: $as_echo "" >&6; }
103212:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Configuring PEAR${T_ME}" >&5
103213: $as_echo "${T_MD}Configuring PEAR${T_ME}" >&6; }
103214: 
103215: 
103216: # compatibility
103217: if test -z "$with_pear" && test "$enable_pear" = "no"; then
103218:   with_pear=no
103219: fi
103220: 
103221: # If CLI is disabled -> disable PEAR
103222: if test "$PHP_CLI" = "no"; then
103223:   with_pear=no
103224: fi
103225: 
103226: 
103227: php_with_pear=DEFAULT
103228: 
103229: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install PEAR" >&5
103230: $as_echo_n "checking whether to install PEAR... " >&6; }
103231: 
103232: # Check whether --with-pear was given.
103233: if test "${with_pear+set}" = set; then :
103234:   withval=$with_pear; PHP_PEAR=$withval
103235: else
103236: 
103237:   PHP_PEAR=DEFAULT
103238:   test "$PHP_ENABLE_ALL" && PHP_PEAR=$PHP_ENABLE_ALL
103239: 
103240: fi
103241: 
103242: 
103243: 
103244: ext_output="yes, shared"
103245: ext_shared=yes
103246: case $PHP_PEAR in
103247: shared,*)
103248:   PHP_PEAR=`echo "$PHP_PEAR"|$SED 's/^shared,//'`
103249:   ;;
103250: shared)
103251:   PHP_PEAR=yes
103252:   ;;
103253: no)
103254:   ext_output=no
103255:   ext_shared=no
103256:   ;;
103257: *)
103258:   ext_output=yes
103259:   ext_shared=no
103260:   ;;
103261: esac
103262: 
103263: 
103264: 
103265: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
103266: $as_echo "$ext_output" >&6; }
103267: 
103268: 
103269: 
103270: 
103271: if test "$PHP_PEAR" != "no"; then
103272: 
103273:         if test "$PHP_XML" = "no"; then
103274:     pear_error_msg="$pear_error_msg
103275:                     PEAR requires XML to be enabled.     Add --enable-xml to the configure line. (or --without-pear)"
103276:   fi
103277: 
103278: 
103279:   if test "$pear_error_msg"; then
103280:     as_fn_error $? "$pear_error_msg" "$LINENO" 5
103281:   fi
103282: 
103283:   install_pear="install-pear"
103284:   PEAR_INSTALLDIR=$PHP_PEAR
103285: 
103286:   if test "$PHP_PEAR" = "DEFAULT" || test "$PHP_PEAR" = "yes"; then
103287:     case $PHP_LAYOUT in
103288:       GNU) PEAR_INSTALLDIR=$datadir/pear;;
103289:       *)   PEAR_INSTALLDIR=$libdir/php;;
103290:     esac
103291:   fi
103292: 
103293: 
103294:   src=$abs_srcdir/pear/Makefile.frag
103295:   ac_srcdir=$abs_srcdir/pear
103296:   ac_builddir=pear
103297:   test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src  >> Makefile.fragments
103298: 
103299: fi
103300: 
103301: 
103302: 
103303: 
103304: # Check whether --enable- was given.
103305: if test "${enable_+set}" = set; then :
103306:   enableval=$enable_;
103307: fi
103308: 
103309: 
103310: 
103311:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
103312: $as_echo "" >&6; }
103313:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Configuring Zend${T_ME}" >&5
103314: $as_echo "${T_MD}Configuring Zend${T_ME}" >&6; }
103315: 
103316: 
103317: 
103318: 
103319: 
103320: 
103321: 
103322: 
103323: 
103324: 
103325:   # we only support certain bison versions
103326:   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 2.6.4"
103327: 
103328:   # for standalone build of Zend Engine
103329:   test -z "$SED" && SED=sed
103330: 
103331:   bison_version=none
103332:   if test "$YACC"; then
103333:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison version" >&5
103334: $as_echo_n "checking for bison version... " >&6; }
103335: if ${php_cv_bison_version+:} false; then :
103336:   $as_echo_n "(cached) " >&6
103337: else
103338: 
103339:       bison_version_vars=`$YACC --version 2> /dev/null | grep 'GNU Bison' | cut -d ' ' -f 4 | $SED -e 's/\./ /g' | tr -d a-z`
103340:       php_cv_bison_version=invalid
103341:       if test -n "$bison_version_vars"; then
103342:         set $bison_version_vars
103343:         bison_version="${1}.${2}"
103344:         for bison_check_version in $bison_version_list; do
103345:           if test "$bison_version" = "$bison_check_version"; then
103346:             php_cv_bison_version="$bison_check_version (ok)"
103347:             break
103348:           fi
103349:         done
103350:       fi
103351: 
103352: fi
103353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_bison_version" >&5
103354: $as_echo "$php_cv_bison_version" >&6; }
103355:   fi
103356:   case $php_cv_bison_version in
103357:     ""|invalid)
103358:       bison_msg="bison versions supported for regeneration of the Zend/PHP parsers: $bison_version_list (found: $bison_version)."
103359:       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $bison_msg" >&5
103360: $as_echo "$as_me: WARNING: $bison_msg" >&2;}
103361:       YACC="exit 0;"
103362:       ;;
103363:   esac
103364: 
103365: 
103366: if test "$CC" = "gcc" -a "$ac_cv_prog_cc_g" = "yes" -a \
103367:    "`uname -sv`" = "AIX 4"; then
103368: 	CFLAGS=`echo $CFLAGS | sed -e 's/-g//'`
103369: fi
103370: 
103371: if test "$ac_cv_c_compiler_gnu" = "yes" -a "`uname -s`" = "Rhapsody"; then
103372:         CPPFLAGS="$CPPFLAGS -traditional-cpp"
103373: fi
103374: 
103375: for ac_header in inttypes.h \
103376: stdint.h \
103377: limits.h \
103378: malloc.h \
103379: string.h \
103380: unistd.h \
103381: stdarg.h \
103382: sys/types.h \
103383: sys/time.h \
103384: signal.h \
103385: unix.h \
103386: stdlib.h \
103387: dlfcn.h
103388: do :
103389:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
103390: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
103391: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
103392:   cat >>confdefs.h <<_ACEOF
103393: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
103394: _ACEOF
103395: 
103396: fi
103397: 
103398: done
103399: 
103400: 
103401: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
103402: if test "x$ac_cv_type_size_t" = xyes; then :
103403: 
103404: else
103405: 
103406: cat >>confdefs.h <<_ACEOF
103407: #define size_t unsigned int
103408: _ACEOF
103409: 
103410: fi
103411: 
103412: { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
103413: $as_echo_n "checking return type of signal handlers... " >&6; }
103414: if ${ac_cv_type_signal+:} false; then :
103415:   $as_echo_n "(cached) " >&6
103416: else
103417:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
103418: /* end confdefs.h.  */
103419: #include <sys/types.h>
103420: #include <signal.h>
103421: 
103422: int
103423: main ()
103424: {
103425: return *(signal (0, 0)) (0) == 1;
103426:   ;
103427:   return 0;
103428: }
103429: _ACEOF
103430: if ac_fn_c_try_compile "$LINENO"; then :
103431:   ac_cv_type_signal=int
103432: else
103433:   ac_cv_type_signal=void
103434: fi
103435: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
103436: fi
103437: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
103438: $as_echo "$ac_cv_type_signal" >&6; }
103439: 
103440: cat >>confdefs.h <<_ACEOF
103441: #define RETSIGTYPE $ac_cv_type_signal
103442: _ACEOF
103443: 
103444: 
103445: 
103446: 
103447: 
103448: 
103449: 
103450: ac_fn_c_check_type "$LINENO" "uint" "ac_cv_type_uint" "$ac_includes_default"
103451: if test "x$ac_cv_type_uint" = xyes; then :
103452: 
103453: else
103454: 
103455: cat >>confdefs.h <<_ACEOF
103456: #define uint unsigned int
103457: _ACEOF
103458: 
103459: fi
103460: 
103461: ac_fn_c_check_type "$LINENO" "ulong" "ac_cv_type_ulong" "$ac_includes_default"
103462: if test "x$ac_cv_type_ulong" = xyes; then :
103463: 
103464: else
103465: 
103466: cat >>confdefs.h <<_ACEOF
103467: #define ulong unsigned long
103468: _ACEOF
103469: 
103470: fi
103471: 
103472: 
103473: 
103474: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int32_t" >&5
103475: $as_echo_n "checking for int32_t... " >&6; }
103476: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
103477: /* end confdefs.h.  */
103478: 
103479: #if HAVE_SYS_TYPES_H
103480: #include <sys/types.h>
103481: #endif
103482: #if HAVE_INTTYPES_H
103483: #include <inttypes.h>
103484: #elif HAVE_STDINT_H
103485: #include <stdint.h>
103486: #endif
103487: int
103488: main ()
103489: {
103490: if ((int32_t *) 0)
103491:   return 0;
103492: if (sizeof (int32_t))
103493:   return 0;
103494: 
103495:   ;
103496:   return 0;
103497: }
103498: _ACEOF
103499: if ac_fn_c_try_compile "$LINENO"; then :
103500: 
103501: 
103502: cat >>confdefs.h <<_ACEOF
103503: #define HAVE_INT32_T 1
103504: _ACEOF
103505: 
103506:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
103507: $as_echo "yes" >&6; }
103508: 
103509: else
103510:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
103511: $as_echo "no" >&6; }
103512: 
103513: fi
103514: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
103515: 
103516: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint32_t" >&5
103517: $as_echo_n "checking for uint32_t... " >&6; }
103518: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
103519: /* end confdefs.h.  */
103520: 
103521: #if HAVE_SYS_TYPES_H
103522: #include <sys/types.h>
103523: #endif
103524: #if HAVE_INTTYPES_H
103525: #include <inttypes.h>
103526: #elif HAVE_STDINT_H
103527: #include <stdint.h>
103528: #endif
103529: int
103530: main ()
103531: {
103532: if ((uint32_t *) 0)
103533:   return 0;
103534: if (sizeof (uint32_t))
103535:   return 0;
103536: 
103537:   ;
103538:   return 0;
103539: }
103540: _ACEOF
103541: if ac_fn_c_try_compile "$LINENO"; then :
103542: 
103543: 
103544: cat >>confdefs.h <<_ACEOF
103545: #define HAVE_UINT32_T 1
103546: _ACEOF
103547: 
103548:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
103549: $as_echo "yes" >&6; }
103550: 
103551: else
103552:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
103553: $as_echo "no" >&6; }
103554: 
103555: fi
103556: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
103557: 
103558: for ac_func in vprintf
103559: do :
103560:   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
103561: if test "x$ac_cv_func_vprintf" = xyes; then :
103562:   cat >>confdefs.h <<_ACEOF
103563: #define HAVE_VPRINTF 1
103564: _ACEOF
103565: 
103566: ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
103567: if test "x$ac_cv_func__doprnt" = xyes; then :
103568: 
103569: $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
103570: 
103571: fi
103572: 
103573: fi
103574: done
103575: 
103576: 
103577: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
103578: $as_echo_n "checking for working memcmp... " >&6; }
103579: if ${ac_cv_func_memcmp_working+:} false; then :
103580:   $as_echo_n "(cached) " >&6
103581: else
103582:   if test "$cross_compiling" = yes; then :
103583:   ac_cv_func_memcmp_working=no
103584: else
103585:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
103586: /* end confdefs.h.  */
103587: $ac_includes_default
103588: int
103589: main ()
103590: {
103591: 
103592:   /* Some versions of memcmp are not 8-bit clean.  */
103593:   char c0 = '\100', c1 = '\200', c2 = '\201';
103594:   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
103595:     return 1;
103596: 
103597:   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
103598:      or more and with at least one buffer not starting on a 4-byte boundary.
103599:      William Lewis provided this test program.   */
103600:   {
103601:     char foo[21];
103602:     char bar[21];
103603:     int i;
103604:     for (i = 0; i < 4; i++)
103605:       {
103606: 	char *a = foo + i;
103607: 	char *b = bar + i;
103608: 	strcpy (a, "--------01111111");
103609: 	strcpy (b, "--------10000000");
103610: 	if (memcmp (a, b, 16) >= 0)
103611: 	  return 1;
103612:       }
103613:     return 0;
103614:   }
103615: 
103616:   ;
103617:   return 0;
103618: }
103619: _ACEOF
103620: if ac_fn_c_try_run "$LINENO"; then :
103621:   ac_cv_func_memcmp_working=yes
103622: else
103623:   ac_cv_func_memcmp_working=no
103624: fi
103625: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
103626:   conftest.$ac_objext conftest.beam conftest.$ac_ext
103627: fi
103628: 
103629: fi
103630: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
103631: $as_echo "$ac_cv_func_memcmp_working" >&6; }
103632: test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
103633:   *" memcmp.$ac_objext "* ) ;;
103634:   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
103635:  ;;
103636: esac
103637: 
103638: 
103639: # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
103640: # for constant arguments.  Useless!
103641: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
103642: $as_echo_n "checking for working alloca.h... " >&6; }
103643: if ${ac_cv_working_alloca_h+:} false; then :
103644:   $as_echo_n "(cached) " >&6
103645: else
103646:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
103647: /* end confdefs.h.  */
103648: #include <alloca.h>
103649: int
103650: main ()
103651: {
103652: char *p = (char *) alloca (2 * sizeof (int));
103653: 			  if (p) return 0;
103654:   ;
103655:   return 0;
103656: }
103657: _ACEOF
103658: if ac_fn_c_try_link "$LINENO"; then :
103659:   ac_cv_working_alloca_h=yes
103660: else
103661:   ac_cv_working_alloca_h=no
103662: fi
103663: rm -f core conftest.err conftest.$ac_objext \
103664:     conftest$ac_exeext conftest.$ac_ext
103665: fi
103666: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
103667: $as_echo "$ac_cv_working_alloca_h" >&6; }
103668: if test $ac_cv_working_alloca_h = yes; then
103669: 
103670: $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
103671: 
103672: fi
103673: 
103674: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
103675: $as_echo_n "checking for alloca... " >&6; }
103676: if ${ac_cv_func_alloca_works+:} false; then :
103677:   $as_echo_n "(cached) " >&6
103678: else
103679:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
103680: /* end confdefs.h.  */
103681: #ifdef __GNUC__
103682: # define alloca __builtin_alloca
103683: #else
103684: # ifdef _MSC_VER
103685: #  include <malloc.h>
103686: #  define alloca _alloca
103687: # else
103688: #  ifdef HAVE_ALLOCA_H
103689: #   include <alloca.h>
103690: #  else
103691: #   ifdef _AIX
103692:  #pragma alloca
103693: #   else
103694: #    ifndef alloca /* predefined by HP cc +Olibcalls */
103695: void *alloca (size_t);
103696: #    endif
103697: #   endif
103698: #  endif
103699: # endif
103700: #endif
103701: 
103702: int
103703: main ()
103704: {
103705: char *p = (char *) alloca (1);
103706: 				    if (p) return 0;
103707:   ;
103708:   return 0;
103709: }
103710: _ACEOF
103711: if ac_fn_c_try_link "$LINENO"; then :
103712:   ac_cv_func_alloca_works=yes
103713: else
103714:   ac_cv_func_alloca_works=no
103715: fi
103716: rm -f core conftest.err conftest.$ac_objext \
103717:     conftest$ac_exeext conftest.$ac_ext
103718: fi
103719: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
103720: $as_echo "$ac_cv_func_alloca_works" >&6; }
103721: 
103722: if test $ac_cv_func_alloca_works = yes; then
103723: 
103724: $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
103725: 
103726: else
103727:   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
103728: # that cause trouble.  Some versions do not even contain alloca or
103729: # contain a buggy version.  If you still want to use their alloca,
103730: # use ar to extract alloca.o from them instead of compiling alloca.c.
103731: 
103732: ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
103733: 
103734: $as_echo "#define C_ALLOCA 1" >>confdefs.h
103735: 
103736: 
103737: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
103738: $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
103739: if ${ac_cv_os_cray+:} false; then :
103740:   $as_echo_n "(cached) " >&6
103741: else
103742:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
103743: /* end confdefs.h.  */
103744: #if defined CRAY && ! defined CRAY2
103745: webecray
103746: #else
103747: wenotbecray
103748: #endif
103749: 
103750: _ACEOF
103751: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
103752:   $EGREP "webecray" >/dev/null 2>&1; then :
103753:   ac_cv_os_cray=yes
103754: else
103755:   ac_cv_os_cray=no
103756: fi
103757: rm -f conftest*
103758: 
103759: fi
103760: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
103761: $as_echo "$ac_cv_os_cray" >&6; }
103762: if test $ac_cv_os_cray = yes; then
103763:   for ac_func in _getb67 GETB67 getb67; do
103764:     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
103765: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
103766: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
103767: 
103768: cat >>confdefs.h <<_ACEOF
103769: #define CRAY_STACKSEG_END $ac_func
103770: _ACEOF
103771: 
103772:     break
103773: fi
103774: 
103775:   done
103776: fi
103777: 
103778: { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
103779: $as_echo_n "checking stack direction for C alloca... " >&6; }
103780: if ${ac_cv_c_stack_direction+:} false; then :
103781:   $as_echo_n "(cached) " >&6
103782: else
103783:   if test "$cross_compiling" = yes; then :
103784:   ac_cv_c_stack_direction=0
103785: else
103786:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
103787: /* end confdefs.h.  */
103788: $ac_includes_default
103789: int
103790: find_stack_direction (int *addr, int depth)
103791: {
103792:   int dir, dummy = 0;
103793:   if (! addr)
103794:     addr = &dummy;
103795:   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
103796:   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
103797:   return dir + dummy;
103798: }
103799: 
103800: int
103801: main (int argc, char **argv)
103802: {
103803:   return find_stack_direction (0, argc + !argv + 20) < 0;
103804: }
103805: _ACEOF
103806: if ac_fn_c_try_run "$LINENO"; then :
103807:   ac_cv_c_stack_direction=1
103808: else
103809:   ac_cv_c_stack_direction=-1
103810: fi
103811: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
103812:   conftest.$ac_objext conftest.beam conftest.$ac_ext
103813: fi
103814: 
103815: fi
103816: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
103817: $as_echo "$ac_cv_c_stack_direction" >&6; }
103818: cat >>confdefs.h <<_ACEOF
103819: #define STACK_DIRECTION $ac_cv_c_stack_direction
103820: _ACEOF
103821: 
103822: 
103823: fi
103824: 
103825: for ac_func in memcpy strdup getpid kill strtod strtol finite fpclass sigsetjmp
103826: do :
103827:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
103828: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
103829: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
103830:   cat >>confdefs.h <<_ACEOF
103831: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
103832: _ACEOF
103833: 
103834: fi
103835: done
103836: 
103837: 
103838:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sprintf is broken" >&5
103839: $as_echo_n "checking whether sprintf is broken... " >&6; }
103840: if ${ac_cv_broken_sprintf+:} false; then :
103841:   $as_echo_n "(cached) " >&6
103842: else
103843: 
103844:     if test "$cross_compiling" = yes; then :
103845: 
103846:       ac_cv_broken_sprintf=no
103847: 
103848: else
103849:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
103850: /* end confdefs.h.  */
103851: main() {char buf[20];exit(sprintf(buf,"testing 123")!=11); }
103852: _ACEOF
103853: if ac_fn_c_try_run "$LINENO"; then :
103854: 
103855:       ac_cv_broken_sprintf=no
103856: 
103857: else
103858: 
103859:       ac_cv_broken_sprintf=yes
103860: 
103861: fi
103862: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
103863:   conftest.$ac_objext conftest.beam conftest.$ac_ext
103864: fi
103865: 
103866: 
103867: fi
103868: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_sprintf" >&5
103869: $as_echo "$ac_cv_broken_sprintf" >&6; }
103870:   if test "$ac_cv_broken_sprintf" = "yes"; then
103871:     ac_result=1
103872:   else
103873:     ac_result=0
103874:   fi
103875: 
103876: cat >>confdefs.h <<_ACEOF
103877: #define ZEND_BROKEN_SPRINTF $ac_result
103878: _ACEOF
103879: 
103880: 
103881: 
103882: for ac_func in finite isfinite isinf isnan
103883: do :
103884:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
103885: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
103886: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
103887:   cat >>confdefs.h <<_ACEOF
103888: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
103889: _ACEOF
103890: 
103891: fi
103892: done
103893: 
103894: 
103895: 
103896:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fp_except is defined" >&5
103897: $as_echo_n "checking whether fp_except is defined... " >&6; }
103898: if ${ac_cv_type_fp_except+:} false; then :
103899:   $as_echo_n "(cached) " >&6
103900: else
103901: 
103902:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
103903: /* end confdefs.h.  */
103904: 
103905: #include <floatingpoint.h>
103906: 
103907: int
103908: main ()
103909: {
103910: 
103911: fp_except x = (fp_except) 0;
103912: 
103913:   ;
103914:   return 0;
103915: }
103916: _ACEOF
103917: if ac_fn_c_try_compile "$LINENO"; then :
103918: 
103919:      ac_cv_type_fp_except=yes
103920: 
103921: else
103922: 
103923:      ac_cv_type_fp_except=no
103924: 
103925: fi
103926: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
103927: fi
103928: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_fp_except" >&5
103929: $as_echo "$ac_cv_type_fp_except" >&6; }
103930:   if test "$ac_cv_type_fp_except" = "yes"; then
103931: 
103932: $as_echo "#define HAVE_FP_EXCEPT 1" >>confdefs.h
103933: 
103934:   fi
103935: 
103936: 
103937: 
103938:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable _FPU_SETCW" >&5
103939: $as_echo_n "checking for usable _FPU_SETCW... " >&6; }
103940:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
103941: /* end confdefs.h.  */
103942: 
103943:     #include <fpu_control.h>
103944: 
103945: int
103946: main ()
103947: {
103948: 
103949:     fpu_control_t fpu_oldcw, fpu_cw;
103950:     volatile double result;
103951:     double a = 2877.0;
103952:     volatile double b = 1000000.0;
103953: 
103954:     _FPU_GETCW(fpu_oldcw);
103955:     fpu_cw = (fpu_oldcw & ~_FPU_EXTENDED & ~_FPU_SINGLE) | _FPU_DOUBLE;
103956:     _FPU_SETCW(fpu_cw);
103957:     result = a / b;
103958:     _FPU_SETCW(fpu_oldcw);
103959: 
103960:   ;
103961:   return 0;
103962: }
103963: _ACEOF
103964: if ac_fn_c_try_link "$LINENO"; then :
103965:   ac_cfp_have__fpu_setcw=yes
103966: else
103967:   ac_cfp_have__fpu_setcw=no
103968: fi
103969: rm -f core conftest.err conftest.$ac_objext \
103970:     conftest$ac_exeext conftest.$ac_ext
103971:   if test "$ac_cfp_have__fpu_setcw" = "yes" ; then
103972: 
103973: $as_echo "#define HAVE__FPU_SETCW 1" >>confdefs.h
103974: 
103975:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
103976: $as_echo "yes" >&6; }
103977:   else
103978:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
103979: $as_echo "no" >&6; }
103980:   fi
103981: 
103982:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable fpsetprec" >&5
103983: $as_echo_n "checking for usable fpsetprec... " >&6; }
103984:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
103985: /* end confdefs.h.  */
103986: 
103987:     #include <machine/ieeefp.h>
103988: 
103989: int
103990: main ()
103991: {
103992: 
103993:     fp_prec_t fpu_oldprec;
103994:     volatile double result;
103995:     double a = 2877.0;
103996:     volatile double b = 1000000.0;
103997: 
103998:     fpu_oldprec = fpgetprec();
103999:     fpsetprec(FP_PD);
104000:     result = a / b;
104001:     fpsetprec(fpu_oldprec);
104002: 
104003:   ;
104004:   return 0;
104005: }
104006: _ACEOF
104007: if ac_fn_c_try_link "$LINENO"; then :
104008:   ac_cfp_have_fpsetprec=yes
104009: else
104010:   ac_cfp_have_fpsetprec=no
104011: fi
104012: rm -f core conftest.err conftest.$ac_objext \
104013:     conftest$ac_exeext conftest.$ac_ext
104014:   if test "$ac_cfp_have_fpsetprec" = "yes" ; then
104015: 
104016: $as_echo "#define HAVE_FPSETPREC 1" >>confdefs.h
104017: 
104018:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
104019: $as_echo "yes" >&6; }
104020:   else
104021:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
104022: $as_echo "no" >&6; }
104023:   fi
104024: 
104025:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable _controlfp" >&5
104026: $as_echo_n "checking for usable _controlfp... " >&6; }
104027:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
104028: /* end confdefs.h.  */
104029: 
104030:     #include <float.h>
104031: 
104032: int
104033: main ()
104034: {
104035: 
104036:     unsigned int fpu_oldcw;
104037:     volatile double result;
104038:     double a = 2877.0;
104039:     volatile double b = 1000000.0;
104040: 
104041:     fpu_oldcw = _controlfp(0, 0);
104042:     _controlfp(_PC_53, _MCW_PC);
104043:     result = a / b;
104044:     _controlfp(fpu_oldcw, _MCW_PC);
104045: 
104046:   ;
104047:   return 0;
104048: }
104049: _ACEOF
104050: if ac_fn_c_try_link "$LINENO"; then :
104051:   ac_cfp_have__controlfp=yes
104052: else
104053:   ac_cfp_have__controlfp=no
104054: fi
104055: rm -f core conftest.err conftest.$ac_objext \
104056:     conftest$ac_exeext conftest.$ac_ext
104057:   if test "$ac_cfp_have__controlfp" = "yes" ; then
104058: 
104059: $as_echo "#define HAVE__CONTROLFP 1" >>confdefs.h
104060: 
104061:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
104062: $as_echo "yes" >&6; }
104063:   else
104064:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
104065: $as_echo "no" >&6; }
104066:   fi
104067: 
104068:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable _controlfp_s" >&5
104069: $as_echo_n "checking for usable _controlfp_s... " >&6; }
104070:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
104071: /* end confdefs.h.  */
104072: 
104073:    #include <float.h>
104074: 
104075: int
104076: main ()
104077: {
104078: 
104079:     unsigned int fpu_oldcw, fpu_cw;
104080:     volatile double result;
104081:     double a = 2877.0;
104082:     volatile double b = 1000000.0;
104083: 
104084:     _controlfp_s(&fpu_cw, 0, 0);
104085:     fpu_oldcw = fpu_cw;
104086:     _controlfp_s(&fpu_cw, _PC_53, _MCW_PC);
104087:     result = a / b;
104088:     _controlfp_s(&fpu_cw, fpu_oldcw, _MCW_PC);
104089: 
104090:   ;
104091:   return 0;
104092: }
104093: _ACEOF
104094: if ac_fn_c_try_link "$LINENO"; then :
104095:   ac_cfp_have__controlfp_s=yes
104096: else
104097:   ac_cfp_have__controlfp_s=no
104098: fi
104099: rm -f core conftest.err conftest.$ac_objext \
104100:     conftest$ac_exeext conftest.$ac_ext
104101:   if test "$ac_cfp_have__controlfp_s" = "yes" ; then
104102: 
104103: $as_echo "#define HAVE__CONTROLFP_S 1" >>confdefs.h
104104: 
104105:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
104106: $as_echo "yes" >&6; }
104107:   else
104108:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
104109: $as_echo "no" >&6; }
104110:   fi
104111: 
104112:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FPU control word can be manipulated by inline assembler" >&5
104113: $as_echo_n "checking whether FPU control word can be manipulated by inline assembler... " >&6; }
104114:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
104115: /* end confdefs.h.  */
104116: 
104117:     /* nothing */
104118: 
104119: int
104120: main ()
104121: {
104122: 
104123:     unsigned int oldcw, cw;
104124:     volatile double result;
104125:     double a = 2877.0;
104126:     volatile double b = 1000000.0;
104127: 
104128:     __asm__ __volatile__ ("fnstcw %0" : "=m" (*&oldcw));
104129:     cw = (oldcw & ~0x0 & ~0x300) | 0x200;
104130:     __asm__ __volatile__ ("fldcw %0" : : "m" (*&cw));
104131: 
104132:     result = a / b;
104133: 
104134:     __asm__ __volatile__ ("fldcw %0" : : "m" (*&oldcw));
104135: 
104136:   ;
104137:   return 0;
104138: }
104139: _ACEOF
104140: if ac_fn_c_try_link "$LINENO"; then :
104141:   ac_cfp_have_fpu_inline_asm_x86=yes
104142: else
104143:   ac_cfp_have_fpu_inline_asm_x86=no
104144: fi
104145: rm -f core conftest.err conftest.$ac_objext \
104146:     conftest$ac_exeext conftest.$ac_ext
104147:   if test "$ac_cfp_have_fpu_inline_asm_x86" = "yes" ; then
104148: 
104149: $as_echo "#define HAVE_FPU_INLINE_ASM_X86 1" >>confdefs.h
104150: 
104151:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
104152: $as_echo "yes" >&6; }
104153:   else
104154:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
104155: $as_echo "no" >&6; }
104156:   fi
104157: 
104158: 
104159: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether double cast to long preserves least significant bits" >&5
104160: $as_echo_n "checking whether double cast to long preserves least significant bits... " >&6; }
104161: 
104162: if test "$cross_compiling" = yes; then :
104163: 
104164:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
104165: $as_echo "no" >&6; }
104166: 
104167: else
104168:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
104169: /* end confdefs.h.  */
104170: 
104171: #include <limits.h>
104172: 
104173: int main()
104174: {
104175: 	if (sizeof(long) == 4) {
104176: 		double d = (double) LONG_MIN * LONG_MIN + 2e9;
104177: 
104178: 		if ((long) d == 2e9 && (long) -d == -2e9) {
104179: 			exit(0);
104180: 		}
104181: 	} else if (sizeof(long) == 8) {
104182: 		double correct = 18e18 - ((double) LONG_MIN * -2); /* Subtract ULONG_MAX + 1 */
104183: 
104184: 		if ((long) 18e18 == correct) { /* On 64-bit, only check between LONG_MAX and ULONG_MAX */
104185: 			exit(0);
104186: 		}
104187: 	}
104188: 	exit(1);
104189: }
104190: 
104191: _ACEOF
104192: if ac_fn_c_try_run "$LINENO"; then :
104193: 
104194: 
104195: $as_echo "#define ZEND_DVAL_TO_LVAL_CAST_OK 1" >>confdefs.h
104196: 
104197:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
104198: $as_echo "yes" >&6; }
104199: 
104200: else
104201: 
104202:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
104203: $as_echo "no" >&6; }
104204: 
104205: fi
104206: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
104207:   conftest.$ac_objext conftest.beam conftest.$ac_ext
104208: fi
104209: 
104210: 
104211: 
104212: for ac_header in dlfcn.h
104213: do :
104214:   ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
104215: if test "x$ac_cv_header_dlfcn_h" = xyes; then :
104216:   cat >>confdefs.h <<_ACEOF
104217: #define HAVE_DLFCN_H 1
104218: _ACEOF
104219: 
104220: fi
104221: 
104222: done
104223: 
104224: 
104225: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dlsym() requires a leading underscore in symbol names" >&5
104226: $as_echo_n "checking whether dlsym() requires a leading underscore in symbol names... " >&6; }
104227: if test "$cross_compiling" = yes; then :
104228: 
104229: else
104230:   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
104231:   lt_status=$lt_dlunknown
104232:   cat > conftest.$ac_ext <<EOF
104233: #line 104233 "configure"
104234: #include "confdefs.h"
104235: 
104236: #if HAVE_DLFCN_H
104237: #include <dlfcn.h>
104238: #endif
104239: 
104240: #include <stdio.h>
104241: 
104242: #ifdef RTLD_GLOBAL
104243: #  define LT_DLGLOBAL		RTLD_GLOBAL
104244: #else
104245: #  ifdef DL_GLOBAL
104246: #    define LT_DLGLOBAL		DL_GLOBAL
104247: #  else
104248: #    define LT_DLGLOBAL		0
104249: #  endif
104250: #endif
104251: 
104252: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
104253:    find out it does not work in some platform. */
104254: #ifndef LT_DLLAZY_OR_NOW
104255: #  ifdef RTLD_LAZY
104256: #    define LT_DLLAZY_OR_NOW		RTLD_LAZY
104257: #  else
104258: #    ifdef DL_LAZY
104259: #      define LT_DLLAZY_OR_NOW		DL_LAZY
104260: #    else
104261: #      ifdef RTLD_NOW
104262: #        define LT_DLLAZY_OR_NOW	RTLD_NOW
104263: #      else
104264: #        ifdef DL_NOW
104265: #          define LT_DLLAZY_OR_NOW	DL_NOW
104266: #        else
104267: #          define LT_DLLAZY_OR_NOW	0
104268: #        endif
104269: #      endif
104270: #    endif
104271: #  endif
104272: #endif
104273: 
104274: #ifdef __cplusplus
104275: extern "C" void exit (int);
104276: #endif
104277: 
104278: void fnord() { int i=42;}
104279: int main ()
104280: {
104281:   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
104282:   int status = $lt_dlunknown;
104283: 
104284:   if (self)
104285:     {
104286:       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
104287:       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
104288:       /* dlclose (self); */
104289:     }
104290:   else
104291:     puts (dlerror ());
104292: 
104293:     exit (status);
104294: }
104295: EOF
104296:   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
104297:   (eval $ac_link) 2>&5
104298:   ac_status=$?
104299:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
104300:   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
104301:     (./conftest; exit; ) >&5 2>/dev/null
104302:     lt_status=$?
104303:     case x$lt_status in
104304:       x$lt_dlno_uscore)
104305:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
104306: $as_echo "no" >&6; }
104307:  ;;
104308:       x$lt_dlneed_uscore)
104309:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
104310: $as_echo "yes" >&6; }
104311: 
104312: $as_echo "#define DLSYM_NEEDS_UNDERSCORE 1" >>confdefs.h
104313: 
104314:  ;;
104315:       x$lt_dlunknown|x*)
104316:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
104317: $as_echo "no" >&6; }
104318:  ;;
104319:     esac
104320:   else :
104321:     # compilation failed
104322: 
104323:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
104324: $as_echo "no" >&6; }
104325: 
104326:   fi
104327: fi
104328: rm -fr conftest*
104329: 
104330: 
104331: 
104332: 
104333: 
104334: # Check whether --with-zend-vm was given.
104335: if test "${with_zend_vm+set}" = set; then :
104336:   withval=$with_zend_vm;
104337:   PHP_ZEND_VM=$withval
104338: 
104339: else
104340: 
104341:   PHP_ZEND_VM=CALL
104342: 
104343: fi
104344: 
104345: 
104346: # Check whether --enable-maintainer-zts was given.
104347: if test "${enable_maintainer_zts+set}" = set; then :
104348:   enableval=$enable_maintainer_zts;
104349:   ZEND_MAINTAINER_ZTS=$enableval
104350: 
104351: else
104352: 
104353:   ZEND_MAINTAINER_ZTS=no
104354: 
104355: fi
104356: 
104357: 
104358: # Check whether --enable-inline-optimization was given.
104359: if test "${enable_inline_optimization+set}" = set; then :
104360:   enableval=$enable_inline_optimization;
104361:   ZEND_INLINE_OPTIMIZATION=$enableval
104362: 
104363: else
104364: 
104365:   ZEND_INLINE_OPTIMIZATION=yes
104366: 
104367: fi
104368: 
104369: 
104370: { $as_echo "$as_me:${as_lineno-$LINENO}: checking virtual machine dispatch method" >&5
104371: $as_echo_n "checking virtual machine dispatch method... " >&6; }
104372: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_ZEND_VM" >&5
104373: $as_echo "$PHP_ZEND_VM" >&6; }
104374: 
104375: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable thread-safety" >&5
104376: $as_echo_n "checking whether to enable thread-safety... " >&6; }
104377: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZEND_MAINTAINER_ZTS" >&5
104378: $as_echo "$ZEND_MAINTAINER_ZTS" >&6; }
104379: 
104380: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable inline optimization for GCC" >&5
104381: $as_echo_n "checking whether to enable inline optimization for GCC... " >&6; }
104382: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZEND_INLINE_OPTIMIZATION" >&5
104383: $as_echo "$ZEND_INLINE_OPTIMIZATION" >&6; }
104384: 
104385: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Zend debugging" >&5
104386: $as_echo_n "checking whether to enable Zend debugging... " >&6; }
104387: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZEND_DEBUG" >&5
104388: $as_echo "$ZEND_DEBUG" >&6; }
104389: 
104390: case $PHP_ZEND_VM in
104391:   SWITCH)
104392: 
104393: $as_echo "#define ZEND_VM_KIND ZEND_VM_KIND_SWITCH" >>confdefs.h
104394: 
104395:     ;;
104396:   GOTO)
104397: 
104398: $as_echo "#define ZEND_VM_KIND ZEND_VM_KIND_GOTO" >>confdefs.h
104399: 
104400:     ;;
104401:   *)
104402:     PHP_ZEND_VM=CALL
104403: 
104404: $as_echo "#define ZEND_VM_KIND ZEND_VM_KIND_CALL" >>confdefs.h
104405: 
104406:     ;;
104407: esac
104408: 
104409: if test "$ZEND_DEBUG" = "yes"; then
104410: 
104411: $as_echo "#define ZEND_DEBUG 1" >>confdefs.h
104412: 
104413:   echo " $CFLAGS" | grep ' -g' >/dev/null || DEBUG_CFLAGS="-g"
104414:   if test "$CFLAGS" = "-g -O2"; then
104415:   	CFLAGS=-g
104416:   fi
104417:   test -n "$GCC" && DEBUG_CFLAGS="$DEBUG_CFLAGS -Wall"
104418:   test -n "$GCC" && test "$USE_MAINTAINER_MODE" = "yes" && \
104419:     DEBUG_CFLAGS="$DEBUG_CFLAGS -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations"
104420: else
104421: 
104422: $as_echo "#define ZEND_DEBUG 0" >>confdefs.h
104423: 
104424: fi
104425: 
104426: test -n "$DEBUG_CFLAGS" && CFLAGS="$CFLAGS $DEBUG_CFLAGS"
104427: 
104428: if test "$ZEND_MAINTAINER_ZTS" = "yes"; then
104429: 
104430: $as_echo "#define ZTS 1" >>confdefs.h
104431: 
104432:   CFLAGS="$CFLAGS -DZTS"
104433: 
104434: 
104435: 
104436: fi
104437: 
104438: 
104439: if test -n "$GCC" && test "$ZEND_INLINE_OPTIMIZATION" != "yes"; then
104440:   INLINE_CFLAGS=`echo $ac_n "$CFLAGS $ac_c" | sed s/-O[0-9s]*//`
104441: else
104442:   INLINE_CFLAGS="$CFLAGS"
104443: fi
104444: 
104445: 
104446: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
104447: $as_echo_n "checking for inline... " >&6; }
104448: if ${ac_cv_c_inline+:} false; then :
104449:   $as_echo_n "(cached) " >&6
104450: else
104451:   ac_cv_c_inline=no
104452: for ac_kw in inline __inline__ __inline; do
104453:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
104454: /* end confdefs.h.  */
104455: #ifndef __cplusplus
104456: typedef int foo_t;
104457: static $ac_kw foo_t static_foo () {return 0; }
104458: $ac_kw foo_t foo () {return 0; }
104459: #endif
104460: 
104461: _ACEOF
104462: if ac_fn_c_try_compile "$LINENO"; then :
104463:   ac_cv_c_inline=$ac_kw
104464: fi
104465: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
104466:   test "$ac_cv_c_inline" != no && break
104467: done
104468: 
104469: fi
104470: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
104471: $as_echo "$ac_cv_c_inline" >&6; }
104472: 
104473: case $ac_cv_c_inline in
104474:   inline | yes) ;;
104475:   *)
104476:     case $ac_cv_c_inline in
104477:       no) ac_val=;;
104478:       *) ac_val=$ac_cv_c_inline;;
104479:     esac
104480:     cat >>confdefs.h <<_ACEOF
104481: #ifndef __cplusplus
104482: #define inline $ac_val
104483: #endif
104484: _ACEOF
104485:     ;;
104486: esac
104487: 
104488: 
104489: 
104490: 
104491: { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system is Darwin" >&5
104492: $as_echo_n "checking target system is Darwin... " >&6; }
104493: if echo "$target" | grep "darwin" > /dev/null; then
104494: 
104495: $as_echo "#define DARWIN 1" >>confdefs.h
104496: 
104497:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
104498: $as_echo "yes" >&6; }
104499: else
104500:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
104501: $as_echo "no" >&6; }
104502: fi
104503: 
104504: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MM alignment and log values" >&5
104505: $as_echo_n "checking for MM alignment and log values... " >&6; }
104506: 
104507: if test "$cross_compiling" = yes; then :
104508: 
104509:     LIBZEND_MM_ALIGN=8
104510: 
104511: else
104512:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
104513: /* end confdefs.h.  */
104514: 
104515: #include <stdio.h>
104516: 
104517: typedef union _mm_align_test {
104518:   void *ptr;
104519:   double dbl;
104520:   long lng;
104521: } mm_align_test;
104522: 
104523: #if (defined (__GNUC__) && __GNUC__ >= 2)
104524: #define ZEND_MM_ALIGNMENT (__alignof__ (mm_align_test))
104525: #else
104526: #define ZEND_MM_ALIGNMENT (sizeof(mm_align_test))
104527: #endif
104528: 
104529: int main()
104530: {
104531:   int i = ZEND_MM_ALIGNMENT;
104532:   int zeros = 0;
104533:   FILE *fp;
104534: 
104535:   while (i & ~0x1) {
104536:     zeros++;
104537:     i = i >> 1;
104538:   }
104539: 
104540:   fp = fopen("conftest.zend", "w");
104541:   fprintf(fp, "%d %d\n", ZEND_MM_ALIGNMENT, zeros);
104542:   fclose(fp);
104543: 
104544:   exit(0);
104545: }
104546: 
104547: _ACEOF
104548: if ac_fn_c_try_run "$LINENO"; then :
104549: 
104550:   LIBZEND_MM_ALIGN=`cat conftest.zend | cut -d ' ' -f 1`
104551:   LIBZEND_MM_ALIGN_LOG2=`cat conftest.zend | cut -d ' ' -f 2`
104552: 
104553: cat >>confdefs.h <<_ACEOF
104554: #define ZEND_MM_ALIGNMENT $LIBZEND_MM_ALIGN
104555: _ACEOF
104556: 
104557: 
104558: cat >>confdefs.h <<_ACEOF
104559: #define ZEND_MM_ALIGNMENT_LOG2 $LIBZEND_MM_ALIGN_LOG2
104560: _ACEOF
104561: 
104562: 
104563: fi
104564: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
104565:   conftest.$ac_objext conftest.beam conftest.$ac_ext
104566: fi
104567: 
104568: 
104569: { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
104570: $as_echo "done" >&6; }
104571: 
104572: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory allocation using mmap(MAP_ANON)" >&5
104573: $as_echo_n "checking for memory allocation using mmap(MAP_ANON)... " >&6; }
104574: 
104575: if test "$cross_compiling" = yes; then :
104576: 
104577:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
104578: $as_echo "no" >&6; }
104579: 
104580: else
104581:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
104582: /* end confdefs.h.  */
104583: 
104584: #include <sys/types.h>
104585: #include <sys/stat.h>
104586: #include <fcntl.h>
104587: #include <sys/mman.h>
104588: #include <stdlib.h>
104589: #include <stdio.h>
104590: #ifndef MAP_ANON
104591: # ifdef MAP_ANONYMOUS
104592: #  define MAP_ANON MAP_ANONYMOUS
104593: # endif
104594: #endif
104595: #ifndef MREMAP_MAYMOVE
104596: # define MREMAP_MAYMOVE 0
104597: #endif
104598: #ifndef MAP_FAILED
104599: # define MAP_FAILED ((void*)-1)
104600: #endif
104601: 
104602: #define SEG_SIZE (256*1024)
104603: 
104604: int main()
104605: {
104606: 	void *seg = mmap(NULL, SEG_SIZE, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANON, -1, 0);
104607: 	if (seg == MAP_FAILED) {
104608: 		return 1;
104609: 	}
104610: 	if (munmap(seg, SEG_SIZE) != 0) {
104611: 		return 2;
104612: 	}
104613: 	return 0;
104614: }
104615: 
104616: _ACEOF
104617: if ac_fn_c_try_run "$LINENO"; then :
104618: 
104619: 
104620: $as_echo "#define HAVE_MEM_MMAP_ANON 1" >>confdefs.h
104621: 
104622:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
104623: $as_echo "yes" >&6; }
104624: 
104625: else
104626: 
104627:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
104628: $as_echo "no" >&6; }
104629: 
104630: fi
104631: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
104632:   conftest.$ac_objext conftest.beam conftest.$ac_ext
104633: fi
104634: 
104635: 
104636: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory allocation using mmap(\"/dev/zero\")" >&5
104637: $as_echo_n "checking for memory allocation using mmap(\"/dev/zero\")... " >&6; }
104638: 
104639: if test "$cross_compiling" = yes; then :
104640: 
104641:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
104642: $as_echo "no" >&6; }
104643: 
104644: else
104645:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
104646: /* end confdefs.h.  */
104647: 
104648: #include <sys/types.h>
104649: #include <sys/stat.h>
104650: #include <fcntl.h>
104651: #include <sys/mman.h>
104652: #include <stdlib.h>
104653: #include <stdio.h>
104654: #ifndef MAP_ANON
104655: # ifdef MAP_ANONYMOUS
104656: #  define MAP_ANON MAP_ANONYMOUS
104657: # endif
104658: #endif
104659: #ifndef MREMAP_MAYMOVE
104660: # define MREMAP_MAYMOVE 0
104661: #endif
104662: #ifndef MAP_FAILED
104663: # define MAP_FAILED ((void*)-1)
104664: #endif
104665: 
104666: #define SEG_SIZE (256*1024)
104667: 
104668: int main()
104669: {
104670: 	int fd;
104671: 	void *seg;
104672: 
104673: 	fd = open("/dev/zero", O_RDWR, S_IRUSR | S_IWUSR);
104674: 	if (fd < 0) {
104675: 		return 1;
104676: 	}
104677: 	seg = mmap(NULL, SEG_SIZE, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0);
104678: 	if (seg == MAP_FAILED) {
104679: 		return 2;
104680: 	}
104681: 	if (munmap(seg, SEG_SIZE) != 0) {
104682: 		return 3;
104683: 	}
104684: 	if (close(fd) != 0) {
104685: 		return 4;
104686: 	}
104687: 	return 0;
104688: }
104689: 
104690: _ACEOF
104691: if ac_fn_c_try_run "$LINENO"; then :
104692: 
104693: 
104694: $as_echo "#define HAVE_MEM_MMAP_ZERO 1" >>confdefs.h
104695: 
104696:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
104697: $as_echo "yes" >&6; }
104698: 
104699: else
104700: 
104701:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
104702: $as_echo "no" >&6; }
104703: 
104704: fi
104705: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
104706:   conftest.$ac_objext conftest.beam conftest.$ac_ext
104707: fi
104708: 
104709: 
104710: for ac_func in mremap
104711: do :
104712:   ac_fn_c_check_func "$LINENO" "mremap" "ac_cv_func_mremap"
104713: if test "x$ac_cv_func_mremap" = xyes; then :
104714:   cat >>confdefs.h <<_ACEOF
104715: #define HAVE_MREMAP 1
104716: _ACEOF
104717: 
104718: fi
104719: done
104720: 
104721: 
104722: 
104723: # Check whether --enable-zend-signals was given.
104724: if test "${enable_zend_signals+set}" = set; then :
104725:   enableval=$enable_zend_signals;
104726:   ZEND_SIGNALS=$enableval
104727: 
104728: else
104729: 
104730:   ZEND_SIGNALS=no
104731: 
104732: fi
104733: 
104734: 
104735: ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
104736: if test "x$ac_cv_func_sigaction" = xyes; then :
104737: 
104738: 
104739: $as_echo "#define HAVE_SIGACTION 1" >>confdefs.h
104740: 
104741: 
104742: else
104743: 
104744: 	ZEND_SIGNALS=no
104745: 
104746: fi
104747: 
104748: if test "$ZEND_SIGNALS" = "yes"; then
104749: 
104750: $as_echo "#define ZEND_SIGNALS 1" >>confdefs.h
104751: 
104752: 	CFLAGS="$CFLAGS -DZEND_SIGNALS"
104753: fi
104754: 
104755: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable zend signal handling" >&5
104756: $as_echo_n "checking whether to enable zend signal handling... " >&6; }
104757: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZEND_SIGNALS" >&5
104758: $as_echo "$ZEND_SIGNALS" >&6; }
104759: 
104760: 
104761: 
104762: if test "$ZEND_MAINTAINER_ZTS" = "yes"; then
104763: 
104764: $as_echo "#define ZTS 1" >>confdefs.h
104765: 
104766:   PHP_THREAD_SAFETY=yes
104767: else
104768:   PHP_THREAD_SAFETY=no
104769: fi
104770: 
104771: INCLUDES="$INCLUDES -I\$(top_builddir)/TSRM"
104772: INCLUDES="$INCLUDES -I\$(top_builddir)/Zend"
104773: 
104774: if test "$abs_srcdir" != "$abs_builddir"; then
104775:   INCLUDES="$INCLUDES -I\$(top_srcdir)/main -I\$(top_srcdir)/Zend"
104776:   INCLUDES="$INCLUDES -I\$(top_srcdir)/TSRM -I\$(top_builddir)/"
104777: fi
104778: 
104779: ZEND_EXTRA_LIBS="$LIBS"
104780: unset LIBS LDFLAGS
104781: 
104782: 
104783: # Check whether --enable- was given.
104784: if test "${enable_+set}" = set; then :
104785:   enableval=$enable_;
104786: fi
104787: 
104788: 
104789: 
104790:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
104791: $as_echo "" >&6; }
104792:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Configuring TSRM${T_ME}" >&5
104793: $as_echo "${T_MD}Configuring TSRM${T_ME}" >&6; }
104794: 
104795: 
104796: 
104797: 
104798: for ac_header in stdarg.h
104799: do :
104800:   ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
104801: if test "x$ac_cv_header_stdarg_h" = xyes; then :
104802:   cat >>confdefs.h <<_ACEOF
104803: #define HAVE_STDARG_H 1
104804: _ACEOF
104805: 
104806: fi
104807: 
104808: done
104809: 
104810: 
104811: for ac_func in sigprocmask
104812: do :
104813:   ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
104814: if test "x$ac_cv_func_sigprocmask" = xyes; then :
104815:   cat >>confdefs.h <<_ACEOF
104816: #define HAVE_SIGPROCMASK 1
104817: _ACEOF
104818: 
104819: fi
104820: done
104821: 
104822: 
104823: 
104824: if test "$PHP_THREAD_SAFETY" = "yes"; then
104825: 
104826: 
104827: 
104828: 
104829: # Check whether --with-tsrm-pth was given.
104830: if test "${with_tsrm_pth+set}" = set; then :
104831:   withval=$with_tsrm_pth;
104832:   TSRM_PTH=$withval
104833: 
104834: else
104835: 
104836:   TSRM_PTH=no
104837: 
104838: fi
104839: 
104840: 
104841: 
104842: # Check whether --with-tsrm-st was given.
104843: if test "${with_tsrm_st+set}" = set; then :
104844:   withval=$with_tsrm_st;
104845:   TSRM_ST=$withval
104846: 
104847: else
104848: 
104849:   TSRM_ST=no
104850: 
104851: fi
104852: 
104853: 
104854: 
104855: # Check whether --with-tsrm-pthreads was given.
104856: if test "${with_tsrm_pthreads+set}" = set; then :
104857:   withval=$with_tsrm_pthreads;
104858:   TSRM_PTHREADS=$withval
104859: 
104860: else
104861: 
104862:   TSRM_PTHREADS=yes
104863: 
104864: fi
104865: 
104866: 
104867: test "$TSRM_PTH" = "yes" && TSRM_PTH=pth-config
104868: 
104869: if test "$TSRM_PTH" != "no"; then
104870: 
104871: 
104872: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU Pth" >&5
104873: $as_echo_n "checking for GNU Pth... " >&6; }
104874: PTH_PREFIX="`$TSRM_PTH --prefix`"
104875: if test -z "$PTH_PREFIX"; then
104876:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Please check your Pth installation" >&5
104877: $as_echo "Please check your Pth installation" >&6; }
104878: fi
104879: 
104880: CPPFLAGS="$CPPFLAGS `$TSRM_PTH --cflags`"
104881: LDFLAGS="$LDFLAGS `$TSRM_PTH --ldflags`"
104882: LIBS="$LIBS `$TSRM_PTH --libs`"
104883: 
104884: 
104885: $as_echo "#define GNUPTH 1" >>confdefs.h
104886: 
104887: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - installed in $PTH_PREFIX" >&5
104888: $as_echo "yes - installed in $PTH_PREFIX" >&6; }
104889: 
104890: 
104891: elif test "$TSRM_ST" != "no"; then
104892: 
104893:   if test -r "$TSRM_ST/include/st.h"; then
104894:     CPPFLAGS="$CPPFLAGS -I$TSRM_ST/include"
104895:     LDFLAGS="$LDFLAGS -L$TSRM_ST/lib"
104896:   elif test -r "$TSRM_ST/st.h"; then
104897:     CPPFLAGS="$CPPFLAGS -I$TSRM_ST"
104898:     LDFLAGS="$LDFLAGS -L$TSRM_ST"
104899:   fi
104900:   for ac_header in st.h
104901: do :
104902:   ac_fn_c_check_header_mongrel "$LINENO" "st.h" "ac_cv_header_st_h" "$ac_includes_default"
104903: if test "x$ac_cv_header_st_h" = xyes; then :
104904:   cat >>confdefs.h <<_ACEOF
104905: #define HAVE_ST_H 1
104906: _ACEOF
104907: 
104908: else
104909: 
104910:     as_fn_error $? "Sorry, I was unable to locate the State Threads header file.  Please specify the prefix using --with-tsrm-st=/prefix" "$LINENO" 5
104911: 
104912: fi
104913: 
104914: done
104915: 
104916:   LIBS="$LIBS -lst"
104917:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SGI's State Threads" >&5
104918: $as_echo_n "checking for SGI's State Threads... " >&6; }
104919:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
104920: $as_echo "yes" >&6; }
104921: 
104922: $as_echo "#define TSRM_ST 1" >>confdefs.h
104923: 
104924: 
104925: elif test "$TSRM_PTHREADS" != "no"; then
104926: 
104927: 
104928: 
104929: 
104930: if test "$beos_threads" = "1"; then
104931:   pthreads_working="yes"
104932:   ac_cv_pthreads_cflags=""
104933: else
104934:   save_CFLAGS=$CFLAGS
104935:   save_LIBS=$LIBS
104936: 
104937: if test -n "$ac_cv_pthreads_lib"; then
104938:   LIBS="$LIBS -l$ac_cv_pthreads_lib"
104939: fi
104940: 
104941: if test -n "$ac_cv_pthreads_cflags"; then
104942:   CFLAGS="$CFLAGS $ac_cv_pthreads_cflags"
104943: fi
104944: 
104945: 
104946: if test "$cross_compiling" = yes; then :
104947: 
104948:     pthreads_working=no
104949:   case $host_alias in
104950:   *netware*)
104951:     pthreads_working=yes
104952:   esac
104953: 
104954: 
104955: else
104956:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
104957: /* end confdefs.h.  */
104958: 
104959: #include <pthread.h>
104960: #include <stddef.h>
104961: 
104962: void *thread_routine(void *data) {
104963:     return data;
104964: }
104965: 
104966: int main() {
104967:     pthread_t thd;
104968:     pthread_mutexattr_t mattr;
104969:     int data = 1;
104970:     pthread_mutexattr_init(&mattr);
104971:     return pthread_create(&thd, NULL, thread_routine, &data);
104972: }
104973: _ACEOF
104974: if ac_fn_c_try_run "$LINENO"; then :
104975: 
104976:   pthreads_working=yes
104977: 
104978: else
104979: 
104980:   pthreads_working=no
104981: 
104982: fi
104983: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
104984:   conftest.$ac_objext conftest.beam conftest.$ac_ext
104985: fi
104986: 
104987:   LIBS=$save_LIBS
104988:   CFLAGS=$save_CFLAGS
104989: 
104990:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads_cflags" >&5
104991: $as_echo_n "checking for pthreads_cflags... " >&6; }
104992: if ${ac_cv_pthreads_cflags+:} false; then :
104993:   $as_echo_n "(cached) " >&6
104994: else
104995: 
104996:   ac_cv_pthreads_cflags=
104997:   if test "$pthreads_working" != "yes"; then
104998:     for flag in -kthread -pthread -pthreads -mthreads -Kthread -threads -mt -qthreaded; do
104999:       ac_save=$CFLAGS
105000:       CFLAGS="$CFLAGS $flag"
105001: 
105002: if test "$cross_compiling" = yes; then :
105003: 
105004:     pthreads_working=no
105005:   case $host_alias in
105006:   *netware*)
105007:     pthreads_working=yes
105008:   esac
105009: 
105010: 
105011: else
105012:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
105013: /* end confdefs.h.  */
105014: 
105015: #include <pthread.h>
105016: #include <stddef.h>
105017: 
105018: void *thread_routine(void *data) {
105019:     return data;
105020: }
105021: 
105022: int main() {
105023:     pthread_t thd;
105024:     pthread_mutexattr_t mattr;
105025:     int data = 1;
105026:     pthread_mutexattr_init(&mattr);
105027:     return pthread_create(&thd, NULL, thread_routine, &data);
105028: }
105029: _ACEOF
105030: if ac_fn_c_try_run "$LINENO"; then :
105031: 
105032:   pthreads_working=yes
105033: 
105034: else
105035: 
105036:   pthreads_working=no
105037: 
105038: fi
105039: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
105040:   conftest.$ac_objext conftest.beam conftest.$ac_ext
105041: fi
105042: 
105043:       CFLAGS=$ac_save
105044:       if test "$pthreads_working" = "yes"; then
105045:         ac_cv_pthreads_cflags=$flag
105046:         break
105047:       fi
105048:     done
105049:   fi
105050: fi
105051: 
105052: fi
105053: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthreads_cflags" >&5
105054: $as_echo "$ac_cv_pthreads_cflags" >&6; }
105055: 
105056: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads_lib" >&5
105057: $as_echo_n "checking for pthreads_lib... " >&6; }
105058: if ${ac_cv_pthreads_lib+:} false; then :
105059:   $as_echo_n "(cached) " >&6
105060: else
105061: 
105062: ac_cv_pthreads_lib=
105063: if test "$pthreads_working" != "yes"; then
105064:   for lib in pthread pthreads c_r; do
105065:     ac_save=$LIBS
105066:     LIBS="$LIBS -l$lib"
105067: 
105068: if test "$cross_compiling" = yes; then :
105069: 
105070:     pthreads_working=no
105071:   case $host_alias in
105072:   *netware*)
105073:     pthreads_working=yes
105074:   esac
105075: 
105076: 
105077: else
105078:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
105079: /* end confdefs.h.  */
105080: 
105081: #include <pthread.h>
105082: #include <stddef.h>
105083: 
105084: void *thread_routine(void *data) {
105085:     return data;
105086: }
105087: 
105088: int main() {
105089:     pthread_t thd;
105090:     pthread_mutexattr_t mattr;
105091:     int data = 1;
105092:     pthread_mutexattr_init(&mattr);
105093:     return pthread_create(&thd, NULL, thread_routine, &data);
105094: }
105095: _ACEOF
105096: if ac_fn_c_try_run "$LINENO"; then :
105097: 
105098:   pthreads_working=yes
105099: 
105100: else
105101: 
105102:   pthreads_working=no
105103: 
105104: fi
105105: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
105106:   conftest.$ac_objext conftest.beam conftest.$ac_ext
105107: fi
105108: 
105109:     LIBS=$ac_save
105110:     if test "$pthreads_working" = "yes"; then
105111:       ac_cv_pthreads_lib=$lib
105112:       break
105113:     fi
105114:   done
105115: fi
105116: 
105117: fi
105118: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthreads_lib" >&5
105119: $as_echo "$ac_cv_pthreads_lib" >&6; }
105120: 
105121: if test "$pthreads_working" = "yes"; then
105122:   threads_result="POSIX-Threads found"
105123: else
105124:   threads_result="POSIX-Threads not found"
105125: fi
105126: 
105127: 
105128: if test "$beos_threads" = "1"; then
105129: 
105130: $as_echo "#define BETHREADS 1" >>confdefs.h
105131: 
105132: else
105133:   if test "$pthreads_working" != "yes"; then
105134:     as_fn_error $? "Your system seems to lack POSIX threads." "$LINENO" 5
105135:   fi
105136: 
105137: 
105138: $as_echo "#define PTHREADS 1" >>confdefs.h
105139: 
105140: 
105141:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX threads" >&5
105142: $as_echo_n "checking for POSIX threads... " >&6; }
105143:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
105144: $as_echo "yes" >&6; }
105145: fi
105146: 
105147: fi
105148: 
105149: 
105150: fi
105151: 
105152: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LDFLAGS"
105153: EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $LDFLAGS"
105154: EXTRA_LIBS="$EXTRA_LIBS $LIBS"
105155: unset LIBS LDFLAGS
105156: 
105157: test "$prefix" = "NONE" && prefix=/usr/local
105158: test "$exec_prefix" = "NONE" && exec_prefix='${prefix}'
105159: test "$program_prefix" = "NONE" && program_prefix=
105160: test "$program_suffix" = "NONE" && program_suffix=
105161: 
105162: case $libdir in
105163:   '${exec_prefix}/lib')
105164:     libdir=$libdir/php
105165:     ;;
105166: esac
105167: case $datadir in
105168:   '${prefix}/share')
105169:     datadir=$datadir/php
105170:     ;;
105171: esac
105172: 
105173: phplibdir=`pwd`/modules
105174: $php_shtool mkdir -p $phplibdir
105175: phptempdir=`pwd`/libs
105176: 
105177: old_exec_prefix=$exec_prefix
105178: old_libdir=$libdir
105179: old_datadir=$datadir
105180: exec_prefix=`eval echo $exec_prefix`
105181: libdir=`eval echo $libdir`
105182: datadir=`eval echo $datadir`
105183: 
105184: 
105185: ZEND_MODULE_API_NO=`$EGREP '#define ZEND_MODULE_API_NO ' $srcdir/Zend/zend_modules.h|$SED 's/#define ZEND_MODULE_API_NO //'`
105186: 
105187: if test -z "$EXTENSION_DIR"; then
105188:   extbasedir=$ZEND_MODULE_API_NO
105189:   if test "$oldstyleextdir" = "yes"; then
105190:     if test "$PHP_DEBUG" = "1"; then
105191:       part1=debug
105192:     else
105193:       part1=no-debug
105194:     fi
105195:     if test "$enable_maintainer_zts" = "yes"; then
105196:       part2=zts
105197:     else
105198:       part2=non-zts
105199:     fi
105200:     extbasedir=$part1-$part2-$extbasedir
105201:     EXTENSION_DIR=$libdir/extensions/$extbasedir
105202:   else
105203:     if test "$enable_maintainer_zts" = "yes"; then
105204:       extbasedir=$extbasedir-zts
105205:     fi
105206: 
105207:     if test "$PHP_DEBUG" = "1"; then
105208:       extbasedir=$extbasedir-debug
105209:     fi
105210:     EXTENSION_DIR=$libdir/$extbasedir
105211:   fi
105212: fi
105213: 
105214: case $PHP_LAYOUT in
105215:   GNU)
105216:     datarootdir=$prefix/share
105217:     ;;
105218:   *)
105219:     datarootdir=$prefix/php
105220:     ;;
105221: esac
105222: 
105223: EXPANDED_PEAR_INSTALLDIR=`eval echo $PEAR_INSTALLDIR`
105224: EXPANDED_EXTENSION_DIR=`eval echo $EXTENSION_DIR`
105225: EXPANDED_LOCALSTATEDIR=`eval echo $localstatedir`
105226: EXPANDED_BINDIR=`eval echo $bindir`
105227: EXPANDED_SBINDIR=`eval echo $sbindir`
105228: EXPANDED_MANDIR=`eval echo $mandir`
105229: EXPANDED_LIBDIR=$libdir
105230: EXPANDED_SYSCONFDIR=`eval echo $sysconfdir`
105231: EXPANDED_DATADIR=$datadir
105232: EXPANDED_PHP_CONFIG_FILE_PATH=`eval echo "$PHP_CONFIG_FILE_PATH"`
105233: EXPANDED_PHP_CONFIG_FILE_SCAN_DIR=`eval echo "$PHP_CONFIG_FILE_SCAN_DIR"`
105234: INCLUDE_PATH=.:$EXPANDED_PEAR_INSTALLDIR
105235: 
105236: exec_prefix=$old_exec_prefix
105237: libdir=$old_libdir
105238: datadir=$old_datadir
105239: 
105240: 
105241: 
105242: 
105243: 
105244: 
105245: 
105246: 
105247: 
105248: 
105249: 
105250: 
105251: 
105252: 
105253: if test -n "$php_ldflags_add_usr_lib"; then
105254:   PHP_RPATHS="$PHP_RPATHS /usr/lib"
105255: fi
105256: 
105257: 
105258:   OLD_RPATHS=$PHP_RPATHS
105259:   unset PHP_RPATHS
105260: 
105261:   for i in $OLD_RPATHS; do
105262:     PHP_LDFLAGS="$PHP_LDFLAGS -L$i"
105263:     PHP_RPATHS="$PHP_RPATHS -R $i"
105264:     NATIVE_RPATHS="$NATIVE_RPATHS $ld_runpath_switch$i"
105265:   done
105266: 
105267:   if test "$PHP_RPATH" = "no"; then
105268:     unset PHP_RPATHS
105269:     unset NATIVE_RPATHS
105270:   fi
105271: 
105272: 
105273: if test -z "$php_ldflags_add_usr_lib"; then
105274: 
105275:   unset ac_new_flags
105276:   for i in $PHP_LDFLAGS; do
105277:     case $i in
105278:     -L/usr/$PHP_LIBDIR|-L/usr/$PHP_LIBDIR/) ;;
105279:     *) ac_new_flags="$ac_new_flags $i" ;;
105280:     esac
105281:   done
105282:   PHP_LDFLAGS=$ac_new_flags
105283: 
105284: 
105285:   unset ac_new_flags
105286:   for i in $LDFLAGS; do
105287:     case $i in
105288:     -L/usr/$PHP_LIBDIR|-L/usr/$PHP_LIBDIR/) ;;
105289:     *) ac_new_flags="$ac_new_flags $i" ;;
105290:     esac
105291:   done
105292:   LDFLAGS=$ac_new_flags
105293: 
105294: fi
105295: 
105296: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PHP_LDFLAGS"
105297: EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $PHP_LDFLAGS"
105298: 
105299: PHP_BUILD_DATE=`date '+%Y-%m-%d'`
105300: 
105301: cat >>confdefs.h <<_ACEOF
105302: #define PHP_BUILD_DATE "$PHP_BUILD_DATE"
105303: _ACEOF
105304: 
105305: 
105306: case $host_alias in
105307: *netware*)
105308:   PHP_OS="NetWare"
105309:   PHP_UNAME="NetWare"
105310: 
105311: cat >>confdefs.h <<_ACEOF
105312: #define PHP_OS "$PHP_OS"
105313: _ACEOF
105314: 
105315: 
105316: cat >>confdefs.h <<_ACEOF
105317: #define PHP_UNAME "$PHP_UNAME"
105318: _ACEOF
105319: 
105320:   ;;
105321: *)
105322:   PHP_UNAME=`uname -a | xargs`
105323: 
105324: cat >>confdefs.h <<_ACEOF
105325: #define PHP_UNAME "$PHP_UNAME"
105326: _ACEOF
105327: 
105328:   PHP_OS=`uname | xargs`
105329: 
105330: cat >>confdefs.h <<_ACEOF
105331: #define PHP_OS "$PHP_OS"
105332: _ACEOF
105333: 
105334:   ;;
105335: esac
105336: 
105337: 
105338: 
105339:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_INSTALLED_SAPIS"
105340: 
105341: 
105342: 
105343: 
105344: 
105345:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_EXECUTABLE"
105346: 
105347: 
105348: 
105349:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_SAPI_OBJS"
105350: 
105351: 
105352:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_BINARY_OBJS"
105353: 
105354: 
105355:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_GLOBAL_OBJS"
105356: 
105357: 
105358: 
105359:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_BINARIES"
105360: 
105361: 
105362:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_MODULES"
105363: 
105364: 
105365:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_ZEND_EX"
105366: 
105367: 
105368: 
105369:   PHP_VAR_SUBST="$PHP_VAR_SUBST EXT_LIBS"
105370: 
105371: 
105372: 
105373: 
105374:   PHP_VAR_SUBST="$PHP_VAR_SUBST abs_builddir"
105375: 
105376: 
105377: 
105378: 
105379: 
105380:   PHP_VAR_SUBST="$PHP_VAR_SUBST abs_srcdir"
105381: 
105382: 
105383: 
105384: 
105385: 
105386:   PHP_VAR_SUBST="$PHP_VAR_SUBST php_abs_top_builddir"
105387: 
105388: 
105389: 
105390: 
105391: 
105392:   PHP_VAR_SUBST="$PHP_VAR_SUBST php_abs_top_srcdir"
105393: 
105394: 
105395: 
105396: 
105397: 
105398:   PHP_VAR_SUBST="$PHP_VAR_SUBST bindir"
105399: 
105400: 
105401:   PHP_VAR_SUBST="$PHP_VAR_SUBST sbindir"
105402: 
105403: 
105404:   PHP_VAR_SUBST="$PHP_VAR_SUBST exec_prefix"
105405: 
105406: 
105407: 
105408:   PHP_VAR_SUBST="$PHP_VAR_SUBST program_prefix"
105409: 
105410: 
105411: 
105412: 
105413: 
105414:   PHP_VAR_SUBST="$PHP_VAR_SUBST program_suffix"
105415: 
105416: 
105417: 
105418: 
105419:   PHP_VAR_SUBST="$PHP_VAR_SUBST includedir"
105420: 
105421: 
105422:   PHP_VAR_SUBST="$PHP_VAR_SUBST libdir"
105423: 
105424: 
105425:   PHP_VAR_SUBST="$PHP_VAR_SUBST mandir"
105426: 
105427: 
105428:   PHP_VAR_SUBST="$PHP_VAR_SUBST phplibdir"
105429: 
105430: 
105431:   PHP_VAR_SUBST="$PHP_VAR_SUBST phptempdir"
105432: 
105433: 
105434:   PHP_VAR_SUBST="$PHP_VAR_SUBST prefix"
105435: 
105436: 
105437:   PHP_VAR_SUBST="$PHP_VAR_SUBST localstatedir"
105438: 
105439: 
105440:   PHP_VAR_SUBST="$PHP_VAR_SUBST datadir"
105441: 
105442: 
105443:   PHP_VAR_SUBST="$PHP_VAR_SUBST datarootdir"
105444: 
105445: 
105446:   PHP_VAR_SUBST="$PHP_VAR_SUBST sysconfdir"
105447: 
105448: 
105449: 
105450:   PHP_VAR_SUBST="$PHP_VAR_SUBST EXEEXT"
105451: 
105452: 
105453:   PHP_VAR_SUBST="$PHP_VAR_SUBST CC"
105454: 
105455: 
105456:   PHP_VAR_SUBST="$PHP_VAR_SUBST CFLAGS"
105457: 
105458: 
105459:   PHP_VAR_SUBST="$PHP_VAR_SUBST CFLAGS_CLEAN"
105460: 
105461: 
105462:   PHP_VAR_SUBST="$PHP_VAR_SUBST CPP"
105463: 
105464: 
105465:   PHP_VAR_SUBST="$PHP_VAR_SUBST CPPFLAGS"
105466: 
105467: 
105468:   PHP_VAR_SUBST="$PHP_VAR_SUBST CXX"
105469: 
105470: 
105471:   PHP_VAR_SUBST="$PHP_VAR_SUBST CXXFLAGS"
105472: 
105473: 
105474:   PHP_VAR_SUBST="$PHP_VAR_SUBST CXXFLAGS_CLEAN"
105475: 
105476: 
105477: 
105478:   PHP_VAR_SUBST="$PHP_VAR_SUBST DEBUG_CFLAGS"
105479: 
105480: 
105481: 
105482: 
105483: 
105484:   PHP_VAR_SUBST="$PHP_VAR_SUBST EXTENSION_DIR"
105485: 
105486: 
105487: 
105488: 
105489: 
105490:   PHP_VAR_SUBST="$PHP_VAR_SUBST EXTRA_LDFLAGS"
105491: 
105492: 
105493: 
105494: 
105495: 
105496:   PHP_VAR_SUBST="$PHP_VAR_SUBST EXTRA_LDFLAGS_PROGRAM"
105497: 
105498: 
105499: 
105500: 
105501: 
105502:   PHP_VAR_SUBST="$PHP_VAR_SUBST EXTRA_LIBS"
105503: 
105504: 
105505: 
105506: 
105507: 
105508:   PHP_VAR_SUBST="$PHP_VAR_SUBST ZEND_EXTRA_LIBS"
105509: 
105510: 
105511: 
105512: 
105513: 
105514:   PHP_VAR_SUBST="$PHP_VAR_SUBST INCLUDES"
105515: 
105516: 
105517: 
105518: 
105519: 
105520:   PHP_VAR_SUBST="$PHP_VAR_SUBST EXTRA_INCLUDES"
105521: 
105522: 
105523: 
105524: 
105525: 
105526:   PHP_VAR_SUBST="$PHP_VAR_SUBST INCLUDE_PATH"
105527: 
105528: 
105529: 
105530: 
105531: 
105532:   PHP_VAR_SUBST="$PHP_VAR_SUBST INSTALL_IT"
105533: 
105534: 
105535: 
105536: 
105537:   PHP_VAR_SUBST="$PHP_VAR_SUBST LFLAGS"
105538: 
105539: 
105540:   PHP_VAR_SUBST="$PHP_VAR_SUBST LIBTOOL"
105541: 
105542: 
105543:   PHP_VAR_SUBST="$PHP_VAR_SUBST LN_S"
105544: 
105545: 
105546: 
105547:   PHP_VAR_SUBST="$PHP_VAR_SUBST NATIVE_RPATHS"
105548: 
105549: 
105550: 
105551: 
105552: 
105553:   PHP_VAR_SUBST="$PHP_VAR_SUBST PEAR_INSTALLDIR"
105554: 
105555: 
105556: 
105557: 
105558:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_BUILD_DATE"
105559: 
105560: 
105561: 
105562:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_LDFLAGS"
105563: 
105564: 
105565: 
105566: 
105567: 
105568:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_LIBS"
105569: 
105570: 
105571: 
105572: 
105573:   PHP_VAR_SUBST="$PHP_VAR_SUBST OVERALL_TARGET"
105574: 
105575: 
105576:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_RPATHS"
105577: 
105578: 
105579:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_SAPI"
105580: 
105581: 
105582: 
105583:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_VERSION"
105584: 
105585: 
105586: 
105587: 
105588: 
105589:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_VERSION_ID"
105590: 
105591: 
105592: 
105593: 
105594:   PHP_VAR_SUBST="$PHP_VAR_SUBST SHELL"
105595: 
105596: 
105597:   PHP_VAR_SUBST="$PHP_VAR_SUBST SHARED_LIBTOOL"
105598: 
105599: 
105600:   PHP_VAR_SUBST="$PHP_VAR_SUBST WARNING_LEVEL"
105601: 
105602: 
105603:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_FRAMEWORKS"
105604: 
105605: 
105606:   PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_FRAMEWORKPATH"
105607: 
105608: 
105609:   PHP_VAR_SUBST="$PHP_VAR_SUBST INSTALL_HEADERS"
105610: 
105611: 
105612: old_CC=$CC
105613: 
105614: if test "$PHP_THREAD_SAFETY" = "yes" && test -n "$ac_cv_pthreads_cflags"; then
105615:   CXXFLAGS="$CXXFLAGS $ac_cv_pthreads_cflags"
105616:   INLINE_CFLAGS="$INLINE_CFLAGS $ac_cv_pthreads_cflags"
105617:   cat >meta_ccld<<EOF
105618: #! /bin/sh
105619: exec $CC $ac_cv_pthreads_cflags \$@
105620: EOF
105621:   CC="$abs_builddir/meta_ccld"
105622:   chmod +x meta_ccld
105623: fi
105624: 
105625: if test "$PHP_THREAD_SAFETY" = "yes" && test "$PHP_MYSQL" = "yes"; then
105626:   CPPFLAGS="$CPPFLAGS -DTHREAD=1"
105627: fi
105628: 
105629: ZEND_EXT_TYPE="zend_extension"
105630: 
105631:   PHP_VAR_SUBST="$PHP_VAR_SUBST ZEND_EXT_TYPE"
105632: 
105633: 
105634: 
105635: 
105636: # Check whether --enable- was given.
105637: if test "${enable_+set}" = set; then :
105638:   enableval=$enable_;
105639: fi
105640: 
105641: 
105642: 
105643:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
105644: $as_echo "" >&6; }
105645:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Configuring libtool${T_ME}" >&5
105646: $as_echo "${T_MD}Configuring libtool${T_ME}" >&6; }
105647: 
105648: 
105649: LDFLAGS="$LDFLAGS $PHP_AIX_LDFLAGS"
105650: 
105651: case $host_alias in
105652: *darwin9*|*darwin10*)
105653:   ac_cv_exeext=
105654:   ;;
105655: esac
105656: 
105657: 
105658: # Check whether --enable-shared was given.
105659: if test "${enable_shared+set}" = set; then :
105660:   enableval=$enable_shared;     p=${PACKAGE-default}
105661:     case $enableval in
105662:     yes) enable_shared=yes ;;
105663:     no) enable_shared=no ;;
105664:     *)
105665:       enable_shared=no
105666:       # Look at the argument we got.  We use all the common list separators.
105667:       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
105668:       for pkg in $enableval; do
105669: 	IFS="$lt_save_ifs"
105670: 	if test "X$pkg" = "X$p"; then
105671: 	  enable_shared=yes
105672: 	fi
105673:       done
105674:       IFS="$lt_save_ifs"
105675:       ;;
105676:     esac
105677: else
105678:   enable_shared=yes
105679: fi
105680: 
105681: 
105682: # Check whether --enable-static was given.
105683: if test "${enable_static+set}" = set; then :
105684:   enableval=$enable_static;     p=${PACKAGE-default}
105685:     case $enableval in
105686:     yes) enable_static=yes ;;
105687:     no) enable_static=no ;;
105688:     *)
105689:      enable_static=no
105690:       # Look at the argument we got.  We use all the common list separators.
105691:       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
105692:       for pkg in $enableval; do
105693: 	IFS="$lt_save_ifs"
105694: 	if test "X$pkg" = "X$p"; then
105695: 	  enable_static=yes
105696: 	fi
105697:       done
105698:       IFS="$lt_save_ifs"
105699:       ;;
105700:     esac
105701: else
105702:   enable_static=yes
105703: fi
105704: 
105705: 
105706: # Check whether --enable-fast-install was given.
105707: if test "${enable_fast_install+set}" = set; then :
105708:   enableval=$enable_fast_install;     p=${PACKAGE-default}
105709:     case $enableval in
105710:     yes) enable_fast_install=yes ;;
105711:     no) enable_fast_install=no ;;
105712:     *)
105713:       enable_fast_install=no
105714:       # Look at the argument we got.  We use all the common list separators.
105715:       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
105716:       for pkg in $enableval; do
105717: 	IFS="$lt_save_ifs"
105718: 	if test "X$pkg" = "X$p"; then
105719: 	  enable_fast_install=yes
105720: 	fi
105721:       done
105722:       IFS="$lt_save_ifs"
105723:       ;;
105724:     esac
105725: else
105726:   enable_fast_install=yes
105727: fi
105728: 
105729: 
105730: 
105731: # Check whether --with-gnu-ld was given.
105732: if test "${with_gnu_ld+set}" = set; then :
105733:   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
105734: else
105735:   with_gnu_ld=no
105736: fi
105737: 
105738: ac_prog=ld
105739: if test "$GCC" = yes; then
105740:   # Check if gcc -print-prog-name=ld gives a path.
105741:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
105742: $as_echo_n "checking for ld used by $CC... " >&6; }
105743:   case $host in
105744:   *-*-mingw*)
105745:     # gcc leaves a trailing carriage return which upsets mingw
105746:     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
105747:   *)
105748:     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
105749:   esac
105750:   case $ac_prog in
105751:     # Accept absolute paths.
105752:     [\\/]* | ?:[\\/]*)
105753:       re_direlt='/[^/][^/]*/\.\./'
105754:       # Canonicalize the pathname of ld
105755:       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
105756:       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
105757: 	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
105758:       done
105759:       test -z "$LD" && LD="$ac_prog"
105760:       ;;
105761:   "")
105762:     # If it fails, then pretend we aren't using GCC.
105763:     ac_prog=ld
105764:     ;;
105765:   *)
105766:     # If it is relative, then search for the first ld in PATH.
105767:     with_gnu_ld=unknown
105768:     ;;
105769:   esac
105770: elif test "$with_gnu_ld" = yes; then
105771:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
105772: $as_echo_n "checking for GNU ld... " >&6; }
105773: else
105774:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
105775: $as_echo_n "checking for non-GNU ld... " >&6; }
105776: fi
105777: if ${lt_cv_path_LD+:} false; then :
105778:   $as_echo_n "(cached) " >&6
105779: else
105780:   if test -z "$LD"; then
105781:   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
105782:   for ac_dir in $PATH; do
105783:     IFS="$lt_save_ifs"
105784:     test -z "$ac_dir" && ac_dir=.
105785:     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
105786:       lt_cv_path_LD="$ac_dir/$ac_prog"
105787:       # Check to see if the program is GNU ld.  I'd rather use --version,
105788:       # but apparently some variants of GNU ld only accept -v.
105789:       # Break only if it was the GNU/non-GNU ld that we prefer.
105790:       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
105791:       *GNU* | *'with BFD'*)
105792: 	test "$with_gnu_ld" != no && break
105793: 	;;
105794:       *)
105795: 	test "$with_gnu_ld" != yes && break
105796: 	;;
105797:       esac
105798:     fi
105799:   done
105800:   IFS="$lt_save_ifs"
105801: else
105802:   lt_cv_path_LD="$LD" # Let the user override the test with a path.
105803: fi
105804: fi
105805: 
105806: LD="$lt_cv_path_LD"
105807: if test -n "$LD"; then
105808:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
105809: $as_echo "$LD" >&6; }
105810: else
105811:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
105812: $as_echo "no" >&6; }
105813: fi
105814: test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
105815: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
105816: $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
105817: if ${lt_cv_prog_gnu_ld+:} false; then :
105818:   $as_echo_n "(cached) " >&6
105819: else
105820:   # I'd rather use --version here, but apparently some GNU lds only accept -v.
105821: case `$LD -v 2>&1 </dev/null` in
105822: *GNU* | *'with BFD'*)
105823:   lt_cv_prog_gnu_ld=yes
105824:   ;;
105825: *)
105826:   lt_cv_prog_gnu_ld=no
105827:   ;;
105828: esac
105829: fi
105830: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
105831: $as_echo "$lt_cv_prog_gnu_ld" >&6; }
105832: with_gnu_ld=$lt_cv_prog_gnu_ld
105833: 
105834: 
105835: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
105836: $as_echo_n "checking for $LD option to reload object files... " >&6; }
105837: if ${lt_cv_ld_reload_flag+:} false; then :
105838:   $as_echo_n "(cached) " >&6
105839: else
105840:   lt_cv_ld_reload_flag='-r'
105841: fi
105842: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
105843: $as_echo "$lt_cv_ld_reload_flag" >&6; }
105844: reload_flag=$lt_cv_ld_reload_flag
105845: case $reload_flag in
105846: "" | " "*) ;;
105847: *) reload_flag=" $reload_flag" ;;
105848: esac
105849: reload_cmds='$LD$reload_flag -o $output$reload_objs'
105850: case $host_os in
105851:   darwin*)
105852:     if test "$GCC" = yes; then
105853:       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
105854:     else
105855:       reload_cmds='$LD$reload_flag -o $output$reload_objs'
105856:     fi
105857:     ;;
105858: esac
105859: 
105860: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
105861: $as_echo_n "checking for BSD-compatible nm... " >&6; }
105862: if ${lt_cv_path_NM+:} false; then :
105863:   $as_echo_n "(cached) " >&6
105864: else
105865:   if test -n "$NM"; then
105866:   # Let the user override the test.
105867:   lt_cv_path_NM="$NM"
105868: else
105869:   lt_nm_to_check="${ac_tool_prefix}nm"
105870:   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
105871:     lt_nm_to_check="$lt_nm_to_check nm"
105872:   fi
105873:   for lt_tmp_nm in $lt_nm_to_check; do
105874:     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
105875:     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
105876:       IFS="$lt_save_ifs"
105877:       test -z "$ac_dir" && ac_dir=.
105878:       tmp_nm="$ac_dir/$lt_tmp_nm"
105879:       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
105880: 	# Check to see if the nm accepts a BSD-compat flag.
105881: 	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
105882: 	#   nm: unknown option "B" ignored
105883: 	# Tru64's nm complains that /dev/null is an invalid object file
105884: 	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
105885: 	*/dev/null* | *'Invalid file or object type'*)
105886: 	  lt_cv_path_NM="$tmp_nm -B"
105887: 	  break
105888: 	  ;;
105889: 	*)
105890: 	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
105891: 	  */dev/null*)
105892: 	    lt_cv_path_NM="$tmp_nm -p"
105893: 	    break
105894: 	    ;;
105895: 	  *)
105896: 	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
105897: 	    continue # so that we can try to find one that supports BSD flags
105898: 	    ;;
105899: 	  esac
105900: 	  ;;
105901: 	esac
105902:       fi
105903:     done
105904:     IFS="$lt_save_ifs"
105905:   done
105906:   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
105907: fi
105908: fi
105909: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
105910: $as_echo "$lt_cv_path_NM" >&6; }
105911: NM="$lt_cv_path_NM"
105912: 
105913: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
105914: $as_echo_n "checking how to recognize dependent libraries... " >&6; }
105915: if ${lt_cv_deplibs_check_method+:} false; then :
105916:   $as_echo_n "(cached) " >&6
105917: else
105918:   lt_cv_file_magic_cmd='$MAGIC_CMD'
105919: lt_cv_file_magic_test_file=
105920: lt_cv_deplibs_check_method='unknown'
105921: # Need to set the preceding variable on all platforms that support
105922: # interlibrary dependencies.
105923: # 'none' -- dependencies not supported.
105924: # `unknown' -- same as none, but documents that we really don't know.
105925: # 'pass_all' -- all dependencies passed with no checks.
105926: # 'test_compile' -- check by making test program.
105927: # 'file_magic [[regex]]' -- check by looking for files in library path
105928: # which responds to the $file_magic_cmd with a given extended regex.
105929: # If you have `file' or equivalent on your system and you're not sure
105930: # whether `pass_all' will *always* work, you probably want this one.
105931: 
105932: case $host_os in
105933: aix[4-9]*)
105934:   lt_cv_deplibs_check_method=pass_all
105935:   ;;
105936: 
105937: beos*)
105938:   lt_cv_deplibs_check_method=pass_all
105939:   ;;
105940: 
105941: bsdi[45]*)
105942:   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
105943:   lt_cv_file_magic_cmd='/usr/bin/file -L'
105944:   lt_cv_file_magic_test_file=/shlib/libc.so
105945:   ;;
105946: 
105947: cygwin*)
105948:   # func_win32_libid is a shell function defined in ltmain.sh
105949:   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
105950:   lt_cv_file_magic_cmd='func_win32_libid'
105951:   ;;
105952: 
105953: mingw* | pw32*)
105954:   # Base MSYS/MinGW do not provide the 'file' command needed by
105955:   # func_win32_libid shell function, so use a weaker test based on 'objdump',
105956:   # unless we find 'file', for example because we are cross-compiling.
105957:   if ( file / ) >/dev/null 2>&1; then
105958:     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
105959:     lt_cv_file_magic_cmd='func_win32_libid'
105960:   else
105961:     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
105962:     lt_cv_file_magic_cmd='$OBJDUMP -f'
105963:   fi
105964:   ;;
105965: 
105966: darwin* | rhapsody*)
105967:   lt_cv_deplibs_check_method=pass_all
105968:   ;;
105969: 
105970: freebsd* | dragonfly*)
105971:   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
105972:     case $host_cpu in
105973:     i*86 )
105974:       # Not sure whether the presence of OpenBSD here was a mistake.
105975:       # Let's accept both of them until this is cleared up.
105976:       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
105977:       lt_cv_file_magic_cmd=/usr/bin/file
105978:       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
105979:       ;;
105980:     esac
105981:   else
105982:     lt_cv_deplibs_check_method=pass_all
105983:   fi
105984:   ;;
105985: 
105986: gnu*)
105987:   lt_cv_deplibs_check_method=pass_all
105988:   ;;
105989: 
105990: hpux10.20* | hpux11*)
105991:   lt_cv_file_magic_cmd=/usr/bin/file
105992:   case $host_cpu in
105993:   ia64*)
105994:     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
105995:     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
105996:     ;;
105997:   hppa*64*)
105998:     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]'
105999:     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
106000:     ;;
106001:   *)
106002:     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
106003:     lt_cv_file_magic_test_file=/usr/lib/libc.sl
106004:     ;;
106005:   esac
106006:   ;;
106007: 
106008: interix[3-9]*)
106009:   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
106010:   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
106011:   ;;
106012: 
106013: irix5* | irix6* | nonstopux*)
106014:   case $LD in
106015:   *-32|*"-32 ") libmagic=32-bit;;
106016:   *-n32|*"-n32 ") libmagic=N32;;
106017:   *-64|*"-64 ") libmagic=64-bit;;
106018:   *) libmagic=never-match;;
106019:   esac
106020:   lt_cv_deplibs_check_method=pass_all
106021:   ;;
106022: 
106023: # This must be Linux ELF.
106024: linux* | k*bsd*-gnu)
106025:   lt_cv_deplibs_check_method=pass_all
106026:   ;;
106027: 
106028: netbsd*)
106029:   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
106030:     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
106031:   else
106032:     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
106033:   fi
106034:   ;;
106035: 
106036: newos6*)
106037:   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
106038:   lt_cv_file_magic_cmd=/usr/bin/file
106039:   lt_cv_file_magic_test_file=/usr/lib/libnls.so
106040:   ;;
106041: 
106042: nto-qnx*)
106043:   lt_cv_deplibs_check_method=unknown
106044:   ;;
106045: 
106046: openbsd*)
106047:   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
106048:     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
106049:   else
106050:     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
106051:   fi
106052:   ;;
106053: 
106054: osf3* | osf4* | osf5*)
106055:   lt_cv_deplibs_check_method=pass_all
106056:   ;;
106057: 
106058: rdos*)
106059:   lt_cv_deplibs_check_method=pass_all
106060:   ;;
106061: 
106062: solaris*)
106063:   lt_cv_deplibs_check_method=pass_all
106064:   ;;
106065: 
106066: sysv4 | sysv4.3*)
106067:   case $host_vendor in
106068:   motorola)
106069:     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]'
106070:     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
106071:     ;;
106072:   ncr)
106073:     lt_cv_deplibs_check_method=pass_all
106074:     ;;
106075:   sequent)
106076:     lt_cv_file_magic_cmd='/bin/file'
106077:     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
106078:     ;;
106079:   sni)
106080:     lt_cv_file_magic_cmd='/bin/file'
106081:     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
106082:     lt_cv_file_magic_test_file=/lib/libc.so
106083:     ;;
106084:   siemens)
106085:     lt_cv_deplibs_check_method=pass_all
106086:     ;;
106087:   pc)
106088:     lt_cv_deplibs_check_method=pass_all
106089:     ;;
106090:   esac
106091:   ;;
106092: 
106093: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
106094:   lt_cv_deplibs_check_method=pass_all
106095:   ;;
106096: esac
106097: 
106098: fi
106099: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
106100: $as_echo "$lt_cv_deplibs_check_method" >&6; }
106101: file_magic_cmd=$lt_cv_file_magic_cmd
106102: deplibs_check_method=$lt_cv_deplibs_check_method
106103: test -z "$deplibs_check_method" && deplibs_check_method=unknown
106104: 
106105: 
106106: 
106107: 
106108: # If no C compiler was specified, use CC.
106109: LTCC=${LTCC-"$CC"}
106110: 
106111: # If no C compiler flags were specified, use CFLAGS.
106112: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
106113: 
106114: # Allow CC to be a program name with arguments.
106115: compiler=$CC
106116: 
106117: #AC_ARG_ENABLE([libtool-lock],
106118: #[  --disable-libtool-lock  avoid locking (might break parallel builds)])
106119: #test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
106120: 
106121: # Some flags need to be propagated to the compiler or linker for good
106122: # libtool support.
106123: case $host in
106124: ia64-*-hpux*)
106125:   # Find out which ABI we are using.
106126:   echo 'int i;' > conftest.$ac_ext
106127:   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
106128:   (eval $ac_compile) 2>&5
106129:   ac_status=$?
106130:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
106131:   test $ac_status = 0; }; then
106132:     case `/usr/bin/file conftest.$ac_objext` in
106133:     *ELF-32*)
106134:       HPUX_IA64_MODE="32"
106135:       ;;
106136:     *ELF-64*)
106137:       HPUX_IA64_MODE="64"
106138:       ;;
106139:     esac
106140:   fi
106141:   rm -rf conftest*
106142:   ;;
106143: *-*-irix6*)
106144:   # Find out which ABI we are using.
106145:   echo '#line 106145 "configure"' > conftest.$ac_ext
106146:   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
106147:   (eval $ac_compile) 2>&5
106148:   ac_status=$?
106149:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
106150:   test $ac_status = 0; }; then
106151:    if test "$lt_cv_prog_gnu_ld" = yes; then
106152:     case `/usr/bin/file conftest.$ac_objext` in
106153:     *32-bit*)
106154:       LD="${LD-ld} -melf32bsmip"
106155:       ;;
106156:     *N32*)
106157:       LD="${LD-ld} -melf32bmipn32"
106158:       ;;
106159:     *64-bit*)
106160:       LD="${LD-ld} -melf64bmip"
106161:       ;;
106162:     esac
106163:    else
106164:     case `/usr/bin/file conftest.$ac_objext` in
106165:     *32-bit*)
106166:       LD="${LD-ld} -32"
106167:       ;;
106168:     *N32*)
106169:       LD="${LD-ld} -n32"
106170:       ;;
106171:     *64-bit*)
106172:       LD="${LD-ld} -64"
106173:       ;;
106174:     esac
106175:    fi
106176:   fi
106177:   rm -rf conftest*
106178:   ;;
106179: 
106180: x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
106181: s390*-*linux*|sparc*-*linux*)
106182:   # Find out which ABI we are using.
106183:   echo 'int i;' > conftest.$ac_ext
106184:   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
106185:   (eval $ac_compile) 2>&5
106186:   ac_status=$?
106187:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
106188:   test $ac_status = 0; }; then
106189:     case `/usr/bin/file conftest.o` in
106190:     *32-bit*)
106191:       case $host in
106192:         x86_64-*kfreebsd*-gnu)
106193:           LD="${LD-ld} -m elf_i386_fbsd"
106194:           ;;
106195:         x86_64-*linux*)
106196:           LD="${LD-ld} -m elf_i386"
106197:           ;;
106198:         ppc64-*linux*|powerpc64-*linux*)
106199:           LD="${LD-ld} -m elf32ppclinux"
106200:           ;;
106201:         s390x-*linux*)
106202:           LD="${LD-ld} -m elf_s390"
106203:           ;;
106204:         sparc64-*linux*)
106205:           LD="${LD-ld} -m elf32_sparc"
106206:           ;;
106207:       esac
106208:       ;;
106209:     *64-bit*)
106210:       case $host in
106211:         x86_64-*kfreebsd*-gnu)
106212:           LD="${LD-ld} -m elf_x86_64_fbsd"
106213:           ;;
106214:         x86_64-*linux*)
106215:           LD="${LD-ld} -m elf_x86_64"
106216:           ;;
106217:         ppc*-*linux*|powerpc*-*linux*)
106218:           LD="${LD-ld} -m elf64ppc"
106219:           ;;
106220:         s390*-*linux*)
106221:           LD="${LD-ld} -m elf64_s390"
106222:           ;;
106223:         sparc*-*linux*)
106224:           LD="${LD-ld} -m elf64_sparc"
106225:           ;;
106226:       esac
106227:       ;;
106228:     esac
106229:   fi
106230:   rm -rf conftest*
106231:   ;;
106232: 
106233: *-*-sco3.2v5*)
106234:   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
106235:   SAVE_CFLAGS="$CFLAGS"
106236:   CFLAGS="$CFLAGS -belf"
106237:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
106238: $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
106239: if ${lt_cv_cc_needs_belf+:} false; then :
106240:   $as_echo_n "(cached) " >&6
106241: else
106242: 
106243:      ac_ext=c
106244: ac_cpp='$CPP $CPPFLAGS'
106245: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
106246: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
106247: ac_compiler_gnu=$ac_cv_c_compiler_gnu
106248: 
106249:      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
106250: /* end confdefs.h.  */
106251: 
106252: int
106253: main ()
106254: {
106255: 
106256:   ;
106257:   return 0;
106258: }
106259: _ACEOF
106260: if ac_fn_c_try_link "$LINENO"; then :
106261:   lt_cv_cc_needs_belf=yes
106262: else
106263:   lt_cv_cc_needs_belf=no
106264: fi
106265: rm -f core conftest.err conftest.$ac_objext \
106266:     conftest$ac_exeext conftest.$ac_ext
106267:      ac_ext=c
106268: ac_cpp='$CPP $CPPFLAGS'
106269: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
106270: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
106271: ac_compiler_gnu=$ac_cv_c_compiler_gnu
106272: 
106273: fi
106274: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
106275: $as_echo "$lt_cv_cc_needs_belf" >&6; }
106276:   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
106277:     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
106278:     CFLAGS="$SAVE_CFLAGS"
106279:   fi
106280:   ;;
106281: sparc*-*solaris*)
106282:   # Find out which ABI we are using.
106283:   echo 'int i;' > conftest.$ac_ext
106284:   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
106285:   (eval $ac_compile) 2>&5
106286:   ac_status=$?
106287:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
106288:   test $ac_status = 0; }; then
106289:     case `/usr/bin/file conftest.o` in
106290:     *64-bit*)
106291:       case $lt_cv_prog_gnu_ld in
106292:       yes*) LD="${LD-ld} -m elf64_sparc" ;;
106293:       *)
106294:         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
106295: 	  LD="${LD-ld} -64"
106296: 	fi
106297: 	;;
106298:       esac
106299:       ;;
106300:     esac
106301:   fi
106302:   rm -rf conftest*
106303:   ;;
106304: 
106305: 
106306: esac
106307: 
106308: need_locks="$enable_libtool_lock"
106309: 
106310: 
106311: 
106312: 
106313: if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
106314:     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
106315:     (test "X$CXX" != "Xg++"))) ; then
106316:   ac_ext=cpp
106317: ac_cpp='$CXXCPP $CPPFLAGS'
106318: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
106319: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
106320: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
106321: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
106322: $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
106323: if test -z "$CXXCPP"; then
106324:   if ${ac_cv_prog_CXXCPP+:} false; then :
106325:   $as_echo_n "(cached) " >&6
106326: else
106327:       # Double quotes because CXXCPP needs to be expanded
106328:     for CXXCPP in "$CXX -E" "/lib/cpp"
106329:     do
106330:       ac_preproc_ok=false
106331: for ac_cxx_preproc_warn_flag in '' yes
106332: do
106333:   # Use a header file that comes with gcc, so configuring glibc
106334:   # with a fresh cross-compiler works.
106335:   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
106336:   # <limits.h> exists even on freestanding compilers.
106337:   # On the NeXT, cc -E runs the code through the compiler's parser,
106338:   # not just through cpp. "Syntax error" is here to catch this case.
106339:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
106340: /* end confdefs.h.  */
106341: #ifdef __STDC__
106342: # include <limits.h>
106343: #else
106344: # include <assert.h>
106345: #endif
106346: 		     Syntax error
106347: _ACEOF
106348: if ac_fn_cxx_try_cpp "$LINENO"; then :
106349: 
106350: else
106351:   # Broken: fails on valid input.
106352: continue
106353: fi
106354: rm -f conftest.err conftest.i conftest.$ac_ext
106355: 
106356:   # OK, works on sane cases.  Now check whether nonexistent headers
106357:   # can be detected and how.
106358:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
106359: /* end confdefs.h.  */
106360: #include <ac_nonexistent.h>
106361: _ACEOF
106362: if ac_fn_cxx_try_cpp "$LINENO"; then :
106363:   # Broken: success on invalid input.
106364: continue
106365: else
106366:   # Passes both tests.
106367: ac_preproc_ok=:
106368: break
106369: fi
106370: rm -f conftest.err conftest.i conftest.$ac_ext
106371: 
106372: done
106373: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
106374: rm -f conftest.i conftest.err conftest.$ac_ext
106375: if $ac_preproc_ok; then :
106376:   break
106377: fi
106378: 
106379:     done
106380:     ac_cv_prog_CXXCPP=$CXXCPP
106381: 
106382: fi
106383:   CXXCPP=$ac_cv_prog_CXXCPP
106384: else
106385:   ac_cv_prog_CXXCPP=$CXXCPP
106386: fi
106387: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
106388: $as_echo "$CXXCPP" >&6; }
106389: ac_preproc_ok=false
106390: for ac_cxx_preproc_warn_flag in '' yes
106391: do
106392:   # Use a header file that comes with gcc, so configuring glibc
106393:   # with a fresh cross-compiler works.
106394:   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
106395:   # <limits.h> exists even on freestanding compilers.
106396:   # On the NeXT, cc -E runs the code through the compiler's parser,
106397:   # not just through cpp. "Syntax error" is here to catch this case.
106398:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
106399: /* end confdefs.h.  */
106400: #ifdef __STDC__
106401: # include <limits.h>
106402: #else
106403: # include <assert.h>
106404: #endif
106405: 		     Syntax error
106406: _ACEOF
106407: if ac_fn_cxx_try_cpp "$LINENO"; then :
106408: 
106409: else
106410:   # Broken: fails on valid input.
106411: continue
106412: fi
106413: rm -f conftest.err conftest.i conftest.$ac_ext
106414: 
106415:   # OK, works on sane cases.  Now check whether nonexistent headers
106416:   # can be detected and how.
106417:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
106418: /* end confdefs.h.  */
106419: #include <ac_nonexistent.h>
106420: _ACEOF
106421: if ac_fn_cxx_try_cpp "$LINENO"; then :
106422:   # Broken: success on invalid input.
106423: continue
106424: else
106425:   # Passes both tests.
106426: ac_preproc_ok=:
106427: break
106428: fi
106429: rm -f conftest.err conftest.i conftest.$ac_ext
106430: 
106431: done
106432: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
106433: rm -f conftest.i conftest.err conftest.$ac_ext
106434: if $ac_preproc_ok; then :
106435: 
106436: else
106437:   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
106438: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
106439: as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
106440: See \`config.log' for more details" "$LINENO" 5; }
106441: fi
106442: 
106443: ac_ext=cpp
106444: ac_cpp='$CXXCPP $CPPFLAGS'
106445: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
106446: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
106447: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
106448: 
106449: fi
106450: 
106451: 
106452: # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
106453: # find the maximum length of command line arguments
106454: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
106455: $as_echo_n "checking the maximum length of command line arguments... " >&6; }
106456: if ${lt_cv_sys_max_cmd_len+:} false; then :
106457:   $as_echo_n "(cached) " >&6
106458: else
106459:     i=0
106460:   teststring="ABCD"
106461: 
106462:   case $build_os in
106463:   msdosdjgpp*)
106464:     # On DJGPP, this test can blow up pretty badly due to problems in libc
106465:     # (any single argument exceeding 2000 bytes causes a buffer overrun
106466:     # during glob expansion).  Even if it were fixed, the result of this
106467:     # check would be larger than it should be.
106468:     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
106469:     ;;
106470: 
106471:   gnu*)
106472:     # Under GNU Hurd, this test is not required because there is
106473:     # no limit to the length of command line arguments.
106474:     # Libtool will interpret -1 as no limit whatsoever
106475:     lt_cv_sys_max_cmd_len=-1;
106476:     ;;
106477: 
106478:   cygwin* | mingw*)
106479:     # On Win9x/ME, this test blows up -- it succeeds, but takes
106480:     # about 5 minutes as the teststring grows exponentially.
106481:     # Worse, since 9x/ME are not pre-emptively multitasking,
106482:     # you end up with a "frozen" computer, even though with patience
106483:     # the test eventually succeeds (with a max line length of 256k).
106484:     # Instead, let's just punt: use the minimum linelength reported by
106485:     # all of the supported platforms: 8192 (on NT/2K/XP).
106486:     lt_cv_sys_max_cmd_len=8192;
106487:     ;;
106488: 
106489:   amigaos*)
106490:     # On AmigaOS with pdksh, this test takes hours, literally.
106491:     # So we just punt and use a minimum line length of 8192.
106492:     lt_cv_sys_max_cmd_len=8192;
106493:     ;;
106494: 
106495:   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
106496:     # This has been around since 386BSD, at least.  Likely further.
106497:     if test -x /sbin/sysctl; then
106498:       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
106499:     elif test -x /usr/sbin/sysctl; then
106500:       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
106501:     else
106502:       lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
106503:     fi
106504:     # And add a safety zone
106505:     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
106506:     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
106507:     ;;
106508: 
106509:   interix*)
106510:     # We know the value 262144 and hardcode it with a safety zone (like BSD)
106511:     lt_cv_sys_max_cmd_len=196608
106512:     ;;
106513: 
106514:   osf*)
106515:     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
106516:     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
106517:     # nice to cause kernel panics so lets avoid the loop below.
106518:     # First set a reasonable default.
106519:     lt_cv_sys_max_cmd_len=16384
106520:     #
106521:     if test -x /sbin/sysconfig; then
106522:       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
106523:         *1*) lt_cv_sys_max_cmd_len=-1 ;;
106524:       esac
106525:     fi
106526:     ;;
106527:   sco3.2v5*)
106528:     lt_cv_sys_max_cmd_len=102400
106529:     ;;
106530:   sysv5* | sco5v6* | sysv4.2uw2*)
106531:     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
106532:     if test -n "$kargmax"; then
106533:       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
106534:     else
106535:       lt_cv_sys_max_cmd_len=32768
106536:     fi
106537:     ;;
106538:   *)
106539:     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
106540:     if test -n "$lt_cv_sys_max_cmd_len"; then
106541:       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
106542:       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
106543:     else
106544:       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
106545:       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
106546: 	       = "XX$teststring") >/dev/null 2>&1 &&
106547: 	      new_result=`expr "X$teststring" : ".*" 2>&1` &&
106548: 	      lt_cv_sys_max_cmd_len=$new_result &&
106549: 	      test $i != 17 # 1/2 MB should be enough
106550:       do
106551:         i=`expr $i + 1`
106552:         teststring=$teststring$teststring
106553:       done
106554:       teststring=
106555:       # Add a significant safety factor because C++ compilers can tack on massive
106556:       # amounts of additional arguments before passing them to the linker.
106557:       # It appears as though 1/2 is a usable value.
106558:       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
106559:     fi
106560:     ;;
106561:   esac
106562: 
106563: fi
106564: 
106565: if test -n $lt_cv_sys_max_cmd_len ; then
106566:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
106567: $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
106568: else
106569:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
106570: $as_echo "none" >&6; }
106571: fi
106572: 
106573: 
106574: 
106575: 
106576: 
106577: # Check for command to grab the raw symbol name followed by C symbol from nm.
106578: { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
106579: $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
106580: if ${lt_cv_sys_global_symbol_pipe+:} false; then :
106581:   $as_echo_n "(cached) " >&6
106582: else
106583: 
106584: # These are sane defaults that work on at least a few old systems.
106585: # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
106586: 
106587: # Character class describing NM global symbol codes.
106588: symcode='[BCDEGRST]'
106589: 
106590: # Regexp to match symbols that can be accessed directly from C.
106591: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
106592: 
106593: # Transform an extracted symbol line into a proper C declaration
106594: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
106595: 
106596: # Transform an extracted symbol line into symbol name and symbol address
106597: 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'"
106598: 
106599: # Define system-specific variables.
106600: case $host_os in
106601: aix*)
106602:   symcode='[BCDT]'
106603:   ;;
106604: cygwin* | mingw* | pw32*)
106605:   symcode='[ABCDGISTW]'
106606:   ;;
106607: hpux*) # Its linker distinguishes data from code symbols
106608:   if test "$host_cpu" = ia64; then
106609:     symcode='[ABCDEGRST]'
106610:   fi
106611:   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
106612:   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'"
106613:   ;;
106614: linux* | k*bsd*-gnu)
106615:   if test "$host_cpu" = ia64; then
106616:     symcode='[ABCDGIRSTW]'
106617:     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
106618:     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'"
106619:   fi
106620:   ;;
106621: irix* | nonstopux*)
106622:   symcode='[BCDEGRST]'
106623:   ;;
106624: osf*)
106625:   symcode='[BCDEGQRST]'
106626:   ;;
106627: solaris*)
106628:   symcode='[BDRT]'
106629:   ;;
106630: sco3.2v5*)
106631:   symcode='[DT]'
106632:   ;;
106633: sysv4.2uw2*)
106634:   symcode='[DT]'
106635:   ;;
106636: sysv5* | sco5v6* | unixware* | OpenUNIX*)
106637:   symcode='[ABDT]'
106638:   ;;
106639: sysv4)
106640:   symcode='[DFNSTU]'
106641:   ;;
106642: esac
106643: 
106644: # Handle CRLF in mingw tool chain
106645: opt_cr=
106646: case $build_os in
106647: mingw*)
106648:   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
106649:   ;;
106650: esac
106651: 
106652: # If we're using GNU nm, then use its standard symbol codes.
106653: case `$NM -V 2>&1` in
106654: *GNU* | *'with BFD'*)
106655:   symcode='[ABCDGIRSTW]' ;;
106656: esac
106657: 
106658: # Try without a prefix undercore, then with it.
106659: for ac_symprfx in "" "_"; do
106660: 
106661:   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
106662:   symxfrm="\\1 $ac_symprfx\\2 \\2"
106663: 
106664:   # Write the raw and C identifiers.
106665:   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
106666: 
106667:   # Check to see that the pipe works correctly.
106668:   pipe_works=no
106669: 
106670:   rm -f conftest*
106671:   cat > conftest.$ac_ext <<EOF
106672: #ifdef __cplusplus
106673: extern "C" {
106674: #endif
106675: char nm_test_var;
106676: void nm_test_func(){}
106677: #ifdef __cplusplus
106678: }
106679: #endif
106680: int main(){nm_test_var='a';nm_test_func();return(0);}
106681: EOF
106682: 
106683:   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
106684:   (eval $ac_compile) 2>&5
106685:   ac_status=$?
106686:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
106687:   test $ac_status = 0; }; then
106688:     # Now try to grab the symbols.
106689:     nlist=conftest.nm
106690:     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
106691:   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
106692:   ac_status=$?
106693:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
106694:   test $ac_status = 0; } && test -s "$nlist"; then
106695:       # Try sorting and uniquifying the output.
106696:       if sort "$nlist" | uniq > "$nlist"T; then
106697: 	mv -f "$nlist"T "$nlist"
106698:       else
106699: 	rm -f "$nlist"T
106700:       fi
106701: 
106702:       # Make sure that we snagged all the symbols we need.
106703:       if grep ' nm_test_var$' "$nlist" >/dev/null; then
106704: 	if grep ' nm_test_func$' "$nlist" >/dev/null; then
106705: 	  cat <<EOF > conftest.$ac_ext
106706: #ifdef __cplusplus
106707: extern "C" {
106708: #endif
106709: 
106710: EOF
106711: 	  # Now generate the symbol file.
106712: 	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
106713: 
106714: 	  cat <<EOF >> conftest.$ac_ext
106715: #if defined (__STDC__) && __STDC__
106716: # define lt_ptr_t void *
106717: #else
106718: # define lt_ptr_t char *
106719: # define const
106720: #endif
106721: 
106722: /* The mapping between symbol names and symbols. */
106723: const struct {
106724:   const char *name;
106725:   lt_ptr_t address;
106726: }
106727: lt_preloaded_symbols[] =
106728: {
106729: EOF
106730: 	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
106731: 	  cat <<\EOF >> conftest.$ac_ext
106732:   {0, (lt_ptr_t) 0}
106733: };
106734: 
106735: #ifdef __cplusplus
106736: }
106737: #endif
106738: EOF
106739: 	  # Now try linking the two files.
106740: 	  mv conftest.$ac_objext conftstm.$ac_objext
106741: 	  lt_save_LIBS="$LIBS"
106742: 	  lt_save_CFLAGS="$CFLAGS"
106743: 	  LIBS="conftstm.$ac_objext"
106744: 	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
106745: 	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
106746:   (eval $ac_link) 2>&5
106747:   ac_status=$?
106748:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
106749:   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
106750: 	    pipe_works=yes
106751: 	  fi
106752: 	  LIBS="$lt_save_LIBS"
106753: 	  CFLAGS="$lt_save_CFLAGS"
106754: 	else
106755: 	  echo "cannot find nm_test_func in $nlist" >&5
106756: 	fi
106757:       else
106758: 	echo "cannot find nm_test_var in $nlist" >&5
106759:       fi
106760:     else
106761:       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
106762:     fi
106763:   else
106764:     echo "$progname: failed program was:" >&5
106765:     cat conftest.$ac_ext >&5
106766:   fi
106767:   rm -rf conftest* conftst*
106768: 
106769:   # Do not use the global_symbol_pipe unless it works.
106770:   if test "$pipe_works" = yes; then
106771:     break
106772:   else
106773:     lt_cv_sys_global_symbol_pipe=
106774:   fi
106775: done
106776: 
106777: fi
106778: 
106779: if test -z "$lt_cv_sys_global_symbol_pipe"; then
106780:   lt_cv_sys_global_symbol_to_cdecl=
106781: fi
106782: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
106783:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
106784: $as_echo "failed" >&6; }
106785: else
106786:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
106787: $as_echo "ok" >&6; }
106788: fi
106789: 
106790: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
106791: $as_echo_n "checking for objdir... " >&6; }
106792: if ${lt_cv_objdir+:} false; then :
106793:   $as_echo_n "(cached) " >&6
106794: else
106795:   rm -f .libs 2>/dev/null
106796: mkdir .libs 2>/dev/null
106797: if test -d .libs; then
106798:   lt_cv_objdir=.libs
106799: else
106800:   # MS-DOS does not allow filenames that begin with a dot.
106801:   lt_cv_objdir=_libs
106802: fi
106803: rmdir .libs 2>/dev/null
106804: fi
106805: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
106806: $as_echo "$lt_cv_objdir" >&6; }
106807: objdir=$lt_cv_objdir
106808: 
106809: 
106810: 
106811: 
106812: 
106813: case $host_os in
106814: aix3*)
106815:   # AIX sometimes has problems with the GCC collect2 program.  For some
106816:   # reason, if we set the COLLECT_NAMES environment variable, the problems
106817:   # vanish in a puff of smoke.
106818:   if test "X${COLLECT_NAMES+set}" != Xset; then
106819:     COLLECT_NAMES=
106820:     export COLLECT_NAMES
106821:   fi
106822:   ;;
106823: esac
106824: 
106825: # Sed substitution that helps us do robust quoting.  It backslashifies
106826: # metacharacters that are still active within double-quoted strings.
106827: Xsed='sed -e 1s/^X//'
106828: sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
106829: 
106830: # Same as above, but do not quote variable references.
106831: double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
106832: 
106833: # Sed substitution to delay expansion of an escaped shell variable in a
106834: # double_quote_subst'ed string.
106835: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
106836: 
106837: # Sed substitution to avoid accidental globbing in evaled expressions
106838: no_glob_subst='s/\*/\\\*/g'
106839: 
106840: # Constants:
106841: rm="rm -f"
106842: 
106843: # Global variables:
106844: default_ofile=libtool
106845: can_build_shared=yes
106846: 
106847: # All known linkers require a `.a' archive for static linking (except MSVC,
106848: # which needs '.lib').
106849: libext=a
106850: ltmain="$ac_aux_dir/ltmain.sh"
106851: ofile="$default_ofile"
106852: with_gnu_ld="$lt_cv_prog_gnu_ld"
106853: 
106854: if test -n "$ac_tool_prefix"; then
106855:   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
106856: set dummy ${ac_tool_prefix}ar; ac_word=$2
106857: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
106858: $as_echo_n "checking for $ac_word... " >&6; }
106859: if ${ac_cv_prog_AR+:} false; then :
106860:   $as_echo_n "(cached) " >&6
106861: else
106862:   if test -n "$AR"; then
106863:   ac_cv_prog_AR="$AR" # Let the user override the test.
106864: else
106865: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
106866: for as_dir in $PATH
106867: do
106868:   IFS=$as_save_IFS
106869:   test -z "$as_dir" && as_dir=.
106870:     for ac_exec_ext in '' $ac_executable_extensions; do
106871:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
106872:     ac_cv_prog_AR="${ac_tool_prefix}ar"
106873:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
106874:     break 2
106875:   fi
106876: done
106877:   done
106878: IFS=$as_save_IFS
106879: 
106880: fi
106881: fi
106882: AR=$ac_cv_prog_AR
106883: if test -n "$AR"; then
106884:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
106885: $as_echo "$AR" >&6; }
106886: else
106887:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
106888: $as_echo "no" >&6; }
106889: fi
106890: 
106891: 
106892: fi
106893: if test -z "$ac_cv_prog_AR"; then
106894:   ac_ct_AR=$AR
106895:   # Extract the first word of "ar", so it can be a program name with args.
106896: set dummy ar; ac_word=$2
106897: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
106898: $as_echo_n "checking for $ac_word... " >&6; }
106899: if ${ac_cv_prog_ac_ct_AR+:} false; then :
106900:   $as_echo_n "(cached) " >&6
106901: else
106902:   if test -n "$ac_ct_AR"; then
106903:   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
106904: else
106905: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
106906: for as_dir in $PATH
106907: do
106908:   IFS=$as_save_IFS
106909:   test -z "$as_dir" && as_dir=.
106910:     for ac_exec_ext in '' $ac_executable_extensions; do
106911:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
106912:     ac_cv_prog_ac_ct_AR="ar"
106913:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
106914:     break 2
106915:   fi
106916: done
106917:   done
106918: IFS=$as_save_IFS
106919: 
106920: fi
106921: fi
106922: ac_ct_AR=$ac_cv_prog_ac_ct_AR
106923: if test -n "$ac_ct_AR"; then
106924:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
106925: $as_echo "$ac_ct_AR" >&6; }
106926: else
106927:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
106928: $as_echo "no" >&6; }
106929: fi
106930: 
106931:   if test "x$ac_ct_AR" = x; then
106932:     AR="false"
106933:   else
106934:     case $cross_compiling:$ac_tool_warned in
106935: yes:)
106936: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
106937: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
106938: ac_tool_warned=yes ;;
106939: esac
106940:     AR=$ac_ct_AR
106941:   fi
106942: else
106943:   AR="$ac_cv_prog_AR"
106944: fi
106945: 
106946: if test -n "$ac_tool_prefix"; then
106947:   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
106948: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
106949: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
106950: $as_echo_n "checking for $ac_word... " >&6; }
106951: if ${ac_cv_prog_RANLIB+:} false; then :
106952:   $as_echo_n "(cached) " >&6
106953: else
106954:   if test -n "$RANLIB"; then
106955:   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
106956: else
106957: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
106958: for as_dir in $PATH
106959: do
106960:   IFS=$as_save_IFS
106961:   test -z "$as_dir" && as_dir=.
106962:     for ac_exec_ext in '' $ac_executable_extensions; do
106963:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
106964:     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
106965:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
106966:     break 2
106967:   fi
106968: done
106969:   done
106970: IFS=$as_save_IFS
106971: 
106972: fi
106973: fi
106974: RANLIB=$ac_cv_prog_RANLIB
106975: if test -n "$RANLIB"; then
106976:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
106977: $as_echo "$RANLIB" >&6; }
106978: else
106979:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
106980: $as_echo "no" >&6; }
106981: fi
106982: 
106983: 
106984: fi
106985: if test -z "$ac_cv_prog_RANLIB"; then
106986:   ac_ct_RANLIB=$RANLIB
106987:   # Extract the first word of "ranlib", so it can be a program name with args.
106988: set dummy ranlib; ac_word=$2
106989: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
106990: $as_echo_n "checking for $ac_word... " >&6; }
106991: if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
106992:   $as_echo_n "(cached) " >&6
106993: else
106994:   if test -n "$ac_ct_RANLIB"; then
106995:   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
106996: else
106997: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
106998: for as_dir in $PATH
106999: do
107000:   IFS=$as_save_IFS
107001:   test -z "$as_dir" && as_dir=.
107002:     for ac_exec_ext in '' $ac_executable_extensions; do
107003:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
107004:     ac_cv_prog_ac_ct_RANLIB="ranlib"
107005:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
107006:     break 2
107007:   fi
107008: done
107009:   done
107010: IFS=$as_save_IFS
107011: 
107012: fi
107013: fi
107014: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
107015: if test -n "$ac_ct_RANLIB"; then
107016:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
107017: $as_echo "$ac_ct_RANLIB" >&6; }
107018: else
107019:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
107020: $as_echo "no" >&6; }
107021: fi
107022: 
107023:   if test "x$ac_ct_RANLIB" = x; then
107024:     RANLIB=":"
107025:   else
107026:     case $cross_compiling:$ac_tool_warned in
107027: yes:)
107028: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
107029: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
107030: ac_tool_warned=yes ;;
107031: esac
107032:     RANLIB=$ac_ct_RANLIB
107033:   fi
107034: else
107035:   RANLIB="$ac_cv_prog_RANLIB"
107036: fi
107037: 
107038: if test -n "$ac_tool_prefix"; then
107039:   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
107040: set dummy ${ac_tool_prefix}strip; ac_word=$2
107041: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
107042: $as_echo_n "checking for $ac_word... " >&6; }
107043: if ${ac_cv_prog_STRIP+:} false; then :
107044:   $as_echo_n "(cached) " >&6
107045: else
107046:   if test -n "$STRIP"; then
107047:   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
107048: else
107049: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107050: for as_dir in $PATH
107051: do
107052:   IFS=$as_save_IFS
107053:   test -z "$as_dir" && as_dir=.
107054:     for ac_exec_ext in '' $ac_executable_extensions; do
107055:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
107056:     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
107057:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
107058:     break 2
107059:   fi
107060: done
107061:   done
107062: IFS=$as_save_IFS
107063: 
107064: fi
107065: fi
107066: STRIP=$ac_cv_prog_STRIP
107067: if test -n "$STRIP"; then
107068:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
107069: $as_echo "$STRIP" >&6; }
107070: else
107071:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
107072: $as_echo "no" >&6; }
107073: fi
107074: 
107075: 
107076: fi
107077: if test -z "$ac_cv_prog_STRIP"; then
107078:   ac_ct_STRIP=$STRIP
107079:   # Extract the first word of "strip", so it can be a program name with args.
107080: set dummy strip; ac_word=$2
107081: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
107082: $as_echo_n "checking for $ac_word... " >&6; }
107083: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
107084:   $as_echo_n "(cached) " >&6
107085: else
107086:   if test -n "$ac_ct_STRIP"; then
107087:   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
107088: else
107089: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107090: for as_dir in $PATH
107091: do
107092:   IFS=$as_save_IFS
107093:   test -z "$as_dir" && as_dir=.
107094:     for ac_exec_ext in '' $ac_executable_extensions; do
107095:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
107096:     ac_cv_prog_ac_ct_STRIP="strip"
107097:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
107098:     break 2
107099:   fi
107100: done
107101:   done
107102: IFS=$as_save_IFS
107103: 
107104: fi
107105: fi
107106: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
107107: if test -n "$ac_ct_STRIP"; then
107108:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
107109: $as_echo "$ac_ct_STRIP" >&6; }
107110: else
107111:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
107112: $as_echo "no" >&6; }
107113: fi
107114: 
107115:   if test "x$ac_ct_STRIP" = x; then
107116:     STRIP=":"
107117:   else
107118:     case $cross_compiling:$ac_tool_warned in
107119: yes:)
107120: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
107121: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
107122: ac_tool_warned=yes ;;
107123: esac
107124:     STRIP=$ac_ct_STRIP
107125:   fi
107126: else
107127:   STRIP="$ac_cv_prog_STRIP"
107128: fi
107129: 
107130: 
107131: old_CC="$CC"
107132: old_CFLAGS="$CFLAGS"
107133: 
107134: # Set sane defaults for various variables
107135: test -z "$AR" && AR=ar
107136: test -z "$AR_FLAGS" && AR_FLAGS=cru
107137: test -z "$AS" && AS=as
107138: test -z "$CC" && CC=cc
107139: test -z "$LTCC" && LTCC=$CC
107140: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
107141: test -z "$DLLTOOL" && DLLTOOL=dlltool
107142: test -z "$LD" && LD=ld
107143: test -z "$LN_S" && LN_S="ln -s"
107144: test -z "$MAGIC_CMD" && MAGIC_CMD=file
107145: test -z "$NM" && NM=nm
107146: test -z "$SED" && SED=sed
107147: test -z "$OBJDUMP" && OBJDUMP=objdump
107148: test -z "$RANLIB" && RANLIB=:
107149: test -z "$STRIP" && STRIP=:
107150: test -z "$ac_objext" && ac_objext=o
107151: 
107152: # Determine commands to create old-style static archives.
107153: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
107154: old_postinstall_cmds='chmod 644 $oldlib'
107155: old_postuninstall_cmds=
107156: 
107157: if test -n "$RANLIB"; then
107158:   case $host_os in
107159:   openbsd*)
107160:     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
107161:     ;;
107162:   *)
107163:     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
107164:     ;;
107165:   esac
107166:   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
107167: fi
107168: 
107169: for cc_temp in $compiler""; do
107170:   case $cc_temp in
107171:     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
107172:     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
107173:     \-*) ;;
107174:     *) break;;
107175:   esac
107176: done
107177: cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
107178: 
107179: 
107180: # Only perform the check for file, if the check method requires it
107181: case $deplibs_check_method in
107182: file_magic*)
107183:   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
107184:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
107185: $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
107186: if ${lt_cv_path_MAGIC_CMD+:} false; then :
107187:   $as_echo_n "(cached) " >&6
107188: else
107189:   case $MAGIC_CMD in
107190: [\\/*] |  ?:[\\/]*)
107191:   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
107192:   ;;
107193: *)
107194:   lt_save_MAGIC_CMD="$MAGIC_CMD"
107195:   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
107196:   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
107197:   for ac_dir in $ac_dummy; do
107198:     IFS="$lt_save_ifs"
107199:     test -z "$ac_dir" && ac_dir=.
107200:     if test -f $ac_dir/${ac_tool_prefix}file; then
107201:       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
107202:       if test -n "$file_magic_test_file"; then
107203: 	case $deplibs_check_method in
107204: 	"file_magic "*)
107205: 	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
107206: 	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
107207: 	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
107208: 	    $EGREP "$file_magic_regex" > /dev/null; then
107209: 	    :
107210: 	  else
107211: 	    cat <<EOF 1>&2
107212: 
107213: *** Warning: the command libtool uses to detect shared libraries,
107214: *** $file_magic_cmd, produces output that libtool cannot recognize.
107215: *** The result is that libtool may fail to recognize shared libraries
107216: *** as such.  This will affect the creation of libtool libraries that
107217: *** depend on shared libraries, but programs linked with such libtool
107218: *** libraries will work regardless of this problem.  Nevertheless, you
107219: *** may want to report the problem to your system manager and/or to
107220: *** bug-libtool@gnu.org
107221: 
107222: EOF
107223: 	  fi ;;
107224: 	esac
107225:       fi
107226:       break
107227:     fi
107228:   done
107229:   IFS="$lt_save_ifs"
107230:   MAGIC_CMD="$lt_save_MAGIC_CMD"
107231:   ;;
107232: esac
107233: fi
107234: 
107235: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
107236: if test -n "$MAGIC_CMD"; then
107237:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
107238: $as_echo "$MAGIC_CMD" >&6; }
107239: else
107240:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
107241: $as_echo "no" >&6; }
107242: fi
107243: 
107244: if test -z "$lt_cv_path_MAGIC_CMD"; then
107245:   if test -n "$ac_tool_prefix"; then
107246:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
107247: $as_echo_n "checking for file... " >&6; }
107248: if ${lt_cv_path_MAGIC_CMD+:} false; then :
107249:   $as_echo_n "(cached) " >&6
107250: else
107251:   case $MAGIC_CMD in
107252: [\\/*] |  ?:[\\/]*)
107253:   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
107254:   ;;
107255: *)
107256:   lt_save_MAGIC_CMD="$MAGIC_CMD"
107257:   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
107258:   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
107259:   for ac_dir in $ac_dummy; do
107260:     IFS="$lt_save_ifs"
107261:     test -z "$ac_dir" && ac_dir=.
107262:     if test -f $ac_dir/file; then
107263:       lt_cv_path_MAGIC_CMD="$ac_dir/file"
107264:       if test -n "$file_magic_test_file"; then
107265: 	case $deplibs_check_method in
107266: 	"file_magic "*)
107267: 	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
107268: 	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
107269: 	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
107270: 	    $EGREP "$file_magic_regex" > /dev/null; then
107271: 	    :
107272: 	  else
107273: 	    cat <<EOF 1>&2
107274: 
107275: *** Warning: the command libtool uses to detect shared libraries,
107276: *** $file_magic_cmd, produces output that libtool cannot recognize.
107277: *** The result is that libtool may fail to recognize shared libraries
107278: *** as such.  This will affect the creation of libtool libraries that
107279: *** depend on shared libraries, but programs linked with such libtool
107280: *** libraries will work regardless of this problem.  Nevertheless, you
107281: *** may want to report the problem to your system manager and/or to
107282: *** bug-libtool@gnu.org
107283: 
107284: EOF
107285: 	  fi ;;
107286: 	esac
107287:       fi
107288:       break
107289:     fi
107290:   done
107291:   IFS="$lt_save_ifs"
107292:   MAGIC_CMD="$lt_save_MAGIC_CMD"
107293:   ;;
107294: esac
107295: fi
107296: 
107297: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
107298: if test -n "$MAGIC_CMD"; then
107299:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
107300: $as_echo "$MAGIC_CMD" >&6; }
107301: else
107302:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
107303: $as_echo "no" >&6; }
107304: fi
107305: 
107306:   else
107307:     MAGIC_CMD=:
107308:   fi
107309: fi
107310: 
107311:   fi
107312:   ;;
107313: esac
107314: 
107315: 
107316:   case $host_os in
107317:     rhapsody* | darwin*)
107318:     if test -n "$ac_tool_prefix"; then
107319:   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
107320: set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
107321: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
107322: $as_echo_n "checking for $ac_word... " >&6; }
107323: if ${ac_cv_prog_DSYMUTIL+:} false; then :
107324:   $as_echo_n "(cached) " >&6
107325: else
107326:   if test -n "$DSYMUTIL"; then
107327:   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
107328: else
107329: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107330: for as_dir in $PATH
107331: do
107332:   IFS=$as_save_IFS
107333:   test -z "$as_dir" && as_dir=.
107334:     for ac_exec_ext in '' $ac_executable_extensions; do
107335:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
107336:     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
107337:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
107338:     break 2
107339:   fi
107340: done
107341:   done
107342: IFS=$as_save_IFS
107343: 
107344: fi
107345: fi
107346: DSYMUTIL=$ac_cv_prog_DSYMUTIL
107347: if test -n "$DSYMUTIL"; then
107348:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
107349: $as_echo "$DSYMUTIL" >&6; }
107350: else
107351:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
107352: $as_echo "no" >&6; }
107353: fi
107354: 
107355: 
107356: fi
107357: if test -z "$ac_cv_prog_DSYMUTIL"; then
107358:   ac_ct_DSYMUTIL=$DSYMUTIL
107359:   # Extract the first word of "dsymutil", so it can be a program name with args.
107360: set dummy dsymutil; ac_word=$2
107361: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
107362: $as_echo_n "checking for $ac_word... " >&6; }
107363: if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
107364:   $as_echo_n "(cached) " >&6
107365: else
107366:   if test -n "$ac_ct_DSYMUTIL"; then
107367:   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
107368: else
107369: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107370: for as_dir in $PATH
107371: do
107372:   IFS=$as_save_IFS
107373:   test -z "$as_dir" && as_dir=.
107374:     for ac_exec_ext in '' $ac_executable_extensions; do
107375:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
107376:     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
107377:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
107378:     break 2
107379:   fi
107380: done
107381:   done
107382: IFS=$as_save_IFS
107383: 
107384: fi
107385: fi
107386: ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
107387: if test -n "$ac_ct_DSYMUTIL"; then
107388:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
107389: $as_echo "$ac_ct_DSYMUTIL" >&6; }
107390: else
107391:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
107392: $as_echo "no" >&6; }
107393: fi
107394: 
107395:   if test "x$ac_ct_DSYMUTIL" = x; then
107396:     DSYMUTIL=":"
107397:   else
107398:     case $cross_compiling:$ac_tool_warned in
107399: yes:)
107400: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
107401: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
107402: ac_tool_warned=yes ;;
107403: esac
107404:     DSYMUTIL=$ac_ct_DSYMUTIL
107405:   fi
107406: else
107407:   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
107408: fi
107409: 
107410:     if test -n "$ac_tool_prefix"; then
107411:   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
107412: set dummy ${ac_tool_prefix}nmedit; ac_word=$2
107413: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
107414: $as_echo_n "checking for $ac_word... " >&6; }
107415: if ${ac_cv_prog_NMEDIT+:} false; then :
107416:   $as_echo_n "(cached) " >&6
107417: else
107418:   if test -n "$NMEDIT"; then
107419:   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
107420: else
107421: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107422: for as_dir in $PATH
107423: do
107424:   IFS=$as_save_IFS
107425:   test -z "$as_dir" && as_dir=.
107426:     for ac_exec_ext in '' $ac_executable_extensions; do
107427:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
107428:     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
107429:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
107430:     break 2
107431:   fi
107432: done
107433:   done
107434: IFS=$as_save_IFS
107435: 
107436: fi
107437: fi
107438: NMEDIT=$ac_cv_prog_NMEDIT
107439: if test -n "$NMEDIT"; then
107440:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
107441: $as_echo "$NMEDIT" >&6; }
107442: else
107443:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
107444: $as_echo "no" >&6; }
107445: fi
107446: 
107447: 
107448: fi
107449: if test -z "$ac_cv_prog_NMEDIT"; then
107450:   ac_ct_NMEDIT=$NMEDIT
107451:   # Extract the first word of "nmedit", so it can be a program name with args.
107452: set dummy nmedit; ac_word=$2
107453: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
107454: $as_echo_n "checking for $ac_word... " >&6; }
107455: if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
107456:   $as_echo_n "(cached) " >&6
107457: else
107458:   if test -n "$ac_ct_NMEDIT"; then
107459:   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
107460: else
107461: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107462: for as_dir in $PATH
107463: do
107464:   IFS=$as_save_IFS
107465:   test -z "$as_dir" && as_dir=.
107466:     for ac_exec_ext in '' $ac_executable_extensions; do
107467:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
107468:     ac_cv_prog_ac_ct_NMEDIT="nmedit"
107469:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
107470:     break 2
107471:   fi
107472: done
107473:   done
107474: IFS=$as_save_IFS
107475: 
107476: fi
107477: fi
107478: ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
107479: if test -n "$ac_ct_NMEDIT"; then
107480:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
107481: $as_echo "$ac_ct_NMEDIT" >&6; }
107482: else
107483:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
107484: $as_echo "no" >&6; }
107485: fi
107486: 
107487:   if test "x$ac_ct_NMEDIT" = x; then
107488:     NMEDIT=":"
107489:   else
107490:     case $cross_compiling:$ac_tool_warned in
107491: yes:)
107492: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
107493: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
107494: ac_tool_warned=yes ;;
107495: esac
107496:     NMEDIT=$ac_ct_NMEDIT
107497:   fi
107498: else
107499:   NMEDIT="$ac_cv_prog_NMEDIT"
107500: fi
107501: 
107502: 
107503:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
107504: $as_echo_n "checking for -single_module linker flag... " >&6; }
107505: if ${lt_cv_apple_cc_single_mod+:} false; then :
107506:   $as_echo_n "(cached) " >&6
107507: else
107508:   lt_cv_apple_cc_single_mod=no
107509:       if test -z "${LT_MULTI_MODULE}"; then
107510:    # By default we will add the -single_module flag. You can override
107511:    # by either setting the environment variable LT_MULTI_MODULE
107512:    # non-empty at configure time, or by adding -multi_module to the
107513:    # link flags.
107514:    echo "int foo(void){return 1;}" > conftest.c
107515:    $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
107516:      -dynamiclib ${wl}-single_module conftest.c
107517:    if test -f libconftest.dylib; then
107518:      lt_cv_apple_cc_single_mod=yes
107519:      rm -rf libconftest.dylib*
107520:    fi
107521:    rm conftest.c
107522:       fi
107523: fi
107524: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
107525: $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
107526:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
107527: $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
107528: if ${lt_cv_ld_exported_symbols_list+:} false; then :
107529:   $as_echo_n "(cached) " >&6
107530: else
107531:   lt_cv_ld_exported_symbols_list=no
107532:       save_LDFLAGS=$LDFLAGS
107533:       echo "_main" > conftest.sym
107534:       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
107535: 
107536: cat > conftest.$ac_ext <<EOF
107537: #line 107537 "configure"
107538: #include "confdefs.h"
107539: int main() {
107540: ; return 0; }
107541: EOF
107542: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
107543:   (eval $ac_link) 2>&5
107544:   ac_status=$?
107545:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
107546:   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
107547:  lt_cv_ld_exported_symbols_list=yes
107548:   rm -rf conftest*
107549: else
107550:   echo "configure: failed program was:" >&5
107551:   cat conftest.$ac_ext >&6
107552: lt_cv_ld_exported_symbols_list=no
107553:   rm -rf conftest*
107554: fi
107555: rm -f conftest*
107556:    LDFLAGS="$save_LDFLAGS"
107557: 
107558: fi
107559: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
107560: $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
107561:     case $host_os in
107562:     rhapsody* | darwin1.[0123])
107563:       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
107564:     darwin1.*)
107565:      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
107566:     darwin*)
107567:       # if running on 10.5 or later, the deployment target defaults
107568:       # to the OS version, if on x86, and 10.4, the deployment
107569:       # target defaults to 10.4. Don't you love it?
107570:       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
107571:    10.0,*86*-darwin8*|10.0,*-darwin[91]*)
107572:      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
107573:    10.[012]*)
107574:      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
107575:    10.*)
107576:      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
107577:       esac
107578:     ;;
107579:   esac
107580:     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
107581:       _lt_dar_single_mod='$single_module'
107582:     fi
107583:     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
107584:       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
107585:     else
107586:       _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
107587:     fi
107588:     if test "$DSYMUTIL" != ":"; then
107589:       _lt_dsymutil="~$DSYMUTIL \$lib || :"
107590:     else
107591:       _lt_dsymutil=
107592:     fi
107593:     ;;
107594:   esac
107595: 
107596: 
107597: enable_dlopen=no
107598: enable_win32_dll=no
107599: 
107600: # Check whether --enable-libtool-lock was given.
107601: if test "${enable_libtool_lock+set}" = set; then :
107602:   enableval=$enable_libtool_lock;
107603: fi
107604: 
107605: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
107606: 
107607: 
107608: # Check whether --with-pic was given.
107609: if test "${with_pic+set}" = set; then :
107610:   withval=$with_pic; pic_mode="$withval"
107611: else
107612:   pic_mode=default
107613: fi
107614: 
107615: test -z "$pic_mode" && pic_mode=default
107616: 
107617: # Use C for the default configuration in the libtool script
107618: tagname=
107619: lt_save_CC="$CC"
107620: 
107621: ac_ext=c
107622: ac_cpp='$CPP $CPPFLAGS'
107623: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
107624: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
107625: ac_compiler_gnu=$ac_cv_c_compiler_gnu
107626: 
107627: 
107628: # Source file extension for C test sources.
107629: ac_ext=c
107630: 
107631: # Object file extension for compiled C test sources.
107632: objext=o
107633: objext=$objext
107634: 
107635: # Code to be used in simple compile tests
107636: lt_simple_compile_test_code="int some_variable = 0;"
107637: 
107638: # Code to be used in simple link tests
107639: lt_simple_link_test_code='int main(){return(0);}'
107640: 
107641: 
107642: # If no C compiler was specified, use CC.
107643: LTCC=${LTCC-"$CC"}
107644: 
107645: # If no C compiler flags were specified, use CFLAGS.
107646: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
107647: 
107648: # Allow CC to be a program name with arguments.
107649: compiler=$CC
107650: 
107651: 
107652: # save warnings/boilerplate of simple test code
107653: ac_outfile=conftest.$ac_objext
107654: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
107655: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
107656: _lt_compiler_boilerplate=`cat conftest.err`
107657: $rm conftest*
107658: 
107659: ac_outfile=conftest.$ac_objext
107660: echo "$lt_simple_link_test_code" >conftest.$ac_ext
107661: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
107662: _lt_linker_boilerplate=`cat conftest.err`
107663: $rm -r conftest*
107664: 
107665: 
107666: ## CAVEAT EMPTOR:
107667: ## There is no encapsulation within the following macros, do not change
107668: ## the running order or otherwise move them around unless you know exactly
107669: ## what you are doing...
107670: 
107671: lt_prog_compiler_no_builtin_flag=
107672: 
107673: if test "$GCC" = yes; then
107674:   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
107675: 
107676: 
107677: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
107678: $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
107679: if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
107680:   $as_echo_n "(cached) " >&6
107681: else
107682:   lt_cv_prog_compiler_rtti_exceptions=no
107683:   ac_outfile=conftest.$ac_objext
107684:    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
107685:    lt_compiler_flag="-fno-rtti -fno-exceptions"
107686:    # Insert the option either (1) after the last *FLAGS variable, or
107687:    # (2) before a word containing "conftest.", or (3) at the end.
107688:    # Note that $ac_compile itself does not contain backslashes and begins
107689:    # with a dollar sign (not a hyphen), so the echo should work correctly.
107690:    # The option is referenced via a variable to avoid confusing sed.
107691:    lt_compile=`echo "$ac_compile" | $SED \
107692:    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
107693:    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
107694:    -e 's:$: $lt_compiler_flag:'`
107695:    (eval echo "\"configure:107695: $lt_compile\"" >&5)
107696:    (eval "$lt_compile" 2>conftest.err)
107697:    ac_status=$?
107698:    cat conftest.err >&5
107699:    echo "configure:107699: \$? = $ac_status" >&5
107700:    if (exit $ac_status) && test -s "$ac_outfile"; then
107701:      # The compiler can only warn and ignore the option if not recognized
107702:      # So say no if there are warnings other than the usual output.
107703:      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
107704:      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
107705:      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
107706:        lt_cv_prog_compiler_rtti_exceptions=yes
107707:      fi
107708:    fi
107709:    $rm conftest*
107710: 
107711: fi
107712: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
107713: $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
107714: 
107715: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
107716:     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
107717: else
107718:     :
107719: fi
107720: 
107721: fi
107722: 
107723: lt_prog_compiler_wl=
107724: lt_prog_compiler_pic=
107725: lt_prog_compiler_static=
107726: 
107727: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
107728: $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
107729: 
107730:   if test "$GCC" = yes; then
107731:     lt_prog_compiler_wl='-Wl,'
107732:     lt_prog_compiler_static='-static'
107733: 
107734:     case $host_os in
107735:       aix*)
107736:       # All AIX code is PIC.
107737:       if test "$host_cpu" = ia64; then
107738: 	# AIX 5 now supports IA64 processor
107739: 	lt_prog_compiler_static='-Bstatic'
107740:       fi
107741:       ;;
107742: 
107743:     amigaos*)
107744:       # FIXME: we need at least 68020 code to build shared libraries, but
107745:       # adding the `-m68020' flag to GCC prevents building anything better,
107746:       # like `-m68040'.
107747:       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
107748:       ;;
107749: 
107750:     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
107751:       # PIC is the default for these OSes.
107752:       ;;
107753: 
107754:     mingw* | cygwin* | pw32* | os2*)
107755:       # This hack is so that the source file can tell whether it is being
107756:       # built for inclusion in a dll (and should export symbols for example).
107757:       # Although the cygwin gcc ignores -fPIC, still need this for old-style
107758:       # (--disable-auto-import) libraries
107759: 	  lt_prog_compiler_pic='-DDLL_EXPORT'
107760:       ;;
107761: 
107762:     darwin* | rhapsody*)
107763:       # PIC is the default on this platform
107764:       # Common symbols not allowed in MH_DYLIB files
107765:       lt_prog_compiler_pic='-fno-common'
107766:       ;;
107767: 
107768:     interix[3-9]*)
107769:       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
107770:       # Instead, we relocate shared libraries at runtime.
107771:       ;;
107772: 
107773:     msdosdjgpp*)
107774:       # Just because we use GCC doesn't mean we suddenly get shared libraries
107775:       # on systems that don't support them.
107776:       lt_prog_compiler_can_build_shared=no
107777:       enable_shared=no
107778:       ;;
107779: 
107780:     sysv4*MP*)
107781:       if test -d /usr/nec; then
107782: 	lt_prog_compiler_pic=-Kconform_pic
107783:       fi
107784:       ;;
107785: 
107786:     hpux*)
107787:       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
107788:       # not for PA HP-UX.
107789:       case $host_cpu in
107790:       hppa*64*|ia64*)
107791: 	# +Z the default
107792: 	;;
107793:       *)
107794: 	lt_prog_compiler_pic='-fPIC'
107795: 	;;
107796:       esac
107797:       ;;
107798: 
107799:     *)
107800:       lt_prog_compiler_pic='-fPIC'
107801:       ;;
107802:     esac
107803:   else
107804:     # PORTME Check for flag to pass linker flags through the system compiler.
107805:     case $host_os in
107806:     aix*)
107807:       lt_prog_compiler_wl='-Wl,'
107808:       if test "$host_cpu" = ia64; then
107809: 	# AIX 5 now supports IA64 processor
107810: 	lt_prog_compiler_static='-Bstatic'
107811:       else
107812: 	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
107813:       fi
107814:       ;;
107815:       darwin*)
107816:         # PIC is the default on this platform
107817:         # Common symbols not allowed in MH_DYLIB files
107818:        case $cc_basename in
107819:          xlc*)
107820:          lt_prog_compiler_pic='-qnocommon'
107821:          lt_prog_compiler_wl='-Wl,'
107822:          ;;
107823:        esac
107824:        ;;
107825: 
107826:     mingw* | cygwin* | pw32* | os2*)
107827:       # This hack is so that the source file can tell whether it is being
107828:       # built for inclusion in a dll (and should export symbols for example).
107829: 	  lt_prog_compiler_pic='-DDLL_EXPORT'
107830:       ;;
107831: 
107832:     hpux9* | hpux10* | hpux11*)
107833:       lt_prog_compiler_wl='-Wl,'
107834:       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
107835:       # not for PA HP-UX.
107836:       case $host_cpu in
107837:       hppa*64*|ia64*)
107838: 	# +Z the default
107839: 	;;
107840:       *)
107841: 	lt_prog_compiler_pic='+Z'
107842: 	;;
107843:       esac
107844:       # Is there a better lt_prog_compiler_static that works with the bundled CC?
107845:       lt_prog_compiler_static='${wl}-a ${wl}archive'
107846:       ;;
107847: 
107848:     irix5* | irix6* | nonstopux*)
107849:       lt_prog_compiler_wl='-Wl,'
107850:       # PIC (with -KPIC) is the default.
107851:       lt_prog_compiler_static='-non_shared'
107852:       ;;
107853: 
107854:     newsos6)
107855:       lt_prog_compiler_pic='-KPIC'
107856:       lt_prog_compiler_static='-Bstatic'
107857:       ;;
107858: 
107859:     linux* | k*bsd*-gnu)
107860:       case $cc_basename in
107861:       # old Intel for x86_64 which still supported -KPIC.
107862:       ecc*)
107863:         lt_prog_compiler_wl='-Wl,'
107864:         lt_prog_compiler_pic='-KPIC'
107865:         lt_prog_compiler_static='-static'
107866:         ;;
107867:       # icc used to be incompatible with GCC.
107868:       # ICC 10 doesn't accept -KPIC any more.
107869:       icc*)
107870:         lt_prog_compiler_wl='-Wl,'
107871:         lt_prog_compiler_pic='-fPIC'
107872:         lt_prog_compiler_static='-static'
107873:         ;;
107874:       pgcc* | pgf77* | pgf90* | pgf95*)
107875:         # Portland Group compilers (*not* the Pentium gcc compiler,
107876: 	# which looks to be a dead project)
107877: 	lt_prog_compiler_wl='-Wl,'
107878: 	lt_prog_compiler_pic='-fpic'
107879: 	lt_prog_compiler_static='-Bstatic'
107880:         ;;
107881:       ccc*)
107882:         lt_prog_compiler_wl='-Wl,'
107883:         # All Alpha code is PIC.
107884:         lt_prog_compiler_static='-non_shared'
107885:         ;;
107886:       *)
107887:         case `$CC -V 2>&1 | sed 5q` in
107888: 	*Sun\ C*)
107889: 	  # Sun C 5.9
107890: 	  lt_prog_compiler_pic='-KPIC'
107891: 	  lt_prog_compiler_static='-Bstatic'
107892: 	  lt_prog_compiler_wl='-Wl,'
107893: 	  ;;
107894: 	*Sun\ F*)
107895: 	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
107896: 	  lt_prog_compiler_pic='-KPIC'
107897: 	  lt_prog_compiler_static='-Bstatic'
107898: 	  lt_prog_compiler_wl=''
107899: 	  ;;
107900: 	esac
107901: 	;;
107902:       esac
107903:       ;;
107904: 
107905:     osf3* | osf4* | osf5*)
107906:       lt_prog_compiler_wl='-Wl,'
107907:       # All OSF/1 code is PIC.
107908:       lt_prog_compiler_static='-non_shared'
107909:       ;;
107910: 
107911:     rdos*)
107912:       lt_prog_compiler_static='-non_shared'
107913:       ;;
107914: 
107915:     solaris*)
107916:       lt_prog_compiler_pic='-KPIC'
107917:       lt_prog_compiler_static='-Bstatic'
107918:       case $cc_basename in
107919:       f77* | f90* | f95*)
107920: 	lt_prog_compiler_wl='-Qoption ld ';;
107921:       *)
107922: 	lt_prog_compiler_wl='-Wl,';;
107923:       esac
107924:       ;;
107925: 
107926:     sunos4*)
107927:       lt_prog_compiler_wl='-Qoption ld '
107928:       lt_prog_compiler_pic='-PIC'
107929:       lt_prog_compiler_static='-Bstatic'
107930:       ;;
107931: 
107932:     sysv4 | sysv4.2uw2* | sysv4.3*)
107933:       lt_prog_compiler_wl='-Wl,'
107934:       lt_prog_compiler_pic='-KPIC'
107935:       lt_prog_compiler_static='-Bstatic'
107936:       ;;
107937: 
107938:     sysv4*MP*)
107939:       if test -d /usr/nec ;then
107940: 	lt_prog_compiler_pic='-Kconform_pic'
107941: 	lt_prog_compiler_static='-Bstatic'
107942:       fi
107943:       ;;
107944: 
107945:     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
107946:       lt_prog_compiler_wl='-Wl,'
107947:       lt_prog_compiler_pic='-KPIC'
107948:       lt_prog_compiler_static='-Bstatic'
107949:       ;;
107950: 
107951:     unicos*)
107952:       lt_prog_compiler_wl='-Wl,'
107953:       lt_prog_compiler_can_build_shared=no
107954:       ;;
107955: 
107956:     uts4*)
107957:       lt_prog_compiler_pic='-pic'
107958:       lt_prog_compiler_static='-Bstatic'
107959:       ;;
107960: 
107961:     *)
107962:       lt_prog_compiler_can_build_shared=no
107963:       ;;
107964:     esac
107965:   fi
107966: 
107967: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
107968: $as_echo "$lt_prog_compiler_pic" >&6; }
107969: 
107970: #
107971: # Check to make sure the PIC flag actually works.
107972: #
107973: if test -n "$lt_prog_compiler_pic"; then
107974: 
107975: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
107976: $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
107977: if ${lt_cv_prog_compiler_pic_works+:} false; then :
107978:   $as_echo_n "(cached) " >&6
107979: else
107980:   lt_cv_prog_compiler_pic_works=no
107981:   ac_outfile=conftest.$ac_objext
107982:    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
107983:    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
107984:    # Insert the option either (1) after the last *FLAGS variable, or
107985:    # (2) before a word containing "conftest.", or (3) at the end.
107986:    # Note that $ac_compile itself does not contain backslashes and begins
107987:    # with a dollar sign (not a hyphen), so the echo should work correctly.
107988:    # The option is referenced via a variable to avoid confusing sed.
107989:    lt_compile=`echo "$ac_compile" | $SED \
107990:    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
107991:    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
107992:    -e 's:$: $lt_compiler_flag:'`
107993:    (eval echo "\"configure:107993: $lt_compile\"" >&5)
107994:    (eval "$lt_compile" 2>conftest.err)
107995:    ac_status=$?
107996:    cat conftest.err >&5
107997:    echo "configure:107997: \$? = $ac_status" >&5
107998:    if (exit $ac_status) && test -s "$ac_outfile"; then
107999:      # The compiler can only warn and ignore the option if not recognized
108000:      # So say no if there are warnings other than the usual output.
108001:      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
108002:      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
108003:      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
108004:        lt_cv_prog_compiler_pic_works=yes
108005:      fi
108006:    fi
108007:    $rm conftest*
108008: 
108009: fi
108010: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
108011: $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
108012: 
108013: if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
108014:     case $lt_prog_compiler_pic in
108015:      "" | " "*) ;;
108016:      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
108017:      esac
108018: else
108019:     lt_prog_compiler_pic=
108020:      lt_prog_compiler_can_build_shared=no
108021: fi
108022: 
108023: fi
108024: case $host_os in
108025:   # For platforms which do not support PIC, -DPIC is meaningless:
108026:   *djgpp*)
108027:     lt_prog_compiler_pic=
108028:     ;;
108029:   *)
108030:     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
108031:     ;;
108032: esac
108033: 
108034: #
108035: # Check to make sure the static flag actually works.
108036: #
108037: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
108038: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
108039: $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
108040: if ${lt_cv_prog_compiler_static_works+:} false; then :
108041:   $as_echo_n "(cached) " >&6
108042: else
108043:   lt_cv_prog_compiler_static_works=no
108044:    save_LDFLAGS="$LDFLAGS"
108045:    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
108046:    echo "$lt_simple_link_test_code" > conftest.$ac_ext
108047:    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
108048:      # The linker can only warn and ignore the option if not recognized
108049:      # So say no if there are warnings
108050:      if test -s conftest.err; then
108051:        # Append any errors to the config.log.
108052:        cat conftest.err 1>&5
108053:        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
108054:        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
108055:        if diff conftest.exp conftest.er2 >/dev/null; then
108056:          lt_cv_prog_compiler_static_works=yes
108057:        fi
108058:      else
108059:        lt_cv_prog_compiler_static_works=yes
108060:      fi
108061:    fi
108062:    $rm -r conftest*
108063:    LDFLAGS="$save_LDFLAGS"
108064: 
108065: fi
108066: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
108067: $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
108068: 
108069: if test x"$lt_cv_prog_compiler_static_works" = xyes; then
108070:     :
108071: else
108072:     lt_prog_compiler_static=
108073: fi
108074: 
108075: 
108076: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
108077: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
108078: if ${lt_cv_prog_compiler_c_o+:} false; then :
108079:   $as_echo_n "(cached) " >&6
108080: else
108081:   lt_cv_prog_compiler_c_o=no
108082:    $rm -r conftest 2>/dev/null
108083:    mkdir conftest
108084:    cd conftest
108085:    mkdir out
108086:    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
108087: 
108088:    lt_compiler_flag="-o out/conftest2.$ac_objext"
108089:    # Insert the option either (1) after the last *FLAGS variable, or
108090:    # (2) before a word containing "conftest.", or (3) at the end.
108091:    # Note that $ac_compile itself does not contain backslashes and begins
108092:    # with a dollar sign (not a hyphen), so the echo should work correctly.
108093:    lt_compile=`echo "$ac_compile" | $SED \
108094:    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
108095:    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
108096:    -e 's:$: $lt_compiler_flag:'`
108097:    (eval echo "\"configure:108097: $lt_compile\"" >&5)
108098:    (eval "$lt_compile" 2>out/conftest.err)
108099:    ac_status=$?
108100:    cat out/conftest.err >&5
108101:    echo "configure:108101: \$? = $ac_status" >&5
108102:    if (exit $ac_status) && test -s out/conftest2.$ac_objext
108103:    then
108104:      # The compiler can only warn and ignore the option if not recognized
108105:      # So say no if there are warnings
108106:      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
108107:      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
108108:      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
108109:        lt_cv_prog_compiler_c_o=yes
108110:      fi
108111:    fi
108112:    chmod u+w . 2>&5
108113:    $rm conftest*
108114:    # SGI C++ compiler will create directory out/ii_files/ for
108115:    # template instantiation
108116:    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
108117:    $rm out/* && rmdir out
108118:    cd ..
108119:    rmdir conftest
108120:    $rm conftest*
108121: 
108122: fi
108123: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
108124: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
108125: 
108126: 
108127: hard_links="nottested"
108128: if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
108129:   # do not overwrite the value of need_locks provided by the user
108130:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
108131: $as_echo_n "checking if we can lock with hard links... " >&6; }
108132:   hard_links=yes
108133:   $rm conftest*
108134:   ln conftest.a conftest.b 2>/dev/null && hard_links=no
108135:   touch conftest.a
108136:   ln conftest.a conftest.b 2>&5 || hard_links=no
108137:   ln conftest.a conftest.b 2>/dev/null && hard_links=no
108138:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
108139: $as_echo "$hard_links" >&6; }
108140:   if test "$hard_links" = no; then
108141:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
108142: $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
108143:     need_locks=warn
108144:   fi
108145: else
108146:   need_locks=no
108147: fi
108148: 
108149: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
108150: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
108151: 
108152:   runpath_var=
108153:   allow_undefined_flag=
108154:   enable_shared_with_static_runtimes=no
108155:   archive_cmds=
108156:   archive_expsym_cmds=
108157:   old_archive_From_new_cmds=
108158:   old_archive_from_expsyms_cmds=
108159:   export_dynamic_flag_spec=
108160:   whole_archive_flag_spec=
108161:   thread_safe_flag_spec=
108162:   hardcode_libdir_flag_spec=
108163:   hardcode_libdir_flag_spec_ld=
108164:   hardcode_libdir_separator=
108165:   hardcode_direct=no
108166:   hardcode_minus_L=no
108167:   hardcode_shlibpath_var=unsupported
108168:   link_all_deplibs=unknown
108169:   hardcode_automatic=no
108170:   module_cmds=
108171:   module_expsym_cmds=
108172:   always_export_symbols=no
108173:   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
108174:   # include_expsyms should be a list of space-separated symbols to be *always*
108175:   # included in the symbol list
108176:   include_expsyms=
108177:   # exclude_expsyms can be an extended regexp of symbols to exclude
108178:   # it will be wrapped by ` (' and `)$', so one must not match beginning or
108179:   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
108180:   # as well as any symbol that contains `d'.
108181:   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
108182:   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
108183:   # platforms (ab)use it in PIC code, but their linkers get confused if
108184:   # the symbol is explicitly referenced.  Since portable code cannot
108185:   # rely on this symbol name, it's probably fine to never include it in
108186:   # preloaded symbol tables.
108187:   # Exclude shared library initialization/finalization symbols.
108188:   extract_expsyms_cmds=
108189:   # Just being paranoid about ensuring that cc_basename is set.
108190:   for cc_temp in $compiler""; do
108191:   case $cc_temp in
108192:     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
108193:     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
108194:     \-*) ;;
108195:     *) break;;
108196:   esac
108197: done
108198: cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
108199: 
108200:   case $host_os in
108201:   cygwin* | mingw* | pw32*)
108202:     # FIXME: the MSVC++ port hasn't been tested in a loooong time
108203:     # When not using gcc, we currently assume that we are using
108204:     # Microsoft Visual C++.
108205:     if test "$GCC" != yes; then
108206:       with_gnu_ld=no
108207:     fi
108208:     ;;
108209:   interix*)
108210:     # we just hope/assume this is gcc and not c89 (= MSVC++)
108211:     with_gnu_ld=yes
108212:     ;;
108213:   openbsd*)
108214:     with_gnu_ld=no
108215:     ;;
108216:   esac
108217: 
108218:   ld_shlibs=yes
108219:   if test "$with_gnu_ld" = yes; then
108220:     # If archive_cmds runs LD, not CC, wlarc should be empty
108221:     wlarc='${wl}'
108222: 
108223:     # Set some defaults for GNU ld with shared library support. These
108224:     # are reset later if shared libraries are not supported. Putting them
108225:     # here allows them to be overridden if necessary.
108226:     runpath_var=LD_RUN_PATH
108227:     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
108228:     export_dynamic_flag_spec='${wl}--export-dynamic'
108229:     # ancient GNU ld didn't support --whole-archive et. al.
108230:     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
108231: 	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
108232:       else
108233:   	whole_archive_flag_spec=
108234:     fi
108235:     supports_anon_versioning=no
108236:     case `$LD -v 2>/dev/null` in
108237:       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
108238:       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
108239:       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
108240:       *\ 2.11.*) ;; # other 2.11 versions
108241:       *) supports_anon_versioning=yes ;;
108242:     esac
108243: 
108244:     # See if GNU ld supports shared libraries.
108245:     case $host_os in
108246:     aix[3-9]*)
108247:       # On AIX/PPC, the GNU linker is very broken
108248:       if test "$host_cpu" != ia64; then
108249: 	ld_shlibs=no
108250: 	cat <<EOF 1>&2
108251: 
108252: *** Warning: the GNU linker, at least up to release 2.9.1, is reported
108253: *** to be unable to reliably create shared libraries on AIX.
108254: *** Therefore, libtool is disabling shared libraries support.  If you
108255: *** really care for shared libraries, you may want to modify your PATH
108256: *** so that a non-GNU linker is found, and then restart.
108257: 
108258: EOF
108259:       fi
108260:       ;;
108261: 
108262:     amigaos*)
108263:       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)'
108264:       hardcode_libdir_flag_spec='-L$libdir'
108265:       hardcode_minus_L=yes
108266: 
108267:       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
108268:       # that the semantics of dynamic libraries on AmigaOS, at least up
108269:       # to version 4, is to share data among multiple programs linked
108270:       # with the same dynamic library.  Since this doesn't match the
108271:       # behavior of shared libraries on other platforms, we can't use
108272:       # them.
108273:       ld_shlibs=no
108274:       ;;
108275: 
108276:     beos*)
108277:       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
108278: 	allow_undefined_flag=unsupported
108279: 	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
108280: 	# support --undefined.  This deserves some investigation.  FIXME
108281: 	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
108282:       else
108283: 	ld_shlibs=no
108284:       fi
108285:       ;;
108286: 
108287:     cygwin* | mingw* | pw32*)
108288:       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
108289:       # as there is no search path for DLLs.
108290:       hardcode_libdir_flag_spec='-L$libdir'
108291:       allow_undefined_flag=unsupported
108292:       always_export_symbols=no
108293:       enable_shared_with_static_runtimes=yes
108294:       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
108295: 
108296:       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
108297:         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
108298: 	# If the export-symbols file already is a .def file (1st line
108299: 	# is EXPORTS), use it as is; otherwise, prepend...
108300: 	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
108301: 	  cp $export_symbols $output_objdir/$soname.def;
108302: 	else
108303: 	  echo EXPORTS > $output_objdir/$soname.def;
108304: 	  cat $export_symbols >> $output_objdir/$soname.def;
108305: 	fi~
108306: 	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
108307:       else
108308: 	ld_shlibs=no
108309:       fi
108310:       ;;
108311: 
108312:     interix[3-9]*)
108313:       hardcode_direct=no
108314:       hardcode_shlibpath_var=no
108315:       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
108316:       export_dynamic_flag_spec='${wl}-E'
108317:       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
108318:       # Instead, shared libraries are loaded at an image base (0x10000000 by
108319:       # default) and relocated if they conflict, which is a slow very memory
108320:       # consuming and fragmenting process.  To avoid this, we pick a random,
108321:       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
108322:       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
108323:       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
108324:       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'
108325:       ;;
108326: 
108327:     gnu* | linux* | k*bsd*-gnu)
108328:       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
108329: 	tmp_addflag=
108330: 	case $cc_basename,$host_cpu in
108331: 	pgcc*)				# Portland Group C compiler
108332: 	  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'
108333: 	  tmp_addflag=' $pic_flag'
108334: 	  ;;
108335: 	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
108336: 	  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'
108337: 	  tmp_addflag=' $pic_flag -Mnomain' ;;
108338: 	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
108339: 	  tmp_addflag=' -i_dynamic' ;;
108340: 	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
108341: 	  tmp_addflag=' -i_dynamic -nofor_main' ;;
108342: 	ifc* | ifort*)			# Intel Fortran compiler
108343: 	  tmp_addflag=' -nofor_main' ;;
108344: 	esac
108345: 	case `$CC -V 2>&1 | sed 5q` in
108346: 	*Sun\ C*)			# Sun C 5.9
108347: 	  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'
108348: 	  tmp_sharedflag='-G' ;;
108349: 	*Sun\ F*)			# Sun Fortran 8.3
108350: 	  tmp_sharedflag='-G' ;;
108351: 	*)
108352: 	  tmp_sharedflag='-shared' ;;
108353: 	esac
108354: 	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
108355: 
108356: 	if test $supports_anon_versioning = yes; then
108357: 	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
108358:   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
108359:   $echo "local: *; };" >> $output_objdir/$libname.ver~
108360: 	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
108361: 	fi
108362:       else
108363: 	ld_shlibs=no
108364:       fi
108365:       ;;
108366: 
108367:     netbsd*)
108368:       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
108369: 	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
108370: 	wlarc=
108371:       else
108372: 	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
108373: 	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
108374:       fi
108375:       ;;
108376: 
108377:     solaris*)
108378:       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
108379: 	ld_shlibs=no
108380: 	cat <<EOF 1>&2
108381: 
108382: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
108383: *** create shared libraries on Solaris systems.  Therefore, libtool
108384: *** is disabling shared libraries support.  We urge you to upgrade GNU
108385: *** binutils to release 2.9.1 or newer.  Another option is to modify
108386: *** your PATH or compiler configuration so that the native linker is
108387: *** used, and then restart.
108388: 
108389: EOF
108390:       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
108391: 	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
108392: 	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
108393:       else
108394: 	ld_shlibs=no
108395:       fi
108396:       ;;
108397: 
108398:     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
108399:       case `$LD -v 2>&1` in
108400:         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
108401: 	ld_shlibs=no
108402: 	cat <<_LT_EOF 1>&2
108403: 
108404: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
108405: *** reliably create shared libraries on SCO systems.  Therefore, libtool
108406: *** is disabling shared libraries support.  We urge you to upgrade GNU
108407: *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
108408: *** your PATH or compiler configuration so that the native linker is
108409: *** used, and then restart.
108410: 
108411: _LT_EOF
108412: 	;;
108413: 	*)
108414: 	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
108415: 	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
108416: 	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
108417: 	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
108418: 	  else
108419: 	    ld_shlibs=no
108420: 	  fi
108421: 	;;
108422:       esac
108423:       ;;
108424: 
108425:     sunos4*)
108426:       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
108427:       wlarc=
108428:       hardcode_direct=yes
108429:       hardcode_shlibpath_var=no
108430:       ;;
108431: 
108432:     *)
108433:       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
108434: 	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
108435: 	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
108436:       else
108437: 	ld_shlibs=no
108438:       fi
108439:       ;;
108440:     esac
108441: 
108442:     if test "$ld_shlibs" = no; then
108443:       runpath_var=
108444:       hardcode_libdir_flag_spec=
108445:       export_dynamic_flag_spec=
108446:       whole_archive_flag_spec=
108447:     fi
108448:   else
108449:     # PORTME fill in a description of your system's linker (not GNU ld)
108450:     case $host_os in
108451:     aix3*)
108452:       allow_undefined_flag=unsupported
108453:       always_export_symbols=yes
108454:       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'
108455:       # Note: this linker hardcodes the directories in LIBPATH if there
108456:       # are no directories specified by -L.
108457:       hardcode_minus_L=yes
108458:       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
108459: 	# Neither direct hardcoding nor static linking is supported with a
108460: 	# broken collect2.
108461: 	hardcode_direct=unsupported
108462:       fi
108463:       ;;
108464: 
108465:     aix[4-9]*)
108466:       if test "$host_cpu" = ia64; then
108467: 	# On IA64, the linker does run time linking by default, so we don't
108468: 	# have to do anything special.
108469: 	aix_use_runtimelinking=no
108470: 	exp_sym_flag='-Bexport'
108471: 	no_entry_flag=""
108472:       else
108473: 	# If we're using GNU nm, then we don't want the "-C" option.
108474: 	# -C means demangle to AIX nm, but means don't demangle with GNU nm
108475: 	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
108476: 	  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'
108477: 	else
108478: 	  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'
108479: 	fi
108480: 	aix_use_runtimelinking=no
108481: 
108482: 	# Test if we are trying to use run time linking or normal
108483: 	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
108484: 	# need to do runtime linking.
108485: 	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
108486: 	  for ld_flag in $LDFLAGS; do
108487:   	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
108488:   	    aix_use_runtimelinking=yes
108489:   	    break
108490:   	  fi
108491: 	  done
108492: 	  ;;
108493: 	esac
108494: 
108495: 	exp_sym_flag='-bexport'
108496: 	no_entry_flag='-bnoentry'
108497:       fi
108498: 
108499:       # When large executables or shared objects are built, AIX ld can
108500:       # have problems creating the table of contents.  If linking a library
108501:       # or program results in "error TOC overflow" add -mminimal-toc to
108502:       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
108503:       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
108504: 
108505:       archive_cmds=''
108506:       hardcode_direct=yes
108507:       hardcode_libdir_separator=':'
108508:       link_all_deplibs=yes
108509: 
108510:       if test "$GCC" = yes; then
108511: 	case $host_os in aix4.[012]|aix4.[012].*)
108512: 	# We only want to do this on AIX 4.2 and lower, the check
108513: 	# below for broken collect2 doesn't work under 4.3+
108514: 	  collect2name=`${CC} -print-prog-name=collect2`
108515: 	  if test -f "$collect2name" && \
108516:   	   strings "$collect2name" | grep resolve_lib_name >/dev/null
108517: 	  then
108518:   	  # We have reworked collect2
108519:   	  :
108520: 	  else
108521:   	  # We have old collect2
108522:   	  hardcode_direct=unsupported
108523:   	  # It fails to find uninstalled libraries when the uninstalled
108524:   	  # path is not listed in the libpath.  Setting hardcode_minus_L
108525:   	  # to unsupported forces relinking
108526:   	  hardcode_minus_L=yes
108527:   	  hardcode_libdir_flag_spec='-L$libdir'
108528:   	  hardcode_libdir_separator=
108529: 	  fi
108530: 	  ;;
108531: 	esac
108532: 	shared_flag='-shared'
108533: 	if test "$aix_use_runtimelinking" = yes; then
108534: 	  shared_flag="$shared_flag "'${wl}-G'
108535: 	fi
108536:       else
108537: 	# not using gcc
108538: 	if test "$host_cpu" = ia64; then
108539:   	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
108540:   	# chokes on -Wl,-G. The following line is correct:
108541: 	  shared_flag='-G'
108542: 	else
108543: 	  if test "$aix_use_runtimelinking" = yes; then
108544: 	    shared_flag='${wl}-G'
108545: 	  else
108546: 	    shared_flag='${wl}-bM:SRE'
108547: 	  fi
108548: 	fi
108549:       fi
108550: 
108551:       # It seems that -bexpall does not export symbols beginning with
108552:       # underscore (_), so it is better to generate a list of symbols to export.
108553:       always_export_symbols=yes
108554:       if test "$aix_use_runtimelinking" = yes; then
108555: 	# Warning - without using the other runtime loading flags (-brtl),
108556: 	# -berok will link without error, but may produce a broken library.
108557: 	allow_undefined_flag='-berok'
108558:        # Determine the default libpath from the value encoded in an empty executable.
108559: 
108560: cat > conftest.$ac_ext <<EOF
108561: #line 108561 "configure"
108562: #include "confdefs.h"
108563: int main() {
108564: ; return 0; }
108565: EOF
108566: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
108567:   (eval $ac_link) 2>&5
108568:   ac_status=$?
108569:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
108570:   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
108571: 
108572: lt_aix_libpath_sed='
108573:     /Import File Strings/,/^$/ {
108574: 	/^0/ {
108575: 	    s/^0  *\(.*\)$/\1/
108576: 	    p
108577: 	}
108578:     }'
108579: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
108580: # Check for a 64-bit object if we didn't find anything.
108581: if test -z "$aix_libpath"; then
108582:   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
108583: fi
108584:   rm -rf conftest*
108585: else
108586:   echo "configure: failed program was:" >&5
108587:   cat conftest.$ac_ext >&6
108588: fi
108589: rm -f conftest*
108590: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
108591: 
108592:        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
108593: 	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"
108594:        else
108595: 	if test "$host_cpu" = ia64; then
108596: 	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
108597: 	  allow_undefined_flag="-z nodefs"
108598: 	  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"
108599: 	else
108600: 	 # Determine the default libpath from the value encoded in an empty executable.
108601: 
108602: cat > conftest.$ac_ext <<EOF
108603: #line 108603 "configure"
108604: #include "confdefs.h"
108605: int main() {
108606: ; return 0; }
108607: EOF
108608: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
108609:   (eval $ac_link) 2>&5
108610:   ac_status=$?
108611:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
108612:   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
108613: 
108614: lt_aix_libpath_sed='
108615:     /Import File Strings/,/^$/ {
108616: 	/^0/ {
108617: 	    s/^0  *\(.*\)$/\1/
108618: 	    p
108619: 	}
108620:     }'
108621: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
108622: # Check for a 64-bit object if we didn't find anything.
108623: if test -z "$aix_libpath"; then
108624:   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
108625: fi
108626:   rm -rf conftest*
108627: else
108628:   echo "configure: failed program was:" >&5
108629:   cat conftest.$ac_ext >&6
108630: fi
108631: rm -f conftest*
108632: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
108633: 
108634: 	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
108635: 	  # Warning - without using the other run time loading flags,
108636: 	  # -berok will link without error, but may produce a broken library.
108637: 	  no_undefined_flag=' ${wl}-bernotok'
108638: 	  allow_undefined_flag=' ${wl}-berok'
108639: 	  # Exported symbols can be pulled into shared objects from archives
108640: 	  whole_archive_flag_spec='$convenience'
108641: 	  archive_cmds_need_lc=yes
108642: 	  # This is similar to how AIX traditionally builds its shared libraries.
108643: 	  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'
108644: 	fi
108645:       fi
108646:       ;;
108647: 
108648:     amigaos*)
108649:       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)'
108650:       hardcode_libdir_flag_spec='-L$libdir'
108651:       hardcode_minus_L=yes
108652:       # see comment about different semantics on the GNU ld section
108653:       ld_shlibs=no
108654:       ;;
108655: 
108656:     bsdi[45]*)
108657:       export_dynamic_flag_spec=-rdynamic
108658:       ;;
108659: 
108660:     cygwin* | mingw* | pw32*)
108661:       # When not using gcc, we currently assume that we are using
108662:       # Microsoft Visual C++.
108663:       # hardcode_libdir_flag_spec is actually meaningless, as there is
108664:       # no search path for DLLs.
108665:       hardcode_libdir_flag_spec=' '
108666:       allow_undefined_flag=unsupported
108667:       # Tell ltmain to make .lib files, not .a files.
108668:       libext=lib
108669:       # Tell ltmain to make .dll files, not .so files.
108670:       shrext_cmds=".dll"
108671:       # FIXME: Setting linknames here is a bad hack.
108672:       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
108673:       # The linker will automatically build a .lib file if we build a DLL.
108674:       old_archive_From_new_cmds='true'
108675:       # FIXME: Should let the user specify the lib program.
108676:       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
108677:       fix_srcfile_path='`cygpath -w "$srcfile"`'
108678:       enable_shared_with_static_runtimes=yes
108679:       ;;
108680: 
108681:     darwin* | rhapsody*)
108682:       case $host_os in
108683:         rhapsody* | darwin1.[012])
108684:          allow_undefined_flag='${wl}-undefined ${wl}suppress'
108685:          ;;
108686:        *) # Darwin 1.3 on
108687:          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
108688:            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
108689:          else
108690:            case ${MACOSX_DEPLOYMENT_TARGET} in
108691:              10.[012])
108692:                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
108693:                ;;
108694:              10.*)
108695:                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
108696:                ;;
108697:            esac
108698:          fi
108699:          ;;
108700:       esac
108701:       archive_cmds_need_lc=no
108702:       hardcode_direct=no
108703:       hardcode_automatic=yes
108704:       hardcode_shlibpath_var=unsupported
108705:       whole_archive_flag_spec=''
108706:       link_all_deplibs=yes
108707:     if test "$GCC" = yes ; then
108708:     	output_verbose_link_cmd='echo'
108709:         archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
108710:         module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
108711:         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}"
108712:         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}"
108713:     else
108714:       case $cc_basename in
108715:         xlc*)
108716:          output_verbose_link_cmd='echo'
108717:          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
108718:          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
108719:           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
108720:          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}'
108721:           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}'
108722:           ;;
108723:        *)
108724:          ld_shlibs=no
108725:           ;;
108726:       esac
108727:     fi
108728:       ;;
108729: 
108730:     dgux*)
108731:       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
108732:       hardcode_libdir_flag_spec='-L$libdir'
108733:       hardcode_shlibpath_var=no
108734:       ;;
108735: 
108736:     freebsd1*)
108737:       ld_shlibs=no
108738:       ;;
108739: 
108740:     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
108741:     # support.  Future versions do this automatically, but an explicit c++rt0.o
108742:     # does not break anything, and helps significantly (at the cost of a little
108743:     # extra space).
108744:     freebsd2.2*)
108745:       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
108746:       hardcode_libdir_flag_spec='-R$libdir'
108747:       hardcode_direct=yes
108748:       hardcode_shlibpath_var=no
108749:       ;;
108750: 
108751:     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
108752:     freebsd2*)
108753:       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
108754:       hardcode_direct=yes
108755:       hardcode_minus_L=yes
108756:       hardcode_shlibpath_var=no
108757:       ;;
108758: 
108759:     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
108760:     freebsd* | dragonfly*)
108761:       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
108762:       hardcode_libdir_flag_spec='-R$libdir'
108763:       hardcode_direct=yes
108764:       hardcode_shlibpath_var=no
108765:       ;;
108766: 
108767:     hpux9*)
108768:       if test "$GCC" = yes; then
108769: 	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'
108770:       else
108771: 	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'
108772:       fi
108773:       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
108774:       hardcode_libdir_separator=:
108775:       hardcode_direct=yes
108776: 
108777:       # hardcode_minus_L: Not really in the search PATH,
108778:       # but as the default location of the library.
108779:       hardcode_minus_L=yes
108780:       export_dynamic_flag_spec='${wl}-E'
108781:       ;;
108782: 
108783:     hpux10*)
108784:       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
108785: 	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
108786:       else
108787: 	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
108788:       fi
108789:       if test "$with_gnu_ld" = no; then
108790: 	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
108791: 	hardcode_libdir_separator=:
108792: 
108793: 	hardcode_direct=yes
108794: 	export_dynamic_flag_spec='${wl}-E'
108795: 
108796: 	# hardcode_minus_L: Not really in the search PATH,
108797: 	# but as the default location of the library.
108798: 	hardcode_minus_L=yes
108799:       fi
108800:       ;;
108801: 
108802:     hpux11*)
108803:       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
108804: 	case $host_cpu in
108805: 	hppa*64*)
108806: 	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
108807: 	  ;;
108808: 	ia64*)
108809: 	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
108810: 	  ;;
108811: 	*)
108812: 	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
108813: 	  ;;
108814: 	esac
108815:       else
108816: 	case $host_cpu in
108817: 	hppa*64*)
108818: 	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
108819: 	  ;;
108820: 	ia64*)
108821: 	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
108822: 	  ;;
108823: 	*)
108824: 	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
108825: 	  ;;
108826: 	esac
108827:       fi
108828:       if test "$with_gnu_ld" = no; then
108829: 	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
108830: 	hardcode_libdir_separator=:
108831: 
108832: 	case $host_cpu in
108833: 	hppa*64*|ia64*)
108834: 	  hardcode_libdir_flag_spec_ld='+b $libdir'
108835: 	  hardcode_direct=no
108836: 	  hardcode_shlibpath_var=no
108837: 	  ;;
108838: 	*)
108839: 	  hardcode_direct=yes
108840: 	  export_dynamic_flag_spec='${wl}-E'
108841: 
108842: 	  # hardcode_minus_L: Not really in the search PATH,
108843: 	  # but as the default location of the library.
108844: 	  hardcode_minus_L=yes
108845: 	  ;;
108846: 	esac
108847:       fi
108848:       ;;
108849: 
108850:     irix5* | irix6* | nonstopux*)
108851:       if test "$GCC" = yes; then
108852: 	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'
108853:       else
108854: 	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'
108855: 	hardcode_libdir_flag_spec_ld='-rpath $libdir'
108856:       fi
108857:       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
108858:       hardcode_libdir_separator=:
108859:       link_all_deplibs=yes
108860:       ;;
108861: 
108862:     netbsd*)
108863:       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
108864: 	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
108865:       else
108866: 	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
108867:       fi
108868:       hardcode_libdir_flag_spec='-R$libdir'
108869:       hardcode_direct=yes
108870:       hardcode_shlibpath_var=no
108871:       ;;
108872: 
108873:     newsos6)
108874:       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
108875:       hardcode_direct=yes
108876:       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
108877:       hardcode_libdir_separator=:
108878:       hardcode_shlibpath_var=no
108879:       ;;
108880: 
108881:     openbsd*)
108882:       if test -f /usr/libexec/ld.so; then
108883: 	hardcode_direct=yes
108884: 	hardcode_shlibpath_var=no
108885: 	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
108886: 	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
108887: 	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
108888: 	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
108889: 	  export_dynamic_flag_spec='${wl}-E'
108890: 	else
108891: 	  case $host_os in
108892: 	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
108893: 	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
108894: 	     hardcode_libdir_flag_spec='-R$libdir'
108895: 	     ;;
108896: 	   *)
108897: 	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
108898: 	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
108899: 	     ;;
108900: 	  esac
108901:         fi
108902:       else
108903: 	ld_shlibs=no
108904:       fi
108905:       ;;
108906: 
108907:     os2*)
108908:       hardcode_libdir_flag_spec='-L$libdir'
108909:       hardcode_minus_L=yes
108910:       allow_undefined_flag=unsupported
108911:       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'
108912:       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
108913:       ;;
108914: 
108915:     osf3*)
108916:       if test "$GCC" = yes; then
108917: 	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
108918: 	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'
108919:       else
108920: 	allow_undefined_flag=' -expect_unresolved \*'
108921: 	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'
108922:       fi
108923:       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
108924:       hardcode_libdir_separator=:
108925:       ;;
108926: 
108927:     osf4* | osf5*)	# as osf3* with the addition of -msym flag
108928:       if test "$GCC" = yes; then
108929: 	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
108930: 	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'
108931: 	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
108932:       else
108933: 	allow_undefined_flag=' -expect_unresolved \*'
108934: 	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'
108935: 	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
108936: 	$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'
108937: 
108938: 	# Both c and cxx compiler support -rpath directly
108939: 	hardcode_libdir_flag_spec='-rpath $libdir'
108940:       fi
108941:       hardcode_libdir_separator=:
108942:       ;;
108943: 
108944:     solaris*)
108945:       no_undefined_flag=' -z text'
108946:       if test "$GCC" = yes; then
108947: 	wlarc='${wl}'
108948: 	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
108949: 	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
108950: 	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
108951:       else
108952: 	wlarc=''
108953: 	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
108954: 	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
108955:   	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
108956:       fi
108957:       hardcode_libdir_flag_spec='-R$libdir'
108958:       hardcode_shlibpath_var=no
108959:       case $host_os in
108960:       solaris2.[0-5] | solaris2.[0-5].*) ;;
108961:       *)
108962: 	# The compiler driver will combine and reorder linker options,
108963: 	# but understands `-z linker_flag'.  GCC discards it without `$wl',
108964: 	# but is careful enough not to reorder.
108965:  	# Supported since Solaris 2.6 (maybe 2.5.1?)
108966: 	if test "$GCC" = yes; then
108967: 	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
108968: 	else
108969: 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
108970: 	fi
108971: 	;;
108972:       esac
108973:       link_all_deplibs=yes
108974:       ;;
108975: 
108976:     sunos4*)
108977:       if test "x$host_vendor" = xsequent; then
108978: 	# Use $CC to link under sequent, because it throws in some extra .o
108979: 	# files that make .init and .fini sections work.
108980: 	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
108981:       else
108982: 	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
108983:       fi
108984:       hardcode_libdir_flag_spec='-L$libdir'
108985:       hardcode_direct=yes
108986:       hardcode_minus_L=yes
108987:       hardcode_shlibpath_var=no
108988:       ;;
108989: 
108990:     sysv4)
108991:       case $host_vendor in
108992: 	sni)
108993: 	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
108994: 	  hardcode_direct=yes # is this really true???
108995: 	;;
108996: 	siemens)
108997: 	  ## LD is ld it makes a PLAMLIB
108998: 	  ## CC just makes a GrossModule.
108999: 	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
109000: 	  reload_cmds='$CC -r -o $output$reload_objs'
109001: 	  hardcode_direct=no
109002:         ;;
109003: 	motorola)
109004: 	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
109005: 	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
109006: 	;;
109007:       esac
109008:       runpath_var='LD_RUN_PATH'
109009:       hardcode_shlibpath_var=no
109010:       ;;
109011: 
109012:     sysv4.3*)
109013:       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
109014:       hardcode_shlibpath_var=no
109015:       export_dynamic_flag_spec='-Bexport'
109016:       ;;
109017: 
109018:     sysv4*MP*)
109019:       if test -d /usr/nec; then
109020: 	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
109021: 	hardcode_shlibpath_var=no
109022: 	runpath_var=LD_RUN_PATH
109023: 	hardcode_runpath_var=yes
109024: 	ld_shlibs=yes
109025:       fi
109026:       ;;
109027: 
109028:     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
109029:       no_undefined_flag='${wl}-z,text'
109030:       archive_cmds_need_lc=no
109031:       hardcode_shlibpath_var=no
109032:       runpath_var='LD_RUN_PATH'
109033: 
109034:       if test "$GCC" = yes; then
109035: 	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
109036: 	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
109037:       else
109038: 	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
109039: 	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
109040:       fi
109041:       ;;
109042: 
109043:     sysv5* | sco3.2v5* | sco5v6*)
109044:       # Note: We can NOT use -z defs as we might desire, because we do not
109045:       # link with -lc, and that would cause any symbols used from libc to
109046:       # always be unresolved, which means just about no library would
109047:       # ever link correctly.  If we're not using GNU ld we use -z text
109048:       # though, which does catch some bad symbols but isn't as heavy-handed
109049:       # as -z defs.
109050:       no_undefined_flag='${wl}-z,text'
109051:       allow_undefined_flag='${wl}-z,nodefs'
109052:       archive_cmds_need_lc=no
109053:       hardcode_shlibpath_var=no
109054:       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
109055:       hardcode_libdir_separator=':'
109056:       link_all_deplibs=yes
109057:       export_dynamic_flag_spec='${wl}-Bexport'
109058:       runpath_var='LD_RUN_PATH'
109059: 
109060:       if test "$GCC" = yes; then
109061: 	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
109062: 	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
109063:       else
109064: 	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
109065: 	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
109066:       fi
109067:       ;;
109068: 
109069:     uts4*)
109070:       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
109071:       hardcode_libdir_flag_spec='-L$libdir'
109072:       hardcode_shlibpath_var=no
109073:       ;;
109074: 
109075:     *)
109076:       ld_shlibs=no
109077:       ;;
109078:     esac
109079:   fi
109080: 
109081: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
109082: $as_echo "$ld_shlibs" >&6; }
109083: test "$ld_shlibs" = no && can_build_shared=no
109084: 
109085: #
109086: # Do we need to explicitly link libc?
109087: #
109088: case "x$archive_cmds_need_lc" in
109089: x|xyes)
109090:   # Assume -lc should be added
109091:   archive_cmds_need_lc=yes
109092: 
109093:   if test "$enable_shared" = yes && test "$GCC" = yes; then
109094:     case $archive_cmds in
109095:     *'~'*)
109096:       # FIXME: we may have to deal with multi-command sequences.
109097:       ;;
109098:     '$CC '*)
109099:       # Test whether the compiler implicitly links with -lc since on some
109100:       # systems, -lgcc has to come before -lc. If gcc already passes -lc
109101:       # to ld, don't add -lc before -lgcc.
109102:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
109103: $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
109104:       $rm conftest*
109105:       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
109106: 
109107:       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
109108:   (eval $ac_compile) 2>&5
109109:   ac_status=$?
109110:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
109111:   test $ac_status = 0; } 2>conftest.err; then
109112:         soname=conftest
109113:         lib=conftest
109114:         libobjs=conftest.$ac_objext
109115:         deplibs=
109116:         wl=$lt_prog_compiler_wl
109117: 	pic_flag=$lt_prog_compiler_pic
109118:         compiler_flags=-v
109119:         linker_flags=-v
109120:         verstring=
109121:         output_objdir=.
109122:         libname=conftest
109123:         lt_save_allow_undefined_flag=$allow_undefined_flag
109124:         allow_undefined_flag=
109125:         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
109126:   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
109127:   ac_status=$?
109128:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
109129:   test $ac_status = 0; }
109130:         then
109131: 	  archive_cmds_need_lc=no
109132:         else
109133: 	  archive_cmds_need_lc=yes
109134:         fi
109135:         allow_undefined_flag=$lt_save_allow_undefined_flag
109136:       else
109137:         cat conftest.err 1>&5
109138:       fi
109139:       $rm conftest*
109140:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
109141: $as_echo "$archive_cmds_need_lc" >&6; }
109142:       ;;
109143:     esac
109144:   fi
109145:   ;;
109146: esac
109147: 
109148: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
109149: $as_echo_n "checking dynamic linker characteristics... " >&6; }
109150: library_names_spec=
109151: libname_spec='lib$name'
109152: soname_spec=
109153: shrext_cmds=".so"
109154: postinstall_cmds=
109155: postuninstall_cmds=
109156: finish_cmds=
109157: finish_eval=
109158: shlibpath_var=
109159: shlibpath_overrides_runpath=unknown
109160: version_type=none
109161: dynamic_linker="$host_os ld.so"
109162: sys_lib_dlsearch_path_spec="/lib /usr/lib"
109163: 
109164: if test "$GCC" = yes; then
109165:   case $host_os in
109166:     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
109167:     *) lt_awk_arg="/^libraries:/" ;;
109168:   esac
109169:   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
109170:   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
109171:     # if the path contains ";" then we assume it to be the separator
109172:     # otherwise default to the standard path separator (i.e. ":") - it is
109173:     # assumed that no part of a normal pathname contains ";" but that should
109174:     # okay in the real world where ";" in dirpaths is itself problematic.
109175:     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
109176:   else
109177:     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
109178:   fi
109179:   # Ok, now we have the path, separated by spaces, we can step through it
109180:   # and add multilib dir if necessary.
109181:   lt_tmp_lt_search_path_spec=
109182:   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
109183:   for lt_sys_path in $lt_search_path_spec; do
109184:     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
109185:       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
109186:     else
109187:       test -d "$lt_sys_path" && \
109188: 	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
109189:     fi
109190:   done
109191:   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
109192: BEGIN {RS=" "; FS="/|\n";} {
109193:   lt_foo="";
109194:   lt_count=0;
109195:   for (lt_i = NF; lt_i > 0; lt_i--) {
109196:     if ($lt_i != "" && $lt_i != ".") {
109197:       if ($lt_i == "..") {
109198:         lt_count++;
109199:       } else {
109200:         if (lt_count == 0) {
109201:           lt_foo="/" $lt_i lt_foo;
109202:         } else {
109203:           lt_count--;
109204:         }
109205:       }
109206:     }
109207:   }
109208:   if (lt_foo != "") { lt_freq[lt_foo]++; }
109209:   if (lt_freq[lt_foo] == 1) { print lt_foo; }
109210: }'`
109211:   sys_lib_search_path_spec=`echo $lt_search_path_spec`
109212: else
109213:   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
109214: fi
109215: need_lib_prefix=unknown
109216: hardcode_into_libs=no
109217: 
109218: # when you set need_version to no, make sure it does not cause -set_version
109219: # flags to be left without arguments
109220: need_version=unknown
109221: 
109222: case $host_os in
109223: aix3*)
109224:   version_type=linux
109225:   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
109226:   shlibpath_var=LIBPATH
109227: 
109228:   # AIX 3 has no versioning support, so we append a major version to the name.
109229:   soname_spec='${libname}${release}${shared_ext}$major'
109230:   ;;
109231: 
109232: aix[4-9]*)
109233:   version_type=linux
109234:   need_lib_prefix=no
109235:   need_version=no
109236:   hardcode_into_libs=yes
109237:   if test "$host_cpu" = ia64; then
109238:     # AIX 5 supports IA64
109239:     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
109240:     shlibpath_var=LD_LIBRARY_PATH
109241:   else
109242:     # With GCC up to 2.95.x, collect2 would create an import file
109243:     # for dependence libraries.  The import file would start with
109244:     # the line `#! .'.  This would cause the generated library to
109245:     # depend on `.', always an invalid library.  This was fixed in
109246:     # development snapshots of GCC prior to 3.0.
109247:     case $host_os in
109248:       aix4 | aix4.[01] | aix4.[01].*)
109249:       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
109250: 	   echo ' yes '
109251: 	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
109252: 	:
109253:       else
109254: 	can_build_shared=no
109255:       fi
109256:       ;;
109257:     esac
109258:     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
109259:     # soname into executable. Probably we can add versioning support to
109260:     # collect2, so additional links can be useful in future.
109261:     if test "$aix_use_runtimelinking" = yes; then
109262:       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
109263:       # instead of lib<name>.a to let people know that these are not
109264:       # typical AIX shared libraries.
109265:       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
109266:     else
109267:       # We preserve .a as extension for shared libraries through AIX4.2
109268:       # and later when we are not doing run time linking.
109269:       library_names_spec='${libname}${release}.a $libname.a'
109270:       soname_spec='${libname}${release}${shared_ext}$major'
109271:     fi
109272:     shlibpath_var=LIBPATH
109273:   fi
109274:   ;;
109275: 
109276: amigaos*)
109277:   library_names_spec='$libname.ixlibrary $libname.a'
109278:   # Create ${libname}_ixlibrary.a entries in /sys/libs.
109279:   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'
109280:   ;;
109281: 
109282: beos*)
109283:   library_names_spec='${libname}${shared_ext}'
109284:   dynamic_linker="$host_os ld.so"
109285:   shlibpath_var=LIBRARY_PATH
109286:   ;;
109287: 
109288: bsdi[45]*)
109289:   version_type=linux
109290:   need_version=no
109291:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
109292:   soname_spec='${libname}${release}${shared_ext}$major'
109293:   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
109294:   shlibpath_var=LD_LIBRARY_PATH
109295:   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
109296:   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
109297:   # the default ld.so.conf also contains /usr/contrib/lib and
109298:   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
109299:   # libtool to hard-code these into programs
109300:   ;;
109301: 
109302: cygwin* | mingw* | pw32*)
109303:   version_type=windows
109304:   shrext_cmds=".dll"
109305:   need_version=no
109306:   need_lib_prefix=no
109307: 
109308:   case $GCC,$host_os in
109309:   yes,cygwin* | yes,mingw* | yes,pw32*)
109310:     library_names_spec='$libname.dll.a'
109311:     # DLL is installed to $(libdir)/../bin by postinstall_cmds
109312:     postinstall_cmds='base_file=`basename \${file}`~
109313:       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
109314:       dldir=$destdir/`dirname \$dlpath`~
109315:       test -d \$dldir || mkdir -p \$dldir~
109316:       $install_prog $dir/$dlname \$dldir/$dlname~
109317:       chmod a+x \$dldir/$dlname'
109318:     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
109319:       dlpath=$dir/\$dldll~
109320:        $rm \$dlpath'
109321:     shlibpath_overrides_runpath=yes
109322: 
109323:     case $host_os in
109324:     cygwin*)
109325:       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
109326:       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
109327:       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
109328:       ;;
109329:     mingw*)
109330:       # MinGW DLLs use traditional 'lib' prefix
109331:       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
109332:       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
109333:       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
109334:         # It is most probably a Windows format PATH printed by
109335:         # mingw gcc, but we are running on Cygwin. Gcc prints its search
109336:         # path with ; separators, and with drive letters. We can handle the
109337:         # drive letters (cygwin fileutils understands them), so leave them,
109338:         # especially as we might pass files found there to a mingw objdump,
109339:         # which wouldn't understand a cygwinified path. Ahh.
109340:         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
109341:       else
109342:         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
109343:       fi
109344:       ;;
109345:     pw32*)
109346:       # pw32 DLLs use 'pw' prefix rather than 'lib'
109347:       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
109348:       ;;
109349:     esac
109350:     ;;
109351: 
109352:   *)
109353:     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
109354:     ;;
109355:   esac
109356:   dynamic_linker='Win32 ld.exe'
109357:   # FIXME: first we should search . and the directory the executable is in
109358:   shlibpath_var=PATH
109359:   ;;
109360: 
109361: darwin* | rhapsody*)
109362:   dynamic_linker="$host_os dyld"
109363:   version_type=darwin
109364:   need_lib_prefix=no
109365:   need_version=no
109366:   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
109367:   soname_spec='${libname}${release}${major}$shared_ext'
109368:   shlibpath_overrides_runpath=yes
109369:   shlibpath_var=DYLD_LIBRARY_PATH
109370:   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
109371: 
109372:   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
109373:   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
109374:   ;;
109375: 
109376: dgux*)
109377:   version_type=linux
109378:   need_lib_prefix=no
109379:   need_version=no
109380:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
109381:   soname_spec='${libname}${release}${shared_ext}$major'
109382:   shlibpath_var=LD_LIBRARY_PATH
109383:   ;;
109384: 
109385: freebsd1*)
109386:   dynamic_linker=no
109387:   ;;
109388: 
109389: freebsd* | dragonfly*)
109390:   # DragonFly does not have aout.  When/if they implement a new
109391:   # versioning mechanism, adjust this.
109392:   if test -x /usr/bin/objformat; then
109393:     objformat=`/usr/bin/objformat`
109394:   else
109395:     case $host_os in
109396:     freebsd[123]*) objformat=aout ;;
109397:     *) objformat=elf ;;
109398:     esac
109399:   fi
109400:   version_type=freebsd-$objformat
109401:   case $version_type in
109402:     freebsd-elf*)
109403:       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
109404:       need_version=no
109405:       need_lib_prefix=no
109406:       ;;
109407:     freebsd-*)
109408:       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
109409:       need_version=yes
109410:       ;;
109411:   esac
109412:   shlibpath_var=LD_LIBRARY_PATH
109413:   case $host_os in
109414:   freebsd2*)
109415:     shlibpath_overrides_runpath=yes
109416:     ;;
109417:   freebsd3.[01]* | freebsdelf3.[01]*)
109418:     shlibpath_overrides_runpath=yes
109419:     hardcode_into_libs=yes
109420:     ;;
109421:   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
109422:   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
109423:     shlibpath_overrides_runpath=no
109424:     hardcode_into_libs=yes
109425:     ;;
109426:   *) # from 4.6 on, and DragonFly
109427:     shlibpath_overrides_runpath=yes
109428:     hardcode_into_libs=yes
109429:     ;;
109430:   esac
109431:   ;;
109432: 
109433: gnu*)
109434:   version_type=linux
109435:   need_lib_prefix=no
109436:   need_version=no
109437:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
109438:   soname_spec='${libname}${release}${shared_ext}$major'
109439:   shlibpath_var=LD_LIBRARY_PATH
109440:   hardcode_into_libs=yes
109441:   ;;
109442: 
109443: hpux9* | hpux10* | hpux11*)
109444:   # Give a soname corresponding to the major version so that dld.sl refuses to
109445:   # link against other versions.
109446:   version_type=sunos
109447:   need_lib_prefix=no
109448:   need_version=no
109449:   case $host_cpu in
109450:   ia64*)
109451:     shrext_cmds='.so'
109452:     hardcode_into_libs=yes
109453:     dynamic_linker="$host_os dld.so"
109454:     shlibpath_var=LD_LIBRARY_PATH
109455:     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
109456:     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
109457:     soname_spec='${libname}${release}${shared_ext}$major'
109458:     if test "X$HPUX_IA64_MODE" = X32; then
109459:       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
109460:     else
109461:       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
109462:     fi
109463:     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
109464:     ;;
109465:    hppa*64*)
109466:      shrext_cmds='.sl'
109467:      hardcode_into_libs=yes
109468:      dynamic_linker="$host_os dld.sl"
109469:      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
109470:      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
109471:      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
109472:      soname_spec='${libname}${release}${shared_ext}$major'
109473:      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
109474:      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
109475:      ;;
109476:    *)
109477:     shrext_cmds='.sl'
109478:     dynamic_linker="$host_os dld.sl"
109479:     shlibpath_var=SHLIB_PATH
109480:     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
109481:     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
109482:     soname_spec='${libname}${release}${shared_ext}$major'
109483:     ;;
109484:   esac
109485:   # HP-UX runs *really* slowly unless shared libraries are mode 555.
109486:   postinstall_cmds='chmod 555 $lib'
109487:   ;;
109488: 
109489: interix[3-9]*)
109490:   version_type=linux
109491:   need_lib_prefix=no
109492:   need_version=no
109493:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
109494:   soname_spec='${libname}${release}${shared_ext}$major'
109495:   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
109496:   shlibpath_var=LD_LIBRARY_PATH
109497:   shlibpath_overrides_runpath=no
109498:   hardcode_into_libs=yes
109499:   ;;
109500: 
109501: irix5* | irix6* | nonstopux*)
109502:   case $host_os in
109503:     nonstopux*) version_type=nonstopux ;;
109504:     *)
109505: 	if test "$lt_cv_prog_gnu_ld" = yes; then
109506: 		version_type=linux
109507: 	else
109508: 		version_type=irix
109509: 	fi ;;
109510:   esac
109511:   need_lib_prefix=no
109512:   need_version=no
109513:   soname_spec='${libname}${release}${shared_ext}$major'
109514:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
109515:   case $host_os in
109516:   irix5* | nonstopux*)
109517:     libsuff= shlibsuff=
109518:     ;;
109519:   *)
109520:     case $LD in # libtool.m4 will add one of these switches to LD
109521:     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
109522:       libsuff= shlibsuff= libmagic=32-bit;;
109523:     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
109524:       libsuff=32 shlibsuff=N32 libmagic=N32;;
109525:     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
109526:       libsuff=64 shlibsuff=64 libmagic=64-bit;;
109527:     *) libsuff= shlibsuff= libmagic=never-match;;
109528:     esac
109529:     ;;
109530:   esac
109531:   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
109532:   shlibpath_overrides_runpath=no
109533:   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
109534:   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
109535:   hardcode_into_libs=yes
109536:   ;;
109537: 
109538: # No shared lib support for Linux oldld, aout, or coff.
109539: linux*oldld* | linux*aout* | linux*coff*)
109540:   dynamic_linker=no
109541:   ;;
109542: 
109543: # This must be Linux ELF.
109544: linux* | k*bsd*-gnu)
109545:   version_type=linux
109546:   need_lib_prefix=no
109547:   need_version=no
109548:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
109549:   soname_spec='${libname}${release}${shared_ext}$major'
109550:   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
109551:   shlibpath_var=LD_LIBRARY_PATH
109552:   shlibpath_overrides_runpath=no
109553:   # This implies no fast_install, which is unacceptable.
109554:   # Some rework will be needed to allow for fast_install
109555:   # before this can be enabled.
109556:   hardcode_into_libs=yes
109557: 
109558:   # Append ld.so.conf contents to the search path
109559:   if test -f /etc/ld.so.conf; then
109560:     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' ' '`
109561:     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
109562:   fi
109563: 
109564:   # We used to test for /lib/ld.so.1 and disable shared libraries on
109565:   # powerpc, because MkLinux only supported shared libraries with the
109566:   # GNU dynamic linker.  Since this was broken with cross compilers,
109567:   # most powerpc-linux boxes support dynamic linking these days and
109568:   # people can always --disable-shared, the test was removed, and we
109569:   # assume the GNU/Linux dynamic linker is in use.
109570:   dynamic_linker='GNU/Linux ld.so'
109571:   ;;
109572: 
109573: netbsd*)
109574:   version_type=sunos
109575:   need_lib_prefix=no
109576:   need_version=no
109577:   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
109578:     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
109579:     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
109580:     dynamic_linker='NetBSD (a.out) ld.so'
109581:   else
109582:     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
109583:     soname_spec='${libname}${release}${shared_ext}$major'
109584:     dynamic_linker='NetBSD ld.elf_so'
109585:   fi
109586:   shlibpath_var=LD_LIBRARY_PATH
109587:   shlibpath_overrides_runpath=yes
109588:   hardcode_into_libs=yes
109589:   ;;
109590: 
109591: newsos6)
109592:   version_type=linux
109593:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
109594:   shlibpath_var=LD_LIBRARY_PATH
109595:   shlibpath_overrides_runpath=yes
109596:   ;;
109597: 
109598: nto-qnx*)
109599:   version_type=linux
109600:   need_lib_prefix=no
109601:   need_version=no
109602:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
109603:   soname_spec='${libname}${release}${shared_ext}$major'
109604:   shlibpath_var=LD_LIBRARY_PATH
109605:   shlibpath_overrides_runpath=yes
109606:   ;;
109607: 
109608: openbsd*)
109609:   version_type=sunos
109610:   sys_lib_dlsearch_path_spec="/usr/lib"
109611:   need_lib_prefix=no
109612:   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
109613:   case $host_os in
109614:     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
109615:     *)                         need_version=no  ;;
109616:   esac
109617:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
109618:   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
109619:   shlibpath_var=LD_LIBRARY_PATH
109620:   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
109621:     case $host_os in
109622:       openbsd2.[89] | openbsd2.[89].*)
109623: 	shlibpath_overrides_runpath=no
109624: 	;;
109625:       *)
109626: 	shlibpath_overrides_runpath=yes
109627: 	;;
109628:       esac
109629:   else
109630:     shlibpath_overrides_runpath=yes
109631:   fi
109632:   ;;
109633: 
109634: os2*)
109635:   libname_spec='$name'
109636:   shrext_cmds=".dll"
109637:   need_lib_prefix=no
109638:   library_names_spec='$libname${shared_ext} $libname.a'
109639:   dynamic_linker='OS/2 ld.exe'
109640:   shlibpath_var=LIBPATH
109641:   ;;
109642: 
109643: osf3* | osf4* | osf5*)
109644:   version_type=osf
109645:   need_lib_prefix=no
109646:   need_version=no
109647:   soname_spec='${libname}${release}${shared_ext}$major'
109648:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
109649:   shlibpath_var=LD_LIBRARY_PATH
109650:   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
109651:   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
109652:   ;;
109653: 
109654: rdos*)
109655:   dynamic_linker=no
109656:   ;;
109657: 
109658: solaris*)
109659:   version_type=linux
109660:   need_lib_prefix=no
109661:   need_version=no
109662:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
109663:   soname_spec='${libname}${release}${shared_ext}$major'
109664:   shlibpath_var=LD_LIBRARY_PATH
109665:   shlibpath_overrides_runpath=yes
109666:   hardcode_into_libs=yes
109667:   # ldd complains unless libraries are executable
109668:   postinstall_cmds='chmod +x $lib'
109669:   ;;
109670: 
109671: sunos4*)
109672:   version_type=sunos
109673:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
109674:   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
109675:   shlibpath_var=LD_LIBRARY_PATH
109676:   shlibpath_overrides_runpath=yes
109677:   if test "$with_gnu_ld" = yes; then
109678:     need_lib_prefix=no
109679:   fi
109680:   need_version=yes
109681:   ;;
109682: 
109683: sysv4 | sysv4.3*)
109684:   version_type=linux
109685:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
109686:   soname_spec='${libname}${release}${shared_ext}$major'
109687:   shlibpath_var=LD_LIBRARY_PATH
109688:   case $host_vendor in
109689:     sni)
109690:       shlibpath_overrides_runpath=no
109691:       need_lib_prefix=no
109692:       export_dynamic_flag_spec='${wl}-Blargedynsym'
109693:       runpath_var=LD_RUN_PATH
109694:       ;;
109695:     siemens)
109696:       need_lib_prefix=no
109697:       ;;
109698:     motorola)
109699:       need_lib_prefix=no
109700:       need_version=no
109701:       shlibpath_overrides_runpath=no
109702:       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
109703:       ;;
109704:   esac
109705:   ;;
109706: 
109707: sysv4*MP*)
109708:   if test -d /usr/nec ;then
109709:     version_type=linux
109710:     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
109711:     soname_spec='$libname${shared_ext}.$major'
109712:     shlibpath_var=LD_LIBRARY_PATH
109713:   fi
109714:   ;;
109715: 
109716: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
109717:   version_type=freebsd-elf
109718:   need_lib_prefix=no
109719:   need_version=no
109720:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
109721:   soname_spec='${libname}${release}${shared_ext}$major'
109722:   shlibpath_var=LD_LIBRARY_PATH
109723:   hardcode_into_libs=yes
109724:   if test "$with_gnu_ld" = yes; then
109725:     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
109726:     shlibpath_overrides_runpath=no
109727:   else
109728:     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
109729:     shlibpath_overrides_runpath=yes
109730:     case $host_os in
109731:       sco3.2v5*)
109732:         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
109733: 	;;
109734:     esac
109735:   fi
109736:   sys_lib_dlsearch_path_spec='/usr/lib'
109737:   ;;
109738: 
109739: uts4*)
109740:   version_type=linux
109741:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
109742:   soname_spec='${libname}${release}${shared_ext}$major'
109743:   shlibpath_var=LD_LIBRARY_PATH
109744:   ;;
109745: 
109746: *)
109747:   dynamic_linker=no
109748:   ;;
109749: esac
109750: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
109751: $as_echo "$dynamic_linker" >&6; }
109752: test "$dynamic_linker" = no && can_build_shared=no
109753: 
109754: if ${lt_cv_sys_lib_search_path_spec+:} false; then :
109755:   $as_echo_n "(cached) " >&6
109756: else
109757:   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
109758: fi
109759: 
109760: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
109761: if ${lt_cv_sys_lib_dlsearch_path_spec+:} false; then :
109762:   $as_echo_n "(cached) " >&6
109763: else
109764:   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
109765: fi
109766: 
109767: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
109768: 
109769: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
109770: if test "$GCC" = yes; then
109771:   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
109772: fi
109773: 
109774: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
109775: $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
109776: hardcode_action=
109777: if test -n "$hardcode_libdir_flag_spec" || \
109778:    test -n "$runpath_var" || \
109779:    test "X$hardcode_automatic" = "Xyes" ; then
109780: 
109781:   # We can hardcode non-existent directories.
109782:   if test "$hardcode_direct" != no &&
109783:      # If the only mechanism to avoid hardcoding is shlibpath_var, we
109784:      # have to relink, otherwise we might link with an installed library
109785:      # when we should be linking with a yet-to-be-installed one
109786:      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
109787:      test "$hardcode_minus_L" != no; then
109788:     # Linking always hardcodes the temporary library directory.
109789:     hardcode_action=relink
109790:   else
109791:     # We can link without hardcoding, and we can hardcode nonexisting dirs.
109792:     hardcode_action=immediate
109793:   fi
109794: else
109795:   # We cannot hardcode anything, or else we can only hardcode existing
109796:   # directories.
109797:   hardcode_action=unsupported
109798: fi
109799: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
109800: $as_echo "$hardcode_action" >&6; }
109801: 
109802: if test "$hardcode_action" = relink; then
109803:   # Fast installation is not supported
109804:   enable_fast_install=no
109805: elif test "$shlibpath_overrides_runpath" = yes ||
109806:      test "$enable_shared" = no; then
109807:   # Fast installation is not necessary
109808:   enable_fast_install=needless
109809: fi
109810: 
109811: striplib=
109812: old_striplib=
109813: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
109814: $as_echo_n "checking whether stripping libraries is possible... " >&6; }
109815: if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
109816:   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
109817:   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
109818:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
109819: $as_echo "yes" >&6; }
109820: else
109821: # FIXME - insert some real tests, host_os isn't really good enough
109822:   case $host_os in
109823:    darwin*)
109824:        if test -n "$STRIP" ; then
109825:          striplib="$STRIP -x"
109826:          old_striplib="$STRIP -S"
109827:          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
109828: $as_echo "yes" >&6; }
109829:        else
109830:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
109831: $as_echo "no" >&6; }
109832: fi
109833:        ;;
109834:    *)
109835:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
109836: $as_echo "no" >&6; }
109837:     ;;
109838:   esac
109839: fi
109840: 
109841: if test "x$enable_dlopen" != xyes; then
109842:   enable_dlopen=unknown
109843:   enable_dlopen_self=unknown
109844:   enable_dlopen_self_static=unknown
109845: else
109846:   lt_cv_dlopen=no
109847:   lt_cv_dlopen_libs=
109848: 
109849:   case $host_os in
109850:   beos*)
109851:     lt_cv_dlopen="load_add_on"
109852:     lt_cv_dlopen_libs=
109853:     lt_cv_dlopen_self=yes
109854:     ;;
109855: 
109856:   mingw* | pw32*)
109857:     lt_cv_dlopen="LoadLibrary"
109858:     lt_cv_dlopen_libs=
109859:    ;;
109860: 
109861:   cygwin*)
109862:     lt_cv_dlopen="dlopen"
109863:     lt_cv_dlopen_libs=
109864:    ;;
109865: 
109866:   darwin*)
109867:   # if libdl is installed we need to link against it
109868:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
109869: $as_echo_n "checking for dlopen in -ldl... " >&6; }
109870: if ${ac_cv_lib_dl_dlopen+:} false; then :
109871:   $as_echo_n "(cached) " >&6
109872: else
109873:   ac_check_lib_save_LIBS=$LIBS
109874: LIBS="-ldl  $LIBS"
109875: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
109876: /* end confdefs.h.  */
109877: 
109878: /* Override any GCC internal prototype to avoid an error.
109879:    Use char because int might match the return type of a GCC
109880:    builtin and then its argument prototype would still apply.  */
109881: #ifdef __cplusplus
109882: extern "C"
109883: #endif
109884: char dlopen ();
109885: int
109886: main ()
109887: {
109888: return dlopen ();
109889:   ;
109890:   return 0;
109891: }
109892: _ACEOF
109893: if ac_fn_c_try_link "$LINENO"; then :
109894:   ac_cv_lib_dl_dlopen=yes
109895: else
109896:   ac_cv_lib_dl_dlopen=no
109897: fi
109898: rm -f core conftest.err conftest.$ac_objext \
109899:     conftest$ac_exeext conftest.$ac_ext
109900: LIBS=$ac_check_lib_save_LIBS
109901: fi
109902: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
109903: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
109904: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
109905:   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
109906: else
109907: 
109908:     lt_cv_dlopen="dyld"
109909:     lt_cv_dlopen_libs=
109910:     lt_cv_dlopen_self=yes
109911: 
109912: fi
109913: 
109914:    ;;
109915: 
109916:   *)
109917:     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
109918: if test "x$ac_cv_func_shl_load" = xyes; then :
109919:   lt_cv_dlopen="shl_load"
109920: else
109921:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
109922: $as_echo_n "checking for shl_load in -ldld... " >&6; }
109923: if ${ac_cv_lib_dld_shl_load+:} false; then :
109924:   $as_echo_n "(cached) " >&6
109925: else
109926:   ac_check_lib_save_LIBS=$LIBS
109927: LIBS="-ldld  $LIBS"
109928: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
109929: /* end confdefs.h.  */
109930: 
109931: /* Override any GCC internal prototype to avoid an error.
109932:    Use char because int might match the return type of a GCC
109933:    builtin and then its argument prototype would still apply.  */
109934: #ifdef __cplusplus
109935: extern "C"
109936: #endif
109937: char shl_load ();
109938: int
109939: main ()
109940: {
109941: return shl_load ();
109942:   ;
109943:   return 0;
109944: }
109945: _ACEOF
109946: if ac_fn_c_try_link "$LINENO"; then :
109947:   ac_cv_lib_dld_shl_load=yes
109948: else
109949:   ac_cv_lib_dld_shl_load=no
109950: fi
109951: rm -f core conftest.err conftest.$ac_objext \
109952:     conftest$ac_exeext conftest.$ac_ext
109953: LIBS=$ac_check_lib_save_LIBS
109954: fi
109955: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
109956: $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
109957: if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
109958:   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
109959: else
109960:   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
109961: if test "x$ac_cv_func_dlopen" = xyes; then :
109962:   lt_cv_dlopen="dlopen"
109963: else
109964:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
109965: $as_echo_n "checking for dlopen in -ldl... " >&6; }
109966: if ${ac_cv_lib_dl_dlopen+:} false; then :
109967:   $as_echo_n "(cached) " >&6
109968: else
109969:   ac_check_lib_save_LIBS=$LIBS
109970: LIBS="-ldl  $LIBS"
109971: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
109972: /* end confdefs.h.  */
109973: 
109974: /* Override any GCC internal prototype to avoid an error.
109975:    Use char because int might match the return type of a GCC
109976:    builtin and then its argument prototype would still apply.  */
109977: #ifdef __cplusplus
109978: extern "C"
109979: #endif
109980: char dlopen ();
109981: int
109982: main ()
109983: {
109984: return dlopen ();
109985:   ;
109986:   return 0;
109987: }
109988: _ACEOF
109989: if ac_fn_c_try_link "$LINENO"; then :
109990:   ac_cv_lib_dl_dlopen=yes
109991: else
109992:   ac_cv_lib_dl_dlopen=no
109993: fi
109994: rm -f core conftest.err conftest.$ac_objext \
109995:     conftest$ac_exeext conftest.$ac_ext
109996: LIBS=$ac_check_lib_save_LIBS
109997: fi
109998: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
109999: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
110000: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
110001:   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
110002: else
110003:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
110004: $as_echo_n "checking for dlopen in -lsvld... " >&6; }
110005: if ${ac_cv_lib_svld_dlopen+:} false; then :
110006:   $as_echo_n "(cached) " >&6
110007: else
110008:   ac_check_lib_save_LIBS=$LIBS
110009: LIBS="-lsvld  $LIBS"
110010: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
110011: /* end confdefs.h.  */
110012: 
110013: /* Override any GCC internal prototype to avoid an error.
110014:    Use char because int might match the return type of a GCC
110015:    builtin and then its argument prototype would still apply.  */
110016: #ifdef __cplusplus
110017: extern "C"
110018: #endif
110019: char dlopen ();
110020: int
110021: main ()
110022: {
110023: return dlopen ();
110024:   ;
110025:   return 0;
110026: }
110027: _ACEOF
110028: if ac_fn_c_try_link "$LINENO"; then :
110029:   ac_cv_lib_svld_dlopen=yes
110030: else
110031:   ac_cv_lib_svld_dlopen=no
110032: fi
110033: rm -f core conftest.err conftest.$ac_objext \
110034:     conftest$ac_exeext conftest.$ac_ext
110035: LIBS=$ac_check_lib_save_LIBS
110036: fi
110037: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
110038: $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
110039: if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
110040:   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
110041: else
110042:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
110043: $as_echo_n "checking for dld_link in -ldld... " >&6; }
110044: if ${ac_cv_lib_dld_dld_link+:} false; then :
110045:   $as_echo_n "(cached) " >&6
110046: else
110047:   ac_check_lib_save_LIBS=$LIBS
110048: LIBS="-ldld  $LIBS"
110049: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
110050: /* end confdefs.h.  */
110051: 
110052: /* Override any GCC internal prototype to avoid an error.
110053:    Use char because int might match the return type of a GCC
110054:    builtin and then its argument prototype would still apply.  */
110055: #ifdef __cplusplus
110056: extern "C"
110057: #endif
110058: char dld_link ();
110059: int
110060: main ()
110061: {
110062: return dld_link ();
110063:   ;
110064:   return 0;
110065: }
110066: _ACEOF
110067: if ac_fn_c_try_link "$LINENO"; then :
110068:   ac_cv_lib_dld_dld_link=yes
110069: else
110070:   ac_cv_lib_dld_dld_link=no
110071: fi
110072: rm -f core conftest.err conftest.$ac_objext \
110073:     conftest$ac_exeext conftest.$ac_ext
110074: LIBS=$ac_check_lib_save_LIBS
110075: fi
110076: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
110077: $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
110078: if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
110079:   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
110080: fi
110081: 
110082: 
110083: fi
110084: 
110085: 
110086: fi
110087: 
110088: 
110089: fi
110090: 
110091: 
110092: fi
110093: 
110094: 
110095: fi
110096: 
110097:     ;;
110098:   esac
110099: 
110100:   if test "x$lt_cv_dlopen" != xno; then
110101:     enable_dlopen=yes
110102:   else
110103:     enable_dlopen=no
110104:   fi
110105: 
110106:   case $lt_cv_dlopen in
110107:   dlopen)
110108:     save_CPPFLAGS="$CPPFLAGS"
110109:     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
110110: 
110111:     save_LDFLAGS="$LDFLAGS"
110112:     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
110113: 
110114:     save_LIBS="$LIBS"
110115:     LIBS="$lt_cv_dlopen_libs $LIBS"
110116: 
110117:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
110118: $as_echo_n "checking whether a program can dlopen itself... " >&6; }
110119: if ${lt_cv_dlopen_self+:} false; then :
110120:   $as_echo_n "(cached) " >&6
110121: else
110122:   	  if test "$cross_compiling" = yes; then :
110123:   lt_cv_dlopen_self=cross
110124: else
110125:   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
110126:   lt_status=$lt_dlunknown
110127:   cat > conftest.$ac_ext <<EOF
110128: #line 110128 "configure"
110129: #include "confdefs.h"
110130: 
110131: #if HAVE_DLFCN_H
110132: #include <dlfcn.h>
110133: #endif
110134: 
110135: #include <stdio.h>
110136: 
110137: #ifdef RTLD_GLOBAL
110138: #  define LT_DLGLOBAL		RTLD_GLOBAL
110139: #else
110140: #  ifdef DL_GLOBAL
110141: #    define LT_DLGLOBAL		DL_GLOBAL
110142: #  else
110143: #    define LT_DLGLOBAL		0
110144: #  endif
110145: #endif
110146: 
110147: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
110148:    find out it does not work in some platform. */
110149: #ifndef LT_DLLAZY_OR_NOW
110150: #  ifdef RTLD_LAZY
110151: #    define LT_DLLAZY_OR_NOW		RTLD_LAZY
110152: #  else
110153: #    ifdef DL_LAZY
110154: #      define LT_DLLAZY_OR_NOW		DL_LAZY
110155: #    else
110156: #      ifdef RTLD_NOW
110157: #        define LT_DLLAZY_OR_NOW	RTLD_NOW
110158: #      else
110159: #        ifdef DL_NOW
110160: #          define LT_DLLAZY_OR_NOW	DL_NOW
110161: #        else
110162: #          define LT_DLLAZY_OR_NOW	0
110163: #        endif
110164: #      endif
110165: #    endif
110166: #  endif
110167: #endif
110168: 
110169: #ifdef __cplusplus
110170: extern "C" void exit (int);
110171: #endif
110172: 
110173: void fnord() { int i=42;}
110174: int main ()
110175: {
110176:   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
110177:   int status = $lt_dlunknown;
110178: 
110179:   if (self)
110180:     {
110181:       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
110182:       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
110183:       /* dlclose (self); */
110184:     }
110185:   else
110186:     puts (dlerror ());
110187: 
110188:     exit (status);
110189: }
110190: EOF
110191:   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
110192:   (eval $ac_link) 2>&5
110193:   ac_status=$?
110194:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
110195:   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
110196:     (./conftest; exit; ) >&5 2>/dev/null
110197:     lt_status=$?
110198:     case x$lt_status in
110199:       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
110200:       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
110201:       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
110202:     esac
110203:   else :
110204:     # compilation failed
110205:     lt_cv_dlopen_self=no
110206:   fi
110207: fi
110208: rm -fr conftest*
110209: 
110210: 
110211: fi
110212: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
110213: $as_echo "$lt_cv_dlopen_self" >&6; }
110214: 
110215:     if test "x$lt_cv_dlopen_self" = xyes; then
110216:       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
110217:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
110218: $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
110219: if ${lt_cv_dlopen_self_static+:} false; then :
110220:   $as_echo_n "(cached) " >&6
110221: else
110222:   	  if test "$cross_compiling" = yes; then :
110223:   lt_cv_dlopen_self_static=cross
110224: else
110225:   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
110226:   lt_status=$lt_dlunknown
110227:   cat > conftest.$ac_ext <<EOF
110228: #line 110228 "configure"
110229: #include "confdefs.h"
110230: 
110231: #if HAVE_DLFCN_H
110232: #include <dlfcn.h>
110233: #endif
110234: 
110235: #include <stdio.h>
110236: 
110237: #ifdef RTLD_GLOBAL
110238: #  define LT_DLGLOBAL		RTLD_GLOBAL
110239: #else
110240: #  ifdef DL_GLOBAL
110241: #    define LT_DLGLOBAL		DL_GLOBAL
110242: #  else
110243: #    define LT_DLGLOBAL		0
110244: #  endif
110245: #endif
110246: 
110247: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
110248:    find out it does not work in some platform. */
110249: #ifndef LT_DLLAZY_OR_NOW
110250: #  ifdef RTLD_LAZY
110251: #    define LT_DLLAZY_OR_NOW		RTLD_LAZY
110252: #  else
110253: #    ifdef DL_LAZY
110254: #      define LT_DLLAZY_OR_NOW		DL_LAZY
110255: #    else
110256: #      ifdef RTLD_NOW
110257: #        define LT_DLLAZY_OR_NOW	RTLD_NOW
110258: #      else
110259: #        ifdef DL_NOW
110260: #          define LT_DLLAZY_OR_NOW	DL_NOW
110261: #        else
110262: #          define LT_DLLAZY_OR_NOW	0
110263: #        endif
110264: #      endif
110265: #    endif
110266: #  endif
110267: #endif
110268: 
110269: #ifdef __cplusplus
110270: extern "C" void exit (int);
110271: #endif
110272: 
110273: void fnord() { int i=42;}
110274: int main ()
110275: {
110276:   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
110277:   int status = $lt_dlunknown;
110278: 
110279:   if (self)
110280:     {
110281:       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
110282:       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
110283:       /* dlclose (self); */
110284:     }
110285:   else
110286:     puts (dlerror ());
110287: 
110288:     exit (status);
110289: }
110290: EOF
110291:   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
110292:   (eval $ac_link) 2>&5
110293:   ac_status=$?
110294:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
110295:   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
110296:     (./conftest; exit; ) >&5 2>/dev/null
110297:     lt_status=$?
110298:     case x$lt_status in
110299:       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
110300:       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
110301:       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
110302:     esac
110303:   else :
110304:     # compilation failed
110305:     lt_cv_dlopen_self_static=no
110306:   fi
110307: fi
110308: rm -fr conftest*
110309: 
110310: 
110311: fi
110312: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
110313: $as_echo "$lt_cv_dlopen_self_static" >&6; }
110314:     fi
110315: 
110316:     CPPFLAGS="$save_CPPFLAGS"
110317:     LDFLAGS="$save_LDFLAGS"
110318:     LIBS="$save_LIBS"
110319:     ;;
110320:   esac
110321: 
110322:   case $lt_cv_dlopen_self in
110323:   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
110324:   *) enable_dlopen_self=unknown ;;
110325:   esac
110326: 
110327:   case $lt_cv_dlopen_self_static in
110328:   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
110329:   *) enable_dlopen_self_static=unknown ;;
110330:   esac
110331: fi
110332: 
110333: 
110334: # Report which library types will actually be built
110335: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
110336: $as_echo_n "checking if libtool supports shared libraries... " >&6; }
110337: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
110338: $as_echo "$can_build_shared" >&6; }
110339: 
110340: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
110341: $as_echo_n "checking whether to build shared libraries... " >&6; }
110342: test "$can_build_shared" = "no" && enable_shared=no
110343: 
110344: # On AIX, shared libraries and static libraries use the same namespace, and
110345: # are all built from PIC.
110346: case $host_os in
110347: aix3*)
110348:   test "$enable_shared" = yes && enable_static=no
110349:   if test -n "$RANLIB"; then
110350:     archive_cmds="$archive_cmds~\$RANLIB \$lib"
110351:     postinstall_cmds='$RANLIB $lib'
110352:   fi
110353:   ;;
110354: 
110355: aix[4-9]*)
110356:   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
110357:     test "$enable_shared" = yes && enable_static=no
110358:   fi
110359:     ;;
110360: esac
110361: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
110362: $as_echo "$enable_shared" >&6; }
110363: 
110364: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
110365: $as_echo_n "checking whether to build static libraries... " >&6; }
110366: # Make sure either enable_shared or enable_static is yes.
110367: test "$enable_shared" = yes || enable_static=yes
110368: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
110369: $as_echo "$enable_static" >&6; }
110370: 
110371: # The else clause should only fire when bootstrapping the
110372: # libtool distribution, otherwise you forgot to ship ltmain.sh
110373: # with your package, and you will get complaints that there are
110374: # no rules to generate ltmain.sh.
110375: if test -f "$ltmain"; then
110376:   # See if we are running on zsh, and set the options which allow our commands through
110377:   # without removal of \ escapes.
110378:   if test -n "${ZSH_VERSION+set}" ; then
110379:     setopt NO_GLOB_SUBST
110380:   fi
110381:   # Now quote all the things that may contain metacharacters while being
110382:   # careful not to overquote the AC_SUBSTed values.  We take copies of the
110383:   # variables and quote the copies for generation of the libtool script.
110384:   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
110385:     SED SHELL STRIP \
110386:     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
110387:     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
110388:     deplibs_check_method reload_flag reload_cmds need_locks \
110389:     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
110390:     lt_cv_sys_global_symbol_to_c_name_address \
110391:     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
110392:     old_postinstall_cmds old_postuninstall_cmds \
110393:     compiler \
110394:     CC \
110395:     LD \
110396:     lt_prog_compiler_wl \
110397:     lt_prog_compiler_pic \
110398:     lt_prog_compiler_static \
110399:     lt_prog_compiler_no_builtin_flag \
110400:     export_dynamic_flag_spec \
110401:     thread_safe_flag_spec \
110402:     whole_archive_flag_spec \
110403:     enable_shared_with_static_runtimes \
110404:     old_archive_cmds \
110405:     old_archive_from_new_cmds \
110406:     predep_objects \
110407:     postdep_objects \
110408:     predeps \
110409:     postdeps \
110410:     compiler_lib_search_path \
110411:     compiler_lib_search_dirs \
110412:     archive_cmds \
110413:     archive_expsym_cmds \
110414:     postinstall_cmds \
110415:     postuninstall_cmds \
110416:     old_archive_from_expsyms_cmds \
110417:     allow_undefined_flag \
110418:     no_undefined_flag \
110419:     export_symbols_cmds \
110420:     hardcode_libdir_flag_spec \
110421:     hardcode_libdir_flag_spec_ld \
110422:     hardcode_libdir_separator \
110423:     hardcode_automatic \
110424:     module_cmds \
110425:     module_expsym_cmds \
110426:     lt_cv_prog_compiler_c_o \
110427:     fix_srcfile_path \
110428:     exclude_expsyms \
110429:     include_expsyms; do
110430: 
110431:     case $var in
110432:     old_archive_cmds | \
110433:     old_archive_from_new_cmds | \
110434:     archive_cmds | \
110435:     archive_expsym_cmds | \
110436:     module_cmds | \
110437:     module_expsym_cmds | \
110438:     old_archive_from_expsyms_cmds | \
110439:     export_symbols_cmds | \
110440:     extract_expsyms_cmds | reload_cmds | finish_cmds | \
110441:     postinstall_cmds | postuninstall_cmds | \
110442:     old_postinstall_cmds | old_postuninstall_cmds | \
110443:     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
110444:       # Double-quote double-evaled strings.
110445:       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
110446:       ;;
110447:     *)
110448:       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
110449:       ;;
110450:     esac
110451:   done
110452: 
110453:   case $lt_echo in
110454:   *'\$0 --fallback-echo"')
110455:     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
110456:     ;;
110457:   esac
110458: 
110459: cfgfile="${ofile}T"
110460:   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
110461:   $rm -f "$cfgfile"
110462:   { $as_echo "$as_me:${as_lineno-$LINENO}: result:
110463: creating $ofile" >&5
110464: $as_echo "
110465: creating $ofile" >&6; }
110466: 
110467:   cat <<__EOF__ >> "$cfgfile"
110468: #! $SHELL
110469: 
110470: # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
110471: # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
110472: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
110473: #
110474: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
110475: # Free Software Foundation, Inc.
110476: #
110477: # This file is part of GNU Libtool:
110478: # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
110479: #
110480: # This program is free software; you can redistribute it and/or modify
110481: # it under the terms of the GNU General Public License as published by
110482: # the Free Software Foundation; either version 2 of the License, or
110483: # (at your option) any later version.
110484: #
110485: # This program is distributed in the hope that it will be useful, but
110486: # WITHOUT ANY WARRANTY; without even the implied warranty of
110487: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
110488: # General Public License for more details.
110489: #
110490: # You should have received a copy of the GNU General Public License
110491: # along with this program; if not, write to the Free Software
110492: # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
110493: #
110494: # As a special exception to the GNU General Public License, if you
110495: # distribute this file as part of a program that contains a
110496: # configuration script generated by Autoconf, you may include it under
110497: # the same distribution terms that you use for the rest of that program.
110498: 
110499: # A sed program that does not truncate output.
110500: SED=$lt_SED
110501: 
110502: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
110503: Xsed="$SED -e 1s/^X//"
110504: 
110505: # The HP-UX ksh and POSIX shell print the target directory to stdout
110506: # if CDPATH is set.
110507: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
110508: 
110509: # The names of the tagged configurations supported by this script.
110510: available_tags=
110511: 
110512: # ### BEGIN LIBTOOL CONFIG
110513: 
110514: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
110515: 
110516: # Shell to use when invoking shell scripts.
110517: SHELL=$lt_SHELL
110518: 
110519: # Whether or not to build shared libraries.
110520: build_libtool_libs=$enable_shared
110521: 
110522: # Whether or not to build static libraries.
110523: build_old_libs=$enable_static
110524: 
110525: # Whether or not to add -lc for building shared libraries.
110526: build_libtool_need_lc=$archive_cmds_need_lc
110527: 
110528: # Whether or not to disallow shared libs when runtime libs are static
110529: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
110530: 
110531: # Whether or not to optimize for fast installation.
110532: fast_install=$enable_fast_install
110533: 
110534: # The host system.
110535: host_alias=$host_alias
110536: host=$host
110537: host_os=$host_os
110538: 
110539: # The build system.
110540: build_alias=$build_alias
110541: build=$build
110542: build_os=$build_os
110543: 
110544: # An echo program that does not interpret backslashes.
110545: echo=$lt_echo
110546: 
110547: # The archiver.
110548: AR=$lt_AR
110549: AR_FLAGS=$lt_AR_FLAGS
110550: 
110551: # A C compiler.
110552: LTCC=$lt_LTCC
110553: 
110554: # LTCC compiler flags.
110555: LTCFLAGS=$lt_LTCFLAGS
110556: 
110557: # A language-specific compiler.
110558: CC=$lt_compiler
110559: 
110560: # Is the compiler the GNU C compiler?
110561: with_gcc=$GCC
110562: 
110563: # An ERE matcher.
110564: EGREP=$lt_EGREP
110565: 
110566: # The linker used to build libraries.
110567: LD=$lt_LD
110568: 
110569: # Whether we need hard or soft links.
110570: LN_S=$lt_LN_S
110571: 
110572: # A BSD-compatible nm program.
110573: NM=$lt_NM
110574: 
110575: # A symbol stripping program
110576: STRIP=$lt_STRIP
110577: 
110578: # Used to examine libraries when file_magic_cmd begins "file"
110579: MAGIC_CMD=$MAGIC_CMD
110580: 
110581: # Used on cygwin: DLL creation program.
110582: DLLTOOL="$DLLTOOL"
110583: 
110584: # Used on cygwin: object dumper.
110585: OBJDUMP="$OBJDUMP"
110586: 
110587: # Used on cygwin: assembler.
110588: AS="$AS"
110589: 
110590: # The name of the directory that contains temporary libtool files.
110591: objdir=$objdir
110592: 
110593: # How to create reloadable object files.
110594: reload_flag=$lt_reload_flag
110595: reload_cmds=$lt_reload_cmds
110596: 
110597: # How to pass a linker flag through the compiler.
110598: wl=$lt_lt_prog_compiler_wl
110599: 
110600: # Object file suffix (normally "o").
110601: objext="$ac_objext"
110602: 
110603: # Old archive suffix (normally "a").
110604: libext="$libext"
110605: 
110606: # Shared library suffix (normally ".so").
110607: shrext_cmds='$shrext_cmds'
110608: 
110609: # Executable file suffix (normally "").
110610: exeext="$exeext"
110611: 
110612: # Additional compiler flags for building library objects.
110613: pic_flag=$lt_lt_prog_compiler_pic
110614: pic_mode=$pic_mode
110615: 
110616: # What is the maximum length of a command?
110617: max_cmd_len=$lt_cv_sys_max_cmd_len
110618: 
110619: # Does compiler simultaneously support -c and -o options?
110620: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
110621: 
110622: # Must we lock files when doing compilation?
110623: need_locks=$lt_need_locks
110624: 
110625: # Do we need the lib prefix for modules?
110626: need_lib_prefix=$need_lib_prefix
110627: 
110628: # Do we need a version for libraries?
110629: need_version=$need_version
110630: 
110631: # Whether dlopen is supported.
110632: dlopen_support=$enable_dlopen
110633: 
110634: # Whether dlopen of programs is supported.
110635: dlopen_self=$enable_dlopen_self
110636: 
110637: # Whether dlopen of statically linked programs is supported.
110638: dlopen_self_static=$enable_dlopen_self_static
110639: 
110640: # Compiler flag to prevent dynamic linking.
110641: link_static_flag=$lt_lt_prog_compiler_static
110642: 
110643: # Compiler flag to turn off builtin functions.
110644: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
110645: 
110646: # Compiler flag to allow reflexive dlopens.
110647: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
110648: 
110649: # Compiler flag to generate shared objects directly from archives.
110650: whole_archive_flag_spec=$lt_whole_archive_flag_spec
110651: 
110652: # Compiler flag to generate thread-safe objects.
110653: thread_safe_flag_spec=$lt_thread_safe_flag_spec
110654: 
110655: # Library versioning type.
110656: version_type=$version_type
110657: 
110658: # Format of library name prefix.
110659: libname_spec=$lt_libname_spec
110660: 
110661: # List of archive names.  First name is the real one, the rest are links.
110662: # The last name is the one that the linker finds with -lNAME.
110663: library_names_spec=$lt_library_names_spec
110664: 
110665: # The coded name of the library, if different from the real name.
110666: soname_spec=$lt_soname_spec
110667: 
110668: # Commands used to build and install an old-style archive.
110669: RANLIB=$lt_RANLIB
110670: old_archive_cmds=$lt_old_archive_cmds
110671: old_postinstall_cmds=$lt_old_postinstall_cmds
110672: old_postuninstall_cmds=$lt_old_postuninstall_cmds
110673: 
110674: # Create an old-style archive from a shared archive.
110675: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
110676: 
110677: # Create a temporary old-style archive to link instead of a shared archive.
110678: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
110679: 
110680: # Commands used to build and install a shared archive.
110681: archive_cmds=$lt_archive_cmds
110682: archive_expsym_cmds=$lt_archive_expsym_cmds
110683: postinstall_cmds=$lt_postinstall_cmds
110684: postuninstall_cmds=$lt_postuninstall_cmds
110685: 
110686: # Commands used to build a loadable module (assumed same as above if empty)
110687: module_cmds=$lt_module_cmds
110688: module_expsym_cmds=$lt_module_expsym_cmds
110689: 
110690: # Commands to strip libraries.
110691: old_striplib=$lt_old_striplib
110692: striplib=$lt_striplib
110693: 
110694: # Dependencies to place before the objects being linked to create a
110695: # shared library.
110696: predep_objects=$lt_predep_objects
110697: 
110698: # Dependencies to place after the objects being linked to create a
110699: # shared library.
110700: postdep_objects=$lt_postdep_objects
110701: 
110702: # Dependencies to place before the objects being linked to create a
110703: # shared library.
110704: predeps=$lt_predeps
110705: 
110706: # Dependencies to place after the objects being linked to create a
110707: # shared library.
110708: postdeps=$lt_postdeps
110709: 
110710: # The directories searched by this compiler when creating a shared
110711: # library
110712: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
110713: 
110714: # The library search path used internally by the compiler when linking
110715: # a shared library.
110716: compiler_lib_search_path=$lt_compiler_lib_search_path
110717: 
110718: # Method to check whether dependent libraries are shared objects.
110719: deplibs_check_method=$lt_deplibs_check_method
110720: 
110721: # Command to use when deplibs_check_method == file_magic.
110722: file_magic_cmd=$lt_file_magic_cmd
110723: 
110724: # Flag that allows shared libraries with undefined symbols to be built.
110725: allow_undefined_flag=$lt_allow_undefined_flag
110726: 
110727: # Flag that forces no undefined symbols.
110728: no_undefined_flag=$lt_no_undefined_flag
110729: 
110730: # Commands used to finish a libtool library installation in a directory.
110731: finish_cmds=$lt_finish_cmds
110732: 
110733: # Same as above, but a single script fragment to be evaled but not shown.
110734: finish_eval=$lt_finish_eval
110735: 
110736: # Take the output of nm and produce a listing of raw symbols and C names.
110737: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
110738: 
110739: # Transform the output of nm in a proper C declaration
110740: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
110741: 
110742: # Transform the output of nm in a C name address pair
110743: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
110744: 
110745: # This is the shared library runtime path variable.
110746: runpath_var=$runpath_var
110747: 
110748: # This is the shared library path variable.
110749: shlibpath_var=$shlibpath_var
110750: 
110751: # Is shlibpath searched before the hard-coded library search path?
110752: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
110753: 
110754: # How to hardcode a shared library path into an executable.
110755: hardcode_action=$hardcode_action
110756: 
110757: # Whether we should hardcode library paths into libraries.
110758: hardcode_into_libs=$hardcode_into_libs
110759: 
110760: # Flag to hardcode \$libdir into a binary during linking.
110761: # This must work even if \$libdir does not exist.
110762: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
110763: 
110764: # If ld is used when linking, flag to hardcode \$libdir into
110765: # a binary during linking. This must work even if \$libdir does
110766: # not exist.
110767: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
110768: 
110769: # Whether we need a single -rpath flag with a separated argument.
110770: hardcode_libdir_separator=$lt_hardcode_libdir_separator
110771: 
110772: # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
110773: # resulting binary.
110774: hardcode_direct=$hardcode_direct
110775: 
110776: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
110777: # resulting binary.
110778: hardcode_minus_L=$hardcode_minus_L
110779: 
110780: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
110781: # the resulting binary.
110782: hardcode_shlibpath_var=$hardcode_shlibpath_var
110783: 
110784: # Set to yes if building a shared library automatically hardcodes DIR into the library
110785: # and all subsequent libraries and executables linked against it.
110786: hardcode_automatic=$hardcode_automatic
110787: 
110788: # Variables whose values should be saved in libtool wrapper scripts and
110789: # restored at relink time.
110790: variables_saved_for_relink="$variables_saved_for_relink"
110791: 
110792: # Whether libtool must link a program against all its dependency libraries.
110793: link_all_deplibs=$link_all_deplibs
110794: 
110795: # Compile-time system search path for libraries
110796: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
110797: 
110798: # Run-time system search path for libraries
110799: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
110800: 
110801: # Fix the shell variable \$srcfile for the compiler.
110802: fix_srcfile_path=$lt_fix_srcfile_path
110803: 
110804: # Set to yes if exported symbols are required.
110805: always_export_symbols=$always_export_symbols
110806: 
110807: # The commands to list exported symbols.
110808: export_symbols_cmds=$lt_export_symbols_cmds
110809: 
110810: # The commands to extract the exported symbol list from a shared archive.
110811: extract_expsyms_cmds=$lt_extract_expsyms_cmds
110812: 
110813: # Symbols that should not be listed in the preloaded symbols.
110814: exclude_expsyms=$lt_exclude_expsyms
110815: 
110816: # Symbols that must always be exported.
110817: include_expsyms=$lt_include_expsyms
110818: 
110819: # ### END LIBTOOL CONFIG
110820: 
110821: __EOF__
110822: 
110823: 
110824:   case $host_os in
110825:   aix3*)
110826:     cat <<\EOF >> "$cfgfile"
110827: 
110828: # AIX sometimes has problems with the GCC collect2 program.  For some
110829: # reason, if we set the COLLECT_NAMES environment variable, the problems
110830: # vanish in a puff of smoke.
110831: if test "X${COLLECT_NAMES+set}" != Xset; then
110832:   COLLECT_NAMES=
110833:   export COLLECT_NAMES
110834: fi
110835: EOF
110836:     ;;
110837:   esac
110838: 
110839:   # We use sed instead of cat because bash on DJGPP gets confused if
110840:   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
110841:   # text mode, it properly converts lines to CR/LF.  This bash problem
110842:   # is reportedly fixed, but why not run on old versions too?
110843:   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
110844: 
110845:   mv -f "$cfgfile" "$ofile" || \
110846:     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
110847:   chmod +x "$ofile"
110848: 
110849: else
110850:   # If there is no Makefile yet, we rely on a make rule to execute
110851:   # `config.status --recheck' to rerun these tests and create the
110852:   # libtool script then.
110853:   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
110854:   if test -f "$ltmain_in"; then
110855:     test -f Makefile && make "$ltmain"
110856:   fi
110857: fi
110858: 
110859: 
110860: ac_ext=c
110861: ac_cpp='$CPP $CPPFLAGS'
110862: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
110863: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
110864: ac_compiler_gnu=$ac_cv_c_compiler_gnu
110865: 
110866: CC="$lt_save_CC"
110867: 
110868: 
110869: # Check whether --with-tags was given.
110870: if test "${with_tags+set}" = set; then :
110871:   withval=$with_tags; tagnames="$withval"
110872: fi
110873: 
110874: 
110875: if test -f "$ltmain" && test -n "$tagnames"; then
110876:   if test ! -f "${ofile}"; then
110877:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
110878: $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
110879:   fi
110880: 
110881:   if test -z "$LTCC"; then
110882:     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
110883:     if test -z "$LTCC"; then
110884:       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
110885: $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
110886:     else
110887:       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
110888: $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
110889:     fi
110890:   fi
110891:   if test -z "$LTCFLAGS"; then
110892:     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
110893:   fi
110894: 
110895:   # Extract list of available tagged configurations in $ofile.
110896:   # Note that this assumes the entire list is on one line.
110897:   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
110898: 
110899:   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
110900:   for tagname in $tagnames; do
110901:     IFS="$lt_save_ifs"
110902:     # Check whether tagname contains only valid characters
110903:     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
110904:     "") ;;
110905:     *)  as_fn_error $? "invalid tag name: $tagname" "$LINENO" 5
110906: 	;;
110907:     esac
110908: 
110909:     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
110910:     then
110911:       as_fn_error $? "tag name \"$tagname\" already exists" "$LINENO" 5
110912:     fi
110913: 
110914:     # Update the list of available tags.
110915:     if test -n "$tagname"; then
110916:       echo appending configuration tag \"$tagname\" to $ofile
110917: 
110918:       case $tagname in
110919:       CXX)
110920: 	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
110921: 	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
110922: 	    (test "X$CXX" != "Xg++"))) ; then
110923: 
110924: ac_ext=cpp
110925: ac_cpp='$CXXCPP $CPPFLAGS'
110926: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
110927: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
110928: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
110929: 
110930: 
110931: 
110932: 
110933: archive_cmds_need_lc_CXX=no
110934: allow_undefined_flag_CXX=
110935: always_export_symbols_CXX=no
110936: archive_expsym_cmds_CXX=
110937: export_dynamic_flag_spec_CXX=
110938: hardcode_direct_CXX=no
110939: hardcode_libdir_flag_spec_CXX=
110940: hardcode_libdir_flag_spec_ld_CXX=
110941: hardcode_libdir_separator_CXX=
110942: hardcode_minus_L_CXX=no
110943: hardcode_shlibpath_var_CXX=unsupported
110944: hardcode_automatic_CXX=no
110945: module_cmds_CXX=
110946: module_expsym_cmds_CXX=
110947: link_all_deplibs_CXX=unknown
110948: old_archive_cmds_CXX=$old_archive_cmds
110949: no_undefined_flag_CXX=
110950: whole_archive_flag_spec_CXX=
110951: enable_shared_with_static_runtimes_CXX=no
110952: 
110953: # Dependencies to place before and after the object being linked:
110954: predep_objects_CXX=
110955: postdep_objects_CXX=
110956: predeps_CXX=
110957: postdeps_CXX=
110958: compiler_lib_search_path_CXX=
110959: compiler_lib_search_dirs_CXX=
110960: 
110961: # Source file extension for C++ test sources.
110962: ac_ext=cpp
110963: 
110964: # Object file extension for compiled C++ test sources.
110965: objext=o
110966: objext_CXX=$objext
110967: 
110968: # Code to be used in simple compile tests
110969: lt_simple_compile_test_code="int some_variable = 0;"
110970: 
110971: # Code to be used in simple link tests
110972: lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
110973: 
110974: # ltmain only uses $CC for tagged configurations so make sure $CC is set.
110975: 
110976: # If no C compiler was specified, use CC.
110977: LTCC=${LTCC-"$CC"}
110978: 
110979: # If no C compiler flags were specified, use CFLAGS.
110980: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
110981: 
110982: # Allow CC to be a program name with arguments.
110983: compiler=$CC
110984: 
110985: 
110986: # save warnings/boilerplate of simple test code
110987: ac_outfile=conftest.$ac_objext
110988: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
110989: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
110990: _lt_compiler_boilerplate=`cat conftest.err`
110991: $rm conftest*
110992: 
110993: ac_outfile=conftest.$ac_objext
110994: echo "$lt_simple_link_test_code" >conftest.$ac_ext
110995: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
110996: _lt_linker_boilerplate=`cat conftest.err`
110997: $rm -r conftest*
110998: 
110999: 
111000: # Allow CC to be a program name with arguments.
111001: lt_save_CC=$CC
111002: lt_save_LD=$LD
111003: lt_save_GCC=$GCC
111004: GCC=$GXX
111005: lt_save_with_gnu_ld=$with_gnu_ld
111006: lt_save_path_LD=$lt_cv_path_LD
111007: if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
111008:   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
111009: else
111010:   unset lt_cv_prog_gnu_ld
111011: fi
111012: if test -n "${lt_cv_path_LDCXX+set}"; then
111013:   lt_cv_path_LD=$lt_cv_path_LDCXX
111014: else
111015:   unset lt_cv_path_LD
111016: fi
111017: test -z "${LDCXX+set}" || LD=$LDCXX
111018: CC=${CXX-"c++"}
111019: compiler=$CC
111020: compiler_CXX=$CC
111021: for cc_temp in $compiler""; do
111022:   case $cc_temp in
111023:     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
111024:     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
111025:     \-*) ;;
111026:     *) break;;
111027:   esac
111028: done
111029: cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
111030: 
111031: 
111032: # We don't want -fno-exception wen compiling C++ code, so set the
111033: # no_builtin_flag separately
111034: if test "$GXX" = yes; then
111035:   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
111036: else
111037:   lt_prog_compiler_no_builtin_flag_CXX=
111038: fi
111039: 
111040: if test "$GXX" = yes; then
111041:   # Set up default GNU C++ configuration
111042: 
111043: 
111044: # Check whether --with-gnu-ld was given.
111045: if test "${with_gnu_ld+set}" = set; then :
111046:   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
111047: else
111048:   with_gnu_ld=no
111049: fi
111050: 
111051: ac_prog=ld
111052: if test "$GCC" = yes; then
111053:   # Check if gcc -print-prog-name=ld gives a path.
111054:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
111055: $as_echo_n "checking for ld used by $CC... " >&6; }
111056:   case $host in
111057:   *-*-mingw*)
111058:     # gcc leaves a trailing carriage return which upsets mingw
111059:     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
111060:   *)
111061:     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
111062:   esac
111063:   case $ac_prog in
111064:     # Accept absolute paths.
111065:     [\\/]* | ?:[\\/]*)
111066:       re_direlt='/[^/][^/]*/\.\./'
111067:       # Canonicalize the pathname of ld
111068:       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
111069:       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
111070: 	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
111071:       done
111072:       test -z "$LD" && LD="$ac_prog"
111073:       ;;
111074:   "")
111075:     # If it fails, then pretend we aren't using GCC.
111076:     ac_prog=ld
111077:     ;;
111078:   *)
111079:     # If it is relative, then search for the first ld in PATH.
111080:     with_gnu_ld=unknown
111081:     ;;
111082:   esac
111083: elif test "$with_gnu_ld" = yes; then
111084:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
111085: $as_echo_n "checking for GNU ld... " >&6; }
111086: else
111087:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
111088: $as_echo_n "checking for non-GNU ld... " >&6; }
111089: fi
111090: if ${lt_cv_path_LD+:} false; then :
111091:   $as_echo_n "(cached) " >&6
111092: else
111093:   if test -z "$LD"; then
111094:   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
111095:   for ac_dir in $PATH; do
111096:     IFS="$lt_save_ifs"
111097:     test -z "$ac_dir" && ac_dir=.
111098:     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
111099:       lt_cv_path_LD="$ac_dir/$ac_prog"
111100:       # Check to see if the program is GNU ld.  I'd rather use --version,
111101:       # but apparently some variants of GNU ld only accept -v.
111102:       # Break only if it was the GNU/non-GNU ld that we prefer.
111103:       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
111104:       *GNU* | *'with BFD'*)
111105: 	test "$with_gnu_ld" != no && break
111106: 	;;
111107:       *)
111108: 	test "$with_gnu_ld" != yes && break
111109: 	;;
111110:       esac
111111:     fi
111112:   done
111113:   IFS="$lt_save_ifs"
111114: else
111115:   lt_cv_path_LD="$LD" # Let the user override the test with a path.
111116: fi
111117: fi
111118: 
111119: LD="$lt_cv_path_LD"
111120: if test -n "$LD"; then
111121:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
111122: $as_echo "$LD" >&6; }
111123: else
111124:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
111125: $as_echo "no" >&6; }
111126: fi
111127: test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
111128: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
111129: $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
111130: if ${lt_cv_prog_gnu_ld+:} false; then :
111131:   $as_echo_n "(cached) " >&6
111132: else
111133:   # I'd rather use --version here, but apparently some GNU lds only accept -v.
111134: case `$LD -v 2>&1 </dev/null` in
111135: *GNU* | *'with BFD'*)
111136:   lt_cv_prog_gnu_ld=yes
111137:   ;;
111138: *)
111139:   lt_cv_prog_gnu_ld=no
111140:   ;;
111141: esac
111142: fi
111143: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
111144: $as_echo "$lt_cv_prog_gnu_ld" >&6; }
111145: with_gnu_ld=$lt_cv_prog_gnu_ld
111146: 
111147: 
111148: 
111149:   # Check if GNU C++ uses GNU ld as the underlying linker, since the
111150:   # archiving commands below assume that GNU ld is being used.
111151:   if test "$with_gnu_ld" = yes; then
111152:     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
111153:     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'
111154: 
111155:     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
111156:     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
111157: 
111158:     # If archive_cmds runs LD, not CC, wlarc should be empty
111159:     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
111160:     #     investigate it a little bit more. (MM)
111161:     wlarc='${wl}'
111162: 
111163:     # ancient GNU ld didn't support --whole-archive et. al.
111164:     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
111165: 	grep 'no-whole-archive' > /dev/null; then
111166:       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
111167:     else
111168:       whole_archive_flag_spec_CXX=
111169:     fi
111170:   else
111171:     with_gnu_ld=no
111172:     wlarc=
111173: 
111174:     # A generic and very simple default shared library creation
111175:     # command for GNU C++ for the case where it uses the native
111176:     # linker, instead of GNU ld.  If possible, this setting should
111177:     # overridden to take advantage of the native linker features on
111178:     # the platform it is being used on.
111179:     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
111180:   fi
111181: 
111182:   # Commands to make compiler produce verbose output that lists
111183:   # what "hidden" libraries, object files and flags are used when
111184:   # linking a shared library.
111185:   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
111186: 
111187: else
111188:   GXX=no
111189:   with_gnu_ld=no
111190:   wlarc=
111191: fi
111192: 
111193: # PORTME: fill in a description of your system's C++ link characteristics
111194: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
111195: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
111196: ld_shlibs_CXX=yes
111197: case $host_os in
111198:   aix3*)
111199:     # FIXME: insert proper C++ library support
111200:     ld_shlibs_CXX=no
111201:     ;;
111202:   aix[4-9]*)
111203:     if test "$host_cpu" = ia64; then
111204:       # On IA64, the linker does run time linking by default, so we don't
111205:       # have to do anything special.
111206:       aix_use_runtimelinking=no
111207:       exp_sym_flag='-Bexport'
111208:       no_entry_flag=""
111209:     else
111210:       aix_use_runtimelinking=no
111211: 
111212:       # Test if we are trying to use run time linking or normal
111213:       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
111214:       # need to do runtime linking.
111215:       case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
111216: 	for ld_flag in $LDFLAGS; do
111217: 	  case $ld_flag in
111218: 	  *-brtl*)
111219: 	    aix_use_runtimelinking=yes
111220: 	    break
111221: 	    ;;
111222: 	  esac
111223: 	done
111224: 	;;
111225:       esac
111226: 
111227:       exp_sym_flag='-bexport'
111228:       no_entry_flag='-bnoentry'
111229:     fi
111230: 
111231:     # When large executables or shared objects are built, AIX ld can
111232:     # have problems creating the table of contents.  If linking a library
111233:     # or program results in "error TOC overflow" add -mminimal-toc to
111234:     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
111235:     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
111236: 
111237:     archive_cmds_CXX=''
111238:     hardcode_direct_CXX=yes
111239:     hardcode_libdir_separator_CXX=':'
111240:     link_all_deplibs_CXX=yes
111241: 
111242:     if test "$GXX" = yes; then
111243:       case $host_os in aix4.[012]|aix4.[012].*)
111244:       # We only want to do this on AIX 4.2 and lower, the check
111245:       # below for broken collect2 doesn't work under 4.3+
111246: 	collect2name=`${CC} -print-prog-name=collect2`
111247: 	if test -f "$collect2name" && \
111248: 	   strings "$collect2name" | grep resolve_lib_name >/dev/null
111249: 	then
111250: 	  # We have reworked collect2
111251: 	  :
111252: 	else
111253: 	  # We have old collect2
111254: 	  hardcode_direct_CXX=unsupported
111255: 	  # It fails to find uninstalled libraries when the uninstalled
111256: 	  # path is not listed in the libpath.  Setting hardcode_minus_L
111257: 	  # to unsupported forces relinking
111258: 	  hardcode_minus_L_CXX=yes
111259: 	  hardcode_libdir_flag_spec_CXX='-L$libdir'
111260: 	  hardcode_libdir_separator_CXX=
111261: 	fi
111262: 	;;
111263:       esac
111264:       shared_flag='-shared'
111265:       if test "$aix_use_runtimelinking" = yes; then
111266: 	shared_flag="$shared_flag "'${wl}-G'
111267:       fi
111268:     else
111269:       # not using gcc
111270:       if test "$host_cpu" = ia64; then
111271: 	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
111272: 	# chokes on -Wl,-G. The following line is correct:
111273: 	shared_flag='-G'
111274:       else
111275: 	if test "$aix_use_runtimelinking" = yes; then
111276: 	  shared_flag='${wl}-G'
111277: 	else
111278: 	  shared_flag='${wl}-bM:SRE'
111279: 	fi
111280:       fi
111281:     fi
111282: 
111283:     # It seems that -bexpall does not export symbols beginning with
111284:     # underscore (_), so it is better to generate a list of symbols to export.
111285:     always_export_symbols_CXX=yes
111286:     if test "$aix_use_runtimelinking" = yes; then
111287:       # Warning - without using the other runtime loading flags (-brtl),
111288:       # -berok will link without error, but may produce a broken library.
111289:       allow_undefined_flag_CXX='-berok'
111290:       # Determine the default libpath from the value encoded in an empty executable.
111291: 
111292: cat > conftest.$ac_ext <<EOF
111293: #line 111293 "configure"
111294: #include "confdefs.h"
111295: int main() {
111296: ; return 0; }
111297: EOF
111298: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
111299:   (eval $ac_link) 2>&5
111300:   ac_status=$?
111301:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
111302:   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
111303: 
111304: lt_aix_libpath_sed='
111305:     /Import File Strings/,/^$/ {
111306: 	/^0/ {
111307: 	    s/^0  *\(.*\)$/\1/
111308: 	    p
111309: 	}
111310:     }'
111311: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
111312: # Check for a 64-bit object if we didn't find anything.
111313: if test -z "$aix_libpath"; then
111314:   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
111315: fi
111316:   rm -rf conftest*
111317: else
111318:   echo "configure: failed program was:" >&5
111319:   cat conftest.$ac_ext >&6
111320: fi
111321: rm -f conftest*
111322: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
111323: 
111324:       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
111325: 
111326:       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"
111327:      else
111328:       if test "$host_cpu" = ia64; then
111329: 	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
111330: 	allow_undefined_flag_CXX="-z nodefs"
111331: 	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"
111332:       else
111333: 	# Determine the default libpath from the value encoded in an empty executable.
111334: 
111335: cat > conftest.$ac_ext <<EOF
111336: #line 111336 "configure"
111337: #include "confdefs.h"
111338: int main() {
111339: ; return 0; }
111340: EOF
111341: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
111342:   (eval $ac_link) 2>&5
111343:   ac_status=$?
111344:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
111345:   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
111346: 
111347: lt_aix_libpath_sed='
111348:     /Import File Strings/,/^$/ {
111349: 	/^0/ {
111350: 	    s/^0  *\(.*\)$/\1/
111351: 	    p
111352: 	}
111353:     }'
111354: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
111355: # Check for a 64-bit object if we didn't find anything.
111356: if test -z "$aix_libpath"; then
111357:   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
111358: fi
111359:   rm -rf conftest*
111360: else
111361:   echo "configure: failed program was:" >&5
111362:   cat conftest.$ac_ext >&6
111363: fi
111364: rm -f conftest*
111365: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
111366: 
111367: 	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
111368: 	# Warning - without using the other run time loading flags,
111369: 	# -berok will link without error, but may produce a broken library.
111370: 	no_undefined_flag_CXX=' ${wl}-bernotok'
111371: 	allow_undefined_flag_CXX=' ${wl}-berok'
111372: 	# Exported symbols can be pulled into shared objects from archives
111373: 	whole_archive_flag_spec_CXX='$convenience'
111374: 	archive_cmds_need_lc_CXX=yes
111375: 	# This is similar to how AIX traditionally builds its shared libraries.
111376: 	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'
111377:       fi
111378:     fi
111379:     ;;
111380: 
111381:   beos*)
111382:     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
111383:       allow_undefined_flag_CXX=unsupported
111384:       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
111385:       # support --undefined.  This deserves some investigation.  FIXME
111386:       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
111387:     else
111388:       ld_shlibs_CXX=no
111389:     fi
111390:     ;;
111391: 
111392:   chorus*)
111393:     case $cc_basename in
111394:       *)
111395: 	# FIXME: insert proper C++ library support
111396: 	ld_shlibs_CXX=no
111397: 	;;
111398:     esac
111399:     ;;
111400: 
111401:   cygwin* | mingw* | pw32*)
111402:     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
111403:     # as there is no search path for DLLs.
111404:     hardcode_libdir_flag_spec_CXX='-L$libdir'
111405:     allow_undefined_flag_CXX=unsupported
111406:     always_export_symbols_CXX=no
111407:     enable_shared_with_static_runtimes_CXX=yes
111408: 
111409:     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
111410:       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'
111411:       # If the export-symbols file already is a .def file (1st line
111412:       # is EXPORTS), use it as is; otherwise, prepend...
111413:       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
111414: 	cp $export_symbols $output_objdir/$soname.def;
111415:       else
111416: 	echo EXPORTS > $output_objdir/$soname.def;
111417: 	cat $export_symbols >> $output_objdir/$soname.def;
111418:       fi~
111419:       $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'
111420:     else
111421:       ld_shlibs_CXX=no
111422:     fi
111423:   ;;
111424:       darwin* | rhapsody*)
111425:       archive_cmds_need_lc_CXX=no
111426:       hardcode_direct_CXX=no
111427:       hardcode_automatic_CXX=yes
111428:       hardcode_shlibpath_var_CXX=unsupported
111429:       whole_archive_flag_spec_CXX=''
111430:       link_all_deplibs_CXX=yes
111431:       allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
111432:       if test "$GXX" = yes ; then
111433:       output_verbose_link_cmd='echo'
111434:       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}"
111435:       module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
111436:       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}"
111437:       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}"
111438:       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
111439:         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}"
111440:         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}"
111441:       fi
111442:       else
111443:       case $cc_basename in
111444:         xlc*)
111445:          output_verbose_link_cmd='echo'
111446:           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'
111447:           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
111448:           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
111449:           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}'
111450:           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}'
111451:           ;;
111452:        *)
111453:          ld_shlibs_CXX=no
111454:           ;;
111455:       esac
111456:       fi
111457:         ;;
111458: 
111459:   dgux*)
111460:     case $cc_basename in
111461:       ec++*)
111462: 	# FIXME: insert proper C++ library support
111463: 	ld_shlibs_CXX=no
111464: 	;;
111465:       ghcx*)
111466: 	# Green Hills C++ Compiler
111467: 	# FIXME: insert proper C++ library support
111468: 	ld_shlibs_CXX=no
111469: 	;;
111470:       *)
111471: 	# FIXME: insert proper C++ library support
111472: 	ld_shlibs_CXX=no
111473: 	;;
111474:     esac
111475:     ;;
111476:   freebsd[12]*)
111477:     # C++ shared libraries reported to be fairly broken before switch to ELF
111478:     ld_shlibs_CXX=no
111479:     ;;
111480:   freebsd-elf*)
111481:     archive_cmds_need_lc_CXX=no
111482:     ;;
111483:   freebsd* | dragonfly*)
111484:     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
111485:     # conventions
111486:     ld_shlibs_CXX=yes
111487:     ;;
111488:   gnu*)
111489:     ;;
111490:   hpux9*)
111491:     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
111492:     hardcode_libdir_separator_CXX=:
111493:     export_dynamic_flag_spec_CXX='${wl}-E'
111494:     hardcode_direct_CXX=yes
111495:     hardcode_minus_L_CXX=yes # Not in the search PATH,
111496: 				# but as the default
111497: 				# location of the library.
111498: 
111499:     case $cc_basename in
111500:     CC*)
111501:       # FIXME: insert proper C++ library support
111502:       ld_shlibs_CXX=no
111503:       ;;
111504:     aCC*)
111505:       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'
111506:       # Commands to make compiler produce verbose output that lists
111507:       # what "hidden" libraries, object files and flags are used when
111508:       # linking a shared library.
111509:       #
111510:       # There doesn't appear to be a way to prevent this compiler from
111511:       # explicitly linking system object files so we need to strip them
111512:       # from the output so that they don't get included in the library
111513:       # dependencies.
111514:       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'
111515:       ;;
111516:     *)
111517:       if test "$GXX" = yes; then
111518:         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'
111519:       else
111520:         # FIXME: insert proper C++ library support
111521:         ld_shlibs_CXX=no
111522:       fi
111523:       ;;
111524:     esac
111525:     ;;
111526:   hpux10*|hpux11*)
111527:     if test $with_gnu_ld = no; then
111528:       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
111529:       hardcode_libdir_separator_CXX=:
111530: 
111531:       case $host_cpu in
111532:       hppa*64*|ia64*) ;;
111533:       *)
111534: 	export_dynamic_flag_spec_CXX='${wl}-E'
111535:         ;;
111536:       esac
111537:     fi
111538:     case $host_cpu in
111539:     hppa*64*|ia64*)
111540:       hardcode_direct_CXX=no
111541:       hardcode_shlibpath_var_CXX=no
111542:       ;;
111543:     *)
111544:       hardcode_direct_CXX=yes
111545:       hardcode_minus_L_CXX=yes # Not in the search PATH,
111546: 					      # but as the default
111547: 					      # location of the library.
111548:       ;;
111549:     esac
111550: 
111551:     case $cc_basename in
111552:       CC*)
111553: 	# FIXME: insert proper C++ library support
111554: 	ld_shlibs_CXX=no
111555: 	;;
111556:       aCC*)
111557: 	case $host_cpu in
111558: 	hppa*64*)
111559: 	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
111560: 	  ;;
111561: 	ia64*)
111562: 	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
111563: 	  ;;
111564: 	*)
111565: 	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
111566: 	  ;;
111567: 	esac
111568: 	# Commands to make compiler produce verbose output that lists
111569: 	# what "hidden" libraries, object files and flags are used when
111570: 	# linking a shared library.
111571: 	#
111572: 	# There doesn't appear to be a way to prevent this compiler from
111573: 	# explicitly linking system object files so we need to strip them
111574: 	# from the output so that they don't get included in the library
111575: 	# dependencies.
111576: 	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'
111577: 	;;
111578:       *)
111579: 	if test "$GXX" = yes; then
111580: 	  if test $with_gnu_ld = no; then
111581: 	    case $host_cpu in
111582: 	    hppa*64*)
111583: 	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
111584: 	      ;;
111585: 	    ia64*)
111586: 	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
111587: 	      ;;
111588: 	    *)
111589: 	      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'
111590: 	      ;;
111591: 	    esac
111592: 	  fi
111593: 	else
111594: 	  # FIXME: insert proper C++ library support
111595: 	  ld_shlibs_CXX=no
111596: 	fi
111597: 	;;
111598:     esac
111599:     ;;
111600:   interix[3-9]*)
111601:     hardcode_direct_CXX=no
111602:     hardcode_shlibpath_var_CXX=no
111603:     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
111604:     export_dynamic_flag_spec_CXX='${wl}-E'
111605:     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
111606:     # Instead, shared libraries are loaded at an image base (0x10000000 by
111607:     # default) and relocated if they conflict, which is a slow very memory
111608:     # consuming and fragmenting process.  To avoid this, we pick a random,
111609:     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
111610:     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
111611:     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'
111612:     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'
111613:     ;;
111614:   irix5* | irix6*)
111615:     case $cc_basename in
111616:       CC*)
111617: 	# SGI C++
111618: 	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'
111619: 
111620: 	# Archives containing C++ object files must be created using
111621: 	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
111622: 	# necessary to make sure instantiated templates are included
111623: 	# in the archive.
111624: 	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
111625: 	;;
111626:       *)
111627: 	if test "$GXX" = yes; then
111628: 	  if test "$with_gnu_ld" = no; then
111629: 	    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'
111630: 	  else
111631: 	    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'
111632: 	  fi
111633: 	fi
111634: 	link_all_deplibs_CXX=yes
111635: 	;;
111636:     esac
111637:     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
111638:     hardcode_libdir_separator_CXX=:
111639:     ;;
111640:   linux* | k*bsd*-gnu)
111641:     case $cc_basename in
111642:       KCC*)
111643: 	# Kuck and Associates, Inc. (KAI) C++ Compiler
111644: 
111645: 	# KCC will only create a shared library if the output file
111646: 	# ends with ".so" (or ".sl" for HP-UX), so rename the library
111647: 	# to its proper name (with version) after linking.
111648: 	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'
111649: 	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'
111650: 	# Commands to make compiler produce verbose output that lists
111651: 	# what "hidden" libraries, object files and flags are used when
111652: 	# linking a shared library.
111653: 	#
111654: 	# There doesn't appear to be a way to prevent this compiler from
111655: 	# explicitly linking system object files so we need to strip them
111656: 	# from the output so that they don't get included in the library
111657: 	# dependencies.
111658: 	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'
111659: 
111660: 	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
111661: 	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
111662: 
111663: 	# Archives containing C++ object files must be created using
111664: 	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
111665: 	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
111666: 	;;
111667:       icpc*)
111668: 	# Intel C++
111669: 	with_gnu_ld=yes
111670: 	# version 8.0 and above of icpc choke on multiply defined symbols
111671: 	# if we add $predep_objects and $postdep_objects, however 7.1 and
111672: 	# earlier do not add the objects themselves.
111673: 	case `$CC -V 2>&1` in
111674: 	*"Version 7."*)
111675:   	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
111676:   	  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'
111677: 	  ;;
111678: 	*)  # Version 8.0 or newer
111679: 	  tmp_idyn=
111680: 	  case $host_cpu in
111681: 	    ia64*) tmp_idyn=' -i_dynamic';;
111682: 	  esac
111683:   	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
111684: 	  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'
111685: 	  ;;
111686: 	esac
111687: 	archive_cmds_need_lc_CXX=no
111688: 	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
111689: 	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
111690: 	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
111691: 	;;
111692:       pgCC* | pgcpp*)
111693:         # Portland Group C++ compiler
111694: 	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
111695:   	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'
111696: 
111697: 	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
111698: 	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
111699: 	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'
111700:         ;;
111701:       cxx*)
111702: 	# Compaq C++
111703: 	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
111704: 	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'
111705: 
111706: 	runpath_var=LD_RUN_PATH
111707: 	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
111708: 	hardcode_libdir_separator_CXX=:
111709: 
111710: 	# Commands to make compiler produce verbose output that lists
111711: 	# what "hidden" libraries, object files and flags are used when
111712: 	# linking a shared library.
111713: 	#
111714: 	# There doesn't appear to be a way to prevent this compiler from
111715: 	# explicitly linking system object files so we need to strip them
111716: 	# from the output so that they don't get included in the library
111717: 	# dependencies.
111718: 	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'
111719: 	;;
111720:       *)
111721: 	case `$CC -V 2>&1 | sed 5q` in
111722: 	*Sun\ C*)
111723: 	  # Sun C++ 5.9
111724: 	  no_undefined_flag_CXX=' -zdefs'
111725: 	  archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
111726: 	  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'
111727: 	  hardcode_libdir_flag_spec_CXX='-R$libdir'
111728: 	  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'
111729: 
111730: 	  # Not sure whether something based on
111731: 	  # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
111732: 	  # would be better.
111733: 	  output_verbose_link_cmd='echo'
111734: 
111735: 	  # Archives containing C++ object files must be created using
111736: 	  # "CC -xar", where "CC" is the Sun C++ compiler.  This is
111737: 	  # necessary to make sure instantiated templates are included
111738: 	  # in the archive.
111739: 	  old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
111740: 	  ;;
111741: 	esac
111742: 	;;
111743:     esac
111744:     ;;
111745:   lynxos*)
111746:     # FIXME: insert proper C++ library support
111747:     ld_shlibs_CXX=no
111748:     ;;
111749:   m88k*)
111750:     # FIXME: insert proper C++ library support
111751:     ld_shlibs_CXX=no
111752:     ;;
111753:   mvs*)
111754:     case $cc_basename in
111755:       cxx*)
111756: 	# FIXME: insert proper C++ library support
111757: 	ld_shlibs_CXX=no
111758: 	;;
111759:       *)
111760: 	# FIXME: insert proper C++ library support
111761: 	ld_shlibs_CXX=no
111762: 	;;
111763:     esac
111764:     ;;
111765:   netbsd*)
111766:     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
111767:       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
111768:       wlarc=
111769:       hardcode_libdir_flag_spec_CXX='-R$libdir'
111770:       hardcode_direct_CXX=yes
111771:       hardcode_shlibpath_var_CXX=no
111772:     fi
111773:     # Workaround some broken pre-1.5 toolchains
111774:     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
111775:     ;;
111776:   openbsd2*)
111777:     # C++ shared libraries are fairly broken
111778:     ld_shlibs_CXX=no
111779:     ;;
111780:   openbsd*)
111781:     if test -f /usr/libexec/ld.so; then
111782:       hardcode_direct_CXX=yes
111783:       hardcode_shlibpath_var_CXX=no
111784:       archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
111785:       hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
111786:       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
111787: 	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
111788: 	export_dynamic_flag_spec_CXX='${wl}-E'
111789: 	whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
111790:       fi
111791:       output_verbose_link_cmd='echo'
111792:     else
111793:       ld_shlibs_CXX=no
111794:     fi
111795:     ;;
111796:   osf3*)
111797:     case $cc_basename in
111798:       KCC*)
111799: 	# Kuck and Associates, Inc. (KAI) C++ Compiler
111800: 
111801: 	# KCC will only create a shared library if the output file
111802: 	# ends with ".so" (or ".sl" for HP-UX), so rename the library
111803: 	# to its proper name (with version) after linking.
111804: 	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'
111805: 
111806: 	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
111807: 	hardcode_libdir_separator_CXX=:
111808: 
111809: 	# Archives containing C++ object files must be created using
111810: 	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
111811: 	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
111812: 
111813: 	;;
111814:       RCC*)
111815: 	# Rational C++ 2.4.1
111816: 	# FIXME: insert proper C++ library support
111817: 	ld_shlibs_CXX=no
111818: 	;;
111819:       cxx*)
111820: 	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
111821: 	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'
111822: 
111823: 	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
111824: 	hardcode_libdir_separator_CXX=:
111825: 
111826: 	# Commands to make compiler produce verbose output that lists
111827: 	# what "hidden" libraries, object files and flags are used when
111828: 	# linking a shared library.
111829: 	#
111830: 	# There doesn't appear to be a way to prevent this compiler from
111831: 	# explicitly linking system object files so we need to strip them
111832: 	# from the output so that they don't get included in the library
111833: 	# dependencies.
111834: 	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'
111835: 	;;
111836:       *)
111837: 	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
111838: 	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
111839: 	  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'
111840: 
111841: 	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
111842: 	  hardcode_libdir_separator_CXX=:
111843: 
111844: 	  # Commands to make compiler produce verbose output that lists
111845: 	  # what "hidden" libraries, object files and flags are used when
111846: 	  # linking a shared library.
111847: 	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
111848: 
111849: 	else
111850: 	  # FIXME: insert proper C++ library support
111851: 	  ld_shlibs_CXX=no
111852: 	fi
111853: 	;;
111854:     esac
111855:     ;;
111856:   osf4* | osf5*)
111857:     case $cc_basename in
111858:       KCC*)
111859: 	# Kuck and Associates, Inc. (KAI) C++ Compiler
111860: 
111861: 	# KCC will only create a shared library if the output file
111862: 	# ends with ".so" (or ".sl" for HP-UX), so rename the library
111863: 	# to its proper name (with version) after linking.
111864: 	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'
111865: 
111866: 	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
111867: 	hardcode_libdir_separator_CXX=:
111868: 
111869: 	# Archives containing C++ object files must be created using
111870: 	# the KAI C++ compiler.
111871: 	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
111872: 	;;
111873:       RCC*)
111874: 	# Rational C++ 2.4.1
111875: 	# FIXME: insert proper C++ library support
111876: 	ld_shlibs_CXX=no
111877: 	;;
111878:       cxx*)
111879: 	allow_undefined_flag_CXX=' -expect_unresolved \*'
111880: 	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'
111881: 	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
111882: 	  echo "-hidden">> $lib.exp~
111883: 	  $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~
111884: 	  $rm $lib.exp'
111885: 
111886: 	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
111887: 	hardcode_libdir_separator_CXX=:
111888: 
111889: 	# Commands to make compiler produce verbose output that lists
111890: 	# what "hidden" libraries, object files and flags are used when
111891: 	# linking a shared library.
111892: 	#
111893: 	# There doesn't appear to be a way to prevent this compiler from
111894: 	# explicitly linking system object files so we need to strip them
111895: 	# from the output so that they don't get included in the library
111896: 	# dependencies.
111897: 	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'
111898: 	;;
111899:       *)
111900: 	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
111901: 	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
111902: 	 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'
111903: 
111904: 	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
111905: 	  hardcode_libdir_separator_CXX=:
111906: 
111907: 	  # Commands to make compiler produce verbose output that lists
111908: 	  # what "hidden" libraries, object files and flags are used when
111909: 	  # linking a shared library.
111910: 	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
111911: 
111912: 	else
111913: 	  # FIXME: insert proper C++ library support
111914: 	  ld_shlibs_CXX=no
111915: 	fi
111916: 	;;
111917:     esac
111918:     ;;
111919:   psos*)
111920:     # FIXME: insert proper C++ library support
111921:     ld_shlibs_CXX=no
111922:     ;;
111923:   sunos4*)
111924:     case $cc_basename in
111925:       CC*)
111926: 	# Sun C++ 4.x
111927: 	# FIXME: insert proper C++ library support
111928: 	ld_shlibs_CXX=no
111929: 	;;
111930:       lcc*)
111931: 	# Lucid
111932: 	# FIXME: insert proper C++ library support
111933: 	ld_shlibs_CXX=no
111934: 	;;
111935:       *)
111936: 	# FIXME: insert proper C++ library support
111937: 	ld_shlibs_CXX=no
111938: 	;;
111939:     esac
111940:     ;;
111941:   solaris*)
111942:     case $cc_basename in
111943:       CC*)
111944: 	# Sun C++ 4.2, 5.x and Centerline C++
111945:         archive_cmds_need_lc_CXX=yes
111946: 	no_undefined_flag_CXX=' -zdefs'
111947: 	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
111948: 	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
111949: 	$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'
111950: 
111951: 	hardcode_libdir_flag_spec_CXX='-R$libdir'
111952: 	hardcode_shlibpath_var_CXX=no
111953: 	case $host_os in
111954: 	  solaris2.[0-5] | solaris2.[0-5].*) ;;
111955: 	  *)
111956: 	    # The compiler driver will combine and reorder linker options,
111957: 	    # but understands `-z linker_flag'.
111958: 	    # Supported since Solaris 2.6 (maybe 2.5.1?)
111959: 	    whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
111960: 	    ;;
111961: 	esac
111962: 	link_all_deplibs_CXX=yes
111963: 
111964: 	output_verbose_link_cmd='echo'
111965: 
111966: 	# Archives containing C++ object files must be created using
111967: 	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
111968: 	# necessary to make sure instantiated templates are included
111969: 	# in the archive.
111970: 	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
111971: 	;;
111972:       gcx*)
111973: 	# Green Hills C++ Compiler
111974: 	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
111975: 
111976: 	# The C++ compiler must be used to create the archive.
111977: 	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
111978: 	;;
111979:       *)
111980: 	# GNU C++ compiler with Solaris linker
111981: 	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
111982: 	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
111983: 	  if $CC --version | grep -v '^2\.7' > /dev/null; then
111984: 	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
111985: 	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
111986: 		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
111987: 
111988: 	    # Commands to make compiler produce verbose output that lists
111989: 	    # what "hidden" libraries, object files and flags are used when
111990: 	    # linking a shared library.
111991: 	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
111992: 	  else
111993: 	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
111994: 	    # platform.
111995: 	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
111996: 	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
111997: 		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
111998: 
111999: 	    # Commands to make compiler produce verbose output that lists
112000: 	    # what "hidden" libraries, object files and flags are used when
112001: 	    # linking a shared library.
112002: 	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
112003: 	  fi
112004: 
112005: 	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
112006: 	  case $host_os in
112007: 	  solaris2.[0-5] | solaris2.[0-5].*) ;;
112008: 	  *)
112009: 	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
112010: 	    ;;
112011: 	  esac
112012: 	fi
112013: 	;;
112014:     esac
112015:     ;;
112016:   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
112017:     no_undefined_flag_CXX='${wl}-z,text'
112018:     archive_cmds_need_lc_CXX=no
112019:     hardcode_shlibpath_var_CXX=no
112020:     runpath_var='LD_RUN_PATH'
112021: 
112022:     case $cc_basename in
112023:       CC*)
112024: 	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
112025: 	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
112026: 	;;
112027:       *)
112028: 	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
112029: 	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
112030: 	;;
112031:     esac
112032:     ;;
112033:   sysv5* | sco3.2v5* | sco5v6*)
112034:     # Note: We can NOT use -z defs as we might desire, because we do not
112035:     # link with -lc, and that would cause any symbols used from libc to
112036:     # always be unresolved, which means just about no library would
112037:     # ever link correctly.  If we're not using GNU ld we use -z text
112038:     # though, which does catch some bad symbols but isn't as heavy-handed
112039:     # as -z defs.
112040:     # For security reasons, it is highly recommended that you always
112041:     # use absolute paths for naming shared libraries, and exclude the
112042:     # DT_RUNPATH tag from executables and libraries.  But doing so
112043:     # requires that you compile everything twice, which is a pain.
112044:     # So that behaviour is only enabled if SCOABSPATH is set to a
112045:     # non-empty value in the environment.  Most likely only useful for
112046:     # creating official distributions of packages.
112047:     # This is a hack until libtool officially supports absolute path
112048:     # names for shared libraries.
112049:     no_undefined_flag_CXX='${wl}-z,text'
112050:     allow_undefined_flag_CXX='${wl}-z,nodefs'
112051:     archive_cmds_need_lc_CXX=no
112052:     hardcode_shlibpath_var_CXX=no
112053:     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
112054:     hardcode_libdir_separator_CXX=':'
112055:     link_all_deplibs_CXX=yes
112056:     export_dynamic_flag_spec_CXX='${wl}-Bexport'
112057:     runpath_var='LD_RUN_PATH'
112058: 
112059:     case $cc_basename in
112060:       CC*)
112061: 	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
112062: 	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
112063: 	;;
112064:       *)
112065: 	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
112066: 	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
112067: 	;;
112068:     esac
112069:     ;;
112070:   tandem*)
112071:     case $cc_basename in
112072:       NCC*)
112073: 	# NonStop-UX NCC 3.20
112074: 	# FIXME: insert proper C++ library support
112075: 	ld_shlibs_CXX=no
112076: 	;;
112077:       *)
112078: 	# FIXME: insert proper C++ library support
112079: 	ld_shlibs_CXX=no
112080: 	;;
112081:     esac
112082:     ;;
112083:   vxworks*)
112084:     # FIXME: insert proper C++ library support
112085:     ld_shlibs_CXX=no
112086:     ;;
112087:   *)
112088:     # FIXME: insert proper C++ library support
112089:     ld_shlibs_CXX=no
112090:     ;;
112091: esac
112092: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
112093: $as_echo "$ld_shlibs_CXX" >&6; }
112094: test "$ld_shlibs_CXX" = no && can_build_shared=no
112095: 
112096: GCC_CXX="$GXX"
112097: LD_CXX="$LD"
112098: 
112099: ## CAVEAT EMPTOR:
112100: ## There is no encapsulation within the following macros, do not change
112101: ## the running order or otherwise move them around unless you know exactly
112102: ## what you are doing...
112103: cat > conftest.$ac_ext <<EOF
112104: class Foo
112105: {
112106: public:
112107:   Foo (void) { a = 0; }
112108: private:
112109:   int a;
112110: };
112111: EOF
112112: 
112113: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
112114:   (eval $ac_compile) 2>&5
112115:   ac_status=$?
112116:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
112117:   test $ac_status = 0; }; then
112118:   # Parse the compiler output and extract the necessary
112119:   # objects, libraries and library flags.
112120: 
112121:   # Sentinel used to keep track of whether or not we are before
112122:   # the conftest object file.
112123:   pre_test_object_deps_done=no
112124: 
112125:   # The `*' in the case matches for architectures that use `case' in
112126:   # $output_verbose_cmd can trigger glob expansion during the loop
112127:   # eval without this substitution.
112128:   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
112129: 
112130:   for p in `eval $output_verbose_link_cmd`; do
112131:     case $p in
112132: 
112133:     -L* | -R* | -l*)
112134:        # Some compilers place space between "-{L,R}" and the path.
112135:        # Remove the space.
112136:        if test $p = "-L" \
112137: 	  || test $p = "-R"; then
112138: 	 prev=$p
112139: 	 continue
112140:        else
112141: 	 prev=
112142:        fi
112143: 
112144:        if test "$pre_test_object_deps_done" = no; then
112145: 	 case $p in
112146: 	 -L* | -R*)
112147: 	   # Internal compiler library paths should come after those
112148: 	   # provided the user.  The postdeps already come after the
112149: 	   # user supplied libs so there is no need to process them.
112150: 	   if test -z "$compiler_lib_search_path_CXX"; then
112151: 	     compiler_lib_search_path_CXX="${prev}${p}"
112152: 	   else
112153: 	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
112154: 	   fi
112155: 	   ;;
112156: 	 # The "-l" case would never come before the object being
112157: 	 # linked, so don't bother handling this case.
112158: 	 esac
112159:        else
112160: 	 if test -z "$postdeps_CXX"; then
112161: 	   postdeps_CXX="${prev}${p}"
112162: 	 else
112163: 	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
112164: 	 fi
112165:        fi
112166:        ;;
112167: 
112168:     *.$objext)
112169:        # This assumes that the test object file only shows up
112170:        # once in the compiler output.
112171:        if test "$p" = "conftest.$objext"; then
112172: 	 pre_test_object_deps_done=yes
112173: 	 continue
112174:        fi
112175: 
112176:        if test "$pre_test_object_deps_done" = no; then
112177: 	 if test -z "$predep_objects_CXX"; then
112178: 	   predep_objects_CXX="$p"
112179: 	 else
112180: 	   predep_objects_CXX="$predep_objects_CXX $p"
112181: 	 fi
112182:        else
112183: 	 if test -z "$postdep_objects_CXX"; then
112184: 	   postdep_objects_CXX="$p"
112185: 	 else
112186: 	   postdep_objects_CXX="$postdep_objects_CXX $p"
112187: 	 fi
112188:        fi
112189:        ;;
112190: 
112191:     *) ;; # Ignore the rest.
112192: 
112193:     esac
112194:   done
112195: 
112196:   # Clean up.
112197:   rm -f a.out a.exe
112198: else
112199:   echo "libtool.m4: error: problem compiling CXX test program"
112200: fi
112201: 
112202: $rm -f confest.$objext
112203: 
112204: compiler_lib_search_dirs_CXX=
112205: if test -n "$compiler_lib_search_path_CXX"; then
112206:   compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
112207: fi
112208: 
112209: # PORTME: override above test on systems where it is broken
112210: case $host_os in
112211: interix[3-9]*)
112212:   # Interix 3.5 installs completely hosed .la files for C++, so rather than
112213:   # hack all around it, let's just trust "g++" to DTRT.
112214:   predep_objects_CXX=
112215:   postdep_objects_CXX=
112216:   postdeps_CXX=
112217:   ;;
112218: 
112219: linux*)
112220:   case `$CC -V 2>&1 | sed 5q` in
112221:   *Sun\ C*)
112222:     # Sun C++ 5.9
112223:     #
112224:     # The more standards-conforming stlport4 library is
112225:     # incompatible with the Cstd library. Avoid specifying
112226:     # it if it's in CXXFLAGS. Ignore libCrun as
112227:     # -library=stlport4 depends on it.
112228:     case " $CXX $CXXFLAGS " in
112229:     *" -library=stlport4 "*)
112230:       solaris_use_stlport4=yes
112231:       ;;
112232:     esac
112233:     if test "$solaris_use_stlport4" != yes; then
112234:       postdeps_CXX='-library=Cstd -library=Crun'
112235:     fi
112236:     ;;
112237:   esac
112238:   ;;
112239: 
112240: solaris*)
112241:   case $cc_basename in
112242:   CC*)
112243:     # The more standards-conforming stlport4 library is
112244:     # incompatible with the Cstd library. Avoid specifying
112245:     # it if it's in CXXFLAGS. Ignore libCrun as
112246:     # -library=stlport4 depends on it.
112247:     case " $CXX $CXXFLAGS " in
112248:     *" -library=stlport4 "*)
112249:       solaris_use_stlport4=yes
112250:       ;;
112251:     esac
112252: 
112253:     # Adding this requires a known-good setup of shared libraries for
112254:     # Sun compiler versions before 5.6, else PIC objects from an old
112255:     # archive will be linked into the output, leading to subtle bugs.
112256:     if test "$solaris_use_stlport4" != yes; then
112257:       postdeps_CXX='-library=Cstd -library=Crun'
112258:     fi
112259:     ;;
112260:   esac
112261:   ;;
112262: esac
112263: 
112264: case " $postdeps_CXX " in
112265: *" -lc "*) archive_cmds_need_lc_CXX=no ;;
112266: esac
112267: 
112268: lt_prog_compiler_wl_CXX=
112269: lt_prog_compiler_pic_CXX=
112270: lt_prog_compiler_static_CXX=
112271: 
112272: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
112273: $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
112274: 
112275:   # C++ specific cases for pic, static, wl, etc.
112276:   if test "$GXX" = yes; then
112277:     lt_prog_compiler_wl_CXX='-Wl,'
112278:     lt_prog_compiler_static_CXX='-static'
112279: 
112280:     case $host_os in
112281:     aix*)
112282:       # All AIX code is PIC.
112283:       if test "$host_cpu" = ia64; then
112284: 	# AIX 5 now supports IA64 processor
112285: 	lt_prog_compiler_static_CXX='-Bstatic'
112286:       fi
112287:       ;;
112288:     amigaos*)
112289:       # FIXME: we need at least 68020 code to build shared libraries, but
112290:       # adding the `-m68020' flag to GCC prevents building anything better,
112291:       # like `-m68040'.
112292:       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
112293:       ;;
112294:     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
112295:       # PIC is the default for these OSes.
112296:       ;;
112297:     mingw* | cygwin* | os2* | pw32*)
112298:       # This hack is so that the source file can tell whether it is being
112299:       # built for inclusion in a dll (and should export symbols for example).
112300:       # Although the cygwin gcc ignores -fPIC, still need this for old-style
112301:       # (--disable-auto-import) libraries
112302: 	  lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
112303:       ;;
112304:     darwin* | rhapsody*)
112305:       # PIC is the default on this platform
112306:       # Common symbols not allowed in MH_DYLIB files
112307:       lt_prog_compiler_pic_CXX='-fno-common'
112308:       ;;
112309:     *djgpp*)
112310:       # DJGPP does not support shared libraries at all
112311:       lt_prog_compiler_pic_CXX=
112312:       ;;
112313:     interix[3-9]*)
112314:       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
112315:       # Instead, we relocate shared libraries at runtime.
112316:       ;;
112317:     sysv4*MP*)
112318:       if test -d /usr/nec; then
112319: 	lt_prog_compiler_pic_CXX=-Kconform_pic
112320:       fi
112321:       ;;
112322:     hpux*)
112323:       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
112324:       # not for PA HP-UX.
112325:       case $host_cpu in
112326:       hppa*64*|ia64*)
112327: 	;;
112328:       *)
112329: 	lt_prog_compiler_pic_CXX='-fPIC'
112330: 	;;
112331:       esac
112332:       ;;
112333:     *)
112334:       lt_prog_compiler_pic_CXX='-fPIC'
112335:       ;;
112336:     esac
112337:   else
112338:     case $host_os in
112339:       aix[4-9]*)
112340: 	# All AIX code is PIC.
112341: 	if test "$host_cpu" = ia64; then
112342: 	  # AIX 5 now supports IA64 processor
112343: 	  lt_prog_compiler_static_CXX='-Bstatic'
112344: 	else
112345: 	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
112346: 	fi
112347: 	;;
112348:       chorus*)
112349: 	case $cc_basename in
112350: 	cxch68*)
112351: 	  # Green Hills C++ Compiler
112352: 	  # _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"
112353: 	  ;;
112354: 	esac
112355: 	;;
112356:        darwin*)
112357:          # PIC is the default on this platform
112358:          # Common symbols not allowed in MH_DYLIB files
112359:          case $cc_basename in
112360:            xlc*)
112361:            lt_prog_compiler_pic_CXX='-qnocommon'
112362:            lt_prog_compiler_wl_CXX='-Wl,'
112363:            ;;
112364:          esac
112365:        ;;
112366:       dgux*)
112367: 	case $cc_basename in
112368: 	  ec++*)
112369: 	    lt_prog_compiler_pic_CXX='-KPIC'
112370: 	    ;;
112371: 	  ghcx*)
112372: 	    # Green Hills C++ Compiler
112373: 	    lt_prog_compiler_pic_CXX='-pic'
112374: 	    ;;
112375: 	  *)
112376: 	    ;;
112377: 	esac
112378: 	;;
112379:       freebsd* | dragonfly*)
112380: 	# FreeBSD uses GNU C++
112381: 	;;
112382:       hpux9* | hpux10* | hpux11*)
112383: 	case $cc_basename in
112384: 	  CC*)
112385: 	    lt_prog_compiler_wl_CXX='-Wl,'
112386: 	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
112387: 	    if test "$host_cpu" != ia64; then
112388: 	      lt_prog_compiler_pic_CXX='+Z'
112389: 	    fi
112390: 	    ;;
112391: 	  aCC*)
112392: 	    lt_prog_compiler_wl_CXX='-Wl,'
112393: 	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
112394: 	    case $host_cpu in
112395: 	    hppa*64*|ia64*)
112396: 	      # +Z the default
112397: 	      ;;
112398: 	    *)
112399: 	      lt_prog_compiler_pic_CXX='+Z'
112400: 	      ;;
112401: 	    esac
112402: 	    ;;
112403: 	  *)
112404: 	    ;;
112405: 	esac
112406: 	;;
112407:       interix*)
112408: 	# This is c89, which is MS Visual C++ (no shared libs)
112409: 	# Anyone wants to do a port?
112410: 	;;
112411:       irix5* | irix6* | nonstopux*)
112412: 	case $cc_basename in
112413: 	  CC*)
112414: 	    lt_prog_compiler_wl_CXX='-Wl,'
112415: 	    lt_prog_compiler_static_CXX='-non_shared'
112416: 	    # CC pic flag -KPIC is the default.
112417: 	    ;;
112418: 	  *)
112419: 	    ;;
112420: 	esac
112421: 	;;
112422:       linux* | k*bsd*-gnu)
112423: 	case $cc_basename in
112424: 	  KCC*)
112425: 	    # KAI C++ Compiler
112426: 	    lt_prog_compiler_wl_CXX='--backend -Wl,'
112427: 	    lt_prog_compiler_pic_CXX='-fPIC'
112428: 	    ;;
112429:       ecpc*)
112430:         # old Intel C++ for x86_64 which still supported -KPIC.
112431:         lt_prog_compiler_wl_CXX='-Wl,'
112432:         lt_prog_compiler_pic_CXX='-KPIC'
112433:         lt_prog_compiler_static_CXX='-static'
112434:         ;;
112435:       icpc*)
112436:         # Intel C++, used to be incompatible with GCC.
112437:         lt_prog_compiler_wl_CXX='-Wl,'
112438:         lt_prog_compiler_pic_CXX='-fPIC'
112439:         lt_prog_compiler_static_CXX='-static'
112440:         ;;
112441: 	  pgCC* | pgcpp*)
112442: 	    # Portland Group C++ compiler.
112443: 	    lt_prog_compiler_wl_CXX='-Wl,'
112444: 	    lt_prog_compiler_pic_CXX='-fpic'
112445: 	    lt_prog_compiler_static_CXX='-Bstatic'
112446: 	    ;;
112447: 	  cxx*)
112448: 	    # Compaq C++
112449: 	    # Make sure the PIC flag is empty.  It appears that all Alpha
112450: 	    # Linux and Compaq Tru64 Unix objects are PIC.
112451: 	    lt_prog_compiler_pic_CXX=
112452: 	    lt_prog_compiler_static_CXX='-non_shared'
112453: 	    ;;
112454: 	  *)
112455: 	    case `$CC -V 2>&1 | sed 5q` in
112456: 	    *Sun\ C*)
112457: 	      # Sun C++ 5.9
112458: 	      lt_prog_compiler_pic_CXX='-KPIC'
112459: 	      lt_prog_compiler_static_CXX='-Bstatic'
112460: 	      lt_prog_compiler_wl_CXX='-Qoption ld '
112461: 	      ;;
112462: 	    esac
112463: 	    ;;
112464: 	esac
112465: 	;;
112466:       lynxos*)
112467: 	;;
112468:       m88k*)
112469: 	;;
112470:       mvs*)
112471: 	case $cc_basename in
112472: 	  cxx*)
112473: 	    lt_prog_compiler_pic_CXX='-W c,exportall'
112474: 	    ;;
112475: 	  *)
112476: 	    ;;
112477: 	esac
112478: 	;;
112479:       netbsd*)
112480: 	;;
112481:       osf3* | osf4* | osf5*)
112482: 	case $cc_basename in
112483: 	  KCC*)
112484: 	    lt_prog_compiler_wl_CXX='--backend -Wl,'
112485: 	    ;;
112486: 	  RCC*)
112487: 	    # Rational C++ 2.4.1
112488: 	    lt_prog_compiler_pic_CXX='-pic'
112489: 	    ;;
112490: 	  cxx*)
112491: 	    # Digital/Compaq C++
112492: 	    lt_prog_compiler_wl_CXX='-Wl,'
112493: 	    # Make sure the PIC flag is empty.  It appears that all Alpha
112494: 	    # Linux and Compaq Tru64 Unix objects are PIC.
112495: 	    lt_prog_compiler_pic_CXX=
112496: 	    lt_prog_compiler_static_CXX='-non_shared'
112497: 	    ;;
112498: 	  *)
112499: 	    ;;
112500: 	esac
112501: 	;;
112502:       psos*)
112503: 	;;
112504:       solaris*)
112505: 	case $cc_basename in
112506: 	  CC*)
112507: 	    # Sun C++ 4.2, 5.x and Centerline C++
112508: 	    lt_prog_compiler_pic_CXX='-KPIC'
112509: 	    lt_prog_compiler_static_CXX='-Bstatic'
112510: 	    lt_prog_compiler_wl_CXX='-Qoption ld '
112511: 	    ;;
112512: 	  gcx*)
112513: 	    # Green Hills C++ Compiler
112514: 	    lt_prog_compiler_pic_CXX='-PIC'
112515: 	    ;;
112516: 	  *)
112517: 	    ;;
112518: 	esac
112519: 	;;
112520:       sunos4*)
112521: 	case $cc_basename in
112522: 	  CC*)
112523: 	    # Sun C++ 4.x
112524: 	    lt_prog_compiler_pic_CXX='-pic'
112525: 	    lt_prog_compiler_static_CXX='-Bstatic'
112526: 	    ;;
112527: 	  lcc*)
112528: 	    # Lucid
112529: 	    lt_prog_compiler_pic_CXX='-pic'
112530: 	    ;;
112531: 	  *)
112532: 	    ;;
112533: 	esac
112534: 	;;
112535:       tandem*)
112536: 	case $cc_basename in
112537: 	  NCC*)
112538: 	    # NonStop-UX NCC 3.20
112539: 	    lt_prog_compiler_pic_CXX='-KPIC'
112540: 	    ;;
112541: 	  *)
112542: 	    ;;
112543: 	esac
112544: 	;;
112545:       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
112546: 	case $cc_basename in
112547: 	  CC*)
112548: 	    lt_prog_compiler_wl_CXX='-Wl,'
112549: 	    lt_prog_compiler_pic_CXX='-KPIC'
112550: 	    lt_prog_compiler_static_CXX='-Bstatic'
112551: 	    ;;
112552: 	esac
112553: 	;;
112554:       vxworks*)
112555: 	;;
112556:       *)
112557: 	lt_prog_compiler_can_build_shared_CXX=no
112558: 	;;
112559:     esac
112560:   fi
112561: 
112562: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
112563: $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
112564: 
112565: #
112566: # Check to make sure the PIC flag actually works.
112567: #
112568: if test -n "$lt_prog_compiler_pic_CXX"; then
112569: 
112570: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
112571: $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
112572: if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
112573:   $as_echo_n "(cached) " >&6
112574: else
112575:   lt_cv_prog_compiler_pic_works_CXX=no
112576:   ac_outfile=conftest.$ac_objext
112577:    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
112578:    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
112579:    # Insert the option either (1) after the last *FLAGS variable, or
112580:    # (2) before a word containing "conftest.", or (3) at the end.
112581:    # Note that $ac_compile itself does not contain backslashes and begins
112582:    # with a dollar sign (not a hyphen), so the echo should work correctly.
112583:    # The option is referenced via a variable to avoid confusing sed.
112584:    lt_compile=`echo "$ac_compile" | $SED \
112585:    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
112586:    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
112587:    -e 's:$: $lt_compiler_flag:'`
112588:    (eval echo "\"configure:112588: $lt_compile\"" >&5)
112589:    (eval "$lt_compile" 2>conftest.err)
112590:    ac_status=$?
112591:    cat conftest.err >&5
112592:    echo "configure:112592: \$? = $ac_status" >&5
112593:    if (exit $ac_status) && test -s "$ac_outfile"; then
112594:      # The compiler can only warn and ignore the option if not recognized
112595:      # So say no if there are warnings other than the usual output.
112596:      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
112597:      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
112598:      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
112599:        lt_cv_prog_compiler_pic_works_CXX=yes
112600:      fi
112601:    fi
112602:    $rm conftest*
112603: 
112604: fi
112605: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
112606: $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
112607: 
112608: if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
112609:     case $lt_prog_compiler_pic_CXX in
112610:      "" | " "*) ;;
112611:      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
112612:      esac
112613: else
112614:     lt_prog_compiler_pic_CXX=
112615:      lt_prog_compiler_can_build_shared_CXX=no
112616: fi
112617: 
112618: fi
112619: case $host_os in
112620:   # For platforms which do not support PIC, -DPIC is meaningless:
112621:   *djgpp*)
112622:     lt_prog_compiler_pic_CXX=
112623:     ;;
112624:   *)
112625:     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
112626:     ;;
112627: esac
112628: 
112629: #
112630: # Check to make sure the static flag actually works.
112631: #
112632: wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
112633: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
112634: $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
112635: if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
112636:   $as_echo_n "(cached) " >&6
112637: else
112638:   lt_cv_prog_compiler_static_works_CXX=no
112639:    save_LDFLAGS="$LDFLAGS"
112640:    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
112641:    echo "$lt_simple_link_test_code" > conftest.$ac_ext
112642:    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
112643:      # The linker can only warn and ignore the option if not recognized
112644:      # So say no if there are warnings
112645:      if test -s conftest.err; then
112646:        # Append any errors to the config.log.
112647:        cat conftest.err 1>&5
112648:        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
112649:        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
112650:        if diff conftest.exp conftest.er2 >/dev/null; then
112651:          lt_cv_prog_compiler_static_works_CXX=yes
112652:        fi
112653:      else
112654:        lt_cv_prog_compiler_static_works_CXX=yes
112655:      fi
112656:    fi
112657:    $rm -r conftest*
112658:    LDFLAGS="$save_LDFLAGS"
112659: 
112660: fi
112661: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
112662: $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
112663: 
112664: if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
112665:     :
112666: else
112667:     lt_prog_compiler_static_CXX=
112668: fi
112669: 
112670: 
112671: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
112672: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
112673: if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
112674:   $as_echo_n "(cached) " >&6
112675: else
112676:   lt_cv_prog_compiler_c_o_CXX=no
112677:    $rm -r conftest 2>/dev/null
112678:    mkdir conftest
112679:    cd conftest
112680:    mkdir out
112681:    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
112682: 
112683:    lt_compiler_flag="-o out/conftest2.$ac_objext"
112684:    # Insert the option either (1) after the last *FLAGS variable, or
112685:    # (2) before a word containing "conftest.", or (3) at the end.
112686:    # Note that $ac_compile itself does not contain backslashes and begins
112687:    # with a dollar sign (not a hyphen), so the echo should work correctly.
112688:    lt_compile=`echo "$ac_compile" | $SED \
112689:    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
112690:    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
112691:    -e 's:$: $lt_compiler_flag:'`
112692:    (eval echo "\"configure:112692: $lt_compile\"" >&5)
112693:    (eval "$lt_compile" 2>out/conftest.err)
112694:    ac_status=$?
112695:    cat out/conftest.err >&5
112696:    echo "configure:112696: \$? = $ac_status" >&5
112697:    if (exit $ac_status) && test -s out/conftest2.$ac_objext
112698:    then
112699:      # The compiler can only warn and ignore the option if not recognized
112700:      # So say no if there are warnings
112701:      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
112702:      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
112703:      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
112704:        lt_cv_prog_compiler_c_o_CXX=yes
112705:      fi
112706:    fi
112707:    chmod u+w . 2>&5
112708:    $rm conftest*
112709:    # SGI C++ compiler will create directory out/ii_files/ for
112710:    # template instantiation
112711:    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
112712:    $rm out/* && rmdir out
112713:    cd ..
112714:    rmdir conftest
112715:    $rm conftest*
112716: 
112717: fi
112718: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
112719: $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
112720: 
112721: 
112722: hard_links="nottested"
112723: if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
112724:   # do not overwrite the value of need_locks provided by the user
112725:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
112726: $as_echo_n "checking if we can lock with hard links... " >&6; }
112727:   hard_links=yes
112728:   $rm conftest*
112729:   ln conftest.a conftest.b 2>/dev/null && hard_links=no
112730:   touch conftest.a
112731:   ln conftest.a conftest.b 2>&5 || hard_links=no
112732:   ln conftest.a conftest.b 2>/dev/null && hard_links=no
112733:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
112734: $as_echo "$hard_links" >&6; }
112735:   if test "$hard_links" = no; then
112736:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
112737: $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
112738:     need_locks=warn
112739:   fi
112740: else
112741:   need_locks=no
112742: fi
112743: 
112744: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
112745: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
112746: 
112747:   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
112748:   case $host_os in
112749:   aix[4-9]*)
112750:     # If we're using GNU nm, then we don't want the "-C" option.
112751:     # -C means demangle to AIX nm, but means don't demangle with GNU nm
112752:     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
112753:       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'
112754:     else
112755:       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'
112756:     fi
112757:     ;;
112758:   pw32*)
112759:     export_symbols_cmds_CXX="$ltdll_cmds"
112760:   ;;
112761:   cygwin* | mingw*)
112762:     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'
112763:   ;;
112764:   *)
112765:     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
112766:   ;;
112767:   esac
112768:   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
112769: 
112770: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
112771: $as_echo "$ld_shlibs_CXX" >&6; }
112772: test "$ld_shlibs_CXX" = no && can_build_shared=no
112773: 
112774: #
112775: # Do we need to explicitly link libc?
112776: #
112777: case "x$archive_cmds_need_lc_CXX" in
112778: x|xyes)
112779:   # Assume -lc should be added
112780:   archive_cmds_need_lc_CXX=yes
112781: 
112782:   if test "$enable_shared" = yes && test "$GCC" = yes; then
112783:     case $archive_cmds_CXX in
112784:     *'~'*)
112785:       # FIXME: we may have to deal with multi-command sequences.
112786:       ;;
112787:     '$CC '*)
112788:       # Test whether the compiler implicitly links with -lc since on some
112789:       # systems, -lgcc has to come before -lc. If gcc already passes -lc
112790:       # to ld, don't add -lc before -lgcc.
112791:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
112792: $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
112793:       $rm conftest*
112794:       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
112795: 
112796:       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
112797:   (eval $ac_compile) 2>&5
112798:   ac_status=$?
112799:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
112800:   test $ac_status = 0; } 2>conftest.err; then
112801:         soname=conftest
112802:         lib=conftest
112803:         libobjs=conftest.$ac_objext
112804:         deplibs=
112805:         wl=$lt_prog_compiler_wl_CXX
112806: 	pic_flag=$lt_prog_compiler_pic_CXX
112807:         compiler_flags=-v
112808:         linker_flags=-v
112809:         verstring=
112810:         output_objdir=.
112811:         libname=conftest
112812:         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
112813:         allow_undefined_flag_CXX=
112814:         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
112815:   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
112816:   ac_status=$?
112817:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
112818:   test $ac_status = 0; }
112819:         then
112820: 	  archive_cmds_need_lc_CXX=no
112821:         else
112822: 	  archive_cmds_need_lc_CXX=yes
112823:         fi
112824:         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
112825:       else
112826:         cat conftest.err 1>&5
112827:       fi
112828:       $rm conftest*
112829:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
112830: $as_echo "$archive_cmds_need_lc_CXX" >&6; }
112831:       ;;
112832:     esac
112833:   fi
112834:   ;;
112835: esac
112836: 
112837: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
112838: $as_echo_n "checking dynamic linker characteristics... " >&6; }
112839: library_names_spec=
112840: libname_spec='lib$name'
112841: soname_spec=
112842: shrext_cmds=".so"
112843: postinstall_cmds=
112844: postuninstall_cmds=
112845: finish_cmds=
112846: finish_eval=
112847: shlibpath_var=
112848: shlibpath_overrides_runpath=unknown
112849: version_type=none
112850: dynamic_linker="$host_os ld.so"
112851: sys_lib_dlsearch_path_spec="/lib /usr/lib"
112852: 
112853: need_lib_prefix=unknown
112854: hardcode_into_libs=no
112855: 
112856: # when you set need_version to no, make sure it does not cause -set_version
112857: # flags to be left without arguments
112858: need_version=unknown
112859: 
112860: case $host_os in
112861: aix3*)
112862:   version_type=linux
112863:   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
112864:   shlibpath_var=LIBPATH
112865: 
112866:   # AIX 3 has no versioning support, so we append a major version to the name.
112867:   soname_spec='${libname}${release}${shared_ext}$major'
112868:   ;;
112869: 
112870: aix[4-9]*)
112871:   version_type=linux
112872:   need_lib_prefix=no
112873:   need_version=no
112874:   hardcode_into_libs=yes
112875:   if test "$host_cpu" = ia64; then
112876:     # AIX 5 supports IA64
112877:     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
112878:     shlibpath_var=LD_LIBRARY_PATH
112879:   else
112880:     # With GCC up to 2.95.x, collect2 would create an import file
112881:     # for dependence libraries.  The import file would start with
112882:     # the line `#! .'.  This would cause the generated library to
112883:     # depend on `.', always an invalid library.  This was fixed in
112884:     # development snapshots of GCC prior to 3.0.
112885:     case $host_os in
112886:       aix4 | aix4.[01] | aix4.[01].*)
112887:       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
112888: 	   echo ' yes '
112889: 	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
112890: 	:
112891:       else
112892: 	can_build_shared=no
112893:       fi
112894:       ;;
112895:     esac
112896:     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
112897:     # soname into executable. Probably we can add versioning support to
112898:     # collect2, so additional links can be useful in future.
112899:     if test "$aix_use_runtimelinking" = yes; then
112900:       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
112901:       # instead of lib<name>.a to let people know that these are not
112902:       # typical AIX shared libraries.
112903:       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
112904:     else
112905:       # We preserve .a as extension for shared libraries through AIX4.2
112906:       # and later when we are not doing run time linking.
112907:       library_names_spec='${libname}${release}.a $libname.a'
112908:       soname_spec='${libname}${release}${shared_ext}$major'
112909:     fi
112910:     shlibpath_var=LIBPATH
112911:   fi
112912:   ;;
112913: 
112914: amigaos*)
112915:   library_names_spec='$libname.ixlibrary $libname.a'
112916:   # Create ${libname}_ixlibrary.a entries in /sys/libs.
112917:   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'
112918:   ;;
112919: 
112920: beos*)
112921:   library_names_spec='${libname}${shared_ext}'
112922:   dynamic_linker="$host_os ld.so"
112923:   shlibpath_var=LIBRARY_PATH
112924:   ;;
112925: 
112926: bsdi[45]*)
112927:   version_type=linux
112928:   need_version=no
112929:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
112930:   soname_spec='${libname}${release}${shared_ext}$major'
112931:   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
112932:   shlibpath_var=LD_LIBRARY_PATH
112933:   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
112934:   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
112935:   # the default ld.so.conf also contains /usr/contrib/lib and
112936:   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
112937:   # libtool to hard-code these into programs
112938:   ;;
112939: 
112940: cygwin* | mingw* | pw32*)
112941:   version_type=windows
112942:   shrext_cmds=".dll"
112943:   need_version=no
112944:   need_lib_prefix=no
112945: 
112946:   case $GCC,$host_os in
112947:   yes,cygwin* | yes,mingw* | yes,pw32*)
112948:     library_names_spec='$libname.dll.a'
112949:     # DLL is installed to $(libdir)/../bin by postinstall_cmds
112950:     postinstall_cmds='base_file=`basename \${file}`~
112951:       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
112952:       dldir=$destdir/`dirname \$dlpath`~
112953:       test -d \$dldir || mkdir -p \$dldir~
112954:       $install_prog $dir/$dlname \$dldir/$dlname~
112955:       chmod a+x \$dldir/$dlname'
112956:     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
112957:       dlpath=$dir/\$dldll~
112958:        $rm \$dlpath'
112959:     shlibpath_overrides_runpath=yes
112960: 
112961:     case $host_os in
112962:     cygwin*)
112963:       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
112964:       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
112965:       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
112966:       ;;
112967:     mingw*)
112968:       # MinGW DLLs use traditional 'lib' prefix
112969:       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
112970:       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
112971:       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
112972:         # It is most probably a Windows format PATH printed by
112973:         # mingw gcc, but we are running on Cygwin. Gcc prints its search
112974:         # path with ; separators, and with drive letters. We can handle the
112975:         # drive letters (cygwin fileutils understands them), so leave them,
112976:         # especially as we might pass files found there to a mingw objdump,
112977:         # which wouldn't understand a cygwinified path. Ahh.
112978:         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
112979:       else
112980:         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
112981:       fi
112982:       ;;
112983:     pw32*)
112984:       # pw32 DLLs use 'pw' prefix rather than 'lib'
112985:       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
112986:       ;;
112987:     esac
112988:     ;;
112989: 
112990:   *)
112991:     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
112992:     ;;
112993:   esac
112994:   dynamic_linker='Win32 ld.exe'
112995:   # FIXME: first we should search . and the directory the executable is in
112996:   shlibpath_var=PATH
112997:   ;;
112998: 
112999: darwin* | rhapsody*)
113000:   dynamic_linker="$host_os dyld"
113001:   version_type=darwin
113002:   need_lib_prefix=no
113003:   need_version=no
113004:   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
113005:   soname_spec='${libname}${release}${major}$shared_ext'
113006:   shlibpath_overrides_runpath=yes
113007:   shlibpath_var=DYLD_LIBRARY_PATH
113008:   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
113009: 
113010:   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
113011:   ;;
113012: 
113013: dgux*)
113014:   version_type=linux
113015:   need_lib_prefix=no
113016:   need_version=no
113017:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
113018:   soname_spec='${libname}${release}${shared_ext}$major'
113019:   shlibpath_var=LD_LIBRARY_PATH
113020:   ;;
113021: 
113022: freebsd1*)
113023:   dynamic_linker=no
113024:   ;;
113025: 
113026: freebsd* | dragonfly*)
113027:   # DragonFly does not have aout.  When/if they implement a new
113028:   # versioning mechanism, adjust this.
113029:   if test -x /usr/bin/objformat; then
113030:     objformat=`/usr/bin/objformat`
113031:   else
113032:     case $host_os in
113033:     freebsd[123]*) objformat=aout ;;
113034:     *) objformat=elf ;;
113035:     esac
113036:   fi
113037:   version_type=freebsd-$objformat
113038:   case $version_type in
113039:     freebsd-elf*)
113040:       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
113041:       need_version=no
113042:       need_lib_prefix=no
113043:       ;;
113044:     freebsd-*)
113045:       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
113046:       need_version=yes
113047:       ;;
113048:   esac
113049:   shlibpath_var=LD_LIBRARY_PATH
113050:   case $host_os in
113051:   freebsd2*)
113052:     shlibpath_overrides_runpath=yes
113053:     ;;
113054:   freebsd3.[01]* | freebsdelf3.[01]*)
113055:     shlibpath_overrides_runpath=yes
113056:     hardcode_into_libs=yes
113057:     ;;
113058:   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
113059:   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
113060:     shlibpath_overrides_runpath=no
113061:     hardcode_into_libs=yes
113062:     ;;
113063:   *) # from 4.6 on, and DragonFly
113064:     shlibpath_overrides_runpath=yes
113065:     hardcode_into_libs=yes
113066:     ;;
113067:   esac
113068:   ;;
113069: 
113070: gnu*)
113071:   version_type=linux
113072:   need_lib_prefix=no
113073:   need_version=no
113074:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
113075:   soname_spec='${libname}${release}${shared_ext}$major'
113076:   shlibpath_var=LD_LIBRARY_PATH
113077:   hardcode_into_libs=yes
113078:   ;;
113079: 
113080: hpux9* | hpux10* | hpux11*)
113081:   # Give a soname corresponding to the major version so that dld.sl refuses to
113082:   # link against other versions.
113083:   version_type=sunos
113084:   need_lib_prefix=no
113085:   need_version=no
113086:   case $host_cpu in
113087:   ia64*)
113088:     shrext_cmds='.so'
113089:     hardcode_into_libs=yes
113090:     dynamic_linker="$host_os dld.so"
113091:     shlibpath_var=LD_LIBRARY_PATH
113092:     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
113093:     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
113094:     soname_spec='${libname}${release}${shared_ext}$major'
113095:     if test "X$HPUX_IA64_MODE" = X32; then
113096:       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
113097:     else
113098:       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
113099:     fi
113100:     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
113101:     ;;
113102:    hppa*64*)
113103:      shrext_cmds='.sl'
113104:      hardcode_into_libs=yes
113105:      dynamic_linker="$host_os dld.sl"
113106:      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
113107:      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
113108:      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
113109:      soname_spec='${libname}${release}${shared_ext}$major'
113110:      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
113111:      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
113112:      ;;
113113:    *)
113114:     shrext_cmds='.sl'
113115:     dynamic_linker="$host_os dld.sl"
113116:     shlibpath_var=SHLIB_PATH
113117:     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
113118:     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
113119:     soname_spec='${libname}${release}${shared_ext}$major'
113120:     ;;
113121:   esac
113122:   # HP-UX runs *really* slowly unless shared libraries are mode 555.
113123:   postinstall_cmds='chmod 555 $lib'
113124:   ;;
113125: 
113126: interix[3-9]*)
113127:   version_type=linux
113128:   need_lib_prefix=no
113129:   need_version=no
113130:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
113131:   soname_spec='${libname}${release}${shared_ext}$major'
113132:   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
113133:   shlibpath_var=LD_LIBRARY_PATH
113134:   shlibpath_overrides_runpath=no
113135:   hardcode_into_libs=yes
113136:   ;;
113137: 
113138: irix5* | irix6* | nonstopux*)
113139:   case $host_os in
113140:     nonstopux*) version_type=nonstopux ;;
113141:     *)
113142: 	if test "$lt_cv_prog_gnu_ld" = yes; then
113143: 		version_type=linux
113144: 	else
113145: 		version_type=irix
113146: 	fi ;;
113147:   esac
113148:   need_lib_prefix=no
113149:   need_version=no
113150:   soname_spec='${libname}${release}${shared_ext}$major'
113151:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
113152:   case $host_os in
113153:   irix5* | nonstopux*)
113154:     libsuff= shlibsuff=
113155:     ;;
113156:   *)
113157:     case $LD in # libtool.m4 will add one of these switches to LD
113158:     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
113159:       libsuff= shlibsuff= libmagic=32-bit;;
113160:     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
113161:       libsuff=32 shlibsuff=N32 libmagic=N32;;
113162:     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
113163:       libsuff=64 shlibsuff=64 libmagic=64-bit;;
113164:     *) libsuff= shlibsuff= libmagic=never-match;;
113165:     esac
113166:     ;;
113167:   esac
113168:   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
113169:   shlibpath_overrides_runpath=no
113170:   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
113171:   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
113172:   hardcode_into_libs=yes
113173:   ;;
113174: 
113175: # No shared lib support for Linux oldld, aout, or coff.
113176: linux*oldld* | linux*aout* | linux*coff*)
113177:   dynamic_linker=no
113178:   ;;
113179: 
113180: # This must be Linux ELF.
113181: linux* | k*bsd*-gnu)
113182:   version_type=linux
113183:   need_lib_prefix=no
113184:   need_version=no
113185:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
113186:   soname_spec='${libname}${release}${shared_ext}$major'
113187:   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
113188:   shlibpath_var=LD_LIBRARY_PATH
113189:   shlibpath_overrides_runpath=no
113190:   # This implies no fast_install, which is unacceptable.
113191:   # Some rework will be needed to allow for fast_install
113192:   # before this can be enabled.
113193:   hardcode_into_libs=yes
113194: 
113195:   # Append ld.so.conf contents to the search path
113196:   if test -f /etc/ld.so.conf; then
113197:     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' ' '`
113198:     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
113199:   fi
113200: 
113201:   # We used to test for /lib/ld.so.1 and disable shared libraries on
113202:   # powerpc, because MkLinux only supported shared libraries with the
113203:   # GNU dynamic linker.  Since this was broken with cross compilers,
113204:   # most powerpc-linux boxes support dynamic linking these days and
113205:   # people can always --disable-shared, the test was removed, and we
113206:   # assume the GNU/Linux dynamic linker is in use.
113207:   dynamic_linker='GNU/Linux ld.so'
113208:   ;;
113209: 
113210: netbsd*)
113211:   version_type=sunos
113212:   need_lib_prefix=no
113213:   need_version=no
113214:   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
113215:     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
113216:     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
113217:     dynamic_linker='NetBSD (a.out) ld.so'
113218:   else
113219:     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
113220:     soname_spec='${libname}${release}${shared_ext}$major'
113221:     dynamic_linker='NetBSD ld.elf_so'
113222:   fi
113223:   shlibpath_var=LD_LIBRARY_PATH
113224:   shlibpath_overrides_runpath=yes
113225:   hardcode_into_libs=yes
113226:   ;;
113227: 
113228: newsos6)
113229:   version_type=linux
113230:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
113231:   shlibpath_var=LD_LIBRARY_PATH
113232:   shlibpath_overrides_runpath=yes
113233:   ;;
113234: 
113235: nto-qnx*)
113236:   version_type=linux
113237:   need_lib_prefix=no
113238:   need_version=no
113239:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
113240:   soname_spec='${libname}${release}${shared_ext}$major'
113241:   shlibpath_var=LD_LIBRARY_PATH
113242:   shlibpath_overrides_runpath=yes
113243:   ;;
113244: 
113245: openbsd*)
113246:   version_type=sunos
113247:   sys_lib_dlsearch_path_spec="/usr/lib"
113248:   need_lib_prefix=no
113249:   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
113250:   case $host_os in
113251:     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
113252:     *)                         need_version=no  ;;
113253:   esac
113254:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
113255:   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
113256:   shlibpath_var=LD_LIBRARY_PATH
113257:   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
113258:     case $host_os in
113259:       openbsd2.[89] | openbsd2.[89].*)
113260: 	shlibpath_overrides_runpath=no
113261: 	;;
113262:       *)
113263: 	shlibpath_overrides_runpath=yes
113264: 	;;
113265:       esac
113266:   else
113267:     shlibpath_overrides_runpath=yes
113268:   fi
113269:   ;;
113270: 
113271: os2*)
113272:   libname_spec='$name'
113273:   shrext_cmds=".dll"
113274:   need_lib_prefix=no
113275:   library_names_spec='$libname${shared_ext} $libname.a'
113276:   dynamic_linker='OS/2 ld.exe'
113277:   shlibpath_var=LIBPATH
113278:   ;;
113279: 
113280: osf3* | osf4* | osf5*)
113281:   version_type=osf
113282:   need_lib_prefix=no
113283:   need_version=no
113284:   soname_spec='${libname}${release}${shared_ext}$major'
113285:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
113286:   shlibpath_var=LD_LIBRARY_PATH
113287:   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
113288:   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
113289:   ;;
113290: 
113291: rdos*)
113292:   dynamic_linker=no
113293:   ;;
113294: 
113295: solaris*)
113296:   version_type=linux
113297:   need_lib_prefix=no
113298:   need_version=no
113299:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
113300:   soname_spec='${libname}${release}${shared_ext}$major'
113301:   shlibpath_var=LD_LIBRARY_PATH
113302:   shlibpath_overrides_runpath=yes
113303:   hardcode_into_libs=yes
113304:   # ldd complains unless libraries are executable
113305:   postinstall_cmds='chmod +x $lib'
113306:   ;;
113307: 
113308: sunos4*)
113309:   version_type=sunos
113310:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
113311:   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
113312:   shlibpath_var=LD_LIBRARY_PATH
113313:   shlibpath_overrides_runpath=yes
113314:   if test "$with_gnu_ld" = yes; then
113315:     need_lib_prefix=no
113316:   fi
113317:   need_version=yes
113318:   ;;
113319: 
113320: sysv4 | sysv4.3*)
113321:   version_type=linux
113322:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
113323:   soname_spec='${libname}${release}${shared_ext}$major'
113324:   shlibpath_var=LD_LIBRARY_PATH
113325:   case $host_vendor in
113326:     sni)
113327:       shlibpath_overrides_runpath=no
113328:       need_lib_prefix=no
113329:       export_dynamic_flag_spec='${wl}-Blargedynsym'
113330:       runpath_var=LD_RUN_PATH
113331:       ;;
113332:     siemens)
113333:       need_lib_prefix=no
113334:       ;;
113335:     motorola)
113336:       need_lib_prefix=no
113337:       need_version=no
113338:       shlibpath_overrides_runpath=no
113339:       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
113340:       ;;
113341:   esac
113342:   ;;
113343: 
113344: sysv4*MP*)
113345:   if test -d /usr/nec ;then
113346:     version_type=linux
113347:     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
113348:     soname_spec='$libname${shared_ext}.$major'
113349:     shlibpath_var=LD_LIBRARY_PATH
113350:   fi
113351:   ;;
113352: 
113353: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
113354:   version_type=freebsd-elf
113355:   need_lib_prefix=no
113356:   need_version=no
113357:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
113358:   soname_spec='${libname}${release}${shared_ext}$major'
113359:   shlibpath_var=LD_LIBRARY_PATH
113360:   hardcode_into_libs=yes
113361:   if test "$with_gnu_ld" = yes; then
113362:     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
113363:     shlibpath_overrides_runpath=no
113364:   else
113365:     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
113366:     shlibpath_overrides_runpath=yes
113367:     case $host_os in
113368:       sco3.2v5*)
113369:         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
113370: 	;;
113371:     esac
113372:   fi
113373:   sys_lib_dlsearch_path_spec='/usr/lib'
113374:   ;;
113375: 
113376: uts4*)
113377:   version_type=linux
113378:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
113379:   soname_spec='${libname}${release}${shared_ext}$major'
113380:   shlibpath_var=LD_LIBRARY_PATH
113381:   ;;
113382: 
113383: *)
113384:   dynamic_linker=no
113385:   ;;
113386: esac
113387: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
113388: $as_echo "$dynamic_linker" >&6; }
113389: test "$dynamic_linker" = no && can_build_shared=no
113390: 
113391: if ${lt_cv_sys_lib_search_path_spec+:} false; then :
113392:   $as_echo_n "(cached) " >&6
113393: else
113394:   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
113395: fi
113396: 
113397: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
113398: if ${lt_cv_sys_lib_dlsearch_path_spec+:} false; then :
113399:   $as_echo_n "(cached) " >&6
113400: else
113401:   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
113402: fi
113403: 
113404: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
113405: 
113406: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
113407: if test "$GCC" = yes; then
113408:   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
113409: fi
113410: 
113411: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
113412: $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
113413: hardcode_action_CXX=
113414: if test -n "$hardcode_libdir_flag_spec_CXX" || \
113415:    test -n "$runpath_var_CXX" || \
113416:    test "X$hardcode_automatic_CXX" = "Xyes" ; then
113417: 
113418:   # We can hardcode non-existent directories.
113419:   if test "$hardcode_direct_CXX" != no &&
113420:      # If the only mechanism to avoid hardcoding is shlibpath_var, we
113421:      # have to relink, otherwise we might link with an installed library
113422:      # when we should be linking with a yet-to-be-installed one
113423:      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
113424:      test "$hardcode_minus_L_CXX" != no; then
113425:     # Linking always hardcodes the temporary library directory.
113426:     hardcode_action_CXX=relink
113427:   else
113428:     # We can link without hardcoding, and we can hardcode nonexisting dirs.
113429:     hardcode_action_CXX=immediate
113430:   fi
113431: else
113432:   # We cannot hardcode anything, or else we can only hardcode existing
113433:   # directories.
113434:   hardcode_action_CXX=unsupported
113435: fi
113436: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
113437: $as_echo "$hardcode_action_CXX" >&6; }
113438: 
113439: if test "$hardcode_action_CXX" = relink; then
113440:   # Fast installation is not supported
113441:   enable_fast_install=no
113442: elif test "$shlibpath_overrides_runpath" = yes ||
113443:      test "$enable_shared" = no; then
113444:   # Fast installation is not necessary
113445:   enable_fast_install=needless
113446: fi
113447: 
113448: 
113449: # The else clause should only fire when bootstrapping the
113450: # libtool distribution, otherwise you forgot to ship ltmain.sh
113451: # with your package, and you will get complaints that there are
113452: # no rules to generate ltmain.sh.
113453: if test -f "$ltmain"; then
113454:   # See if we are running on zsh, and set the options which allow our commands through
113455:   # without removal of \ escapes.
113456:   if test -n "${ZSH_VERSION+set}" ; then
113457:     setopt NO_GLOB_SUBST
113458:   fi
113459:   # Now quote all the things that may contain metacharacters while being
113460:   # careful not to overquote the AC_SUBSTed values.  We take copies of the
113461:   # variables and quote the copies for generation of the libtool script.
113462:   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
113463:     SED SHELL STRIP \
113464:     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
113465:     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
113466:     deplibs_check_method reload_flag reload_cmds need_locks \
113467:     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
113468:     lt_cv_sys_global_symbol_to_c_name_address \
113469:     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
113470:     old_postinstall_cmds old_postuninstall_cmds \
113471:     compiler_CXX \
113472:     CC_CXX \
113473:     LD_CXX \
113474:     lt_prog_compiler_wl_CXX \
113475:     lt_prog_compiler_pic_CXX \
113476:     lt_prog_compiler_static_CXX \
113477:     lt_prog_compiler_no_builtin_flag_CXX \
113478:     export_dynamic_flag_spec_CXX \
113479:     thread_safe_flag_spec_CXX \
113480:     whole_archive_flag_spec_CXX \
113481:     enable_shared_with_static_runtimes_CXX \
113482:     old_archive_cmds_CXX \
113483:     old_archive_from_new_cmds_CXX \
113484:     predep_objects_CXX \
113485:     postdep_objects_CXX \
113486:     predeps_CXX \
113487:     postdeps_CXX \
113488:     compiler_lib_search_path_CXX \
113489:     compiler_lib_search_dirs_CXX \
113490:     archive_cmds_CXX \
113491:     archive_expsym_cmds_CXX \
113492:     postinstall_cmds_CXX \
113493:     postuninstall_cmds_CXX \
113494:     old_archive_from_expsyms_cmds_CXX \
113495:     allow_undefined_flag_CXX \
113496:     no_undefined_flag_CXX \
113497:     export_symbols_cmds_CXX \
113498:     hardcode_libdir_flag_spec_CXX \
113499:     hardcode_libdir_flag_spec_ld_CXX \
113500:     hardcode_libdir_separator_CXX \
113501:     hardcode_automatic_CXX \
113502:     module_cmds_CXX \
113503:     module_expsym_cmds_CXX \
113504:     lt_cv_prog_compiler_c_o_CXX \
113505:     fix_srcfile_path_CXX \
113506:     exclude_expsyms_CXX \
113507:     include_expsyms_CXX; do
113508: 
113509:     case $var in
113510:     old_archive_cmds_CXX | \
113511:     old_archive_from_new_cmds_CXX | \
113512:     archive_cmds_CXX | \
113513:     archive_expsym_cmds_CXX | \
113514:     module_cmds_CXX | \
113515:     module_expsym_cmds_CXX | \
113516:     old_archive_from_expsyms_cmds_CXX | \
113517:     export_symbols_cmds_CXX | \
113518:     extract_expsyms_cmds | reload_cmds | finish_cmds | \
113519:     postinstall_cmds | postuninstall_cmds | \
113520:     old_postinstall_cmds | old_postuninstall_cmds | \
113521:     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
113522:       # Double-quote double-evaled strings.
113523:       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
113524:       ;;
113525:     *)
113526:       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
113527:       ;;
113528:     esac
113529:   done
113530: 
113531:   case $lt_echo in
113532:   *'\$0 --fallback-echo"')
113533:     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
113534:     ;;
113535:   esac
113536: 
113537: cfgfile="$ofile"
113538: 
113539:   cat <<__EOF__ >> "$cfgfile"
113540: # ### BEGIN LIBTOOL TAG CONFIG: $tagname
113541: 
113542: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
113543: 
113544: # Shell to use when invoking shell scripts.
113545: SHELL=$lt_SHELL
113546: 
113547: # Whether or not to build shared libraries.
113548: build_libtool_libs=$enable_shared
113549: 
113550: # Whether or not to build static libraries.
113551: build_old_libs=$enable_static
113552: 
113553: # Whether or not to add -lc for building shared libraries.
113554: build_libtool_need_lc=$archive_cmds_need_lc_CXX
113555: 
113556: # Whether or not to disallow shared libs when runtime libs are static
113557: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
113558: 
113559: # Whether or not to optimize for fast installation.
113560: fast_install=$enable_fast_install
113561: 
113562: # The host system.
113563: host_alias=$host_alias
113564: host=$host
113565: host_os=$host_os
113566: 
113567: # The build system.
113568: build_alias=$build_alias
113569: build=$build
113570: build_os=$build_os
113571: 
113572: # An echo program that does not interpret backslashes.
113573: echo=$lt_echo
113574: 
113575: # The archiver.
113576: AR=$lt_AR
113577: AR_FLAGS=$lt_AR_FLAGS
113578: 
113579: # A C compiler.
113580: LTCC=$lt_LTCC
113581: 
113582: # LTCC compiler flags.
113583: LTCFLAGS=$lt_LTCFLAGS
113584: 
113585: # A language-specific compiler.
113586: CC=$lt_compiler_CXX
113587: 
113588: # Is the compiler the GNU C compiler?
113589: with_gcc=$GCC_CXX
113590: 
113591: # An ERE matcher.
113592: EGREP=$lt_EGREP
113593: 
113594: # The linker used to build libraries.
113595: LD=$lt_LD_CXX
113596: 
113597: # Whether we need hard or soft links.
113598: LN_S=$lt_LN_S
113599: 
113600: # A BSD-compatible nm program.
113601: NM=$lt_NM
113602: 
113603: # A symbol stripping program
113604: STRIP=$lt_STRIP
113605: 
113606: # Used to examine libraries when file_magic_cmd begins "file"
113607: MAGIC_CMD=$MAGIC_CMD
113608: 
113609: # Used on cygwin: DLL creation program.
113610: DLLTOOL="$DLLTOOL"
113611: 
113612: # Used on cygwin: object dumper.
113613: OBJDUMP="$OBJDUMP"
113614: 
113615: # Used on cygwin: assembler.
113616: AS="$AS"
113617: 
113618: # The name of the directory that contains temporary libtool files.
113619: objdir=$objdir
113620: 
113621: # How to create reloadable object files.
113622: reload_flag=$lt_reload_flag
113623: reload_cmds=$lt_reload_cmds
113624: 
113625: # How to pass a linker flag through the compiler.
113626: wl=$lt_lt_prog_compiler_wl_CXX
113627: 
113628: # Object file suffix (normally "o").
113629: objext="$ac_objext"
113630: 
113631: # Old archive suffix (normally "a").
113632: libext="$libext"
113633: 
113634: # Shared library suffix (normally ".so").
113635: shrext_cmds='$shrext_cmds'
113636: 
113637: # Executable file suffix (normally "").
113638: exeext="$exeext"
113639: 
113640: # Additional compiler flags for building library objects.
113641: pic_flag=$lt_lt_prog_compiler_pic_CXX
113642: pic_mode=$pic_mode
113643: 
113644: # What is the maximum length of a command?
113645: max_cmd_len=$lt_cv_sys_max_cmd_len
113646: 
113647: # Does compiler simultaneously support -c and -o options?
113648: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
113649: 
113650: # Must we lock files when doing compilation?
113651: need_locks=$lt_need_locks
113652: 
113653: # Do we need the lib prefix for modules?
113654: need_lib_prefix=$need_lib_prefix
113655: 
113656: # Do we need a version for libraries?
113657: need_version=$need_version
113658: 
113659: # Whether dlopen is supported.
113660: dlopen_support=$enable_dlopen
113661: 
113662: # Whether dlopen of programs is supported.
113663: dlopen_self=$enable_dlopen_self
113664: 
113665: # Whether dlopen of statically linked programs is supported.
113666: dlopen_self_static=$enable_dlopen_self_static
113667: 
113668: # Compiler flag to prevent dynamic linking.
113669: link_static_flag=$lt_lt_prog_compiler_static_CXX
113670: 
113671: # Compiler flag to turn off builtin functions.
113672: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
113673: 
113674: # Compiler flag to allow reflexive dlopens.
113675: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
113676: 
113677: # Compiler flag to generate shared objects directly from archives.
113678: whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
113679: 
113680: # Compiler flag to generate thread-safe objects.
113681: thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
113682: 
113683: # Library versioning type.
113684: version_type=$version_type
113685: 
113686: # Format of library name prefix.
113687: libname_spec=$lt_libname_spec
113688: 
113689: # List of archive names.  First name is the real one, the rest are links.
113690: # The last name is the one that the linker finds with -lNAME.
113691: library_names_spec=$lt_library_names_spec
113692: 
113693: # The coded name of the library, if different from the real name.
113694: soname_spec=$lt_soname_spec
113695: 
113696: # Commands used to build and install an old-style archive.
113697: RANLIB=$lt_RANLIB
113698: old_archive_cmds=$lt_old_archive_cmds_CXX
113699: old_postinstall_cmds=$lt_old_postinstall_cmds
113700: old_postuninstall_cmds=$lt_old_postuninstall_cmds
113701: 
113702: # Create an old-style archive from a shared archive.
113703: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
113704: 
113705: # Create a temporary old-style archive to link instead of a shared archive.
113706: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
113707: 
113708: # Commands used to build and install a shared archive.
113709: archive_cmds=$lt_archive_cmds_CXX
113710: archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
113711: postinstall_cmds=$lt_postinstall_cmds
113712: postuninstall_cmds=$lt_postuninstall_cmds
113713: 
113714: # Commands used to build a loadable module (assumed same as above if empty)
113715: module_cmds=$lt_module_cmds_CXX
113716: module_expsym_cmds=$lt_module_expsym_cmds_CXX
113717: 
113718: # Commands to strip libraries.
113719: old_striplib=$lt_old_striplib
113720: striplib=$lt_striplib
113721: 
113722: # Dependencies to place before the objects being linked to create a
113723: # shared library.
113724: predep_objects=$lt_predep_objects_CXX
113725: 
113726: # Dependencies to place after the objects being linked to create a
113727: # shared library.
113728: postdep_objects=$lt_postdep_objects_CXX
113729: 
113730: # Dependencies to place before the objects being linked to create a
113731: # shared library.
113732: predeps=$lt_predeps_CXX
113733: 
113734: # Dependencies to place after the objects being linked to create a
113735: # shared library.
113736: postdeps=$lt_postdeps_CXX
113737: 
113738: # The directories searched by this compiler when creating a shared
113739: # library
113740: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
113741: 
113742: # The library search path used internally by the compiler when linking
113743: # a shared library.
113744: compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
113745: 
113746: # Method to check whether dependent libraries are shared objects.
113747: deplibs_check_method=$lt_deplibs_check_method
113748: 
113749: # Command to use when deplibs_check_method == file_magic.
113750: file_magic_cmd=$lt_file_magic_cmd
113751: 
113752: # Flag that allows shared libraries with undefined symbols to be built.
113753: allow_undefined_flag=$lt_allow_undefined_flag_CXX
113754: 
113755: # Flag that forces no undefined symbols.
113756: no_undefined_flag=$lt_no_undefined_flag_CXX
113757: 
113758: # Commands used to finish a libtool library installation in a directory.
113759: finish_cmds=$lt_finish_cmds
113760: 
113761: # Same as above, but a single script fragment to be evaled but not shown.
113762: finish_eval=$lt_finish_eval
113763: 
113764: # Take the output of nm and produce a listing of raw symbols and C names.
113765: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
113766: 
113767: # Transform the output of nm in a proper C declaration
113768: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
113769: 
113770: # Transform the output of nm in a C name address pair
113771: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
113772: 
113773: # This is the shared library runtime path variable.
113774: runpath_var=$runpath_var
113775: 
113776: # This is the shared library path variable.
113777: shlibpath_var=$shlibpath_var
113778: 
113779: # Is shlibpath searched before the hard-coded library search path?
113780: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
113781: 
113782: # How to hardcode a shared library path into an executable.
113783: hardcode_action=$hardcode_action_CXX
113784: 
113785: # Whether we should hardcode library paths into libraries.
113786: hardcode_into_libs=$hardcode_into_libs
113787: 
113788: # Flag to hardcode \$libdir into a binary during linking.
113789: # This must work even if \$libdir does not exist.
113790: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
113791: 
113792: # If ld is used when linking, flag to hardcode \$libdir into
113793: # a binary during linking. This must work even if \$libdir does
113794: # not exist.
113795: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
113796: 
113797: # Whether we need a single -rpath flag with a separated argument.
113798: hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
113799: 
113800: # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
113801: # resulting binary.
113802: hardcode_direct=$hardcode_direct_CXX
113803: 
113804: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
113805: # resulting binary.
113806: hardcode_minus_L=$hardcode_minus_L_CXX
113807: 
113808: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
113809: # the resulting binary.
113810: hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
113811: 
113812: # Set to yes if building a shared library automatically hardcodes DIR into the library
113813: # and all subsequent libraries and executables linked against it.
113814: hardcode_automatic=$hardcode_automatic_CXX
113815: 
113816: # Variables whose values should be saved in libtool wrapper scripts and
113817: # restored at relink time.
113818: variables_saved_for_relink="$variables_saved_for_relink"
113819: 
113820: # Whether libtool must link a program against all its dependency libraries.
113821: link_all_deplibs=$link_all_deplibs_CXX
113822: 
113823: # Compile-time system search path for libraries
113824: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
113825: 
113826: # Run-time system search path for libraries
113827: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
113828: 
113829: # Fix the shell variable \$srcfile for the compiler.
113830: fix_srcfile_path=$lt_fix_srcfile_path
113831: 
113832: # Set to yes if exported symbols are required.
113833: always_export_symbols=$always_export_symbols_CXX
113834: 
113835: # The commands to list exported symbols.
113836: export_symbols_cmds=$lt_export_symbols_cmds_CXX
113837: 
113838: # The commands to extract the exported symbol list from a shared archive.
113839: extract_expsyms_cmds=$lt_extract_expsyms_cmds
113840: 
113841: # Symbols that should not be listed in the preloaded symbols.
113842: exclude_expsyms=$lt_exclude_expsyms_CXX
113843: 
113844: # Symbols that must always be exported.
113845: include_expsyms=$lt_include_expsyms_CXX
113846: 
113847: # ### END LIBTOOL TAG CONFIG: $tagname
113848: 
113849: __EOF__
113850: 
113851: 
113852: else
113853:   # If there is no Makefile yet, we rely on a make rule to execute
113854:   # `config.status --recheck' to rerun these tests and create the
113855:   # libtool script then.
113856:   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
113857:   if test -f "$ltmain_in"; then
113858:     test -f Makefile && make "$ltmain"
113859:   fi
113860: fi
113861: 
113862: 
113863: ac_ext=c
113864: ac_cpp='$CPP $CPPFLAGS'
113865: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
113866: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
113867: ac_compiler_gnu=$ac_cv_c_compiler_gnu
113868: 
113869: CC=$lt_save_CC
113870: LDCXX=$LD
113871: LD=$lt_save_LD
113872: GCC=$lt_save_GCC
113873: with_gnu_ldcxx=$with_gnu_ld
113874: with_gnu_ld=$lt_save_with_gnu_ld
113875: lt_cv_path_LDCXX=$lt_cv_path_LD
113876: lt_cv_path_LD=$lt_save_path_LD
113877: lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
113878: lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
113879: 
113880: 	else
113881: 	  tagname=""
113882: 	fi
113883: 	;;
113884: 
113885:       *)
113886: 	as_fn_error $? "Unsupported tag name: $tagname" "$LINENO" 5
113887: 	;;
113888:       esac
113889: 
113890:       # Append the new tag name to the list of available tags.
113891:       if test -n "$tagname" ; then
113892:       available_tags="$available_tags $tagname"
113893:     fi
113894:     fi
113895:   done
113896:   IFS="$lt_save_ifs"
113897: 
113898:   # Now substitute the updated list of available tags.
113899:   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
113900:     mv "${ofile}T" "$ofile"
113901:     chmod +x "$ofile"
113902:   else
113903:     rm -f "${ofile}T"
113904:     as_fn_error $? "unable to update list of available tagged configurations." "$LINENO" 5
113905:   fi
113906: fi
113907: 
113908: 
113909: 
113910: # This can be used to rebuild libtool when needed
113911: LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
113912: 
113913: # Always use our own libtool.
113914: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
113915: 
113916: # Prevent multiple expansion
113917: 
113918: 
113919: 
113920: 
113921: 
113922: 
113923: 
113924: 
113925: 
113926: 
113927: 
113928: if test "$enable_debug" != "yes"; then
113929: 
113930:   if test -z "$LIBTOOL"; then
113931:     LIBTOOL='$(SHELL) $(top_builddir)/libtool --silent'
113932:   else
113933:     LIBTOOL="$LIBTOOL --silent"
113934:   fi
113935: 
113936: fi
113937: 
113938: 
113939:   if test -z "$LIBTOOL"; then
113940:     LIBTOOL='$(SHELL) $(top_builddir)/libtool --preserve-dup-deps'
113941:   else
113942:     LIBTOOL="$LIBTOOL --preserve-dup-deps"
113943:   fi
113944: 
113945: 
113946: test -z "$PHP_COMPILE" && PHP_COMPILE='$(LIBTOOL) --mode=compile $(COMPILE) -c $<'
113947: test -z "$CXX_PHP_COMPILE" && CXX_PHP_COMPILE='$(LIBTOOL) --mode=compile $(CXX_COMPILE) -c $<'
113948: SHARED_LIBTOOL='$(LIBTOOL)'
113949: 
113950: CC=$old_CC
113951: 
113952: 
113953:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
113954: $as_echo "" >&6; }
113955:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Generating files${T_ME}" >&5
113956: $as_echo "${T_MD}Generating files${T_ME}" >&6; }
113957: 
113958: 
113959: CXXFLAGS_CLEAN=$CXXFLAGS
113960: CFLAGS_CLEAN=$CFLAGS
113961: CFLAGS="\$(CFLAGS_CLEAN) $standard_libtool_flag"
113962: INLINE_CFLAGS="$INLINE_CFLAGS $standard_libtool_flag"
113963: CXXFLAGS="$CXXFLAGS $standard_libtool_flag"
113964: 
113965: if test "$PHP_PHAR" != "no" && test "$PHP_CLI" != "no"; then
113966:   pharcmd=pharcmd
113967:   pharcmd_install=install-pharcmd
113968: else
113969:   pharcmd=
113970:   pharcmd_install=
113971: fi;
113972: 
113973: all_targets="$lcov_target \$(OVERALL_TARGET) \$(PHP_MODULES) \$(PHP_ZEND_EX) \$(PHP_BINARIES) $pharcmd"
113974: install_targets="$install_sapi $install_modules $install_binaries install-build install-headers install-programs $install_pear $pharcmd_install"
113975: 
113976: 
113977:   PHP_VAR_SUBST="$PHP_VAR_SUBST all_targets"
113978: 
113979: 
113980:   PHP_VAR_SUBST="$PHP_VAR_SUBST install_targets"
113981: 
113982: 
113983:   PHP_VAR_SUBST="$PHP_VAR_SUBST install_binary_targets"
113984: 
113985: 
113986: 
113987: 
113988:     for header_file in Zend/ TSRM/ include/ main/ main/streams/; do
113989: 
113990: 
113991:   unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
113992: 
113993:   cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
113994:   if test -n "$unique" && test "`eval $cmd`" = "" ; then
113995:     eval "INSTALLHEADERS$unique=set"
113996: 
113997:         INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
113998: 
113999:   fi
114000: 
114001:     done
114002: 
114003: 
114004: 
114005: 
114006: 
114007:   case TSRM in
114008:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
114009:   /*) ac_srcdir=`echo "TSRM"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
114010:   *) ac_srcdir="$abs_srcdir/TSRM/"; ac_bdir="TSRM/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
114011:   esac
114012: 
114013: 
114014: 
114015:   b_c_pre=$php_c_pre
114016:   b_cxx_pre=$php_cxx_pre
114017:   b_c_meta=$php_c_meta
114018:   b_cxx_meta=$php_cxx_meta
114019:   b_c_post=$php_c_post
114020:   b_cxx_post=$php_cxx_post
114021:   b_lo=$php_lo
114022: 
114023: 
114024:   old_IFS=$IFS
114025:   for ac_src in TSRM.c tsrm_strtok_r.c tsrm_virtual_cwd.c; do
114026: 
114027:       IFS=.
114028:       set $ac_src
114029:       ac_obj=$1
114030:       IFS=$old_IFS
114031: 
114032:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
114033: 
114034:       case $ac_src in
114035:         *.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" ;;
114036:         *.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" ;;
114037:         *.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" ;;
114038:         *.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" ;;
114039:       esac
114040: 
114041:     cat >>Makefile.objects<<EOF
114042: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
114043: 	$ac_comp
114044: EOF
114045:   done
114046: 
114047: 
114048: 
114049: 
114050: 
114051:   case main in
114052:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
114053:   /*) ac_srcdir=`echo "main"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
114054:   *) ac_srcdir="$abs_srcdir/main/"; ac_bdir="main/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
114055:   esac
114056: 
114057: 
114058: 
114059:   b_c_pre=$php_c_pre
114060:   b_cxx_pre=$php_cxx_pre
114061:   b_c_meta=$php_c_meta
114062:   b_cxx_meta=$php_cxx_meta
114063:   b_c_post=$php_c_post
114064:   b_cxx_post=$php_cxx_post
114065:   b_lo=$php_lo
114066: 
114067: 
114068:   old_IFS=$IFS
114069:   for ac_src in main.c snprintf.c spprintf.c php_sprintf.c \
114070:        fopen_wrappers.c alloca.c  php_scandir.c \
114071:        php_ini.c SAPI.c rfc1867.c php_content_types.c strlcpy.c \
114072:        strlcat.c mergesort.c reentrancy.c php_variables.c php_ticks.c \
114073:        network.c php_open_temporary_file.c php_logos.c \
114074:        output.c getopt.c; do
114075: 
114076:       IFS=.
114077:       set $ac_src
114078:       ac_obj=$1
114079:       IFS=$old_IFS
114080: 
114081:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
114082: 
114083:       case $ac_src in
114084:         *.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" ;;
114085:         *.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" ;;
114086:         *.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" ;;
114087:         *.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" ;;
114088:       esac
114089: 
114090:     cat >>Makefile.objects<<EOF
114091: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
114092: 	$ac_comp
114093: EOF
114094:   done
114095: 
114096: 
114097: 
114098: 
114099: 
114100:   case main/streams in
114101:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
114102:   /*) ac_srcdir=`echo "main/streams"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
114103:   *) ac_srcdir="$abs_srcdir/main/streams/"; ac_bdir="main/streams/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
114104:   esac
114105: 
114106: 
114107: 
114108:   b_c_pre=$php_c_pre
114109:   b_cxx_pre=$php_cxx_pre
114110:   b_c_meta=$php_c_meta
114111:   b_cxx_meta=$php_cxx_meta
114112:   b_c_post=$php_c_post
114113:   b_cxx_post=$php_cxx_post
114114:   b_lo=$php_lo
114115: 
114116: 
114117:   old_IFS=$IFS
114118:   for ac_src in streams.c cast.c memory.c filter.c \
114119:        plain_wrapper.c userspace.c transports.c xp_socket.c mmap.c \
114120:        glob_wrapper.c; do
114121: 
114122:       IFS=.
114123:       set $ac_src
114124:       ac_obj=$1
114125:       IFS=$old_IFS
114126: 
114127:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
114128: 
114129:       case $ac_src in
114130:         *.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" ;;
114131:         *.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" ;;
114132:         *.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" ;;
114133:         *.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" ;;
114134:       esac
114135: 
114136:     cat >>Makefile.objects<<EOF
114137: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
114138: 	$ac_comp
114139: EOF
114140:   done
114141: 
114142: 
114143: 
114144: 
114145: 
114146:   case /main in
114147:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
114148:   /*) ac_srcdir=`echo "/main"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
114149:   *) ac_srcdir="$abs_srcdir//main/"; ac_bdir="/main/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
114150:   esac
114151: 
114152: 
114153: 
114154:   b_c_pre=$php_c_pre
114155:   b_cxx_pre=$php_cxx_pre
114156:   b_c_meta=$php_c_meta
114157:   b_cxx_meta=$php_cxx_meta
114158:   b_c_post=$php_c_post
114159:   b_cxx_post=$php_cxx_post
114160:   b_lo=$php_lo
114161: 
114162: 
114163:   old_IFS=$IFS
114164:   for ac_src in internal_functions.c; do
114165: 
114166:       IFS=.
114167:       set $ac_src
114168:       ac_obj=$1
114169:       IFS=$old_IFS
114170: 
114171:       PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
114172: 
114173:       case $ac_src in
114174:         *.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" ;;
114175:         *.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" ;;
114176:         *.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" ;;
114177:         *.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" ;;
114178:       esac
114179: 
114180:     cat >>Makefile.objects<<EOF
114181: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
114182: 	$ac_comp
114183: EOF
114184:   done
114185: 
114186: 
114187: 
114188: case $host_alias in
114189:   *netware*)
114190: 
114191: 
114192:     BUILD_DIR="$BUILD_DIR win32"
114193: 
114194: 
114195: 
114196: 
114197:     BUILD_DIR="$BUILD_DIR netware"
114198: 
114199: 
114200:     ;;
114201:   *)
114202: 
114203:   case /main in
114204:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
114205:   /*) ac_srcdir=`echo "/main"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
114206:   *) ac_srcdir="$abs_srcdir//main/"; ac_bdir="/main/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
114207:   esac
114208: 
114209: 
114210: 
114211:   b_c_pre=$php_c_pre
114212:   b_cxx_pre=$php_cxx_pre
114213:   b_c_meta=$php_c_meta
114214:   b_cxx_meta=$php_cxx_meta
114215:   b_c_post=$php_c_post
114216:   b_cxx_post=$php_cxx_post
114217:   b_lo=$php_lo
114218: 
114219: 
114220:   old_IFS=$IFS
114221:   for ac_src in internal_functions_cli.c; do
114222: 
114223:       IFS=.
114224:       set $ac_src
114225:       ac_obj=$1
114226:       IFS=$old_IFS
114227: 
114228:       PHP_BINARY_OBJS="$PHP_BINARY_OBJS $ac_bdir$ac_obj.lo"
114229: 
114230:       case $ac_src in
114231:         *.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" ;;
114232:         *.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" ;;
114233:         *.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" ;;
114234:         *.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" ;;
114235:       esac
114236: 
114237:     cat >>Makefile.objects<<EOF
114238: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
114239: 	$ac_comp
114240: EOF
114241:   done
114242: 
114243:     ;;
114244: esac
114245: 
114246: 
114247: 
114248:   case Zend in
114249:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
114250:   /*) ac_srcdir=`echo "Zend"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
114251:   *) ac_srcdir="$abs_srcdir/Zend/"; ac_bdir="Zend/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
114252:   esac
114253: 
114254: 
114255: 
114256:   b_c_pre=$php_c_pre
114257:   b_cxx_pre=$php_cxx_pre
114258:   b_c_meta=$php_c_meta
114259:   b_cxx_meta=$php_cxx_meta
114260:   b_c_post=$php_c_post
114261:   b_cxx_post=$php_cxx_post
114262:   b_lo=$php_lo
114263: 
114264: 
114265:   old_IFS=$IFS
114266:   for ac_src in \
114267:     zend_language_parser.c zend_language_scanner.c \
114268:     zend_ini_parser.c zend_ini_scanner.c \
114269:     zend_alloc.c zend_compile.c zend_constants.c zend_dynamic_array.c zend_dtrace.c \
114270:     zend_execute_API.c zend_highlight.c zend_llist.c \
114271:     zend_vm_opcodes.c zend_opcode.c zend_operators.c zend_ptr_stack.c zend_stack.c \
114272:     zend_variables.c zend.c zend_API.c zend_extensions.c zend_hash.c \
114273:     zend_list.c zend_indent.c zend_builtin_functions.c zend_sprintf.c \
114274:     zend_ini.c zend_qsort.c zend_multibyte.c zend_ts_hash.c zend_stream.c \
114275:     zend_iterators.c zend_interfaces.c zend_exceptions.c zend_strtod.c zend_gc.c \
114276:     zend_closures.c zend_float.c zend_string.c zend_signal.c; do
114277: 
114278:       IFS=.
114279:       set $ac_src
114280:       ac_obj=$1
114281:       IFS=$old_IFS
114282: 
114283:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
114284: 
114285:       case $ac_src in
114286:         *.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" ;;
114287:         *.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" ;;
114288:         *.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" ;;
114289:         *.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" ;;
114290:       esac
114291: 
114292:     cat >>Makefile.objects<<EOF
114293: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
114294: 	$ac_comp
114295: EOF
114296:   done
114297: 
114298: 
114299: 
114300: if test -r "$abs_srcdir/Zend/zend_objects.c"; then
114301: 
114302: 
114303:   case Zend in
114304:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
114305:   /*) ac_srcdir=`echo "Zend"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
114306:   *) ac_srcdir="$abs_srcdir/Zend/"; ac_bdir="Zend/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
114307:   esac
114308: 
114309: 
114310: 
114311:   b_c_pre=$php_c_pre
114312:   b_cxx_pre=$php_cxx_pre
114313:   b_c_meta=$php_c_meta
114314:   b_cxx_meta=$php_cxx_meta
114315:   b_c_post=$php_c_post
114316:   b_cxx_post=$php_cxx_post
114317:   b_lo=$php_lo
114318: 
114319: 
114320:   old_IFS=$IFS
114321:   for ac_src in zend_objects.c zend_object_handlers.c zend_objects_API.c zend_default_classes.c; do
114322: 
114323:       IFS=.
114324:       set $ac_src
114325:       ac_obj=$1
114326:       IFS=$old_IFS
114327: 
114328:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
114329: 
114330:       case $ac_src in
114331:         *.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" ;;
114332:         *.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" ;;
114333:         *.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" ;;
114334:         *.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" ;;
114335:       esac
114336: 
114337:     cat >>Makefile.objects<<EOF
114338: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
114339: 	$ac_comp
114340: EOF
114341:   done
114342: 
114343: 
114344: fi
114345: 
114346: if test -n "$GCC" && test "$ZEND_INLINE_OPTIMIZATION" != "yes"; then
114347:   flag=-O0
114348: else
114349:   flag=
114350: fi
114351: 
114352: 
114353:   case Zend in
114354:   "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
114355:   /*) ac_srcdir=`echo "Zend"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
114356:   *) ac_srcdir="$abs_srcdir/Zend/"; ac_bdir="Zend/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
114357:   esac
114358: 
114359: 
114360: 
114361:   b_c_pre=$php_c_pre
114362:   b_cxx_pre=$php_cxx_pre
114363:   b_c_meta=$php_c_meta
114364:   b_cxx_meta=$php_cxx_meta
114365:   b_c_post=$php_c_post
114366:   b_cxx_post=$php_cxx_post
114367:   b_lo=$php_lo
114368: 
114369: 
114370:   old_IFS=$IFS
114371:   for ac_src in zend_execute.c; do
114372: 
114373:       IFS=.
114374:       set $ac_src
114375:       ac_obj=$1
114376:       IFS=$old_IFS
114377: 
114378:       PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
114379: 
114380:       case $ac_src in
114381:         *.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" ;;
114382:         *.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" ;;
114383:         *.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" ;;
114384:         *.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" ;;
114385:       esac
114386: 
114387:     cat >>Makefile.objects<<EOF
114388: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
114389: 	$ac_comp
114390: EOF
114391:   done
114392: 
114393: 
114394: 
114395: 
114396:     BUILD_DIR="$BUILD_DIR main main/streams"
114397: 
114398: 
114399: 
114400: 
114401:     BUILD_DIR="$BUILD_DIR TSRM"
114402: 
114403: 
114404: 
114405: 
114406:     BUILD_DIR="$BUILD_DIR Zend"
114407: 
114408: 
114409: 
114410: 
114411:   src=$abs_srcdir/scripts/Makefile.frag
114412:   ac_srcdir=$abs_srcdir/scripts
114413:   ac_builddir=scripts
114414:   test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src  >> Makefile.fragments
114415: 
114416: 
114417:   src=$abs_srcdir/Makefile.frag
114418:   ac_srcdir=$abs_srcdir/Zend
114419:   ac_builddir=Zend
114420:   test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src  >> Makefile.fragments
114421: 
114422: 
114423:   src=$abs_srcdir/Zend/Makefile.frag
114424:   ac_srcdir=$abs_srcdir/Zend
114425:   ac_builddir=Zend
114426:   test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src  >> Makefile.fragments
114427: 
114428: 
114429: 
114430:   $php_shtool mkdir -p $BUILD_DIR
114431: 
114432: 
114433:   cat >Makefile <<EOF
114434: srcdir = $abs_srcdir
114435: builddir = $abs_builddir
114436: top_srcdir = $abs_srcdir
114437: top_builddir = $abs_builddir
114438: EOF
114439:   for i in $PHP_VAR_SUBST; do
114440:     eval echo "$i = \$$i" >> Makefile
114441:   done
114442: 
114443:   cat $abs_srcdir/Makefile.global Makefile.fragments Makefile.objects >> Makefile
114444: 
114445: 
114446: 
114447: $as_echo "#define HAVE_BUILD_DEFS_H 1" >>confdefs.h
114448: 
114449: 
114450: $php_shtool mkdir -p pear/scripts
114451: $php_shtool mkdir -p scripts
114452: $php_shtool mkdir -p scripts/man1
114453: 
114454: ALL_OUTPUT_FILES="php5.spec main/build-defs.h \
114455: scripts/phpize scripts/man1/phpize.1 \
114456: scripts/php-config scripts/man1/php-config.1 \
114457: $PHP_OUTPUT_FILES"
114458: 
114459: 
114460:   for arg in $ac_configure_args; do
114461:     case $arg in
114462:       --with-*)
114463:         arg_name="`echo $arg | $SED -e 's/--with-/with-/g' -e 's/=.*//g'`"
114464:         ;;
114465:       --without-*)
114466:         arg_name="`echo $arg | $SED -e 's/--without-/with-/g' -e 's/=.*//g'`"
114467:         ;;
114468:       --enable-*)
114469:         arg_name="`echo $arg | $SED -e 's/--enable-/enable-/g' -e 's/=.*//g'`"
114470:         ;;
114471:       --disable-*)
114472:         arg_name="`echo $arg | $SED -e 's/--disable-/enable-/g' -e 's/=.*//g'`"
114473:         ;;
114474:       *)
114475:         continue
114476:         ;;
114477:     esac
114478:     case $arg_name in
114479:       # Allow --disable-all / --enable-all
114480:       enable-all);;
114481: 
114482:       # Allow certain libtool options
114483:       enable-libtool-lock | with-pic | with-tags | enable-shared | enable-static | enable-fast-install | with-gnu-ld);;
114484: 
114485:       # Allow certain TSRM options
114486:       with-tsrm-pth | with-tsrm-st | with-tsrm-pthreads);;
114487: 
114488:       # Allow certain Zend options
114489:       with-zend-vm | enable-maintainer-zts | enable-inline-optimization);;
114490: 
114491:       # All the rest must be set using the PHP_ARG_* macros
114492:       # PHP_ARG_* macros set php_enable_<arg_name> or php_with_<arg_name>
114493:       *)
114494:         # Options that exist before PHP 6
114495:         if test "$PHP_MAJOR_VERSION" -lt "6"; then
114496:           case $arg_name in
114497:             enable-zend-multibyte) continue;;
114498:           esac
114499:         fi
114500: 
114501:         is_arg_set=php_`echo $arg_name | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ-' 'abcdefghijklmnopqrstuvwxyz_'`
114502:         if eval test "x\$$is_arg_set" = "x"; then
114503:           PHP_UNKNOWN_CONFIGURE_OPTIONS="$PHP_UNKNOWN_CONFIGURE_OPTIONS
114504: $arg"
114505:         fi
114506:         ;;
114507:     esac
114508:   done
114509: 
114510: 
114511: ac_config_files="$ac_config_files $ALL_OUTPUT_FILES"
114512: 
114513: ac_config_commands="$ac_config_commands default"
114514: 
114515: cat >confcache <<\_ACEOF
114516: # This file is a shell script that caches the results of configure
114517: # tests run on this system so they can be shared between configure
114518: # scripts and configure runs, see configure's option --config-cache.
114519: # It is not useful on other systems.  If it contains results you don't
114520: # want to keep, you may remove or edit it.
114521: #
114522: # config.status only pays attention to the cache file if you give it
114523: # the --recheck option to rerun configure.
114524: #
114525: # `ac_cv_env_foo' variables (set or unset) will be overridden when
114526: # loading this file, other *unset* `ac_cv_foo' will be assigned the
114527: # following values.
114528: 
114529: _ACEOF
114530: 
114531: # The following way of writing the cache mishandles newlines in values,
114532: # but we know of no workaround that is simple, portable, and efficient.
114533: # So, we kill variables containing newlines.
114534: # Ultrix sh set writes to stderr and can't be redirected directly,
114535: # and sets the high bit in the cache file unless we assign to the vars.
114536: (
114537:   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
114538:     eval ac_val=\$$ac_var
114539:     case $ac_val in #(
114540:     *${as_nl}*)
114541:       case $ac_var in #(
114542:       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
114543: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
114544:       esac
114545:       case $ac_var in #(
114546:       _ | IFS | as_nl) ;; #(
114547:       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
114548:       *) { eval $ac_var=; unset $ac_var;} ;;
114549:       esac ;;
114550:     esac
114551:   done
114552: 
114553:   (set) 2>&1 |
114554:     case $as_nl`(ac_space=' '; set) 2>&1` in #(
114555:     *${as_nl}ac_space=\ *)
114556:       # `set' does not quote correctly, so add quotes: double-quote
114557:       # substitution turns \\\\ into \\, and sed turns \\ into \.
114558:       sed -n \
114559: 	"s/'/'\\\\''/g;
114560: 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
114561:       ;; #(
114562:     *)
114563:       # `set' quotes correctly as required by POSIX, so do not add quotes.
114564:       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
114565:       ;;
114566:     esac |
114567:     sort
114568: ) |
114569:   sed '
114570:      /^ac_cv_env_/b end
114571:      t clear
114572:      :clear
114573:      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
114574:      t end
114575:      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
114576:      :end' >>confcache
114577: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
114578:   if test -w "$cache_file"; then
114579:     if test "x$cache_file" != "x/dev/null"; then
114580:       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
114581: $as_echo "$as_me: updating cache $cache_file" >&6;}
114582:       if test ! -f "$cache_file" || test -h "$cache_file"; then
114583: 	cat confcache >"$cache_file"
114584:       else
114585:         case $cache_file in #(
114586:         */* | ?:*)
114587: 	  mv -f confcache "$cache_file"$$ &&
114588: 	  mv -f "$cache_file"$$ "$cache_file" ;; #(
114589:         *)
114590: 	  mv -f confcache "$cache_file" ;;
114591: 	esac
114592:       fi
114593:     fi
114594:   else
114595:     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
114596: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
114597:   fi
114598: fi
114599: rm -f confcache
114600: 
114601: test "x$prefix" = xNONE && prefix=$ac_default_prefix
114602: # Let make expand exec_prefix.
114603: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
114604: 
114605: DEFS=-DHAVE_CONFIG_H
114606: 
114607: ac_libobjs=
114608: ac_ltlibobjs=
114609: U=
114610: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
114611:   # 1. Remove the extension, and $U if already installed.
114612:   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
114613:   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
114614:   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
114615:   #    will be set to the directory where LIBOBJS objects are built.
114616:   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
114617:   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
114618: done
114619: LIBOBJS=$ac_libobjs
114620: 
114621: LTLIBOBJS=$ac_ltlibobjs
114622: 
114623: 
114624: 
114625: : "${CONFIG_STATUS=./config.status}"
114626: ac_write_fail=0
114627: ac_clean_files_save=$ac_clean_files
114628: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
114629: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
114630: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
114631: as_write_fail=0
114632: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
114633: #! $SHELL
114634: # Generated by $as_me.
114635: # Run this file to recreate the current configuration.
114636: # Compiler output produced by configure, useful for debugging
114637: # configure, is in config.log if it exists.
114638: 
114639: debug=false
114640: ac_cs_recheck=false
114641: ac_cs_silent=false
114642: 
114643: SHELL=\${CONFIG_SHELL-$SHELL}
114644: export SHELL
114645: _ASEOF
114646: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
114647: ## -------------------- ##
114648: ## M4sh Initialization. ##
114649: ## -------------------- ##
114650: 
114651: # Be more Bourne compatible
114652: DUALCASE=1; export DUALCASE # for MKS sh
114653: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
114654:   emulate sh
114655:   NULLCMD=:
114656:   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
114657:   # is contrary to our usage.  Disable this feature.
114658:   alias -g '${1+"$@"}'='"$@"'
114659:   setopt NO_GLOB_SUBST
114660: else
114661:   case `(set -o) 2>/dev/null` in #(
114662:   *posix*) :
114663:     set -o posix ;; #(
114664:   *) :
114665:      ;;
114666: esac
114667: fi
114668: 
114669: 
114670: as_nl='
114671: '
114672: export as_nl
114673: # Printing a long string crashes Solaris 7 /usr/bin/printf.
114674: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
114675: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
114676: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
114677: # Prefer a ksh shell builtin over an external printf program on Solaris,
114678: # but without wasting forks for bash or zsh.
114679: if test -z "$BASH_VERSION$ZSH_VERSION" \
114680:     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
114681:   as_echo='print -r --'
114682:   as_echo_n='print -rn --'
114683: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
114684:   as_echo='printf %s\n'
114685:   as_echo_n='printf %s'
114686: else
114687:   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
114688:     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
114689:     as_echo_n='/usr/ucb/echo -n'
114690:   else
114691:     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
114692:     as_echo_n_body='eval
114693:       arg=$1;
114694:       case $arg in #(
114695:       *"$as_nl"*)
114696: 	expr "X$arg" : "X\\(.*\\)$as_nl";
114697: 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
114698:       esac;
114699:       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
114700:     '
114701:     export as_echo_n_body
114702:     as_echo_n='sh -c $as_echo_n_body as_echo'
114703:   fi
114704:   export as_echo_body
114705:   as_echo='sh -c $as_echo_body as_echo'
114706: fi
114707: 
114708: # The user is always right.
114709: if test "${PATH_SEPARATOR+set}" != set; then
114710:   PATH_SEPARATOR=:
114711:   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
114712:     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
114713:       PATH_SEPARATOR=';'
114714:   }
114715: fi
114716: 
114717: 
114718: # IFS
114719: # We need space, tab and new line, in precisely that order.  Quoting is
114720: # there to prevent editors from complaining about space-tab.
114721: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
114722: # splitting by setting IFS to empty value.)
114723: IFS=" ""	$as_nl"
114724: 
114725: # Find who we are.  Look in the path if we contain no directory separator.
114726: as_myself=
114727: case $0 in #((
114728:   *[\\/]* ) as_myself=$0 ;;
114729:   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114730: for as_dir in $PATH
114731: do
114732:   IFS=$as_save_IFS
114733:   test -z "$as_dir" && as_dir=.
114734:     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
114735:   done
114736: IFS=$as_save_IFS
114737: 
114738:      ;;
114739: esac
114740: # We did not find ourselves, most probably we were run as `sh COMMAND'
114741: # in which case we are not to be found in the path.
114742: if test "x$as_myself" = x; then
114743:   as_myself=$0
114744: fi
114745: if test ! -f "$as_myself"; then
114746:   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114747:   exit 1
114748: fi
114749: 
114750: # Unset variables that we do not need and which cause bugs (e.g. in
114751: # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
114752: # suppresses any "Segmentation fault" message there.  '((' could
114753: # trigger a bug in pdksh 5.2.14.
114754: for as_var in BASH_ENV ENV MAIL MAILPATH
114755: do eval test x\${$as_var+set} = xset \
114756:   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
114757: done
114758: PS1='$ '
114759: PS2='> '
114760: PS4='+ '
114761: 
114762: # NLS nuisances.
114763: LC_ALL=C
114764: export LC_ALL
114765: LANGUAGE=C
114766: export LANGUAGE
114767: 
114768: # CDPATH.
114769: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
114770: 
114771: 
114772: # as_fn_error STATUS ERROR [LINENO LOG_FD]
114773: # ----------------------------------------
114774: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
114775: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
114776: # script with STATUS, using 1 if that was 0.
114777: as_fn_error ()
114778: {
114779:   as_status=$1; test $as_status -eq 0 && as_status=1
114780:   if test "$4"; then
114781:     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
114782:     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
114783:   fi
114784:   $as_echo "$as_me: error: $2" >&2
114785:   as_fn_exit $as_status
114786: } # as_fn_error
114787: 
114788: 
114789: # as_fn_set_status STATUS
114790: # -----------------------
114791: # Set $? to STATUS, without forking.
114792: as_fn_set_status ()
114793: {
114794:   return $1
114795: } # as_fn_set_status
114796: 
114797: # as_fn_exit STATUS
114798: # -----------------
114799: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
114800: as_fn_exit ()
114801: {
114802:   set +e
114803:   as_fn_set_status $1
114804:   exit $1
114805: } # as_fn_exit
114806: 
114807: # as_fn_unset VAR
114808: # ---------------
114809: # Portably unset VAR.
114810: as_fn_unset ()
114811: {
114812:   { eval $1=; unset $1;}
114813: }
114814: as_unset=as_fn_unset
114815: # as_fn_append VAR VALUE
114816: # ----------------------
114817: # Append the text in VALUE to the end of the definition contained in VAR. Take
114818: # advantage of any shell optimizations that allow amortized linear growth over
114819: # repeated appends, instead of the typical quadratic growth present in naive
114820: # implementations.
114821: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
114822:   eval 'as_fn_append ()
114823:   {
114824:     eval $1+=\$2
114825:   }'
114826: else
114827:   as_fn_append ()
114828:   {
114829:     eval $1=\$$1\$2
114830:   }
114831: fi # as_fn_append
114832: 
114833: # as_fn_arith ARG...
114834: # ------------------
114835: # Perform arithmetic evaluation on the ARGs, and store the result in the
114836: # global $as_val. Take advantage of shells that can avoid forks. The arguments
114837: # must be portable across $(()) and expr.
114838: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
114839:   eval 'as_fn_arith ()
114840:   {
114841:     as_val=$(( $* ))
114842:   }'
114843: else
114844:   as_fn_arith ()
114845:   {
114846:     as_val=`expr "$@" || test $? -eq 1`
114847:   }
114848: fi # as_fn_arith
114849: 
114850: 
114851: if expr a : '\(a\)' >/dev/null 2>&1 &&
114852:    test "X`expr 00001 : '.*\(...\)'`" = X001; then
114853:   as_expr=expr
114854: else
114855:   as_expr=false
114856: fi
114857: 
114858: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
114859:   as_basename=basename
114860: else
114861:   as_basename=false
114862: fi
114863: 
114864: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
114865:   as_dirname=dirname
114866: else
114867:   as_dirname=false
114868: fi
114869: 
114870: as_me=`$as_basename -- "$0" ||
114871: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
114872: 	 X"$0" : 'X\(//\)$' \| \
114873: 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
114874: $as_echo X/"$0" |
114875:     sed '/^.*\/\([^/][^/]*\)\/*$/{
114876: 	    s//\1/
114877: 	    q
114878: 	  }
114879: 	  /^X\/\(\/\/\)$/{
114880: 	    s//\1/
114881: 	    q
114882: 	  }
114883: 	  /^X\/\(\/\).*/{
114884: 	    s//\1/
114885: 	    q
114886: 	  }
114887: 	  s/.*/./; q'`
114888: 
114889: # Avoid depending upon Character Ranges.
114890: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
114891: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
114892: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
114893: as_cr_digits='0123456789'
114894: as_cr_alnum=$as_cr_Letters$as_cr_digits
114895: 
114896: ECHO_C= ECHO_N= ECHO_T=
114897: case `echo -n x` in #(((((
114898: -n*)
114899:   case `echo 'xy\c'` in
114900:   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
114901:   xy)  ECHO_C='\c';;
114902:   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
114903:        ECHO_T='	';;
114904:   esac;;
114905: *)
114906:   ECHO_N='-n';;
114907: esac
114908: 
114909: rm -f conf$$ conf$$.exe conf$$.file
114910: if test -d conf$$.dir; then
114911:   rm -f conf$$.dir/conf$$.file
114912: else
114913:   rm -f conf$$.dir
114914:   mkdir conf$$.dir 2>/dev/null
114915: fi
114916: if (echo >conf$$.file) 2>/dev/null; then
114917:   if ln -s conf$$.file conf$$ 2>/dev/null; then
114918:     as_ln_s='ln -s'
114919:     # ... but there are two gotchas:
114920:     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
114921:     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
114922:     # In both cases, we have to default to `cp -pR'.
114923:     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
114924:       as_ln_s='cp -pR'
114925:   elif ln conf$$.file conf$$ 2>/dev/null; then
114926:     as_ln_s=ln
114927:   else
114928:     as_ln_s='cp -pR'
114929:   fi
114930: else
114931:   as_ln_s='cp -pR'
114932: fi
114933: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
114934: rmdir conf$$.dir 2>/dev/null
114935: 
114936: 
114937: # as_fn_mkdir_p
114938: # -------------
114939: # Create "$as_dir" as a directory, including parents if necessary.
114940: as_fn_mkdir_p ()
114941: {
114942: 
114943:   case $as_dir in #(
114944:   -*) as_dir=./$as_dir;;
114945:   esac
114946:   test -d "$as_dir" || eval $as_mkdir_p || {
114947:     as_dirs=
114948:     while :; do
114949:       case $as_dir in #(
114950:       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
114951:       *) as_qdir=$as_dir;;
114952:       esac
114953:       as_dirs="'$as_qdir' $as_dirs"
114954:       as_dir=`$as_dirname -- "$as_dir" ||
114955: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
114956: 	 X"$as_dir" : 'X\(//\)[^/]' \| \
114957: 	 X"$as_dir" : 'X\(//\)$' \| \
114958: 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
114959: $as_echo X"$as_dir" |
114960:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
114961: 	    s//\1/
114962: 	    q
114963: 	  }
114964: 	  /^X\(\/\/\)[^/].*/{
114965: 	    s//\1/
114966: 	    q
114967: 	  }
114968: 	  /^X\(\/\/\)$/{
114969: 	    s//\1/
114970: 	    q
114971: 	  }
114972: 	  /^X\(\/\).*/{
114973: 	    s//\1/
114974: 	    q
114975: 	  }
114976: 	  s/.*/./; q'`
114977:       test -d "$as_dir" && break
114978:     done
114979:     test -z "$as_dirs" || eval "mkdir $as_dirs"
114980:   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
114981: 
114982: 
114983: } # as_fn_mkdir_p
114984: if mkdir -p . 2>/dev/null; then
114985:   as_mkdir_p='mkdir -p "$as_dir"'
114986: else
114987:   test -d ./-p && rmdir ./-p
114988:   as_mkdir_p=false
114989: fi
114990: 
114991: 
114992: # as_fn_executable_p FILE
114993: # -----------------------
114994: # Test if FILE is an executable regular file.
114995: as_fn_executable_p ()
114996: {
114997:   test -f "$1" && test -x "$1"
114998: } # as_fn_executable_p
114999: as_test_x='test -x'
115000: as_executable_p=as_fn_executable_p
115001: 
115002: # Sed expression to map a string onto a valid CPP name.
115003: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
115004: 
115005: # Sed expression to map a string onto a valid variable name.
115006: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
115007: 
115008: 
115009: exec 6>&1
115010: ## ----------------------------------- ##
115011: ## Main body of $CONFIG_STATUS script. ##
115012: ## ----------------------------------- ##
115013: _ASEOF
115014: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
115015: 
115016: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
115017: # Save the log message, to keep $0 and so on meaningful, and to
115018: # report actual input values of CONFIG_FILES etc. instead of their
115019: # values after options handling.
115020: ac_log="
115021: This file was extended by $as_me, which was
115022: generated by GNU Autoconf 2.69.  Invocation command line was
115023: 
115024:   CONFIG_FILES    = $CONFIG_FILES
115025:   CONFIG_HEADERS  = $CONFIG_HEADERS
115026:   CONFIG_LINKS    = $CONFIG_LINKS
115027:   CONFIG_COMMANDS = $CONFIG_COMMANDS
115028:   $ $0 $@
115029: 
115030: on `(hostname || uname -n) 2>/dev/null | sed 1q`
115031: "
115032: 
115033: _ACEOF
115034: 
115035: case $ac_config_files in *"
115036: "*) set x $ac_config_files; shift; ac_config_files=$*;;
115037: esac
115038: 
115039: case $ac_config_headers in *"
115040: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
115041: esac
115042: 
115043: 
115044: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
115045: # Files that config.status was made for.
115046: config_files="$ac_config_files"
115047: config_headers="$ac_config_headers"
115048: config_commands="$ac_config_commands"
115049: 
115050: _ACEOF
115051: 
115052: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
115053: ac_cs_usage="\
115054: \`$as_me' instantiates files and other configuration actions
115055: from templates according to the current configuration.  Unless the files
115056: and actions are specified as TAGs, all are instantiated by default.
115057: 
115058: Usage: $0 [OPTION]... [TAG]...
115059: 
115060:   -h, --help       print this help, then exit
115061:   -V, --version    print version number and configuration settings, then exit
115062:       --config     print configuration, then exit
115063:   -q, --quiet, --silent
115064:                    do not print progress messages
115065:   -d, --debug      don't remove temporary files
115066:       --recheck    update $as_me by reconfiguring in the same conditions
115067:       --file=FILE[:TEMPLATE]
115068:                    instantiate the configuration file FILE
115069:       --header=FILE[:TEMPLATE]
115070:                    instantiate the configuration header FILE
115071: 
115072: Configuration files:
115073: $config_files
115074: 
115075: Configuration headers:
115076: $config_headers
115077: 
115078: Configuration commands:
115079: $config_commands
115080: 
115081: Report bugs to the package provider."
115082: 
115083: _ACEOF
115084: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
115085: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
115086: ac_cs_version="\\
115087: config.status
115088: configured by $0, generated by GNU Autoconf 2.69,
115089:   with options \\"\$ac_cs_config\\"
115090: 
115091: Copyright (C) 2012 Free Software Foundation, Inc.
115092: This config.status script is free software; the Free Software Foundation
115093: gives unlimited permission to copy, distribute and modify it."
115094: 
115095: ac_pwd='$ac_pwd'
115096: srcdir='$srcdir'
115097: test -n "\$AWK" || AWK=awk
115098: _ACEOF
115099: 
115100: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
115101: # The default lists apply if the user does not specify any file.
115102: ac_need_defaults=:
115103: while test $# != 0
115104: do
115105:   case $1 in
115106:   --*=?*)
115107:     ac_option=`expr "X$1" : 'X\([^=]*\)='`
115108:     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
115109:     ac_shift=:
115110:     ;;
115111:   --*=)
115112:     ac_option=`expr "X$1" : 'X\([^=]*\)='`
115113:     ac_optarg=
115114:     ac_shift=:
115115:     ;;
115116:   *)
115117:     ac_option=$1
115118:     ac_optarg=$2
115119:     ac_shift=shift
115120:     ;;
115121:   esac
115122: 
115123:   case $ac_option in
115124:   # Handling of the options.
115125:   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
115126:     ac_cs_recheck=: ;;
115127:   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
115128:     $as_echo "$ac_cs_version"; exit ;;
115129:   --config | --confi | --conf | --con | --co | --c )
115130:     $as_echo "$ac_cs_config"; exit ;;
115131:   --debug | --debu | --deb | --de | --d | -d )
115132:     debug=: ;;
115133:   --file | --fil | --fi | --f )
115134:     $ac_shift
115135:     case $ac_optarg in
115136:     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
115137:     '') as_fn_error $? "missing file argument" ;;
115138:     esac
115139:     as_fn_append CONFIG_FILES " '$ac_optarg'"
115140:     ac_need_defaults=false;;
115141:   --header | --heade | --head | --hea )
115142:     $ac_shift
115143:     case $ac_optarg in
115144:     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
115145:     esac
115146:     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
115147:     ac_need_defaults=false;;
115148:   --he | --h)
115149:     # Conflict between --help and --header
115150:     as_fn_error $? "ambiguous option: \`$1'
115151: Try \`$0 --help' for more information.";;
115152:   --help | --hel | -h )
115153:     $as_echo "$ac_cs_usage"; exit ;;
115154:   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
115155:   | -silent | --silent | --silen | --sile | --sil | --si | --s)
115156:     ac_cs_silent=: ;;
115157: 
115158:   # This is an error.
115159:   -*) as_fn_error $? "unrecognized option: \`$1'
115160: Try \`$0 --help' for more information." ;;
115161: 
115162:   *) as_fn_append ac_config_targets " $1"
115163:      ac_need_defaults=false ;;
115164: 
115165:   esac
115166:   shift
115167: done
115168: 
115169: ac_configure_extra_args=
115170: 
115171: if $ac_cs_silent; then
115172:   exec 6>/dev/null
115173:   ac_configure_extra_args="$ac_configure_extra_args --silent"
115174: fi
115175: 
115176: _ACEOF
115177: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
115178: if \$ac_cs_recheck; then
115179:   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
115180:   shift
115181:   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
115182:   CONFIG_SHELL='$SHELL'
115183:   export CONFIG_SHELL
115184:   exec "\$@"
115185: fi
115186: 
115187: _ACEOF
115188: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
115189: exec 5>>config.log
115190: {
115191:   echo
115192:   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
115193: ## Running $as_me. ##
115194: _ASBOX
115195:   $as_echo "$ac_log"
115196: } >&5
115197: 
115198: _ACEOF
115199: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
115200: #
115201: # INIT-COMMANDS
115202: #
115203: 
115204: 
115205: if test "\$CONFIG_FILES" = "$ALL_OUTPUT_FILES" || test "\$CONFIG_FILES" = " $ALL_OUTPUT_FILES" || test -z "\$CONFIG_FILES"; then
115206:   REDO_ALL=yes
115207: fi
115208: 
115209: ################################################################
115210: # Create configuration headers
115211: #
115212: 
115213: test -d TSRM || $php_shtool mkdir TSRM
115214: echo '#include <../main/php_config.h>' > TSRM/tsrm_config.h
115215: 
115216: test -d Zend || $php_shtool mkdir Zend
115217: 
115218: cat >Zend/zend_config.h <<FEO
115219: #include <../main/php_config.h>
115220: #if defined(APACHE) && defined(PHP_API_VERSION)
115221: #undef HAVE_DLFCN_H
115222: #endif
115223: FEO
115224: 
115225: # run this only when generating all the files?
115226: if test -n "\$REDO_ALL"; then
115227:   # Hacking while airborne considered harmful.
115228:   #
115229:   echo "creating main/internal_functions.c"
115230:   extensions="$EXT_STATIC"
115231:   sh $srcdir/build/genif.sh $srcdir/main/internal_functions.c.in $srcdir "$EXTRA_MODULE_PTRS" $AWK \$extensions > main/internal_functions.c
115232: 
115233:   echo "creating main/internal_functions_cli.c"
115234:   cli_extensions="$EXT_CLI_STATIC"
115235:   sh $srcdir/build/genif.sh $srcdir/main/internal_functions.c.in $srcdir "$EXTRA_MODULE_PTRS" $AWK \$cli_extensions > main/internal_functions_cli.c
115236: 
115237:   if test "$UNAME" = "FreeBSD" && test "$PHP_SAPI" = "apache2filter" && test "$TSRM_PTH" != "pth-config" ; then
115238:     echo "+--------------------------------------------------------------------+"
115239:     echo "|                        *** WARNING ***                             |"
115240:     echo "|                                                                    |"
115241:     echo "| In order to build PHP as a Apache2 module on FreeBSD, you have to  |"
115242:     echo "| add  --with-tsrm-pth to your ./configure line. Therefore you need  |"
115243:     echo "| to install gnu-pth from /usr/ports/devel/pth.                      |"
115244:   fi
115245: 
115246:   if test -n "$PHP_APXS_BROKEN"; then
115247:     echo "+--------------------------------------------------------------------+"
115248:     echo "| WARNING: Your $APXS script is most likely broken."
115249:     echo "|                                                                    |"
115250:     echo "| Please go read http://www.php.net/faq.build#faq.build.apxs         |"
115251:     echo "| and make the changes described there and try again.                |"
115252:   fi
115253: 
115254:   if test -n "$DEBUG_LOG"; then
115255:     rm -f config.cache
115256: cat <<X
115257: +--------------------------------------------------------------------+
115258: |                       *** ATTENTION ***                            |
115259: |                                                                    |
115260: | Something is likely to be messed up here, because the configure    |
115261: | script was not able to detect a simple feature on your platform.   |
115262: | This is often caused by incorrect configuration parameters. Please |
115263: | see the file debug.log for error messages.                         |
115264: |                                                                    |
115265: | If you are unable to fix this, send the file debug.log to the      |
115266: | php-install@lists.php.net mailing list and include appropriate      |
115267: | information about your setup.                                      |
115268: X
115269:   fi
115270: 
115271:   if test "$PHP_SAPI" = "apache2handler" || test "$PHP_SAPI" = "apache2filter"; then
115272:     if test "$APACHE_VERSION" -ge 2004001; then
115273:       if test -z "$APACHE_THREADED_MPM"; then
115274: cat <<X
115275: +--------------------------------------------------------------------+
115276: |                        *** WARNING ***                             |
115277: |                                                                    |
115278: | You have built PHP for Apache's current non-threaded MPM.          |
115279: | If you change Apache to use a threaded MPM you must reconfigure    |
115280: | PHP with --enable-maintainer-zts                                   |
115281: X
115282:       fi
115283:     fi
115284:   fi
115285: 
115286:   # Warn about linking Apache with libpthread if oci8 extension is enabled on linux.
115287:   if test "$PHP_OCI8" != "no"; then
115288:     if test "$PHP_SAPI" = "apache"; then
115289:       if test `uname` = "Linux"; then
115290: cat <<X
115291: +--------------------------------------------------------------------+
115292: |                        *** WARNING ***                             |
115293: |                                                                    |
115294: | Please check that your Apache (httpd) is linked with libpthread.   |
115295: | If not, you have to recompile Apache with pthread. For more        |
115296: | details, see this page: http://www.php.net/manual/ref.oci8.php     |
115297: X
115298:       fi
115299:     fi
115300: 
115301:     if test "$PHP_SIGCHILD" != "yes"; then
115302:       if test "$PHP_OCI8_INSTANT_CLIENT" = "no"; then
115303: cat <<X
115304: +--------------------------------------------------------------------+
115305: | Notice:                                                            |
115306: | If you encounter <defunc> processes when using a local Oracle      |
115307: | database, set the value BEQUEATH_DETACH=YES in Oracle Net's        |
115308: | sqlnet.ora file on the PHP host, or set the environment variable   |
115309: | BEQUEATH_DETACH to YES before starting Apache.  If the problem     |
115310: | still occurs, then recompile PHP and specify --enable-sigchild     |
115311: | when configuring.                                                  |
115312: X
115313:       fi
115314:     fi
115315:   fi
115316: 
115317: cat <<X
115318: +--------------------------------------------------------------------+
115319: | License:                                                           |
115320: | This software is subject to the PHP License, available in this     |
115321: | distribution in the file LICENSE.  By continuing this installation |
115322: | process, you are bound by the terms of this license agreement.     |
115323: | If you do not agree with the terms of this license, you must abort |
115324: | the installation process at this point.                            |
115325: +--------------------------------------------------------------------+
115326: 
115327: Thank you for using PHP.
115328: 
115329: X
115330: 
115331:   # Output unknown configure options
115332:   if test "$PHP_UNKNOWN_CONFIGURE_OPTIONS"; then
115333:     echo "Notice: Following unknown configure options were used:
115334: $PHP_UNKNOWN_CONFIGURE_OPTIONS
115335: 
115336: Check '$0 --help' for available options
115337: "
115338:   fi
115339: 
115340: fi
115341: 
115342: 
115343: _ACEOF
115344: 
115345: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
115346: 
115347: # Handling of arguments.
115348: for ac_config_target in $ac_config_targets
115349: do
115350:   case $ac_config_target in
115351:     "main/php_config.h") CONFIG_HEADERS="$CONFIG_HEADERS main/php_config.h" ;;
115352:     "$ALL_OUTPUT_FILES") CONFIG_FILES="$CONFIG_FILES $ALL_OUTPUT_FILES" ;;
115353:     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
115354: 
115355:   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
115356:   esac
115357: done
115358: 
115359: 
115360: # If the user did not use the arguments to specify the items to instantiate,
115361: # then the envvar interface is used.  Set only those that are not.
115362: # We use the long form for the default assignment because of an extremely
115363: # bizarre bug on SunOS 4.1.3.
115364: if $ac_need_defaults; then
115365:   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
115366:   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
115367:   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
115368: fi
115369: 
115370: # Have a temporary directory for convenience.  Make it in the build tree
115371: # simply because there is no reason against having it here, and in addition,
115372: # creating and moving files from /tmp can sometimes cause problems.
115373: # Hook for its removal unless debugging.
115374: # Note that there is a small window in which the directory will not be cleaned:
115375: # after its creation but before its name has been assigned to `$tmp'.
115376: $debug ||
115377: {
115378:   tmp= ac_tmp=
115379:   trap 'exit_status=$?
115380:   : "${ac_tmp:=$tmp}"
115381:   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
115382: ' 0
115383:   trap 'as_fn_exit 1' 1 2 13 15
115384: }
115385: # Create a (secure) tmp directory for tmp files.
115386: 
115387: {
115388:   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
115389:   test -d "$tmp"
115390: }  ||
115391: {
115392:   tmp=./conf$$-$RANDOM
115393:   (umask 077 && mkdir "$tmp")
115394: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
115395: ac_tmp=$tmp
115396: 
115397: # Set up the scripts for CONFIG_FILES section.
115398: # No need to generate them if there are no CONFIG_FILES.
115399: # This happens for instance with `./config.status config.h'.
115400: if test -n "$CONFIG_FILES"; then
115401: 
115402: 
115403: ac_cr=`echo X | tr X '\015'`
115404: # On cygwin, bash can eat \r inside `` if the user requested igncr.
115405: # But we know of no other shell where ac_cr would be empty at this
115406: # point, so we can use a bashism as a fallback.
115407: if test "x$ac_cr" = x; then
115408:   eval ac_cr=\$\'\\r\'
115409: fi
115410: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
115411: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
115412:   ac_cs_awk_cr='\\r'
115413: else
115414:   ac_cs_awk_cr=$ac_cr
115415: fi
115416: 
115417: echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
115418: _ACEOF
115419: 
115420: 
115421: {
115422:   echo "cat >conf$$subs.awk <<_ACEOF" &&
115423:   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
115424:   echo "_ACEOF"
115425: } >conf$$subs.sh ||
115426:   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
115427: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
115428: ac_delim='%!_!# '
115429: for ac_last_try in false false false false false :; do
115430:   . ./conf$$subs.sh ||
115431:     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
115432: 
115433:   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
115434:   if test $ac_delim_n = $ac_delim_num; then
115435:     break
115436:   elif $ac_last_try; then
115437:     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
115438:   else
115439:     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
115440:   fi
115441: done
115442: rm -f conf$$subs.sh
115443: 
115444: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
115445: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
115446: _ACEOF
115447: sed -n '
115448: h
115449: s/^/S["/; s/!.*/"]=/
115450: p
115451: g
115452: s/^[^!]*!//
115453: :repl
115454: t repl
115455: s/'"$ac_delim"'$//
115456: t delim
115457: :nl
115458: h
115459: s/\(.\{148\}\)..*/\1/
115460: t more1
115461: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
115462: p
115463: n
115464: b repl
115465: :more1
115466: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
115467: p
115468: g
115469: s/.\{148\}//
115470: t nl
115471: :delim
115472: h
115473: s/\(.\{148\}\)..*/\1/
115474: t more2
115475: s/["\\]/\\&/g; s/^/"/; s/$/"/
115476: p
115477: b
115478: :more2
115479: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
115480: p
115481: g
115482: s/.\{148\}//
115483: t delim
115484: ' <conf$$subs.awk | sed '
115485: /^[^""]/{
115486:   N
115487:   s/\n//
115488: }
115489: ' >>$CONFIG_STATUS || ac_write_fail=1
115490: rm -f conf$$subs.awk
115491: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
115492: _ACAWK
115493: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
115494:   for (key in S) S_is_set[key] = 1
115495:   FS = ""
115496: 
115497: }
115498: {
115499:   line = $ 0
115500:   nfields = split(line, field, "@")
115501:   substed = 0
115502:   len = length(field[1])
115503:   for (i = 2; i < nfields; i++) {
115504:     key = field[i]
115505:     keylen = length(key)
115506:     if (S_is_set[key]) {
115507:       value = S[key]
115508:       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
115509:       len += length(value) + length(field[++i])
115510:       substed = 1
115511:     } else
115512:       len += 1 + keylen
115513:   }
115514: 
115515:   print line
115516: }
115517: 
115518: _ACAWK
115519: _ACEOF
115520: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
115521: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
115522:   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
115523: else
115524:   cat
115525: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
115526:   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
115527: _ACEOF
115528: 
115529: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
115530: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
115531: # trailing colons and then remove the whole line if VPATH becomes empty
115532: # (actually we leave an empty line to preserve line numbers).
115533: if test "x$srcdir" = x.; then
115534:   ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
115535: h
115536: s///
115537: s/^/:/
115538: s/[	 ]*$/:/
115539: s/:\$(srcdir):/:/g
115540: s/:\${srcdir}:/:/g
115541: s/:@srcdir@:/:/g
115542: s/^:*//
115543: s/:*$//
115544: x
115545: s/\(=[	 ]*\).*/\1/
115546: G
115547: s/\n//
115548: s/^[^=]*=[	 ]*$//
115549: }'
115550: fi
115551: 
115552: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
115553: fi # test -n "$CONFIG_FILES"
115554: 
115555: # Set up the scripts for CONFIG_HEADERS section.
115556: # No need to generate them if there are no CONFIG_HEADERS.
115557: # This happens for instance with `./config.status Makefile'.
115558: if test -n "$CONFIG_HEADERS"; then
115559: cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
115560: BEGIN {
115561: _ACEOF
115562: 
115563: # Transform confdefs.h into an awk script `defines.awk', embedded as
115564: # here-document in config.status, that substitutes the proper values into
115565: # config.h.in to produce config.h.
115566: 
115567: # Create a delimiter string that does not exist in confdefs.h, to ease
115568: # handling of long lines.
115569: ac_delim='%!_!# '
115570: for ac_last_try in false false :; do
115571:   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
115572:   if test -z "$ac_tt"; then
115573:     break
115574:   elif $ac_last_try; then
115575:     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
115576:   else
115577:     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
115578:   fi
115579: done
115580: 
115581: # For the awk script, D is an array of macro values keyed by name,
115582: # likewise P contains macro parameters if any.  Preserve backslash
115583: # newline sequences.
115584: 
115585: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
115586: sed -n '
115587: s/.\{148\}/&'"$ac_delim"'/g
115588: t rset
115589: :rset
115590: s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
115591: t def
115592: d
115593: :def
115594: s/\\$//
115595: t bsnl
115596: s/["\\]/\\&/g
115597: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
115598: D["\1"]=" \3"/p
115599: s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
115600: d
115601: :bsnl
115602: s/["\\]/\\&/g
115603: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
115604: D["\1"]=" \3\\\\\\n"\\/p
115605: t cont
115606: s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
115607: t cont
115608: d
115609: :cont
115610: n
115611: s/.\{148\}/&'"$ac_delim"'/g
115612: t clear
115613: :clear
115614: s/\\$//
115615: t bsnlc
115616: s/["\\]/\\&/g; s/^/"/; s/$/"/p
115617: d
115618: :bsnlc
115619: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
115620: b cont
115621: ' <confdefs.h | sed '
115622: s/'"$ac_delim"'/"\\\
115623: "/g' >>$CONFIG_STATUS || ac_write_fail=1
115624: 
115625: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
115626:   for (key in D) D_is_set[key] = 1
115627:   FS = ""
115628: }
115629: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
115630:   line = \$ 0
115631:   split(line, arg, " ")
115632:   if (arg[1] == "#") {
115633:     defundef = arg[2]
115634:     mac1 = arg[3]
115635:   } else {
115636:     defundef = substr(arg[1], 2)
115637:     mac1 = arg[2]
115638:   }
115639:   split(mac1, mac2, "(") #)
115640:   macro = mac2[1]
115641:   prefix = substr(line, 1, index(line, defundef) - 1)
115642:   if (D_is_set[macro]) {
115643:     # Preserve the white space surrounding the "#".
115644:     print prefix "define", macro P[macro] D[macro]
115645:     next
115646:   } else {
115647:     # Replace #undef with comments.  This is necessary, for example,
115648:     # in the case of _POSIX_SOURCE, which is predefined and required
115649:     # on some systems where configure will not decide to define it.
115650:     if (defundef == "undef") {
115651:       print "/*", prefix defundef, macro, "*/"
115652:       next
115653:     }
115654:   }
115655: }
115656: { print }
115657: _ACAWK
115658: _ACEOF
115659: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
115660:   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
115661: fi # test -n "$CONFIG_HEADERS"
115662: 
115663: 
115664: eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
115665: shift
115666: for ac_tag
115667: do
115668:   case $ac_tag in
115669:   :[FHLC]) ac_mode=$ac_tag; continue;;
115670:   esac
115671:   case $ac_mode$ac_tag in
115672:   :[FHL]*:*);;
115673:   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
115674:   :[FH]-) ac_tag=-:-;;
115675:   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
115676:   esac
115677:   ac_save_IFS=$IFS
115678:   IFS=:
115679:   set x $ac_tag
115680:   IFS=$ac_save_IFS
115681:   shift
115682:   ac_file=$1
115683:   shift
115684: 
115685:   case $ac_mode in
115686:   :L) ac_source=$1;;
115687:   :[FH])
115688:     ac_file_inputs=
115689:     for ac_f
115690:     do
115691:       case $ac_f in
115692:       -) ac_f="$ac_tmp/stdin";;
115693:       *) # Look for the file first in the build tree, then in the source tree
115694: 	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
115695: 	 # because $ac_f cannot contain `:'.
115696: 	 test -f "$ac_f" ||
115697: 	   case $ac_f in
115698: 	   [\\/$]*) false;;
115699: 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
115700: 	   esac ||
115701: 	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
115702:       esac
115703:       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
115704:       as_fn_append ac_file_inputs " '$ac_f'"
115705:     done
115706: 
115707:     # Let's still pretend it is `configure' which instantiates (i.e., don't
115708:     # use $as_me), people would be surprised to read:
115709:     #    /* config.h.  Generated by config.status.  */
115710:     configure_input='Generated from '`
115711: 	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
115712: 	`' by configure.'
115713:     if test x"$ac_file" != x-; then
115714:       configure_input="$ac_file.  $configure_input"
115715:       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
115716: $as_echo "$as_me: creating $ac_file" >&6;}
115717:     fi
115718:     # Neutralize special characters interpreted by sed in replacement strings.
115719:     case $configure_input in #(
115720:     *\&* | *\|* | *\\* )
115721:        ac_sed_conf_input=`$as_echo "$configure_input" |
115722:        sed 's/[\\\\&|]/\\\\&/g'`;; #(
115723:     *) ac_sed_conf_input=$configure_input;;
115724:     esac
115725: 
115726:     case $ac_tag in
115727:     *:-:* | *:-) cat >"$ac_tmp/stdin" \
115728:       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
115729:     esac
115730:     ;;
115731:   esac
115732: 
115733:   ac_dir=`$as_dirname -- "$ac_file" ||
115734: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
115735: 	 X"$ac_file" : 'X\(//\)[^/]' \| \
115736: 	 X"$ac_file" : 'X\(//\)$' \| \
115737: 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
115738: $as_echo X"$ac_file" |
115739:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
115740: 	    s//\1/
115741: 	    q
115742: 	  }
115743: 	  /^X\(\/\/\)[^/].*/{
115744: 	    s//\1/
115745: 	    q
115746: 	  }
115747: 	  /^X\(\/\/\)$/{
115748: 	    s//\1/
115749: 	    q
115750: 	  }
115751: 	  /^X\(\/\).*/{
115752: 	    s//\1/
115753: 	    q
115754: 	  }
115755: 	  s/.*/./; q'`
115756:   as_dir="$ac_dir"; as_fn_mkdir_p
115757:   ac_builddir=.
115758: 
115759: case "$ac_dir" in
115760: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
115761: *)
115762:   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
115763:   # A ".." for each directory in $ac_dir_suffix.
115764:   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
115765:   case $ac_top_builddir_sub in
115766:   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
115767:   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
115768:   esac ;;
115769: esac
115770: ac_abs_top_builddir=$ac_pwd
115771: ac_abs_builddir=$ac_pwd$ac_dir_suffix
115772: # for backward compatibility:
115773: ac_top_builddir=$ac_top_build_prefix
115774: 
115775: case $srcdir in
115776:   .)  # We are building in place.
115777:     ac_srcdir=.
115778:     ac_top_srcdir=$ac_top_builddir_sub
115779:     ac_abs_top_srcdir=$ac_pwd ;;
115780:   [\\/]* | ?:[\\/]* )  # Absolute name.
115781:     ac_srcdir=$srcdir$ac_dir_suffix;
115782:     ac_top_srcdir=$srcdir
115783:     ac_abs_top_srcdir=$srcdir ;;
115784:   *) # Relative name.
115785:     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
115786:     ac_top_srcdir=$ac_top_build_prefix$srcdir
115787:     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
115788: esac
115789: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
115790: 
115791: 
115792:   case $ac_mode in
115793:   :F)
115794:   #
115795:   # CONFIG_FILE
115796:   #
115797: 
115798: _ACEOF
115799: 
115800: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
115801: # If the template does not know about datarootdir, expand it.
115802: # FIXME: This hack should be removed a few years after 2.60.
115803: ac_datarootdir_hack=; ac_datarootdir_seen=
115804: ac_sed_dataroot='
115805: /datarootdir/ {
115806:   p
115807:   q
115808: }
115809: /@datadir@/p
115810: /@docdir@/p
115811: /@infodir@/p
115812: /@localedir@/p
115813: /@mandir@/p'
115814: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
115815: *datarootdir*) ac_datarootdir_seen=yes;;
115816: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
115817:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
115818: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
115819: _ACEOF
115820: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
115821:   ac_datarootdir_hack='
115822:   s&@datadir@&$datadir&g
115823:   s&@docdir@&$docdir&g
115824:   s&@infodir@&$infodir&g
115825:   s&@localedir@&$localedir&g
115826:   s&@mandir@&$mandir&g
115827:   s&\\\${datarootdir}&$datarootdir&g' ;;
115828: esac
115829: _ACEOF
115830: 
115831: # Neutralize VPATH when `$srcdir' = `.'.
115832: # Shell code in configure.ac might set extrasub.
115833: # FIXME: do we really want to maintain this feature?
115834: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
115835: ac_sed_extra="$ac_vpsub
115836: $extrasub
115837: _ACEOF
115838: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
115839: :t
115840: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
115841: s|@configure_input@|$ac_sed_conf_input|;t t
115842: s&@top_builddir@&$ac_top_builddir_sub&;t t
115843: s&@top_build_prefix@&$ac_top_build_prefix&;t t
115844: s&@srcdir@&$ac_srcdir&;t t
115845: s&@abs_srcdir@&$ac_abs_srcdir&;t t
115846: s&@top_srcdir@&$ac_top_srcdir&;t t
115847: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
115848: s&@builddir@&$ac_builddir&;t t
115849: s&@abs_builddir@&$ac_abs_builddir&;t t
115850: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
115851: $ac_datarootdir_hack
115852: "
115853: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
115854:   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
115855: 
115856: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
115857:   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
115858:   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
115859:       "$ac_tmp/out"`; test -z "$ac_out"; } &&
115860:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
115861: which seems to be undefined.  Please make sure it is defined" >&5
115862: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
115863: which seems to be undefined.  Please make sure it is defined" >&2;}
115864: 
115865:   rm -f "$ac_tmp/stdin"
115866:   case $ac_file in
115867:   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
115868:   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
115869:   esac \
115870:   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
115871:  ;;
115872:   :H)
115873:   #
115874:   # CONFIG_HEADER
115875:   #
115876:   if test x"$ac_file" != x-; then
115877:     {
115878:       $as_echo "/* $configure_input  */" \
115879:       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
115880:     } >"$ac_tmp/config.h" \
115881:       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
115882:     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
115883:       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
115884: $as_echo "$as_me: $ac_file is unchanged" >&6;}
115885:     else
115886:       rm -f "$ac_file"
115887:       mv "$ac_tmp/config.h" "$ac_file" \
115888: 	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
115889:     fi
115890:   else
115891:     $as_echo "/* $configure_input  */" \
115892:       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
115893:       || as_fn_error $? "could not create -" "$LINENO" 5
115894:   fi
115895:  ;;
115896: 
115897:   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
115898: $as_echo "$as_me: executing $ac_file commands" >&6;}
115899:  ;;
115900:   esac
115901: 
115902: done # for ac_tag
115903: 
115904: 
115905: as_fn_exit 0
115906: _ACEOF
115907: ac_clean_files=$ac_clean_files_save
115908: 
115909: test $ac_write_fail = 0 ||
115910:   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
115911: 
115912: 
115913: # configure is writing to config.log, and then calls config.status.
115914: # config.status does its own redirection, appending to config.log.
115915: # Unfortunately, on DOS this fails, as config.log is still kept open
115916: # by configure, so config.status won't be able to write to it; its
115917: # output is simply discarded.  So we exec the FD to /dev/null,
115918: # effectively closing config.log, so it can be properly (re)opened and
115919: # appended to by config.status.  When coming back to configure, we
115920: # need to make the FD available again.
115921: if test "$no_create" != yes; then
115922:   ac_cs_success=:
115923:   ac_config_status_args=
115924:   test "$silent" = yes &&
115925:     ac_config_status_args="$ac_config_status_args --quiet"
115926:   exec 5>/dev/null
115927:   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
115928:   exec 5>>config.log
115929:   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
115930:   # would make configure fail if this is the last instruction.
115931:   $ac_cs_success || as_fn_exit 1
115932: fi
115933: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
115934:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
115935: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
115936: fi
115937: 
115938: 

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>