Annotation of embedaddon/php/configure, revision 1.1.1.1
1.1 misho 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
3: # Generated by GNU Autoconf 2.68.
4: #
5: #
6: # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7: # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8: # Foundation, Inc.
9: #
10: #
11: # This configure script is free software; the Free Software Foundation
12: # gives unlimited permission to copy, distribute and modify it.
13: ## -------------------- ##
14: ## M4sh Initialization. ##
15: ## -------------------- ##
16:
17: # Be more Bourne compatible
18: DUALCASE=1; export DUALCASE # for MKS sh
19: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20: emulate sh
21: NULLCMD=:
22: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23: # is contrary to our usage. Disable this feature.
24: alias -g '${1+"$@"}'='"$@"'
25: setopt NO_GLOB_SUBST
26: else
27: case `(set -o) 2>/dev/null` in #(
28: *posix*) :
29: set -o posix ;; #(
30: *) :
31: ;;
32: esac
33: fi
34:
35:
36: as_nl='
37: '
38: export as_nl
39: # Printing a long string crashes Solaris 7 /usr/bin/printf.
40: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43: # Prefer a ksh shell builtin over an external printf program on Solaris,
44: # but without wasting forks for bash or zsh.
45: if test -z "$BASH_VERSION$ZSH_VERSION" \
46: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47: as_echo='print -r --'
48: as_echo_n='print -rn --'
49: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50: as_echo='printf %s\n'
51: as_echo_n='printf %s'
52: else
53: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55: as_echo_n='/usr/ucb/echo -n'
56: else
57: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58: as_echo_n_body='eval
59: arg=$1;
60: case $arg in #(
61: *"$as_nl"*)
62: expr "X$arg" : "X\\(.*\\)$as_nl";
63: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64: esac;
65: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66: '
67: export as_echo_n_body
68: as_echo_n='sh -c $as_echo_n_body as_echo'
69: fi
70: export as_echo_body
71: as_echo='sh -c $as_echo_body as_echo'
72: fi
73:
74: # The user is always right.
75: if test "${PATH_SEPARATOR+set}" != set; then
76: PATH_SEPARATOR=:
77: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79: PATH_SEPARATOR=';'
80: }
81: fi
82:
83:
84: # IFS
85: # We need space, tab and new line, in precisely that order. Quoting is
86: # there to prevent editors from complaining about space-tab.
87: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88: # splitting by setting IFS to empty value.)
89: IFS=" "" $as_nl"
90:
91: # Find who we are. Look in the path if we contain no directory separator.
92: as_myself=
93: case $0 in #((
94: *[\\/]* ) as_myself=$0 ;;
95: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96: for as_dir in $PATH
97: do
98: IFS=$as_save_IFS
99: test -z "$as_dir" && as_dir=.
100: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101: done
102: IFS=$as_save_IFS
103:
104: ;;
105: esac
106: # We did not find ourselves, most probably we were run as `sh COMMAND'
107: # in which case we are not to be found in the path.
108: if test "x$as_myself" = x; then
109: as_myself=$0
110: fi
111: if test ! -f "$as_myself"; then
112: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113: exit 1
114: fi
115:
116: # Unset variables that we do not need and which cause bugs (e.g. in
117: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118: # suppresses any "Segmentation fault" message there. '((' could
119: # trigger a bug in pdksh 5.2.14.
120: for as_var in BASH_ENV ENV MAIL MAILPATH
121: do eval test x\${$as_var+set} = xset \
122: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123: done
124: PS1='$ '
125: PS2='> '
126: PS4='+ '
127:
128: # NLS nuisances.
129: LC_ALL=C
130: export LC_ALL
131: LANGUAGE=C
132: export LANGUAGE
133:
134: # CDPATH.
135: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136:
137: if test "x$CONFIG_SHELL" = x; then
138: as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139: emulate sh
140: NULLCMD=:
141: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142: # is contrary to our usage. Disable this feature.
143: alias -g '\${1+\"\$@\"}'='\"\$@\"'
144: setopt NO_GLOB_SUBST
145: else
146: case \`(set -o) 2>/dev/null\` in #(
147: *posix*) :
148: set -o posix ;; #(
149: *) :
150: ;;
151: esac
152: fi
153: "
154: as_required="as_fn_return () { (exit \$1); }
155: as_fn_success () { as_fn_return 0; }
156: as_fn_failure () { as_fn_return 1; }
157: as_fn_ret_success () { return 0; }
158: as_fn_ret_failure () { return 1; }
159:
160: exitcode=0
161: as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162: as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163: as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164: as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165: if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166:
167: else
168: exitcode=1; echo positional parameters were not saved.
169: fi
170: test x\$exitcode = x0 || exit 1"
171: as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172: as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173: eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174: test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175: test \$(( 1 + 1 )) = 2 || exit 1"
176: if (eval "$as_required") 2>/dev/null; then :
177: as_have_required=yes
178: else
179: as_have_required=no
180: fi
181: if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182:
183: else
184: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185: as_found=false
186: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187: do
188: IFS=$as_save_IFS
189: test -z "$as_dir" && as_dir=.
190: as_found=:
191: case $as_dir in #(
192: /*)
193: for as_base in sh bash ksh sh5; do
194: # Try only shells that exist, to save several forks.
195: as_shell=$as_dir/$as_base
196: if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198: CONFIG_SHELL=$as_shell as_have_required=yes
199: if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
200: break 2
201: fi
202: fi
203: done;;
204: esac
205: as_found=false
206: done
207: $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209: CONFIG_SHELL=$SHELL as_have_required=yes
210: fi; }
211: IFS=$as_save_IFS
212:
213:
214: if test "x$CONFIG_SHELL" != x; then :
215: # We cannot yet assume a decent shell, so we have to provide a
216: # neutralization value for shells without unset; and this also
217: # works around shells that cannot unset nonexistent variables.
218: # Preserve -v and -x to the replacement shell.
219: BASH_ENV=/dev/null
220: ENV=/dev/null
221: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222: export CONFIG_SHELL
223: case $- in # ((((
224: *v*x* | *x*v* ) as_opts=-vx ;;
225: *v* ) as_opts=-v ;;
226: *x* ) as_opts=-x ;;
227: * ) as_opts= ;;
228: esac
229: exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
230: fi
231:
232: if test x$as_have_required = xno; then :
233: $as_echo "$0: This script requires a shell more modern than all"
234: $as_echo "$0: the shells that I found on your system."
235: if test x${ZSH_VERSION+set} = xset ; then
236: $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237: $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238: else
239: $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240: $0: including any error possibly output before this
241: $0: message. Then install a modern shell, or manually run
242: $0: the script under such a shell if you do have one."
243: fi
244: exit 1
245: fi
246: fi
247: fi
248: SHELL=${CONFIG_SHELL-/bin/sh}
249: export SHELL
250: # Unset more variables known to interfere with behavior of common tools.
251: CLICOLOR_FORCE= GREP_OPTIONS=
252: unset CLICOLOR_FORCE GREP_OPTIONS
253:
254: ## --------------------- ##
255: ## M4sh Shell Functions. ##
256: ## --------------------- ##
257: # as_fn_unset VAR
258: # ---------------
259: # Portably unset VAR.
260: as_fn_unset ()
261: {
262: { eval $1=; unset $1;}
263: }
264: as_unset=as_fn_unset
265:
266: # as_fn_set_status STATUS
267: # -----------------------
268: # Set $? to STATUS, without forking.
269: as_fn_set_status ()
270: {
271: return $1
272: } # as_fn_set_status
273:
274: # as_fn_exit STATUS
275: # -----------------
276: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
277: as_fn_exit ()
278: {
279: set +e
280: as_fn_set_status $1
281: exit $1
282: } # as_fn_exit
283:
284: # as_fn_mkdir_p
285: # -------------
286: # Create "$as_dir" as a directory, including parents if necessary.
287: as_fn_mkdir_p ()
288: {
289:
290: case $as_dir in #(
291: -*) as_dir=./$as_dir;;
292: esac
293: test -d "$as_dir" || eval $as_mkdir_p || {
294: as_dirs=
295: while :; do
296: case $as_dir in #(
297: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298: *) as_qdir=$as_dir;;
299: esac
300: as_dirs="'$as_qdir' $as_dirs"
301: as_dir=`$as_dirname -- "$as_dir" ||
302: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303: X"$as_dir" : 'X\(//\)[^/]' \| \
304: X"$as_dir" : 'X\(//\)$' \| \
305: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306: $as_echo X"$as_dir" |
307: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
308: s//\1/
309: q
310: }
311: /^X\(\/\/\)[^/].*/{
312: s//\1/
313: q
314: }
315: /^X\(\/\/\)$/{
316: s//\1/
317: q
318: }
319: /^X\(\/\).*/{
320: s//\1/
321: q
322: }
323: s/.*/./; q'`
324: test -d "$as_dir" && break
325: done
326: test -z "$as_dirs" || eval "mkdir $as_dirs"
327: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
328:
329:
330: } # as_fn_mkdir_p
331: # as_fn_append VAR VALUE
332: # ----------------------
333: # Append the text in VALUE to the end of the definition contained in VAR. Take
334: # advantage of any shell optimizations that allow amortized linear growth over
335: # repeated appends, instead of the typical quadratic growth present in naive
336: # implementations.
337: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338: eval 'as_fn_append ()
339: {
340: eval $1+=\$2
341: }'
342: else
343: as_fn_append ()
344: {
345: eval $1=\$$1\$2
346: }
347: fi # as_fn_append
348:
349: # as_fn_arith ARG...
350: # ------------------
351: # Perform arithmetic evaluation on the ARGs, and store the result in the
352: # global $as_val. Take advantage of shells that can avoid forks. The arguments
353: # must be portable across $(()) and expr.
354: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355: eval 'as_fn_arith ()
356: {
357: as_val=$(( $* ))
358: }'
359: else
360: as_fn_arith ()
361: {
362: as_val=`expr "$@" || test $? -eq 1`
363: }
364: fi # as_fn_arith
365:
366:
367: # as_fn_error STATUS ERROR [LINENO LOG_FD]
368: # ----------------------------------------
369: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371: # script with STATUS, using 1 if that was 0.
372: as_fn_error ()
373: {
374: as_status=$1; test $as_status -eq 0 && as_status=1
375: if test "$4"; then
376: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
378: fi
379: $as_echo "$as_me: error: $2" >&2
380: as_fn_exit $as_status
381: } # as_fn_error
382:
383: if expr a : '\(a\)' >/dev/null 2>&1 &&
384: test "X`expr 00001 : '.*\(...\)'`" = X001; then
385: as_expr=expr
386: else
387: as_expr=false
388: fi
389:
390: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391: as_basename=basename
392: else
393: as_basename=false
394: fi
395:
396: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397: as_dirname=dirname
398: else
399: as_dirname=false
400: fi
401:
402: as_me=`$as_basename -- "$0" ||
403: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404: X"$0" : 'X\(//\)$' \| \
405: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
406: $as_echo X/"$0" |
407: sed '/^.*\/\([^/][^/]*\)\/*$/{
408: s//\1/
409: q
410: }
411: /^X\/\(\/\/\)$/{
412: s//\1/
413: q
414: }
415: /^X\/\(\/\).*/{
416: s//\1/
417: q
418: }
419: s/.*/./; q'`
420:
421: # Avoid depending upon Character Ranges.
422: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425: as_cr_digits='0123456789'
426: as_cr_alnum=$as_cr_Letters$as_cr_digits
427:
428:
429: as_lineno_1=$LINENO as_lineno_1a=$LINENO
430: as_lineno_2=$LINENO as_lineno_2a=$LINENO
431: eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432: test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433: # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
434: sed -n '
435: p
436: /[$]LINENO/=
437: ' <$as_myself |
438: sed '
439: s/[$]LINENO.*/&-/
440: t lineno
441: b
442: :lineno
443: N
444: :loop
445: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446: t loop
447: s/-\n.*//
448: ' >$as_me.lineno &&
449: chmod +x "$as_me.lineno" ||
450: { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
451:
452: # Don't try to exec as it changes $[0], causing all sort of problems
453: # (the dirname of $[0] is not the place where we might find the
454: # original and so on. Autoconf is especially sensitive to this).
455: . "./$as_me.lineno"
456: # Exit status is that of the last command.
457: exit
458: }
459:
460: ECHO_C= ECHO_N= ECHO_T=
461: case `echo -n x` in #(((((
462: -n*)
463: case `echo 'xy\c'` in
464: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
465: xy) ECHO_C='\c';;
466: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
467: ECHO_T=' ';;
468: esac;;
469: *)
470: ECHO_N='-n';;
471: esac
472:
473: rm -f conf$$ conf$$.exe conf$$.file
474: if test -d conf$$.dir; then
475: rm -f conf$$.dir/conf$$.file
476: else
477: rm -f conf$$.dir
478: mkdir conf$$.dir 2>/dev/null
479: fi
480: if (echo >conf$$.file) 2>/dev/null; then
481: if ln -s conf$$.file conf$$ 2>/dev/null; then
482: as_ln_s='ln -s'
483: # ... but there are two gotchas:
484: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486: # In both cases, we have to default to `cp -p'.
487: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488: as_ln_s='cp -p'
489: elif ln conf$$.file conf$$ 2>/dev/null; then
490: as_ln_s=ln
491: else
492: as_ln_s='cp -p'
493: fi
494: else
495: as_ln_s='cp -p'
496: fi
497: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498: rmdir conf$$.dir 2>/dev/null
499:
500: if mkdir -p . 2>/dev/null; then
501: as_mkdir_p='mkdir -p "$as_dir"'
502: else
503: test -d ./-p && rmdir ./-p
504: as_mkdir_p=false
505: fi
506:
507: if test -x / >/dev/null 2>&1; then
508: as_test_x='test -x'
509: else
510: if ls -dL / >/dev/null 2>&1; then
511: as_ls_L_option=L
512: else
513: as_ls_L_option=
514: fi
515: as_test_x='
516: eval sh -c '\''
517: if test -d "$1"; then
518: test -d "$1/.";
519: else
520: case $1 in #(
521: -*)set "./$1";;
522: esac;
523: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524: ???[sx]*):;;*)false;;esac;fi
525: '\'' sh
526: '
527: fi
528: as_executable_p=$as_test_x
529:
530: # Sed expression to map a string onto a valid CPP name.
531: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532:
533: # Sed expression to map a string onto a valid variable name.
534: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
535:
536:
537:
538: # Check that we are running under the correct shell.
539: SHELL=${CONFIG_SHELL-/bin/sh}
540:
541: case X$ECHO in
542: X*--fallback-echo)
543: # Remove one level of quotation (which was required for Make).
544: ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
545: ;;
546: esac
547:
548: echo=${ECHO-echo}
549: if test "X$1" = X--no-reexec; then
550: # Discard the --no-reexec flag, and continue.
551: shift
552: elif test "X$1" = X--fallback-echo; then
553: # Avoid inline document here, it may be left over
554: :
555: elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
556: # Yippee, $echo works!
557: :
558: else
559: # Restart under the correct shell.
560: exec $SHELL "$0" --no-reexec ${1+"$@"}
561: fi
562:
563: if test "X$1" = X--fallback-echo; then
564: # used as fallback echo
565: shift
566: cat <<EOF
567: $*
568: EOF
569: exit 0
570: fi
571:
572: # The HP-UX ksh and POSIX shell print the target directory to stdout
573: # if CDPATH is set.
574: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
575:
576: if test -z "$ECHO"; then
577: if test "X${echo_test_string+set}" != Xset; then
578: # find a string as large as possible, as long as the shell can cope with it
579: for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
580: # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
581: if (echo_test_string=`eval $cmd`) 2>/dev/null &&
582: echo_test_string=`eval $cmd` &&
583: (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
584: then
585: break
586: fi
587: done
588: fi
589:
590: if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
591: echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
592: test "X$echo_testing_string" = "X$echo_test_string"; then
593: :
594: else
595: # The Solaris, AIX, and Digital Unix default echo programs unquote
596: # backslashes. This makes it impossible to quote backslashes using
597: # echo "$something" | sed 's/\\/\\\\/g'
598: #
599: # So, first we look for a working echo in the user's PATH.
600:
601: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
602: for dir in $PATH /usr/ucb; do
603: IFS="$lt_save_ifs"
604: if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
605: test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
606: echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
607: test "X$echo_testing_string" = "X$echo_test_string"; then
608: echo="$dir/echo"
609: break
610: fi
611: done
612: IFS="$lt_save_ifs"
613:
614: if test "X$echo" = Xecho; then
615: # We didn't find a better echo, so look for alternatives.
616: if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
617: echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
618: test "X$echo_testing_string" = "X$echo_test_string"; then
619: # This shell has a builtin print -r that does the trick.
620: echo='print -r'
621: elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
622: test "X$CONFIG_SHELL" != X/bin/ksh; then
623: # If we have ksh, try running configure again with it.
624: ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
625: export ORIGINAL_CONFIG_SHELL
626: CONFIG_SHELL=/bin/ksh
627: export CONFIG_SHELL
628: exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
629: else
630: # Try using printf.
631: echo='printf %s\n'
632: if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
633: echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
634: test "X$echo_testing_string" = "X$echo_test_string"; then
635: # Cool, printf works
636: :
637: elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
638: test "X$echo_testing_string" = 'X\t' &&
639: echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
640: test "X$echo_testing_string" = "X$echo_test_string"; then
641: CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
642: export CONFIG_SHELL
643: SHELL="$CONFIG_SHELL"
644: export SHELL
645: echo="$CONFIG_SHELL $0 --fallback-echo"
646: elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
647: test "X$echo_testing_string" = 'X\t' &&
648: echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
649: test "X$echo_testing_string" = "X$echo_test_string"; then
650: echo="$CONFIG_SHELL $0 --fallback-echo"
651: else
652: # maybe with a smaller string...
653: prev=:
654:
655: for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
656: if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
657: then
658: break
659: fi
660: prev="$cmd"
661: done
662:
663: if test "$prev" != 'sed 50q "$0"'; then
664: echo_test_string=`eval $prev`
665: export echo_test_string
666: exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
667: else
668: # Oops. We lost completely, so just stick with echo.
669: echo=echo
670: fi
671: fi
672: fi
673: fi
674: fi
675: fi
676:
677: # Copy echo and quote the copy suitably for passing to libtool from
678: # the Makefile, instead of quoting the original, which is used later.
679: ECHO=$echo
680: if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
681: ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
682: fi
683:
684:
685:
686:
687: tagnames=${tagnames+${tagnames},}CXX
688:
689: test -n "$DJDIR" || exec 7<&0 </dev/null
690: exec 6>&1
691:
692: # Name of the host.
693: # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
694: # so uname gets run too.
695: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
696:
697: #
698: # Initializations.
699: #
700: ac_default_prefix=/usr/local
701: ac_clean_files=
702: ac_config_libobj_dir=.
703: LIBOBJS=
704: cross_compiling=no
705: subdirs=
706: MFLAGS=
707: MAKEFLAGS=
708:
709: # Identity of this package.
710: PACKAGE_NAME=
711: PACKAGE_TARNAME=
712: PACKAGE_VERSION=
713: PACKAGE_STRING=
714: PACKAGE_BUGREPORT=
715: PACKAGE_URL=
716:
717: ac_unique_file="README.SVN-RULES"
718: # Factoring default headers for most tests.
719: ac_includes_default="\
720: #include <stdio.h>
721: #ifdef HAVE_SYS_TYPES_H
722: # include <sys/types.h>
723: #endif
724: #ifdef HAVE_SYS_STAT_H
725: # include <sys/stat.h>
726: #endif
727: #ifdef STDC_HEADERS
728: # include <stdlib.h>
729: # include <stddef.h>
730: #else
731: # ifdef HAVE_STDLIB_H
732: # include <stdlib.h>
733: # endif
734: #endif
735: #ifdef HAVE_STRING_H
736: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
737: # include <memory.h>
738: # endif
739: # include <string.h>
740: #endif
741: #ifdef HAVE_STRINGS_H
742: # include <strings.h>
743: #endif
744: #ifdef HAVE_INTTYPES_H
745: # include <inttypes.h>
746: #endif
747: #ifdef HAVE_STDINT_H
748: # include <stdint.h>
749: #endif
750: #ifdef HAVE_UNISTD_H
751: # include <unistd.h>
752: #endif"
753:
754: ac_header_list=
755: ac_subst_vars='LTLIBOBJS
756: LIBTOOL
757: NMEDIT
758: DSYMUTIL
759: STRIP
760: AR
761: ECHO
762: PHP_VERSION_ID
763: PHP_VERSION
764: PHP_LIBS
765: PHP_LDFLAGS
766: PEAR_INSTALLDIR
767: NATIVE_RPATHS
768: INSTALL_IT
769: EXTRA_INCLUDES
770: INCLUDES
771: ZEND_EXTRA_LIBS
772: EXTRA_LIBS
773: EXTRA_LDFLAGS_PROGRAM
774: EXTRA_LDFLAGS
775: EXTENSION_DIR
776: DEBUG_CFLAGS
777: program_suffix
778: program_prefix
779: php_abs_top_srcdir
780: php_abs_top_builddir
781: abs_srcdir
782: abs_builddir
783: PHP_INSTALLED_SAPIS
784: EXPANDED_PHP_CONFIG_FILE_SCAN_DIR
785: EXPANDED_PHP_CONFIG_FILE_PATH
786: EXPANDED_LOCALSTATEDIR
787: EXPANDED_SYSCONFDIR
788: EXPANDED_DATADIR
789: EXPANDED_LIBDIR
790: EXPANDED_MANDIR
791: EXPANDED_SBINDIR
792: EXPANDED_BINDIR
793: EXPANDED_EXTENSION_DIR
794: EXPANDED_PEAR_INSTALLDIR
795: INCLUDE_PATH
796: INLINE_CFLAGS
797: RANLIB
798: LEMON
799: SNMP_CONFIG
800: PDO_OCI_VERSION
801: PDO_OCI_DIR
802: PDO_OCI_SHARED_LIBADD
803: PDO_MYSQL_MODULE_TYPE
804: ODBC_TYPE
805: ODBC_LFLAGS
806: ODBC_LIBS
807: ODBC_INCLUDE
808: OCI8_ORACLE_VERSION
809: OCI8_DIR
810: OCI8_SHARED_LIBADD
811: MYSQL_INCLUDE
812: MYSQL_LIBS
813: MYSQL_MODULE_TYPE
814: CXXCPP
815: ac_ct_CXX
816: CXXFLAGS
817: CXX
818: ICU_CONFIG
819: OPENSSL_INCDIR_OPT
820: PKG_CONFIG
821: KRB5_CONFIG
822: LTP_GENHTML
823: LTP
824: ALLOCA
825: LIBOBJS
826: PROG_SENDMAIL
827: php_fpm_prefix
828: php_fpm_localstatedir
829: php_fpm_sysconfdir
830: php_fpm_group
831: php_fpm_user
832: SHLIB_DL_SUFFIX_NAME
833: SHLIB_SUFFIX_NAME
834: RE2C
835: YFLAGS
836: YACC
837: AWK
838: LN_S
839: CPP
840: OBJEXT
841: EXEEXT
842: ac_ct_CC
843: CPPFLAGS
844: LDFLAGS
845: CFLAGS
846: CC
847: target_os
848: target_vendor
849: target_cpu
850: target
851: host_os
852: host_vendor
853: host_cpu
854: host
855: build_os
856: build_vendor
857: build_cpu
858: build
859: CONFIGURE_OPTIONS
860: CONFIGURE_COMMAND
861: SED
862: EGREP
863: GREP
864: target_alias
865: host_alias
866: build_alias
867: LIBS
868: ECHO_T
869: ECHO_N
870: ECHO_C
871: DEFS
872: mandir
873: localedir
874: libdir
875: psdir
876: pdfdir
877: dvidir
878: htmldir
879: infodir
880: docdir
881: oldincludedir
882: includedir
883: localstatedir
884: sharedstatedir
885: sysconfdir
886: datadir
887: datarootdir
888: libexecdir
889: sbindir
890: bindir
891: program_transform_name
892: prefix
893: exec_prefix
894: PACKAGE_URL
895: PACKAGE_BUGREPORT
896: PACKAGE_STRING
897: PACKAGE_VERSION
898: PACKAGE_TARNAME
899: PACKAGE_NAME
900: PATH_SEPARATOR
901: SHELL'
902: ac_subst_files=''
903: ac_user_opts='
904: enable_option_checking
905: with_libdir
906: enable_rpath
907: enable_re2c_cgoto
908: enable_
909: with_aolserver
910: with_apxs
911: with_apache
912: enable_mod_charset
913: with_apxs2filter
914: with_apxs2
915: with_apache_hooks
916: with_apache_hooks_static
917: with_caudium
918: enable_cli
919: with_continuity
920: enable_embed
921: enable_fpm
922: with_fpm_user
923: with_fpm_group
924: with_isapi
925: with_litespeed
926: with_milter
927: with_nsapi
928: with_phttpd
929: with_pi3web
930: with_roxen
931: enable_roxen_zts
932: with_thttpd
933: with_tux
934: with_webjames
935: enable_cgi
936: enable_gcov
937: enable_debug
938: with_layout
939: with_config_file_path
940: with_config_file_scan_dir
941: enable_safe_mode
942: with_exec_dir
943: enable_sigchild
944: enable_magic_quotes
945: enable_libgcc
946: enable_short_tags
947: enable_dmalloc
948: enable_ipv6
949: enable_fd_setsize
950: enable_all
951: with_regex
952: enable_libxml
953: with_libxml_dir
954: with_openssl
955: with_kerberos
956: with_pcre_regex
957: with_sqlite3
958: with_zlib
959: with_zlib_dir
960: enable_bcmath
961: with_bz2
962: enable_calendar
963: enable_ctype
964: with_curl
965: with_curlwrappers
966: enable_dba
967: with_qdbm
968: with_gdbm
969: with_ndbm
970: with_db4
971: with_db3
972: with_db2
973: with_db1
974: with_dbm
975: with_cdb
976: enable_inifile
977: enable_flatfile
978: enable_dom
979: with_enchant
980: enable_exif
981: enable_fileinfo
982: enable_filter
983: with_pcre_dir
984: enable_ftp
985: with_openssl_dir
986: with_gd
987: with_jpeg_dir
988: with_png_dir
989: with_xpm_dir
990: with_freetype_dir
991: with_t1lib
992: enable_gd_native_ttf
993: enable_gd_jis_conv
994: with_gettext
995: with_gmp
996: with_mhash
997: enable_hash
998: with_iconv
999: with_imap
1000: with_imap_ssl
1001: with_interbase
1002: enable_intl
1003: with_icu_dir
1004: enable_json
1005: with_ldap
1006: with_ldap_sasl
1007: enable_mbstring
1008: enable_mbregex
1009: enable_mbregex_backtrack
1010: with_libmbfl
1011: with_onig
1012: with_mcrypt
1013: with_mssql
1014: with_mysql
1015: with_mysql_sock
1016: with_mysqli
1017: enable_embedded_mysqli
1018: with_oci8
1019: with_adabas
1020: with_sapdb
1021: with_solid
1022: with_ibm_db2
1023: with_ODBCRouter
1024: with_empress
1025: with_empress_bcs
1026: with_birdstep
1027: with_custom_odbc
1028: with_iodbc
1029: with_esoob
1030: with_unixODBC
1031: with_dbmaker
1032: enable_pcntl
1033: enable_pdo
1034: with_pdo_dblib
1035: with_pdo_firebird
1036: with_pdo_mysql
1037: with_pdo_oci
1038: with_pdo_odbc
1039: with_pdo_pgsql
1040: with_pdo_sqlite
1041: with_pgsql
1042: enable_phar
1043: enable_posix
1044: with_pspell
1045: with_libedit
1046: with_readline
1047: with_recode
1048: enable_session
1049: with_mm
1050: enable_shmop
1051: enable_simplexml
1052: with_snmp
1053: enable_ucd_snmp_hack
1054: enable_soap
1055: enable_sockets
1056: with_sqlite
1057: enable_sqlite_utf8
1058: with_sybase_ct
1059: enable_sysvmsg
1060: enable_sysvsem
1061: enable_sysvshm
1062: with_tidy
1063: enable_tokenizer
1064: enable_wddx
1065: with_libexpat_dir
1066: enable_xml
1067: enable_xmlreader
1068: with_xmlrpc
1069: with_iconv_dir
1070: enable_xmlwriter
1071: with_xsl
1072: enable_zip
1073: enable_mysqlnd
1074: enable_mysqlnd_compression_support
1075: with_pear
1076: with_zend_vm
1077: enable_maintainer_zts
1078: enable_inline_optimization
1079: enable_zend_multibyte
1080: with_tsrm_pth
1081: with_tsrm_st
1082: with_tsrm_pthreads
1083: enable_shared
1084: enable_static
1085: enable_fast_install
1086: with_gnu_ld
1087: enable_libtool_lock
1088: with_pic
1089: with_tags
1090: '
1091: ac_precious_vars='build_alias
1092: host_alias
1093: target_alias
1094: CC
1095: CFLAGS
1096: LDFLAGS
1097: LIBS
1098: CPPFLAGS
1099: CPP
1100: YACC
1101: YFLAGS
1102: CXX
1103: CXXFLAGS
1104: CCC
1105: CXXCPP'
1106:
1107:
1108: # Initialize some variables set by options.
1109: ac_init_help=
1110: ac_init_version=false
1111: ac_unrecognized_opts=
1112: ac_unrecognized_sep=
1113: # The variables have the same names as the options, with
1114: # dashes changed to underlines.
1115: cache_file=/dev/null
1116: exec_prefix=NONE
1117: no_create=
1118: no_recursion=
1119: prefix=NONE
1120: program_prefix=NONE
1121: program_suffix=NONE
1122: program_transform_name=s,x,x,
1123: silent=
1124: site=
1125: srcdir=
1126: verbose=
1127: x_includes=NONE
1128: x_libraries=NONE
1129:
1130: # Installation directory options.
1131: # These are left unexpanded so users can "make install exec_prefix=/foo"
1132: # and all the variables that are supposed to be based on exec_prefix
1133: # by default will actually change.
1134: # Use braces instead of parens because sh, perl, etc. also accept them.
1135: # (The list follows the same order as the GNU Coding Standards.)
1136: bindir='${exec_prefix}/bin'
1137: sbindir='${exec_prefix}/sbin'
1138: libexecdir='${exec_prefix}/libexec'
1139: datarootdir='${prefix}/share'
1140: datadir='${datarootdir}'
1141: sysconfdir='${prefix}/etc'
1142: sharedstatedir='${prefix}/com'
1143: localstatedir='${prefix}/var'
1144: includedir='${prefix}/include'
1145: oldincludedir='/usr/include'
1146: docdir='${datarootdir}/doc/${PACKAGE}'
1147: infodir='${datarootdir}/info'
1148: htmldir='${docdir}'
1149: dvidir='${docdir}'
1150: pdfdir='${docdir}'
1151: psdir='${docdir}'
1152: libdir='${exec_prefix}/lib'
1153: localedir='${datarootdir}/locale'
1154: mandir='${datarootdir}/man'
1155:
1156: ac_prev=
1157: ac_dashdash=
1158: for ac_option
1159: do
1160: # If the previous option needs an argument, assign it.
1161: if test -n "$ac_prev"; then
1162: eval $ac_prev=\$ac_option
1163: ac_prev=
1164: continue
1165: fi
1166:
1167: case $ac_option in
1168: *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1169: *=) ac_optarg= ;;
1170: *) ac_optarg=yes ;;
1171: esac
1172:
1173: # Accept the important Cygnus configure options, so we can diagnose typos.
1174:
1175: case $ac_dashdash$ac_option in
1176: --)
1177: ac_dashdash=yes ;;
1178:
1179: -bindir | --bindir | --bindi | --bind | --bin | --bi)
1180: ac_prev=bindir ;;
1181: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1182: bindir=$ac_optarg ;;
1183:
1184: -build | --build | --buil | --bui | --bu)
1185: ac_prev=build_alias ;;
1186: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1187: build_alias=$ac_optarg ;;
1188:
1189: -cache-file | --cache-file | --cache-fil | --cache-fi \
1190: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1191: ac_prev=cache_file ;;
1192: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1193: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1194: cache_file=$ac_optarg ;;
1195:
1196: --config-cache | -C)
1197: cache_file=config.cache ;;
1198:
1199: -datadir | --datadir | --datadi | --datad)
1200: ac_prev=datadir ;;
1201: -datadir=* | --datadir=* | --datadi=* | --datad=*)
1202: datadir=$ac_optarg ;;
1203:
1204: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1205: | --dataroo | --dataro | --datar)
1206: ac_prev=datarootdir ;;
1207: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1208: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1209: datarootdir=$ac_optarg ;;
1210:
1211: -disable-* | --disable-*)
1212: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1213: # Reject names that are not valid shell variable names.
1214: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1215: as_fn_error $? "invalid feature name: $ac_useropt"
1216: ac_useropt_orig=$ac_useropt
1217: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1218: case $ac_user_opts in
1219: *"
1220: "enable_$ac_useropt"
1221: "*) ;;
1222: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1223: ac_unrecognized_sep=', ';;
1224: esac
1225: eval enable_$ac_useropt=no ;;
1226:
1227: -docdir | --docdir | --docdi | --doc | --do)
1228: ac_prev=docdir ;;
1229: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1230: docdir=$ac_optarg ;;
1231:
1232: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1233: ac_prev=dvidir ;;
1234: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1235: dvidir=$ac_optarg ;;
1236:
1237: -enable-* | --enable-*)
1238: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1239: # Reject names that are not valid shell variable names.
1240: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1241: as_fn_error $? "invalid feature name: $ac_useropt"
1242: ac_useropt_orig=$ac_useropt
1243: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1244: case $ac_user_opts in
1245: *"
1246: "enable_$ac_useropt"
1247: "*) ;;
1248: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1249: ac_unrecognized_sep=', ';;
1250: esac
1251: eval enable_$ac_useropt=\$ac_optarg ;;
1252:
1253: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1254: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1255: | --exec | --exe | --ex)
1256: ac_prev=exec_prefix ;;
1257: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1258: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1259: | --exec=* | --exe=* | --ex=*)
1260: exec_prefix=$ac_optarg ;;
1261:
1262: -gas | --gas | --ga | --g)
1263: # Obsolete; use --with-gas.
1264: with_gas=yes ;;
1265:
1266: -help | --help | --hel | --he | -h)
1267: ac_init_help=long ;;
1268: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1269: ac_init_help=recursive ;;
1270: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1271: ac_init_help=short ;;
1272:
1273: -host | --host | --hos | --ho)
1274: ac_prev=host_alias ;;
1275: -host=* | --host=* | --hos=* | --ho=*)
1276: host_alias=$ac_optarg ;;
1277:
1278: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1279: ac_prev=htmldir ;;
1280: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1281: | --ht=*)
1282: htmldir=$ac_optarg ;;
1283:
1284: -includedir | --includedir | --includedi | --included | --include \
1285: | --includ | --inclu | --incl | --inc)
1286: ac_prev=includedir ;;
1287: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1288: | --includ=* | --inclu=* | --incl=* | --inc=*)
1289: includedir=$ac_optarg ;;
1290:
1291: -infodir | --infodir | --infodi | --infod | --info | --inf)
1292: ac_prev=infodir ;;
1293: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1294: infodir=$ac_optarg ;;
1295:
1296: -libdir | --libdir | --libdi | --libd)
1297: ac_prev=libdir ;;
1298: -libdir=* | --libdir=* | --libdi=* | --libd=*)
1299: libdir=$ac_optarg ;;
1300:
1301: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1302: | --libexe | --libex | --libe)
1303: ac_prev=libexecdir ;;
1304: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1305: | --libexe=* | --libex=* | --libe=*)
1306: libexecdir=$ac_optarg ;;
1307:
1308: -localedir | --localedir | --localedi | --localed | --locale)
1309: ac_prev=localedir ;;
1310: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1311: localedir=$ac_optarg ;;
1312:
1313: -localstatedir | --localstatedir | --localstatedi | --localstated \
1314: | --localstate | --localstat | --localsta | --localst | --locals)
1315: ac_prev=localstatedir ;;
1316: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1317: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1318: localstatedir=$ac_optarg ;;
1319:
1320: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1321: ac_prev=mandir ;;
1322: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1323: mandir=$ac_optarg ;;
1324:
1325: -nfp | --nfp | --nf)
1326: # Obsolete; use --without-fp.
1327: with_fp=no ;;
1328:
1329: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1330: | --no-cr | --no-c | -n)
1331: no_create=yes ;;
1332:
1333: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1334: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1335: no_recursion=yes ;;
1336:
1337: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1338: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1339: | --oldin | --oldi | --old | --ol | --o)
1340: ac_prev=oldincludedir ;;
1341: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1342: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1343: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1344: oldincludedir=$ac_optarg ;;
1345:
1346: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1347: ac_prev=prefix ;;
1348: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1349: prefix=$ac_optarg ;;
1350:
1351: -program-prefix | --program-prefix | --program-prefi | --program-pref \
1352: | --program-pre | --program-pr | --program-p)
1353: ac_prev=program_prefix ;;
1354: -program-prefix=* | --program-prefix=* | --program-prefi=* \
1355: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1356: program_prefix=$ac_optarg ;;
1357:
1358: -program-suffix | --program-suffix | --program-suffi | --program-suff \
1359: | --program-suf | --program-su | --program-s)
1360: ac_prev=program_suffix ;;
1361: -program-suffix=* | --program-suffix=* | --program-suffi=* \
1362: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1363: program_suffix=$ac_optarg ;;
1364:
1365: -program-transform-name | --program-transform-name \
1366: | --program-transform-nam | --program-transform-na \
1367: | --program-transform-n | --program-transform- \
1368: | --program-transform | --program-transfor \
1369: | --program-transfo | --program-transf \
1370: | --program-trans | --program-tran \
1371: | --progr-tra | --program-tr | --program-t)
1372: ac_prev=program_transform_name ;;
1373: -program-transform-name=* | --program-transform-name=* \
1374: | --program-transform-nam=* | --program-transform-na=* \
1375: | --program-transform-n=* | --program-transform-=* \
1376: | --program-transform=* | --program-transfor=* \
1377: | --program-transfo=* | --program-transf=* \
1378: | --program-trans=* | --program-tran=* \
1379: | --progr-tra=* | --program-tr=* | --program-t=*)
1380: program_transform_name=$ac_optarg ;;
1381:
1382: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1383: ac_prev=pdfdir ;;
1384: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1385: pdfdir=$ac_optarg ;;
1386:
1387: -psdir | --psdir | --psdi | --psd | --ps)
1388: ac_prev=psdir ;;
1389: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1390: psdir=$ac_optarg ;;
1391:
1392: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1393: | -silent | --silent | --silen | --sile | --sil)
1394: silent=yes ;;
1395:
1396: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1397: ac_prev=sbindir ;;
1398: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1399: | --sbi=* | --sb=*)
1400: sbindir=$ac_optarg ;;
1401:
1402: -sharedstatedir | --sharedstatedir | --sharedstatedi \
1403: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1404: | --sharedst | --shareds | --shared | --share | --shar \
1405: | --sha | --sh)
1406: ac_prev=sharedstatedir ;;
1407: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1408: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1409: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1410: | --sha=* | --sh=*)
1411: sharedstatedir=$ac_optarg ;;
1412:
1413: -site | --site | --sit)
1414: ac_prev=site ;;
1415: -site=* | --site=* | --sit=*)
1416: site=$ac_optarg ;;
1417:
1418: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1419: ac_prev=srcdir ;;
1420: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1421: srcdir=$ac_optarg ;;
1422:
1423: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1424: | --syscon | --sysco | --sysc | --sys | --sy)
1425: ac_prev=sysconfdir ;;
1426: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1427: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1428: sysconfdir=$ac_optarg ;;
1429:
1430: -target | --target | --targe | --targ | --tar | --ta | --t)
1431: ac_prev=target_alias ;;
1432: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1433: target_alias=$ac_optarg ;;
1434:
1435: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1436: verbose=yes ;;
1437:
1438: -version | --version | --versio | --versi | --vers | -V)
1439: ac_init_version=: ;;
1440:
1441: -with-* | --with-*)
1442: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1443: # Reject names that are not valid shell variable names.
1444: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1445: as_fn_error $? "invalid package name: $ac_useropt"
1446: ac_useropt_orig=$ac_useropt
1447: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1448: case $ac_user_opts in
1449: *"
1450: "with_$ac_useropt"
1451: "*) ;;
1452: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1453: ac_unrecognized_sep=', ';;
1454: esac
1455: eval with_$ac_useropt=\$ac_optarg ;;
1456:
1457: -without-* | --without-*)
1458: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1459: # Reject names that are not valid shell variable names.
1460: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1461: as_fn_error $? "invalid package name: $ac_useropt"
1462: ac_useropt_orig=$ac_useropt
1463: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1464: case $ac_user_opts in
1465: *"
1466: "with_$ac_useropt"
1467: "*) ;;
1468: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1469: ac_unrecognized_sep=', ';;
1470: esac
1471: eval with_$ac_useropt=no ;;
1472:
1473: --x)
1474: # Obsolete; use --with-x.
1475: with_x=yes ;;
1476:
1477: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1478: | --x-incl | --x-inc | --x-in | --x-i)
1479: ac_prev=x_includes ;;
1480: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1481: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1482: x_includes=$ac_optarg ;;
1483:
1484: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1485: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1486: ac_prev=x_libraries ;;
1487: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1488: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1489: x_libraries=$ac_optarg ;;
1490:
1491: -*) as_fn_error $? "unrecognized option: \`$ac_option'
1492: Try \`$0 --help' for more information"
1493: ;;
1494:
1495: *=*)
1496: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1497: # Reject names that are not valid shell variable names.
1498: case $ac_envvar in #(
1499: '' | [0-9]* | *[!_$as_cr_alnum]* )
1500: as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1501: esac
1502: eval $ac_envvar=\$ac_optarg
1503: export $ac_envvar ;;
1504:
1505: *)
1506: # FIXME: should be removed in autoconf 3.0.
1507: $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1508: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1509: $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1510: : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1511: ;;
1512:
1513: esac
1514: done
1515:
1516: if test -n "$ac_prev"; then
1517: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1518: as_fn_error $? "missing argument to $ac_option"
1519: fi
1520:
1521: if test -n "$ac_unrecognized_opts"; then
1522: case $enable_option_checking in
1523: no) ;;
1524: fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1525: *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1526: esac
1527: fi
1528:
1529: # Check all directory arguments for consistency.
1530: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1531: datadir sysconfdir sharedstatedir localstatedir includedir \
1532: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1533: libdir localedir mandir
1534: do
1535: eval ac_val=\$$ac_var
1536: # Remove trailing slashes.
1537: case $ac_val in
1538: */ )
1539: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1540: eval $ac_var=\$ac_val;;
1541: esac
1542: # Be sure to have absolute directory names.
1543: case $ac_val in
1544: [\\/$]* | ?:[\\/]* ) continue;;
1545: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1546: esac
1547: as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1548: done
1549:
1550: # There might be people who depend on the old broken behavior: `$host'
1551: # used to hold the argument of --host etc.
1552: # FIXME: To remove some day.
1553: build=$build_alias
1554: host=$host_alias
1555: target=$target_alias
1556:
1557: # FIXME: To remove some day.
1558: if test "x$host_alias" != x; then
1559: if test "x$build_alias" = x; then
1560: cross_compiling=maybe
1561: $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1562: If a cross compiler is detected then cross compile mode will be used" >&2
1563: elif test "x$build_alias" != "x$host_alias"; then
1564: cross_compiling=yes
1565: fi
1566: fi
1567:
1568: ac_tool_prefix=
1569: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1570:
1571: test "$silent" = yes && exec 6>/dev/null
1572:
1573:
1574: ac_pwd=`pwd` && test -n "$ac_pwd" &&
1575: ac_ls_di=`ls -di .` &&
1576: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1577: as_fn_error $? "working directory cannot be determined"
1578: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1579: as_fn_error $? "pwd does not report name of working directory"
1580:
1581:
1582: # Find the source files, if location was not specified.
1583: if test -z "$srcdir"; then
1584: ac_srcdir_defaulted=yes
1585: # Try the directory containing this script, then the parent directory.
1586: ac_confdir=`$as_dirname -- "$as_myself" ||
1587: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1588: X"$as_myself" : 'X\(//\)[^/]' \| \
1589: X"$as_myself" : 'X\(//\)$' \| \
1590: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1591: $as_echo X"$as_myself" |
1592: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1593: s//\1/
1594: q
1595: }
1596: /^X\(\/\/\)[^/].*/{
1597: s//\1/
1598: q
1599: }
1600: /^X\(\/\/\)$/{
1601: s//\1/
1602: q
1603: }
1604: /^X\(\/\).*/{
1605: s//\1/
1606: q
1607: }
1608: s/.*/./; q'`
1609: srcdir=$ac_confdir
1610: if test ! -r "$srcdir/$ac_unique_file"; then
1611: srcdir=..
1612: fi
1613: else
1614: ac_srcdir_defaulted=no
1615: fi
1616: if test ! -r "$srcdir/$ac_unique_file"; then
1617: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1618: as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1619: fi
1620: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1621: ac_abs_confdir=`(
1622: cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1623: pwd)`
1624: # When building in place, set srcdir=.
1625: if test "$ac_abs_confdir" = "$ac_pwd"; then
1626: srcdir=.
1627: fi
1628: # Remove unnecessary trailing slashes from srcdir.
1629: # Double slashes in file names in object file debugging info
1630: # mess up M-x gdb in Emacs.
1631: case $srcdir in
1632: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1633: esac
1634: for ac_var in $ac_precious_vars; do
1635: eval ac_env_${ac_var}_set=\${${ac_var}+set}
1636: eval ac_env_${ac_var}_value=\$${ac_var}
1637: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1638: eval ac_cv_env_${ac_var}_value=\$${ac_var}
1639: done
1640:
1641: #
1642: # Report the --help message.
1643: #
1644: if test "$ac_init_help" = "long"; then
1645: # Omit some internal or obsolete options to make the list less imposing.
1646: # This message is too long to be a string in the A/UX 3.1 sh.
1647: cat <<_ACEOF
1648: \`configure' configures this package to adapt to many kinds of systems.
1649:
1650: Usage: $0 [OPTION]... [VAR=VALUE]...
1651:
1652: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1653: VAR=VALUE. See below for descriptions of some of the useful variables.
1654:
1655: Defaults for the options are specified in brackets.
1656:
1657: Configuration:
1658: -h, --help display this help and exit
1659: --help=short display options specific to this package
1660: --help=recursive display the short help of all the included packages
1661: -V, --version display version information and exit
1662: -q, --quiet, --silent do not print \`checking ...' messages
1663: --cache-file=FILE cache test results in FILE [disabled]
1664: -C, --config-cache alias for \`--cache-file=config.cache'
1665: -n, --no-create do not create output files
1666: --srcdir=DIR find the sources in DIR [configure dir or \`..']
1667:
1668: Installation directories:
1669: --prefix=PREFIX install architecture-independent files in PREFIX
1670: [$ac_default_prefix]
1671: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1672: [PREFIX]
1673:
1674: By default, \`make install' will install all the files in
1675: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1676: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1677: for instance \`--prefix=\$HOME'.
1678:
1679: For better control, use the options below.
1680:
1681: Fine tuning of the installation directories:
1682: --bindir=DIR user executables [EPREFIX/bin]
1683: --sbindir=DIR system admin executables [EPREFIX/sbin]
1684: --libexecdir=DIR program executables [EPREFIX/libexec]
1685: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1686: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1687: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1688: --libdir=DIR object code libraries [EPREFIX/lib]
1689: --includedir=DIR C header files [PREFIX/include]
1690: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1691: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1692: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1693: --infodir=DIR info documentation [DATAROOTDIR/info]
1694: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1695: --mandir=DIR man documentation [DATAROOTDIR/man]
1696: --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1697: --htmldir=DIR html documentation [DOCDIR]
1698: --dvidir=DIR dvi documentation [DOCDIR]
1699: --pdfdir=DIR pdf documentation [DOCDIR]
1700: --psdir=DIR ps documentation [DOCDIR]
1701: _ACEOF
1702:
1703: cat <<\_ACEOF
1704:
1705: System types:
1706: --build=BUILD configure for building on BUILD [guessed]
1707: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1708: --target=TARGET configure for building compilers for TARGET [HOST]
1709: _ACEOF
1710: fi
1711:
1712: if test -n "$ac_init_help"; then
1713:
1714: cat <<\_ACEOF
1715:
1716: Optional Features:
1717: --disable-option-checking ignore unrecognized --enable/--with options
1718: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1719: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1720: --disable-rpath Disable passing additional runtime library
1721: search paths
1722: --enable-re2c-cgoto Enable -g flag to re2c to use computed goto gcc extension
1723:
1724: SAPI modules:
1725:
1726: --enable-mod-charset APACHE: Enable transfer tables for mod_charset (Rus Apache)
1727: --enable-mod-charset APACHE (hooks): Enable transfer tables for mod_charset (Rus Apache)
1728: --disable-cli Disable building CLI version of PHP
1729: (this forces --without-pear)
1730: --enable-embed=TYPE EXPERIMENTAL: Enable building of embedded SAPI library
1731: TYPE is either 'shared' or 'static'. TYPE=shared
1732: --enable-fpm EXPERIMENTAL: Enable building of the fpm SAPI executable
1733: --enable-roxen-zts ROXEN: Build the Roxen module using Zend Thread Safety
1734: --disable-cgi Disable building CGI version of PHP
1735:
1736: General settings:
1737:
1738: --enable-gcov Enable GCOV code coverage (requires LTP) - FOR DEVELOPERS ONLY!!
1739: --enable-debug Compile with debugging symbols
1740: --enable-safe-mode Enable safe mode by default
1741: --enable-sigchild Enable PHP's own SIGCHLD handler
1742: --enable-magic-quotes Enable magic quotes by default.
1743: --enable-libgcc Enable explicitly linking against libgcc
1744: --disable-short-tags Disable the short-form <? start tag by default
1745: --enable-dmalloc Enable dmalloc
1746: --disable-ipv6 Disable IPv6 support
1747: --enable-fd-setsize Set size of descriptor sets
1748:
1749: Extensions:
1750:
1751: --with-EXTENSION=shared[,PATH]
1752:
1753: NOTE: Not all extensions can be build as 'shared'.
1754:
1755: Example: --with-foobar=shared,/usr/local/foobar/
1756:
1757: o Builds the foobar extension as shared extension.
1758: o foobar package install prefix is /usr/local/foobar/
1759:
1760:
1761: --disable-all Disable all extensions which are enabled by default
1762:
1763: --disable-libxml Disable LIBXML support
1764: --enable-bcmath Enable bc style precision math functions
1765: --enable-calendar Enable support for calendar conversion
1766: --disable-ctype Disable ctype functions
1767: --enable-dba Build DBA with bundled modules. To build shared DBA
1768: extension use --enable-dba=shared
1769: --disable-inifile DBA: INI support (bundled)
1770: --disable-flatfile DBA: FlatFile support (bundled)
1771: --disable-dom Disable DOM support
1772: --enable-exif Enable EXIF (metadata from images) support
1773: --disable-fileinfo Disable fileinfo support
1774: --disable-filter Disable input filter support
1775: --enable-ftp Enable FTP support
1776: --enable-gd-native-ttf GD: Enable TrueType string function
1777: --enable-gd-jis-conv GD: Enable JIS-mapped Japanese font support
1778: --disable-hash Disable hash support
1779: --enable-intl Enable internationalization support
1780: --disable-json Disable JavaScript Object Serialization support
1781: --enable-mbstring Enable multibyte string support
1782: --disable-mbregex MBSTRING: Disable multibyte regex support
1783: --disable-mbregex-backtrack
1784: MBSTRING: Disable multibyte regex backtrack check
1785: --enable-embedded-mysqli MYSQLi: Enable embedded support
1786: Note: Does not work with MySQL native driver!
1787: --enable-pcntl Enable pcntl support (CLI/CGI only)
1788: --disable-pdo Disable PHP Data Objects support
1789: --disable-phar Disable phar support
1790: --disable-posix Disable POSIX-like functions
1791: --disable-session Disable session support
1792: --enable-shmop Enable shmop support
1793: --disable-simplexml Disable SimpleXML support
1794: --enable-ucd-snmp-hack SNMP: Enable UCD SNMP hack
1795: --enable-soap Enable SOAP support
1796: --enable-sockets Enable sockets support
1797: --enable-sqlite-utf8 SQLite: Enable UTF-8 support for SQLite
1798: --enable-sysvmsg Enable sysvmsg support
1799: --enable-sysvsem Enable System V semaphore support
1800: --enable-sysvshm Enable the System V shared memory support
1801: --disable-tokenizer Disable tokenizer support
1802: --enable-wddx Enable WDDX support
1803: --disable-xml Disable XML support
1804: --disable-xmlreader Disable XMLReader support
1805: --disable-xmlwriter Disable XMLWriter support
1806: --enable-zip Include Zip read/write support
1807: --enable-mysqlnd Enable mysqlnd expliciely, will be done implicitly
1808: when required by other extensions
1809: --disable-mysqlnd-compression-support
1810: Disable support for the MySQL compressed protocol in mysqlnd
1811:
1812: PEAR:
1813:
1814:
1815: Zend:
1816:
1817: --enable-maintainer-zts Enable thread safety - for code maintainers only!!
1818: --disable-inline-optimization
1819: If building zend_execute.lo fails, try this switch
1820: --enable-zend-multibyte Compile with zend multibyte support
1821:
1822: TSRM:
1823:
1824:
1825: Libtool:
1826:
1827: --enable-shared=PKGS build shared libraries default=yes
1828: --enable-static=PKGS build static libraries default=yes
1829: --enable-fast-install=PKGS optimize for fast installation default=yes
1830: --disable-libtool-lock avoid locking (might break parallel builds)
1831:
1832: Optional Packages:
1833: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1834: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1835: --with-libdir=NAME Look for libraries in .../NAME rather than .../lib
1836: --with-aolserver=DIR Specify path to the installed AOLserver
1837: --with-apxs=FILE Build shared Apache 1.x module. FILE is the optional
1838: pathname to the Apache apxs tool apxs
1839: --with-apache=DIR Build Apache 1.x module. DIR is the top-level Apache
1840: build directory /usr/local/apache
1841: --with-apxs2filter=FILE
1842: EXPERIMENTAL: Build shared Apache 2.0 Filter module. FILE is the optional
1843: pathname to the Apache apxs tool apxs
1844: --with-apxs2=FILE Build shared Apache 2.0 Handler module. FILE is the optional
1845: pathname to the Apache apxs tool apxs
1846: --with-apache-hooks=FILE
1847: EXPERIMENTAL: Build shared Apache 1.x module. FILE is the optional
1848: pathname to the Apache apxs tool apxs
1849: --with-apache-hooks-static=DIR
1850: EXPERIMENTAL: Build Apache 1.x module. DIR is the top-level Apache
1851: build directory /usr/local/apache
1852: --with-caudium=DIR Build PHP as a Pike module for use with Caudium.
1853: DIR is the Caudium server dir /usr/local/caudium/server
1854: --with-continuity=DIR Build PHP as Continuity Server module.
1855: DIR is path to the installed Continuity Server root
1856: --with-fpm-user=USER Set the user for php-fpm to run as. (default: nobody)
1857: --with-fpm-group=GRP Set the group for php-fpm to run as. For a system user, this
1858: should usually be set to match the fpm username (default: nobody)
1859: --with-isapi=DIR Build PHP as an ISAPI module for use with Zeus
1860: --with-litespeed Build PHP as litespeed module
1861: --with-milter=DIR Build PHP as Milter application
1862: --with-nsapi=DIR Build PHP as NSAPI module for Netscape/iPlanet/Sun Webserver
1863: --with-phttpd=DIR Build PHP as phttpd module
1864: --with-pi3web=DIR Build PHP as Pi3Web module
1865: --with-roxen=DIR Build PHP as a Pike module. DIR is the base Roxen
1866: directory, normally /usr/local/roxen/server
1867: --with-thttpd=SRCDIR Build PHP as thttpd module
1868: --with-tux=MODULEDIR Build PHP as a TUX module (Linux only)
1869: --with-webjames=SRCDIR Build PHP as a WebJames module (RISC OS only)
1870: --with-layout=TYPE Set how installed files will be laid out. Type can
1871: be either PHP or GNU PHP
1872: --with-config-file-path=PATH
1873: Set the path in which to look for php.ini PREFIX/lib
1874: --with-config-file-scan-dir=PATH
1875: Set the path where to scan for configuration files
1876: --with-exec-dir=DIR Only allow executables in DIR under safe-mode
1877: /usr/local/php/bin
1878: --with-regex=TYPE regex library type: system, php. TYPE=php
1879: WARNING: Do NOT use unless you know what you are doing!
1880: --with-libxml-dir=DIR LIBXML: libxml2 install prefix
1881: --with-openssl=DIR Include OpenSSL support (requires OpenSSL >= 0.9.6)
1882: --with-kerberos=DIR OPENSSL: Include Kerberos support
1883: --with-pcre-regex=DIR Include Perl Compatible Regular Expressions support.
1884: DIR is the PCRE install prefix BUNDLED
1885: --without-sqlite3=DIR Do not include SQLite3 support. DIR is the prefix to
1886: SQLite3 installation directory.
1887: --with-zlib=DIR Include ZLIB support (requires zlib >= 1.0.9)
1888: --with-zlib-dir=<DIR> Define the location of zlib install directory
1889: --with-bz2=DIR Include BZip2 support
1890: --with-curl=DIR Include cURL support
1891: --with-curlwrappers EXPERIMENTAL: Use cURL for url streams
1892: --with-qdbm=DIR DBA: QDBM support
1893: --with-gdbm=DIR DBA: GDBM support
1894: --with-ndbm=DIR DBA: NDBM support
1895: --with-db4=DIR DBA: Oracle Berkeley DB 4.x or 5.x support
1896: --with-db3=DIR DBA: Oracle Berkeley DB 3.x support
1897: --with-db2=DIR DBA: Oracle Berkeley DB 2.x support
1898: --with-db1=DIR DBA: Oracle Berkeley DB 1.x support/emulation
1899: --with-dbm=DIR DBA: DBM support
1900: --without-cdb=DIR DBA: CDB support (bundled)
1901: --with-libxml-dir=DIR DOM: libxml2 install prefix
1902: --with-enchant=DIR Include enchant support.
1903: GNU Aspell version 1.1.3 or higher required.
1904: --with-pcre-dir FILTER: pcre install prefix
1905: --with-openssl-dir=DIR FTP: openssl install prefix
1906: --with-gd=DIR Include GD support. DIR is the GD library base
1907: install directory BUNDLED
1908: --with-jpeg-dir=DIR GD: Set the path to libjpeg install prefix
1909: --with-png-dir=DIR GD: Set the path to libpng install prefix
1910: --with-zlib-dir=DIR GD: Set the path to libz install prefix
1911: --with-xpm-dir=DIR GD: Set the path to libXpm install prefix
1912: --with-freetype-dir=DIR GD: Set the path to FreeType 2 install prefix
1913: --with-t1lib=DIR GD: Include T1lib support. T1lib version >= 5.0.0 required
1914: --with-gettext=DIR Include GNU gettext support
1915: --with-gmp=DIR Include GNU MP support
1916: --with-mhash=DIR Include mhash support
1917: --without-iconv=DIR Exclude iconv support
1918: --with-imap=DIR Include IMAP support. DIR is the c-client install prefix
1919: --with-kerberos=DIR IMAP: Include Kerberos support. DIR is the Kerberos install prefix
1920: --with-imap-ssl=DIR IMAP: Include SSL support. DIR is the OpenSSL install prefix
1921: --with-interbase=DIR Include InterBase support. DIR is the InterBase base
1922: install directory /usr/interbase
1923: --with-icu-dir=DIR Specify where ICU libraries and headers can be found
1924: --with-ldap=DIR Include LDAP support
1925: --with-ldap-sasl=DIR LDAP: Include Cyrus SASL support
1926: --with-libmbfl=DIR MBSTRING: Use external libmbfl. DIR is the libmbfl base
1927: install directory BUNDLED
1928: --with-onig=DIR MBSTRING: Use external oniguruma. DIR is the oniguruma install prefix.
1929: If DIR is not set, the bundled oniguruma will be used
1930: --with-mcrypt=DIR Include mcrypt support
1931: --with-mssql=DIR Include MSSQL-DB support. DIR is the FreeTDS home
1932: directory /usr/local/freetds
1933: --with-mysql=DIR Include MySQL support. DIR is the MySQL base
1934: directory. If mysqlnd is passed as DIR,
1935: the MySQL native driver will be used /usr/local
1936: --with-mysql-sock=DIR MySQL/MySQLi/PDO_MYSQL: Location of the MySQL unix socket pointer.
1937: If unspecified, the default locations are searched
1938: --with-zlib-dir=DIR MySQL: Set the path to libz install prefix
1939: --with-mysqli=FILE Include MySQLi support. FILE is the path
1940: to mysql_config. If mysqlnd is passed as FILE,
1941: the MySQL native driver will be used mysql_config
1942: --with-oci8=DIR Include Oracle Database OCI8 support. DIR defaults to \$ORACLE_HOME.
1943: Use --with-oci8=instantclient,/path/to/instant/client/lib
1944: to use an Oracle Instant Client installation
1945: --with-adabas=DIR Include Adabas D support /usr/local
1946: --with-sapdb=DIR Include SAP DB support /usr/local
1947: --with-solid=DIR Include Solid support /usr/local/solid
1948: --with-ibm-db2=DIR Include IBM DB2 support /home/db2inst1/sqllib
1949: --with-ODBCRouter=DIR Include ODBCRouter.com support /usr
1950: --with-empress=DIR Include Empress support \$EMPRESSPATH
1951: (Empress Version >= 8.60 required)
1952: --with-empress-bcs=DIR
1953: Include Empress Local Access support \$EMPRESSPATH
1954: (Empress Version >= 8.60 required)
1955: --with-birdstep=DIR Include Birdstep support /usr/local/birdstep
1956: --with-custom-odbc=DIR
1957: Include user defined ODBC support. DIR is ODBC install base
1958: directory /usr/local. Make sure to define CUSTOM_ODBC_LIBS and
1959: have some odbc.h in your include dirs. f.e. you should define
1960: following for Sybase SQL Anywhere 5.5.00 on QNX, prior to
1961: running this configure script:
1962: CPPFLAGS=\"-DODBC_QNX -DSQLANY_BUG\"
1963: LDFLAGS=-lunix
1964: CUSTOM_ODBC_LIBS=\"-ldblib -lodbc\"
1965: --with-iodbc=DIR Include iODBC support /usr/local
1966: --with-esoob=DIR Include Easysoft OOB support /usr/local/easysoft/oob/client
1967: --with-unixODBC=DIR Include unixODBC support /usr/local
1968: --with-dbmaker=DIR Include DBMaker support
1969: --with-pdo-dblib=DIR PDO: DBLIB-DB support. DIR is the FreeTDS home directory
1970: --with-pdo-firebird=DIR PDO: Firebird support. DIR is the Firebird base
1971: install directory /opt/firebird
1972: --with-pdo-mysql=DIR PDO: MySQL support. DIR is the MySQL base directory
1973: If mysqlnd is passed as DIR, the MySQL native
1974: native driver will be used /usr/local
1975: --with-zlib-dir=DIR PDO_MySQL: Set the path to libz install prefix
1976: --with-pdo-oci=DIR PDO: Oracle OCI support. DIR defaults to \$ORACLE_HOME.
1977: Use --with-pdo-oci=instantclient,prefix,version
1978: for an Oracle Instant Client SDK.
1979: For example on Linux with 11.2 RPMs use:
1980: --with-pdo-oci=instantclient,/usr,11.2
1981: With 10.2 RPMs use:
1982: --with-pdo-oci=instantclient,/usr,10.2.0.4
1983: --with-pdo-odbc=flavour,dir
1984: PDO: Support for 'flavour' ODBC driver.
1985: include and lib dirs are looked for under 'dir'.
1986:
1987: 'flavour' can be one of: ibm-db2, iODBC, unixODBC, generic
1988: If ',dir' part is omitted, default for the flavour
1989: you have selected will used. e.g.:
1990:
1991: --with-pdo-odbc=unixODBC
1992:
1993: will check for unixODBC under /usr/local. You may attempt
1994: to use an otherwise unsupported driver using the \"generic\"
1995: flavour. The syntax for generic ODBC support is:
1996:
1997: --with-pdo-odbc=generic,dir,libname,ldflags,cflags
1998:
1999: When build as shared the extension filename is always pdo_odbc.so
2000: --with-pdo-pgsql=DIR PDO: PostgreSQL support. DIR is the PostgreSQL base
2001: install directory or the path to pg_config
2002: --without-pdo-sqlite=DIR
2003: PDO: sqlite 3 support. DIR is the sqlite base
2004: install directory BUNDLED
2005: --with-pgsql=DIR Include PostgreSQL support. DIR is the PostgreSQL
2006: base install directory or the path to pg_config
2007: --with-pspell=DIR Include PSPELL support.
2008: GNU Aspell version 0.50.0 or higher required
2009: --with-libedit=DIR Include libedit readline replacement (CLI/CGI only)
2010: --with-readline=DIR Include readline support (CLI/CGI only)
2011: --with-recode=DIR Include recode support
2012: --with-mm=DIR SESSION: Include mm support for session storage
2013: --with-libxml-dir=DIR SimpleXML: libxml2 install prefix
2014: --with-snmp=DIR Include SNMP support
2015: --with-openssl-dir=DIR SNMP: openssl install prefix
2016: --with-libxml-dir=DIR SOAP: libxml2 install prefix
2017: --without-sqlite=DIR Do not include sqlite support. DIR is the sqlite base
2018: install directory BUNDLED
2019: --with-sybase-ct=DIR Include Sybase-CT support. DIR is the Sybase home
2020: directory /home/sybase
2021: --with-tidy=DIR Include TIDY support
2022: --with-libxml-dir=DIR WDDX: libxml2 install prefix
2023: --with-libexpat-dir=DIR WDDX: libexpat dir for XMLRPC-EPI (deprecated)
2024: --with-libxml-dir=DIR XML: libxml2 install prefix
2025: --with-libexpat-dir=DIR XML: libexpat install prefix (deprecated)
2026: --with-libxml-dir=DIR XMLReader: libxml2 install prefix
2027: --with-xmlrpc=DIR Include XMLRPC-EPI support
2028: --with-libxml-dir=DIR XMLRPC-EPI: libxml2 install prefix
2029: --with-libexpat-dir=DIR XMLRPC-EPI: libexpat dir for XMLRPC-EPI (deprecated)
2030: --with-iconv-dir=DIR XMLRPC-EPI: iconv dir for XMLRPC-EPI
2031: --with-libxml-dir=DIR XMLWriter: libxml2 install prefix
2032: --with-xsl=DIR Include XSL support. DIR is the libxslt base
2033: install directory (libxslt >= 1.1.0 required)
2034: --with-zlib-dir=DIR ZIP: Set the path to libz install prefix
2035: --with-pcre-dir ZIP: pcre install prefix
2036: --with-zlib-dir=DIR mysqlnd: Set the path to libz install prefix
2037: --with-pear=DIR Install PEAR in DIR PREFIX/lib/php
2038: --without-pear Do not install PEAR
2039: --with-zend-vm=TYPE Set virtual machine dispatch method. Type is
2040: one of "CALL", "SWITCH" or "GOTO" TYPE=CALL
2041: --with-tsrm-pth=pth-config
2042: Use GNU Pth
2043: --with-tsrm-st Use SGI's State Threads
2044: --with-tsrm-pthreads Use POSIX threads (default)
2045: --with-gnu-ld assume the C compiler uses GNU ld default=no
2046: --with-pic try to use only PIC/non-PIC objects default=use both
2047: --with-tags=TAGS include additional configurations automatic
2048:
2049:
2050: Some influential environment variables:
2051: CC C compiler command
2052: CFLAGS C compiler flags
2053: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2054: nonstandard directory <lib dir>
2055: LIBS libraries to pass to the linker, e.g. -l<library>
2056: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2057: you have headers in a nonstandard directory <include dir>
2058: CPP C preprocessor
2059: YACC The `Yet Another Compiler Compiler' implementation to use.
2060: Defaults to the first program found out of: `bison -y', `byacc',
2061: `yacc'.
2062: YFLAGS The list of arguments that will be passed by default to $YACC.
2063: This script will default YFLAGS to the empty string to avoid a
2064: default value of `-d' given by some make applications.
2065: CXX C++ compiler command
2066: CXXFLAGS C++ compiler flags
2067: CXXCPP C++ preprocessor
2068:
2069: Use these variables to override the choices made by `configure' or to help
2070: it to find libraries and programs with nonstandard names/locations.
2071:
2072: Report bugs to the package provider.
2073: _ACEOF
2074: ac_status=$?
2075: fi
2076:
2077: if test "$ac_init_help" = "recursive"; then
2078: # If there are subdirs, report their specific --help.
2079: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2080: test -d "$ac_dir" ||
2081: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2082: continue
2083: ac_builddir=.
2084:
2085: case "$ac_dir" in
2086: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2087: *)
2088: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2089: # A ".." for each directory in $ac_dir_suffix.
2090: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2091: case $ac_top_builddir_sub in
2092: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2093: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2094: esac ;;
2095: esac
2096: ac_abs_top_builddir=$ac_pwd
2097: ac_abs_builddir=$ac_pwd$ac_dir_suffix
2098: # for backward compatibility:
2099: ac_top_builddir=$ac_top_build_prefix
2100:
2101: case $srcdir in
2102: .) # We are building in place.
2103: ac_srcdir=.
2104: ac_top_srcdir=$ac_top_builddir_sub
2105: ac_abs_top_srcdir=$ac_pwd ;;
2106: [\\/]* | ?:[\\/]* ) # Absolute name.
2107: ac_srcdir=$srcdir$ac_dir_suffix;
2108: ac_top_srcdir=$srcdir
2109: ac_abs_top_srcdir=$srcdir ;;
2110: *) # Relative name.
2111: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2112: ac_top_srcdir=$ac_top_build_prefix$srcdir
2113: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2114: esac
2115: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2116:
2117: cd "$ac_dir" || { ac_status=$?; continue; }
2118: # Check for guested configure.
2119: if test -f "$ac_srcdir/configure.gnu"; then
2120: echo &&
2121: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2122: elif test -f "$ac_srcdir/configure"; then
2123: echo &&
2124: $SHELL "$ac_srcdir/configure" --help=recursive
2125: else
2126: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2127: fi || ac_status=$?
2128: cd "$ac_pwd" || { ac_status=$?; break; }
2129: done
2130: fi
2131:
2132: test -n "$ac_init_help" && exit $ac_status
2133: if $ac_init_version; then
2134: cat <<\_ACEOF
2135: configure
2136: generated by GNU Autoconf 2.68
2137:
2138: Copyright (C) 2010 Free Software Foundation, Inc.
2139: This configure script is free software; the Free Software Foundation
2140: gives unlimited permission to copy, distribute and modify it.
2141: _ACEOF
2142: exit
2143: fi
2144:
2145: ## ------------------------ ##
2146: ## Autoconf initialization. ##
2147: ## ------------------------ ##
2148:
2149: # ac_fn_c_try_compile LINENO
2150: # --------------------------
2151: # Try to compile conftest.$ac_ext, and return whether this succeeded.
2152: ac_fn_c_try_compile ()
2153: {
2154: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2155: rm -f conftest.$ac_objext
2156: if { { ac_try="$ac_compile"
2157: case "(($ac_try" in
2158: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2159: *) ac_try_echo=$ac_try;;
2160: esac
2161: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2162: $as_echo "$ac_try_echo"; } >&5
2163: (eval "$ac_compile") 2>conftest.err
2164: ac_status=$?
2165: if test -s conftest.err; then
2166: grep -v '^ *+' conftest.err >conftest.er1
2167: cat conftest.er1 >&5
2168: mv -f conftest.er1 conftest.err
2169: fi
2170: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2171: test $ac_status = 0; } && {
2172: test -z "$ac_c_werror_flag" ||
2173: test ! -s conftest.err
2174: } && test -s conftest.$ac_objext; then :
2175: ac_retval=0
2176: else
2177: $as_echo "$as_me: failed program was:" >&5
2178: sed 's/^/| /' conftest.$ac_ext >&5
2179:
2180: ac_retval=1
2181: fi
2182: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2183: as_fn_set_status $ac_retval
2184:
2185: } # ac_fn_c_try_compile
2186:
2187: # ac_fn_c_try_cpp LINENO
2188: # ----------------------
2189: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2190: ac_fn_c_try_cpp ()
2191: {
2192: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2193: if { { ac_try="$ac_cpp conftest.$ac_ext"
2194: case "(($ac_try" in
2195: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2196: *) ac_try_echo=$ac_try;;
2197: esac
2198: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2199: $as_echo "$ac_try_echo"; } >&5
2200: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2201: ac_status=$?
2202: if test -s conftest.err; then
2203: grep -v '^ *+' conftest.err >conftest.er1
2204: cat conftest.er1 >&5
2205: mv -f conftest.er1 conftest.err
2206: fi
2207: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2208: test $ac_status = 0; } > conftest.i && {
2209: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2210: test ! -s conftest.err
2211: }; then :
2212: ac_retval=0
2213: else
2214: $as_echo "$as_me: failed program was:" >&5
2215: sed 's/^/| /' conftest.$ac_ext >&5
2216:
2217: ac_retval=1
2218: fi
2219: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2220: as_fn_set_status $ac_retval
2221:
2222: } # ac_fn_c_try_cpp
2223:
2224: # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2225: # -------------------------------------------------------
2226: # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2227: # the include files in INCLUDES and setting the cache variable VAR
2228: # accordingly.
2229: ac_fn_c_check_header_mongrel ()
2230: {
2231: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2232: if eval \${$3+:} false; then :
2233: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2234: $as_echo_n "checking for $2... " >&6; }
2235: if eval \${$3+:} false; then :
2236: $as_echo_n "(cached) " >&6
2237: fi
2238: eval ac_res=\$$3
2239: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2240: $as_echo "$ac_res" >&6; }
2241: else
2242: # Is the header compilable?
2243: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2244: $as_echo_n "checking $2 usability... " >&6; }
2245: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2246: /* end confdefs.h. */
2247: $4
2248: #include <$2>
2249: _ACEOF
2250: if ac_fn_c_try_compile "$LINENO"; then :
2251: ac_header_compiler=yes
2252: else
2253: ac_header_compiler=no
2254: fi
2255: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2256: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2257: $as_echo "$ac_header_compiler" >&6; }
2258:
2259: # Is the header present?
2260: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2261: $as_echo_n "checking $2 presence... " >&6; }
2262: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2263: /* end confdefs.h. */
2264: #include <$2>
2265: _ACEOF
2266: if ac_fn_c_try_cpp "$LINENO"; then :
2267: ac_header_preproc=yes
2268: else
2269: ac_header_preproc=no
2270: fi
2271: rm -f conftest.err conftest.i conftest.$ac_ext
2272: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2273: $as_echo "$ac_header_preproc" >&6; }
2274:
2275: # So? What about this header?
2276: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2277: yes:no: )
2278: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2279: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2280: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2281: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2282: ;;
2283: no:yes:* )
2284: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2285: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2286: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2287: $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2288: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2289: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2290: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2291: $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2292: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2293: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2294: ;;
2295: esac
2296: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2297: $as_echo_n "checking for $2... " >&6; }
2298: if eval \${$3+:} false; then :
2299: $as_echo_n "(cached) " >&6
2300: else
2301: eval "$3=\$ac_header_compiler"
2302: fi
2303: eval ac_res=\$$3
2304: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2305: $as_echo "$ac_res" >&6; }
2306: fi
2307: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2308:
2309: } # ac_fn_c_check_header_mongrel
2310:
2311: # ac_fn_c_try_run LINENO
2312: # ----------------------
2313: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2314: # that executables *can* be run.
2315: ac_fn_c_try_run ()
2316: {
2317: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2318: if { { ac_try="$ac_link"
2319: case "(($ac_try" in
2320: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2321: *) ac_try_echo=$ac_try;;
2322: esac
2323: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2324: $as_echo "$ac_try_echo"; } >&5
2325: (eval "$ac_link") 2>&5
2326: ac_status=$?
2327: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2328: test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
2336: ac_status=$?
2337: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2338: test $ac_status = 0; }; }; then :
2339: ac_retval=0
2340: else
2341: $as_echo "$as_me: program exited with status $ac_status" >&5
2342: $as_echo "$as_me: failed program was:" >&5
2343: sed 's/^/| /' conftest.$ac_ext >&5
2344:
2345: ac_retval=$ac_status
2346: fi
2347: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2348: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2349: as_fn_set_status $ac_retval
2350:
2351: } # ac_fn_c_try_run
2352:
2353: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2354: # -------------------------------------------------------
2355: # Tests whether HEADER exists and can be compiled using the include files in
2356: # INCLUDES, setting the cache variable VAR accordingly.
2357: ac_fn_c_check_header_compile ()
2358: {
2359: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2360: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2361: $as_echo_n "checking for $2... " >&6; }
2362: if eval \${$3+:} false; then :
2363: $as_echo_n "(cached) " >&6
2364: else
2365: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2366: /* end confdefs.h. */
2367: $4
2368: #include <$2>
2369: _ACEOF
2370: if ac_fn_c_try_compile "$LINENO"; then :
2371: eval "$3=yes"
2372: else
2373: eval "$3=no"
2374: fi
2375: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2376: fi
2377: eval ac_res=\$$3
2378: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2379: $as_echo "$ac_res" >&6; }
2380: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2381:
2382: } # ac_fn_c_check_header_compile
2383:
2384: # ac_fn_c_try_link LINENO
2385: # -----------------------
2386: # Try to link conftest.$ac_ext, and return whether this succeeded.
2387: ac_fn_c_try_link ()
2388: {
2389: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2390: rm -f conftest.$ac_objext conftest$ac_exeext
2391: if { { ac_try="$ac_link"
2392: case "(($ac_try" in
2393: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2394: *) ac_try_echo=$ac_try;;
2395: esac
2396: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2397: $as_echo "$ac_try_echo"; } >&5
2398: (eval "$ac_link") 2>conftest.err
2399: ac_status=$?
2400: if test -s conftest.err; then
2401: grep -v '^ *+' conftest.err >conftest.er1
2402: cat conftest.er1 >&5
2403: mv -f conftest.er1 conftest.err
2404: fi
2405: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2406: test $ac_status = 0; } && {
2407: test -z "$ac_c_werror_flag" ||
2408: test ! -s conftest.err
2409: } && test -s conftest$ac_exeext && {
2410: test "$cross_compiling" = yes ||
2411: $as_test_x conftest$ac_exeext
2412: }; then :
2413: ac_retval=0
2414: else
2415: $as_echo "$as_me: failed program was:" >&5
2416: sed 's/^/| /' conftest.$ac_ext >&5
2417:
2418: ac_retval=1
2419: fi
2420: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2421: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2422: # interfere with the next link command; also delete a directory that is
2423: # left behind by Apple's compiler. We do this before executing the actions.
2424: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2425: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2426: as_fn_set_status $ac_retval
2427:
2428: } # ac_fn_c_try_link
2429:
2430: # ac_fn_c_check_func LINENO FUNC VAR
2431: # ----------------------------------
2432: # Tests whether FUNC exists, setting the cache variable VAR accordingly
2433: ac_fn_c_check_func ()
2434: {
2435: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2436: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2437: $as_echo_n "checking for $2... " >&6; }
2438: if eval \${$3+:} false; then :
2439: $as_echo_n "(cached) " >&6
2440: else
2441: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2442: /* end confdefs.h. */
2443: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2444: For example, HP-UX 11i <limits.h> declares gettimeofday. */
2445: #define $2 innocuous_$2
2446:
2447: /* System header to define __stub macros and hopefully few prototypes,
2448: which can conflict with char $2 (); below.
2449: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2450: <limits.h> exists even on freestanding compilers. */
2451:
2452: #ifdef __STDC__
2453: # include <limits.h>
2454: #else
2455: # include <assert.h>
2456: #endif
2457:
2458: #undef $2
2459:
2460: /* Override any GCC internal prototype to avoid an error.
2461: Use char because int might match the return type of a GCC
2462: builtin and then its argument prototype would still apply. */
2463: #ifdef __cplusplus
2464: extern "C"
2465: #endif
2466: char $2 ();
2467: /* The GNU C library defines this for functions which it implements
2468: to always fail with ENOSYS. Some functions are actually named
2469: something starting with __ and the normal name is an alias. */
2470: #if defined __stub_$2 || defined __stub___$2
2471: choke me
2472: #endif
2473:
2474: int
2475: main ()
2476: {
2477: return $2 ();
2478: ;
2479: return 0;
2480: }
2481: _ACEOF
2482: if ac_fn_c_try_link "$LINENO"; then :
2483: eval "$3=yes"
2484: else
2485: eval "$3=no"
2486: fi
2487: rm -f core conftest.err conftest.$ac_objext \
2488: conftest$ac_exeext conftest.$ac_ext
2489: fi
2490: eval ac_res=\$$3
2491: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2492: $as_echo "$ac_res" >&6; }
2493: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2494:
2495: } # ac_fn_c_check_func
2496:
2497: # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2498: # ----------------------------------------------------
2499: # Tries to find if the field MEMBER exists in type AGGR, after including
2500: # INCLUDES, setting cache variable VAR accordingly.
2501: ac_fn_c_check_member ()
2502: {
2503: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2504: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2505: $as_echo_n "checking for $2.$3... " >&6; }
2506: if eval \${$4+:} false; then :
2507: $as_echo_n "(cached) " >&6
2508: else
2509: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2510: /* end confdefs.h. */
2511: $5
2512: int
2513: main ()
2514: {
2515: static $2 ac_aggr;
2516: if (ac_aggr.$3)
2517: return 0;
2518: ;
2519: return 0;
2520: }
2521: _ACEOF
2522: if ac_fn_c_try_compile "$LINENO"; then :
2523: eval "$4=yes"
2524: else
2525: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2526: /* end confdefs.h. */
2527: $5
2528: int
2529: main ()
2530: {
2531: static $2 ac_aggr;
2532: if (sizeof ac_aggr.$3)
2533: return 0;
2534: ;
2535: return 0;
2536: }
2537: _ACEOF
2538: if ac_fn_c_try_compile "$LINENO"; then :
2539: eval "$4=yes"
2540: else
2541: eval "$4=no"
2542: fi
2543: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2544: fi
2545: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2546: fi
2547: eval ac_res=\$$4
2548: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2549: $as_echo "$ac_res" >&6; }
2550: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2551:
2552: } # ac_fn_c_check_member
2553:
2554: # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2555: # ---------------------------------------------
2556: # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2557: # accordingly.
2558: ac_fn_c_check_decl ()
2559: {
2560: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2561: as_decl_name=`echo $2|sed 's/ *(.*//'`
2562: as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2563: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2564: $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2565: if eval \${$3+:} false; then :
2566: $as_echo_n "(cached) " >&6
2567: else
2568: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2569: /* end confdefs.h. */
2570: $4
2571: int
2572: main ()
2573: {
2574: #ifndef $as_decl_name
2575: #ifdef __cplusplus
2576: (void) $as_decl_use;
2577: #else
2578: (void) $as_decl_name;
2579: #endif
2580: #endif
2581:
2582: ;
2583: return 0;
2584: }
2585: _ACEOF
2586: if ac_fn_c_try_compile "$LINENO"; then :
2587: eval "$3=yes"
2588: else
2589: eval "$3=no"
2590: fi
2591: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2592: fi
2593: eval ac_res=\$$3
2594: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2595: $as_echo "$ac_res" >&6; }
2596: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2597:
2598: } # ac_fn_c_check_decl
2599:
2600: # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2601: # --------------------------------------------
2602: # Tries to find the compile-time value of EXPR in a program that includes
2603: # INCLUDES, setting VAR accordingly. Returns whether the value could be
2604: # computed
2605: ac_fn_c_compute_int ()
2606: {
2607: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2608: if test "$cross_compiling" = yes; then
2609: # Depending upon the size, compute the lo and hi bounds.
2610: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2611: /* end confdefs.h. */
2612: $4
2613: int
2614: main ()
2615: {
2616: static int test_array [1 - 2 * !(($2) >= 0)];
2617: test_array [0] = 0
2618:
2619: ;
2620: return 0;
2621: }
2622: _ACEOF
2623: if ac_fn_c_try_compile "$LINENO"; then :
2624: ac_lo=0 ac_mid=0
2625: while :; do
2626: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2627: /* end confdefs.h. */
2628: $4
2629: int
2630: main ()
2631: {
2632: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2633: test_array [0] = 0
2634:
2635: ;
2636: return 0;
2637: }
2638: _ACEOF
2639: if ac_fn_c_try_compile "$LINENO"; then :
2640: ac_hi=$ac_mid; break
2641: else
2642: as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2643: if test $ac_lo -le $ac_mid; then
2644: ac_lo= ac_hi=
2645: break
2646: fi
2647: as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2648: fi
2649: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2650: done
2651: else
2652: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2653: /* end confdefs.h. */
2654: $4
2655: int
2656: main ()
2657: {
2658: static int test_array [1 - 2 * !(($2) < 0)];
2659: test_array [0] = 0
2660:
2661: ;
2662: return 0;
2663: }
2664: _ACEOF
2665: if ac_fn_c_try_compile "$LINENO"; then :
2666: ac_hi=-1 ac_mid=-1
2667: while :; do
2668: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2669: /* end confdefs.h. */
2670: $4
2671: int
2672: main ()
2673: {
2674: static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2675: test_array [0] = 0
2676:
2677: ;
2678: return 0;
2679: }
2680: _ACEOF
2681: if ac_fn_c_try_compile "$LINENO"; then :
2682: ac_lo=$ac_mid; break
2683: else
2684: as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2685: if test $ac_mid -le $ac_hi; then
2686: ac_lo= ac_hi=
2687: break
2688: fi
2689: as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2690: fi
2691: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2692: done
2693: else
2694: ac_lo= ac_hi=
2695: fi
2696: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2697: fi
2698: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2699: # Binary search between lo and hi bounds.
2700: while test "x$ac_lo" != "x$ac_hi"; do
2701: as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2702: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2703: /* end confdefs.h. */
2704: $4
2705: int
2706: main ()
2707: {
2708: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2709: test_array [0] = 0
2710:
2711: ;
2712: return 0;
2713: }
2714: _ACEOF
2715: if ac_fn_c_try_compile "$LINENO"; then :
2716: ac_hi=$ac_mid
2717: else
2718: as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2719: fi
2720: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2721: done
2722: case $ac_lo in #((
2723: ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2724: '') ac_retval=1 ;;
2725: esac
2726: else
2727: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2728: /* end confdefs.h. */
2729: $4
2730: static long int longval () { return $2; }
2731: static unsigned long int ulongval () { return $2; }
2732: #include <stdio.h>
2733: #include <stdlib.h>
2734: int
2735: main ()
2736: {
2737:
2738: FILE *f = fopen ("conftest.val", "w");
2739: if (! f)
2740: return 1;
2741: if (($2) < 0)
2742: {
2743: long int i = longval ();
2744: if (i != ($2))
2745: return 1;
2746: fprintf (f, "%ld", i);
2747: }
2748: else
2749: {
2750: unsigned long int i = ulongval ();
2751: if (i != ($2))
2752: return 1;
2753: fprintf (f, "%lu", i);
2754: }
2755: /* Do not output a trailing newline, as this causes \r\n confusion
2756: on some platforms. */
2757: return ferror (f) || fclose (f) != 0;
2758:
2759: ;
2760: return 0;
2761: }
2762: _ACEOF
2763: if ac_fn_c_try_run "$LINENO"; then :
2764: echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2765: else
2766: ac_retval=1
2767: fi
2768: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2769: conftest.$ac_objext conftest.beam conftest.$ac_ext
2770: rm -f conftest.val
2771:
2772: fi
2773: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2774: as_fn_set_status $ac_retval
2775:
2776: } # ac_fn_c_compute_int
2777:
2778: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2779: # -------------------------------------------
2780: # Tests whether TYPE exists after having included INCLUDES, setting cache
2781: # variable VAR accordingly.
2782: ac_fn_c_check_type ()
2783: {
2784: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2785: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2786: $as_echo_n "checking for $2... " >&6; }
2787: if eval \${$3+:} false; then :
2788: $as_echo_n "(cached) " >&6
2789: else
2790: eval "$3=no"
2791: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2792: /* end confdefs.h. */
2793: $4
2794: int
2795: main ()
2796: {
2797: if (sizeof ($2))
2798: return 0;
2799: ;
2800: return 0;
2801: }
2802: _ACEOF
2803: if ac_fn_c_try_compile "$LINENO"; then :
2804: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2805: /* end confdefs.h. */
2806: $4
2807: int
2808: main ()
2809: {
2810: if (sizeof (($2)))
2811: return 0;
2812: ;
2813: return 0;
2814: }
2815: _ACEOF
2816: if ac_fn_c_try_compile "$LINENO"; then :
2817:
2818: else
2819: eval "$3=yes"
2820: fi
2821: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2822: fi
2823: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2824: fi
2825: eval ac_res=\$$3
2826: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2827: $as_echo "$ac_res" >&6; }
2828: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2829:
2830: } # ac_fn_c_check_type
2831:
2832: # ac_fn_cxx_try_compile LINENO
2833: # ----------------------------
2834: # Try to compile conftest.$ac_ext, and return whether this succeeded.
2835: ac_fn_cxx_try_compile ()
2836: {
2837: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2838: rm -f conftest.$ac_objext
2839: if { { ac_try="$ac_compile"
2840: case "(($ac_try" in
2841: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2842: *) ac_try_echo=$ac_try;;
2843: esac
2844: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2845: $as_echo "$ac_try_echo"; } >&5
2846: (eval "$ac_compile") 2>conftest.err
2847: ac_status=$?
2848: if test -s conftest.err; then
2849: grep -v '^ *+' conftest.err >conftest.er1
2850: cat conftest.er1 >&5
2851: mv -f conftest.er1 conftest.err
2852: fi
2853: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2854: test $ac_status = 0; } && {
2855: test -z "$ac_cxx_werror_flag" ||
2856: test ! -s conftest.err
2857: } && test -s conftest.$ac_objext; then :
2858: ac_retval=0
2859: else
2860: $as_echo "$as_me: failed program was:" >&5
2861: sed 's/^/| /' conftest.$ac_ext >&5
2862:
2863: ac_retval=1
2864: fi
2865: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2866: as_fn_set_status $ac_retval
2867:
2868: } # ac_fn_cxx_try_compile
2869:
2870: # ac_fn_cxx_try_cpp LINENO
2871: # ------------------------
2872: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2873: ac_fn_cxx_try_cpp ()
2874: {
2875: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2876: if { { ac_try="$ac_cpp conftest.$ac_ext"
2877: case "(($ac_try" in
2878: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2879: *) ac_try_echo=$ac_try;;
2880: esac
2881: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2882: $as_echo "$ac_try_echo"; } >&5
2883: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2884: ac_status=$?
2885: if test -s conftest.err; then
2886: grep -v '^ *+' conftest.err >conftest.er1
2887: cat conftest.er1 >&5
2888: mv -f conftest.er1 conftest.err
2889: fi
2890: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2891: test $ac_status = 0; } > conftest.i && {
2892: test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2893: test ! -s conftest.err
2894: }; then :
2895: ac_retval=0
2896: else
2897: $as_echo "$as_me: failed program was:" >&5
2898: sed 's/^/| /' conftest.$ac_ext >&5
2899:
2900: ac_retval=1
2901: fi
2902: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2903: as_fn_set_status $ac_retval
2904:
2905: } # ac_fn_cxx_try_cpp
2906: cat >config.log <<_ACEOF
2907: This file contains any messages produced by compilers while
2908: running configure, to aid debugging if configure makes a mistake.
2909:
2910: It was created by $as_me, which was
2911: generated by GNU Autoconf 2.68. Invocation command line was
2912:
2913: $ $0 $@
2914:
2915: _ACEOF
2916: exec 5>>config.log
2917: {
2918: cat <<_ASUNAME
2919: ## --------- ##
2920: ## Platform. ##
2921: ## --------- ##
2922:
2923: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2924: uname -m = `(uname -m) 2>/dev/null || echo unknown`
2925: uname -r = `(uname -r) 2>/dev/null || echo unknown`
2926: uname -s = `(uname -s) 2>/dev/null || echo unknown`
2927: uname -v = `(uname -v) 2>/dev/null || echo unknown`
2928:
2929: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2930: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2931:
2932: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2933: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2934: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2935: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2936: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2937: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2938: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2939:
2940: _ASUNAME
2941:
2942: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2943: for as_dir in $PATH
2944: do
2945: IFS=$as_save_IFS
2946: test -z "$as_dir" && as_dir=.
2947: $as_echo "PATH: $as_dir"
2948: done
2949: IFS=$as_save_IFS
2950:
2951: } >&5
2952:
2953: cat >&5 <<_ACEOF
2954:
2955:
2956: ## ----------- ##
2957: ## Core tests. ##
2958: ## ----------- ##
2959:
2960: _ACEOF
2961:
2962:
2963: # Keep a trace of the command line.
2964: # Strip out --no-create and --no-recursion so they do not pile up.
2965: # Strip out --silent because we don't want to record it for future runs.
2966: # Also quote any args containing shell meta-characters.
2967: # Make two passes to allow for proper duplicate-argument suppression.
2968: ac_configure_args=
2969: ac_configure_args0=
2970: ac_configure_args1=
2971: ac_must_keep_next=false
2972: for ac_pass in 1 2
2973: do
2974: for ac_arg
2975: do
2976: case $ac_arg in
2977: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2978: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2979: | -silent | --silent | --silen | --sile | --sil)
2980: continue ;;
2981: *\'*)
2982: ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2983: esac
2984: case $ac_pass in
2985: 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2986: 2)
2987: as_fn_append ac_configure_args1 " '$ac_arg'"
2988: if test $ac_must_keep_next = true; then
2989: ac_must_keep_next=false # Got value, back to normal.
2990: else
2991: case $ac_arg in
2992: *=* | --config-cache | -C | -disable-* | --disable-* \
2993: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2994: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2995: | -with-* | --with-* | -without-* | --without-* | --x)
2996: case "$ac_configure_args0 " in
2997: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2998: esac
2999: ;;
3000: -* ) ac_must_keep_next=true ;;
3001: esac
3002: fi
3003: as_fn_append ac_configure_args " '$ac_arg'"
3004: ;;
3005: esac
3006: done
3007: done
3008: { ac_configure_args0=; unset ac_configure_args0;}
3009: { ac_configure_args1=; unset ac_configure_args1;}
3010:
3011: # When interrupted or exit'd, cleanup temporary files, and complete
3012: # config.log. We remove comments because anyway the quotes in there
3013: # would cause problems or look ugly.
3014: # WARNING: Use '\'' to represent an apostrophe within the trap.
3015: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3016: trap 'exit_status=$?
3017: # Save into config.log some information that might help in debugging.
3018: {
3019: echo
3020:
3021: $as_echo "## ---------------- ##
3022: ## Cache variables. ##
3023: ## ---------------- ##"
3024: echo
3025: # The following way of writing the cache mishandles newlines in values,
3026: (
3027: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3028: eval ac_val=\$$ac_var
3029: case $ac_val in #(
3030: *${as_nl}*)
3031: case $ac_var in #(
3032: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3033: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3034: esac
3035: case $ac_var in #(
3036: _ | IFS | as_nl) ;; #(
3037: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3038: *) { eval $ac_var=; unset $ac_var;} ;;
3039: esac ;;
3040: esac
3041: done
3042: (set) 2>&1 |
3043: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3044: *${as_nl}ac_space=\ *)
3045: sed -n \
3046: "s/'\''/'\''\\\\'\'''\''/g;
3047: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3048: ;; #(
3049: *)
3050: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3051: ;;
3052: esac |
3053: sort
3054: )
3055: echo
3056:
3057: $as_echo "## ----------------- ##
3058: ## Output variables. ##
3059: ## ----------------- ##"
3060: echo
3061: for ac_var in $ac_subst_vars
3062: do
3063: eval ac_val=\$$ac_var
3064: case $ac_val in
3065: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3066: esac
3067: $as_echo "$ac_var='\''$ac_val'\''"
3068: done | sort
3069: echo
3070:
3071: if test -n "$ac_subst_files"; then
3072: $as_echo "## ------------------- ##
3073: ## File substitutions. ##
3074: ## ------------------- ##"
3075: echo
3076: for ac_var in $ac_subst_files
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: fi
3086:
3087: if test -s confdefs.h; then
3088: $as_echo "## ----------- ##
3089: ## confdefs.h. ##
3090: ## ----------- ##"
3091: echo
3092: cat confdefs.h
3093: echo
3094: fi
3095: test "$ac_signal" != 0 &&
3096: $as_echo "$as_me: caught signal $ac_signal"
3097: $as_echo "$as_me: exit $exit_status"
3098: } >&5
3099: rm -f core *.core core.conftest.* &&
3100: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3101: exit $exit_status
3102: ' 0
3103: for ac_signal in 1 2 13 15; do
3104: trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3105: done
3106: ac_signal=0
3107:
3108: # confdefs.h avoids OS command line length limits that DEFS can exceed.
3109: rm -f -r conftest* confdefs.h
3110:
3111: $as_echo "/* confdefs.h */" > confdefs.h
3112:
3113: # Predefined preprocessor variables.
3114:
3115: cat >>confdefs.h <<_ACEOF
3116: #define PACKAGE_NAME "$PACKAGE_NAME"
3117: _ACEOF
3118:
3119: cat >>confdefs.h <<_ACEOF
3120: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3121: _ACEOF
3122:
3123: cat >>confdefs.h <<_ACEOF
3124: #define PACKAGE_VERSION "$PACKAGE_VERSION"
3125: _ACEOF
3126:
3127: cat >>confdefs.h <<_ACEOF
3128: #define PACKAGE_STRING "$PACKAGE_STRING"
3129: _ACEOF
3130:
3131: cat >>confdefs.h <<_ACEOF
3132: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3133: _ACEOF
3134:
3135: cat >>confdefs.h <<_ACEOF
3136: #define PACKAGE_URL "$PACKAGE_URL"
3137: _ACEOF
3138:
3139:
3140: # Let the site file select an alternate cache file if it wants to.
3141: # Prefer an explicitly selected file to automatically selected ones.
3142: ac_site_file1=NONE
3143: ac_site_file2=NONE
3144: if test -n "$CONFIG_SITE"; then
3145: # We do not want a PATH search for config.site.
3146: case $CONFIG_SITE in #((
3147: -*) ac_site_file1=./$CONFIG_SITE;;
3148: */*) ac_site_file1=$CONFIG_SITE;;
3149: *) ac_site_file1=./$CONFIG_SITE;;
3150: esac
3151: elif test "x$prefix" != xNONE; then
3152: ac_site_file1=$prefix/share/config.site
3153: ac_site_file2=$prefix/etc/config.site
3154: else
3155: ac_site_file1=$ac_default_prefix/share/config.site
3156: ac_site_file2=$ac_default_prefix/etc/config.site
3157: fi
3158: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3159: do
3160: test "x$ac_site_file" = xNONE && continue
3161: if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3162: { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3163: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3164: sed 's/^/| /' "$ac_site_file" >&5
3165: . "$ac_site_file" \
3166: || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3167: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3168: as_fn_error $? "failed to load site script $ac_site_file
3169: See \`config.log' for more details" "$LINENO" 5; }
3170: fi
3171: done
3172:
3173: if test -r "$cache_file"; then
3174: # Some versions of bash will fail to source /dev/null (special files
3175: # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3176: if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3177: { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3178: $as_echo "$as_me: loading cache $cache_file" >&6;}
3179: case $cache_file in
3180: [\\/]* | ?:[\\/]* ) . "$cache_file";;
3181: *) . "./$cache_file";;
3182: esac
3183: fi
3184: else
3185: { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3186: $as_echo "$as_me: creating cache $cache_file" >&6;}
3187: >$cache_file
3188: fi
3189:
3190: as_fn_append ac_header_list " utime.h"
3191: # Check that the precious variables saved in the cache have kept the same
3192: # value.
3193: ac_cache_corrupted=false
3194: for ac_var in $ac_precious_vars; do
3195: eval ac_old_set=\$ac_cv_env_${ac_var}_set
3196: eval ac_new_set=\$ac_env_${ac_var}_set
3197: eval ac_old_val=\$ac_cv_env_${ac_var}_value
3198: eval ac_new_val=\$ac_env_${ac_var}_value
3199: case $ac_old_set,$ac_new_set in
3200: set,)
3201: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3202: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3203: ac_cache_corrupted=: ;;
3204: ,set)
3205: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3206: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3207: ac_cache_corrupted=: ;;
3208: ,);;
3209: *)
3210: if test "x$ac_old_val" != "x$ac_new_val"; then
3211: # differences in whitespace do not lead to failure.
3212: ac_old_val_w=`echo x $ac_old_val`
3213: ac_new_val_w=`echo x $ac_new_val`
3214: if test "$ac_old_val_w" != "$ac_new_val_w"; then
3215: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3216: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3217: ac_cache_corrupted=:
3218: else
3219: { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3220: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3221: eval $ac_var=\$ac_old_val
3222: fi
3223: { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3224: $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3225: { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3226: $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3227: fi;;
3228: esac
3229: # Pass precious variables to config.status.
3230: if test "$ac_new_set" = set; then
3231: case $ac_new_val in
3232: *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3233: *) ac_arg=$ac_var=$ac_new_val ;;
3234: esac
3235: case " $ac_configure_args " in
3236: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3237: *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3238: esac
3239: fi
3240: done
3241: if $ac_cache_corrupted; then
3242: { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3243: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3244: { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3245: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3246: as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3247: fi
3248: ## -------------------- ##
3249: ## Main body of script. ##
3250: ## -------------------- ##
3251:
3252: ac_ext=c
3253: ac_cpp='$CPP $CPPFLAGS'
3254: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3255: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3256: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3257:
3258:
3259:
3260: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3261: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3262: if ${ac_cv_path_GREP+:} false; then :
3263: $as_echo_n "(cached) " >&6
3264: else
3265: if test -z "$GREP"; then
3266: ac_path_GREP_found=false
3267: # Loop through the user's path and test for each of PROGNAME-LIST
3268: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3269: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3270: do
3271: IFS=$as_save_IFS
3272: test -z "$as_dir" && as_dir=.
3273: for ac_prog in grep ggrep; do
3274: for ac_exec_ext in '' $ac_executable_extensions; do
3275: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3276: { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3277: # Check for GNU ac_path_GREP and select it if it is found.
3278: # Check for GNU $ac_path_GREP
3279: case `"$ac_path_GREP" --version 2>&1` in
3280: *GNU*)
3281: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3282: *)
3283: ac_count=0
3284: $as_echo_n 0123456789 >"conftest.in"
3285: while :
3286: do
3287: cat "conftest.in" "conftest.in" >"conftest.tmp"
3288: mv "conftest.tmp" "conftest.in"
3289: cp "conftest.in" "conftest.nl"
3290: $as_echo 'GREP' >> "conftest.nl"
3291: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3292: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3293: as_fn_arith $ac_count + 1 && ac_count=$as_val
3294: if test $ac_count -gt ${ac_path_GREP_max-0}; then
3295: # Best one so far, save it but keep looking for a better one
3296: ac_cv_path_GREP="$ac_path_GREP"
3297: ac_path_GREP_max=$ac_count
3298: fi
3299: # 10*(2^10) chars as input seems more than enough
3300: test $ac_count -gt 10 && break
3301: done
3302: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3303: esac
3304:
3305: $ac_path_GREP_found && break 3
3306: done
3307: done
3308: done
3309: IFS=$as_save_IFS
3310: if test -z "$ac_cv_path_GREP"; then
3311: as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3312: fi
3313: else
3314: ac_cv_path_GREP=$GREP
3315: fi
3316:
3317: fi
3318: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3319: $as_echo "$ac_cv_path_GREP" >&6; }
3320: GREP="$ac_cv_path_GREP"
3321:
3322:
3323: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3324: $as_echo_n "checking for egrep... " >&6; }
3325: if ${ac_cv_path_EGREP+:} false; then :
3326: $as_echo_n "(cached) " >&6
3327: else
3328: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3329: then ac_cv_path_EGREP="$GREP -E"
3330: else
3331: if test -z "$EGREP"; then
3332: ac_path_EGREP_found=false
3333: # Loop through the user's path and test for each of PROGNAME-LIST
3334: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3335: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3336: do
3337: IFS=$as_save_IFS
3338: test -z "$as_dir" && as_dir=.
3339: for ac_prog in egrep; do
3340: for ac_exec_ext in '' $ac_executable_extensions; do
3341: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3342: { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3343: # Check for GNU ac_path_EGREP and select it if it is found.
3344: # Check for GNU $ac_path_EGREP
3345: case `"$ac_path_EGREP" --version 2>&1` in
3346: *GNU*)
3347: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3348: *)
3349: ac_count=0
3350: $as_echo_n 0123456789 >"conftest.in"
3351: while :
3352: do
3353: cat "conftest.in" "conftest.in" >"conftest.tmp"
3354: mv "conftest.tmp" "conftest.in"
3355: cp "conftest.in" "conftest.nl"
3356: $as_echo 'EGREP' >> "conftest.nl"
3357: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3358: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3359: as_fn_arith $ac_count + 1 && ac_count=$as_val
3360: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3361: # Best one so far, save it but keep looking for a better one
3362: ac_cv_path_EGREP="$ac_path_EGREP"
3363: ac_path_EGREP_max=$ac_count
3364: fi
3365: # 10*(2^10) chars as input seems more than enough
3366: test $ac_count -gt 10 && break
3367: done
3368: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3369: esac
3370:
3371: $ac_path_EGREP_found && break 3
3372: done
3373: done
3374: done
3375: IFS=$as_save_IFS
3376: if test -z "$ac_cv_path_EGREP"; then
3377: as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3378: fi
3379: else
3380: ac_cv_path_EGREP=$EGREP
3381: fi
3382:
3383: fi
3384: fi
3385: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3386: $as_echo "$ac_cv_path_EGREP" >&6; }
3387: EGREP="$ac_cv_path_EGREP"
3388:
3389:
3390: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3391: $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3392: if ${lt_cv_path_SED+:} false; then :
3393: $as_echo_n "(cached) " >&6
3394: else
3395: # Loop through the user's path and test for sed and gsed.
3396: # Then use that list of sed's as ones to test for truncation.
3397: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3398: for as_dir in $PATH
3399: do
3400: IFS=$as_save_IFS
3401: test -z "$as_dir" && as_dir=.
3402: for lt_ac_prog in sed gsed; do
3403: for ac_exec_ext in '' $ac_executable_extensions; do
3404: if test -f "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3405: lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3406: fi
3407: done
3408: done
3409: done
3410: lt_ac_max=0
3411: lt_ac_count=0
3412: # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3413: # along with /bin/sed that truncates output.
3414: for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3415: test ! -f $lt_ac_sed && continue
3416: cat /dev/null > conftest.in
3417: lt_ac_count=0
3418: echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3419: # Check for GNU sed and select it if it is found.
3420: if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3421: lt_cv_path_SED=$lt_ac_sed
3422: break
3423: fi
3424: while true; do
3425: cat conftest.in conftest.in >conftest.tmp
3426: mv conftest.tmp conftest.in
3427: cp conftest.in conftest.nl
3428: echo >>conftest.nl
3429: $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3430: cmp -s conftest.out conftest.nl || break
3431: # 10000 chars as input seems more than enough
3432: test $lt_ac_count -gt 10 && break
3433: lt_ac_count=`expr $lt_ac_count + 1`
3434: if test $lt_ac_count -gt $lt_ac_max; then
3435: lt_ac_max=$lt_ac_count
3436: lt_cv_path_SED=$lt_ac_sed
3437: fi
3438: done
3439: done
3440:
3441: fi
3442:
3443: SED=$lt_cv_path_SED
3444: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
3445: $as_echo "$SED" >&6; }
3446:
3447:
3448:
3449:
3450:
3451:
3452: PHP_VAR_SUBST="$PHP_VAR_SUBST EGREP"
3453:
3454:
3455:
3456:
3457:
3458: PHP_VAR_SUBST="$PHP_VAR_SUBST SED"
3459:
3460:
3461:
3462: test -f config.nice && mv config.nice config.nice.old
3463: rm -f config.nice.old
3464: cat >config.nice<<EOF
3465: #! /bin/sh
3466: #
3467: # Created by configure
3468:
3469: EOF
3470:
3471: for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS EXTRA_LDFLAGS_PROGRAM LIBS CC CXX; do
3472: eval val=\$$var
3473: if test -n "$val"; then
3474: echo "$var='$val' \\" >> config.nice
3475: fi
3476: done
3477:
3478: echo "'$0' \\" >> config.nice
3479: if test `expr -- $0 : "'.*"` = 0; then
3480: CONFIGURE_COMMAND="$CONFIGURE_COMMAND '$0'"
3481: else
3482: CONFIGURE_COMMAND="$CONFIGURE_COMMAND $0"
3483: fi
3484: for arg in $ac_configure_args; do
3485: if test `expr -- $arg : "'.*"` = 0; then
3486: if test `expr -- $arg : "--.*"` = 0; then
3487: break;
3488: fi
3489: echo "'$arg' \\" >> config.nice
3490: CONFIGURE_OPTIONS="$CONFIGURE_OPTIONS '$arg'"
3491: else
3492: if test `expr -- $arg : "'--.*"` = 0; then
3493: break;
3494: fi
3495: echo "$arg \\" >> config.nice
3496: CONFIGURE_OPTIONS="$CONFIGURE_OPTIONS $arg"
3497: fi
3498: done
3499: echo '"$@"' >> config.nice
3500: chmod +x config.nice
3501: CONFIGURE_COMMAND="$CONFIGURE_COMMAND $CONFIGURE_OPTIONS"
3502:
3503:
3504: PHP_VAR_SUBST="$PHP_VAR_SUBST CONFIGURE_COMMAND"
3505:
3506:
3507:
3508:
3509:
3510: PHP_VAR_SUBST="$PHP_VAR_SUBST CONFIGURE_OPTIONS"
3511:
3512:
3513:
3514:
3515:
3516: ac_aux_dir=
3517: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3518: if test -f "$ac_dir/install-sh"; then
3519: ac_aux_dir=$ac_dir
3520: ac_install_sh="$ac_aux_dir/install-sh -c"
3521: break
3522: elif test -f "$ac_dir/install.sh"; then
3523: ac_aux_dir=$ac_dir
3524: ac_install_sh="$ac_aux_dir/install.sh -c"
3525: break
3526: elif test -f "$ac_dir/shtool"; then
3527: ac_aux_dir=$ac_dir
3528: ac_install_sh="$ac_aux_dir/shtool install -c"
3529: break
3530: fi
3531: done
3532: if test -z "$ac_aux_dir"; then
3533: as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3534: fi
3535:
3536: # These three variables are undocumented and unsupported,
3537: # and are intended to be withdrawn in a future Autoconf release.
3538: # They can cause serious problems if a builder's source tree is in a directory
3539: # whose full name contains unusual characters.
3540: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3541: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3542: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3543:
3544:
3545: # Make sure we can run config.sub.
3546: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3547: as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3548:
3549: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3550: $as_echo_n "checking build system type... " >&6; }
3551: if ${ac_cv_build+:} false; then :
3552: $as_echo_n "(cached) " >&6
3553: else
3554: ac_build_alias=$build_alias
3555: test "x$ac_build_alias" = x &&
3556: ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3557: test "x$ac_build_alias" = x &&
3558: as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3559: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3560: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3561:
3562: fi
3563: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3564: $as_echo "$ac_cv_build" >&6; }
3565: case $ac_cv_build in
3566: *-*-*) ;;
3567: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3568: esac
3569: build=$ac_cv_build
3570: ac_save_IFS=$IFS; IFS='-'
3571: set x $ac_cv_build
3572: shift
3573: build_cpu=$1
3574: build_vendor=$2
3575: shift; shift
3576: # Remember, the first character of IFS is used to create $*,
3577: # except with old shells:
3578: build_os=$*
3579: IFS=$ac_save_IFS
3580: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3581:
3582:
3583: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3584: $as_echo_n "checking host system type... " >&6; }
3585: if ${ac_cv_host+:} false; then :
3586: $as_echo_n "(cached) " >&6
3587: else
3588: if test "x$host_alias" = x; then
3589: ac_cv_host=$ac_cv_build
3590: else
3591: ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3592: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3593: fi
3594:
3595: fi
3596: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3597: $as_echo "$ac_cv_host" >&6; }
3598: case $ac_cv_host in
3599: *-*-*) ;;
3600: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3601: esac
3602: host=$ac_cv_host
3603: ac_save_IFS=$IFS; IFS='-'
3604: set x $ac_cv_host
3605: shift
3606: host_cpu=$1
3607: host_vendor=$2
3608: shift; shift
3609: # Remember, the first character of IFS is used to create $*,
3610: # except with old shells:
3611: host_os=$*
3612: IFS=$ac_save_IFS
3613: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3614:
3615:
3616: { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3617: $as_echo_n "checking target system type... " >&6; }
3618: if ${ac_cv_target+:} false; then :
3619: $as_echo_n "(cached) " >&6
3620: else
3621: if test "x$target_alias" = x; then
3622: ac_cv_target=$ac_cv_host
3623: else
3624: ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3625: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3626: fi
3627:
3628: fi
3629: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3630: $as_echo "$ac_cv_target" >&6; }
3631: case $ac_cv_target in
3632: *-*-*) ;;
3633: *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3634: esac
3635: target=$ac_cv_target
3636: ac_save_IFS=$IFS; IFS='-'
3637: set x $ac_cv_target
3638: shift
3639: target_cpu=$1
3640: target_vendor=$2
3641: shift; shift
3642: # Remember, the first character of IFS is used to create $*,
3643: # except with old shells:
3644: target_os=$*
3645: IFS=$ac_save_IFS
3646: case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3647:
3648:
3649: # The aliases save the names the user supplied, while $host etc.
3650: # will get canonicalized.
3651: test -n "$target_alias" &&
3652: test "$program_prefix$program_suffix$program_transform_name" = \
3653: NONENONEs,x,x, &&
3654: program_prefix=${target_alias}-
3655:
3656: if test -z "$host_alias" && test -n "$host"; then
3657: host_alias=$host
3658: fi
3659: if test -z "$host_alias"; then
3660: as_fn_error $? "host_alias is not set!" "$LINENO" 5
3661: fi
3662:
3663:
3664: ac_config_headers="$ac_config_headers main/php_config.h"
3665:
3666:
3667: PHP_MAJOR_VERSION=5
3668: PHP_MINOR_VERSION=3
3669: PHP_RELEASE_VERSION=10
3670: PHP_EXTRA_VERSION=""
3671: PHP_VERSION="$PHP_MAJOR_VERSION.$PHP_MINOR_VERSION.$PHP_RELEASE_VERSION$PHP_EXTRA_VERSION"
3672: PHP_VERSION_ID=`expr $PHP_MAJOR_VERSION \* 10000 + $PHP_MINOR_VERSION \* 100 + $PHP_RELEASE_VERSION`
3673:
3674:
3675: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_MAJOR_VERSION"
3676:
3677:
3678: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_MINOR_VERSION"
3679:
3680:
3681: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_RELEASE_VERSION"
3682:
3683:
3684: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_EXTRA_VERSION"
3685:
3686:
3687:
3688:
3689: echo "/* automatically generated by configure */" > php_version.h.new
3690: echo "/* edit configure.in to change version number */" >> php_version.h.new
3691: echo "#define PHP_MAJOR_VERSION $PHP_MAJOR_VERSION" >> php_version.h.new
3692: echo "#define PHP_MINOR_VERSION $PHP_MINOR_VERSION" >> php_version.h.new
3693: echo "#define PHP_RELEASE_VERSION $PHP_RELEASE_VERSION" >> php_version.h.new
3694: echo "#define PHP_EXTRA_VERSION \"$PHP_EXTRA_VERSION\"" >> php_version.h.new
3695: echo "#define PHP_VERSION \"$PHP_VERSION\"" >> php_version.h.new
3696: echo "#define PHP_VERSION_ID $PHP_VERSION_ID" >> php_version.h.new
3697: cmp php_version.h.new $srcdir/main/php_version.h >/dev/null 2>&1
3698: if test $? -ne 0 ; then
3699: rm -f $srcdir/main/php_version.h && mv php_version.h.new $srcdir/main/php_version.h && \
3700: echo 'Updated main/php_version.h'
3701: else
3702: rm -f php_version.h.new
3703: fi
3704:
3705:
3706:
3707: if test "$with_shared_apache" != "no" && test -n "$with_shared_apache" ; then
3708: as_fn_error $? "--with-shared-apache is not supported. Please refer to the documentation for using APXS" "$LINENO" 5
3709: fi
3710:
3711: if test -n "$with_apache" && test -n "$with_apxs"; then
3712: as_fn_error $? "--with-apache and --with-apxs cannot be used together" "$LINENO" 5
3713: fi
3714:
3715: if test -n "$with_apxs2filter" && test -n "$with_apxs2"; then
3716: as_fn_error $? "--with-apxs2filter and --with-apxs2 cannot be used together" "$LINENO" 5
3717: fi
3718:
3719:
3720:
3721: cwd=`pwd`
3722:
3723: php_shtool=$srcdir/build/shtool
3724: T_MD=`$php_shtool echo -n -e %B`
3725: T_ME=`$php_shtool echo -n -e %b`
3726:
3727:
3728: test -d include || $php_shtool mkdir include
3729: > Makefile.objects
3730: > Makefile.fragments
3731: pattern=define
3732: $EGREP $pattern'.*include/php' $srcdir/configure|$SED 's/.*>//'|xargs touch 2>/dev/null
3733:
3734:
3735: test -z "$CFLAGS" && auto_cflags=1
3736:
3737: abs_srcdir=`(cd $srcdir; pwd)`
3738: abs_builddir=`pwd`
3739:
3740: php_abs_top_srcdir=$abs_srcdir
3741: php_abs_top_builddir=$abs_builddir
3742:
3743:
3744: $php_shtool mkdir -p libs
3745: rm -f libs/*
3746:
3747:
3748: ac_ext=c
3749: ac_cpp='$CPP $CPPFLAGS'
3750: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3751: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3752: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3753: if test -n "$ac_tool_prefix"; then
3754: for ac_prog in cc gcc
3755: do
3756: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3757: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3758: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3759: $as_echo_n "checking for $ac_word... " >&6; }
3760: if ${ac_cv_prog_CC+:} false; then :
3761: $as_echo_n "(cached) " >&6
3762: else
3763: if test -n "$CC"; then
3764: ac_cv_prog_CC="$CC" # Let the user override the test.
3765: else
3766: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3767: for as_dir in $PATH
3768: do
3769: IFS=$as_save_IFS
3770: test -z "$as_dir" && as_dir=.
3771: for ac_exec_ext in '' $ac_executable_extensions; do
3772: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3773: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3774: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3775: break 2
3776: fi
3777: done
3778: done
3779: IFS=$as_save_IFS
3780:
3781: fi
3782: fi
3783: CC=$ac_cv_prog_CC
3784: if test -n "$CC"; then
3785: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3786: $as_echo "$CC" >&6; }
3787: else
3788: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3789: $as_echo "no" >&6; }
3790: fi
3791:
3792:
3793: test -n "$CC" && break
3794: done
3795: fi
3796: if test -z "$CC"; then
3797: ac_ct_CC=$CC
3798: for ac_prog in cc gcc
3799: do
3800: # Extract the first word of "$ac_prog", so it can be a program name with args.
3801: set dummy $ac_prog; ac_word=$2
3802: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3803: $as_echo_n "checking for $ac_word... " >&6; }
3804: if ${ac_cv_prog_ac_ct_CC+:} false; then :
3805: $as_echo_n "(cached) " >&6
3806: else
3807: if test -n "$ac_ct_CC"; then
3808: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3809: else
3810: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3811: for as_dir in $PATH
3812: do
3813: IFS=$as_save_IFS
3814: test -z "$as_dir" && as_dir=.
3815: for ac_exec_ext in '' $ac_executable_extensions; do
3816: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3817: ac_cv_prog_ac_ct_CC="$ac_prog"
3818: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3819: break 2
3820: fi
3821: done
3822: done
3823: IFS=$as_save_IFS
3824:
3825: fi
3826: fi
3827: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3828: if test -n "$ac_ct_CC"; then
3829: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3830: $as_echo "$ac_ct_CC" >&6; }
3831: else
3832: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3833: $as_echo "no" >&6; }
3834: fi
3835:
3836:
3837: test -n "$ac_ct_CC" && break
3838: done
3839:
3840: if test "x$ac_ct_CC" = x; then
3841: CC=""
3842: else
3843: case $cross_compiling:$ac_tool_warned in
3844: yes:)
3845: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3846: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3847: ac_tool_warned=yes ;;
3848: esac
3849: CC=$ac_ct_CC
3850: fi
3851: fi
3852:
3853:
3854: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3855: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3856: as_fn_error $? "no acceptable C compiler found in \$PATH
3857: See \`config.log' for more details" "$LINENO" 5; }
3858:
3859: # Provide some information about the compiler.
3860: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3861: set X $ac_compile
3862: ac_compiler=$2
3863: for ac_option in --version -v -V -qversion; do
3864: { { ac_try="$ac_compiler $ac_option >&5"
3865: case "(($ac_try" in
3866: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3867: *) ac_try_echo=$ac_try;;
3868: esac
3869: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3870: $as_echo "$ac_try_echo"; } >&5
3871: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3872: ac_status=$?
3873: if test -s conftest.err; then
3874: sed '10a\
3875: ... rest of stderr output deleted ...
3876: 10q' conftest.err >conftest.er1
3877: cat conftest.er1 >&5
3878: fi
3879: rm -f conftest.er1 conftest.err
3880: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3881: test $ac_status = 0; }
3882: done
3883:
3884: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3885: /* end confdefs.h. */
3886:
3887: int
3888: main ()
3889: {
3890:
3891: ;
3892: return 0;
3893: }
3894: _ACEOF
3895: ac_clean_files_save=$ac_clean_files
3896: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3897: # Try to create an executable without -o first, disregard a.out.
3898: # It will help us diagnose broken compilers, and finding out an intuition
3899: # of exeext.
3900: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3901: $as_echo_n "checking whether the C compiler works... " >&6; }
3902: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3903:
3904: # The possible output files:
3905: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3906:
3907: ac_rmfiles=
3908: for ac_file in $ac_files
3909: do
3910: case $ac_file in
3911: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3912: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3913: esac
3914: done
3915: rm -f $ac_rmfiles
3916:
3917: if { { ac_try="$ac_link_default"
3918: case "(($ac_try" in
3919: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3920: *) ac_try_echo=$ac_try;;
3921: esac
3922: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3923: $as_echo "$ac_try_echo"; } >&5
3924: (eval "$ac_link_default") 2>&5
3925: ac_status=$?
3926: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3927: test $ac_status = 0; }; then :
3928: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3929: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3930: # in a Makefile. We should not override ac_cv_exeext if it was cached,
3931: # so that the user can short-circuit this test for compilers unknown to
3932: # Autoconf.
3933: for ac_file in $ac_files ''
3934: do
3935: test -f "$ac_file" || continue
3936: case $ac_file in
3937: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3938: ;;
3939: [ab].out )
3940: # We found the default executable, but exeext='' is most
3941: # certainly right.
3942: break;;
3943: *.* )
3944: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3945: then :; else
3946: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3947: fi
3948: # We set ac_cv_exeext here because the later test for it is not
3949: # safe: cross compilers may not add the suffix if given an `-o'
3950: # argument, so we may need to know it at that point already.
3951: # Even if this section looks crufty: it has the advantage of
3952: # actually working.
3953: break;;
3954: * )
3955: break;;
3956: esac
3957: done
3958: test "$ac_cv_exeext" = no && ac_cv_exeext=
3959:
3960: else
3961: ac_file=''
3962: fi
3963: if test -z "$ac_file"; then :
3964: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3965: $as_echo "no" >&6; }
3966: $as_echo "$as_me: failed program was:" >&5
3967: sed 's/^/| /' conftest.$ac_ext >&5
3968:
3969: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3970: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3971: as_fn_error 77 "C compiler cannot create executables
3972: See \`config.log' for more details" "$LINENO" 5; }
3973: else
3974: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3975: $as_echo "yes" >&6; }
3976: fi
3977: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3978: $as_echo_n "checking for C compiler default output file name... " >&6; }
3979: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3980: $as_echo "$ac_file" >&6; }
3981: ac_exeext=$ac_cv_exeext
3982:
3983: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3984: ac_clean_files=$ac_clean_files_save
3985: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3986: $as_echo_n "checking for suffix of executables... " >&6; }
3987: if { { ac_try="$ac_link"
3988: case "(($ac_try" in
3989: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3990: *) ac_try_echo=$ac_try;;
3991: esac
3992: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3993: $as_echo "$ac_try_echo"; } >&5
3994: (eval "$ac_link") 2>&5
3995: ac_status=$?
3996: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3997: test $ac_status = 0; }; then :
3998: # If both `conftest.exe' and `conftest' are `present' (well, observable)
3999: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4000: # work properly (i.e., refer to `conftest.exe'), while it won't with
4001: # `rm'.
4002: for ac_file in conftest.exe conftest conftest.*; do
4003: test -f "$ac_file" || continue
4004: case $ac_file in
4005: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4006: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4007: break;;
4008: * ) break;;
4009: esac
4010: done
4011: else
4012: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4013: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4014: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4015: See \`config.log' for more details" "$LINENO" 5; }
4016: fi
4017: rm -f conftest conftest$ac_cv_exeext
4018: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4019: $as_echo "$ac_cv_exeext" >&6; }
4020:
4021: rm -f conftest.$ac_ext
4022: EXEEXT=$ac_cv_exeext
4023: ac_exeext=$EXEEXT
4024: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4025: /* end confdefs.h. */
4026: #include <stdio.h>
4027: int
4028: main ()
4029: {
4030: FILE *f = fopen ("conftest.out", "w");
4031: return ferror (f) || fclose (f) != 0;
4032:
4033: ;
4034: return 0;
4035: }
4036: _ACEOF
4037: ac_clean_files="$ac_clean_files conftest.out"
4038: # Check that the compiler produces executables we can run. If not, either
4039: # the compiler is broken, or we cross compile.
4040: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4041: $as_echo_n "checking whether we are cross compiling... " >&6; }
4042: if test "$cross_compiling" != yes; then
4043: { { ac_try="$ac_link"
4044: case "(($ac_try" in
4045: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4046: *) ac_try_echo=$ac_try;;
4047: esac
4048: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4049: $as_echo "$ac_try_echo"; } >&5
4050: (eval "$ac_link") 2>&5
4051: ac_status=$?
4052: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4053: test $ac_status = 0; }
4054: if { ac_try='./conftest$ac_cv_exeext'
4055: { { case "(($ac_try" in
4056: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4057: *) ac_try_echo=$ac_try;;
4058: esac
4059: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4060: $as_echo "$ac_try_echo"; } >&5
4061: (eval "$ac_try") 2>&5
4062: ac_status=$?
4063: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4064: test $ac_status = 0; }; }; then
4065: cross_compiling=no
4066: else
4067: if test "$cross_compiling" = maybe; then
4068: cross_compiling=yes
4069: else
4070: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4071: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4072: as_fn_error $? "cannot run C compiled programs.
4073: If you meant to cross compile, use \`--host'.
4074: See \`config.log' for more details" "$LINENO" 5; }
4075: fi
4076: fi
4077: fi
4078: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4079: $as_echo "$cross_compiling" >&6; }
4080:
4081: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4082: ac_clean_files=$ac_clean_files_save
4083: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4084: $as_echo_n "checking for suffix of object files... " >&6; }
4085: if ${ac_cv_objext+:} false; then :
4086: $as_echo_n "(cached) " >&6
4087: else
4088: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4089: /* end confdefs.h. */
4090:
4091: int
4092: main ()
4093: {
4094:
4095: ;
4096: return 0;
4097: }
4098: _ACEOF
4099: rm -f conftest.o conftest.obj
4100: if { { ac_try="$ac_compile"
4101: case "(($ac_try" in
4102: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4103: *) ac_try_echo=$ac_try;;
4104: esac
4105: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4106: $as_echo "$ac_try_echo"; } >&5
4107: (eval "$ac_compile") 2>&5
4108: ac_status=$?
4109: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4110: test $ac_status = 0; }; then :
4111: for ac_file in conftest.o conftest.obj conftest.*; do
4112: test -f "$ac_file" || continue;
4113: case $ac_file in
4114: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4115: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4116: break;;
4117: esac
4118: done
4119: else
4120: $as_echo "$as_me: failed program was:" >&5
4121: sed 's/^/| /' conftest.$ac_ext >&5
4122:
4123: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4124: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4125: as_fn_error $? "cannot compute suffix of object files: cannot compile
4126: See \`config.log' for more details" "$LINENO" 5; }
4127: fi
4128: rm -f conftest.$ac_cv_objext conftest.$ac_ext
4129: fi
4130: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4131: $as_echo "$ac_cv_objext" >&6; }
4132: OBJEXT=$ac_cv_objext
4133: ac_objext=$OBJEXT
4134: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4135: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4136: if ${ac_cv_c_compiler_gnu+:} false; then :
4137: $as_echo_n "(cached) " >&6
4138: else
4139: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4140: /* end confdefs.h. */
4141:
4142: int
4143: main ()
4144: {
4145: #ifndef __GNUC__
4146: choke me
4147: #endif
4148:
4149: ;
4150: return 0;
4151: }
4152: _ACEOF
4153: if ac_fn_c_try_compile "$LINENO"; then :
4154: ac_compiler_gnu=yes
4155: else
4156: ac_compiler_gnu=no
4157: fi
4158: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4159: ac_cv_c_compiler_gnu=$ac_compiler_gnu
4160:
4161: fi
4162: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4163: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4164: if test $ac_compiler_gnu = yes; then
4165: GCC=yes
4166: else
4167: GCC=
4168: fi
4169: ac_test_CFLAGS=${CFLAGS+set}
4170: ac_save_CFLAGS=$CFLAGS
4171: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4172: $as_echo_n "checking whether $CC accepts -g... " >&6; }
4173: if ${ac_cv_prog_cc_g+:} false; then :
4174: $as_echo_n "(cached) " >&6
4175: else
4176: ac_save_c_werror_flag=$ac_c_werror_flag
4177: ac_c_werror_flag=yes
4178: ac_cv_prog_cc_g=no
4179: CFLAGS="-g"
4180: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4181: /* end confdefs.h. */
4182:
4183: int
4184: main ()
4185: {
4186:
4187: ;
4188: return 0;
4189: }
4190: _ACEOF
4191: if ac_fn_c_try_compile "$LINENO"; then :
4192: ac_cv_prog_cc_g=yes
4193: else
4194: CFLAGS=""
4195: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4196: /* end confdefs.h. */
4197:
4198: int
4199: main ()
4200: {
4201:
4202: ;
4203: return 0;
4204: }
4205: _ACEOF
4206: if ac_fn_c_try_compile "$LINENO"; then :
4207:
4208: else
4209: ac_c_werror_flag=$ac_save_c_werror_flag
4210: CFLAGS="-g"
4211: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4212: /* end confdefs.h. */
4213:
4214: int
4215: main ()
4216: {
4217:
4218: ;
4219: return 0;
4220: }
4221: _ACEOF
4222: if ac_fn_c_try_compile "$LINENO"; then :
4223: ac_cv_prog_cc_g=yes
4224: fi
4225: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4226: fi
4227: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4228: fi
4229: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4230: ac_c_werror_flag=$ac_save_c_werror_flag
4231: fi
4232: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4233: $as_echo "$ac_cv_prog_cc_g" >&6; }
4234: if test "$ac_test_CFLAGS" = set; then
4235: CFLAGS=$ac_save_CFLAGS
4236: elif test $ac_cv_prog_cc_g = yes; then
4237: if test "$GCC" = yes; then
4238: CFLAGS="-g -O2"
4239: else
4240: CFLAGS="-g"
4241: fi
4242: else
4243: if test "$GCC" = yes; then
4244: CFLAGS="-O2"
4245: else
4246: CFLAGS=
4247: fi
4248: fi
4249: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4250: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4251: if ${ac_cv_prog_cc_c89+:} false; then :
4252: $as_echo_n "(cached) " >&6
4253: else
4254: ac_cv_prog_cc_c89=no
4255: ac_save_CC=$CC
4256: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4257: /* end confdefs.h. */
4258: #include <stdarg.h>
4259: #include <stdio.h>
4260: #include <sys/types.h>
4261: #include <sys/stat.h>
4262: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4263: struct buf { int x; };
4264: FILE * (*rcsopen) (struct buf *, struct stat *, int);
4265: static char *e (p, i)
4266: char **p;
4267: int i;
4268: {
4269: return p[i];
4270: }
4271: static char *f (char * (*g) (char **, int), char **p, ...)
4272: {
4273: char *s;
4274: va_list v;
4275: va_start (v,p);
4276: s = g (p, va_arg (v,int));
4277: va_end (v);
4278: return s;
4279: }
4280:
4281: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4282: function prototypes and stuff, but not '\xHH' hex character constants.
4283: These don't provoke an error unfortunately, instead are silently treated
4284: as 'x'. The following induces an error, until -std is added to get
4285: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4286: array size at least. It's necessary to write '\x00'==0 to get something
4287: that's true only with -std. */
4288: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4289:
4290: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4291: inside strings and character constants. */
4292: #define FOO(x) 'x'
4293: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4294:
4295: int test (int i, double x);
4296: struct s1 {int (*f) (int a);};
4297: struct s2 {int (*f) (double a);};
4298: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4299: int argc;
4300: char **argv;
4301: int
4302: main ()
4303: {
4304: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4305: ;
4306: return 0;
4307: }
4308: _ACEOF
4309: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4310: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4311: do
4312: CC="$ac_save_CC $ac_arg"
4313: if ac_fn_c_try_compile "$LINENO"; then :
4314: ac_cv_prog_cc_c89=$ac_arg
4315: fi
4316: rm -f core conftest.err conftest.$ac_objext
4317: test "x$ac_cv_prog_cc_c89" != "xno" && break
4318: done
4319: rm -f conftest.$ac_ext
4320: CC=$ac_save_CC
4321:
4322: fi
4323: # AC_CACHE_VAL
4324: case "x$ac_cv_prog_cc_c89" in
4325: x)
4326: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4327: $as_echo "none needed" >&6; } ;;
4328: xno)
4329: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4330: $as_echo "unsupported" >&6; } ;;
4331: *)
4332: CC="$CC $ac_cv_prog_cc_c89"
4333: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4334: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4335: esac
4336: if test "x$ac_cv_prog_cc_c89" != xno; then :
4337:
4338: fi
4339:
4340: ac_ext=c
4341: ac_cpp='$CPP $CPPFLAGS'
4342: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4343: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4344: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4345:
4346:
4347: ac_ext=c
4348: ac_cpp='$CPP $CPPFLAGS'
4349: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4350: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4351: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4352: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4353: $as_echo_n "checking how to run the C preprocessor... " >&6; }
4354: # On Suns, sometimes $CPP names a directory.
4355: if test -n "$CPP" && test -d "$CPP"; then
4356: CPP=
4357: fi
4358: if test -z "$CPP"; then
4359: if ${ac_cv_prog_CPP+:} false; then :
4360: $as_echo_n "(cached) " >&6
4361: else
4362: # Double quotes because CPP needs to be expanded
4363: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4364: do
4365: ac_preproc_ok=false
4366: for ac_c_preproc_warn_flag in '' yes
4367: do
4368: # Use a header file that comes with gcc, so configuring glibc
4369: # with a fresh cross-compiler works.
4370: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4371: # <limits.h> exists even on freestanding compilers.
4372: # On the NeXT, cc -E runs the code through the compiler's parser,
4373: # not just through cpp. "Syntax error" is here to catch this case.
4374: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4375: /* end confdefs.h. */
4376: #ifdef __STDC__
4377: # include <limits.h>
4378: #else
4379: # include <assert.h>
4380: #endif
4381: Syntax error
4382: _ACEOF
4383: if ac_fn_c_try_cpp "$LINENO"; then :
4384:
4385: else
4386: # Broken: fails on valid input.
4387: continue
4388: fi
4389: rm -f conftest.err conftest.i conftest.$ac_ext
4390:
4391: # OK, works on sane cases. Now check whether nonexistent headers
4392: # can be detected and how.
4393: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4394: /* end confdefs.h. */
4395: #include <ac_nonexistent.h>
4396: _ACEOF
4397: if ac_fn_c_try_cpp "$LINENO"; then :
4398: # Broken: success on invalid input.
4399: continue
4400: else
4401: # Passes both tests.
4402: ac_preproc_ok=:
4403: break
4404: fi
4405: rm -f conftest.err conftest.i conftest.$ac_ext
4406:
4407: done
4408: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4409: rm -f conftest.i conftest.err conftest.$ac_ext
4410: if $ac_preproc_ok; then :
4411: break
4412: fi
4413:
4414: done
4415: ac_cv_prog_CPP=$CPP
4416:
4417: fi
4418: CPP=$ac_cv_prog_CPP
4419: else
4420: ac_cv_prog_CPP=$CPP
4421: fi
4422: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4423: $as_echo "$CPP" >&6; }
4424: ac_preproc_ok=false
4425: for ac_c_preproc_warn_flag in '' yes
4426: do
4427: # Use a header file that comes with gcc, so configuring glibc
4428: # with a fresh cross-compiler works.
4429: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4430: # <limits.h> exists even on freestanding compilers.
4431: # On the NeXT, cc -E runs the code through the compiler's parser,
4432: # not just through cpp. "Syntax error" is here to catch this case.
4433: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4434: /* end confdefs.h. */
4435: #ifdef __STDC__
4436: # include <limits.h>
4437: #else
4438: # include <assert.h>
4439: #endif
4440: Syntax error
4441: _ACEOF
4442: if ac_fn_c_try_cpp "$LINENO"; then :
4443:
4444: else
4445: # Broken: fails on valid input.
4446: continue
4447: fi
4448: rm -f conftest.err conftest.i conftest.$ac_ext
4449:
4450: # OK, works on sane cases. Now check whether nonexistent headers
4451: # can be detected and how.
4452: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4453: /* end confdefs.h. */
4454: #include <ac_nonexistent.h>
4455: _ACEOF
4456: if ac_fn_c_try_cpp "$LINENO"; then :
4457: # Broken: success on invalid input.
4458: continue
4459: else
4460: # Passes both tests.
4461: ac_preproc_ok=:
4462: break
4463: fi
4464: rm -f conftest.err conftest.i conftest.$ac_ext
4465:
4466: done
4467: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4468: rm -f conftest.i conftest.err conftest.$ac_ext
4469: if $ac_preproc_ok; then :
4470:
4471: else
4472: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4473: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4474: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4475: See \`config.log' for more details" "$LINENO" 5; }
4476: fi
4477:
4478: ac_ext=c
4479: ac_cpp='$CPP $CPPFLAGS'
4480: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4481: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4482: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4483:
4484:
4485:
4486: ICC="no"
4487: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icc" >&5
4488: $as_echo_n "checking for icc... " >&6; }
4489: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4490: /* end confdefs.h. */
4491: __INTEL_COMPILER
4492: _ACEOF
4493: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4494: $EGREP "^__INTEL_COMPILER" >/dev/null 2>&1; then :
4495: ICC="no"
4496: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4497: $as_echo "no" >&6; }
4498: else
4499: ICC="yes"
4500: GCC="no"
4501: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4502: $as_echo "yes" >&6; }
4503:
4504: fi
4505: rm -f conftest*
4506:
4507:
4508:
4509: SUNCC="no"
4510: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suncc" >&5
4511: $as_echo_n "checking for suncc... " >&6; }
4512: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4513: /* end confdefs.h. */
4514: __SUNPRO_C
4515: _ACEOF
4516: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4517: $EGREP "^__SUNPRO_C" >/dev/null 2>&1; then :
4518: SUNCC="no"
4519: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4520: $as_echo "no" >&6; }
4521: else
4522: SUNCC="yes"
4523: GCC="no"
4524: test -n "$auto_cflags" && CFLAGS="-O -xs -xstrconst -zlazyload"
4525: GCC=""
4526: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4527: $as_echo "yes" >&6; }
4528:
4529: fi
4530: rm -f conftest*
4531:
4532:
4533: if test "x$CC" != xcc; then
4534: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4535: $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4536: else
4537: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4538: $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4539: fi
4540: set dummy $CC; ac_cc=`$as_echo "$2" |
4541: sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4542: if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4543: $as_echo_n "(cached) " >&6
4544: else
4545: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4546: /* end confdefs.h. */
4547:
4548: int
4549: main ()
4550: {
4551:
4552: ;
4553: return 0;
4554: }
4555: _ACEOF
4556: # Make sure it works both with $CC and with simple cc.
4557: # We do the test twice because some compilers refuse to overwrite an
4558: # existing .o file with -o, though they will create one.
4559: ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4560: rm -f conftest2.*
4561: if { { case "(($ac_try" in
4562: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4563: *) ac_try_echo=$ac_try;;
4564: esac
4565: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4566: $as_echo "$ac_try_echo"; } >&5
4567: (eval "$ac_try") 2>&5
4568: ac_status=$?
4569: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4570: test $ac_status = 0; } &&
4571: test -f conftest2.$ac_objext && { { case "(($ac_try" in
4572: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4573: *) ac_try_echo=$ac_try;;
4574: esac
4575: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4576: $as_echo "$ac_try_echo"; } >&5
4577: (eval "$ac_try") 2>&5
4578: ac_status=$?
4579: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4580: test $ac_status = 0; };
4581: then
4582: eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4583: if test "x$CC" != xcc; then
4584: # Test first that cc exists at all.
4585: if { ac_try='cc -c conftest.$ac_ext >&5'
4586: { { case "(($ac_try" in
4587: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4588: *) ac_try_echo=$ac_try;;
4589: esac
4590: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4591: $as_echo "$ac_try_echo"; } >&5
4592: (eval "$ac_try") 2>&5
4593: ac_status=$?
4594: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4595: test $ac_status = 0; }; }; then
4596: ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4597: rm -f conftest2.*
4598: if { { case "(($ac_try" in
4599: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4600: *) ac_try_echo=$ac_try;;
4601: esac
4602: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4603: $as_echo "$ac_try_echo"; } >&5
4604: (eval "$ac_try") 2>&5
4605: ac_status=$?
4606: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4607: test $ac_status = 0; } &&
4608: test -f conftest2.$ac_objext && { { case "(($ac_try" in
4609: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4610: *) ac_try_echo=$ac_try;;
4611: esac
4612: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4613: $as_echo "$ac_try_echo"; } >&5
4614: (eval "$ac_try") 2>&5
4615: ac_status=$?
4616: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4617: test $ac_status = 0; };
4618: then
4619: # cc works too.
4620: :
4621: else
4622: # cc exists but doesn't like -o.
4623: eval ac_cv_prog_cc_${ac_cc}_c_o=no
4624: fi
4625: fi
4626: fi
4627: else
4628: eval ac_cv_prog_cc_${ac_cc}_c_o=no
4629: fi
4630: rm -f core conftest*
4631:
4632: fi
4633: if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4634: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4635: $as_echo "yes" >&6; }
4636: else
4637: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4638: $as_echo "no" >&6; }
4639:
4640: $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4641:
4642: fi
4643:
4644: ac_ext=c
4645: ac_cpp='$CPP $CPPFLAGS'
4646: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4647: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4648: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4649: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4650: $as_echo_n "checking how to run the C preprocessor... " >&6; }
4651: # On Suns, sometimes $CPP names a directory.
4652: if test -n "$CPP" && test -d "$CPP"; then
4653: CPP=
4654: fi
4655: if test -z "$CPP"; then
4656: if ${ac_cv_prog_CPP+:} false; then :
4657: $as_echo_n "(cached) " >&6
4658: else
4659: # Double quotes because CPP needs to be expanded
4660: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4661: do
4662: ac_preproc_ok=false
4663: for ac_c_preproc_warn_flag in '' yes
4664: do
4665: # Use a header file that comes with gcc, so configuring glibc
4666: # with a fresh cross-compiler works.
4667: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4668: # <limits.h> exists even on freestanding compilers.
4669: # On the NeXT, cc -E runs the code through the compiler's parser,
4670: # not just through cpp. "Syntax error" is here to catch this case.
4671: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4672: /* end confdefs.h. */
4673: #ifdef __STDC__
4674: # include <limits.h>
4675: #else
4676: # include <assert.h>
4677: #endif
4678: Syntax error
4679: _ACEOF
4680: if ac_fn_c_try_cpp "$LINENO"; then :
4681:
4682: else
4683: # Broken: fails on valid input.
4684: continue
4685: fi
4686: rm -f conftest.err conftest.i conftest.$ac_ext
4687:
4688: # OK, works on sane cases. Now check whether nonexistent headers
4689: # can be detected and how.
4690: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4691: /* end confdefs.h. */
4692: #include <ac_nonexistent.h>
4693: _ACEOF
4694: if ac_fn_c_try_cpp "$LINENO"; then :
4695: # Broken: success on invalid input.
4696: continue
4697: else
4698: # Passes both tests.
4699: ac_preproc_ok=:
4700: break
4701: fi
4702: rm -f conftest.err conftest.i conftest.$ac_ext
4703:
4704: done
4705: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4706: rm -f conftest.i conftest.err conftest.$ac_ext
4707: if $ac_preproc_ok; then :
4708: break
4709: fi
4710:
4711: done
4712: ac_cv_prog_CPP=$CPP
4713:
4714: fi
4715: CPP=$ac_cv_prog_CPP
4716: else
4717: ac_cv_prog_CPP=$CPP
4718: fi
4719: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4720: $as_echo "$CPP" >&6; }
4721: ac_preproc_ok=false
4722: for ac_c_preproc_warn_flag in '' yes
4723: do
4724: # Use a header file that comes with gcc, so configuring glibc
4725: # with a fresh cross-compiler works.
4726: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4727: # <limits.h> exists even on freestanding compilers.
4728: # On the NeXT, cc -E runs the code through the compiler's parser,
4729: # not just through cpp. "Syntax error" is here to catch this case.
4730: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4731: /* end confdefs.h. */
4732: #ifdef __STDC__
4733: # include <limits.h>
4734: #else
4735: # include <assert.h>
4736: #endif
4737: Syntax error
4738: _ACEOF
4739: if ac_fn_c_try_cpp "$LINENO"; then :
4740:
4741: else
4742: # Broken: fails on valid input.
4743: continue
4744: fi
4745: rm -f conftest.err conftest.i conftest.$ac_ext
4746:
4747: # OK, works on sane cases. Now check whether nonexistent headers
4748: # can be detected and how.
4749: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4750: /* end confdefs.h. */
4751: #include <ac_nonexistent.h>
4752: _ACEOF
4753: if ac_fn_c_try_cpp "$LINENO"; then :
4754: # Broken: success on invalid input.
4755: continue
4756: else
4757: # Passes both tests.
4758: ac_preproc_ok=:
4759: break
4760: fi
4761: rm -f conftest.err conftest.i conftest.$ac_ext
4762:
4763: done
4764: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4765: rm -f conftest.i conftest.err conftest.$ac_ext
4766: if $ac_preproc_ok; then :
4767:
4768: else
4769: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4770: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4771: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4772: See \`config.log' for more details" "$LINENO" 5; }
4773: fi
4774:
4775: ac_ext=c
4776: ac_cpp='$CPP $CPPFLAGS'
4777: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4778: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4779: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4780:
4781: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4782: $as_echo_n "checking for ANSI C header files... " >&6; }
4783: if ${ac_cv_header_stdc+:} false; then :
4784: $as_echo_n "(cached) " >&6
4785: else
4786: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4787: /* end confdefs.h. */
4788: #include <stdlib.h>
4789: #include <stdarg.h>
4790: #include <string.h>
4791: #include <float.h>
4792:
4793: int
4794: main ()
4795: {
4796:
4797: ;
4798: return 0;
4799: }
4800: _ACEOF
4801: if ac_fn_c_try_compile "$LINENO"; then :
4802: ac_cv_header_stdc=yes
4803: else
4804: ac_cv_header_stdc=no
4805: fi
4806: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4807:
4808: if test $ac_cv_header_stdc = yes; then
4809: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4810: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4811: /* end confdefs.h. */
4812: #include <string.h>
4813:
4814: _ACEOF
4815: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4816: $EGREP "memchr" >/dev/null 2>&1; then :
4817:
4818: else
4819: ac_cv_header_stdc=no
4820: fi
4821: rm -f conftest*
4822:
4823: fi
4824:
4825: if test $ac_cv_header_stdc = yes; then
4826: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4827: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4828: /* end confdefs.h. */
4829: #include <stdlib.h>
4830:
4831: _ACEOF
4832: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4833: $EGREP "free" >/dev/null 2>&1; then :
4834:
4835: else
4836: ac_cv_header_stdc=no
4837: fi
4838: rm -f conftest*
4839:
4840: fi
4841:
4842: if test $ac_cv_header_stdc = yes; then
4843: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4844: if test "$cross_compiling" = yes; then :
4845: :
4846: else
4847: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4848: /* end confdefs.h. */
4849: #include <ctype.h>
4850: #include <stdlib.h>
4851: #if ((' ' & 0x0FF) == 0x020)
4852: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4853: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4854: #else
4855: # define ISLOWER(c) \
4856: (('a' <= (c) && (c) <= 'i') \
4857: || ('j' <= (c) && (c) <= 'r') \
4858: || ('s' <= (c) && (c) <= 'z'))
4859: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4860: #endif
4861:
4862: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4863: int
4864: main ()
4865: {
4866: int i;
4867: for (i = 0; i < 256; i++)
4868: if (XOR (islower (i), ISLOWER (i))
4869: || toupper (i) != TOUPPER (i))
4870: return 2;
4871: return 0;
4872: }
4873: _ACEOF
4874: if ac_fn_c_try_run "$LINENO"; then :
4875:
4876: else
4877: ac_cv_header_stdc=no
4878: fi
4879: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4880: conftest.$ac_objext conftest.beam conftest.$ac_ext
4881: fi
4882:
4883: fi
4884: fi
4885: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4886: $as_echo "$ac_cv_header_stdc" >&6; }
4887: if test $ac_cv_header_stdc = yes; then
4888:
4889: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4890:
4891: fi
4892:
4893: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4894: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4895: inttypes.h stdint.h unistd.h
4896: do :
4897: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4898: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4899: "
4900: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4901: cat >>confdefs.h <<_ACEOF
4902: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4903: _ACEOF
4904:
4905: fi
4906:
4907: done
4908:
4909:
4910:
4911: ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4912: if test "x$ac_cv_header_minix_config_h" = xyes; then :
4913: MINIX=yes
4914: else
4915: MINIX=
4916: fi
4917:
4918:
4919: if test "$MINIX" = yes; then
4920:
4921: $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4922:
4923:
4924: $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4925:
4926:
4927: $as_echo "#define _MINIX 1" >>confdefs.h
4928:
4929: fi
4930:
4931:
4932: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4933: $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4934: if ${ac_cv_safe_to_define___extensions__+:} false; then :
4935: $as_echo_n "(cached) " >&6
4936: else
4937: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4938: /* end confdefs.h. */
4939:
4940: # define __EXTENSIONS__ 1
4941: $ac_includes_default
4942: int
4943: main ()
4944: {
4945:
4946: ;
4947: return 0;
4948: }
4949: _ACEOF
4950: if ac_fn_c_try_compile "$LINENO"; then :
4951: ac_cv_safe_to_define___extensions__=yes
4952: else
4953: ac_cv_safe_to_define___extensions__=no
4954: fi
4955: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4956: fi
4957: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4958: $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4959: test $ac_cv_safe_to_define___extensions__ = yes &&
4960: $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4961:
4962: $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4963:
4964: $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4965:
4966: $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4967:
4968: $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4969:
4970:
4971:
4972: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4973: $as_echo_n "checking whether ln -s works... " >&6; }
4974: LN_S=$as_ln_s
4975: if test "$LN_S" = "ln -s"; then
4976: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4977: $as_echo "yes" >&6; }
4978: else
4979: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4980: $as_echo "no, using $LN_S" >&6; }
4981: fi
4982:
4983:
4984:
4985: php_with_libdir=lib
4986:
4987: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system library directory" >&5
4988: $as_echo_n "checking for system library directory... " >&6; }
4989:
4990: # Check whether --with-libdir was given.
4991: if test "${with_libdir+set}" = set; then :
4992: withval=$with_libdir; PHP_LIBDIR=$withval
4993: else
4994:
4995: PHP_LIBDIR=lib
4996:
4997:
4998: fi
4999:
5000:
5001: ext_output=$PHP_LIBDIR
5002: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
5003: $as_echo "$ext_output" >&6; }
5004:
5005:
5006:
5007:
5008:
5009: php_enable_rpath=yes
5010:
5011: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable runpaths" >&5
5012: $as_echo_n "checking whether to enable runpaths... " >&6; }
5013: # Check whether --enable-rpath was given.
5014: if test "${enable_rpath+set}" = set; then :
5015: enableval=$enable_rpath; PHP_RPATH=$enableval
5016: else
5017:
5018: PHP_RPATH=yes
5019:
5020:
5021: fi
5022:
5023:
5024: ext_output=$PHP_RPATH
5025: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
5026: $as_echo "$ext_output" >&6; }
5027:
5028:
5029:
5030:
5031:
5032: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -R" >&5
5033: $as_echo_n "checking if compiler supports -R... " >&6; }
5034: if ${php_cv_cc_dashr+:} false; then :
5035: $as_echo_n "(cached) " >&6
5036: else
5037:
5038: SAVE_LIBS=$LIBS
5039: LIBS="-R /usr/$PHP_LIBDIR $LIBS"
5040: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5041: /* end confdefs.h. */
5042:
5043: int
5044: main ()
5045: {
5046:
5047: ;
5048: return 0;
5049: }
5050: _ACEOF
5051: if ac_fn_c_try_link "$LINENO"; then :
5052: php_cv_cc_dashr=yes
5053: else
5054: php_cv_cc_dashr=no
5055: fi
5056: rm -f core conftest.err conftest.$ac_objext \
5057: conftest$ac_exeext conftest.$ac_ext
5058: LIBS=$SAVE_LIBS
5059: fi
5060:
5061: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_cc_dashr" >&5
5062: $as_echo "$php_cv_cc_dashr" >&6; }
5063: if test $php_cv_cc_dashr = "yes"; then
5064: ld_runpath_switch=-R
5065: else
5066: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Wl,-rpath," >&5
5067: $as_echo_n "checking if compiler supports -Wl,-rpath,... " >&6; }
5068: if ${php_cv_cc_rpath+:} false; then :
5069: $as_echo_n "(cached) " >&6
5070: else
5071:
5072: SAVE_LIBS=$LIBS
5073: LIBS="-Wl,-rpath,/usr/$PHP_LIBDIR $LIBS"
5074: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5075: /* end confdefs.h. */
5076:
5077: int
5078: main ()
5079: {
5080:
5081: ;
5082: return 0;
5083: }
5084: _ACEOF
5085: if ac_fn_c_try_link "$LINENO"; then :
5086: php_cv_cc_rpath=yes
5087: else
5088: php_cv_cc_rpath=no
5089: fi
5090: rm -f core conftest.err conftest.$ac_objext \
5091: conftest$ac_exeext conftest.$ac_ext
5092: LIBS=$SAVE_LIBS
5093: fi
5094:
5095: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_cc_rpath" >&5
5096: $as_echo "$php_cv_cc_rpath" >&6; }
5097: if test $php_cv_cc_rpath = "yes"; then
5098: ld_runpath_switch=-Wl,-rpath,
5099: else
5100: ld_runpath_switch=-L
5101: fi
5102: fi
5103: if test "$PHP_RPATH" = "no"; then
5104: ld_runpath_switch=
5105: fi
5106:
5107:
5108:
5109: for ac_prog in gawk nawk awk mawk
5110: do
5111: # Extract the first word of "$ac_prog", so it can be a program name with args.
5112: set dummy $ac_prog; ac_word=$2
5113: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5114: $as_echo_n "checking for $ac_word... " >&6; }
5115: if ${ac_cv_prog_AWK+:} false; then :
5116: $as_echo_n "(cached) " >&6
5117: else
5118: if test -n "$AWK"; then
5119: ac_cv_prog_AWK="$AWK" # Let the user override the test.
5120: else
5121: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5122: as_dummy="/usr/xpg4/bin/:$PATH"
5123: for as_dir in $as_dummy
5124: do
5125: IFS=$as_save_IFS
5126: test -z "$as_dir" && as_dir=.
5127: for ac_exec_ext in '' $ac_executable_extensions; do
5128: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5129: ac_cv_prog_AWK="$ac_prog"
5130: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5131: break 2
5132: fi
5133: done
5134: done
5135: IFS=$as_save_IFS
5136:
5137: fi
5138: fi
5139: AWK=$ac_cv_prog_AWK
5140: if test -n "$AWK"; then
5141: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5142: $as_echo "$AWK" >&6; }
5143: else
5144: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5145: $as_echo "no" >&6; }
5146: fi
5147:
5148:
5149: test -n "$AWK" && break
5150: done
5151: test -n "$AWK" || AWK="bork"
5152:
5153: case "$AWK" in
5154: *mawk)
5155: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: mawk is known to have problems on some systems. You should install GNU awk" >&5
5156: $as_echo "$as_me: WARNING: mawk is known to have problems on some systems. You should install GNU awk" >&2;}
5157: ;;
5158: *gawk)
5159: ;;
5160: bork)
5161: as_fn_error $? "Could not find awk; Install GNU awk" "$LINENO" 5
5162: ;;
5163: *)
5164: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $AWK is broken" >&5
5165: $as_echo_n "checking if $AWK is broken... " >&6; }
5166: if ! $AWK 'function foo() {}' >/dev/null 2>&1 ; then
5167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5168: $as_echo "yes" >&6; }
5169: as_fn_error $? "You should install GNU awk" "$LINENO" 5
5170: else
5171: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5172: $as_echo "no" >&6; }
5173: fi
5174: ;;
5175: esac
5176:
5177: PHP_VAR_SUBST="$PHP_VAR_SUBST AWK"
5178:
5179:
5180:
5181: for ac_prog in 'bison -y' byacc
5182: do
5183: # Extract the first word of "$ac_prog", so it can be a program name with args.
5184: set dummy $ac_prog; ac_word=$2
5185: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5186: $as_echo_n "checking for $ac_word... " >&6; }
5187: if ${ac_cv_prog_YACC+:} false; then :
5188: $as_echo_n "(cached) " >&6
5189: else
5190: if test -n "$YACC"; then
5191: ac_cv_prog_YACC="$YACC" # Let the user override the test.
5192: else
5193: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5194: for as_dir in $PATH
5195: do
5196: IFS=$as_save_IFS
5197: test -z "$as_dir" && as_dir=.
5198: for ac_exec_ext in '' $ac_executable_extensions; do
5199: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5200: ac_cv_prog_YACC="$ac_prog"
5201: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5202: break 2
5203: fi
5204: done
5205: done
5206: IFS=$as_save_IFS
5207:
5208: fi
5209: fi
5210: YACC=$ac_cv_prog_YACC
5211: if test -n "$YACC"; then
5212: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5213: $as_echo "$YACC" >&6; }
5214: else
5215: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5216: $as_echo "no" >&6; }
5217: fi
5218:
5219:
5220: test -n "$YACC" && break
5221: done
5222: test -n "$YACC" || YACC="yacc"
5223:
5224:
5225: # we only support certain bison versions
5226: 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"
5227:
5228: # for standalone build of Zend Engine
5229: test -z "$SED" && SED=sed
5230:
5231: bison_version=none
5232: if test "$YACC"; then
5233: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison version" >&5
5234: $as_echo_n "checking for bison version... " >&6; }
5235: if ${php_cv_bison_version+:} false; then :
5236: $as_echo_n "(cached) " >&6
5237: else
5238:
5239: bison_version_vars=`bison --version 2> /dev/null | grep 'GNU Bison' | cut -d ' ' -f 4 | $SED -e 's/\./ /' | tr -d a-z`
5240: php_cv_bison_version=invalid
5241: if test -n "$bison_version_vars"; then
5242: set $bison_version_vars
5243: bison_version="${1}.${2}"
5244: for bison_check_version in $bison_version_list; do
5245: if test "$bison_version" = "$bison_check_version"; then
5246: php_cv_bison_version="$bison_check_version (ok)"
5247: break
5248: fi
5249: done
5250: fi
5251:
5252: fi
5253: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_bison_version" >&5
5254: $as_echo "$php_cv_bison_version" >&6; }
5255: fi
5256: case $php_cv_bison_version in
5257: ""|invalid)
5258: bison_msg="bison versions supported for regeneration of the Zend/PHP parsers: $bison_version_list (found: $bison_version)."
5259: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $bison_msg" >&5
5260: $as_echo "$as_me: WARNING: $bison_msg" >&2;}
5261: YACC="exit 0;"
5262: ;;
5263: esac
5264:
5265:
5266: PHP_VAR_SUBST="$PHP_VAR_SUBST YACC"
5267:
5268:
5269:
5270: # Extract the first word of "re2c", so it can be a program name with args.
5271: set dummy re2c; ac_word=$2
5272: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5273: $as_echo_n "checking for $ac_word... " >&6; }
5274: if ${ac_cv_prog_RE2C+:} false; then :
5275: $as_echo_n "(cached) " >&6
5276: else
5277: if test -n "$RE2C"; then
5278: ac_cv_prog_RE2C="$RE2C" # Let the user override the test.
5279: else
5280: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5281: for as_dir in $PATH
5282: do
5283: IFS=$as_save_IFS
5284: test -z "$as_dir" && as_dir=.
5285: for ac_exec_ext in '' $ac_executable_extensions; do
5286: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5287: ac_cv_prog_RE2C="re2c"
5288: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5289: break 2
5290: fi
5291: done
5292: done
5293: IFS=$as_save_IFS
5294:
5295: fi
5296: fi
5297: RE2C=$ac_cv_prog_RE2C
5298: if test -n "$RE2C"; then
5299: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RE2C" >&5
5300: $as_echo "$RE2C" >&6; }
5301: else
5302: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5303: $as_echo "no" >&6; }
5304: fi
5305:
5306:
5307: if test -n "$RE2C"; then
5308: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for re2c version" >&5
5309: $as_echo_n "checking for re2c version... " >&6; }
5310: if ${php_cv_re2c_version+:} false; then :
5311: $as_echo_n "(cached) " >&6
5312: else
5313:
5314: re2c_vernum=`$RE2C --vernum 2>/dev/null`
5315: if test -z "$re2c_vernum" || test "$re2c_vernum" -lt "1304"; then
5316: php_cv_re2c_version=invalid
5317: else
5318: php_cv_re2c_version="`$RE2C --version | cut -d ' ' -f 2 2>/dev/null` (ok)"
5319: fi
5320:
5321: fi
5322: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_re2c_version" >&5
5323: $as_echo "$php_cv_re2c_version" >&6; }
5324: fi
5325: case $php_cv_re2c_version in
5326: ""|invalid)
5327: { $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
5328: $as_echo "$as_me: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers." >&2;}
5329: RE2C="exit 0;"
5330: ;;
5331: esac
5332:
5333: PHP_VAR_SUBST="$PHP_VAR_SUBST RE2C"
5334:
5335:
5336:
5337: case $php_cv_bison_version in
5338: ""|invalid)
5339: if ! test -f "$abs_srcdir/Zend/zend_language_parser.h" || ! test -f "$abs_srcdir/Zend/zend_language_parser.c" ; then
5340: as_fn_error $? "bison is required to build PHP/Zend when building a SVN checkout!" "$LINENO" 5
5341: fi
5342: ;;
5343: esac
5344:
5345:
5346: php_enable_re2c_cgoto=no
5347:
5348: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable computed goto gcc extension with re2c" >&5
5349: $as_echo_n "checking whether to enable computed goto gcc extension with re2c... " >&6; }
5350: # Check whether --enable-re2c-cgoto was given.
5351: if test "${enable_re2c_cgoto+set}" = set; then :
5352: enableval=$enable_re2c_cgoto; PHP_RE2C_CGOTO=$enableval
5353: else
5354:
5355: PHP_RE2C_CGOTO=no
5356:
5357:
5358: fi
5359:
5360:
5361: ext_output=$PHP_RE2C_CGOTO
5362: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
5363: $as_echo "$ext_output" >&6; }
5364:
5365:
5366:
5367:
5368: if test "$PHP_RE2C_CGOTO" = "no"; then
5369: RE2C_FLAGS=""
5370: else
5371: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether re2c -g works" >&5
5372: $as_echo_n "checking whether re2c -g works... " >&6; }
5373: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5374: /* end confdefs.h. */
5375:
5376: int
5377: main ()
5378: {
5379:
5380: int main(int argc, const char **argv)
5381: {
5382: argc = argc;
5383: argv = argv;
5384: label1:
5385: label2:
5386: static void *adr[] = { &&label1, &&label2};
5387: goto *adr[0];
5388: return 0;
5389: }
5390:
5391: ;
5392: return 0;
5393: }
5394: _ACEOF
5395: if ac_fn_c_try_compile "$LINENO"; then :
5396:
5397: RE2C_FLAGS=""
5398: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5399: $as_echo "no" >&6; }
5400:
5401: else
5402:
5403: RE2C_FLAGS="-g"
5404: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5405: $as_echo "yes" >&6; }
5406:
5407: fi
5408: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5409: fi
5410:
5411: PHP_VAR_SUBST="$PHP_VAR_SUBST RE2C_FLAGS"
5412:
5413:
5414:
5415: case $host_cpu in
5416: alpha*)
5417: if test "$GCC" = "yes"; then
5418: CFLAGS="$CFLAGS -mieee"
5419: else
5420: CFLAGS="$CFLAGS -ieee"
5421: fi
5422: ;;
5423: sparc*)
5424: if test "$SUNCC" = "yes"; then
5425: CFLAGS="$CFLAGS -xmemalign=8s"
5426: fi
5427: ;;
5428: esac
5429:
5430: if test "$GCC" = "yes"; then
5431: case $host_alias in
5432: *darwin*)
5433: GCC_MAJOR_VERSION=`$CC -dumpversion | /usr/bin/sed -nE '1s/([0-9]+)\.[0-9]+\..*/\1/;1p'`
5434: ;;
5435: *)
5436: GCC_MAJOR_VERSION=`$CC --version | $SED -n '1s/[^0-9]*//;1s/\..*//;1p'`
5437: ;;
5438: esac
5439: if test $GCC_MAJOR_VERSION -ge 4; then
5440: CFLAGS="$CFLAGS -fvisibility=hidden"
5441: fi
5442: fi
5443:
5444: case $host_alias in
5445: *solaris*)
5446: CPPFLAGS="$CPPFLAGS -D_POSIX_PTHREAD_SEMANTICS"
5447: if test "${enable_libgcc+set}" != "set" && test "$GCC" = "yes"; then
5448: enable_libgcc=yes
5449: fi
5450: ;;
5451: *dgux*)
5452: CPPFLAGS="$CPPFLAGS -D_BSD_TIMEOFDAY_FLAVOR"
5453: ;;
5454: *darwin*|*rhapsody*)
5455: if test -n "$GCC"; then
5456:
5457: gcc_arg_name=ac_cv_gcc_arg_no_cpp_precomp
5458: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -no-cpp-precomp" >&5
5459: $as_echo_n "checking whether $CC supports -no-cpp-precomp... " >&6; }
5460: if ${ac_cv_gcc_arg_no_cpp_precomp+:} false; then :
5461: $as_echo_n "(cached) " >&6
5462: else
5463:
5464: echo 'void somefunc() { };' > conftest.c
5465: cmd='$CC -no-cpp-precomp -c conftest.c'
5466: if eval $cmd 2>&1 | $EGREP -e -no-cpp-precomp >/dev/null ; then
5467: ac_result=no
5468: else
5469: ac_result=yes
5470: fi
5471: eval $gcc_arg_name=$ac_result
5472: rm -f conftest.*
5473:
5474: fi
5475: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_arg_no_cpp_precomp" >&5
5476: $as_echo "$ac_cv_gcc_arg_no_cpp_precomp" >&6; }
5477: if eval test "\$$gcc_arg_name" = "yes"; then
5478: gcc_no_cpp_precomp=yes
5479: else
5480: :
5481:
5482: fi
5483:
5484: if test "$gcc_no_cpp_precomp" = "yes"; then
5485: CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
5486: fi
5487: fi
5488: php_multiple_shlib_versions_ok=yes
5489: ;;
5490: *beos*)
5491: beos_threads=1
5492: LIBS="$LIBS -lbe -lroot"
5493: ;;
5494: *mips*)
5495: CPPFLAGS="$CPPFLAGS -D_XPG_IV"
5496: ;;
5497: *hpux*)
5498: if test "$GCC" = "yes"; then
5499: CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
5500: fi
5501: ;;
5502: *netware*)
5503:
5504: OVERALL_TARGET=php
5505: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
5506: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
5507: php_c_post=
5508: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
5509: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
5510: php_cxx_post=
5511: php_lo=lo
5512:
5513: case $with_pic in
5514: yes) pic_setting='-prefer-pic';;
5515: no) pic_setting='-prefer-non-pic';;
5516: esac
5517:
5518: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
5519: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
5520: shared_c_post=
5521: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
5522: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
5523: shared_cxx_post=
5524: shared_lo=lo
5525:
5526: php_build_target=program
5527:
5528:
5529:
5530: case /main in
5531: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
5532: /*) ac_srcdir=`echo "/main"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
5533: *) ac_srcdir="$abs_srcdir//main/"; ac_bdir="/main/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
5534: esac
5535:
5536:
5537:
5538: b_c_pre=$php_c_pre
5539: b_cxx_pre=$php_cxx_pre
5540: b_c_meta=$php_c_meta
5541: b_cxx_meta=$php_cxx_meta
5542: b_c_post=$php_c_post
5543: b_cxx_post=$php_cxx_post
5544: b_lo=$php_lo
5545:
5546:
5547: old_IFS=$IFS
5548: for ac_src in internal_functions.c; do
5549:
5550: IFS=.
5551: set $ac_src
5552: ac_obj=$1
5553: IFS=$old_IFS
5554:
5555: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
5556:
5557: case $ac_src in
5558: *.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" ;;
5559: *.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" ;;
5560: *.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" ;;
5561: *.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" ;;
5562: esac
5563:
5564: cat >>Makefile.objects<<EOF
5565: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
5566: $ac_comp
5567: EOF
5568: done
5569:
5570:
5571:
5572:
5573: case win32 in
5574: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
5575: /*) ac_srcdir=`echo "win32"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
5576: *) ac_srcdir="$abs_srcdir/win32/"; ac_bdir="win32/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
5577: esac
5578:
5579:
5580:
5581: b_c_pre=$php_c_pre
5582: b_cxx_pre=$php_cxx_pre
5583: b_c_meta=$php_c_meta
5584: b_cxx_meta=$php_cxx_meta
5585: b_c_post=$php_c_post
5586: b_cxx_post=$php_cxx_post
5587: b_lo=$php_lo
5588:
5589:
5590: old_IFS=$IFS
5591: for ac_src in sendmail.c; do
5592:
5593: IFS=.
5594: set $ac_src
5595: ac_obj=$1
5596: IFS=$old_IFS
5597:
5598: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
5599:
5600: case $ac_src in
5601: *.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" ;;
5602: *.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" ;;
5603: *.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" ;;
5604: *.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" ;;
5605: esac
5606:
5607: cat >>Makefile.objects<<EOF
5608: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
5609: $ac_comp
5610: EOF
5611: done
5612:
5613:
5614: PHP5LIB_SHARED_LIBADD=\$\(EXTRA_LIBS\)
5615: EXTENSION_DIR=sys:/php$PHP_MAJOR_VERSION/ext
5616:
5617: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP5LIB_SHARED_LIBADD"
5618:
5619:
5620: install_modules="install-modules"
5621:
5622: case $host_alias in
5623: *aix*)
5624: suffix=so
5625: 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'
5626: ;;
5627: *netware*)
5628: suffix=nlm
5629: link_cmd='$(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)'
5630: ;;
5631: *)
5632: suffix=la
5633: link_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)'
5634: ;;
5635: esac
5636:
5637: if test "x" = "xyes"; then
5638: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/php5lib.$suffix"
5639: else
5640: PHP_MODULES="$PHP_MODULES \$(phplibdir)/php5lib.$suffix"
5641: fi
5642:
5643: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_GLOBAL_OBJS"
5644:
5645: cat >>Makefile.objects<<EOF
5646: \$(phplibdir)/php5lib.$suffix: netware/php5lib.$suffix
5647: \$(LIBTOOL) --mode=install cp netware/php5lib.$suffix \$(phplibdir)
5648:
5649: netware/php5lib.$suffix: \$(PHP_GLOBAL_OBJS) \$(PHP5LIB_SHARED_DEPENDENCIES)
5650: $link_cmd
5651:
5652: EOF
5653:
5654: ;;
5655: esac
5656:
5657: # Disable PIC mode by default where it is known to be safe to do so,
5658: # to avoid the performance hit from the lost register
5659: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force non-PIC code in shared modules" >&5
5660: $as_echo_n "checking whether to force non-PIC code in shared modules... " >&6; }
5661: case $host_alias in
5662: i?86-*-linux*|i?86-*-freebsd*)
5663: if test "${with_pic+set}" != "set" || test "$with_pic" = "no"; then
5664: with_pic=no
5665: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5666: $as_echo "yes" >&6; }
5667: else
5668: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5669: $as_echo "no" >&6; }
5670: fi
5671: ;;
5672: *)
5673: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5674: $as_echo "no" >&6; }
5675: ;;
5676: esac
5677:
5678:
5679:
5680:
5681:
5682:
5683:
5684:
5685:
5686:
5687:
5688:
5689:
5690:
5691:
5692: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether /dev/urandom exists" >&5
5693: $as_echo_n "checking whether /dev/urandom exists... " >&6; }
5694: if test -r "/dev/urandom" && test -c "/dev/urandom"; then
5695:
5696: $as_echo "#define HAVE_DEV_URANDOM 1" >>confdefs.h
5697:
5698: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5699: $as_echo "yes" >&6; }
5700: else
5701: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5702: $as_echo "no" >&6; }
5703: fi
5704:
5705:
5706:
5707:
5708:
5709:
5710:
5711:
5712:
5713:
5714:
5715:
5716:
5717:
5718:
5719:
5720:
5721:
5722:
5723:
5724:
5725:
5726:
5727: $as_echo "#define SUHOSIN_PATCH 1" >>confdefs.h
5728:
5729:
5730:
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: # Forbidden tokens and exceptions.
5756:
5757:
5758:
5759: # Actually reserved by M4sh.
5760:
5761: # Wrap our cleanup prior to m4sugar's cleanup.
5762:
5763: # All the M4sugar macros start with `m4_', except `dnl' kept as is
5764: # for sake of simplicity.
5765:
5766:
5767:
5768: # If __m4_version__ is defined, we assume that we are being run by M4
5769: # 1.6 or newer, thus recursion is linear, and debugmode(+do)
5770: # is available for faster checks of dereferencing undefined macros
5771: # and forcing dumpdef to print to stderr regardless of debugfile.
5772: # But if it is missing, we assume we are being run by M4 1.4.x, that
5773: # recursion is quadratic, and that we need foreach-based
5774: # replacement macros. Also, m4 prior to 1.4.8 loses track of location
5775: # during m4wrap text; __line__ should never be 0.
5776: #
5777: # Use the raw builtin to avoid tripping up include tracing.
5778: # Meanwhile, avoid m4_copy, since it temporarily undefines m4_defn.
5779: # -*- Autoconf -*-
5780: # This file is part of Autoconf.
5781: # foreach-based replacements for recursive functions.
5782: # Speeds up GNU M4 1.4.x by avoiding quadratic $@ recursion, but penalizes
5783: # GNU M4 1.6 by requiring more memory and macro expansions.
5784: #
5785: # Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc.
5786:
5787: # This file is part of Autoconf. This program is free
5788: # software; you can redistribute it and/or modify it under the
5789: # terms of the GNU General Public License as published by the
5790: # Free Software Foundation, either version 3 of the License, or
5791: # (at your option) any later version.
5792: #
5793: # This program is distributed in the hope that it will be useful,
5794: # but WITHOUT ANY WARRANTY; without even the implied warranty of
5795: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
5796: # GNU General Public License for more details.
5797: #
5798: # Under Section 7 of GPL version 3, you are granted additional
5799: # permissions described in the Autoconf Configure Script Exception,
5800: # version 3.0, as published by the Free Software Foundation.
5801: #
5802: # You should have received a copy of the GNU General Public License
5803: # and a copy of the Autoconf Configure Script Exception along with
5804: # this program; see the files COPYINGv3 and COPYING.EXCEPTION
5805: # respectively. If not, see <http://www.gnu.org/licenses/>.
5806:
5807: # Written by Eric Blake.
5808:
5809: # In M4 1.4.x, every byte of $@ is rescanned. This means that an
5810: # algorithm on n arguments that recurses with one less argument each
5811: # iteration will scan n * (n + 1) / 2 arguments, for O(n^2) time. In
5812: # M4 1.6, this was fixed so that $@ is only scanned once, then
5813: # back-references are made to information stored about the scan.
5814: # Thus, n iterations need only scan n arguments, for O(n) time.
5815: # Additionally, in M4 1.4.x, recursive algorithms did not clean up
5816: # memory very well, requiring O(n^2) memory rather than O(n) for n
5817: # iterations.
5818: #
5819: # This file is designed to overcome the quadratic nature of $@
5820: # recursion by writing a variant of m4_foreach that uses m4_for rather
5821: # than $@ recursion to operate on the list. This involves more macro
5822: # expansions, but avoids the need to rescan a quadratic number of
5823: # arguments, making these replacements very attractive for M4 1.4.x.
5824: # On the other hand, in any version of M4, expanding additional macros
5825: # costs additional time; therefore, in M4 1.6, where $@ recursion uses
5826: # fewer macros, these replacements actually pessimize performance.
5827: # Additionally, the use of $10 to mean the tenth argument violates
5828: # POSIX; although all versions of m4 1.4.x support this meaning, a
5829: # future m4 version may switch to take it as the first argument
5830: # concatenated with a literal 0, so the implementations in this file
5831: # are not future-proof. Thus, this file is conditionally included as
5832: # part of m4_init(), only when it is detected that M4 probably has
5833: # quadratic behavior (ie. it lacks the macro __m4_version__).
5834: #
5835: # Please keep this file in sync with m4sugar.m4.
5836:
5837: # _m4_foreach(PRE, POST, IGNORED, ARG...)
5838: # ---------------------------------------
5839: # Form the common basis of the m4_foreach and m4_map macros. For each
5840: # ARG, expand PRE[ARG]POST[]. The IGNORED argument makes recursion
5841: # easier, and must be supplied rather than implicit.
5842: #
5843: # This version minimizes the number of times that $@ is evaluated by
5844: # using m4_for to generate a boilerplate into _m4_f then passing $@ to
5845: # that temporary macro. Thus, the recursion is done in m4_for without
5846: # reparsing any user input, and is not quadratic. For an idea of how
5847: # this works, note that m4_foreach(i,[1,2],[i]) calls
5848: # _m4_foreach([m4_define([i],],[)i],[],[1],[2])
5849: # which defines _m4_f:
5850: # $1[$4]$2[]$1[$5]$2[]_m4_popdef([_m4_f])
5851: # then calls _m4_f([m4_define([i],],[)i],[],[1],[2]) for a net result:
5852: # m4_define([i],[1])i[]m4_define([i],[2])i[]_m4_popdef([_m4_f]).
5853:
5854:
5855:
5856:
5857: # m4_case(SWITCH, VAL1, IF-VAL1, VAL2, IF-VAL2, ..., DEFAULT)
5858: # -----------------------------------------------------------
5859: # Find the first VAL that SWITCH matches, and expand the corresponding
5860: # IF-VAL. If there are no matches, expand DEFAULT.
5861: #
5862: # Use m4_for to create a temporary macro in terms of a boilerplate
5863: # m4_if with final cleanup. If $# is even, we have DEFAULT; if it is
5864: # odd, then rounding the last $# up in the temporary macro is
5865: # harmless. For example, both m4_case(1,2,3,4,5) and
5866: # m4_case(1,2,3,4,5,6) result in the intermediate _m4_case being
5867: # m4_if([$1],[$2],[$3],[$1],[$4],[$5],_m4_popdef([_m4_case])[$6])
5868:
5869:
5870:
5871:
5872:
5873:
5874: # m4_bmatch(SWITCH, RE1, VAL1, RE2, VAL2, ..., DEFAULT)
5875: # -----------------------------------------------------
5876: # m4 equivalent of
5877: #
5878: # if (SWITCH =~ RE1)
5879: # VAL1;
5880: # elif (SWITCH =~ RE2)
5881: # VAL2;
5882: # elif ...
5883: # ...
5884: # else
5885: # DEFAULT
5886: #
5887: # We build the temporary macro _m4_b:
5888: # m4_define([_m4_b], _m4_defn([_m4_bmatch]))_m4_b([$1], [$2], [$3])...
5889: # _m4_b([$1], [$m-1], [$m])_m4_b([], [], [$m+1]_m4_popdef([_m4_b]))
5890: # then invoke m4_unquote(_m4_b($@)), for concatenation with later text.
5891:
5892:
5893:
5894:
5895:
5896:
5897:
5898:
5899:
5900: # m4_cond(TEST1, VAL1, IF-VAL1, TEST2, VAL2, IF-VAL2, ..., [DEFAULT])
5901: # -------------------------------------------------------------------
5902: # Similar to m4_if, except that each TEST is expanded when encountered.
5903: # If the expansion of TESTn matches the string VALn, the result is IF-VALn.
5904: # The result is DEFAULT if no tests passed. This macro allows
5905: # short-circuiting of expensive tests, where it pays to arrange quick
5906: # filter tests to run first.
5907: #
5908: # m4_cond already guarantees either 3*n or 3*n + 1 arguments, 1 <= n.
5909: # We only have to speed up _m4_cond, by building the temporary _m4_c:
5910: # m4_define([_m4_c], _m4_defn([m4_unquote]))_m4_c([m4_if(($1), [($2)],
5911: # [[$3]m4_define([_m4_c])])])_m4_c([m4_if(($4), [($5)],
5912: # [[$6]m4_define([_m4_c])])])..._m4_c([m4_if(($m-2), [($m-1)],
5913: # [[$m]m4_define([_m4_c])])])_m4_c([[$m+1]]_m4_popdef([_m4_c]))
5914: # We invoke m4_unquote(_m4_c($@)), for concatenation with later text.
5915:
5916:
5917:
5918:
5919:
5920:
5921: # m4_bpatsubsts(STRING, RE1, SUBST1, RE2, SUBST2, ...)
5922: # ----------------------------------------------------
5923: # m4 equivalent of
5924: #
5925: # $_ = STRING;
5926: # s/RE1/SUBST1/g;
5927: # s/RE2/SUBST2/g;
5928: # ...
5929: #
5930: # m4_bpatsubsts already validated an odd number of arguments; we only
5931: # need to speed up _m4_bpatsubsts. To avoid nesting, we build the
5932: # temporary _m4_p:
5933: # m4_define([_m4_p], [$1])m4_define([_m4_p],
5934: # m4_bpatsubst(m4_dquote(_m4_defn([_m4_p])), [$2], [$3]))m4_define([_m4_p],
5935: # m4_bpatsubst(m4_dquote(_m4_defn([_m4_p])), [$4], [$5]))m4_define([_m4_p],...
5936: # m4_bpatsubst(m4_dquote(_m4_defn([_m4_p])), [$m-1], [$m]))m4_unquote(
5937: # _m4_defn([_m4_p])_m4_popdef([_m4_p]))
5938:
5939:
5940:
5941:
5942:
5943:
5944: # m4_shiftn(N, ...)
5945: # -----------------
5946: # Returns ... shifted N times. Useful for recursive "varargs" constructs.
5947: #
5948: # m4_shiftn already validated arguments; we only need to speed up
5949: # _m4_shiftn. If N is 3, then we build the temporary _m4_s, defined as
5950: # ,[$5],[$6],...,[$m]_m4_popdef([_m4_s])
5951: # before calling m4_shift(_m4_s($@)).
5952:
5953:
5954: # m4_do(STRING, ...)
5955: # ------------------
5956: # This macro invokes all its arguments (in sequence, of course). It is
5957: # useful for making your macros more structured and readable by dropping
5958: # unnecessary dnl's and have the macros indented properly.
5959: #
5960: # Here, we use the temporary macro _m4_do, defined as
5961: # $1[]$2[]...[]$n[]_m4_popdef([_m4_do])
5962:
5963:
5964: # m4_dquote_elt(ARGS)
5965: # -------------------
5966: # Return ARGS as an unquoted list of double-quoted arguments.
5967: #
5968: # _m4_foreach to the rescue.
5969:
5970:
5971: # m4_reverse(ARGS)
5972: # ----------------
5973: # Output ARGS in reverse order.
5974: #
5975: # Invoke _m4_r($@) with the temporary _m4_r built as
5976: # [$m], [$m-1], ..., [$2], [$1]_m4_popdef([_m4_r])
5977:
5978:
5979:
5980: # m4_map_args_pair(EXPRESSION, [END-EXPR = EXPRESSION], ARG...)
5981: # -------------------------------------------------------------
5982: # Perform a pairwise grouping of consecutive ARGs, by expanding
5983: # EXPRESSION([ARG1], [ARG2]). If there are an odd number of ARGs, the
5984: # final argument is expanded with END-EXPR([ARGn]).
5985: #
5986: # Build the temporary macro _m4_map_args_pair, with the $2([$m+1])
5987: # only output if $# is odd:
5988: # $1([$3], [$4])[]$1([$5], [$6])[]...$1([$m-1],
5989: # [$m])[]m4_default([$2], [$1])([$m+1])[]_m4_popdef([_m4_map_args_pair])
5990:
5991:
5992:
5993:
5994:
5995:
5996:
5997:
5998: # m4_join(SEP, ARG1, ARG2...)
5999: # ---------------------------
6000: # Produce ARG1SEPARG2...SEPARGn. Avoid back-to-back SEP when a given ARG
6001: # is the empty string. No expansion is performed on SEP or ARGs.
6002: #
6003: # Use a self-modifying separator, since we don't know how many
6004: # arguments might be skipped before a separator is first printed, but
6005: # be careful if the separator contains $. _m4_foreach to the rescue.
6006:
6007:
6008:
6009:
6010: # m4_joinall(SEP, ARG1, ARG2...)
6011: # ------------------------------
6012: # Produce ARG1SEPARG2...SEPARGn. An empty ARG results in back-to-back SEP.
6013: # No expansion is performed on SEP or ARGs.
6014: #
6015: # A bit easier than m4_join. _m4_foreach to the rescue.
6016:
6017:
6018: # m4_list_cmp(A, B)
6019: # -----------------
6020: # Compare the two lists of integer expressions A and B.
6021: #
6022: # m4_list_cmp takes care of any side effects; we only override
6023: # _m4_list_cmp_raw, where we can safely expand lists multiple times.
6024: # First, insert padding so that both lists are the same length; the
6025: # trailing +0 is necessary to handle a missing list. Next, create a
6026: # temporary macro to perform pairwise comparisons until an inequality
6027: # is found. For example, m4_list_cmp([1], [1,2]) creates _m4_cmp as
6028: # m4_if(m4_eval([($1) != ($3)]), [1], [m4_cmp([$1], [$3])],
6029: # m4_eval([($2) != ($4)]), [1], [m4_cmp([$2], [$4])],
6030: # [0]_m4_popdef([_m4_cmp]))
6031: # then calls _m4_cmp([1+0], [0*2], [1], [2+0])
6032:
6033:
6034:
6035:
6036:
6037:
6038:
6039:
6040:
6041:
6042: # m4_max(EXPR, ...)
6043: # m4_min(EXPR, ...)
6044: # -----------------
6045: # Return the decimal value of the maximum (or minimum) in a series of
6046: # integer expressions.
6047: #
6048: # _m4_foreach to the rescue; we only need to replace _m4_minmax. Here,
6049: # we need a temporary macro to track the best answer so far, so that
6050: # the foreach expression is tractable.
6051:
6052:
6053: # m4_set_add_all(SET, VALUE...)
6054: # -----------------------------
6055: # Add each VALUE into SET. This is O(n) in the number of VALUEs, and
6056: # can be faster than calling m4_set_add for each VALUE.
6057: #
6058: # _m4_foreach to the rescue. If no deletions have occurred, then
6059: # avoid the speed penalty of m4_set_add.
6060:
6061:
6062:
6063:
6064:
6065:
6066: # Rewrite the first entry of the diversion stack.
6067:
6068:
6069:
6070:
6071:
6072: # Check whether --enable- was given.
6073: if test "${enable_+set}" = set; then :
6074: enableval=$enable_;
6075: fi
6076:
6077:
6078:
6079:
6080:
6081: PHP_VAR_SUBST="$PHP_VAR_SUBST SHLIB_SUFFIX_NAME"
6082:
6083:
6084:
6085:
6086:
6087: PHP_VAR_SUBST="$PHP_VAR_SUBST SHLIB_DL_SUFFIX_NAME"
6088:
6089:
6090:
6091: SHLIB_SUFFIX_NAME=so
6092: SHLIB_DL_SUFFIX_NAME=$SHLIB_SUFFIX_NAME
6093: case $host_alias in
6094: *hpux*)
6095: SHLIB_SUFFIX_NAME=sl
6096: SHLIB_DL_SUFFIX_NAME=sl
6097: ;;
6098: *darwin*)
6099: SHLIB_SUFFIX_NAME=dylib
6100: SHLIB_DL_SUFFIX_NAME=so
6101: ;;
6102: esac
6103:
6104: PHP_SAPI=default
6105:
6106: OVERALL_TARGET=php
6107: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
6108: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
6109: php_c_post=
6110: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
6111: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
6112: php_cxx_post=
6113: php_lo=lo
6114:
6115: case $with_pic in
6116: yes) pic_setting='-prefer-pic';;
6117: no) pic_setting='-prefer-non-pic';;
6118: esac
6119:
6120: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
6121: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
6122: shared_c_post=
6123: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
6124: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
6125: shared_cxx_post=
6126: shared_lo=lo
6127:
6128: php_build_target=program
6129:
6130:
6131:
6132:
6133: SAPI_SHARED=libs/libphp$PHP_MAJOR_VERSION.$SHLIB_DL_SUFFIX_NAME
6134: SAPI_STATIC=libs/libphp$PHP_MAJOR_VERSION.a
6135: SAPI_LIBTOOL=libphp$PHP_MAJOR_VERSION.la
6136:
6137:
6138: { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
6139: $as_echo "" >&6; }
6140: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Configuring SAPI modules${T_ME}" >&5
6141: $as_echo "${T_MD}Configuring SAPI modules${T_ME}" >&6; }
6142:
6143:
6144:
6145:
6146:
6147: php_with_aolserver=no
6148:
6149:
6150:
6151: # Check whether --with-aolserver was given.
6152: if test "${with_aolserver+set}" = set; then :
6153: withval=$with_aolserver; PHP_AOLSERVER=$withval
6154: else
6155:
6156: PHP_AOLSERVER=no
6157:
6158:
6159: fi
6160:
6161:
6162: ext_output=$PHP_AOLSERVER
6163:
6164:
6165:
6166:
6167:
6168: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AOLserver support" >&5
6169: $as_echo_n "checking for AOLserver support... " >&6; }
6170:
6171: if test "$PHP_AOLSERVER" != "no"; then
6172: if test -d "$PHP_AOLSERVER/include"; then
6173: PHP_AOLSERVER_SRC=$PHP_AOLSERVER
6174: fi
6175: if test -z "$PHP_AOLSERVER_SRC" || test ! -d $PHP_AOLSERVER_SRC/include; then
6176: as_fn_error $? "Please specify the path to the source distribution of AOLserver using --with-aolserver-src=DIR" "$LINENO" 5
6177: fi
6178: if test ! -d $PHP_AOLSERVER/bin ; then
6179: as_fn_error $? "Please specify the path to the root of AOLserver using --with-aolserver=DIR" "$LINENO" 5
6180: fi
6181:
6182: enable_maintainer_zts=yes
6183: if test "$pthreads_working" != "yes"; then
6184: as_fn_error $? "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5
6185: fi
6186:
6187:
6188: if test "$PHP_AOLSERVER_SRC/include" != "/usr/include"; then
6189:
6190: if test -z "$PHP_AOLSERVER_SRC/include" || echo "$PHP_AOLSERVER_SRC/include" | grep '^/' >/dev/null ; then
6191: ai_p=$PHP_AOLSERVER_SRC/include
6192: else
6193:
6194: ep_dir="`echo $PHP_AOLSERVER_SRC/include|$SED 's%/*[^/][^/]*/*$%%'`"
6195:
6196: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
6197: ai_p="$ep_realdir/`basename \"$PHP_AOLSERVER_SRC/include\"`"
6198: fi
6199:
6200:
6201:
6202: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
6203:
6204: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
6205: if test -n "$unique" && test "`eval $cmd`" = "" ; then
6206: eval "INCLUDEPATH$unique=set"
6207:
6208: if test ""; then
6209: INCLUDES="-I$ai_p $INCLUDES"
6210: else
6211: INCLUDES="$INCLUDES -I$ai_p"
6212: fi
6213:
6214: fi
6215:
6216: fi
6217:
6218:
6219: $as_echo "#define HAVE_AOLSERVER 1" >>confdefs.h
6220:
6221:
6222: if test "$PHP_SAPI" != "default"; then
6223: as_fn_error $? "
6224: +--------------------------------------------------------------------+
6225: | *** ATTENTION *** |
6226: | |
6227: | You've configured multiple SAPIs to be build. You can build only |
6228: | one SAPI module and CLI binary at the same time. |
6229: +--------------------------------------------------------------------+
6230: " "$LINENO" 5
6231: fi
6232:
6233: PHP_SAPI=aolserver
6234:
6235: case "shared" in
6236: static)
6237:
6238: OVERALL_TARGET=php
6239: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
6240: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
6241: php_c_post=
6242: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
6243: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
6244: php_cxx_post=
6245: php_lo=lo
6246:
6247: case $with_pic in
6248: yes) pic_setting='-prefer-pic';;
6249: no) pic_setting='-prefer-non-pic';;
6250: esac
6251:
6252: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
6253: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
6254: shared_c_post=
6255: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
6256: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
6257: shared_cxx_post=
6258: shared_lo=lo
6259:
6260: php_build_target=program
6261:
6262: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
6263: php_build_target=static
6264: ;;
6265: shared)
6266:
6267: OVERALL_TARGET=php
6268: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
6269: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
6270: php_c_post=
6271: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
6272: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
6273: php_cxx_post=
6274: php_lo=lo
6275:
6276: case $with_pic in
6277: yes) pic_setting='-prefer-pic';;
6278: no) pic_setting='-prefer-non-pic';;
6279: esac
6280:
6281: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
6282: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
6283: shared_c_post=
6284: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
6285: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
6286: shared_cxx_post=
6287: shared_lo=lo
6288:
6289: php_build_target=program
6290:
6291: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
6292: php_build_target=shared
6293:
6294: php_c_pre=$shared_c_pre
6295: php_c_meta=$shared_c_meta
6296: php_c_post=$shared_c_post
6297: php_cxx_pre=$shared_cxx_pre
6298: php_cxx_meta=$shared_cxx_meta
6299: php_cxx_post=$shared_cxx_post
6300: php_lo=$shared_lo
6301: ;;
6302: bundle)
6303:
6304: OVERALL_TARGET=php
6305: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
6306: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
6307: php_c_post=
6308: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
6309: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
6310: php_cxx_post=
6311: php_lo=lo
6312:
6313: case $with_pic in
6314: yes) pic_setting='-prefer-pic';;
6315: no) pic_setting='-prefer-non-pic';;
6316: esac
6317:
6318: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
6319: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
6320: shared_c_post=
6321: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
6322: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
6323: shared_cxx_post=
6324: shared_lo=lo
6325:
6326: php_build_target=program
6327:
6328: OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
6329: php_build_target=static
6330: ;;
6331: program)
6332: OVERALL_TARGET=php
6333: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
6334: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
6335: php_c_post=
6336: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
6337: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
6338: php_cxx_post=
6339: php_lo=lo
6340:
6341: case $with_pic in
6342: yes) pic_setting='-prefer-pic';;
6343: no) pic_setting='-prefer-non-pic';;
6344: esac
6345:
6346: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
6347: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
6348: shared_c_post=
6349: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
6350: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
6351: shared_cxx_post=
6352: shared_lo=lo
6353:
6354: php_build_target=program
6355: ;;
6356: esac
6357:
6358:
6359:
6360: case sapi/aolserver in
6361: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
6362: /*) ac_srcdir=`echo "sapi/aolserver"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
6363: *) ac_srcdir="$abs_srcdir/sapi/aolserver/"; ac_bdir="sapi/aolserver/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
6364: esac
6365:
6366:
6367:
6368: b_c_pre=$php_c_pre
6369: b_cxx_pre=$php_cxx_pre
6370: b_c_meta=$php_c_meta
6371: b_cxx_meta=$php_cxx_meta
6372: b_c_post=$php_c_post
6373: b_cxx_post=$php_cxx_post
6374: b_lo=$php_lo
6375:
6376:
6377: old_IFS=$IFS
6378: for ac_src in aolserver.c; do
6379:
6380: IFS=.
6381: set $ac_src
6382: ac_obj=$1
6383: IFS=$old_IFS
6384:
6385: PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
6386:
6387: case $ac_src in
6388: *.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" ;;
6389: *.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" ;;
6390: *.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" ;;
6391: *.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" ;;
6392: esac
6393:
6394: cat >>Makefile.objects<<EOF
6395: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
6396: $ac_comp
6397: EOF
6398: done
6399:
6400:
6401:
6402: INSTALL_IT="\$(INSTALL) -m 0755 $SAPI_SHARED \$(INSTALL_ROOT)$PHP_AOLSERVER/bin/"
6403: fi
6404:
6405: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_AOLSERVER" >&5
6406: $as_echo "$PHP_AOLSERVER" >&6; }
6407:
6408:
6409:
6410:
6411:
6412: php_with_apxs=no
6413:
6414:
6415:
6416: # Check whether --with-apxs was given.
6417: if test "${with_apxs+set}" = set; then :
6418: withval=$with_apxs; PHP_APXS=$withval
6419: else
6420:
6421: PHP_APXS=no
6422:
6423:
6424: fi
6425:
6426:
6427: ext_output=$PHP_APXS
6428:
6429:
6430:
6431:
6432:
6433: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apache 1.x module support via DSO through APXS" >&5
6434: $as_echo_n "checking for Apache 1.x module support via DSO through APXS... " >&6; }
6435:
6436: if test "$PHP_APXS" != "no"; then
6437: if test "$PHP_APXS" = "yes"; then
6438: APXS=apxs
6439: $APXS -q CFLAGS >/dev/null 2>&1
6440: if test "$?" != "0" && test -x /usr/sbin/apxs; then #SUSE 6.x
6441: APXS=/usr/sbin/apxs
6442: fi
6443: else
6444:
6445: if test -z "$PHP_APXS" || echo "$PHP_APXS" | grep '^/' >/dev/null ; then
6446: APXS=$PHP_APXS
6447: else
6448:
6449: ep_dir="`echo $PHP_APXS|$SED 's%/*[^/][^/]*/*$%%'`"
6450:
6451: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
6452: APXS="$ep_realdir/`basename \"$PHP_APXS\"`"
6453: fi
6454:
6455: fi
6456:
6457: $APXS -q CFLAGS >/dev/null 2>&1
6458: if test "$?" != "0"; then
6459: { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
6460: $as_echo "" >&6; }
6461: { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
6462: $as_echo "" >&6; }
6463: { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, I was not able to successfully run APXS. Possible reasons:" >&5
6464: $as_echo "Sorry, I was not able to successfully run APXS. Possible reasons:" >&6; }
6465: { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
6466: $as_echo "" >&6; }
6467: { $as_echo "$as_me:${as_lineno-$LINENO}: result: 1. Perl is not installed;" >&5
6468: $as_echo "1. Perl is not installed;" >&6; }
6469: { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2. Apache was not compiled with DSO support (--enable-module=so);" >&5
6470: $as_echo "2. Apache was not compiled with DSO support (--enable-module=so);" >&6; }
6471: { $as_echo "$as_me:${as_lineno-$LINENO}: result: 3. 'apxs' is not in your path. Try to use --with-apxs=/path/to/apxs" >&5
6472: $as_echo "3. 'apxs' is not in your path. Try to use --with-apxs=/path/to/apxs" >&6; }
6473: { $as_echo "$as_me:${as_lineno-$LINENO}: result: The output of $APXS follows" >&5
6474: $as_echo "The output of $APXS follows" >&6; }
6475: $APXS -q CFLAGS
6476: as_fn_error $? "Aborting" "$LINENO" 5
6477: fi
6478:
6479: APXS_LDFLAGS="@SYBASE_LFLAGS@ @SYBASE_LIBS@ @SYBASE_CT_LFLAGS@ @SYBASE_CT_LIBS@"
6480: APXS_INCLUDEDIR=`$APXS -q INCLUDEDIR`
6481: APXS_CFLAGS=`$APXS -q CFLAGS`
6482: APXS_HTTPD=`$APXS -q SBINDIR`/`$APXS -q TARGET`
6483: APACHE_INCLUDE=-I$APXS_INCLUDEDIR
6484:
6485: # Test that we're trying to configure with apache 1.x
6486:
6487: ac_output=`$APXS_HTTPD -v 2>&1 | grep version | $SED -e 's/Oracle-HTTP-//'`
6488: ac_IFS=$IFS
6489: IFS="- /.
6490: "
6491: set $ac_output
6492: IFS=$ac_IFS
6493:
6494: APACHE_VERSION=`expr $4 \* 1000000 + $5 \* 1000 + $6`
6495:
6496: if test "$APACHE_VERSION" -ge 2000000; then
6497: as_fn_error $? "You have enabled Apache 1.3 support while your server is Apache 2. Please use the appropiate switch --with-apxs2" "$LINENO" 5
6498: fi
6499:
6500: for flag in $APXS_CFLAGS; do
6501: case $flag in
6502: -D*) APACHE_CPPFLAGS="$APACHE_CPPFLAGS $flag";;
6503: esac
6504: done
6505:
6506: case $host_alias in
6507: *aix*)
6508: APXS_LIBEXECDIR=`$APXS -q LIBEXECDIR`
6509: EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-brtl -Wl,-bI:$APXS_LIBEXECDIR/httpd.exp"
6510: PHP_AIX_LDFLAGS="-Wl,-brtl"
6511: build_type=shared
6512: ;;
6513: *darwin*)
6514: MH_BUNDLE_FLAGS="-dynamic -twolevel_namespace -bundle -bundle_loader $APXS_HTTPD"
6515:
6516: PHP_VAR_SUBST="$PHP_VAR_SUBST MH_BUNDLE_FLAGS"
6517:
6518: SAPI_SHARED=libs/libphp5.so
6519: build_type=bundle
6520: ;;
6521: *)
6522: build_type=shared
6523: ;;
6524: esac
6525:
6526:
6527: if test "$PHP_SAPI" != "default"; then
6528: as_fn_error $? "
6529: +--------------------------------------------------------------------+
6530: | *** ATTENTION *** |
6531: | |
6532: | You've configured multiple SAPIs to be build. You can build only |
6533: | one SAPI module and CLI binary at the same time. |
6534: +--------------------------------------------------------------------+
6535: " "$LINENO" 5
6536: fi
6537:
6538: PHP_SAPI=apache
6539:
6540: case "$build_type" in
6541: static)
6542:
6543: OVERALL_TARGET=php
6544: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
6545: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
6546: php_c_post=
6547: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
6548: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
6549: php_cxx_post=
6550: php_lo=lo
6551:
6552: case $with_pic in
6553: yes) pic_setting='-prefer-pic';;
6554: no) pic_setting='-prefer-non-pic';;
6555: esac
6556:
6557: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
6558: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
6559: shared_c_post=
6560: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
6561: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
6562: shared_cxx_post=
6563: shared_lo=lo
6564:
6565: php_build_target=program
6566:
6567: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
6568: php_build_target=static
6569: ;;
6570: shared)
6571:
6572: OVERALL_TARGET=php
6573: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
6574: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
6575: php_c_post=
6576: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
6577: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
6578: php_cxx_post=
6579: php_lo=lo
6580:
6581: case $with_pic in
6582: yes) pic_setting='-prefer-pic';;
6583: no) pic_setting='-prefer-non-pic';;
6584: esac
6585:
6586: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
6587: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
6588: shared_c_post=
6589: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
6590: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
6591: shared_cxx_post=
6592: shared_lo=lo
6593:
6594: php_build_target=program
6595:
6596: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
6597: php_build_target=shared
6598:
6599: php_c_pre=$shared_c_pre
6600: php_c_meta=$shared_c_meta
6601: php_c_post=$shared_c_post
6602: php_cxx_pre=$shared_cxx_pre
6603: php_cxx_meta=$shared_cxx_meta
6604: php_cxx_post=$shared_cxx_post
6605: php_lo=$shared_lo
6606: ;;
6607: bundle)
6608:
6609: OVERALL_TARGET=php
6610: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
6611: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
6612: php_c_post=
6613: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
6614: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
6615: php_cxx_post=
6616: php_lo=lo
6617:
6618: case $with_pic in
6619: yes) pic_setting='-prefer-pic';;
6620: no) pic_setting='-prefer-non-pic';;
6621: esac
6622:
6623: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
6624: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
6625: shared_c_post=
6626: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
6627: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
6628: shared_cxx_post=
6629: shared_lo=lo
6630:
6631: php_build_target=program
6632:
6633: OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
6634: php_build_target=static
6635: ;;
6636: program)
6637: OVERALL_TARGET=php
6638: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
6639: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
6640: php_c_post=
6641: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
6642: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
6643: php_cxx_post=
6644: php_lo=lo
6645:
6646: case $with_pic in
6647: yes) pic_setting='-prefer-pic';;
6648: no) pic_setting='-prefer-non-pic';;
6649: esac
6650:
6651: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
6652: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
6653: shared_c_post=
6654: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
6655: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
6656: shared_cxx_post=
6657: shared_lo=lo
6658:
6659: php_build_target=program
6660: ;;
6661: esac
6662:
6663:
6664:
6665: case sapi/apache in
6666: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
6667: /*) ac_srcdir=`echo "sapi/apache"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
6668: *) ac_srcdir="$abs_srcdir/sapi/apache/"; ac_bdir="sapi/apache/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
6669: esac
6670:
6671:
6672:
6673: b_c_pre=$php_c_pre
6674: b_cxx_pre=$php_cxx_pre
6675: b_c_meta=$php_c_meta
6676: b_cxx_meta=$php_cxx_meta
6677: b_c_post=$php_c_post
6678: b_cxx_post=$php_cxx_post
6679: b_lo=$php_lo
6680:
6681:
6682: old_IFS=$IFS
6683: for ac_src in sapi_apache.c mod_php5.c php_apache.c; do
6684:
6685: IFS=.
6686: set $ac_src
6687: ac_obj=$1
6688: IFS=$old_IFS
6689:
6690: PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
6691:
6692: case $ac_src in
6693: *.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" ;;
6694: *.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" ;;
6695: *.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" ;;
6696: *.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" ;;
6697: esac
6698:
6699: cat >>Makefile.objects<<EOF
6700: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
6701: $ac_comp
6702: EOF
6703: done
6704:
6705:
6706:
6707:
6708: # Test whether apxs support -S option
6709: $APXS -q -S CFLAGS="$APXS_CFLAGS" CFLAGS >/dev/null 2>&1
6710:
6711: if test "$?" != "0"; then
6712: APACHE_INSTALL="$APXS -i -a -n php5 $SAPI_SHARED" # Old apxs does not have -S option
6713: else
6714: APXS_LIBEXECDIR='$(INSTALL_ROOT)'`$APXS -q LIBEXECDIR`
6715: if test -z `$APXS -q SYSCONFDIR`; then
6716: APACHE_INSTALL="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \
6717: $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \
6718: -i -n php5 $SAPI_SHARED"
6719: else
6720: APXS_SYSCONFDIR='$(INSTALL_ROOT)'`$APXS -q SYSCONFDIR`
6721: APACHE_INSTALL="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \
6722: \$(mkinstalldirs) '$APXS_SYSCONFDIR' && \
6723: $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \
6724: -S SYSCONFDIR='$APXS_SYSCONFDIR' \
6725: -i -a -n php5 $SAPI_SHARED"
6726: fi
6727: fi
6728:
6729: if test -z "`$APXS -q LD_SHLIB`" || test "`$APXS -q LIBEXECDIR`" = "modules"; then
6730: PHP_APXS_BROKEN=yes
6731: fi
6732: STRONGHOLD=
6733:
6734: $as_echo "#define HAVE_AP_CONFIG_H 1" >>confdefs.h
6735:
6736:
6737: $as_echo "#define HAVE_AP_COMPAT_H 1" >>confdefs.h
6738:
6739:
6740: $as_echo "#define HAVE_APACHE 1" >>confdefs.h
6741:
6742: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6743: $as_echo "yes" >&6; }
6744: else
6745: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6746: $as_echo "no" >&6; }
6747: fi
6748:
6749:
6750: php_with_apache=no
6751:
6752:
6753:
6754: # Check whether --with-apache was given.
6755: if test "${with_apache+set}" = set; then :
6756: withval=$with_apache; PHP_APACHE=$withval
6757: else
6758:
6759: PHP_APACHE=no
6760:
6761:
6762: fi
6763:
6764:
6765: ext_output=$PHP_APACHE
6766:
6767:
6768:
6769:
6770:
6771: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apache 1.x module support" >&5
6772: $as_echo_n "checking for Apache 1.x module support... " >&6; }
6773:
6774: if test "$PHP_SAPI" != "apache" && test "$PHP_APACHE" != "no"; then
6775:
6776: if test "$PHP_APACHE" = "yes"; then
6777: # Apache's default directory
6778: PHP_APACHE=/usr/local/apache
6779: fi
6780:
6781: APACHE_INSTALL_FILES="\$(srcdir)/sapi/apache/mod_php5.* sapi/apache/libphp5.module"
6782:
6783:
6784: $as_echo "#define HAVE_APACHE 1" >>confdefs.h
6785:
6786: APACHE_MODULE=yes
6787:
6788: if test -z "$PHP_APACHE" || echo "$PHP_APACHE" | grep '^/' >/dev/null ; then
6789: PHP_APACHE=$PHP_APACHE
6790: else
6791:
6792: ep_dir="`echo $PHP_APACHE|$SED 's%/*[^/][^/]*/*$%%'`"
6793:
6794: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
6795: PHP_APACHE="$ep_realdir/`basename \"$PHP_APACHE\"`"
6796: fi
6797:
6798: # For Apache 1.2.x
6799: if test -f $PHP_APACHE/src/httpd.h; then
6800: APACHE_INCLUDE=-I$PHP_APACHE/src
6801: APACHE_TARGET=$PHP_APACHE/src
6802:
6803: if test "$PHP_SAPI" != "default"; then
6804: as_fn_error $? "
6805: +--------------------------------------------------------------------+
6806: | *** ATTENTION *** |
6807: | |
6808: | You've configured multiple SAPIs to be build. You can build only |
6809: | one SAPI module and CLI binary at the same time. |
6810: +--------------------------------------------------------------------+
6811: " "$LINENO" 5
6812: fi
6813:
6814: PHP_SAPI=apache
6815:
6816: case "static" in
6817: static)
6818:
6819: OVERALL_TARGET=php
6820: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
6821: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
6822: php_c_post=
6823: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
6824: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
6825: php_cxx_post=
6826: php_lo=lo
6827:
6828: case $with_pic in
6829: yes) pic_setting='-prefer-pic';;
6830: no) pic_setting='-prefer-non-pic';;
6831: esac
6832:
6833: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
6834: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
6835: shared_c_post=
6836: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
6837: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
6838: shared_cxx_post=
6839: shared_lo=lo
6840:
6841: php_build_target=program
6842:
6843: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
6844: php_build_target=static
6845: ;;
6846: shared)
6847:
6848: OVERALL_TARGET=php
6849: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
6850: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
6851: php_c_post=
6852: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
6853: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
6854: php_cxx_post=
6855: php_lo=lo
6856:
6857: case $with_pic in
6858: yes) pic_setting='-prefer-pic';;
6859: no) pic_setting='-prefer-non-pic';;
6860: esac
6861:
6862: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
6863: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
6864: shared_c_post=
6865: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
6866: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
6867: shared_cxx_post=
6868: shared_lo=lo
6869:
6870: php_build_target=program
6871:
6872: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
6873: php_build_target=shared
6874:
6875: php_c_pre=$shared_c_pre
6876: php_c_meta=$shared_c_meta
6877: php_c_post=$shared_c_post
6878: php_cxx_pre=$shared_cxx_pre
6879: php_cxx_meta=$shared_cxx_meta
6880: php_cxx_post=$shared_cxx_post
6881: php_lo=$shared_lo
6882: ;;
6883: bundle)
6884:
6885: OVERALL_TARGET=php
6886: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
6887: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
6888: php_c_post=
6889: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
6890: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
6891: php_cxx_post=
6892: php_lo=lo
6893:
6894: case $with_pic in
6895: yes) pic_setting='-prefer-pic';;
6896: no) pic_setting='-prefer-non-pic';;
6897: esac
6898:
6899: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
6900: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
6901: shared_c_post=
6902: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
6903: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
6904: shared_cxx_post=
6905: shared_lo=lo
6906:
6907: php_build_target=program
6908:
6909: OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
6910: php_build_target=static
6911: ;;
6912: program)
6913: OVERALL_TARGET=php
6914: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
6915: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
6916: php_c_post=
6917: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
6918: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
6919: php_cxx_post=
6920: php_lo=lo
6921:
6922: case $with_pic in
6923: yes) pic_setting='-prefer-pic';;
6924: no) pic_setting='-prefer-non-pic';;
6925: esac
6926:
6927: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
6928: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
6929: shared_c_post=
6930: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
6931: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
6932: shared_cxx_post=
6933: shared_lo=lo
6934:
6935: php_build_target=program
6936: ;;
6937: esac
6938:
6939:
6940:
6941: case sapi/apache in
6942: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
6943: /*) ac_srcdir=`echo "sapi/apache"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
6944: *) ac_srcdir="$abs_srcdir/sapi/apache/"; ac_bdir="sapi/apache/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
6945: esac
6946:
6947:
6948:
6949: b_c_pre=$php_c_pre
6950: b_cxx_pre=$php_cxx_pre
6951: b_c_meta=$php_c_meta
6952: b_cxx_meta=$php_cxx_meta
6953: b_c_post=$php_c_post
6954: b_cxx_post=$php_cxx_post
6955: b_lo=$php_lo
6956:
6957:
6958: old_IFS=$IFS
6959: for ac_src in sapi_apache.c mod_php5.c php_apache.c; do
6960:
6961: IFS=.
6962: set $ac_src
6963: ac_obj=$1
6964: IFS=$old_IFS
6965:
6966: PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
6967:
6968: case $ac_src in
6969: *.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" ;;
6970: *.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" ;;
6971: *.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" ;;
6972: *.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" ;;
6973: esac
6974:
6975: cat >>Makefile.objects<<EOF
6976: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
6977: $ac_comp
6978: EOF
6979: done
6980:
6981:
6982:
6983: APACHE_INSTALL="mkdir -p $APACHE_TARGET; cp $SAPI_STATIC $APACHE_INSTALL_FILES $APACHE_TARGET"
6984: PHP_LIBS="-L. -lphp3"
6985: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - Apache 1.2.x" >&5
6986: $as_echo "yes - Apache 1.2.x" >&6; }
6987: STRONGHOLD=
6988: if test -f $PHP_APACHE/src/ap_config.h; then
6989:
6990: $as_echo "#define HAVE_AP_CONFIG_H 1" >>confdefs.h
6991:
6992: fi
6993: # For Apache 2.0.x
6994: elif test -f $PHP_APACHE/include/httpd.h && test -f $PHP_APACHE/srclib/apr/include/apr_general.h ; then
6995: as_fn_error $? "Use --with-apxs2 with Apache 2.x!" "$LINENO" 5
6996: # For Apache 1.3.x
6997: elif test -f $PHP_APACHE/src/main/httpd.h; then
6998: APACHE_HAS_REGEX=1
6999: APACHE_INCLUDE="-I$PHP_APACHE/src/main -I$PHP_APACHE/src/os/unix -I$PHP_APACHE/src/ap"
7000: APACHE_TARGET=$PHP_APACHE/src/modules/php5
7001: if test ! -d $APACHE_TARGET; then
7002: mkdir $APACHE_TARGET
7003: fi
7004:
7005: if test "$PHP_SAPI" != "default"; then
7006: as_fn_error $? "
7007: +--------------------------------------------------------------------+
7008: | *** ATTENTION *** |
7009: | |
7010: | You've configured multiple SAPIs to be build. You can build only |
7011: | one SAPI module and CLI binary at the same time. |
7012: +--------------------------------------------------------------------+
7013: " "$LINENO" 5
7014: fi
7015:
7016: PHP_SAPI=apache
7017:
7018: case "static" in
7019: static)
7020:
7021: OVERALL_TARGET=php
7022: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7023: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
7024: php_c_post=
7025: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
7026: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
7027: php_cxx_post=
7028: php_lo=lo
7029:
7030: case $with_pic in
7031: yes) pic_setting='-prefer-pic';;
7032: no) pic_setting='-prefer-non-pic';;
7033: esac
7034:
7035: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7036: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
7037: shared_c_post=
7038: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
7039: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
7040: shared_cxx_post=
7041: shared_lo=lo
7042:
7043: php_build_target=program
7044:
7045: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
7046: php_build_target=static
7047: ;;
7048: shared)
7049:
7050: OVERALL_TARGET=php
7051: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7052: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
7053: php_c_post=
7054: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
7055: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
7056: php_cxx_post=
7057: php_lo=lo
7058:
7059: case $with_pic in
7060: yes) pic_setting='-prefer-pic';;
7061: no) pic_setting='-prefer-non-pic';;
7062: esac
7063:
7064: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7065: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
7066: shared_c_post=
7067: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
7068: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
7069: shared_cxx_post=
7070: shared_lo=lo
7071:
7072: php_build_target=program
7073:
7074: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
7075: php_build_target=shared
7076:
7077: php_c_pre=$shared_c_pre
7078: php_c_meta=$shared_c_meta
7079: php_c_post=$shared_c_post
7080: php_cxx_pre=$shared_cxx_pre
7081: php_cxx_meta=$shared_cxx_meta
7082: php_cxx_post=$shared_cxx_post
7083: php_lo=$shared_lo
7084: ;;
7085: bundle)
7086:
7087: OVERALL_TARGET=php
7088: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7089: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
7090: php_c_post=
7091: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
7092: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
7093: php_cxx_post=
7094: php_lo=lo
7095:
7096: case $with_pic in
7097: yes) pic_setting='-prefer-pic';;
7098: no) pic_setting='-prefer-non-pic';;
7099: esac
7100:
7101: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7102: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
7103: shared_c_post=
7104: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
7105: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
7106: shared_cxx_post=
7107: shared_lo=lo
7108:
7109: php_build_target=program
7110:
7111: OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
7112: php_build_target=static
7113: ;;
7114: program)
7115: OVERALL_TARGET=php
7116: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7117: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
7118: php_c_post=
7119: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
7120: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
7121: php_cxx_post=
7122: php_lo=lo
7123:
7124: case $with_pic in
7125: yes) pic_setting='-prefer-pic';;
7126: no) pic_setting='-prefer-non-pic';;
7127: esac
7128:
7129: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7130: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
7131: shared_c_post=
7132: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
7133: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
7134: shared_cxx_post=
7135: shared_lo=lo
7136:
7137: php_build_target=program
7138: ;;
7139: esac
7140:
7141:
7142:
7143: case sapi/apache in
7144: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
7145: /*) ac_srcdir=`echo "sapi/apache"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
7146: *) ac_srcdir="$abs_srcdir/sapi/apache/"; ac_bdir="sapi/apache/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
7147: esac
7148:
7149:
7150:
7151: b_c_pre=$php_c_pre
7152: b_cxx_pre=$php_cxx_pre
7153: b_c_meta=$php_c_meta
7154: b_cxx_meta=$php_cxx_meta
7155: b_c_post=$php_c_post
7156: b_cxx_post=$php_cxx_post
7157: b_lo=$php_lo
7158:
7159:
7160: old_IFS=$IFS
7161: for ac_src in sapi_apache.c mod_php5.c php_apache.c; do
7162:
7163: IFS=.
7164: set $ac_src
7165: ac_obj=$1
7166: IFS=$old_IFS
7167:
7168: PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
7169:
7170: case $ac_src in
7171: *.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" ;;
7172: *.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" ;;
7173: *.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" ;;
7174: *.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" ;;
7175: esac
7176:
7177: cat >>Makefile.objects<<EOF
7178: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
7179: $ac_comp
7180: EOF
7181: done
7182:
7183:
7184:
7185: 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"
7186: PHP_LIBS="-Lmodules/php5 -L../modules/php5 -L../../modules/php5 -lmodphp5"
7187: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - Apache 1.3.x" >&5
7188: $as_echo "yes - Apache 1.3.x" >&6; }
7189: STRONGHOLD=
7190: if test -f $PHP_APACHE/src/include/ap_config.h; then
7191:
7192: $as_echo "#define HAVE_AP_CONFIG_H 1" >>confdefs.h
7193:
7194: fi
7195: if test -f $PHP_APACHE/src/include/ap_compat.h; then
7196:
7197: $as_echo "#define HAVE_AP_COMPAT_H 1" >>confdefs.h
7198:
7199: if test ! -f $PHP_APACHE/src/include/ap_config_auto.h; then
7200: as_fn_error $? "Please run Apache\'s configure or src/Configure program once and try again" "$LINENO" 5
7201: fi
7202: elif test -f $PHP_APACHE/src/include/compat.h; then
7203:
7204: $as_echo "#define HAVE_OLD_COMPAT_H 1" >>confdefs.h
7205:
7206: fi
7207: # Also for Apache 1.3.x
7208: elif test -f $PHP_APACHE/src/include/httpd.h; then
7209: APACHE_HAS_REGEX=1
7210: APACHE_INCLUDE="-I$PHP_APACHE/src/include -I$PHP_APACHE/src/os/unix"
7211: APACHE_TARGET=$PHP_APACHE/src/modules/php5
7212: if test ! -d $APACHE_TARGET; then
7213: mkdir $APACHE_TARGET
7214: fi
7215:
7216: if test "$PHP_SAPI" != "default"; then
7217: as_fn_error $? "
7218: +--------------------------------------------------------------------+
7219: | *** ATTENTION *** |
7220: | |
7221: | You've configured multiple SAPIs to be build. You can build only |
7222: | one SAPI module and CLI binary at the same time. |
7223: +--------------------------------------------------------------------+
7224: " "$LINENO" 5
7225: fi
7226:
7227: PHP_SAPI=apache
7228:
7229: case "static" in
7230: static)
7231:
7232: OVERALL_TARGET=php
7233: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7234: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
7235: php_c_post=
7236: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
7237: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
7238: php_cxx_post=
7239: php_lo=lo
7240:
7241: case $with_pic in
7242: yes) pic_setting='-prefer-pic';;
7243: no) pic_setting='-prefer-non-pic';;
7244: esac
7245:
7246: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7247: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
7248: shared_c_post=
7249: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
7250: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
7251: shared_cxx_post=
7252: shared_lo=lo
7253:
7254: php_build_target=program
7255:
7256: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
7257: php_build_target=static
7258: ;;
7259: shared)
7260:
7261: OVERALL_TARGET=php
7262: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7263: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
7264: php_c_post=
7265: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
7266: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
7267: php_cxx_post=
7268: php_lo=lo
7269:
7270: case $with_pic in
7271: yes) pic_setting='-prefer-pic';;
7272: no) pic_setting='-prefer-non-pic';;
7273: esac
7274:
7275: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7276: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
7277: shared_c_post=
7278: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
7279: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
7280: shared_cxx_post=
7281: shared_lo=lo
7282:
7283: php_build_target=program
7284:
7285: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
7286: php_build_target=shared
7287:
7288: php_c_pre=$shared_c_pre
7289: php_c_meta=$shared_c_meta
7290: php_c_post=$shared_c_post
7291: php_cxx_pre=$shared_cxx_pre
7292: php_cxx_meta=$shared_cxx_meta
7293: php_cxx_post=$shared_cxx_post
7294: php_lo=$shared_lo
7295: ;;
7296: bundle)
7297:
7298: OVERALL_TARGET=php
7299: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7300: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
7301: php_c_post=
7302: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
7303: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
7304: php_cxx_post=
7305: php_lo=lo
7306:
7307: case $with_pic in
7308: yes) pic_setting='-prefer-pic';;
7309: no) pic_setting='-prefer-non-pic';;
7310: esac
7311:
7312: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7313: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
7314: shared_c_post=
7315: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
7316: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
7317: shared_cxx_post=
7318: shared_lo=lo
7319:
7320: php_build_target=program
7321:
7322: OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
7323: php_build_target=static
7324: ;;
7325: program)
7326: OVERALL_TARGET=php
7327: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7328: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
7329: php_c_post=
7330: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
7331: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
7332: php_cxx_post=
7333: php_lo=lo
7334:
7335: case $with_pic in
7336: yes) pic_setting='-prefer-pic';;
7337: no) pic_setting='-prefer-non-pic';;
7338: esac
7339:
7340: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7341: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
7342: shared_c_post=
7343: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
7344: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
7345: shared_cxx_post=
7346: shared_lo=lo
7347:
7348: php_build_target=program
7349: ;;
7350: esac
7351:
7352:
7353:
7354: case sapi/apache in
7355: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
7356: /*) ac_srcdir=`echo "sapi/apache"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
7357: *) ac_srcdir="$abs_srcdir/sapi/apache/"; ac_bdir="sapi/apache/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
7358: esac
7359:
7360:
7361:
7362: b_c_pre=$php_c_pre
7363: b_cxx_pre=$php_cxx_pre
7364: b_c_meta=$php_c_meta
7365: b_cxx_meta=$php_cxx_meta
7366: b_c_post=$php_c_post
7367: b_cxx_post=$php_cxx_post
7368: b_lo=$php_lo
7369:
7370:
7371: old_IFS=$IFS
7372: for ac_src in sapi_apache.c mod_php5.c php_apache.c; do
7373:
7374: IFS=.
7375: set $ac_src
7376: ac_obj=$1
7377: IFS=$old_IFS
7378:
7379: PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
7380:
7381: case $ac_src in
7382: *.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" ;;
7383: *.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" ;;
7384: *.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" ;;
7385: *.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" ;;
7386: esac
7387:
7388: cat >>Makefile.objects<<EOF
7389: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
7390: $ac_comp
7391: EOF
7392: done
7393:
7394:
7395:
7396: PHP_LIBS="-Lmodules/php5 -L../modules/php5 -L../../modules/php5 -lmodphp5"
7397: 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"
7398: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - Apache 1.3.x" >&5
7399: $as_echo "yes - Apache 1.3.x" >&6; }
7400: STRONGHOLD=
7401: if test -f $PHP_APACHE/src/include/ap_config.h; then
7402:
7403: $as_echo "#define HAVE_AP_CONFIG_H 1" >>confdefs.h
7404:
7405: fi
7406: if test -f $PHP_APACHE/src/include/ap_compat.h; then
7407:
7408: $as_echo "#define HAVE_AP_COMPAT_H 1" >>confdefs.h
7409:
7410: if test ! -f $PHP_APACHE/src/include/ap_config_auto.h; then
7411: as_fn_error $? "Please run Apache\'s configure or src/Configure program once and try again" "$LINENO" 5
7412: fi
7413: elif test -f $PHP_APACHE/src/include/compat.h; then
7414:
7415: $as_echo "#define HAVE_OLD_COMPAT_H 1" >>confdefs.h
7416:
7417: fi
7418: # For StrongHold 2.2
7419: elif test -f $PHP_APACHE/apache/httpd.h; then
7420: APACHE_INCLUDE="-I$PHP_APACHE/apache -I$PHP_APACHE/ssl/include"
7421: APACHE_TARGET=$PHP_APACHE/apache
7422:
7423: if test "$PHP_SAPI" != "default"; then
7424: as_fn_error $? "
7425: +--------------------------------------------------------------------+
7426: | *** ATTENTION *** |
7427: | |
7428: | You've configured multiple SAPIs to be build. You can build only |
7429: | one SAPI module and CLI binary at the same time. |
7430: +--------------------------------------------------------------------+
7431: " "$LINENO" 5
7432: fi
7433:
7434: PHP_SAPI=apache
7435:
7436: case "static" in
7437: static)
7438:
7439: OVERALL_TARGET=php
7440: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7441: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
7442: php_c_post=
7443: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
7444: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
7445: php_cxx_post=
7446: php_lo=lo
7447:
7448: case $with_pic in
7449: yes) pic_setting='-prefer-pic';;
7450: no) pic_setting='-prefer-non-pic';;
7451: esac
7452:
7453: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7454: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
7455: shared_c_post=
7456: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
7457: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
7458: shared_cxx_post=
7459: shared_lo=lo
7460:
7461: php_build_target=program
7462:
7463: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
7464: php_build_target=static
7465: ;;
7466: shared)
7467:
7468: OVERALL_TARGET=php
7469: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7470: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
7471: php_c_post=
7472: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
7473: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
7474: php_cxx_post=
7475: php_lo=lo
7476:
7477: case $with_pic in
7478: yes) pic_setting='-prefer-pic';;
7479: no) pic_setting='-prefer-non-pic';;
7480: esac
7481:
7482: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7483: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
7484: shared_c_post=
7485: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
7486: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
7487: shared_cxx_post=
7488: shared_lo=lo
7489:
7490: php_build_target=program
7491:
7492: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
7493: php_build_target=shared
7494:
7495: php_c_pre=$shared_c_pre
7496: php_c_meta=$shared_c_meta
7497: php_c_post=$shared_c_post
7498: php_cxx_pre=$shared_cxx_pre
7499: php_cxx_meta=$shared_cxx_meta
7500: php_cxx_post=$shared_cxx_post
7501: php_lo=$shared_lo
7502: ;;
7503: bundle)
7504:
7505: OVERALL_TARGET=php
7506: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7507: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
7508: php_c_post=
7509: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
7510: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
7511: php_cxx_post=
7512: php_lo=lo
7513:
7514: case $with_pic in
7515: yes) pic_setting='-prefer-pic';;
7516: no) pic_setting='-prefer-non-pic';;
7517: esac
7518:
7519: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7520: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
7521: shared_c_post=
7522: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
7523: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
7524: shared_cxx_post=
7525: shared_lo=lo
7526:
7527: php_build_target=program
7528:
7529: OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
7530: php_build_target=static
7531: ;;
7532: program)
7533: OVERALL_TARGET=php
7534: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7535: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
7536: php_c_post=
7537: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
7538: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
7539: php_cxx_post=
7540: php_lo=lo
7541:
7542: case $with_pic in
7543: yes) pic_setting='-prefer-pic';;
7544: no) pic_setting='-prefer-non-pic';;
7545: esac
7546:
7547: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7548: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
7549: shared_c_post=
7550: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
7551: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
7552: shared_cxx_post=
7553: shared_lo=lo
7554:
7555: php_build_target=program
7556: ;;
7557: esac
7558:
7559:
7560:
7561: case sapi/apache in
7562: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
7563: /*) ac_srcdir=`echo "sapi/apache"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
7564: *) ac_srcdir="$abs_srcdir/sapi/apache/"; ac_bdir="sapi/apache/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
7565: esac
7566:
7567:
7568:
7569: b_c_pre=$php_c_pre
7570: b_cxx_pre=$php_cxx_pre
7571: b_c_meta=$php_c_meta
7572: b_cxx_meta=$php_cxx_meta
7573: b_c_post=$php_c_post
7574: b_cxx_post=$php_cxx_post
7575: b_lo=$php_lo
7576:
7577:
7578: old_IFS=$IFS
7579: for ac_src in sapi_apache.c mod_php5.c php_apache.c; do
7580:
7581: IFS=.
7582: set $ac_src
7583: ac_obj=$1
7584: IFS=$old_IFS
7585:
7586: PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
7587:
7588: case $ac_src in
7589: *.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" ;;
7590: *.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" ;;
7591: *.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" ;;
7592: *.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" ;;
7593: esac
7594:
7595: cat >>Makefile.objects<<EOF
7596: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
7597: $ac_comp
7598: EOF
7599: done
7600:
7601:
7602:
7603: PHP_LIBS="-Lmodules/php5 -L../modules/php5 -L../../modules/php5 -lmodphp5"
7604: APACHE_INSTALL="mkdir -p $APACHE_TARGET; cp $SAPI_STATIC $APACHE_TARGET/libmodphp5.a; cp $APACHE_INSTALL_FILES $APACHE_TARGET"
7605: STRONGHOLD=-DSTRONGHOLD=1
7606: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - StrongHold" >&5
7607: $as_echo "yes - StrongHold" >&6; }
7608: if test -f $PHP_APACHE/apache/ap_config.h; then
7609:
7610: $as_echo "#define HAVE_AP_CONFIG_H 1" >>confdefs.h
7611:
7612: fi
7613: if test -f $PHP_APACHE/src/ap_compat.h; then
7614:
7615: $as_echo "#define HAVE_AP_COMPAT_H 1" >>confdefs.h
7616:
7617: if test ! -f $PHP_APACHE/src/include/ap_config_auto.h; then
7618: as_fn_error $? "Please run Apache\'s configure or src/Configure program once and try again" "$LINENO" 5
7619: fi
7620: elif test -f $PHP_APACHE/src/compat.h; then
7621:
7622: $as_echo "#define HAVE_OLD_COMPAT_H 1" >>confdefs.h
7623:
7624: fi
7625: else
7626: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7627: $as_echo "no" >&6; }
7628: as_fn_error $? "Invalid Apache directory - unable to find httpd.h under $PHP_APACHE" "$LINENO" 5
7629: fi
7630: else
7631: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7632: $as_echo "no" >&6; }
7633: fi
7634:
7635: # compatibility
7636: if test -z "$enable_mod_charset" && test "$with_mod_charset"; then
7637: enable_mod_charset=$with_mod_charset
7638: fi
7639:
7640:
7641: php_enable_mod_charset=no
7642:
7643: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Apache charset compatibility option" >&5
7644: $as_echo_n "checking whether to enable Apache charset compatibility option... " >&6; }
7645: # Check whether --enable-mod-charset was given.
7646: if test "${enable_mod_charset+set}" = set; then :
7647: enableval=$enable_mod_charset; PHP_MOD_CHARSET=$enableval
7648: else
7649:
7650: PHP_MOD_CHARSET=no
7651:
7652:
7653: fi
7654:
7655:
7656: ext_output=$PHP_MOD_CHARSET
7657: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
7658: $as_echo "$ext_output" >&6; }
7659:
7660:
7661:
7662:
7663: if test "$PHP_MOD_CHARSET" = "yes"; then
7664:
7665: $as_echo "#define USE_TRANSFER_TABLES 1" >>confdefs.h
7666:
7667: fi
7668:
7669: if test "$APACHE_MODULE" = "yes"; then
7670:
7671: if test -n "$GCC"; then
7672:
7673: gcc_arg_name=ac_cv_gcc_arg_rdynamic
7674: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -rdynamic" >&5
7675: $as_echo_n "checking whether $CC supports -rdynamic... " >&6; }
7676: if ${ac_cv_gcc_arg_rdynamic+:} false; then :
7677: $as_echo_n "(cached) " >&6
7678: else
7679:
7680: echo 'void somefunc() { };' > conftest.c
7681: cmd='$CC -rdynamic -c conftest.c'
7682: if eval $cmd 2>&1 | $EGREP -e -rdynamic >/dev/null ; then
7683: ac_result=no
7684: else
7685: ac_result=yes
7686: fi
7687: eval $gcc_arg_name=$ac_result
7688: rm -f conftest.*
7689:
7690: fi
7691: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_arg_rdynamic" >&5
7692: $as_echo "$ac_cv_gcc_arg_rdynamic" >&6; }
7693: if eval test "\$$gcc_arg_name" = "yes"; then
7694: gcc_rdynamic=yes
7695: else
7696: :
7697:
7698: fi
7699:
7700: if test "$gcc_rdynamic" = "yes"; then
7701: PHP_LDFLAGS="$PHP_LDFLAGS -rdynamic"
7702: fi
7703: fi
7704:
7705: $php_shtool mkdir -p sapi/apache
7706:
7707: PHP_OUTPUT_FILES="$PHP_OUTPUT_FILES sapi/apache/libphp5.module"
7708:
7709: fi
7710:
7711: if test -n "$APACHE_INSTALL"; then
7712: if test "x$APXS" != "x" -a "`uname -sv`" = "AIX 4" -a "$GCC" != "yes"; then
7713: APXS_EXP=-bE:sapi/apache/mod_php5.exp
7714: fi
7715:
7716:
7717: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member fd in BUFF *" >&5
7718: $as_echo_n "checking for member fd in BUFF *... " >&6; }
7719: if ${ac_cv_php_fd_in_buff+:} false; then :
7720: $as_echo_n "(cached) " >&6
7721: else
7722:
7723: save=$CPPFLAGS
7724: if test -n "$APXS_INCLUDEDIR"; then
7725: CPPFLAGS="$CPPFLAGS -I$APXS_INCLUDEDIR"
7726: else
7727: CPPFLAGS="$CPPFLAGS $APACHE_INCLUDE"
7728: fi
7729: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7730: /* end confdefs.h. */
7731: #include <httpd.h>
7732: int
7733: main ()
7734: {
7735: conn_rec *c; int fd = c->client->fd;
7736: ;
7737: return 0;
7738: }
7739: _ACEOF
7740: if ac_fn_c_try_compile "$LINENO"; then :
7741:
7742: ac_cv_php_fd_in_buff=yes
7743: else
7744: ac_cv_php_fd_in_buff=no
7745: fi
7746: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7747: CPPFLAGS=$save
7748:
7749: fi
7750: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_php_fd_in_buff" >&5
7751: $as_echo "$ac_cv_php_fd_in_buff" >&6; }
7752: if test "$ac_cv_php_fd_in_buff" = "yes"; then
7753:
7754: $as_echo "#define PHP_APACHE_HAVE_CLIENT_FD 1" >>confdefs.h
7755:
7756: fi
7757:
7758: INSTALL_IT=$APACHE_INSTALL
7759:
7760:
7761: PHP_VAR_SUBST="$PHP_VAR_SUBST APXS_EXP"
7762:
7763:
7764: PHP_VAR_SUBST="$PHP_VAR_SUBST APACHE_INCLUDE"
7765:
7766:
7767: PHP_VAR_SUBST="$PHP_VAR_SUBST APACHE_TARGET"
7768:
7769:
7770: PHP_VAR_SUBST="$PHP_VAR_SUBST APXS"
7771:
7772:
7773: PHP_VAR_SUBST="$PHP_VAR_SUBST APXS_LDFLAGS"
7774:
7775:
7776: PHP_VAR_SUBST="$PHP_VAR_SUBST APACHE_INSTALL"
7777:
7778:
7779: PHP_VAR_SUBST="$PHP_VAR_SUBST STRONGHOLD"
7780:
7781: fi
7782:
7783:
7784:
7785:
7786: php_with_apxs2filter=no
7787:
7788:
7789:
7790: # Check whether --with-apxs2filter was given.
7791: if test "${with_apxs2filter+set}" = set; then :
7792: withval=$with_apxs2filter; PHP_APXS2FILTER=$withval
7793: else
7794:
7795: PHP_APXS2FILTER=no
7796:
7797:
7798: fi
7799:
7800:
7801: ext_output=$PHP_APXS2FILTER
7802:
7803:
7804:
7805:
7806:
7807: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apache 2.0 filter-module support via DSO through APXS" >&5
7808: $as_echo_n "checking for Apache 2.0 filter-module support via DSO through APXS... " >&6; }
7809:
7810: if test "$PHP_APXS2FILTER" != "no"; then
7811: if test "$PHP_APXS2FILTER" = "yes"; then
7812: APXS=apxs
7813: $APXS -q CFLAGS >/dev/null 2>&1
7814: if test "$?" != "0" && test -x /usr/sbin/apxs; then
7815: APXS=/usr/sbin/apxs
7816: fi
7817: else
7818:
7819: if test -z "$PHP_APXS2FILTER" || echo "$PHP_APXS2FILTER" | grep '^/' >/dev/null ; then
7820: APXS=$PHP_APXS2FILTER
7821: else
7822:
7823: ep_dir="`echo $PHP_APXS2FILTER|$SED 's%/*[^/][^/]*/*$%%'`"
7824:
7825: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
7826: APXS="$ep_realdir/`basename \"$PHP_APXS2FILTER\"`"
7827: fi
7828:
7829: fi
7830:
7831: $APXS -q CFLAGS >/dev/null 2>&1
7832: if test "$?" != "0"; then
7833: { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
7834: $as_echo "" >&6; }
7835: { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
7836: $as_echo "" >&6; }
7837: { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, I cannot run apxs. Possible reasons follow:" >&5
7838: $as_echo "Sorry, I cannot run apxs. Possible reasons follow:" >&6; }
7839: { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
7840: $as_echo "" >&6; }
7841: { $as_echo "$as_me:${as_lineno-$LINENO}: result: 1. Perl is not installed" >&5
7842: $as_echo "1. Perl is not installed" >&6; }
7843: { $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
7844: $as_echo "2. apxs was not found. Try to pass the path using --with-apxs2filter=/path/to/apxs" >&6; }
7845: { $as_echo "$as_me:${as_lineno-$LINENO}: result: 3. Apache was not built using --enable-so (the apxs usage page is displayed)" >&5
7846: $as_echo "3. Apache was not built using --enable-so (the apxs usage page is displayed)" >&6; }
7847: { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
7848: $as_echo "" >&6; }
7849: { $as_echo "$as_me:${as_lineno-$LINENO}: result: The output of $APXS follows:" >&5
7850: $as_echo "The output of $APXS follows:" >&6; }
7851: $APXS -q CFLAGS
7852: as_fn_error $? "Aborting" "$LINENO" 5
7853: fi
7854:
7855: APXS_INCLUDEDIR=`$APXS -q INCLUDEDIR`
7856: APXS_BINDIR=`$APXS -q BINDIR`
7857: APXS_HTTPD=`$APXS -q SBINDIR`/`$APXS -q TARGET`
7858: APXS_CFLAGS=`$APXS -q CFLAGS`
7859: APXS_MPM=`$APXS -q MPM_NAME`
7860: APU_BINDIR=`$APXS -q APU_BINDIR`
7861: APR_BINDIR=`$APXS -q APR_BINDIR`
7862:
7863: # Pick up ap[ru]-N-config if using httpd >=2.1
7864: APR_CONFIG=`$APXS -q APR_CONFIG 2>/dev/null ||
7865: echo $APR_BINDIR/apr-config`
7866: APU_CONFIG=`$APXS -q APU_CONFIG 2>/dev/null ||
7867: echo $APU_BINDIR/apu-config`
7868:
7869: APR_CFLAGS="`$APR_CONFIG --cppflags --includes`"
7870: APU_CFLAGS="`$APU_CONFIG --includes`"
7871:
7872: for flag in $APXS_CFLAGS; do
7873: case $flag in
7874: -D*) APACHE_CPPFLAGS="$APACHE_CPPFLAGS $flag";;
7875: esac
7876: done
7877:
7878: APACHE_CFLAGS="$APACHE_CPPFLAGS -I$APXS_INCLUDEDIR $APR_CFLAGS $APU_CFLAGS"
7879:
7880: # Test that we're trying to configure with apache 2.x
7881:
7882: ac_output=`$APXS_HTTPD -v 2>&1 | grep version | $SED -e 's/Oracle-HTTP-//'`
7883: ac_IFS=$IFS
7884: IFS="- /.
7885: "
7886: set $ac_output
7887: IFS=$ac_IFS
7888:
7889: APACHE_VERSION=`expr $4 \* 1000000 + $5 \* 1000 + $6`
7890:
7891: if test "$APACHE_VERSION" -le 2000000; then
7892: as_fn_error $? "You have enabled Apache 2 support while your server is Apache 1.3. Please use the appropiate switch --with-apxs (without the 2)" "$LINENO" 5
7893: elif test "$APACHE_VERSION" -lt 2000040; then
7894: as_fn_error $? "Please note that Apache version >= 2.0.40 is required" "$LINENO" 5
7895: fi
7896:
7897: APXS_LIBEXECDIR='$(INSTALL_ROOT)'`$APXS -q LIBEXECDIR`
7898: if test -z `$APXS -q SYSCONFDIR`; then
7899: INSTALL_IT="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \
7900: $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \
7901: -i -n php5"
7902: else
7903: APXS_SYSCONFDIR='$(INSTALL_ROOT)'`$APXS -q SYSCONFDIR`
7904: INSTALL_IT="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \
7905: \$(mkinstalldirs) '$APXS_SYSCONFDIR' && \
7906: $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \
7907: -S SYSCONFDIR='$APXS_SYSCONFDIR' \
7908: -i -a -n php5"
7909: fi
7910:
7911: case $host_alias in
7912: *aix*)
7913: EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-brtl -Wl,-bI:$APXS_LIBEXECDIR/httpd.exp"
7914:
7915: if test "$PHP_SAPI" != "default"; then
7916: as_fn_error $? "
7917: +--------------------------------------------------------------------+
7918: | *** ATTENTION *** |
7919: | |
7920: | You've configured multiple SAPIs to be build. You can build only |
7921: | one SAPI module and CLI binary at the same time. |
7922: +--------------------------------------------------------------------+
7923: " "$LINENO" 5
7924: fi
7925:
7926: PHP_SAPI=apache2filter
7927:
7928: case "shared" in
7929: static)
7930:
7931: OVERALL_TARGET=php
7932: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7933: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
7934: php_c_post=
7935: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
7936: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
7937: php_cxx_post=
7938: php_lo=lo
7939:
7940: case $with_pic in
7941: yes) pic_setting='-prefer-pic';;
7942: no) pic_setting='-prefer-non-pic';;
7943: esac
7944:
7945: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7946: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
7947: shared_c_post=
7948: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
7949: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
7950: shared_cxx_post=
7951: shared_lo=lo
7952:
7953: php_build_target=program
7954:
7955: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
7956: php_build_target=static
7957: ;;
7958: shared)
7959:
7960: OVERALL_TARGET=php
7961: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7962: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
7963: php_c_post=
7964: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
7965: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
7966: php_cxx_post=
7967: php_lo=lo
7968:
7969: case $with_pic in
7970: yes) pic_setting='-prefer-pic';;
7971: no) pic_setting='-prefer-non-pic';;
7972: esac
7973:
7974: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7975: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
7976: shared_c_post=
7977: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
7978: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
7979: shared_cxx_post=
7980: shared_lo=lo
7981:
7982: php_build_target=program
7983:
7984: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
7985: php_build_target=shared
7986:
7987: php_c_pre=$shared_c_pre
7988: php_c_meta=$shared_c_meta
7989: php_c_post=$shared_c_post
7990: php_cxx_pre=$shared_cxx_pre
7991: php_cxx_meta=$shared_cxx_meta
7992: php_cxx_post=$shared_cxx_post
7993: php_lo=$shared_lo
7994: ;;
7995: bundle)
7996:
7997: OVERALL_TARGET=php
7998: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
7999: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
8000: php_c_post=
8001: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8002: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
8003: php_cxx_post=
8004: php_lo=lo
8005:
8006: case $with_pic in
8007: yes) pic_setting='-prefer-pic';;
8008: no) pic_setting='-prefer-non-pic';;
8009: esac
8010:
8011: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8012: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
8013: shared_c_post=
8014: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8015: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
8016: shared_cxx_post=
8017: shared_lo=lo
8018:
8019: php_build_target=program
8020:
8021: OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
8022: php_build_target=static
8023: ;;
8024: program)
8025: OVERALL_TARGET=php
8026: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8027: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
8028: php_c_post=
8029: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8030: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
8031: php_cxx_post=
8032: php_lo=lo
8033:
8034: case $with_pic in
8035: yes) pic_setting='-prefer-pic';;
8036: no) pic_setting='-prefer-non-pic';;
8037: esac
8038:
8039: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8040: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
8041: shared_c_post=
8042: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8043: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
8044: shared_cxx_post=
8045: shared_lo=lo
8046:
8047: php_build_target=program
8048: ;;
8049: esac
8050:
8051:
8052:
8053: case sapi/apache2filter in
8054: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
8055: /*) ac_srcdir=`echo "sapi/apache2filter"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
8056: *) ac_srcdir="$abs_srcdir/sapi/apache2filter/"; ac_bdir="sapi/apache2filter/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
8057: esac
8058:
8059:
8060:
8061: b_c_pre=$php_c_pre
8062: b_cxx_pre=$php_cxx_pre
8063: b_c_meta=$php_c_meta
8064: b_cxx_meta=$php_cxx_meta
8065: b_c_post=$php_c_post
8066: b_cxx_post=$php_cxx_post
8067: b_lo=$php_lo
8068:
8069:
8070: old_IFS=$IFS
8071: for ac_src in sapi_apache2.c apache_config.c php_functions.c; do
8072:
8073: IFS=.
8074: set $ac_src
8075: ac_obj=$1
8076: IFS=$old_IFS
8077:
8078: PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
8079:
8080: case $ac_src in
8081: *.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" ;;
8082: *.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" ;;
8083: *.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" ;;
8084: *.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" ;;
8085: esac
8086:
8087: cat >>Makefile.objects<<EOF
8088: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
8089: $ac_comp
8090: EOF
8091: done
8092:
8093:
8094:
8095: INSTALL_IT="$INSTALL_IT $SAPI_LIBTOOL"
8096: ;;
8097: *darwin*)
8098: if test -x "$APR_CONFIG"; then
8099: MH_BUNDLE_FLAGS="`$APR_CONFIG --ldflags --link-ld --libs`"
8100: fi
8101: if test -x "$APU_CONFIG"; then
8102: MH_BUNDLE_FLAGS="`$APU_CONFIG --ldflags --link-ld --libs` $MH_BUNDLE_FLAGS"
8103: fi
8104: MH_BUNDLE_FLAGS="-bundle -bundle_loader $APXS_HTTPD $MH_BUNDLE_FLAGS"
8105:
8106: PHP_VAR_SUBST="$PHP_VAR_SUBST MH_BUNDLE_FLAGS"
8107:
8108:
8109: if test "$PHP_SAPI" != "default"; then
8110: as_fn_error $? "
8111: +--------------------------------------------------------------------+
8112: | *** ATTENTION *** |
8113: | |
8114: | You've configured multiple SAPIs to be build. You can build only |
8115: | one SAPI module and CLI binary at the same time. |
8116: +--------------------------------------------------------------------+
8117: " "$LINENO" 5
8118: fi
8119:
8120: PHP_SAPI=apache2filter
8121:
8122: case "bundle" in
8123: static)
8124:
8125: OVERALL_TARGET=php
8126: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8127: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
8128: php_c_post=
8129: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8130: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
8131: php_cxx_post=
8132: php_lo=lo
8133:
8134: case $with_pic in
8135: yes) pic_setting='-prefer-pic';;
8136: no) pic_setting='-prefer-non-pic';;
8137: esac
8138:
8139: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8140: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
8141: shared_c_post=
8142: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8143: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
8144: shared_cxx_post=
8145: shared_lo=lo
8146:
8147: php_build_target=program
8148:
8149: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
8150: php_build_target=static
8151: ;;
8152: shared)
8153:
8154: OVERALL_TARGET=php
8155: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8156: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
8157: php_c_post=
8158: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8159: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
8160: php_cxx_post=
8161: php_lo=lo
8162:
8163: case $with_pic in
8164: yes) pic_setting='-prefer-pic';;
8165: no) pic_setting='-prefer-non-pic';;
8166: esac
8167:
8168: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8169: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
8170: shared_c_post=
8171: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8172: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
8173: shared_cxx_post=
8174: shared_lo=lo
8175:
8176: php_build_target=program
8177:
8178: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
8179: php_build_target=shared
8180:
8181: php_c_pre=$shared_c_pre
8182: php_c_meta=$shared_c_meta
8183: php_c_post=$shared_c_post
8184: php_cxx_pre=$shared_cxx_pre
8185: php_cxx_meta=$shared_cxx_meta
8186: php_cxx_post=$shared_cxx_post
8187: php_lo=$shared_lo
8188: ;;
8189: bundle)
8190:
8191: OVERALL_TARGET=php
8192: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8193: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
8194: php_c_post=
8195: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8196: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
8197: php_cxx_post=
8198: php_lo=lo
8199:
8200: case $with_pic in
8201: yes) pic_setting='-prefer-pic';;
8202: no) pic_setting='-prefer-non-pic';;
8203: esac
8204:
8205: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8206: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
8207: shared_c_post=
8208: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8209: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
8210: shared_cxx_post=
8211: shared_lo=lo
8212:
8213: php_build_target=program
8214:
8215: OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
8216: php_build_target=static
8217: ;;
8218: program)
8219: OVERALL_TARGET=php
8220: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8221: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
8222: php_c_post=
8223: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8224: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
8225: php_cxx_post=
8226: php_lo=lo
8227:
8228: case $with_pic in
8229: yes) pic_setting='-prefer-pic';;
8230: no) pic_setting='-prefer-non-pic';;
8231: esac
8232:
8233: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8234: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
8235: shared_c_post=
8236: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8237: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
8238: shared_cxx_post=
8239: shared_lo=lo
8240:
8241: php_build_target=program
8242: ;;
8243: esac
8244:
8245:
8246:
8247: case sapi/apache2filter in
8248: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
8249: /*) ac_srcdir=`echo "sapi/apache2filter"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
8250: *) ac_srcdir="$abs_srcdir/sapi/apache2filter/"; ac_bdir="sapi/apache2filter/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
8251: esac
8252:
8253:
8254:
8255: b_c_pre=$php_c_pre
8256: b_cxx_pre=$php_cxx_pre
8257: b_c_meta=$php_c_meta
8258: b_cxx_meta=$php_cxx_meta
8259: b_c_post=$php_c_post
8260: b_cxx_post=$php_cxx_post
8261: b_lo=$php_lo
8262:
8263:
8264: old_IFS=$IFS
8265: for ac_src in sapi_apache2.c apache_config.c php_functions.c; do
8266:
8267: IFS=.
8268: set $ac_src
8269: ac_obj=$1
8270: IFS=$old_IFS
8271:
8272: PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
8273:
8274: case $ac_src in
8275: *.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" ;;
8276: *.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" ;;
8277: *.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" ;;
8278: *.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" ;;
8279: esac
8280:
8281: cat >>Makefile.objects<<EOF
8282: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
8283: $ac_comp
8284: EOF
8285: done
8286:
8287:
8288:
8289: SAPI_SHARED=libs/libphp5.so
8290: INSTALL_IT="$INSTALL_IT $SAPI_SHARED"
8291: ;;
8292: *beos*)
8293: if test -f _APP_; then `rm _APP_`; fi
8294: `ln -s $APXS_BINDIR/httpd _APP_`
8295: EXTRA_LIBS="$EXTRA_LIBS _APP_"
8296:
8297: if test "$PHP_SAPI" != "default"; then
8298: as_fn_error $? "
8299: +--------------------------------------------------------------------+
8300: | *** ATTENTION *** |
8301: | |
8302: | You've configured multiple SAPIs to be build. You can build only |
8303: | one SAPI module and CLI binary at the same time. |
8304: +--------------------------------------------------------------------+
8305: " "$LINENO" 5
8306: fi
8307:
8308: PHP_SAPI=apache2filter
8309:
8310: case "shared" in
8311: static)
8312:
8313: OVERALL_TARGET=php
8314: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8315: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
8316: php_c_post=
8317: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8318: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
8319: php_cxx_post=
8320: php_lo=lo
8321:
8322: case $with_pic in
8323: yes) pic_setting='-prefer-pic';;
8324: no) pic_setting='-prefer-non-pic';;
8325: esac
8326:
8327: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8328: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
8329: shared_c_post=
8330: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8331: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
8332: shared_cxx_post=
8333: shared_lo=lo
8334:
8335: php_build_target=program
8336:
8337: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
8338: php_build_target=static
8339: ;;
8340: shared)
8341:
8342: OVERALL_TARGET=php
8343: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8344: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
8345: php_c_post=
8346: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8347: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
8348: php_cxx_post=
8349: php_lo=lo
8350:
8351: case $with_pic in
8352: yes) pic_setting='-prefer-pic';;
8353: no) pic_setting='-prefer-non-pic';;
8354: esac
8355:
8356: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8357: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
8358: shared_c_post=
8359: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8360: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
8361: shared_cxx_post=
8362: shared_lo=lo
8363:
8364: php_build_target=program
8365:
8366: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
8367: php_build_target=shared
8368:
8369: php_c_pre=$shared_c_pre
8370: php_c_meta=$shared_c_meta
8371: php_c_post=$shared_c_post
8372: php_cxx_pre=$shared_cxx_pre
8373: php_cxx_meta=$shared_cxx_meta
8374: php_cxx_post=$shared_cxx_post
8375: php_lo=$shared_lo
8376: ;;
8377: bundle)
8378:
8379: OVERALL_TARGET=php
8380: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8381: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
8382: php_c_post=
8383: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8384: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
8385: php_cxx_post=
8386: php_lo=lo
8387:
8388: case $with_pic in
8389: yes) pic_setting='-prefer-pic';;
8390: no) pic_setting='-prefer-non-pic';;
8391: esac
8392:
8393: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8394: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
8395: shared_c_post=
8396: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8397: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
8398: shared_cxx_post=
8399: shared_lo=lo
8400:
8401: php_build_target=program
8402:
8403: OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
8404: php_build_target=static
8405: ;;
8406: program)
8407: OVERALL_TARGET=php
8408: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8409: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
8410: php_c_post=
8411: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8412: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
8413: php_cxx_post=
8414: php_lo=lo
8415:
8416: case $with_pic in
8417: yes) pic_setting='-prefer-pic';;
8418: no) pic_setting='-prefer-non-pic';;
8419: esac
8420:
8421: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8422: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
8423: shared_c_post=
8424: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8425: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
8426: shared_cxx_post=
8427: shared_lo=lo
8428:
8429: php_build_target=program
8430: ;;
8431: esac
8432:
8433:
8434:
8435: case sapi/apache2filter in
8436: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
8437: /*) ac_srcdir=`echo "sapi/apache2filter"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
8438: *) ac_srcdir="$abs_srcdir/sapi/apache2filter/"; ac_bdir="sapi/apache2filter/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
8439: esac
8440:
8441:
8442:
8443: b_c_pre=$php_c_pre
8444: b_cxx_pre=$php_cxx_pre
8445: b_c_meta=$php_c_meta
8446: b_cxx_meta=$php_cxx_meta
8447: b_c_post=$php_c_post
8448: b_cxx_post=$php_cxx_post
8449: b_lo=$php_lo
8450:
8451:
8452: old_IFS=$IFS
8453: for ac_src in sapi_apache2.c apache_config.c php_functions.c; do
8454:
8455: IFS=.
8456: set $ac_src
8457: ac_obj=$1
8458: IFS=$old_IFS
8459:
8460: PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
8461:
8462: case $ac_src in
8463: *.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" ;;
8464: *.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" ;;
8465: *.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" ;;
8466: *.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" ;;
8467: esac
8468:
8469: cat >>Makefile.objects<<EOF
8470: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
8471: $ac_comp
8472: EOF
8473: done
8474:
8475:
8476:
8477: INSTALL_IT="$INSTALL_IT $SAPI_LIBTOOL"
8478: ;;
8479: *)
8480:
8481: if test "$PHP_SAPI" != "default"; then
8482: as_fn_error $? "
8483: +--------------------------------------------------------------------+
8484: | *** ATTENTION *** |
8485: | |
8486: | You've configured multiple SAPIs to be build. You can build only |
8487: | one SAPI module and CLI binary at the same time. |
8488: +--------------------------------------------------------------------+
8489: " "$LINENO" 5
8490: fi
8491:
8492: PHP_SAPI=apache2filter
8493:
8494: case "shared" in
8495: static)
8496:
8497: OVERALL_TARGET=php
8498: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8499: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
8500: php_c_post=
8501: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8502: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
8503: php_cxx_post=
8504: php_lo=lo
8505:
8506: case $with_pic in
8507: yes) pic_setting='-prefer-pic';;
8508: no) pic_setting='-prefer-non-pic';;
8509: esac
8510:
8511: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8512: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
8513: shared_c_post=
8514: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8515: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
8516: shared_cxx_post=
8517: shared_lo=lo
8518:
8519: php_build_target=program
8520:
8521: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
8522: php_build_target=static
8523: ;;
8524: shared)
8525:
8526: OVERALL_TARGET=php
8527: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8528: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
8529: php_c_post=
8530: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8531: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
8532: php_cxx_post=
8533: php_lo=lo
8534:
8535: case $with_pic in
8536: yes) pic_setting='-prefer-pic';;
8537: no) pic_setting='-prefer-non-pic';;
8538: esac
8539:
8540: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8541: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
8542: shared_c_post=
8543: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8544: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
8545: shared_cxx_post=
8546: shared_lo=lo
8547:
8548: php_build_target=program
8549:
8550: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
8551: php_build_target=shared
8552:
8553: php_c_pre=$shared_c_pre
8554: php_c_meta=$shared_c_meta
8555: php_c_post=$shared_c_post
8556: php_cxx_pre=$shared_cxx_pre
8557: php_cxx_meta=$shared_cxx_meta
8558: php_cxx_post=$shared_cxx_post
8559: php_lo=$shared_lo
8560: ;;
8561: bundle)
8562:
8563: OVERALL_TARGET=php
8564: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8565: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
8566: php_c_post=
8567: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8568: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
8569: php_cxx_post=
8570: php_lo=lo
8571:
8572: case $with_pic in
8573: yes) pic_setting='-prefer-pic';;
8574: no) pic_setting='-prefer-non-pic';;
8575: esac
8576:
8577: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8578: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
8579: shared_c_post=
8580: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8581: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
8582: shared_cxx_post=
8583: shared_lo=lo
8584:
8585: php_build_target=program
8586:
8587: OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
8588: php_build_target=static
8589: ;;
8590: program)
8591: OVERALL_TARGET=php
8592: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8593: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
8594: php_c_post=
8595: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8596: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
8597: php_cxx_post=
8598: php_lo=lo
8599:
8600: case $with_pic in
8601: yes) pic_setting='-prefer-pic';;
8602: no) pic_setting='-prefer-non-pic';;
8603: esac
8604:
8605: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8606: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
8607: shared_c_post=
8608: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8609: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
8610: shared_cxx_post=
8611: shared_lo=lo
8612:
8613: php_build_target=program
8614: ;;
8615: esac
8616:
8617:
8618:
8619: case sapi/apache2filter in
8620: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
8621: /*) ac_srcdir=`echo "sapi/apache2filter"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
8622: *) ac_srcdir="$abs_srcdir/sapi/apache2filter/"; ac_bdir="sapi/apache2filter/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
8623: esac
8624:
8625:
8626:
8627: b_c_pre=$php_c_pre
8628: b_cxx_pre=$php_cxx_pre
8629: b_c_meta=$php_c_meta
8630: b_cxx_meta=$php_cxx_meta
8631: b_c_post=$php_c_post
8632: b_cxx_post=$php_cxx_post
8633: b_lo=$php_lo
8634:
8635:
8636: old_IFS=$IFS
8637: for ac_src in sapi_apache2.c apache_config.c php_functions.c; do
8638:
8639: IFS=.
8640: set $ac_src
8641: ac_obj=$1
8642: IFS=$old_IFS
8643:
8644: PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
8645:
8646: case $ac_src in
8647: *.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" ;;
8648: *.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" ;;
8649: *.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" ;;
8650: *.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" ;;
8651: esac
8652:
8653: cat >>Makefile.objects<<EOF
8654: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
8655: $ac_comp
8656: EOF
8657: done
8658:
8659:
8660:
8661: INSTALL_IT="$INSTALL_IT $SAPI_LIBTOOL"
8662: ;;
8663: esac
8664:
8665: if test "$APXS_MPM" != "prefork" && test "$APXS_MPM" != "peruser" && test "$APXS_MPM" != "itk"; then
8666:
8667: enable_maintainer_zts=yes
8668: if test "$pthreads_working" != "yes"; then
8669: as_fn_error $? "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5
8670: fi
8671:
8672: fi
8673: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8674: $as_echo "yes" >&6; }
8675:
8676: PHP_VAR_SUBST="$PHP_VAR_SUBST APXS"
8677:
8678: else
8679: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8680: $as_echo "no" >&6; }
8681: fi
8682:
8683:
8684:
8685:
8686: php_with_apxs2=no
8687:
8688:
8689:
8690: # Check whether --with-apxs2 was given.
8691: if test "${with_apxs2+set}" = set; then :
8692: withval=$with_apxs2; PHP_APXS2=$withval
8693: else
8694:
8695: PHP_APXS2=no
8696:
8697:
8698: fi
8699:
8700:
8701: ext_output=$PHP_APXS2
8702:
8703:
8704:
8705:
8706:
8707: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apache 2.0 handler-module support via DSO through APXS" >&5
8708: $as_echo_n "checking for Apache 2.0 handler-module support via DSO through APXS... " >&6; }
8709:
8710: if test "$PHP_APXS2" != "no"; then
8711: if test "$PHP_APXS2" = "yes"; then
8712: APXS=apxs
8713: $APXS -q CFLAGS >/dev/null 2>&1
8714: if test "$?" != "0" && test -x /usr/sbin/apxs; then
8715: APXS=/usr/sbin/apxs
8716: fi
8717: else
8718:
8719: if test -z "$PHP_APXS2" || echo "$PHP_APXS2" | grep '^/' >/dev/null ; then
8720: APXS=$PHP_APXS2
8721: else
8722:
8723: ep_dir="`echo $PHP_APXS2|$SED 's%/*[^/][^/]*/*$%%'`"
8724:
8725: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
8726: APXS="$ep_realdir/`basename \"$PHP_APXS2\"`"
8727: fi
8728:
8729: fi
8730:
8731: $APXS -q CFLAGS >/dev/null 2>&1
8732: if test "$?" != "0"; then
8733: { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8734: $as_echo "" >&6; }
8735: { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8736: $as_echo "" >&6; }
8737: { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, I cannot run apxs. Possible reasons follow:" >&5
8738: $as_echo "Sorry, I cannot run apxs. Possible reasons follow:" >&6; }
8739: { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8740: $as_echo "" >&6; }
8741: { $as_echo "$as_me:${as_lineno-$LINENO}: result: 1. Perl is not installed" >&5
8742: $as_echo "1. Perl is not installed" >&6; }
8743: { $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
8744: $as_echo "2. apxs was not found. Try to pass the path using --with-apxs2=/path/to/apxs" >&6; }
8745: { $as_echo "$as_me:${as_lineno-$LINENO}: result: 3. Apache was not built using --enable-so (the apxs usage page is displayed)" >&5
8746: $as_echo "3. Apache was not built using --enable-so (the apxs usage page is displayed)" >&6; }
8747: { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8748: $as_echo "" >&6; }
8749: { $as_echo "$as_me:${as_lineno-$LINENO}: result: The output of $APXS follows:" >&5
8750: $as_echo "The output of $APXS follows:" >&6; }
8751: $APXS -q CFLAGS
8752: as_fn_error $? "Aborting" "$LINENO" 5
8753: fi
8754:
8755: APXS_INCLUDEDIR=`$APXS -q INCLUDEDIR`
8756: APXS_BINDIR=`$APXS -q BINDIR`
8757: APXS_HTTPD=`$APXS -q SBINDIR`/`$APXS -q TARGET`
8758: APXS_CFLAGS=`$APXS -q CFLAGS`
8759: APXS_MPM=`$APXS -q MPM_NAME`
8760: APU_BINDIR=`$APXS -q APU_BINDIR`
8761: APR_BINDIR=`$APXS -q APR_BINDIR`
8762:
8763: # Pick up ap[ru]-N-config if using httpd >=2.1
8764: APR_CONFIG=`$APXS -q APR_CONFIG 2>/dev/null ||
8765: echo $APR_BINDIR/apr-config`
8766: APU_CONFIG=`$APXS -q APU_CONFIG 2>/dev/null ||
8767: echo $APU_BINDIR/apu-config`
8768:
8769: APR_CFLAGS="`$APR_CONFIG --cppflags --includes`"
8770: APU_CFLAGS="`$APU_CONFIG --includes`"
8771:
8772: for flag in $APXS_CFLAGS; do
8773: case $flag in
8774: -D*) APACHE_CPPFLAGS="$APACHE_CPPFLAGS $flag";;
8775: esac
8776: done
8777:
8778: APACHE_CFLAGS="$APACHE_CPPFLAGS -I$APXS_INCLUDEDIR $APR_CFLAGS $APU_CFLAGS"
8779:
8780: # Test that we're trying to configure with apache 2.x
8781:
8782: ac_output=`$APXS_HTTPD -v 2>&1 | grep version | $SED -e 's/Oracle-HTTP-//'`
8783: ac_IFS=$IFS
8784: IFS="- /.
8785: "
8786: set $ac_output
8787: IFS=$ac_IFS
8788:
8789: APACHE_VERSION=`expr $4 \* 1000000 + $5 \* 1000 + $6`
8790:
8791: if test "$APACHE_VERSION" -le 2000000; then
8792: as_fn_error $? "You have enabled Apache 2 support while your server is Apache 1.3. Please use the appropiate switch --with-apxs (without the 2)" "$LINENO" 5
8793: elif test "$APACHE_VERSION" -lt 2000044; then
8794: as_fn_error $? "Please note that Apache version >= 2.0.44 is required" "$LINENO" 5
8795: fi
8796:
8797: APXS_LIBEXECDIR='$(INSTALL_ROOT)'`$APXS -q LIBEXECDIR`
8798: if test -z `$APXS -q SYSCONFDIR`; then
8799: INSTALL_IT="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \
8800: $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \
8801: -i -n php5"
8802: else
8803: APXS_SYSCONFDIR='$(INSTALL_ROOT)'`$APXS -q SYSCONFDIR`
8804: INSTALL_IT="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \
8805: \$(mkinstalldirs) '$APXS_SYSCONFDIR' && \
8806: $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \
8807: -S SYSCONFDIR='$APXS_SYSCONFDIR' \
8808: -i -a -n php5"
8809: fi
8810:
8811: case $host_alias in
8812: *aix*)
8813: EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-brtl -Wl,-bI:$APXS_LIBEXECDIR/httpd.exp"
8814:
8815: if test "$PHP_SAPI" != "default"; then
8816: as_fn_error $? "
8817: +--------------------------------------------------------------------+
8818: | *** ATTENTION *** |
8819: | |
8820: | You've configured multiple SAPIs to be build. You can build only |
8821: | one SAPI module and CLI binary at the same time. |
8822: +--------------------------------------------------------------------+
8823: " "$LINENO" 5
8824: fi
8825:
8826: PHP_SAPI=apache2handler
8827:
8828: case "shared" in
8829: static)
8830:
8831: OVERALL_TARGET=php
8832: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8833: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
8834: php_c_post=
8835: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8836: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
8837: php_cxx_post=
8838: php_lo=lo
8839:
8840: case $with_pic in
8841: yes) pic_setting='-prefer-pic';;
8842: no) pic_setting='-prefer-non-pic';;
8843: esac
8844:
8845: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8846: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
8847: shared_c_post=
8848: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8849: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
8850: shared_cxx_post=
8851: shared_lo=lo
8852:
8853: php_build_target=program
8854:
8855: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
8856: php_build_target=static
8857: ;;
8858: shared)
8859:
8860: OVERALL_TARGET=php
8861: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8862: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
8863: php_c_post=
8864: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8865: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
8866: php_cxx_post=
8867: php_lo=lo
8868:
8869: case $with_pic in
8870: yes) pic_setting='-prefer-pic';;
8871: no) pic_setting='-prefer-non-pic';;
8872: esac
8873:
8874: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8875: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
8876: shared_c_post=
8877: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8878: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
8879: shared_cxx_post=
8880: shared_lo=lo
8881:
8882: php_build_target=program
8883:
8884: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
8885: php_build_target=shared
8886:
8887: php_c_pre=$shared_c_pre
8888: php_c_meta=$shared_c_meta
8889: php_c_post=$shared_c_post
8890: php_cxx_pre=$shared_cxx_pre
8891: php_cxx_meta=$shared_cxx_meta
8892: php_cxx_post=$shared_cxx_post
8893: php_lo=$shared_lo
8894: ;;
8895: bundle)
8896:
8897: OVERALL_TARGET=php
8898: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8899: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
8900: php_c_post=
8901: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8902: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
8903: php_cxx_post=
8904: php_lo=lo
8905:
8906: case $with_pic in
8907: yes) pic_setting='-prefer-pic';;
8908: no) pic_setting='-prefer-non-pic';;
8909: esac
8910:
8911: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8912: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
8913: shared_c_post=
8914: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8915: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
8916: shared_cxx_post=
8917: shared_lo=lo
8918:
8919: php_build_target=program
8920:
8921: OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
8922: php_build_target=static
8923: ;;
8924: program)
8925: OVERALL_TARGET=php
8926: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8927: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
8928: php_c_post=
8929: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8930: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
8931: php_cxx_post=
8932: php_lo=lo
8933:
8934: case $with_pic in
8935: yes) pic_setting='-prefer-pic';;
8936: no) pic_setting='-prefer-non-pic';;
8937: esac
8938:
8939: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
8940: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
8941: shared_c_post=
8942: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
8943: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
8944: shared_cxx_post=
8945: shared_lo=lo
8946:
8947: php_build_target=program
8948: ;;
8949: esac
8950:
8951:
8952:
8953: case sapi/apache2handler in
8954: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
8955: /*) ac_srcdir=`echo "sapi/apache2handler"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
8956: *) ac_srcdir="$abs_srcdir/sapi/apache2handler/"; ac_bdir="sapi/apache2handler/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
8957: esac
8958:
8959:
8960:
8961: b_c_pre=$php_c_pre
8962: b_cxx_pre=$php_cxx_pre
8963: b_c_meta=$php_c_meta
8964: b_cxx_meta=$php_cxx_meta
8965: b_c_post=$php_c_post
8966: b_cxx_post=$php_cxx_post
8967: b_lo=$php_lo
8968:
8969:
8970: old_IFS=$IFS
8971: for ac_src in mod_php5.c sapi_apache2.c apache_config.c php_functions.c; do
8972:
8973: IFS=.
8974: set $ac_src
8975: ac_obj=$1
8976: IFS=$old_IFS
8977:
8978: PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
8979:
8980: case $ac_src in
8981: *.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" ;;
8982: *.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" ;;
8983: *.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" ;;
8984: *.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" ;;
8985: esac
8986:
8987: cat >>Makefile.objects<<EOF
8988: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
8989: $ac_comp
8990: EOF
8991: done
8992:
8993:
8994:
8995: INSTALL_IT="$INSTALL_IT $SAPI_LIBTOOL"
8996: ;;
8997: *darwin*)
8998: if test -x "$APR_CONFIG"; then
8999: MH_BUNDLE_FLAGS="`$APR_CONFIG --ldflags --link-ld --libs`"
9000: fi
9001: if test -x "$APU_CONFIG"; then
9002: MH_BUNDLE_FLAGS="`$APU_CONFIG --ldflags --link-ld --libs` $MH_BUNDLE_FLAGS"
9003: fi
9004: MH_BUNDLE_FLAGS="-bundle -bundle_loader $APXS_HTTPD $MH_BUNDLE_FLAGS"
9005:
9006: PHP_VAR_SUBST="$PHP_VAR_SUBST MH_BUNDLE_FLAGS"
9007:
9008:
9009: if test "$PHP_SAPI" != "default"; then
9010: as_fn_error $? "
9011: +--------------------------------------------------------------------+
9012: | *** ATTENTION *** |
9013: | |
9014: | You've configured multiple SAPIs to be build. You can build only |
9015: | one SAPI module and CLI binary at the same time. |
9016: +--------------------------------------------------------------------+
9017: " "$LINENO" 5
9018: fi
9019:
9020: PHP_SAPI=apache2handler
9021:
9022: case "bundle" in
9023: static)
9024:
9025: OVERALL_TARGET=php
9026: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9027: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
9028: php_c_post=
9029: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9030: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
9031: php_cxx_post=
9032: php_lo=lo
9033:
9034: case $with_pic in
9035: yes) pic_setting='-prefer-pic';;
9036: no) pic_setting='-prefer-non-pic';;
9037: esac
9038:
9039: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9040: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
9041: shared_c_post=
9042: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9043: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
9044: shared_cxx_post=
9045: shared_lo=lo
9046:
9047: php_build_target=program
9048:
9049: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
9050: php_build_target=static
9051: ;;
9052: shared)
9053:
9054: OVERALL_TARGET=php
9055: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9056: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
9057: php_c_post=
9058: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9059: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
9060: php_cxx_post=
9061: php_lo=lo
9062:
9063: case $with_pic in
9064: yes) pic_setting='-prefer-pic';;
9065: no) pic_setting='-prefer-non-pic';;
9066: esac
9067:
9068: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9069: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
9070: shared_c_post=
9071: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9072: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
9073: shared_cxx_post=
9074: shared_lo=lo
9075:
9076: php_build_target=program
9077:
9078: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
9079: php_build_target=shared
9080:
9081: php_c_pre=$shared_c_pre
9082: php_c_meta=$shared_c_meta
9083: php_c_post=$shared_c_post
9084: php_cxx_pre=$shared_cxx_pre
9085: php_cxx_meta=$shared_cxx_meta
9086: php_cxx_post=$shared_cxx_post
9087: php_lo=$shared_lo
9088: ;;
9089: bundle)
9090:
9091: OVERALL_TARGET=php
9092: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9093: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
9094: php_c_post=
9095: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9096: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
9097: php_cxx_post=
9098: php_lo=lo
9099:
9100: case $with_pic in
9101: yes) pic_setting='-prefer-pic';;
9102: no) pic_setting='-prefer-non-pic';;
9103: esac
9104:
9105: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9106: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
9107: shared_c_post=
9108: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9109: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
9110: shared_cxx_post=
9111: shared_lo=lo
9112:
9113: php_build_target=program
9114:
9115: OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
9116: php_build_target=static
9117: ;;
9118: program)
9119: OVERALL_TARGET=php
9120: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9121: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
9122: php_c_post=
9123: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9124: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
9125: php_cxx_post=
9126: php_lo=lo
9127:
9128: case $with_pic in
9129: yes) pic_setting='-prefer-pic';;
9130: no) pic_setting='-prefer-non-pic';;
9131: esac
9132:
9133: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9134: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
9135: shared_c_post=
9136: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9137: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
9138: shared_cxx_post=
9139: shared_lo=lo
9140:
9141: php_build_target=program
9142: ;;
9143: esac
9144:
9145:
9146:
9147: case sapi/apache2handler in
9148: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
9149: /*) ac_srcdir=`echo "sapi/apache2handler"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
9150: *) ac_srcdir="$abs_srcdir/sapi/apache2handler/"; ac_bdir="sapi/apache2handler/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
9151: esac
9152:
9153:
9154:
9155: b_c_pre=$php_c_pre
9156: b_cxx_pre=$php_cxx_pre
9157: b_c_meta=$php_c_meta
9158: b_cxx_meta=$php_cxx_meta
9159: b_c_post=$php_c_post
9160: b_cxx_post=$php_cxx_post
9161: b_lo=$php_lo
9162:
9163:
9164: old_IFS=$IFS
9165: for ac_src in mod_php5.c sapi_apache2.c apache_config.c php_functions.c; do
9166:
9167: IFS=.
9168: set $ac_src
9169: ac_obj=$1
9170: IFS=$old_IFS
9171:
9172: PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
9173:
9174: case $ac_src in
9175: *.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" ;;
9176: *.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" ;;
9177: *.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" ;;
9178: *.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" ;;
9179: esac
9180:
9181: cat >>Makefile.objects<<EOF
9182: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
9183: $ac_comp
9184: EOF
9185: done
9186:
9187:
9188:
9189: SAPI_SHARED=libs/libphp5.so
9190: INSTALL_IT="$INSTALL_IT $SAPI_SHARED"
9191: ;;
9192: *beos*)
9193: if test -f _APP_; then `rm _APP_`; fi
9194: `ln -s $APXS_BINDIR/httpd _APP_`
9195: EXTRA_LIBS="$EXTRA_LIBS _APP_"
9196:
9197: if test "$PHP_SAPI" != "default"; then
9198: as_fn_error $? "
9199: +--------------------------------------------------------------------+
9200: | *** ATTENTION *** |
9201: | |
9202: | You've configured multiple SAPIs to be build. You can build only |
9203: | one SAPI module and CLI binary at the same time. |
9204: +--------------------------------------------------------------------+
9205: " "$LINENO" 5
9206: fi
9207:
9208: PHP_SAPI=apache2handler
9209:
9210: case "shared" in
9211: static)
9212:
9213: OVERALL_TARGET=php
9214: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9215: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
9216: php_c_post=
9217: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9218: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
9219: php_cxx_post=
9220: php_lo=lo
9221:
9222: case $with_pic in
9223: yes) pic_setting='-prefer-pic';;
9224: no) pic_setting='-prefer-non-pic';;
9225: esac
9226:
9227: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9228: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
9229: shared_c_post=
9230: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9231: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
9232: shared_cxx_post=
9233: shared_lo=lo
9234:
9235: php_build_target=program
9236:
9237: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
9238: php_build_target=static
9239: ;;
9240: shared)
9241:
9242: OVERALL_TARGET=php
9243: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9244: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
9245: php_c_post=
9246: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9247: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
9248: php_cxx_post=
9249: php_lo=lo
9250:
9251: case $with_pic in
9252: yes) pic_setting='-prefer-pic';;
9253: no) pic_setting='-prefer-non-pic';;
9254: esac
9255:
9256: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9257: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
9258: shared_c_post=
9259: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9260: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
9261: shared_cxx_post=
9262: shared_lo=lo
9263:
9264: php_build_target=program
9265:
9266: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
9267: php_build_target=shared
9268:
9269: php_c_pre=$shared_c_pre
9270: php_c_meta=$shared_c_meta
9271: php_c_post=$shared_c_post
9272: php_cxx_pre=$shared_cxx_pre
9273: php_cxx_meta=$shared_cxx_meta
9274: php_cxx_post=$shared_cxx_post
9275: php_lo=$shared_lo
9276: ;;
9277: bundle)
9278:
9279: OVERALL_TARGET=php
9280: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9281: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
9282: php_c_post=
9283: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9284: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
9285: php_cxx_post=
9286: php_lo=lo
9287:
9288: case $with_pic in
9289: yes) pic_setting='-prefer-pic';;
9290: no) pic_setting='-prefer-non-pic';;
9291: esac
9292:
9293: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9294: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
9295: shared_c_post=
9296: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9297: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
9298: shared_cxx_post=
9299: shared_lo=lo
9300:
9301: php_build_target=program
9302:
9303: OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
9304: php_build_target=static
9305: ;;
9306: program)
9307: OVERALL_TARGET=php
9308: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9309: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
9310: php_c_post=
9311: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9312: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
9313: php_cxx_post=
9314: php_lo=lo
9315:
9316: case $with_pic in
9317: yes) pic_setting='-prefer-pic';;
9318: no) pic_setting='-prefer-non-pic';;
9319: esac
9320:
9321: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9322: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
9323: shared_c_post=
9324: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9325: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
9326: shared_cxx_post=
9327: shared_lo=lo
9328:
9329: php_build_target=program
9330: ;;
9331: esac
9332:
9333:
9334:
9335: case sapi/apache2handler in
9336: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
9337: /*) ac_srcdir=`echo "sapi/apache2handler"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
9338: *) ac_srcdir="$abs_srcdir/sapi/apache2handler/"; ac_bdir="sapi/apache2handler/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
9339: esac
9340:
9341:
9342:
9343: b_c_pre=$php_c_pre
9344: b_cxx_pre=$php_cxx_pre
9345: b_c_meta=$php_c_meta
9346: b_cxx_meta=$php_cxx_meta
9347: b_c_post=$php_c_post
9348: b_cxx_post=$php_cxx_post
9349: b_lo=$php_lo
9350:
9351:
9352: old_IFS=$IFS
9353: for ac_src in mod_php5.c sapi_apache2.c apache_config.c php_functions.c; do
9354:
9355: IFS=.
9356: set $ac_src
9357: ac_obj=$1
9358: IFS=$old_IFS
9359:
9360: PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
9361:
9362: case $ac_src in
9363: *.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" ;;
9364: *.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" ;;
9365: *.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" ;;
9366: *.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" ;;
9367: esac
9368:
9369: cat >>Makefile.objects<<EOF
9370: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
9371: $ac_comp
9372: EOF
9373: done
9374:
9375:
9376:
9377: INSTALL_IT="$INSTALL_IT $SAPI_LIBTOOL"
9378: ;;
9379: *)
9380:
9381: if test "$PHP_SAPI" != "default"; then
9382: as_fn_error $? "
9383: +--------------------------------------------------------------------+
9384: | *** ATTENTION *** |
9385: | |
9386: | You've configured multiple SAPIs to be build. You can build only |
9387: | one SAPI module and CLI binary at the same time. |
9388: +--------------------------------------------------------------------+
9389: " "$LINENO" 5
9390: fi
9391:
9392: PHP_SAPI=apache2handler
9393:
9394: case "shared" in
9395: static)
9396:
9397: OVERALL_TARGET=php
9398: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9399: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
9400: php_c_post=
9401: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9402: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
9403: php_cxx_post=
9404: php_lo=lo
9405:
9406: case $with_pic in
9407: yes) pic_setting='-prefer-pic';;
9408: no) pic_setting='-prefer-non-pic';;
9409: esac
9410:
9411: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9412: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
9413: shared_c_post=
9414: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9415: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
9416: shared_cxx_post=
9417: shared_lo=lo
9418:
9419: php_build_target=program
9420:
9421: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
9422: php_build_target=static
9423: ;;
9424: shared)
9425:
9426: OVERALL_TARGET=php
9427: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9428: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
9429: php_c_post=
9430: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9431: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
9432: php_cxx_post=
9433: php_lo=lo
9434:
9435: case $with_pic in
9436: yes) pic_setting='-prefer-pic';;
9437: no) pic_setting='-prefer-non-pic';;
9438: esac
9439:
9440: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9441: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
9442: shared_c_post=
9443: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9444: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
9445: shared_cxx_post=
9446: shared_lo=lo
9447:
9448: php_build_target=program
9449:
9450: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
9451: php_build_target=shared
9452:
9453: php_c_pre=$shared_c_pre
9454: php_c_meta=$shared_c_meta
9455: php_c_post=$shared_c_post
9456: php_cxx_pre=$shared_cxx_pre
9457: php_cxx_meta=$shared_cxx_meta
9458: php_cxx_post=$shared_cxx_post
9459: php_lo=$shared_lo
9460: ;;
9461: bundle)
9462:
9463: OVERALL_TARGET=php
9464: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9465: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
9466: php_c_post=
9467: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9468: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
9469: php_cxx_post=
9470: php_lo=lo
9471:
9472: case $with_pic in
9473: yes) pic_setting='-prefer-pic';;
9474: no) pic_setting='-prefer-non-pic';;
9475: esac
9476:
9477: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9478: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
9479: shared_c_post=
9480: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9481: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
9482: shared_cxx_post=
9483: shared_lo=lo
9484:
9485: php_build_target=program
9486:
9487: OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
9488: php_build_target=static
9489: ;;
9490: program)
9491: OVERALL_TARGET=php
9492: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9493: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
9494: php_c_post=
9495: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9496: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
9497: php_cxx_post=
9498: php_lo=lo
9499:
9500: case $with_pic in
9501: yes) pic_setting='-prefer-pic';;
9502: no) pic_setting='-prefer-non-pic';;
9503: esac
9504:
9505: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9506: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
9507: shared_c_post=
9508: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9509: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
9510: shared_cxx_post=
9511: shared_lo=lo
9512:
9513: php_build_target=program
9514: ;;
9515: esac
9516:
9517:
9518:
9519: case sapi/apache2handler in
9520: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
9521: /*) ac_srcdir=`echo "sapi/apache2handler"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
9522: *) ac_srcdir="$abs_srcdir/sapi/apache2handler/"; ac_bdir="sapi/apache2handler/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
9523: esac
9524:
9525:
9526:
9527: b_c_pre=$php_c_pre
9528: b_cxx_pre=$php_cxx_pre
9529: b_c_meta=$php_c_meta
9530: b_cxx_meta=$php_cxx_meta
9531: b_c_post=$php_c_post
9532: b_cxx_post=$php_cxx_post
9533: b_lo=$php_lo
9534:
9535:
9536: old_IFS=$IFS
9537: for ac_src in mod_php5.c sapi_apache2.c apache_config.c php_functions.c; do
9538:
9539: IFS=.
9540: set $ac_src
9541: ac_obj=$1
9542: IFS=$old_IFS
9543:
9544: PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
9545:
9546: case $ac_src in
9547: *.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" ;;
9548: *.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" ;;
9549: *.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" ;;
9550: *.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" ;;
9551: esac
9552:
9553: cat >>Makefile.objects<<EOF
9554: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
9555: $ac_comp
9556: EOF
9557: done
9558:
9559:
9560:
9561: INSTALL_IT="$INSTALL_IT $SAPI_LIBTOOL"
9562: ;;
9563: esac
9564:
9565: if test "$APXS_MPM" != "prefork" && test "$APXS_MPM" != "peruser" && test "$APXS_MPM" != "itk"; then
9566:
9567: enable_maintainer_zts=yes
9568: if test "$pthreads_working" != "yes"; then
9569: as_fn_error $? "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5
9570: fi
9571:
9572: fi
9573: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9574: $as_echo "yes" >&6; }
9575:
9576: PHP_VAR_SUBST="$PHP_VAR_SUBST APXS"
9577:
9578: else
9579: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9580: $as_echo "no" >&6; }
9581: fi
9582:
9583:
9584:
9585:
9586:
9587: php_with_apache_hooks=no
9588:
9589:
9590:
9591: # Check whether --with-apache-hooks was given.
9592: if test "${with_apache_hooks+set}" = set; then :
9593: withval=$with_apache_hooks; PHP_APACHE_HOOKS=$withval
9594: else
9595:
9596: PHP_APACHE_HOOKS=no
9597:
9598:
9599: fi
9600:
9601:
9602: ext_output=$PHP_APACHE_HOOKS
9603:
9604:
9605:
9606:
9607:
9608: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apache 1.x (hooks) module support via DSO through APXS" >&5
9609: $as_echo_n "checking for Apache 1.x (hooks) module support via DSO through APXS... " >&6; }
9610:
9611: if test "$PHP_APACHE_HOOKS" != "no"; then
9612: if test "$PHP_APACHE_HOOKS" = "yes"; then
9613: APXS=apxs
9614: $APXS -q CFLAGS >/dev/null 2>&1
9615: if test "$?" != "0" && test -x /usr/sbin/apxs; then #SUSE 6.x
9616: APXS=/usr/sbin/apxs
9617: fi
9618: else
9619:
9620: if test -z "$PHP_APACHE_HOOKS" || echo "$PHP_APACHE_HOOKS" | grep '^/' >/dev/null ; then
9621: APXS=$PHP_APACHE_HOOKS
9622: else
9623:
9624: ep_dir="`echo $PHP_APACHE_HOOKS|$SED 's%/*[^/][^/]*/*$%%'`"
9625:
9626: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
9627: APXS="$ep_realdir/`basename \"$PHP_APACHE_HOOKS\"`"
9628: fi
9629:
9630: fi
9631:
9632: $APXS -q CFLAGS >/dev/null 2>&1
9633: if test "$?" != "0"; then
9634: { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
9635: $as_echo "" >&6; }
9636: { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
9637: $as_echo "" >&6; }
9638: { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, I was not able to successfully run APXS. Possible reasons:" >&5
9639: $as_echo "Sorry, I was not able to successfully run APXS. Possible reasons:" >&6; }
9640: { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
9641: $as_echo "" >&6; }
9642: { $as_echo "$as_me:${as_lineno-$LINENO}: result: 1. Perl is not installed;" >&5
9643: $as_echo "1. Perl is not installed;" >&6; }
9644: { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2. Apache was not compiled with DSO support (--enable-module=so);" >&5
9645: $as_echo "2. Apache was not compiled with DSO support (--enable-module=so);" >&6; }
9646: { $as_echo "$as_me:${as_lineno-$LINENO}: result: 3. 'apxs' is not in your path. Try to use --with-apxs=/path/to/apxs" >&5
9647: $as_echo "3. 'apxs' is not in your path. Try to use --with-apxs=/path/to/apxs" >&6; }
9648: { $as_echo "$as_me:${as_lineno-$LINENO}: result: The output of $APXS follows" >&5
9649: $as_echo "The output of $APXS follows" >&6; }
9650: $APXS -q CFLAGS
9651: as_fn_error $? "Aborting" "$LINENO" 5
9652: fi
9653:
9654: APXS_LDFLAGS="@SYBASE_LFLAGS@ @SYBASE_LIBS@ @SYBASE_CT_LFLAGS@ @SYBASE_CT_LIBS@"
9655: APXS_INCLUDEDIR=`$APXS -q INCLUDEDIR`
9656: APXS_CFLAGS=`$APXS -q CFLAGS`
9657: APXS_HTTPD=`$APXS -q SBINDIR`/`$APXS -q TARGET`
9658: APACHE_INCLUDE=-I$APXS_INCLUDEDIR
9659:
9660: # Test that we're trying to configure with apache 1.x
9661:
9662: ac_output=`$APXS_HTTPD -v 2>&1 | grep version | $SED -e 's/Oracle-HTTP-//'`
9663: ac_IFS=$IFS
9664: IFS="- /.
9665: "
9666: set $ac_output
9667: IFS=$ac_IFS
9668:
9669: APACHE_VERSION=`expr $4 \* 1000000 + $5 \* 1000 + $6`
9670:
9671: if test "$APACHE_VERSION" -ge 2000000; then
9672: as_fn_error $? "You have enabled Apache 1.3 support while your server is Apache 2. Please use the appropiate switch --with-apxs2" "$LINENO" 5
9673: fi
9674:
9675: for flag in $APXS_CFLAGS; do
9676: case $flag in
9677: -D*) APACHE_CPPFLAGS="$APACHE_CPPFLAGS $flag";;
9678: esac
9679: done
9680:
9681: case $host_alias in
9682: *aix*)
9683: APXS_LIBEXECDIR=`$APXS -q LIBEXECDIR`
9684: EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-brtl -Wl,-bI:$APXS_LIBEXECDIR/httpd.exp"
9685: PHP_AIX_LDFLAGS="-Wl,-brtl"
9686: build_type=shared
9687: ;;
9688: *darwin*)
9689: MH_BUNDLE_FLAGS="-dynamic -twolevel_namespace -bundle -bundle_loader $APXS_HTTPD"
9690:
9691: PHP_VAR_SUBST="$PHP_VAR_SUBST MH_BUNDLE_FLAGS"
9692:
9693: SAPI_SHARED=libs/libphp5.so
9694: build_type=bundle
9695: ;;
9696: *)
9697: build_type=shared
9698: ;;
9699: esac
9700:
9701:
9702: if test "$PHP_SAPI" != "default"; then
9703: as_fn_error $? "
9704: +--------------------------------------------------------------------+
9705: | *** ATTENTION *** |
9706: | |
9707: | You've configured multiple SAPIs to be build. You can build only |
9708: | one SAPI module and CLI binary at the same time. |
9709: +--------------------------------------------------------------------+
9710: " "$LINENO" 5
9711: fi
9712:
9713: PHP_SAPI=apache_hooks
9714:
9715: case "$build_type" in
9716: static)
9717:
9718: OVERALL_TARGET=php
9719: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9720: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
9721: php_c_post=
9722: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9723: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
9724: php_cxx_post=
9725: php_lo=lo
9726:
9727: case $with_pic in
9728: yes) pic_setting='-prefer-pic';;
9729: no) pic_setting='-prefer-non-pic';;
9730: esac
9731:
9732: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9733: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
9734: shared_c_post=
9735: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9736: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
9737: shared_cxx_post=
9738: shared_lo=lo
9739:
9740: php_build_target=program
9741:
9742: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
9743: php_build_target=static
9744: ;;
9745: shared)
9746:
9747: OVERALL_TARGET=php
9748: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9749: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
9750: php_c_post=
9751: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9752: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
9753: php_cxx_post=
9754: php_lo=lo
9755:
9756: case $with_pic in
9757: yes) pic_setting='-prefer-pic';;
9758: no) pic_setting='-prefer-non-pic';;
9759: esac
9760:
9761: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9762: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
9763: shared_c_post=
9764: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9765: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
9766: shared_cxx_post=
9767: shared_lo=lo
9768:
9769: php_build_target=program
9770:
9771: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
9772: php_build_target=shared
9773:
9774: php_c_pre=$shared_c_pre
9775: php_c_meta=$shared_c_meta
9776: php_c_post=$shared_c_post
9777: php_cxx_pre=$shared_cxx_pre
9778: php_cxx_meta=$shared_cxx_meta
9779: php_cxx_post=$shared_cxx_post
9780: php_lo=$shared_lo
9781: ;;
9782: bundle)
9783:
9784: OVERALL_TARGET=php
9785: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9786: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
9787: php_c_post=
9788: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9789: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
9790: php_cxx_post=
9791: php_lo=lo
9792:
9793: case $with_pic in
9794: yes) pic_setting='-prefer-pic';;
9795: no) pic_setting='-prefer-non-pic';;
9796: esac
9797:
9798: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9799: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
9800: shared_c_post=
9801: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9802: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
9803: shared_cxx_post=
9804: shared_lo=lo
9805:
9806: php_build_target=program
9807:
9808: OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
9809: php_build_target=static
9810: ;;
9811: program)
9812: OVERALL_TARGET=php
9813: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9814: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
9815: php_c_post=
9816: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9817: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
9818: php_cxx_post=
9819: php_lo=lo
9820:
9821: case $with_pic in
9822: yes) pic_setting='-prefer-pic';;
9823: no) pic_setting='-prefer-non-pic';;
9824: esac
9825:
9826: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9827: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
9828: shared_c_post=
9829: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9830: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
9831: shared_cxx_post=
9832: shared_lo=lo
9833:
9834: php_build_target=program
9835: ;;
9836: esac
9837:
9838:
9839:
9840: case sapi/apache_hooks in
9841: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
9842: /*) ac_srcdir=`echo "sapi/apache_hooks"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
9843: *) ac_srcdir="$abs_srcdir/sapi/apache_hooks/"; ac_bdir="sapi/apache_hooks/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
9844: esac
9845:
9846:
9847:
9848: b_c_pre=$php_c_pre
9849: b_cxx_pre=$php_cxx_pre
9850: b_c_meta=$php_c_meta
9851: b_cxx_meta=$php_cxx_meta
9852: b_c_post=$php_c_post
9853: b_cxx_post=$php_cxx_post
9854: b_lo=$php_lo
9855:
9856:
9857: old_IFS=$IFS
9858: for ac_src in sapi_apache.c mod_php5.c php_apache.c; do
9859:
9860: IFS=.
9861: set $ac_src
9862: ac_obj=$1
9863: IFS=$old_IFS
9864:
9865: PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
9866:
9867: case $ac_src in
9868: *.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" ;;
9869: *.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" ;;
9870: *.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" ;;
9871: *.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" ;;
9872: esac
9873:
9874: cat >>Makefile.objects<<EOF
9875: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
9876: $ac_comp
9877: EOF
9878: done
9879:
9880:
9881:
9882:
9883: # Test whether apxs support -S option
9884: $APXS -q -S CFLAGS="$APXS_CFLAGS" CFLAGS >/dev/null 2>&1
9885:
9886: if test "$?" != "0"; then
9887: APACHE_HOOKS_INSTALL="$APXS -i -a -n php5 $SAPI_SHARED" # Old apxs does not have -S option
9888: else
9889: APXS_LIBEXECDIR='$(INSTALL_ROOT)'`$APXS -q LIBEXECDIR`
9890: if test -z `$APXS -q SYSCONFDIR`; then
9891: APACHE_HOOKS_INSTALL="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \
9892: $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \
9893: -i -n php5 $SAPI_SHARED"
9894: else
9895: APXS_SYSCONFDIR='$(INSTALL_ROOT)'`$APXS -q SYSCONFDIR`
9896: APACHE_HOOKS_INSTALL="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \
9897: \$(mkinstalldirs) '$APXS_SYSCONFDIR' && \
9898: $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \
9899: -S SYSCONFDIR='$APXS_SYSCONFDIR' \
9900: -i -a -n php5 $SAPI_SHARED"
9901: fi
9902: fi
9903:
9904: if test -z "`$APXS -q LD_SHLIB`" || test "`$APXS -q LIBEXECDIR`" = "modules"; then
9905: PHP_APXS_BROKEN=yes
9906: fi
9907: STRONGHOLD=
9908:
9909: $as_echo "#define HAVE_AP_CONFIG_H 1" >>confdefs.h
9910:
9911:
9912: $as_echo "#define HAVE_AP_COMPAT_H 1" >>confdefs.h
9913:
9914:
9915: $as_echo "#define HAVE_APACHE_HOOKS 1" >>confdefs.h
9916:
9917: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9918: $as_echo "yes" >&6; }
9919: else
9920: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9921: $as_echo "no" >&6; }
9922: fi
9923:
9924:
9925: php_with_apache_hooks_static=no
9926:
9927:
9928:
9929: # Check whether --with-apache-hooks-static was given.
9930: if test "${with_apache_hooks_static+set}" = set; then :
9931: withval=$with_apache_hooks_static; PHP_APACHE_HOOKS_STATIC=$withval
9932: else
9933:
9934: PHP_APACHE_HOOKS_STATIC=no
9935:
9936:
9937: fi
9938:
9939:
9940: ext_output=$PHP_APACHE_HOOKS_STATIC
9941:
9942:
9943:
9944:
9945:
9946: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apache 1.x (hooks) module support" >&5
9947: $as_echo_n "checking for Apache 1.x (hooks) module support... " >&6; }
9948:
9949: if test "$PHP_SAPI" != "apache" && test "$PHP_SAPI" != "apache_hooks" && test "$PHP_APACHE_HOOKS_STATIC" != "no"; then
9950:
9951: if test "$PHP_APACHE_HOOKS_STATIC" = "yes"; then
9952: # Apache's default directory
9953: PHP_APACHE_HOOKS_STATIC=/usr/local/apache
9954: fi
9955:
9956: APACHE_HOOKS_INSTALL_FILES="\$(srcdir)/sapi/apache_hooks/mod_php5.* sapi/apache_hooks/libphp5.module"
9957:
9958:
9959: $as_echo "#define HAVE_APACHE 1" >>confdefs.h
9960:
9961: APACHE_HOOKS_MODULE=yes
9962:
9963: if test -z "$PHP_APACHE_HOOKS_STATIC" || echo "$PHP_APACHE_HOOKS_STATIC" | grep '^/' >/dev/null ; then
9964: PHP_APACHE_HOOKS_STATIC=$PHP_APACHE_HOOKS_STATIC
9965: else
9966:
9967: ep_dir="`echo $PHP_APACHE_HOOKS_STATIC|$SED 's%/*[^/][^/]*/*$%%'`"
9968:
9969: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
9970: PHP_APACHE_HOOKS_STATIC="$ep_realdir/`basename \"$PHP_APACHE_HOOKS_STATIC\"`"
9971: fi
9972:
9973: # For Apache 1.2.x
9974: if test -f $PHP_APACHE_HOOKS_STATIC/src/httpd.h; then
9975: APACHE_INCLUDE=-I$PHP_APACHE_HOOKS_STATIC/src
9976: APACHE_TARGET=$PHP_APACHE_HOOKS_STATIC/src
9977:
9978: if test "$PHP_SAPI" != "default"; then
9979: as_fn_error $? "
9980: +--------------------------------------------------------------------+
9981: | *** ATTENTION *** |
9982: | |
9983: | You've configured multiple SAPIs to be build. You can build only |
9984: | one SAPI module and CLI binary at the same time. |
9985: +--------------------------------------------------------------------+
9986: " "$LINENO" 5
9987: fi
9988:
9989: PHP_SAPI=apache_hooks
9990:
9991: case "static" in
9992: static)
9993:
9994: OVERALL_TARGET=php
9995: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
9996: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
9997: php_c_post=
9998: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
9999: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
10000: php_cxx_post=
10001: php_lo=lo
10002:
10003: case $with_pic in
10004: yes) pic_setting='-prefer-pic';;
10005: no) pic_setting='-prefer-non-pic';;
10006: esac
10007:
10008: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
10009: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
10010: shared_c_post=
10011: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
10012: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
10013: shared_cxx_post=
10014: shared_lo=lo
10015:
10016: php_build_target=program
10017:
10018: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
10019: php_build_target=static
10020: ;;
10021: shared)
10022:
10023: OVERALL_TARGET=php
10024: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
10025: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
10026: php_c_post=
10027: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
10028: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
10029: php_cxx_post=
10030: php_lo=lo
10031:
10032: case $with_pic in
10033: yes) pic_setting='-prefer-pic';;
10034: no) pic_setting='-prefer-non-pic';;
10035: esac
10036:
10037: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
10038: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
10039: shared_c_post=
10040: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
10041: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
10042: shared_cxx_post=
10043: shared_lo=lo
10044:
10045: php_build_target=program
10046:
10047: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
10048: php_build_target=shared
10049:
10050: php_c_pre=$shared_c_pre
10051: php_c_meta=$shared_c_meta
10052: php_c_post=$shared_c_post
10053: php_cxx_pre=$shared_cxx_pre
10054: php_cxx_meta=$shared_cxx_meta
10055: php_cxx_post=$shared_cxx_post
10056: php_lo=$shared_lo
10057: ;;
10058: bundle)
10059:
10060: OVERALL_TARGET=php
10061: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
10062: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
10063: php_c_post=
10064: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
10065: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
10066: php_cxx_post=
10067: php_lo=lo
10068:
10069: case $with_pic in
10070: yes) pic_setting='-prefer-pic';;
10071: no) pic_setting='-prefer-non-pic';;
10072: esac
10073:
10074: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
10075: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
10076: shared_c_post=
10077: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
10078: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
10079: shared_cxx_post=
10080: shared_lo=lo
10081:
10082: php_build_target=program
10083:
10084: OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
10085: php_build_target=static
10086: ;;
10087: program)
10088: OVERALL_TARGET=php
10089: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
10090: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
10091: php_c_post=
10092: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
10093: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
10094: php_cxx_post=
10095: php_lo=lo
10096:
10097: case $with_pic in
10098: yes) pic_setting='-prefer-pic';;
10099: no) pic_setting='-prefer-non-pic';;
10100: esac
10101:
10102: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
10103: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
10104: shared_c_post=
10105: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
10106: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
10107: shared_cxx_post=
10108: shared_lo=lo
10109:
10110: php_build_target=program
10111: ;;
10112: esac
10113:
10114:
10115:
10116: case sapi/apache_hooks in
10117: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
10118: /*) ac_srcdir=`echo "sapi/apache_hooks"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
10119: *) ac_srcdir="$abs_srcdir/sapi/apache_hooks/"; ac_bdir="sapi/apache_hooks/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
10120: esac
10121:
10122:
10123:
10124: b_c_pre=$php_c_pre
10125: b_cxx_pre=$php_cxx_pre
10126: b_c_meta=$php_c_meta
10127: b_cxx_meta=$php_cxx_meta
10128: b_c_post=$php_c_post
10129: b_cxx_post=$php_cxx_post
10130: b_lo=$php_lo
10131:
10132:
10133: old_IFS=$IFS
10134: for ac_src in sapi_apache.c mod_php5.c php_apache.c; do
10135:
10136: IFS=.
10137: set $ac_src
10138: ac_obj=$1
10139: IFS=$old_IFS
10140:
10141: PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
10142:
10143: case $ac_src in
10144: *.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" ;;
10145: *.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" ;;
10146: *.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" ;;
10147: *.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" ;;
10148: esac
10149:
10150: cat >>Makefile.objects<<EOF
10151: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
10152: $ac_comp
10153: EOF
10154: done
10155:
10156:
10157:
10158: APACHE_HOOKS_INSTALL="mkdir -p $APACHE_TARGET; cp $SAPI_STATIC $APACHE_HOOKS_INSTALL_FILES $APACHE_TARGET"
10159: PHP_LIBS="-L. -lphp3"
10160: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - Apache 1.2.x" >&5
10161: $as_echo "yes - Apache 1.2.x" >&6; }
10162: STRONGHOLD=
10163: if test -f $PHP_APACHE_HOOKS_STATIC/src/ap_config.h; then
10164:
10165: $as_echo "#define HAVE_AP_CONFIG_H 1" >>confdefs.h
10166:
10167: fi
10168: # For Apache 2.0.x
10169: elif test -f $PHP_APACHE_HOOKS_STATIC/include/httpd.h && test -f $PHP_APACHE_HOOKS_STATIC/srclib/apr/include/apr_general.h ; then
10170: as_fn_error $? "Use --with-apxs2 with Apache 2.x!" "$LINENO" 5
10171: # For Apache 1.3.x
10172: elif test -f $PHP_APACHE_HOOKS_STATIC/src/main/httpd.h; then
10173: APACHE_HAS_REGEX=1
10174: APACHE_INCLUDE="-I$PHP_APACHE_HOOKS_STATIC/src/main -I$PHP_APACHE_HOOKS_STATIC/src/os/unix -I$PHP_APACHE_HOOKS_STATIC/src/ap"
10175: APACHE_TARGET=$PHP_APACHE_HOOKS_STATIC/src/modules/php5
10176: if test ! -d $APACHE_TARGET; then
10177: mkdir $APACHE_TARGET
10178: fi
10179:
10180: if test "$PHP_SAPI" != "default"; then
10181: as_fn_error $? "
10182: +--------------------------------------------------------------------+
10183: | *** ATTENTION *** |
10184: | |
10185: | You've configured multiple SAPIs to be build. You can build only |
10186: | one SAPI module and CLI binary at the same time. |
10187: +--------------------------------------------------------------------+
10188: " "$LINENO" 5
10189: fi
10190:
10191: PHP_SAPI=apache_hooks
10192:
10193: case "static" in
10194: static)
10195:
10196: OVERALL_TARGET=php
10197: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
10198: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
10199: php_c_post=
10200: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
10201: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
10202: php_cxx_post=
10203: php_lo=lo
10204:
10205: case $with_pic in
10206: yes) pic_setting='-prefer-pic';;
10207: no) pic_setting='-prefer-non-pic';;
10208: esac
10209:
10210: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
10211: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
10212: shared_c_post=
10213: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
10214: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
10215: shared_cxx_post=
10216: shared_lo=lo
10217:
10218: php_build_target=program
10219:
10220: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
10221: php_build_target=static
10222: ;;
10223: shared)
10224:
10225: OVERALL_TARGET=php
10226: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
10227: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
10228: php_c_post=
10229: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
10230: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
10231: php_cxx_post=
10232: php_lo=lo
10233:
10234: case $with_pic in
10235: yes) pic_setting='-prefer-pic';;
10236: no) pic_setting='-prefer-non-pic';;
10237: esac
10238:
10239: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
10240: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
10241: shared_c_post=
10242: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
10243: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
10244: shared_cxx_post=
10245: shared_lo=lo
10246:
10247: php_build_target=program
10248:
10249: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
10250: php_build_target=shared
10251:
10252: php_c_pre=$shared_c_pre
10253: php_c_meta=$shared_c_meta
10254: php_c_post=$shared_c_post
10255: php_cxx_pre=$shared_cxx_pre
10256: php_cxx_meta=$shared_cxx_meta
10257: php_cxx_post=$shared_cxx_post
10258: php_lo=$shared_lo
10259: ;;
10260: bundle)
10261:
10262: OVERALL_TARGET=php
10263: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
10264: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
10265: php_c_post=
10266: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
10267: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
10268: php_cxx_post=
10269: php_lo=lo
10270:
10271: case $with_pic in
10272: yes) pic_setting='-prefer-pic';;
10273: no) pic_setting='-prefer-non-pic';;
10274: esac
10275:
10276: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
10277: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
10278: shared_c_post=
10279: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
10280: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
10281: shared_cxx_post=
10282: shared_lo=lo
10283:
10284: php_build_target=program
10285:
10286: OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
10287: php_build_target=static
10288: ;;
10289: program)
10290: OVERALL_TARGET=php
10291: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
10292: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
10293: php_c_post=
10294: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
10295: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
10296: php_cxx_post=
10297: php_lo=lo
10298:
10299: case $with_pic in
10300: yes) pic_setting='-prefer-pic';;
10301: no) pic_setting='-prefer-non-pic';;
10302: esac
10303:
10304: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
10305: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
10306: shared_c_post=
10307: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
10308: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
10309: shared_cxx_post=
10310: shared_lo=lo
10311:
10312: php_build_target=program
10313: ;;
10314: esac
10315:
10316:
10317:
10318: case sapi/apache_hooks in
10319: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
10320: /*) ac_srcdir=`echo "sapi/apache_hooks"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
10321: *) ac_srcdir="$abs_srcdir/sapi/apache_hooks/"; ac_bdir="sapi/apache_hooks/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
10322: esac
10323:
10324:
10325:
10326: b_c_pre=$php_c_pre
10327: b_cxx_pre=$php_cxx_pre
10328: b_c_meta=$php_c_meta
10329: b_cxx_meta=$php_cxx_meta
10330: b_c_post=$php_c_post
10331: b_cxx_post=$php_cxx_post
10332: b_lo=$php_lo
10333:
10334:
10335: old_IFS=$IFS
10336: for ac_src in sapi_apache.c mod_php5.c php_apache.c; do
10337:
10338: IFS=.
10339: set $ac_src
10340: ac_obj=$1
10341: IFS=$old_IFS
10342:
10343: PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
10344:
10345: case $ac_src in
10346: *.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" ;;
10347: *.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" ;;
10348: *.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" ;;
10349: *.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" ;;
10350: esac
10351:
10352: cat >>Makefile.objects<<EOF
10353: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
10354: $ac_comp
10355: EOF
10356: done
10357:
10358:
10359:
10360: 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"
10361: PHP_LIBS="-Lmodules/php5 -L../modules/php5 -L../../modules/php5 -lmodphp5"
10362: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - Apache 1.3.x" >&5
10363: $as_echo "yes - Apache 1.3.x" >&6; }
10364: STRONGHOLD=
10365: if test -f $PHP_APACHE_HOOKS_STATIC/src/include/ap_config.h; then
10366:
10367: $as_echo "#define HAVE_AP_CONFIG_H 1" >>confdefs.h
10368:
10369: fi
10370: if test -f $PHP_APACHE_HOOKS_STATIC/src/include/ap_compat.h; then
10371:
10372: $as_echo "#define HAVE_AP_COMPAT_H 1" >>confdefs.h
10373:
10374: if test ! -f $PHP_APACHE_HOOKS_STATIC/src/include/ap_config_auto.h; then
10375: as_fn_error $? "Please run Apache\'s configure or src/Configure program once and try again" "$LINENO" 5
10376: fi
10377: elif test -f $PHP_APACHE_HOOKS_STATIC/src/include/compat.h; then
10378:
10379: $as_echo "#define HAVE_OLD_COMPAT_H 1" >>confdefs.h
10380:
10381: fi
10382: # Also for Apache 1.3.x
10383: elif test -f $PHP_APACHE_HOOKS_STATIC/src/include/httpd.h; then
10384: APACHE_HAS_REGEX=1
10385: APACHE_INCLUDE="-I$PHP_APACHE_HOOKS_STATIC/src/include -I$PHP_APACHE_HOOKS_STATIC/src/os/unix"
10386: APACHE_TARGET=$PHP_APACHE_HOOKS_STATIC/src/modules/php5
10387: if test ! -d $APACHE_TARGET; then
10388: mkdir $APACHE_TARGET
10389: fi
10390:
10391: if test "$PHP_SAPI" != "default"; then
10392: as_fn_error $? "
10393: +--------------------------------------------------------------------+
10394: | *** ATTENTION *** |
10395: | |
10396: | You've configured multiple SAPIs to be build. You can build only |
10397: | one SAPI module and CLI binary at the same time. |
10398: +--------------------------------------------------------------------+
10399: " "$LINENO" 5
10400: fi
10401:
10402: PHP_SAPI=apache_hooks
10403:
10404: case "static" in
10405: static)
10406:
10407: OVERALL_TARGET=php
10408: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
10409: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
10410: php_c_post=
10411: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
10412: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
10413: php_cxx_post=
10414: php_lo=lo
10415:
10416: case $with_pic in
10417: yes) pic_setting='-prefer-pic';;
10418: no) pic_setting='-prefer-non-pic';;
10419: esac
10420:
10421: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
10422: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
10423: shared_c_post=
10424: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
10425: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
10426: shared_cxx_post=
10427: shared_lo=lo
10428:
10429: php_build_target=program
10430:
10431: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
10432: php_build_target=static
10433: ;;
10434: shared)
10435:
10436: OVERALL_TARGET=php
10437: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
10438: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
10439: php_c_post=
10440: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
10441: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
10442: php_cxx_post=
10443: php_lo=lo
10444:
10445: case $with_pic in
10446: yes) pic_setting='-prefer-pic';;
10447: no) pic_setting='-prefer-non-pic';;
10448: esac
10449:
10450: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
10451: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
10452: shared_c_post=
10453: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
10454: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
10455: shared_cxx_post=
10456: shared_lo=lo
10457:
10458: php_build_target=program
10459:
10460: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
10461: php_build_target=shared
10462:
10463: php_c_pre=$shared_c_pre
10464: php_c_meta=$shared_c_meta
10465: php_c_post=$shared_c_post
10466: php_cxx_pre=$shared_cxx_pre
10467: php_cxx_meta=$shared_cxx_meta
10468: php_cxx_post=$shared_cxx_post
10469: php_lo=$shared_lo
10470: ;;
10471: bundle)
10472:
10473: OVERALL_TARGET=php
10474: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
10475: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
10476: php_c_post=
10477: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
10478: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
10479: php_cxx_post=
10480: php_lo=lo
10481:
10482: case $with_pic in
10483: yes) pic_setting='-prefer-pic';;
10484: no) pic_setting='-prefer-non-pic';;
10485: esac
10486:
10487: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
10488: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
10489: shared_c_post=
10490: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
10491: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
10492: shared_cxx_post=
10493: shared_lo=lo
10494:
10495: php_build_target=program
10496:
10497: OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
10498: php_build_target=static
10499: ;;
10500: program)
10501: OVERALL_TARGET=php
10502: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
10503: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
10504: php_c_post=
10505: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
10506: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
10507: php_cxx_post=
10508: php_lo=lo
10509:
10510: case $with_pic in
10511: yes) pic_setting='-prefer-pic';;
10512: no) pic_setting='-prefer-non-pic';;
10513: esac
10514:
10515: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
10516: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
10517: shared_c_post=
10518: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
10519: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
10520: shared_cxx_post=
10521: shared_lo=lo
10522:
10523: php_build_target=program
10524: ;;
10525: esac
10526:
10527:
10528:
10529: case sapi/apache_hooks in
10530: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
10531: /*) ac_srcdir=`echo "sapi/apache_hooks"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
10532: *) ac_srcdir="$abs_srcdir/sapi/apache_hooks/"; ac_bdir="sapi/apache_hooks/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
10533: esac
10534:
10535:
10536:
10537: b_c_pre=$php_c_pre
10538: b_cxx_pre=$php_cxx_pre
10539: b_c_meta=$php_c_meta
10540: b_cxx_meta=$php_cxx_meta
10541: b_c_post=$php_c_post
10542: b_cxx_post=$php_cxx_post
10543: b_lo=$php_lo
10544:
10545:
10546: old_IFS=$IFS
10547: for ac_src in sapi_apache.c mod_php5.c php_apache.c; do
10548:
10549: IFS=.
10550: set $ac_src
10551: ac_obj=$1
10552: IFS=$old_IFS
10553:
10554: PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
10555:
10556: case $ac_src in
10557: *.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" ;;
10558: *.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" ;;
10559: *.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" ;;
10560: *.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" ;;
10561: esac
10562:
10563: cat >>Makefile.objects<<EOF
10564: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
10565: $ac_comp
10566: EOF
10567: done
10568:
10569:
10570:
10571: PHP_LIBS="-Lmodules/php5 -L../modules/php5 -L../../modules/php5 -lmodphp5"
10572: 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"
10573: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - Apache 1.3.x" >&5
10574: $as_echo "yes - Apache 1.3.x" >&6; }
10575: STRONGHOLD=
10576: if test -f $PHP_APACHE_HOOKS_STATIC/src/include/ap_config.h; then
10577:
10578: $as_echo "#define HAVE_AP_CONFIG_H 1" >>confdefs.h
10579:
10580: fi
10581: if test -f $PHP_APACHE_HOOKS_STATIC/src/include/ap_compat.h; then
10582:
10583: $as_echo "#define HAVE_AP_COMPAT_H 1" >>confdefs.h
10584:
10585: if test ! -f $PHP_APACHE_HOOKS_STATIC/src/include/ap_config_auto.h; then
10586: as_fn_error $? "Please run Apache\'s configure or src/Configure program once and try again" "$LINENO" 5
10587: fi
10588: elif test -f $PHP_APACHE_HOOKS_STATIC/src/include/compat.h; then
10589:
10590: $as_echo "#define HAVE_OLD_COMPAT_H 1" >>confdefs.h
10591:
10592: fi
10593: # For StrongHold 2.2
10594: elif test -f $PHP_APACHE_HOOKS_STATIC/apache/httpd.h; then
10595: APACHE_INCLUDE="-I$PHP_APACHE_HOOKS_STATIC/apache -I$PHP_APACHE_HOOKS_STATIC/ssl/include"
10596: APACHE_TARGET=$PHP_APACHE_HOOKS_STATIC/apache
10597:
10598: if test "$PHP_SAPI" != "default"; then
10599: as_fn_error $? "
10600: +--------------------------------------------------------------------+
10601: | *** ATTENTION *** |
10602: | |
10603: | You've configured multiple SAPIs to be build. You can build only |
10604: | one SAPI module and CLI binary at the same time. |
10605: +--------------------------------------------------------------------+
10606: " "$LINENO" 5
10607: fi
10608:
10609: PHP_SAPI=apache_hooks
10610:
10611: case "static" in
10612: static)
10613:
10614: OVERALL_TARGET=php
10615: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
10616: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
10617: php_c_post=
10618: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
10619: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
10620: php_cxx_post=
10621: php_lo=lo
10622:
10623: case $with_pic in
10624: yes) pic_setting='-prefer-pic';;
10625: no) pic_setting='-prefer-non-pic';;
10626: esac
10627:
10628: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
10629: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
10630: shared_c_post=
10631: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
10632: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
10633: shared_cxx_post=
10634: shared_lo=lo
10635:
10636: php_build_target=program
10637:
10638: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
10639: php_build_target=static
10640: ;;
10641: shared)
10642:
10643: OVERALL_TARGET=php
10644: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
10645: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
10646: php_c_post=
10647: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
10648: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
10649: php_cxx_post=
10650: php_lo=lo
10651:
10652: case $with_pic in
10653: yes) pic_setting='-prefer-pic';;
10654: no) pic_setting='-prefer-non-pic';;
10655: esac
10656:
10657: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
10658: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
10659: shared_c_post=
10660: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
10661: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
10662: shared_cxx_post=
10663: shared_lo=lo
10664:
10665: php_build_target=program
10666:
10667: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
10668: php_build_target=shared
10669:
10670: php_c_pre=$shared_c_pre
10671: php_c_meta=$shared_c_meta
10672: php_c_post=$shared_c_post
10673: php_cxx_pre=$shared_cxx_pre
10674: php_cxx_meta=$shared_cxx_meta
10675: php_cxx_post=$shared_cxx_post
10676: php_lo=$shared_lo
10677: ;;
10678: bundle)
10679:
10680: OVERALL_TARGET=php
10681: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
10682: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
10683: php_c_post=
10684: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
10685: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
10686: php_cxx_post=
10687: php_lo=lo
10688:
10689: case $with_pic in
10690: yes) pic_setting='-prefer-pic';;
10691: no) pic_setting='-prefer-non-pic';;
10692: esac
10693:
10694: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
10695: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
10696: shared_c_post=
10697: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
10698: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
10699: shared_cxx_post=
10700: shared_lo=lo
10701:
10702: php_build_target=program
10703:
10704: OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
10705: php_build_target=static
10706: ;;
10707: program)
10708: OVERALL_TARGET=php
10709: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
10710: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
10711: php_c_post=
10712: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
10713: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
10714: php_cxx_post=
10715: php_lo=lo
10716:
10717: case $with_pic in
10718: yes) pic_setting='-prefer-pic';;
10719: no) pic_setting='-prefer-non-pic';;
10720: esac
10721:
10722: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
10723: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
10724: shared_c_post=
10725: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
10726: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
10727: shared_cxx_post=
10728: shared_lo=lo
10729:
10730: php_build_target=program
10731: ;;
10732: esac
10733:
10734:
10735:
10736: case sapi/apache_hooks in
10737: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
10738: /*) ac_srcdir=`echo "sapi/apache_hooks"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
10739: *) ac_srcdir="$abs_srcdir/sapi/apache_hooks/"; ac_bdir="sapi/apache_hooks/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
10740: esac
10741:
10742:
10743:
10744: b_c_pre=$php_c_pre
10745: b_cxx_pre=$php_cxx_pre
10746: b_c_meta=$php_c_meta
10747: b_cxx_meta=$php_cxx_meta
10748: b_c_post=$php_c_post
10749: b_cxx_post=$php_cxx_post
10750: b_lo=$php_lo
10751:
10752:
10753: old_IFS=$IFS
10754: for ac_src in sapi_apache.c mod_php5.c php_apache.c; do
10755:
10756: IFS=.
10757: set $ac_src
10758: ac_obj=$1
10759: IFS=$old_IFS
10760:
10761: PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
10762:
10763: case $ac_src in
10764: *.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" ;;
10765: *.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" ;;
10766: *.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" ;;
10767: *.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" ;;
10768: esac
10769:
10770: cat >>Makefile.objects<<EOF
10771: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
10772: $ac_comp
10773: EOF
10774: done
10775:
10776:
10777:
10778: PHP_LIBS="-Lmodules/php5 -L../modules/php5 -L../../modules/php5 -lmodphp5"
10779: APACHE_HOOKS_INSTALL="mkdir -p $APACHE_TARGET; cp $SAPI_STATIC $APACHE_TARGET/libmodphp5.a; cp $APACHE_HOOKS_INSTALL_FILES $APACHE_TARGET"
10780: STRONGHOLD=-DSTRONGHOLD=1
10781: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - StrongHold" >&5
10782: $as_echo "yes - StrongHold" >&6; }
10783: if test -f $PHP_APACHE_HOOKS_STATIC/apache/ap_config.h; then
10784:
10785: $as_echo "#define HAVE_AP_CONFIG_H 1" >>confdefs.h
10786:
10787: fi
10788: if test -f $PHP_APACHE_HOOKS_STATIC/src/ap_compat.h; then
10789:
10790: $as_echo "#define HAVE_AP_COMPAT_H 1" >>confdefs.h
10791:
10792: if test ! -f $PHP_APACHE_HOOKS_STATIC/src/include/ap_config_auto.h; then
10793: as_fn_error $? "Please run Apache\'s configure or src/Configure program once and try again" "$LINENO" 5
10794: fi
10795: elif test -f $PHP_APACHE_HOOKS_STATIC/src/compat.h; then
10796:
10797: $as_echo "#define HAVE_OLD_COMPAT_H 1" >>confdefs.h
10798:
10799: fi
10800: else
10801: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10802: $as_echo "no" >&6; }
10803: as_fn_error $? "Invalid Apache directory - unable to find httpd.h under $PHP_APACHE_HOOKS_STATIC" "$LINENO" 5
10804: fi
10805: else
10806: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10807: $as_echo "no" >&6; }
10808: fi
10809:
10810: # compatibility
10811: if test -z "$enable_mod_charset" && test "$with_mod_charset"; then
10812: enable_mod_charset=$with_mod_charset
10813: fi
10814:
10815:
10816: php_enable_mod_charset=no
10817:
10818: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Apache charset compatibility option" >&5
10819: $as_echo_n "checking whether to enable Apache charset compatibility option... " >&6; }
10820: # Check whether --enable-mod-charset was given.
10821: if test "${enable_mod_charset+set}" = set; then :
10822: enableval=$enable_mod_charset; PHP_MOD_CHARSET=$enableval
10823: else
10824:
10825: PHP_MOD_CHARSET=no
10826:
10827:
10828: fi
10829:
10830:
10831: ext_output=$PHP_MOD_CHARSET
10832: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
10833: $as_echo "$ext_output" >&6; }
10834:
10835:
10836:
10837:
10838: if test "$PHP_MOD_CHARSET" = "yes"; then
10839:
10840: $as_echo "#define USE_TRANSFER_TABLES 1" >>confdefs.h
10841:
10842: fi
10843:
10844: if test "$APACHE_HOOKS_MODULE" = "yes"; then
10845:
10846: if test -n "$GCC"; then
10847:
10848: gcc_arg_name=ac_cv_gcc_arg_rdynamic
10849: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -rdynamic" >&5
10850: $as_echo_n "checking whether $CC supports -rdynamic... " >&6; }
10851: if ${ac_cv_gcc_arg_rdynamic+:} false; then :
10852: $as_echo_n "(cached) " >&6
10853: else
10854:
10855: echo 'void somefunc() { };' > conftest.c
10856: cmd='$CC -rdynamic -c conftest.c'
10857: if eval $cmd 2>&1 | $EGREP -e -rdynamic >/dev/null ; then
10858: ac_result=no
10859: else
10860: ac_result=yes
10861: fi
10862: eval $gcc_arg_name=$ac_result
10863: rm -f conftest.*
10864:
10865: fi
10866: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_arg_rdynamic" >&5
10867: $as_echo "$ac_cv_gcc_arg_rdynamic" >&6; }
10868: if eval test "\$$gcc_arg_name" = "yes"; then
10869: gcc_rdynamic=yes
10870: else
10871: :
10872:
10873: fi
10874:
10875: if test "$gcc_rdynamic" = "yes"; then
10876: PHP_LDFLAGS="$PHP_LDFLAGS -rdynamic"
10877: fi
10878: fi
10879:
10880: $php_shtool mkdir -p sapi/apache_hooks
10881:
10882: PHP_OUTPUT_FILES="$PHP_OUTPUT_FILES sapi/apache_hooks/libphp5.module"
10883:
10884: fi
10885:
10886: if test -n "$APACHE_HOOKS_INSTALL"; then
10887: if test "x$APXS" != "x" -a "`uname -sv`" = "AIX 4" -a "$GCC" != "yes"; then
10888: APXS_EXP=-bE:sapi/apache_hooks/mod_php5.exp
10889: fi
10890:
10891:
10892: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member fd in BUFF *" >&5
10893: $as_echo_n "checking for member fd in BUFF *... " >&6; }
10894: if ${ac_cv_php_fd_in_buff+:} false; then :
10895: $as_echo_n "(cached) " >&6
10896: else
10897:
10898: save=$CPPFLAGS
10899: if test -n "$APXS_INCLUDEDIR"; then
10900: CPPFLAGS="$CPPFLAGS -I$APXS_INCLUDEDIR"
10901: else
10902: CPPFLAGS="$CPPFLAGS $APACHE_INCLUDE"
10903: fi
10904: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10905: /* end confdefs.h. */
10906: #include <httpd.h>
10907: int
10908: main ()
10909: {
10910: conn_rec *c; int fd = c->client->fd;
10911: ;
10912: return 0;
10913: }
10914: _ACEOF
10915: if ac_fn_c_try_compile "$LINENO"; then :
10916:
10917: ac_cv_php_fd_in_buff=yes
10918: else
10919: ac_cv_php_fd_in_buff=no
10920: fi
10921: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10922: CPPFLAGS=$save
10923:
10924: fi
10925: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_php_fd_in_buff" >&5
10926: $as_echo "$ac_cv_php_fd_in_buff" >&6; }
10927: if test "$ac_cv_php_fd_in_buff" = "yes"; then
10928:
10929: $as_echo "#define PHP_APACHE_HAVE_CLIENT_FD 1" >>confdefs.h
10930:
10931: fi
10932:
10933: INSTALL_IT=$APACHE_HOOKS_INSTALL
10934:
10935:
10936: PHP_VAR_SUBST="$PHP_VAR_SUBST APXS_EXP"
10937:
10938:
10939: PHP_VAR_SUBST="$PHP_VAR_SUBST APACHE_INCLUDE"
10940:
10941:
10942: PHP_VAR_SUBST="$PHP_VAR_SUBST APACHE_TARGET"
10943:
10944:
10945: PHP_VAR_SUBST="$PHP_VAR_SUBST APXS"
10946:
10947:
10948: PHP_VAR_SUBST="$PHP_VAR_SUBST APXS_LDFLAGS"
10949:
10950:
10951: PHP_VAR_SUBST="$PHP_VAR_SUBST APACHE_HOOKS_INSTALL"
10952:
10953:
10954: PHP_VAR_SUBST="$PHP_VAR_SUBST STRONGHOLD"
10955:
10956: fi
10957:
10958:
10959:
10960: RESULT=no
10961:
10962: php_with_caudium=no
10963:
10964:
10965:
10966: # Check whether --with-caudium was given.
10967: if test "${with_caudium+set}" = set; then :
10968: withval=$with_caudium; PHP_CAUDIUM=$withval
10969: else
10970:
10971: PHP_CAUDIUM=no
10972:
10973:
10974: fi
10975:
10976:
10977: ext_output=$PHP_CAUDIUM
10978:
10979:
10980:
10981:
10982:
10983: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Caudium support" >&5
10984: $as_echo_n "checking for Caudium support... " >&6; }
10985:
10986: if test "$PHP_CAUDIUM" != "no"; then
10987: if test "$prefix" = "NONE"; then CPREF=/usr/local/; fi
10988: if test ! -d $PHP_CAUDIUM ; then
10989: if test "$prefix" = "NONE"; then
10990: PHP_CAUDIUM=/usr/local/caudium/server/
10991: else
10992: PHP_CAUDIUM=$prefix/caudium/server/
10993: fi
10994: fi
10995: if test -f $PHP_CAUDIUM/bin/caudium; then
10996: PIKE=$PHP_CAUDIUM/bin/caudium
10997: elif test -f $PHP_CAUDIUM/bin/pike; then
10998: PIKE=$PHP_CAUDIUM/bin/pike
10999: else
11000: as_fn_error $? "Could not find a pike in $PHP_CAUDIUM/bin/" "$LINENO" 5
11001: fi
11002: 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
11003: PIKE_MODULE_DIR=`$PIKE --show-paths 2>&1| grep '^Module' | sed -e 's/.*: //'`
11004: PIKE_INCLUDE_DIR=`echo $PIKE_MODULE_DIR | sed -e 's,lib/pike/modules,include/pike,' -e 's,lib/modules,include/pike,' `
11005: if test -z "$PIKE_INCLUDE_DIR" || test -z "$PIKE_MODULE_DIR"; then
11006: as_fn_error $? "Failed to figure out Pike module and include directories" "$LINENO" 5
11007: fi
11008: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11009: $as_echo "yes" >&6; }
11010: PIKE=`echo $PIKE | pike -e 'int tries=100;
11011: string orig,pike=Stdio.File("stdin")->read()-"\n";
11012: orig=pike;
11013: if(search(orig, "/"))
11014: orig = combine_path(getcwd(), orig);
11015: while(!catch(pike=readlink(pike)) && tries--)
11016: ;
11017: write(combine_path(dirname(orig), pike)); '`
11018:
11019: if test "$PIKE_INCLUDE_DIR" != "/usr/include"; then
11020:
11021: if test -z "$PIKE_INCLUDE_DIR" || echo "$PIKE_INCLUDE_DIR" | grep '^/' >/dev/null ; then
11022: ai_p=$PIKE_INCLUDE_DIR
11023: else
11024:
11025: ep_dir="`echo $PIKE_INCLUDE_DIR|$SED 's%/*[^/][^/]*/*$%%'`"
11026:
11027: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
11028: ai_p="$ep_realdir/`basename \"$PIKE_INCLUDE_DIR\"`"
11029: fi
11030:
11031:
11032:
11033: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
11034:
11035: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
11036: if test -n "$unique" && test "`eval $cmd`" = "" ; then
11037: eval "INCLUDEPATH$unique=set"
11038:
11039: if test ""; then
11040: INCLUDES="-I$ai_p $INCLUDES"
11041: else
11042: INCLUDES="$INCLUDES -I$ai_p"
11043: fi
11044:
11045: fi
11046:
11047: fi
11048:
11049: if test "$prefix" != "NONE"; then
11050: PIKE_C_INCLUDE=$prefix/include/`basename $PIKE`
11051: else
11052: PIKE_C_INCLUDE=/usr/local/include/`basename $PIKE`
11053: fi
11054: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C includes in $PIKE_C_INCLUDE" >&5
11055: $as_echo_n "checking for C includes in $PIKE_C_INCLUDE... " >&6; }
11056: if test -f $PIKE_C_INCLUDE/version.h; then
11057: PIKE_TEST_VER=`$PIKE -e 'string v; int rel;sscanf(version(), "Pike v%s release %d", v, rel); write(v+"."+rel);'`
11058: ###### VERSION MATCH CHECK #######
11059: PMAJOR="^#define PIKE_MAJOR_VERSION"
11060: PMINOR="^#define PIKE_MINOR_VERSION"
11061: PBUILD="^#define PIKE_BUILD_VERSION"
11062:
11063: PIKE_CMAJOR_VERSION=0
11064: PIKE_CMINOR_VERSION=0
11065: PIKE_CBUILD_VERSION=0
11066:
11067: PIKE_CMAJOR_VERSION=`grep "$PMAJOR" $PIKE_C_INCLUDE/version.h | sed -e 's/\(#define.*N \)\(.*\)/\2/'`
11068: if test -z "$PIKE_CMAJOR_VERSION"; then
11069: if test -n "`grep f_version $PIKE_C_INCLUDE/version.h`"; then
11070: PIKE_CMAJOR_VERSION=6
11071: fi
11072: else
11073: PIKE_CMINOR_VERSION=`grep "$PMINOR" $PIKE_C_INCLUDE/version.h | sed -e 's/\(#define.*N \)\(.*\)/\2/'`
11074: PIKE_CBUILD_VERSION=`grep "$PBUILD" $PIKE_C_INCLUDE/version.h | sed -e 's/\(#define.*N \)\(.*\)/\2/'`
11075: fi
11076:
11077: if test "$PIKE_TEST_VER" = "${PIKE_CMAJOR_VERSION}.${PIKE_CMINOR_VERSION}.${PIKE_CBUILD_VERSION}"; then
11078:
11079: if test "$PIKE_C_INCLUDE" != "/usr/include"; then
11080:
11081: if test -z "$PIKE_C_INCLUDE" || echo "$PIKE_C_INCLUDE" | grep '^/' >/dev/null ; then
11082: ai_p=$PIKE_C_INCLUDE
11083: else
11084:
11085: ep_dir="`echo $PIKE_C_INCLUDE|$SED 's%/*[^/][^/]*/*$%%'`"
11086:
11087: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
11088: ai_p="$ep_realdir/`basename \"$PIKE_C_INCLUDE\"`"
11089: fi
11090:
11091:
11092:
11093: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
11094:
11095: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
11096: if test -n "$unique" && test "`eval $cmd`" = "" ; then
11097: eval "INCLUDEPATH$unique=set"
11098:
11099: if test ""; then
11100: INCLUDES="-I$ai_p $INCLUDES"
11101: else
11102: INCLUDES="$INCLUDES -I$ai_p"
11103: fi
11104:
11105: fi
11106:
11107: fi
11108:
11109: PIKE_INCLUDE_DIR="$PIKE_INCLUDE_DIR, $PIKE_C_INCLUDE"
11110: { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
11111: $as_echo "found" >&6; }
11112: else
11113: { $as_echo "$as_me:${as_lineno-$LINENO}: result: version mismatch" >&5
11114: $as_echo "version mismatch" >&6; }
11115: fi
11116: else
11117: { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11118: $as_echo "not found" >&6; }
11119: fi
11120: else
11121: as_fn_error $? "Caudium PHP5 requires Pike 7.0 or newer" "$LINENO" 5
11122: fi
11123: PIKE_VERSION=`$PIKE -e 'string v; int rel;sscanf(version(), "Pike v%s release %d", v, rel); write(v+"."+rel);'`
11124:
11125: $as_echo "#define HAVE_CAUDIUM 1" >>confdefs.h
11126:
11127:
11128: if test "$PHP_SAPI" != "default"; then
11129: as_fn_error $? "
11130: +--------------------------------------------------------------------+
11131: | *** ATTENTION *** |
11132: | |
11133: | You've configured multiple SAPIs to be build. You can build only |
11134: | one SAPI module and CLI binary at the same time. |
11135: +--------------------------------------------------------------------+
11136: " "$LINENO" 5
11137: fi
11138:
11139: PHP_SAPI=caudium
11140:
11141: case "shared" in
11142: static)
11143:
11144: OVERALL_TARGET=php
11145: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
11146: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
11147: php_c_post=
11148: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
11149: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
11150: php_cxx_post=
11151: php_lo=lo
11152:
11153: case $with_pic in
11154: yes) pic_setting='-prefer-pic';;
11155: no) pic_setting='-prefer-non-pic';;
11156: esac
11157:
11158: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
11159: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
11160: shared_c_post=
11161: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
11162: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
11163: shared_cxx_post=
11164: shared_lo=lo
11165:
11166: php_build_target=program
11167:
11168: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
11169: php_build_target=static
11170: ;;
11171: shared)
11172:
11173: OVERALL_TARGET=php
11174: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
11175: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
11176: php_c_post=
11177: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
11178: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
11179: php_cxx_post=
11180: php_lo=lo
11181:
11182: case $with_pic in
11183: yes) pic_setting='-prefer-pic';;
11184: no) pic_setting='-prefer-non-pic';;
11185: esac
11186:
11187: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
11188: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
11189: shared_c_post=
11190: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
11191: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
11192: shared_cxx_post=
11193: shared_lo=lo
11194:
11195: php_build_target=program
11196:
11197: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
11198: php_build_target=shared
11199:
11200: php_c_pre=$shared_c_pre
11201: php_c_meta=$shared_c_meta
11202: php_c_post=$shared_c_post
11203: php_cxx_pre=$shared_cxx_pre
11204: php_cxx_meta=$shared_cxx_meta
11205: php_cxx_post=$shared_cxx_post
11206: php_lo=$shared_lo
11207: ;;
11208: bundle)
11209:
11210: OVERALL_TARGET=php
11211: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
11212: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
11213: php_c_post=
11214: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
11215: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
11216: php_cxx_post=
11217: php_lo=lo
11218:
11219: case $with_pic in
11220: yes) pic_setting='-prefer-pic';;
11221: no) pic_setting='-prefer-non-pic';;
11222: esac
11223:
11224: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
11225: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
11226: shared_c_post=
11227: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
11228: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
11229: shared_cxx_post=
11230: shared_lo=lo
11231:
11232: php_build_target=program
11233:
11234: OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
11235: php_build_target=static
11236: ;;
11237: program)
11238: OVERALL_TARGET=php
11239: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
11240: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
11241: php_c_post=
11242: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
11243: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
11244: php_cxx_post=
11245: php_lo=lo
11246:
11247: case $with_pic in
11248: yes) pic_setting='-prefer-pic';;
11249: no) pic_setting='-prefer-non-pic';;
11250: esac
11251:
11252: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
11253: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
11254: shared_c_post=
11255: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
11256: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
11257: shared_cxx_post=
11258: shared_lo=lo
11259:
11260: php_build_target=program
11261: ;;
11262: esac
11263:
11264:
11265:
11266: case sapi/caudium in
11267: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
11268: /*) ac_srcdir=`echo "sapi/caudium"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
11269: *) ac_srcdir="$abs_srcdir/sapi/caudium/"; ac_bdir="sapi/caudium/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
11270: esac
11271:
11272:
11273:
11274: b_c_pre=$php_c_pre
11275: b_cxx_pre=$php_cxx_pre
11276: b_c_meta=$php_c_meta
11277: b_cxx_meta=$php_cxx_meta
11278: b_c_post=$php_c_post
11279: b_cxx_post=$php_cxx_post
11280: b_lo=$php_lo
11281:
11282:
11283: old_IFS=$IFS
11284: for ac_src in caudium.c; do
11285:
11286: IFS=.
11287: set $ac_src
11288: ac_obj=$1
11289: IFS=$old_IFS
11290:
11291: PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
11292:
11293: case $ac_src in
11294: *.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" ;;
11295: *.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" ;;
11296: *.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" ;;
11297: *.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" ;;
11298: esac
11299:
11300: cat >>Makefile.objects<<EOF
11301: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
11302: $ac_comp
11303: EOF
11304: done
11305:
11306:
11307:
11308: INSTALL_IT="\$(INSTALL) -m 0755 $SAPI_SHARED $PHP_CAUDIUM/lib/$PIKE_VERSION/PHP5.so"
11309: RESULT=" *** Pike binary used: $PIKE
11310: *** Pike include dir(s) used: $PIKE_INCLUDE_DIR
11311: *** Pike version: $PIKE_VERSION"
11312:
11313: enable_maintainer_zts=yes
11314: if test "$pthreads_working" != "yes"; then
11315: as_fn_error $? "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5
11316: fi
11317:
11318: fi
11319: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RESULT" >&5
11320: $as_echo "$RESULT" >&6; }
11321:
11322:
11323:
11324:
11325: php_enable_cli=yes
11326:
11327:
11328: # Check whether --enable-cli was given.
11329: if test "${enable_cli+set}" = set; then :
11330: enableval=$enable_cli; PHP_CLI=$enableval
11331: else
11332:
11333: PHP_CLI=yes
11334:
11335:
11336: fi
11337:
11338:
11339: ext_output=$PHP_CLI
11340:
11341:
11342:
11343:
11344:
11345: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CLI build" >&5
11346: $as_echo_n "checking for CLI build... " >&6; }
11347: if test "$PHP_CLI" != "no"; then
11348:
11349: src=$abs_srcdir/sapi/cli/Makefile.frag
11350: ac_srcdir=$abs_srcdir/sapi/cli
11351: ac_builddir=sapi/cli
11352: test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments
11353:
11354: SAPI_CLI_PATH=sapi/cli/php
11355:
11356: PHP_VAR_SUBST="$PHP_VAR_SUBST SAPI_CLI_PATH"
11357:
11358:
11359: case $host_alias in
11360: *aix*)
11361: if test "$php_build_target" = "shared"; then
11362: BUILD_CLI="echo '\#! .' > php.sym && echo >>php.sym && nm -BCpg \`echo \$(PHP_GLOBAL_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)"
11363: else
11364: BUILD_CLI="echo '\#! .' > php.sym && echo >>php.sym && nm -BCpg \`echo \$(PHP_GLOBAL_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)"
11365: fi
11366: ;;
11367: *darwin*)
11368: BUILD_CLI="\$(CC) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(NATIVE_RPATHS) \$(PHP_GLOBAL_OBJS:.lo=.o) \$(PHP_CLI_OBJS:.lo=.o) \$(PHP_FRAMEWORKS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_CLI_PATH)"
11369: ;;
11370: *netware*)
11371: BUILD_CLI="\$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(PHP_RPATHS) \$(PHP_CLI_OBJS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -Lnetware -lphp5lib -o \$(SAPI_CLI_PATH)"
11372: ;;
11373: *)
11374: BUILD_CLI="\$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_CLI_OBJS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_CLI_PATH)"
11375: ;;
11376: esac
11377: INSTALL_CLI="\$(mkinstalldirs) \$(INSTALL_ROOT)\$(bindir); \$(INSTALL) -m 0755 \$(SAPI_CLI_PATH) \$(INSTALL_ROOT)\$(bindir)/\$(program_prefix)php\$(program_suffix)\$(EXEEXT)"
11378:
11379:
11380: PHP_VAR_SUBST="$PHP_VAR_SUBST BUILD_CLI"
11381:
11382:
11383: PHP_VAR_SUBST="$PHP_VAR_SUBST INSTALL_CLI"
11384:
11385:
11386: PHP_OUTPUT_FILES="$PHP_OUTPUT_FILES sapi/cli/php.1"
11387:
11388: fi
11389: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_CLI" >&5
11390: $as_echo "$PHP_CLI" >&6; }
11391:
11392:
11393:
11394: php_with_continuity=no
11395:
11396: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Continuity support" >&5
11397: $as_echo_n "checking for Continuity support... " >&6; }
11398:
11399: # Check whether --with-continuity was given.
11400: if test "${with_continuity+set}" = set; then :
11401: withval=$with_continuity; PHP_CONTINUITY=$withval
11402: else
11403:
11404: PHP_CONTINUITY=no
11405:
11406:
11407: fi
11408:
11409:
11410: ext_output=$PHP_CONTINUITY
11411: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
11412: $as_echo "$ext_output" >&6; }
11413:
11414:
11415:
11416:
11417: if test "$PHP_CONTINUITY" != "no"; then
11418: if test ! -d $PHP_CONTINUITY; then
11419: as_fn_error $? "Please specify the path to the root of your Continuity server using --with-continuity=DIR" "$LINENO" 5
11420: fi
11421: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Continuity include files" >&5
11422: $as_echo_n "checking for Continuity include files... " >&6; }
11423: if test -d $PHP_CONTINUITY/include ; then
11424: CAPI_INCLUDE=$PHP_CONTINUITY/include
11425: { $as_echo "$as_me:${as_lineno-$LINENO}: result: Continuity Binary Distribution" >&5
11426: $as_echo "Continuity Binary Distribution" >&6; }
11427: else
11428: as_fn_error $? "Cannot find your CAPI include files in either DIR/src or DIR/include" "$LINENO" 5
11429: fi
11430:
11431:
11432: if test "$PHP_SAPI" != "default"; then
11433: as_fn_error $? "
11434: +--------------------------------------------------------------------+
11435: | *** ATTENTION *** |
11436: | |
11437: | You've configured multiple SAPIs to be build. You can build only |
11438: | one SAPI module and CLI binary at the same time. |
11439: +--------------------------------------------------------------------+
11440: " "$LINENO" 5
11441: fi
11442:
11443: PHP_SAPI=continuity
11444:
11445: case "shared" in
11446: static)
11447:
11448: OVERALL_TARGET=php
11449: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
11450: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
11451: php_c_post=
11452: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
11453: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
11454: php_cxx_post=
11455: php_lo=lo
11456:
11457: case $with_pic in
11458: yes) pic_setting='-prefer-pic';;
11459: no) pic_setting='-prefer-non-pic';;
11460: esac
11461:
11462: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
11463: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
11464: shared_c_post=
11465: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
11466: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
11467: shared_cxx_post=
11468: shared_lo=lo
11469:
11470: php_build_target=program
11471:
11472: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
11473: php_build_target=static
11474: ;;
11475: shared)
11476:
11477: OVERALL_TARGET=php
11478: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
11479: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
11480: php_c_post=
11481: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
11482: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
11483: php_cxx_post=
11484: php_lo=lo
11485:
11486: case $with_pic in
11487: yes) pic_setting='-prefer-pic';;
11488: no) pic_setting='-prefer-non-pic';;
11489: esac
11490:
11491: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
11492: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
11493: shared_c_post=
11494: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
11495: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
11496: shared_cxx_post=
11497: shared_lo=lo
11498:
11499: php_build_target=program
11500:
11501: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
11502: php_build_target=shared
11503:
11504: php_c_pre=$shared_c_pre
11505: php_c_meta=$shared_c_meta
11506: php_c_post=$shared_c_post
11507: php_cxx_pre=$shared_cxx_pre
11508: php_cxx_meta=$shared_cxx_meta
11509: php_cxx_post=$shared_cxx_post
11510: php_lo=$shared_lo
11511: ;;
11512: bundle)
11513:
11514: OVERALL_TARGET=php
11515: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
11516: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
11517: php_c_post=
11518: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
11519: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
11520: php_cxx_post=
11521: php_lo=lo
11522:
11523: case $with_pic in
11524: yes) pic_setting='-prefer-pic';;
11525: no) pic_setting='-prefer-non-pic';;
11526: esac
11527:
11528: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
11529: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
11530: shared_c_post=
11531: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
11532: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
11533: shared_cxx_post=
11534: shared_lo=lo
11535:
11536: php_build_target=program
11537:
11538: OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
11539: php_build_target=static
11540: ;;
11541: program)
11542: OVERALL_TARGET=php
11543: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
11544: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
11545: php_c_post=
11546: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
11547: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
11548: php_cxx_post=
11549: php_lo=lo
11550:
11551: case $with_pic in
11552: yes) pic_setting='-prefer-pic';;
11553: no) pic_setting='-prefer-non-pic';;
11554: esac
11555:
11556: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
11557: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
11558: shared_c_post=
11559: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
11560: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
11561: shared_cxx_post=
11562: shared_lo=lo
11563:
11564: php_build_target=program
11565: ;;
11566: esac
11567:
11568:
11569:
11570: case sapi/continuity in
11571: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
11572: /*) ac_srcdir=`echo "sapi/continuity"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
11573: *) ac_srcdir="$abs_srcdir/sapi/continuity/"; ac_bdir="sapi/continuity/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
11574: esac
11575:
11576:
11577:
11578: b_c_pre=$php_c_pre
11579: b_cxx_pre=$php_cxx_pre
11580: b_c_meta=$php_c_meta
11581: b_cxx_meta=$php_cxx_meta
11582: b_c_post=$php_c_post
11583: b_cxx_post=$php_cxx_post
11584: b_lo=$php_lo
11585:
11586:
11587: old_IFS=$IFS
11588: for ac_src in capi.c; do
11589:
11590: IFS=.
11591: set $ac_src
11592: ac_obj=$1
11593: IFS=$old_IFS
11594:
11595: PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
11596:
11597: case $ac_src in
11598: *.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" ;;
11599: *.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" ;;
11600: *.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" ;;
11601: *.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" ;;
11602: esac
11603:
11604: cat >>Makefile.objects<<EOF
11605: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
11606: $ac_comp
11607: EOF
11608: done
11609:
11610:
11611:
11612:
11613: if test "$CAPI_INCLUDE" != "/usr/include"; then
11614:
11615: if test -z "$CAPI_INCLUDE" || echo "$CAPI_INCLUDE" | grep '^/' >/dev/null ; then
11616: ai_p=$CAPI_INCLUDE
11617: else
11618:
11619: ep_dir="`echo $CAPI_INCLUDE|$SED 's%/*[^/][^/]*/*$%%'`"
11620:
11621: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
11622: ai_p="$ep_realdir/`basename \"$CAPI_INCLUDE\"`"
11623: fi
11624:
11625:
11626:
11627: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
11628:
11629: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
11630: if test -n "$unique" && test "`eval $cmd`" = "" ; then
11631: eval "INCLUDEPATH$unique=set"
11632:
11633: if test ""; then
11634: INCLUDES="-I$ai_p $INCLUDES"
11635: else
11636: INCLUDES="$INCLUDES -I$ai_p"
11637: fi
11638:
11639: fi
11640:
11641: fi
11642:
11643:
11644: enable_maintainer_zts=yes
11645: if test "$pthreads_working" != "yes"; then
11646: as_fn_error $? "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5
11647: fi
11648:
11649:
11650: $as_echo "#define HAVE_CONTINUITY 1" >>confdefs.h
11651:
11652: INSTALL_IT="\$(INSTALL) -m 0755 $SAPI_SHARED \$(INSTALL_ROOT)$PHP_CONTINUITY/lib/"
11653: fi
11654:
11655:
11656:
11657:
11658: php_enable_embed=no
11659:
11660:
11661: # Check whether --enable-embed was given.
11662: if test "${enable_embed+set}" = set; then :
11663: enableval=$enable_embed; PHP_EMBED=$enableval
11664: else
11665:
11666: PHP_EMBED=no
11667:
11668:
11669: fi
11670:
11671:
11672: ext_output=$PHP_EMBED
11673:
11674:
11675:
11676:
11677:
11678: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for embedded SAPI library support" >&5
11679: $as_echo_n "checking for embedded SAPI library support... " >&6; }
11680:
11681: if test "$PHP_EMBED" != "no"; then
11682: case "$PHP_EMBED" in
11683: yes|shared)
11684: PHP_EMBED_TYPE=shared
11685: INSTALL_IT="\$(mkinstalldirs) \$(INSTALL_ROOT)\$(prefix)/lib; \$(INSTALL) -m 0755 $SAPI_SHARED \$(INSTALL_ROOT)\$(prefix)/lib"
11686: ;;
11687: static)
11688: PHP_EMBED_TYPE=static
11689: INSTALL_IT="\$(mkinstalldirs) \$(INSTALL_ROOT)\$(prefix)/lib; \$(INSTALL) -m 0644 $SAPI_STATIC \$(INSTALL_ROOT)\$(prefix)/lib"
11690: ;;
11691: *)
11692: PHP_EMBED_TYPE=no
11693: ;;
11694: esac
11695: if test "$PHP_EMBED_TYPE" != "no"; then
11696:
11697: if test "$PHP_SAPI" != "default"; then
11698: as_fn_error $? "
11699: +--------------------------------------------------------------------+
11700: | *** ATTENTION *** |
11701: | |
11702: | You've configured multiple SAPIs to be build. You can build only |
11703: | one SAPI module and CLI binary at the same time. |
11704: +--------------------------------------------------------------------+
11705: " "$LINENO" 5
11706: fi
11707:
11708: PHP_SAPI=embed
11709:
11710: case "$PHP_EMBED_TYPE" in
11711: static)
11712:
11713: OVERALL_TARGET=php
11714: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
11715: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
11716: php_c_post=
11717: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
11718: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
11719: php_cxx_post=
11720: php_lo=lo
11721:
11722: case $with_pic in
11723: yes) pic_setting='-prefer-pic';;
11724: no) pic_setting='-prefer-non-pic';;
11725: esac
11726:
11727: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
11728: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
11729: shared_c_post=
11730: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
11731: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
11732: shared_cxx_post=
11733: shared_lo=lo
11734:
11735: php_build_target=program
11736:
11737: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
11738: php_build_target=static
11739: ;;
11740: shared)
11741:
11742: OVERALL_TARGET=php
11743: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
11744: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
11745: php_c_post=
11746: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
11747: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
11748: php_cxx_post=
11749: php_lo=lo
11750:
11751: case $with_pic in
11752: yes) pic_setting='-prefer-pic';;
11753: no) pic_setting='-prefer-non-pic';;
11754: esac
11755:
11756: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
11757: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
11758: shared_c_post=
11759: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
11760: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
11761: shared_cxx_post=
11762: shared_lo=lo
11763:
11764: php_build_target=program
11765:
11766: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
11767: php_build_target=shared
11768:
11769: php_c_pre=$shared_c_pre
11770: php_c_meta=$shared_c_meta
11771: php_c_post=$shared_c_post
11772: php_cxx_pre=$shared_cxx_pre
11773: php_cxx_meta=$shared_cxx_meta
11774: php_cxx_post=$shared_cxx_post
11775: php_lo=$shared_lo
11776: ;;
11777: bundle)
11778:
11779: OVERALL_TARGET=php
11780: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
11781: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
11782: php_c_post=
11783: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
11784: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
11785: php_cxx_post=
11786: php_lo=lo
11787:
11788: case $with_pic in
11789: yes) pic_setting='-prefer-pic';;
11790: no) pic_setting='-prefer-non-pic';;
11791: esac
11792:
11793: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
11794: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
11795: shared_c_post=
11796: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
11797: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
11798: shared_cxx_post=
11799: shared_lo=lo
11800:
11801: php_build_target=program
11802:
11803: OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
11804: php_build_target=static
11805: ;;
11806: program)
11807: OVERALL_TARGET=php
11808: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
11809: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
11810: php_c_post=
11811: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
11812: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
11813: php_cxx_post=
11814: php_lo=lo
11815:
11816: case $with_pic in
11817: yes) pic_setting='-prefer-pic';;
11818: no) pic_setting='-prefer-non-pic';;
11819: esac
11820:
11821: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
11822: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
11823: shared_c_post=
11824: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
11825: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
11826: shared_cxx_post=
11827: shared_lo=lo
11828:
11829: php_build_target=program
11830: ;;
11831: esac
11832:
11833:
11834:
11835: case sapi/embed in
11836: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
11837: /*) ac_srcdir=`echo "sapi/embed"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
11838: *) ac_srcdir="$abs_srcdir/sapi/embed/"; ac_bdir="sapi/embed/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
11839: esac
11840:
11841:
11842:
11843: b_c_pre=$php_c_pre
11844: b_cxx_pre=$php_cxx_pre
11845: b_c_meta=$php_c_meta
11846: b_cxx_meta=$php_cxx_meta
11847: b_c_post=$php_c_post
11848: b_cxx_post=$php_cxx_post
11849: b_lo=$php_lo
11850:
11851:
11852: old_IFS=$IFS
11853: for ac_src in php_embed.c; do
11854:
11855: IFS=.
11856: set $ac_src
11857: ac_obj=$1
11858: IFS=$old_IFS
11859:
11860: PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
11861:
11862: case $ac_src in
11863: *.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" ;;
11864: *.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" ;;
11865: *.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" ;;
11866: *.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" ;;
11867: esac
11868:
11869: cat >>Makefile.objects<<EOF
11870: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
11871: $ac_comp
11872: EOF
11873: done
11874:
11875:
11876:
11877:
11878:
11879: for header_file in sapi/embed/php_embed.h; do
11880:
11881:
11882: unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
11883:
11884: cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
11885: if test -n "$unique" && test "`eval $cmd`" = "" ; then
11886: eval "INSTALLHEADERS$unique=set"
11887:
11888: INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
11889:
11890: fi
11891:
11892: done
11893:
11894:
11895: fi
11896: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_EMBED_TYPE" >&5
11897: $as_echo "$PHP_EMBED_TYPE" >&6; }
11898: else
11899: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11900: $as_echo "no" >&6; }
11901: fi
11902:
11903:
11904:
11905:
11906: php_enable_fpm=no
11907:
11908:
11909: # Check whether --enable-fpm was given.
11910: if test "${enable_fpm+set}" = set; then :
11911: enableval=$enable_fpm; PHP_FPM=$enableval
11912: else
11913:
11914: PHP_FPM=no
11915:
11916:
11917: fi
11918:
11919:
11920: ext_output=$PHP_FPM
11921:
11922:
11923:
11924:
11925:
11926:
11927:
11928:
11929:
11930:
11931:
11932:
11933:
11934:
11935:
11936:
11937:
11938:
11939:
11940:
11941:
11942:
11943:
11944:
11945:
11946:
11947:
11948:
11949:
11950:
11951:
11952:
11953:
11954:
11955: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPM build" >&5
11956: $as_echo_n "checking for FPM build... " >&6; }
11957: if test "$PHP_FPM" != "no"; then
11958: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_FPM" >&5
11959: $as_echo "$PHP_FPM" >&6; }
11960:
11961:
11962: for ac_func in setenv clearenv setproctitle
11963: do :
11964: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11965: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11966: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11967: cat >>confdefs.h <<_ACEOF
11968: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11969: _ACEOF
11970:
11971: fi
11972: done
11973:
11974:
11975: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
11976: $as_echo_n "checking for library containing socket... " >&6; }
11977: if ${ac_cv_search_socket+:} false; then :
11978: $as_echo_n "(cached) " >&6
11979: else
11980: ac_func_search_save_LIBS=$LIBS
11981: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11982: /* end confdefs.h. */
11983:
11984: /* Override any GCC internal prototype to avoid an error.
11985: Use char because int might match the return type of a GCC
11986: builtin and then its argument prototype would still apply. */
11987: #ifdef __cplusplus
11988: extern "C"
11989: #endif
11990: char socket ();
11991: int
11992: main ()
11993: {
11994: return socket ();
11995: ;
11996: return 0;
11997: }
11998: _ACEOF
11999: for ac_lib in '' socket; do
12000: if test -z "$ac_lib"; then
12001: ac_res="none required"
12002: else
12003: ac_res=-l$ac_lib
12004: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12005: fi
12006: if ac_fn_c_try_link "$LINENO"; then :
12007: ac_cv_search_socket=$ac_res
12008: fi
12009: rm -f core conftest.err conftest.$ac_objext \
12010: conftest$ac_exeext
12011: if ${ac_cv_search_socket+:} false; then :
12012: break
12013: fi
12014: done
12015: if ${ac_cv_search_socket+:} false; then :
12016:
12017: else
12018: ac_cv_search_socket=no
12019: fi
12020: rm conftest.$ac_ext
12021: LIBS=$ac_func_search_save_LIBS
12022: fi
12023: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
12024: $as_echo "$ac_cv_search_socket" >&6; }
12025: ac_res=$ac_cv_search_socket
12026: if test "$ac_res" != no; then :
12027: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12028:
12029: fi
12030:
12031: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_addr" >&5
12032: $as_echo_n "checking for library containing inet_addr... " >&6; }
12033: if ${ac_cv_search_inet_addr+:} false; then :
12034: $as_echo_n "(cached) " >&6
12035: else
12036: ac_func_search_save_LIBS=$LIBS
12037: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12038: /* end confdefs.h. */
12039:
12040: /* Override any GCC internal prototype to avoid an error.
12041: Use char because int might match the return type of a GCC
12042: builtin and then its argument prototype would still apply. */
12043: #ifdef __cplusplus
12044: extern "C"
12045: #endif
12046: char inet_addr ();
12047: int
12048: main ()
12049: {
12050: return inet_addr ();
12051: ;
12052: return 0;
12053: }
12054: _ACEOF
12055: for ac_lib in '' nsl; do
12056: if test -z "$ac_lib"; then
12057: ac_res="none required"
12058: else
12059: ac_res=-l$ac_lib
12060: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12061: fi
12062: if ac_fn_c_try_link "$LINENO"; then :
12063: ac_cv_search_inet_addr=$ac_res
12064: fi
12065: rm -f core conftest.err conftest.$ac_objext \
12066: conftest$ac_exeext
12067: if ${ac_cv_search_inet_addr+:} false; then :
12068: break
12069: fi
12070: done
12071: if ${ac_cv_search_inet_addr+:} false; then :
12072:
12073: else
12074: ac_cv_search_inet_addr=no
12075: fi
12076: rm conftest.$ac_ext
12077: LIBS=$ac_func_search_save_LIBS
12078: fi
12079: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_addr" >&5
12080: $as_echo "$ac_cv_search_inet_addr" >&6; }
12081: ac_res=$ac_cv_search_inet_addr
12082: if test "$ac_res" != no; then :
12083: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12084:
12085: fi
12086:
12087:
12088: for ac_header in errno.h fcntl.h stdio.h stdlib.h unistd.h sys/uio.h
12089: do :
12090: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12091: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12092: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12093: cat >>confdefs.h <<_ACEOF
12094: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12095: _ACEOF
12096:
12097: fi
12098:
12099: done
12100:
12101: for ac_header in sys/select.h sys/socket.h sys/time.h
12102: do :
12103: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12104: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12105: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12106: cat >>confdefs.h <<_ACEOF
12107: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12108: _ACEOF
12109:
12110: fi
12111:
12112: done
12113:
12114: for ac_header in arpa/inet.h netinet/in.h
12115: do :
12116: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12117: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12118: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12119: cat >>confdefs.h <<_ACEOF
12120: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12121: _ACEOF
12122:
12123: fi
12124:
12125: done
12126:
12127:
12128:
12129: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prctl" >&5
12130: $as_echo_n "checking for prctl... " >&6; }
12131:
12132: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12133: /* end confdefs.h. */
12134: #include <sys/prctl.h>
12135: int
12136: main ()
12137: {
12138: prctl(0, 0, 0, 0, 0);
12139: ;
12140: return 0;
12141: }
12142: _ACEOF
12143: if ac_fn_c_try_compile "$LINENO"; then :
12144:
12145:
12146: $as_echo "#define HAVE_PRCTL 1" >>confdefs.h
12147:
12148: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12149: $as_echo "yes" >&6; }
12150:
12151: else
12152:
12153: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12154: $as_echo "no" >&6; }
12155:
12156: fi
12157: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12158:
12159:
12160: have_clock_gettime=no
12161:
12162: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime" >&5
12163: $as_echo_n "checking for clock_gettime... " >&6; }
12164:
12165: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12166: /* end confdefs.h. */
12167: #include <time.h>
12168: int
12169: main ()
12170: {
12171: struct timespec ts; clock_gettime(CLOCK_MONOTONIC, &ts);
12172: ;
12173: return 0;
12174: }
12175: _ACEOF
12176: if ac_fn_c_try_link "$LINENO"; then :
12177:
12178: have_clock_gettime=yes
12179: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12180: $as_echo "yes" >&6; }
12181:
12182: else
12183:
12184: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12185: $as_echo "no" >&6; }
12186:
12187: fi
12188: rm -f core conftest.err conftest.$ac_objext \
12189: conftest$ac_exeext conftest.$ac_ext
12190:
12191: if test "$have_clock_gettime" = "no"; then
12192: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
12193: $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
12194:
12195: SAVED_LIBS="$LIBS"
12196: LIBS="$LIBS -lrt"
12197:
12198: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12199: /* end confdefs.h. */
12200: #include <time.h>
12201: int
12202: main ()
12203: {
12204: struct timespec ts; clock_gettime(CLOCK_MONOTONIC, &ts);
12205: ;
12206: return 0;
12207: }
12208: _ACEOF
12209: if ac_fn_c_try_link "$LINENO"; then :
12210:
12211: have_clock_gettime=yes
12212: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12213: $as_echo "yes" >&6; }
12214:
12215: else
12216:
12217: LIBS="$SAVED_LIBS"
12218: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12219: $as_echo "no" >&6; }
12220:
12221: fi
12222: rm -f core conftest.err conftest.$ac_objext \
12223: conftest$ac_exeext conftest.$ac_ext
12224: fi
12225:
12226: if test "$have_clock_gettime" = "yes"; then
12227:
12228: $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
12229:
12230: fi
12231:
12232: have_clock_get_time=no
12233:
12234: if test "$have_clock_gettime" = "no"; then
12235: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_get_time" >&5
12236: $as_echo_n "checking for clock_get_time... " >&6; }
12237:
12238: if test "$cross_compiling" = yes; then :
12239: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12240: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12241: as_fn_error $? "cannot run test program while cross compiling
12242: See \`config.log' for more details" "$LINENO" 5; }
12243: else
12244: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12245: /* end confdefs.h. */
12246: #include <mach/mach.h>
12247: #include <mach/clock.h>
12248: #include <mach/mach_error.h>
12249:
12250: int main()
12251: {
12252: kern_return_t ret; clock_serv_t aClock; mach_timespec_t aTime;
12253: ret = host_get_clock_service(mach_host_self(), REALTIME_CLOCK, &aClock);
12254:
12255: if (ret != KERN_SUCCESS) {
12256: return 1;
12257: }
12258:
12259: ret = clock_get_time(aClock, &aTime);
12260: if (ret != KERN_SUCCESS) {
12261: return 2;
12262: }
12263:
12264: return 0;
12265: }
12266:
12267: _ACEOF
12268: if ac_fn_c_try_run "$LINENO"; then :
12269:
12270: have_clock_get_time=yes
12271: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12272: $as_echo "yes" >&6; }
12273:
12274: else
12275:
12276: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12277: $as_echo "no" >&6; }
12278:
12279: fi
12280: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12281: conftest.$ac_objext conftest.beam conftest.$ac_ext
12282: fi
12283:
12284: fi
12285:
12286: if test "$have_clock_get_time" = "yes"; then
12287:
12288: $as_echo "#define HAVE_CLOCK_GET_TIME 1" >>confdefs.h
12289:
12290: fi
12291:
12292:
12293: have_ptrace=no
12294: have_broken_ptrace=no
12295:
12296: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ptrace" >&5
12297: $as_echo_n "checking for ptrace... " >&6; }
12298:
12299: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12300: /* end confdefs.h. */
12301:
12302: #include <sys/types.h>
12303: #include <sys/ptrace.h>
12304: int
12305: main ()
12306: {
12307: ptrace(0, 0, (void *) 0, 0);
12308: ;
12309: return 0;
12310: }
12311: _ACEOF
12312: if ac_fn_c_try_compile "$LINENO"; then :
12313:
12314: have_ptrace=yes
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: if test "$have_ptrace" = "yes"; then
12327: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ptrace works" >&5
12328: $as_echo_n "checking whether ptrace works... " >&6; }
12329:
12330: if test "$cross_compiling" = yes; then :
12331: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12332: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12333: as_fn_error $? "cannot run test program while cross compiling
12334: See \`config.log' for more details" "$LINENO" 5; }
12335: else
12336: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12337: /* end confdefs.h. */
12338:
12339: #include <unistd.h>
12340: #include <signal.h>
12341: #include <sys/wait.h>
12342: #include <sys/types.h>
12343: #include <sys/ptrace.h>
12344: #include <errno.h>
12345:
12346: #if !defined(PTRACE_ATTACH) && defined(PT_ATTACH)
12347: #define PTRACE_ATTACH PT_ATTACH
12348: #endif
12349:
12350: #if !defined(PTRACE_DETACH) && defined(PT_DETACH)
12351: #define PTRACE_DETACH PT_DETACH
12352: #endif
12353:
12354: #if !defined(PTRACE_PEEKDATA) && defined(PT_READ_D)
12355: #define PTRACE_PEEKDATA PT_READ_D
12356: #endif
12357:
12358: int main()
12359: {
12360: long v1 = (unsigned int) -1; /* copy will fail if sizeof(long) == 8 and we've got "int ptrace()" */
12361: long v2;
12362: pid_t child;
12363: int status;
12364:
12365: if ( (child = fork()) ) { /* parent */
12366: int ret = 0;
12367:
12368: if (0 > ptrace(PTRACE_ATTACH, child, 0, 0)) {
12369: return 2;
12370: }
12371:
12372: waitpid(child, &status, 0);
12373:
12374: #ifdef PT_IO
12375: struct ptrace_io_desc ptio = {
12376: .piod_op = PIOD_READ_D,
12377: .piod_offs = &v1,
12378: .piod_addr = &v2,
12379: .piod_len = sizeof(v1)
12380: };
12381:
12382: if (0 > ptrace(PT_IO, child, (void *) &ptio, 0)) {
12383: ret = 3;
12384: }
12385: #else
12386: errno = 0;
12387:
12388: v2 = ptrace(PTRACE_PEEKDATA, child, (void *) &v1, 0);
12389:
12390: if (errno) {
12391: ret = 4;
12392: }
12393: #endif
12394: ptrace(PTRACE_DETACH, child, (void *) 1, 0);
12395:
12396: kill(child, SIGKILL);
12397:
12398: return ret ? ret : (v1 != v2);
12399: }
12400: else { /* child */
12401: sleep(10);
12402: return 0;
12403: }
12404: }
12405:
12406: _ACEOF
12407: if ac_fn_c_try_run "$LINENO"; then :
12408:
12409: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12410: $as_echo "yes" >&6; }
12411:
12412: else
12413:
12414: have_ptrace=no
12415: have_broken_ptrace=yes
12416: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12417: $as_echo "no" >&6; }
12418:
12419: fi
12420: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12421: conftest.$ac_objext conftest.beam conftest.$ac_ext
12422: fi
12423:
12424: fi
12425:
12426: if test "$have_ptrace" = "yes"; then
12427:
12428: $as_echo "#define HAVE_PTRACE 1" >>confdefs.h
12429:
12430: fi
12431:
12432: have_mach_vm_read=no
12433:
12434: if test "$have_broken_ptrace" = "yes"; then
12435: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mach_vm_read" >&5
12436: $as_echo_n "checking for mach_vm_read... " >&6; }
12437:
12438: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12439: /* end confdefs.h. */
12440: #include <mach/mach.h>
12441: #include <mach/mach_vm.h>
12442:
12443: int
12444: main ()
12445: {
12446:
12447: 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);
12448:
12449: ;
12450: return 0;
12451: }
12452: _ACEOF
12453: if ac_fn_c_try_compile "$LINENO"; then :
12454:
12455: have_mach_vm_read=yes
12456: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12457: $as_echo "yes" >&6; }
12458:
12459: else
12460:
12461: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12462: $as_echo "no" >&6; }
12463:
12464: fi
12465: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12466: fi
12467:
12468: if test "$have_mach_vm_read" = "yes"; then
12469:
12470: $as_echo "#define HAVE_MACH_VM_READ 1" >>confdefs.h
12471:
12472: fi
12473:
12474: proc_mem_file=""
12475:
12476: if test -r /proc/$$/mem ; then
12477: proc_mem_file="mem"
12478: else
12479: if test -r /proc/$$/as ; then
12480: proc_mem_file="as"
12481: fi
12482: fi
12483:
12484: if test -n "$proc_mem_file" ; then
12485: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for proc mem file" >&5
12486: $as_echo_n "checking for proc mem file... " >&6; }
12487:
12488: if test "$cross_compiling" = yes; then :
12489: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12490: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12491: as_fn_error $? "cannot run test program while cross compiling
12492: See \`config.log' for more details" "$LINENO" 5; }
12493: else
12494: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12495: /* end confdefs.h. */
12496:
12497: #define _GNU_SOURCE
12498: #define _FILE_OFFSET_BITS 64
12499: #include <stdint.h>
12500: #include <unistd.h>
12501: #include <sys/types.h>
12502: #include <sys/stat.h>
12503: #include <fcntl.h>
12504: #include <stdio.h>
12505: int main()
12506: {
12507: long v1 = (unsigned int) -1, v2 = 0;
12508: char buf[128];
12509: int fd;
12510: sprintf(buf, "/proc/%d/$proc_mem_file", getpid());
12511: fd = open(buf, O_RDONLY);
12512: if (0 > fd) {
12513: return 1;
12514: }
12515: if (sizeof(long) != pread(fd, &v2, sizeof(long), (uintptr_t) &v1)) {
12516: close(fd);
12517: return 1;
12518: }
12519: close(fd);
12520: return v1 != v2;
12521: }
12522:
12523: _ACEOF
12524: if ac_fn_c_try_run "$LINENO"; then :
12525:
12526: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $proc_mem_file" >&5
12527: $as_echo "$proc_mem_file" >&6; }
12528:
12529: else
12530:
12531: proc_mem_file=""
12532: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12533: $as_echo "no" >&6; }
12534:
12535: fi
12536: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12537: conftest.$ac_objext conftest.beam conftest.$ac_ext
12538: fi
12539:
12540: fi
12541:
12542: if test -n "$proc_mem_file"; then
12543:
12544: cat >>confdefs.h <<_ACEOF
12545: #define PROC_MEM_FILE "$proc_mem_file"
12546: _ACEOF
12547:
12548: fi
12549:
12550: fpm_trace_type=""
12551:
12552: if test "$have_ptrace" = "yes"; then
12553: fpm_trace_type=ptrace
12554:
12555: elif test -n "$proc_mem_file"; then
12556: fpm_trace_type=pread
12557:
12558: elif test "$have_mach_vm_read" = "yes" ; then
12559: fpm_trace_type=mach
12560:
12561: else
12562: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FPM Trace - ptrace, pread, or mach: could not be found" >&5
12563: $as_echo "$as_me: WARNING: FPM Trace - ptrace, pread, or mach: could not be found" >&2;}
12564: fi
12565:
12566:
12567:
12568: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports __sync_bool_compare_and_swap" >&5
12569: $as_echo_n "checking if gcc supports __sync_bool_compare_and_swap... " >&6; }
12570: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12571: /* end confdefs.h. */
12572:
12573: int
12574: main ()
12575: {
12576:
12577: int variable = 1;
12578: return (__sync_bool_compare_and_swap(&variable, 1, 2)
12579: && __sync_add_and_fetch(&variable, 1)) ? 1 : 0;
12580:
12581: ;
12582: return 0;
12583: }
12584: _ACEOF
12585: if ac_fn_c_try_link "$LINENO"; then :
12586:
12587: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12588: $as_echo "yes" >&6; }
12589:
12590: $as_echo "#define HAVE_BUILTIN_ATOMIC 1" >>confdefs.h
12591:
12592:
12593: else
12594:
12595: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12596: $as_echo "no" >&6; }
12597:
12598: fi
12599: rm -f core conftest.err conftest.$ac_objext \
12600: conftest$ac_exeext conftest.$ac_ext
12601:
12602:
12603: have_lq=no
12604:
12605: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TCP_INFO" >&5
12606: $as_echo_n "checking for TCP_INFO... " >&6; }
12607:
12608: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12609: /* end confdefs.h. */
12610: #include <netinet/tcp.h>
12611: int
12612: main ()
12613: {
12614: struct tcp_info ti; ti.tcpi_sacked = 0; int x = TCP_INFO;
12615: ;
12616: return 0;
12617: }
12618: _ACEOF
12619: if ac_fn_c_try_compile "$LINENO"; then :
12620:
12621: have_lq=tcp_info
12622: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12623: $as_echo "yes" >&6; }
12624:
12625: else
12626:
12627: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12628: $as_echo "no" >&6; }
12629:
12630: fi
12631: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12632:
12633: if test "$have_lq" = "tcp_info"; then
12634:
12635: $as_echo "#define HAVE_LQ_TCP_INFO 1" >>confdefs.h
12636:
12637: fi
12638:
12639: if test "$have_lq" = "no" ; then
12640: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SO_LISTENQLEN" >&5
12641: $as_echo_n "checking for SO_LISTENQLEN... " >&6; }
12642:
12643: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12644: /* end confdefs.h. */
12645: #include <sys/socket.h>
12646: int
12647: main ()
12648: {
12649: int x = SO_LISTENQLIMIT; int y = SO_LISTENQLEN;
12650: ;
12651: return 0;
12652: }
12653: _ACEOF
12654: if ac_fn_c_try_compile "$LINENO"; then :
12655:
12656: have_lq=so_listenq
12657: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12658: $as_echo "yes" >&6; }
12659:
12660: else
12661:
12662: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12663: $as_echo "no" >&6; }
12664:
12665: fi
12666: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12667:
12668: if test "$have_lq" = "so_listenq"; then
12669:
12670: $as_echo "#define HAVE_LQ_SO_LISTENQ 1" >>confdefs.h
12671:
12672: fi
12673: fi
12674:
12675:
12676: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysconf" >&5
12677: $as_echo_n "checking for sysconf... " >&6; }
12678:
12679: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12680: /* end confdefs.h. */
12681: #include <unistd.h>
12682: int
12683: main ()
12684: {
12685: sysconf(_SC_CLK_TCK);
12686: ;
12687: return 0;
12688: }
12689: _ACEOF
12690: if ac_fn_c_try_compile "$LINENO"; then :
12691:
12692:
12693: $as_echo "#define HAVE_SYSCONF 1" >>confdefs.h
12694:
12695: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12696: $as_echo "yes" >&6; }
12697:
12698: else
12699:
12700: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12701: $as_echo "no" >&6; }
12702:
12703: fi
12704: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12705:
12706:
12707: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for times" >&5
12708: $as_echo_n "checking for times... " >&6; }
12709:
12710: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12711: /* end confdefs.h. */
12712: #include <sys/times.h>
12713: int
12714: main ()
12715: {
12716: struct tms t; times(&t);
12717: ;
12718: return 0;
12719: }
12720: _ACEOF
12721: if ac_fn_c_try_compile "$LINENO"; then :
12722:
12723:
12724: $as_echo "#define HAVE_TIMES 1" >>confdefs.h
12725:
12726: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12727: $as_echo "yes" >&6; }
12728:
12729: else
12730:
12731: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12732: $as_echo "no" >&6; }
12733:
12734: fi
12735: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12736:
12737:
12738: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kqueue" >&5
12739: $as_echo_n "checking for kqueue... " >&6; }
12740:
12741: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12742: /* end confdefs.h. */
12743:
12744: #include <sys/types.h>
12745: #include <sys/event.h>
12746: #include <sys/time.h>
12747:
12748: int
12749: main ()
12750: {
12751:
12752: int kfd;
12753: struct kevent k;
12754: kfd = kqueue();
12755: /* 0 -> STDIN_FILENO */
12756: EV_SET(&k, 0, EVFILT_READ , EV_ADD | EV_CLEAR, 0, 0, NULL);
12757:
12758: ;
12759: return 0;
12760: }
12761: _ACEOF
12762: if ac_fn_c_try_compile "$LINENO"; then :
12763:
12764:
12765: $as_echo "#define HAVE_KQUEUE 1" >>confdefs.h
12766:
12767: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12768: $as_echo "yes" >&6; }
12769:
12770: else
12771:
12772: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12773: $as_echo "no" >&6; }
12774:
12775: fi
12776: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12777:
12778:
12779: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for port framework" >&5
12780: $as_echo_n "checking for port framework... " >&6; }
12781:
12782: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12783: /* end confdefs.h. */
12784:
12785: #include <port.h>
12786:
12787: int
12788: main ()
12789: {
12790:
12791: int port;
12792:
12793: port = port_create();
12794: if (port < 0) {
12795: return 1;
12796: }
12797:
12798: ;
12799: return 0;
12800: }
12801: _ACEOF
12802: if ac_fn_c_try_compile "$LINENO"; then :
12803:
12804:
12805: $as_echo "#define HAVE_PORT 1" >>confdefs.h
12806:
12807: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12808: $as_echo "yes" >&6; }
12809:
12810: else
12811:
12812: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12813: $as_echo "no" >&6; }
12814:
12815: fi
12816: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12817:
12818:
12819: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/poll" >&5
12820: $as_echo_n "checking for /dev/poll... " >&6; }
12821:
12822: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12823: /* end confdefs.h. */
12824:
12825: #include <stdio.h>
12826: #include <sys/devpoll.h>
12827:
12828: int
12829: main ()
12830: {
12831:
12832: int n, dp;
12833: struct dvpoll dvp;
12834: dp = 0;
12835: dvp.dp_fds = NULL;
12836: dvp.dp_nfds = 0;
12837: dvp.dp_timeout = 0;
12838: n = ioctl(dp, DP_POLL, &dvp)
12839:
12840: ;
12841: return 0;
12842: }
12843: _ACEOF
12844: if ac_fn_c_try_compile "$LINENO"; then :
12845:
12846:
12847: $as_echo "#define HAVE_DEVPOLL 1" >>confdefs.h
12848:
12849: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12850: $as_echo "yes" >&6; }
12851:
12852: else
12853:
12854: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12855: $as_echo "no" >&6; }
12856:
12857: fi
12858: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12859:
12860:
12861: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll" >&5
12862: $as_echo_n "checking for epoll... " >&6; }
12863:
12864: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12865: /* end confdefs.h. */
12866:
12867: #include <sys/epoll.h>
12868:
12869: int
12870: main ()
12871: {
12872:
12873: int epollfd;
12874: struct epoll_event e;
12875:
12876: epollfd = epoll_create(1);
12877: if (epollfd < 0) {
12878: return 1;
12879: }
12880:
12881: e.events = EPOLLIN | EPOLLET;
12882: e.data.fd = 0;
12883:
12884: if (epoll_ctl(epollfd, EPOLL_CTL_ADD, 0, &e) == -1) {
12885: return 1;
12886: }
12887:
12888: e.events = 0;
12889: if (epoll_wait(epollfd, &e, 1, 1) < 0) {
12890: return 1;
12891: }
12892:
12893: ;
12894: return 0;
12895: }
12896: _ACEOF
12897: if ac_fn_c_try_compile "$LINENO"; then :
12898:
12899:
12900: $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
12901:
12902: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12903: $as_echo "yes" >&6; }
12904:
12905: else
12906:
12907: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12908: $as_echo "no" >&6; }
12909:
12910: fi
12911: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12912:
12913:
12914: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll" >&5
12915: $as_echo_n "checking for poll... " >&6; }
12916:
12917: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12918: /* end confdefs.h. */
12919:
12920: #include <poll.h>
12921:
12922: int
12923: main ()
12924: {
12925:
12926: struct pollfd fds[2];
12927:
12928: fds[0].fd = 0;
12929: fds[0].events = POLLIN;
12930:
12931: fds[1].fd = 0;
12932: fds[1].events = POLLIN;
12933:
12934: poll(fds, 2, 1);
12935:
12936: ;
12937: return 0;
12938: }
12939: _ACEOF
12940: if ac_fn_c_try_compile "$LINENO"; then :
12941:
12942:
12943: $as_echo "#define HAVE_POLL 1" >>confdefs.h
12944:
12945: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12946: $as_echo "yes" >&6; }
12947:
12948: else
12949:
12950: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12951: $as_echo "no" >&6; }
12952:
12953: fi
12954: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12955:
12956:
12957: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for select" >&5
12958: $as_echo_n "checking for select... " >&6; }
12959:
12960: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12961: /* end confdefs.h. */
12962:
12963: /* According to POSIX.1-2001 */
12964: #include <sys/select.h>
12965:
12966: /* According to earlier standards */
12967: #include <sys/time.h>
12968: #include <sys/types.h>
12969: #include <unistd.h>
12970:
12971: int
12972: main ()
12973: {
12974:
12975: fd_set fds;
12976: struct timeval t;
12977: t.tv_sec = 0;
12978: t.tv_usec = 42;
12979: FD_ZERO(&fds);
12980: /* 0 -> STDIN_FILENO */
12981: FD_SET(0, &fds);
12982: select(FD_SETSIZE, &fds, NULL, NULL, &t);
12983:
12984: ;
12985: return 0;
12986: }
12987: _ACEOF
12988: if ac_fn_c_try_compile "$LINENO"; then :
12989:
12990:
12991: $as_echo "#define HAVE_SELECT 1" >>confdefs.h
12992:
12993: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12994: $as_echo "yes" >&6; }
12995:
12996: else
12997:
12998: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12999: $as_echo "no" >&6; }
13000:
13001: fi
13002: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13003:
13004:
13005:
13006: php_with_fpm_user=nobody
13007:
13008:
13009:
13010: # Check whether --with-fpm-user was given.
13011: if test "${with_fpm_user+set}" = set; then :
13012: withval=$with_fpm_user; PHP_FPM_USER=$withval
13013: else
13014:
13015: PHP_FPM_USER=nobody
13016:
13017:
13018: fi
13019:
13020:
13021: ext_output=$PHP_FPM_USER
13022:
13023:
13024:
13025:
13026:
13027:
13028: php_with_fpm_group=nobody
13029:
13030:
13031:
13032: # Check whether --with-fpm-group was given.
13033: if test "${with_fpm_group+set}" = set; then :
13034: withval=$with_fpm_group; PHP_FPM_GROUP=$withval
13035: else
13036:
13037: PHP_FPM_GROUP=nobody
13038:
13039:
13040: fi
13041:
13042:
13043: ext_output=$PHP_FPM_GROUP
13044:
13045:
13046:
13047:
13048:
13049: if test -z "$PHP_FPM_USER" -o "$PHP_FPM_USER" = "yes" -o "$PHP_FPM_USER" = "no"; then
13050: php_fpm_user="nobody"
13051: else
13052: php_fpm_user="$PHP_FPM_USER"
13053: fi
13054:
13055: if test -z "$PHP_FPM_GROUP" -o "$PHP_FPM_GROUP" = "yes" -o "$PHP_FPM_GROUP" = "no"; then
13056: php_fpm_group="nobody"
13057: else
13058: php_fpm_group="$PHP_FPM_GROUP"
13059: fi
13060:
13061:
13062:
13063: PHP_VAR_SUBST="$PHP_VAR_SUBST php_fpm_user"
13064:
13065:
13066:
13067:
13068:
13069: PHP_VAR_SUBST="$PHP_VAR_SUBST php_fpm_group"
13070:
13071:
13072:
13073: php_fpm_sysconfdir=`eval echo $sysconfdir`
13074:
13075:
13076: PHP_VAR_SUBST="$PHP_VAR_SUBST php_fpm_sysconfdir"
13077:
13078:
13079:
13080: php_fpm_localstatedir=`eval echo $localstatedir`
13081:
13082:
13083: PHP_VAR_SUBST="$PHP_VAR_SUBST php_fpm_localstatedir"
13084:
13085:
13086:
13087: php_fpm_prefix=`eval echo $prefix`
13088:
13089:
13090: PHP_VAR_SUBST="$PHP_VAR_SUBST php_fpm_prefix"
13091:
13092:
13093:
13094:
13095:
13096: cat >>confdefs.h <<_ACEOF
13097: #define PHP_FPM_USER "$php_fpm_user"
13098: _ACEOF
13099:
13100:
13101: cat >>confdefs.h <<_ACEOF
13102: #define PHP_FPM_GROUP "$php_fpm_group"
13103: _ACEOF
13104:
13105:
13106:
13107: PHP_OUTPUT_FILES="$PHP_OUTPUT_FILES sapi/fpm/php-fpm.conf sapi/fpm/init.d.php-fpm sapi/fpm/php-fpm.8 sapi/fpm/status.html"
13108:
13109:
13110: src=$abs_srcdir/sapi/fpm/Makefile.frag
13111: ac_srcdir=$abs_srcdir/sapi/fpm
13112: ac_builddir=sapi/fpm
13113: test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments
13114:
13115:
13116: SAPI_FPM_PATH=sapi/fpm/php-fpm
13117:
13118: PHP_VAR_SUBST="$PHP_VAR_SUBST SAPI_FPM_PATH"
13119:
13120:
13121: if test "$fpm_trace_type" && test -f "$abs_srcdir/sapi/fpm/fpm/fpm_trace_$fpm_trace_type.c"; then
13122: PHP_FPM_TRACE_FILES="fpm/fpm_trace.c fpm/fpm_trace_$fpm_trace_type.c"
13123: fi
13124:
13125: PHP_FPM_CFLAGS="-I$abs_srcdir/sapi/fpm"
13126:
13127: if test "$PHP_SAPI" = "default"; then
13128: PHP_SAPI="fpm"
13129: fi
13130: PHP_FPM_FILES="fpm/fastcgi.c \
13131: fpm/fpm.c \
13132: fpm/fpm_children.c \
13133: fpm/fpm_cleanup.c \
13134: fpm/fpm_clock.c \
13135: fpm/fpm_conf.c \
13136: fpm/fpm_env.c \
13137: fpm/fpm_events.c \
13138: fpm/fpm_log.c \
13139: fpm/fpm_main.c \
13140: fpm/fpm_php.c \
13141: fpm/fpm_php_trace.c \
13142: fpm/fpm_process_ctl.c \
13143: fpm/fpm_request.c \
13144: fpm/fpm_shm.c \
13145: fpm/fpm_scoreboard.c \
13146: fpm/fpm_signals.c \
13147: fpm/fpm_sockets.c \
13148: fpm/fpm_status.c \
13149: fpm/fpm_stdio.c \
13150: fpm/fpm_unix.c \
13151: fpm/fpm_worker_pool.c \
13152: fpm/zlog.c \
13153: fpm/events/select.c \
13154: fpm/events/poll.c \
13155: fpm/events/epoll.c \
13156: fpm/events/kqueue.c \
13157: fpm/events/devpoll.c \
13158: fpm/events/port.c \
13159: "
13160:
13161:
13162:
13163: case sapi/fpm in
13164: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
13165: /*) ac_srcdir=`echo "sapi/fpm"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
13166: *) ac_srcdir="$abs_srcdir/sapi/fpm/"; ac_bdir="sapi/fpm/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
13167: esac
13168:
13169:
13170:
13171: b_c_pre=$php_c_pre
13172: b_cxx_pre=$php_cxx_pre
13173: b_c_meta=$php_c_meta
13174: b_cxx_meta=$php_cxx_meta
13175: b_c_post=$php_c_post
13176: b_cxx_post=$php_cxx_post
13177: b_lo=$php_lo
13178:
13179:
13180: old_IFS=$IFS
13181: for ac_src in $PHP_FPM_FILES $PHP_FPM_TRACE_FILES; do
13182:
13183: IFS=.
13184: set $ac_src
13185: ac_obj=$1
13186: IFS=$old_IFS
13187:
13188: PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo"
13189:
13190: case $ac_src in
13191: *.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" ;;
13192: *.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" ;;
13193: *.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" ;;
13194: *.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" ;;
13195: esac
13196:
13197: cat >>Makefile.objects<<EOF
13198: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
13199: $ac_comp
13200: EOF
13201: done
13202:
13203:
13204:
13205:
13206: case /main in
13207: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
13208: /*) ac_srcdir=`echo "/main"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
13209: *) ac_srcdir="$abs_srcdir//main/"; ac_bdir="/main/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
13210: esac
13211:
13212:
13213:
13214: b_c_pre=$php_c_pre
13215: b_cxx_pre=$php_cxx_pre
13216: b_c_meta=$php_c_meta
13217: b_cxx_meta=$php_cxx_meta
13218: b_c_post=$php_c_post
13219: b_cxx_post=$php_cxx_post
13220: b_lo=$php_lo
13221:
13222:
13223: old_IFS=$IFS
13224: for ac_src in internal_functions.c; do
13225:
13226: IFS=.
13227: set $ac_src
13228: ac_obj=$1
13229: IFS=$old_IFS
13230:
13231: PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo"
13232:
13233: case $ac_src in
13234: *.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" ;;
13235: *.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" ;;
13236: *.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" ;;
13237: *.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" ;;
13238: esac
13239:
13240: cat >>Makefile.objects<<EOF
13241: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
13242: $ac_comp
13243: EOF
13244: done
13245:
13246:
13247:
13248: case $host_alias in
13249: *aix*)
13250: BUILD_FPM="echo '\#! .' > php.sym && echo >>php.sym && nm -BCpg \`echo \$(PHP_GLOBAL_OBJS) \$(PHP_SAPI_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_SAPI_OBJS) \$(EXTRA_LIBS) \$(SAPI_EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_FPM_PATH)"
13251: ;;
13252: *darwin*)
13253: BUILD_FPM="\$(CC) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(NATIVE_RPATHS) \$(PHP_GLOBAL_OBJS:.lo=.o) \$(PHP_SAPI_OBJS:.lo=.o) \$(PHP_FRAMEWORKS) \$(EXTRA_LIBS) \$(SAPI_EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_FPM_PATH)"
13254: ;;
13255: *)
13256: BUILD_FPM="\$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_FPM_OBJS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_FPM_PATH)"
13257: ;;
13258: esac
13259:
13260: PHP_FPM_TARGET="\$(SAPI_FPM_PATH)"
13261: PHP_INSTALL_FPM_TARGET="install-fpm"
13262:
13263: PHP_VAR_SUBST="$PHP_VAR_SUBST BUILD_FPM"
13264:
13265:
13266: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_FPM_OBJS"
13267:
13268:
13269: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_FPM_TARGET"
13270:
13271:
13272: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_INSTALL_FPM_TARGET"
13273:
13274: if test "$PHP_SAPI" = "fpm" ; then
13275:
13276: OVERALL_TARGET=$SAPI_FPM_PATH
13277: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
13278: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
13279: php_c_post=
13280: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
13281: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
13282: php_cxx_post=
13283: php_lo=lo
13284:
13285: case $with_pic in
13286: yes) pic_setting='-prefer-pic';;
13287: no) pic_setting='-prefer-non-pic';;
13288: esac
13289:
13290: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
13291: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
13292: shared_c_post=
13293: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
13294: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
13295: shared_cxx_post=
13296: shared_lo=lo
13297:
13298: php_build_target=program
13299:
13300: fi
13301: else
13302: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13303: $as_echo "no" >&6; }
13304: fi
13305:
13306:
13307:
13308: php_with_isapi=no
13309:
13310: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Zeus ISAPI support" >&5
13311: $as_echo_n "checking for Zeus ISAPI support... " >&6; }
13312:
13313: # Check whether --with-isapi was given.
13314: if test "${with_isapi+set}" = set; then :
13315: withval=$with_isapi; PHP_ISAPI=$withval
13316: else
13317:
13318: PHP_ISAPI=no
13319:
13320:
13321: fi
13322:
13323:
13324: ext_output=$PHP_ISAPI
13325: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
13326: $as_echo "$ext_output" >&6; }
13327:
13328:
13329:
13330:
13331: if test "$PHP_ISAPI" != "no"; then
13332: if test "$PHP_ISAPI" = "yes"; then
13333: ZEUSPATH=/usr/local/zeus # the default
13334: else
13335: ZEUSPATH=$PHP_ISAPI
13336: fi
13337: test -f "$ZEUSPATH/web/include/httpext.h" || as_fn_error $? "Unable to find httpext.h in $ZEUSPATH/web/include" "$LINENO" 5
13338:
13339: enable_maintainer_zts=yes
13340: if test "$pthreads_working" != "yes"; then
13341: as_fn_error $? "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5
13342: fi
13343:
13344:
13345: $as_echo "#define WITH_ZEUS 1" >>confdefs.h
13346:
13347:
13348: if test "$ZEUSPATH/web/include" != "/usr/include"; then
13349:
13350: if test -z "$ZEUSPATH/web/include" || echo "$ZEUSPATH/web/include" | grep '^/' >/dev/null ; then
13351: ai_p=$ZEUSPATH/web/include
13352: else
13353:
13354: ep_dir="`echo $ZEUSPATH/web/include|$SED 's%/*[^/][^/]*/*$%%'`"
13355:
13356: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
13357: ai_p="$ep_realdir/`basename \"$ZEUSPATH/web/include\"`"
13358: fi
13359:
13360:
13361:
13362: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
13363:
13364: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
13365: if test -n "$unique" && test "`eval $cmd`" = "" ; then
13366: eval "INCLUDEPATH$unique=set"
13367:
13368: if test ""; then
13369: INCLUDES="-I$ai_p $INCLUDES"
13370: else
13371: INCLUDES="$INCLUDES -I$ai_p"
13372: fi
13373:
13374: fi
13375:
13376: fi
13377:
13378:
13379: if test "$PHP_SAPI" != "default"; then
13380: as_fn_error $? "
13381: +--------------------------------------------------------------------+
13382: | *** ATTENTION *** |
13383: | |
13384: | You've configured multiple SAPIs to be build. You can build only |
13385: | one SAPI module and CLI binary at the same time. |
13386: +--------------------------------------------------------------------+
13387: " "$LINENO" 5
13388: fi
13389:
13390: PHP_SAPI=isapi
13391:
13392: case "shared" in
13393: static)
13394:
13395: OVERALL_TARGET=php
13396: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
13397: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
13398: php_c_post=
13399: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
13400: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
13401: php_cxx_post=
13402: php_lo=lo
13403:
13404: case $with_pic in
13405: yes) pic_setting='-prefer-pic';;
13406: no) pic_setting='-prefer-non-pic';;
13407: esac
13408:
13409: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
13410: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
13411: shared_c_post=
13412: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
13413: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
13414: shared_cxx_post=
13415: shared_lo=lo
13416:
13417: php_build_target=program
13418:
13419: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
13420: php_build_target=static
13421: ;;
13422: shared)
13423:
13424: OVERALL_TARGET=php
13425: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
13426: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
13427: php_c_post=
13428: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
13429: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
13430: php_cxx_post=
13431: php_lo=lo
13432:
13433: case $with_pic in
13434: yes) pic_setting='-prefer-pic';;
13435: no) pic_setting='-prefer-non-pic';;
13436: esac
13437:
13438: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
13439: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
13440: shared_c_post=
13441: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
13442: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
13443: shared_cxx_post=
13444: shared_lo=lo
13445:
13446: php_build_target=program
13447:
13448: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
13449: php_build_target=shared
13450:
13451: php_c_pre=$shared_c_pre
13452: php_c_meta=$shared_c_meta
13453: php_c_post=$shared_c_post
13454: php_cxx_pre=$shared_cxx_pre
13455: php_cxx_meta=$shared_cxx_meta
13456: php_cxx_post=$shared_cxx_post
13457: php_lo=$shared_lo
13458: ;;
13459: bundle)
13460:
13461: OVERALL_TARGET=php
13462: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
13463: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
13464: php_c_post=
13465: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
13466: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
13467: php_cxx_post=
13468: php_lo=lo
13469:
13470: case $with_pic in
13471: yes) pic_setting='-prefer-pic';;
13472: no) pic_setting='-prefer-non-pic';;
13473: esac
13474:
13475: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
13476: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
13477: shared_c_post=
13478: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
13479: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
13480: shared_cxx_post=
13481: shared_lo=lo
13482:
13483: php_build_target=program
13484:
13485: OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
13486: php_build_target=static
13487: ;;
13488: program)
13489: OVERALL_TARGET=php
13490: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
13491: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
13492: php_c_post=
13493: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
13494: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
13495: php_cxx_post=
13496: php_lo=lo
13497:
13498: case $with_pic in
13499: yes) pic_setting='-prefer-pic';;
13500: no) pic_setting='-prefer-non-pic';;
13501: esac
13502:
13503: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
13504: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
13505: shared_c_post=
13506: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
13507: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
13508: shared_cxx_post=
13509: shared_lo=lo
13510:
13511: php_build_target=program
13512: ;;
13513: esac
13514:
13515:
13516:
13517: case sapi/isapi in
13518: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
13519: /*) ac_srcdir=`echo "sapi/isapi"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
13520: *) ac_srcdir="$abs_srcdir/sapi/isapi/"; ac_bdir="sapi/isapi/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
13521: esac
13522:
13523:
13524:
13525: b_c_pre=$php_c_pre
13526: b_cxx_pre=$php_cxx_pre
13527: b_c_meta=$php_c_meta
13528: b_cxx_meta=$php_cxx_meta
13529: b_c_post=$php_c_post
13530: b_cxx_post=$php_cxx_post
13531: b_lo=$php_lo
13532:
13533:
13534: old_IFS=$IFS
13535: for ac_src in php5isapi.c; do
13536:
13537: IFS=.
13538: set $ac_src
13539: ac_obj=$1
13540: IFS=$old_IFS
13541:
13542: PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
13543:
13544: case $ac_src in
13545: *.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" ;;
13546: *.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" ;;
13547: *.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" ;;
13548: *.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" ;;
13549: esac
13550:
13551: cat >>Makefile.objects<<EOF
13552: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
13553: $ac_comp
13554: EOF
13555: done
13556:
13557:
13558:
13559: INSTALL_IT="\$(SHELL) \$(srcdir)/install-sh -m 0755 $SAPI_SHARED \$(INSTALL_ROOT)$ZEUSPATH/web/bin/"
13560: fi
13561:
13562:
13563:
13564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LiteSpeed support" >&5
13565: $as_echo_n "checking for LiteSpeed support... " >&6; }
13566:
13567:
13568: php_with_litespeed=no
13569:
13570:
13571:
13572: # Check whether --with-litespeed was given.
13573: if test "${with_litespeed+set}" = set; then :
13574: withval=$with_litespeed; PHP_LITESPEED=$withval
13575: else
13576:
13577: PHP_LITESPEED=no
13578: test "$PHP_ENABLE_ALL" && PHP_LITESPEED=$PHP_ENABLE_ALL
13579:
13580: fi
13581:
13582:
13583:
13584: ext_output="yes, shared"
13585: ext_shared=yes
13586: case $PHP_LITESPEED in
13587: shared,*)
13588: PHP_LITESPEED=`echo "$PHP_LITESPEED"|$SED 's/^shared,//'`
13589: ;;
13590: shared)
13591: PHP_LITESPEED=yes
13592: ;;
13593: no)
13594: ext_output=no
13595: ext_shared=no
13596: ;;
13597: *)
13598: ext_output=yes
13599: ext_shared=no
13600: ;;
13601: esac
13602:
13603:
13604:
13605:
13606:
13607:
13608:
13609:
13610: if test "$PHP_LITESPEED" != "no"; then
13611:
13612: src=$abs_srcdir/sapi/litespeed/Makefile.frag
13613: ac_srcdir=$abs_srcdir/sapi/litespeed
13614: ac_builddir=sapi/litespeed
13615: test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments
13616:
13617: SAPI_LITESPEED_PATH=sapi/litespeed/php
13618:
13619: PHP_VAR_SUBST="$PHP_VAR_SUBST SAPI_LITESPEED_PATH"
13620:
13621:
13622: if test "$PHP_SAPI" != "default"; then
13623: as_fn_error $? "
13624: +--------------------------------------------------------------------+
13625: | *** ATTENTION *** |
13626: | |
13627: | You've configured multiple SAPIs to be build. You can build only |
13628: | one SAPI module and CLI binary at the same time. |
13629: +--------------------------------------------------------------------+
13630: " "$LINENO" 5
13631: fi
13632:
13633: PHP_SAPI=litespeed
13634:
13635: case "program" in
13636: static)
13637:
13638: OVERALL_TARGET=php
13639: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
13640: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
13641: php_c_post=
13642: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
13643: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
13644: php_cxx_post=
13645: php_lo=lo
13646:
13647: case $with_pic in
13648: yes) pic_setting='-prefer-pic';;
13649: no) pic_setting='-prefer-non-pic';;
13650: esac
13651:
13652: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
13653: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
13654: shared_c_post=
13655: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
13656: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
13657: shared_cxx_post=
13658: shared_lo=lo
13659:
13660: php_build_target=program
13661:
13662: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
13663: php_build_target=static
13664: ;;
13665: shared)
13666:
13667: OVERALL_TARGET=php
13668: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
13669: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
13670: php_c_post=
13671: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
13672: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
13673: php_cxx_post=
13674: php_lo=lo
13675:
13676: case $with_pic in
13677: yes) pic_setting='-prefer-pic';;
13678: no) pic_setting='-prefer-non-pic';;
13679: esac
13680:
13681: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
13682: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
13683: shared_c_post=
13684: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
13685: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
13686: shared_cxx_post=
13687: shared_lo=lo
13688:
13689: php_build_target=program
13690:
13691: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
13692: php_build_target=shared
13693:
13694: php_c_pre=$shared_c_pre
13695: php_c_meta=$shared_c_meta
13696: php_c_post=$shared_c_post
13697: php_cxx_pre=$shared_cxx_pre
13698: php_cxx_meta=$shared_cxx_meta
13699: php_cxx_post=$shared_cxx_post
13700: php_lo=$shared_lo
13701: ;;
13702: bundle)
13703:
13704: OVERALL_TARGET=php
13705: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
13706: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
13707: php_c_post=
13708: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
13709: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
13710: php_cxx_post=
13711: php_lo=lo
13712:
13713: case $with_pic in
13714: yes) pic_setting='-prefer-pic';;
13715: no) pic_setting='-prefer-non-pic';;
13716: esac
13717:
13718: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
13719: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
13720: shared_c_post=
13721: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
13722: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
13723: shared_cxx_post=
13724: shared_lo=lo
13725:
13726: php_build_target=program
13727:
13728: OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
13729: php_build_target=static
13730: ;;
13731: program)
13732: OVERALL_TARGET='$(SAPI_LITESPEED_PATH)'
13733: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
13734: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
13735: php_c_post=
13736: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
13737: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
13738: php_cxx_post=
13739: php_lo=lo
13740:
13741: case $with_pic in
13742: yes) pic_setting='-prefer-pic';;
13743: no) pic_setting='-prefer-non-pic';;
13744: esac
13745:
13746: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
13747: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
13748: shared_c_post=
13749: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
13750: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
13751: shared_cxx_post=
13752: shared_lo=lo
13753:
13754: php_build_target=program
13755: ;;
13756: esac
13757:
13758:
13759:
13760: case sapi/litespeed in
13761: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
13762: /*) ac_srcdir=`echo "sapi/litespeed"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
13763: *) ac_srcdir="$abs_srcdir/sapi/litespeed/"; ac_bdir="sapi/litespeed/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
13764: esac
13765:
13766:
13767:
13768: b_c_pre=$php_c_pre
13769: b_cxx_pre=$php_cxx_pre
13770: b_c_meta=$php_c_meta
13771: b_cxx_meta=$php_cxx_meta
13772: b_c_post=$php_c_post
13773: b_cxx_post=$php_cxx_post
13774: b_lo=$php_lo
13775:
13776:
13777: old_IFS=$IFS
13778: for ac_src in lsapi_main.c lsapilib.c; do
13779:
13780: IFS=.
13781: set $ac_src
13782: ac_obj=$1
13783: IFS=$old_IFS
13784:
13785: PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
13786:
13787: case $ac_src in
13788: *.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" ;;
13789: *.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" ;;
13790: *.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" ;;
13791: *.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" ;;
13792: esac
13793:
13794: cat >>Makefile.objects<<EOF
13795: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
13796: $ac_comp
13797: EOF
13798: done
13799:
13800:
13801:
13802: INSTALL_IT="@echo \"Installing PHP LiteSpeed into: \$(INSTALL_ROOT)\$(bindir)/\"; \$(INSTALL) -m 0755 \$(SAPI_LITESPEED_PATH) \$(INSTALL_ROOT)\$(bindir)/lsphp"
13803: case $host_alias in
13804: *darwin*)
13805: BUILD_LITESPEED="\$(CC) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(NATIVE_RPATHS) \$(PHP_GLOBAL_OBJS:.lo=.o) \$(PHP_SAPI_OBJS:.lo=.o) \$(PHP_FRAMEWORKS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_LITESPEED_PATH)"
13806: ;;
13807: *cygwin*)
13808: SAPI_LITESPEED_PATH=sapi/litespeed/php.exe
13809: BUILD_LITESPEED="\$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_SAPI_OBJS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_LITESPEED_PATH)"
13810: ;;
13811: *)
13812: BUILD_LITESPEED="\$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_SAPI_OBJS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_LITESPEED_PATH)"
13813: ;;
13814: esac
13815:
13816:
13817: PHP_VAR_SUBST="$PHP_VAR_SUBST BUILD_LITESPEED"
13818:
13819: fi
13820:
13821: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_LITESPEED" >&5
13822: $as_echo "$PHP_LITESPEED" >&6; }
13823:
13824:
13825:
13826: php_with_milter=no
13827:
13828: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Milter support" >&5
13829: $as_echo_n "checking for Milter support... " >&6; }
13830:
13831: # Check whether --with-milter was given.
13832: if test "${with_milter+set}" = set; then :
13833: withval=$with_milter; PHP_MILTER=$withval
13834: else
13835:
13836: PHP_MILTER=no
13837:
13838:
13839: fi
13840:
13841:
13842: ext_output=$PHP_MILTER
13843: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
13844: $as_echo "$ext_output" >&6; }
13845:
13846:
13847:
13848:
13849: if test "$PHP_MILTER" != "no"; then
13850: if test "$PHP_MILTER" = "yes"; then
13851: if test -f /usr/lib/libmilter.a ; then
13852: MILTERPATH=/usr/lib
13853: else
13854: if test -f /usr/lib/libmilter/libmilter.a ; then
13855: MILTERPATH=/usr/lib/libmilter
13856: else
13857: as_fn_error $? "Unable to find libmilter.a" "$LINENO" 5
13858: fi
13859: fi
13860: else
13861: MILTERPATH=$PHP_MILTER
13862: fi
13863:
13864: SAPI_MILTER_PATH=sapi/milter/php-milter
13865:
13866: enable_maintainer_zts=yes
13867: if test "$pthreads_working" != "yes"; then
13868: as_fn_error $? "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5
13869: fi
13870:
13871:
13872: src=$abs_srcdir/sapi/milter/Makefile.frag
13873: ac_srcdir=$ext_srcdir
13874: ac_builddir=$ext_builddir
13875: test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments
13876:
13877:
13878: if test "$PHP_SAPI" != "default"; then
13879: as_fn_error $? "
13880: +--------------------------------------------------------------------+
13881: | *** ATTENTION *** |
13882: | |
13883: | You've configured multiple SAPIs to be build. You can build only |
13884: | one SAPI module and CLI binary at the same time. |
13885: +--------------------------------------------------------------------+
13886: " "$LINENO" 5
13887: fi
13888:
13889: PHP_SAPI=milter
13890:
13891: case "program" in
13892: static)
13893:
13894: OVERALL_TARGET=php
13895: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
13896: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
13897: php_c_post=
13898: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
13899: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
13900: php_cxx_post=
13901: php_lo=lo
13902:
13903: case $with_pic in
13904: yes) pic_setting='-prefer-pic';;
13905: no) pic_setting='-prefer-non-pic';;
13906: esac
13907:
13908: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
13909: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
13910: shared_c_post=
13911: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
13912: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
13913: shared_cxx_post=
13914: shared_lo=lo
13915:
13916: php_build_target=program
13917:
13918: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
13919: php_build_target=static
13920: ;;
13921: shared)
13922:
13923: OVERALL_TARGET=php
13924: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
13925: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
13926: php_c_post=
13927: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
13928: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
13929: php_cxx_post=
13930: php_lo=lo
13931:
13932: case $with_pic in
13933: yes) pic_setting='-prefer-pic';;
13934: no) pic_setting='-prefer-non-pic';;
13935: esac
13936:
13937: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
13938: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
13939: shared_c_post=
13940: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
13941: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
13942: shared_cxx_post=
13943: shared_lo=lo
13944:
13945: php_build_target=program
13946:
13947: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
13948: php_build_target=shared
13949:
13950: php_c_pre=$shared_c_pre
13951: php_c_meta=$shared_c_meta
13952: php_c_post=$shared_c_post
13953: php_cxx_pre=$shared_cxx_pre
13954: php_cxx_meta=$shared_cxx_meta
13955: php_cxx_post=$shared_cxx_post
13956: php_lo=$shared_lo
13957: ;;
13958: bundle)
13959:
13960: OVERALL_TARGET=php
13961: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
13962: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
13963: php_c_post=
13964: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
13965: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
13966: php_cxx_post=
13967: php_lo=lo
13968:
13969: case $with_pic in
13970: yes) pic_setting='-prefer-pic';;
13971: no) pic_setting='-prefer-non-pic';;
13972: esac
13973:
13974: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
13975: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
13976: shared_c_post=
13977: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
13978: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
13979: shared_cxx_post=
13980: shared_lo=lo
13981:
13982: php_build_target=program
13983:
13984: OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
13985: php_build_target=static
13986: ;;
13987: program)
13988: OVERALL_TARGET='$(SAPI_MILTER_PATH)'
13989: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
13990: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
13991: php_c_post=
13992: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
13993: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
13994: php_cxx_post=
13995: php_lo=lo
13996:
13997: case $with_pic in
13998: yes) pic_setting='-prefer-pic';;
13999: no) pic_setting='-prefer-non-pic';;
14000: esac
14001:
14002: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
14003: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
14004: shared_c_post=
14005: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
14006: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
14007: shared_cxx_post=
14008: shared_lo=lo
14009:
14010: php_build_target=program
14011: ;;
14012: esac
14013:
14014:
14015:
14016: case sapi/milter in
14017: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
14018: /*) ac_srcdir=`echo "sapi/milter"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
14019: *) ac_srcdir="$abs_srcdir/sapi/milter/"; ac_bdir="sapi/milter/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
14020: esac
14021:
14022:
14023:
14024: b_c_pre=$php_c_pre
14025: b_cxx_pre=$php_cxx_pre
14026: b_c_meta=$php_c_meta
14027: b_cxx_meta=$php_cxx_meta
14028: b_c_post=$php_c_post
14029: b_cxx_post=$php_cxx_post
14030: b_lo=$php_lo
14031:
14032:
14033: old_IFS=$IFS
14034: for ac_src in php_milter.c getopt.c; do
14035:
14036: IFS=.
14037: set $ac_src
14038: ac_obj=$1
14039: IFS=$old_IFS
14040:
14041: PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
14042:
14043: case $ac_src in
14044: *.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" ;;
14045: *.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" ;;
14046: *.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" ;;
14047: *.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" ;;
14048: esac
14049:
14050: cat >>Makefile.objects<<EOF
14051: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
14052: $ac_comp
14053: EOF
14054: done
14055:
14056:
14057:
14058:
14059:
14060: if test -n "$MILTERPATH"; then
14061:
14062: if test "$MILTERPATH" != "/usr/$PHP_LIBDIR" && test "$MILTERPATH" != "/usr/lib"; then
14063:
14064: if test -z "$MILTERPATH" || echo "$MILTERPATH" | grep '^/' >/dev/null ; then
14065: ai_p=$MILTERPATH
14066: else
14067:
14068: ep_dir="`echo $MILTERPATH|$SED 's%/*[^/][^/]*/*$%%'`"
14069:
14070: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
14071: ai_p="$ep_realdir/`basename \"$MILTERPATH\"`"
14072: fi
14073:
14074:
14075:
14076:
14077:
14078: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
14079:
14080: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
14081: if test -n "$unique" && test "`eval $cmd`" = "" ; then
14082: eval "LIBPATH$unique=set"
14083:
14084: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
14085: LDFLAGS="$LDFLAGS -L$ai_p"
14086: PHP_RPATHS="$PHP_RPATHS $ai_p"
14087:
14088: fi
14089:
14090:
14091:
14092: fi
14093:
14094: fi
14095:
14096:
14097: case milter in
14098: c|c_r|pthread*) ;;
14099: *)
14100: LIBS="-lmilter $LIBS"
14101: ;;
14102: esac
14103:
14104:
14105:
14106:
14107: BUILD_MILTER="\$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS) \$(LDFLAGS) \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_SAPI_OBJS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_MILTER_PATH)"
14108: INSTALL_IT="\$(INSTALL) -m 0755 \$(SAPI_MILTER_PATH) \$(bindir)/php-milter"
14109:
14110: PHP_VAR_SUBST="$PHP_VAR_SUBST SAPI_MILTER_PATH"
14111:
14112:
14113: PHP_VAR_SUBST="$PHP_VAR_SUBST BUILD_MILTER"
14114:
14115: fi
14116:
14117:
14118:
14119: php_with_nsapi=no
14120:
14121: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSAPI support" >&5
14122: $as_echo_n "checking for NSAPI support... " >&6; }
14123:
14124: # Check whether --with-nsapi was given.
14125: if test "${with_nsapi+set}" = set; then :
14126: withval=$with_nsapi; PHP_NSAPI=$withval
14127: else
14128:
14129: PHP_NSAPI=no
14130:
14131:
14132: fi
14133:
14134:
14135: ext_output=$PHP_NSAPI
14136: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
14137: $as_echo "$ext_output" >&6; }
14138:
14139:
14140:
14141:
14142: if test "$PHP_NSAPI" != "no"; then
14143: if test ! -d $PHP_NSAPI/bin ; then
14144: as_fn_error $? "Please specify the path to the root of your Netscape/iPlanet/Sun Webserver using --with-nsapi=DIR" "$LINENO" 5
14145: fi
14146: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSAPI include files" >&5
14147: $as_echo_n "checking for NSAPI include files... " >&6; }
14148: if test -d $PHP_NSAPI/include ; then
14149: NSAPI_INC_DIR="$PHP_NSAPI/include"
14150: { $as_echo "$as_me:${as_lineno-$LINENO}: result: Netscape 3.x / Sun 7.x style" >&5
14151: $as_echo "Netscape 3.x / Sun 7.x style" >&6; }
14152: for ac_header in $NSAPI_INC_DIR/nsapi.h
14153: do :
14154: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14155: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14156: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14157: cat >>confdefs.h <<_ACEOF
14158: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14159: _ACEOF
14160:
14161: fi
14162:
14163: done
14164:
14165: NSAPI_INCLUDE="-I$NSAPI_INC_DIR"
14166: fi
14167: if test -d $PHP_NSAPI/plugins/include ; then
14168: NSAPI_INC_DIR="$PHP_NSAPI/plugins/include"
14169: { $as_echo "$as_me:${as_lineno-$LINENO}: result: iPlanet 4.x / Sun 6.x style" >&5
14170: $as_echo "iPlanet 4.x / Sun 6.x style" >&6; }
14171: for ac_header in $NSAPI_INC_DIR/nsapi.h
14172: do :
14173: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14174: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14175: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14176: cat >>confdefs.h <<_ACEOF
14177: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14178: _ACEOF
14179:
14180: fi
14181:
14182: done
14183:
14184: NSAPI_INCLUDE="$NSAPI_INCLUDE -I$NSAPI_INC_DIR"
14185: fi
14186: if test -z "$NSAPI_INCLUDE"; then
14187: as_fn_error $? "Please check you have nsapi.h in either $PHP_NSAPI/include or $PHP_NSAPI/plugins/include" "$LINENO" 5
14188: fi
14189:
14190:
14191: for ac_i in $NSAPI_INCLUDE; do
14192: case $ac_i in
14193: -I*)
14194: ac_ii=`echo $ac_i|cut -c 3-`
14195:
14196: if test "$ac_ii" != "/usr/include"; then
14197:
14198: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
14199: ai_p=$ac_ii
14200: else
14201:
14202: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
14203:
14204: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
14205: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
14206: fi
14207:
14208:
14209:
14210: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
14211:
14212: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
14213: if test -n "$unique" && test "`eval $cmd`" = "" ; then
14214: eval "INCLUDEPATH$unique=set"
14215:
14216: if test ""; then
14217: INCLUDES="-I$ai_p $INCLUDES"
14218: else
14219: INCLUDES="$INCLUDES -I$ai_p"
14220: fi
14221:
14222: fi
14223:
14224: fi
14225:
14226: ;;
14227: esac
14228: done
14229:
14230:
14231: enable_maintainer_zts=yes
14232: if test "$pthreads_working" != "yes"; then
14233: as_fn_error $? "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5
14234: fi
14235:
14236:
14237: $as_echo "#define HAVE_NSAPI 1" >>confdefs.h
14238:
14239:
14240: if test "$PHP_SAPI" != "default"; then
14241: as_fn_error $? "
14242: +--------------------------------------------------------------------+
14243: | *** ATTENTION *** |
14244: | |
14245: | You've configured multiple SAPIs to be build. You can build only |
14246: | one SAPI module and CLI binary at the same time. |
14247: +--------------------------------------------------------------------+
14248: " "$LINENO" 5
14249: fi
14250:
14251: PHP_SAPI=nsapi
14252:
14253: case "shared" in
14254: static)
14255:
14256: OVERALL_TARGET=php
14257: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
14258: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
14259: php_c_post=
14260: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
14261: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
14262: php_cxx_post=
14263: php_lo=lo
14264:
14265: case $with_pic in
14266: yes) pic_setting='-prefer-pic';;
14267: no) pic_setting='-prefer-non-pic';;
14268: esac
14269:
14270: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
14271: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
14272: shared_c_post=
14273: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
14274: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
14275: shared_cxx_post=
14276: shared_lo=lo
14277:
14278: php_build_target=program
14279:
14280: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
14281: php_build_target=static
14282: ;;
14283: shared)
14284:
14285: OVERALL_TARGET=php
14286: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
14287: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
14288: php_c_post=
14289: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
14290: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
14291: php_cxx_post=
14292: php_lo=lo
14293:
14294: case $with_pic in
14295: yes) pic_setting='-prefer-pic';;
14296: no) pic_setting='-prefer-non-pic';;
14297: esac
14298:
14299: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
14300: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
14301: shared_c_post=
14302: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
14303: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
14304: shared_cxx_post=
14305: shared_lo=lo
14306:
14307: php_build_target=program
14308:
14309: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
14310: php_build_target=shared
14311:
14312: php_c_pre=$shared_c_pre
14313: php_c_meta=$shared_c_meta
14314: php_c_post=$shared_c_post
14315: php_cxx_pre=$shared_cxx_pre
14316: php_cxx_meta=$shared_cxx_meta
14317: php_cxx_post=$shared_cxx_post
14318: php_lo=$shared_lo
14319: ;;
14320: bundle)
14321:
14322: OVERALL_TARGET=php
14323: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
14324: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
14325: php_c_post=
14326: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
14327: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
14328: php_cxx_post=
14329: php_lo=lo
14330:
14331: case $with_pic in
14332: yes) pic_setting='-prefer-pic';;
14333: no) pic_setting='-prefer-non-pic';;
14334: esac
14335:
14336: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
14337: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
14338: shared_c_post=
14339: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
14340: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
14341: shared_cxx_post=
14342: shared_lo=lo
14343:
14344: php_build_target=program
14345:
14346: OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
14347: php_build_target=static
14348: ;;
14349: program)
14350: OVERALL_TARGET=php
14351: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
14352: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
14353: php_c_post=
14354: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
14355: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
14356: php_cxx_post=
14357: php_lo=lo
14358:
14359: case $with_pic in
14360: yes) pic_setting='-prefer-pic';;
14361: no) pic_setting='-prefer-non-pic';;
14362: esac
14363:
14364: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
14365: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
14366: shared_c_post=
14367: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
14368: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
14369: shared_cxx_post=
14370: shared_lo=lo
14371:
14372: php_build_target=program
14373: ;;
14374: esac
14375:
14376:
14377:
14378: case sapi/nsapi in
14379: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
14380: /*) ac_srcdir=`echo "sapi/nsapi"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
14381: *) ac_srcdir="$abs_srcdir/sapi/nsapi/"; ac_bdir="sapi/nsapi/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
14382: esac
14383:
14384:
14385:
14386: b_c_pre=$php_c_pre
14387: b_cxx_pre=$php_cxx_pre
14388: b_c_meta=$php_c_meta
14389: b_cxx_meta=$php_cxx_meta
14390: b_c_post=$php_c_post
14391: b_cxx_post=$php_cxx_post
14392: b_lo=$php_lo
14393:
14394:
14395: old_IFS=$IFS
14396: for ac_src in nsapi.c; do
14397:
14398: IFS=.
14399: set $ac_src
14400: ac_obj=$1
14401: IFS=$old_IFS
14402:
14403: PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
14404:
14405: case $ac_src in
14406: *.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" ;;
14407: *.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" ;;
14408: *.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" ;;
14409: *.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" ;;
14410: esac
14411:
14412: cat >>Makefile.objects<<EOF
14413: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
14414: $ac_comp
14415: EOF
14416: done
14417:
14418:
14419:
14420: INSTALL_IT="\$(INSTALL) -m 0755 $SAPI_SHARED \$(INSTALL_ROOT)$PHP_NSAPI/bin/"
14421: fi
14422:
14423:
14424:
14425:
14426:
14427: php_with_phttpd=no
14428:
14429: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PHTTPD support" >&5
14430: $as_echo_n "checking for PHTTPD support... " >&6; }
14431:
14432: # Check whether --with-phttpd was given.
14433: if test "${with_phttpd+set}" = set; then :
14434: withval=$with_phttpd; PHP_PHTTPD=$withval
14435: else
14436:
14437: PHP_PHTTPD=no
14438:
14439:
14440: fi
14441:
14442:
14443: ext_output=$PHP_PHTTPD
14444: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
14445: $as_echo "$ext_output" >&6; }
14446:
14447:
14448:
14449:
14450: if test "$PHP_PHTTPD" != "no"; then
14451: if test ! -d $PHP_PHTTPD ; then
14452: as_fn_error $? "You did not specify a directory" "$LINENO" 5
14453: fi
14454:
14455: enable_maintainer_zts=yes
14456: if test "$pthreads_working" != "yes"; then
14457: as_fn_error $? "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5
14458: fi
14459:
14460:
14461: if test "$PHP_PHTTPD/include" != "/usr/include"; then
14462:
14463: if test -z "$PHP_PHTTPD/include" || echo "$PHP_PHTTPD/include" | grep '^/' >/dev/null ; then
14464: ai_p=$PHP_PHTTPD/include
14465: else
14466:
14467: ep_dir="`echo $PHP_PHTTPD/include|$SED 's%/*[^/][^/]*/*$%%'`"
14468:
14469: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
14470: ai_p="$ep_realdir/`basename \"$PHP_PHTTPD/include\"`"
14471: fi
14472:
14473:
14474:
14475: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
14476:
14477: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
14478: if test -n "$unique" && test "`eval $cmd`" = "" ; then
14479: eval "INCLUDEPATH$unique=set"
14480:
14481: if test ""; then
14482: INCLUDES="-I$ai_p $INCLUDES"
14483: else
14484: INCLUDES="$INCLUDES -I$ai_p"
14485: fi
14486:
14487: fi
14488:
14489: fi
14490:
14491:
14492: $as_echo "#define HAVE_PHTTPD 1" >>confdefs.h
14493:
14494:
14495: if test "$PHP_SAPI" != "default"; then
14496: as_fn_error $? "
14497: +--------------------------------------------------------------------+
14498: | *** ATTENTION *** |
14499: | |
14500: | You've configured multiple SAPIs to be build. You can build only |
14501: | one SAPI module and CLI binary at the same time. |
14502: +--------------------------------------------------------------------+
14503: " "$LINENO" 5
14504: fi
14505:
14506: PHP_SAPI=phttpd
14507:
14508: case "shared" in
14509: static)
14510:
14511: OVERALL_TARGET=php
14512: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
14513: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
14514: php_c_post=
14515: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
14516: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
14517: php_cxx_post=
14518: php_lo=lo
14519:
14520: case $with_pic in
14521: yes) pic_setting='-prefer-pic';;
14522: no) pic_setting='-prefer-non-pic';;
14523: esac
14524:
14525: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
14526: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
14527: shared_c_post=
14528: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
14529: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
14530: shared_cxx_post=
14531: shared_lo=lo
14532:
14533: php_build_target=program
14534:
14535: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
14536: php_build_target=static
14537: ;;
14538: shared)
14539:
14540: OVERALL_TARGET=php
14541: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
14542: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
14543: php_c_post=
14544: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
14545: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
14546: php_cxx_post=
14547: php_lo=lo
14548:
14549: case $with_pic in
14550: yes) pic_setting='-prefer-pic';;
14551: no) pic_setting='-prefer-non-pic';;
14552: esac
14553:
14554: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
14555: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
14556: shared_c_post=
14557: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
14558: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
14559: shared_cxx_post=
14560: shared_lo=lo
14561:
14562: php_build_target=program
14563:
14564: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
14565: php_build_target=shared
14566:
14567: php_c_pre=$shared_c_pre
14568: php_c_meta=$shared_c_meta
14569: php_c_post=$shared_c_post
14570: php_cxx_pre=$shared_cxx_pre
14571: php_cxx_meta=$shared_cxx_meta
14572: php_cxx_post=$shared_cxx_post
14573: php_lo=$shared_lo
14574: ;;
14575: bundle)
14576:
14577: OVERALL_TARGET=php
14578: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
14579: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
14580: php_c_post=
14581: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
14582: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
14583: php_cxx_post=
14584: php_lo=lo
14585:
14586: case $with_pic in
14587: yes) pic_setting='-prefer-pic';;
14588: no) pic_setting='-prefer-non-pic';;
14589: esac
14590:
14591: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
14592: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
14593: shared_c_post=
14594: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
14595: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
14596: shared_cxx_post=
14597: shared_lo=lo
14598:
14599: php_build_target=program
14600:
14601: OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
14602: php_build_target=static
14603: ;;
14604: program)
14605: OVERALL_TARGET=php
14606: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
14607: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
14608: php_c_post=
14609: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
14610: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
14611: php_cxx_post=
14612: php_lo=lo
14613:
14614: case $with_pic in
14615: yes) pic_setting='-prefer-pic';;
14616: no) pic_setting='-prefer-non-pic';;
14617: esac
14618:
14619: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
14620: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
14621: shared_c_post=
14622: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
14623: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
14624: shared_cxx_post=
14625: shared_lo=lo
14626:
14627: php_build_target=program
14628: ;;
14629: esac
14630:
14631:
14632:
14633: case sapi/phttpd in
14634: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
14635: /*) ac_srcdir=`echo "sapi/phttpd"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
14636: *) ac_srcdir="$abs_srcdir/sapi/phttpd/"; ac_bdir="sapi/phttpd/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
14637: esac
14638:
14639:
14640:
14641: b_c_pre=$php_c_pre
14642: b_cxx_pre=$php_cxx_pre
14643: b_c_meta=$php_c_meta
14644: b_cxx_meta=$php_cxx_meta
14645: b_c_post=$php_c_post
14646: b_cxx_post=$php_cxx_post
14647: b_lo=$php_lo
14648:
14649:
14650: old_IFS=$IFS
14651: for ac_src in phttpd.c; do
14652:
14653: IFS=.
14654: set $ac_src
14655: ac_obj=$1
14656: IFS=$old_IFS
14657:
14658: PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
14659:
14660: case $ac_src in
14661: *.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" ;;
14662: *.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" ;;
14663: *.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" ;;
14664: *.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" ;;
14665: esac
14666:
14667: cat >>Makefile.objects<<EOF
14668: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
14669: $ac_comp
14670: EOF
14671: done
14672:
14673:
14674:
14675: INSTALL_IT="\$(INSTALL) -m 0755 $SAPI_SHARED \$(INSTALL_ROOT)$PHP_PHTTPD/modules/"
14676: fi
14677:
14678:
14679:
14680:
14681: php_with_pi3web=no
14682:
14683: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Pi3Web support" >&5
14684: $as_echo_n "checking for Pi3Web support... " >&6; }
14685:
14686: # Check whether --with-pi3web was given.
14687: if test "${with_pi3web+set}" = set; then :
14688: withval=$with_pi3web; PHP_PI3WEB=$withval
14689: else
14690:
14691: PHP_PI3WEB=no
14692:
14693:
14694: fi
14695:
14696:
14697: ext_output=$PHP_PI3WEB
14698: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
14699: $as_echo "$ext_output" >&6; }
14700:
14701:
14702:
14703:
14704: if test "$PHP_PI3WEB" != "no"; then
14705: if test "$PHP_PI3WEB" = "yes"; then
14706: PI3PATH=../.. # the default
14707: else
14708: PI3PATH=$PHP_PI3WEB
14709: fi
14710: test -f "$PI3PATH/PiAPI/PiAPI.h" || as_fn_error $? "Unable to find PiAPI.h in $PI3PATH/PiAPI" "$LINENO" 5
14711:
14712: enable_maintainer_zts=yes
14713: if test "$pthreads_working" != "yes"; then
14714: as_fn_error $? "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5
14715: fi
14716:
14717:
14718: $as_echo "#define WITH_PI3WEB 1" >>confdefs.h
14719:
14720:
14721: if test "$PI3PATH/PiAPI" != "/usr/include"; then
14722:
14723: if test -z "$PI3PATH/PiAPI" || echo "$PI3PATH/PiAPI" | grep '^/' >/dev/null ; then
14724: ai_p=$PI3PATH/PiAPI
14725: else
14726:
14727: ep_dir="`echo $PI3PATH/PiAPI|$SED 's%/*[^/][^/]*/*$%%'`"
14728:
14729: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
14730: ai_p="$ep_realdir/`basename \"$PI3PATH/PiAPI\"`"
14731: fi
14732:
14733:
14734:
14735: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
14736:
14737: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
14738: if test -n "$unique" && test "`eval $cmd`" = "" ; then
14739: eval "INCLUDEPATH$unique=set"
14740:
14741: if test ""; then
14742: INCLUDES="-I$ai_p $INCLUDES"
14743: else
14744: INCLUDES="$INCLUDES -I$ai_p"
14745: fi
14746:
14747: fi
14748:
14749: fi
14750:
14751:
14752: if test "$PI3PATH/Pi2API" != "/usr/include"; then
14753:
14754: if test -z "$PI3PATH/Pi2API" || echo "$PI3PATH/Pi2API" | grep '^/' >/dev/null ; then
14755: ai_p=$PI3PATH/Pi2API
14756: else
14757:
14758: ep_dir="`echo $PI3PATH/Pi2API|$SED 's%/*[^/][^/]*/*$%%'`"
14759:
14760: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
14761: ai_p="$ep_realdir/`basename \"$PI3PATH/Pi2API\"`"
14762: fi
14763:
14764:
14765:
14766: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
14767:
14768: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
14769: if test -n "$unique" && test "`eval $cmd`" = "" ; then
14770: eval "INCLUDEPATH$unique=set"
14771:
14772: if test ""; then
14773: INCLUDES="-I$ai_p $INCLUDES"
14774: else
14775: INCLUDES="$INCLUDES -I$ai_p"
14776: fi
14777:
14778: fi
14779:
14780: fi
14781:
14782:
14783: if test "$PI3PATH/Pi3API" != "/usr/include"; then
14784:
14785: if test -z "$PI3PATH/Pi3API" || echo "$PI3PATH/Pi3API" | grep '^/' >/dev/null ; then
14786: ai_p=$PI3PATH/Pi3API
14787: else
14788:
14789: ep_dir="`echo $PI3PATH/Pi3API|$SED 's%/*[^/][^/]*/*$%%'`"
14790:
14791: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
14792: ai_p="$ep_realdir/`basename \"$PI3PATH/Pi3API\"`"
14793: fi
14794:
14795:
14796:
14797: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
14798:
14799: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
14800: if test -n "$unique" && test "`eval $cmd`" = "" ; then
14801: eval "INCLUDEPATH$unique=set"
14802:
14803: if test ""; then
14804: INCLUDES="-I$ai_p $INCLUDES"
14805: else
14806: INCLUDES="$INCLUDES -I$ai_p"
14807: fi
14808:
14809: fi
14810:
14811: fi
14812:
14813:
14814: if test "$PI3PATH/PHP5" != "/usr/include"; then
14815:
14816: if test -z "$PI3PATH/PHP5" || echo "$PI3PATH/PHP5" | grep '^/' >/dev/null ; then
14817: ai_p=$PI3PATH/PHP5
14818: else
14819:
14820: ep_dir="`echo $PI3PATH/PHP5|$SED 's%/*[^/][^/]*/*$%%'`"
14821:
14822: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
14823: ai_p="$ep_realdir/`basename \"$PI3PATH/PHP5\"`"
14824: fi
14825:
14826:
14827:
14828: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
14829:
14830: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
14831: if test -n "$unique" && test "`eval $cmd`" = "" ; then
14832: eval "INCLUDEPATH$unique=set"
14833:
14834: if test ""; then
14835: INCLUDES="-I$ai_p $INCLUDES"
14836: else
14837: INCLUDES="$INCLUDES -I$ai_p"
14838: fi
14839:
14840: fi
14841:
14842: fi
14843:
14844:
14845: if test "$PHP_SAPI" != "default"; then
14846: as_fn_error $? "
14847: +--------------------------------------------------------------------+
14848: | *** ATTENTION *** |
14849: | |
14850: | You've configured multiple SAPIs to be build. You can build only |
14851: | one SAPI module and CLI binary at the same time. |
14852: +--------------------------------------------------------------------+
14853: " "$LINENO" 5
14854: fi
14855:
14856: PHP_SAPI=pi3web
14857:
14858: case "shared" in
14859: static)
14860:
14861: OVERALL_TARGET=php
14862: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
14863: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
14864: php_c_post=
14865: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
14866: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
14867: php_cxx_post=
14868: php_lo=lo
14869:
14870: case $with_pic in
14871: yes) pic_setting='-prefer-pic';;
14872: no) pic_setting='-prefer-non-pic';;
14873: esac
14874:
14875: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
14876: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
14877: shared_c_post=
14878: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
14879: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
14880: shared_cxx_post=
14881: shared_lo=lo
14882:
14883: php_build_target=program
14884:
14885: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
14886: php_build_target=static
14887: ;;
14888: shared)
14889:
14890: OVERALL_TARGET=php
14891: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
14892: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
14893: php_c_post=
14894: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
14895: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
14896: php_cxx_post=
14897: php_lo=lo
14898:
14899: case $with_pic in
14900: yes) pic_setting='-prefer-pic';;
14901: no) pic_setting='-prefer-non-pic';;
14902: esac
14903:
14904: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
14905: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
14906: shared_c_post=
14907: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
14908: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
14909: shared_cxx_post=
14910: shared_lo=lo
14911:
14912: php_build_target=program
14913:
14914: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
14915: php_build_target=shared
14916:
14917: php_c_pre=$shared_c_pre
14918: php_c_meta=$shared_c_meta
14919: php_c_post=$shared_c_post
14920: php_cxx_pre=$shared_cxx_pre
14921: php_cxx_meta=$shared_cxx_meta
14922: php_cxx_post=$shared_cxx_post
14923: php_lo=$shared_lo
14924: ;;
14925: bundle)
14926:
14927: OVERALL_TARGET=php
14928: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
14929: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
14930: php_c_post=
14931: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
14932: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
14933: php_cxx_post=
14934: php_lo=lo
14935:
14936: case $with_pic in
14937: yes) pic_setting='-prefer-pic';;
14938: no) pic_setting='-prefer-non-pic';;
14939: esac
14940:
14941: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
14942: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
14943: shared_c_post=
14944: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
14945: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
14946: shared_cxx_post=
14947: shared_lo=lo
14948:
14949: php_build_target=program
14950:
14951: OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
14952: php_build_target=static
14953: ;;
14954: program)
14955: OVERALL_TARGET=php
14956: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
14957: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
14958: php_c_post=
14959: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
14960: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
14961: php_cxx_post=
14962: php_lo=lo
14963:
14964: case $with_pic in
14965: yes) pic_setting='-prefer-pic';;
14966: no) pic_setting='-prefer-non-pic';;
14967: esac
14968:
14969: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
14970: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
14971: shared_c_post=
14972: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
14973: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
14974: shared_cxx_post=
14975: shared_lo=lo
14976:
14977: php_build_target=program
14978: ;;
14979: esac
14980:
14981:
14982:
14983: case sapi/pi3web in
14984: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
14985: /*) ac_srcdir=`echo "sapi/pi3web"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
14986: *) ac_srcdir="$abs_srcdir/sapi/pi3web/"; ac_bdir="sapi/pi3web/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
14987: esac
14988:
14989:
14990:
14991: b_c_pre=$php_c_pre
14992: b_cxx_pre=$php_cxx_pre
14993: b_c_meta=$php_c_meta
14994: b_cxx_meta=$php_cxx_meta
14995: b_c_post=$php_c_post
14996: b_cxx_post=$php_cxx_post
14997: b_lo=$php_lo
14998:
14999:
15000: old_IFS=$IFS
15001: for ac_src in pi3web_sapi.c; do
15002:
15003: IFS=.
15004: set $ac_src
15005: ac_obj=$1
15006: IFS=$old_IFS
15007:
15008: PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
15009:
15010: case $ac_src in
15011: *.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" ;;
15012: *.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" ;;
15013: *.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" ;;
15014: *.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" ;;
15015: esac
15016:
15017: cat >>Makefile.objects<<EOF
15018: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
15019: $ac_comp
15020: EOF
15021: done
15022:
15023:
15024:
15025: INSTALL_IT="\$(SHELL) \$(srcdir)/install-sh -m 0755 $SAPI_SHARED \$(INSTALL_ROOT)$PI3PATH/bin/"
15026: fi
15027:
15028:
15029:
15030:
15031: php_with_roxen=no
15032:
15033:
15034:
15035: # Check whether --with-roxen was given.
15036: if test "${with_roxen+set}" = set; then :
15037: withval=$with_roxen; PHP_ROXEN=$withval
15038: else
15039:
15040: PHP_ROXEN=no
15041:
15042:
15043: fi
15044:
15045:
15046: ext_output=$PHP_ROXEN
15047:
15048:
15049:
15050:
15051:
15052:
15053: php_enable_roxen_zts=no
15054:
15055: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Roxen module is build using ZTS" >&5
15056: $as_echo_n "checking whether Roxen module is build using ZTS... " >&6; }
15057: # Check whether --enable-roxen-zts was given.
15058: if test "${enable_roxen_zts+set}" = set; then :
15059: enableval=$enable_roxen_zts; PHP_ROXEN_ZTS=$enableval
15060: else
15061:
15062: PHP_ROXEN_ZTS=no
15063:
15064:
15065: fi
15066:
15067:
15068: ext_output=$PHP_ROXEN_ZTS
15069: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
15070: $as_echo "$ext_output" >&6; }
15071:
15072:
15073:
15074:
15075: RESULT=
15076: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Roxen/Pike support" >&5
15077: $as_echo_n "checking for Roxen/Pike support... " >&6; }
15078: if test "$PHP_ROXEN" != "no"; then
15079: if test ! -d $PHP_ROXEN ; then
15080: as_fn_error $? "You did not specify a directory" "$LINENO" 5
15081: fi
15082: if test -f $PHP_ROXEN/bin/roxen; then
15083: PIKE=$PHP_ROXEN/bin/roxen
15084: elif test -f $PHP_ROXEN/bin/pike; then
15085: PIKE=$PHP_ROXEN/bin/pike
15086: else
15087: as_fn_error $? "Could not find a pike in $PHP_ROXEN/bin/" "$LINENO" 5
15088: fi
15089:
15090: if $PIKE -e 'float v; catch(v = __VERSION__ + (__BUILD__/10000.0)); if(v < 0.7079) exit(1); exit(0);'; then
15091: PIKE_MODULE_DIR=`$PIKE --show-paths 2>&1| grep '^Module' | sed -e 's/.*: //'`
15092: PIKE_INCLUDE_DIR=`echo $PIKE_MODULE_DIR | sed -e 's,lib/pike/modules,include/pike,' -e 's,lib/modules,include/pike,'`
15093: if test -z "$PIKE_INCLUDE_DIR" || test -z "$PIKE_MODULE_DIR"; then
15094: as_fn_error $? "Failed to figure out Pike module and include directories" "$LINENO" 5
15095: fi
15096: else
15097: as_fn_error $? "Roxen/PHP requires Pike 0.7.79 or newer" "$LINENO" 5
15098: fi
15099:
15100:
15101: if test "$PIKE_INCLUDE_DIR" != "/usr/include"; then
15102:
15103: if test -z "$PIKE_INCLUDE_DIR" || echo "$PIKE_INCLUDE_DIR" | grep '^/' >/dev/null ; then
15104: ai_p=$PIKE_INCLUDE_DIR
15105: else
15106:
15107: ep_dir="`echo $PIKE_INCLUDE_DIR|$SED 's%/*[^/][^/]*/*$%%'`"
15108:
15109: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
15110: ai_p="$ep_realdir/`basename \"$PIKE_INCLUDE_DIR\"`"
15111: fi
15112:
15113:
15114:
15115: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
15116:
15117: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
15118: if test -n "$unique" && test "`eval $cmd`" = "" ; then
15119: eval "INCLUDEPATH$unique=set"
15120:
15121: if test ""; then
15122: INCLUDES="-I$ai_p $INCLUDES"
15123: else
15124: INCLUDES="$INCLUDES -I$ai_p"
15125: fi
15126:
15127: fi
15128:
15129: fi
15130:
15131:
15132: $as_echo "#define HAVE_ROXEN 1" >>confdefs.h
15133:
15134:
15135: if test "$PHP_SAPI" != "default"; then
15136: as_fn_error $? "
15137: +--------------------------------------------------------------------+
15138: | *** ATTENTION *** |
15139: | |
15140: | You've configured multiple SAPIs to be build. You can build only |
15141: | one SAPI module and CLI binary at the same time. |
15142: +--------------------------------------------------------------------+
15143: " "$LINENO" 5
15144: fi
15145:
15146: PHP_SAPI=roxen
15147:
15148: case "shared" in
15149: static)
15150:
15151: OVERALL_TARGET=php
15152: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15153: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
15154: php_c_post=
15155: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15156: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
15157: php_cxx_post=
15158: php_lo=lo
15159:
15160: case $with_pic in
15161: yes) pic_setting='-prefer-pic';;
15162: no) pic_setting='-prefer-non-pic';;
15163: esac
15164:
15165: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15166: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
15167: shared_c_post=
15168: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15169: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
15170: shared_cxx_post=
15171: shared_lo=lo
15172:
15173: php_build_target=program
15174:
15175: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
15176: php_build_target=static
15177: ;;
15178: shared)
15179:
15180: OVERALL_TARGET=php
15181: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15182: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
15183: php_c_post=
15184: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15185: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
15186: php_cxx_post=
15187: php_lo=lo
15188:
15189: case $with_pic in
15190: yes) pic_setting='-prefer-pic';;
15191: no) pic_setting='-prefer-non-pic';;
15192: esac
15193:
15194: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15195: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
15196: shared_c_post=
15197: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15198: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
15199: shared_cxx_post=
15200: shared_lo=lo
15201:
15202: php_build_target=program
15203:
15204: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
15205: php_build_target=shared
15206:
15207: php_c_pre=$shared_c_pre
15208: php_c_meta=$shared_c_meta
15209: php_c_post=$shared_c_post
15210: php_cxx_pre=$shared_cxx_pre
15211: php_cxx_meta=$shared_cxx_meta
15212: php_cxx_post=$shared_cxx_post
15213: php_lo=$shared_lo
15214: ;;
15215: bundle)
15216:
15217: OVERALL_TARGET=php
15218: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15219: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
15220: php_c_post=
15221: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15222: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
15223: php_cxx_post=
15224: php_lo=lo
15225:
15226: case $with_pic in
15227: yes) pic_setting='-prefer-pic';;
15228: no) pic_setting='-prefer-non-pic';;
15229: esac
15230:
15231: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15232: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
15233: shared_c_post=
15234: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15235: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
15236: shared_cxx_post=
15237: shared_lo=lo
15238:
15239: php_build_target=program
15240:
15241: OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
15242: php_build_target=static
15243: ;;
15244: program)
15245: OVERALL_TARGET=php
15246: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15247: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
15248: php_c_post=
15249: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15250: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
15251: php_cxx_post=
15252: php_lo=lo
15253:
15254: case $with_pic in
15255: yes) pic_setting='-prefer-pic';;
15256: no) pic_setting='-prefer-non-pic';;
15257: esac
15258:
15259: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15260: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
15261: shared_c_post=
15262: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15263: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
15264: shared_cxx_post=
15265: shared_lo=lo
15266:
15267: php_build_target=program
15268: ;;
15269: esac
15270:
15271:
15272:
15273: case sapi/roxen in
15274: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
15275: /*) ac_srcdir=`echo "sapi/roxen"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
15276: *) ac_srcdir="$abs_srcdir/sapi/roxen/"; ac_bdir="sapi/roxen/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
15277: esac
15278:
15279:
15280:
15281: b_c_pre=$php_c_pre
15282: b_cxx_pre=$php_cxx_pre
15283: b_c_meta=$php_c_meta
15284: b_cxx_meta=$php_cxx_meta
15285: b_c_post=$php_c_post
15286: b_cxx_post=$php_cxx_post
15287: b_lo=$php_lo
15288:
15289:
15290: old_IFS=$IFS
15291: for ac_src in roxen.c; do
15292:
15293: IFS=.
15294: set $ac_src
15295: ac_obj=$1
15296: IFS=$old_IFS
15297:
15298: PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
15299:
15300: case $ac_src in
15301: *.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" ;;
15302: *.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" ;;
15303: *.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" ;;
15304: *.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" ;;
15305: esac
15306:
15307: cat >>Makefile.objects<<EOF
15308: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
15309: $ac_comp
15310: EOF
15311: done
15312:
15313:
15314:
15315: INSTALL_IT="\$(INSTALL) -m 0755 $SAPI_SHARED $PIKE_MODULE_DIR/PHP5.so"
15316: RESULT="yes
15317: Pike binary used: $PIKE
15318: Pike include dir: $PIKE_INCLUDE_DIR
15319: Pike module directory: $PIKE_MODULE_DIR"
15320: PIKE_INCLUDE_DIR=" -I$PIKE_INCLUDE_DIR "
15321:
15322: if test "$PHP_ROXEN_ZTS" != "no"; then
15323:
15324: enable_maintainer_zts=yes
15325: if test "$pthreads_working" != "yes"; then
15326: as_fn_error $? "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5
15327: fi
15328:
15329:
15330: $as_echo "#define ROXEN_USE_ZTS 1" >>confdefs.h
15331:
15332: fi
15333: fi
15334: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RESULT" >&5
15335: $as_echo "$RESULT" >&6; }
15336:
15337:
15338:
15339:
15340: php_with_thttpd=no
15341:
15342:
15343:
15344: # Check whether --with-thttpd was given.
15345: if test "${with_thttpd+set}" = set; then :
15346: withval=$with_thttpd; PHP_THTTPD=$withval
15347: else
15348:
15349: PHP_THTTPD=no
15350:
15351:
15352: fi
15353:
15354:
15355: ext_output=$PHP_THTTPD
15356:
15357:
15358:
15359:
15360:
15361: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thttpd" >&5
15362: $as_echo_n "checking for thttpd... " >&6; }
15363:
15364: if test "$PHP_THTTPD" != "no"; then
15365: if test ! -d $PHP_THTTPD; then
15366: { $as_echo "$as_me:${as_lineno-$LINENO}: result: thttpd directory does not exist ($PHP_THTTPD)" >&5
15367: $as_echo "thttpd directory does not exist ($PHP_THTTPD)" >&6; }
15368: fi
15369:
15370:
15371: if test -z "$PHP_THTTPD" || echo "$PHP_THTTPD" | grep '^/' >/dev/null ; then
15372: THTTPD=$PHP_THTTPD
15373: else
15374:
15375: ep_dir="`echo $PHP_THTTPD|$SED 's%/*[^/][^/]*/*$%%'`"
15376:
15377: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
15378: THTTPD="$ep_realdir/`basename \"$PHP_THTTPD\"`"
15379: fi
15380:
15381:
15382: if grep thttpd.2.21b $PHP_THTTPD/version.h >/dev/null; then
15383: patch="test -f $THTTPD/php_patched || \
15384: (cd $THTTPD && patch -p1 < $abs_srcdir/sapi/thttpd/thttpd_patch && touch php_patched)"
15385:
15386: elif grep Premium $PHP_THTTPD/version.h >/dev/null; then
15387: patch=
15388: else
15389: as_fn_error $? "This version only supports thttpd-2.21b and Premium thttpd" "$LINENO" 5
15390: fi
15391:
15392: if test -n "$GCC"; then
15393:
15394: gcc_arg_name=ac_cv_gcc_arg_rdynamic
15395: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -rdynamic" >&5
15396: $as_echo_n "checking whether $CC supports -rdynamic... " >&6; }
15397: if ${ac_cv_gcc_arg_rdynamic+:} false; then :
15398: $as_echo_n "(cached) " >&6
15399: else
15400:
15401: echo 'void somefunc() { };' > conftest.c
15402: cmd='$CC -rdynamic -c conftest.c'
15403: if eval $cmd 2>&1 | $EGREP -e -rdynamic >/dev/null ; then
15404: ac_result=no
15405: else
15406: ac_result=yes
15407: fi
15408: eval $gcc_arg_name=$ac_result
15409: rm -f conftest.*
15410:
15411: fi
15412: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_arg_rdynamic" >&5
15413: $as_echo "$ac_cv_gcc_arg_rdynamic" >&6; }
15414: if eval test "\$$gcc_arg_name" = "yes"; then
15415: gcc_rdynamic=yes
15416: else
15417: :
15418:
15419: fi
15420:
15421: if test "$gcc_rdynamic" = "yes"; then
15422: PHP_LDFLAGS="$PHP_LDFLAGS -rdynamic"
15423: fi
15424: fi
15425:
15426: INSTALL_IT="\
15427: echo 'PHP_LIBS = -L. -lphp5 \$(PHP_LIBS) \$(EXTRA_LIBS)' > $THTTPD/php_makefile; \
15428: echo 'PHP_LDFLAGS = \$(NATIVE_RPATHS) \$(PHP_LDFLAGS)' >> $THTTPD/php_makefile; \
15429: echo 'PHP_CFLAGS = \$(COMMON_FLAGS) \$(CFLAGS_CLEAN) \$(CPPFLAGS) \$(EXTRA_CFLAGS)' >> $THTTPD/php_makefile; \
15430: rm -f $THTTPD/php_thttpd.c $THTTPD/php_thttpd.h $THTTPD/libphp5.a; \
15431: \$(LN_S) $abs_srcdir/sapi/thttpd/thttpd.c $THTTPD/php_thttpd.c; \
15432: \$(LN_S) $abs_srcdir/sapi/thttpd/php_thttpd.h $abs_builddir/$SAPI_STATIC $THTTPD/;\
15433: $patch"
15434: PHP_THTTPD="yes, using $THTTPD"
15435:
15436: if test "$THTTPD" != "/usr/include"; then
15437:
15438: if test -z "$THTTPD" || echo "$THTTPD" | grep '^/' >/dev/null ; then
15439: ai_p=$THTTPD
15440: else
15441:
15442: ep_dir="`echo $THTTPD|$SED 's%/*[^/][^/]*/*$%%'`"
15443:
15444: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
15445: ai_p="$ep_realdir/`basename \"$THTTPD\"`"
15446: fi
15447:
15448:
15449:
15450: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
15451:
15452: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
15453: if test -n "$unique" && test "`eval $cmd`" = "" ; then
15454: eval "INCLUDEPATH$unique=set"
15455:
15456: if test ""; then
15457: INCLUDES="-I$ai_p $INCLUDES"
15458: else
15459: INCLUDES="$INCLUDES -I$ai_p"
15460: fi
15461:
15462: fi
15463:
15464: fi
15465:
15466:
15467: if test "$PHP_SAPI" != "default"; then
15468: as_fn_error $? "
15469: +--------------------------------------------------------------------+
15470: | *** ATTENTION *** |
15471: | |
15472: | You've configured multiple SAPIs to be build. You can build only |
15473: | one SAPI module and CLI binary at the same time. |
15474: +--------------------------------------------------------------------+
15475: " "$LINENO" 5
15476: fi
15477:
15478: PHP_SAPI=thttpd
15479:
15480: case "static" in
15481: static)
15482:
15483: OVERALL_TARGET=php
15484: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15485: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
15486: php_c_post=
15487: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15488: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
15489: php_cxx_post=
15490: php_lo=lo
15491:
15492: case $with_pic in
15493: yes) pic_setting='-prefer-pic';;
15494: no) pic_setting='-prefer-non-pic';;
15495: esac
15496:
15497: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15498: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
15499: shared_c_post=
15500: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15501: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
15502: shared_cxx_post=
15503: shared_lo=lo
15504:
15505: php_build_target=program
15506:
15507: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
15508: php_build_target=static
15509: ;;
15510: shared)
15511:
15512: OVERALL_TARGET=php
15513: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15514: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
15515: php_c_post=
15516: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15517: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
15518: php_cxx_post=
15519: php_lo=lo
15520:
15521: case $with_pic in
15522: yes) pic_setting='-prefer-pic';;
15523: no) pic_setting='-prefer-non-pic';;
15524: esac
15525:
15526: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15527: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
15528: shared_c_post=
15529: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15530: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
15531: shared_cxx_post=
15532: shared_lo=lo
15533:
15534: php_build_target=program
15535:
15536: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
15537: php_build_target=shared
15538:
15539: php_c_pre=$shared_c_pre
15540: php_c_meta=$shared_c_meta
15541: php_c_post=$shared_c_post
15542: php_cxx_pre=$shared_cxx_pre
15543: php_cxx_meta=$shared_cxx_meta
15544: php_cxx_post=$shared_cxx_post
15545: php_lo=$shared_lo
15546: ;;
15547: bundle)
15548:
15549: OVERALL_TARGET=php
15550: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15551: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
15552: php_c_post=
15553: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15554: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
15555: php_cxx_post=
15556: php_lo=lo
15557:
15558: case $with_pic in
15559: yes) pic_setting='-prefer-pic';;
15560: no) pic_setting='-prefer-non-pic';;
15561: esac
15562:
15563: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15564: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
15565: shared_c_post=
15566: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15567: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
15568: shared_cxx_post=
15569: shared_lo=lo
15570:
15571: php_build_target=program
15572:
15573: OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
15574: php_build_target=static
15575: ;;
15576: program)
15577: OVERALL_TARGET=php
15578: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15579: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
15580: php_c_post=
15581: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15582: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
15583: php_cxx_post=
15584: php_lo=lo
15585:
15586: case $with_pic in
15587: yes) pic_setting='-prefer-pic';;
15588: no) pic_setting='-prefer-non-pic';;
15589: esac
15590:
15591: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15592: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
15593: shared_c_post=
15594: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15595: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
15596: shared_cxx_post=
15597: shared_lo=lo
15598:
15599: php_build_target=program
15600: ;;
15601: esac
15602:
15603:
15604:
15605: fi
15606: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_THTTPD" >&5
15607: $as_echo "$PHP_THTTPD" >&6; }
15608:
15609:
15610:
15611: php_with_tux=no
15612:
15613:
15614:
15615: # Check whether --with-tux was given.
15616: if test "${with_tux+set}" = set; then :
15617: withval=$with_tux; PHP_TUX=$withval
15618: else
15619:
15620: PHP_TUX=no
15621:
15622:
15623: fi
15624:
15625:
15626: ext_output=$PHP_TUX
15627:
15628:
15629:
15630:
15631:
15632: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TUX" >&5
15633: $as_echo_n "checking for TUX... " >&6; }
15634: if test "$PHP_TUX" != "no"; then
15635: INSTALL_IT="\$(INSTALL) -m 0755 $SAPI_SHARED $PHP_TUX/php5.tux.so"
15636: for ac_header in tuxmodule.h
15637: do :
15638: ac_fn_c_check_header_mongrel "$LINENO" "tuxmodule.h" "ac_cv_header_tuxmodule_h" "$ac_includes_default"
15639: if test "x$ac_cv_header_tuxmodule_h" = xyes; then :
15640: cat >>confdefs.h <<_ACEOF
15641: #define HAVE_TUXMODULE_H 1
15642: _ACEOF
15643: :
15644: else
15645: as_fn_error $? "Cannot find tuxmodule.h" "$LINENO" 5
15646: fi
15647:
15648: done
15649:
15650:
15651: if test "$PHP_SAPI" != "default"; then
15652: as_fn_error $? "
15653: +--------------------------------------------------------------------+
15654: | *** ATTENTION *** |
15655: | |
15656: | You've configured multiple SAPIs to be build. You can build only |
15657: | one SAPI module and CLI binary at the same time. |
15658: +--------------------------------------------------------------------+
15659: " "$LINENO" 5
15660: fi
15661:
15662: PHP_SAPI=tux
15663:
15664: case "shared" in
15665: static)
15666:
15667: OVERALL_TARGET=php
15668: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15669: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
15670: php_c_post=
15671: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15672: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
15673: php_cxx_post=
15674: php_lo=lo
15675:
15676: case $with_pic in
15677: yes) pic_setting='-prefer-pic';;
15678: no) pic_setting='-prefer-non-pic';;
15679: esac
15680:
15681: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15682: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
15683: shared_c_post=
15684: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15685: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
15686: shared_cxx_post=
15687: shared_lo=lo
15688:
15689: php_build_target=program
15690:
15691: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
15692: php_build_target=static
15693: ;;
15694: shared)
15695:
15696: OVERALL_TARGET=php
15697: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15698: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
15699: php_c_post=
15700: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15701: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
15702: php_cxx_post=
15703: php_lo=lo
15704:
15705: case $with_pic in
15706: yes) pic_setting='-prefer-pic';;
15707: no) pic_setting='-prefer-non-pic';;
15708: esac
15709:
15710: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15711: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
15712: shared_c_post=
15713: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15714: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
15715: shared_cxx_post=
15716: shared_lo=lo
15717:
15718: php_build_target=program
15719:
15720: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
15721: php_build_target=shared
15722:
15723: php_c_pre=$shared_c_pre
15724: php_c_meta=$shared_c_meta
15725: php_c_post=$shared_c_post
15726: php_cxx_pre=$shared_cxx_pre
15727: php_cxx_meta=$shared_cxx_meta
15728: php_cxx_post=$shared_cxx_post
15729: php_lo=$shared_lo
15730: ;;
15731: bundle)
15732:
15733: OVERALL_TARGET=php
15734: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15735: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
15736: php_c_post=
15737: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15738: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
15739: php_cxx_post=
15740: php_lo=lo
15741:
15742: case $with_pic in
15743: yes) pic_setting='-prefer-pic';;
15744: no) pic_setting='-prefer-non-pic';;
15745: esac
15746:
15747: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15748: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
15749: shared_c_post=
15750: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15751: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
15752: shared_cxx_post=
15753: shared_lo=lo
15754:
15755: php_build_target=program
15756:
15757: OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
15758: php_build_target=static
15759: ;;
15760: program)
15761: OVERALL_TARGET=php
15762: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15763: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
15764: php_c_post=
15765: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15766: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
15767: php_cxx_post=
15768: php_lo=lo
15769:
15770: case $with_pic in
15771: yes) pic_setting='-prefer-pic';;
15772: no) pic_setting='-prefer-non-pic';;
15773: esac
15774:
15775: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15776: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
15777: shared_c_post=
15778: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15779: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
15780: shared_cxx_post=
15781: shared_lo=lo
15782:
15783: php_build_target=program
15784: ;;
15785: esac
15786:
15787:
15788:
15789: case sapi/tux in
15790: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
15791: /*) ac_srcdir=`echo "sapi/tux"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
15792: *) ac_srcdir="$abs_srcdir/sapi/tux/"; ac_bdir="sapi/tux/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
15793: esac
15794:
15795:
15796:
15797: b_c_pre=$php_c_pre
15798: b_cxx_pre=$php_cxx_pre
15799: b_c_meta=$php_c_meta
15800: b_cxx_meta=$php_cxx_meta
15801: b_c_post=$php_c_post
15802: b_cxx_post=$php_cxx_post
15803: b_lo=$php_lo
15804:
15805:
15806: old_IFS=$IFS
15807: for ac_src in php_tux.c; do
15808:
15809: IFS=.
15810: set $ac_src
15811: ac_obj=$1
15812: IFS=$old_IFS
15813:
15814: PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
15815:
15816: case $ac_src in
15817: *.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" ;;
15818: *.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" ;;
15819: *.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" ;;
15820: *.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" ;;
15821: esac
15822:
15823: cat >>Makefile.objects<<EOF
15824: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
15825: $ac_comp
15826: EOF
15827: done
15828:
15829:
15830:
15831: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_TUX" >&5
15832: $as_echo "$PHP_TUX" >&6; }
15833: else
15834: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15835: $as_echo "no" >&6; }
15836: fi
15837:
15838:
15839:
15840: php_with_webjames=no
15841:
15842:
15843:
15844: # Check whether --with-webjames was given.
15845: if test "${with_webjames+set}" = set; then :
15846: withval=$with_webjames; PHP_WEBJAMES=$withval
15847: else
15848:
15849: PHP_WEBJAMES=no
15850:
15851:
15852: fi
15853:
15854:
15855: ext_output=$PHP_WEBJAMES
15856:
15857:
15858:
15859:
15860:
15861: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for webjames" >&5
15862: $as_echo_n "checking for webjames... " >&6; }
15863:
15864: if test "$PHP_WEBJAMES" != "no"; then
15865:
15866: if test -z "$PHP_WEBJAMES" || echo "$PHP_WEBJAMES" | grep '^/' >/dev/null ; then
15867: PHP_WEBJAMES=$PHP_WEBJAMES
15868: else
15869:
15870: ep_dir="`echo $PHP_WEBJAMES|$SED 's%/*[^/][^/]*/*$%%'`"
15871:
15872: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
15873: PHP_WEBJAMES="$ep_realdir/`basename \"$PHP_WEBJAMES\"`"
15874: fi
15875:
15876: INSTALL_IT="\
15877: echo 'PHP_LIBS = -l$abs_srcdir/$SAPI_STATIC \$(PHP_LIBS) \$(EXTRA_LIBS)' > $PHP_WEBJAMES/build/php; \
15878: echo 'PHP_LDFLAGS = \$(NATIVE_RPATHS) \$(PHP_LDFLAGS)' >> $PHP_WEBJAMES/build/php; \
15879: echo 'PHP_CFLAGS = -DPHP \$(COMMON_FLAGS) \$(EXTRA_CFLAGS) -I$abs_srcdir/sapi/webjames' >> $PHP_WEBJAMES/build/php;"
15880:
15881: if test "$PHP_WEBJAMES" != "/usr/include"; then
15882:
15883: if test -z "$PHP_WEBJAMES" || echo "$PHP_WEBJAMES" | grep '^/' >/dev/null ; then
15884: ai_p=$PHP_WEBJAMES
15885: else
15886:
15887: ep_dir="`echo $PHP_WEBJAMES|$SED 's%/*[^/][^/]*/*$%%'`"
15888:
15889: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
15890: ai_p="$ep_realdir/`basename \"$PHP_WEBJAMES\"`"
15891: fi
15892:
15893:
15894:
15895: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
15896:
15897: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
15898: if test -n "$unique" && test "`eval $cmd`" = "" ; then
15899: eval "INCLUDEPATH$unique=set"
15900:
15901: if test ""; then
15902: INCLUDES="-I$ai_p $INCLUDES"
15903: else
15904: INCLUDES="$INCLUDES -I$ai_p"
15905: fi
15906:
15907: fi
15908:
15909: fi
15910:
15911:
15912: if test "$PHP_SAPI" != "default"; then
15913: as_fn_error $? "
15914: +--------------------------------------------------------------------+
15915: | *** ATTENTION *** |
15916: | |
15917: | You've configured multiple SAPIs to be build. You can build only |
15918: | one SAPI module and CLI binary at the same time. |
15919: +--------------------------------------------------------------------+
15920: " "$LINENO" 5
15921: fi
15922:
15923: PHP_SAPI=webjames
15924:
15925: case "static" in
15926: static)
15927:
15928: OVERALL_TARGET=php
15929: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15930: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
15931: php_c_post=
15932: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15933: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
15934: php_cxx_post=
15935: php_lo=lo
15936:
15937: case $with_pic in
15938: yes) pic_setting='-prefer-pic';;
15939: no) pic_setting='-prefer-non-pic';;
15940: esac
15941:
15942: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15943: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
15944: shared_c_post=
15945: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15946: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
15947: shared_cxx_post=
15948: shared_lo=lo
15949:
15950: php_build_target=program
15951:
15952: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
15953: php_build_target=static
15954: ;;
15955: shared)
15956:
15957: OVERALL_TARGET=php
15958: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15959: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
15960: php_c_post=
15961: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15962: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
15963: php_cxx_post=
15964: php_lo=lo
15965:
15966: case $with_pic in
15967: yes) pic_setting='-prefer-pic';;
15968: no) pic_setting='-prefer-non-pic';;
15969: esac
15970:
15971: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15972: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
15973: shared_c_post=
15974: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15975: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
15976: shared_cxx_post=
15977: shared_lo=lo
15978:
15979: php_build_target=program
15980:
15981: OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
15982: php_build_target=shared
15983:
15984: php_c_pre=$shared_c_pre
15985: php_c_meta=$shared_c_meta
15986: php_c_post=$shared_c_post
15987: php_cxx_pre=$shared_cxx_pre
15988: php_cxx_meta=$shared_cxx_meta
15989: php_cxx_post=$shared_cxx_post
15990: php_lo=$shared_lo
15991: ;;
15992: bundle)
15993:
15994: OVERALL_TARGET=php
15995: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
15996: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
15997: php_c_post=
15998: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
15999: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
16000: php_cxx_post=
16001: php_lo=lo
16002:
16003: case $with_pic in
16004: yes) pic_setting='-prefer-pic';;
16005: no) pic_setting='-prefer-non-pic';;
16006: esac
16007:
16008: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
16009: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
16010: shared_c_post=
16011: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
16012: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
16013: shared_cxx_post=
16014: shared_lo=lo
16015:
16016: php_build_target=program
16017:
16018: OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
16019: php_build_target=static
16020: ;;
16021: program)
16022: OVERALL_TARGET=php
16023: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
16024: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
16025: php_c_post=
16026: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
16027: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
16028: php_cxx_post=
16029: php_lo=lo
16030:
16031: case $with_pic in
16032: yes) pic_setting='-prefer-pic';;
16033: no) pic_setting='-prefer-non-pic';;
16034: esac
16035:
16036: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
16037: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
16038: shared_c_post=
16039: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
16040: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
16041: shared_cxx_post=
16042: shared_lo=lo
16043:
16044: php_build_target=program
16045: ;;
16046: esac
16047:
16048:
16049:
16050: case sapi/webjames in
16051: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
16052: /*) ac_srcdir=`echo "sapi/webjames"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
16053: *) ac_srcdir="$abs_srcdir/sapi/webjames/"; ac_bdir="sapi/webjames/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
16054: esac
16055:
16056:
16057:
16058: b_c_pre=$php_c_pre
16059: b_cxx_pre=$php_cxx_pre
16060: b_c_meta=$php_c_meta
16061: b_cxx_meta=$php_cxx_meta
16062: b_c_post=$php_c_post
16063: b_cxx_post=$php_cxx_post
16064: b_lo=$php_lo
16065:
16066:
16067: old_IFS=$IFS
16068: for ac_src in webjames.c; do
16069:
16070: IFS=.
16071: set $ac_src
16072: ac_obj=$1
16073: IFS=$old_IFS
16074:
16075: PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
16076:
16077: case $ac_src in
16078: *.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" ;;
16079: *.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" ;;
16080: *.S) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
16081: *.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" ;;
16082: esac
16083:
16084: cat >>Makefile.objects<<EOF
16085: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
16086: $ac_comp
16087: EOF
16088: done
16089:
16090:
16091:
16092: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using $PHP_WEBJAMES" >&5
16093: $as_echo "yes, using $PHP_WEBJAMES" >&6; }
16094: else
16095: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16096: $as_echo "no" >&6; }
16097: fi
16098:
16099:
16100:
16101: php_enable_cgi=yes
16102:
16103:
16104: # Check whether --enable-cgi was given.
16105: if test "${enable_cgi+set}" = set; then :
16106: enableval=$enable_cgi; PHP_CGI=$enableval
16107: else
16108:
16109: PHP_CGI=yes
16110:
16111:
16112: fi
16113:
16114:
16115: ext_output=$PHP_CGI
16116:
16117:
16118:
16119:
16120:
16121: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build CGI binary" >&5
16122: $as_echo_n "checking whether to build CGI binary... " >&6; }
16123: if test "$PHP_CGI" != "no"; then
16124: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16125: $as_echo "yes" >&6; }
16126:
16127: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t in sys/socket.h" >&5
16128: $as_echo_n "checking for socklen_t in sys/socket.h... " >&6; }
16129: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16130: /* end confdefs.h. */
16131: #include <sys/socket.h>
16132:
16133: _ACEOF
16134: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16135: $EGREP "socklen_t" >/dev/null 2>&1; then :
16136: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16137: $as_echo "yes" >&6; }
16138:
16139: $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
16140:
16141: else
16142: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16143: $as_echo "no" >&6; }
16144: fi
16145: rm -f conftest*
16146:
16147:
16148: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sun_len in sys/un.h" >&5
16149: $as_echo_n "checking for sun_len in sys/un.h... " >&6; }
16150: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16151: /* end confdefs.h. */
16152: #include <sys/un.h>
16153:
16154: _ACEOF
16155: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16156: $EGREP "sun_len" >/dev/null 2>&1; then :
16157: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16158: $as_echo "yes" >&6; }
16159:
16160: $as_echo "#define HAVE_SOCKADDR_UN_SUN_LEN 1" >>confdefs.h
16161:
16162: else
16163: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16164: $as_echo "no" >&6; }
16165: fi
16166: rm -f conftest*
16167:
16168:
16169: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cross-process locking is required by accept()" >&5
16170: $as_echo_n "checking whether cross-process locking is required by accept()... " >&6; }
16171: case "`uname -sr`" in
16172: IRIX\ 5.* | SunOS\ 5.* | UNIX_System_V\ 4.0)
16173: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16174: $as_echo "yes" >&6; }
16175:
16176: $as_echo "#define USE_LOCKING 1" >>confdefs.h
16177:
16178: ;;
16179: *)
16180: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16181: $as_echo "no" >&6; }
16182: ;;
16183: esac
16184:
16185:
16186: src=$abs_srcdir/sapi/cgi/Makefile.frag
16187: ac_srcdir=$ext_srcdir
16188: ac_builddir=$ext_builddir
16189: test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments
16190:
16191:
16192: case $host_alias in
16193: *cygwin* )
16194: SAPI_CGI_PATH=sapi/cgi/php-cgi.exe
16195: ;;
16196: * )
16197: SAPI_CGI_PATH=sapi/cgi/php-cgi
16198: ;;
16199: esac
16200:
16201: PHP_VAR_SUBST="$PHP_VAR_SUBST SAPI_CGI_PATH"
16202:
16203:
16204: INSTALL_CGI="@echo \"Installing PHP CGI binary: \$(INSTALL_ROOT)\$(bindir)/\"; \$(INSTALL) -m 0755 \$(SAPI_CGI_PATH) \$(INSTALL_ROOT)\$(bindir)/\$(program_prefix)php-cgi\$(program_suffix)\$(EXEEXT)"
16205:
16206:
16207: case sapi/cgi in
16208: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
16209: /*) ac_srcdir=`echo "sapi/cgi"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
16210: *) ac_srcdir="$abs_srcdir/sapi/cgi/"; ac_bdir="sapi/cgi/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
16211: esac
16212:
16213:
16214:
16215: b_c_pre=$php_c_pre
16216: b_cxx_pre=$php_cxx_pre
16217: b_c_meta=$php_c_meta
16218: b_cxx_meta=$php_cxx_meta
16219: b_c_post=$php_c_post
16220: b_cxx_post=$php_cxx_post
16221: b_lo=$php_lo
16222:
16223:
16224: old_IFS=$IFS
16225: for ac_src in cgi_main.c fastcgi.c; do
16226:
16227: IFS=.
16228: set $ac_src
16229: ac_obj=$1
16230: IFS=$old_IFS
16231:
16232: PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo"
16233:
16234: case $ac_src in
16235: *.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" ;;
16236: *.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" ;;
16237: *.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" ;;
16238: *.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" ;;
16239: esac
16240:
16241: cat >>Makefile.objects<<EOF
16242: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
16243: $ac_comp
16244: EOF
16245: done
16246:
16247:
16248:
16249:
16250: case /main in
16251: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
16252: /*) ac_srcdir=`echo "/main"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
16253: *) ac_srcdir="$abs_srcdir//main/"; ac_bdir="/main/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
16254: esac
16255:
16256:
16257:
16258: b_c_pre=$php_c_pre
16259: b_cxx_pre=$php_cxx_pre
16260: b_c_meta=$php_c_meta
16261: b_cxx_meta=$php_cxx_meta
16262: b_c_post=$php_c_post
16263: b_cxx_post=$php_cxx_post
16264: b_lo=$php_lo
16265:
16266:
16267: old_IFS=$IFS
16268: for ac_src in internal_functions.c; do
16269:
16270: IFS=.
16271: set $ac_src
16272: ac_obj=$1
16273: IFS=$old_IFS
16274:
16275: PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo"
16276:
16277: case $ac_src in
16278: *.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" ;;
16279: *.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" ;;
16280: *.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" ;;
16281: *.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" ;;
16282: esac
16283:
16284: cat >>Makefile.objects<<EOF
16285: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
16286: $ac_comp
16287: EOF
16288: done
16289:
16290:
16291:
16292: case $host_alias in
16293: *aix*)
16294: BUILD_CGI="echo '\#! .' > php.sym && echo >>php.sym && nm -BCpg \`echo \$(PHP_GLOBAL_OBJS) \$(PHP_SAPI_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_SAPI_OBJS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_CGI_PATH)"
16295: ;;
16296: *darwin*)
16297: BUILD_CGI="\$(CC) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(NATIVE_RPATHS) \$(PHP_GLOBAL_OBJS:.lo=.o) \$(PHP_SAPI_OBJS:.lo=.o) \$(PHP_FRAMEWORKS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_CGI_PATH)"
16298: ;;
16299: *)
16300: BUILD_CGI="\$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_CGI_OBJS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_CGI_PATH)"
16301: ;;
16302: esac
16303:
16304: PHP_CGI_TARGET="\$(SAPI_CGI_PATH)"
16305: PHP_INSTALL_CGI_TARGET="install-cgi"
16306:
16307: PHP_VAR_SUBST="$PHP_VAR_SUBST BUILD_CGI"
16308:
16309:
16310: PHP_VAR_SUBST="$PHP_VAR_SUBST INSTALL_CGI"
16311:
16312:
16313: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_CGI_OBJS"
16314:
16315:
16316: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_CGI_TARGET"
16317:
16318:
16319: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_INSTALL_CGI_TARGET"
16320:
16321:
16322: if test "$PHP_SAPI" = "default" ; then
16323:
16324: OVERALL_TARGET=$SAPI_CGI_PATH
16325: php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
16326: php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
16327: php_c_post=
16328: php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
16329: php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
16330: php_cxx_post=
16331: php_lo=lo
16332:
16333: case $with_pic in
16334: yes) pic_setting='-prefer-pic';;
16335: no) pic_setting='-prefer-non-pic';;
16336: esac
16337:
16338: shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
16339: shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
16340: shared_c_post=
16341: shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
16342: shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
16343: shared_cxx_post=
16344: shared_lo=lo
16345:
16346: php_build_target=program
16347:
16348: fi
16349: else
16350: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16351: $as_echo "no" >&6; }
16352: if test "$PHP_SAPI" = "default" ; then
16353: if test "$PHP_CLI" != "no" ; then
16354: OVERALL_TARGET=
16355: PHP_SAPI=cli
16356: else
16357: as_fn_error $? "No SAPIs selected." "$LINENO" 5
16358: fi
16359: fi
16360: fi
16361:
16362:
16363:
16364: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chosen SAPI module" >&5
16365: $as_echo_n "checking for chosen SAPI module... " >&6; }
16366: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_SAPI" >&5
16367: $as_echo "$PHP_SAPI" >&6; }
16368:
16369: if test "$enable_maintainer_zts" = "yes"; then
16370:
16371: if test -n "$ac_cv_pthreads_lib"; then
16372: LIBS="$LIBS -l$ac_cv_pthreads_lib"
16373: fi
16374:
16375: if test -n "$ac_cv_pthreads_cflags"; then
16376: CFLAGS="$CFLAGS $ac_cv_pthreads_cflags"
16377: fi
16378:
16379: fi
16380:
16381:
16382:
16383:
16384:
16385:
16386: { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
16387: $as_echo "" >&6; }
16388: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Running system checks${T_ME}" >&5
16389: $as_echo "${T_MD}Running system checks${T_ME}" >&6; }
16390:
16391:
16392:
16393: PHP_ALT_PATH=/usr/bin:/usr/sbin:/usr/etc:/etc:/usr/ucblib:/usr/lib
16394: # Extract the first word of "sendmail", so it can be a program name with args.
16395: set dummy sendmail; ac_word=$2
16396: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16397: $as_echo_n "checking for $ac_word... " >&6; }
16398: if ${ac_cv_path_PROG_SENDMAIL+:} false; then :
16399: $as_echo_n "(cached) " >&6
16400: else
16401: case $PROG_SENDMAIL in
16402: [\\/]* | ?:[\\/]*)
16403: ac_cv_path_PROG_SENDMAIL="$PROG_SENDMAIL" # Let the user override the test with a path.
16404: ;;
16405: *)
16406: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16407: as_dummy="$PATH:$PHP_ALT_PATH"
16408: for as_dir in $as_dummy
16409: do
16410: IFS=$as_save_IFS
16411: test -z "$as_dir" && as_dir=.
16412: for ac_exec_ext in '' $ac_executable_extensions; do
16413: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16414: ac_cv_path_PROG_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
16415: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16416: break 2
16417: fi
16418: done
16419: done
16420: IFS=$as_save_IFS
16421:
16422: ;;
16423: esac
16424: fi
16425: PROG_SENDMAIL=$ac_cv_path_PROG_SENDMAIL
16426: if test -n "$PROG_SENDMAIL"; then
16427: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_SENDMAIL" >&5
16428: $as_echo "$PROG_SENDMAIL" >&6; }
16429: else
16430: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16431: $as_echo "no" >&6; }
16432: fi
16433:
16434:
16435:
16436: PHP_VAR_SUBST="$PHP_VAR_SUBST PROG_SENDMAIL"
16437:
16438:
16439:
16440:
16441: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system uses EBCDIC" >&5
16442: $as_echo_n "checking whether system uses EBCDIC... " >&6; }
16443: if ${ac_cv_ebcdic+:} false; then :
16444: $as_echo_n "(cached) " >&6
16445: else
16446:
16447: if test "$cross_compiling" = yes; then :
16448:
16449: ac_cv_ebcdic=no
16450:
16451: else
16452: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16453: /* end confdefs.h. */
16454:
16455: int main(void) {
16456: return (unsigned char)'A' != (unsigned char)0xC1;
16457: }
16458:
16459: _ACEOF
16460: if ac_fn_c_try_run "$LINENO"; then :
16461:
16462: ac_cv_ebcdic=yes
16463:
16464: else
16465:
16466: ac_cv_ebcdic=no
16467:
16468: fi
16469: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16470: conftest.$ac_objext conftest.beam conftest.$ac_ext
16471: fi
16472:
16473: fi
16474: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ebcdic" >&5
16475: $as_echo "$ac_cv_ebcdic" >&6; }
16476: if test "$ac_cv_ebcdic" = "yes"; then
16477:
16478: $as_echo "#define CHARSET_EBCDIC 1" >>confdefs.h
16479:
16480: fi
16481:
16482:
16483: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16484: $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16485: if ${ac_cv_c_bigendian_php+:} false; then :
16486: $as_echo_n "(cached) " >&6
16487: else
16488:
16489: ac_cv_c_bigendian_php=unknown
16490: if test "$cross_compiling" = yes; then :
16491: ac_cv_c_bigendian_php=unknown
16492: else
16493: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16494: /* end confdefs.h. */
16495:
16496: int main(void)
16497: {
16498: short one = 1;
16499: char *cp = (char *)&one;
16500:
16501: if (*cp == 0) {
16502: return(0);
16503: } else {
16504: return(1);
16505: }
16506: }
16507:
16508: _ACEOF
16509: if ac_fn_c_try_run "$LINENO"; then :
16510: ac_cv_c_bigendian_php=yes
16511: else
16512: ac_cv_c_bigendian_php=no
16513: fi
16514: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16515: conftest.$ac_objext conftest.beam conftest.$ac_ext
16516: fi
16517:
16518:
16519: fi
16520: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian_php" >&5
16521: $as_echo "$ac_cv_c_bigendian_php" >&6; }
16522: if test $ac_cv_c_bigendian_php = yes; then
16523:
16524: $as_echo "#define WORDS_BIGENDIAN /**/" >>confdefs.h
16525:
16526: fi
16527:
16528:
16529:
16530: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether writing to stdout works" >&5
16531: $as_echo_n "checking whether writing to stdout works... " >&6; }
16532: if ${ac_cv_write_stdout+:} false; then :
16533: $as_echo_n "(cached) " >&6
16534: else
16535:
16536: if test "$cross_compiling" = yes; then :
16537:
16538: ac_cv_write_stdout=no
16539:
16540: else
16541: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16542: /* end confdefs.h. */
16543:
16544: #ifdef HAVE_UNISTD_H
16545: #include <unistd.h>
16546: #endif
16547:
16548: #define TEXT "This is the test message -- "
16549:
16550: main()
16551: {
16552: int n;
16553:
16554: n = write(1, TEXT, sizeof(TEXT)-1);
16555: return (!(n == sizeof(TEXT)-1));
16556: }
16557:
16558: _ACEOF
16559: if ac_fn_c_try_run "$LINENO"; then :
16560:
16561: ac_cv_write_stdout=yes
16562:
16563: else
16564:
16565: ac_cv_write_stdout=no
16566:
16567: fi
16568: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16569: conftest.$ac_objext conftest.beam conftest.$ac_ext
16570: fi
16571:
16572:
16573: fi
16574: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_write_stdout" >&5
16575: $as_echo "$ac_cv_write_stdout" >&6; }
16576: if test "$ac_cv_write_stdout" = "yes"; then
16577:
16578: $as_echo "#define PHP_WRITE_STDOUT 1" >>confdefs.h
16579:
16580: fi
16581:
16582:
16583: if test -d /usr/pkg/include -a -d /usr/pkg/lib ; then
16584: CPPFLAGS="$CPPFLAGS -I/usr/pkg/include"
16585: LDFLAGS="$LDFLAGS -L/usr/pkg/lib"
16586: fi
16587: test -d /usr/ucblib &&
16588: if test "/usr/ucblib" != "/usr/$PHP_LIBDIR" && test "/usr/ucblib" != "/usr/lib"; then
16589:
16590: if test -z "/usr/ucblib" || echo "/usr/ucblib" | grep '^/' >/dev/null ; then
16591: ai_p=/usr/ucblib
16592: else
16593:
16594: ep_dir="`echo /usr/ucblib|$SED 's%/*[^/][^/]*/*$%%'`"
16595:
16596: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
16597: ai_p="$ep_realdir/`basename \"/usr/ucblib\"`"
16598: fi
16599:
16600:
16601:
16602:
16603:
16604: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
16605:
16606: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
16607: if test -n "$unique" && test "`eval $cmd`" = "" ; then
16608: eval "LIBPATH$unique=set"
16609:
16610: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
16611: LDFLAGS="$LDFLAGS -L$ai_p"
16612: PHP_RPATHS="$PHP_RPATHS $ai_p"
16613:
16614: fi
16615:
16616:
16617:
16618: fi
16619:
16620:
16621:
16622:
16623:
16624:
16625: unset ac_cv_func_socket
16626: unset ac_cv_func___socket
16627: unset found
16628:
16629: ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
16630: if test "x$ac_cv_func_socket" = xyes; then :
16631: found=yes
16632: else
16633: ac_fn_c_check_func "$LINENO" "__socket" "ac_cv_func___socket"
16634: if test "x$ac_cv_func___socket" = xyes; then :
16635: found=yes
16636: else
16637: found=no
16638: fi
16639:
16640: fi
16641:
16642:
16643: case $found in
16644: yes)
16645:
16646: $as_echo "#define HAVE_SOCKET 1" >>confdefs.h
16647:
16648: ac_cv_func_socket=yes
16649: ;;
16650:
16651: *)
16652:
16653: unset ac_cv_lib_socket_socket
16654: unset ac_cv_lib_socket___socket
16655: unset found
16656: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
16657: $as_echo_n "checking for socket in -lsocket... " >&6; }
16658: if ${ac_cv_lib_socket_socket+:} false; then :
16659: $as_echo_n "(cached) " >&6
16660: else
16661: ac_check_lib_save_LIBS=$LIBS
16662: LIBS="-lsocket $LIBS"
16663: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16664: /* end confdefs.h. */
16665:
16666: /* Override any GCC internal prototype to avoid an error.
16667: Use char because int might match the return type of a GCC
16668: builtin and then its argument prototype would still apply. */
16669: #ifdef __cplusplus
16670: extern "C"
16671: #endif
16672: char socket ();
16673: int
16674: main ()
16675: {
16676: return socket ();
16677: ;
16678: return 0;
16679: }
16680: _ACEOF
16681: if ac_fn_c_try_link "$LINENO"; then :
16682: ac_cv_lib_socket_socket=yes
16683: else
16684: ac_cv_lib_socket_socket=no
16685: fi
16686: rm -f core conftest.err conftest.$ac_objext \
16687: conftest$ac_exeext conftest.$ac_ext
16688: LIBS=$ac_check_lib_save_LIBS
16689: fi
16690: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
16691: $as_echo "$ac_cv_lib_socket_socket" >&6; }
16692: if test "x$ac_cv_lib_socket_socket" = xyes; then :
16693: found=yes
16694: else
16695:
16696: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __socket in -lsocket" >&5
16697: $as_echo_n "checking for __socket in -lsocket... " >&6; }
16698: if ${ac_cv_lib_socket___socket+:} false; then :
16699: $as_echo_n "(cached) " >&6
16700: else
16701: ac_check_lib_save_LIBS=$LIBS
16702: LIBS="-lsocket $LIBS"
16703: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16704: /* end confdefs.h. */
16705:
16706: /* Override any GCC internal prototype to avoid an error.
16707: Use char because int might match the return type of a GCC
16708: builtin and then its argument prototype would still apply. */
16709: #ifdef __cplusplus
16710: extern "C"
16711: #endif
16712: char __socket ();
16713: int
16714: main ()
16715: {
16716: return __socket ();
16717: ;
16718: return 0;
16719: }
16720: _ACEOF
16721: if ac_fn_c_try_link "$LINENO"; then :
16722: ac_cv_lib_socket___socket=yes
16723: else
16724: ac_cv_lib_socket___socket=no
16725: fi
16726: rm -f core conftest.err conftest.$ac_objext \
16727: conftest$ac_exeext conftest.$ac_ext
16728: LIBS=$ac_check_lib_save_LIBS
16729: fi
16730: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___socket" >&5
16731: $as_echo "$ac_cv_lib_socket___socket" >&6; }
16732: if test "x$ac_cv_lib_socket___socket" = xyes; then :
16733: found=yes
16734: else
16735: found=no
16736: fi
16737:
16738:
16739: fi
16740:
16741:
16742: if test "$found" = "yes"; then
16743: ac_libs=$LIBS
16744: LIBS="$LIBS -lsocket"
16745: if test "$cross_compiling" = yes; then :
16746: found=no
16747: else
16748: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16749: /* end confdefs.h. */
16750: main() { return (0); }
16751: _ACEOF
16752: if ac_fn_c_try_run "$LINENO"; then :
16753: found=yes
16754: else
16755: found=no
16756: fi
16757: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16758: conftest.$ac_objext conftest.beam conftest.$ac_ext
16759: fi
16760:
16761: LIBS=$ac_libs
16762: fi
16763:
16764: if test "$found" = "yes"; then
16765:
16766:
16767: case socket in
16768: c|c_r|pthread*) ;;
16769: *)
16770: LIBS="-lsocket $LIBS"
16771: ;;
16772: esac
16773:
16774:
16775:
16776: $as_echo "#define HAVE_SOCKET 1" >>confdefs.h
16777:
16778:
16779: $as_echo "#define HAVE_LIBSOCKET 1" >>confdefs.h
16780:
16781: ac_cv_func_socket=yes
16782: else
16783:
16784: :
16785:
16786: fi
16787:
16788: ;;
16789:
16790: esac
16791:
16792:
16793: unset ac_cv_func_socketpair
16794: unset ac_cv_func___socketpair
16795: unset found
16796:
16797: ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair"
16798: if test "x$ac_cv_func_socketpair" = xyes; then :
16799: found=yes
16800: else
16801: ac_fn_c_check_func "$LINENO" "__socketpair" "ac_cv_func___socketpair"
16802: if test "x$ac_cv_func___socketpair" = xyes; then :
16803: found=yes
16804: else
16805: found=no
16806: fi
16807:
16808: fi
16809:
16810:
16811: case $found in
16812: yes)
16813:
16814: $as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h
16815:
16816: ac_cv_func_socketpair=yes
16817: ;;
16818:
16819: *)
16820:
16821: unset ac_cv_lib_socket_socketpair
16822: unset ac_cv_lib_socket___socketpair
16823: unset found
16824: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair in -lsocket" >&5
16825: $as_echo_n "checking for socketpair in -lsocket... " >&6; }
16826: if ${ac_cv_lib_socket_socketpair+:} false; then :
16827: $as_echo_n "(cached) " >&6
16828: else
16829: ac_check_lib_save_LIBS=$LIBS
16830: LIBS="-lsocket $LIBS"
16831: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16832: /* end confdefs.h. */
16833:
16834: /* Override any GCC internal prototype to avoid an error.
16835: Use char because int might match the return type of a GCC
16836: builtin and then its argument prototype would still apply. */
16837: #ifdef __cplusplus
16838: extern "C"
16839: #endif
16840: char socketpair ();
16841: int
16842: main ()
16843: {
16844: return socketpair ();
16845: ;
16846: return 0;
16847: }
16848: _ACEOF
16849: if ac_fn_c_try_link "$LINENO"; then :
16850: ac_cv_lib_socket_socketpair=yes
16851: else
16852: ac_cv_lib_socket_socketpair=no
16853: fi
16854: rm -f core conftest.err conftest.$ac_objext \
16855: conftest$ac_exeext conftest.$ac_ext
16856: LIBS=$ac_check_lib_save_LIBS
16857: fi
16858: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socketpair" >&5
16859: $as_echo "$ac_cv_lib_socket_socketpair" >&6; }
16860: if test "x$ac_cv_lib_socket_socketpair" = xyes; then :
16861: found=yes
16862: else
16863:
16864: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __socketpair in -lsocket" >&5
16865: $as_echo_n "checking for __socketpair in -lsocket... " >&6; }
16866: if ${ac_cv_lib_socket___socketpair+:} false; then :
16867: $as_echo_n "(cached) " >&6
16868: else
16869: ac_check_lib_save_LIBS=$LIBS
16870: LIBS="-lsocket $LIBS"
16871: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16872: /* end confdefs.h. */
16873:
16874: /* Override any GCC internal prototype to avoid an error.
16875: Use char because int might match the return type of a GCC
16876: builtin and then its argument prototype would still apply. */
16877: #ifdef __cplusplus
16878: extern "C"
16879: #endif
16880: char __socketpair ();
16881: int
16882: main ()
16883: {
16884: return __socketpair ();
16885: ;
16886: return 0;
16887: }
16888: _ACEOF
16889: if ac_fn_c_try_link "$LINENO"; then :
16890: ac_cv_lib_socket___socketpair=yes
16891: else
16892: ac_cv_lib_socket___socketpair=no
16893: fi
16894: rm -f core conftest.err conftest.$ac_objext \
16895: conftest$ac_exeext conftest.$ac_ext
16896: LIBS=$ac_check_lib_save_LIBS
16897: fi
16898: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___socketpair" >&5
16899: $as_echo "$ac_cv_lib_socket___socketpair" >&6; }
16900: if test "x$ac_cv_lib_socket___socketpair" = xyes; then :
16901: found=yes
16902: else
16903: found=no
16904: fi
16905:
16906:
16907: fi
16908:
16909:
16910: if test "$found" = "yes"; then
16911: ac_libs=$LIBS
16912: LIBS="$LIBS -lsocket"
16913: if test "$cross_compiling" = yes; then :
16914: found=no
16915: else
16916: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16917: /* end confdefs.h. */
16918: main() { return (0); }
16919: _ACEOF
16920: if ac_fn_c_try_run "$LINENO"; then :
16921: found=yes
16922: else
16923: found=no
16924: fi
16925: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16926: conftest.$ac_objext conftest.beam conftest.$ac_ext
16927: fi
16928:
16929: LIBS=$ac_libs
16930: fi
16931:
16932: if test "$found" = "yes"; then
16933:
16934:
16935: case socket in
16936: c|c_r|pthread*) ;;
16937: *)
16938: LIBS="-lsocket $LIBS"
16939: ;;
16940: esac
16941:
16942:
16943:
16944: $as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h
16945:
16946:
16947: $as_echo "#define HAVE_LIBSOCKET 1" >>confdefs.h
16948:
16949: ac_cv_func_socketpair=yes
16950: else
16951:
16952: :
16953:
16954: fi
16955:
16956: ;;
16957:
16958: esac
16959:
16960:
16961: unset ac_cv_func_htonl
16962: unset ac_cv_func___htonl
16963: unset found
16964:
16965: ac_fn_c_check_func "$LINENO" "htonl" "ac_cv_func_htonl"
16966: if test "x$ac_cv_func_htonl" = xyes; then :
16967: found=yes
16968: else
16969: ac_fn_c_check_func "$LINENO" "__htonl" "ac_cv_func___htonl"
16970: if test "x$ac_cv_func___htonl" = xyes; then :
16971: found=yes
16972: else
16973: found=no
16974: fi
16975:
16976: fi
16977:
16978:
16979: case $found in
16980: yes)
16981:
16982: $as_echo "#define HAVE_HTONL 1" >>confdefs.h
16983:
16984: ac_cv_func_htonl=yes
16985: ;;
16986:
16987: *)
16988:
16989: unset ac_cv_lib_socket_htonl
16990: unset ac_cv_lib_socket___htonl
16991: unset found
16992: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htonl in -lsocket" >&5
16993: $as_echo_n "checking for htonl in -lsocket... " >&6; }
16994: if ${ac_cv_lib_socket_htonl+:} false; then :
16995: $as_echo_n "(cached) " >&6
16996: else
16997: ac_check_lib_save_LIBS=$LIBS
16998: LIBS="-lsocket $LIBS"
16999: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17000: /* end confdefs.h. */
17001:
17002: /* Override any GCC internal prototype to avoid an error.
17003: Use char because int might match the return type of a GCC
17004: builtin and then its argument prototype would still apply. */
17005: #ifdef __cplusplus
17006: extern "C"
17007: #endif
17008: char htonl ();
17009: int
17010: main ()
17011: {
17012: return htonl ();
17013: ;
17014: return 0;
17015: }
17016: _ACEOF
17017: if ac_fn_c_try_link "$LINENO"; then :
17018: ac_cv_lib_socket_htonl=yes
17019: else
17020: ac_cv_lib_socket_htonl=no
17021: fi
17022: rm -f core conftest.err conftest.$ac_objext \
17023: conftest$ac_exeext conftest.$ac_ext
17024: LIBS=$ac_check_lib_save_LIBS
17025: fi
17026: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_htonl" >&5
17027: $as_echo "$ac_cv_lib_socket_htonl" >&6; }
17028: if test "x$ac_cv_lib_socket_htonl" = xyes; then :
17029: found=yes
17030: else
17031:
17032: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __htonl in -lsocket" >&5
17033: $as_echo_n "checking for __htonl in -lsocket... " >&6; }
17034: if ${ac_cv_lib_socket___htonl+:} false; then :
17035: $as_echo_n "(cached) " >&6
17036: else
17037: ac_check_lib_save_LIBS=$LIBS
17038: LIBS="-lsocket $LIBS"
17039: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17040: /* end confdefs.h. */
17041:
17042: /* Override any GCC internal prototype to avoid an error.
17043: Use char because int might match the return type of a GCC
17044: builtin and then its argument prototype would still apply. */
17045: #ifdef __cplusplus
17046: extern "C"
17047: #endif
17048: char __htonl ();
17049: int
17050: main ()
17051: {
17052: return __htonl ();
17053: ;
17054: return 0;
17055: }
17056: _ACEOF
17057: if ac_fn_c_try_link "$LINENO"; then :
17058: ac_cv_lib_socket___htonl=yes
17059: else
17060: ac_cv_lib_socket___htonl=no
17061: fi
17062: rm -f core conftest.err conftest.$ac_objext \
17063: conftest$ac_exeext conftest.$ac_ext
17064: LIBS=$ac_check_lib_save_LIBS
17065: fi
17066: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___htonl" >&5
17067: $as_echo "$ac_cv_lib_socket___htonl" >&6; }
17068: if test "x$ac_cv_lib_socket___htonl" = xyes; then :
17069: found=yes
17070: else
17071: found=no
17072: fi
17073:
17074:
17075: fi
17076:
17077:
17078: if test "$found" = "yes"; then
17079: ac_libs=$LIBS
17080: LIBS="$LIBS -lsocket"
17081: if test "$cross_compiling" = yes; then :
17082: found=no
17083: else
17084: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17085: /* end confdefs.h. */
17086: main() { return (0); }
17087: _ACEOF
17088: if ac_fn_c_try_run "$LINENO"; then :
17089: found=yes
17090: else
17091: found=no
17092: fi
17093: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17094: conftest.$ac_objext conftest.beam conftest.$ac_ext
17095: fi
17096:
17097: LIBS=$ac_libs
17098: fi
17099:
17100: if test "$found" = "yes"; then
17101:
17102:
17103: case socket in
17104: c|c_r|pthread*) ;;
17105: *)
17106: LIBS="-lsocket $LIBS"
17107: ;;
17108: esac
17109:
17110:
17111:
17112: $as_echo "#define HAVE_HTONL 1" >>confdefs.h
17113:
17114:
17115: $as_echo "#define HAVE_LIBSOCKET 1" >>confdefs.h
17116:
17117: ac_cv_func_htonl=yes
17118: else
17119:
17120: :
17121:
17122: fi
17123:
17124: ;;
17125:
17126: esac
17127:
17128:
17129: unset ac_cv_func_gethostname
17130: unset ac_cv_func___gethostname
17131: unset found
17132:
17133: ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
17134: if test "x$ac_cv_func_gethostname" = xyes; then :
17135: found=yes
17136: else
17137: ac_fn_c_check_func "$LINENO" "__gethostname" "ac_cv_func___gethostname"
17138: if test "x$ac_cv_func___gethostname" = xyes; then :
17139: found=yes
17140: else
17141: found=no
17142: fi
17143:
17144: fi
17145:
17146:
17147: case $found in
17148: yes)
17149:
17150: $as_echo "#define HAVE_GETHOSTNAME 1" >>confdefs.h
17151:
17152: ac_cv_func_gethostname=yes
17153: ;;
17154:
17155: *)
17156:
17157: unset ac_cv_lib_nsl_gethostname
17158: unset ac_cv_lib_nsl___gethostname
17159: unset found
17160: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname in -lnsl" >&5
17161: $as_echo_n "checking for gethostname in -lnsl... " >&6; }
17162: if ${ac_cv_lib_nsl_gethostname+:} false; then :
17163: $as_echo_n "(cached) " >&6
17164: else
17165: ac_check_lib_save_LIBS=$LIBS
17166: LIBS="-lnsl $LIBS"
17167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17168: /* end confdefs.h. */
17169:
17170: /* Override any GCC internal prototype to avoid an error.
17171: Use char because int might match the return type of a GCC
17172: builtin and then its argument prototype would still apply. */
17173: #ifdef __cplusplus
17174: extern "C"
17175: #endif
17176: char gethostname ();
17177: int
17178: main ()
17179: {
17180: return gethostname ();
17181: ;
17182: return 0;
17183: }
17184: _ACEOF
17185: if ac_fn_c_try_link "$LINENO"; then :
17186: ac_cv_lib_nsl_gethostname=yes
17187: else
17188: ac_cv_lib_nsl_gethostname=no
17189: fi
17190: rm -f core conftest.err conftest.$ac_objext \
17191: conftest$ac_exeext conftest.$ac_ext
17192: LIBS=$ac_check_lib_save_LIBS
17193: fi
17194: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostname" >&5
17195: $as_echo "$ac_cv_lib_nsl_gethostname" >&6; }
17196: if test "x$ac_cv_lib_nsl_gethostname" = xyes; then :
17197: found=yes
17198: else
17199:
17200: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gethostname in -lnsl" >&5
17201: $as_echo_n "checking for __gethostname in -lnsl... " >&6; }
17202: if ${ac_cv_lib_nsl___gethostname+:} false; then :
17203: $as_echo_n "(cached) " >&6
17204: else
17205: ac_check_lib_save_LIBS=$LIBS
17206: LIBS="-lnsl $LIBS"
17207: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17208: /* end confdefs.h. */
17209:
17210: /* Override any GCC internal prototype to avoid an error.
17211: Use char because int might match the return type of a GCC
17212: builtin and then its argument prototype would still apply. */
17213: #ifdef __cplusplus
17214: extern "C"
17215: #endif
17216: char __gethostname ();
17217: int
17218: main ()
17219: {
17220: return __gethostname ();
17221: ;
17222: return 0;
17223: }
17224: _ACEOF
17225: if ac_fn_c_try_link "$LINENO"; then :
17226: ac_cv_lib_nsl___gethostname=yes
17227: else
17228: ac_cv_lib_nsl___gethostname=no
17229: fi
17230: rm -f core conftest.err conftest.$ac_objext \
17231: conftest$ac_exeext conftest.$ac_ext
17232: LIBS=$ac_check_lib_save_LIBS
17233: fi
17234: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl___gethostname" >&5
17235: $as_echo "$ac_cv_lib_nsl___gethostname" >&6; }
17236: if test "x$ac_cv_lib_nsl___gethostname" = xyes; then :
17237: found=yes
17238: else
17239: found=no
17240: fi
17241:
17242:
17243: fi
17244:
17245:
17246: if test "$found" = "yes"; then
17247: ac_libs=$LIBS
17248: LIBS="$LIBS -lnsl"
17249: if test "$cross_compiling" = yes; then :
17250: found=no
17251: else
17252: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17253: /* end confdefs.h. */
17254: main() { return (0); }
17255: _ACEOF
17256: if ac_fn_c_try_run "$LINENO"; then :
17257: found=yes
17258: else
17259: found=no
17260: fi
17261: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17262: conftest.$ac_objext conftest.beam conftest.$ac_ext
17263: fi
17264:
17265: LIBS=$ac_libs
17266: fi
17267:
17268: if test "$found" = "yes"; then
17269:
17270:
17271: case nsl in
17272: c|c_r|pthread*) ;;
17273: *)
17274: LIBS="-lnsl $LIBS"
17275: ;;
17276: esac
17277:
17278:
17279:
17280: $as_echo "#define HAVE_GETHOSTNAME 1" >>confdefs.h
17281:
17282:
17283: $as_echo "#define HAVE_LIBNSL 1" >>confdefs.h
17284:
17285: ac_cv_func_gethostname=yes
17286: else
17287:
17288: :
17289:
17290: fi
17291:
17292: ;;
17293:
17294: esac
17295:
17296:
17297: unset ac_cv_func_gethostbyaddr
17298: unset ac_cv_func___gethostbyaddr
17299: unset found
17300:
17301: ac_fn_c_check_func "$LINENO" "gethostbyaddr" "ac_cv_func_gethostbyaddr"
17302: if test "x$ac_cv_func_gethostbyaddr" = xyes; then :
17303: found=yes
17304: else
17305: ac_fn_c_check_func "$LINENO" "__gethostbyaddr" "ac_cv_func___gethostbyaddr"
17306: if test "x$ac_cv_func___gethostbyaddr" = xyes; then :
17307: found=yes
17308: else
17309: found=no
17310: fi
17311:
17312: fi
17313:
17314:
17315: case $found in
17316: yes)
17317:
17318: $as_echo "#define HAVE_GETHOSTBYADDR 1" >>confdefs.h
17319:
17320: ac_cv_func_gethostbyaddr=yes
17321: ;;
17322:
17323: *)
17324:
17325: unset ac_cv_lib_nsl_gethostbyaddr
17326: unset ac_cv_lib_nsl___gethostbyaddr
17327: unset found
17328: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyaddr in -lnsl" >&5
17329: $as_echo_n "checking for gethostbyaddr in -lnsl... " >&6; }
17330: if ${ac_cv_lib_nsl_gethostbyaddr+:} false; then :
17331: $as_echo_n "(cached) " >&6
17332: else
17333: ac_check_lib_save_LIBS=$LIBS
17334: LIBS="-lnsl $LIBS"
17335: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17336: /* end confdefs.h. */
17337:
17338: /* Override any GCC internal prototype to avoid an error.
17339: Use char because int might match the return type of a GCC
17340: builtin and then its argument prototype would still apply. */
17341: #ifdef __cplusplus
17342: extern "C"
17343: #endif
17344: char gethostbyaddr ();
17345: int
17346: main ()
17347: {
17348: return gethostbyaddr ();
17349: ;
17350: return 0;
17351: }
17352: _ACEOF
17353: if ac_fn_c_try_link "$LINENO"; then :
17354: ac_cv_lib_nsl_gethostbyaddr=yes
17355: else
17356: ac_cv_lib_nsl_gethostbyaddr=no
17357: fi
17358: rm -f core conftest.err conftest.$ac_objext \
17359: conftest$ac_exeext conftest.$ac_ext
17360: LIBS=$ac_check_lib_save_LIBS
17361: fi
17362: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyaddr" >&5
17363: $as_echo "$ac_cv_lib_nsl_gethostbyaddr" >&6; }
17364: if test "x$ac_cv_lib_nsl_gethostbyaddr" = xyes; then :
17365: found=yes
17366: else
17367:
17368: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gethostbyaddr in -lnsl" >&5
17369: $as_echo_n "checking for __gethostbyaddr in -lnsl... " >&6; }
17370: if ${ac_cv_lib_nsl___gethostbyaddr+:} false; then :
17371: $as_echo_n "(cached) " >&6
17372: else
17373: ac_check_lib_save_LIBS=$LIBS
17374: LIBS="-lnsl $LIBS"
17375: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17376: /* end confdefs.h. */
17377:
17378: /* Override any GCC internal prototype to avoid an error.
17379: Use char because int might match the return type of a GCC
17380: builtin and then its argument prototype would still apply. */
17381: #ifdef __cplusplus
17382: extern "C"
17383: #endif
17384: char __gethostbyaddr ();
17385: int
17386: main ()
17387: {
17388: return __gethostbyaddr ();
17389: ;
17390: return 0;
17391: }
17392: _ACEOF
17393: if ac_fn_c_try_link "$LINENO"; then :
17394: ac_cv_lib_nsl___gethostbyaddr=yes
17395: else
17396: ac_cv_lib_nsl___gethostbyaddr=no
17397: fi
17398: rm -f core conftest.err conftest.$ac_objext \
17399: conftest$ac_exeext conftest.$ac_ext
17400: LIBS=$ac_check_lib_save_LIBS
17401: fi
17402: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl___gethostbyaddr" >&5
17403: $as_echo "$ac_cv_lib_nsl___gethostbyaddr" >&6; }
17404: if test "x$ac_cv_lib_nsl___gethostbyaddr" = xyes; then :
17405: found=yes
17406: else
17407: found=no
17408: fi
17409:
17410:
17411: fi
17412:
17413:
17414: if test "$found" = "yes"; then
17415: ac_libs=$LIBS
17416: LIBS="$LIBS -lnsl"
17417: if test "$cross_compiling" = yes; then :
17418: found=no
17419: else
17420: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17421: /* end confdefs.h. */
17422: main() { return (0); }
17423: _ACEOF
17424: if ac_fn_c_try_run "$LINENO"; then :
17425: found=yes
17426: else
17427: found=no
17428: fi
17429: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17430: conftest.$ac_objext conftest.beam conftest.$ac_ext
17431: fi
17432:
17433: LIBS=$ac_libs
17434: fi
17435:
17436: if test "$found" = "yes"; then
17437:
17438:
17439: case nsl in
17440: c|c_r|pthread*) ;;
17441: *)
17442: LIBS="-lnsl $LIBS"
17443: ;;
17444: esac
17445:
17446:
17447:
17448: $as_echo "#define HAVE_GETHOSTBYADDR 1" >>confdefs.h
17449:
17450:
17451: $as_echo "#define HAVE_LIBNSL 1" >>confdefs.h
17452:
17453: ac_cv_func_gethostbyaddr=yes
17454: else
17455:
17456: :
17457:
17458: fi
17459:
17460: ;;
17461:
17462: esac
17463:
17464:
17465: unset ac_cv_func_yp_get_default_domain
17466: unset ac_cv_func___yp_get_default_domain
17467: unset found
17468:
17469: ac_fn_c_check_func "$LINENO" "yp_get_default_domain" "ac_cv_func_yp_get_default_domain"
17470: if test "x$ac_cv_func_yp_get_default_domain" = xyes; then :
17471: found=yes
17472: else
17473: ac_fn_c_check_func "$LINENO" "__yp_get_default_domain" "ac_cv_func___yp_get_default_domain"
17474: if test "x$ac_cv_func___yp_get_default_domain" = xyes; then :
17475: found=yes
17476: else
17477: found=no
17478: fi
17479:
17480: fi
17481:
17482:
17483: case $found in
17484: yes)
17485:
17486: $as_echo "#define HAVE_YP_GET_DEFAULT_DOMAIN 1" >>confdefs.h
17487:
17488: ac_cv_func_yp_get_default_domain=yes
17489: ;;
17490:
17491: *)
17492:
17493: unset ac_cv_lib_nsl_yp_get_default_domain
17494: unset ac_cv_lib_nsl___yp_get_default_domain
17495: unset found
17496: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yp_get_default_domain in -lnsl" >&5
17497: $as_echo_n "checking for yp_get_default_domain in -lnsl... " >&6; }
17498: if ${ac_cv_lib_nsl_yp_get_default_domain+:} false; then :
17499: $as_echo_n "(cached) " >&6
17500: else
17501: ac_check_lib_save_LIBS=$LIBS
17502: LIBS="-lnsl $LIBS"
17503: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17504: /* end confdefs.h. */
17505:
17506: /* Override any GCC internal prototype to avoid an error.
17507: Use char because int might match the return type of a GCC
17508: builtin and then its argument prototype would still apply. */
17509: #ifdef __cplusplus
17510: extern "C"
17511: #endif
17512: char yp_get_default_domain ();
17513: int
17514: main ()
17515: {
17516: return yp_get_default_domain ();
17517: ;
17518: return 0;
17519: }
17520: _ACEOF
17521: if ac_fn_c_try_link "$LINENO"; then :
17522: ac_cv_lib_nsl_yp_get_default_domain=yes
17523: else
17524: ac_cv_lib_nsl_yp_get_default_domain=no
17525: fi
17526: rm -f core conftest.err conftest.$ac_objext \
17527: conftest$ac_exeext conftest.$ac_ext
17528: LIBS=$ac_check_lib_save_LIBS
17529: fi
17530: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_yp_get_default_domain" >&5
17531: $as_echo "$ac_cv_lib_nsl_yp_get_default_domain" >&6; }
17532: if test "x$ac_cv_lib_nsl_yp_get_default_domain" = xyes; then :
17533: found=yes
17534: else
17535:
17536: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __yp_get_default_domain in -lnsl" >&5
17537: $as_echo_n "checking for __yp_get_default_domain in -lnsl... " >&6; }
17538: if ${ac_cv_lib_nsl___yp_get_default_domain+:} false; then :
17539: $as_echo_n "(cached) " >&6
17540: else
17541: ac_check_lib_save_LIBS=$LIBS
17542: LIBS="-lnsl $LIBS"
17543: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17544: /* end confdefs.h. */
17545:
17546: /* Override any GCC internal prototype to avoid an error.
17547: Use char because int might match the return type of a GCC
17548: builtin and then its argument prototype would still apply. */
17549: #ifdef __cplusplus
17550: extern "C"
17551: #endif
17552: char __yp_get_default_domain ();
17553: int
17554: main ()
17555: {
17556: return __yp_get_default_domain ();
17557: ;
17558: return 0;
17559: }
17560: _ACEOF
17561: if ac_fn_c_try_link "$LINENO"; then :
17562: ac_cv_lib_nsl___yp_get_default_domain=yes
17563: else
17564: ac_cv_lib_nsl___yp_get_default_domain=no
17565: fi
17566: rm -f core conftest.err conftest.$ac_objext \
17567: conftest$ac_exeext conftest.$ac_ext
17568: LIBS=$ac_check_lib_save_LIBS
17569: fi
17570: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl___yp_get_default_domain" >&5
17571: $as_echo "$ac_cv_lib_nsl___yp_get_default_domain" >&6; }
17572: if test "x$ac_cv_lib_nsl___yp_get_default_domain" = xyes; then :
17573: found=yes
17574: else
17575: found=no
17576: fi
17577:
17578:
17579: fi
17580:
17581:
17582: if test "$found" = "yes"; then
17583: ac_libs=$LIBS
17584: LIBS="$LIBS -lnsl"
17585: if test "$cross_compiling" = yes; then :
17586: found=no
17587: else
17588: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17589: /* end confdefs.h. */
17590: main() { return (0); }
17591: _ACEOF
17592: if ac_fn_c_try_run "$LINENO"; then :
17593: found=yes
17594: else
17595: found=no
17596: fi
17597: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17598: conftest.$ac_objext conftest.beam conftest.$ac_ext
17599: fi
17600:
17601: LIBS=$ac_libs
17602: fi
17603:
17604: if test "$found" = "yes"; then
17605:
17606:
17607: case nsl in
17608: c|c_r|pthread*) ;;
17609: *)
17610: LIBS="-lnsl $LIBS"
17611: ;;
17612: esac
17613:
17614:
17615:
17616: $as_echo "#define HAVE_YP_GET_DEFAULT_DOMAIN 1" >>confdefs.h
17617:
17618:
17619: $as_echo "#define HAVE_LIBNSL 1" >>confdefs.h
17620:
17621: ac_cv_func_yp_get_default_domain=yes
17622: else
17623:
17624: :
17625:
17626: fi
17627:
17628: ;;
17629:
17630: esac
17631:
17632:
17633:
17634: unset ac_cv_func_dlopen
17635: unset ac_cv_func___dlopen
17636: unset found
17637:
17638: ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17639: if test "x$ac_cv_func_dlopen" = xyes; then :
17640: found=yes
17641: else
17642: ac_fn_c_check_func "$LINENO" "__dlopen" "ac_cv_func___dlopen"
17643: if test "x$ac_cv_func___dlopen" = xyes; then :
17644: found=yes
17645: else
17646: found=no
17647: fi
17648:
17649: fi
17650:
17651:
17652: case $found in
17653: yes)
17654:
17655: $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
17656:
17657: ac_cv_func_dlopen=yes
17658: ;;
17659:
17660: *)
17661:
17662: unset ac_cv_lib_dl_dlopen
17663: unset ac_cv_lib_dl___dlopen
17664: unset found
17665: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17666: $as_echo_n "checking for dlopen in -ldl... " >&6; }
17667: if ${ac_cv_lib_dl_dlopen+:} false; then :
17668: $as_echo_n "(cached) " >&6
17669: else
17670: ac_check_lib_save_LIBS=$LIBS
17671: LIBS="-ldl $LIBS"
17672: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17673: /* end confdefs.h. */
17674:
17675: /* Override any GCC internal prototype to avoid an error.
17676: Use char because int might match the return type of a GCC
17677: builtin and then its argument prototype would still apply. */
17678: #ifdef __cplusplus
17679: extern "C"
17680: #endif
17681: char dlopen ();
17682: int
17683: main ()
17684: {
17685: return dlopen ();
17686: ;
17687: return 0;
17688: }
17689: _ACEOF
17690: if ac_fn_c_try_link "$LINENO"; then :
17691: ac_cv_lib_dl_dlopen=yes
17692: else
17693: ac_cv_lib_dl_dlopen=no
17694: fi
17695: rm -f core conftest.err conftest.$ac_objext \
17696: conftest$ac_exeext conftest.$ac_ext
17697: LIBS=$ac_check_lib_save_LIBS
17698: fi
17699: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17700: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17701: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17702: found=yes
17703: else
17704:
17705: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dlopen in -ldl" >&5
17706: $as_echo_n "checking for __dlopen in -ldl... " >&6; }
17707: if ${ac_cv_lib_dl___dlopen+:} false; then :
17708: $as_echo_n "(cached) " >&6
17709: else
17710: ac_check_lib_save_LIBS=$LIBS
17711: LIBS="-ldl $LIBS"
17712: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17713: /* end confdefs.h. */
17714:
17715: /* Override any GCC internal prototype to avoid an error.
17716: Use char because int might match the return type of a GCC
17717: builtin and then its argument prototype would still apply. */
17718: #ifdef __cplusplus
17719: extern "C"
17720: #endif
17721: char __dlopen ();
17722: int
17723: main ()
17724: {
17725: return __dlopen ();
17726: ;
17727: return 0;
17728: }
17729: _ACEOF
17730: if ac_fn_c_try_link "$LINENO"; then :
17731: ac_cv_lib_dl___dlopen=yes
17732: else
17733: ac_cv_lib_dl___dlopen=no
17734: fi
17735: rm -f core conftest.err conftest.$ac_objext \
17736: conftest$ac_exeext conftest.$ac_ext
17737: LIBS=$ac_check_lib_save_LIBS
17738: fi
17739: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl___dlopen" >&5
17740: $as_echo "$ac_cv_lib_dl___dlopen" >&6; }
17741: if test "x$ac_cv_lib_dl___dlopen" = xyes; then :
17742: found=yes
17743: else
17744: found=no
17745: fi
17746:
17747:
17748: fi
17749:
17750:
17751: if test "$found" = "yes"; then
17752: ac_libs=$LIBS
17753: LIBS="$LIBS -ldl"
17754: if test "$cross_compiling" = yes; then :
17755: found=no
17756: else
17757: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17758: /* end confdefs.h. */
17759: main() { return (0); }
17760: _ACEOF
17761: if ac_fn_c_try_run "$LINENO"; then :
17762: found=yes
17763: else
17764: found=no
17765: fi
17766: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17767: conftest.$ac_objext conftest.beam conftest.$ac_ext
17768: fi
17769:
17770: LIBS=$ac_libs
17771: fi
17772:
17773: if test "$found" = "yes"; then
17774:
17775:
17776: case dl in
17777: c|c_r|pthread*) ;;
17778: *)
17779: LIBS="-ldl $LIBS"
17780: ;;
17781: esac
17782:
17783:
17784:
17785: $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
17786:
17787:
17788: $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
17789:
17790: ac_cv_func_dlopen=yes
17791: else
17792:
17793: :
17794:
17795: fi
17796:
17797: ;;
17798:
17799: esac
17800:
17801: if test "$ac_cv_func_dlopen" = "yes"; then
17802:
17803: $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
17804:
17805: fi
17806: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
17807: $as_echo_n "checking for sin in -lm... " >&6; }
17808: if ${ac_cv_lib_m_sin+:} false; then :
17809: $as_echo_n "(cached) " >&6
17810: else
17811: ac_check_lib_save_LIBS=$LIBS
17812: LIBS="-lm $LIBS"
17813: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17814: /* end confdefs.h. */
17815:
17816: /* Override any GCC internal prototype to avoid an error.
17817: Use char because int might match the return type of a GCC
17818: builtin and then its argument prototype would still apply. */
17819: #ifdef __cplusplus
17820: extern "C"
17821: #endif
17822: char sin ();
17823: int
17824: main ()
17825: {
17826: return sin ();
17827: ;
17828: return 0;
17829: }
17830: _ACEOF
17831: if ac_fn_c_try_link "$LINENO"; then :
17832: ac_cv_lib_m_sin=yes
17833: else
17834: ac_cv_lib_m_sin=no
17835: fi
17836: rm -f core conftest.err conftest.$ac_objext \
17837: conftest$ac_exeext conftest.$ac_ext
17838: LIBS=$ac_check_lib_save_LIBS
17839: fi
17840: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
17841: $as_echo "$ac_cv_lib_m_sin" >&6; }
17842: if test "x$ac_cv_lib_m_sin" = xyes; then :
17843: cat >>confdefs.h <<_ACEOF
17844: #define HAVE_LIBM 1
17845: _ACEOF
17846:
17847: LIBS="-lm $LIBS"
17848:
17849: fi
17850:
17851:
17852:
17853: unset ac_cv_func_inet_aton
17854: unset ac_cv_func___inet_aton
17855: unset found
17856:
17857: ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
17858: if test "x$ac_cv_func_inet_aton" = xyes; then :
17859: found=yes
17860: else
17861: ac_fn_c_check_func "$LINENO" "__inet_aton" "ac_cv_func___inet_aton"
17862: if test "x$ac_cv_func___inet_aton" = xyes; then :
17863: found=yes
17864: else
17865: found=no
17866: fi
17867:
17868: fi
17869:
17870:
17871: case $found in
17872: yes)
17873:
17874: $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
17875:
17876: ac_cv_func_inet_aton=yes
17877: ;;
17878:
17879: *)
17880:
17881: unset ac_cv_lib_resolv_inet_aton
17882: unset ac_cv_lib_resolv___inet_aton
17883: unset found
17884: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
17885: $as_echo_n "checking for inet_aton in -lresolv... " >&6; }
17886: if ${ac_cv_lib_resolv_inet_aton+:} false; then :
17887: $as_echo_n "(cached) " >&6
17888: else
17889: ac_check_lib_save_LIBS=$LIBS
17890: LIBS="-lresolv $LIBS"
17891: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17892: /* end confdefs.h. */
17893:
17894: /* Override any GCC internal prototype to avoid an error.
17895: Use char because int might match the return type of a GCC
17896: builtin and then its argument prototype would still apply. */
17897: #ifdef __cplusplus
17898: extern "C"
17899: #endif
17900: char inet_aton ();
17901: int
17902: main ()
17903: {
17904: return inet_aton ();
17905: ;
17906: return 0;
17907: }
17908: _ACEOF
17909: if ac_fn_c_try_link "$LINENO"; then :
17910: ac_cv_lib_resolv_inet_aton=yes
17911: else
17912: ac_cv_lib_resolv_inet_aton=no
17913: fi
17914: rm -f core conftest.err conftest.$ac_objext \
17915: conftest$ac_exeext conftest.$ac_ext
17916: LIBS=$ac_check_lib_save_LIBS
17917: fi
17918: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
17919: $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
17920: if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then :
17921: found=yes
17922: else
17923:
17924: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __inet_aton in -lresolv" >&5
17925: $as_echo_n "checking for __inet_aton in -lresolv... " >&6; }
17926: if ${ac_cv_lib_resolv___inet_aton+:} false; then :
17927: $as_echo_n "(cached) " >&6
17928: else
17929: ac_check_lib_save_LIBS=$LIBS
17930: LIBS="-lresolv $LIBS"
17931: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17932: /* end confdefs.h. */
17933:
17934: /* Override any GCC internal prototype to avoid an error.
17935: Use char because int might match the return type of a GCC
17936: builtin and then its argument prototype would still apply. */
17937: #ifdef __cplusplus
17938: extern "C"
17939: #endif
17940: char __inet_aton ();
17941: int
17942: main ()
17943: {
17944: return __inet_aton ();
17945: ;
17946: return 0;
17947: }
17948: _ACEOF
17949: if ac_fn_c_try_link "$LINENO"; then :
17950: ac_cv_lib_resolv___inet_aton=yes
17951: else
17952: ac_cv_lib_resolv___inet_aton=no
17953: fi
17954: rm -f core conftest.err conftest.$ac_objext \
17955: conftest$ac_exeext conftest.$ac_ext
17956: LIBS=$ac_check_lib_save_LIBS
17957: fi
17958: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___inet_aton" >&5
17959: $as_echo "$ac_cv_lib_resolv___inet_aton" >&6; }
17960: if test "x$ac_cv_lib_resolv___inet_aton" = xyes; then :
17961: found=yes
17962: else
17963: found=no
17964: fi
17965:
17966:
17967: fi
17968:
17969:
17970: if test "$found" = "yes"; then
17971: ac_libs=$LIBS
17972: LIBS="$LIBS -lresolv"
17973: if test "$cross_compiling" = yes; then :
17974: found=no
17975: else
17976: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17977: /* end confdefs.h. */
17978: main() { return (0); }
17979: _ACEOF
17980: if ac_fn_c_try_run "$LINENO"; then :
17981: found=yes
17982: else
17983: found=no
17984: fi
17985: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17986: conftest.$ac_objext conftest.beam conftest.$ac_ext
17987: fi
17988:
17989: LIBS=$ac_libs
17990: fi
17991:
17992: if test "$found" = "yes"; then
17993:
17994:
17995: case resolv in
17996: c|c_r|pthread*) ;;
17997: *)
17998: LIBS="-lresolv $LIBS"
17999: ;;
18000: esac
18001:
18002:
18003:
18004: $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
18005:
18006:
18007: $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
18008:
18009: ac_cv_func_inet_aton=yes
18010: else
18011:
18012:
18013: unset ac_cv_lib_bind_inet_aton
18014: unset ac_cv_lib_bind___inet_aton
18015: unset found
18016: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lbind" >&5
18017: $as_echo_n "checking for inet_aton in -lbind... " >&6; }
18018: if ${ac_cv_lib_bind_inet_aton+:} false; then :
18019: $as_echo_n "(cached) " >&6
18020: else
18021: ac_check_lib_save_LIBS=$LIBS
18022: LIBS="-lbind $LIBS"
18023: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18024: /* end confdefs.h. */
18025:
18026: /* Override any GCC internal prototype to avoid an error.
18027: Use char because int might match the return type of a GCC
18028: builtin and then its argument prototype would still apply. */
18029: #ifdef __cplusplus
18030: extern "C"
18031: #endif
18032: char inet_aton ();
18033: int
18034: main ()
18035: {
18036: return inet_aton ();
18037: ;
18038: return 0;
18039: }
18040: _ACEOF
18041: if ac_fn_c_try_link "$LINENO"; then :
18042: ac_cv_lib_bind_inet_aton=yes
18043: else
18044: ac_cv_lib_bind_inet_aton=no
18045: fi
18046: rm -f core conftest.err conftest.$ac_objext \
18047: conftest$ac_exeext conftest.$ac_ext
18048: LIBS=$ac_check_lib_save_LIBS
18049: fi
18050: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_inet_aton" >&5
18051: $as_echo "$ac_cv_lib_bind_inet_aton" >&6; }
18052: if test "x$ac_cv_lib_bind_inet_aton" = xyes; then :
18053: found=yes
18054: else
18055:
18056: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __inet_aton in -lbind" >&5
18057: $as_echo_n "checking for __inet_aton in -lbind... " >&6; }
18058: if ${ac_cv_lib_bind___inet_aton+:} false; then :
18059: $as_echo_n "(cached) " >&6
18060: else
18061: ac_check_lib_save_LIBS=$LIBS
18062: LIBS="-lbind $LIBS"
18063: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18064: /* end confdefs.h. */
18065:
18066: /* Override any GCC internal prototype to avoid an error.
18067: Use char because int might match the return type of a GCC
18068: builtin and then its argument prototype would still apply. */
18069: #ifdef __cplusplus
18070: extern "C"
18071: #endif
18072: char __inet_aton ();
18073: int
18074: main ()
18075: {
18076: return __inet_aton ();
18077: ;
18078: return 0;
18079: }
18080: _ACEOF
18081: if ac_fn_c_try_link "$LINENO"; then :
18082: ac_cv_lib_bind___inet_aton=yes
18083: else
18084: ac_cv_lib_bind___inet_aton=no
18085: fi
18086: rm -f core conftest.err conftest.$ac_objext \
18087: conftest$ac_exeext conftest.$ac_ext
18088: LIBS=$ac_check_lib_save_LIBS
18089: fi
18090: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind___inet_aton" >&5
18091: $as_echo "$ac_cv_lib_bind___inet_aton" >&6; }
18092: if test "x$ac_cv_lib_bind___inet_aton" = xyes; then :
18093: found=yes
18094: else
18095: found=no
18096: fi
18097:
18098:
18099: fi
18100:
18101:
18102: if test "$found" = "yes"; then
18103: ac_libs=$LIBS
18104: LIBS="$LIBS -lbind"
18105: if test "$cross_compiling" = yes; then :
18106: found=no
18107: else
18108: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18109: /* end confdefs.h. */
18110: main() { return (0); }
18111: _ACEOF
18112: if ac_fn_c_try_run "$LINENO"; then :
18113: found=yes
18114: else
18115: found=no
18116: fi
18117: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18118: conftest.$ac_objext conftest.beam conftest.$ac_ext
18119: fi
18120:
18121: LIBS=$ac_libs
18122: fi
18123:
18124: if test "$found" = "yes"; then
18125:
18126:
18127: case bind in
18128: c|c_r|pthread*) ;;
18129: *)
18130: LIBS="-lbind $LIBS"
18131: ;;
18132: esac
18133:
18134:
18135:
18136: $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
18137:
18138:
18139: $as_echo "#define HAVE_LIBBIND 1" >>confdefs.h
18140:
18141: ac_cv_func_inet_aton=yes
18142: else
18143:
18144: :
18145:
18146: fi
18147:
18148:
18149: fi
18150:
18151: ;;
18152:
18153: esac
18154:
18155:
18156:
18157: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
18158: $as_echo_n "checking for ANSI C header files... " >&6; }
18159: if ${ac_cv_header_stdc+:} false; then :
18160: $as_echo_n "(cached) " >&6
18161: else
18162: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18163: /* end confdefs.h. */
18164: #include <stdlib.h>
18165: #include <stdarg.h>
18166: #include <string.h>
18167: #include <float.h>
18168:
18169: int
18170: main ()
18171: {
18172:
18173: ;
18174: return 0;
18175: }
18176: _ACEOF
18177: if ac_fn_c_try_compile "$LINENO"; then :
18178: ac_cv_header_stdc=yes
18179: else
18180: ac_cv_header_stdc=no
18181: fi
18182: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18183:
18184: if test $ac_cv_header_stdc = yes; then
18185: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18186: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18187: /* end confdefs.h. */
18188: #include <string.h>
18189:
18190: _ACEOF
18191: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18192: $EGREP "memchr" >/dev/null 2>&1; then :
18193:
18194: else
18195: ac_cv_header_stdc=no
18196: fi
18197: rm -f conftest*
18198:
18199: fi
18200:
18201: if test $ac_cv_header_stdc = yes; then
18202: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18203: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18204: /* end confdefs.h. */
18205: #include <stdlib.h>
18206:
18207: _ACEOF
18208: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18209: $EGREP "free" >/dev/null 2>&1; then :
18210:
18211: else
18212: ac_cv_header_stdc=no
18213: fi
18214: rm -f conftest*
18215:
18216: fi
18217:
18218: if test $ac_cv_header_stdc = yes; then
18219: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18220: if test "$cross_compiling" = yes; then :
18221: :
18222: else
18223: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18224: /* end confdefs.h. */
18225: #include <ctype.h>
18226: #include <stdlib.h>
18227: #if ((' ' & 0x0FF) == 0x020)
18228: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18229: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18230: #else
18231: # define ISLOWER(c) \
18232: (('a' <= (c) && (c) <= 'i') \
18233: || ('j' <= (c) && (c) <= 'r') \
18234: || ('s' <= (c) && (c) <= 'z'))
18235: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18236: #endif
18237:
18238: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18239: int
18240: main ()
18241: {
18242: int i;
18243: for (i = 0; i < 256; i++)
18244: if (XOR (islower (i), ISLOWER (i))
18245: || toupper (i) != TOUPPER (i))
18246: return 2;
18247: return 0;
18248: }
18249: _ACEOF
18250: if ac_fn_c_try_run "$LINENO"; then :
18251:
18252: else
18253: ac_cv_header_stdc=no
18254: fi
18255: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18256: conftest.$ac_objext conftest.beam conftest.$ac_ext
18257: fi
18258:
18259: fi
18260: fi
18261: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
18262: $as_echo "$ac_cv_header_stdc" >&6; }
18263: if test $ac_cv_header_stdc = yes; then
18264:
18265: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
18266:
18267: fi
18268:
18269: ac_header_dirent=no
18270: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
18271: as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
18272: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
18273: $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
18274: if eval \${$as_ac_Header+:} false; then :
18275: $as_echo_n "(cached) " >&6
18276: else
18277: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18278: /* end confdefs.h. */
18279: #include <sys/types.h>
18280: #include <$ac_hdr>
18281:
18282: int
18283: main ()
18284: {
18285: if ((DIR *) 0)
18286: return 0;
18287: ;
18288: return 0;
18289: }
18290: _ACEOF
18291: if ac_fn_c_try_compile "$LINENO"; then :
18292: eval "$as_ac_Header=yes"
18293: else
18294: eval "$as_ac_Header=no"
18295: fi
18296: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18297: fi
18298: eval ac_res=\$$as_ac_Header
18299: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18300: $as_echo "$ac_res" >&6; }
18301: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18302: cat >>confdefs.h <<_ACEOF
18303: #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
18304: _ACEOF
18305:
18306: ac_header_dirent=$ac_hdr; break
18307: fi
18308:
18309: done
18310: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
18311: if test $ac_header_dirent = dirent.h; then
18312: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
18313: $as_echo_n "checking for library containing opendir... " >&6; }
18314: if ${ac_cv_search_opendir+:} false; then :
18315: $as_echo_n "(cached) " >&6
18316: else
18317: ac_func_search_save_LIBS=$LIBS
18318: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18319: /* end confdefs.h. */
18320:
18321: /* Override any GCC internal prototype to avoid an error.
18322: Use char because int might match the return type of a GCC
18323: builtin and then its argument prototype would still apply. */
18324: #ifdef __cplusplus
18325: extern "C"
18326: #endif
18327: char opendir ();
18328: int
18329: main ()
18330: {
18331: return opendir ();
18332: ;
18333: return 0;
18334: }
18335: _ACEOF
18336: for ac_lib in '' dir; do
18337: if test -z "$ac_lib"; then
18338: ac_res="none required"
18339: else
18340: ac_res=-l$ac_lib
18341: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18342: fi
18343: if ac_fn_c_try_link "$LINENO"; then :
18344: ac_cv_search_opendir=$ac_res
18345: fi
18346: rm -f core conftest.err conftest.$ac_objext \
18347: conftest$ac_exeext
18348: if ${ac_cv_search_opendir+:} false; then :
18349: break
18350: fi
18351: done
18352: if ${ac_cv_search_opendir+:} false; then :
18353:
18354: else
18355: ac_cv_search_opendir=no
18356: fi
18357: rm conftest.$ac_ext
18358: LIBS=$ac_func_search_save_LIBS
18359: fi
18360: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
18361: $as_echo "$ac_cv_search_opendir" >&6; }
18362: ac_res=$ac_cv_search_opendir
18363: if test "$ac_res" != no; then :
18364: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18365:
18366: fi
18367:
18368: else
18369: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
18370: $as_echo_n "checking for library containing opendir... " >&6; }
18371: if ${ac_cv_search_opendir+:} false; then :
18372: $as_echo_n "(cached) " >&6
18373: else
18374: ac_func_search_save_LIBS=$LIBS
18375: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18376: /* end confdefs.h. */
18377:
18378: /* Override any GCC internal prototype to avoid an error.
18379: Use char because int might match the return type of a GCC
18380: builtin and then its argument prototype would still apply. */
18381: #ifdef __cplusplus
18382: extern "C"
18383: #endif
18384: char opendir ();
18385: int
18386: main ()
18387: {
18388: return opendir ();
18389: ;
18390: return 0;
18391: }
18392: _ACEOF
18393: for ac_lib in '' x; do
18394: if test -z "$ac_lib"; then
18395: ac_res="none required"
18396: else
18397: ac_res=-l$ac_lib
18398: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18399: fi
18400: if ac_fn_c_try_link "$LINENO"; then :
18401: ac_cv_search_opendir=$ac_res
18402: fi
18403: rm -f core conftest.err conftest.$ac_objext \
18404: conftest$ac_exeext
18405: if ${ac_cv_search_opendir+:} false; then :
18406: break
18407: fi
18408: done
18409: if ${ac_cv_search_opendir+:} false; then :
18410:
18411: else
18412: ac_cv_search_opendir=no
18413: fi
18414: rm conftest.$ac_ext
18415: LIBS=$ac_func_search_save_LIBS
18416: fi
18417: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
18418: $as_echo "$ac_cv_search_opendir" >&6; }
18419: ac_res=$ac_cv_search_opendir
18420: if test "$ac_res" != no; then :
18421: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18422:
18423: fi
18424:
18425: fi
18426:
18427:
18428: for ac_header in \
18429: inttypes.h \
18430: stdint.h \
18431: dirent.h \
18432: ApplicationServices/ApplicationServices.h \
18433: sys/param.h \
18434: sys/types.h \
18435: sys/time.h \
18436: netinet/in.h \
18437: alloca.h \
18438: arpa/inet.h \
18439: arpa/nameser.h \
18440: assert.h \
18441: crypt.h \
18442: dns.h \
18443: fcntl.h \
18444: grp.h \
18445: ieeefp.h \
18446: langinfo.h \
18447: limits.h \
18448: locale.h \
18449: monetary.h \
18450: netdb.h \
18451: pwd.h \
18452: resolv.h \
18453: signal.h \
18454: stdarg.h \
18455: stdlib.h \
18456: string.h \
18457: syslog.h \
18458: sysexits.h \
18459: sys/ioctl.h \
18460: sys/file.h \
18461: sys/mman.h \
18462: sys/mount.h \
18463: sys/poll.h \
18464: sys/resource.h \
18465: sys/select.h \
18466: sys/socket.h \
18467: sys/stat.h \
18468: sys/statfs.h \
18469: sys/statvfs.h \
18470: sys/vfs.h \
18471: sys/sysexits.h \
18472: sys/varargs.h \
18473: sys/wait.h \
18474: sys/loadavg.h \
18475: termios.h \
18476: unistd.h \
18477: unix.h \
18478: utime.h \
18479: sys/utsname.h \
18480: sys/ipc.h \
18481: dlfcn.h \
18482: assert.h
18483:
18484: do :
18485: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18486: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
18487: #ifdef HAVE_SYS_PARAM_H
18488: #include <sys/param.h>
18489: #endif
18490: #ifdef HAVE_SYS_TYPES_H
18491: #include <sys/types.h>
18492: #endif
18493: #ifdef HAVE_SYS_TIME_H
18494: #include <sys/time.h>
18495: #endif
18496: #ifdef HAVE_NETINET_IN_H
18497: #include <netinet/in.h>
18498: #endif
18499: #ifdef HAVE_ARPA_NAMESER_H
18500: #include <arpa/nameser.h>
18501: #endif
18502:
18503: "
18504: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18505: cat >>confdefs.h <<_ACEOF
18506: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18507: _ACEOF
18508:
18509: fi
18510:
18511: done
18512:
18513:
18514:
18515: ac_fn_c_check_func "$LINENO" "fopencookie" "ac_cv_func_fopencookie"
18516: if test "x$ac_cv_func_fopencookie" = xyes; then :
18517: have_glibc_fopencookie=yes
18518: fi
18519:
18520:
18521: if test "$have_glibc_fopencookie" = "yes"; then
18522: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18523: /* end confdefs.h. */
18524:
18525: #define _GNU_SOURCE
18526: #include <stdio.h>
18527:
18528: int
18529: main ()
18530: {
18531: cookie_io_functions_t cookie;
18532: ;
18533: return 0;
18534: }
18535: _ACEOF
18536: if ac_fn_c_try_compile "$LINENO"; then :
18537: have_cookie_io_functions_t=yes
18538: fi
18539: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18540:
18541: if test "$have_cookie_io_functions_t" = "yes"; then
18542: cookie_io_functions_t=cookie_io_functions_t
18543: have_fopen_cookie=yes
18544:
18545: if test "$cross_compiling" = yes; then :
18546:
18547: cookie_io_functions_use_off64_t=no
18548:
18549: else
18550: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18551: /* end confdefs.h. */
18552:
18553: #define _GNU_SOURCE
18554: #include <stdio.h>
18555:
18556: struct cookiedata {
18557: __off64_t pos;
18558: };
18559:
18560: __ssize_t reader(void *cookie, char *buffer, size_t size)
18561: { return size; }
18562: __ssize_t writer(void *cookie, const char *buffer, size_t size)
18563: { return size; }
18564: int closer(void *cookie)
18565: { return 0; }
18566: int seeker(void *cookie, __off64_t *position, int whence)
18567: { ((struct cookiedata*)cookie)->pos = *position; return 0; }
18568:
18569: cookie_io_functions_t funcs = {reader, writer, seeker, closer};
18570:
18571: main() {
18572: struct cookiedata g = { 0 };
18573: FILE *fp = fopencookie(&g, "r", funcs);
18574:
18575: if (fp && fseek(fp, 8192, SEEK_SET) == 0 && g.pos == 8192)
18576: exit(0);
18577: exit(1);
18578: }
18579:
18580:
18581: _ACEOF
18582: if ac_fn_c_try_run "$LINENO"; then :
18583:
18584: cookie_io_functions_use_off64_t=yes
18585:
18586: else
18587:
18588: cookie_io_functions_use_off64_t=no
18589:
18590: fi
18591: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18592: conftest.$ac_objext conftest.beam conftest.$ac_ext
18593: fi
18594:
18595:
18596: else
18597:
18598: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18599: /* end confdefs.h. */
18600:
18601: #define _GNU_SOURCE
18602: #include <stdio.h>
18603:
18604: int
18605: main ()
18606: {
18607: _IO_cookie_io_functions_t cookie;
18608: ;
18609: return 0;
18610: }
18611: _ACEOF
18612: if ac_fn_c_try_compile "$LINENO"; then :
18613: have_IO_cookie_io_functions_t=yes
18614: fi
18615: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18616: if test "$have_cookie_io_functions_t" = "yes" ; then
18617: cookie_io_functions_t=_IO_cookie_io_functions_t
18618: have_fopen_cookie=yes
18619: fi
18620: fi
18621:
18622: if test "$have_fopen_cookie" = "yes" ; then
18623:
18624: $as_echo "#define HAVE_FOPENCOOKIE 1" >>confdefs.h
18625:
18626:
18627: cat >>confdefs.h <<_ACEOF
18628: #define COOKIE_IO_FUNCTIONS_T $cookie_io_functions_t
18629: _ACEOF
18630:
18631: if test "$cookie_io_functions_use_off64_t" = "yes" ; then
18632:
18633: $as_echo "#define COOKIE_SEEKER_USES_OFF64_T 1" >>confdefs.h
18634:
18635: fi
18636: fi
18637: fi
18638:
18639:
18640: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken getcwd" >&5
18641: $as_echo_n "checking for broken getcwd... " >&6; }
18642: os=`uname -sr 2>/dev/null`
18643: case $os in
18644: SunOS*)
18645:
18646: $as_echo "#define HAVE_BROKEN_GETCWD 1" >>confdefs.h
18647:
18648: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18649: $as_echo "yes" >&6; };;
18650: *)
18651: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18652: $as_echo "no" >&6; };;
18653: esac
18654:
18655:
18656: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken libc stdio" >&5
18657: $as_echo_n "checking for broken libc stdio... " >&6; }
18658: if ${_cv_have_broken_glibc_fopen_append+:} false; then :
18659: $as_echo_n "(cached) " >&6
18660: else
18661:
18662: if test "$cross_compiling" = yes; then :
18663: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18664: /* end confdefs.h. */
18665:
18666: #include <features.h>
18667:
18668: int
18669: main ()
18670: {
18671:
18672: #if !__GLIBC_PREREQ(2,2)
18673: choke me
18674: #endif
18675:
18676: ;
18677: return 0;
18678: }
18679: _ACEOF
18680: if ac_fn_c_try_compile "$LINENO"; then :
18681: _cv_have_broken_glibc_fopen_append=yes
18682: else
18683: _cv_have_broken_glibc_fopen_append=no
18684: fi
18685: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18686:
18687: else
18688: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18689: /* end confdefs.h. */
18690:
18691: #include <stdio.h>
18692: int main(int argc, char *argv[])
18693: {
18694: FILE *fp;
18695: long position;
18696: char *filename = "/tmp/phpglibccheck";
18697:
18698: fp = fopen(filename, "w");
18699: if (fp == NULL) {
18700: perror("fopen");
18701: exit(2);
18702: }
18703: fputs("foobar", fp);
18704: fclose(fp);
18705:
18706: fp = fopen(filename, "a+");
18707: position = ftell(fp);
18708: fclose(fp);
18709: unlink(filename);
18710: if (position == 0)
18711: return 1;
18712: return 0;
18713: }
18714:
18715: _ACEOF
18716: if ac_fn_c_try_run "$LINENO"; then :
18717: _cv_have_broken_glibc_fopen_append=no
18718: else
18719: _cv_have_broken_glibc_fopen_append=yes
18720: fi
18721: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18722: conftest.$ac_objext conftest.beam conftest.$ac_ext
18723: fi
18724:
18725: fi
18726:
18727:
18728: if test "$_cv_have_broken_glibc_fopen_append" = "yes"; then
18729: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18730: $as_echo "yes" >&6; }
18731:
18732: $as_echo "#define HAVE_BROKEN_GLIBC_FOPEN_APPEND 1" >>confdefs.h
18733:
18734: else
18735: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18736: $as_echo "no" >&6; }
18737: fi
18738:
18739:
18740:
18741: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
18742: $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
18743: if ${ac_cv_struct_tm+:} false; then :
18744: $as_echo_n "(cached) " >&6
18745: else
18746: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18747: /* end confdefs.h. */
18748: #include <sys/types.h>
18749: #include <time.h>
18750:
18751: int
18752: main ()
18753: {
18754: struct tm tm;
18755: int *p = &tm.tm_sec;
18756: return !p;
18757: ;
18758: return 0;
18759: }
18760: _ACEOF
18761: if ac_fn_c_try_compile "$LINENO"; then :
18762: ac_cv_struct_tm=time.h
18763: else
18764: ac_cv_struct_tm=sys/time.h
18765: fi
18766: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18767: fi
18768: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
18769: $as_echo "$ac_cv_struct_tm" >&6; }
18770: if test $ac_cv_struct_tm = sys/time.h; then
18771:
18772: $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
18773:
18774: fi
18775:
18776: ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
18777: #include <$ac_cv_struct_tm>
18778:
18779: "
18780: if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
18781:
18782: cat >>confdefs.h <<_ACEOF
18783: #define HAVE_STRUCT_TM_TM_ZONE 1
18784: _ACEOF
18785:
18786:
18787: fi
18788:
18789: if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
18790:
18791: $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
18792:
18793: else
18794: ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
18795: "
18796: if test "x$ac_cv_have_decl_tzname" = xyes; then :
18797: ac_have_decl=1
18798: else
18799: ac_have_decl=0
18800: fi
18801:
18802: cat >>confdefs.h <<_ACEOF
18803: #define HAVE_DECL_TZNAME $ac_have_decl
18804: _ACEOF
18805:
18806: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
18807: $as_echo_n "checking for tzname... " >&6; }
18808: if ${ac_cv_var_tzname+:} false; then :
18809: $as_echo_n "(cached) " >&6
18810: else
18811: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18812: /* end confdefs.h. */
18813: #include <time.h>
18814: #if !HAVE_DECL_TZNAME
18815: extern char *tzname[];
18816: #endif
18817:
18818: int
18819: main ()
18820: {
18821: return tzname[0][0];
18822: ;
18823: return 0;
18824: }
18825: _ACEOF
18826: if ac_fn_c_try_link "$LINENO"; then :
18827: ac_cv_var_tzname=yes
18828: else
18829: ac_cv_var_tzname=no
18830: fi
18831: rm -f core conftest.err conftest.$ac_objext \
18832: conftest$ac_exeext conftest.$ac_ext
18833: fi
18834: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
18835: $as_echo "$ac_cv_var_tzname" >&6; }
18836: if test $ac_cv_var_tzname = yes; then
18837:
18838: $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
18839:
18840: fi
18841: fi
18842:
18843:
18844:
18845: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for missing declarations of reentrant functions" >&5
18846: $as_echo_n "checking for missing declarations of reentrant functions... " >&6; }
18847: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18848: /* end confdefs.h. */
18849: #include <time.h>
18850: int
18851: main ()
18852: {
18853: struct tm *(*func)() = localtime_r
18854: ;
18855: return 0;
18856: }
18857: _ACEOF
18858: if ac_fn_c_try_compile "$LINENO"; then :
18859:
18860: :
18861:
18862: else
18863:
18864:
18865: $as_echo "#define MISSING_LOCALTIME_R_DECL 1" >>confdefs.h
18866:
18867:
18868: fi
18869: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18870: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18871: /* end confdefs.h. */
18872: #include <time.h>
18873: int
18874: main ()
18875: {
18876: struct tm *(*func)() = gmtime_r
18877: ;
18878: return 0;
18879: }
18880: _ACEOF
18881: if ac_fn_c_try_compile "$LINENO"; then :
18882:
18883: :
18884:
18885: else
18886:
18887:
18888: $as_echo "#define MISSING_GMTIME_R_DECL 1" >>confdefs.h
18889:
18890:
18891: fi
18892: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18893: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18894: /* end confdefs.h. */
18895: #include <time.h>
18896: int
18897: main ()
18898: {
18899: char *(*func)() = asctime_r
18900: ;
18901: return 0;
18902: }
18903: _ACEOF
18904: if ac_fn_c_try_compile "$LINENO"; then :
18905:
18906: :
18907:
18908: else
18909:
18910:
18911: $as_echo "#define MISSING_ASCTIME_R_DECL 1" >>confdefs.h
18912:
18913:
18914: fi
18915: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18916: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18917: /* end confdefs.h. */
18918: #include <time.h>
18919: int
18920: main ()
18921: {
18922: char *(*func)() = ctime_r
18923: ;
18924: return 0;
18925: }
18926: _ACEOF
18927: if ac_fn_c_try_compile "$LINENO"; then :
18928:
18929: :
18930:
18931: else
18932:
18933:
18934: $as_echo "#define MISSING_CTIME_R_DECL 1" >>confdefs.h
18935:
18936:
18937: fi
18938: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18939: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18940: /* end confdefs.h. */
18941: #include <string.h>
18942: int
18943: main ()
18944: {
18945: char *(*func)() = strtok_r
18946: ;
18947: return 0;
18948: }
18949: _ACEOF
18950: if ac_fn_c_try_compile "$LINENO"; then :
18951:
18952: :
18953:
18954: else
18955:
18956:
18957: $as_echo "#define MISSING_STRTOK_R_DECL 1" >>confdefs.h
18958:
18959:
18960: fi
18961: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18962: { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18963: $as_echo "done" >&6; }
18964:
18965:
18966: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fclose declaration" >&5
18967: $as_echo_n "checking for fclose declaration... " >&6; }
18968: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18969: /* end confdefs.h. */
18970: #include <stdio.h>
18971: int
18972: main ()
18973: {
18974: int (*func)() = fclose
18975: ;
18976: return 0;
18977: }
18978: _ACEOF
18979: if ac_fn_c_try_compile "$LINENO"; then :
18980:
18981:
18982: $as_echo "#define MISSING_FCLOSE_DECL 0" >>confdefs.h
18983:
18984: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
18985: $as_echo "ok" >&6; }
18986:
18987: else
18988:
18989:
18990: $as_echo "#define MISSING_FCLOSE_DECL 1" >>confdefs.h
18991:
18992: { $as_echo "$as_me:${as_lineno-$LINENO}: result: missing" >&5
18993: $as_echo "missing" >&6; }
18994:
18995: fi
18996: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18997:
18998:
18999:
19000: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5
19001: $as_echo_n "checking for tm_gmtoff in struct tm... " >&6; }
19002: if ${ac_cv_struct_tm_gmtoff+:} false; then :
19003: $as_echo_n "(cached) " >&6
19004: else
19005: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19006: /* end confdefs.h. */
19007: #include <sys/types.h>
19008: #include <$ac_cv_struct_tm>
19009: int
19010: main ()
19011: {
19012: struct tm tm; tm.tm_gmtoff;
19013: ;
19014: return 0;
19015: }
19016: _ACEOF
19017: if ac_fn_c_try_compile "$LINENO"; then :
19018: ac_cv_struct_tm_gmtoff=yes
19019: else
19020: ac_cv_struct_tm_gmtoff=no
19021: fi
19022: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19023: fi
19024: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_gmtoff" >&5
19025: $as_echo "$ac_cv_struct_tm_gmtoff" >&6; }
19026:
19027: if test "$ac_cv_struct_tm_gmtoff" = yes; then
19028:
19029: $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
19030:
19031: fi
19032:
19033:
19034: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct flock" >&5
19035: $as_echo_n "checking for struct flock... " >&6; }
19036: if ${ac_cv_struct_flock+:} false; then :
19037: $as_echo_n "(cached) " >&6
19038: else
19039: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19040: /* end confdefs.h. */
19041:
19042: #include <unistd.h>
19043: #include <fcntl.h>
19044:
19045: int
19046: main ()
19047: {
19048: struct flock x;
19049: ;
19050: return 0;
19051: }
19052: _ACEOF
19053: if ac_fn_c_try_compile "$LINENO"; then :
19054:
19055: ac_cv_struct_flock=yes
19056:
19057: else
19058:
19059: ac_cv_struct_flock=no
19060:
19061: fi
19062: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19063:
19064: fi
19065: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_flock" >&5
19066: $as_echo "$ac_cv_struct_flock" >&6; }
19067: if test "$ac_cv_struct_flock" = "yes" ; then
19068:
19069: $as_echo "#define HAVE_STRUCT_FLOCK 1" >>confdefs.h
19070:
19071: fi
19072:
19073:
19074: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
19075: $as_echo_n "checking for socklen_t... " >&6; }
19076: if ${ac_cv_socklen_t+:} false; then :
19077: $as_echo_n "(cached) " >&6
19078: else
19079: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19080: /* end confdefs.h. */
19081:
19082: #include <sys/types.h>
19083: #include <sys/socket.h>
19084:
19085: int
19086: main ()
19087: {
19088:
19089: socklen_t x;
19090:
19091: ;
19092: return 0;
19093: }
19094: _ACEOF
19095: if ac_fn_c_try_compile "$LINENO"; then :
19096:
19097: ac_cv_socklen_t=yes
19098:
19099: else
19100:
19101: ac_cv_socklen_t=no
19102:
19103: fi
19104: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19105: fi
19106: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_socklen_t" >&5
19107: $as_echo "$ac_cv_socklen_t" >&6; }
19108: if test "$ac_cv_socklen_t" = "yes"; then
19109:
19110: $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
19111:
19112: fi
19113:
19114:
19115: # The cast to long int works around a bug in the HP C Compiler
19116: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19117: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19118: # This bug is HP SR number 8606223364.
19119: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
19120: $as_echo_n "checking size of size_t... " >&6; }
19121: if ${ac_cv_sizeof_size_t+:} false; then :
19122: $as_echo_n "(cached) " >&6
19123: else
19124: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
19125:
19126: else
19127: if test "$ac_cv_type_size_t" = yes; then
19128: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19129: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19130: as_fn_error 77 "cannot compute sizeof (size_t)
19131: See \`config.log' for more details" "$LINENO" 5; }
19132: else
19133: ac_cv_sizeof_size_t=0
19134: fi
19135: fi
19136:
19137: fi
19138: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
19139: $as_echo "$ac_cv_sizeof_size_t" >&6; }
19140:
19141:
19142:
19143: cat >>confdefs.h <<_ACEOF
19144: #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
19145: _ACEOF
19146:
19147:
19148: # The cast to long int works around a bug in the HP C Compiler
19149: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19150: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19151: # This bug is HP SR number 8606223364.
19152: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
19153: $as_echo_n "checking size of long long... " >&6; }
19154: if ${ac_cv_sizeof_long_long+:} false; then :
19155: $as_echo_n "(cached) " >&6
19156: else
19157: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
19158:
19159: else
19160: if test "$ac_cv_type_long_long" = yes; then
19161: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19162: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19163: as_fn_error 77 "cannot compute sizeof (long long)
19164: See \`config.log' for more details" "$LINENO" 5; }
19165: else
19166: ac_cv_sizeof_long_long=0
19167: fi
19168: fi
19169:
19170: fi
19171: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
19172: $as_echo "$ac_cv_sizeof_long_long" >&6; }
19173:
19174:
19175:
19176: cat >>confdefs.h <<_ACEOF
19177: #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
19178: _ACEOF
19179:
19180:
19181: # The cast to long int works around a bug in the HP C Compiler
19182: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19183: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19184: # This bug is HP SR number 8606223364.
19185: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
19186: $as_echo_n "checking size of long long int... " >&6; }
19187: if ${ac_cv_sizeof_long_long_int+:} false; then :
19188: $as_echo_n "(cached) " >&6
19189: else
19190: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then :
19191:
19192: else
19193: if test "$ac_cv_type_long_long_int" = yes; then
19194: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19195: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19196: as_fn_error 77 "cannot compute sizeof (long long int)
19197: See \`config.log' for more details" "$LINENO" 5; }
19198: else
19199: ac_cv_sizeof_long_long_int=0
19200: fi
19201: fi
19202:
19203: fi
19204: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
19205: $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
19206:
19207:
19208:
19209: cat >>confdefs.h <<_ACEOF
19210: #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
19211: _ACEOF
19212:
19213:
19214: # The cast to long int works around a bug in the HP C Compiler
19215: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19216: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19217: # This bug is HP SR number 8606223364.
19218: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
19219: $as_echo_n "checking size of long... " >&6; }
19220: if ${ac_cv_sizeof_long+:} false; then :
19221: $as_echo_n "(cached) " >&6
19222: else
19223: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
19224:
19225: else
19226: if test "$ac_cv_type_long" = yes; then
19227: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19228: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19229: as_fn_error 77 "cannot compute sizeof (long)
19230: See \`config.log' for more details" "$LINENO" 5; }
19231: else
19232: ac_cv_sizeof_long=0
19233: fi
19234: fi
19235:
19236: fi
19237: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
19238: $as_echo "$ac_cv_sizeof_long" >&6; }
19239:
19240:
19241:
19242: cat >>confdefs.h <<_ACEOF
19243: #define SIZEOF_LONG $ac_cv_sizeof_long
19244: _ACEOF
19245:
19246:
19247: # The cast to long int works around a bug in the HP C Compiler
19248: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19249: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19250: # This bug is HP SR number 8606223364.
19251: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
19252: $as_echo_n "checking size of int... " >&6; }
19253: if ${ac_cv_sizeof_int+:} false; then :
19254: $as_echo_n "(cached) " >&6
19255: else
19256: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
19257:
19258: else
19259: if test "$ac_cv_type_int" = yes; then
19260: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19261: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19262: as_fn_error 77 "cannot compute sizeof (int)
19263: See \`config.log' for more details" "$LINENO" 5; }
19264: else
19265: ac_cv_sizeof_int=0
19266: fi
19267: fi
19268:
19269: fi
19270: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
19271: $as_echo "$ac_cv_sizeof_int" >&6; }
19272:
19273:
19274:
19275: cat >>confdefs.h <<_ACEOF
19276: #define SIZEOF_INT $ac_cv_sizeof_int
19277: _ACEOF
19278:
19279:
19280:
19281:
19282: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of intmax_t" >&5
19283: $as_echo_n "checking size of intmax_t... " >&6; }
19284:
19285: php_cache_value=php_cv_sizeof_intmax_t
19286: if ${php_cv_sizeof_intmax_t+:} false; then :
19287: $as_echo_n "(cached) " >&6
19288: else
19289:
19290: old_LIBS=$LIBS
19291: LIBS=
19292: old_LDFLAGS=$LDFLAGS
19293: LDFLAGS=
19294: if test "$cross_compiling" = yes; then :
19295:
19296: eval $php_cache_value=0
19297:
19298: else
19299: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19300: /* end confdefs.h. */
19301: #include <stdio.h>
19302: #if STDC_HEADERS
19303: #include <stdlib.h>
19304: #include <stddef.h>
19305: #endif
19306: #ifdef HAVE_INTTYPES_H
19307: #include <inttypes.h>
19308: #endif
19309: #ifdef HAVE_UNISTD_H
19310: #include <unistd.h>
19311: #endif
19312:
19313:
19314: int main()
19315: {
19316: FILE *fp = fopen("conftestval", "w");
19317: if (!fp) return(1);
19318: fprintf(fp, "%d\n", sizeof(intmax_t));
19319: return(0);
19320: }
19321:
19322: _ACEOF
19323: if ac_fn_c_try_run "$LINENO"; then :
19324:
19325: eval $php_cache_value=`cat conftestval`
19326:
19327: else
19328:
19329: eval $php_cache_value=0
19330:
19331: fi
19332: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19333: conftest.$ac_objext conftest.beam conftest.$ac_ext
19334: fi
19335:
19336: LDFLAGS=$old_LDFLAGS
19337: LIBS=$old_LIBS
19338:
19339: fi
19340:
19341: if eval test "\$$php_cache_value" != "0"; then
19342:
19343:
19344: cat >>confdefs.h <<_ACEOF
19345: #define SIZEOF_INTMAX_T $php_cv_sizeof_intmax_t
19346: _ACEOF
19347:
19348:
19349: cat >>confdefs.h <<_ACEOF
19350: #define HAVE_INTMAX_T 1
19351: _ACEOF
19352:
19353:
19354:
19355: fi
19356:
19357: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_sizeof_intmax_t" >&5
19358: $as_echo "$php_cv_sizeof_intmax_t" >&6; }
19359:
19360:
19361: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
19362: $as_echo_n "checking size of ssize_t... " >&6; }
19363:
19364: php_cache_value=php_cv_sizeof_ssize_t
19365: if ${php_cv_sizeof_ssize_t+:} false; then :
19366: $as_echo_n "(cached) " >&6
19367: else
19368:
19369: old_LIBS=$LIBS
19370: LIBS=
19371: old_LDFLAGS=$LDFLAGS
19372: LDFLAGS=
19373: if test "$cross_compiling" = yes; then :
19374:
19375: eval $php_cache_value=8
19376:
19377: else
19378: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19379: /* end confdefs.h. */
19380: #include <stdio.h>
19381: #if STDC_HEADERS
19382: #include <stdlib.h>
19383: #include <stddef.h>
19384: #endif
19385: #ifdef HAVE_INTTYPES_H
19386: #include <inttypes.h>
19387: #endif
19388: #ifdef HAVE_UNISTD_H
19389: #include <unistd.h>
19390: #endif
19391:
19392:
19393: int main()
19394: {
19395: FILE *fp = fopen("conftestval", "w");
19396: if (!fp) return(1);
19397: fprintf(fp, "%d\n", sizeof(ssize_t));
19398: return(0);
19399: }
19400:
19401: _ACEOF
19402: if ac_fn_c_try_run "$LINENO"; then :
19403:
19404: eval $php_cache_value=`cat conftestval`
19405:
19406: else
19407:
19408: eval $php_cache_value=0
19409:
19410: fi
19411: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19412: conftest.$ac_objext conftest.beam conftest.$ac_ext
19413: fi
19414:
19415: LDFLAGS=$old_LDFLAGS
19416: LIBS=$old_LIBS
19417:
19418: fi
19419:
19420: if eval test "\$$php_cache_value" != "0"; then
19421:
19422:
19423: cat >>confdefs.h <<_ACEOF
19424: #define SIZEOF_SSIZE_T $php_cv_sizeof_ssize_t
19425: _ACEOF
19426:
19427:
19428: cat >>confdefs.h <<_ACEOF
19429: #define HAVE_SSIZE_T 1
19430: _ACEOF
19431:
19432:
19433:
19434: fi
19435:
19436: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_sizeof_ssize_t" >&5
19437: $as_echo "$php_cv_sizeof_ssize_t" >&6; }
19438:
19439:
19440: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ptrdiff_t" >&5
19441: $as_echo_n "checking size of ptrdiff_t... " >&6; }
19442:
19443: php_cache_value=php_cv_sizeof_ptrdiff_t
19444: if ${php_cv_sizeof_ptrdiff_t+:} false; then :
19445: $as_echo_n "(cached) " >&6
19446: else
19447:
19448: old_LIBS=$LIBS
19449: LIBS=
19450: old_LDFLAGS=$LDFLAGS
19451: LDFLAGS=
19452: if test "$cross_compiling" = yes; then :
19453:
19454: eval $php_cache_value=8
19455:
19456: else
19457: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19458: /* end confdefs.h. */
19459: #include <stdio.h>
19460: #if STDC_HEADERS
19461: #include <stdlib.h>
19462: #include <stddef.h>
19463: #endif
19464: #ifdef HAVE_INTTYPES_H
19465: #include <inttypes.h>
19466: #endif
19467: #ifdef HAVE_UNISTD_H
19468: #include <unistd.h>
19469: #endif
19470:
19471:
19472: int main()
19473: {
19474: FILE *fp = fopen("conftestval", "w");
19475: if (!fp) return(1);
19476: fprintf(fp, "%d\n", sizeof(ptrdiff_t));
19477: return(0);
19478: }
19479:
19480: _ACEOF
19481: if ac_fn_c_try_run "$LINENO"; then :
19482:
19483: eval $php_cache_value=`cat conftestval`
19484:
19485: else
19486:
19487: eval $php_cache_value=0
19488:
19489: fi
19490: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19491: conftest.$ac_objext conftest.beam conftest.$ac_ext
19492: fi
19493:
19494: LDFLAGS=$old_LDFLAGS
19495: LIBS=$old_LIBS
19496:
19497: fi
19498:
19499: if eval test "\$$php_cache_value" != "0"; then
19500:
19501:
19502: cat >>confdefs.h <<_ACEOF
19503: #define SIZEOF_PTRDIFF_T $php_cv_sizeof_ptrdiff_t
19504: _ACEOF
19505:
19506:
19507: cat >>confdefs.h <<_ACEOF
19508: #define HAVE_PTRDIFF_T 1
19509: _ACEOF
19510:
19511:
19512:
19513: fi
19514:
19515: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_sizeof_ptrdiff_t" >&5
19516: $as_echo "$php_cv_sizeof_ptrdiff_t" >&6; }
19517:
19518:
19519: ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
19520: if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
19521:
19522: cat >>confdefs.h <<_ACEOF
19523: #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
19524: _ACEOF
19525:
19526:
19527: $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
19528:
19529: fi
19530:
19531:
19532: if test "`uname -s 2>/dev/null`" != "QNX"; then
19533: ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
19534: if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
19535:
19536: cat >>confdefs.h <<_ACEOF
19537: #define HAVE_STRUCT_STAT_ST_BLOCKS 1
19538: _ACEOF
19539:
19540:
19541: $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
19542:
19543: else
19544: case " $LIBOBJS " in
19545: *" fileblocks.$ac_objext "* ) ;;
19546: *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
19547: ;;
19548: esac
19549:
19550: fi
19551:
19552:
19553: else
19554: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: warnings level for cc set to 0" >&5
19555: $as_echo "$as_me: WARNING: warnings level for cc set to 0" >&2;}
19556: WARNING_LEVEL=0
19557: fi
19558: ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
19559: if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
19560:
19561: cat >>confdefs.h <<_ACEOF
19562: #define HAVE_STRUCT_STAT_ST_RDEV 1
19563: _ACEOF
19564:
19565:
19566: $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
19567:
19568: fi
19569:
19570:
19571:
19572: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19573: if test "x$ac_cv_type_size_t" = xyes; then :
19574:
19575: else
19576:
19577: cat >>confdefs.h <<_ACEOF
19578: #define size_t unsigned int
19579: _ACEOF
19580:
19581: fi
19582:
19583: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
19584: $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
19585: if ${ac_cv_type_uid_t+:} false; then :
19586: $as_echo_n "(cached) " >&6
19587: else
19588: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19589: /* end confdefs.h. */
19590: #include <sys/types.h>
19591:
19592: _ACEOF
19593: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19594: $EGREP "uid_t" >/dev/null 2>&1; then :
19595: ac_cv_type_uid_t=yes
19596: else
19597: ac_cv_type_uid_t=no
19598: fi
19599: rm -f conftest*
19600:
19601: fi
19602: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
19603: $as_echo "$ac_cv_type_uid_t" >&6; }
19604: if test $ac_cv_type_uid_t = no; then
19605:
19606: $as_echo "#define uid_t int" >>confdefs.h
19607:
19608:
19609: $as_echo "#define gid_t int" >>confdefs.h
19610:
19611: fi
19612:
19613:
19614:
19615: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
19616: $as_echo_n "checking for struct sockaddr_storage... " >&6; }
19617: if ${ac_cv_sockaddr_storage+:} false; then :
19618: $as_echo_n "(cached) " >&6
19619: else
19620: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19621: /* end confdefs.h. */
19622: #include <sys/types.h>
19623: #include <sys/socket.h>
19624: int
19625: main ()
19626: {
19627: struct sockaddr_storage s; s
19628: ;
19629: return 0;
19630: }
19631: _ACEOF
19632: if ac_fn_c_try_compile "$LINENO"; then :
19633: ac_cv_sockaddr_storage=yes
19634: else
19635: ac_cv_sockaddr_storage=no
19636: fi
19637: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19638:
19639: fi
19640: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sockaddr_storage" >&5
19641: $as_echo "$ac_cv_sockaddr_storage" >&6; }
19642: if test "$ac_cv_sockaddr_storage" = "yes"; then
19643:
19644: $as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h
19645:
19646: fi
19647: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for field sa_len in struct sockaddr" >&5
19648: $as_echo_n "checking for field sa_len in struct sockaddr... " >&6; }
19649: if ${ac_cv_sockaddr_sa_len+:} false; then :
19650: $as_echo_n "(cached) " >&6
19651: else
19652:
19653: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19654: /* end confdefs.h. */
19655: #include <sys/types.h>
19656: #include <sys/socket.h>
19657: int
19658: main ()
19659: {
19660: static struct sockaddr sa; int n = (int) sa.sa_len; return n;
19661: ;
19662: return 0;
19663: }
19664: _ACEOF
19665: if ac_fn_c_try_compile "$LINENO"; then :
19666: ac_cv_sockaddr_sa_len=yes
19667: else
19668: ac_cv_sockaddr_sa_len=no
19669: fi
19670: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19671:
19672: fi
19673: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sockaddr_sa_len" >&5
19674: $as_echo "$ac_cv_sockaddr_sa_len" >&6; }
19675: if test "$ac_cv_sockaddr_sa_len" = "yes"; then
19676:
19677: $as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h
19678:
19679: fi
19680:
19681:
19682: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 support" >&5
19683: $as_echo_n "checking for IPv6 support... " >&6; }
19684: if ${ac_cv_ipv6_support+:} false; then :
19685: $as_echo_n "(cached) " >&6
19686: else
19687: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19688: /* end confdefs.h. */
19689: #include <sys/types.h>
19690: #include <sys/socket.h>
19691: #include <netinet/in.h>
19692: int
19693: main ()
19694: {
19695: struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
19696: ;
19697: return 0;
19698: }
19699: _ACEOF
19700: if ac_fn_c_try_link "$LINENO"; then :
19701: ac_cv_ipv6_support=yes
19702: else
19703: ac_cv_ipv6_support=no
19704: fi
19705: rm -f core conftest.err conftest.$ac_objext \
19706: conftest$ac_exeext conftest.$ac_ext
19707: fi
19708: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ipv6_support" >&5
19709: $as_echo "$ac_cv_ipv6_support" >&6; }
19710:
19711:
19712: for ac_func in vprintf
19713: do :
19714: ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
19715: if test "x$ac_cv_func_vprintf" = xyes; then :
19716: cat >>confdefs.h <<_ACEOF
19717: #define HAVE_VPRINTF 1
19718: _ACEOF
19719:
19720: ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
19721: if test "x$ac_cv_func__doprnt" = xyes; then :
19722:
19723: $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
19724:
19725: fi
19726:
19727: fi
19728: done
19729:
19730:
19731: for ac_func in alphasort \
19732: asctime_r \
19733: chroot \
19734: ctime_r \
19735: cuserid \
19736: crypt \
19737: flock \
19738: ftok \
19739: funopen \
19740: gai_strerror \
19741: gcvt \
19742: getloadavg \
19743: getlogin \
19744: getprotobyname \
19745: getprotobynumber \
19746: getservbyname \
19747: getservbyport \
19748: gethostname \
19749: getrusage \
19750: gettimeofday \
19751: gmtime_r \
19752: getpwnam_r \
19753: getgrnam_r \
19754: getpwuid_r \
19755: grantpt \
19756: inet_ntoa \
19757: inet_ntop \
19758: inet_pton \
19759: isascii \
19760: link \
19761: localtime_r \
19762: lockf \
19763: lchown \
19764: lrand48 \
19765: memcpy \
19766: memmove \
19767: mkstemp \
19768: mmap \
19769: nl_langinfo \
19770: perror \
19771: poll \
19772: ptsname \
19773: putenv \
19774: realpath \
19775: random \
19776: rand_r \
19777: scandir \
19778: setitimer \
19779: setlocale \
19780: localeconv \
19781: setenv \
19782: setpgid \
19783: setsockopt \
19784: setvbuf \
19785: shutdown \
19786: sin \
19787: snprintf \
19788: srand48 \
19789: srandom \
19790: statfs \
19791: statvfs \
19792: std_syslog \
19793: strcasecmp \
19794: strcoll \
19795: strdup \
19796: strerror \
19797: strftime \
19798: strnlen \
19799: strptime \
19800: strstr \
19801: strtok_r \
19802: symlink \
19803: tempnam \
19804: tzset \
19805: unlockpt \
19806: unsetenv \
19807: usleep \
19808: utime \
19809: vsnprintf \
19810: vasprintf \
19811: asprintf \
19812: nanosleep \
19813:
19814: do :
19815: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19816: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19817: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19818: cat >>confdefs.h <<_ACEOF
19819: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19820: _ACEOF
19821:
19822: fi
19823: done
19824:
19825:
19826:
19827: unset ac_cv_func_nanosleep
19828: unset ac_cv_func___nanosleep
19829: unset found
19830:
19831: ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
19832: if test "x$ac_cv_func_nanosleep" = xyes; then :
19833: found=yes
19834: else
19835: ac_fn_c_check_func "$LINENO" "__nanosleep" "ac_cv_func___nanosleep"
19836: if test "x$ac_cv_func___nanosleep" = xyes; then :
19837: found=yes
19838: else
19839: found=no
19840: fi
19841:
19842: fi
19843:
19844:
19845: case $found in
19846: yes)
19847:
19848: $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
19849:
19850: ac_cv_func_nanosleep=yes
19851: ;;
19852:
19853: *)
19854:
19855: unset ac_cv_lib_rt_nanosleep
19856: unset ac_cv_lib_rt___nanosleep
19857: unset found
19858: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
19859: $as_echo_n "checking for nanosleep in -lrt... " >&6; }
19860: if ${ac_cv_lib_rt_nanosleep+:} false; then :
19861: $as_echo_n "(cached) " >&6
19862: else
19863: ac_check_lib_save_LIBS=$LIBS
19864: LIBS="-lrt $LIBS"
19865: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19866: /* end confdefs.h. */
19867:
19868: /* Override any GCC internal prototype to avoid an error.
19869: Use char because int might match the return type of a GCC
19870: builtin and then its argument prototype would still apply. */
19871: #ifdef __cplusplus
19872: extern "C"
19873: #endif
19874: char nanosleep ();
19875: int
19876: main ()
19877: {
19878: return nanosleep ();
19879: ;
19880: return 0;
19881: }
19882: _ACEOF
19883: if ac_fn_c_try_link "$LINENO"; then :
19884: ac_cv_lib_rt_nanosleep=yes
19885: else
19886: ac_cv_lib_rt_nanosleep=no
19887: fi
19888: rm -f core conftest.err conftest.$ac_objext \
19889: conftest$ac_exeext conftest.$ac_ext
19890: LIBS=$ac_check_lib_save_LIBS
19891: fi
19892: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
19893: $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
19894: if test "x$ac_cv_lib_rt_nanosleep" = xyes; then :
19895: found=yes
19896: else
19897:
19898: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __nanosleep in -lrt" >&5
19899: $as_echo_n "checking for __nanosleep in -lrt... " >&6; }
19900: if ${ac_cv_lib_rt___nanosleep+:} false; then :
19901: $as_echo_n "(cached) " >&6
19902: else
19903: ac_check_lib_save_LIBS=$LIBS
19904: LIBS="-lrt $LIBS"
19905: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19906: /* end confdefs.h. */
19907:
19908: /* Override any GCC internal prototype to avoid an error.
19909: Use char because int might match the return type of a GCC
19910: builtin and then its argument prototype would still apply. */
19911: #ifdef __cplusplus
19912: extern "C"
19913: #endif
19914: char __nanosleep ();
19915: int
19916: main ()
19917: {
19918: return __nanosleep ();
19919: ;
19920: return 0;
19921: }
19922: _ACEOF
19923: if ac_fn_c_try_link "$LINENO"; then :
19924: ac_cv_lib_rt___nanosleep=yes
19925: else
19926: ac_cv_lib_rt___nanosleep=no
19927: fi
19928: rm -f core conftest.err conftest.$ac_objext \
19929: conftest$ac_exeext conftest.$ac_ext
19930: LIBS=$ac_check_lib_save_LIBS
19931: fi
19932: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt___nanosleep" >&5
19933: $as_echo "$ac_cv_lib_rt___nanosleep" >&6; }
19934: if test "x$ac_cv_lib_rt___nanosleep" = xyes; then :
19935: found=yes
19936: else
19937: found=no
19938: fi
19939:
19940:
19941: fi
19942:
19943:
19944: if test "$found" = "yes"; then
19945: ac_libs=$LIBS
19946: LIBS="$LIBS -lrt"
19947: if test "$cross_compiling" = yes; then :
19948: found=no
19949: else
19950: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19951: /* end confdefs.h. */
19952: main() { return (0); }
19953: _ACEOF
19954: if ac_fn_c_try_run "$LINENO"; then :
19955: found=yes
19956: else
19957: found=no
19958: fi
19959: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19960: conftest.$ac_objext conftest.beam conftest.$ac_ext
19961: fi
19962:
19963: LIBS=$ac_libs
19964: fi
19965:
19966: if test "$found" = "yes"; then
19967:
19968:
19969: case rt in
19970: c|c_r|pthread*) ;;
19971: *)
19972: LIBS="-lrt $LIBS"
19973: ;;
19974: esac
19975:
19976:
19977:
19978: $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
19979:
19980:
19981: $as_echo "#define HAVE_LIBRT 1" >>confdefs.h
19982:
19983: ac_cv_func_nanosleep=yes
19984: else
19985:
19986: :
19987:
19988: fi
19989:
19990: ;;
19991:
19992: esac
19993:
19994:
19995: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
19996: $as_echo_n "checking for getaddrinfo... " >&6; }
19997: if ${ac_cv_func_getaddrinfo+:} false; then :
19998: $as_echo_n "(cached) " >&6
19999: else
20000: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20001: /* end confdefs.h. */
20002: #include <netdb.h>
20003: int
20004: main ()
20005: {
20006: struct addrinfo *g,h;g=&h;getaddrinfo("","",g,&g);
20007: ;
20008: return 0;
20009: }
20010: _ACEOF
20011: if ac_fn_c_try_link "$LINENO"; then :
20012: if test "$cross_compiling" = yes; then :
20013: ac_cv_func_getaddrinfo=no
20014: else
20015: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20016: /* end confdefs.h. */
20017:
20018: #include <netdb.h>
20019: #include <sys/types.h>
20020: #ifndef AF_INET
20021: # include <sys/socket.h>
20022: #endif
20023: int main(void) {
20024: struct addrinfo *ai, *pai, hints;
20025:
20026: memset(&hints, 0, sizeof(hints));
20027: hints.ai_flags = AI_NUMERICHOST;
20028:
20029: if (getaddrinfo("127.0.0.1", 0, &hints, &ai) < 0) {
20030: exit(1);
20031: }
20032:
20033: if (ai == 0) {
20034: exit(1);
20035: }
20036:
20037: pai = ai;
20038:
20039: while (pai) {
20040: if (pai->ai_family != AF_INET) {
20041: /* 127.0.0.1/NUMERICHOST should only resolve ONE way */
20042: exit(1);
20043: }
20044: if (pai->ai_addr->sa_family != AF_INET) {
20045: /* 127.0.0.1/NUMERICHOST should only resolve ONE way */
20046: exit(1);
20047: }
20048: pai = pai->ai_next;
20049: }
20050: freeaddrinfo(ai);
20051: exit(0);
20052: }
20053:
20054: _ACEOF
20055: if ac_fn_c_try_run "$LINENO"; then :
20056: ac_cv_func_getaddrinfo=yes
20057: else
20058: ac_cv_func_getaddrinfo=no
20059: fi
20060: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20061: conftest.$ac_objext conftest.beam conftest.$ac_ext
20062: fi
20063:
20064: else
20065: ac_cv_func_getaddrinfo=no
20066: fi
20067: rm -f core conftest.err conftest.$ac_objext \
20068: conftest$ac_exeext conftest.$ac_ext
20069: fi
20070: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5
20071: $as_echo "$ac_cv_func_getaddrinfo" >&6; }
20072: if test "$ac_cv_func_getaddrinfo" = yes; then
20073:
20074: $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
20075:
20076: fi
20077:
20078: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_fetch_and_add" >&5
20079: $as_echo_n "checking for __sync_fetch_and_add... " >&6; }
20080: if ${ac_cv_func_sync_fetch_and_add+:} false; then :
20081: $as_echo_n "(cached) " >&6
20082: else
20083: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20084: /* end confdefs.h. */
20085:
20086: int
20087: main ()
20088: {
20089: int x;__sync_fetch_and_add(&x,1);
20090: ;
20091: return 0;
20092: }
20093: _ACEOF
20094: if ac_fn_c_try_link "$LINENO"; then :
20095: ac_cv_func_sync_fetch_and_add=yes
20096: else
20097: ac_cv_func_sync_fetch_and_add=no
20098: fi
20099: rm -f core conftest.err conftest.$ac_objext \
20100: conftest$ac_exeext conftest.$ac_ext
20101: fi
20102: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_sync_fetch_and_add" >&5
20103: $as_echo "$ac_cv_func_sync_fetch_and_add" >&6; }
20104: if test "$ac_cv_func_sync_fetch_and_add" = yes; then
20105:
20106: $as_echo "#define HAVE_SYNC_FETCH_AND_ADD 1" >>confdefs.h
20107:
20108: fi
20109:
20110: ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
20111: if test "x$ac_cv_func_strlcat" = xyes; then :
20112: $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
20113:
20114: else
20115: case " $LIBOBJS " in
20116: *" strlcat.$ac_objext "* ) ;;
20117: *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
20118: ;;
20119: esac
20120:
20121: fi
20122:
20123: ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
20124: if test "x$ac_cv_func_strlcpy" = xyes; then :
20125: $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
20126:
20127: else
20128: case " $LIBOBJS " in
20129: *" strlcpy.$ac_objext "* ) ;;
20130: *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
20131: ;;
20132: esac
20133:
20134: fi
20135:
20136: ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
20137: if test "x$ac_cv_func_getopt" = xyes; then :
20138: $as_echo "#define HAVE_GETOPT 1" >>confdefs.h
20139:
20140: else
20141: case " $LIBOBJS " in
20142: *" getopt.$ac_objext "* ) ;;
20143: *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
20144: ;;
20145: esac
20146:
20147: fi
20148:
20149:
20150:
20151:
20152:
20153: for ac_header in $ac_header_list
20154: do :
20155: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20156: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
20157: "
20158: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20159: cat >>confdefs.h <<_ACEOF
20160: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20161: _ACEOF
20162:
20163: fi
20164:
20165: done
20166:
20167:
20168:
20169:
20170: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether utime accepts a null argument" >&5
20171: $as_echo_n "checking whether utime accepts a null argument... " >&6; }
20172: if ${ac_cv_func_utime_null+:} false; then :
20173: $as_echo_n "(cached) " >&6
20174: else
20175: rm -f conftest.data; >conftest.data
20176: # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
20177: if test "$cross_compiling" = yes; then :
20178: ac_cv_func_utime_null='guessing yes'
20179: else
20180: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20181: /* end confdefs.h. */
20182: $ac_includes_default
20183: #ifdef HAVE_UTIME_H
20184: # include <utime.h>
20185: #endif
20186: int
20187: main ()
20188: {
20189: struct stat s, t;
20190: return ! (stat ("conftest.data", &s) == 0
20191: && utime ("conftest.data", 0) == 0
20192: && stat ("conftest.data", &t) == 0
20193: && t.st_mtime >= s.st_mtime
20194: && t.st_mtime - s.st_mtime < 120);
20195: ;
20196: return 0;
20197: }
20198: _ACEOF
20199: if ac_fn_c_try_run "$LINENO"; then :
20200: ac_cv_func_utime_null=yes
20201: else
20202: ac_cv_func_utime_null=no
20203: fi
20204: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20205: conftest.$ac_objext conftest.beam conftest.$ac_ext
20206: fi
20207:
20208: fi
20209: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_utime_null" >&5
20210: $as_echo "$ac_cv_func_utime_null" >&6; }
20211: if test "x$ac_cv_func_utime_null" != xno; then
20212: ac_cv_func_utime_null=yes
20213:
20214: $as_echo "#define HAVE_UTIME_NULL 1" >>confdefs.h
20215:
20216: fi
20217: rm -f conftest.data
20218:
20219: # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
20220: # for constant arguments. Useless!
20221: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
20222: $as_echo_n "checking for working alloca.h... " >&6; }
20223: if ${ac_cv_working_alloca_h+:} false; then :
20224: $as_echo_n "(cached) " >&6
20225: else
20226: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20227: /* end confdefs.h. */
20228: #include <alloca.h>
20229: int
20230: main ()
20231: {
20232: char *p = (char *) alloca (2 * sizeof (int));
20233: if (p) return 0;
20234: ;
20235: return 0;
20236: }
20237: _ACEOF
20238: if ac_fn_c_try_link "$LINENO"; then :
20239: ac_cv_working_alloca_h=yes
20240: else
20241: ac_cv_working_alloca_h=no
20242: fi
20243: rm -f core conftest.err conftest.$ac_objext \
20244: conftest$ac_exeext conftest.$ac_ext
20245: fi
20246: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
20247: $as_echo "$ac_cv_working_alloca_h" >&6; }
20248: if test $ac_cv_working_alloca_h = yes; then
20249:
20250: $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
20251:
20252: fi
20253:
20254: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
20255: $as_echo_n "checking for alloca... " >&6; }
20256: if ${ac_cv_func_alloca_works+:} false; then :
20257: $as_echo_n "(cached) " >&6
20258: else
20259: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20260: /* end confdefs.h. */
20261: #ifdef __GNUC__
20262: # define alloca __builtin_alloca
20263: #else
20264: # ifdef _MSC_VER
20265: # include <malloc.h>
20266: # define alloca _alloca
20267: # else
20268: # ifdef HAVE_ALLOCA_H
20269: # include <alloca.h>
20270: # else
20271: # ifdef _AIX
20272: #pragma alloca
20273: # else
20274: # ifndef alloca /* predefined by HP cc +Olibcalls */
20275: void *alloca (size_t);
20276: # endif
20277: # endif
20278: # endif
20279: # endif
20280: #endif
20281:
20282: int
20283: main ()
20284: {
20285: char *p = (char *) alloca (1);
20286: if (p) return 0;
20287: ;
20288: return 0;
20289: }
20290: _ACEOF
20291: if ac_fn_c_try_link "$LINENO"; then :
20292: ac_cv_func_alloca_works=yes
20293: else
20294: ac_cv_func_alloca_works=no
20295: fi
20296: rm -f core conftest.err conftest.$ac_objext \
20297: conftest$ac_exeext conftest.$ac_ext
20298: fi
20299: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
20300: $as_echo "$ac_cv_func_alloca_works" >&6; }
20301:
20302: if test $ac_cv_func_alloca_works = yes; then
20303:
20304: $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
20305:
20306: else
20307: # The SVR3 libPW and SVR4 libucb both contain incompatible functions
20308: # that cause trouble. Some versions do not even contain alloca or
20309: # contain a buggy version. If you still want to use their alloca,
20310: # use ar to extract alloca.o from them instead of compiling alloca.c.
20311:
20312: ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
20313:
20314: $as_echo "#define C_ALLOCA 1" >>confdefs.h
20315:
20316:
20317: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
20318: $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
20319: if ${ac_cv_os_cray+:} false; then :
20320: $as_echo_n "(cached) " >&6
20321: else
20322: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20323: /* end confdefs.h. */
20324: #if defined CRAY && ! defined CRAY2
20325: webecray
20326: #else
20327: wenotbecray
20328: #endif
20329:
20330: _ACEOF
20331: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20332: $EGREP "webecray" >/dev/null 2>&1; then :
20333: ac_cv_os_cray=yes
20334: else
20335: ac_cv_os_cray=no
20336: fi
20337: rm -f conftest*
20338:
20339: fi
20340: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
20341: $as_echo "$ac_cv_os_cray" >&6; }
20342: if test $ac_cv_os_cray = yes; then
20343: for ac_func in _getb67 GETB67 getb67; do
20344: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20345: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20346: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20347:
20348: cat >>confdefs.h <<_ACEOF
20349: #define CRAY_STACKSEG_END $ac_func
20350: _ACEOF
20351:
20352: break
20353: fi
20354:
20355: done
20356: fi
20357:
20358: { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
20359: $as_echo_n "checking stack direction for C alloca... " >&6; }
20360: if ${ac_cv_c_stack_direction+:} false; then :
20361: $as_echo_n "(cached) " >&6
20362: else
20363: if test "$cross_compiling" = yes; then :
20364: ac_cv_c_stack_direction=0
20365: else
20366: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20367: /* end confdefs.h. */
20368: $ac_includes_default
20369: int
20370: find_stack_direction ()
20371: {
20372: static char *addr = 0;
20373: auto char dummy;
20374: if (addr == 0)
20375: {
20376: addr = &dummy;
20377: return find_stack_direction ();
20378: }
20379: else
20380: return (&dummy > addr) ? 1 : -1;
20381: }
20382:
20383: int
20384: main ()
20385: {
20386: return find_stack_direction () < 0;
20387: }
20388: _ACEOF
20389: if ac_fn_c_try_run "$LINENO"; then :
20390: ac_cv_c_stack_direction=1
20391: else
20392: ac_cv_c_stack_direction=-1
20393: fi
20394: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20395: conftest.$ac_objext conftest.beam conftest.$ac_ext
20396: fi
20397:
20398: fi
20399: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
20400: $as_echo "$ac_cv_c_stack_direction" >&6; }
20401: cat >>confdefs.h <<_ACEOF
20402: #define STACK_DIRECTION $ac_cv_c_stack_direction
20403: _ACEOF
20404:
20405:
20406: fi
20407:
20408:
20409: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for declared timezone" >&5
20410: $as_echo_n "checking for declared timezone... " >&6; }
20411: if ${ac_cv_declared_timezone+:} false; then :
20412: $as_echo_n "(cached) " >&6
20413: else
20414:
20415: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20416: /* end confdefs.h. */
20417:
20418: #include <sys/types.h>
20419: #include <time.h>
20420: #ifdef HAVE_SYS_TIME_H
20421: #include <sys/time.h>
20422: #endif
20423:
20424: int
20425: main ()
20426: {
20427:
20428: time_t foo = (time_t) timezone;
20429:
20430: ;
20431: return 0;
20432: }
20433: _ACEOF
20434: if ac_fn_c_try_compile "$LINENO"; then :
20435:
20436: ac_cv_declared_timezone=yes
20437:
20438: else
20439:
20440: ac_cv_declared_timezone=no
20441:
20442: fi
20443: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20444: fi
20445: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_declared_timezone" >&5
20446: $as_echo "$ac_cv_declared_timezone" >&6; }
20447: if test "$ac_cv_declared_timezone" = "yes"; then
20448:
20449: $as_echo "#define HAVE_DECLARED_TIMEZONE 1" >>confdefs.h
20450:
20451: fi
20452:
20453:
20454: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of reentrant time-related functions" >&5
20455: $as_echo_n "checking for type of reentrant time-related functions... " >&6; }
20456: if ${ac_cv_time_r_type+:} false; then :
20457: $as_echo_n "(cached) " >&6
20458: else
20459:
20460: if test "$cross_compiling" = yes; then :
20461:
20462: ac_cv_time_r_type=POSIX
20463:
20464: else
20465: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20466: /* end confdefs.h. */
20467:
20468: #include <time.h>
20469:
20470: main() {
20471: char buf[27];
20472: struct tm t;
20473: time_t old = 0;
20474: int r, s;
20475:
20476: s = gmtime_r(&old, &t);
20477: r = (int) asctime_r(&t, buf, 26);
20478: if (r == s && s == 0) return (0);
20479: return (1);
20480: }
20481:
20482: _ACEOF
20483: if ac_fn_c_try_run "$LINENO"; then :
20484:
20485: ac_cv_time_r_type=hpux
20486:
20487: else
20488:
20489: if test "$cross_compiling" = yes; then :
20490:
20491: ac_cv_time_r_type=POSIX
20492:
20493: else
20494: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20495: /* end confdefs.h. */
20496:
20497: #include <time.h>
20498: main() {
20499: struct tm t, *s;
20500: time_t old = 0;
20501: char buf[27], *p;
20502:
20503: s = gmtime_r(&old, &t);
20504: p = asctime_r(&t, buf, 26);
20505: if (p == buf && s == &t) return (0);
20506: return (1);
20507: }
20508:
20509: _ACEOF
20510: if ac_fn_c_try_run "$LINENO"; then :
20511:
20512: ac_cv_time_r_type=irix
20513:
20514: else
20515:
20516: ac_cv_time_r_type=POSIX
20517:
20518: fi
20519: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20520: conftest.$ac_objext conftest.beam conftest.$ac_ext
20521: fi
20522:
20523:
20524: fi
20525: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20526: conftest.$ac_objext conftest.beam conftest.$ac_ext
20527: fi
20528:
20529:
20530: fi
20531: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_time_r_type" >&5
20532: $as_echo "$ac_cv_time_r_type" >&6; }
20533: case $ac_cv_time_r_type in
20534: hpux)
20535: $as_echo "#define PHP_HPUX_TIME_R 1" >>confdefs.h
20536: ;;
20537: irix)
20538: $as_echo "#define PHP_IRIX_TIME_R 1" >>confdefs.h
20539: ;;
20540: esac
20541:
20542:
20543: ac_fn_c_check_func "$LINENO" "readdir_r" "ac_cv_func_readdir_r"
20544: if test "x$ac_cv_func_readdir_r" = xyes; then :
20545: ac_cv_func_readdir_r=yes
20546: else
20547: ac_cv_func_readdir=no
20548: fi
20549:
20550: if test "$ac_cv_func_readdir_r" = "yes"; then
20551: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of readdir_r" >&5
20552: $as_echo_n "checking for type of readdir_r... " >&6; }
20553: if ${ac_cv_what_readdir_r+:} false; then :
20554: $as_echo_n "(cached) " >&6
20555: else
20556:
20557: if test "$cross_compiling" = yes; then :
20558:
20559: ac_cv_what_readdir_r=none
20560:
20561: else
20562: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20563: /* end confdefs.h. */
20564:
20565: #define _REENTRANT
20566: #include <sys/types.h>
20567: #include <dirent.h>
20568:
20569: #ifndef PATH_MAX
20570: #define PATH_MAX 1024
20571: #endif
20572:
20573: main() {
20574: DIR *dir;
20575: char entry[sizeof(struct dirent)+PATH_MAX];
20576: struct dirent *pentry = (struct dirent *) &entry;
20577:
20578: dir = opendir("/");
20579: if (!dir)
20580: exit(1);
20581: if (readdir_r(dir, (struct dirent *) entry, &pentry) == 0)
20582: exit(0);
20583: exit(1);
20584: }
20585:
20586: _ACEOF
20587: if ac_fn_c_try_run "$LINENO"; then :
20588:
20589: ac_cv_what_readdir_r=POSIX
20590:
20591: else
20592:
20593: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20594: /* end confdefs.h. */
20595:
20596: #define _REENTRANT
20597: #include <sys/types.h>
20598: #include <dirent.h>
20599: int readdir_r(DIR *, struct dirent *);
20600:
20601: _ACEOF
20602: if ac_fn_c_try_cpp "$LINENO"; then :
20603:
20604: ac_cv_what_readdir_r=old-style
20605:
20606: else
20607:
20608: ac_cv_what_readdir_r=none
20609:
20610: fi
20611: rm -f conftest.err conftest.i conftest.$ac_ext
20612:
20613: fi
20614: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20615: conftest.$ac_objext conftest.beam conftest.$ac_ext
20616: fi
20617:
20618:
20619: fi
20620: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_what_readdir_r" >&5
20621: $as_echo "$ac_cv_what_readdir_r" >&6; }
20622: case $ac_cv_what_readdir_r in
20623: POSIX)
20624:
20625: $as_echo "#define HAVE_POSIX_READDIR_R 1" >>confdefs.h
20626: ;;
20627: old-style)
20628:
20629: $as_echo "#define HAVE_OLD_READDIR_R 1" >>confdefs.h
20630: ;;
20631: esac
20632: fi
20633:
20634:
20635: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t" >&5
20636: $as_echo_n "checking for in_addr_t... " >&6; }
20637: if ${ac_cv_type_in_addr_t+:} false; then :
20638: $as_echo_n "(cached) " >&6
20639: else
20640: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20641: /* end confdefs.h. */
20642: #include <sys/types.h>
20643: #if STDC_HEADERS
20644: #include <stdlib.h>
20645: #include <stddef.h>
20646: #endif
20647: #ifdef HAVE_NETINET_IN_H
20648: #include <netinet/in.h>
20649: #endif
20650: _ACEOF
20651: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20652: $EGREP "in_addr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
20653: ac_cv_type_in_addr_t=yes
20654: else
20655: ac_cv_type_in_addr_t=no
20656: fi
20657: rm -f conftest*
20658:
20659: fi
20660: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_in_addr_t" >&5
20661: $as_echo "$ac_cv_type_in_addr_t" >&6; }
20662: if test $ac_cv_type_in_addr_t = no; then
20663:
20664: $as_echo "#define in_addr_t u_int" >>confdefs.h
20665:
20666: fi
20667:
20668:
20669: for ac_func in crypt_r
20670: do :
20671: ac_fn_c_check_func "$LINENO" "crypt_r" "ac_cv_func_crypt_r"
20672: if test "x$ac_cv_func_crypt_r" = xyes; then :
20673: cat >>confdefs.h <<_ACEOF
20674: #define HAVE_CRYPT_R 1
20675: _ACEOF
20676: php_crypt_r="1"
20677: else
20678: php_crypt_r="0"
20679: fi
20680: done
20681:
20682: if test "x$php_crypt_r" = "x1"; then
20683:
20684: { $as_echo "$as_me:${as_lineno-$LINENO}: checking which data struct is used by crypt_r" >&5
20685: $as_echo_n "checking which data struct is used by crypt_r... " >&6; }
20686: if ${php_cv_crypt_r_style+:} false; then :
20687: $as_echo_n "(cached) " >&6
20688: else
20689:
20690: php_cv_crypt_r_style=none
20691: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20692: /* end confdefs.h. */
20693:
20694: #define _REENTRANT 1
20695: #include <crypt.h>
20696:
20697: int
20698: main ()
20699: {
20700:
20701: CRYPTD buffer;
20702: crypt_r("passwd", "hash", &buffer);
20703:
20704: ;
20705: return 0;
20706: }
20707: _ACEOF
20708: if ac_fn_c_try_compile "$LINENO"; then :
20709: php_cv_crypt_r_style=cryptd
20710: fi
20711: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20712:
20713: if test "$php_cv_crypt_r_style" = "none"; then
20714: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20715: /* end confdefs.h. */
20716:
20717: #define _REENTRANT 1
20718: #include <crypt.h>
20719:
20720: int
20721: main ()
20722: {
20723:
20724: struct crypt_data buffer;
20725: crypt_r("passwd", "hash", &buffer);
20726:
20727: ;
20728: return 0;
20729: }
20730: _ACEOF
20731: if ac_fn_c_try_compile "$LINENO"; then :
20732: php_cv_crypt_r_style=struct_crypt_data
20733: fi
20734: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20735: fi
20736:
20737: if test "$php_cv_crypt_r_style" = "none"; then
20738: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20739: /* end confdefs.h. */
20740:
20741: #define _REENTRANT 1
20742: #define _GNU_SOURCE
20743: #include <crypt.h>
20744:
20745: int
20746: main ()
20747: {
20748:
20749: struct crypt_data buffer;
20750: crypt_r("passwd", "hash", &buffer);
20751:
20752: ;
20753: return 0;
20754: }
20755: _ACEOF
20756: if ac_fn_c_try_compile "$LINENO"; then :
20757: php_cv_crypt_r_style=struct_crypt_data_gnu_source
20758: fi
20759: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20760: fi
20761:
20762: fi
20763: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_crypt_r_style" >&5
20764: $as_echo "$php_cv_crypt_r_style" >&6; }
20765:
20766: if test "$php_cv_crypt_r_style" = "cryptd"; then
20767:
20768: $as_echo "#define CRYPT_R_CRYPTD 1" >>confdefs.h
20769:
20770: fi
20771: if test "$php_cv_crypt_r_style" = "struct_crypt_data" -o "$php_cv_crypt_r_style" = "struct_crypt_data_gnu_source"; then
20772:
20773: $as_echo "#define CRYPT_R_STRUCT_CRYPT_DATA 1" >>confdefs.h
20774:
20775: fi
20776: if test "$php_cv_crypt_r_style" = "struct_crypt_data_gnu_source"; then
20777:
20778: $as_echo "#define CRYPT_R_GNU_SOURCE 1" >>confdefs.h
20779:
20780: fi
20781: if test "$php_cv_crypt_r_style" = "none"; then
20782: as_fn_error $? "Unable to detect data struct used by crypt_r" "$LINENO" 5
20783: fi
20784:
20785: fi
20786:
20787:
20788: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flush should be called explicitly after a buffered io" >&5
20789: $as_echo_n "checking whether flush should be called explicitly after a buffered io... " >&6; }
20790: if ${ac_cv_flush_io+:} false; then :
20791: $as_echo_n "(cached) " >&6
20792: else
20793:
20794: if test "$cross_compiling" = yes; then :
20795:
20796: ac_cv_flush_io=no
20797:
20798: else
20799: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20800: /* end confdefs.h. */
20801:
20802: #include <stdio.h>
20803: #include <stdlib.h>
20804:
20805: int main(int argc, char **argv)
20806: {
20807: char *filename = tmpnam(NULL);
20808: char buffer[64];
20809: int result = 0;
20810:
20811: FILE *fp = fopen(filename, "wb");
20812: if (NULL == fp)
20813: return 0;
20814: fputs("line 1\n", fp);
20815: fputs("line 2\n", fp);
20816: fclose(fp);
20817:
20818: fp = fopen(filename, "rb+");
20819: if (NULL == fp)
20820: return 0;
20821: fgets(buffer, sizeof(buffer), fp);
20822: fputs("line 3\n", fp);
20823: rewind(fp);
20824: fgets(buffer, sizeof(buffer), fp);
20825: if (0 != strcmp(buffer, "line 1\n"))
20826: result = 1;
20827: fgets(buffer, sizeof(buffer), fp);
20828: if (0 != strcmp(buffer, "line 3\n"))
20829: result = 1;
20830: fclose(fp);
20831: unlink(filename);
20832:
20833: exit(result);
20834: }
20835:
20836: _ACEOF
20837: if ac_fn_c_try_run "$LINENO"; then :
20838:
20839: ac_cv_flush_io=no
20840:
20841: else
20842:
20843: ac_cv_flush_io=yes
20844:
20845: fi
20846: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20847: conftest.$ac_objext conftest.beam conftest.$ac_ext
20848: fi
20849:
20850: fi
20851: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flush_io" >&5
20852: $as_echo "$ac_cv_flush_io" >&6; }
20853: if test "$ac_cv_flush_io" = "yes"; then
20854:
20855: $as_echo "#define HAVE_FLUSHIO 1" >>confdefs.h
20856:
20857: fi
20858:
20859: if test "$ac_cv_func_crypt" = "no"; then
20860: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
20861: $as_echo_n "checking for crypt in -lcrypt... " >&6; }
20862: if ${ac_cv_lib_crypt_crypt+:} false; then :
20863: $as_echo_n "(cached) " >&6
20864: else
20865: ac_check_lib_save_LIBS=$LIBS
20866: LIBS="-lcrypt $LIBS"
20867: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20868: /* end confdefs.h. */
20869:
20870: /* Override any GCC internal prototype to avoid an error.
20871: Use char because int might match the return type of a GCC
20872: builtin and then its argument prototype would still apply. */
20873: #ifdef __cplusplus
20874: extern "C"
20875: #endif
20876: char crypt ();
20877: int
20878: main ()
20879: {
20880: return crypt ();
20881: ;
20882: return 0;
20883: }
20884: _ACEOF
20885: if ac_fn_c_try_link "$LINENO"; then :
20886: ac_cv_lib_crypt_crypt=yes
20887: else
20888: ac_cv_lib_crypt_crypt=no
20889: fi
20890: rm -f core conftest.err conftest.$ac_objext \
20891: conftest$ac_exeext conftest.$ac_ext
20892: LIBS=$ac_check_lib_save_LIBS
20893: fi
20894: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
20895: $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
20896: if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
20897:
20898: LIBS="-lcrypt $LIBS -lcrypt"
20899:
20900: $as_echo "#define HAVE_CRYPT 1" >>confdefs.h
20901:
20902:
20903: fi
20904:
20905: fi
20906:
20907: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for standard DES crypt" >&5
20908: $as_echo_n "checking for standard DES crypt... " >&6; }
20909: if ${ac_cv_crypt_des+:} false; then :
20910: $as_echo_n "(cached) " >&6
20911: else
20912:
20913: if test "$cross_compiling" = yes; then :
20914:
20915: ac_cv_crypt_des=yes
20916:
20917: else
20918: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20919: /* end confdefs.h. */
20920:
20921: #if HAVE_UNISTD_H
20922: #include <unistd.h>
20923: #endif
20924:
20925: #if HAVE_CRYPT_H
20926: #include <crypt.h>
20927: #endif
20928:
20929: main() {
20930: #if HAVE_CRYPT
20931: exit (strcmp((char *)crypt("rasmuslerdorf","rl"),"rl.3StKT.4T8M"));
20932: #else
20933: exit(0);
20934: #endif
20935: }
20936: _ACEOF
20937: if ac_fn_c_try_run "$LINENO"; then :
20938:
20939: ac_cv_crypt_des=yes
20940:
20941: else
20942:
20943: ac_cv_crypt_des=no
20944:
20945: fi
20946: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20947: conftest.$ac_objext conftest.beam conftest.$ac_ext
20948: fi
20949:
20950: fi
20951: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_crypt_des" >&5
20952: $as_echo "$ac_cv_crypt_des" >&6; }
20953:
20954: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extended DES crypt" >&5
20955: $as_echo_n "checking for extended DES crypt... " >&6; }
20956: if ${ac_cv_crypt_ext_des+:} false; then :
20957: $as_echo_n "(cached) " >&6
20958: else
20959:
20960: if test "$cross_compiling" = yes; then :
20961:
20962: ac_cv_crypt_ext_des=no
20963:
20964: else
20965: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20966: /* end confdefs.h. */
20967:
20968: #if HAVE_UNISTD_H
20969: #include <unistd.h>
20970: #endif
20971:
20972: #if HAVE_CRYPT_H
20973: #include <crypt.h>
20974: #endif
20975:
20976: main() {
20977: #if HAVE_CRYPT
20978: exit (strcmp((char *)crypt("rasmuslerdorf","_J9..rasm"),"_J9..rasmBYk8r9AiWNc"));
20979: #else
20980: exit(0);
20981: #endif
20982: }
20983: _ACEOF
20984: if ac_fn_c_try_run "$LINENO"; then :
20985:
20986: ac_cv_crypt_ext_des=yes
20987:
20988: else
20989:
20990: ac_cv_crypt_ext_des=no
20991:
20992: fi
20993: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20994: conftest.$ac_objext conftest.beam conftest.$ac_ext
20995: fi
20996:
20997: fi
20998: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_crypt_ext_des" >&5
20999: $as_echo "$ac_cv_crypt_ext_des" >&6; }
21000:
21001: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MD5 crypt" >&5
21002: $as_echo_n "checking for MD5 crypt... " >&6; }
21003: if ${ac_cv_crypt_md5+:} false; then :
21004: $as_echo_n "(cached) " >&6
21005: else
21006:
21007: if test "$cross_compiling" = yes; then :
21008:
21009: ac_cv_crypt_md5=no
21010:
21011: else
21012: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21013: /* end confdefs.h. */
21014:
21015: #if HAVE_UNISTD_H
21016: #include <unistd.h>
21017: #endif
21018:
21019: #if HAVE_CRYPT_H
21020: #include <crypt.h>
21021: #endif
21022:
21023: main() {
21024: #if HAVE_CRYPT
21025: char salt[15], answer[40];
21026:
21027: salt[0]='$'; salt[1]='1'; salt[2]='$';
21028: salt[3]='r'; salt[4]='a'; salt[5]='s';
21029: salt[6]='m'; salt[7]='u'; salt[8]='s';
21030: salt[9]='l'; salt[10]='e'; salt[11]='$';
21031: salt[12]='\0';
21032: strcpy(answer,salt);
21033: strcat(answer,"rISCgZzpwk3UhDidwXvin0");
21034: exit (strcmp((char *)crypt("rasmuslerdorf",salt),answer));
21035: #else
21036: exit(0);
21037: #endif
21038: }
21039: _ACEOF
21040: if ac_fn_c_try_run "$LINENO"; then :
21041:
21042: ac_cv_crypt_md5=yes
21043:
21044: else
21045:
21046: ac_cv_crypt_md5=no
21047:
21048: fi
21049: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21050: conftest.$ac_objext conftest.beam conftest.$ac_ext
21051: fi
21052:
21053: fi
21054: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_crypt_md5" >&5
21055: $as_echo "$ac_cv_crypt_md5" >&6; }
21056:
21057: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Blowfish crypt" >&5
21058: $as_echo_n "checking for Blowfish crypt... " >&6; }
21059: if ${ac_cv_crypt_blowfish+:} false; then :
21060: $as_echo_n "(cached) " >&6
21061: else
21062:
21063: if test "$cross_compiling" = yes; then :
21064:
21065: ac_cv_crypt_blowfish=no
21066:
21067: else
21068: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21069: /* end confdefs.h. */
21070:
21071: #if HAVE_UNISTD_H
21072: #include <unistd.h>
21073: #endif
21074:
21075: #if HAVE_CRYPT_H
21076: #include <crypt.h>
21077: #endif
21078:
21079: main() {
21080: #if HAVE_CRYPT
21081: char salt[30], answer[70];
21082:
21083: salt[0]='$'; salt[1]='2'; salt[2]='a'; salt[3]='$'; salt[4]='0'; salt[5]='7'; salt[6]='$'; salt[7]='\0';
21084: strcat(salt,"rasmuslerd............");
21085: strcpy(answer,salt);
21086: strcpy(&answer[29],"nIdrcHdxcUxWomQX9j6kvERCFjTg7Ra");
21087: exit (strcmp((char *)crypt("rasmuslerdorf",salt),answer));
21088: #else
21089: exit(0);
21090: #endif
21091: }
21092: _ACEOF
21093: if ac_fn_c_try_run "$LINENO"; then :
21094:
21095: ac_cv_crypt_blowfish=yes
21096:
21097: else
21098:
21099: ac_cv_crypt_blowfish=no
21100:
21101: fi
21102: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21103: conftest.$ac_objext conftest.beam conftest.$ac_ext
21104: fi
21105:
21106: fi
21107: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_crypt_blowfish" >&5
21108: $as_echo "$ac_cv_crypt_blowfish" >&6; }
21109:
21110: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA512 crypt" >&5
21111: $as_echo_n "checking for SHA512 crypt... " >&6; }
21112: if ${ac_cv_crypt_SHA512+:} false; then :
21113: $as_echo_n "(cached) " >&6
21114: else
21115:
21116: if test "$cross_compiling" = yes; then :
21117:
21118: ac_cv_crypt_SHA512=no
21119:
21120: else
21121: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21122: /* end confdefs.h. */
21123:
21124: #if HAVE_UNISTD_H
21125: #include <unistd.h>
21126: #endif
21127:
21128: #if HAVE_CRYPT_H
21129: #include <crypt.h>
21130: #endif
21131:
21132: main() {
21133: #if HAVE_CRYPT
21134: char salt[30], answer[80];
21135:
21136: salt[0]='$'; salt[1]='6'; salt[2]='$'; salt[3]='$'; salt[4]='b'; salt[5]='a'; salt[6]='r'; salt[7]='\0';
21137: strcpy(answer, salt);
21138: strcpy(&answer[29],"$6$$QMXjqd7rHQZPQ1yHsXkQqC1FBzDiVfTHXL.LaeDAeVV.IzMaV9VU4MQ8kPuZa2SOP1A0RPm772EaFYjpEJtdu.");
21139: exit (strcmp((char *)crypt("foo",salt),answer));
21140: #else
21141: exit(0);
21142: #endif
21143: }
21144: _ACEOF
21145: if ac_fn_c_try_run "$LINENO"; then :
21146:
21147: ac_cv_crypt_SHA512=yes
21148:
21149: else
21150:
21151: ac_cv_crypt_SHA512=no
21152:
21153: fi
21154: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21155: conftest.$ac_objext conftest.beam conftest.$ac_ext
21156: fi
21157:
21158: fi
21159: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_crypt_SHA512" >&5
21160: $as_echo "$ac_cv_crypt_SHA512" >&6; }
21161:
21162: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA256 crypt" >&5
21163: $as_echo_n "checking for SHA256 crypt... " >&6; }
21164: if ${ac_cv_crypt_SHA256+:} false; then :
21165: $as_echo_n "(cached) " >&6
21166: else
21167:
21168: if test "$cross_compiling" = yes; then :
21169:
21170: ac_cv_crypt_SHA256=no
21171:
21172: else
21173: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21174: /* end confdefs.h. */
21175:
21176: #if HAVE_UNISTD_H
21177: #include <unistd.h>
21178: #endif
21179:
21180: #if HAVE_CRYPT_H
21181: #include <crypt.h>
21182: #endif
21183:
21184: main() {
21185: #if HAVE_CRYPT
21186: char salt[30], answer[80];
21187: 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';
21188: strcat(salt,"");
21189: strcpy(answer, salt);
21190: strcpy(&answer[29], "$5$saltstring$5B8vYYiY.CVt1RlTTf8KbXBH3hsxY/GNooZaBBGWEc5");
21191: exit (strcmp((char *)crypt("foo",salt),answer));
21192: #else
21193: exit(0);
21194: #endif
21195: }
21196: _ACEOF
21197: if ac_fn_c_try_run "$LINENO"; then :
21198:
21199: ac_cv_crypt_SHA256=yes
21200:
21201: else
21202:
21203: ac_cv_crypt_SHA256=no
21204:
21205: fi
21206: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21207: conftest.$ac_objext conftest.beam conftest.$ac_ext
21208: fi
21209:
21210: fi
21211: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_crypt_SHA256" >&5
21212: $as_echo "$ac_cv_crypt_SHA256" >&6; }
21213:
21214:
21215: 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
21216:
21217: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports __alignof__" >&5
21218: $as_echo_n "checking whether the compiler supports __alignof__... " >&6; }
21219: if ${ac_cv_alignof_exists+:} false; then :
21220: $as_echo_n "(cached) " >&6
21221: else
21222:
21223: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21224: /* end confdefs.h. */
21225:
21226:
21227: int
21228: main ()
21229: {
21230:
21231: int align = __alignof__(int);
21232:
21233: ;
21234: return 0;
21235: }
21236: _ACEOF
21237: if ac_fn_c_try_compile "$LINENO"; then :
21238:
21239: ac_cv_alignof_exists=yes
21240:
21241: else
21242:
21243: ac_cv_alignof_exists=no
21244:
21245: fi
21246: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21247: fi
21248: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_exists" >&5
21249: $as_echo "$ac_cv_alignof_exists" >&6; }
21250: if test "$ac_cv_alignof_exists" = "yes"; then
21251:
21252: $as_echo "#define HAVE_ALIGNOF 1" >>confdefs.h
21253:
21254: fi
21255:
21256: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports aligned attribute" >&5
21257: $as_echo_n "checking whether the compiler supports aligned attribute... " >&6; }
21258: if ${ac_cv_attribute_aligned+:} false; then :
21259: $as_echo_n "(cached) " >&6
21260: else
21261:
21262: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21263: /* end confdefs.h. */
21264:
21265:
21266: int
21267: main ()
21268: {
21269:
21270: unsigned char test[32] __attribute__ ((__aligned__ (__alignof__ (int))));
21271:
21272: ;
21273: return 0;
21274: }
21275: _ACEOF
21276: if ac_fn_c_try_compile "$LINENO"; then :
21277:
21278: ac_cv_attribute_aligned=yes
21279:
21280: else
21281:
21282: ac_cv_attribute_aligned=no
21283:
21284: fi
21285: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21286: fi
21287: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_attribute_aligned" >&5
21288: $as_echo "$ac_cv_attribute_aligned" >&6; }
21289: if test "$ac_cv_attribute_aligned" = "yes"; then
21290:
21291: $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
21292:
21293: fi
21294:
21295:
21296:
21297: cat >>confdefs.h <<_ACEOF
21298: #define PHP_USE_PHP_CRYPT_R 1
21299: _ACEOF
21300:
21301:
21302: cat >>confdefs.h <<_ACEOF
21303: #define PHP_STD_DES_CRYPT 1
21304: _ACEOF
21305:
21306:
21307: cat >>confdefs.h <<_ACEOF
21308: #define PHP_BLOWFISH_CRYPT 1
21309: _ACEOF
21310:
21311:
21312: cat >>confdefs.h <<_ACEOF
21313: #define PHP_EXT_DES_CRYPT 1
21314: _ACEOF
21315:
21316:
21317: cat >>confdefs.h <<_ACEOF
21318: #define PHP_MD5_CRYPT 1
21319: _ACEOF
21320:
21321:
21322: cat >>confdefs.h <<_ACEOF
21323: #define PHP_SHA512_CRYPT 1
21324: _ACEOF
21325:
21326:
21327: cat >>confdefs.h <<_ACEOF
21328: #define PHP_SHA256_CRYPT 1
21329: _ACEOF
21330:
21331:
21332:
21333:
21334: case ext/standard in
21335: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
21336: /*) ac_srcdir=`echo "ext/standard"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
21337: *) ac_srcdir="$abs_srcdir/ext/standard/"; ac_bdir="ext/standard/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
21338: esac
21339:
21340:
21341:
21342: b_c_pre=$php_c_pre
21343: b_cxx_pre=$php_cxx_pre
21344: b_c_meta=$php_c_meta
21345: b_cxx_meta=$php_cxx_meta
21346: b_c_post=$php_c_post
21347: b_cxx_post=$php_cxx_post
21348: b_lo=$php_lo
21349:
21350:
21351: old_IFS=$IFS
21352: for ac_src in crypt_freesec.c crypt_blowfish.c crypt_sha512.c crypt_sha256.c php_crypt_r.c; do
21353:
21354: IFS=.
21355: set $ac_src
21356: ac_obj=$1
21357: IFS=$old_IFS
21358:
21359: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
21360:
21361: case $ac_src in
21362: *.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" ;;
21363: *.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" ;;
21364: *.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" ;;
21365: *.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" ;;
21366: esac
21367:
21368: cat >>Makefile.objects<<EOF
21369: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
21370: $ac_comp
21371: EOF
21372: done
21373:
21374:
21375: else
21376: if test "$ac_cv_crypt_des" = "yes"; then
21377: ac_result=1
21378: ac_crypt_des=1
21379: else
21380: ac_result=0
21381: ac_crypt_des=0
21382: fi
21383:
21384: cat >>confdefs.h <<_ACEOF
21385: #define PHP_STD_DES_CRYPT $ac_result
21386: _ACEOF
21387:
21388:
21389: if test "$ac_cv_crypt_blowfish" = "yes"; then
21390: ac_result=1
21391: ac_crypt_blowfish=1
21392: else
21393: ac_result=0
21394: ac_crypt_blowfish=0
21395: fi
21396:
21397: cat >>confdefs.h <<_ACEOF
21398: #define PHP_BLOWFISH_CRYPT $ac_result
21399: _ACEOF
21400:
21401:
21402: if test "$ac_cv_crypt_ext_des" = "yes"; then
21403: ac_result=1
21404: ac_crypt_edes=1
21405: else
21406: ac_result=0
21407: ac_crypt_edes=0
21408: fi
21409:
21410: cat >>confdefs.h <<_ACEOF
21411: #define PHP_EXT_DES_CRYPT $ac_result
21412: _ACEOF
21413:
21414:
21415: if test "$ac_cv_crypt_md5" = "yes"; then
21416: ac_result=1
21417: ac_crypt_md5=1
21418: else
21419: ac_result=0
21420: ac_crypt_md5=0
21421: fi
21422:
21423: cat >>confdefs.h <<_ACEOF
21424: #define PHP_MD5_CRYPT $ac_result
21425: _ACEOF
21426:
21427:
21428: if test "$ac_cv_crypt_sha512" = "yes"; then
21429: ac_result=1
21430: ac_crypt_sha512=1
21431: else
21432: ac_result=0
21433: ac_crypt_sha512=0
21434: fi
21435:
21436: cat >>confdefs.h <<_ACEOF
21437: #define PHP_SHA512_CRYPT $ac_result
21438: _ACEOF
21439:
21440:
21441: if test "$ac_cv_crypt_sha256" = "yes"; then
21442: ac_result=1
21443: ac_crypt_sha256=1
21444: else
21445: ac_result=0
21446: ac_crypt_sha256=0
21447: fi
21448:
21449: cat >>confdefs.h <<_ACEOF
21450: #define PHP_SHA256_CRYPT $ac_result
21451: _ACEOF
21452:
21453:
21454:
21455: cat >>confdefs.h <<_ACEOF
21456: #define PHP_USE_PHP_CRYPT_R 0
21457: _ACEOF
21458:
21459: fi
21460:
21461: for ac_func in getcwd getwd asinh acosh atanh log1p hypot glob strfmon nice fpclass isinf isnan mempcpy strpncpy
21462: do :
21463: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21464: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21465: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21466: cat >>confdefs.h <<_ACEOF
21467: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21468: _ACEOF
21469:
21470: fi
21471: done
21472:
21473: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working POSIX fnmatch" >&5
21474: $as_echo_n "checking for working POSIX fnmatch... " >&6; }
21475: if ${ac_cv_func_fnmatch_works+:} false; then :
21476: $as_echo_n "(cached) " >&6
21477: else
21478: # Some versions of Solaris, SCO, and the GNU C Library
21479: # have a broken or incompatible fnmatch.
21480: # So we run a test program. If we are cross-compiling, take no chance.
21481: # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
21482: if test "$cross_compiling" = yes; then :
21483: ac_cv_func_fnmatch_works=cross
21484: else
21485: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21486: /* end confdefs.h. */
21487: #include <fnmatch.h>
21488: # define y(a, b, c) (fnmatch (a, b, c) == 0)
21489: # define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
21490:
21491: int
21492: main ()
21493: {
21494: return
21495: (!(y ("a*", "abc", 0)
21496: && n ("d*/*1", "d/s/1", FNM_PATHNAME)
21497: && y ("a\\\\bc", "abc", 0)
21498: && n ("a\\\\bc", "abc", FNM_NOESCAPE)
21499: && y ("*x", ".x", 0)
21500: && n ("*x", ".x", FNM_PERIOD)
21501: && 1));
21502: ;
21503: return 0;
21504: }
21505: _ACEOF
21506: if ac_fn_c_try_run "$LINENO"; then :
21507: ac_cv_func_fnmatch_works=yes
21508: else
21509: ac_cv_func_fnmatch_works=no
21510: fi
21511: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21512: conftest.$ac_objext conftest.beam conftest.$ac_ext
21513: fi
21514:
21515: fi
21516: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fnmatch_works" >&5
21517: $as_echo "$ac_cv_func_fnmatch_works" >&6; }
21518: if test $ac_cv_func_fnmatch_works = yes; then :
21519:
21520: $as_echo "#define HAVE_FNMATCH 1" >>confdefs.h
21521:
21522: fi
21523:
21524:
21525:
21526:
21527:
21528:
21529:
21530: { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
21531: $as_echo "" >&6; }
21532: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}General settings${T_ME}" >&5
21533: $as_echo "${T_MD}General settings${T_ME}" >&6; }
21534:
21535:
21536:
21537: # Check whether --enable- was given.
21538: if test "${enable_+set}" = set; then :
21539: enableval=$enable_;
21540: fi
21541:
21542:
21543:
21544:
21545: php_enable_gcov=no
21546:
21547: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include gcov symbols" >&5
21548: $as_echo_n "checking whether to include gcov symbols... " >&6; }
21549: # Check whether --enable-gcov was given.
21550: if test "${enable_gcov+set}" = set; then :
21551: enableval=$enable_gcov; PHP_GCOV=$enableval
21552: else
21553:
21554: PHP_GCOV=no
21555:
21556:
21557: fi
21558:
21559:
21560: ext_output=$PHP_GCOV
21561: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
21562: $as_echo "$ext_output" >&6; }
21563:
21564:
21565:
21566:
21567: if test "$PHP_GCOV" = "yes"; then
21568:
21569: if test "$GCC" != "yes"; then
21570: as_fn_error $? "GCC is required for --enable-gcov" "$LINENO" 5
21571: fi
21572:
21573: case `$php_shtool path $CC` in
21574: *ccache*) gcc_ccache=yes;;
21575: *) gcc_ccache=no;;
21576: esac
21577:
21578: if test "$gcc_ccache" = "yes" && (test -z "$CCACHE_DISABLE" || test "$CCACHE_DISABLE" != "1"); then
21579: 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
21580: fi
21581:
21582: ltp_version_list="1.5 1.6 1.7"
21583:
21584: # Extract the first word of "lcov", so it can be a program name with args.
21585: set dummy lcov; ac_word=$2
21586: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21587: $as_echo_n "checking for $ac_word... " >&6; }
21588: if ${ac_cv_prog_LTP+:} false; then :
21589: $as_echo_n "(cached) " >&6
21590: else
21591: if test -n "$LTP"; then
21592: ac_cv_prog_LTP="$LTP" # Let the user override the test.
21593: else
21594: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21595: for as_dir in $PATH
21596: do
21597: IFS=$as_save_IFS
21598: test -z "$as_dir" && as_dir=.
21599: for ac_exec_ext in '' $ac_executable_extensions; do
21600: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21601: ac_cv_prog_LTP="lcov"
21602: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21603: break 2
21604: fi
21605: done
21606: done
21607: IFS=$as_save_IFS
21608:
21609: fi
21610: fi
21611: LTP=$ac_cv_prog_LTP
21612: if test -n "$LTP"; then
21613: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTP" >&5
21614: $as_echo "$LTP" >&6; }
21615: else
21616: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21617: $as_echo "no" >&6; }
21618: fi
21619:
21620:
21621: # Extract the first word of "genhtml", so it can be a program name with args.
21622: set dummy genhtml; ac_word=$2
21623: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21624: $as_echo_n "checking for $ac_word... " >&6; }
21625: if ${ac_cv_prog_LTP_GENHTML+:} false; then :
21626: $as_echo_n "(cached) " >&6
21627: else
21628: if test -n "$LTP_GENHTML"; then
21629: ac_cv_prog_LTP_GENHTML="$LTP_GENHTML" # Let the user override the test.
21630: else
21631: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21632: for as_dir in $PATH
21633: do
21634: IFS=$as_save_IFS
21635: test -z "$as_dir" && as_dir=.
21636: for ac_exec_ext in '' $ac_executable_extensions; do
21637: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21638: ac_cv_prog_LTP_GENHTML="genhtml"
21639: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21640: break 2
21641: fi
21642: done
21643: done
21644: IFS=$as_save_IFS
21645:
21646: fi
21647: fi
21648: LTP_GENHTML=$ac_cv_prog_LTP_GENHTML
21649: if test -n "$LTP_GENHTML"; then
21650: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTP_GENHTML" >&5
21651: $as_echo "$LTP_GENHTML" >&6; }
21652: else
21653: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21654: $as_echo "no" >&6; }
21655: fi
21656:
21657:
21658:
21659: PHP_VAR_SUBST="$PHP_VAR_SUBST LTP"
21660:
21661:
21662: PHP_VAR_SUBST="$PHP_VAR_SUBST LTP_GENHTML"
21663:
21664:
21665: if test "$LTP"; then
21666: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ltp version" >&5
21667: $as_echo_n "checking for ltp version... " >&6; }
21668: if ${php_cv_ltp_version+:} false; then :
21669: $as_echo_n "(cached) " >&6
21670: else
21671:
21672: php_cv_ltp_version=invalid
21673: ltp_version=`$LTP -v 2>/dev/null | $SED -e 's/^.* //'`
21674: for ltp_check_version in $ltp_version_list; do
21675: if test "$ltp_version" = "$ltp_check_version"; then
21676: php_cv_ltp_version="$ltp_check_version (ok)"
21677: fi
21678: done
21679:
21680: fi
21681: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_ltp_version" >&5
21682: $as_echo "$php_cv_ltp_version" >&6; }
21683: else
21684: ltp_msg="To enable code coverage reporting you must have one of the following LTP versions installed: $ltp_version_list"
21685: as_fn_error $? "$ltp_msg" "$LINENO" 5
21686: fi
21687:
21688: case $php_cv_ltp_version in
21689: ""|invalid)
21690: ltp_msg="You must have one of the following versions of LTP: $ltp_version_list (found: $ltp_version)."
21691: as_fn_error $? "$ltp_msg" "$LINENO" 5
21692: LTP="exit 0;"
21693: ;;
21694: esac
21695:
21696: if test -z "$LTP_GENHTML"; then
21697: as_fn_error $? "Could not find genhtml from the LTP package" "$LINENO" 5
21698: fi
21699:
21700:
21701: $as_echo "#define HAVE_GCOV 1" >>confdefs.h
21702:
21703:
21704: src=$abs_srcdir/Makefile.gcov
21705: ac_srcdir=$abs_srcdir
21706: ac_builddir=$ext_builddir
21707: test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments
21708:
21709:
21710:
21711: CFLAGS=`echo "$CFLAGS" | $SED -e 's/-O[0-9s]*//g'`
21712: CXXFLAGS=`echo "$CXXFLAGS" | $SED -e 's/-O[0-9s]*//g'`
21713:
21714:
21715: CFLAGS="$CFLAGS -O0 -fprofile-arcs -ftest-coverage"
21716: CXXFLAGS="$CXXFLAGS -O0 -fprofile-arcs -ftest-coverage"
21717: fi
21718:
21719:
21720: php_enable_debug=no
21721:
21722: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include debugging symbols" >&5
21723: $as_echo_n "checking whether to include debugging symbols... " >&6; }
21724: # Check whether --enable-debug was given.
21725: if test "${enable_debug+set}" = set; then :
21726: enableval=$enable_debug; PHP_DEBUG=$enableval
21727: else
21728:
21729: PHP_DEBUG=no
21730:
21731:
21732: fi
21733:
21734:
21735: ext_output=$PHP_DEBUG
21736: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
21737: $as_echo "$ext_output" >&6; }
21738:
21739:
21740:
21741:
21742: if test "$PHP_DEBUG" = "yes"; then
21743: PHP_DEBUG=1
21744: ZEND_DEBUG=yes
21745:
21746: CFLAGS=`echo "$CFLAGS" | $SED -e 's/-O[0-9s]*//g'`
21747: CXXFLAGS=`echo "$CXXFLAGS" | $SED -e 's/-O[0-9s]*//g'`
21748:
21749: if test "$GCC" = "yes" || test "$ICC" = "yes"; then
21750: CFLAGS="$CFLAGS -O0"
21751: CXXFLAGS="$CXXFLAGS -g -O0"
21752: fi
21753: if test "$SUNCC" = "yes"; then
21754: if test -n "$auto_cflags"; then
21755: CFLAGS="-g"
21756: CXXFLAGS="-g"
21757: else
21758: CFLAGS="$CFLAGS -g"
21759: CXXFLAGS="$CFLAGS -g"
21760: fi
21761: fi
21762: else
21763: PHP_DEBUG=0
21764: ZEND_DEBUG=no
21765: fi
21766:
21767:
21768: php_with_layout=PHP
21769:
21770: { $as_echo "$as_me:${as_lineno-$LINENO}: checking layout of installed files" >&5
21771: $as_echo_n "checking layout of installed files... " >&6; }
21772:
21773: # Check whether --with-layout was given.
21774: if test "${with_layout+set}" = set; then :
21775: withval=$with_layout; PHP_LAYOUT=$withval
21776: else
21777:
21778: PHP_LAYOUT=PHP
21779:
21780:
21781: fi
21782:
21783:
21784: ext_output=$PHP_LAYOUT
21785: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
21786: $as_echo "$ext_output" >&6; }
21787:
21788:
21789:
21790:
21791: case $PHP_LAYOUT in
21792: GNU)
21793: oldstyleextdir=no
21794: ;;
21795: *)
21796: oldstyleextdir=yes
21797: ;;
21798: esac
21799:
21800:
21801: php_with_config_file_path=DEFAULT
21802:
21803: { $as_echo "$as_me:${as_lineno-$LINENO}: checking path to configuration file" >&5
21804: $as_echo_n "checking path to configuration file... " >&6; }
21805:
21806: # Check whether --with-config-file-path was given.
21807: if test "${with_config_file_path+set}" = set; then :
21808: withval=$with_config_file_path; PHP_CONFIG_FILE_PATH=$withval
21809: else
21810:
21811: PHP_CONFIG_FILE_PATH=DEFAULT
21812:
21813:
21814: fi
21815:
21816:
21817: ext_output=$PHP_CONFIG_FILE_PATH
21818: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
21819: $as_echo "$ext_output" >&6; }
21820:
21821:
21822:
21823:
21824: if test "$PHP_CONFIG_FILE_PATH" = "DEFAULT"; then
21825: case $PHP_LAYOUT in
21826: GNU)
21827: PHP_CONFIG_FILE_PATH=$sysconfdir
21828: ;;
21829: *)
21830: PHP_CONFIG_FILE_PATH=$libdir
21831: ;;
21832: esac
21833: fi
21834:
21835: { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to scan for configuration files" >&5
21836: $as_echo_n "checking where to scan for configuration files... " >&6; }
21837:
21838: php_with_config_file_scan_dir=DEFAULT
21839:
21840:
21841:
21842: # Check whether --with-config-file-scan-dir was given.
21843: if test "${with_config_file_scan_dir+set}" = set; then :
21844: withval=$with_config_file_scan_dir; PHP_CONFIG_FILE_SCAN_DIR=$withval
21845: else
21846:
21847: PHP_CONFIG_FILE_SCAN_DIR=DEFAULT
21848:
21849:
21850: fi
21851:
21852:
21853: ext_output=$PHP_CONFIG_FILE_SCAN_DIR
21854:
21855:
21856:
21857:
21858: if test "$PHP_CONFIG_FILE_SCAN_DIR" = "DEFAULT"; then
21859: PHP_CONFIG_FILE_SCAN_DIR=
21860: fi
21861: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_CONFIG_FILE_SCAN_DIR" >&5
21862: $as_echo "$PHP_CONFIG_FILE_SCAN_DIR" >&6; }
21863:
21864: test -n "$DEBUG_CFLAGS" && CFLAGS="$CFLAGS $DEBUG_CFLAGS"
21865:
21866:
21867: php_enable_safe_mode=no
21868:
21869: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable safe mode by default" >&5
21870: $as_echo_n "checking whether to enable safe mode by default... " >&6; }
21871: # Check whether --enable-safe-mode was given.
21872: if test "${enable_safe_mode+set}" = set; then :
21873: enableval=$enable_safe_mode; PHP_SAFE_MODE=$enableval
21874: else
21875:
21876: PHP_SAFE_MODE=no
21877:
21878:
21879: fi
21880:
21881:
21882: ext_output=$PHP_SAFE_MODE
21883: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
21884: $as_echo "$ext_output" >&6; }
21885:
21886:
21887:
21888:
21889: if test "$PHP_SAFE_MODE" = "yes"; then
21890:
21891: $as_echo "#define PHP_SAFE_MODE 1" >>confdefs.h
21892:
21893: else
21894:
21895: $as_echo "#define PHP_SAFE_MODE 0" >>confdefs.h
21896:
21897: fi
21898:
21899: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for safe mode exec dir" >&5
21900: $as_echo_n "checking for safe mode exec dir... " >&6; }
21901:
21902: php_with_exec_dir=no
21903:
21904:
21905:
21906: # Check whether --with-exec-dir was given.
21907: if test "${with_exec_dir+set}" = set; then :
21908: withval=$with_exec_dir; PHP_EXEC_DIR=$withval
21909: else
21910:
21911: PHP_EXEC_DIR=no
21912:
21913:
21914: fi
21915:
21916:
21917: ext_output=$PHP_EXEC_DIR
21918:
21919:
21920:
21921:
21922:
21923: if test "$PHP_EXEC_DIR" != "no" && test "$PHP_EXEC_DIR" != "yes" ; then
21924:
21925: cat >>confdefs.h <<_ACEOF
21926: #define PHP_SAFE_MODE_EXEC_DIR "$PHP_EXEC_DIR"
21927: _ACEOF
21928:
21929: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_EXEC_DIR" >&5
21930: $as_echo "$PHP_EXEC_DIR" >&6; }
21931: else
21932:
21933: $as_echo "#define PHP_SAFE_MODE_EXEC_DIR \"/usr/local/php/bin\"" >>confdefs.h
21934:
21935: { $as_echo "$as_me:${as_lineno-$LINENO}: result: /usr/local/php/bin" >&5
21936: $as_echo "/usr/local/php/bin" >&6; }
21937: fi
21938:
21939:
21940: php_enable_sigchild=no
21941:
21942: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable PHP's own SIGCHLD handler" >&5
21943: $as_echo_n "checking whether to enable PHP's own SIGCHLD handler... " >&6; }
21944: # Check whether --enable-sigchild was given.
21945: if test "${enable_sigchild+set}" = set; then :
21946: enableval=$enable_sigchild; PHP_SIGCHILD=$enableval
21947: else
21948:
21949: PHP_SIGCHILD=no
21950:
21951:
21952: fi
21953:
21954:
21955: ext_output=$PHP_SIGCHILD
21956: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
21957: $as_echo "$ext_output" >&6; }
21958:
21959:
21960:
21961:
21962: if test "$PHP_SIGCHILD" = "yes"; then
21963:
21964: $as_echo "#define PHP_SIGCHILD 1" >>confdefs.h
21965:
21966: else
21967:
21968: $as_echo "#define PHP_SIGCHILD 0" >>confdefs.h
21969:
21970: fi
21971:
21972:
21973: php_enable_magic_quotes=no
21974:
21975: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable magic quotes by default" >&5
21976: $as_echo_n "checking whether to enable magic quotes by default... " >&6; }
21977: # Check whether --enable-magic-quotes was given.
21978: if test "${enable_magic_quotes+set}" = set; then :
21979: enableval=$enable_magic_quotes; PHP_MAGIC_QUOTES=$enableval
21980: else
21981:
21982: PHP_MAGIC_QUOTES=no
21983:
21984:
21985: fi
21986:
21987:
21988: ext_output=$PHP_MAGIC_QUOTES
21989: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
21990: $as_echo "$ext_output" >&6; }
21991:
21992:
21993:
21994:
21995: if test "$PHP_MAGIC_QUOTES" = "yes"; then
21996:
21997: $as_echo "#define MAGIC_QUOTES 1" >>confdefs.h
21998:
21999: else
22000:
22001: $as_echo "#define MAGIC_QUOTES 0" >>confdefs.h
22002:
22003: fi
22004:
22005:
22006: php_enable_libgcc=no
22007:
22008: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to explicitly link against libgcc" >&5
22009: $as_echo_n "checking whether to explicitly link against libgcc... " >&6; }
22010: # Check whether --enable-libgcc was given.
22011: if test "${enable_libgcc+set}" = set; then :
22012: enableval=$enable_libgcc; PHP_LIBGCC=$enableval
22013: else
22014:
22015: PHP_LIBGCC=no
22016:
22017:
22018: fi
22019:
22020:
22021: ext_output=$PHP_LIBGCC
22022: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
22023: $as_echo "$ext_output" >&6; }
22024:
22025:
22026:
22027:
22028: if test "$PHP_LIBGCC" = "yes"; then
22029:
22030:
22031: libgcc_libpath=`gcc --print-libgcc-file-name|$SED 's%/*[^/][^/]*$%%'`
22032:
22033:
22034: if test -z "$libgcc_libpath"; then
22035: as_fn_error $? "Cannot locate libgcc. Make sure that gcc is in your path" "$LINENO" 5
22036: fi
22037:
22038: if test "$libgcc_libpath" != "/usr/$PHP_LIBDIR" && test "$libgcc_libpath" != "/usr/lib"; then
22039:
22040: if test -z "$libgcc_libpath" || echo "$libgcc_libpath" | grep '^/' >/dev/null ; then
22041: ai_p=$libgcc_libpath
22042: else
22043:
22044: ep_dir="`echo $libgcc_libpath|$SED 's%/*[^/][^/]*/*$%%'`"
22045:
22046: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
22047: ai_p="$ep_realdir/`basename \"$libgcc_libpath\"`"
22048: fi
22049:
22050:
22051:
22052:
22053:
22054: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
22055:
22056: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
22057: if test -n "$unique" && test "`eval $cmd`" = "" ; then
22058: eval "LIBPATH$unique=set"
22059:
22060: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
22061: LDFLAGS="$LDFLAGS -L$ai_p"
22062: PHP_RPATHS="$PHP_RPATHS $ai_p"
22063:
22064: fi
22065:
22066:
22067:
22068: fi
22069:
22070:
22071:
22072: case gcc in
22073: c|c_r|pthread*) ;;
22074: *)
22075: LIBS="$LIBS -lgcc"
22076: ;;
22077: esac
22078:
22079:
22080: fi
22081:
22082:
22083: php_enable_short_tags=yes
22084:
22085: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable short tags by default" >&5
22086: $as_echo_n "checking whether to enable short tags by default... " >&6; }
22087: # Check whether --enable-short-tags was given.
22088: if test "${enable_short_tags+set}" = set; then :
22089: enableval=$enable_short_tags; PHP_SHORT_TAGS=$enableval
22090: else
22091:
22092: PHP_SHORT_TAGS=yes
22093:
22094:
22095: fi
22096:
22097:
22098: ext_output=$PHP_SHORT_TAGS
22099: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
22100: $as_echo "$ext_output" >&6; }
22101:
22102:
22103:
22104:
22105: if test "$PHP_SHORT_TAGS" = "yes"; then
22106:
22107: $as_echo "#define DEFAULT_SHORT_OPEN_TAG \"1\"" >>confdefs.h
22108:
22109: else
22110:
22111: $as_echo "#define DEFAULT_SHORT_OPEN_TAG \"0\"" >>confdefs.h
22112:
22113: fi
22114:
22115:
22116: php_enable_dmalloc=no
22117:
22118: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable dmalloc" >&5
22119: $as_echo_n "checking whether to enable dmalloc... " >&6; }
22120: # Check whether --enable-dmalloc was given.
22121: if test "${enable_dmalloc+set}" = set; then :
22122: enableval=$enable_dmalloc; PHP_DMALLOC=$enableval
22123: else
22124:
22125: PHP_DMALLOC=no
22126:
22127:
22128: fi
22129:
22130:
22131: ext_output=$PHP_DMALLOC
22132: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
22133: $as_echo "$ext_output" >&6; }
22134:
22135:
22136:
22137:
22138: if test "$PHP_DMALLOC" = "yes"; then
22139: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dmalloc_error in -ldmalloc" >&5
22140: $as_echo_n "checking for dmalloc_error in -ldmalloc... " >&6; }
22141: if ${ac_cv_lib_dmalloc_dmalloc_error+:} false; then :
22142: $as_echo_n "(cached) " >&6
22143: else
22144: ac_check_lib_save_LIBS=$LIBS
22145: LIBS="-ldmalloc $LIBS"
22146: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22147: /* end confdefs.h. */
22148:
22149: /* Override any GCC internal prototype to avoid an error.
22150: Use char because int might match the return type of a GCC
22151: builtin and then its argument prototype would still apply. */
22152: #ifdef __cplusplus
22153: extern "C"
22154: #endif
22155: char dmalloc_error ();
22156: int
22157: main ()
22158: {
22159: return dmalloc_error ();
22160: ;
22161: return 0;
22162: }
22163: _ACEOF
22164: if ac_fn_c_try_link "$LINENO"; then :
22165: ac_cv_lib_dmalloc_dmalloc_error=yes
22166: else
22167: ac_cv_lib_dmalloc_dmalloc_error=no
22168: fi
22169: rm -f core conftest.err conftest.$ac_objext \
22170: conftest$ac_exeext conftest.$ac_ext
22171: LIBS=$ac_check_lib_save_LIBS
22172: fi
22173: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dmalloc_dmalloc_error" >&5
22174: $as_echo "$ac_cv_lib_dmalloc_dmalloc_error" >&6; }
22175: if test "x$ac_cv_lib_dmalloc_dmalloc_error" = xyes; then :
22176:
22177:
22178:
22179: case dmalloc in
22180: c|c_r|pthread*) ;;
22181: *)
22182: LIBS="-ldmalloc $LIBS"
22183: ;;
22184: esac
22185:
22186:
22187:
22188: $as_echo "#define HAVE_DMALLOC 1" >>confdefs.h
22189:
22190: CPPFLAGS="$CPPFLAGS -DDMALLOC_FUNC_CHECK"
22191:
22192: else
22193:
22194: as_fn_error $? "Problem with enabling dmalloc. Please check config.log for details." "$LINENO" 5
22195:
22196: fi
22197:
22198: fi
22199:
22200:
22201: php_enable_ipv6=yes
22202:
22203: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable IPv6 support" >&5
22204: $as_echo_n "checking whether to enable IPv6 support... " >&6; }
22205: # Check whether --enable-ipv6 was given.
22206: if test "${enable_ipv6+set}" = set; then :
22207: enableval=$enable_ipv6; PHP_IPV6=$enableval
22208: else
22209:
22210: PHP_IPV6=yes
22211:
22212:
22213: fi
22214:
22215:
22216: ext_output=$PHP_IPV6
22217: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
22218: $as_echo "$ext_output" >&6; }
22219:
22220:
22221:
22222:
22223: if test "$PHP_IPV6" != "no" && test "$ac_cv_ipv6_support" = yes; then
22224:
22225: $as_echo "#define HAVE_IPV6 1" >>confdefs.h
22226:
22227: fi
22228:
22229: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how big to make fd sets" >&5
22230: $as_echo_n "checking how big to make fd sets... " >&6; }
22231:
22232: php_enable_fd_setsize=no
22233:
22234:
22235: # Check whether --enable-fd-setsize was given.
22236: if test "${enable_fd_setsize+set}" = set; then :
22237: enableval=$enable_fd_setsize; PHP_FD_SETSIZE=$enableval
22238: else
22239:
22240: PHP_FD_SETSIZE=no
22241:
22242:
22243: fi
22244:
22245:
22246: ext_output=$PHP_FD_SETSIZE
22247:
22248:
22249:
22250:
22251:
22252: if test "$PHP_FD_SETSIZE" != "no"; then
22253: if test "0$PHP_FD_SETSIZE" -gt 0 2>/dev/null; then
22254: CPPFLAGS="$CPPFLAGS -DFD_SETSIZE=$PHP_FD_SETSIZE"
22255: { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $PHP_FD_SETSIZE" >&5
22256: $as_echo "using $PHP_FD_SETSIZE" >&6; }
22257: else
22258: as_fn_error $? "Invalid value passed to --enable-fd-setsize!" "$LINENO" 5
22259: fi
22260: else
22261: { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system default" >&5
22262: $as_echo "using system default" >&6; }
22263: fi
22264:
22265:
22266:
22267:
22268:
22269:
22270: # Check whether --enable- was given.
22271: if test "${enable_+set}" = set; then :
22272: enableval=$enable_;
22273: fi
22274:
22275:
22276:
22277:
22278: { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
22279: $as_echo "" >&6; }
22280: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Configuring extensions${T_ME}" >&5
22281: $as_echo "${T_MD}Configuring extensions${T_ME}" >&6; }
22282:
22283:
22284:
22285: # Check whether --enable-all was given.
22286: if test "${enable_all+set}" = set; then :
22287: enableval=$enable_all;
22288: PHP_ENABLE_ALL=$enableval
22289:
22290: fi
22291:
22292:
22293: # reading config stubs
22294:
22295:
22296:
22297:
22298: # The cast to long int works around a bug in the HP C Compiler
22299: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22300: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22301: # This bug is HP SR number 8606223364.
22302: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
22303: $as_echo_n "checking size of long... " >&6; }
22304: if ${ac_cv_sizeof_long+:} false; then :
22305: $as_echo_n "(cached) " >&6
22306: else
22307: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
22308:
22309: else
22310: if test "$ac_cv_type_long" = yes; then
22311: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22312: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22313: as_fn_error 77 "cannot compute sizeof (long)
22314: See \`config.log' for more details" "$LINENO" 5; }
22315: else
22316: ac_cv_sizeof_long=0
22317: fi
22318: fi
22319:
22320: fi
22321: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
22322: $as_echo "$ac_cv_sizeof_long" >&6; }
22323:
22324:
22325:
22326: cat >>confdefs.h <<_ACEOF
22327: #define SIZEOF_LONG $ac_cv_sizeof_long
22328: _ACEOF
22329:
22330:
22331: # The cast to long int works around a bug in the HP C Compiler
22332: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22333: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22334: # This bug is HP SR number 8606223364.
22335: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
22336: $as_echo_n "checking size of int... " >&6; }
22337: if ${ac_cv_sizeof_int+:} false; then :
22338: $as_echo_n "(cached) " >&6
22339: else
22340: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
22341:
22342: else
22343: if test "$ac_cv_type_int" = yes; then
22344: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22345: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22346: as_fn_error 77 "cannot compute sizeof (int)
22347: See \`config.log' for more details" "$LINENO" 5; }
22348: else
22349: ac_cv_sizeof_int=0
22350: fi
22351: fi
22352:
22353: fi
22354: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
22355: $as_echo "$ac_cv_sizeof_int" >&6; }
22356:
22357:
22358:
22359: cat >>confdefs.h <<_ACEOF
22360: #define SIZEOF_INT $ac_cv_sizeof_int
22361: _ACEOF
22362:
22363:
22364:
22365: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int32_t" >&5
22366: $as_echo_n "checking for int32_t... " >&6; }
22367: if ${ac_cv_int_type_int32_t+:} false; then :
22368: $as_echo_n "(cached) " >&6
22369: else
22370:
22371: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22372: /* end confdefs.h. */
22373:
22374: #if HAVE_SYS_TYPES_H
22375: # include <sys/types.h>
22376: #endif
22377: #if HAVE_INTTYPES_H
22378: # include <inttypes.h>
22379: #elif HAVE_STDINT_H
22380: # include <stdint.h>
22381: #endif
22382: int
22383: main ()
22384: {
22385: if ((int32_t *) 0)
22386: return 0;
22387: if (sizeof (int32_t))
22388: return 0;
22389:
22390: ;
22391: return 0;
22392: }
22393: _ACEOF
22394: if ac_fn_c_try_compile "$LINENO"; then :
22395: ac_cv_int_type_int32_t=yes
22396: else
22397: ac_cv_int_type_int32_t=no
22398: fi
22399: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22400:
22401: fi
22402: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int_type_int32_t" >&5
22403: $as_echo "$ac_cv_int_type_int32_t" >&6; }
22404: if test "$ac_cv_int_type_int32_t" = "yes"; then
22405:
22406: $as_echo "#define HAVE_INT32_T 1" >>confdefs.h
22407:
22408: fi
22409:
22410:
22411: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint32_t" >&5
22412: $as_echo_n "checking for uint32_t... " >&6; }
22413: if ${ac_cv_int_type_uint32_t+:} false; then :
22414: $as_echo_n "(cached) " >&6
22415: else
22416:
22417: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22418: /* end confdefs.h. */
22419:
22420: #if HAVE_SYS_TYPES_H
22421: # include <sys/types.h>
22422: #endif
22423: #if HAVE_INTTYPES_H
22424: # include <inttypes.h>
22425: #elif HAVE_STDINT_H
22426: # include <stdint.h>
22427: #endif
22428: int
22429: main ()
22430: {
22431: if ((uint32_t *) 0)
22432: return 0;
22433: if (sizeof (uint32_t))
22434: return 0;
22435:
22436: ;
22437: return 0;
22438: }
22439: _ACEOF
22440: if ac_fn_c_try_compile "$LINENO"; then :
22441: ac_cv_int_type_uint32_t=yes
22442: else
22443: ac_cv_int_type_uint32_t=no
22444: fi
22445: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22446:
22447: fi
22448: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int_type_uint32_t" >&5
22449: $as_echo "$ac_cv_int_type_uint32_t" >&6; }
22450: if test "$ac_cv_int_type_uint32_t" = "yes"; then
22451:
22452: $as_echo "#define HAVE_UINT32_T 1" >>confdefs.h
22453:
22454: fi
22455:
22456:
22457: for ac_header in \
22458: sys/types.h \
22459: inttypes.h \
22460: stdint.h \
22461: string.h \
22462: stdlib.h
22463:
22464: do :
22465: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22466: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22467: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22468: cat >>confdefs.h <<_ACEOF
22469: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22470: _ACEOF
22471:
22472: fi
22473:
22474: done
22475:
22476:
22477: for ac_func in strtoll atoll strftime
22478: do :
22479: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22480: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22481: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22482: cat >>confdefs.h <<_ACEOF
22483: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22484: _ACEOF
22485:
22486: fi
22487: done
22488:
22489:
22490:
22491:
22492: PHP_DATE_CFLAGS="-I@ext_builddir@/lib"
22493: timelib_sources="lib/astro.c lib/dow.c lib/parse_date.c lib/parse_tz.c
22494: lib/timelib.c lib/tm2unixtime.c lib/unixtime2tm.c lib/parse_iso_intervals.c lib/interval.c"
22495:
22496:
22497: ext_builddir=ext/date
22498: ext_srcdir=$abs_srcdir/ext/date
22499:
22500: ac_extra=`echo "$PHP_DATE_CFLAGS"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
22501:
22502: if test "no" != "shared" && test "no" != "yes" && test "" != "cli"; then
22503: PHP_DATE_SHARED=no
22504:
22505:
22506: case ext/date in
22507: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
22508: /*) ac_srcdir=`echo "ext/date"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
22509: *) ac_srcdir="$abs_srcdir/ext/date/"; ac_bdir="ext/date/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
22510: esac
22511:
22512:
22513:
22514: b_c_pre=$php_c_pre
22515: b_cxx_pre=$php_cxx_pre
22516: b_c_meta=$php_c_meta
22517: b_cxx_meta=$php_cxx_meta
22518: b_c_post=$php_c_post
22519: b_cxx_post=$php_cxx_post
22520: b_lo=$php_lo
22521:
22522:
22523: old_IFS=$IFS
22524: for ac_src in php_date.c $timelib_sources; do
22525:
22526: IFS=.
22527: set $ac_src
22528: ac_obj=$1
22529: IFS=$old_IFS
22530:
22531: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
22532:
22533: case $ac_src in
22534: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
22535: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
22536: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
22537: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
22538: esac
22539:
22540: cat >>Makefile.objects<<EOF
22541: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
22542: $ac_comp
22543: EOF
22544: done
22545:
22546:
22547: EXT_STATIC="$EXT_STATIC date"
22548: if test "no" != "nocli"; then
22549: EXT_CLI_STATIC="$EXT_CLI_STATIC date"
22550: fi
22551: else
22552: if test "no" = "shared" || test "no" = "yes"; then
22553: PHP_DATE_SHARED=yes
22554:
22555: case ext/date in
22556: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
22557: /*) ac_srcdir=`echo "ext/date"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
22558: *) ac_srcdir="$abs_srcdir/ext/date/"; ac_bdir="ext/date/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
22559: esac
22560:
22561:
22562:
22563: b_c_pre=$shared_c_pre
22564: b_cxx_pre=$shared_cxx_pre
22565: b_c_meta=$shared_c_meta
22566: b_cxx_meta=$shared_cxx_meta
22567: b_c_post=$shared_c_post
22568: b_cxx_post=$shared_cxx_post
22569: b_lo=$shared_lo
22570:
22571:
22572: old_IFS=$IFS
22573: for ac_src in php_date.c $timelib_sources; do
22574:
22575: IFS=.
22576: set $ac_src
22577: ac_obj=$1
22578: IFS=$old_IFS
22579:
22580: shared_objects_date="$shared_objects_date $ac_bdir$ac_obj.lo"
22581:
22582: case $ac_src in
22583: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
22584: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
22585: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
22586: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
22587: esac
22588:
22589: cat >>Makefile.objects<<EOF
22590: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
22591: $ac_comp
22592: EOF
22593: done
22594:
22595: case $host_alias in
22596: *netware*)
22597:
22598: install_modules="install-modules"
22599:
22600: case $host_alias in
22601: *aix*)
22602: suffix=so
22603: 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'
22604: ;;
22605: *netware*)
22606: suffix=nlm
22607: link_cmd='$(LIBTOOL) --mode=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)'
22608: ;;
22609: *)
22610: suffix=la
22611: link_cmd='$(LIBTOOL) --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)'
22612: ;;
22613: esac
22614:
22615: if test "x" = "xyes"; then
22616: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpdate.$suffix"
22617: else
22618: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpdate.$suffix"
22619: fi
22620:
22621: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_date"
22622:
22623: cat >>Makefile.objects<<EOF
22624: \$(phplibdir)/phpdate.$suffix: $ext_builddir/phpdate.$suffix
22625: \$(LIBTOOL) --mode=install cp $ext_builddir/phpdate.$suffix \$(phplibdir)
22626:
22627: $ext_builddir/phpdate.$suffix: \$(shared_objects_date) \$(PHPDATE_SHARED_DEPENDENCIES)
22628: $link_cmd
22629:
22630: EOF
22631:
22632: ;;
22633: *)
22634:
22635: install_modules="install-modules"
22636:
22637: case $host_alias in
22638: *aix*)
22639: suffix=so
22640: 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'
22641: ;;
22642: *netware*)
22643: suffix=nlm
22644: link_cmd='$(LIBTOOL) --mode=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)'
22645: ;;
22646: *)
22647: suffix=la
22648: link_cmd='$(LIBTOOL) --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)'
22649: ;;
22650: esac
22651:
22652: if test "x" = "xyes"; then
22653: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/date.$suffix"
22654: else
22655: PHP_MODULES="$PHP_MODULES \$(phplibdir)/date.$suffix"
22656: fi
22657:
22658: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_date"
22659:
22660: cat >>Makefile.objects<<EOF
22661: \$(phplibdir)/date.$suffix: $ext_builddir/date.$suffix
22662: \$(LIBTOOL) --mode=install cp $ext_builddir/date.$suffix \$(phplibdir)
22663:
22664: $ext_builddir/date.$suffix: \$(shared_objects_date) \$(DATE_SHARED_DEPENDENCIES)
22665: $link_cmd
22666:
22667: EOF
22668:
22669: ;;
22670: esac
22671:
22672: cat >>confdefs.h <<_ACEOF
22673: #define COMPILE_DL_DATE 1
22674: _ACEOF
22675:
22676: fi
22677: fi
22678:
22679: if test "no" != "shared" && test "no" != "yes" && test "" = "cli"; then
22680: PHP_DATE_SHARED=no
22681:
22682:
22683: case ext/date in
22684: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
22685: /*) ac_srcdir=`echo "ext/date"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
22686: *) ac_srcdir="$abs_srcdir/ext/date/"; ac_bdir="ext/date/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
22687: esac
22688:
22689:
22690:
22691: b_c_pre=$php_c_pre
22692: b_cxx_pre=$php_cxx_pre
22693: b_c_meta=$php_c_meta
22694: b_cxx_meta=$php_cxx_meta
22695: b_c_post=$php_c_post
22696: b_cxx_post=$php_cxx_post
22697: b_lo=$php_lo
22698:
22699:
22700: old_IFS=$IFS
22701: for ac_src in php_date.c $timelib_sources; do
22702:
22703: IFS=.
22704: set $ac_src
22705: ac_obj=$1
22706: IFS=$old_IFS
22707:
22708: PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
22709:
22710: case $ac_src in
22711: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
22712: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
22713: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
22714: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
22715: esac
22716:
22717: cat >>Makefile.objects<<EOF
22718: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
22719: $ac_comp
22720: EOF
22721: done
22722:
22723:
22724:
22725:
22726: case ext/date in
22727: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
22728: /*) ac_srcdir=`echo "ext/date"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
22729: *) ac_srcdir="$abs_srcdir/ext/date/"; ac_bdir="ext/date/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
22730: esac
22731:
22732:
22733:
22734: b_c_pre=$php_c_pre
22735: b_cxx_pre=$php_cxx_pre
22736: b_c_meta=$php_c_meta
22737: b_cxx_meta=$php_cxx_meta
22738: b_c_post=$php_c_post
22739: b_cxx_post=$php_cxx_post
22740: b_lo=$php_lo
22741:
22742:
22743: old_IFS=$IFS
22744: for ac_src in php_date.c $timelib_sources; do
22745:
22746: IFS=.
22747: set $ac_src
22748: ac_obj=$1
22749: IFS=$old_IFS
22750:
22751: PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo"
22752:
22753: case $ac_src in
22754: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
22755: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
22756: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
22757: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
22758: esac
22759:
22760: cat >>Makefile.objects<<EOF
22761: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
22762: $ac_comp
22763: EOF
22764: done
22765:
22766:
22767:
22768:
22769: case ext/date in
22770: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
22771: /*) ac_srcdir=`echo "ext/date"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
22772: *) ac_srcdir="$abs_srcdir/ext/date/"; ac_bdir="ext/date/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
22773: esac
22774:
22775:
22776:
22777: b_c_pre=$php_c_pre
22778: b_cxx_pre=$php_cxx_pre
22779: b_c_meta=$php_c_meta
22780: b_cxx_meta=$php_cxx_meta
22781: b_c_post=$php_c_post
22782: b_cxx_post=$php_cxx_post
22783: b_lo=$php_lo
22784:
22785:
22786: old_IFS=$IFS
22787: for ac_src in php_date.c $timelib_sources; do
22788:
22789: IFS=.
22790: set $ac_src
22791: ac_obj=$1
22792: IFS=$old_IFS
22793:
22794: PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo"
22795:
22796: case $ac_src in
22797: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
22798: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
22799: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
22800: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
22801: esac
22802:
22803: cat >>Makefile.objects<<EOF
22804: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
22805: $ac_comp
22806: EOF
22807: done
22808:
22809:
22810: EXT_CLI_STATIC="$EXT_CLI_STATIC date"
22811: fi
22812:
22813:
22814: BUILD_DIR="$BUILD_DIR $ext_builddir"
22815:
22816:
22817:
22818: if test "$ext_builddir" = "."; then
22819: PHP_PECL_EXTENSION=date
22820:
22821: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
22822:
22823: fi
22824:
22825:
22826:
22827:
22828: $php_shtool mkdir -p $ext_builddir/lib
22829:
22830:
22831:
22832: if test "$ext_builddir/lib" != "/usr/include"; then
22833:
22834: if test -z "$ext_builddir/lib" || echo "$ext_builddir/lib" | grep '^/' >/dev/null ; then
22835: ai_p=$ext_builddir/lib
22836: else
22837:
22838: ep_dir="`echo $ext_builddir/lib|$SED 's%/*[^/][^/]*/*$%%'`"
22839:
22840: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
22841: ai_p="$ep_realdir/`basename \"$ext_builddir/lib\"`"
22842: fi
22843:
22844:
22845:
22846: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
22847:
22848: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
22849: if test -n "$unique" && test "`eval $cmd`" = "" ; then
22850: eval "INCLUDEPATH$unique=set"
22851:
22852: if test ""; then
22853: INCLUDES="-I$ai_p $INCLUDES"
22854: else
22855: INCLUDES="$INCLUDES -I$ai_p"
22856: fi
22857:
22858: fi
22859:
22860: fi
22861:
22862:
22863: if test "$ext_srcdir/lib" != "/usr/include"; then
22864:
22865: if test -z "$ext_srcdir/lib" || echo "$ext_srcdir/lib" | grep '^/' >/dev/null ; then
22866: ai_p=$ext_srcdir/lib
22867: else
22868:
22869: ep_dir="`echo $ext_srcdir/lib|$SED 's%/*[^/][^/]*/*$%%'`"
22870:
22871: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
22872: ai_p="$ep_realdir/`basename \"$ext_srcdir/lib\"`"
22873: fi
22874:
22875:
22876:
22877: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
22878:
22879: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
22880: if test -n "$unique" && test "`eval $cmd`" = "" ; then
22881: eval "INCLUDEPATH$unique=set"
22882:
22883: if test ""; then
22884: INCLUDES="-I$ai_p $INCLUDES"
22885: else
22886: INCLUDES="$INCLUDES -I$ai_p"
22887: fi
22888:
22889: fi
22890:
22891: fi
22892:
22893:
22894:
22895:
22896: header_path=ext/date
22897: for header_file in php_date.h lib/timelib.h lib/timelib_structs.h lib/timelib_config.h; do
22898: hp_hf="$header_path/$header_file"
22899:
22900:
22901: unique=`echo $hp_hf|$SED 's/[^a-zA-Z0-9]/_/g'`
22902:
22903: cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
22904: if test -n "$unique" && test "`eval $cmd`" = "" ; then
22905: eval "INSTALLHEADERS$unique=set"
22906:
22907: INSTALL_HEADERS="$INSTALL_HEADERS $hp_hf"
22908:
22909: fi
22910:
22911: done
22912:
22913:
22914:
22915: cat > $ext_builddir/lib/timelib_config.h <<EOF
22916: #ifdef PHP_WIN32
22917: # include "config.w32.h"
22918: #else
22919: # include <php_config.h>
22920: #endif
22921: EOF
22922:
22923:
22924:
22925: php_with_regex=php
22926:
22927:
22928:
22929: # Check whether --with-regex was given.
22930: if test "${with_regex+set}" = set; then :
22931: withval=$with_regex; PHP_REGEX=$withval
22932: else
22933:
22934: PHP_REGEX=php
22935:
22936:
22937: fi
22938:
22939:
22940: ext_output=$PHP_REGEX
22941:
22942:
22943:
22944:
22945:
22946: case $PHP_REGEX in
22947: system)
22948: if test "$PHP_SAPI" = "apache" || test "$PHP_SAPI" = "apache2filter" || test "$PHP_SAPI" = "apache2handler"; then
22949: REGEX_TYPE=php
22950: else
22951: REGEX_TYPE=system
22952: fi
22953: ;;
22954: yes | php)
22955: REGEX_TYPE=php
22956: ;;
22957: *)
22958: REGEX_TYPE=php
22959: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Invalid regex library type selected. Using default value: php" >&5
22960: $as_echo "$as_me: WARNING: Invalid regex library type selected. Using default value: php" >&2;}
22961: ;;
22962: esac
22963:
22964: { $as_echo "$as_me:${as_lineno-$LINENO}: checking which regex library to use" >&5
22965: $as_echo_n "checking which regex library to use... " >&6; }
22966: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REGEX_TYPE" >&5
22967: $as_echo "$REGEX_TYPE" >&6; }
22968:
22969: if test "$REGEX_TYPE" = "php"; then
22970: ereg_regex_sources="regex/regcomp.c regex/regexec.c regex/regerror.c regex/regfree.c"
22971: ereg_regex_headers="regex/"
22972: PHP_EREG_CFLAGS="-Dregexec=php_regexec -Dregerror=php_regerror -Dregfree=php_regfree -Dregcomp=php_regcomp"
22973: fi
22974:
22975:
22976: ext_builddir=ext/ereg
22977: ext_srcdir=$abs_srcdir/ext/ereg
22978:
22979: ac_extra=`echo "$PHP_EREG_CFLAGS"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
22980:
22981: if test "no" != "shared" && test "no" != "yes" && test "" != "cli"; then
22982: PHP_EREG_SHARED=no
22983:
22984:
22985: case ext/ereg in
22986: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
22987: /*) ac_srcdir=`echo "ext/ereg"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
22988: *) ac_srcdir="$abs_srcdir/ext/ereg/"; ac_bdir="ext/ereg/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
22989: esac
22990:
22991:
22992:
22993: b_c_pre=$php_c_pre
22994: b_cxx_pre=$php_cxx_pre
22995: b_c_meta=$php_c_meta
22996: b_cxx_meta=$php_cxx_meta
22997: b_c_post=$php_c_post
22998: b_cxx_post=$php_cxx_post
22999: b_lo=$php_lo
23000:
23001:
23002: old_IFS=$IFS
23003: for ac_src in ereg.c $ereg_regex_sources; do
23004:
23005: IFS=.
23006: set $ac_src
23007: ac_obj=$1
23008: IFS=$old_IFS
23009:
23010: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
23011:
23012: case $ac_src in
23013: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
23014: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
23015: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
23016: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
23017: esac
23018:
23019: cat >>Makefile.objects<<EOF
23020: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
23021: $ac_comp
23022: EOF
23023: done
23024:
23025:
23026: EXT_STATIC="$EXT_STATIC ereg"
23027: if test "no" != "nocli"; then
23028: EXT_CLI_STATIC="$EXT_CLI_STATIC ereg"
23029: fi
23030: else
23031: if test "no" = "shared" || test "no" = "yes"; then
23032: PHP_EREG_SHARED=yes
23033:
23034: case ext/ereg in
23035: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
23036: /*) ac_srcdir=`echo "ext/ereg"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
23037: *) ac_srcdir="$abs_srcdir/ext/ereg/"; ac_bdir="ext/ereg/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
23038: esac
23039:
23040:
23041:
23042: b_c_pre=$shared_c_pre
23043: b_cxx_pre=$shared_cxx_pre
23044: b_c_meta=$shared_c_meta
23045: b_cxx_meta=$shared_cxx_meta
23046: b_c_post=$shared_c_post
23047: b_cxx_post=$shared_cxx_post
23048: b_lo=$shared_lo
23049:
23050:
23051: old_IFS=$IFS
23052: for ac_src in ereg.c $ereg_regex_sources; do
23053:
23054: IFS=.
23055: set $ac_src
23056: ac_obj=$1
23057: IFS=$old_IFS
23058:
23059: shared_objects_ereg="$shared_objects_ereg $ac_bdir$ac_obj.lo"
23060:
23061: case $ac_src in
23062: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
23063: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
23064: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
23065: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
23066: esac
23067:
23068: cat >>Makefile.objects<<EOF
23069: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
23070: $ac_comp
23071: EOF
23072: done
23073:
23074: case $host_alias in
23075: *netware*)
23076:
23077: install_modules="install-modules"
23078:
23079: case $host_alias in
23080: *aix*)
23081: suffix=so
23082: 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'
23083: ;;
23084: *netware*)
23085: suffix=nlm
23086: link_cmd='$(LIBTOOL) --mode=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)'
23087: ;;
23088: *)
23089: suffix=la
23090: link_cmd='$(LIBTOOL) --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)'
23091: ;;
23092: esac
23093:
23094: if test "x" = "xyes"; then
23095: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpereg.$suffix"
23096: else
23097: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpereg.$suffix"
23098: fi
23099:
23100: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_ereg"
23101:
23102: cat >>Makefile.objects<<EOF
23103: \$(phplibdir)/phpereg.$suffix: $ext_builddir/phpereg.$suffix
23104: \$(LIBTOOL) --mode=install cp $ext_builddir/phpereg.$suffix \$(phplibdir)
23105:
23106: $ext_builddir/phpereg.$suffix: \$(shared_objects_ereg) \$(PHPEREG_SHARED_DEPENDENCIES)
23107: $link_cmd
23108:
23109: EOF
23110:
23111: ;;
23112: *)
23113:
23114: install_modules="install-modules"
23115:
23116: case $host_alias in
23117: *aix*)
23118: suffix=so
23119: 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'
23120: ;;
23121: *netware*)
23122: suffix=nlm
23123: link_cmd='$(LIBTOOL) --mode=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)'
23124: ;;
23125: *)
23126: suffix=la
23127: link_cmd='$(LIBTOOL) --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)'
23128: ;;
23129: esac
23130:
23131: if test "x" = "xyes"; then
23132: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/ereg.$suffix"
23133: else
23134: PHP_MODULES="$PHP_MODULES \$(phplibdir)/ereg.$suffix"
23135: fi
23136:
23137: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_ereg"
23138:
23139: cat >>Makefile.objects<<EOF
23140: \$(phplibdir)/ereg.$suffix: $ext_builddir/ereg.$suffix
23141: \$(LIBTOOL) --mode=install cp $ext_builddir/ereg.$suffix \$(phplibdir)
23142:
23143: $ext_builddir/ereg.$suffix: \$(shared_objects_ereg) \$(EREG_SHARED_DEPENDENCIES)
23144: $link_cmd
23145:
23146: EOF
23147:
23148: ;;
23149: esac
23150:
23151: cat >>confdefs.h <<_ACEOF
23152: #define COMPILE_DL_EREG 1
23153: _ACEOF
23154:
23155: fi
23156: fi
23157:
23158: if test "no" != "shared" && test "no" != "yes" && test "" = "cli"; then
23159: PHP_EREG_SHARED=no
23160:
23161:
23162: case ext/ereg in
23163: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
23164: /*) ac_srcdir=`echo "ext/ereg"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
23165: *) ac_srcdir="$abs_srcdir/ext/ereg/"; ac_bdir="ext/ereg/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
23166: esac
23167:
23168:
23169:
23170: b_c_pre=$php_c_pre
23171: b_cxx_pre=$php_cxx_pre
23172: b_c_meta=$php_c_meta
23173: b_cxx_meta=$php_cxx_meta
23174: b_c_post=$php_c_post
23175: b_cxx_post=$php_cxx_post
23176: b_lo=$php_lo
23177:
23178:
23179: old_IFS=$IFS
23180: for ac_src in ereg.c $ereg_regex_sources; do
23181:
23182: IFS=.
23183: set $ac_src
23184: ac_obj=$1
23185: IFS=$old_IFS
23186:
23187: PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
23188:
23189: case $ac_src in
23190: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
23191: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
23192: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
23193: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
23194: esac
23195:
23196: cat >>Makefile.objects<<EOF
23197: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
23198: $ac_comp
23199: EOF
23200: done
23201:
23202:
23203:
23204:
23205: case ext/ereg in
23206: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
23207: /*) ac_srcdir=`echo "ext/ereg"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
23208: *) ac_srcdir="$abs_srcdir/ext/ereg/"; ac_bdir="ext/ereg/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
23209: esac
23210:
23211:
23212:
23213: b_c_pre=$php_c_pre
23214: b_cxx_pre=$php_cxx_pre
23215: b_c_meta=$php_c_meta
23216: b_cxx_meta=$php_cxx_meta
23217: b_c_post=$php_c_post
23218: b_cxx_post=$php_cxx_post
23219: b_lo=$php_lo
23220:
23221:
23222: old_IFS=$IFS
23223: for ac_src in ereg.c $ereg_regex_sources; do
23224:
23225: IFS=.
23226: set $ac_src
23227: ac_obj=$1
23228: IFS=$old_IFS
23229:
23230: PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo"
23231:
23232: case $ac_src in
23233: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
23234: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
23235: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
23236: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
23237: esac
23238:
23239: cat >>Makefile.objects<<EOF
23240: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
23241: $ac_comp
23242: EOF
23243: done
23244:
23245:
23246:
23247:
23248: case ext/ereg in
23249: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
23250: /*) ac_srcdir=`echo "ext/ereg"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
23251: *) ac_srcdir="$abs_srcdir/ext/ereg/"; ac_bdir="ext/ereg/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
23252: esac
23253:
23254:
23255:
23256: b_c_pre=$php_c_pre
23257: b_cxx_pre=$php_cxx_pre
23258: b_c_meta=$php_c_meta
23259: b_cxx_meta=$php_cxx_meta
23260: b_c_post=$php_c_post
23261: b_cxx_post=$php_cxx_post
23262: b_lo=$php_lo
23263:
23264:
23265: old_IFS=$IFS
23266: for ac_src in ereg.c $ereg_regex_sources; do
23267:
23268: IFS=.
23269: set $ac_src
23270: ac_obj=$1
23271: IFS=$old_IFS
23272:
23273: PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo"
23274:
23275: case $ac_src in
23276: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
23277: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
23278: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
23279: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
23280: esac
23281:
23282: cat >>Makefile.objects<<EOF
23283: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
23284: $ac_comp
23285: EOF
23286: done
23287:
23288:
23289: EXT_CLI_STATIC="$EXT_CLI_STATIC ereg"
23290: fi
23291:
23292:
23293: BUILD_DIR="$BUILD_DIR $ext_builddir"
23294:
23295:
23296:
23297: if test "$ext_builddir" = "."; then
23298: PHP_PECL_EXTENSION=ereg
23299:
23300: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
23301:
23302: fi
23303:
23304:
23305:
23306: header_path=ext/ereg
23307: for header_file in php_ereg.h php_regex.h $ereg_regex_headers; do
23308: hp_hf="$header_path/$header_file"
23309:
23310:
23311: unique=`echo $hp_hf|$SED 's/[^a-zA-Z0-9]/_/g'`
23312:
23313: cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
23314: if test -n "$unique" && test "`eval $cmd`" = "" ; then
23315: eval "INSTALLHEADERS$unique=set"
23316:
23317: INSTALL_HEADERS="$INSTALL_HEADERS $hp_hf"
23318:
23319: fi
23320:
23321: done
23322:
23323:
23324:
23325: if test "$REGEX_TYPE" = "php"; then
23326:
23327: $as_echo "#define HAVE_REGEX_T_RE_MAGIC 1" >>confdefs.h
23328:
23329:
23330: $as_echo "#define HSREGEX 1" >>confdefs.h
23331:
23332:
23333: $as_echo "#define REGEX 1" >>confdefs.h
23334:
23335:
23336:
23337: $php_shtool mkdir -p $ext_builddir/regex
23338:
23339:
23340:
23341: if test "$ext_srcdir/regex" != "/usr/include"; then
23342:
23343: if test -z "$ext_srcdir/regex" || echo "$ext_srcdir/regex" | grep '^/' >/dev/null ; then
23344: ai_p=$ext_srcdir/regex
23345: else
23346:
23347: ep_dir="`echo $ext_srcdir/regex|$SED 's%/*[^/][^/]*/*$%%'`"
23348:
23349: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
23350: ai_p="$ep_realdir/`basename \"$ext_srcdir/regex\"`"
23351: fi
23352:
23353:
23354:
23355: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
23356:
23357: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
23358: if test -n "$unique" && test "`eval $cmd`" = "" ; then
23359: eval "INCLUDEPATH$unique=set"
23360:
23361: if test ""; then
23362: INCLUDES="-I$ai_p $INCLUDES"
23363: else
23364: INCLUDES="$INCLUDES -I$ai_p"
23365: fi
23366:
23367: fi
23368:
23369: fi
23370:
23371: elif test "$REGEX_TYPE" = "system"; then
23372:
23373: $as_echo "#define REGEX 0" >>confdefs.h
23374:
23375: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether field re_magic exists in struct regex_t" >&5
23376: $as_echo_n "checking whether field re_magic exists in struct regex_t... " >&6; }
23377: if ${ac_cv_regex_t_re_magic+:} false; then :
23378: $as_echo_n "(cached) " >&6
23379: else
23380:
23381: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23382: /* end confdefs.h. */
23383: #include <sys/types.h>
23384: #include <regex.h>
23385: int
23386: main ()
23387: {
23388: regex_t rt; rt.re_magic;
23389: ;
23390: return 0;
23391: }
23392: _ACEOF
23393: if ac_fn_c_try_compile "$LINENO"; then :
23394: ac_cv_regex_t_re_magic=yes
23395: else
23396: ac_cv_regex_t_re_magic=no
23397: fi
23398: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23399: fi
23400: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_regex_t_re_magic" >&5
23401: $as_echo "$ac_cv_regex_t_re_magic" >&6; }
23402: if test "$ac_cv_regex_t_re_magic" = "yes"; then
23403:
23404: $as_echo "#define HAVE_REGEX_T_RE_MAGIC " >>confdefs.h
23405:
23406: fi
23407: fi
23408:
23409:
23410:
23411: php_enable_libxml=yes
23412:
23413: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable LIBXML support" >&5
23414: $as_echo_n "checking whether to enable LIBXML support... " >&6; }
23415: # Check whether --enable-libxml was given.
23416: if test "${enable_libxml+set}" = set; then :
23417: enableval=$enable_libxml; PHP_LIBXML=$enableval
23418: else
23419:
23420: PHP_LIBXML=yes
23421: test "$PHP_ENABLE_ALL" && PHP_LIBXML=$PHP_ENABLE_ALL
23422:
23423: fi
23424:
23425:
23426:
23427: ext_output="yes, shared"
23428: ext_shared=yes
23429: case $PHP_LIBXML in
23430: shared,*)
23431: PHP_LIBXML=`echo "$PHP_LIBXML"|$SED 's/^shared,//'`
23432: ;;
23433: shared)
23434: PHP_LIBXML=yes
23435: ;;
23436: no)
23437: ext_output=no
23438: ext_shared=no
23439: ;;
23440: *)
23441: ext_output=yes
23442: ext_shared=no
23443: ;;
23444: esac
23445:
23446:
23447:
23448: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
23449: $as_echo "$ext_output" >&6; }
23450:
23451:
23452:
23453:
23454: if test -z "$PHP_LIBXML_DIR"; then
23455:
23456: php_with_libxml_dir=no
23457:
23458: { $as_echo "$as_me:${as_lineno-$LINENO}: checking libxml2 install dir" >&5
23459: $as_echo_n "checking libxml2 install dir... " >&6; }
23460:
23461: # Check whether --with-libxml-dir was given.
23462: if test "${with_libxml_dir+set}" = set; then :
23463: withval=$with_libxml_dir; PHP_LIBXML_DIR=$withval
23464: else
23465:
23466: PHP_LIBXML_DIR=no
23467:
23468:
23469: fi
23470:
23471:
23472: ext_output=$PHP_LIBXML_DIR
23473: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
23474: $as_echo "$ext_output" >&6; }
23475:
23476:
23477:
23478: fi
23479:
23480: if test "$PHP_LIBXML" != "no"; then
23481:
23482: ext_shared=no
23483:
23484:
23485: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xml2-config path" >&5
23486: $as_echo_n "checking for xml2-config path... " >&6; }
23487: if ${ac_cv_php_xml2_config_path+:} false; then :
23488: $as_echo_n "(cached) " >&6
23489: else
23490:
23491: for i in $PHP_LIBXML_DIR /usr/local /usr; do
23492: if test -x "$i/bin/xml2-config"; then
23493: ac_cv_php_xml2_config_path="$i/bin/xml2-config"
23494: break
23495: fi
23496: done
23497:
23498: fi
23499: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_php_xml2_config_path" >&5
23500: $as_echo "$ac_cv_php_xml2_config_path" >&6; }
23501:
23502: if test -x "$ac_cv_php_xml2_config_path"; then
23503: XML2_CONFIG="$ac_cv_php_xml2_config_path"
23504: libxml_full_version=`$XML2_CONFIG --version`
23505: ac_IFS=$IFS
23506: IFS="."
23507: set $libxml_full_version
23508: IFS=$ac_IFS
23509: LIBXML_VERSION=`expr $1 \* 1000000 + $2 \* 1000 + $3`
23510: if test "$LIBXML_VERSION" -ge "2006011"; then
23511: LIBXML_LIBS=`$XML2_CONFIG --libs`
23512: LIBXML_INCS=`$XML2_CONFIG --cflags`
23513:
23514: for ac_i in $LIBXML_LIBS; do
23515: case $ac_i in
23516: -pthread)
23517: if test "$ext_shared" = "yes"; then
23518: LIBXML_SHARED_LIBADD="$LIBXML_SHARED_LIBADD -pthread"
23519: else
23520:
23521:
23522: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
23523:
23524: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
23525: if test -n "$unique" && test "`eval $cmd`" = "" ; then
23526: eval "EXTRA_LDFLAGS$unique=set"
23527: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
23528: fi
23529:
23530: fi
23531: ;;
23532: -l*)
23533: ac_ii=`echo $ac_i|cut -c 3-`
23534:
23535:
23536: case $ac_ii in
23537: c|c_r|pthread*) ;;
23538: *)
23539: if test "$ext_shared" = "yes"; then
23540: LIBXML_SHARED_LIBADD="$LIBXML_SHARED_LIBADD -l$ac_ii"
23541: else
23542:
23543:
23544: case $ac_ii in
23545: c|c_r|pthread*) ;;
23546: *)
23547: LIBS="$LIBS -l$ac_ii"
23548: ;;
23549: esac
23550:
23551:
23552: fi
23553: ;;
23554: esac
23555:
23556:
23557: ;;
23558: -L*)
23559: ac_ii=`echo $ac_i|cut -c 3-`
23560:
23561: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
23562:
23563: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
23564: ai_p=$ac_ii
23565: else
23566:
23567: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
23568:
23569: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
23570: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
23571: fi
23572:
23573:
23574: if test "$ext_shared" = "yes"; then
23575: LIBXML_SHARED_LIBADD="-L$ai_p $LIBXML_SHARED_LIBADD"
23576: test -n "$ld_runpath_switch" && LIBXML_SHARED_LIBADD="$ld_runpath_switch$ai_p $LIBXML_SHARED_LIBADD"
23577: else
23578:
23579:
23580:
23581: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
23582:
23583: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
23584: if test -n "$unique" && test "`eval $cmd`" = "" ; then
23585: eval "LIBPATH$unique=set"
23586:
23587: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
23588: LDFLAGS="$LDFLAGS -L$ai_p"
23589: PHP_RPATHS="$PHP_RPATHS $ai_p"
23590:
23591: fi
23592:
23593:
23594: fi
23595:
23596: fi
23597:
23598: ;;
23599: esac
23600: done
23601:
23602:
23603: for ac_i in $LIBXML_INCS; do
23604: case $ac_i in
23605: -I*)
23606: ac_ii=`echo $ac_i|cut -c 3-`
23607:
23608: if test "$ac_ii" != "/usr/include"; then
23609:
23610: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
23611: ai_p=$ac_ii
23612: else
23613:
23614: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
23615:
23616: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
23617: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
23618: fi
23619:
23620:
23621:
23622: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
23623:
23624: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
23625: if test -n "$unique" && test "`eval $cmd`" = "" ; then
23626: eval "INCLUDEPATH$unique=set"
23627:
23628: if test ""; then
23629: INCLUDES="-I$ai_p $INCLUDES"
23630: else
23631: INCLUDES="$INCLUDES -I$ai_p"
23632: fi
23633:
23634: fi
23635:
23636: fi
23637:
23638: ;;
23639: esac
23640: done
23641:
23642:
23643: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libxml build works" >&5
23644: $as_echo_n "checking whether libxml build works... " >&6; }
23645: if ${php_cv_libxml_build_works+:} false; then :
23646: $as_echo_n "(cached) " >&6
23647: else
23648:
23649:
23650: old_LIBS=$LIBS
23651: LIBS="
23652: $LIBXML_SHARED_LIBADD
23653: $LIBS"
23654: if test "$cross_compiling" = yes; then :
23655:
23656: LIBS=$old_LIBS
23657:
23658: else
23659: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23660: /* end confdefs.h. */
23661:
23662:
23663: char xmlInitParser();
23664: int main() {
23665: xmlInitParser();
23666: return 0;
23667: }
23668:
23669: _ACEOF
23670: if ac_fn_c_try_run "$LINENO"; then :
23671:
23672: LIBS=$old_LIBS
23673:
23674: php_cv_libxml_build_works=yes
23675:
23676:
23677: else
23678:
23679: LIBS=$old_LIBS
23680:
23681: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23682: $as_echo "no" >&6; }
23683: as_fn_error $? "build test failed. Please check the config.log for details." "$LINENO" 5
23684:
23685:
23686: fi
23687: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23688: conftest.$ac_objext conftest.beam conftest.$ac_ext
23689: fi
23690:
23691:
23692:
23693: fi
23694: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_libxml_build_works" >&5
23695: $as_echo "$php_cv_libxml_build_works" >&6; }
23696: if test "$php_cv_libxml_build_works" = "yes"; then
23697:
23698: $as_echo "#define HAVE_LIBXML 1" >>confdefs.h
23699:
23700: fi
23701:
23702:
23703: $as_echo "#define HAVE_LIBXML 1" >>confdefs.h
23704:
23705:
23706: ext_builddir=ext/libxml
23707: ext_srcdir=$abs_srcdir/ext/libxml
23708:
23709: ac_extra=
23710:
23711: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
23712: PHP_LIBXML_SHARED=no
23713:
23714:
23715: case ext/libxml in
23716: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
23717: /*) ac_srcdir=`echo "ext/libxml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
23718: *) ac_srcdir="$abs_srcdir/ext/libxml/"; ac_bdir="ext/libxml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
23719: esac
23720:
23721:
23722:
23723: b_c_pre=$php_c_pre
23724: b_cxx_pre=$php_cxx_pre
23725: b_c_meta=$php_c_meta
23726: b_cxx_meta=$php_cxx_meta
23727: b_c_post=$php_c_post
23728: b_cxx_post=$php_cxx_post
23729: b_lo=$php_lo
23730:
23731:
23732: old_IFS=$IFS
23733: for ac_src in libxml.c; do
23734:
23735: IFS=.
23736: set $ac_src
23737: ac_obj=$1
23738: IFS=$old_IFS
23739:
23740: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
23741:
23742: case $ac_src in
23743: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
23744: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
23745: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
23746: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
23747: esac
23748:
23749: cat >>Makefile.objects<<EOF
23750: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
23751: $ac_comp
23752: EOF
23753: done
23754:
23755:
23756: EXT_STATIC="$EXT_STATIC libxml"
23757: if test "$ext_shared" != "nocli"; then
23758: EXT_CLI_STATIC="$EXT_CLI_STATIC libxml"
23759: fi
23760: else
23761: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
23762: PHP_LIBXML_SHARED=yes
23763:
23764: case ext/libxml in
23765: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
23766: /*) ac_srcdir=`echo "ext/libxml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
23767: *) ac_srcdir="$abs_srcdir/ext/libxml/"; ac_bdir="ext/libxml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
23768: esac
23769:
23770:
23771:
23772: b_c_pre=$shared_c_pre
23773: b_cxx_pre=$shared_cxx_pre
23774: b_c_meta=$shared_c_meta
23775: b_cxx_meta=$shared_cxx_meta
23776: b_c_post=$shared_c_post
23777: b_cxx_post=$shared_cxx_post
23778: b_lo=$shared_lo
23779:
23780:
23781: old_IFS=$IFS
23782: for ac_src in libxml.c; do
23783:
23784: IFS=.
23785: set $ac_src
23786: ac_obj=$1
23787: IFS=$old_IFS
23788:
23789: shared_objects_libxml="$shared_objects_libxml $ac_bdir$ac_obj.lo"
23790:
23791: case $ac_src in
23792: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
23793: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
23794: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
23795: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
23796: esac
23797:
23798: cat >>Makefile.objects<<EOF
23799: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
23800: $ac_comp
23801: EOF
23802: done
23803:
23804: case $host_alias in
23805: *netware*)
23806:
23807: install_modules="install-modules"
23808:
23809: case $host_alias in
23810: *aix*)
23811: suffix=so
23812: 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'
23813: ;;
23814: *netware*)
23815: suffix=nlm
23816: link_cmd='$(LIBTOOL) --mode=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)'
23817: ;;
23818: *)
23819: suffix=la
23820: link_cmd='$(LIBTOOL) --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)'
23821: ;;
23822: esac
23823:
23824: if test "x" = "xyes"; then
23825: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phplibxml.$suffix"
23826: else
23827: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phplibxml.$suffix"
23828: fi
23829:
23830: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_libxml"
23831:
23832: cat >>Makefile.objects<<EOF
23833: \$(phplibdir)/phplibxml.$suffix: $ext_builddir/phplibxml.$suffix
23834: \$(LIBTOOL) --mode=install cp $ext_builddir/phplibxml.$suffix \$(phplibdir)
23835:
23836: $ext_builddir/phplibxml.$suffix: \$(shared_objects_libxml) \$(PHPLIBXML_SHARED_DEPENDENCIES)
23837: $link_cmd
23838:
23839: EOF
23840:
23841: ;;
23842: *)
23843:
23844: install_modules="install-modules"
23845:
23846: case $host_alias in
23847: *aix*)
23848: suffix=so
23849: 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'
23850: ;;
23851: *netware*)
23852: suffix=nlm
23853: link_cmd='$(LIBTOOL) --mode=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)'
23854: ;;
23855: *)
23856: suffix=la
23857: link_cmd='$(LIBTOOL) --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)'
23858: ;;
23859: esac
23860:
23861: if test "x" = "xyes"; then
23862: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/libxml.$suffix"
23863: else
23864: PHP_MODULES="$PHP_MODULES \$(phplibdir)/libxml.$suffix"
23865: fi
23866:
23867: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_libxml"
23868:
23869: cat >>Makefile.objects<<EOF
23870: \$(phplibdir)/libxml.$suffix: $ext_builddir/libxml.$suffix
23871: \$(LIBTOOL) --mode=install cp $ext_builddir/libxml.$suffix \$(phplibdir)
23872:
23873: $ext_builddir/libxml.$suffix: \$(shared_objects_libxml) \$(LIBXML_SHARED_DEPENDENCIES)
23874: $link_cmd
23875:
23876: EOF
23877:
23878: ;;
23879: esac
23880:
23881: cat >>confdefs.h <<_ACEOF
23882: #define COMPILE_DL_LIBXML 1
23883: _ACEOF
23884:
23885: fi
23886: fi
23887:
23888: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
23889: PHP_LIBXML_SHARED=no
23890:
23891:
23892: case ext/libxml in
23893: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
23894: /*) ac_srcdir=`echo "ext/libxml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
23895: *) ac_srcdir="$abs_srcdir/ext/libxml/"; ac_bdir="ext/libxml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
23896: esac
23897:
23898:
23899:
23900: b_c_pre=$php_c_pre
23901: b_cxx_pre=$php_cxx_pre
23902: b_c_meta=$php_c_meta
23903: b_cxx_meta=$php_cxx_meta
23904: b_c_post=$php_c_post
23905: b_cxx_post=$php_cxx_post
23906: b_lo=$php_lo
23907:
23908:
23909: old_IFS=$IFS
23910: for ac_src in libxml.c; do
23911:
23912: IFS=.
23913: set $ac_src
23914: ac_obj=$1
23915: IFS=$old_IFS
23916:
23917: PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
23918:
23919: case $ac_src in
23920: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
23921: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
23922: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
23923: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
23924: esac
23925:
23926: cat >>Makefile.objects<<EOF
23927: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
23928: $ac_comp
23929: EOF
23930: done
23931:
23932:
23933:
23934:
23935: case ext/libxml in
23936: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
23937: /*) ac_srcdir=`echo "ext/libxml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
23938: *) ac_srcdir="$abs_srcdir/ext/libxml/"; ac_bdir="ext/libxml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
23939: esac
23940:
23941:
23942:
23943: b_c_pre=$php_c_pre
23944: b_cxx_pre=$php_cxx_pre
23945: b_c_meta=$php_c_meta
23946: b_cxx_meta=$php_cxx_meta
23947: b_c_post=$php_c_post
23948: b_cxx_post=$php_cxx_post
23949: b_lo=$php_lo
23950:
23951:
23952: old_IFS=$IFS
23953: for ac_src in libxml.c; do
23954:
23955: IFS=.
23956: set $ac_src
23957: ac_obj=$1
23958: IFS=$old_IFS
23959:
23960: PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo"
23961:
23962: case $ac_src in
23963: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
23964: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
23965: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
23966: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
23967: esac
23968:
23969: cat >>Makefile.objects<<EOF
23970: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
23971: $ac_comp
23972: EOF
23973: done
23974:
23975:
23976:
23977:
23978: case ext/libxml in
23979: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
23980: /*) ac_srcdir=`echo "ext/libxml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
23981: *) ac_srcdir="$abs_srcdir/ext/libxml/"; ac_bdir="ext/libxml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
23982: esac
23983:
23984:
23985:
23986: b_c_pre=$php_c_pre
23987: b_cxx_pre=$php_cxx_pre
23988: b_c_meta=$php_c_meta
23989: b_cxx_meta=$php_cxx_meta
23990: b_c_post=$php_c_post
23991: b_cxx_post=$php_cxx_post
23992: b_lo=$php_lo
23993:
23994:
23995: old_IFS=$IFS
23996: for ac_src in libxml.c; do
23997:
23998: IFS=.
23999: set $ac_src
24000: ac_obj=$1
24001: IFS=$old_IFS
24002:
24003: PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo"
24004:
24005: case $ac_src in
24006: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
24007: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
24008: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
24009: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
24010: esac
24011:
24012: cat >>Makefile.objects<<EOF
24013: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
24014: $ac_comp
24015: EOF
24016: done
24017:
24018:
24019: EXT_CLI_STATIC="$EXT_CLI_STATIC libxml"
24020: fi
24021:
24022:
24023: BUILD_DIR="$BUILD_DIR $ext_builddir"
24024:
24025:
24026:
24027: if test "$ext_builddir" = "."; then
24028: PHP_PECL_EXTENSION=libxml
24029:
24030: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
24031:
24032: fi
24033:
24034:
24035:
24036: for header_file in ext/libxml/php_libxml.h; do
24037:
24038:
24039: unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
24040:
24041: cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
24042: if test -n "$unique" && test "`eval $cmd`" = "" ; then
24043: eval "INSTALLHEADERS$unique=set"
24044:
24045: INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
24046:
24047: fi
24048:
24049: done
24050:
24051:
24052:
24053: else
24054: as_fn_error $? "libxml2 version 2.6.11 or greater required." "$LINENO" 5
24055: fi
24056: else
24057: as_fn_error $? "xml2-config not found. Please check your libxml2 installation." "$LINENO" 5
24058:
24059: fi
24060:
24061: fi
24062:
24063:
24064:
24065: php_with_openssl=no
24066:
24067: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL support" >&5
24068: $as_echo_n "checking for OpenSSL support... " >&6; }
24069:
24070: # Check whether --with-openssl was given.
24071: if test "${with_openssl+set}" = set; then :
24072: withval=$with_openssl; PHP_OPENSSL=$withval
24073: else
24074:
24075: PHP_OPENSSL=no
24076: test "$PHP_ENABLE_ALL" && PHP_OPENSSL=$PHP_ENABLE_ALL
24077:
24078: fi
24079:
24080:
24081:
24082: ext_output="yes, shared"
24083: ext_shared=yes
24084: case $PHP_OPENSSL in
24085: shared,*)
24086: PHP_OPENSSL=`echo "$PHP_OPENSSL"|$SED 's/^shared,//'`
24087: ;;
24088: shared)
24089: PHP_OPENSSL=yes
24090: ;;
24091: no)
24092: ext_output=no
24093: ext_shared=no
24094: ;;
24095: *)
24096: ext_output=yes
24097: ext_shared=no
24098: ;;
24099: esac
24100:
24101:
24102:
24103: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
24104: $as_echo "$ext_output" >&6; }
24105:
24106:
24107:
24108:
24109:
24110: php_with_kerberos=no
24111:
24112: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kerberos support" >&5
24113: $as_echo_n "checking for Kerberos support... " >&6; }
24114:
24115: # Check whether --with-kerberos was given.
24116: if test "${with_kerberos+set}" = set; then :
24117: withval=$with_kerberos; PHP_KERBEROS=$withval
24118: else
24119:
24120: PHP_KERBEROS=no
24121:
24122:
24123: fi
24124:
24125:
24126: ext_output=$PHP_KERBEROS
24127: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
24128: $as_echo "$ext_output" >&6; }
24129:
24130:
24131:
24132:
24133: if test "$PHP_OPENSSL" != "no"; then
24134:
24135: ext_builddir=ext/openssl
24136: ext_srcdir=$abs_srcdir/ext/openssl
24137:
24138: ac_extra=
24139:
24140: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
24141: PHP_OPENSSL_SHARED=no
24142:
24143:
24144: case ext/openssl in
24145: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
24146: /*) ac_srcdir=`echo "ext/openssl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
24147: *) ac_srcdir="$abs_srcdir/ext/openssl/"; ac_bdir="ext/openssl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
24148: esac
24149:
24150:
24151:
24152: b_c_pre=$php_c_pre
24153: b_cxx_pre=$php_cxx_pre
24154: b_c_meta=$php_c_meta
24155: b_cxx_meta=$php_cxx_meta
24156: b_c_post=$php_c_post
24157: b_cxx_post=$php_cxx_post
24158: b_lo=$php_lo
24159:
24160:
24161: old_IFS=$IFS
24162: for ac_src in openssl.c xp_ssl.c; do
24163:
24164: IFS=.
24165: set $ac_src
24166: ac_obj=$1
24167: IFS=$old_IFS
24168:
24169: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
24170:
24171: case $ac_src in
24172: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
24173: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
24174: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
24175: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
24176: esac
24177:
24178: cat >>Makefile.objects<<EOF
24179: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
24180: $ac_comp
24181: EOF
24182: done
24183:
24184:
24185: EXT_STATIC="$EXT_STATIC openssl"
24186: if test "$ext_shared" != "nocli"; then
24187: EXT_CLI_STATIC="$EXT_CLI_STATIC openssl"
24188: fi
24189: else
24190: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
24191: PHP_OPENSSL_SHARED=yes
24192:
24193: case ext/openssl in
24194: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
24195: /*) ac_srcdir=`echo "ext/openssl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
24196: *) ac_srcdir="$abs_srcdir/ext/openssl/"; ac_bdir="ext/openssl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
24197: esac
24198:
24199:
24200:
24201: b_c_pre=$shared_c_pre
24202: b_cxx_pre=$shared_cxx_pre
24203: b_c_meta=$shared_c_meta
24204: b_cxx_meta=$shared_cxx_meta
24205: b_c_post=$shared_c_post
24206: b_cxx_post=$shared_cxx_post
24207: b_lo=$shared_lo
24208:
24209:
24210: old_IFS=$IFS
24211: for ac_src in openssl.c xp_ssl.c; do
24212:
24213: IFS=.
24214: set $ac_src
24215: ac_obj=$1
24216: IFS=$old_IFS
24217:
24218: shared_objects_openssl="$shared_objects_openssl $ac_bdir$ac_obj.lo"
24219:
24220: case $ac_src in
24221: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
24222: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
24223: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
24224: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
24225: esac
24226:
24227: cat >>Makefile.objects<<EOF
24228: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
24229: $ac_comp
24230: EOF
24231: done
24232:
24233: case $host_alias in
24234: *netware*)
24235:
24236: install_modules="install-modules"
24237:
24238: case $host_alias in
24239: *aix*)
24240: suffix=so
24241: 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'
24242: ;;
24243: *netware*)
24244: suffix=nlm
24245: link_cmd='$(LIBTOOL) --mode=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)'
24246: ;;
24247: *)
24248: suffix=la
24249: link_cmd='$(LIBTOOL) --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)'
24250: ;;
24251: esac
24252:
24253: if test "x" = "xyes"; then
24254: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpopenssl.$suffix"
24255: else
24256: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpopenssl.$suffix"
24257: fi
24258:
24259: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_openssl"
24260:
24261: cat >>Makefile.objects<<EOF
24262: \$(phplibdir)/phpopenssl.$suffix: $ext_builddir/phpopenssl.$suffix
24263: \$(LIBTOOL) --mode=install cp $ext_builddir/phpopenssl.$suffix \$(phplibdir)
24264:
24265: $ext_builddir/phpopenssl.$suffix: \$(shared_objects_openssl) \$(PHPOPENSSL_SHARED_DEPENDENCIES)
24266: $link_cmd
24267:
24268: EOF
24269:
24270: ;;
24271: *)
24272:
24273: install_modules="install-modules"
24274:
24275: case $host_alias in
24276: *aix*)
24277: suffix=so
24278: 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'
24279: ;;
24280: *netware*)
24281: suffix=nlm
24282: link_cmd='$(LIBTOOL) --mode=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)'
24283: ;;
24284: *)
24285: suffix=la
24286: link_cmd='$(LIBTOOL) --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)'
24287: ;;
24288: esac
24289:
24290: if test "x" = "xyes"; then
24291: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/openssl.$suffix"
24292: else
24293: PHP_MODULES="$PHP_MODULES \$(phplibdir)/openssl.$suffix"
24294: fi
24295:
24296: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_openssl"
24297:
24298: cat >>Makefile.objects<<EOF
24299: \$(phplibdir)/openssl.$suffix: $ext_builddir/openssl.$suffix
24300: \$(LIBTOOL) --mode=install cp $ext_builddir/openssl.$suffix \$(phplibdir)
24301:
24302: $ext_builddir/openssl.$suffix: \$(shared_objects_openssl) \$(OPENSSL_SHARED_DEPENDENCIES)
24303: $link_cmd
24304:
24305: EOF
24306:
24307: ;;
24308: esac
24309:
24310: cat >>confdefs.h <<_ACEOF
24311: #define COMPILE_DL_OPENSSL 1
24312: _ACEOF
24313:
24314: fi
24315: fi
24316:
24317: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
24318: PHP_OPENSSL_SHARED=no
24319:
24320:
24321: case ext/openssl in
24322: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
24323: /*) ac_srcdir=`echo "ext/openssl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
24324: *) ac_srcdir="$abs_srcdir/ext/openssl/"; ac_bdir="ext/openssl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
24325: esac
24326:
24327:
24328:
24329: b_c_pre=$php_c_pre
24330: b_cxx_pre=$php_cxx_pre
24331: b_c_meta=$php_c_meta
24332: b_cxx_meta=$php_cxx_meta
24333: b_c_post=$php_c_post
24334: b_cxx_post=$php_cxx_post
24335: b_lo=$php_lo
24336:
24337:
24338: old_IFS=$IFS
24339: for ac_src in openssl.c xp_ssl.c; do
24340:
24341: IFS=.
24342: set $ac_src
24343: ac_obj=$1
24344: IFS=$old_IFS
24345:
24346: PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
24347:
24348: case $ac_src in
24349: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
24350: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
24351: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
24352: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
24353: esac
24354:
24355: cat >>Makefile.objects<<EOF
24356: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
24357: $ac_comp
24358: EOF
24359: done
24360:
24361:
24362:
24363:
24364: case ext/openssl in
24365: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
24366: /*) ac_srcdir=`echo "ext/openssl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
24367: *) ac_srcdir="$abs_srcdir/ext/openssl/"; ac_bdir="ext/openssl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
24368: esac
24369:
24370:
24371:
24372: b_c_pre=$php_c_pre
24373: b_cxx_pre=$php_cxx_pre
24374: b_c_meta=$php_c_meta
24375: b_cxx_meta=$php_cxx_meta
24376: b_c_post=$php_c_post
24377: b_cxx_post=$php_cxx_post
24378: b_lo=$php_lo
24379:
24380:
24381: old_IFS=$IFS
24382: for ac_src in openssl.c xp_ssl.c; do
24383:
24384: IFS=.
24385: set $ac_src
24386: ac_obj=$1
24387: IFS=$old_IFS
24388:
24389: PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo"
24390:
24391: case $ac_src in
24392: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
24393: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
24394: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
24395: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
24396: esac
24397:
24398: cat >>Makefile.objects<<EOF
24399: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
24400: $ac_comp
24401: EOF
24402: done
24403:
24404:
24405:
24406:
24407: case ext/openssl in
24408: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
24409: /*) ac_srcdir=`echo "ext/openssl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
24410: *) ac_srcdir="$abs_srcdir/ext/openssl/"; ac_bdir="ext/openssl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
24411: esac
24412:
24413:
24414:
24415: b_c_pre=$php_c_pre
24416: b_cxx_pre=$php_cxx_pre
24417: b_c_meta=$php_c_meta
24418: b_cxx_meta=$php_cxx_meta
24419: b_c_post=$php_c_post
24420: b_cxx_post=$php_cxx_post
24421: b_lo=$php_lo
24422:
24423:
24424: old_IFS=$IFS
24425: for ac_src in openssl.c xp_ssl.c; do
24426:
24427: IFS=.
24428: set $ac_src
24429: ac_obj=$1
24430: IFS=$old_IFS
24431:
24432: PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo"
24433:
24434: case $ac_src in
24435: *.c) ac_comp="$b_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: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
24438: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
24439: esac
24440:
24441: cat >>Makefile.objects<<EOF
24442: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
24443: $ac_comp
24444: EOF
24445: done
24446:
24447:
24448: EXT_CLI_STATIC="$EXT_CLI_STATIC openssl"
24449: fi
24450:
24451:
24452: BUILD_DIR="$BUILD_DIR $ext_builddir"
24453:
24454:
24455:
24456: if test "$ext_builddir" = "."; then
24457: PHP_PECL_EXTENSION=openssl
24458:
24459: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
24460:
24461: fi
24462:
24463:
24464: PHP_VAR_SUBST="$PHP_VAR_SUBST OPENSSL_SHARED_LIBADD"
24465:
24466:
24467: if test "$PHP_KERBEROS" != "no"; then
24468:
24469: found_kerberos=no
24470: unset KERBEROS_CFLAGS
24471: unset KERBEROS_LIBS
24472:
24473: if test -z "$KRB5_CONFIG"; then
24474: # Extract the first word of "krb5-config", so it can be a program name with args.
24475: set dummy krb5-config; ac_word=$2
24476: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24477: $as_echo_n "checking for $ac_word... " >&6; }
24478: if ${ac_cv_path_KRB5_CONFIG+:} false; then :
24479: $as_echo_n "(cached) " >&6
24480: else
24481: case $KRB5_CONFIG in
24482: [\\/]* | ?:[\\/]*)
24483: ac_cv_path_KRB5_CONFIG="$KRB5_CONFIG" # Let the user override the test with a path.
24484: ;;
24485: *)
24486: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24487: as_dummy="$PATH:/usr/kerberos/bin:/usr/local/bin"
24488: for as_dir in $as_dummy
24489: do
24490: IFS=$as_save_IFS
24491: test -z "$as_dir" && as_dir=.
24492: for ac_exec_ext in '' $ac_executable_extensions; do
24493: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24494: ac_cv_path_KRB5_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24495: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24496: break 2
24497: fi
24498: done
24499: done
24500: IFS=$as_save_IFS
24501:
24502: test -z "$ac_cv_path_KRB5_CONFIG" && ac_cv_path_KRB5_CONFIG="no"
24503: ;;
24504: esac
24505: fi
24506: KRB5_CONFIG=$ac_cv_path_KRB5_CONFIG
24507: if test -n "$KRB5_CONFIG"; then
24508: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5_CONFIG" >&5
24509: $as_echo "$KRB5_CONFIG" >&6; }
24510: else
24511: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24512: $as_echo "no" >&6; }
24513: fi
24514:
24515:
24516: fi
24517:
24518: if test "$PHP_KERBEROS" = "yes" && test -x "$KRB5_CONFIG"; then
24519: KERBEROS_LIBS=`$KRB5_CONFIG --libs gssapi`
24520: KERBEROS_CFLAGS=`$KRB5_CONFIG --cflags gssapi`
24521:
24522: if test -n "$KERBEROS_LIBS"; then
24523: found_kerberos=yes
24524:
24525: for ac_i in $KERBEROS_LIBS; do
24526: case $ac_i in
24527: -pthread)
24528: if test "$ext_shared" = "yes"; then
24529: OPENSSL_SHARED_LIBADD="$OPENSSL_SHARED_LIBADD -pthread"
24530: else
24531:
24532:
24533: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
24534:
24535: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
24536: if test -n "$unique" && test "`eval $cmd`" = "" ; then
24537: eval "EXTRA_LDFLAGS$unique=set"
24538: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
24539: fi
24540:
24541: fi
24542: ;;
24543: -l*)
24544: ac_ii=`echo $ac_i|cut -c 3-`
24545:
24546:
24547: case $ac_ii in
24548: c|c_r|pthread*) ;;
24549: *)
24550: if test "$ext_shared" = "yes"; then
24551: OPENSSL_SHARED_LIBADD="$OPENSSL_SHARED_LIBADD -l$ac_ii"
24552: else
24553:
24554:
24555: case $ac_ii in
24556: c|c_r|pthread*) ;;
24557: *)
24558: LIBS="$LIBS -l$ac_ii"
24559: ;;
24560: esac
24561:
24562:
24563: fi
24564: ;;
24565: esac
24566:
24567:
24568: ;;
24569: -L*)
24570: ac_ii=`echo $ac_i|cut -c 3-`
24571:
24572: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
24573:
24574: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
24575: ai_p=$ac_ii
24576: else
24577:
24578: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
24579:
24580: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
24581: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
24582: fi
24583:
24584:
24585: if test "$ext_shared" = "yes"; then
24586: OPENSSL_SHARED_LIBADD="-L$ai_p $OPENSSL_SHARED_LIBADD"
24587: test -n "$ld_runpath_switch" && OPENSSL_SHARED_LIBADD="$ld_runpath_switch$ai_p $OPENSSL_SHARED_LIBADD"
24588: else
24589:
24590:
24591:
24592: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
24593:
24594: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
24595: if test -n "$unique" && test "`eval $cmd`" = "" ; then
24596: eval "LIBPATH$unique=set"
24597:
24598: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
24599: LDFLAGS="$LDFLAGS -L$ai_p"
24600: PHP_RPATHS="$PHP_RPATHS $ai_p"
24601:
24602: fi
24603:
24604:
24605: fi
24606:
24607: fi
24608:
24609: ;;
24610: esac
24611: done
24612:
24613:
24614: for ac_i in $KERBEROS_CFLAGS; do
24615: case $ac_i in
24616: -I*)
24617: ac_ii=`echo $ac_i|cut -c 3-`
24618:
24619: if test "$ac_ii" != "/usr/include"; then
24620:
24621: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
24622: ai_p=$ac_ii
24623: else
24624:
24625: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
24626:
24627: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
24628: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
24629: fi
24630:
24631:
24632:
24633: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
24634:
24635: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
24636: if test -n "$unique" && test "`eval $cmd`" = "" ; then
24637: eval "INCLUDEPATH$unique=set"
24638:
24639: if test ""; then
24640: INCLUDES="-I$ai_p $INCLUDES"
24641: else
24642: INCLUDES="$INCLUDES -I$ai_p"
24643: fi
24644:
24645: fi
24646:
24647: fi
24648:
24649: ;;
24650: esac
24651: done
24652:
24653: fi
24654: fi
24655:
24656: if test "$found_kerberos" = "no"; then
24657:
24658: if test "$PHP_KERBEROS" = "yes"; then
24659: PHP_KERBEROS="/usr/kerberos /usr/local /usr"
24660: fi
24661:
24662: for i in $PHP_KERBEROS; do
24663: if test -f $i/$PHP_LIBDIR/libkrb5.a || test -f $i/$PHP_LIBDIR/libkrb5.$SHLIB_SUFFIX_NAME; then
24664: PHP_KERBEROS_DIR=$i
24665: break
24666: fi
24667: done
24668:
24669: if test "$PHP_KERBEROS_DIR"; then
24670: found_kerberos=yes
24671:
24672: if test "$PHP_KERBEROS_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_KERBEROS_DIR/$PHP_LIBDIR" != "/usr/lib"; then
24673:
24674: if test -z "$PHP_KERBEROS_DIR/$PHP_LIBDIR" || echo "$PHP_KERBEROS_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
24675: ai_p=$PHP_KERBEROS_DIR/$PHP_LIBDIR
24676: else
24677:
24678: ep_dir="`echo $PHP_KERBEROS_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
24679:
24680: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
24681: ai_p="$ep_realdir/`basename \"$PHP_KERBEROS_DIR/$PHP_LIBDIR\"`"
24682: fi
24683:
24684:
24685: if test "$ext_shared" = "yes"; then
24686: OPENSSL_SHARED_LIBADD="-L$ai_p $OPENSSL_SHARED_LIBADD"
24687: test -n "$ld_runpath_switch" && OPENSSL_SHARED_LIBADD="$ld_runpath_switch$ai_p $OPENSSL_SHARED_LIBADD"
24688: else
24689:
24690:
24691:
24692: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
24693:
24694: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
24695: if test -n "$unique" && test "`eval $cmd`" = "" ; then
24696: eval "LIBPATH$unique=set"
24697:
24698: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
24699: LDFLAGS="$LDFLAGS -L$ai_p"
24700: PHP_RPATHS="$PHP_RPATHS $ai_p"
24701:
24702: fi
24703:
24704:
24705: fi
24706:
24707: fi
24708:
24709:
24710:
24711: case gssapi_krb5 in
24712: c|c_r|pthread*) ;;
24713: *)
24714: if test "$ext_shared" = "yes"; then
24715: OPENSSL_SHARED_LIBADD="$OPENSSL_SHARED_LIBADD -lgssapi_krb5"
24716: else
24717:
24718:
24719: case gssapi_krb5 in
24720: c|c_r|pthread*) ;;
24721: *)
24722: LIBS="$LIBS -lgssapi_krb5"
24723: ;;
24724: esac
24725:
24726:
24727: fi
24728: ;;
24729: esac
24730:
24731:
24732:
24733:
24734: case krb5 in
24735: c|c_r|pthread*) ;;
24736: *)
24737: if test "$ext_shared" = "yes"; then
24738: OPENSSL_SHARED_LIBADD="$OPENSSL_SHARED_LIBADD -lkrb5"
24739: else
24740:
24741:
24742: case krb5 in
24743: c|c_r|pthread*) ;;
24744: *)
24745: LIBS="$LIBS -lkrb5"
24746: ;;
24747: esac
24748:
24749:
24750: fi
24751: ;;
24752: esac
24753:
24754:
24755:
24756:
24757: case k5crypto in
24758: c|c_r|pthread*) ;;
24759: *)
24760: if test "$ext_shared" = "yes"; then
24761: OPENSSL_SHARED_LIBADD="$OPENSSL_SHARED_LIBADD -lk5crypto"
24762: else
24763:
24764:
24765: case k5crypto in
24766: c|c_r|pthread*) ;;
24767: *)
24768: LIBS="$LIBS -lk5crypto"
24769: ;;
24770: esac
24771:
24772:
24773: fi
24774: ;;
24775: esac
24776:
24777:
24778:
24779:
24780: case com_err in
24781: c|c_r|pthread*) ;;
24782: *)
24783: if test "$ext_shared" = "yes"; then
24784: OPENSSL_SHARED_LIBADD="$OPENSSL_SHARED_LIBADD -lcom_err"
24785: else
24786:
24787:
24788: case com_err in
24789: c|c_r|pthread*) ;;
24790: *)
24791: LIBS="$LIBS -lcom_err"
24792: ;;
24793: esac
24794:
24795:
24796: fi
24797: ;;
24798: esac
24799:
24800:
24801:
24802: if test "$PHP_KERBEROS_DIR/include" != "/usr/include"; then
24803:
24804: if test -z "$PHP_KERBEROS_DIR/include" || echo "$PHP_KERBEROS_DIR/include" | grep '^/' >/dev/null ; then
24805: ai_p=$PHP_KERBEROS_DIR/include
24806: else
24807:
24808: ep_dir="`echo $PHP_KERBEROS_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
24809:
24810: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
24811: ai_p="$ep_realdir/`basename \"$PHP_KERBEROS_DIR/include\"`"
24812: fi
24813:
24814:
24815:
24816: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
24817:
24818: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
24819: if test -n "$unique" && test "`eval $cmd`" = "" ; then
24820: eval "INCLUDEPATH$unique=set"
24821:
24822: if test ""; then
24823: INCLUDES="-I$ai_p $INCLUDES"
24824: else
24825: INCLUDES="$INCLUDES -I$ai_p"
24826: fi
24827:
24828: fi
24829:
24830: fi
24831:
24832: fi
24833: fi
24834:
24835: if test "$found_kerberos" = "yes"; then
24836: :
24837:
24838: fi
24839:
24840: fi
24841:
24842: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSA_get_default_method in -lssl" >&5
24843: $as_echo_n "checking for DSA_get_default_method in -lssl... " >&6; }
24844: if ${ac_cv_lib_ssl_DSA_get_default_method+:} false; then :
24845: $as_echo_n "(cached) " >&6
24846: else
24847: ac_check_lib_save_LIBS=$LIBS
24848: LIBS="-lssl $LIBS"
24849: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24850: /* end confdefs.h. */
24851:
24852: /* Override any GCC internal prototype to avoid an error.
24853: Use char because int might match the return type of a GCC
24854: builtin and then its argument prototype would still apply. */
24855: #ifdef __cplusplus
24856: extern "C"
24857: #endif
24858: char DSA_get_default_method ();
24859: int
24860: main ()
24861: {
24862: return DSA_get_default_method ();
24863: ;
24864: return 0;
24865: }
24866: _ACEOF
24867: if ac_fn_c_try_link "$LINENO"; then :
24868: ac_cv_lib_ssl_DSA_get_default_method=yes
24869: else
24870: ac_cv_lib_ssl_DSA_get_default_method=no
24871: fi
24872: rm -f core conftest.err conftest.$ac_objext \
24873: conftest$ac_exeext conftest.$ac_ext
24874: LIBS=$ac_check_lib_save_LIBS
24875: fi
24876: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_DSA_get_default_method" >&5
24877: $as_echo "$ac_cv_lib_ssl_DSA_get_default_method" >&6; }
24878: if test "x$ac_cv_lib_ssl_DSA_get_default_method" = xyes; then :
24879:
24880: $as_echo "#define HAVE_DSA_DEFAULT_METHOD 1" >>confdefs.h
24881:
24882: fi
24883:
24884: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X509_free in -lcrypto" >&5
24885: $as_echo_n "checking for X509_free in -lcrypto... " >&6; }
24886: if ${ac_cv_lib_crypto_X509_free+:} false; then :
24887: $as_echo_n "(cached) " >&6
24888: else
24889: ac_check_lib_save_LIBS=$LIBS
24890: LIBS="-lcrypto $LIBS"
24891: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24892: /* end confdefs.h. */
24893:
24894: /* Override any GCC internal prototype to avoid an error.
24895: Use char because int might match the return type of a GCC
24896: builtin and then its argument prototype would still apply. */
24897: #ifdef __cplusplus
24898: extern "C"
24899: #endif
24900: char X509_free ();
24901: int
24902: main ()
24903: {
24904: return X509_free ();
24905: ;
24906: return 0;
24907: }
24908: _ACEOF
24909: if ac_fn_c_try_link "$LINENO"; then :
24910: ac_cv_lib_crypto_X509_free=yes
24911: else
24912: ac_cv_lib_crypto_X509_free=no
24913: fi
24914: rm -f core conftest.err conftest.$ac_objext \
24915: conftest$ac_exeext conftest.$ac_ext
24916: LIBS=$ac_check_lib_save_LIBS
24917: fi
24918: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_X509_free" >&5
24919: $as_echo "$ac_cv_lib_crypto_X509_free" >&6; }
24920: if test "x$ac_cv_lib_crypto_X509_free" = xyes; then :
24921:
24922: $as_echo "#define HAVE_DSA_DEFAULT_METHOD 1" >>confdefs.h
24923:
24924: fi
24925:
24926:
24927:
24928: found_openssl=no
24929: unset OPENSSL_INCDIR
24930: unset OPENSSL_LIBDIR
24931:
24932: test -z "$PHP_OPENSSL" && PHP_OPENSSL=no
24933: test -z "$PHP_IMAP_SSL" && PHP_IMAP_SSL=no
24934:
24935: if test -n "$PHP_OPENSSL" && test "$PHP_OPENSSL" != "no"; then
24936: PHP_OPENSSL_DIR=$PHP_OPENSSL
24937: elif test -n "$PHP_IMAP_SSL" && test "$PHP_IMAP_SSL" != "no"; then
24938: PHP_OPENSSL_DIR=$PHP_IMAP_SSL
24939: fi
24940:
24941: if test -z "$PKG_CONFIG"; then
24942: # Extract the first word of "pkg-config", so it can be a program name with args.
24943: set dummy pkg-config; ac_word=$2
24944: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24945: $as_echo_n "checking for $ac_word... " >&6; }
24946: if ${ac_cv_path_PKG_CONFIG+:} false; then :
24947: $as_echo_n "(cached) " >&6
24948: else
24949: case $PKG_CONFIG in
24950: [\\/]* | ?:[\\/]*)
24951: ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24952: ;;
24953: *)
24954: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24955: for as_dir in $PATH
24956: do
24957: IFS=$as_save_IFS
24958: test -z "$as_dir" && as_dir=.
24959: for ac_exec_ext in '' $ac_executable_extensions; do
24960: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24961: ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24962: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24963: break 2
24964: fi
24965: done
24966: done
24967: IFS=$as_save_IFS
24968:
24969: test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24970: ;;
24971: esac
24972: fi
24973: PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24974: if test -n "$PKG_CONFIG"; then
24975: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
24976: $as_echo "$PKG_CONFIG" >&6; }
24977: else
24978: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24979: $as_echo "no" >&6; }
24980: fi
24981:
24982:
24983: fi
24984:
24985: if test "$PHP_OPENSSL_DIR" = "yes" && test -x "$PKG_CONFIG" && $PKG_CONFIG --exists openssl; then
24986: if $PKG_CONFIG --atleast-version=0.9.6 openssl; then
24987: found_openssl=yes
24988: OPENSSL_LIBS=`$PKG_CONFIG --libs openssl`
24989: OPENSSL_INCS=`$PKG_CONFIG --cflags-only-I openssl`
24990: OPENSSL_INCDIR=`$PKG_CONFIG --variable=includedir openssl`
24991: else
24992: as_fn_error $? "OpenSSL version 0.9.6 or greater required." "$LINENO" 5
24993: fi
24994:
24995: if test -n "$OPENSSL_LIBS" && test -n "$OPENSSL_INCS"; then
24996:
24997: for ac_i in $OPENSSL_LIBS; do
24998: case $ac_i in
24999: -pthread)
25000: if test "$ext_shared" = "yes"; then
25001: OPENSSL_SHARED_LIBADD="$OPENSSL_SHARED_LIBADD -pthread"
25002: else
25003:
25004:
25005: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
25006:
25007: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
25008: if test -n "$unique" && test "`eval $cmd`" = "" ; then
25009: eval "EXTRA_LDFLAGS$unique=set"
25010: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
25011: fi
25012:
25013: fi
25014: ;;
25015: -l*)
25016: ac_ii=`echo $ac_i|cut -c 3-`
25017:
25018:
25019: case $ac_ii in
25020: c|c_r|pthread*) ;;
25021: *)
25022: if test "$ext_shared" = "yes"; then
25023: OPENSSL_SHARED_LIBADD="$OPENSSL_SHARED_LIBADD -l$ac_ii"
25024: else
25025:
25026:
25027: case $ac_ii in
25028: c|c_r|pthread*) ;;
25029: *)
25030: LIBS="$LIBS -l$ac_ii"
25031: ;;
25032: esac
25033:
25034:
25035: fi
25036: ;;
25037: esac
25038:
25039:
25040: ;;
25041: -L*)
25042: ac_ii=`echo $ac_i|cut -c 3-`
25043:
25044: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
25045:
25046: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
25047: ai_p=$ac_ii
25048: else
25049:
25050: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
25051:
25052: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
25053: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
25054: fi
25055:
25056:
25057: if test "$ext_shared" = "yes"; then
25058: OPENSSL_SHARED_LIBADD="-L$ai_p $OPENSSL_SHARED_LIBADD"
25059: test -n "$ld_runpath_switch" && OPENSSL_SHARED_LIBADD="$ld_runpath_switch$ai_p $OPENSSL_SHARED_LIBADD"
25060: else
25061:
25062:
25063:
25064: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
25065:
25066: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
25067: if test -n "$unique" && test "`eval $cmd`" = "" ; then
25068: eval "LIBPATH$unique=set"
25069:
25070: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
25071: LDFLAGS="$LDFLAGS -L$ai_p"
25072: PHP_RPATHS="$PHP_RPATHS $ai_p"
25073:
25074: fi
25075:
25076:
25077: fi
25078:
25079: fi
25080:
25081: ;;
25082: esac
25083: done
25084:
25085:
25086: for ac_i in $OPENSSL_INCS; do
25087: case $ac_i in
25088: -I*)
25089: ac_ii=`echo $ac_i|cut -c 3-`
25090:
25091: if test "$ac_ii" != "/usr/include"; then
25092:
25093: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
25094: ai_p=$ac_ii
25095: else
25096:
25097: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
25098:
25099: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
25100: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
25101: fi
25102:
25103:
25104:
25105: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
25106:
25107: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
25108: if test -n "$unique" && test "`eval $cmd`" = "" ; then
25109: eval "INCLUDEPATH$unique=set"
25110:
25111: if test ""; then
25112: INCLUDES="-I$ai_p $INCLUDES"
25113: else
25114: INCLUDES="$INCLUDES -I$ai_p"
25115: fi
25116:
25117: fi
25118:
25119: fi
25120:
25121: ;;
25122: esac
25123: done
25124:
25125: fi
25126: fi
25127:
25128: if test "$found_openssl" = "no"; then
25129:
25130: if test "$PHP_OPENSSL_DIR" = "yes"; then
25131: PHP_OPENSSL_DIR="/usr/local/ssl /usr/local /usr /usr/local/openssl"
25132: fi
25133:
25134: for i in $PHP_OPENSSL_DIR; do
25135: if test -r $i/include/openssl/evp.h; then
25136: OPENSSL_INCDIR=$i/include
25137: fi
25138: if test -r $i/$PHP_LIBDIR/libssl.a -o -r $i/$PHP_LIBDIR/libssl.$SHLIB_SUFFIX_NAME; then
25139: OPENSSL_LIBDIR=$i/$PHP_LIBDIR
25140: fi
25141: test -n "$OPENSSL_INCDIR" && test -n "$OPENSSL_LIBDIR" && break
25142: done
25143:
25144: if test -z "$OPENSSL_INCDIR"; then
25145: as_fn_error $? "Cannot find OpenSSL's <evp.h>" "$LINENO" 5
25146: fi
25147:
25148: if test -z "$OPENSSL_LIBDIR"; then
25149: as_fn_error $? "Cannot find OpenSSL's libraries" "$LINENO" 5
25150: fi
25151:
25152: old_CPPFLAGS=$CPPFLAGS
25153: CPPFLAGS=-I$OPENSSL_INCDIR
25154: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version" >&5
25155: $as_echo_n "checking for OpenSSL version... " >&6; }
25156: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25157: /* end confdefs.h. */
25158:
25159: #include <openssl/opensslv.h>
25160: #if OPENSSL_VERSION_NUMBER >= 0x0090600fL
25161: yes
25162: #endif
25163:
25164: _ACEOF
25165: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25166: $EGREP "yes" >/dev/null 2>&1; then :
25167:
25168: { $as_echo "$as_me:${as_lineno-$LINENO}: result: >= 0.9.6" >&5
25169: $as_echo ">= 0.9.6" >&6; }
25170:
25171: else
25172:
25173: as_fn_error $? "OpenSSL version 0.9.6 or greater required." "$LINENO" 5
25174:
25175: fi
25176: rm -f conftest*
25177:
25178: CPPFLAGS=$old_CPPFLAGS
25179:
25180:
25181: if test "$OPENSSL_INCDIR" != "/usr/include"; then
25182:
25183: if test -z "$OPENSSL_INCDIR" || echo "$OPENSSL_INCDIR" | grep '^/' >/dev/null ; then
25184: ai_p=$OPENSSL_INCDIR
25185: else
25186:
25187: ep_dir="`echo $OPENSSL_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`"
25188:
25189: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
25190: ai_p="$ep_realdir/`basename \"$OPENSSL_INCDIR\"`"
25191: fi
25192:
25193:
25194:
25195: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
25196:
25197: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
25198: if test -n "$unique" && test "`eval $cmd`" = "" ; then
25199: eval "INCLUDEPATH$unique=set"
25200:
25201: if test ""; then
25202: INCLUDES="-I$ai_p $INCLUDES"
25203: else
25204: INCLUDES="$INCLUDES -I$ai_p"
25205: fi
25206:
25207: fi
25208:
25209: fi
25210:
25211:
25212:
25213: save_old_LDFLAGS=$LDFLAGS
25214: ac_stuff="
25215: -L$OPENSSL_LIBDIR
25216: "
25217:
25218: save_ext_shared=$ext_shared
25219: ext_shared=yes
25220:
25221: for ac_i in $ac_stuff; do
25222: case $ac_i in
25223: -pthread)
25224: if test "$ext_shared" = "yes"; then
25225: LDFLAGS="$LDFLAGS -pthread"
25226: else
25227:
25228:
25229: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
25230:
25231: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
25232: if test -n "$unique" && test "`eval $cmd`" = "" ; then
25233: eval "EXTRA_LDFLAGS$unique=set"
25234: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
25235: fi
25236:
25237: fi
25238: ;;
25239: -l*)
25240: ac_ii=`echo $ac_i|cut -c 3-`
25241:
25242:
25243: case $ac_ii in
25244: c|c_r|pthread*) ;;
25245: *)
25246: if test "$ext_shared" = "yes"; then
25247: LDFLAGS="$LDFLAGS -l$ac_ii"
25248: else
25249:
25250:
25251: case $ac_ii in
25252: c|c_r|pthread*) ;;
25253: *)
25254: LIBS="$LIBS -l$ac_ii"
25255: ;;
25256: esac
25257:
25258:
25259: fi
25260: ;;
25261: esac
25262:
25263:
25264: ;;
25265: -L*)
25266: ac_ii=`echo $ac_i|cut -c 3-`
25267:
25268: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
25269:
25270: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
25271: ai_p=$ac_ii
25272: else
25273:
25274: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
25275:
25276: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
25277: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
25278: fi
25279:
25280:
25281: if test "$ext_shared" = "yes"; then
25282: LDFLAGS="-L$ai_p $LDFLAGS"
25283: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
25284: else
25285:
25286:
25287:
25288: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
25289:
25290: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
25291: if test -n "$unique" && test "`eval $cmd`" = "" ; then
25292: eval "LIBPATH$unique=set"
25293:
25294: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
25295: LDFLAGS="$LDFLAGS -L$ai_p"
25296: PHP_RPATHS="$PHP_RPATHS $ai_p"
25297:
25298: fi
25299:
25300:
25301: fi
25302:
25303: fi
25304:
25305: ;;
25306: esac
25307: done
25308:
25309: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_free in -lcrypto" >&5
25310: $as_echo_n "checking for CRYPTO_free in -lcrypto... " >&6; }
25311: if ${ac_cv_lib_crypto_CRYPTO_free+:} false; then :
25312: $as_echo_n "(cached) " >&6
25313: else
25314: ac_check_lib_save_LIBS=$LIBS
25315: LIBS="-lcrypto $LIBS"
25316: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25317: /* end confdefs.h. */
25318:
25319: /* Override any GCC internal prototype to avoid an error.
25320: Use char because int might match the return type of a GCC
25321: builtin and then its argument prototype would still apply. */
25322: #ifdef __cplusplus
25323: extern "C"
25324: #endif
25325: char CRYPTO_free ();
25326: int
25327: main ()
25328: {
25329: return CRYPTO_free ();
25330: ;
25331: return 0;
25332: }
25333: _ACEOF
25334: if ac_fn_c_try_link "$LINENO"; then :
25335: ac_cv_lib_crypto_CRYPTO_free=yes
25336: else
25337: ac_cv_lib_crypto_CRYPTO_free=no
25338: fi
25339: rm -f core conftest.err conftest.$ac_objext \
25340: conftest$ac_exeext conftest.$ac_ext
25341: LIBS=$ac_check_lib_save_LIBS
25342: fi
25343: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_free" >&5
25344: $as_echo "$ac_cv_lib_crypto_CRYPTO_free" >&6; }
25345: if test "x$ac_cv_lib_crypto_CRYPTO_free" = xyes; then :
25346:
25347: LDFLAGS=$save_old_LDFLAGS
25348: ext_shared=$save_ext_shared
25349:
25350:
25351:
25352: case crypto in
25353: c|c_r|pthread*) ;;
25354: *)
25355: if test "$ext_shared" = "yes"; then
25356: OPENSSL_SHARED_LIBADD="-lcrypto $OPENSSL_SHARED_LIBADD"
25357: else
25358:
25359:
25360: case crypto in
25361: c|c_r|pthread*) ;;
25362: *)
25363: LIBS="-lcrypto $LIBS"
25364: ;;
25365: esac
25366:
25367:
25368: fi
25369: ;;
25370: esac
25371:
25372:
25373:
25374:
25375: else
25376:
25377: LDFLAGS=$save_old_LDFLAGS
25378: ext_shared=$save_ext_shared
25379: unset ac_cv_lib_crypto_CRYPTO_free
25380:
25381: as_fn_error $? "libcrypto not found!" "$LINENO" 5
25382:
25383:
25384: fi
25385:
25386:
25387: old_LIBS=$LIBS
25388: LIBS="$LIBS -lcrypto"
25389:
25390: save_old_LDFLAGS=$LDFLAGS
25391: ac_stuff="
25392: -L$OPENSSL_LIBDIR
25393: "
25394:
25395: save_ext_shared=$ext_shared
25396: ext_shared=yes
25397:
25398: for ac_i in $ac_stuff; do
25399: case $ac_i in
25400: -pthread)
25401: if test "$ext_shared" = "yes"; then
25402: LDFLAGS="$LDFLAGS -pthread"
25403: else
25404:
25405:
25406: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
25407:
25408: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
25409: if test -n "$unique" && test "`eval $cmd`" = "" ; then
25410: eval "EXTRA_LDFLAGS$unique=set"
25411: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
25412: fi
25413:
25414: fi
25415: ;;
25416: -l*)
25417: ac_ii=`echo $ac_i|cut -c 3-`
25418:
25419:
25420: case $ac_ii in
25421: c|c_r|pthread*) ;;
25422: *)
25423: if test "$ext_shared" = "yes"; then
25424: LDFLAGS="$LDFLAGS -l$ac_ii"
25425: else
25426:
25427:
25428: case $ac_ii in
25429: c|c_r|pthread*) ;;
25430: *)
25431: LIBS="$LIBS -l$ac_ii"
25432: ;;
25433: esac
25434:
25435:
25436: fi
25437: ;;
25438: esac
25439:
25440:
25441: ;;
25442: -L*)
25443: ac_ii=`echo $ac_i|cut -c 3-`
25444:
25445: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
25446:
25447: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
25448: ai_p=$ac_ii
25449: else
25450:
25451: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
25452:
25453: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
25454: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
25455: fi
25456:
25457:
25458: if test "$ext_shared" = "yes"; then
25459: LDFLAGS="-L$ai_p $LDFLAGS"
25460: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
25461: else
25462:
25463:
25464:
25465: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
25466:
25467: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
25468: if test -n "$unique" && test "`eval $cmd`" = "" ; then
25469: eval "LIBPATH$unique=set"
25470:
25471: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
25472: LDFLAGS="$LDFLAGS -L$ai_p"
25473: PHP_RPATHS="$PHP_RPATHS $ai_p"
25474:
25475: fi
25476:
25477:
25478: fi
25479:
25480: fi
25481:
25482: ;;
25483: esac
25484: done
25485:
25486: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_CTX_set_ssl_version in -lssl" >&5
25487: $as_echo_n "checking for SSL_CTX_set_ssl_version in -lssl... " >&6; }
25488: if ${ac_cv_lib_ssl_SSL_CTX_set_ssl_version+:} false; then :
25489: $as_echo_n "(cached) " >&6
25490: else
25491: ac_check_lib_save_LIBS=$LIBS
25492: LIBS="-lssl $LIBS"
25493: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25494: /* end confdefs.h. */
25495:
25496: /* Override any GCC internal prototype to avoid an error.
25497: Use char because int might match the return type of a GCC
25498: builtin and then its argument prototype would still apply. */
25499: #ifdef __cplusplus
25500: extern "C"
25501: #endif
25502: char SSL_CTX_set_ssl_version ();
25503: int
25504: main ()
25505: {
25506: return SSL_CTX_set_ssl_version ();
25507: ;
25508: return 0;
25509: }
25510: _ACEOF
25511: if ac_fn_c_try_link "$LINENO"; then :
25512: ac_cv_lib_ssl_SSL_CTX_set_ssl_version=yes
25513: else
25514: ac_cv_lib_ssl_SSL_CTX_set_ssl_version=no
25515: fi
25516: rm -f core conftest.err conftest.$ac_objext \
25517: conftest$ac_exeext conftest.$ac_ext
25518: LIBS=$ac_check_lib_save_LIBS
25519: fi
25520: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_CTX_set_ssl_version" >&5
25521: $as_echo "$ac_cv_lib_ssl_SSL_CTX_set_ssl_version" >&6; }
25522: if test "x$ac_cv_lib_ssl_SSL_CTX_set_ssl_version" = xyes; then :
25523:
25524: LDFLAGS=$save_old_LDFLAGS
25525: ext_shared=$save_ext_shared
25526:
25527: found_openssl=yes
25528:
25529:
25530: else
25531:
25532: LDFLAGS=$save_old_LDFLAGS
25533: ext_shared=$save_ext_shared
25534: unset ac_cv_lib_ssl_SSL_CTX_set_ssl_version
25535:
25536: as_fn_error $? "libssl not found!" "$LINENO" 5
25537:
25538:
25539: fi
25540:
25541: LIBS=$old_LIBS
25542:
25543:
25544: case ssl in
25545: c|c_r|pthread*) ;;
25546: *)
25547: if test "$ext_shared" = "yes"; then
25548: OPENSSL_SHARED_LIBADD="-lssl $OPENSSL_SHARED_LIBADD"
25549: else
25550:
25551:
25552: case ssl in
25553: c|c_r|pthread*) ;;
25554: *)
25555: LIBS="-lssl $LIBS"
25556: ;;
25557: esac
25558:
25559:
25560: fi
25561: ;;
25562: esac
25563:
25564:
25565:
25566:
25567: case crypto in
25568: c|c_r|pthread*) ;;
25569: *)
25570: if test "$ext_shared" = "yes"; then
25571: OPENSSL_SHARED_LIBADD="-lcrypto $OPENSSL_SHARED_LIBADD"
25572: else
25573:
25574:
25575: case crypto in
25576: c|c_r|pthread*) ;;
25577: *)
25578: LIBS="-lcrypto $LIBS"
25579: ;;
25580: esac
25581:
25582:
25583: fi
25584: ;;
25585: esac
25586:
25587:
25588:
25589:
25590: if test "$OPENSSL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$OPENSSL_LIBDIR" != "/usr/lib"; then
25591:
25592: if test -z "$OPENSSL_LIBDIR" || echo "$OPENSSL_LIBDIR" | grep '^/' >/dev/null ; then
25593: ai_p=$OPENSSL_LIBDIR
25594: else
25595:
25596: ep_dir="`echo $OPENSSL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
25597:
25598: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
25599: ai_p="$ep_realdir/`basename \"$OPENSSL_LIBDIR\"`"
25600: fi
25601:
25602:
25603: if test "$ext_shared" = "yes"; then
25604: OPENSSL_SHARED_LIBADD="-L$ai_p $OPENSSL_SHARED_LIBADD"
25605: test -n "$ld_runpath_switch" && OPENSSL_SHARED_LIBADD="$ld_runpath_switch$ai_p $OPENSSL_SHARED_LIBADD"
25606: else
25607:
25608:
25609:
25610: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
25611:
25612: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
25613: if test -n "$unique" && test "`eval $cmd`" = "" ; then
25614: eval "LIBPATH$unique=set"
25615:
25616: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
25617: LDFLAGS="$LDFLAGS -L$ai_p"
25618: PHP_RPATHS="$PHP_RPATHS $ai_p"
25619:
25620: fi
25621:
25622:
25623: fi
25624:
25625: fi
25626:
25627: fi
25628:
25629: if test "$found_openssl" = "yes"; then
25630: OPENSSL_INCDIR_OPT=-I$OPENSSL_INCDIR
25631:
25632:
25633:
25634:
25635: $as_echo "#define HAVE_OPENSSL_EXT 1" >>confdefs.h
25636:
25637:
25638: else
25639: as_fn_error $? "OpenSSL check failed. Please check config.log for more information." "$LINENO" 5
25640:
25641: fi
25642:
25643: fi
25644:
25645:
25646:
25647:
25648: php_with_pcre_regex=yes
25649:
25650:
25651:
25652: # Check whether --with-pcre-regex was given.
25653: if test "${with_pcre_regex+set}" = set; then :
25654: withval=$with_pcre_regex; PHP_PCRE_REGEX=$withval
25655: else
25656:
25657: PHP_PCRE_REGEX=yes
25658:
25659:
25660: fi
25661:
25662:
25663: ext_output=$PHP_PCRE_REGEX
25664:
25665:
25666:
25667:
25668:
25669: if test "$PHP_PCRE_REGEX" != "yes" && test "$PHP_PCRE_REGEX" != "no"; then
25670: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCRE headers location" >&5
25671: $as_echo_n "checking for PCRE headers location... " >&6; }
25672: for i in $PHP_PCRE_REGEX $PHP_PCRE_REGEX/include $PHP_PCRE_REGEX/include/pcre $PHP_PCRE_REGEX/local/include; do
25673: test -f $i/pcre.h && PCRE_INCDIR=$i
25674: done
25675:
25676: if test -z "$PCRE_INCDIR"; then
25677: as_fn_error $? "Could not find pcre.h in $PHP_PCRE_REGEX" "$LINENO" 5
25678: fi
25679: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCRE_INCDIR" >&5
25680: $as_echo "$PCRE_INCDIR" >&6; }
25681:
25682: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCRE library location" >&5
25683: $as_echo_n "checking for PCRE library location... " >&6; }
25684: for j in $PHP_PCRE_REGEX $PHP_PCRE_REGEX/$PHP_LIBDIR; do
25685: test -f $j/libpcre.a || test -f $j/libpcre.$SHLIB_SUFFIX_NAME && PCRE_LIBDIR=$j
25686: done
25687:
25688: if test -z "$PCRE_LIBDIR" ; then
25689: as_fn_error $? "Could not find libpcre.(a|$SHLIB_SUFFIX_NAME) in $PHP_PCRE_REGEX" "$LINENO" 5
25690: fi
25691: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCRE_LIBDIR" >&5
25692: $as_echo "$PCRE_LIBDIR" >&6; }
25693:
25694:
25695: pcre_major=`grep PCRE_MAJOR $PCRE_INCDIR/pcre.h | sed -e 's/[^0-9]//g'`
25696: pcre_minor=`grep PCRE_MINOR $PCRE_INCDIR/pcre.h | sed -e 's/[^0-9]//g'`
25697:
25698: pcre_minor_length=`echo "$pcre_minor" | wc -c | sed -e 's/^0-9//g'`
25699: if test "$pcre_minor_length" -eq 2 ; then
25700: pcre_minor="$pcre_minor"0
25701: fi
25702: pcre_version=$pcre_major$pcre_minor
25703: if test "$pcre_version" -lt 660; then
25704: as_fn_error $? "The PCRE extension requires PCRE library version >= 6.6" "$LINENO" 5
25705: fi
25706:
25707:
25708:
25709: if test -n "$PCRE_LIBDIR"; then
25710:
25711: if test "$PCRE_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PCRE_LIBDIR" != "/usr/lib"; then
25712:
25713: if test -z "$PCRE_LIBDIR" || echo "$PCRE_LIBDIR" | grep '^/' >/dev/null ; then
25714: ai_p=$PCRE_LIBDIR
25715: else
25716:
25717: ep_dir="`echo $PCRE_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
25718:
25719: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
25720: ai_p="$ep_realdir/`basename \"$PCRE_LIBDIR\"`"
25721: fi
25722:
25723:
25724:
25725:
25726:
25727: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
25728:
25729: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
25730: if test -n "$unique" && test "`eval $cmd`" = "" ; then
25731: eval "LIBPATH$unique=set"
25732:
25733: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
25734: LDFLAGS="$LDFLAGS -L$ai_p"
25735: PHP_RPATHS="$PHP_RPATHS $ai_p"
25736:
25737: fi
25738:
25739:
25740:
25741: fi
25742:
25743: fi
25744:
25745:
25746: case pcre in
25747: c|c_r|pthread*) ;;
25748: *)
25749: LIBS="-lpcre $LIBS"
25750: ;;
25751: esac
25752:
25753:
25754:
25755:
25756:
25757:
25758: $as_echo "#define HAVE_PCRE 1" >>confdefs.h
25759:
25760:
25761: if test "$PCRE_INCDIR" != "/usr/include"; then
25762:
25763: if test -z "$PCRE_INCDIR" || echo "$PCRE_INCDIR" | grep '^/' >/dev/null ; then
25764: ai_p=$PCRE_INCDIR
25765: else
25766:
25767: ep_dir="`echo $PCRE_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`"
25768:
25769: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
25770: ai_p="$ep_realdir/`basename \"$PCRE_INCDIR\"`"
25771: fi
25772:
25773:
25774:
25775: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
25776:
25777: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
25778: if test -n "$unique" && test "`eval $cmd`" = "" ; then
25779: eval "INCLUDEPATH$unique=set"
25780:
25781: if test ""; then
25782: INCLUDES="-I$ai_p $INCLUDES"
25783: else
25784: INCLUDES="$INCLUDES -I$ai_p"
25785: fi
25786:
25787: fi
25788:
25789: fi
25790:
25791:
25792: ext_builddir=ext/pcre
25793: ext_srcdir=$abs_srcdir/ext/pcre
25794:
25795: ac_extra=
25796:
25797: if test "no" != "shared" && test "no" != "yes" && test "" != "cli"; then
25798: PHP_PCRE_SHARED=no
25799:
25800:
25801: case ext/pcre in
25802: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
25803: /*) ac_srcdir=`echo "ext/pcre"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
25804: *) ac_srcdir="$abs_srcdir/ext/pcre/"; ac_bdir="ext/pcre/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
25805: esac
25806:
25807:
25808:
25809: b_c_pre=$php_c_pre
25810: b_cxx_pre=$php_cxx_pre
25811: b_c_meta=$php_c_meta
25812: b_cxx_meta=$php_cxx_meta
25813: b_c_post=$php_c_post
25814: b_cxx_post=$php_cxx_post
25815: b_lo=$php_lo
25816:
25817:
25818: old_IFS=$IFS
25819: for ac_src in php_pcre.c; do
25820:
25821: IFS=.
25822: set $ac_src
25823: ac_obj=$1
25824: IFS=$old_IFS
25825:
25826: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
25827:
25828: case $ac_src in
25829: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
25830: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
25831: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
25832: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
25833: esac
25834:
25835: cat >>Makefile.objects<<EOF
25836: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
25837: $ac_comp
25838: EOF
25839: done
25840:
25841:
25842: EXT_STATIC="$EXT_STATIC pcre"
25843: if test "no" != "nocli"; then
25844: EXT_CLI_STATIC="$EXT_CLI_STATIC pcre"
25845: fi
25846: else
25847: if test "no" = "shared" || test "no" = "yes"; then
25848: PHP_PCRE_SHARED=yes
25849:
25850: case ext/pcre in
25851: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
25852: /*) ac_srcdir=`echo "ext/pcre"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
25853: *) ac_srcdir="$abs_srcdir/ext/pcre/"; ac_bdir="ext/pcre/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
25854: esac
25855:
25856:
25857:
25858: b_c_pre=$shared_c_pre
25859: b_cxx_pre=$shared_cxx_pre
25860: b_c_meta=$shared_c_meta
25861: b_cxx_meta=$shared_cxx_meta
25862: b_c_post=$shared_c_post
25863: b_cxx_post=$shared_cxx_post
25864: b_lo=$shared_lo
25865:
25866:
25867: old_IFS=$IFS
25868: for ac_src in php_pcre.c; do
25869:
25870: IFS=.
25871: set $ac_src
25872: ac_obj=$1
25873: IFS=$old_IFS
25874:
25875: shared_objects_pcre="$shared_objects_pcre $ac_bdir$ac_obj.lo"
25876:
25877: case $ac_src in
25878: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
25879: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
25880: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
25881: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
25882: esac
25883:
25884: cat >>Makefile.objects<<EOF
25885: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
25886: $ac_comp
25887: EOF
25888: done
25889:
25890: case $host_alias in
25891: *netware*)
25892:
25893: install_modules="install-modules"
25894:
25895: case $host_alias in
25896: *aix*)
25897: suffix=so
25898: 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'
25899: ;;
25900: *netware*)
25901: suffix=nlm
25902: link_cmd='$(LIBTOOL) --mode=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)'
25903: ;;
25904: *)
25905: suffix=la
25906: link_cmd='$(LIBTOOL) --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)'
25907: ;;
25908: esac
25909:
25910: if test "x" = "xyes"; then
25911: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phppcre.$suffix"
25912: else
25913: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phppcre.$suffix"
25914: fi
25915:
25916: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pcre"
25917:
25918: cat >>Makefile.objects<<EOF
25919: \$(phplibdir)/phppcre.$suffix: $ext_builddir/phppcre.$suffix
25920: \$(LIBTOOL) --mode=install cp $ext_builddir/phppcre.$suffix \$(phplibdir)
25921:
25922: $ext_builddir/phppcre.$suffix: \$(shared_objects_pcre) \$(PHPPCRE_SHARED_DEPENDENCIES)
25923: $link_cmd
25924:
25925: EOF
25926:
25927: ;;
25928: *)
25929:
25930: install_modules="install-modules"
25931:
25932: case $host_alias in
25933: *aix*)
25934: suffix=so
25935: 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'
25936: ;;
25937: *netware*)
25938: suffix=nlm
25939: link_cmd='$(LIBTOOL) --mode=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)'
25940: ;;
25941: *)
25942: suffix=la
25943: link_cmd='$(LIBTOOL) --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)'
25944: ;;
25945: esac
25946:
25947: if test "x" = "xyes"; then
25948: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/pcre.$suffix"
25949: else
25950: PHP_MODULES="$PHP_MODULES \$(phplibdir)/pcre.$suffix"
25951: fi
25952:
25953: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pcre"
25954:
25955: cat >>Makefile.objects<<EOF
25956: \$(phplibdir)/pcre.$suffix: $ext_builddir/pcre.$suffix
25957: \$(LIBTOOL) --mode=install cp $ext_builddir/pcre.$suffix \$(phplibdir)
25958:
25959: $ext_builddir/pcre.$suffix: \$(shared_objects_pcre) \$(PCRE_SHARED_DEPENDENCIES)
25960: $link_cmd
25961:
25962: EOF
25963:
25964: ;;
25965: esac
25966:
25967: cat >>confdefs.h <<_ACEOF
25968: #define COMPILE_DL_PCRE 1
25969: _ACEOF
25970:
25971: fi
25972: fi
25973:
25974: if test "no" != "shared" && test "no" != "yes" && test "" = "cli"; then
25975: PHP_PCRE_SHARED=no
25976:
25977:
25978: case ext/pcre in
25979: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
25980: /*) ac_srcdir=`echo "ext/pcre"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
25981: *) ac_srcdir="$abs_srcdir/ext/pcre/"; ac_bdir="ext/pcre/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
25982: esac
25983:
25984:
25985:
25986: b_c_pre=$php_c_pre
25987: b_cxx_pre=$php_cxx_pre
25988: b_c_meta=$php_c_meta
25989: b_cxx_meta=$php_cxx_meta
25990: b_c_post=$php_c_post
25991: b_cxx_post=$php_cxx_post
25992: b_lo=$php_lo
25993:
25994:
25995: old_IFS=$IFS
25996: for ac_src in php_pcre.c; do
25997:
25998: IFS=.
25999: set $ac_src
26000: ac_obj=$1
26001: IFS=$old_IFS
26002:
26003: PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
26004:
26005: case $ac_src in
26006: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
26007: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
26008: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
26009: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
26010: esac
26011:
26012: cat >>Makefile.objects<<EOF
26013: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
26014: $ac_comp
26015: EOF
26016: done
26017:
26018:
26019:
26020:
26021: case ext/pcre in
26022: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
26023: /*) ac_srcdir=`echo "ext/pcre"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
26024: *) ac_srcdir="$abs_srcdir/ext/pcre/"; ac_bdir="ext/pcre/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
26025: esac
26026:
26027:
26028:
26029: b_c_pre=$php_c_pre
26030: b_cxx_pre=$php_cxx_pre
26031: b_c_meta=$php_c_meta
26032: b_cxx_meta=$php_cxx_meta
26033: b_c_post=$php_c_post
26034: b_cxx_post=$php_cxx_post
26035: b_lo=$php_lo
26036:
26037:
26038: old_IFS=$IFS
26039: for ac_src in php_pcre.c; do
26040:
26041: IFS=.
26042: set $ac_src
26043: ac_obj=$1
26044: IFS=$old_IFS
26045:
26046: PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo"
26047:
26048: case $ac_src in
26049: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
26050: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
26051: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
26052: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
26053: esac
26054:
26055: cat >>Makefile.objects<<EOF
26056: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
26057: $ac_comp
26058: EOF
26059: done
26060:
26061:
26062:
26063:
26064: case ext/pcre in
26065: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
26066: /*) ac_srcdir=`echo "ext/pcre"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
26067: *) ac_srcdir="$abs_srcdir/ext/pcre/"; ac_bdir="ext/pcre/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
26068: esac
26069:
26070:
26071:
26072: b_c_pre=$php_c_pre
26073: b_cxx_pre=$php_cxx_pre
26074: b_c_meta=$php_c_meta
26075: b_cxx_meta=$php_cxx_meta
26076: b_c_post=$php_c_post
26077: b_cxx_post=$php_cxx_post
26078: b_lo=$php_lo
26079:
26080:
26081: old_IFS=$IFS
26082: for ac_src in php_pcre.c; do
26083:
26084: IFS=.
26085: set $ac_src
26086: ac_obj=$1
26087: IFS=$old_IFS
26088:
26089: PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo"
26090:
26091: case $ac_src in
26092: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
26093: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
26094: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
26095: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
26096: esac
26097:
26098: cat >>Makefile.objects<<EOF
26099: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
26100: $ac_comp
26101: EOF
26102: done
26103:
26104:
26105: EXT_CLI_STATIC="$EXT_CLI_STATIC pcre"
26106: fi
26107:
26108:
26109: BUILD_DIR="$BUILD_DIR $ext_builddir"
26110:
26111:
26112:
26113: if test "$ext_builddir" = "."; then
26114: PHP_PECL_EXTENSION=pcre
26115:
26116: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
26117:
26118: fi
26119:
26120:
26121:
26122: header_path=ext/pcre
26123: for header_file in php_pcre.h; do
26124: hp_hf="$header_path/$header_file"
26125:
26126:
26127: unique=`echo $hp_hf|$SED 's/[^a-zA-Z0-9]/_/g'`
26128:
26129: cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
26130: if test -n "$unique" && test "`eval $cmd`" = "" ; then
26131: eval "INSTALLHEADERS$unique=set"
26132:
26133: INSTALL_HEADERS="$INSTALL_HEADERS $hp_hf"
26134:
26135: fi
26136:
26137: done
26138:
26139:
26140: else
26141: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCRE library to use" >&5
26142: $as_echo_n "checking for PCRE library to use... " >&6; }
26143: { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5
26144: $as_echo "bundled" >&6; }
26145: pcrelib_sources="pcrelib/pcre_chartables.c pcrelib/pcre_ucd.c \
26146: pcrelib/pcre_compile.c pcrelib/pcre_config.c pcrelib/pcre_exec.c \
26147: pcrelib/pcre_fullinfo.c pcrelib/pcre_get.c pcrelib/pcre_globals.c \
26148: pcrelib/pcre_info.c pcrelib/pcre_maketables.c pcrelib/pcre_newline.c \
26149: pcrelib/pcre_ord2utf8.c pcrelib/pcre_refcount.c pcrelib/pcre_study.c \
26150: pcrelib/pcre_tables.c pcrelib/pcre_try_flipped.c pcrelib/pcre_valid_utf8.c \
26151: pcrelib/pcre_version.c pcrelib/pcre_xclass.c"
26152:
26153: ext_builddir=ext/pcre
26154: ext_srcdir=$abs_srcdir/ext/pcre
26155:
26156: ac_extra=`echo "-I@ext_srcdir@/pcrelib"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
26157:
26158: if test "no" != "shared" && test "no" != "yes" && test "" != "cli"; then
26159: PHP_PCRE_SHARED=no
26160:
26161:
26162: case ext/pcre in
26163: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
26164: /*) ac_srcdir=`echo "ext/pcre"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
26165: *) ac_srcdir="$abs_srcdir/ext/pcre/"; ac_bdir="ext/pcre/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
26166: esac
26167:
26168:
26169:
26170: b_c_pre=$php_c_pre
26171: b_cxx_pre=$php_cxx_pre
26172: b_c_meta=$php_c_meta
26173: b_cxx_meta=$php_cxx_meta
26174: b_c_post=$php_c_post
26175: b_cxx_post=$php_cxx_post
26176: b_lo=$php_lo
26177:
26178:
26179: old_IFS=$IFS
26180: for ac_src in $pcrelib_sources php_pcre.c; do
26181:
26182: IFS=.
26183: set $ac_src
26184: ac_obj=$1
26185: IFS=$old_IFS
26186:
26187: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
26188:
26189: case $ac_src in
26190: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
26191: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
26192: *.S) ac_comp="$b_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: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
26194: esac
26195:
26196: cat >>Makefile.objects<<EOF
26197: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
26198: $ac_comp
26199: EOF
26200: done
26201:
26202:
26203: EXT_STATIC="$EXT_STATIC pcre"
26204: if test "no" != "nocli"; then
26205: EXT_CLI_STATIC="$EXT_CLI_STATIC pcre"
26206: fi
26207: else
26208: if test "no" = "shared" || test "no" = "yes"; then
26209: PHP_PCRE_SHARED=yes
26210:
26211: case ext/pcre in
26212: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
26213: /*) ac_srcdir=`echo "ext/pcre"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
26214: *) ac_srcdir="$abs_srcdir/ext/pcre/"; ac_bdir="ext/pcre/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
26215: esac
26216:
26217:
26218:
26219: b_c_pre=$shared_c_pre
26220: b_cxx_pre=$shared_cxx_pre
26221: b_c_meta=$shared_c_meta
26222: b_cxx_meta=$shared_cxx_meta
26223: b_c_post=$shared_c_post
26224: b_cxx_post=$shared_cxx_post
26225: b_lo=$shared_lo
26226:
26227:
26228: old_IFS=$IFS
26229: for ac_src in $pcrelib_sources php_pcre.c; do
26230:
26231: IFS=.
26232: set $ac_src
26233: ac_obj=$1
26234: IFS=$old_IFS
26235:
26236: shared_objects_pcre="$shared_objects_pcre $ac_bdir$ac_obj.lo"
26237:
26238: case $ac_src in
26239: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
26240: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
26241: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
26242: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
26243: esac
26244:
26245: cat >>Makefile.objects<<EOF
26246: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
26247: $ac_comp
26248: EOF
26249: done
26250:
26251: case $host_alias in
26252: *netware*)
26253:
26254: install_modules="install-modules"
26255:
26256: case $host_alias in
26257: *aix*)
26258: suffix=so
26259: 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'
26260: ;;
26261: *netware*)
26262: suffix=nlm
26263: link_cmd='$(LIBTOOL) --mode=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)'
26264: ;;
26265: *)
26266: suffix=la
26267: link_cmd='$(LIBTOOL) --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)'
26268: ;;
26269: esac
26270:
26271: if test "x" = "xyes"; then
26272: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phppcre.$suffix"
26273: else
26274: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phppcre.$suffix"
26275: fi
26276:
26277: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pcre"
26278:
26279: cat >>Makefile.objects<<EOF
26280: \$(phplibdir)/phppcre.$suffix: $ext_builddir/phppcre.$suffix
26281: \$(LIBTOOL) --mode=install cp $ext_builddir/phppcre.$suffix \$(phplibdir)
26282:
26283: $ext_builddir/phppcre.$suffix: \$(shared_objects_pcre) \$(PHPPCRE_SHARED_DEPENDENCIES)
26284: $link_cmd
26285:
26286: EOF
26287:
26288: ;;
26289: *)
26290:
26291: install_modules="install-modules"
26292:
26293: case $host_alias in
26294: *aix*)
26295: suffix=so
26296: 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'
26297: ;;
26298: *netware*)
26299: suffix=nlm
26300: link_cmd='$(LIBTOOL) --mode=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)'
26301: ;;
26302: *)
26303: suffix=la
26304: link_cmd='$(LIBTOOL) --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)'
26305: ;;
26306: esac
26307:
26308: if test "x" = "xyes"; then
26309: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/pcre.$suffix"
26310: else
26311: PHP_MODULES="$PHP_MODULES \$(phplibdir)/pcre.$suffix"
26312: fi
26313:
26314: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pcre"
26315:
26316: cat >>Makefile.objects<<EOF
26317: \$(phplibdir)/pcre.$suffix: $ext_builddir/pcre.$suffix
26318: \$(LIBTOOL) --mode=install cp $ext_builddir/pcre.$suffix \$(phplibdir)
26319:
26320: $ext_builddir/pcre.$suffix: \$(shared_objects_pcre) \$(PCRE_SHARED_DEPENDENCIES)
26321: $link_cmd
26322:
26323: EOF
26324:
26325: ;;
26326: esac
26327:
26328: cat >>confdefs.h <<_ACEOF
26329: #define COMPILE_DL_PCRE 1
26330: _ACEOF
26331:
26332: fi
26333: fi
26334:
26335: if test "no" != "shared" && test "no" != "yes" && test "" = "cli"; then
26336: PHP_PCRE_SHARED=no
26337:
26338:
26339: case ext/pcre in
26340: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
26341: /*) ac_srcdir=`echo "ext/pcre"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
26342: *) ac_srcdir="$abs_srcdir/ext/pcre/"; ac_bdir="ext/pcre/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
26343: esac
26344:
26345:
26346:
26347: b_c_pre=$php_c_pre
26348: b_cxx_pre=$php_cxx_pre
26349: b_c_meta=$php_c_meta
26350: b_cxx_meta=$php_cxx_meta
26351: b_c_post=$php_c_post
26352: b_cxx_post=$php_cxx_post
26353: b_lo=$php_lo
26354:
26355:
26356: old_IFS=$IFS
26357: for ac_src in $pcrelib_sources php_pcre.c; do
26358:
26359: IFS=.
26360: set $ac_src
26361: ac_obj=$1
26362: IFS=$old_IFS
26363:
26364: PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
26365:
26366: case $ac_src in
26367: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
26368: *.s) ac_comp="$b_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: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
26371: esac
26372:
26373: cat >>Makefile.objects<<EOF
26374: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
26375: $ac_comp
26376: EOF
26377: done
26378:
26379:
26380:
26381:
26382: case ext/pcre in
26383: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
26384: /*) ac_srcdir=`echo "ext/pcre"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
26385: *) ac_srcdir="$abs_srcdir/ext/pcre/"; ac_bdir="ext/pcre/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
26386: esac
26387:
26388:
26389:
26390: b_c_pre=$php_c_pre
26391: b_cxx_pre=$php_cxx_pre
26392: b_c_meta=$php_c_meta
26393: b_cxx_meta=$php_cxx_meta
26394: b_c_post=$php_c_post
26395: b_cxx_post=$php_cxx_post
26396: b_lo=$php_lo
26397:
26398:
26399: old_IFS=$IFS
26400: for ac_src in $pcrelib_sources php_pcre.c; do
26401:
26402: IFS=.
26403: set $ac_src
26404: ac_obj=$1
26405: IFS=$old_IFS
26406:
26407: PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo"
26408:
26409: case $ac_src in
26410: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
26411: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
26412: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
26413: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
26414: esac
26415:
26416: cat >>Makefile.objects<<EOF
26417: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
26418: $ac_comp
26419: EOF
26420: done
26421:
26422:
26423:
26424:
26425: case ext/pcre in
26426: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
26427: /*) ac_srcdir=`echo "ext/pcre"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
26428: *) ac_srcdir="$abs_srcdir/ext/pcre/"; ac_bdir="ext/pcre/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
26429: esac
26430:
26431:
26432:
26433: b_c_pre=$php_c_pre
26434: b_cxx_pre=$php_cxx_pre
26435: b_c_meta=$php_c_meta
26436: b_cxx_meta=$php_cxx_meta
26437: b_c_post=$php_c_post
26438: b_cxx_post=$php_cxx_post
26439: b_lo=$php_lo
26440:
26441:
26442: old_IFS=$IFS
26443: for ac_src in $pcrelib_sources php_pcre.c; do
26444:
26445: IFS=.
26446: set $ac_src
26447: ac_obj=$1
26448: IFS=$old_IFS
26449:
26450: PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo"
26451:
26452: case $ac_src in
26453: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
26454: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
26455: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
26456: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
26457: esac
26458:
26459: cat >>Makefile.objects<<EOF
26460: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
26461: $ac_comp
26462: EOF
26463: done
26464:
26465:
26466: EXT_CLI_STATIC="$EXT_CLI_STATIC pcre"
26467: fi
26468:
26469:
26470: BUILD_DIR="$BUILD_DIR $ext_builddir"
26471:
26472:
26473:
26474: if test "$ext_builddir" = "."; then
26475: PHP_PECL_EXTENSION=pcre
26476:
26477: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
26478:
26479: fi
26480:
26481:
26482:
26483: BUILD_DIR="$BUILD_DIR $ext_builddir/pcrelib"
26484:
26485:
26486:
26487:
26488: header_path=ext/pcre
26489: for header_file in php_pcre.h pcrelib/; do
26490: hp_hf="$header_path/$header_file"
26491:
26492:
26493: unique=`echo $hp_hf|$SED 's/[^a-zA-Z0-9]/_/g'`
26494:
26495: cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
26496: if test -n "$unique" && test "`eval $cmd`" = "" ; then
26497: eval "INSTALLHEADERS$unique=set"
26498:
26499: INSTALL_HEADERS="$INSTALL_HEADERS $hp_hf"
26500:
26501: fi
26502:
26503: done
26504:
26505:
26506:
26507: $as_echo "#define HAVE_BUNDLED_PCRE 1" >>confdefs.h
26508:
26509: fi
26510:
26511:
26512:
26513: php_with_sqlite3=yes
26514:
26515: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the SQLite3 extension" >&5
26516: $as_echo_n "checking whether to enable the SQLite3 extension... " >&6; }
26517:
26518: # Check whether --with-sqlite3 was given.
26519: if test "${with_sqlite3+set}" = set; then :
26520: withval=$with_sqlite3; PHP_SQLITE3=$withval
26521: else
26522:
26523: PHP_SQLITE3=yes
26524: test "$PHP_ENABLE_ALL" && PHP_SQLITE3=$PHP_ENABLE_ALL
26525:
26526: fi
26527:
26528:
26529:
26530: ext_output="yes, shared"
26531: ext_shared=yes
26532: case $PHP_SQLITE3 in
26533: shared,*)
26534: PHP_SQLITE3=`echo "$PHP_SQLITE3"|$SED 's/^shared,//'`
26535: ;;
26536: shared)
26537: PHP_SQLITE3=yes
26538: ;;
26539: no)
26540: ext_output=no
26541: ext_shared=no
26542: ;;
26543: *)
26544: ext_output=yes
26545: ext_shared=no
26546: ;;
26547: esac
26548:
26549:
26550:
26551: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
26552: $as_echo "$ext_output" >&6; }
26553:
26554:
26555:
26556:
26557: if test $PHP_SQLITE3 != "no"; then
26558: sqlite3_extra_sources=""
26559: PHP_SQLITE3_CFLAGS=""
26560:
26561: if test -z "$enable_maintainer_zts"; then
26562: if test -f "$phpincludedir/main/php_config.h"; then
26563: ZTS=`grep '#define ZTS' $phpincludedir/main/php_config.h|$SED 's/#define ZTS//'`
26564: if test "$ZTS" -eq "1"; then
26565: enable_maintainer_zts="yes"
26566: fi
26567: fi
26568: fi
26569:
26570: if test $PHP_SQLITE3 != "yes"; then
26571: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3 files in default path" >&5
26572: $as_echo_n "checking for sqlite3 files in default path... " >&6; }
26573: for i in $PHP_SQLITE3 /usr/local /usr; do
26574: if test -r $i/include/sqlite3.h; then
26575: SQLITE3_DIR=$i
26576: { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $i" >&5
26577: $as_echo "found in $i" >&6; }
26578: break
26579: fi
26580: done
26581:
26582: if test -z "$SQLITE3_DIR"; then
26583: { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
26584: $as_echo "not found" >&6; }
26585: as_fn_error $? "Please reinstall the sqlite distribution from http://www.sqlite.org" "$LINENO" 5
26586: fi
26587:
26588: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite 3.3.9+" >&5
26589: $as_echo_n "checking for SQLite 3.3.9+... " >&6; }
26590:
26591: save_old_LDFLAGS=$LDFLAGS
26592: ac_stuff="
26593: -L$SQLITE3_DIR/$PHP_LIBDIR -lm
26594: "
26595:
26596: save_ext_shared=$ext_shared
26597: ext_shared=yes
26598:
26599: for ac_i in $ac_stuff; do
26600: case $ac_i in
26601: -pthread)
26602: if test "$ext_shared" = "yes"; then
26603: LDFLAGS="$LDFLAGS -pthread"
26604: else
26605:
26606:
26607: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
26608:
26609: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
26610: if test -n "$unique" && test "`eval $cmd`" = "" ; then
26611: eval "EXTRA_LDFLAGS$unique=set"
26612: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
26613: fi
26614:
26615: fi
26616: ;;
26617: -l*)
26618: ac_ii=`echo $ac_i|cut -c 3-`
26619:
26620:
26621: case $ac_ii in
26622: c|c_r|pthread*) ;;
26623: *)
26624: if test "$ext_shared" = "yes"; then
26625: LDFLAGS="$LDFLAGS -l$ac_ii"
26626: else
26627:
26628:
26629: case $ac_ii in
26630: c|c_r|pthread*) ;;
26631: *)
26632: LIBS="$LIBS -l$ac_ii"
26633: ;;
26634: esac
26635:
26636:
26637: fi
26638: ;;
26639: esac
26640:
26641:
26642: ;;
26643: -L*)
26644: ac_ii=`echo $ac_i|cut -c 3-`
26645:
26646: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
26647:
26648: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
26649: ai_p=$ac_ii
26650: else
26651:
26652: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
26653:
26654: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
26655: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
26656: fi
26657:
26658:
26659: if test "$ext_shared" = "yes"; then
26660: LDFLAGS="-L$ai_p $LDFLAGS"
26661: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
26662: else
26663:
26664:
26665:
26666: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
26667:
26668: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
26669: if test -n "$unique" && test "`eval $cmd`" = "" ; then
26670: eval "LIBPATH$unique=set"
26671:
26672: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
26673: LDFLAGS="$LDFLAGS -L$ai_p"
26674: PHP_RPATHS="$PHP_RPATHS $ai_p"
26675:
26676: fi
26677:
26678:
26679: fi
26680:
26681: fi
26682:
26683: ;;
26684: esac
26685: done
26686:
26687: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_prepare_v2 in -lsqlite3" >&5
26688: $as_echo_n "checking for sqlite3_prepare_v2 in -lsqlite3... " >&6; }
26689: if ${ac_cv_lib_sqlite3_sqlite3_prepare_v2+:} false; then :
26690: $as_echo_n "(cached) " >&6
26691: else
26692: ac_check_lib_save_LIBS=$LIBS
26693: LIBS="-lsqlite3 $LIBS"
26694: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26695: /* end confdefs.h. */
26696:
26697: /* Override any GCC internal prototype to avoid an error.
26698: Use char because int might match the return type of a GCC
26699: builtin and then its argument prototype would still apply. */
26700: #ifdef __cplusplus
26701: extern "C"
26702: #endif
26703: char sqlite3_prepare_v2 ();
26704: int
26705: main ()
26706: {
26707: return sqlite3_prepare_v2 ();
26708: ;
26709: return 0;
26710: }
26711: _ACEOF
26712: if ac_fn_c_try_link "$LINENO"; then :
26713: ac_cv_lib_sqlite3_sqlite3_prepare_v2=yes
26714: else
26715: ac_cv_lib_sqlite3_sqlite3_prepare_v2=no
26716: fi
26717: rm -f core conftest.err conftest.$ac_objext \
26718: conftest$ac_exeext conftest.$ac_ext
26719: LIBS=$ac_check_lib_save_LIBS
26720: fi
26721: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_prepare_v2" >&5
26722: $as_echo "$ac_cv_lib_sqlite3_sqlite3_prepare_v2" >&6; }
26723: if test "x$ac_cv_lib_sqlite3_sqlite3_prepare_v2" = xyes; then :
26724:
26725: LDFLAGS=$save_old_LDFLAGS
26726: ext_shared=$save_ext_shared
26727:
26728: { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26729: $as_echo "found" >&6; }
26730:
26731:
26732: if test "$ext_shared" = "yes"; then
26733: SQLITE3_SHARED_LIBADD="-lsqlite3 $SQLITE3_SHARED_LIBADD"
26734: if test -n "$SQLITE3_DIR/$PHP_LIBDIR"; then
26735:
26736: if test "$SQLITE3_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$SQLITE3_DIR/$PHP_LIBDIR" != "/usr/lib"; then
26737:
26738: if test -z "$SQLITE3_DIR/$PHP_LIBDIR" || echo "$SQLITE3_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
26739: ai_p=$SQLITE3_DIR/$PHP_LIBDIR
26740: else
26741:
26742: ep_dir="`echo $SQLITE3_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
26743:
26744: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
26745: ai_p="$ep_realdir/`basename \"$SQLITE3_DIR/$PHP_LIBDIR\"`"
26746: fi
26747:
26748:
26749: if test "$ext_shared" = "yes"; then
26750: SQLITE3_SHARED_LIBADD="-L$ai_p $SQLITE3_SHARED_LIBADD"
26751: test -n "$ld_runpath_switch" && SQLITE3_SHARED_LIBADD="$ld_runpath_switch$ai_p $SQLITE3_SHARED_LIBADD"
26752: else
26753:
26754:
26755:
26756: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
26757:
26758: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
26759: if test -n "$unique" && test "`eval $cmd`" = "" ; then
26760: eval "LIBPATH$unique=set"
26761:
26762: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
26763: LDFLAGS="$LDFLAGS -L$ai_p"
26764: PHP_RPATHS="$PHP_RPATHS $ai_p"
26765:
26766: fi
26767:
26768:
26769: fi
26770:
26771: fi
26772:
26773: fi
26774: else
26775:
26776:
26777: if test -n "$SQLITE3_DIR/$PHP_LIBDIR"; then
26778:
26779: if test "$SQLITE3_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$SQLITE3_DIR/$PHP_LIBDIR" != "/usr/lib"; then
26780:
26781: if test -z "$SQLITE3_DIR/$PHP_LIBDIR" || echo "$SQLITE3_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
26782: ai_p=$SQLITE3_DIR/$PHP_LIBDIR
26783: else
26784:
26785: ep_dir="`echo $SQLITE3_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
26786:
26787: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
26788: ai_p="$ep_realdir/`basename \"$SQLITE3_DIR/$PHP_LIBDIR\"`"
26789: fi
26790:
26791:
26792:
26793:
26794:
26795: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
26796:
26797: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
26798: if test -n "$unique" && test "`eval $cmd`" = "" ; then
26799: eval "LIBPATH$unique=set"
26800:
26801: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
26802: LDFLAGS="$LDFLAGS -L$ai_p"
26803: PHP_RPATHS="$PHP_RPATHS $ai_p"
26804:
26805: fi
26806:
26807:
26808:
26809: fi
26810:
26811: fi
26812:
26813:
26814: case sqlite3 in
26815: c|c_r|pthread*) ;;
26816: *)
26817: LIBS="-lsqlite3 $LIBS"
26818: ;;
26819: esac
26820:
26821:
26822:
26823:
26824: fi
26825:
26826:
26827:
26828: if test "$SQLITE3_DIR/include" != "/usr/include"; then
26829:
26830: if test -z "$SQLITE3_DIR/include" || echo "$SQLITE3_DIR/include" | grep '^/' >/dev/null ; then
26831: ai_p=$SQLITE3_DIR/include
26832: else
26833:
26834: ep_dir="`echo $SQLITE3_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
26835:
26836: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
26837: ai_p="$ep_realdir/`basename \"$SQLITE3_DIR/include\"`"
26838: fi
26839:
26840:
26841:
26842: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
26843:
26844: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
26845: if test -n "$unique" && test "`eval $cmd`" = "" ; then
26846: eval "INCLUDEPATH$unique=set"
26847:
26848: if test ""; then
26849: INCLUDES="-I$ai_p $INCLUDES"
26850: else
26851: INCLUDES="$INCLUDES -I$ai_p"
26852: fi
26853:
26854: fi
26855:
26856: fi
26857:
26858:
26859:
26860: else
26861:
26862: LDFLAGS=$save_old_LDFLAGS
26863: ext_shared=$save_ext_shared
26864: unset ac_cv_lib_sqlite3_sqlite3_prepare_v2
26865:
26866: { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
26867: $as_echo "not found" >&6; }
26868: as_fn_error $? "Please install SQLite 3.3.9 first or check libsqlite3 is present" "$LINENO" 5
26869:
26870:
26871: fi
26872:
26873:
26874:
26875: save_old_LDFLAGS=$LDFLAGS
26876: ac_stuff=""
26877:
26878: save_ext_shared=$ext_shared
26879: ext_shared=yes
26880:
26881: for ac_i in $ac_stuff; do
26882: case $ac_i in
26883: -pthread)
26884: if test "$ext_shared" = "yes"; then
26885: LDFLAGS="$LDFLAGS -pthread"
26886: else
26887:
26888:
26889: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
26890:
26891: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
26892: if test -n "$unique" && test "`eval $cmd`" = "" ; then
26893: eval "EXTRA_LDFLAGS$unique=set"
26894: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
26895: fi
26896:
26897: fi
26898: ;;
26899: -l*)
26900: ac_ii=`echo $ac_i|cut -c 3-`
26901:
26902:
26903: case $ac_ii in
26904: c|c_r|pthread*) ;;
26905: *)
26906: if test "$ext_shared" = "yes"; then
26907: LDFLAGS="$LDFLAGS -l$ac_ii"
26908: else
26909:
26910:
26911: case $ac_ii in
26912: c|c_r|pthread*) ;;
26913: *)
26914: LIBS="$LIBS -l$ac_ii"
26915: ;;
26916: esac
26917:
26918:
26919: fi
26920: ;;
26921: esac
26922:
26923:
26924: ;;
26925: -L*)
26926: ac_ii=`echo $ac_i|cut -c 3-`
26927:
26928: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
26929:
26930: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
26931: ai_p=$ac_ii
26932: else
26933:
26934: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
26935:
26936: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
26937: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
26938: fi
26939:
26940:
26941: if test "$ext_shared" = "yes"; then
26942: LDFLAGS="-L$ai_p $LDFLAGS"
26943: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
26944: else
26945:
26946:
26947:
26948: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
26949:
26950: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
26951: if test -n "$unique" && test "`eval $cmd`" = "" ; then
26952: eval "LIBPATH$unique=set"
26953:
26954: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
26955: LDFLAGS="$LDFLAGS -L$ai_p"
26956: PHP_RPATHS="$PHP_RPATHS $ai_p"
26957:
26958: fi
26959:
26960:
26961: fi
26962:
26963: fi
26964:
26965: ;;
26966: esac
26967: done
26968:
26969: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_key in -lsqlite3" >&5
26970: $as_echo_n "checking for sqlite3_key in -lsqlite3... " >&6; }
26971: if ${ac_cv_lib_sqlite3_sqlite3_key+:} false; then :
26972: $as_echo_n "(cached) " >&6
26973: else
26974: ac_check_lib_save_LIBS=$LIBS
26975: LIBS="-lsqlite3 $LIBS"
26976: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26977: /* end confdefs.h. */
26978:
26979: /* Override any GCC internal prototype to avoid an error.
26980: Use char because int might match the return type of a GCC
26981: builtin and then its argument prototype would still apply. */
26982: #ifdef __cplusplus
26983: extern "C"
26984: #endif
26985: char sqlite3_key ();
26986: int
26987: main ()
26988: {
26989: return sqlite3_key ();
26990: ;
26991: return 0;
26992: }
26993: _ACEOF
26994: if ac_fn_c_try_link "$LINENO"; then :
26995: ac_cv_lib_sqlite3_sqlite3_key=yes
26996: else
26997: ac_cv_lib_sqlite3_sqlite3_key=no
26998: fi
26999: rm -f core conftest.err conftest.$ac_objext \
27000: conftest$ac_exeext conftest.$ac_ext
27001: LIBS=$ac_check_lib_save_LIBS
27002: fi
27003: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_key" >&5
27004: $as_echo "$ac_cv_lib_sqlite3_sqlite3_key" >&6; }
27005: if test "x$ac_cv_lib_sqlite3_sqlite3_key" = xyes; then :
27006:
27007: LDFLAGS=$save_old_LDFLAGS
27008: ext_shared=$save_ext_shared
27009:
27010:
27011: $as_echo "#define HAVE_SQLITE3_KEY 1" >>confdefs.h
27012:
27013:
27014:
27015: else
27016:
27017: LDFLAGS=$save_old_LDFLAGS
27018: ext_shared=$save_ext_shared
27019: unset ac_cv_lib_sqlite3_sqlite3_key
27020:
27021:
27022: fi
27023:
27024:
27025:
27026: save_old_LDFLAGS=$LDFLAGS
27027: ac_stuff=""
27028:
27029: save_ext_shared=$ext_shared
27030: ext_shared=yes
27031:
27032: for ac_i in $ac_stuff; do
27033: case $ac_i in
27034: -pthread)
27035: if test "$ext_shared" = "yes"; then
27036: LDFLAGS="$LDFLAGS -pthread"
27037: else
27038:
27039:
27040: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
27041:
27042: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
27043: if test -n "$unique" && test "`eval $cmd`" = "" ; then
27044: eval "EXTRA_LDFLAGS$unique=set"
27045: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
27046: fi
27047:
27048: fi
27049: ;;
27050: -l*)
27051: ac_ii=`echo $ac_i|cut -c 3-`
27052:
27053:
27054: case $ac_ii in
27055: c|c_r|pthread*) ;;
27056: *)
27057: if test "$ext_shared" = "yes"; then
27058: LDFLAGS="$LDFLAGS -l$ac_ii"
27059: else
27060:
27061:
27062: case $ac_ii in
27063: c|c_r|pthread*) ;;
27064: *)
27065: LIBS="$LIBS -l$ac_ii"
27066: ;;
27067: esac
27068:
27069:
27070: fi
27071: ;;
27072: esac
27073:
27074:
27075: ;;
27076: -L*)
27077: ac_ii=`echo $ac_i|cut -c 3-`
27078:
27079: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
27080:
27081: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
27082: ai_p=$ac_ii
27083: else
27084:
27085: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
27086:
27087: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
27088: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
27089: fi
27090:
27091:
27092: if test "$ext_shared" = "yes"; then
27093: LDFLAGS="-L$ai_p $LDFLAGS"
27094: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
27095: else
27096:
27097:
27098:
27099: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
27100:
27101: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
27102: if test -n "$unique" && test "`eval $cmd`" = "" ; then
27103: eval "LIBPATH$unique=set"
27104:
27105: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
27106: LDFLAGS="$LDFLAGS -L$ai_p"
27107: PHP_RPATHS="$PHP_RPATHS $ai_p"
27108:
27109: fi
27110:
27111:
27112: fi
27113:
27114: fi
27115:
27116: ;;
27117: esac
27118: done
27119:
27120: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_load_extension in -lsqlite3" >&5
27121: $as_echo_n "checking for sqlite3_load_extension in -lsqlite3... " >&6; }
27122: if ${ac_cv_lib_sqlite3_sqlite3_load_extension+:} false; then :
27123: $as_echo_n "(cached) " >&6
27124: else
27125: ac_check_lib_save_LIBS=$LIBS
27126: LIBS="-lsqlite3 $LIBS"
27127: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27128: /* end confdefs.h. */
27129:
27130: /* Override any GCC internal prototype to avoid an error.
27131: Use char because int might match the return type of a GCC
27132: builtin and then its argument prototype would still apply. */
27133: #ifdef __cplusplus
27134: extern "C"
27135: #endif
27136: char sqlite3_load_extension ();
27137: int
27138: main ()
27139: {
27140: return sqlite3_load_extension ();
27141: ;
27142: return 0;
27143: }
27144: _ACEOF
27145: if ac_fn_c_try_link "$LINENO"; then :
27146: ac_cv_lib_sqlite3_sqlite3_load_extension=yes
27147: else
27148: ac_cv_lib_sqlite3_sqlite3_load_extension=no
27149: fi
27150: rm -f core conftest.err conftest.$ac_objext \
27151: conftest$ac_exeext conftest.$ac_ext
27152: LIBS=$ac_check_lib_save_LIBS
27153: fi
27154: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_load_extension" >&5
27155: $as_echo "$ac_cv_lib_sqlite3_sqlite3_load_extension" >&6; }
27156: if test "x$ac_cv_lib_sqlite3_sqlite3_load_extension" = xyes; then :
27157:
27158: LDFLAGS=$save_old_LDFLAGS
27159: ext_shared=$save_ext_shared
27160:
27161:
27162: else
27163:
27164: LDFLAGS=$save_old_LDFLAGS
27165: ext_shared=$save_ext_shared
27166: unset ac_cv_lib_sqlite3_sqlite3_load_extension
27167:
27168: $as_echo "#define SQLITE_OMIT_LOAD_EXTENSION 1" >>confdefs.h
27169:
27170:
27171:
27172: fi
27173:
27174:
27175: else
27176: { $as_echo "$as_me:${as_lineno-$LINENO}: checking bundled sqlite3 library" >&5
27177: $as_echo_n "checking bundled sqlite3 library... " >&6; }
27178: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27179: $as_echo "yes" >&6; }
27180:
27181: sqlite3_extra_sources="libsqlite/sqlite3.c"
27182:
27183: if test "$enable_maintainer_zts" = "yes"; then
27184: threadsafe_flags="-DSQLITE_THREADSAFE=1"
27185: else
27186: threadsafe_flags="-DSQLITE_THREADSAFE=0"
27187: fi
27188:
27189: if test "$ZEND_DEBUG" = "yes"; then
27190: debug_flags="-DSQLITE_DEBUG=1"
27191: fi
27192:
27193: other_flags="-DSQLITE_ENABLE_FTS3=1 -DSQLITE_CORE=1 -DSQLITE_ENABLE_COLUMN_METADATA=1"
27194:
27195: if test "$PHP_INTL" = "yes" && test "$PHP_INTL_SHARED" != "yes"; then
27196: other_flags="$other_flags -DSQLITE_ENABLE_ICU=1"
27197: fi
27198:
27199: PHP_SQLITE3_CFLAGS="-I@ext_srcdir@/libsqlite $other_flags $threadsafe_flags $debug_flags"
27200:
27201:
27202: for header_file in ext/sqlite3/libsqlite/sqlite3.h; do
27203:
27204:
27205: unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
27206:
27207: cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
27208: if test -n "$unique" && test "`eval $cmd`" = "" ; then
27209: eval "INSTALLHEADERS$unique=set"
27210:
27211: INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
27212:
27213: fi
27214:
27215: done
27216:
27217:
27218: fi
27219:
27220:
27221: $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
27222:
27223:
27224: sqlite3_sources="sqlite3.c $sqlite3_extra_sources"
27225:
27226:
27227: ext_builddir=ext/sqlite3
27228: ext_srcdir=$abs_srcdir/ext/sqlite3
27229:
27230: ac_extra=`echo "$PHP_SQLITE3_CFLAGS"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
27231:
27232: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
27233: PHP_SQLITE3_SHARED=no
27234:
27235:
27236: case ext/sqlite3 in
27237: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
27238: /*) ac_srcdir=`echo "ext/sqlite3"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
27239: *) ac_srcdir="$abs_srcdir/ext/sqlite3/"; ac_bdir="ext/sqlite3/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
27240: esac
27241:
27242:
27243:
27244: b_c_pre=$php_c_pre
27245: b_cxx_pre=$php_cxx_pre
27246: b_c_meta=$php_c_meta
27247: b_cxx_meta=$php_cxx_meta
27248: b_c_post=$php_c_post
27249: b_cxx_post=$php_cxx_post
27250: b_lo=$php_lo
27251:
27252:
27253: old_IFS=$IFS
27254: for ac_src in $sqlite3_sources; do
27255:
27256: IFS=.
27257: set $ac_src
27258: ac_obj=$1
27259: IFS=$old_IFS
27260:
27261: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
27262:
27263: case $ac_src in
27264: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
27265: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
27266: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
27267: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
27268: esac
27269:
27270: cat >>Makefile.objects<<EOF
27271: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
27272: $ac_comp
27273: EOF
27274: done
27275:
27276:
27277: EXT_STATIC="$EXT_STATIC sqlite3"
27278: if test "$ext_shared" != "nocli"; then
27279: EXT_CLI_STATIC="$EXT_CLI_STATIC sqlite3"
27280: fi
27281: else
27282: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
27283: PHP_SQLITE3_SHARED=yes
27284:
27285: case ext/sqlite3 in
27286: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
27287: /*) ac_srcdir=`echo "ext/sqlite3"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
27288: *) ac_srcdir="$abs_srcdir/ext/sqlite3/"; ac_bdir="ext/sqlite3/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
27289: esac
27290:
27291:
27292:
27293: b_c_pre=$shared_c_pre
27294: b_cxx_pre=$shared_cxx_pre
27295: b_c_meta=$shared_c_meta
27296: b_cxx_meta=$shared_cxx_meta
27297: b_c_post=$shared_c_post
27298: b_cxx_post=$shared_cxx_post
27299: b_lo=$shared_lo
27300:
27301:
27302: old_IFS=$IFS
27303: for ac_src in $sqlite3_sources; do
27304:
27305: IFS=.
27306: set $ac_src
27307: ac_obj=$1
27308: IFS=$old_IFS
27309:
27310: shared_objects_sqlite3="$shared_objects_sqlite3 $ac_bdir$ac_obj.lo"
27311:
27312: case $ac_src in
27313: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
27314: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
27315: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
27316: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
27317: esac
27318:
27319: cat >>Makefile.objects<<EOF
27320: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
27321: $ac_comp
27322: EOF
27323: done
27324:
27325: case $host_alias in
27326: *netware*)
27327:
27328: install_modules="install-modules"
27329:
27330: case $host_alias in
27331: *aix*)
27332: suffix=so
27333: 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'
27334: ;;
27335: *netware*)
27336: suffix=nlm
27337: link_cmd='$(LIBTOOL) --mode=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)'
27338: ;;
27339: *)
27340: suffix=la
27341: link_cmd='$(LIBTOOL) --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)'
27342: ;;
27343: esac
27344:
27345: if test "x" = "xyes"; then
27346: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpsqlite3.$suffix"
27347: else
27348: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpsqlite3.$suffix"
27349: fi
27350:
27351: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_sqlite3"
27352:
27353: cat >>Makefile.objects<<EOF
27354: \$(phplibdir)/phpsqlite3.$suffix: $ext_builddir/phpsqlite3.$suffix
27355: \$(LIBTOOL) --mode=install cp $ext_builddir/phpsqlite3.$suffix \$(phplibdir)
27356:
27357: $ext_builddir/phpsqlite3.$suffix: \$(shared_objects_sqlite3) \$(PHPSQLITE3_SHARED_DEPENDENCIES)
27358: $link_cmd
27359:
27360: EOF
27361:
27362: ;;
27363: *)
27364:
27365: install_modules="install-modules"
27366:
27367: case $host_alias in
27368: *aix*)
27369: suffix=so
27370: 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'
27371: ;;
27372: *netware*)
27373: suffix=nlm
27374: link_cmd='$(LIBTOOL) --mode=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)'
27375: ;;
27376: *)
27377: suffix=la
27378: link_cmd='$(LIBTOOL) --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)'
27379: ;;
27380: esac
27381:
27382: if test "x" = "xyes"; then
27383: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/sqlite3.$suffix"
27384: else
27385: PHP_MODULES="$PHP_MODULES \$(phplibdir)/sqlite3.$suffix"
27386: fi
27387:
27388: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_sqlite3"
27389:
27390: cat >>Makefile.objects<<EOF
27391: \$(phplibdir)/sqlite3.$suffix: $ext_builddir/sqlite3.$suffix
27392: \$(LIBTOOL) --mode=install cp $ext_builddir/sqlite3.$suffix \$(phplibdir)
27393:
27394: $ext_builddir/sqlite3.$suffix: \$(shared_objects_sqlite3) \$(SQLITE3_SHARED_DEPENDENCIES)
27395: $link_cmd
27396:
27397: EOF
27398:
27399: ;;
27400: esac
27401:
27402: cat >>confdefs.h <<_ACEOF
27403: #define COMPILE_DL_SQLITE3 1
27404: _ACEOF
27405:
27406: fi
27407: fi
27408:
27409: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
27410: PHP_SQLITE3_SHARED=no
27411:
27412:
27413: case ext/sqlite3 in
27414: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
27415: /*) ac_srcdir=`echo "ext/sqlite3"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
27416: *) ac_srcdir="$abs_srcdir/ext/sqlite3/"; ac_bdir="ext/sqlite3/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
27417: esac
27418:
27419:
27420:
27421: b_c_pre=$php_c_pre
27422: b_cxx_pre=$php_cxx_pre
27423: b_c_meta=$php_c_meta
27424: b_cxx_meta=$php_cxx_meta
27425: b_c_post=$php_c_post
27426: b_cxx_post=$php_cxx_post
27427: b_lo=$php_lo
27428:
27429:
27430: old_IFS=$IFS
27431: for ac_src in $sqlite3_sources; do
27432:
27433: IFS=.
27434: set $ac_src
27435: ac_obj=$1
27436: IFS=$old_IFS
27437:
27438: PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
27439:
27440: case $ac_src in
27441: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
27442: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
27443: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
27444: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
27445: esac
27446:
27447: cat >>Makefile.objects<<EOF
27448: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
27449: $ac_comp
27450: EOF
27451: done
27452:
27453:
27454:
27455:
27456: case ext/sqlite3 in
27457: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
27458: /*) ac_srcdir=`echo "ext/sqlite3"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
27459: *) ac_srcdir="$abs_srcdir/ext/sqlite3/"; ac_bdir="ext/sqlite3/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
27460: esac
27461:
27462:
27463:
27464: b_c_pre=$php_c_pre
27465: b_cxx_pre=$php_cxx_pre
27466: b_c_meta=$php_c_meta
27467: b_cxx_meta=$php_cxx_meta
27468: b_c_post=$php_c_post
27469: b_cxx_post=$php_cxx_post
27470: b_lo=$php_lo
27471:
27472:
27473: old_IFS=$IFS
27474: for ac_src in $sqlite3_sources; do
27475:
27476: IFS=.
27477: set $ac_src
27478: ac_obj=$1
27479: IFS=$old_IFS
27480:
27481: PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo"
27482:
27483: case $ac_src in
27484: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
27485: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
27486: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
27487: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
27488: esac
27489:
27490: cat >>Makefile.objects<<EOF
27491: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
27492: $ac_comp
27493: EOF
27494: done
27495:
27496:
27497:
27498:
27499: case ext/sqlite3 in
27500: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
27501: /*) ac_srcdir=`echo "ext/sqlite3"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
27502: *) ac_srcdir="$abs_srcdir/ext/sqlite3/"; ac_bdir="ext/sqlite3/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
27503: esac
27504:
27505:
27506:
27507: b_c_pre=$php_c_pre
27508: b_cxx_pre=$php_cxx_pre
27509: b_c_meta=$php_c_meta
27510: b_cxx_meta=$php_cxx_meta
27511: b_c_post=$php_c_post
27512: b_cxx_post=$php_cxx_post
27513: b_lo=$php_lo
27514:
27515:
27516: old_IFS=$IFS
27517: for ac_src in $sqlite3_sources; do
27518:
27519: IFS=.
27520: set $ac_src
27521: ac_obj=$1
27522: IFS=$old_IFS
27523:
27524: PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo"
27525:
27526: case $ac_src in
27527: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
27528: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
27529: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
27530: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
27531: esac
27532:
27533: cat >>Makefile.objects<<EOF
27534: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
27535: $ac_comp
27536: EOF
27537: done
27538:
27539:
27540: EXT_CLI_STATIC="$EXT_CLI_STATIC sqlite3"
27541: fi
27542:
27543:
27544: BUILD_DIR="$BUILD_DIR $ext_builddir"
27545:
27546:
27547:
27548: if test "$ext_builddir" = "."; then
27549: PHP_PECL_EXTENSION=sqlite3
27550:
27551: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
27552:
27553: fi
27554:
27555:
27556:
27557: BUILD_DIR="$BUILD_DIR $ext_builddir/libsqlite"
27558:
27559:
27560:
27561: PHP_VAR_SUBST="$PHP_VAR_SUBST SQLITE3_SHARED_LIBADD"
27562:
27563: fi
27564:
27565:
27566:
27567: php_with_zlib=no
27568:
27569: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB support" >&5
27570: $as_echo_n "checking for ZLIB support... " >&6; }
27571:
27572: # Check whether --with-zlib was given.
27573: if test "${with_zlib+set}" = set; then :
27574: withval=$with_zlib; PHP_ZLIB=$withval
27575: else
27576:
27577: PHP_ZLIB=no
27578: test "$PHP_ENABLE_ALL" && PHP_ZLIB=$PHP_ENABLE_ALL
27579:
27580: fi
27581:
27582:
27583:
27584: ext_output="yes, shared"
27585: ext_shared=yes
27586: case $PHP_ZLIB in
27587: shared,*)
27588: PHP_ZLIB=`echo "$PHP_ZLIB"|$SED 's/^shared,//'`
27589: ;;
27590: shared)
27591: PHP_ZLIB=yes
27592: ;;
27593: no)
27594: ext_output=no
27595: ext_shared=no
27596: ;;
27597: *)
27598: ext_output=yes
27599: ext_shared=no
27600: ;;
27601: esac
27602:
27603:
27604:
27605: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
27606: $as_echo "$ext_output" >&6; }
27607:
27608:
27609:
27610:
27611:
27612: php_with_zlib_dir=no
27613:
27614: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the location of ZLIB install directory is defined" >&5
27615: $as_echo_n "checking if the location of ZLIB install directory is defined... " >&6; }
27616:
27617: # Check whether --with-zlib-dir was given.
27618: if test "${with_zlib_dir+set}" = set; then :
27619: withval=$with_zlib_dir; PHP_ZLIB_DIR=$withval
27620: else
27621:
27622: PHP_ZLIB_DIR=no
27623:
27624:
27625: fi
27626:
27627:
27628: ext_output=$PHP_ZLIB_DIR
27629: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
27630: $as_echo "$ext_output" >&6; }
27631:
27632:
27633:
27634:
27635: if test "$PHP_ZLIB" != "no"; then
27636:
27637: ext_builddir=ext/zlib
27638: ext_srcdir=$abs_srcdir/ext/zlib
27639:
27640: ac_extra=
27641:
27642: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
27643: PHP_ZLIB_SHARED=no
27644:
27645:
27646: case ext/zlib in
27647: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
27648: /*) ac_srcdir=`echo "ext/zlib"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
27649: *) ac_srcdir="$abs_srcdir/ext/zlib/"; ac_bdir="ext/zlib/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
27650: esac
27651:
27652:
27653:
27654: b_c_pre=$php_c_pre
27655: b_cxx_pre=$php_cxx_pre
27656: b_c_meta=$php_c_meta
27657: b_cxx_meta=$php_cxx_meta
27658: b_c_post=$php_c_post
27659: b_cxx_post=$php_cxx_post
27660: b_lo=$php_lo
27661:
27662:
27663: old_IFS=$IFS
27664: for ac_src in zlib.c zlib_fopen_wrapper.c zlib_filter.c; do
27665:
27666: IFS=.
27667: set $ac_src
27668: ac_obj=$1
27669: IFS=$old_IFS
27670:
27671: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
27672:
27673: case $ac_src in
27674: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
27675: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
27676: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
27677: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
27678: esac
27679:
27680: cat >>Makefile.objects<<EOF
27681: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
27682: $ac_comp
27683: EOF
27684: done
27685:
27686:
27687: EXT_STATIC="$EXT_STATIC zlib"
27688: if test "$ext_shared" != "nocli"; then
27689: EXT_CLI_STATIC="$EXT_CLI_STATIC zlib"
27690: fi
27691: else
27692: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
27693: PHP_ZLIB_SHARED=yes
27694:
27695: case ext/zlib in
27696: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
27697: /*) ac_srcdir=`echo "ext/zlib"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
27698: *) ac_srcdir="$abs_srcdir/ext/zlib/"; ac_bdir="ext/zlib/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
27699: esac
27700:
27701:
27702:
27703: b_c_pre=$shared_c_pre
27704: b_cxx_pre=$shared_cxx_pre
27705: b_c_meta=$shared_c_meta
27706: b_cxx_meta=$shared_cxx_meta
27707: b_c_post=$shared_c_post
27708: b_cxx_post=$shared_cxx_post
27709: b_lo=$shared_lo
27710:
27711:
27712: old_IFS=$IFS
27713: for ac_src in zlib.c zlib_fopen_wrapper.c zlib_filter.c; do
27714:
27715: IFS=.
27716: set $ac_src
27717: ac_obj=$1
27718: IFS=$old_IFS
27719:
27720: shared_objects_zlib="$shared_objects_zlib $ac_bdir$ac_obj.lo"
27721:
27722: case $ac_src in
27723: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
27724: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
27725: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
27726: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
27727: esac
27728:
27729: cat >>Makefile.objects<<EOF
27730: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
27731: $ac_comp
27732: EOF
27733: done
27734:
27735: case $host_alias in
27736: *netware*)
27737:
27738: install_modules="install-modules"
27739:
27740: case $host_alias in
27741: *aix*)
27742: suffix=so
27743: 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'
27744: ;;
27745: *netware*)
27746: suffix=nlm
27747: link_cmd='$(LIBTOOL) --mode=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)'
27748: ;;
27749: *)
27750: suffix=la
27751: link_cmd='$(LIBTOOL) --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)'
27752: ;;
27753: esac
27754:
27755: if test "x" = "xyes"; then
27756: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpzlib.$suffix"
27757: else
27758: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpzlib.$suffix"
27759: fi
27760:
27761: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_zlib"
27762:
27763: cat >>Makefile.objects<<EOF
27764: \$(phplibdir)/phpzlib.$suffix: $ext_builddir/phpzlib.$suffix
27765: \$(LIBTOOL) --mode=install cp $ext_builddir/phpzlib.$suffix \$(phplibdir)
27766:
27767: $ext_builddir/phpzlib.$suffix: \$(shared_objects_zlib) \$(PHPZLIB_SHARED_DEPENDENCIES)
27768: $link_cmd
27769:
27770: EOF
27771:
27772: ;;
27773: *)
27774:
27775: install_modules="install-modules"
27776:
27777: case $host_alias in
27778: *aix*)
27779: suffix=so
27780: 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'
27781: ;;
27782: *netware*)
27783: suffix=nlm
27784: link_cmd='$(LIBTOOL) --mode=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)'
27785: ;;
27786: *)
27787: suffix=la
27788: link_cmd='$(LIBTOOL) --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)'
27789: ;;
27790: esac
27791:
27792: if test "x" = "xyes"; then
27793: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/zlib.$suffix"
27794: else
27795: PHP_MODULES="$PHP_MODULES \$(phplibdir)/zlib.$suffix"
27796: fi
27797:
27798: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_zlib"
27799:
27800: cat >>Makefile.objects<<EOF
27801: \$(phplibdir)/zlib.$suffix: $ext_builddir/zlib.$suffix
27802: \$(LIBTOOL) --mode=install cp $ext_builddir/zlib.$suffix \$(phplibdir)
27803:
27804: $ext_builddir/zlib.$suffix: \$(shared_objects_zlib) \$(ZLIB_SHARED_DEPENDENCIES)
27805: $link_cmd
27806:
27807: EOF
27808:
27809: ;;
27810: esac
27811:
27812: cat >>confdefs.h <<_ACEOF
27813: #define COMPILE_DL_ZLIB 1
27814: _ACEOF
27815:
27816: fi
27817: fi
27818:
27819: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
27820: PHP_ZLIB_SHARED=no
27821:
27822:
27823: case ext/zlib in
27824: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
27825: /*) ac_srcdir=`echo "ext/zlib"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
27826: *) ac_srcdir="$abs_srcdir/ext/zlib/"; ac_bdir="ext/zlib/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
27827: esac
27828:
27829:
27830:
27831: b_c_pre=$php_c_pre
27832: b_cxx_pre=$php_cxx_pre
27833: b_c_meta=$php_c_meta
27834: b_cxx_meta=$php_cxx_meta
27835: b_c_post=$php_c_post
27836: b_cxx_post=$php_cxx_post
27837: b_lo=$php_lo
27838:
27839:
27840: old_IFS=$IFS
27841: for ac_src in zlib.c zlib_fopen_wrapper.c zlib_filter.c; do
27842:
27843: IFS=.
27844: set $ac_src
27845: ac_obj=$1
27846: IFS=$old_IFS
27847:
27848: PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
27849:
27850: case $ac_src in
27851: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
27852: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
27853: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
27854: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
27855: esac
27856:
27857: cat >>Makefile.objects<<EOF
27858: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
27859: $ac_comp
27860: EOF
27861: done
27862:
27863:
27864:
27865:
27866: case ext/zlib in
27867: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
27868: /*) ac_srcdir=`echo "ext/zlib"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
27869: *) ac_srcdir="$abs_srcdir/ext/zlib/"; ac_bdir="ext/zlib/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
27870: esac
27871:
27872:
27873:
27874: b_c_pre=$php_c_pre
27875: b_cxx_pre=$php_cxx_pre
27876: b_c_meta=$php_c_meta
27877: b_cxx_meta=$php_cxx_meta
27878: b_c_post=$php_c_post
27879: b_cxx_post=$php_cxx_post
27880: b_lo=$php_lo
27881:
27882:
27883: old_IFS=$IFS
27884: for ac_src in zlib.c zlib_fopen_wrapper.c zlib_filter.c; do
27885:
27886: IFS=.
27887: set $ac_src
27888: ac_obj=$1
27889: IFS=$old_IFS
27890:
27891: PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo"
27892:
27893: case $ac_src in
27894: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
27895: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
27896: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
27897: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
27898: esac
27899:
27900: cat >>Makefile.objects<<EOF
27901: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
27902: $ac_comp
27903: EOF
27904: done
27905:
27906:
27907:
27908:
27909: case ext/zlib in
27910: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
27911: /*) ac_srcdir=`echo "ext/zlib"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
27912: *) ac_srcdir="$abs_srcdir/ext/zlib/"; ac_bdir="ext/zlib/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
27913: esac
27914:
27915:
27916:
27917: b_c_pre=$php_c_pre
27918: b_cxx_pre=$php_cxx_pre
27919: b_c_meta=$php_c_meta
27920: b_cxx_meta=$php_cxx_meta
27921: b_c_post=$php_c_post
27922: b_cxx_post=$php_cxx_post
27923: b_lo=$php_lo
27924:
27925:
27926: old_IFS=$IFS
27927: for ac_src in zlib.c zlib_fopen_wrapper.c zlib_filter.c; do
27928:
27929: IFS=.
27930: set $ac_src
27931: ac_obj=$1
27932: IFS=$old_IFS
27933:
27934: PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo"
27935:
27936: case $ac_src in
27937: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
27938: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
27939: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
27940: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
27941: esac
27942:
27943: cat >>Makefile.objects<<EOF
27944: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
27945: $ac_comp
27946: EOF
27947: done
27948:
27949:
27950: EXT_CLI_STATIC="$EXT_CLI_STATIC zlib"
27951: fi
27952:
27953:
27954: BUILD_DIR="$BUILD_DIR $ext_builddir"
27955:
27956:
27957:
27958: if test "$ext_builddir" = "."; then
27959: PHP_PECL_EXTENSION=zlib
27960:
27961: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
27962:
27963: fi
27964:
27965:
27966: PHP_VAR_SUBST="$PHP_VAR_SUBST ZLIB_SHARED_LIBADD"
27967:
27968:
27969: if test "$PHP_ZLIB" != "yes" -a "$PHP_ZLIB" != "no"; then
27970: if test -f $PHP_ZLIB/include/zlib/zlib.h; then
27971: ZLIB_DIR=$PHP_ZLIB
27972: ZLIB_INCDIR=$ZLIB_DIR/include/zlib
27973: elif test -f $PHP_ZLIB/include/zlib.h; then
27974: ZLIB_DIR=$PHP_ZLIB
27975: ZLIB_INCDIR=$ZLIB_DIR/include
27976: fi
27977: else
27978: for i in /usr/local /usr $PHP_ZLIB_DIR; do
27979: if test -f $i/include/zlib/zlib.h; then
27980: ZLIB_DIR=$i
27981: ZLIB_INCDIR=$i/include/zlib
27982: elif test -f $i/include/zlib.h; then
27983: ZLIB_DIR=$i
27984: ZLIB_INCDIR=$i/include
27985: fi
27986: done
27987: fi
27988:
27989: if test -z "$ZLIB_DIR"; then
27990: as_fn_error $? "Cannot find libz" "$LINENO" 5
27991: fi
27992:
27993: case $ZLIB_DIR in
27994: /usr) ac_extra= ;;
27995: *) ac_extra=-L$ZLIB_DIR/$PHP_LIBDIR ;;
27996: esac
27997:
27998:
27999: save_old_LDFLAGS=$LDFLAGS
28000: ac_stuff="
28001: $ac_extra
28002: "
28003:
28004: save_ext_shared=$ext_shared
28005: ext_shared=yes
28006:
28007: for ac_i in $ac_stuff; do
28008: case $ac_i in
28009: -pthread)
28010: if test "$ext_shared" = "yes"; then
28011: LDFLAGS="$LDFLAGS -pthread"
28012: else
28013:
28014:
28015: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
28016:
28017: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
28018: if test -n "$unique" && test "`eval $cmd`" = "" ; then
28019: eval "EXTRA_LDFLAGS$unique=set"
28020: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
28021: fi
28022:
28023: fi
28024: ;;
28025: -l*)
28026: ac_ii=`echo $ac_i|cut -c 3-`
28027:
28028:
28029: case $ac_ii in
28030: c|c_r|pthread*) ;;
28031: *)
28032: if test "$ext_shared" = "yes"; then
28033: LDFLAGS="$LDFLAGS -l$ac_ii"
28034: else
28035:
28036:
28037: case $ac_ii in
28038: c|c_r|pthread*) ;;
28039: *)
28040: LIBS="$LIBS -l$ac_ii"
28041: ;;
28042: esac
28043:
28044:
28045: fi
28046: ;;
28047: esac
28048:
28049:
28050: ;;
28051: -L*)
28052: ac_ii=`echo $ac_i|cut -c 3-`
28053:
28054: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
28055:
28056: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
28057: ai_p=$ac_ii
28058: else
28059:
28060: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
28061:
28062: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
28063: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
28064: fi
28065:
28066:
28067: if test "$ext_shared" = "yes"; then
28068: LDFLAGS="-L$ai_p $LDFLAGS"
28069: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
28070: else
28071:
28072:
28073:
28074: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
28075:
28076: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
28077: if test -n "$unique" && test "`eval $cmd`" = "" ; then
28078: eval "LIBPATH$unique=set"
28079:
28080: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
28081: LDFLAGS="$LDFLAGS -L$ai_p"
28082: PHP_RPATHS="$PHP_RPATHS $ai_p"
28083:
28084: fi
28085:
28086:
28087: fi
28088:
28089: fi
28090:
28091: ;;
28092: esac
28093: done
28094:
28095: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzgets in -lz" >&5
28096: $as_echo_n "checking for gzgets in -lz... " >&6; }
28097: if ${ac_cv_lib_z_gzgets+:} false; then :
28098: $as_echo_n "(cached) " >&6
28099: else
28100: ac_check_lib_save_LIBS=$LIBS
28101: LIBS="-lz $LIBS"
28102: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28103: /* end confdefs.h. */
28104:
28105: /* Override any GCC internal prototype to avoid an error.
28106: Use char because int might match the return type of a GCC
28107: builtin and then its argument prototype would still apply. */
28108: #ifdef __cplusplus
28109: extern "C"
28110: #endif
28111: char gzgets ();
28112: int
28113: main ()
28114: {
28115: return gzgets ();
28116: ;
28117: return 0;
28118: }
28119: _ACEOF
28120: if ac_fn_c_try_link "$LINENO"; then :
28121: ac_cv_lib_z_gzgets=yes
28122: else
28123: ac_cv_lib_z_gzgets=no
28124: fi
28125: rm -f core conftest.err conftest.$ac_objext \
28126: conftest$ac_exeext conftest.$ac_ext
28127: LIBS=$ac_check_lib_save_LIBS
28128: fi
28129: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzgets" >&5
28130: $as_echo "$ac_cv_lib_z_gzgets" >&6; }
28131: if test "x$ac_cv_lib_z_gzgets" = xyes; then :
28132:
28133: LDFLAGS=$save_old_LDFLAGS
28134: ext_shared=$save_ext_shared
28135:
28136:
28137: $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
28138:
28139:
28140:
28141: else
28142:
28143: LDFLAGS=$save_old_LDFLAGS
28144: ext_shared=$save_ext_shared
28145: unset ac_cv_lib_z_gzgets
28146:
28147: as_fn_error $? "ZLIB extension requires zlib >= 1.0.9" "$LINENO" 5
28148:
28149:
28150: fi
28151:
28152:
28153:
28154: if test "$ZLIB_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$ZLIB_DIR/$PHP_LIBDIR" != "/usr/lib"; then
28155:
28156: if test -z "$ZLIB_DIR/$PHP_LIBDIR" || echo "$ZLIB_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
28157: ai_p=$ZLIB_DIR/$PHP_LIBDIR
28158: else
28159:
28160: ep_dir="`echo $ZLIB_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
28161:
28162: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
28163: ai_p="$ep_realdir/`basename \"$ZLIB_DIR/$PHP_LIBDIR\"`"
28164: fi
28165:
28166:
28167: if test "$ext_shared" = "yes"; then
28168: ZLIB_SHARED_LIBADD="-L$ai_p $ZLIB_SHARED_LIBADD"
28169: test -n "$ld_runpath_switch" && ZLIB_SHARED_LIBADD="$ld_runpath_switch$ai_p $ZLIB_SHARED_LIBADD"
28170: else
28171:
28172:
28173:
28174: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
28175:
28176: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
28177: if test -n "$unique" && test "`eval $cmd`" = "" ; then
28178: eval "LIBPATH$unique=set"
28179:
28180: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
28181: LDFLAGS="$LDFLAGS -L$ai_p"
28182: PHP_RPATHS="$PHP_RPATHS $ai_p"
28183:
28184: fi
28185:
28186:
28187: fi
28188:
28189: fi
28190:
28191:
28192: PHP_ZLIB_DIR=$ZLIB_DIR
28193:
28194:
28195: case z in
28196: c|c_r|pthread*) ;;
28197: *)
28198: if test "$ext_shared" = "yes"; then
28199: ZLIB_SHARED_LIBADD="-lz $ZLIB_SHARED_LIBADD"
28200: else
28201:
28202:
28203: case z in
28204: c|c_r|pthread*) ;;
28205: *)
28206: LIBS="-lz $LIBS"
28207: ;;
28208: esac
28209:
28210:
28211: fi
28212: ;;
28213: esac
28214:
28215:
28216:
28217: if test "$ZLIB_INCDIR" != "/usr/include"; then
28218:
28219: if test -z "$ZLIB_INCDIR" || echo "$ZLIB_INCDIR" | grep '^/' >/dev/null ; then
28220: ai_p=$ZLIB_INCDIR
28221: else
28222:
28223: ep_dir="`echo $ZLIB_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`"
28224:
28225: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
28226: ai_p="$ep_realdir/`basename \"$ZLIB_INCDIR\"`"
28227: fi
28228:
28229:
28230:
28231: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
28232:
28233: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
28234: if test -n "$unique" && test "`eval $cmd`" = "" ; then
28235: eval "INCLUDEPATH$unique=set"
28236:
28237: if test ""; then
28238: INCLUDES="-I$ai_p $INCLUDES"
28239: else
28240: INCLUDES="$INCLUDES -I$ai_p"
28241: fi
28242:
28243: fi
28244:
28245: fi
28246:
28247:
28248: fi
28249:
28250:
28251:
28252: php_enable_bcmath=no
28253:
28254: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable bc style precision math functions" >&5
28255: $as_echo_n "checking whether to enable bc style precision math functions... " >&6; }
28256: # Check whether --enable-bcmath was given.
28257: if test "${enable_bcmath+set}" = set; then :
28258: enableval=$enable_bcmath; PHP_BCMATH=$enableval
28259: else
28260:
28261: PHP_BCMATH=no
28262: test "$PHP_ENABLE_ALL" && PHP_BCMATH=$PHP_ENABLE_ALL
28263:
28264: fi
28265:
28266:
28267:
28268: ext_output="yes, shared"
28269: ext_shared=yes
28270: case $PHP_BCMATH in
28271: shared,*)
28272: PHP_BCMATH=`echo "$PHP_BCMATH"|$SED 's/^shared,//'`
28273: ;;
28274: shared)
28275: PHP_BCMATH=yes
28276: ;;
28277: no)
28278: ext_output=no
28279: ext_shared=no
28280: ;;
28281: *)
28282: ext_output=yes
28283: ext_shared=no
28284: ;;
28285: esac
28286:
28287:
28288:
28289: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
28290: $as_echo "$ext_output" >&6; }
28291:
28292:
28293:
28294:
28295: if test "$PHP_BCMATH" != "no"; then
28296:
28297: ext_builddir=ext/bcmath
28298: ext_srcdir=$abs_srcdir/ext/bcmath
28299:
28300: ac_extra=`echo "-I@ext_srcdir@/libbcmath/src"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
28301:
28302: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
28303: PHP_BCMATH_SHARED=no
28304:
28305:
28306: case ext/bcmath in
28307: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
28308: /*) ac_srcdir=`echo "ext/bcmath"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
28309: *) ac_srcdir="$abs_srcdir/ext/bcmath/"; ac_bdir="ext/bcmath/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
28310: esac
28311:
28312:
28313:
28314: b_c_pre=$php_c_pre
28315: b_cxx_pre=$php_cxx_pre
28316: b_c_meta=$php_c_meta
28317: b_cxx_meta=$php_cxx_meta
28318: b_c_post=$php_c_post
28319: b_cxx_post=$php_cxx_post
28320: b_lo=$php_lo
28321:
28322:
28323: old_IFS=$IFS
28324: for ac_src in bcmath.c \
28325: 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 \
28326: libbcmath/src/compare.c libbcmath/src/divmod.c libbcmath/src/int2num.c libbcmath/src/num2long.c libbcmath/src/output.c libbcmath/src/recmul.c \
28327: 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 \
28328: libbcmath/src/rmzero.c libbcmath/src/str2num.c; do
28329:
28330: IFS=.
28331: set $ac_src
28332: ac_obj=$1
28333: IFS=$old_IFS
28334:
28335: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
28336:
28337: case $ac_src in
28338: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
28339: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
28340: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
28341: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
28342: esac
28343:
28344: cat >>Makefile.objects<<EOF
28345: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
28346: $ac_comp
28347: EOF
28348: done
28349:
28350:
28351: EXT_STATIC="$EXT_STATIC bcmath"
28352: if test "$ext_shared" != "nocli"; then
28353: EXT_CLI_STATIC="$EXT_CLI_STATIC bcmath"
28354: fi
28355: else
28356: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
28357: PHP_BCMATH_SHARED=yes
28358:
28359: case ext/bcmath in
28360: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
28361: /*) ac_srcdir=`echo "ext/bcmath"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
28362: *) ac_srcdir="$abs_srcdir/ext/bcmath/"; ac_bdir="ext/bcmath/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
28363: esac
28364:
28365:
28366:
28367: b_c_pre=$shared_c_pre
28368: b_cxx_pre=$shared_cxx_pre
28369: b_c_meta=$shared_c_meta
28370: b_cxx_meta=$shared_cxx_meta
28371: b_c_post=$shared_c_post
28372: b_cxx_post=$shared_cxx_post
28373: b_lo=$shared_lo
28374:
28375:
28376: old_IFS=$IFS
28377: for ac_src in bcmath.c \
28378: 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 \
28379: libbcmath/src/compare.c libbcmath/src/divmod.c libbcmath/src/int2num.c libbcmath/src/num2long.c libbcmath/src/output.c libbcmath/src/recmul.c \
28380: 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 \
28381: libbcmath/src/rmzero.c libbcmath/src/str2num.c; do
28382:
28383: IFS=.
28384: set $ac_src
28385: ac_obj=$1
28386: IFS=$old_IFS
28387:
28388: shared_objects_bcmath="$shared_objects_bcmath $ac_bdir$ac_obj.lo"
28389:
28390: case $ac_src in
28391: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
28392: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
28393: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
28394: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
28395: esac
28396:
28397: cat >>Makefile.objects<<EOF
28398: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
28399: $ac_comp
28400: EOF
28401: done
28402:
28403: case $host_alias in
28404: *netware*)
28405:
28406: install_modules="install-modules"
28407:
28408: case $host_alias in
28409: *aix*)
28410: suffix=so
28411: 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'
28412: ;;
28413: *netware*)
28414: suffix=nlm
28415: link_cmd='$(LIBTOOL) --mode=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)'
28416: ;;
28417: *)
28418: suffix=la
28419: link_cmd='$(LIBTOOL) --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)'
28420: ;;
28421: esac
28422:
28423: if test "x" = "xyes"; then
28424: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpbcmath.$suffix"
28425: else
28426: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpbcmath.$suffix"
28427: fi
28428:
28429: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_bcmath"
28430:
28431: cat >>Makefile.objects<<EOF
28432: \$(phplibdir)/phpbcmath.$suffix: $ext_builddir/phpbcmath.$suffix
28433: \$(LIBTOOL) --mode=install cp $ext_builddir/phpbcmath.$suffix \$(phplibdir)
28434:
28435: $ext_builddir/phpbcmath.$suffix: \$(shared_objects_bcmath) \$(PHPBCMATH_SHARED_DEPENDENCIES)
28436: $link_cmd
28437:
28438: EOF
28439:
28440: ;;
28441: *)
28442:
28443: install_modules="install-modules"
28444:
28445: case $host_alias in
28446: *aix*)
28447: suffix=so
28448: 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'
28449: ;;
28450: *netware*)
28451: suffix=nlm
28452: link_cmd='$(LIBTOOL) --mode=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)'
28453: ;;
28454: *)
28455: suffix=la
28456: link_cmd='$(LIBTOOL) --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)'
28457: ;;
28458: esac
28459:
28460: if test "x" = "xyes"; then
28461: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/bcmath.$suffix"
28462: else
28463: PHP_MODULES="$PHP_MODULES \$(phplibdir)/bcmath.$suffix"
28464: fi
28465:
28466: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_bcmath"
28467:
28468: cat >>Makefile.objects<<EOF
28469: \$(phplibdir)/bcmath.$suffix: $ext_builddir/bcmath.$suffix
28470: \$(LIBTOOL) --mode=install cp $ext_builddir/bcmath.$suffix \$(phplibdir)
28471:
28472: $ext_builddir/bcmath.$suffix: \$(shared_objects_bcmath) \$(BCMATH_SHARED_DEPENDENCIES)
28473: $link_cmd
28474:
28475: EOF
28476:
28477: ;;
28478: esac
28479:
28480: cat >>confdefs.h <<_ACEOF
28481: #define COMPILE_DL_BCMATH 1
28482: _ACEOF
28483:
28484: fi
28485: fi
28486:
28487: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
28488: PHP_BCMATH_SHARED=no
28489:
28490:
28491: case ext/bcmath in
28492: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
28493: /*) ac_srcdir=`echo "ext/bcmath"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
28494: *) ac_srcdir="$abs_srcdir/ext/bcmath/"; ac_bdir="ext/bcmath/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
28495: esac
28496:
28497:
28498:
28499: b_c_pre=$php_c_pre
28500: b_cxx_pre=$php_cxx_pre
28501: b_c_meta=$php_c_meta
28502: b_cxx_meta=$php_cxx_meta
28503: b_c_post=$php_c_post
28504: b_cxx_post=$php_cxx_post
28505: b_lo=$php_lo
28506:
28507:
28508: old_IFS=$IFS
28509: for ac_src in bcmath.c \
28510: 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 \
28511: libbcmath/src/compare.c libbcmath/src/divmod.c libbcmath/src/int2num.c libbcmath/src/num2long.c libbcmath/src/output.c libbcmath/src/recmul.c \
28512: 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 \
28513: libbcmath/src/rmzero.c libbcmath/src/str2num.c; do
28514:
28515: IFS=.
28516: set $ac_src
28517: ac_obj=$1
28518: IFS=$old_IFS
28519:
28520: PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
28521:
28522: case $ac_src in
28523: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
28524: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
28525: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
28526: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
28527: esac
28528:
28529: cat >>Makefile.objects<<EOF
28530: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
28531: $ac_comp
28532: EOF
28533: done
28534:
28535:
28536:
28537:
28538: case ext/bcmath in
28539: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
28540: /*) ac_srcdir=`echo "ext/bcmath"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
28541: *) ac_srcdir="$abs_srcdir/ext/bcmath/"; ac_bdir="ext/bcmath/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
28542: esac
28543:
28544:
28545:
28546: b_c_pre=$php_c_pre
28547: b_cxx_pre=$php_cxx_pre
28548: b_c_meta=$php_c_meta
28549: b_cxx_meta=$php_cxx_meta
28550: b_c_post=$php_c_post
28551: b_cxx_post=$php_cxx_post
28552: b_lo=$php_lo
28553:
28554:
28555: old_IFS=$IFS
28556: for ac_src in bcmath.c \
28557: 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 \
28558: libbcmath/src/compare.c libbcmath/src/divmod.c libbcmath/src/int2num.c libbcmath/src/num2long.c libbcmath/src/output.c libbcmath/src/recmul.c \
28559: 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 \
28560: libbcmath/src/rmzero.c libbcmath/src/str2num.c; do
28561:
28562: IFS=.
28563: set $ac_src
28564: ac_obj=$1
28565: IFS=$old_IFS
28566:
28567: PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo"
28568:
28569: case $ac_src in
28570: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
28571: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
28572: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
28573: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
28574: esac
28575:
28576: cat >>Makefile.objects<<EOF
28577: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
28578: $ac_comp
28579: EOF
28580: done
28581:
28582:
28583:
28584:
28585: case ext/bcmath in
28586: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
28587: /*) ac_srcdir=`echo "ext/bcmath"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
28588: *) ac_srcdir="$abs_srcdir/ext/bcmath/"; ac_bdir="ext/bcmath/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
28589: esac
28590:
28591:
28592:
28593: b_c_pre=$php_c_pre
28594: b_cxx_pre=$php_cxx_pre
28595: b_c_meta=$php_c_meta
28596: b_cxx_meta=$php_cxx_meta
28597: b_c_post=$php_c_post
28598: b_cxx_post=$php_cxx_post
28599: b_lo=$php_lo
28600:
28601:
28602: old_IFS=$IFS
28603: for ac_src in bcmath.c \
28604: 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 \
28605: libbcmath/src/compare.c libbcmath/src/divmod.c libbcmath/src/int2num.c libbcmath/src/num2long.c libbcmath/src/output.c libbcmath/src/recmul.c \
28606: 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 \
28607: libbcmath/src/rmzero.c libbcmath/src/str2num.c; do
28608:
28609: IFS=.
28610: set $ac_src
28611: ac_obj=$1
28612: IFS=$old_IFS
28613:
28614: PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo"
28615:
28616: case $ac_src in
28617: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
28618: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
28619: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
28620: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
28621: esac
28622:
28623: cat >>Makefile.objects<<EOF
28624: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
28625: $ac_comp
28626: EOF
28627: done
28628:
28629:
28630: EXT_CLI_STATIC="$EXT_CLI_STATIC bcmath"
28631: fi
28632:
28633:
28634: BUILD_DIR="$BUILD_DIR $ext_builddir"
28635:
28636:
28637:
28638: if test "$ext_builddir" = "."; then
28639: PHP_PECL_EXTENSION=bcmath
28640:
28641: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
28642:
28643: fi
28644:
28645:
28646:
28647: BUILD_DIR="$BUILD_DIR $ext_builddir/libbcmath/src"
28648:
28649:
28650:
28651: $as_echo "#define HAVE_BCMATH 1" >>confdefs.h
28652:
28653: fi
28654:
28655:
28656:
28657: php_with_bz2=no
28658:
28659: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZip2 support" >&5
28660: $as_echo_n "checking for BZip2 support... " >&6; }
28661:
28662: # Check whether --with-bz2 was given.
28663: if test "${with_bz2+set}" = set; then :
28664: withval=$with_bz2; PHP_BZ2=$withval
28665: else
28666:
28667: PHP_BZ2=no
28668: test "$PHP_ENABLE_ALL" && PHP_BZ2=$PHP_ENABLE_ALL
28669:
28670: fi
28671:
28672:
28673:
28674: ext_output="yes, shared"
28675: ext_shared=yes
28676: case $PHP_BZ2 in
28677: shared,*)
28678: PHP_BZ2=`echo "$PHP_BZ2"|$SED 's/^shared,//'`
28679: ;;
28680: shared)
28681: PHP_BZ2=yes
28682: ;;
28683: no)
28684: ext_output=no
28685: ext_shared=no
28686: ;;
28687: *)
28688: ext_output=yes
28689: ext_shared=no
28690: ;;
28691: esac
28692:
28693:
28694:
28695: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
28696: $as_echo "$ext_output" >&6; }
28697:
28698:
28699:
28700:
28701: if test "$PHP_BZ2" != "no"; then
28702: if test -r $PHP_BZ2/include/bzlib.h; then
28703: BZIP_DIR=$PHP_BZ2
28704: else
28705: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZip2 in default path" >&5
28706: $as_echo_n "checking for BZip2 in default path... " >&6; }
28707: for i in /usr/local /usr; do
28708: if test -r $i/include/bzlib.h; then
28709: BZIP_DIR=$i
28710: { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $i" >&5
28711: $as_echo "found in $i" >&6; }
28712: break
28713: fi
28714: done
28715: fi
28716:
28717: if test -z "$BZIP_DIR"; then
28718: { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
28719: $as_echo "not found" >&6; }
28720: as_fn_error $? "Please reinstall the BZip2 distribution" "$LINENO" 5
28721: fi
28722:
28723:
28724: save_old_LDFLAGS=$LDFLAGS
28725: ac_stuff="
28726: -L$BZIP_DIR/$PHP_LIBDIR
28727: "
28728:
28729: save_ext_shared=$ext_shared
28730: ext_shared=yes
28731:
28732: for ac_i in $ac_stuff; do
28733: case $ac_i in
28734: -pthread)
28735: if test "$ext_shared" = "yes"; then
28736: LDFLAGS="$LDFLAGS -pthread"
28737: else
28738:
28739:
28740: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
28741:
28742: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
28743: if test -n "$unique" && test "`eval $cmd`" = "" ; then
28744: eval "EXTRA_LDFLAGS$unique=set"
28745: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
28746: fi
28747:
28748: fi
28749: ;;
28750: -l*)
28751: ac_ii=`echo $ac_i|cut -c 3-`
28752:
28753:
28754: case $ac_ii in
28755: c|c_r|pthread*) ;;
28756: *)
28757: if test "$ext_shared" = "yes"; then
28758: LDFLAGS="$LDFLAGS -l$ac_ii"
28759: else
28760:
28761:
28762: case $ac_ii in
28763: c|c_r|pthread*) ;;
28764: *)
28765: LIBS="$LIBS -l$ac_ii"
28766: ;;
28767: esac
28768:
28769:
28770: fi
28771: ;;
28772: esac
28773:
28774:
28775: ;;
28776: -L*)
28777: ac_ii=`echo $ac_i|cut -c 3-`
28778:
28779: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
28780:
28781: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
28782: ai_p=$ac_ii
28783: else
28784:
28785: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
28786:
28787: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
28788: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
28789: fi
28790:
28791:
28792: if test "$ext_shared" = "yes"; then
28793: LDFLAGS="-L$ai_p $LDFLAGS"
28794: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
28795: else
28796:
28797:
28798:
28799: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
28800:
28801: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
28802: if test -n "$unique" && test "`eval $cmd`" = "" ; then
28803: eval "LIBPATH$unique=set"
28804:
28805: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
28806: LDFLAGS="$LDFLAGS -L$ai_p"
28807: PHP_RPATHS="$PHP_RPATHS $ai_p"
28808:
28809: fi
28810:
28811:
28812: fi
28813:
28814: fi
28815:
28816: ;;
28817: esac
28818: done
28819:
28820: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzerror in -lbz2" >&5
28821: $as_echo_n "checking for BZ2_bzerror in -lbz2... " >&6; }
28822: if ${ac_cv_lib_bz2_BZ2_bzerror+:} false; then :
28823: $as_echo_n "(cached) " >&6
28824: else
28825: ac_check_lib_save_LIBS=$LIBS
28826: LIBS="-lbz2 $LIBS"
28827: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28828: /* end confdefs.h. */
28829:
28830: /* Override any GCC internal prototype to avoid an error.
28831: Use char because int might match the return type of a GCC
28832: builtin and then its argument prototype would still apply. */
28833: #ifdef __cplusplus
28834: extern "C"
28835: #endif
28836: char BZ2_bzerror ();
28837: int
28838: main ()
28839: {
28840: return BZ2_bzerror ();
28841: ;
28842: return 0;
28843: }
28844: _ACEOF
28845: if ac_fn_c_try_link "$LINENO"; then :
28846: ac_cv_lib_bz2_BZ2_bzerror=yes
28847: else
28848: ac_cv_lib_bz2_BZ2_bzerror=no
28849: fi
28850: rm -f core conftest.err conftest.$ac_objext \
28851: conftest$ac_exeext conftest.$ac_ext
28852: LIBS=$ac_check_lib_save_LIBS
28853: fi
28854: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzerror" >&5
28855: $as_echo "$ac_cv_lib_bz2_BZ2_bzerror" >&6; }
28856: if test "x$ac_cv_lib_bz2_BZ2_bzerror" = xyes; then :
28857:
28858: LDFLAGS=$save_old_LDFLAGS
28859: ext_shared=$save_ext_shared
28860:
28861:
28862: if test "$BZIP_DIR/include" != "/usr/include"; then
28863:
28864: if test -z "$BZIP_DIR/include" || echo "$BZIP_DIR/include" | grep '^/' >/dev/null ; then
28865: ai_p=$BZIP_DIR/include
28866: else
28867:
28868: ep_dir="`echo $BZIP_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
28869:
28870: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
28871: ai_p="$ep_realdir/`basename \"$BZIP_DIR/include\"`"
28872: fi
28873:
28874:
28875:
28876: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
28877:
28878: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
28879: if test -n "$unique" && test "`eval $cmd`" = "" ; then
28880: eval "INCLUDEPATH$unique=set"
28881:
28882: if test ""; then
28883: INCLUDES="-I$ai_p $INCLUDES"
28884: else
28885: INCLUDES="$INCLUDES -I$ai_p"
28886: fi
28887:
28888: fi
28889:
28890: fi
28891:
28892:
28893:
28894: if test "$ext_shared" = "yes"; then
28895: BZ2_SHARED_LIBADD="-lbz2 $BZ2_SHARED_LIBADD"
28896: if test -n "$BZIP_DIR/$PHP_LIBDIR"; then
28897:
28898: if test "$BZIP_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$BZIP_DIR/$PHP_LIBDIR" != "/usr/lib"; then
28899:
28900: if test -z "$BZIP_DIR/$PHP_LIBDIR" || echo "$BZIP_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
28901: ai_p=$BZIP_DIR/$PHP_LIBDIR
28902: else
28903:
28904: ep_dir="`echo $BZIP_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
28905:
28906: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
28907: ai_p="$ep_realdir/`basename \"$BZIP_DIR/$PHP_LIBDIR\"`"
28908: fi
28909:
28910:
28911: if test "$ext_shared" = "yes"; then
28912: BZ2_SHARED_LIBADD="-L$ai_p $BZ2_SHARED_LIBADD"
28913: test -n "$ld_runpath_switch" && BZ2_SHARED_LIBADD="$ld_runpath_switch$ai_p $BZ2_SHARED_LIBADD"
28914: else
28915:
28916:
28917:
28918: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
28919:
28920: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
28921: if test -n "$unique" && test "`eval $cmd`" = "" ; then
28922: eval "LIBPATH$unique=set"
28923:
28924: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
28925: LDFLAGS="$LDFLAGS -L$ai_p"
28926: PHP_RPATHS="$PHP_RPATHS $ai_p"
28927:
28928: fi
28929:
28930:
28931: fi
28932:
28933: fi
28934:
28935: fi
28936: else
28937:
28938:
28939: if test -n "$BZIP_DIR/$PHP_LIBDIR"; then
28940:
28941: if test "$BZIP_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$BZIP_DIR/$PHP_LIBDIR" != "/usr/lib"; then
28942:
28943: if test -z "$BZIP_DIR/$PHP_LIBDIR" || echo "$BZIP_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
28944: ai_p=$BZIP_DIR/$PHP_LIBDIR
28945: else
28946:
28947: ep_dir="`echo $BZIP_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
28948:
28949: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
28950: ai_p="$ep_realdir/`basename \"$BZIP_DIR/$PHP_LIBDIR\"`"
28951: fi
28952:
28953:
28954:
28955:
28956:
28957: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
28958:
28959: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
28960: if test -n "$unique" && test "`eval $cmd`" = "" ; then
28961: eval "LIBPATH$unique=set"
28962:
28963: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
28964: LDFLAGS="$LDFLAGS -L$ai_p"
28965: PHP_RPATHS="$PHP_RPATHS $ai_p"
28966:
28967: fi
28968:
28969:
28970:
28971: fi
28972:
28973: fi
28974:
28975:
28976: case bz2 in
28977: c|c_r|pthread*) ;;
28978: *)
28979: LIBS="-lbz2 $LIBS"
28980: ;;
28981: esac
28982:
28983:
28984:
28985:
28986: fi
28987:
28988:
28989:
28990: $as_echo "#define HAVE_BZ2 1" >>confdefs.h
28991:
28992:
28993:
28994: else
28995:
28996: LDFLAGS=$save_old_LDFLAGS
28997: ext_shared=$save_ext_shared
28998: unset ac_cv_lib_bz2_BZ2_bzerror
28999:
29000: as_fn_error $? "bz2 module requires libbz2 >= 1.0.0" "$LINENO" 5
29001:
29002:
29003: fi
29004:
29005:
29006:
29007: ext_builddir=ext/bz2
29008: ext_srcdir=$abs_srcdir/ext/bz2
29009:
29010: ac_extra=
29011:
29012: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
29013: PHP_BZ2_SHARED=no
29014:
29015:
29016: case ext/bz2 in
29017: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
29018: /*) ac_srcdir=`echo "ext/bz2"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
29019: *) ac_srcdir="$abs_srcdir/ext/bz2/"; ac_bdir="ext/bz2/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
29020: esac
29021:
29022:
29023:
29024: b_c_pre=$php_c_pre
29025: b_cxx_pre=$php_cxx_pre
29026: b_c_meta=$php_c_meta
29027: b_cxx_meta=$php_cxx_meta
29028: b_c_post=$php_c_post
29029: b_cxx_post=$php_cxx_post
29030: b_lo=$php_lo
29031:
29032:
29033: old_IFS=$IFS
29034: for ac_src in bz2.c bz2_filter.c; do
29035:
29036: IFS=.
29037: set $ac_src
29038: ac_obj=$1
29039: IFS=$old_IFS
29040:
29041: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
29042:
29043: case $ac_src in
29044: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
29045: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
29046: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
29047: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
29048: esac
29049:
29050: cat >>Makefile.objects<<EOF
29051: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
29052: $ac_comp
29053: EOF
29054: done
29055:
29056:
29057: EXT_STATIC="$EXT_STATIC bz2"
29058: if test "$ext_shared" != "nocli"; then
29059: EXT_CLI_STATIC="$EXT_CLI_STATIC bz2"
29060: fi
29061: else
29062: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
29063: PHP_BZ2_SHARED=yes
29064:
29065: case ext/bz2 in
29066: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
29067: /*) ac_srcdir=`echo "ext/bz2"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
29068: *) ac_srcdir="$abs_srcdir/ext/bz2/"; ac_bdir="ext/bz2/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
29069: esac
29070:
29071:
29072:
29073: b_c_pre=$shared_c_pre
29074: b_cxx_pre=$shared_cxx_pre
29075: b_c_meta=$shared_c_meta
29076: b_cxx_meta=$shared_cxx_meta
29077: b_c_post=$shared_c_post
29078: b_cxx_post=$shared_cxx_post
29079: b_lo=$shared_lo
29080:
29081:
29082: old_IFS=$IFS
29083: for ac_src in bz2.c bz2_filter.c; do
29084:
29085: IFS=.
29086: set $ac_src
29087: ac_obj=$1
29088: IFS=$old_IFS
29089:
29090: shared_objects_bz2="$shared_objects_bz2 $ac_bdir$ac_obj.lo"
29091:
29092: case $ac_src in
29093: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
29094: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
29095: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
29096: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
29097: esac
29098:
29099: cat >>Makefile.objects<<EOF
29100: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
29101: $ac_comp
29102: EOF
29103: done
29104:
29105: case $host_alias in
29106: *netware*)
29107:
29108: install_modules="install-modules"
29109:
29110: case $host_alias in
29111: *aix*)
29112: suffix=so
29113: 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'
29114: ;;
29115: *netware*)
29116: suffix=nlm
29117: link_cmd='$(LIBTOOL) --mode=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)'
29118: ;;
29119: *)
29120: suffix=la
29121: link_cmd='$(LIBTOOL) --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)'
29122: ;;
29123: esac
29124:
29125: if test "x" = "xyes"; then
29126: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpbz2.$suffix"
29127: else
29128: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpbz2.$suffix"
29129: fi
29130:
29131: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_bz2"
29132:
29133: cat >>Makefile.objects<<EOF
29134: \$(phplibdir)/phpbz2.$suffix: $ext_builddir/phpbz2.$suffix
29135: \$(LIBTOOL) --mode=install cp $ext_builddir/phpbz2.$suffix \$(phplibdir)
29136:
29137: $ext_builddir/phpbz2.$suffix: \$(shared_objects_bz2) \$(PHPBZ2_SHARED_DEPENDENCIES)
29138: $link_cmd
29139:
29140: EOF
29141:
29142: ;;
29143: *)
29144:
29145: install_modules="install-modules"
29146:
29147: case $host_alias in
29148: *aix*)
29149: suffix=so
29150: 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'
29151: ;;
29152: *netware*)
29153: suffix=nlm
29154: link_cmd='$(LIBTOOL) --mode=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)'
29155: ;;
29156: *)
29157: suffix=la
29158: link_cmd='$(LIBTOOL) --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)'
29159: ;;
29160: esac
29161:
29162: if test "x" = "xyes"; then
29163: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/bz2.$suffix"
29164: else
29165: PHP_MODULES="$PHP_MODULES \$(phplibdir)/bz2.$suffix"
29166: fi
29167:
29168: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_bz2"
29169:
29170: cat >>Makefile.objects<<EOF
29171: \$(phplibdir)/bz2.$suffix: $ext_builddir/bz2.$suffix
29172: \$(LIBTOOL) --mode=install cp $ext_builddir/bz2.$suffix \$(phplibdir)
29173:
29174: $ext_builddir/bz2.$suffix: \$(shared_objects_bz2) \$(BZ2_SHARED_DEPENDENCIES)
29175: $link_cmd
29176:
29177: EOF
29178:
29179: ;;
29180: esac
29181:
29182: cat >>confdefs.h <<_ACEOF
29183: #define COMPILE_DL_BZ2 1
29184: _ACEOF
29185:
29186: fi
29187: fi
29188:
29189: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
29190: PHP_BZ2_SHARED=no
29191:
29192:
29193: case ext/bz2 in
29194: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
29195: /*) ac_srcdir=`echo "ext/bz2"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
29196: *) ac_srcdir="$abs_srcdir/ext/bz2/"; ac_bdir="ext/bz2/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
29197: esac
29198:
29199:
29200:
29201: b_c_pre=$php_c_pre
29202: b_cxx_pre=$php_cxx_pre
29203: b_c_meta=$php_c_meta
29204: b_cxx_meta=$php_cxx_meta
29205: b_c_post=$php_c_post
29206: b_cxx_post=$php_cxx_post
29207: b_lo=$php_lo
29208:
29209:
29210: old_IFS=$IFS
29211: for ac_src in bz2.c bz2_filter.c; do
29212:
29213: IFS=.
29214: set $ac_src
29215: ac_obj=$1
29216: IFS=$old_IFS
29217:
29218: PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
29219:
29220: case $ac_src in
29221: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
29222: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
29223: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
29224: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
29225: esac
29226:
29227: cat >>Makefile.objects<<EOF
29228: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
29229: $ac_comp
29230: EOF
29231: done
29232:
29233:
29234:
29235:
29236: case ext/bz2 in
29237: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
29238: /*) ac_srcdir=`echo "ext/bz2"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
29239: *) ac_srcdir="$abs_srcdir/ext/bz2/"; ac_bdir="ext/bz2/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
29240: esac
29241:
29242:
29243:
29244: b_c_pre=$php_c_pre
29245: b_cxx_pre=$php_cxx_pre
29246: b_c_meta=$php_c_meta
29247: b_cxx_meta=$php_cxx_meta
29248: b_c_post=$php_c_post
29249: b_cxx_post=$php_cxx_post
29250: b_lo=$php_lo
29251:
29252:
29253: old_IFS=$IFS
29254: for ac_src in bz2.c bz2_filter.c; do
29255:
29256: IFS=.
29257: set $ac_src
29258: ac_obj=$1
29259: IFS=$old_IFS
29260:
29261: PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo"
29262:
29263: case $ac_src in
29264: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
29265: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
29266: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
29267: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
29268: esac
29269:
29270: cat >>Makefile.objects<<EOF
29271: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
29272: $ac_comp
29273: EOF
29274: done
29275:
29276:
29277:
29278:
29279: case ext/bz2 in
29280: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
29281: /*) ac_srcdir=`echo "ext/bz2"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
29282: *) ac_srcdir="$abs_srcdir/ext/bz2/"; ac_bdir="ext/bz2/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
29283: esac
29284:
29285:
29286:
29287: b_c_pre=$php_c_pre
29288: b_cxx_pre=$php_cxx_pre
29289: b_c_meta=$php_c_meta
29290: b_cxx_meta=$php_cxx_meta
29291: b_c_post=$php_c_post
29292: b_cxx_post=$php_cxx_post
29293: b_lo=$php_lo
29294:
29295:
29296: old_IFS=$IFS
29297: for ac_src in bz2.c bz2_filter.c; do
29298:
29299: IFS=.
29300: set $ac_src
29301: ac_obj=$1
29302: IFS=$old_IFS
29303:
29304: PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo"
29305:
29306: case $ac_src in
29307: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
29308: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
29309: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
29310: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
29311: esac
29312:
29313: cat >>Makefile.objects<<EOF
29314: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
29315: $ac_comp
29316: EOF
29317: done
29318:
29319:
29320: EXT_CLI_STATIC="$EXT_CLI_STATIC bz2"
29321: fi
29322:
29323:
29324: BUILD_DIR="$BUILD_DIR $ext_builddir"
29325:
29326:
29327:
29328: if test "$ext_builddir" = "."; then
29329: PHP_PECL_EXTENSION=bz2
29330:
29331: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
29332:
29333: fi
29334:
29335:
29336: PHP_VAR_SUBST="$PHP_VAR_SUBST BZ2_SHARED_LIBADD"
29337:
29338: fi
29339:
29340:
29341:
29342: php_enable_calendar=no
29343:
29344: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable calendar conversion support" >&5
29345: $as_echo_n "checking whether to enable calendar conversion support... " >&6; }
29346: # Check whether --enable-calendar was given.
29347: if test "${enable_calendar+set}" = set; then :
29348: enableval=$enable_calendar; PHP_CALENDAR=$enableval
29349: else
29350:
29351: PHP_CALENDAR=no
29352: test "$PHP_ENABLE_ALL" && PHP_CALENDAR=$PHP_ENABLE_ALL
29353:
29354: fi
29355:
29356:
29357:
29358: ext_output="yes, shared"
29359: ext_shared=yes
29360: case $PHP_CALENDAR in
29361: shared,*)
29362: PHP_CALENDAR=`echo "$PHP_CALENDAR"|$SED 's/^shared,//'`
29363: ;;
29364: shared)
29365: PHP_CALENDAR=yes
29366: ;;
29367: no)
29368: ext_output=no
29369: ext_shared=no
29370: ;;
29371: *)
29372: ext_output=yes
29373: ext_shared=no
29374: ;;
29375: esac
29376:
29377:
29378:
29379: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
29380: $as_echo "$ext_output" >&6; }
29381:
29382:
29383:
29384:
29385: if test "$PHP_CALENDAR" = "yes"; then
29386:
29387: $as_echo "#define HAVE_CALENDAR 1" >>confdefs.h
29388:
29389:
29390: ext_builddir=ext/calendar
29391: ext_srcdir=$abs_srcdir/ext/calendar
29392:
29393: ac_extra=
29394:
29395: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
29396: PHP_CALENDAR_SHARED=no
29397:
29398:
29399: case ext/calendar in
29400: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
29401: /*) ac_srcdir=`echo "ext/calendar"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
29402: *) ac_srcdir="$abs_srcdir/ext/calendar/"; ac_bdir="ext/calendar/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
29403: esac
29404:
29405:
29406:
29407: b_c_pre=$php_c_pre
29408: b_cxx_pre=$php_cxx_pre
29409: b_c_meta=$php_c_meta
29410: b_cxx_meta=$php_cxx_meta
29411: b_c_post=$php_c_post
29412: b_cxx_post=$php_cxx_post
29413: b_lo=$php_lo
29414:
29415:
29416: old_IFS=$IFS
29417: for ac_src in calendar.c dow.c french.c gregor.c jewish.c julian.c easter.c cal_unix.c; do
29418:
29419: IFS=.
29420: set $ac_src
29421: ac_obj=$1
29422: IFS=$old_IFS
29423:
29424: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
29425:
29426: case $ac_src in
29427: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
29428: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
29429: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
29430: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
29431: esac
29432:
29433: cat >>Makefile.objects<<EOF
29434: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
29435: $ac_comp
29436: EOF
29437: done
29438:
29439:
29440: EXT_STATIC="$EXT_STATIC calendar"
29441: if test "$ext_shared" != "nocli"; then
29442: EXT_CLI_STATIC="$EXT_CLI_STATIC calendar"
29443: fi
29444: else
29445: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
29446: PHP_CALENDAR_SHARED=yes
29447:
29448: case ext/calendar in
29449: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
29450: /*) ac_srcdir=`echo "ext/calendar"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
29451: *) ac_srcdir="$abs_srcdir/ext/calendar/"; ac_bdir="ext/calendar/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
29452: esac
29453:
29454:
29455:
29456: b_c_pre=$shared_c_pre
29457: b_cxx_pre=$shared_cxx_pre
29458: b_c_meta=$shared_c_meta
29459: b_cxx_meta=$shared_cxx_meta
29460: b_c_post=$shared_c_post
29461: b_cxx_post=$shared_cxx_post
29462: b_lo=$shared_lo
29463:
29464:
29465: old_IFS=$IFS
29466: for ac_src in calendar.c dow.c french.c gregor.c jewish.c julian.c easter.c cal_unix.c; do
29467:
29468: IFS=.
29469: set $ac_src
29470: ac_obj=$1
29471: IFS=$old_IFS
29472:
29473: shared_objects_calendar="$shared_objects_calendar $ac_bdir$ac_obj.lo"
29474:
29475: case $ac_src in
29476: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
29477: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
29478: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
29479: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
29480: esac
29481:
29482: cat >>Makefile.objects<<EOF
29483: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
29484: $ac_comp
29485: EOF
29486: done
29487:
29488: case $host_alias in
29489: *netware*)
29490:
29491: install_modules="install-modules"
29492:
29493: case $host_alias in
29494: *aix*)
29495: suffix=so
29496: 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'
29497: ;;
29498: *netware*)
29499: suffix=nlm
29500: link_cmd='$(LIBTOOL) --mode=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)'
29501: ;;
29502: *)
29503: suffix=la
29504: link_cmd='$(LIBTOOL) --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)'
29505: ;;
29506: esac
29507:
29508: if test "x" = "xyes"; then
29509: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpcalendar.$suffix"
29510: else
29511: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpcalendar.$suffix"
29512: fi
29513:
29514: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_calendar"
29515:
29516: cat >>Makefile.objects<<EOF
29517: \$(phplibdir)/phpcalendar.$suffix: $ext_builddir/phpcalendar.$suffix
29518: \$(LIBTOOL) --mode=install cp $ext_builddir/phpcalendar.$suffix \$(phplibdir)
29519:
29520: $ext_builddir/phpcalendar.$suffix: \$(shared_objects_calendar) \$(PHPCALENDAR_SHARED_DEPENDENCIES)
29521: $link_cmd
29522:
29523: EOF
29524:
29525: ;;
29526: *)
29527:
29528: install_modules="install-modules"
29529:
29530: case $host_alias in
29531: *aix*)
29532: suffix=so
29533: 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'
29534: ;;
29535: *netware*)
29536: suffix=nlm
29537: link_cmd='$(LIBTOOL) --mode=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)'
29538: ;;
29539: *)
29540: suffix=la
29541: link_cmd='$(LIBTOOL) --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)'
29542: ;;
29543: esac
29544:
29545: if test "x" = "xyes"; then
29546: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/calendar.$suffix"
29547: else
29548: PHP_MODULES="$PHP_MODULES \$(phplibdir)/calendar.$suffix"
29549: fi
29550:
29551: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_calendar"
29552:
29553: cat >>Makefile.objects<<EOF
29554: \$(phplibdir)/calendar.$suffix: $ext_builddir/calendar.$suffix
29555: \$(LIBTOOL) --mode=install cp $ext_builddir/calendar.$suffix \$(phplibdir)
29556:
29557: $ext_builddir/calendar.$suffix: \$(shared_objects_calendar) \$(CALENDAR_SHARED_DEPENDENCIES)
29558: $link_cmd
29559:
29560: EOF
29561:
29562: ;;
29563: esac
29564:
29565: cat >>confdefs.h <<_ACEOF
29566: #define COMPILE_DL_CALENDAR 1
29567: _ACEOF
29568:
29569: fi
29570: fi
29571:
29572: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
29573: PHP_CALENDAR_SHARED=no
29574:
29575:
29576: case ext/calendar in
29577: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
29578: /*) ac_srcdir=`echo "ext/calendar"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
29579: *) ac_srcdir="$abs_srcdir/ext/calendar/"; ac_bdir="ext/calendar/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
29580: esac
29581:
29582:
29583:
29584: b_c_pre=$php_c_pre
29585: b_cxx_pre=$php_cxx_pre
29586: b_c_meta=$php_c_meta
29587: b_cxx_meta=$php_cxx_meta
29588: b_c_post=$php_c_post
29589: b_cxx_post=$php_cxx_post
29590: b_lo=$php_lo
29591:
29592:
29593: old_IFS=$IFS
29594: for ac_src in calendar.c dow.c french.c gregor.c jewish.c julian.c easter.c cal_unix.c; do
29595:
29596: IFS=.
29597: set $ac_src
29598: ac_obj=$1
29599: IFS=$old_IFS
29600:
29601: PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
29602:
29603: case $ac_src in
29604: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
29605: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
29606: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
29607: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
29608: esac
29609:
29610: cat >>Makefile.objects<<EOF
29611: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
29612: $ac_comp
29613: EOF
29614: done
29615:
29616:
29617:
29618:
29619: case ext/calendar in
29620: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
29621: /*) ac_srcdir=`echo "ext/calendar"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
29622: *) ac_srcdir="$abs_srcdir/ext/calendar/"; ac_bdir="ext/calendar/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
29623: esac
29624:
29625:
29626:
29627: b_c_pre=$php_c_pre
29628: b_cxx_pre=$php_cxx_pre
29629: b_c_meta=$php_c_meta
29630: b_cxx_meta=$php_cxx_meta
29631: b_c_post=$php_c_post
29632: b_cxx_post=$php_cxx_post
29633: b_lo=$php_lo
29634:
29635:
29636: old_IFS=$IFS
29637: for ac_src in calendar.c dow.c french.c gregor.c jewish.c julian.c easter.c cal_unix.c; do
29638:
29639: IFS=.
29640: set $ac_src
29641: ac_obj=$1
29642: IFS=$old_IFS
29643:
29644: PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo"
29645:
29646: case $ac_src in
29647: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
29648: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
29649: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
29650: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
29651: esac
29652:
29653: cat >>Makefile.objects<<EOF
29654: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
29655: $ac_comp
29656: EOF
29657: done
29658:
29659:
29660:
29661:
29662: case ext/calendar in
29663: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
29664: /*) ac_srcdir=`echo "ext/calendar"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
29665: *) ac_srcdir="$abs_srcdir/ext/calendar/"; ac_bdir="ext/calendar/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
29666: esac
29667:
29668:
29669:
29670: b_c_pre=$php_c_pre
29671: b_cxx_pre=$php_cxx_pre
29672: b_c_meta=$php_c_meta
29673: b_cxx_meta=$php_cxx_meta
29674: b_c_post=$php_c_post
29675: b_cxx_post=$php_cxx_post
29676: b_lo=$php_lo
29677:
29678:
29679: old_IFS=$IFS
29680: for ac_src in calendar.c dow.c french.c gregor.c jewish.c julian.c easter.c cal_unix.c; do
29681:
29682: IFS=.
29683: set $ac_src
29684: ac_obj=$1
29685: IFS=$old_IFS
29686:
29687: PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo"
29688:
29689: case $ac_src in
29690: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
29691: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
29692: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
29693: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
29694: esac
29695:
29696: cat >>Makefile.objects<<EOF
29697: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
29698: $ac_comp
29699: EOF
29700: done
29701:
29702:
29703: EXT_CLI_STATIC="$EXT_CLI_STATIC calendar"
29704: fi
29705:
29706:
29707: BUILD_DIR="$BUILD_DIR $ext_builddir"
29708:
29709:
29710:
29711: if test "$ext_builddir" = "."; then
29712: PHP_PECL_EXTENSION=calendar
29713:
29714: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
29715:
29716: fi
29717:
29718: fi
29719:
29720:
29721:
29722: php_enable_ctype=yes
29723:
29724: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ctype functions" >&5
29725: $as_echo_n "checking whether to enable ctype functions... " >&6; }
29726: # Check whether --enable-ctype was given.
29727: if test "${enable_ctype+set}" = set; then :
29728: enableval=$enable_ctype; PHP_CTYPE=$enableval
29729: else
29730:
29731: PHP_CTYPE=yes
29732: test "$PHP_ENABLE_ALL" && PHP_CTYPE=$PHP_ENABLE_ALL
29733:
29734: fi
29735:
29736:
29737:
29738: ext_output="yes, shared"
29739: ext_shared=yes
29740: case $PHP_CTYPE in
29741: shared,*)
29742: PHP_CTYPE=`echo "$PHP_CTYPE"|$SED 's/^shared,//'`
29743: ;;
29744: shared)
29745: PHP_CTYPE=yes
29746: ;;
29747: no)
29748: ext_output=no
29749: ext_shared=no
29750: ;;
29751: *)
29752: ext_output=yes
29753: ext_shared=no
29754: ;;
29755: esac
29756:
29757:
29758:
29759: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
29760: $as_echo "$ext_output" >&6; }
29761:
29762:
29763:
29764:
29765: if test "$PHP_CTYPE" != "no"; then
29766:
29767: $as_echo "#define HAVE_CTYPE 1" >>confdefs.h
29768:
29769:
29770: ext_builddir=ext/ctype
29771: ext_srcdir=$abs_srcdir/ext/ctype
29772:
29773: ac_extra=
29774:
29775: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
29776: PHP_CTYPE_SHARED=no
29777:
29778:
29779: case ext/ctype in
29780: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
29781: /*) ac_srcdir=`echo "ext/ctype"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
29782: *) ac_srcdir="$abs_srcdir/ext/ctype/"; ac_bdir="ext/ctype/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
29783: esac
29784:
29785:
29786:
29787: b_c_pre=$php_c_pre
29788: b_cxx_pre=$php_cxx_pre
29789: b_c_meta=$php_c_meta
29790: b_cxx_meta=$php_cxx_meta
29791: b_c_post=$php_c_post
29792: b_cxx_post=$php_cxx_post
29793: b_lo=$php_lo
29794:
29795:
29796: old_IFS=$IFS
29797: for ac_src in ctype.c; do
29798:
29799: IFS=.
29800: set $ac_src
29801: ac_obj=$1
29802: IFS=$old_IFS
29803:
29804: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
29805:
29806: case $ac_src in
29807: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
29808: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
29809: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
29810: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
29811: esac
29812:
29813: cat >>Makefile.objects<<EOF
29814: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
29815: $ac_comp
29816: EOF
29817: done
29818:
29819:
29820: EXT_STATIC="$EXT_STATIC ctype"
29821: if test "$ext_shared" != "nocli"; then
29822: EXT_CLI_STATIC="$EXT_CLI_STATIC ctype"
29823: fi
29824: else
29825: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
29826: PHP_CTYPE_SHARED=yes
29827:
29828: case ext/ctype in
29829: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
29830: /*) ac_srcdir=`echo "ext/ctype"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
29831: *) ac_srcdir="$abs_srcdir/ext/ctype/"; ac_bdir="ext/ctype/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
29832: esac
29833:
29834:
29835:
29836: b_c_pre=$shared_c_pre
29837: b_cxx_pre=$shared_cxx_pre
29838: b_c_meta=$shared_c_meta
29839: b_cxx_meta=$shared_cxx_meta
29840: b_c_post=$shared_c_post
29841: b_cxx_post=$shared_cxx_post
29842: b_lo=$shared_lo
29843:
29844:
29845: old_IFS=$IFS
29846: for ac_src in ctype.c; do
29847:
29848: IFS=.
29849: set $ac_src
29850: ac_obj=$1
29851: IFS=$old_IFS
29852:
29853: shared_objects_ctype="$shared_objects_ctype $ac_bdir$ac_obj.lo"
29854:
29855: case $ac_src in
29856: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
29857: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
29858: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
29859: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
29860: esac
29861:
29862: cat >>Makefile.objects<<EOF
29863: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
29864: $ac_comp
29865: EOF
29866: done
29867:
29868: case $host_alias in
29869: *netware*)
29870:
29871: install_modules="install-modules"
29872:
29873: case $host_alias in
29874: *aix*)
29875: suffix=so
29876: 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'
29877: ;;
29878: *netware*)
29879: suffix=nlm
29880: link_cmd='$(LIBTOOL) --mode=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)'
29881: ;;
29882: *)
29883: suffix=la
29884: link_cmd='$(LIBTOOL) --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)'
29885: ;;
29886: esac
29887:
29888: if test "x" = "xyes"; then
29889: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpctype.$suffix"
29890: else
29891: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpctype.$suffix"
29892: fi
29893:
29894: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_ctype"
29895:
29896: cat >>Makefile.objects<<EOF
29897: \$(phplibdir)/phpctype.$suffix: $ext_builddir/phpctype.$suffix
29898: \$(LIBTOOL) --mode=install cp $ext_builddir/phpctype.$suffix \$(phplibdir)
29899:
29900: $ext_builddir/phpctype.$suffix: \$(shared_objects_ctype) \$(PHPCTYPE_SHARED_DEPENDENCIES)
29901: $link_cmd
29902:
29903: EOF
29904:
29905: ;;
29906: *)
29907:
29908: install_modules="install-modules"
29909:
29910: case $host_alias in
29911: *aix*)
29912: suffix=so
29913: 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'
29914: ;;
29915: *netware*)
29916: suffix=nlm
29917: link_cmd='$(LIBTOOL) --mode=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)'
29918: ;;
29919: *)
29920: suffix=la
29921: link_cmd='$(LIBTOOL) --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)'
29922: ;;
29923: esac
29924:
29925: if test "x" = "xyes"; then
29926: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/ctype.$suffix"
29927: else
29928: PHP_MODULES="$PHP_MODULES \$(phplibdir)/ctype.$suffix"
29929: fi
29930:
29931: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_ctype"
29932:
29933: cat >>Makefile.objects<<EOF
29934: \$(phplibdir)/ctype.$suffix: $ext_builddir/ctype.$suffix
29935: \$(LIBTOOL) --mode=install cp $ext_builddir/ctype.$suffix \$(phplibdir)
29936:
29937: $ext_builddir/ctype.$suffix: \$(shared_objects_ctype) \$(CTYPE_SHARED_DEPENDENCIES)
29938: $link_cmd
29939:
29940: EOF
29941:
29942: ;;
29943: esac
29944:
29945: cat >>confdefs.h <<_ACEOF
29946: #define COMPILE_DL_CTYPE 1
29947: _ACEOF
29948:
29949: fi
29950: fi
29951:
29952: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
29953: PHP_CTYPE_SHARED=no
29954:
29955:
29956: case ext/ctype in
29957: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
29958: /*) ac_srcdir=`echo "ext/ctype"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
29959: *) ac_srcdir="$abs_srcdir/ext/ctype/"; ac_bdir="ext/ctype/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
29960: esac
29961:
29962:
29963:
29964: b_c_pre=$php_c_pre
29965: b_cxx_pre=$php_cxx_pre
29966: b_c_meta=$php_c_meta
29967: b_cxx_meta=$php_cxx_meta
29968: b_c_post=$php_c_post
29969: b_cxx_post=$php_cxx_post
29970: b_lo=$php_lo
29971:
29972:
29973: old_IFS=$IFS
29974: for ac_src in ctype.c; do
29975:
29976: IFS=.
29977: set $ac_src
29978: ac_obj=$1
29979: IFS=$old_IFS
29980:
29981: PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
29982:
29983: case $ac_src in
29984: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
29985: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
29986: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
29987: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
29988: esac
29989:
29990: cat >>Makefile.objects<<EOF
29991: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
29992: $ac_comp
29993: EOF
29994: done
29995:
29996:
29997:
29998:
29999: case ext/ctype in
30000: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
30001: /*) ac_srcdir=`echo "ext/ctype"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
30002: *) ac_srcdir="$abs_srcdir/ext/ctype/"; ac_bdir="ext/ctype/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
30003: esac
30004:
30005:
30006:
30007: b_c_pre=$php_c_pre
30008: b_cxx_pre=$php_cxx_pre
30009: b_c_meta=$php_c_meta
30010: b_cxx_meta=$php_cxx_meta
30011: b_c_post=$php_c_post
30012: b_cxx_post=$php_cxx_post
30013: b_lo=$php_lo
30014:
30015:
30016: old_IFS=$IFS
30017: for ac_src in ctype.c; do
30018:
30019: IFS=.
30020: set $ac_src
30021: ac_obj=$1
30022: IFS=$old_IFS
30023:
30024: PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo"
30025:
30026: case $ac_src in
30027: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
30028: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
30029: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
30030: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
30031: esac
30032:
30033: cat >>Makefile.objects<<EOF
30034: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
30035: $ac_comp
30036: EOF
30037: done
30038:
30039:
30040:
30041:
30042: case ext/ctype in
30043: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
30044: /*) ac_srcdir=`echo "ext/ctype"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
30045: *) ac_srcdir="$abs_srcdir/ext/ctype/"; ac_bdir="ext/ctype/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
30046: esac
30047:
30048:
30049:
30050: b_c_pre=$php_c_pre
30051: b_cxx_pre=$php_cxx_pre
30052: b_c_meta=$php_c_meta
30053: b_cxx_meta=$php_cxx_meta
30054: b_c_post=$php_c_post
30055: b_cxx_post=$php_cxx_post
30056: b_lo=$php_lo
30057:
30058:
30059: old_IFS=$IFS
30060: for ac_src in ctype.c; do
30061:
30062: IFS=.
30063: set $ac_src
30064: ac_obj=$1
30065: IFS=$old_IFS
30066:
30067: PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo"
30068:
30069: case $ac_src in
30070: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
30071: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
30072: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
30073: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
30074: esac
30075:
30076: cat >>Makefile.objects<<EOF
30077: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
30078: $ac_comp
30079: EOF
30080: done
30081:
30082:
30083: EXT_CLI_STATIC="$EXT_CLI_STATIC ctype"
30084: fi
30085:
30086:
30087: BUILD_DIR="$BUILD_DIR $ext_builddir"
30088:
30089:
30090:
30091: if test "$ext_builddir" = "."; then
30092: PHP_PECL_EXTENSION=ctype
30093:
30094: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
30095:
30096: fi
30097:
30098: fi
30099:
30100:
30101:
30102: php_with_curl=no
30103:
30104: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cURL support" >&5
30105: $as_echo_n "checking for cURL support... " >&6; }
30106:
30107: # Check whether --with-curl was given.
30108: if test "${with_curl+set}" = set; then :
30109: withval=$with_curl; PHP_CURL=$withval
30110: else
30111:
30112: PHP_CURL=no
30113: test "$PHP_ENABLE_ALL" && PHP_CURL=$PHP_ENABLE_ALL
30114:
30115: fi
30116:
30117:
30118:
30119: ext_output="yes, shared"
30120: ext_shared=yes
30121: case $PHP_CURL in
30122: shared,*)
30123: PHP_CURL=`echo "$PHP_CURL"|$SED 's/^shared,//'`
30124: ;;
30125: shared)
30126: PHP_CURL=yes
30127: ;;
30128: no)
30129: ext_output=no
30130: ext_shared=no
30131: ;;
30132: *)
30133: ext_output=yes
30134: ext_shared=no
30135: ;;
30136: esac
30137:
30138:
30139:
30140: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
30141: $as_echo "$ext_output" >&6; }
30142:
30143:
30144:
30145:
30146:
30147: php_with_curlwrappers=no
30148:
30149: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use cURL for url streams" >&5
30150: $as_echo_n "checking if we should use cURL for url streams... " >&6; }
30151:
30152: # Check whether --with-curlwrappers was given.
30153: if test "${with_curlwrappers+set}" = set; then :
30154: withval=$with_curlwrappers; PHP_CURLWRAPPERS=$withval
30155: else
30156:
30157: PHP_CURLWRAPPERS=no
30158:
30159:
30160: fi
30161:
30162:
30163: ext_output=$PHP_CURLWRAPPERS
30164: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
30165: $as_echo "$ext_output" >&6; }
30166:
30167:
30168:
30169:
30170: if test "$PHP_CURL" != "no"; then
30171: if test -r $PHP_CURL/include/curl/easy.h; then
30172: CURL_DIR=$PHP_CURL
30173: else
30174: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cURL in default path" >&5
30175: $as_echo_n "checking for cURL in default path... " >&6; }
30176: for i in /usr/local /usr; do
30177: if test -r $i/include/curl/easy.h; then
30178: CURL_DIR=$i
30179: { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $i" >&5
30180: $as_echo "found in $i" >&6; }
30181: break
30182: fi
30183: done
30184: fi
30185:
30186: if test -z "$CURL_DIR"; then
30187: { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
30188: $as_echo "not found" >&6; }
30189: as_fn_error $? "Please reinstall the libcurl distribution -
30190: easy.h should be in <curl-dir>/include/curl/" "$LINENO" 5
30191: fi
30192:
30193: CURL_CONFIG="curl-config"
30194: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cURL 7.10.5 or greater" >&5
30195: $as_echo_n "checking for cURL 7.10.5 or greater... " >&6; }
30196:
30197: if ${CURL_DIR}/bin/curl-config --libs > /dev/null 2>&1; then
30198: CURL_CONFIG=${CURL_DIR}/bin/curl-config
30199: else
30200: if ${CURL_DIR}/curl-config --libs > /dev/null 2>&1; then
30201: CURL_CONFIG=${CURL_DIR}/curl-config
30202: fi
30203: fi
30204:
30205: curl_version_full=`$CURL_CONFIG --version`
30206: curl_version=`echo ${curl_version_full} | sed -e 's/libcurl //' | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
30207: if test "$curl_version" -ge 7010005; then
30208: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_version_full" >&5
30209: $as_echo "$curl_version_full" >&6; }
30210: CURL_LIBS=`$CURL_CONFIG --libs`
30211: else
30212: as_fn_error $? "cURL version 7.10.5 or later is required to compile php with cURL support" "$LINENO" 5
30213: fi
30214:
30215:
30216: if test "$CURL_DIR/include" != "/usr/include"; then
30217:
30218: if test -z "$CURL_DIR/include" || echo "$CURL_DIR/include" | grep '^/' >/dev/null ; then
30219: ai_p=$CURL_DIR/include
30220: else
30221:
30222: ep_dir="`echo $CURL_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
30223:
30224: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
30225: ai_p="$ep_realdir/`basename \"$CURL_DIR/include\"`"
30226: fi
30227:
30228:
30229:
30230: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
30231:
30232: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
30233: if test -n "$unique" && test "`eval $cmd`" = "" ; then
30234: eval "INCLUDEPATH$unique=set"
30235:
30236: if test ""; then
30237: INCLUDES="-I$ai_p $INCLUDES"
30238: else
30239: INCLUDES="$INCLUDES -I$ai_p"
30240: fi
30241:
30242: fi
30243:
30244: fi
30245:
30246:
30247: for ac_i in $CURL_LIBS; do
30248: case $ac_i in
30249: -pthread)
30250: if test "$ext_shared" = "yes"; then
30251: CURL_SHARED_LIBADD="$CURL_SHARED_LIBADD -pthread"
30252: else
30253:
30254:
30255: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
30256:
30257: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
30258: if test -n "$unique" && test "`eval $cmd`" = "" ; then
30259: eval "EXTRA_LDFLAGS$unique=set"
30260: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
30261: fi
30262:
30263: fi
30264: ;;
30265: -l*)
30266: ac_ii=`echo $ac_i|cut -c 3-`
30267:
30268:
30269: case $ac_ii in
30270: c|c_r|pthread*) ;;
30271: *)
30272: if test "$ext_shared" = "yes"; then
30273: CURL_SHARED_LIBADD="$CURL_SHARED_LIBADD -l$ac_ii"
30274: else
30275:
30276:
30277: case $ac_ii in
30278: c|c_r|pthread*) ;;
30279: *)
30280: LIBS="$LIBS -l$ac_ii"
30281: ;;
30282: esac
30283:
30284:
30285: fi
30286: ;;
30287: esac
30288:
30289:
30290: ;;
30291: -L*)
30292: ac_ii=`echo $ac_i|cut -c 3-`
30293:
30294: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
30295:
30296: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
30297: ai_p=$ac_ii
30298: else
30299:
30300: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
30301:
30302: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
30303: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
30304: fi
30305:
30306:
30307: if test "$ext_shared" = "yes"; then
30308: CURL_SHARED_LIBADD="-L$ai_p $CURL_SHARED_LIBADD"
30309: test -n "$ld_runpath_switch" && CURL_SHARED_LIBADD="$ld_runpath_switch$ai_p $CURL_SHARED_LIBADD"
30310: else
30311:
30312:
30313:
30314: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
30315:
30316: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
30317: if test -n "$unique" && test "`eval $cmd`" = "" ; then
30318: eval "LIBPATH$unique=set"
30319:
30320: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
30321: LDFLAGS="$LDFLAGS -L$ai_p"
30322: PHP_RPATHS="$PHP_RPATHS $ai_p"
30323:
30324: fi
30325:
30326:
30327: fi
30328:
30329: fi
30330:
30331: ;;
30332: esac
30333: done
30334:
30335:
30336:
30337: if test "$ext_shared" = "yes"; then
30338: CURL_SHARED_LIBADD="-lcurl $CURL_SHARED_LIBADD"
30339: if test -n "$CURL_DIR/$PHP_LIBDIR"; then
30340:
30341: if test "$CURL_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$CURL_DIR/$PHP_LIBDIR" != "/usr/lib"; then
30342:
30343: if test -z "$CURL_DIR/$PHP_LIBDIR" || echo "$CURL_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
30344: ai_p=$CURL_DIR/$PHP_LIBDIR
30345: else
30346:
30347: ep_dir="`echo $CURL_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
30348:
30349: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
30350: ai_p="$ep_realdir/`basename \"$CURL_DIR/$PHP_LIBDIR\"`"
30351: fi
30352:
30353:
30354: if test "$ext_shared" = "yes"; then
30355: CURL_SHARED_LIBADD="-L$ai_p $CURL_SHARED_LIBADD"
30356: test -n "$ld_runpath_switch" && CURL_SHARED_LIBADD="$ld_runpath_switch$ai_p $CURL_SHARED_LIBADD"
30357: else
30358:
30359:
30360:
30361: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
30362:
30363: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
30364: if test -n "$unique" && test "`eval $cmd`" = "" ; then
30365: eval "LIBPATH$unique=set"
30366:
30367: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
30368: LDFLAGS="$LDFLAGS -L$ai_p"
30369: PHP_RPATHS="$PHP_RPATHS $ai_p"
30370:
30371: fi
30372:
30373:
30374: fi
30375:
30376: fi
30377:
30378: fi
30379: else
30380:
30381:
30382: if test -n "$CURL_DIR/$PHP_LIBDIR"; then
30383:
30384: if test "$CURL_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$CURL_DIR/$PHP_LIBDIR" != "/usr/lib"; then
30385:
30386: if test -z "$CURL_DIR/$PHP_LIBDIR" || echo "$CURL_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
30387: ai_p=$CURL_DIR/$PHP_LIBDIR
30388: else
30389:
30390: ep_dir="`echo $CURL_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
30391:
30392: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
30393: ai_p="$ep_realdir/`basename \"$CURL_DIR/$PHP_LIBDIR\"`"
30394: fi
30395:
30396:
30397:
30398:
30399:
30400: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
30401:
30402: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
30403: if test -n "$unique" && test "`eval $cmd`" = "" ; then
30404: eval "LIBPATH$unique=set"
30405:
30406: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
30407: LDFLAGS="$LDFLAGS -L$ai_p"
30408: PHP_RPATHS="$PHP_RPATHS $ai_p"
30409:
30410: fi
30411:
30412:
30413:
30414: fi
30415:
30416: fi
30417:
30418:
30419: case curl in
30420: c|c_r|pthread*) ;;
30421: *)
30422: LIBS="-lcurl $LIBS"
30423: ;;
30424: esac
30425:
30426:
30427:
30428:
30429: fi
30430:
30431:
30432:
30433: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL support in libcurl" >&5
30434: $as_echo_n "checking for SSL support in libcurl... " >&6; }
30435: CURL_SSL=`$CURL_CONFIG --feature | $EGREP SSL`
30436: if test "$CURL_SSL" = "SSL"; then
30437: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30438: $as_echo "yes" >&6; }
30439:
30440: $as_echo "#define HAVE_CURL_SSL 1" >>confdefs.h
30441:
30442:
30443: save_CFLAGS="$CFLAGS"
30444: CFLAGS="`$CURL_CONFIG --cflags`"
30445:
30446: ac_ext=c
30447: ac_cpp='$CPP $CPPFLAGS'
30448: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30449: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30450: ac_compiler_gnu=$ac_cv_c_compiler_gnu
30451: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
30452: $as_echo_n "checking how to run the C preprocessor... " >&6; }
30453: # On Suns, sometimes $CPP names a directory.
30454: if test -n "$CPP" && test -d "$CPP"; then
30455: CPP=
30456: fi
30457: if test -z "$CPP"; then
30458: if ${ac_cv_prog_CPP+:} false; then :
30459: $as_echo_n "(cached) " >&6
30460: else
30461: # Double quotes because CPP needs to be expanded
30462: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
30463: do
30464: ac_preproc_ok=false
30465: for ac_c_preproc_warn_flag in '' yes
30466: do
30467: # Use a header file that comes with gcc, so configuring glibc
30468: # with a fresh cross-compiler works.
30469: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30470: # <limits.h> exists even on freestanding compilers.
30471: # On the NeXT, cc -E runs the code through the compiler's parser,
30472: # not just through cpp. "Syntax error" is here to catch this case.
30473: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30474: /* end confdefs.h. */
30475: #ifdef __STDC__
30476: # include <limits.h>
30477: #else
30478: # include <assert.h>
30479: #endif
30480: Syntax error
30481: _ACEOF
30482: if ac_fn_c_try_cpp "$LINENO"; then :
30483:
30484: else
30485: # Broken: fails on valid input.
30486: continue
30487: fi
30488: rm -f conftest.err conftest.i conftest.$ac_ext
30489:
30490: # OK, works on sane cases. Now check whether nonexistent headers
30491: # can be detected and how.
30492: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30493: /* end confdefs.h. */
30494: #include <ac_nonexistent.h>
30495: _ACEOF
30496: if ac_fn_c_try_cpp "$LINENO"; then :
30497: # Broken: success on invalid input.
30498: continue
30499: else
30500: # Passes both tests.
30501: ac_preproc_ok=:
30502: break
30503: fi
30504: rm -f conftest.err conftest.i conftest.$ac_ext
30505:
30506: done
30507: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
30508: rm -f conftest.i conftest.err conftest.$ac_ext
30509: if $ac_preproc_ok; then :
30510: break
30511: fi
30512:
30513: done
30514: ac_cv_prog_CPP=$CPP
30515:
30516: fi
30517: CPP=$ac_cv_prog_CPP
30518: else
30519: ac_cv_prog_CPP=$CPP
30520: fi
30521: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
30522: $as_echo "$CPP" >&6; }
30523: ac_preproc_ok=false
30524: for ac_c_preproc_warn_flag in '' yes
30525: do
30526: # Use a header file that comes with gcc, so configuring glibc
30527: # with a fresh cross-compiler works.
30528: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30529: # <limits.h> exists even on freestanding compilers.
30530: # On the NeXT, cc -E runs the code through the compiler's parser,
30531: # not just through cpp. "Syntax error" is here to catch this case.
30532: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30533: /* end confdefs.h. */
30534: #ifdef __STDC__
30535: # include <limits.h>
30536: #else
30537: # include <assert.h>
30538: #endif
30539: Syntax error
30540: _ACEOF
30541: if ac_fn_c_try_cpp "$LINENO"; then :
30542:
30543: else
30544: # Broken: fails on valid input.
30545: continue
30546: fi
30547: rm -f conftest.err conftest.i conftest.$ac_ext
30548:
30549: # OK, works on sane cases. Now check whether nonexistent headers
30550: # can be detected and how.
30551: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30552: /* end confdefs.h. */
30553: #include <ac_nonexistent.h>
30554: _ACEOF
30555: if ac_fn_c_try_cpp "$LINENO"; then :
30556: # Broken: success on invalid input.
30557: continue
30558: else
30559: # Passes both tests.
30560: ac_preproc_ok=:
30561: break
30562: fi
30563: rm -f conftest.err conftest.i conftest.$ac_ext
30564:
30565: done
30566: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
30567: rm -f conftest.i conftest.err conftest.$ac_ext
30568: if $ac_preproc_ok; then :
30569:
30570: else
30571: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30572: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30573: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
30574: See \`config.log' for more details" "$LINENO" 5; }
30575: fi
30576:
30577: ac_ext=c
30578: ac_cpp='$CPP $CPPFLAGS'
30579: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30580: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30581: ac_compiler_gnu=$ac_cv_c_compiler_gnu
30582:
30583: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl support in libcurl" >&5
30584: $as_echo_n "checking for openssl support in libcurl... " >&6; }
30585: if test "$cross_compiling" = yes; then :
30586:
30587: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30588: $as_echo "no" >&6; }
30589:
30590: else
30591: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30592: /* end confdefs.h. */
30593:
30594: #include <curl/curl.h>
30595:
30596: int main(int argc, char *argv[])
30597: {
30598: curl_version_info_data *data = curl_version_info(CURLVERSION_NOW);
30599:
30600: if (data && data->ssl_version && *data->ssl_version) {
30601: const char *ptr = data->ssl_version;
30602:
30603: while(*ptr == ' ') ++ptr;
30604: return strncasecmp(ptr, "OpenSSL", sizeof("OpenSSL")-1);
30605: }
30606: return 1;
30607: }
30608:
30609: _ACEOF
30610: if ac_fn_c_try_run "$LINENO"; then :
30611:
30612: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30613: $as_echo "yes" >&6; }
30614: for ac_header in openssl/crypto.h
30615: do :
30616: ac_fn_c_check_header_mongrel "$LINENO" "openssl/crypto.h" "ac_cv_header_openssl_crypto_h" "$ac_includes_default"
30617: if test "x$ac_cv_header_openssl_crypto_h" = xyes; then :
30618: cat >>confdefs.h <<_ACEOF
30619: #define HAVE_OPENSSL_CRYPTO_H 1
30620: _ACEOF
30621:
30622:
30623: $as_echo "#define HAVE_CURL_OPENSSL 1" >>confdefs.h
30624:
30625:
30626: fi
30627:
30628: done
30629:
30630:
30631: else
30632:
30633: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30634: $as_echo "no" >&6; }
30635:
30636: fi
30637: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30638: conftest.$ac_objext conftest.beam conftest.$ac_ext
30639: fi
30640:
30641:
30642: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls support in libcurl" >&5
30643: $as_echo_n "checking for gnutls support in libcurl... " >&6; }
30644: if test "$cross_compiling" = yes; then :
30645:
30646: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30647: $as_echo "no" >&6; }
30648:
30649: else
30650: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30651: /* end confdefs.h. */
30652:
30653: #include <curl/curl.h>
30654:
30655: int main(int argc, char *argv[])
30656: {
30657: curl_version_info_data *data = curl_version_info(CURLVERSION_NOW);
30658:
30659: if (data && data->ssl_version && *data->ssl_version) {
30660: const char *ptr = data->ssl_version;
30661:
30662: while(*ptr == ' ') ++ptr;
30663: return strncasecmp(ptr, "GnuTLS", sizeof("GnuTLS")-1);
30664: }
30665: return 1;
30666: }
30667:
30668: _ACEOF
30669: if ac_fn_c_try_run "$LINENO"; then :
30670:
30671: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30672: $as_echo "yes" >&6; }
30673: ac_fn_c_check_header_mongrel "$LINENO" "gcrypt.h" "ac_cv_header_gcrypt_h" "$ac_includes_default"
30674: if test "x$ac_cv_header_gcrypt_h" = xyes; then :
30675:
30676:
30677: $as_echo "#define HAVE_CURL_GNUTLS 1" >>confdefs.h
30678:
30679:
30680: fi
30681:
30682:
30683:
30684: else
30685:
30686: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30687: $as_echo "no" >&6; }
30688:
30689: fi
30690: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30691: conftest.$ac_objext conftest.beam conftest.$ac_ext
30692: fi
30693:
30694:
30695: CFLAGS="$save_CFLAGS"
30696: else
30697: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30698: $as_echo "no" >&6; }
30699: fi
30700:
30701:
30702: save_old_LDFLAGS=$LDFLAGS
30703: ac_stuff="
30704: $CURL_LIBS -L$CURL_DIR/$PHP_LIBDIR
30705: "
30706:
30707: save_ext_shared=$ext_shared
30708: ext_shared=yes
30709:
30710: for ac_i in $ac_stuff; do
30711: case $ac_i in
30712: -pthread)
30713: if test "$ext_shared" = "yes"; then
30714: LDFLAGS="$LDFLAGS -pthread"
30715: else
30716:
30717:
30718: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
30719:
30720: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
30721: if test -n "$unique" && test "`eval $cmd`" = "" ; then
30722: eval "EXTRA_LDFLAGS$unique=set"
30723: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
30724: fi
30725:
30726: fi
30727: ;;
30728: -l*)
30729: ac_ii=`echo $ac_i|cut -c 3-`
30730:
30731:
30732: case $ac_ii in
30733: c|c_r|pthread*) ;;
30734: *)
30735: if test "$ext_shared" = "yes"; then
30736: LDFLAGS="$LDFLAGS -l$ac_ii"
30737: else
30738:
30739:
30740: case $ac_ii in
30741: c|c_r|pthread*) ;;
30742: *)
30743: LIBS="$LIBS -l$ac_ii"
30744: ;;
30745: esac
30746:
30747:
30748: fi
30749: ;;
30750: esac
30751:
30752:
30753: ;;
30754: -L*)
30755: ac_ii=`echo $ac_i|cut -c 3-`
30756:
30757: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
30758:
30759: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
30760: ai_p=$ac_ii
30761: else
30762:
30763: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
30764:
30765: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
30766: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
30767: fi
30768:
30769:
30770: if test "$ext_shared" = "yes"; then
30771: LDFLAGS="-L$ai_p $LDFLAGS"
30772: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
30773: else
30774:
30775:
30776:
30777: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
30778:
30779: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
30780: if test -n "$unique" && test "`eval $cmd`" = "" ; then
30781: eval "LIBPATH$unique=set"
30782:
30783: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
30784: LDFLAGS="$LDFLAGS -L$ai_p"
30785: PHP_RPATHS="$PHP_RPATHS $ai_p"
30786:
30787: fi
30788:
30789:
30790: fi
30791:
30792: fi
30793:
30794: ;;
30795: esac
30796: done
30797:
30798: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_easy_perform in -lcurl" >&5
30799: $as_echo_n "checking for curl_easy_perform in -lcurl... " >&6; }
30800: if ${ac_cv_lib_curl_curl_easy_perform+:} false; then :
30801: $as_echo_n "(cached) " >&6
30802: else
30803: ac_check_lib_save_LIBS=$LIBS
30804: LIBS="-lcurl $LIBS"
30805: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30806: /* end confdefs.h. */
30807:
30808: /* Override any GCC internal prototype to avoid an error.
30809: Use char because int might match the return type of a GCC
30810: builtin and then its argument prototype would still apply. */
30811: #ifdef __cplusplus
30812: extern "C"
30813: #endif
30814: char curl_easy_perform ();
30815: int
30816: main ()
30817: {
30818: return curl_easy_perform ();
30819: ;
30820: return 0;
30821: }
30822: _ACEOF
30823: if ac_fn_c_try_link "$LINENO"; then :
30824: ac_cv_lib_curl_curl_easy_perform=yes
30825: else
30826: ac_cv_lib_curl_curl_easy_perform=no
30827: fi
30828: rm -f core conftest.err conftest.$ac_objext \
30829: conftest$ac_exeext conftest.$ac_ext
30830: LIBS=$ac_check_lib_save_LIBS
30831: fi
30832: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curl_curl_easy_perform" >&5
30833: $as_echo "$ac_cv_lib_curl_curl_easy_perform" >&6; }
30834: if test "x$ac_cv_lib_curl_curl_easy_perform" = xyes; then :
30835:
30836: LDFLAGS=$save_old_LDFLAGS
30837: ext_shared=$save_ext_shared
30838:
30839:
30840: $as_echo "#define HAVE_CURL 1" >>confdefs.h
30841:
30842:
30843:
30844: else
30845:
30846: LDFLAGS=$save_old_LDFLAGS
30847: ext_shared=$save_ext_shared
30848: unset ac_cv_lib_curl_curl_easy_perform
30849:
30850: as_fn_error $? "There is something wrong. Please check config.log for more information." "$LINENO" 5
30851:
30852:
30853: fi
30854:
30855:
30856:
30857: save_old_LDFLAGS=$LDFLAGS
30858: ac_stuff="
30859: $CURL_LIBS -L$CURL_DIR/$PHP_LIBDIR
30860: "
30861:
30862: save_ext_shared=$ext_shared
30863: ext_shared=yes
30864:
30865: for ac_i in $ac_stuff; do
30866: case $ac_i in
30867: -pthread)
30868: if test "$ext_shared" = "yes"; then
30869: LDFLAGS="$LDFLAGS -pthread"
30870: else
30871:
30872:
30873: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
30874:
30875: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
30876: if test -n "$unique" && test "`eval $cmd`" = "" ; then
30877: eval "EXTRA_LDFLAGS$unique=set"
30878: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
30879: fi
30880:
30881: fi
30882: ;;
30883: -l*)
30884: ac_ii=`echo $ac_i|cut -c 3-`
30885:
30886:
30887: case $ac_ii in
30888: c|c_r|pthread*) ;;
30889: *)
30890: if test "$ext_shared" = "yes"; then
30891: LDFLAGS="$LDFLAGS -l$ac_ii"
30892: else
30893:
30894:
30895: case $ac_ii in
30896: c|c_r|pthread*) ;;
30897: *)
30898: LIBS="$LIBS -l$ac_ii"
30899: ;;
30900: esac
30901:
30902:
30903: fi
30904: ;;
30905: esac
30906:
30907:
30908: ;;
30909: -L*)
30910: ac_ii=`echo $ac_i|cut -c 3-`
30911:
30912: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
30913:
30914: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
30915: ai_p=$ac_ii
30916: else
30917:
30918: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
30919:
30920: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
30921: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
30922: fi
30923:
30924:
30925: if test "$ext_shared" = "yes"; then
30926: LDFLAGS="-L$ai_p $LDFLAGS"
30927: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
30928: else
30929:
30930:
30931:
30932: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
30933:
30934: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
30935: if test -n "$unique" && test "`eval $cmd`" = "" ; then
30936: eval "LIBPATH$unique=set"
30937:
30938: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
30939: LDFLAGS="$LDFLAGS -L$ai_p"
30940: PHP_RPATHS="$PHP_RPATHS $ai_p"
30941:
30942: fi
30943:
30944:
30945: fi
30946:
30947: fi
30948:
30949: ;;
30950: esac
30951: done
30952:
30953: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_version_info in -lcurl" >&5
30954: $as_echo_n "checking for curl_version_info in -lcurl... " >&6; }
30955: if ${ac_cv_lib_curl_curl_version_info+:} false; then :
30956: $as_echo_n "(cached) " >&6
30957: else
30958: ac_check_lib_save_LIBS=$LIBS
30959: LIBS="-lcurl $LIBS"
30960: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30961: /* end confdefs.h. */
30962:
30963: /* Override any GCC internal prototype to avoid an error.
30964: Use char because int might match the return type of a GCC
30965: builtin and then its argument prototype would still apply. */
30966: #ifdef __cplusplus
30967: extern "C"
30968: #endif
30969: char curl_version_info ();
30970: int
30971: main ()
30972: {
30973: return curl_version_info ();
30974: ;
30975: return 0;
30976: }
30977: _ACEOF
30978: if ac_fn_c_try_link "$LINENO"; then :
30979: ac_cv_lib_curl_curl_version_info=yes
30980: else
30981: ac_cv_lib_curl_curl_version_info=no
30982: fi
30983: rm -f core conftest.err conftest.$ac_objext \
30984: conftest$ac_exeext conftest.$ac_ext
30985: LIBS=$ac_check_lib_save_LIBS
30986: fi
30987: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curl_curl_version_info" >&5
30988: $as_echo "$ac_cv_lib_curl_curl_version_info" >&6; }
30989: if test "x$ac_cv_lib_curl_curl_version_info" = xyes; then :
30990:
30991: LDFLAGS=$save_old_LDFLAGS
30992: ext_shared=$save_ext_shared
30993:
30994:
30995: $as_echo "#define HAVE_CURL_VERSION_INFO 1" >>confdefs.h
30996:
30997:
30998:
30999: else
31000:
31001: LDFLAGS=$save_old_LDFLAGS
31002: ext_shared=$save_ext_shared
31003: unset ac_cv_lib_curl_curl_version_info
31004:
31005:
31006: fi
31007:
31008:
31009:
31010: save_old_LDFLAGS=$LDFLAGS
31011: ac_stuff="
31012: $CURL_LIBS -L$CURL_DIR/$PHP_LIBDIR
31013: "
31014:
31015: save_ext_shared=$ext_shared
31016: ext_shared=yes
31017:
31018: for ac_i in $ac_stuff; do
31019: case $ac_i in
31020: -pthread)
31021: if test "$ext_shared" = "yes"; then
31022: LDFLAGS="$LDFLAGS -pthread"
31023: else
31024:
31025:
31026: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
31027:
31028: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
31029: if test -n "$unique" && test "`eval $cmd`" = "" ; then
31030: eval "EXTRA_LDFLAGS$unique=set"
31031: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
31032: fi
31033:
31034: fi
31035: ;;
31036: -l*)
31037: ac_ii=`echo $ac_i|cut -c 3-`
31038:
31039:
31040: case $ac_ii in
31041: c|c_r|pthread*) ;;
31042: *)
31043: if test "$ext_shared" = "yes"; then
31044: LDFLAGS="$LDFLAGS -l$ac_ii"
31045: else
31046:
31047:
31048: case $ac_ii in
31049: c|c_r|pthread*) ;;
31050: *)
31051: LIBS="$LIBS -l$ac_ii"
31052: ;;
31053: esac
31054:
31055:
31056: fi
31057: ;;
31058: esac
31059:
31060:
31061: ;;
31062: -L*)
31063: ac_ii=`echo $ac_i|cut -c 3-`
31064:
31065: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
31066:
31067: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
31068: ai_p=$ac_ii
31069: else
31070:
31071: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
31072:
31073: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
31074: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
31075: fi
31076:
31077:
31078: if test "$ext_shared" = "yes"; then
31079: LDFLAGS="-L$ai_p $LDFLAGS"
31080: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
31081: else
31082:
31083:
31084:
31085: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
31086:
31087: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
31088: if test -n "$unique" && test "`eval $cmd`" = "" ; then
31089: eval "LIBPATH$unique=set"
31090:
31091: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
31092: LDFLAGS="$LDFLAGS -L$ai_p"
31093: PHP_RPATHS="$PHP_RPATHS $ai_p"
31094:
31095: fi
31096:
31097:
31098: fi
31099:
31100: fi
31101:
31102: ;;
31103: esac
31104: done
31105:
31106: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_easy_strerror in -lcurl" >&5
31107: $as_echo_n "checking for curl_easy_strerror in -lcurl... " >&6; }
31108: if ${ac_cv_lib_curl_curl_easy_strerror+:} false; then :
31109: $as_echo_n "(cached) " >&6
31110: else
31111: ac_check_lib_save_LIBS=$LIBS
31112: LIBS="-lcurl $LIBS"
31113: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31114: /* end confdefs.h. */
31115:
31116: /* Override any GCC internal prototype to avoid an error.
31117: Use char because int might match the return type of a GCC
31118: builtin and then its argument prototype would still apply. */
31119: #ifdef __cplusplus
31120: extern "C"
31121: #endif
31122: char curl_easy_strerror ();
31123: int
31124: main ()
31125: {
31126: return curl_easy_strerror ();
31127: ;
31128: return 0;
31129: }
31130: _ACEOF
31131: if ac_fn_c_try_link "$LINENO"; then :
31132: ac_cv_lib_curl_curl_easy_strerror=yes
31133: else
31134: ac_cv_lib_curl_curl_easy_strerror=no
31135: fi
31136: rm -f core conftest.err conftest.$ac_objext \
31137: conftest$ac_exeext conftest.$ac_ext
31138: LIBS=$ac_check_lib_save_LIBS
31139: fi
31140: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curl_curl_easy_strerror" >&5
31141: $as_echo "$ac_cv_lib_curl_curl_easy_strerror" >&6; }
31142: if test "x$ac_cv_lib_curl_curl_easy_strerror" = xyes; then :
31143:
31144: LDFLAGS=$save_old_LDFLAGS
31145: ext_shared=$save_ext_shared
31146:
31147:
31148: $as_echo "#define HAVE_CURL_EASY_STRERROR 1" >>confdefs.h
31149:
31150:
31151:
31152: else
31153:
31154: LDFLAGS=$save_old_LDFLAGS
31155: ext_shared=$save_ext_shared
31156: unset ac_cv_lib_curl_curl_easy_strerror
31157:
31158:
31159: fi
31160:
31161:
31162:
31163: save_old_LDFLAGS=$LDFLAGS
31164: ac_stuff="
31165: $CURL_LIBS -L$CURL_DIR/$PHP_LIBDIR
31166: "
31167:
31168: save_ext_shared=$ext_shared
31169: ext_shared=yes
31170:
31171: for ac_i in $ac_stuff; do
31172: case $ac_i in
31173: -pthread)
31174: if test "$ext_shared" = "yes"; then
31175: LDFLAGS="$LDFLAGS -pthread"
31176: else
31177:
31178:
31179: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
31180:
31181: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
31182: if test -n "$unique" && test "`eval $cmd`" = "" ; then
31183: eval "EXTRA_LDFLAGS$unique=set"
31184: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
31185: fi
31186:
31187: fi
31188: ;;
31189: -l*)
31190: ac_ii=`echo $ac_i|cut -c 3-`
31191:
31192:
31193: case $ac_ii in
31194: c|c_r|pthread*) ;;
31195: *)
31196: if test "$ext_shared" = "yes"; then
31197: LDFLAGS="$LDFLAGS -l$ac_ii"
31198: else
31199:
31200:
31201: case $ac_ii in
31202: c|c_r|pthread*) ;;
31203: *)
31204: LIBS="$LIBS -l$ac_ii"
31205: ;;
31206: esac
31207:
31208:
31209: fi
31210: ;;
31211: esac
31212:
31213:
31214: ;;
31215: -L*)
31216: ac_ii=`echo $ac_i|cut -c 3-`
31217:
31218: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
31219:
31220: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
31221: ai_p=$ac_ii
31222: else
31223:
31224: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
31225:
31226: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
31227: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
31228: fi
31229:
31230:
31231: if test "$ext_shared" = "yes"; then
31232: LDFLAGS="-L$ai_p $LDFLAGS"
31233: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
31234: else
31235:
31236:
31237:
31238: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
31239:
31240: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
31241: if test -n "$unique" && test "`eval $cmd`" = "" ; then
31242: eval "LIBPATH$unique=set"
31243:
31244: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
31245: LDFLAGS="$LDFLAGS -L$ai_p"
31246: PHP_RPATHS="$PHP_RPATHS $ai_p"
31247:
31248: fi
31249:
31250:
31251: fi
31252:
31253: fi
31254:
31255: ;;
31256: esac
31257: done
31258:
31259: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_multi_strerror in -lcurl" >&5
31260: $as_echo_n "checking for curl_multi_strerror in -lcurl... " >&6; }
31261: if ${ac_cv_lib_curl_curl_multi_strerror+:} false; then :
31262: $as_echo_n "(cached) " >&6
31263: else
31264: ac_check_lib_save_LIBS=$LIBS
31265: LIBS="-lcurl $LIBS"
31266: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31267: /* end confdefs.h. */
31268:
31269: /* Override any GCC internal prototype to avoid an error.
31270: Use char because int might match the return type of a GCC
31271: builtin and then its argument prototype would still apply. */
31272: #ifdef __cplusplus
31273: extern "C"
31274: #endif
31275: char curl_multi_strerror ();
31276: int
31277: main ()
31278: {
31279: return curl_multi_strerror ();
31280: ;
31281: return 0;
31282: }
31283: _ACEOF
31284: if ac_fn_c_try_link "$LINENO"; then :
31285: ac_cv_lib_curl_curl_multi_strerror=yes
31286: else
31287: ac_cv_lib_curl_curl_multi_strerror=no
31288: fi
31289: rm -f core conftest.err conftest.$ac_objext \
31290: conftest$ac_exeext conftest.$ac_ext
31291: LIBS=$ac_check_lib_save_LIBS
31292: fi
31293: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curl_curl_multi_strerror" >&5
31294: $as_echo "$ac_cv_lib_curl_curl_multi_strerror" >&6; }
31295: if test "x$ac_cv_lib_curl_curl_multi_strerror" = xyes; then :
31296:
31297: LDFLAGS=$save_old_LDFLAGS
31298: ext_shared=$save_ext_shared
31299:
31300:
31301: $as_echo "#define HAVE_CURL_MULTI_STRERROR 1" >>confdefs.h
31302:
31303:
31304:
31305: else
31306:
31307: LDFLAGS=$save_old_LDFLAGS
31308: ext_shared=$save_ext_shared
31309: unset ac_cv_lib_curl_curl_multi_strerror
31310:
31311:
31312: fi
31313:
31314:
31315: if test "$PHP_CURLWRAPPERS" != "no" ; then
31316:
31317: $as_echo "#define PHP_CURL_URL_WRAPPERS 1" >>confdefs.h
31318:
31319: fi
31320:
31321:
31322: ext_builddir=ext/curl
31323: ext_srcdir=$abs_srcdir/ext/curl
31324:
31325: ac_extra=
31326:
31327: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
31328: PHP_CURL_SHARED=no
31329:
31330:
31331: case ext/curl in
31332: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
31333: /*) ac_srcdir=`echo "ext/curl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
31334: *) ac_srcdir="$abs_srcdir/ext/curl/"; ac_bdir="ext/curl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
31335: esac
31336:
31337:
31338:
31339: b_c_pre=$php_c_pre
31340: b_cxx_pre=$php_cxx_pre
31341: b_c_meta=$php_c_meta
31342: b_cxx_meta=$php_cxx_meta
31343: b_c_post=$php_c_post
31344: b_cxx_post=$php_cxx_post
31345: b_lo=$php_lo
31346:
31347:
31348: old_IFS=$IFS
31349: for ac_src in interface.c multi.c streams.c; do
31350:
31351: IFS=.
31352: set $ac_src
31353: ac_obj=$1
31354: IFS=$old_IFS
31355:
31356: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
31357:
31358: case $ac_src in
31359: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
31360: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
31361: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
31362: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
31363: esac
31364:
31365: cat >>Makefile.objects<<EOF
31366: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
31367: $ac_comp
31368: EOF
31369: done
31370:
31371:
31372: EXT_STATIC="$EXT_STATIC curl"
31373: if test "$ext_shared" != "nocli"; then
31374: EXT_CLI_STATIC="$EXT_CLI_STATIC curl"
31375: fi
31376: else
31377: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
31378: PHP_CURL_SHARED=yes
31379:
31380: case ext/curl in
31381: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
31382: /*) ac_srcdir=`echo "ext/curl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
31383: *) ac_srcdir="$abs_srcdir/ext/curl/"; ac_bdir="ext/curl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
31384: esac
31385:
31386:
31387:
31388: b_c_pre=$shared_c_pre
31389: b_cxx_pre=$shared_cxx_pre
31390: b_c_meta=$shared_c_meta
31391: b_cxx_meta=$shared_cxx_meta
31392: b_c_post=$shared_c_post
31393: b_cxx_post=$shared_cxx_post
31394: b_lo=$shared_lo
31395:
31396:
31397: old_IFS=$IFS
31398: for ac_src in interface.c multi.c streams.c; do
31399:
31400: IFS=.
31401: set $ac_src
31402: ac_obj=$1
31403: IFS=$old_IFS
31404:
31405: shared_objects_curl="$shared_objects_curl $ac_bdir$ac_obj.lo"
31406:
31407: case $ac_src in
31408: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
31409: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
31410: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
31411: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
31412: esac
31413:
31414: cat >>Makefile.objects<<EOF
31415: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
31416: $ac_comp
31417: EOF
31418: done
31419:
31420: case $host_alias in
31421: *netware*)
31422:
31423: install_modules="install-modules"
31424:
31425: case $host_alias in
31426: *aix*)
31427: suffix=so
31428: 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'
31429: ;;
31430: *netware*)
31431: suffix=nlm
31432: link_cmd='$(LIBTOOL) --mode=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)'
31433: ;;
31434: *)
31435: suffix=la
31436: link_cmd='$(LIBTOOL) --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)'
31437: ;;
31438: esac
31439:
31440: if test "x" = "xyes"; then
31441: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpcurl.$suffix"
31442: else
31443: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpcurl.$suffix"
31444: fi
31445:
31446: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_curl"
31447:
31448: cat >>Makefile.objects<<EOF
31449: \$(phplibdir)/phpcurl.$suffix: $ext_builddir/phpcurl.$suffix
31450: \$(LIBTOOL) --mode=install cp $ext_builddir/phpcurl.$suffix \$(phplibdir)
31451:
31452: $ext_builddir/phpcurl.$suffix: \$(shared_objects_curl) \$(PHPCURL_SHARED_DEPENDENCIES)
31453: $link_cmd
31454:
31455: EOF
31456:
31457: ;;
31458: *)
31459:
31460: install_modules="install-modules"
31461:
31462: case $host_alias in
31463: *aix*)
31464: suffix=so
31465: 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'
31466: ;;
31467: *netware*)
31468: suffix=nlm
31469: link_cmd='$(LIBTOOL) --mode=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)'
31470: ;;
31471: *)
31472: suffix=la
31473: link_cmd='$(LIBTOOL) --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)'
31474: ;;
31475: esac
31476:
31477: if test "x" = "xyes"; then
31478: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/curl.$suffix"
31479: else
31480: PHP_MODULES="$PHP_MODULES \$(phplibdir)/curl.$suffix"
31481: fi
31482:
31483: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_curl"
31484:
31485: cat >>Makefile.objects<<EOF
31486: \$(phplibdir)/curl.$suffix: $ext_builddir/curl.$suffix
31487: \$(LIBTOOL) --mode=install cp $ext_builddir/curl.$suffix \$(phplibdir)
31488:
31489: $ext_builddir/curl.$suffix: \$(shared_objects_curl) \$(CURL_SHARED_DEPENDENCIES)
31490: $link_cmd
31491:
31492: EOF
31493:
31494: ;;
31495: esac
31496:
31497: cat >>confdefs.h <<_ACEOF
31498: #define COMPILE_DL_CURL 1
31499: _ACEOF
31500:
31501: fi
31502: fi
31503:
31504: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
31505: PHP_CURL_SHARED=no
31506:
31507:
31508: case ext/curl in
31509: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
31510: /*) ac_srcdir=`echo "ext/curl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
31511: *) ac_srcdir="$abs_srcdir/ext/curl/"; ac_bdir="ext/curl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
31512: esac
31513:
31514:
31515:
31516: b_c_pre=$php_c_pre
31517: b_cxx_pre=$php_cxx_pre
31518: b_c_meta=$php_c_meta
31519: b_cxx_meta=$php_cxx_meta
31520: b_c_post=$php_c_post
31521: b_cxx_post=$php_cxx_post
31522: b_lo=$php_lo
31523:
31524:
31525: old_IFS=$IFS
31526: for ac_src in interface.c multi.c streams.c; do
31527:
31528: IFS=.
31529: set $ac_src
31530: ac_obj=$1
31531: IFS=$old_IFS
31532:
31533: PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
31534:
31535: case $ac_src in
31536: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
31537: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
31538: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
31539: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
31540: esac
31541:
31542: cat >>Makefile.objects<<EOF
31543: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
31544: $ac_comp
31545: EOF
31546: done
31547:
31548:
31549:
31550:
31551: case ext/curl in
31552: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
31553: /*) ac_srcdir=`echo "ext/curl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
31554: *) ac_srcdir="$abs_srcdir/ext/curl/"; ac_bdir="ext/curl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
31555: esac
31556:
31557:
31558:
31559: b_c_pre=$php_c_pre
31560: b_cxx_pre=$php_cxx_pre
31561: b_c_meta=$php_c_meta
31562: b_cxx_meta=$php_cxx_meta
31563: b_c_post=$php_c_post
31564: b_cxx_post=$php_cxx_post
31565: b_lo=$php_lo
31566:
31567:
31568: old_IFS=$IFS
31569: for ac_src in interface.c multi.c streams.c; do
31570:
31571: IFS=.
31572: set $ac_src
31573: ac_obj=$1
31574: IFS=$old_IFS
31575:
31576: PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo"
31577:
31578: case $ac_src in
31579: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
31580: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
31581: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
31582: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
31583: esac
31584:
31585: cat >>Makefile.objects<<EOF
31586: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
31587: $ac_comp
31588: EOF
31589: done
31590:
31591:
31592:
31593:
31594: case ext/curl in
31595: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
31596: /*) ac_srcdir=`echo "ext/curl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
31597: *) ac_srcdir="$abs_srcdir/ext/curl/"; ac_bdir="ext/curl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
31598: esac
31599:
31600:
31601:
31602: b_c_pre=$php_c_pre
31603: b_cxx_pre=$php_cxx_pre
31604: b_c_meta=$php_c_meta
31605: b_cxx_meta=$php_cxx_meta
31606: b_c_post=$php_c_post
31607: b_cxx_post=$php_cxx_post
31608: b_lo=$php_lo
31609:
31610:
31611: old_IFS=$IFS
31612: for ac_src in interface.c multi.c streams.c; do
31613:
31614: IFS=.
31615: set $ac_src
31616: ac_obj=$1
31617: IFS=$old_IFS
31618:
31619: PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo"
31620:
31621: case $ac_src in
31622: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
31623: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
31624: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
31625: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
31626: esac
31627:
31628: cat >>Makefile.objects<<EOF
31629: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
31630: $ac_comp
31631: EOF
31632: done
31633:
31634:
31635: EXT_CLI_STATIC="$EXT_CLI_STATIC curl"
31636: fi
31637:
31638:
31639: BUILD_DIR="$BUILD_DIR $ext_builddir"
31640:
31641:
31642:
31643: if test "$ext_builddir" = "."; then
31644: PHP_PECL_EXTENSION=curl
31645:
31646: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
31647:
31648: fi
31649:
31650:
31651: PHP_VAR_SUBST="$PHP_VAR_SUBST CURL_SHARED_LIBADD"
31652:
31653: fi
31654:
31655:
31656:
31657:
31658:
31659:
31660:
31661:
31662:
31663:
31664:
31665:
31666:
31667:
31668:
31669:
31670:
31671: php_enable_dba=no
31672:
31673:
31674: # Check whether --enable-dba was given.
31675: if test "${enable_dba+set}" = set; then :
31676: enableval=$enable_dba; PHP_DBA=$enableval
31677: else
31678:
31679: PHP_DBA=no
31680: test "$PHP_ENABLE_ALL" && PHP_DBA=$PHP_ENABLE_ALL
31681:
31682: fi
31683:
31684:
31685:
31686: ext_output="yes, shared"
31687: ext_shared=yes
31688: case $PHP_DBA in
31689: shared,*)
31690: PHP_DBA=`echo "$PHP_DBA"|$SED 's/^shared,//'`
31691: ;;
31692: shared)
31693: PHP_DBA=yes
31694: ;;
31695: no)
31696: ext_output=no
31697: ext_shared=no
31698: ;;
31699: *)
31700: ext_output=yes
31701: ext_shared=no
31702: ;;
31703: esac
31704:
31705:
31706:
31707:
31708:
31709:
31710:
31711:
31712:
31713: php_with_qdbm=no
31714:
31715:
31716:
31717: # Check whether --with-qdbm was given.
31718: if test "${with_qdbm+set}" = set; then :
31719: withval=$with_qdbm; PHP_QDBM=$withval
31720: else
31721:
31722: PHP_QDBM=no
31723:
31724:
31725: fi
31726:
31727:
31728: ext_output=$PHP_QDBM
31729:
31730:
31731:
31732:
31733:
31734:
31735: php_with_gdbm=no
31736:
31737:
31738:
31739: # Check whether --with-gdbm was given.
31740: if test "${with_gdbm+set}" = set; then :
31741: withval=$with_gdbm; PHP_GDBM=$withval
31742: else
31743:
31744: PHP_GDBM=no
31745:
31746:
31747: fi
31748:
31749:
31750: ext_output=$PHP_GDBM
31751:
31752:
31753:
31754:
31755:
31756:
31757: php_with_ndbm=no
31758:
31759:
31760:
31761: # Check whether --with-ndbm was given.
31762: if test "${with_ndbm+set}" = set; then :
31763: withval=$with_ndbm; PHP_NDBM=$withval
31764: else
31765:
31766: PHP_NDBM=no
31767:
31768:
31769: fi
31770:
31771:
31772: ext_output=$PHP_NDBM
31773:
31774:
31775:
31776:
31777:
31778:
31779: php_with_db4=no
31780:
31781:
31782:
31783: # Check whether --with-db4 was given.
31784: if test "${with_db4+set}" = set; then :
31785: withval=$with_db4; PHP_DB4=$withval
31786: else
31787:
31788: PHP_DB4=no
31789:
31790:
31791: fi
31792:
31793:
31794: ext_output=$PHP_DB4
31795:
31796:
31797:
31798:
31799:
31800:
31801: php_with_db3=no
31802:
31803:
31804:
31805: # Check whether --with-db3 was given.
31806: if test "${with_db3+set}" = set; then :
31807: withval=$with_db3; PHP_DB3=$withval
31808: else
31809:
31810: PHP_DB3=no
31811:
31812:
31813: fi
31814:
31815:
31816: ext_output=$PHP_DB3
31817:
31818:
31819:
31820:
31821:
31822:
31823: php_with_db2=no
31824:
31825:
31826:
31827: # Check whether --with-db2 was given.
31828: if test "${with_db2+set}" = set; then :
31829: withval=$with_db2; PHP_DB2=$withval
31830: else
31831:
31832: PHP_DB2=no
31833:
31834:
31835: fi
31836:
31837:
31838: ext_output=$PHP_DB2
31839:
31840:
31841:
31842:
31843:
31844:
31845: php_with_db1=no
31846:
31847:
31848:
31849: # Check whether --with-db1 was given.
31850: if test "${with_db1+set}" = set; then :
31851: withval=$with_db1; PHP_DB1=$withval
31852: else
31853:
31854: PHP_DB1=no
31855:
31856:
31857: fi
31858:
31859:
31860: ext_output=$PHP_DB1
31861:
31862:
31863:
31864:
31865:
31866:
31867: php_with_dbm=no
31868:
31869:
31870:
31871: # Check whether --with-dbm was given.
31872: if test "${with_dbm+set}" = set; then :
31873: withval=$with_dbm; PHP_DBM=$withval
31874: else
31875:
31876: PHP_DBM=no
31877:
31878:
31879: fi
31880:
31881:
31882: ext_output=$PHP_DBM
31883:
31884:
31885:
31886:
31887:
31888:
31889: # QDBM
31890: if test "$PHP_QDBM" != "no"; then
31891:
31892: unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT
31893:
31894: for i in $PHP_QDBM /usr/local /usr; do
31895: if test -f "$i/include/depot.h"; then
31896: THIS_PREFIX=$i
31897: THIS_INCLUDE=$i/include/depot.h
31898: break
31899: fi
31900: done
31901:
31902: if test -n "$THIS_INCLUDE"; then
31903: for LIB in qdbm; do
31904:
31905: save_old_LDFLAGS=$LDFLAGS
31906: ac_stuff="-L$THIS_PREFIX/$PHP_LIBDIR"
31907:
31908: save_ext_shared=$ext_shared
31909: ext_shared=yes
31910:
31911: for ac_i in $ac_stuff; do
31912: case $ac_i in
31913: -pthread)
31914: if test "$ext_shared" = "yes"; then
31915: LDFLAGS="$LDFLAGS -pthread"
31916: else
31917:
31918:
31919: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
31920:
31921: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
31922: if test -n "$unique" && test "`eval $cmd`" = "" ; then
31923: eval "EXTRA_LDFLAGS$unique=set"
31924: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
31925: fi
31926:
31927: fi
31928: ;;
31929: -l*)
31930: ac_ii=`echo $ac_i|cut -c 3-`
31931:
31932:
31933: case $ac_ii in
31934: c|c_r|pthread*) ;;
31935: *)
31936: if test "$ext_shared" = "yes"; then
31937: LDFLAGS="$LDFLAGS -l$ac_ii"
31938: else
31939:
31940:
31941: case $ac_ii in
31942: c|c_r|pthread*) ;;
31943: *)
31944: LIBS="$LIBS -l$ac_ii"
31945: ;;
31946: esac
31947:
31948:
31949: fi
31950: ;;
31951: esac
31952:
31953:
31954: ;;
31955: -L*)
31956: ac_ii=`echo $ac_i|cut -c 3-`
31957:
31958: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
31959:
31960: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
31961: ai_p=$ac_ii
31962: else
31963:
31964: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
31965:
31966: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
31967: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
31968: fi
31969:
31970:
31971: if test "$ext_shared" = "yes"; then
31972: LDFLAGS="-L$ai_p $LDFLAGS"
31973: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
31974: else
31975:
31976:
31977:
31978: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
31979:
31980: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
31981: if test -n "$unique" && test "`eval $cmd`" = "" ; then
31982: eval "LIBPATH$unique=set"
31983:
31984: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
31985: LDFLAGS="$LDFLAGS -L$ai_p"
31986: PHP_RPATHS="$PHP_RPATHS $ai_p"
31987:
31988: fi
31989:
31990:
31991: fi
31992:
31993: fi
31994:
31995: ;;
31996: esac
31997: done
31998:
31999: as_ac_Lib=`$as_echo "ac_cv_lib_$LIB''_dpopen" | $as_tr_sh`
32000: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dpopen in -l$LIB" >&5
32001: $as_echo_n "checking for dpopen in -l$LIB... " >&6; }
32002: if eval \${$as_ac_Lib+:} false; then :
32003: $as_echo_n "(cached) " >&6
32004: else
32005: ac_check_lib_save_LIBS=$LIBS
32006: LIBS="-l$LIB $LIBS"
32007: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32008: /* end confdefs.h. */
32009:
32010: /* Override any GCC internal prototype to avoid an error.
32011: Use char because int might match the return type of a GCC
32012: builtin and then its argument prototype would still apply. */
32013: #ifdef __cplusplus
32014: extern "C"
32015: #endif
32016: char dpopen ();
32017: int
32018: main ()
32019: {
32020: return dpopen ();
32021: ;
32022: return 0;
32023: }
32024: _ACEOF
32025: if ac_fn_c_try_link "$LINENO"; then :
32026: eval "$as_ac_Lib=yes"
32027: else
32028: eval "$as_ac_Lib=no"
32029: fi
32030: rm -f core conftest.err conftest.$ac_objext \
32031: conftest$ac_exeext conftest.$ac_ext
32032: LIBS=$ac_check_lib_save_LIBS
32033: fi
32034: eval ac_res=\$$as_ac_Lib
32035: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
32036: $as_echo "$ac_res" >&6; }
32037: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
32038:
32039: LDFLAGS=$save_old_LDFLAGS
32040: ext_shared=$save_ext_shared
32041:
32042:
32043: cat >>confdefs.h <<_ACEOF
32044: #define QDBM_INCLUDE_FILE "$THIS_INCLUDE"
32045: _ACEOF
32046:
32047:
32048: $as_echo "#define DBA_QDBM 1" >>confdefs.h
32049:
32050: THIS_LIBS=$LIB
32051:
32052:
32053: else
32054:
32055: LDFLAGS=$save_old_LDFLAGS
32056: ext_shared=$save_ext_shared
32057: unset ac_cv_lib_$LIB_dpopen
32058:
32059:
32060: fi
32061:
32062: if test -n "$THIS_LIBS"; then
32063: break
32064: fi
32065: done
32066: fi
32067:
32068:
32069: if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then
32070: THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR
32071: fi
32072:
32073:
32074: THIS_RESULT=yes
32075: if test -z "$THIS_INCLUDE"; then
32076: as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5
32077: fi
32078: if test -z "$THIS_LIBS"; then
32079: as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5
32080: fi
32081:
32082:
32083:
32084:
32085: if test "$ext_shared" = "yes"; then
32086: DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD"
32087: if test -n "$THIS_LFLAGS"; then
32088:
32089: if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
32090:
32091: if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
32092: ai_p=$THIS_LFLAGS
32093: else
32094:
32095: ep_dir="`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`"
32096:
32097: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
32098: ai_p="$ep_realdir/`basename \"$THIS_LFLAGS\"`"
32099: fi
32100:
32101:
32102: if test "$ext_shared" = "yes"; then
32103: DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD"
32104: test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD"
32105: else
32106:
32107:
32108:
32109: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
32110:
32111: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
32112: if test -n "$unique" && test "`eval $cmd`" = "" ; then
32113: eval "LIBPATH$unique=set"
32114:
32115: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
32116: LDFLAGS="$LDFLAGS -L$ai_p"
32117: PHP_RPATHS="$PHP_RPATHS $ai_p"
32118:
32119: fi
32120:
32121:
32122: fi
32123:
32124: fi
32125:
32126: fi
32127: else
32128:
32129:
32130: if test -n "$THIS_LFLAGS"; then
32131:
32132: if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
32133:
32134: if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
32135: ai_p=$THIS_LFLAGS
32136: else
32137:
32138: ep_dir="`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`"
32139:
32140: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
32141: ai_p="$ep_realdir/`basename \"$THIS_LFLAGS\"`"
32142: fi
32143:
32144:
32145:
32146:
32147:
32148: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
32149:
32150: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
32151: if test -n "$unique" && test "`eval $cmd`" = "" ; then
32152: eval "LIBPATH$unique=set"
32153:
32154: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
32155: LDFLAGS="$LDFLAGS -L$ai_p"
32156: PHP_RPATHS="$PHP_RPATHS $ai_p"
32157:
32158: fi
32159:
32160:
32161:
32162: fi
32163:
32164: fi
32165:
32166:
32167: case $THIS_LIBS in
32168: c|c_r|pthread*) ;;
32169: *)
32170: LIBS="-l$THIS_LIBS $LIBS"
32171: ;;
32172: esac
32173:
32174:
32175:
32176:
32177: fi
32178:
32179:
32180: unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX
32181:
32182: fi
32183:
32184: THIS_NAME=QDBM
32185: if test -n ""; then
32186: THIS_FULL_NAME=""
32187: else
32188: THIS_FULL_NAME="$THIS_NAME"
32189: fi
32190: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5
32191: $as_echo_n "checking for $THIS_FULL_NAME support... " >&6; }
32192: if test -n ""; then
32193: as_fn_error $? "" "$LINENO" 5
32194: fi
32195: if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
32196: HAVE_DBA=1
32197: eval HAVE_$THIS_NAME=1
32198: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5
32199: $as_echo "$THIS_RESULT" >&6; }
32200: else
32201: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32202: $as_echo "no" >&6; }
32203: fi
32204: unset THIS_RESULT THIS_NAME THIS_FULL_NAME
32205:
32206:
32207: # GDBM
32208: if test "$PHP_GDBM" != "no"; then
32209:
32210: unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT
32211:
32212: if test "$HAVE_QDBM" = "1"; then
32213:
32214: THIS_NAME=GDBM
32215: if test -n "gdbm"; then
32216: THIS_FULL_NAME="gdbm"
32217: else
32218: THIS_FULL_NAME="$THIS_NAME"
32219: fi
32220: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5
32221: $as_echo_n "checking for $THIS_FULL_NAME support... " >&6; }
32222: if test -n "You cannot combine --with-gdbm with --with-qdbm"; then
32223: as_fn_error $? "You cannot combine --with-gdbm with --with-qdbm" "$LINENO" 5
32224: fi
32225: if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
32226: HAVE_DBA=1
32227: eval HAVE_$THIS_NAME=1
32228: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5
32229: $as_echo "$THIS_RESULT" >&6; }
32230: else
32231: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32232: $as_echo "no" >&6; }
32233: fi
32234: unset THIS_RESULT THIS_NAME THIS_FULL_NAME
32235:
32236: fi
32237: for i in $PHP_GDBM /usr/local /usr; do
32238: if test -f "$i/include/gdbm.h"; then
32239: THIS_PREFIX=$i
32240: THIS_INCLUDE=$i/include/gdbm.h
32241: break
32242: fi
32243: done
32244:
32245: if test -n "$THIS_INCLUDE"; then
32246:
32247: save_old_LDFLAGS=$LDFLAGS
32248: ac_stuff="-L$THIS_PREFIX/$PHP_LIBDIR"
32249:
32250: save_ext_shared=$ext_shared
32251: ext_shared=yes
32252:
32253: for ac_i in $ac_stuff; do
32254: case $ac_i in
32255: -pthread)
32256: if test "$ext_shared" = "yes"; then
32257: LDFLAGS="$LDFLAGS -pthread"
32258: else
32259:
32260:
32261: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
32262:
32263: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
32264: if test -n "$unique" && test "`eval $cmd`" = "" ; then
32265: eval "EXTRA_LDFLAGS$unique=set"
32266: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
32267: fi
32268:
32269: fi
32270: ;;
32271: -l*)
32272: ac_ii=`echo $ac_i|cut -c 3-`
32273:
32274:
32275: case $ac_ii in
32276: c|c_r|pthread*) ;;
32277: *)
32278: if test "$ext_shared" = "yes"; then
32279: LDFLAGS="$LDFLAGS -l$ac_ii"
32280: else
32281:
32282:
32283: case $ac_ii in
32284: c|c_r|pthread*) ;;
32285: *)
32286: LIBS="$LIBS -l$ac_ii"
32287: ;;
32288: esac
32289:
32290:
32291: fi
32292: ;;
32293: esac
32294:
32295:
32296: ;;
32297: -L*)
32298: ac_ii=`echo $ac_i|cut -c 3-`
32299:
32300: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
32301:
32302: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
32303: ai_p=$ac_ii
32304: else
32305:
32306: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
32307:
32308: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
32309: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
32310: fi
32311:
32312:
32313: if test "$ext_shared" = "yes"; then
32314: LDFLAGS="-L$ai_p $LDFLAGS"
32315: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
32316: else
32317:
32318:
32319:
32320: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
32321:
32322: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
32323: if test -n "$unique" && test "`eval $cmd`" = "" ; then
32324: eval "LIBPATH$unique=set"
32325:
32326: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
32327: LDFLAGS="$LDFLAGS -L$ai_p"
32328: PHP_RPATHS="$PHP_RPATHS $ai_p"
32329:
32330: fi
32331:
32332:
32333: fi
32334:
32335: fi
32336:
32337: ;;
32338: esac
32339: done
32340:
32341: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbm_open in -lgdbm" >&5
32342: $as_echo_n "checking for gdbm_open in -lgdbm... " >&6; }
32343: if ${ac_cv_lib_gdbm_gdbm_open+:} false; then :
32344: $as_echo_n "(cached) " >&6
32345: else
32346: ac_check_lib_save_LIBS=$LIBS
32347: LIBS="-lgdbm $LIBS"
32348: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32349: /* end confdefs.h. */
32350:
32351: /* Override any GCC internal prototype to avoid an error.
32352: Use char because int might match the return type of a GCC
32353: builtin and then its argument prototype would still apply. */
32354: #ifdef __cplusplus
32355: extern "C"
32356: #endif
32357: char gdbm_open ();
32358: int
32359: main ()
32360: {
32361: return gdbm_open ();
32362: ;
32363: return 0;
32364: }
32365: _ACEOF
32366: if ac_fn_c_try_link "$LINENO"; then :
32367: ac_cv_lib_gdbm_gdbm_open=yes
32368: else
32369: ac_cv_lib_gdbm_gdbm_open=no
32370: fi
32371: rm -f core conftest.err conftest.$ac_objext \
32372: conftest$ac_exeext conftest.$ac_ext
32373: LIBS=$ac_check_lib_save_LIBS
32374: fi
32375: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdbm_gdbm_open" >&5
32376: $as_echo "$ac_cv_lib_gdbm_gdbm_open" >&6; }
32377: if test "x$ac_cv_lib_gdbm_gdbm_open" = xyes; then :
32378:
32379: LDFLAGS=$save_old_LDFLAGS
32380: ext_shared=$save_ext_shared
32381:
32382:
32383: cat >>confdefs.h <<_ACEOF
32384: #define GDBM_INCLUDE_FILE "$THIS_INCLUDE"
32385: _ACEOF
32386:
32387:
32388: $as_echo "#define DBA_GDBM 1" >>confdefs.h
32389:
32390: THIS_LIBS=gdbm
32391:
32392:
32393: else
32394:
32395: LDFLAGS=$save_old_LDFLAGS
32396: ext_shared=$save_ext_shared
32397: unset ac_cv_lib_gdbm_gdbm_open
32398:
32399:
32400: fi
32401:
32402: fi
32403:
32404:
32405: if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then
32406: THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR
32407: fi
32408:
32409:
32410: THIS_RESULT=yes
32411: if test -z "$THIS_INCLUDE"; then
32412: as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5
32413: fi
32414: if test -z "$THIS_LIBS"; then
32415: as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5
32416: fi
32417:
32418:
32419:
32420:
32421: if test "$ext_shared" = "yes"; then
32422: DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD"
32423: if test -n "$THIS_LFLAGS"; then
32424:
32425: if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
32426:
32427: if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
32428: ai_p=$THIS_LFLAGS
32429: else
32430:
32431: ep_dir="`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`"
32432:
32433: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
32434: ai_p="$ep_realdir/`basename \"$THIS_LFLAGS\"`"
32435: fi
32436:
32437:
32438: if test "$ext_shared" = "yes"; then
32439: DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD"
32440: test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD"
32441: else
32442:
32443:
32444:
32445: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
32446:
32447: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
32448: if test -n "$unique" && test "`eval $cmd`" = "" ; then
32449: eval "LIBPATH$unique=set"
32450:
32451: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
32452: LDFLAGS="$LDFLAGS -L$ai_p"
32453: PHP_RPATHS="$PHP_RPATHS $ai_p"
32454:
32455: fi
32456:
32457:
32458: fi
32459:
32460: fi
32461:
32462: fi
32463: else
32464:
32465:
32466: if test -n "$THIS_LFLAGS"; then
32467:
32468: if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
32469:
32470: if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
32471: ai_p=$THIS_LFLAGS
32472: else
32473:
32474: ep_dir="`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`"
32475:
32476: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
32477: ai_p="$ep_realdir/`basename \"$THIS_LFLAGS\"`"
32478: fi
32479:
32480:
32481:
32482:
32483:
32484: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
32485:
32486: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
32487: if test -n "$unique" && test "`eval $cmd`" = "" ; then
32488: eval "LIBPATH$unique=set"
32489:
32490: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
32491: LDFLAGS="$LDFLAGS -L$ai_p"
32492: PHP_RPATHS="$PHP_RPATHS $ai_p"
32493:
32494: fi
32495:
32496:
32497:
32498: fi
32499:
32500: fi
32501:
32502:
32503: case $THIS_LIBS in
32504: c|c_r|pthread*) ;;
32505: *)
32506: LIBS="-l$THIS_LIBS $LIBS"
32507: ;;
32508: esac
32509:
32510:
32511:
32512:
32513: fi
32514:
32515:
32516: unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX
32517:
32518: fi
32519:
32520: THIS_NAME=GDBM
32521: if test -n ""; then
32522: THIS_FULL_NAME=""
32523: else
32524: THIS_FULL_NAME="$THIS_NAME"
32525: fi
32526: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5
32527: $as_echo_n "checking for $THIS_FULL_NAME support... " >&6; }
32528: if test -n ""; then
32529: as_fn_error $? "" "$LINENO" 5
32530: fi
32531: if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
32532: HAVE_DBA=1
32533: eval HAVE_$THIS_NAME=1
32534: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5
32535: $as_echo "$THIS_RESULT" >&6; }
32536: else
32537: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32538: $as_echo "no" >&6; }
32539: fi
32540: unset THIS_RESULT THIS_NAME THIS_FULL_NAME
32541:
32542:
32543: # NDBM
32544: if test "$PHP_NDBM" != "no"; then
32545:
32546: unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT
32547:
32548: for i in $PHP_NDBM /usr/local /usr; do
32549: if test -f "$i/include/ndbm.h"; then
32550: THIS_PREFIX=$i
32551: THIS_INCLUDE=$i/include/ndbm.h
32552: break
32553: elif test -f "$i/include/db1/ndbm.h"; then
32554: THIS_PREFIX=$i
32555: THIS_INCLUDE=$i/include/db1/ndbm.h
32556: break
32557: fi
32558: done
32559:
32560: if test -n "$THIS_INCLUDE"; then
32561: for LIB in ndbm db1 c; do
32562:
32563: save_old_LDFLAGS=$LDFLAGS
32564: ac_stuff="-L$THIS_PREFIX/$PHP_LIBDIR"
32565:
32566: save_ext_shared=$ext_shared
32567: ext_shared=yes
32568:
32569: for ac_i in $ac_stuff; do
32570: case $ac_i in
32571: -pthread)
32572: if test "$ext_shared" = "yes"; then
32573: LDFLAGS="$LDFLAGS -pthread"
32574: else
32575:
32576:
32577: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
32578:
32579: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
32580: if test -n "$unique" && test "`eval $cmd`" = "" ; then
32581: eval "EXTRA_LDFLAGS$unique=set"
32582: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
32583: fi
32584:
32585: fi
32586: ;;
32587: -l*)
32588: ac_ii=`echo $ac_i|cut -c 3-`
32589:
32590:
32591: case $ac_ii in
32592: c|c_r|pthread*) ;;
32593: *)
32594: if test "$ext_shared" = "yes"; then
32595: LDFLAGS="$LDFLAGS -l$ac_ii"
32596: else
32597:
32598:
32599: case $ac_ii in
32600: c|c_r|pthread*) ;;
32601: *)
32602: LIBS="$LIBS -l$ac_ii"
32603: ;;
32604: esac
32605:
32606:
32607: fi
32608: ;;
32609: esac
32610:
32611:
32612: ;;
32613: -L*)
32614: ac_ii=`echo $ac_i|cut -c 3-`
32615:
32616: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
32617:
32618: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
32619: ai_p=$ac_ii
32620: else
32621:
32622: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
32623:
32624: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
32625: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
32626: fi
32627:
32628:
32629: if test "$ext_shared" = "yes"; then
32630: LDFLAGS="-L$ai_p $LDFLAGS"
32631: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
32632: else
32633:
32634:
32635:
32636: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
32637:
32638: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
32639: if test -n "$unique" && test "`eval $cmd`" = "" ; then
32640: eval "LIBPATH$unique=set"
32641:
32642: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
32643: LDFLAGS="$LDFLAGS -L$ai_p"
32644: PHP_RPATHS="$PHP_RPATHS $ai_p"
32645:
32646: fi
32647:
32648:
32649: fi
32650:
32651: fi
32652:
32653: ;;
32654: esac
32655: done
32656:
32657: as_ac_Lib=`$as_echo "ac_cv_lib_$LIB''_dbm_open" | $as_tr_sh`
32658: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbm_open in -l$LIB" >&5
32659: $as_echo_n "checking for dbm_open in -l$LIB... " >&6; }
32660: if eval \${$as_ac_Lib+:} false; then :
32661: $as_echo_n "(cached) " >&6
32662: else
32663: ac_check_lib_save_LIBS=$LIBS
32664: LIBS="-l$LIB $LIBS"
32665: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32666: /* end confdefs.h. */
32667:
32668: /* Override any GCC internal prototype to avoid an error.
32669: Use char because int might match the return type of a GCC
32670: builtin and then its argument prototype would still apply. */
32671: #ifdef __cplusplus
32672: extern "C"
32673: #endif
32674: char dbm_open ();
32675: int
32676: main ()
32677: {
32678: return dbm_open ();
32679: ;
32680: return 0;
32681: }
32682: _ACEOF
32683: if ac_fn_c_try_link "$LINENO"; then :
32684: eval "$as_ac_Lib=yes"
32685: else
32686: eval "$as_ac_Lib=no"
32687: fi
32688: rm -f core conftest.err conftest.$ac_objext \
32689: conftest$ac_exeext conftest.$ac_ext
32690: LIBS=$ac_check_lib_save_LIBS
32691: fi
32692: eval ac_res=\$$as_ac_Lib
32693: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
32694: $as_echo "$ac_res" >&6; }
32695: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
32696:
32697: LDFLAGS=$save_old_LDFLAGS
32698: ext_shared=$save_ext_shared
32699:
32700:
32701: cat >>confdefs.h <<_ACEOF
32702: #define NDBM_INCLUDE_FILE "$THIS_INCLUDE"
32703: _ACEOF
32704:
32705:
32706: $as_echo "#define DBA_NDBM 1" >>confdefs.h
32707:
32708: THIS_LIBS=$LIB
32709:
32710:
32711: else
32712:
32713: LDFLAGS=$save_old_LDFLAGS
32714: ext_shared=$save_ext_shared
32715: unset ac_cv_lib_$LIB_dbm_open
32716:
32717:
32718: fi
32719:
32720: if test -n "$THIS_LIBS"; then
32721: break
32722: fi
32723: done
32724: fi
32725:
32726:
32727: if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then
32728: THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR
32729: fi
32730:
32731:
32732: THIS_RESULT=yes
32733: if test -z "$THIS_INCLUDE"; then
32734: as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5
32735: fi
32736: if test -z "$THIS_LIBS"; then
32737: as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5
32738: fi
32739:
32740:
32741:
32742:
32743: if test "$ext_shared" = "yes"; then
32744: DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD"
32745: if test -n "$THIS_LFLAGS"; then
32746:
32747: if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
32748:
32749: if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
32750: ai_p=$THIS_LFLAGS
32751: else
32752:
32753: ep_dir="`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`"
32754:
32755: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
32756: ai_p="$ep_realdir/`basename \"$THIS_LFLAGS\"`"
32757: fi
32758:
32759:
32760: if test "$ext_shared" = "yes"; then
32761: DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD"
32762: test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD"
32763: else
32764:
32765:
32766:
32767: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
32768:
32769: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
32770: if test -n "$unique" && test "`eval $cmd`" = "" ; then
32771: eval "LIBPATH$unique=set"
32772:
32773: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
32774: LDFLAGS="$LDFLAGS -L$ai_p"
32775: PHP_RPATHS="$PHP_RPATHS $ai_p"
32776:
32777: fi
32778:
32779:
32780: fi
32781:
32782: fi
32783:
32784: fi
32785: else
32786:
32787:
32788: if test -n "$THIS_LFLAGS"; then
32789:
32790: if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
32791:
32792: if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
32793: ai_p=$THIS_LFLAGS
32794: else
32795:
32796: ep_dir="`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`"
32797:
32798: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
32799: ai_p="$ep_realdir/`basename \"$THIS_LFLAGS\"`"
32800: fi
32801:
32802:
32803:
32804:
32805:
32806: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
32807:
32808: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
32809: if test -n "$unique" && test "`eval $cmd`" = "" ; then
32810: eval "LIBPATH$unique=set"
32811:
32812: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
32813: LDFLAGS="$LDFLAGS -L$ai_p"
32814: PHP_RPATHS="$PHP_RPATHS $ai_p"
32815:
32816: fi
32817:
32818:
32819:
32820: fi
32821:
32822: fi
32823:
32824:
32825: case $THIS_LIBS in
32826: c|c_r|pthread*) ;;
32827: *)
32828: LIBS="-l$THIS_LIBS $LIBS"
32829: ;;
32830: esac
32831:
32832:
32833:
32834:
32835: fi
32836:
32837:
32838: unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX
32839:
32840: fi
32841:
32842: THIS_NAME=NDBM
32843: if test -n ""; then
32844: THIS_FULL_NAME=""
32845: else
32846: THIS_FULL_NAME="$THIS_NAME"
32847: fi
32848: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5
32849: $as_echo_n "checking for $THIS_FULL_NAME support... " >&6; }
32850: if test -n ""; then
32851: as_fn_error $? "" "$LINENO" 5
32852: fi
32853: if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
32854: HAVE_DBA=1
32855: eval HAVE_$THIS_NAME=1
32856: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5
32857: $as_echo "$THIS_RESULT" >&6; }
32858: else
32859: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32860: $as_echo "no" >&6; }
32861: fi
32862: unset THIS_RESULT THIS_NAME THIS_FULL_NAME
32863:
32864:
32865:
32866:
32867: # DB4
32868: if test "$PHP_DB4" != "no"; then
32869:
32870: unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT
32871:
32872: dbdp4="/usr/local/BerkeleyDB.4."
32873: dbdp5="/usr/local/BerkeleyDB.5."
32874: 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
32875: if test -f "$i/db5/db.h"; then
32876: THIS_PREFIX=$i
32877: THIS_INCLUDE=$i/db5/db.h
32878: break
32879: elif test -f "$i/db4/db.h"; then
32880: THIS_PREFIX=$i
32881: THIS_INCLUDE=$i/db4/db.h
32882: break
32883: elif test -f "$i/include/db5.1/db.h"; then
32884: THIS_PREFIX=$i
32885: THIS_INCLUDE=$i/include/db5.1/db.h
32886: break
32887: elif test -f "$i/include/db5.0/db.h"; then
32888: THIS_PREFIX=$i
32889: THIS_INCLUDE=$i/include/db5.0/db.h
32890: break
32891: elif test -f "$i/include/db4.8/db.h"; then
32892: THIS_PREFIX=$i
32893: THIS_INCLUDE=$i/include/db4.8/db.h
32894: break
32895: elif test -f "$i/include/db4.7/db.h"; then
32896: THIS_PREFIX=$i
32897: THIS_INCLUDE=$i/include/db4.7/db.h
32898: break
32899: elif test -f "$i/include/db4.6/db.h"; then
32900: THIS_PREFIX=$i
32901: THIS_INCLUDE=$i/include/db4.6/db.h
32902: break
32903: elif test -f "$i/include/db4.5/db.h"; then
32904: THIS_PREFIX=$i
32905: THIS_INCLUDE=$i/include/db4.5/db.h
32906: break
32907: elif test -f "$i/include/db4/db.h"; then
32908: THIS_PREFIX=$i
32909: THIS_INCLUDE=$i/include/db4/db.h
32910: break
32911: elif test -f "$i/include/db/db4.h"; then
32912: THIS_PREFIX=$i
32913: THIS_INCLUDE=$i/include/db/db4.h
32914: break
32915: elif test -f "$i/include/db4.h"; then
32916: THIS_PREFIX=$i
32917: THIS_INCLUDE=$i/include/db4.h
32918: break
32919: elif test -f "$i/include/db.h"; then
32920: THIS_PREFIX=$i
32921: THIS_INCLUDE=$i/include/db.h
32922: break
32923: fi
32924: done
32925:
32926: if test -z "$THIS_INCLUDE"; then
32927: as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5
32928: fi
32929: 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
32930: if test -f $THIS_PREFIX/$PHP_LIBDIR/lib$LIB.a || test -f $THIS_PREFIX/$PHP_LIBDIR/lib$LIB.$SHLIB_SUFFIX_NAME; then
32931: lib_found="";
32932:
32933: old_LDFLAGS=$LDFLAGS
32934: LDFLAGS="-L$THIS_PREFIX/$PHP_LIBDIR $LDFLAGS"
32935: old_LIBS=$LIBS
32936: LIBS="-l$LIB $LIBS"
32937:
32938: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32939: /* end confdefs.h. */
32940:
32941: #include "$THIS_INCLUDE"
32942:
32943: int
32944: main ()
32945: {
32946:
32947: (void)db_create((DB**)0, (DB_ENV*)0, 0);
32948:
32949: ;
32950: return 0;
32951: }
32952: _ACEOF
32953: if ac_fn_c_try_link "$LINENO"; then :
32954:
32955: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32956: /* end confdefs.h. */
32957:
32958: #include "$THIS_INCLUDE"
32959: #if DB_VERSION_MAJOR == 4 || (4 == 4 && DB_VERSION_MAJOR == 5)
32960: yes
32961: #endif
32962:
32963: _ACEOF
32964: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32965: $EGREP "yes" >/dev/null 2>&1; then :
32966:
32967: THIS_LIBS=$LIB
32968: lib_found=1
32969:
32970: fi
32971: rm -f conftest*
32972:
32973:
32974: fi
32975: rm -f core conftest.err conftest.$ac_objext \
32976: conftest$ac_exeext conftest.$ac_ext
32977:
32978: LDFLAGS=$old_LDFLAGS
32979: LIBS=$old_LIBS
32980:
32981: if test -n "$lib_found"; then
32982: lib_found="";
32983: break;
32984: fi
32985: fi
32986: done
32987: if test -z "$THIS_LIBS"; then
32988: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DB4 major version" >&5
32989: $as_echo_n "checking for DB4 major version... " >&6; }
32990: as_fn_error $? "Header contains different version" "$LINENO" 5
32991: fi
32992: if test "4" = "4"; then
32993: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DB4 minor version and patch level" >&5
32994: $as_echo_n "checking for DB4 minor version and patch level... " >&6; }
32995: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32996: /* end confdefs.h. */
32997:
32998: #include "$THIS_INCLUDE"
32999: #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)
33000: yes
33001: #endif
33002:
33003: _ACEOF
33004: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33005: $EGREP "yes" >/dev/null 2>&1; then :
33006:
33007: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
33008: $as_echo "ok" >&6; }
33009:
33010: else
33011:
33012: as_fn_error $? "Version 4.1 requires patch level 25" "$LINENO" 5
33013:
33014: fi
33015: rm -f conftest*
33016:
33017: fi
33018: if test "$ext_shared" = "yes"; then
33019: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dba can be used as shared extension" >&5
33020: $as_echo_n "checking if dba can be used as shared extension... " >&6; }
33021: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33022: /* end confdefs.h. */
33023:
33024: #include "$THIS_INCLUDE"
33025: #if DB_VERSION_MAJOR > 3 || (DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR > 2)
33026: yes
33027: #endif
33028:
33029: _ACEOF
33030: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33031: $EGREP "yes" >/dev/null 2>&1; then :
33032:
33033: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33034: $as_echo "yes" >&6; }
33035:
33036: else
33037:
33038: as_fn_error $? "At least version 3.3 is required" "$LINENO" 5
33039:
33040: fi
33041: rm -f conftest*
33042:
33043: fi
33044: if test -n "$THIS_LIBS"; then
33045:
33046: $as_echo "#define DBA_DB4 1" >>confdefs.h
33047:
33048: if test -n "$THIS_INCLUDE"; then
33049:
33050: cat >>confdefs.h <<_ACEOF
33051: #define DB4_INCLUDE_FILE "$THIS_INCLUDE"
33052: _ACEOF
33053:
33054: fi
33055: else
33056: as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5
33057: fi
33058: THIS_RESULT=yes
33059: DB4_LIBS=$THIS_LIBS
33060: DB4_PREFIX=$THIS_PREFIX
33061: DB4_INCLUDE=$THIS_INCLUDE
33062:
33063: if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then
33064: THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR
33065: fi
33066:
33067:
33068:
33069:
33070: if test "$ext_shared" = "yes"; then
33071: DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD"
33072: if test -n "$THIS_LFLAGS"; then
33073:
33074: if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
33075:
33076: if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
33077: ai_p=$THIS_LFLAGS
33078: else
33079:
33080: ep_dir="`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`"
33081:
33082: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
33083: ai_p="$ep_realdir/`basename \"$THIS_LFLAGS\"`"
33084: fi
33085:
33086:
33087: if test "$ext_shared" = "yes"; then
33088: DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD"
33089: test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD"
33090: else
33091:
33092:
33093:
33094: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
33095:
33096: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
33097: if test -n "$unique" && test "`eval $cmd`" = "" ; then
33098: eval "LIBPATH$unique=set"
33099:
33100: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
33101: LDFLAGS="$LDFLAGS -L$ai_p"
33102: PHP_RPATHS="$PHP_RPATHS $ai_p"
33103:
33104: fi
33105:
33106:
33107: fi
33108:
33109: fi
33110:
33111: fi
33112: else
33113:
33114:
33115: if test -n "$THIS_LFLAGS"; then
33116:
33117: if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
33118:
33119: if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
33120: ai_p=$THIS_LFLAGS
33121: else
33122:
33123: ep_dir="`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`"
33124:
33125: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
33126: ai_p="$ep_realdir/`basename \"$THIS_LFLAGS\"`"
33127: fi
33128:
33129:
33130:
33131:
33132:
33133: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
33134:
33135: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
33136: if test -n "$unique" && test "`eval $cmd`" = "" ; then
33137: eval "LIBPATH$unique=set"
33138:
33139: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
33140: LDFLAGS="$LDFLAGS -L$ai_p"
33141: PHP_RPATHS="$PHP_RPATHS $ai_p"
33142:
33143: fi
33144:
33145:
33146:
33147: fi
33148:
33149: fi
33150:
33151:
33152: case $THIS_LIBS in
33153: c|c_r|pthread*) ;;
33154: *)
33155: LIBS="-l$THIS_LIBS $LIBS"
33156: ;;
33157: esac
33158:
33159:
33160:
33161:
33162: fi
33163:
33164:
33165: unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX
33166:
33167:
33168: fi
33169:
33170: THIS_NAME=DB4
33171: if test -n "Berkeley DB4"; then
33172: THIS_FULL_NAME="Berkeley DB4"
33173: else
33174: THIS_FULL_NAME="$THIS_NAME"
33175: fi
33176: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5
33177: $as_echo_n "checking for $THIS_FULL_NAME support... " >&6; }
33178: if test -n ""; then
33179: as_fn_error $? "" "$LINENO" 5
33180: fi
33181: if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
33182: HAVE_DBA=1
33183: eval HAVE_$THIS_NAME=1
33184: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5
33185: $as_echo "$THIS_RESULT" >&6; }
33186: else
33187: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33188: $as_echo "no" >&6; }
33189: fi
33190: unset THIS_RESULT THIS_NAME THIS_FULL_NAME
33191:
33192:
33193: # DB3
33194: if test "$PHP_DB3" != "no"; then
33195:
33196: unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT
33197:
33198: if test "$HAVE_DB4" = "1"; then
33199:
33200: THIS_NAME=DB3
33201: if test -n "Berkeley DB3"; then
33202: THIS_FULL_NAME="Berkeley DB3"
33203: else
33204: THIS_FULL_NAME="$THIS_NAME"
33205: fi
33206: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5
33207: $as_echo_n "checking for $THIS_FULL_NAME support... " >&6; }
33208: if test -n "You cannot combine --with-db3 with --with-db4"; then
33209: as_fn_error $? "You cannot combine --with-db3 with --with-db4" "$LINENO" 5
33210: fi
33211: if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
33212: HAVE_DBA=1
33213: eval HAVE_$THIS_NAME=1
33214: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5
33215: $as_echo "$THIS_RESULT" >&6; }
33216: else
33217: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33218: $as_echo "no" >&6; }
33219: fi
33220: unset THIS_RESULT THIS_NAME THIS_FULL_NAME
33221:
33222: fi
33223: 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
33224: if test -f "$i/db3/db.h"; then
33225: THIS_PREFIX=$i
33226: THIS_INCLUDE=$i/include/db3/db.h
33227: break
33228: elif test -f "$i/include/db3/db.h"; then
33229: THIS_PREFIX=$i
33230: THIS_INCLUDE=$i/include/db3/db.h
33231: break
33232: elif test -f "$i/include/db/db3.h"; then
33233: THIS_PREFIX=$i
33234: THIS_INCLUDE=$i/include/db/db3.h
33235: break
33236: elif test -f "$i/include/db3.h"; then
33237: THIS_PREFIX=$i
33238: THIS_INCLUDE=$i/include/db3.h
33239: break
33240: elif test -f "$i/include/db.h"; then
33241: THIS_PREFIX=$i
33242: THIS_INCLUDE=$i/include/db.h
33243: break
33244: fi
33245: done
33246:
33247: if test -z "$THIS_INCLUDE"; then
33248: as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5
33249: fi
33250: for LIB in db-3.3 db-3.2 db-3.1 db-3.0 db-3 db3 db; do
33251: if test -f $THIS_PREFIX/$PHP_LIBDIR/lib$LIB.a || test -f $THIS_PREFIX/$PHP_LIBDIR/lib$LIB.$SHLIB_SUFFIX_NAME; then
33252: lib_found="";
33253:
33254: old_LDFLAGS=$LDFLAGS
33255: LDFLAGS="-L$THIS_PREFIX/$PHP_LIBDIR $LDFLAGS"
33256: old_LIBS=$LIBS
33257: LIBS="-l$LIB $LIBS"
33258:
33259: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33260: /* end confdefs.h. */
33261:
33262: #include "$THIS_INCLUDE"
33263:
33264: int
33265: main ()
33266: {
33267:
33268: (void)db_create((DB**)0, (DB_ENV*)0, 0);
33269:
33270: ;
33271: return 0;
33272: }
33273: _ACEOF
33274: if ac_fn_c_try_link "$LINENO"; then :
33275:
33276: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33277: /* end confdefs.h. */
33278:
33279: #include "$THIS_INCLUDE"
33280: #if DB_VERSION_MAJOR == 3 || (3 == 4 && DB_VERSION_MAJOR == 5)
33281: yes
33282: #endif
33283:
33284: _ACEOF
33285: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33286: $EGREP "yes" >/dev/null 2>&1; then :
33287:
33288: THIS_LIBS=$LIB
33289: lib_found=1
33290:
33291: fi
33292: rm -f conftest*
33293:
33294:
33295: fi
33296: rm -f core conftest.err conftest.$ac_objext \
33297: conftest$ac_exeext conftest.$ac_ext
33298:
33299: LDFLAGS=$old_LDFLAGS
33300: LIBS=$old_LIBS
33301:
33302: if test -n "$lib_found"; then
33303: lib_found="";
33304: break;
33305: fi
33306: fi
33307: done
33308: if test -z "$THIS_LIBS"; then
33309: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DB3 major version" >&5
33310: $as_echo_n "checking for DB3 major version... " >&6; }
33311: as_fn_error $? "Header contains different version" "$LINENO" 5
33312: fi
33313: if test "3" = "4"; then
33314: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DB4 minor version and patch level" >&5
33315: $as_echo_n "checking for DB4 minor version and patch level... " >&6; }
33316: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33317: /* end confdefs.h. */
33318:
33319: #include "$THIS_INCLUDE"
33320: #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)
33321: yes
33322: #endif
33323:
33324: _ACEOF
33325: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33326: $EGREP "yes" >/dev/null 2>&1; then :
33327:
33328: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
33329: $as_echo "ok" >&6; }
33330:
33331: else
33332:
33333: as_fn_error $? "Version 4.1 requires patch level 25" "$LINENO" 5
33334:
33335: fi
33336: rm -f conftest*
33337:
33338: fi
33339: if test "$ext_shared" = "yes"; then
33340: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dba can be used as shared extension" >&5
33341: $as_echo_n "checking if dba can be used as shared extension... " >&6; }
33342: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33343: /* end confdefs.h. */
33344:
33345: #include "$THIS_INCLUDE"
33346: #if DB_VERSION_MAJOR > 3 || (DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR > 2)
33347: yes
33348: #endif
33349:
33350: _ACEOF
33351: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33352: $EGREP "yes" >/dev/null 2>&1; then :
33353:
33354: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33355: $as_echo "yes" >&6; }
33356:
33357: else
33358:
33359: as_fn_error $? "At least version 3.3 is required" "$LINENO" 5
33360:
33361: fi
33362: rm -f conftest*
33363:
33364: fi
33365: if test -n "$THIS_LIBS"; then
33366:
33367: $as_echo "#define DBA_DB3 1" >>confdefs.h
33368:
33369: if test -n "$THIS_INCLUDE"; then
33370:
33371: cat >>confdefs.h <<_ACEOF
33372: #define DB3_INCLUDE_FILE "$THIS_INCLUDE"
33373: _ACEOF
33374:
33375: fi
33376: else
33377: as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5
33378: fi
33379: THIS_RESULT=yes
33380: DB3_LIBS=$THIS_LIBS
33381: DB3_PREFIX=$THIS_PREFIX
33382: DB3_INCLUDE=$THIS_INCLUDE
33383:
33384: if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then
33385: THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR
33386: fi
33387:
33388:
33389:
33390:
33391: if test "$ext_shared" = "yes"; then
33392: DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD"
33393: if test -n "$THIS_LFLAGS"; then
33394:
33395: if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
33396:
33397: if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
33398: ai_p=$THIS_LFLAGS
33399: else
33400:
33401: ep_dir="`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`"
33402:
33403: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
33404: ai_p="$ep_realdir/`basename \"$THIS_LFLAGS\"`"
33405: fi
33406:
33407:
33408: if test "$ext_shared" = "yes"; then
33409: DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD"
33410: test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD"
33411: else
33412:
33413:
33414:
33415: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
33416:
33417: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
33418: if test -n "$unique" && test "`eval $cmd`" = "" ; then
33419: eval "LIBPATH$unique=set"
33420:
33421: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
33422: LDFLAGS="$LDFLAGS -L$ai_p"
33423: PHP_RPATHS="$PHP_RPATHS $ai_p"
33424:
33425: fi
33426:
33427:
33428: fi
33429:
33430: fi
33431:
33432: fi
33433: else
33434:
33435:
33436: if test -n "$THIS_LFLAGS"; then
33437:
33438: if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
33439:
33440: if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
33441: ai_p=$THIS_LFLAGS
33442: else
33443:
33444: ep_dir="`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`"
33445:
33446: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
33447: ai_p="$ep_realdir/`basename \"$THIS_LFLAGS\"`"
33448: fi
33449:
33450:
33451:
33452:
33453:
33454: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
33455:
33456: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
33457: if test -n "$unique" && test "`eval $cmd`" = "" ; then
33458: eval "LIBPATH$unique=set"
33459:
33460: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
33461: LDFLAGS="$LDFLAGS -L$ai_p"
33462: PHP_RPATHS="$PHP_RPATHS $ai_p"
33463:
33464: fi
33465:
33466:
33467:
33468: fi
33469:
33470: fi
33471:
33472:
33473: case $THIS_LIBS in
33474: c|c_r|pthread*) ;;
33475: *)
33476: LIBS="-l$THIS_LIBS $LIBS"
33477: ;;
33478: esac
33479:
33480:
33481:
33482:
33483: fi
33484:
33485:
33486: unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX
33487:
33488:
33489: fi
33490:
33491: THIS_NAME=DB3
33492: if test -n "Berkeley DB3"; then
33493: THIS_FULL_NAME="Berkeley DB3"
33494: else
33495: THIS_FULL_NAME="$THIS_NAME"
33496: fi
33497: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5
33498: $as_echo_n "checking for $THIS_FULL_NAME support... " >&6; }
33499: if test -n ""; then
33500: as_fn_error $? "" "$LINENO" 5
33501: fi
33502: if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
33503: HAVE_DBA=1
33504: eval HAVE_$THIS_NAME=1
33505: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5
33506: $as_echo "$THIS_RESULT" >&6; }
33507: else
33508: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33509: $as_echo "no" >&6; }
33510: fi
33511: unset THIS_RESULT THIS_NAME THIS_FULL_NAME
33512:
33513:
33514: # DB2
33515: if test "$PHP_DB2" != "no"; then
33516:
33517: unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT
33518:
33519: if test "$HAVE_DB3" = "1" || test "$HAVE_DB4" = "1"; then
33520:
33521: THIS_NAME=DB2
33522: if test -n "Berkeley DB2"; then
33523: THIS_FULL_NAME="Berkeley DB2"
33524: else
33525: THIS_FULL_NAME="$THIS_NAME"
33526: fi
33527: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5
33528: $as_echo_n "checking for $THIS_FULL_NAME support... " >&6; }
33529: if test -n "You cannot combine --with-db2 with --with-db3 or --with-db4"; then
33530: as_fn_error $? "You cannot combine --with-db2 with --with-db3 or --with-db4" "$LINENO" 5
33531: fi
33532: if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
33533: HAVE_DBA=1
33534: eval HAVE_$THIS_NAME=1
33535: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5
33536: $as_echo "$THIS_RESULT" >&6; }
33537: else
33538: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33539: $as_echo "no" >&6; }
33540: fi
33541: unset THIS_RESULT THIS_NAME THIS_FULL_NAME
33542:
33543: fi
33544: for i in $PHP_DB2 $PHP_DB2/BerkeleyDB /usr/BerkeleyDB /usr/local /usr; do
33545: if test -f "$i/db2/db.h"; then
33546: THIS_PREFIX=$i
33547: THIS_INCLUDE=$i/db2/db.h
33548: break
33549: elif test -f "$i/include/db2/db.h"; then
33550: THIS_PREFIX=$i
33551: THIS_INCLUDE=$i/include/db2/db.h
33552: break
33553: elif test -f "$i/include/db/db2.h"; then
33554: THIS_PREFIX=$i
33555: THIS_INCLUDE=$i/include/db/db2.h
33556: break
33557: elif test -f "$i/include/db2.h"; then
33558: THIS_PREFIX=$i
33559: THIS_INCLUDE=$i/include/db2.h
33560: break
33561: elif test -f "$i/include/db.h"; then
33562: THIS_PREFIX=$i
33563: THIS_INCLUDE=$i/include/db.h
33564: break
33565: fi
33566: done
33567:
33568: if test -z "$THIS_INCLUDE"; then
33569: as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5
33570: fi
33571: for LIB in db-2 db2 db; do
33572: if test -f $THIS_PREFIX/$PHP_LIBDIR/lib$LIB.a || test -f $THIS_PREFIX/$PHP_LIBDIR/lib$LIB.$SHLIB_SUFFIX_NAME; then
33573: lib_found="";
33574:
33575: old_LDFLAGS=$LDFLAGS
33576: LDFLAGS="-L$THIS_PREFIX/$PHP_LIBDIR $LDFLAGS"
33577: old_LIBS=$LIBS
33578: LIBS="-l$LIB $LIBS"
33579:
33580: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33581: /* end confdefs.h. */
33582:
33583: #include "$THIS_INCLUDE"
33584:
33585: int
33586: main ()
33587: {
33588:
33589: (void)db_appinit("", NULL, (DB_ENV*)0, 0);
33590:
33591: ;
33592: return 0;
33593: }
33594: _ACEOF
33595: if ac_fn_c_try_link "$LINENO"; then :
33596:
33597: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33598: /* end confdefs.h. */
33599:
33600: #include "$THIS_INCLUDE"
33601: #if DB_VERSION_MAJOR == 2 || (2 == 4 && DB_VERSION_MAJOR == 5)
33602: yes
33603: #endif
33604:
33605: _ACEOF
33606: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33607: $EGREP "yes" >/dev/null 2>&1; then :
33608:
33609: THIS_LIBS=$LIB
33610: lib_found=1
33611:
33612: fi
33613: rm -f conftest*
33614:
33615:
33616: fi
33617: rm -f core conftest.err conftest.$ac_objext \
33618: conftest$ac_exeext conftest.$ac_ext
33619:
33620: LDFLAGS=$old_LDFLAGS
33621: LIBS=$old_LIBS
33622:
33623: if test -n "$lib_found"; then
33624: lib_found="";
33625: break;
33626: fi
33627: fi
33628: done
33629: if test -z "$THIS_LIBS"; then
33630: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DB2 major version" >&5
33631: $as_echo_n "checking for DB2 major version... " >&6; }
33632: as_fn_error $? "Header contains different version" "$LINENO" 5
33633: fi
33634: if test "2" = "4"; then
33635: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DB4 minor version and patch level" >&5
33636: $as_echo_n "checking for DB4 minor version and patch level... " >&6; }
33637: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33638: /* end confdefs.h. */
33639:
33640: #include "$THIS_INCLUDE"
33641: #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)
33642: yes
33643: #endif
33644:
33645: _ACEOF
33646: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33647: $EGREP "yes" >/dev/null 2>&1; then :
33648:
33649: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
33650: $as_echo "ok" >&6; }
33651:
33652: else
33653:
33654: as_fn_error $? "Version 4.1 requires patch level 25" "$LINENO" 5
33655:
33656: fi
33657: rm -f conftest*
33658:
33659: fi
33660: if test "$ext_shared" = "yes"; then
33661: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dba can be used as shared extension" >&5
33662: $as_echo_n "checking if dba can be used as shared extension... " >&6; }
33663: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33664: /* end confdefs.h. */
33665:
33666: #include "$THIS_INCLUDE"
33667: #if DB_VERSION_MAJOR > 3 || (DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR > 2)
33668: yes
33669: #endif
33670:
33671: _ACEOF
33672: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33673: $EGREP "yes" >/dev/null 2>&1; then :
33674:
33675: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33676: $as_echo "yes" >&6; }
33677:
33678: else
33679:
33680: as_fn_error $? "At least version 3.3 is required" "$LINENO" 5
33681:
33682: fi
33683: rm -f conftest*
33684:
33685: fi
33686: if test -n "$THIS_LIBS"; then
33687:
33688: $as_echo "#define DBA_DB2 1" >>confdefs.h
33689:
33690: if test -n "$THIS_INCLUDE"; then
33691:
33692: cat >>confdefs.h <<_ACEOF
33693: #define DB2_INCLUDE_FILE "$THIS_INCLUDE"
33694: _ACEOF
33695:
33696: fi
33697: else
33698: as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5
33699: fi
33700: THIS_RESULT=yes
33701: DB2_LIBS=$THIS_LIBS
33702: DB2_PREFIX=$THIS_PREFIX
33703: DB2_INCLUDE=$THIS_INCLUDE
33704:
33705: if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then
33706: THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR
33707: fi
33708:
33709:
33710:
33711:
33712: if test "$ext_shared" = "yes"; then
33713: DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD"
33714: if test -n "$THIS_LFLAGS"; then
33715:
33716: if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
33717:
33718: if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
33719: ai_p=$THIS_LFLAGS
33720: else
33721:
33722: ep_dir="`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`"
33723:
33724: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
33725: ai_p="$ep_realdir/`basename \"$THIS_LFLAGS\"`"
33726: fi
33727:
33728:
33729: if test "$ext_shared" = "yes"; then
33730: DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD"
33731: test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD"
33732: else
33733:
33734:
33735:
33736: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
33737:
33738: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
33739: if test -n "$unique" && test "`eval $cmd`" = "" ; then
33740: eval "LIBPATH$unique=set"
33741:
33742: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
33743: LDFLAGS="$LDFLAGS -L$ai_p"
33744: PHP_RPATHS="$PHP_RPATHS $ai_p"
33745:
33746: fi
33747:
33748:
33749: fi
33750:
33751: fi
33752:
33753: fi
33754: else
33755:
33756:
33757: if test -n "$THIS_LFLAGS"; then
33758:
33759: if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
33760:
33761: if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
33762: ai_p=$THIS_LFLAGS
33763: else
33764:
33765: ep_dir="`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`"
33766:
33767: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
33768: ai_p="$ep_realdir/`basename \"$THIS_LFLAGS\"`"
33769: fi
33770:
33771:
33772:
33773:
33774:
33775: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
33776:
33777: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
33778: if test -n "$unique" && test "`eval $cmd`" = "" ; then
33779: eval "LIBPATH$unique=set"
33780:
33781: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
33782: LDFLAGS="$LDFLAGS -L$ai_p"
33783: PHP_RPATHS="$PHP_RPATHS $ai_p"
33784:
33785: fi
33786:
33787:
33788:
33789: fi
33790:
33791: fi
33792:
33793:
33794: case $THIS_LIBS in
33795: c|c_r|pthread*) ;;
33796: *)
33797: LIBS="-l$THIS_LIBS $LIBS"
33798: ;;
33799: esac
33800:
33801:
33802:
33803:
33804: fi
33805:
33806:
33807: unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX
33808:
33809:
33810: fi
33811:
33812: THIS_NAME=DB2
33813: if test -n "Berkeley DB2"; then
33814: THIS_FULL_NAME="Berkeley DB2"
33815: else
33816: THIS_FULL_NAME="$THIS_NAME"
33817: fi
33818: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5
33819: $as_echo_n "checking for $THIS_FULL_NAME support... " >&6; }
33820: if test -n ""; then
33821: as_fn_error $? "" "$LINENO" 5
33822: fi
33823: if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
33824: HAVE_DBA=1
33825: eval HAVE_$THIS_NAME=1
33826: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5
33827: $as_echo "$THIS_RESULT" >&6; }
33828: else
33829: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33830: $as_echo "no" >&6; }
33831: fi
33832: unset THIS_RESULT THIS_NAME THIS_FULL_NAME
33833:
33834:
33835: # DB1
33836: if test "$PHP_DB1" != "no"; then
33837:
33838: unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT
33839:
33840: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DB1 in library" >&5
33841: $as_echo_n "checking for DB1 in library... " >&6; }
33842: if test "$HAVE_DB4" = "1"; then
33843: THIS_VERSION=4
33844: THIS_LIBS=$DB4_LIBS
33845: THIS_PREFIX=$DB4_PREFIX
33846: elif test "$HAVE_DB3" = "1"; then
33847: THIS_LIBS=$DB3_LIBS
33848: THIS_PREFIX=$DB3_PREFIX
33849: elif test "$HAVE_DB2" = "1"; then
33850: THIS_VERSION=2
33851: THIS_LIBS=$DB2_LIBS
33852: THIS_PREFIX=$DB2_PREFIX
33853: fi
33854: if test "$HAVE_DB4" = "1" || test "$HAVE_DB3" = "1" || test "$HAVE_DB2" = "1"; then
33855:
33856: cat >>confdefs.h <<_ACEOF
33857: #define DB1_VERSION "Berkeley DB 1.85 emulation in DB$THIS_VERSION"
33858: _ACEOF
33859:
33860: for i in db$THIS_VERSION/db_185.h include/db$THIS_VERSION/db_185.h include/db/db_185.h; do
33861: if test -f "$THIS_PREFIX/$i"; then
33862: THIS_INCLUDE=$THIS_PREFIX/$i
33863: break
33864: fi
33865: done
33866: else
33867:
33868: cat >>confdefs.h <<_ACEOF
33869: #define DB1_VERSION "Unknown DB1"
33870: _ACEOF
33871:
33872: for i in $PHP_DB1 /usr/local /usr; do
33873: if test -f "$i/db1/db.h"; then
33874: THIS_PREFIX=$i
33875: THIS_INCLUDE=$i/db1/db.h
33876: break
33877: elif test -f "$i/include/db1/db.h"; then
33878: THIS_PREFIX=$i
33879: THIS_INCLUDE=$i/include/db1/db.h
33880: break
33881: elif test -f "$i/include/db.h"; then
33882: THIS_PREFIX=$i
33883: THIS_INCLUDE=$i/include/db.h
33884: break
33885: fi
33886: done
33887: THIS_LIBS=db
33888: fi
33889: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_LIBS" >&5
33890: $as_echo "$THIS_LIBS" >&6; }
33891: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DB1 in header" >&5
33892: $as_echo_n "checking for DB1 in header... " >&6; }
33893: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_INCLUDE" >&5
33894: $as_echo "$THIS_INCLUDE" >&6; }
33895: if test -n "$THIS_INCLUDE"; then
33896:
33897: old_LDFLAGS=$LDFLAGS
33898: LDFLAGS="-L$THIS_PREFIX/$PHP_LIBDIR $LDFLAGS"
33899: old_LIBS=$LIBS
33900: LIBS="-l$THIS_LIBS $LIBS"
33901:
33902: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33903: /* end confdefs.h. */
33904:
33905: #include "$THIS_INCLUDE"
33906:
33907: int
33908: main ()
33909: {
33910:
33911: DB * dbp = dbopen("", 0, 0, DB_HASH, 0);
33912:
33913: ;
33914: return 0;
33915: }
33916: _ACEOF
33917: if ac_fn_c_try_link "$LINENO"; then :
33918:
33919:
33920: cat >>confdefs.h <<_ACEOF
33921: #define DB1_INCLUDE_FILE "$THIS_INCLUDE"
33922: _ACEOF
33923:
33924:
33925: $as_echo "#define DBA_DB1 1" >>confdefs.h
33926:
33927: THIS_RESULT=yes
33928:
33929: else
33930:
33931: THIS_RESULT=no
33932:
33933: fi
33934: rm -f core conftest.err conftest.$ac_objext \
33935: conftest$ac_exeext conftest.$ac_ext
33936:
33937: LDFLAGS=$old_LDFLAGS
33938: LIBS=$old_LIBS
33939:
33940: fi
33941:
33942: if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then
33943: THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR
33944: fi
33945:
33946:
33947: THIS_RESULT=yes
33948: if test -z "$THIS_INCLUDE"; then
33949: as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5
33950: fi
33951: if test -z "$THIS_LIBS"; then
33952: as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5
33953: fi
33954:
33955:
33956:
33957:
33958: if test "$ext_shared" = "yes"; then
33959: DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD"
33960: if test -n "$THIS_LFLAGS"; then
33961:
33962: if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
33963:
33964: if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
33965: ai_p=$THIS_LFLAGS
33966: else
33967:
33968: ep_dir="`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`"
33969:
33970: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
33971: ai_p="$ep_realdir/`basename \"$THIS_LFLAGS\"`"
33972: fi
33973:
33974:
33975: if test "$ext_shared" = "yes"; then
33976: DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD"
33977: test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD"
33978: else
33979:
33980:
33981:
33982: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
33983:
33984: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
33985: if test -n "$unique" && test "`eval $cmd`" = "" ; then
33986: eval "LIBPATH$unique=set"
33987:
33988: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
33989: LDFLAGS="$LDFLAGS -L$ai_p"
33990: PHP_RPATHS="$PHP_RPATHS $ai_p"
33991:
33992: fi
33993:
33994:
33995: fi
33996:
33997: fi
33998:
33999: fi
34000: else
34001:
34002:
34003: if test -n "$THIS_LFLAGS"; then
34004:
34005: if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
34006:
34007: if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
34008: ai_p=$THIS_LFLAGS
34009: else
34010:
34011: ep_dir="`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`"
34012:
34013: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
34014: ai_p="$ep_realdir/`basename \"$THIS_LFLAGS\"`"
34015: fi
34016:
34017:
34018:
34019:
34020:
34021: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
34022:
34023: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
34024: if test -n "$unique" && test "`eval $cmd`" = "" ; then
34025: eval "LIBPATH$unique=set"
34026:
34027: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
34028: LDFLAGS="$LDFLAGS -L$ai_p"
34029: PHP_RPATHS="$PHP_RPATHS $ai_p"
34030:
34031: fi
34032:
34033:
34034:
34035: fi
34036:
34037: fi
34038:
34039:
34040: case $THIS_LIBS in
34041: c|c_r|pthread*) ;;
34042: *)
34043: LIBS="-l$THIS_LIBS $LIBS"
34044: ;;
34045: esac
34046:
34047:
34048:
34049:
34050: fi
34051:
34052:
34053: unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX
34054:
34055: fi
34056:
34057: THIS_NAME=DB1
34058: if test -n "DB1"; then
34059: THIS_FULL_NAME="DB1"
34060: else
34061: THIS_FULL_NAME="$THIS_NAME"
34062: fi
34063: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5
34064: $as_echo_n "checking for $THIS_FULL_NAME support... " >&6; }
34065: if test -n ""; then
34066: as_fn_error $? "" "$LINENO" 5
34067: fi
34068: if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
34069: HAVE_DBA=1
34070: eval HAVE_$THIS_NAME=1
34071: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5
34072: $as_echo "$THIS_RESULT" >&6; }
34073: else
34074: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34075: $as_echo "no" >&6; }
34076: fi
34077: unset THIS_RESULT THIS_NAME THIS_FULL_NAME
34078:
34079:
34080: # DBM
34081: if test "$PHP_DBM" != "no"; then
34082:
34083: unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT
34084:
34085: if test "$HAVE_QDBM" = "1"; then
34086:
34087: THIS_NAME=DBM
34088: if test -n "dbm"; then
34089: THIS_FULL_NAME="dbm"
34090: else
34091: THIS_FULL_NAME="$THIS_NAME"
34092: fi
34093: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5
34094: $as_echo_n "checking for $THIS_FULL_NAME support... " >&6; }
34095: if test -n "You cannot combine --with-dbm with --with-qdbm"; then
34096: as_fn_error $? "You cannot combine --with-dbm with --with-qdbm" "$LINENO" 5
34097: fi
34098: if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
34099: HAVE_DBA=1
34100: eval HAVE_$THIS_NAME=1
34101: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5
34102: $as_echo "$THIS_RESULT" >&6; }
34103: else
34104: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34105: $as_echo "no" >&6; }
34106: fi
34107: unset THIS_RESULT THIS_NAME THIS_FULL_NAME
34108:
34109: fi
34110: for i in $PHP_DBM /usr/local /usr; do
34111: if test -f "$i/include/dbm.h"; then
34112: THIS_PREFIX=$i
34113: THIS_INCLUDE=$i/include/dbm.h
34114: break
34115: elif test -f "$i/include/gdbm/dbm.h"; then
34116: THIS_PREFIX=$i
34117: THIS_INCLUDE=$i/include/gdbm/dbm.h
34118: break
34119: fi
34120: done
34121:
34122: if test -n "$THIS_INCLUDE"; then
34123: for LIB in dbm c gdbm; do
34124:
34125: save_old_LDFLAGS=$LDFLAGS
34126: ac_stuff="-L$THIS_PREFIX/$PHP_LIBDIR"
34127:
34128: save_ext_shared=$ext_shared
34129: ext_shared=yes
34130:
34131: for ac_i in $ac_stuff; do
34132: case $ac_i in
34133: -pthread)
34134: if test "$ext_shared" = "yes"; then
34135: LDFLAGS="$LDFLAGS -pthread"
34136: else
34137:
34138:
34139: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
34140:
34141: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
34142: if test -n "$unique" && test "`eval $cmd`" = "" ; then
34143: eval "EXTRA_LDFLAGS$unique=set"
34144: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
34145: fi
34146:
34147: fi
34148: ;;
34149: -l*)
34150: ac_ii=`echo $ac_i|cut -c 3-`
34151:
34152:
34153: case $ac_ii in
34154: c|c_r|pthread*) ;;
34155: *)
34156: if test "$ext_shared" = "yes"; then
34157: LDFLAGS="$LDFLAGS -l$ac_ii"
34158: else
34159:
34160:
34161: case $ac_ii in
34162: c|c_r|pthread*) ;;
34163: *)
34164: LIBS="$LIBS -l$ac_ii"
34165: ;;
34166: esac
34167:
34168:
34169: fi
34170: ;;
34171: esac
34172:
34173:
34174: ;;
34175: -L*)
34176: ac_ii=`echo $ac_i|cut -c 3-`
34177:
34178: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
34179:
34180: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
34181: ai_p=$ac_ii
34182: else
34183:
34184: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
34185:
34186: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
34187: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
34188: fi
34189:
34190:
34191: if test "$ext_shared" = "yes"; then
34192: LDFLAGS="-L$ai_p $LDFLAGS"
34193: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
34194: else
34195:
34196:
34197:
34198: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
34199:
34200: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
34201: if test -n "$unique" && test "`eval $cmd`" = "" ; then
34202: eval "LIBPATH$unique=set"
34203:
34204: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
34205: LDFLAGS="$LDFLAGS -L$ai_p"
34206: PHP_RPATHS="$PHP_RPATHS $ai_p"
34207:
34208: fi
34209:
34210:
34211: fi
34212:
34213: fi
34214:
34215: ;;
34216: esac
34217: done
34218:
34219: as_ac_Lib=`$as_echo "ac_cv_lib_$LIB''_dbminit" | $as_tr_sh`
34220: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbminit in -l$LIB" >&5
34221: $as_echo_n "checking for dbminit in -l$LIB... " >&6; }
34222: if eval \${$as_ac_Lib+:} false; then :
34223: $as_echo_n "(cached) " >&6
34224: else
34225: ac_check_lib_save_LIBS=$LIBS
34226: LIBS="-l$LIB $LIBS"
34227: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34228: /* end confdefs.h. */
34229:
34230: /* Override any GCC internal prototype to avoid an error.
34231: Use char because int might match the return type of a GCC
34232: builtin and then its argument prototype would still apply. */
34233: #ifdef __cplusplus
34234: extern "C"
34235: #endif
34236: char dbminit ();
34237: int
34238: main ()
34239: {
34240: return dbminit ();
34241: ;
34242: return 0;
34243: }
34244: _ACEOF
34245: if ac_fn_c_try_link "$LINENO"; then :
34246: eval "$as_ac_Lib=yes"
34247: else
34248: eval "$as_ac_Lib=no"
34249: fi
34250: rm -f core conftest.err conftest.$ac_objext \
34251: conftest$ac_exeext conftest.$ac_ext
34252: LIBS=$ac_check_lib_save_LIBS
34253: fi
34254: eval ac_res=\$$as_ac_Lib
34255: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
34256: $as_echo "$ac_res" >&6; }
34257: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
34258:
34259: LDFLAGS=$save_old_LDFLAGS
34260: ext_shared=$save_ext_shared
34261:
34262: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBM using GDBM" >&5
34263: $as_echo_n "checking for DBM using GDBM... " >&6; }
34264:
34265: cat >>confdefs.h <<_ACEOF
34266: #define DBM_INCLUDE_FILE "$THIS_INCLUDE"
34267: _ACEOF
34268:
34269: if test "$LIB" = "gdbm"; then
34270:
34271: cat >>confdefs.h <<_ACEOF
34272: #define DBM_VERSION "GDBM"
34273: _ACEOF
34274:
34275: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34276: $as_echo "yes" >&6; }
34277: else
34278:
34279: cat >>confdefs.h <<_ACEOF
34280: #define DBM_VERSION "DBM"
34281: _ACEOF
34282:
34283: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34284: $as_echo "no" >&6; }
34285: fi
34286:
34287: $as_echo "#define DBA_DBM 1" >>confdefs.h
34288:
34289: THIS_LIBS=$LIB
34290:
34291:
34292: else
34293:
34294: LDFLAGS=$save_old_LDFLAGS
34295: ext_shared=$save_ext_shared
34296: unset ac_cv_lib_$LIB_dbminit
34297:
34298:
34299: fi
34300:
34301: if test -n "$THIS_LIBS"; then
34302: break
34303: fi
34304: done
34305: fi
34306:
34307:
34308: if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then
34309: THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR
34310: fi
34311:
34312:
34313: THIS_RESULT=yes
34314: if test -z "$THIS_INCLUDE"; then
34315: as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5
34316: fi
34317: if test -z "$THIS_LIBS"; then
34318: as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5
34319: fi
34320:
34321:
34322:
34323:
34324: if test "$ext_shared" = "yes"; then
34325: DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD"
34326: if test -n "$THIS_LFLAGS"; then
34327:
34328: if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
34329:
34330: if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
34331: ai_p=$THIS_LFLAGS
34332: else
34333:
34334: ep_dir="`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`"
34335:
34336: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
34337: ai_p="$ep_realdir/`basename \"$THIS_LFLAGS\"`"
34338: fi
34339:
34340:
34341: if test "$ext_shared" = "yes"; then
34342: DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD"
34343: test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD"
34344: else
34345:
34346:
34347:
34348: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
34349:
34350: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
34351: if test -n "$unique" && test "`eval $cmd`" = "" ; then
34352: eval "LIBPATH$unique=set"
34353:
34354: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
34355: LDFLAGS="$LDFLAGS -L$ai_p"
34356: PHP_RPATHS="$PHP_RPATHS $ai_p"
34357:
34358: fi
34359:
34360:
34361: fi
34362:
34363: fi
34364:
34365: fi
34366: else
34367:
34368:
34369: if test -n "$THIS_LFLAGS"; then
34370:
34371: if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
34372:
34373: if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
34374: ai_p=$THIS_LFLAGS
34375: else
34376:
34377: ep_dir="`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`"
34378:
34379: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
34380: ai_p="$ep_realdir/`basename \"$THIS_LFLAGS\"`"
34381: fi
34382:
34383:
34384:
34385:
34386:
34387: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
34388:
34389: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
34390: if test -n "$unique" && test "`eval $cmd`" = "" ; then
34391: eval "LIBPATH$unique=set"
34392:
34393: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
34394: LDFLAGS="$LDFLAGS -L$ai_p"
34395: PHP_RPATHS="$PHP_RPATHS $ai_p"
34396:
34397: fi
34398:
34399:
34400:
34401: fi
34402:
34403: fi
34404:
34405:
34406: case $THIS_LIBS in
34407: c|c_r|pthread*) ;;
34408: *)
34409: LIBS="-l$THIS_LIBS $LIBS"
34410: ;;
34411: esac
34412:
34413:
34414:
34415:
34416: fi
34417:
34418:
34419: unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX
34420:
34421: fi
34422:
34423: THIS_NAME=DBM
34424: if test -n ""; then
34425: THIS_FULL_NAME=""
34426: else
34427: THIS_FULL_NAME="$THIS_NAME"
34428: fi
34429: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5
34430: $as_echo_n "checking for $THIS_FULL_NAME support... " >&6; }
34431: if test -n ""; then
34432: as_fn_error $? "" "$LINENO" 5
34433: fi
34434: if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
34435: HAVE_DBA=1
34436: eval HAVE_$THIS_NAME=1
34437: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5
34438: $as_echo "$THIS_RESULT" >&6; }
34439: else
34440: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34441: $as_echo "no" >&6; }
34442: fi
34443: unset THIS_RESULT THIS_NAME THIS_FULL_NAME
34444:
34445:
34446: if test "$PHP_DBA" != "no" || test "$HAVE_DBA" = "1" || test "$with_cdb" = "yes" || test "$enable_inifile" = "yes" || test "$enable_flatfile" = "yes"; then
34447: php_dba_enable=yes
34448: else
34449: php_dba_enable=no
34450: fi
34451:
34452:
34453: php_with_cdb=$php_dba_enable
34454:
34455:
34456:
34457: # Check whether --with-cdb was given.
34458: if test "${with_cdb+set}" = set; then :
34459: withval=$with_cdb; PHP_CDB=$withval
34460: else
34461:
34462: PHP_CDB=$php_dba_enable
34463:
34464:
34465: fi
34466:
34467:
34468: ext_output=$PHP_CDB
34469:
34470:
34471:
34472:
34473:
34474:
34475: php_enable_inifile=$php_dba_enable
34476:
34477:
34478: # Check whether --enable-inifile was given.
34479: if test "${enable_inifile+set}" = set; then :
34480: enableval=$enable_inifile; PHP_INIFILE=$enableval
34481: else
34482:
34483: PHP_INIFILE=$php_dba_enable
34484:
34485:
34486: fi
34487:
34488:
34489: ext_output=$PHP_INIFILE
34490:
34491:
34492:
34493:
34494:
34495:
34496: php_enable_flatfile=$php_dba_enable
34497:
34498:
34499: # Check whether --enable-flatfile was given.
34500: if test "${enable_flatfile+set}" = set; then :
34501: enableval=$enable_flatfile; PHP_FLATFILE=$enableval
34502: else
34503:
34504: PHP_FLATFILE=$php_dba_enable
34505:
34506:
34507: fi
34508:
34509:
34510: ext_output=$PHP_FLATFILE
34511:
34512:
34513:
34514:
34515:
34516: # CDB
34517: if test "$PHP_CDB" = "yes"; then
34518:
34519: $as_echo "#define DBA_CDB_BUILTIN 1" >>confdefs.h
34520:
34521:
34522: $as_echo "#define DBA_CDB_MAKE 1" >>confdefs.h
34523:
34524:
34525: $as_echo "#define DBA_CDB 1" >>confdefs.h
34526:
34527: cdb_sources="libcdb/cdb.c libcdb/cdb_make.c libcdb/uint32.c"
34528: THIS_RESULT="builtin"
34529: elif test "$PHP_CDB" != "no"; then
34530:
34531: unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT
34532:
34533: for i in $PHP_CDB /usr/local /usr; do
34534: if test -f "$i/include/cdb.h"; then
34535: THIS_PREFIX=$i
34536: THIS_INCLUDE=$i/include/cdb.h
34537: break
34538: fi
34539: done
34540:
34541: if test -n "$THIS_INCLUDE"; then
34542: for LIB in cdb c; do
34543:
34544: save_old_LDFLAGS=$LDFLAGS
34545: ac_stuff="-L$THIS_PREFIX/$PHP_LIBDIR"
34546:
34547: save_ext_shared=$ext_shared
34548: ext_shared=yes
34549:
34550: for ac_i in $ac_stuff; do
34551: case $ac_i in
34552: -pthread)
34553: if test "$ext_shared" = "yes"; then
34554: LDFLAGS="$LDFLAGS -pthread"
34555: else
34556:
34557:
34558: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
34559:
34560: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
34561: if test -n "$unique" && test "`eval $cmd`" = "" ; then
34562: eval "EXTRA_LDFLAGS$unique=set"
34563: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
34564: fi
34565:
34566: fi
34567: ;;
34568: -l*)
34569: ac_ii=`echo $ac_i|cut -c 3-`
34570:
34571:
34572: case $ac_ii in
34573: c|c_r|pthread*) ;;
34574: *)
34575: if test "$ext_shared" = "yes"; then
34576: LDFLAGS="$LDFLAGS -l$ac_ii"
34577: else
34578:
34579:
34580: case $ac_ii in
34581: c|c_r|pthread*) ;;
34582: *)
34583: LIBS="$LIBS -l$ac_ii"
34584: ;;
34585: esac
34586:
34587:
34588: fi
34589: ;;
34590: esac
34591:
34592:
34593: ;;
34594: -L*)
34595: ac_ii=`echo $ac_i|cut -c 3-`
34596:
34597: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
34598:
34599: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
34600: ai_p=$ac_ii
34601: else
34602:
34603: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
34604:
34605: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
34606: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
34607: fi
34608:
34609:
34610: if test "$ext_shared" = "yes"; then
34611: LDFLAGS="-L$ai_p $LDFLAGS"
34612: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
34613: else
34614:
34615:
34616:
34617: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
34618:
34619: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
34620: if test -n "$unique" && test "`eval $cmd`" = "" ; then
34621: eval "LIBPATH$unique=set"
34622:
34623: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
34624: LDFLAGS="$LDFLAGS -L$ai_p"
34625: PHP_RPATHS="$PHP_RPATHS $ai_p"
34626:
34627: fi
34628:
34629:
34630: fi
34631:
34632: fi
34633:
34634: ;;
34635: esac
34636: done
34637:
34638: as_ac_Lib=`$as_echo "ac_cv_lib_$LIB''_cdb_read" | $as_tr_sh`
34639: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cdb_read in -l$LIB" >&5
34640: $as_echo_n "checking for cdb_read in -l$LIB... " >&6; }
34641: if eval \${$as_ac_Lib+:} false; then :
34642: $as_echo_n "(cached) " >&6
34643: else
34644: ac_check_lib_save_LIBS=$LIBS
34645: LIBS="-l$LIB $LIBS"
34646: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34647: /* end confdefs.h. */
34648:
34649: /* Override any GCC internal prototype to avoid an error.
34650: Use char because int might match the return type of a GCC
34651: builtin and then its argument prototype would still apply. */
34652: #ifdef __cplusplus
34653: extern "C"
34654: #endif
34655: char cdb_read ();
34656: int
34657: main ()
34658: {
34659: return cdb_read ();
34660: ;
34661: return 0;
34662: }
34663: _ACEOF
34664: if ac_fn_c_try_link "$LINENO"; then :
34665: eval "$as_ac_Lib=yes"
34666: else
34667: eval "$as_ac_Lib=no"
34668: fi
34669: rm -f core conftest.err conftest.$ac_objext \
34670: conftest$ac_exeext conftest.$ac_ext
34671: LIBS=$ac_check_lib_save_LIBS
34672: fi
34673: eval ac_res=\$$as_ac_Lib
34674: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
34675: $as_echo "$ac_res" >&6; }
34676: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
34677:
34678: LDFLAGS=$save_old_LDFLAGS
34679: ext_shared=$save_ext_shared
34680:
34681:
34682: cat >>confdefs.h <<_ACEOF
34683: #define CDB_INCLUDE_FILE "$THIS_INCLUDE"
34684: _ACEOF
34685:
34686:
34687: $as_echo "#define DBA_CDB 1" >>confdefs.h
34688:
34689: THIS_LIBS=$LIB
34690:
34691:
34692: else
34693:
34694: LDFLAGS=$save_old_LDFLAGS
34695: ext_shared=$save_ext_shared
34696: unset ac_cv_lib_$LIB_cdb_read
34697:
34698:
34699: fi
34700:
34701: if test -n "$THIS_LIBS"; then
34702: break
34703: fi
34704: done
34705: fi
34706:
34707:
34708: if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then
34709: THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR
34710: fi
34711:
34712:
34713: THIS_RESULT=yes
34714: if test -z "$THIS_INCLUDE"; then
34715: as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5
34716: fi
34717: if test -z "$THIS_LIBS"; then
34718: as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5
34719: fi
34720:
34721:
34722:
34723:
34724: if test "$ext_shared" = "yes"; then
34725: DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD"
34726: if test -n "$THIS_LFLAGS"; then
34727:
34728: if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
34729:
34730: if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
34731: ai_p=$THIS_LFLAGS
34732: else
34733:
34734: ep_dir="`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`"
34735:
34736: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
34737: ai_p="$ep_realdir/`basename \"$THIS_LFLAGS\"`"
34738: fi
34739:
34740:
34741: if test "$ext_shared" = "yes"; then
34742: DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD"
34743: test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD"
34744: else
34745:
34746:
34747:
34748: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
34749:
34750: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
34751: if test -n "$unique" && test "`eval $cmd`" = "" ; then
34752: eval "LIBPATH$unique=set"
34753:
34754: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
34755: LDFLAGS="$LDFLAGS -L$ai_p"
34756: PHP_RPATHS="$PHP_RPATHS $ai_p"
34757:
34758: fi
34759:
34760:
34761: fi
34762:
34763: fi
34764:
34765: fi
34766: else
34767:
34768:
34769: if test -n "$THIS_LFLAGS"; then
34770:
34771: if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
34772:
34773: if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
34774: ai_p=$THIS_LFLAGS
34775: else
34776:
34777: ep_dir="`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`"
34778:
34779: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
34780: ai_p="$ep_realdir/`basename \"$THIS_LFLAGS\"`"
34781: fi
34782:
34783:
34784:
34785:
34786:
34787: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
34788:
34789: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
34790: if test -n "$unique" && test "`eval $cmd`" = "" ; then
34791: eval "LIBPATH$unique=set"
34792:
34793: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
34794: LDFLAGS="$LDFLAGS -L$ai_p"
34795: PHP_RPATHS="$PHP_RPATHS $ai_p"
34796:
34797: fi
34798:
34799:
34800:
34801: fi
34802:
34803: fi
34804:
34805:
34806: case $THIS_LIBS in
34807: c|c_r|pthread*) ;;
34808: *)
34809: LIBS="-l$THIS_LIBS $LIBS"
34810: ;;
34811: esac
34812:
34813:
34814:
34815:
34816: fi
34817:
34818:
34819: unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX
34820:
34821: fi
34822:
34823: THIS_NAME=CDB
34824: if test -n ""; then
34825: THIS_FULL_NAME=""
34826: else
34827: THIS_FULL_NAME="$THIS_NAME"
34828: fi
34829: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5
34830: $as_echo_n "checking for $THIS_FULL_NAME support... " >&6; }
34831: if test -n ""; then
34832: as_fn_error $? "" "$LINENO" 5
34833: fi
34834: if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
34835: HAVE_DBA=1
34836: eval HAVE_$THIS_NAME=1
34837: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5
34838: $as_echo "$THIS_RESULT" >&6; }
34839: else
34840: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34841: $as_echo "no" >&6; }
34842: fi
34843: unset THIS_RESULT THIS_NAME THIS_FULL_NAME
34844:
34845:
34846: # INIFILE
34847: if test "$PHP_INIFILE" != "no"; then
34848:
34849: $as_echo "#define DBA_INIFILE 1" >>confdefs.h
34850:
34851: ini_sources="libinifile/inifile.c"
34852: THIS_RESULT="builtin"
34853: fi
34854:
34855: THIS_NAME=INIFILE
34856: if test -n "INI File"; then
34857: THIS_FULL_NAME="INI File"
34858: else
34859: THIS_FULL_NAME="$THIS_NAME"
34860: fi
34861: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5
34862: $as_echo_n "checking for $THIS_FULL_NAME support... " >&6; }
34863: if test -n ""; then
34864: as_fn_error $? "" "$LINENO" 5
34865: fi
34866: if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
34867: HAVE_DBA=1
34868: eval HAVE_$THIS_NAME=1
34869: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5
34870: $as_echo "$THIS_RESULT" >&6; }
34871: else
34872: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34873: $as_echo "no" >&6; }
34874: fi
34875: unset THIS_RESULT THIS_NAME THIS_FULL_NAME
34876:
34877:
34878: # FLATFILE
34879: if test "$PHP_FLATFILE" != "no"; then
34880:
34881: $as_echo "#define DBA_FLATFILE 1" >>confdefs.h
34882:
34883: flat_sources="libflatfile/flatfile.c"
34884: THIS_RESULT="builtin"
34885: fi
34886:
34887: THIS_NAME=FLATFILE
34888: if test -n "FlatFile"; then
34889: THIS_FULL_NAME="FlatFile"
34890: else
34891: THIS_FULL_NAME="$THIS_NAME"
34892: fi
34893: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5
34894: $as_echo_n "checking for $THIS_FULL_NAME support... " >&6; }
34895: if test -n ""; then
34896: as_fn_error $? "" "$LINENO" 5
34897: fi
34898: if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
34899: HAVE_DBA=1
34900: eval HAVE_$THIS_NAME=1
34901: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5
34902: $as_echo "$THIS_RESULT" >&6; }
34903: else
34904: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34905: $as_echo "no" >&6; }
34906: fi
34907: unset THIS_RESULT THIS_NAME THIS_FULL_NAME
34908:
34909:
34910: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable DBA interface" >&5
34911: $as_echo_n "checking whether to enable DBA interface... " >&6; }
34912: if test "$HAVE_DBA" = "1"; then
34913: if test "$ext_shared" = "yes"; then
34914: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, shared" >&5
34915: $as_echo "yes, shared" >&6; }
34916: else
34917: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34918: $as_echo "yes" >&6; }
34919: fi
34920:
34921: $as_echo "#define HAVE_DBA 1" >>confdefs.h
34922:
34923:
34924: ext_builddir=ext/dba
34925: ext_srcdir=$abs_srcdir/ext/dba
34926:
34927: ac_extra=
34928:
34929: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
34930: PHP_DBA_SHARED=no
34931:
34932:
34933: case ext/dba in
34934: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
34935: /*) ac_srcdir=`echo "ext/dba"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
34936: *) ac_srcdir="$abs_srcdir/ext/dba/"; ac_bdir="ext/dba/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
34937: esac
34938:
34939:
34940:
34941: b_c_pre=$php_c_pre
34942: b_cxx_pre=$php_cxx_pre
34943: b_c_meta=$php_c_meta
34944: b_cxx_meta=$php_cxx_meta
34945: b_c_post=$php_c_post
34946: b_cxx_post=$php_cxx_post
34947: b_lo=$php_lo
34948:
34949:
34950: old_IFS=$IFS
34951: 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 $cdb_sources $flat_sources $ini_sources; do
34952:
34953: IFS=.
34954: set $ac_src
34955: ac_obj=$1
34956: IFS=$old_IFS
34957:
34958: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
34959:
34960: case $ac_src in
34961: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
34962: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
34963: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
34964: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
34965: esac
34966:
34967: cat >>Makefile.objects<<EOF
34968: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
34969: $ac_comp
34970: EOF
34971: done
34972:
34973:
34974: EXT_STATIC="$EXT_STATIC dba"
34975: if test "$ext_shared" != "nocli"; then
34976: EXT_CLI_STATIC="$EXT_CLI_STATIC dba"
34977: fi
34978: else
34979: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
34980: PHP_DBA_SHARED=yes
34981:
34982: case ext/dba in
34983: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
34984: /*) ac_srcdir=`echo "ext/dba"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
34985: *) ac_srcdir="$abs_srcdir/ext/dba/"; ac_bdir="ext/dba/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
34986: esac
34987:
34988:
34989:
34990: b_c_pre=$shared_c_pre
34991: b_cxx_pre=$shared_cxx_pre
34992: b_c_meta=$shared_c_meta
34993: b_cxx_meta=$shared_cxx_meta
34994: b_c_post=$shared_c_post
34995: b_cxx_post=$shared_cxx_post
34996: b_lo=$shared_lo
34997:
34998:
34999: old_IFS=$IFS
35000: 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 $cdb_sources $flat_sources $ini_sources; do
35001:
35002: IFS=.
35003: set $ac_src
35004: ac_obj=$1
35005: IFS=$old_IFS
35006:
35007: shared_objects_dba="$shared_objects_dba $ac_bdir$ac_obj.lo"
35008:
35009: case $ac_src in
35010: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
35011: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
35012: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
35013: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
35014: esac
35015:
35016: cat >>Makefile.objects<<EOF
35017: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
35018: $ac_comp
35019: EOF
35020: done
35021:
35022: case $host_alias in
35023: *netware*)
35024:
35025: install_modules="install-modules"
35026:
35027: case $host_alias in
35028: *aix*)
35029: suffix=so
35030: 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'
35031: ;;
35032: *netware*)
35033: suffix=nlm
35034: link_cmd='$(LIBTOOL) --mode=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)'
35035: ;;
35036: *)
35037: suffix=la
35038: link_cmd='$(LIBTOOL) --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)'
35039: ;;
35040: esac
35041:
35042: if test "x" = "xyes"; then
35043: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpdba.$suffix"
35044: else
35045: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpdba.$suffix"
35046: fi
35047:
35048: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_dba"
35049:
35050: cat >>Makefile.objects<<EOF
35051: \$(phplibdir)/phpdba.$suffix: $ext_builddir/phpdba.$suffix
35052: \$(LIBTOOL) --mode=install cp $ext_builddir/phpdba.$suffix \$(phplibdir)
35053:
35054: $ext_builddir/phpdba.$suffix: \$(shared_objects_dba) \$(PHPDBA_SHARED_DEPENDENCIES)
35055: $link_cmd
35056:
35057: EOF
35058:
35059: ;;
35060: *)
35061:
35062: install_modules="install-modules"
35063:
35064: case $host_alias in
35065: *aix*)
35066: suffix=so
35067: 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'
35068: ;;
35069: *netware*)
35070: suffix=nlm
35071: link_cmd='$(LIBTOOL) --mode=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)'
35072: ;;
35073: *)
35074: suffix=la
35075: link_cmd='$(LIBTOOL) --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)'
35076: ;;
35077: esac
35078:
35079: if test "x" = "xyes"; then
35080: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/dba.$suffix"
35081: else
35082: PHP_MODULES="$PHP_MODULES \$(phplibdir)/dba.$suffix"
35083: fi
35084:
35085: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_dba"
35086:
35087: cat >>Makefile.objects<<EOF
35088: \$(phplibdir)/dba.$suffix: $ext_builddir/dba.$suffix
35089: \$(LIBTOOL) --mode=install cp $ext_builddir/dba.$suffix \$(phplibdir)
35090:
35091: $ext_builddir/dba.$suffix: \$(shared_objects_dba) \$(DBA_SHARED_DEPENDENCIES)
35092: $link_cmd
35093:
35094: EOF
35095:
35096: ;;
35097: esac
35098:
35099: cat >>confdefs.h <<_ACEOF
35100: #define COMPILE_DL_DBA 1
35101: _ACEOF
35102:
35103: fi
35104: fi
35105:
35106: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
35107: PHP_DBA_SHARED=no
35108:
35109:
35110: case ext/dba in
35111: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
35112: /*) ac_srcdir=`echo "ext/dba"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
35113: *) ac_srcdir="$abs_srcdir/ext/dba/"; ac_bdir="ext/dba/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
35114: esac
35115:
35116:
35117:
35118: b_c_pre=$php_c_pre
35119: b_cxx_pre=$php_cxx_pre
35120: b_c_meta=$php_c_meta
35121: b_cxx_meta=$php_cxx_meta
35122: b_c_post=$php_c_post
35123: b_cxx_post=$php_cxx_post
35124: b_lo=$php_lo
35125:
35126:
35127: old_IFS=$IFS
35128: 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 $cdb_sources $flat_sources $ini_sources; do
35129:
35130: IFS=.
35131: set $ac_src
35132: ac_obj=$1
35133: IFS=$old_IFS
35134:
35135: PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
35136:
35137: case $ac_src in
35138: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
35139: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
35140: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
35141: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
35142: esac
35143:
35144: cat >>Makefile.objects<<EOF
35145: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
35146: $ac_comp
35147: EOF
35148: done
35149:
35150:
35151:
35152:
35153: case ext/dba in
35154: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
35155: /*) ac_srcdir=`echo "ext/dba"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
35156: *) ac_srcdir="$abs_srcdir/ext/dba/"; ac_bdir="ext/dba/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
35157: esac
35158:
35159:
35160:
35161: b_c_pre=$php_c_pre
35162: b_cxx_pre=$php_cxx_pre
35163: b_c_meta=$php_c_meta
35164: b_cxx_meta=$php_cxx_meta
35165: b_c_post=$php_c_post
35166: b_cxx_post=$php_cxx_post
35167: b_lo=$php_lo
35168:
35169:
35170: old_IFS=$IFS
35171: 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 $cdb_sources $flat_sources $ini_sources; do
35172:
35173: IFS=.
35174: set $ac_src
35175: ac_obj=$1
35176: IFS=$old_IFS
35177:
35178: PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo"
35179:
35180: case $ac_src in
35181: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
35182: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
35183: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
35184: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
35185: esac
35186:
35187: cat >>Makefile.objects<<EOF
35188: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
35189: $ac_comp
35190: EOF
35191: done
35192:
35193:
35194:
35195:
35196: case ext/dba in
35197: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
35198: /*) ac_srcdir=`echo "ext/dba"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
35199: *) ac_srcdir="$abs_srcdir/ext/dba/"; ac_bdir="ext/dba/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
35200: esac
35201:
35202:
35203:
35204: b_c_pre=$php_c_pre
35205: b_cxx_pre=$php_cxx_pre
35206: b_c_meta=$php_c_meta
35207: b_cxx_meta=$php_cxx_meta
35208: b_c_post=$php_c_post
35209: b_cxx_post=$php_cxx_post
35210: b_lo=$php_lo
35211:
35212:
35213: old_IFS=$IFS
35214: 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 $cdb_sources $flat_sources $ini_sources; do
35215:
35216: IFS=.
35217: set $ac_src
35218: ac_obj=$1
35219: IFS=$old_IFS
35220:
35221: PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo"
35222:
35223: case $ac_src in
35224: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
35225: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
35226: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
35227: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
35228: esac
35229:
35230: cat >>Makefile.objects<<EOF
35231: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
35232: $ac_comp
35233: EOF
35234: done
35235:
35236:
35237: EXT_CLI_STATIC="$EXT_CLI_STATIC dba"
35238: fi
35239:
35240:
35241: BUILD_DIR="$BUILD_DIR $ext_builddir"
35242:
35243:
35244:
35245: if test "$ext_builddir" = "."; then
35246: PHP_PECL_EXTENSION=dba
35247:
35248: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
35249:
35250: fi
35251:
35252:
35253:
35254: BUILD_DIR="$BUILD_DIR $ext_builddir/libinifile"
35255:
35256:
35257:
35258:
35259: BUILD_DIR="$BUILD_DIR $ext_builddir/libcdb"
35260:
35261:
35262:
35263:
35264: BUILD_DIR="$BUILD_DIR $ext_builddir/libflatfile"
35265:
35266:
35267:
35268: PHP_VAR_SUBST="$PHP_VAR_SUBST DBA_SHARED_LIBADD"
35269:
35270: else
35271: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35272: $as_echo "no" >&6; }
35273: fi
35274:
35275:
35276:
35277: php_enable_dom=yes
35278:
35279: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable DOM support" >&5
35280: $as_echo_n "checking whether to enable DOM support... " >&6; }
35281: # Check whether --enable-dom was given.
35282: if test "${enable_dom+set}" = set; then :
35283: enableval=$enable_dom; PHP_DOM=$enableval
35284: else
35285:
35286: PHP_DOM=yes
35287: test "$PHP_ENABLE_ALL" && PHP_DOM=$PHP_ENABLE_ALL
35288:
35289: fi
35290:
35291:
35292:
35293: ext_output="yes, shared"
35294: ext_shared=yes
35295: case $PHP_DOM in
35296: shared,*)
35297: PHP_DOM=`echo "$PHP_DOM"|$SED 's/^shared,//'`
35298: ;;
35299: shared)
35300: PHP_DOM=yes
35301: ;;
35302: no)
35303: ext_output=no
35304: ext_shared=no
35305: ;;
35306: *)
35307: ext_output=yes
35308: ext_shared=no
35309: ;;
35310: esac
35311:
35312:
35313:
35314: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
35315: $as_echo "$ext_output" >&6; }
35316:
35317:
35318:
35319:
35320: if test -z "$PHP_LIBXML_DIR"; then
35321:
35322: php_with_libxml_dir=no
35323:
35324: { $as_echo "$as_me:${as_lineno-$LINENO}: checking libxml2 install dir" >&5
35325: $as_echo_n "checking libxml2 install dir... " >&6; }
35326:
35327: # Check whether --with-libxml-dir was given.
35328: if test "${with_libxml_dir+set}" = set; then :
35329: withval=$with_libxml_dir; PHP_LIBXML_DIR=$withval
35330: else
35331:
35332: PHP_LIBXML_DIR=no
35333:
35334:
35335: fi
35336:
35337:
35338: ext_output=$PHP_LIBXML_DIR
35339: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
35340: $as_echo "$ext_output" >&6; }
35341:
35342:
35343:
35344: fi
35345:
35346: if test "$PHP_DOM" != "no"; then
35347:
35348: if test "$PHP_LIBXML" = "no"; then
35349: as_fn_error $? "DOM extension requires LIBXML extension, add --enable-libxml" "$LINENO" 5
35350: fi
35351:
35352:
35353: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xml2-config path" >&5
35354: $as_echo_n "checking for xml2-config path... " >&6; }
35355: if ${ac_cv_php_xml2_config_path+:} false; then :
35356: $as_echo_n "(cached) " >&6
35357: else
35358:
35359: for i in $PHP_LIBXML_DIR /usr/local /usr; do
35360: if test -x "$i/bin/xml2-config"; then
35361: ac_cv_php_xml2_config_path="$i/bin/xml2-config"
35362: break
35363: fi
35364: done
35365:
35366: fi
35367: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_php_xml2_config_path" >&5
35368: $as_echo "$ac_cv_php_xml2_config_path" >&6; }
35369:
35370: if test -x "$ac_cv_php_xml2_config_path"; then
35371: XML2_CONFIG="$ac_cv_php_xml2_config_path"
35372: libxml_full_version=`$XML2_CONFIG --version`
35373: ac_IFS=$IFS
35374: IFS="."
35375: set $libxml_full_version
35376: IFS=$ac_IFS
35377: LIBXML_VERSION=`expr $1 \* 1000000 + $2 \* 1000 + $3`
35378: if test "$LIBXML_VERSION" -ge "2006011"; then
35379: LIBXML_LIBS=`$XML2_CONFIG --libs`
35380: LIBXML_INCS=`$XML2_CONFIG --cflags`
35381:
35382: for ac_i in $LIBXML_LIBS; do
35383: case $ac_i in
35384: -pthread)
35385: if test "$ext_shared" = "yes"; then
35386: DOM_SHARED_LIBADD="$DOM_SHARED_LIBADD -pthread"
35387: else
35388:
35389:
35390: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
35391:
35392: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
35393: if test -n "$unique" && test "`eval $cmd`" = "" ; then
35394: eval "EXTRA_LDFLAGS$unique=set"
35395: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
35396: fi
35397:
35398: fi
35399: ;;
35400: -l*)
35401: ac_ii=`echo $ac_i|cut -c 3-`
35402:
35403:
35404: case $ac_ii in
35405: c|c_r|pthread*) ;;
35406: *)
35407: if test "$ext_shared" = "yes"; then
35408: DOM_SHARED_LIBADD="$DOM_SHARED_LIBADD -l$ac_ii"
35409: else
35410:
35411:
35412: case $ac_ii in
35413: c|c_r|pthread*) ;;
35414: *)
35415: LIBS="$LIBS -l$ac_ii"
35416: ;;
35417: esac
35418:
35419:
35420: fi
35421: ;;
35422: esac
35423:
35424:
35425: ;;
35426: -L*)
35427: ac_ii=`echo $ac_i|cut -c 3-`
35428:
35429: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
35430:
35431: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
35432: ai_p=$ac_ii
35433: else
35434:
35435: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
35436:
35437: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
35438: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
35439: fi
35440:
35441:
35442: if test "$ext_shared" = "yes"; then
35443: DOM_SHARED_LIBADD="-L$ai_p $DOM_SHARED_LIBADD"
35444: test -n "$ld_runpath_switch" && DOM_SHARED_LIBADD="$ld_runpath_switch$ai_p $DOM_SHARED_LIBADD"
35445: else
35446:
35447:
35448:
35449: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
35450:
35451: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
35452: if test -n "$unique" && test "`eval $cmd`" = "" ; then
35453: eval "LIBPATH$unique=set"
35454:
35455: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
35456: LDFLAGS="$LDFLAGS -L$ai_p"
35457: PHP_RPATHS="$PHP_RPATHS $ai_p"
35458:
35459: fi
35460:
35461:
35462: fi
35463:
35464: fi
35465:
35466: ;;
35467: esac
35468: done
35469:
35470:
35471: for ac_i in $LIBXML_INCS; do
35472: case $ac_i in
35473: -I*)
35474: ac_ii=`echo $ac_i|cut -c 3-`
35475:
35476: if test "$ac_ii" != "/usr/include"; then
35477:
35478: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
35479: ai_p=$ac_ii
35480: else
35481:
35482: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
35483:
35484: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
35485: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
35486: fi
35487:
35488:
35489:
35490: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
35491:
35492: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
35493: if test -n "$unique" && test "`eval $cmd`" = "" ; then
35494: eval "INCLUDEPATH$unique=set"
35495:
35496: if test ""; then
35497: INCLUDES="-I$ai_p $INCLUDES"
35498: else
35499: INCLUDES="$INCLUDES -I$ai_p"
35500: fi
35501:
35502: fi
35503:
35504: fi
35505:
35506: ;;
35507: esac
35508: done
35509:
35510:
35511: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libxml build works" >&5
35512: $as_echo_n "checking whether libxml build works... " >&6; }
35513: if ${php_cv_libxml_build_works+:} false; then :
35514: $as_echo_n "(cached) " >&6
35515: else
35516:
35517:
35518: old_LIBS=$LIBS
35519: LIBS="
35520: $DOM_SHARED_LIBADD
35521: $LIBS"
35522: if test "$cross_compiling" = yes; then :
35523:
35524: LIBS=$old_LIBS
35525:
35526: else
35527: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35528: /* end confdefs.h. */
35529:
35530:
35531: char xmlInitParser();
35532: int main() {
35533: xmlInitParser();
35534: return 0;
35535: }
35536:
35537: _ACEOF
35538: if ac_fn_c_try_run "$LINENO"; then :
35539:
35540: LIBS=$old_LIBS
35541:
35542: php_cv_libxml_build_works=yes
35543:
35544:
35545: else
35546:
35547: LIBS=$old_LIBS
35548:
35549: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35550: $as_echo "no" >&6; }
35551: as_fn_error $? "build test failed. Please check the config.log for details." "$LINENO" 5
35552:
35553:
35554: fi
35555: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35556: conftest.$ac_objext conftest.beam conftest.$ac_ext
35557: fi
35558:
35559:
35560:
35561: fi
35562: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_libxml_build_works" >&5
35563: $as_echo "$php_cv_libxml_build_works" >&6; }
35564: if test "$php_cv_libxml_build_works" = "yes"; then
35565:
35566: $as_echo "#define HAVE_LIBXML 1" >>confdefs.h
35567:
35568: fi
35569:
35570:
35571: $as_echo "#define HAVE_DOM 1" >>confdefs.h
35572:
35573:
35574: ext_builddir=ext/dom
35575: ext_srcdir=$abs_srcdir/ext/dom
35576:
35577: ac_extra=
35578:
35579: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
35580: PHP_DOM_SHARED=no
35581:
35582:
35583: case ext/dom in
35584: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
35585: /*) ac_srcdir=`echo "ext/dom"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
35586: *) ac_srcdir="$abs_srcdir/ext/dom/"; ac_bdir="ext/dom/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
35587: esac
35588:
35589:
35590:
35591: b_c_pre=$php_c_pre
35592: b_cxx_pre=$php_cxx_pre
35593: b_c_meta=$php_c_meta
35594: b_cxx_meta=$php_cxx_meta
35595: b_c_post=$php_c_post
35596: b_cxx_post=$php_cxx_post
35597: b_lo=$php_lo
35598:
35599:
35600: old_IFS=$IFS
35601: for ac_src in php_dom.c attr.c document.c domerrorhandler.c \
35602: domstringlist.c domexception.c namelist.c \
35603: processinginstruction.c cdatasection.c \
35604: documentfragment.c domimplementation.c \
35605: element.c node.c string_extend.c characterdata.c \
35606: documenttype.c domimplementationlist.c entity.c \
35607: nodelist.c text.c comment.c domconfiguration.c \
35608: domimplementationsource.c entityreference.c \
35609: notation.c xpath.c dom_iterators.c \
35610: typeinfo.c domerror.c domlocator.c namednodemap.c userdatahandler.c; do
35611:
35612: IFS=.
35613: set $ac_src
35614: ac_obj=$1
35615: IFS=$old_IFS
35616:
35617: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
35618:
35619: case $ac_src in
35620: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
35621: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
35622: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
35623: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
35624: esac
35625:
35626: cat >>Makefile.objects<<EOF
35627: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
35628: $ac_comp
35629: EOF
35630: done
35631:
35632:
35633: EXT_STATIC="$EXT_STATIC dom"
35634: if test "$ext_shared" != "nocli"; then
35635: EXT_CLI_STATIC="$EXT_CLI_STATIC dom"
35636: fi
35637: else
35638: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
35639: PHP_DOM_SHARED=yes
35640:
35641: case ext/dom in
35642: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
35643: /*) ac_srcdir=`echo "ext/dom"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
35644: *) ac_srcdir="$abs_srcdir/ext/dom/"; ac_bdir="ext/dom/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
35645: esac
35646:
35647:
35648:
35649: b_c_pre=$shared_c_pre
35650: b_cxx_pre=$shared_cxx_pre
35651: b_c_meta=$shared_c_meta
35652: b_cxx_meta=$shared_cxx_meta
35653: b_c_post=$shared_c_post
35654: b_cxx_post=$shared_cxx_post
35655: b_lo=$shared_lo
35656:
35657:
35658: old_IFS=$IFS
35659: for ac_src in php_dom.c attr.c document.c domerrorhandler.c \
35660: domstringlist.c domexception.c namelist.c \
35661: processinginstruction.c cdatasection.c \
35662: documentfragment.c domimplementation.c \
35663: element.c node.c string_extend.c characterdata.c \
35664: documenttype.c domimplementationlist.c entity.c \
35665: nodelist.c text.c comment.c domconfiguration.c \
35666: domimplementationsource.c entityreference.c \
35667: notation.c xpath.c dom_iterators.c \
35668: typeinfo.c domerror.c domlocator.c namednodemap.c userdatahandler.c; do
35669:
35670: IFS=.
35671: set $ac_src
35672: ac_obj=$1
35673: IFS=$old_IFS
35674:
35675: shared_objects_dom="$shared_objects_dom $ac_bdir$ac_obj.lo"
35676:
35677: case $ac_src in
35678: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
35679: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
35680: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
35681: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
35682: esac
35683:
35684: cat >>Makefile.objects<<EOF
35685: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
35686: $ac_comp
35687: EOF
35688: done
35689:
35690: case $host_alias in
35691: *netware*)
35692:
35693: install_modules="install-modules"
35694:
35695: case $host_alias in
35696: *aix*)
35697: suffix=so
35698: 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'
35699: ;;
35700: *netware*)
35701: suffix=nlm
35702: link_cmd='$(LIBTOOL) --mode=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)'
35703: ;;
35704: *)
35705: suffix=la
35706: link_cmd='$(LIBTOOL) --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)'
35707: ;;
35708: esac
35709:
35710: if test "x" = "xyes"; then
35711: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpdom.$suffix"
35712: else
35713: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpdom.$suffix"
35714: fi
35715:
35716: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_dom"
35717:
35718: cat >>Makefile.objects<<EOF
35719: \$(phplibdir)/phpdom.$suffix: $ext_builddir/phpdom.$suffix
35720: \$(LIBTOOL) --mode=install cp $ext_builddir/phpdom.$suffix \$(phplibdir)
35721:
35722: $ext_builddir/phpdom.$suffix: \$(shared_objects_dom) \$(PHPDOM_SHARED_DEPENDENCIES)
35723: $link_cmd
35724:
35725: EOF
35726:
35727: ;;
35728: *)
35729:
35730: install_modules="install-modules"
35731:
35732: case $host_alias in
35733: *aix*)
35734: suffix=so
35735: 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'
35736: ;;
35737: *netware*)
35738: suffix=nlm
35739: link_cmd='$(LIBTOOL) --mode=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)'
35740: ;;
35741: *)
35742: suffix=la
35743: link_cmd='$(LIBTOOL) --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)'
35744: ;;
35745: esac
35746:
35747: if test "x" = "xyes"; then
35748: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/dom.$suffix"
35749: else
35750: PHP_MODULES="$PHP_MODULES \$(phplibdir)/dom.$suffix"
35751: fi
35752:
35753: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_dom"
35754:
35755: cat >>Makefile.objects<<EOF
35756: \$(phplibdir)/dom.$suffix: $ext_builddir/dom.$suffix
35757: \$(LIBTOOL) --mode=install cp $ext_builddir/dom.$suffix \$(phplibdir)
35758:
35759: $ext_builddir/dom.$suffix: \$(shared_objects_dom) \$(DOM_SHARED_DEPENDENCIES)
35760: $link_cmd
35761:
35762: EOF
35763:
35764: ;;
35765: esac
35766:
35767: cat >>confdefs.h <<_ACEOF
35768: #define COMPILE_DL_DOM 1
35769: _ACEOF
35770:
35771: fi
35772: fi
35773:
35774: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
35775: PHP_DOM_SHARED=no
35776:
35777:
35778: case ext/dom in
35779: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
35780: /*) ac_srcdir=`echo "ext/dom"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
35781: *) ac_srcdir="$abs_srcdir/ext/dom/"; ac_bdir="ext/dom/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
35782: esac
35783:
35784:
35785:
35786: b_c_pre=$php_c_pre
35787: b_cxx_pre=$php_cxx_pre
35788: b_c_meta=$php_c_meta
35789: b_cxx_meta=$php_cxx_meta
35790: b_c_post=$php_c_post
35791: b_cxx_post=$php_cxx_post
35792: b_lo=$php_lo
35793:
35794:
35795: old_IFS=$IFS
35796: for ac_src in php_dom.c attr.c document.c domerrorhandler.c \
35797: domstringlist.c domexception.c namelist.c \
35798: processinginstruction.c cdatasection.c \
35799: documentfragment.c domimplementation.c \
35800: element.c node.c string_extend.c characterdata.c \
35801: documenttype.c domimplementationlist.c entity.c \
35802: nodelist.c text.c comment.c domconfiguration.c \
35803: domimplementationsource.c entityreference.c \
35804: notation.c xpath.c dom_iterators.c \
35805: typeinfo.c domerror.c domlocator.c namednodemap.c userdatahandler.c; do
35806:
35807: IFS=.
35808: set $ac_src
35809: ac_obj=$1
35810: IFS=$old_IFS
35811:
35812: PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
35813:
35814: case $ac_src in
35815: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
35816: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
35817: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
35818: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
35819: esac
35820:
35821: cat >>Makefile.objects<<EOF
35822: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
35823: $ac_comp
35824: EOF
35825: done
35826:
35827:
35828:
35829:
35830: case ext/dom in
35831: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
35832: /*) ac_srcdir=`echo "ext/dom"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
35833: *) ac_srcdir="$abs_srcdir/ext/dom/"; ac_bdir="ext/dom/"; 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 php_dom.c attr.c document.c domerrorhandler.c \
35849: domstringlist.c domexception.c namelist.c \
35850: processinginstruction.c cdatasection.c \
35851: documentfragment.c domimplementation.c \
35852: element.c node.c string_extend.c characterdata.c \
35853: documenttype.c domimplementationlist.c entity.c \
35854: nodelist.c text.c comment.c domconfiguration.c \
35855: domimplementationsource.c entityreference.c \
35856: notation.c xpath.c dom_iterators.c \
35857: typeinfo.c domerror.c domlocator.c namednodemap.c userdatahandler.c; do
35858:
35859: IFS=.
35860: set $ac_src
35861: ac_obj=$1
35862: IFS=$old_IFS
35863:
35864: PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo"
35865:
35866: case $ac_src in
35867: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
35868: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
35869: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
35870: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
35871: esac
35872:
35873: cat >>Makefile.objects<<EOF
35874: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
35875: $ac_comp
35876: EOF
35877: done
35878:
35879:
35880:
35881:
35882: case ext/dom in
35883: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
35884: /*) ac_srcdir=`echo "ext/dom"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
35885: *) ac_srcdir="$abs_srcdir/ext/dom/"; ac_bdir="ext/dom/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
35886: esac
35887:
35888:
35889:
35890: b_c_pre=$php_c_pre
35891: b_cxx_pre=$php_cxx_pre
35892: b_c_meta=$php_c_meta
35893: b_cxx_meta=$php_cxx_meta
35894: b_c_post=$php_c_post
35895: b_cxx_post=$php_cxx_post
35896: b_lo=$php_lo
35897:
35898:
35899: old_IFS=$IFS
35900: for ac_src in php_dom.c attr.c document.c domerrorhandler.c \
35901: domstringlist.c domexception.c namelist.c \
35902: processinginstruction.c cdatasection.c \
35903: documentfragment.c domimplementation.c \
35904: element.c node.c string_extend.c characterdata.c \
35905: documenttype.c domimplementationlist.c entity.c \
35906: nodelist.c text.c comment.c domconfiguration.c \
35907: domimplementationsource.c entityreference.c \
35908: notation.c xpath.c dom_iterators.c \
35909: typeinfo.c domerror.c domlocator.c namednodemap.c userdatahandler.c; do
35910:
35911: IFS=.
35912: set $ac_src
35913: ac_obj=$1
35914: IFS=$old_IFS
35915:
35916: PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo"
35917:
35918: case $ac_src in
35919: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
35920: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
35921: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
35922: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
35923: esac
35924:
35925: cat >>Makefile.objects<<EOF
35926: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
35927: $ac_comp
35928: EOF
35929: done
35930:
35931:
35932: EXT_CLI_STATIC="$EXT_CLI_STATIC dom"
35933: fi
35934:
35935:
35936: BUILD_DIR="$BUILD_DIR $ext_builddir"
35937:
35938:
35939:
35940: if test "$ext_builddir" = "."; then
35941: PHP_PECL_EXTENSION=dom
35942:
35943: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
35944:
35945: fi
35946:
35947:
35948: PHP_VAR_SUBST="$PHP_VAR_SUBST DOM_SHARED_LIBADD"
35949:
35950:
35951:
35952: for header_file in ext/dom/xml_common.h; do
35953:
35954:
35955: unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
35956:
35957: cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
35958: if test -n "$unique" && test "`eval $cmd`" = "" ; then
35959: eval "INSTALLHEADERS$unique=set"
35960:
35961: INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
35962:
35963: fi
35964:
35965: done
35966:
35967:
35968:
35969: am_i_shared=$PHP_DOM_SHARED
35970: is_it_shared=$PHP_LIBXML_SHARED
35971: is_it_enabled=$PHP_LIBXML
35972: if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
35973: as_fn_error $? "
35974: You've configured extension dom to build statically, but it
35975: depends on extension libxml, which you've configured to build shared.
35976: You either need to build dom shared or build libxml statically for the
35977: build to be successful.
35978: " "$LINENO" 5
35979: fi
35980:
35981:
35982: else
35983: as_fn_error $? "libxml2 version 2.6.11 or greater required." "$LINENO" 5
35984: fi
35985: else
35986: as_fn_error $? "xml2-config not found. Please check your libxml2 installation." "$LINENO" 5
35987:
35988: fi
35989:
35990: fi
35991:
35992:
35993:
35994: php_with_enchant=no
35995:
35996: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENCHANT support" >&5
35997: $as_echo_n "checking for ENCHANT support... " >&6; }
35998:
35999: # Check whether --with-enchant was given.
36000: if test "${with_enchant+set}" = set; then :
36001: withval=$with_enchant; PHP_ENCHANT=$withval
36002: else
36003:
36004: PHP_ENCHANT=no
36005: test "$PHP_ENABLE_ALL" && PHP_ENCHANT=$PHP_ENABLE_ALL
36006:
36007: fi
36008:
36009:
36010:
36011: ext_output="yes, shared"
36012: ext_shared=yes
36013: case $PHP_ENCHANT in
36014: shared,*)
36015: PHP_ENCHANT=`echo "$PHP_ENCHANT"|$SED 's/^shared,//'`
36016: ;;
36017: shared)
36018: PHP_ENCHANT=yes
36019: ;;
36020: no)
36021: ext_output=no
36022: ext_shared=no
36023: ;;
36024: *)
36025: ext_output=yes
36026: ext_shared=no
36027: ;;
36028: esac
36029:
36030:
36031:
36032: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
36033: $as_echo "$ext_output" >&6; }
36034:
36035:
36036:
36037:
36038: if test "$PHP_ENCHANT" != "no"; then
36039:
36040: ext_builddir=ext/enchant
36041: ext_srcdir=$abs_srcdir/ext/enchant
36042:
36043: ac_extra=
36044:
36045: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
36046: PHP_ENCHANT_SHARED=no
36047:
36048:
36049: case ext/enchant in
36050: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
36051: /*) ac_srcdir=`echo "ext/enchant"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
36052: *) ac_srcdir="$abs_srcdir/ext/enchant/"; ac_bdir="ext/enchant/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
36053: esac
36054:
36055:
36056:
36057: b_c_pre=$php_c_pre
36058: b_cxx_pre=$php_cxx_pre
36059: b_c_meta=$php_c_meta
36060: b_cxx_meta=$php_cxx_meta
36061: b_c_post=$php_c_post
36062: b_cxx_post=$php_cxx_post
36063: b_lo=$php_lo
36064:
36065:
36066: old_IFS=$IFS
36067: for ac_src in enchant.c; do
36068:
36069: IFS=.
36070: set $ac_src
36071: ac_obj=$1
36072: IFS=$old_IFS
36073:
36074: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
36075:
36076: case $ac_src in
36077: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
36078: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
36079: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
36080: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
36081: esac
36082:
36083: cat >>Makefile.objects<<EOF
36084: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
36085: $ac_comp
36086: EOF
36087: done
36088:
36089:
36090: EXT_STATIC="$EXT_STATIC enchant"
36091: if test "$ext_shared" != "nocli"; then
36092: EXT_CLI_STATIC="$EXT_CLI_STATIC enchant"
36093: fi
36094: else
36095: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
36096: PHP_ENCHANT_SHARED=yes
36097:
36098: case ext/enchant in
36099: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
36100: /*) ac_srcdir=`echo "ext/enchant"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
36101: *) ac_srcdir="$abs_srcdir/ext/enchant/"; ac_bdir="ext/enchant/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
36102: esac
36103:
36104:
36105:
36106: b_c_pre=$shared_c_pre
36107: b_cxx_pre=$shared_cxx_pre
36108: b_c_meta=$shared_c_meta
36109: b_cxx_meta=$shared_cxx_meta
36110: b_c_post=$shared_c_post
36111: b_cxx_post=$shared_cxx_post
36112: b_lo=$shared_lo
36113:
36114:
36115: old_IFS=$IFS
36116: for ac_src in enchant.c; do
36117:
36118: IFS=.
36119: set $ac_src
36120: ac_obj=$1
36121: IFS=$old_IFS
36122:
36123: shared_objects_enchant="$shared_objects_enchant $ac_bdir$ac_obj.lo"
36124:
36125: case $ac_src in
36126: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
36127: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
36128: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
36129: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
36130: esac
36131:
36132: cat >>Makefile.objects<<EOF
36133: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
36134: $ac_comp
36135: EOF
36136: done
36137:
36138: case $host_alias in
36139: *netware*)
36140:
36141: install_modules="install-modules"
36142:
36143: case $host_alias in
36144: *aix*)
36145: suffix=so
36146: 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'
36147: ;;
36148: *netware*)
36149: suffix=nlm
36150: link_cmd='$(LIBTOOL) --mode=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)'
36151: ;;
36152: *)
36153: suffix=la
36154: link_cmd='$(LIBTOOL) --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)'
36155: ;;
36156: esac
36157:
36158: if test "x" = "xyes"; then
36159: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpenchant.$suffix"
36160: else
36161: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpenchant.$suffix"
36162: fi
36163:
36164: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_enchant"
36165:
36166: cat >>Makefile.objects<<EOF
36167: \$(phplibdir)/phpenchant.$suffix: $ext_builddir/phpenchant.$suffix
36168: \$(LIBTOOL) --mode=install cp $ext_builddir/phpenchant.$suffix \$(phplibdir)
36169:
36170: $ext_builddir/phpenchant.$suffix: \$(shared_objects_enchant) \$(PHPENCHANT_SHARED_DEPENDENCIES)
36171: $link_cmd
36172:
36173: EOF
36174:
36175: ;;
36176: *)
36177:
36178: install_modules="install-modules"
36179:
36180: case $host_alias in
36181: *aix*)
36182: suffix=so
36183: 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'
36184: ;;
36185: *netware*)
36186: suffix=nlm
36187: link_cmd='$(LIBTOOL) --mode=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)'
36188: ;;
36189: *)
36190: suffix=la
36191: link_cmd='$(LIBTOOL) --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)'
36192: ;;
36193: esac
36194:
36195: if test "x" = "xyes"; then
36196: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/enchant.$suffix"
36197: else
36198: PHP_MODULES="$PHP_MODULES \$(phplibdir)/enchant.$suffix"
36199: fi
36200:
36201: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_enchant"
36202:
36203: cat >>Makefile.objects<<EOF
36204: \$(phplibdir)/enchant.$suffix: $ext_builddir/enchant.$suffix
36205: \$(LIBTOOL) --mode=install cp $ext_builddir/enchant.$suffix \$(phplibdir)
36206:
36207: $ext_builddir/enchant.$suffix: \$(shared_objects_enchant) \$(ENCHANT_SHARED_DEPENDENCIES)
36208: $link_cmd
36209:
36210: EOF
36211:
36212: ;;
36213: esac
36214:
36215: cat >>confdefs.h <<_ACEOF
36216: #define COMPILE_DL_ENCHANT 1
36217: _ACEOF
36218:
36219: fi
36220: fi
36221:
36222: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
36223: PHP_ENCHANT_SHARED=no
36224:
36225:
36226: case ext/enchant in
36227: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
36228: /*) ac_srcdir=`echo "ext/enchant"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
36229: *) ac_srcdir="$abs_srcdir/ext/enchant/"; ac_bdir="ext/enchant/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
36230: esac
36231:
36232:
36233:
36234: b_c_pre=$php_c_pre
36235: b_cxx_pre=$php_cxx_pre
36236: b_c_meta=$php_c_meta
36237: b_cxx_meta=$php_cxx_meta
36238: b_c_post=$php_c_post
36239: b_cxx_post=$php_cxx_post
36240: b_lo=$php_lo
36241:
36242:
36243: old_IFS=$IFS
36244: for ac_src in enchant.c; do
36245:
36246: IFS=.
36247: set $ac_src
36248: ac_obj=$1
36249: IFS=$old_IFS
36250:
36251: PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
36252:
36253: case $ac_src in
36254: *.c) ac_comp="$b_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: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
36256: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
36257: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
36258: esac
36259:
36260: cat >>Makefile.objects<<EOF
36261: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
36262: $ac_comp
36263: EOF
36264: done
36265:
36266:
36267:
36268:
36269: case ext/enchant in
36270: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
36271: /*) ac_srcdir=`echo "ext/enchant"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
36272: *) ac_srcdir="$abs_srcdir/ext/enchant/"; ac_bdir="ext/enchant/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
36273: esac
36274:
36275:
36276:
36277: b_c_pre=$php_c_pre
36278: b_cxx_pre=$php_cxx_pre
36279: b_c_meta=$php_c_meta
36280: b_cxx_meta=$php_cxx_meta
36281: b_c_post=$php_c_post
36282: b_cxx_post=$php_cxx_post
36283: b_lo=$php_lo
36284:
36285:
36286: old_IFS=$IFS
36287: for ac_src in enchant.c; do
36288:
36289: IFS=.
36290: set $ac_src
36291: ac_obj=$1
36292: IFS=$old_IFS
36293:
36294: PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo"
36295:
36296: case $ac_src in
36297: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
36298: *.s) ac_comp="$b_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: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
36301: esac
36302:
36303: cat >>Makefile.objects<<EOF
36304: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
36305: $ac_comp
36306: EOF
36307: done
36308:
36309:
36310:
36311:
36312: case ext/enchant in
36313: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
36314: /*) ac_srcdir=`echo "ext/enchant"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
36315: *) ac_srcdir="$abs_srcdir/ext/enchant/"; ac_bdir="ext/enchant/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
36316: esac
36317:
36318:
36319:
36320: b_c_pre=$php_c_pre
36321: b_cxx_pre=$php_cxx_pre
36322: b_c_meta=$php_c_meta
36323: b_cxx_meta=$php_cxx_meta
36324: b_c_post=$php_c_post
36325: b_cxx_post=$php_cxx_post
36326: b_lo=$php_lo
36327:
36328:
36329: old_IFS=$IFS
36330: for ac_src in enchant.c; do
36331:
36332: IFS=.
36333: set $ac_src
36334: ac_obj=$1
36335: IFS=$old_IFS
36336:
36337: PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo"
36338:
36339: case $ac_src in
36340: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
36341: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
36342: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
36343: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
36344: esac
36345:
36346: cat >>Makefile.objects<<EOF
36347: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
36348: $ac_comp
36349: EOF
36350: done
36351:
36352:
36353: EXT_CLI_STATIC="$EXT_CLI_STATIC enchant"
36354: fi
36355:
36356:
36357: BUILD_DIR="$BUILD_DIR $ext_builddir"
36358:
36359:
36360:
36361: if test "$ext_builddir" = "."; then
36362: PHP_PECL_EXTENSION=enchant
36363:
36364: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
36365:
36366: fi
36367:
36368: if test "$PHP_ENCHANT" != "yes"; then
36369: ENCHANT_SEARCH_DIRS=$PHP_ENCHANT
36370: else
36371: ENCHANT_SEARCH_DIRS="/usr/local /usr"
36372: fi
36373: for i in $ENCHANT_SEARCH_DIRS; do
36374: if test -f $i/include/enchant/enchant.h; then
36375: ENCHANT_DIR=$i
36376: ENCHANT_INCDIR=$i/include/enchant
36377: elif test -f $i/include/enchant.h; then
36378: ENCHANT_DIR=$i
36379: ENCHANT_INCDIR=$i/include
36380: fi
36381: done
36382:
36383: if test -z "$ENCHANT_DIR"; then
36384: as_fn_error $? "Cannot find enchant" "$LINENO" 5
36385: fi
36386:
36387: ENCHANT_LIBDIR=$ENCHANT_DIR/lib
36388:
36389:
36390: $as_echo "#define HAVE_ENCHANT 1" >>confdefs.h
36391:
36392:
36393: PHP_VAR_SUBST="$PHP_VAR_SUBST ENCHANT_SHARED_LIBADD"
36394:
36395:
36396:
36397: if test "$ext_shared" = "yes"; then
36398: ENCHANT_SHARED_LIBADD="-lenchant $ENCHANT_SHARED_LIBADD"
36399: if test -n "$ENCHANT_LIBDIR"; then
36400:
36401: if test "$ENCHANT_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$ENCHANT_LIBDIR" != "/usr/lib"; then
36402:
36403: if test -z "$ENCHANT_LIBDIR" || echo "$ENCHANT_LIBDIR" | grep '^/' >/dev/null ; then
36404: ai_p=$ENCHANT_LIBDIR
36405: else
36406:
36407: ep_dir="`echo $ENCHANT_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
36408:
36409: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
36410: ai_p="$ep_realdir/`basename \"$ENCHANT_LIBDIR\"`"
36411: fi
36412:
36413:
36414: if test "$ext_shared" = "yes"; then
36415: ENCHANT_SHARED_LIBADD="-L$ai_p $ENCHANT_SHARED_LIBADD"
36416: test -n "$ld_runpath_switch" && ENCHANT_SHARED_LIBADD="$ld_runpath_switch$ai_p $ENCHANT_SHARED_LIBADD"
36417: else
36418:
36419:
36420:
36421: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
36422:
36423: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
36424: if test -n "$unique" && test "`eval $cmd`" = "" ; then
36425: eval "LIBPATH$unique=set"
36426:
36427: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
36428: LDFLAGS="$LDFLAGS -L$ai_p"
36429: PHP_RPATHS="$PHP_RPATHS $ai_p"
36430:
36431: fi
36432:
36433:
36434: fi
36435:
36436: fi
36437:
36438: fi
36439: else
36440:
36441:
36442: if test -n "$ENCHANT_LIBDIR"; then
36443:
36444: if test "$ENCHANT_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$ENCHANT_LIBDIR" != "/usr/lib"; then
36445:
36446: if test -z "$ENCHANT_LIBDIR" || echo "$ENCHANT_LIBDIR" | grep '^/' >/dev/null ; then
36447: ai_p=$ENCHANT_LIBDIR
36448: else
36449:
36450: ep_dir="`echo $ENCHANT_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
36451:
36452: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
36453: ai_p="$ep_realdir/`basename \"$ENCHANT_LIBDIR\"`"
36454: fi
36455:
36456:
36457:
36458:
36459:
36460: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
36461:
36462: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
36463: if test -n "$unique" && test "`eval $cmd`" = "" ; then
36464: eval "LIBPATH$unique=set"
36465:
36466: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
36467: LDFLAGS="$LDFLAGS -L$ai_p"
36468: PHP_RPATHS="$PHP_RPATHS $ai_p"
36469:
36470: fi
36471:
36472:
36473:
36474: fi
36475:
36476: fi
36477:
36478:
36479: case enchant in
36480: c|c_r|pthread*) ;;
36481: *)
36482: LIBS="-lenchant $LIBS"
36483: ;;
36484: esac
36485:
36486:
36487:
36488:
36489: fi
36490:
36491:
36492:
36493: if test "$ENCHANT_INCDIR" != "/usr/include"; then
36494:
36495: if test -z "$ENCHANT_INCDIR" || echo "$ENCHANT_INCDIR" | grep '^/' >/dev/null ; then
36496: ai_p=$ENCHANT_INCDIR
36497: else
36498:
36499: ep_dir="`echo $ENCHANT_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`"
36500:
36501: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
36502: ai_p="$ep_realdir/`basename \"$ENCHANT_INCDIR\"`"
36503: fi
36504:
36505:
36506:
36507: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
36508:
36509: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
36510: if test -n "$unique" && test "`eval $cmd`" = "" ; then
36511: eval "INCLUDEPATH$unique=set"
36512:
36513: if test ""; then
36514: INCLUDES="-I$ai_p $INCLUDES"
36515: else
36516: INCLUDES="$INCLUDES -I$ai_p"
36517: fi
36518:
36519: fi
36520:
36521: fi
36522:
36523:
36524: save_old_LDFLAGS=$LDFLAGS
36525: ac_stuff=" -L$ENCHANT_LIB $ENCHANT_SHARED_LIBADD"
36526:
36527: save_ext_shared=$ext_shared
36528: ext_shared=yes
36529:
36530: for ac_i in $ac_stuff; do
36531: case $ac_i in
36532: -pthread)
36533: if test "$ext_shared" = "yes"; then
36534: LDFLAGS="$LDFLAGS -pthread"
36535: else
36536:
36537:
36538: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
36539:
36540: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
36541: if test -n "$unique" && test "`eval $cmd`" = "" ; then
36542: eval "EXTRA_LDFLAGS$unique=set"
36543: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
36544: fi
36545:
36546: fi
36547: ;;
36548: -l*)
36549: ac_ii=`echo $ac_i|cut -c 3-`
36550:
36551:
36552: case $ac_ii in
36553: c|c_r|pthread*) ;;
36554: *)
36555: if test "$ext_shared" = "yes"; then
36556: LDFLAGS="$LDFLAGS -l$ac_ii"
36557: else
36558:
36559:
36560: case $ac_ii in
36561: c|c_r|pthread*) ;;
36562: *)
36563: LIBS="$LIBS -l$ac_ii"
36564: ;;
36565: esac
36566:
36567:
36568: fi
36569: ;;
36570: esac
36571:
36572:
36573: ;;
36574: -L*)
36575: ac_ii=`echo $ac_i|cut -c 3-`
36576:
36577: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
36578:
36579: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
36580: ai_p=$ac_ii
36581: else
36582:
36583: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
36584:
36585: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
36586: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
36587: fi
36588:
36589:
36590: if test "$ext_shared" = "yes"; then
36591: LDFLAGS="-L$ai_p $LDFLAGS"
36592: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
36593: else
36594:
36595:
36596:
36597: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
36598:
36599: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
36600: if test -n "$unique" && test "`eval $cmd`" = "" ; then
36601: eval "LIBPATH$unique=set"
36602:
36603: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
36604: LDFLAGS="$LDFLAGS -L$ai_p"
36605: PHP_RPATHS="$PHP_RPATHS $ai_p"
36606:
36607: fi
36608:
36609:
36610: fi
36611:
36612: fi
36613:
36614: ;;
36615: esac
36616: done
36617:
36618: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for enchant_broker_set_param in -lenchant" >&5
36619: $as_echo_n "checking for enchant_broker_set_param in -lenchant... " >&6; }
36620: if ${ac_cv_lib_enchant_enchant_broker_set_param+:} false; then :
36621: $as_echo_n "(cached) " >&6
36622: else
36623: ac_check_lib_save_LIBS=$LIBS
36624: LIBS="-lenchant $LIBS"
36625: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36626: /* end confdefs.h. */
36627:
36628: /* Override any GCC internal prototype to avoid an error.
36629: Use char because int might match the return type of a GCC
36630: builtin and then its argument prototype would still apply. */
36631: #ifdef __cplusplus
36632: extern "C"
36633: #endif
36634: char enchant_broker_set_param ();
36635: int
36636: main ()
36637: {
36638: return enchant_broker_set_param ();
36639: ;
36640: return 0;
36641: }
36642: _ACEOF
36643: if ac_fn_c_try_link "$LINENO"; then :
36644: ac_cv_lib_enchant_enchant_broker_set_param=yes
36645: else
36646: ac_cv_lib_enchant_enchant_broker_set_param=no
36647: fi
36648: rm -f core conftest.err conftest.$ac_objext \
36649: conftest$ac_exeext conftest.$ac_ext
36650: LIBS=$ac_check_lib_save_LIBS
36651: fi
36652: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_enchant_enchant_broker_set_param" >&5
36653: $as_echo "$ac_cv_lib_enchant_enchant_broker_set_param" >&6; }
36654: if test "x$ac_cv_lib_enchant_enchant_broker_set_param" = xyes; then :
36655:
36656: LDFLAGS=$save_old_LDFLAGS
36657: ext_shared=$save_ext_shared
36658:
36659:
36660: $as_echo "#define HAVE_ENCHANT_BROKER_SET_PARAM 1" >>confdefs.h
36661:
36662:
36663: $as_echo "#define ENCHANT_VERSION_STRING \"1.5.x\"" >>confdefs.h
36664:
36665:
36666:
36667: else
36668:
36669: LDFLAGS=$save_old_LDFLAGS
36670: ext_shared=$save_ext_shared
36671: unset ac_cv_lib_enchant_enchant_broker_set_param
36672:
36673:
36674: fi
36675:
36676:
36677: fi
36678:
36679:
36680:
36681: php_enable_exif=no
36682:
36683: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable EXIF (metadata from images) support" >&5
36684: $as_echo_n "checking whether to enable EXIF (metadata from images) support... " >&6; }
36685: # Check whether --enable-exif was given.
36686: if test "${enable_exif+set}" = set; then :
36687: enableval=$enable_exif; PHP_EXIF=$enableval
36688: else
36689:
36690: PHP_EXIF=no
36691: test "$PHP_ENABLE_ALL" && PHP_EXIF=$PHP_ENABLE_ALL
36692:
36693: fi
36694:
36695:
36696:
36697: ext_output="yes, shared"
36698: ext_shared=yes
36699: case $PHP_EXIF in
36700: shared,*)
36701: PHP_EXIF=`echo "$PHP_EXIF"|$SED 's/^shared,//'`
36702: ;;
36703: shared)
36704: PHP_EXIF=yes
36705: ;;
36706: no)
36707: ext_output=no
36708: ext_shared=no
36709: ;;
36710: *)
36711: ext_output=yes
36712: ext_shared=no
36713: ;;
36714: esac
36715:
36716:
36717:
36718: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
36719: $as_echo "$ext_output" >&6; }
36720:
36721:
36722:
36723:
36724: if test "$PHP_EXIF" != "no"; then
36725:
36726: $as_echo "#define HAVE_EXIF 1" >>confdefs.h
36727:
36728:
36729: ext_builddir=ext/exif
36730: ext_srcdir=$abs_srcdir/ext/exif
36731:
36732: ac_extra=
36733:
36734: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
36735: PHP_EXIF_SHARED=no
36736:
36737:
36738: case ext/exif in
36739: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
36740: /*) ac_srcdir=`echo "ext/exif"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
36741: *) ac_srcdir="$abs_srcdir/ext/exif/"; ac_bdir="ext/exif/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
36742: esac
36743:
36744:
36745:
36746: b_c_pre=$php_c_pre
36747: b_cxx_pre=$php_cxx_pre
36748: b_c_meta=$php_c_meta
36749: b_cxx_meta=$php_cxx_meta
36750: b_c_post=$php_c_post
36751: b_cxx_post=$php_cxx_post
36752: b_lo=$php_lo
36753:
36754:
36755: old_IFS=$IFS
36756: for ac_src in exif.c; do
36757:
36758: IFS=.
36759: set $ac_src
36760: ac_obj=$1
36761: IFS=$old_IFS
36762:
36763: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
36764:
36765: case $ac_src in
36766: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
36767: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
36768: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
36769: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
36770: esac
36771:
36772: cat >>Makefile.objects<<EOF
36773: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
36774: $ac_comp
36775: EOF
36776: done
36777:
36778:
36779: EXT_STATIC="$EXT_STATIC exif"
36780: if test "$ext_shared" != "nocli"; then
36781: EXT_CLI_STATIC="$EXT_CLI_STATIC exif"
36782: fi
36783: else
36784: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
36785: PHP_EXIF_SHARED=yes
36786:
36787: case ext/exif in
36788: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
36789: /*) ac_srcdir=`echo "ext/exif"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
36790: *) ac_srcdir="$abs_srcdir/ext/exif/"; ac_bdir="ext/exif/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
36791: esac
36792:
36793:
36794:
36795: b_c_pre=$shared_c_pre
36796: b_cxx_pre=$shared_cxx_pre
36797: b_c_meta=$shared_c_meta
36798: b_cxx_meta=$shared_cxx_meta
36799: b_c_post=$shared_c_post
36800: b_cxx_post=$shared_cxx_post
36801: b_lo=$shared_lo
36802:
36803:
36804: old_IFS=$IFS
36805: for ac_src in exif.c; do
36806:
36807: IFS=.
36808: set $ac_src
36809: ac_obj=$1
36810: IFS=$old_IFS
36811:
36812: shared_objects_exif="$shared_objects_exif $ac_bdir$ac_obj.lo"
36813:
36814: case $ac_src in
36815: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
36816: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
36817: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
36818: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
36819: esac
36820:
36821: cat >>Makefile.objects<<EOF
36822: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
36823: $ac_comp
36824: EOF
36825: done
36826:
36827: case $host_alias in
36828: *netware*)
36829:
36830: install_modules="install-modules"
36831:
36832: case $host_alias in
36833: *aix*)
36834: suffix=so
36835: 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'
36836: ;;
36837: *netware*)
36838: suffix=nlm
36839: link_cmd='$(LIBTOOL) --mode=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)'
36840: ;;
36841: *)
36842: suffix=la
36843: link_cmd='$(LIBTOOL) --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)'
36844: ;;
36845: esac
36846:
36847: if test "x" = "xyes"; then
36848: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpexif.$suffix"
36849: else
36850: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpexif.$suffix"
36851: fi
36852:
36853: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_exif"
36854:
36855: cat >>Makefile.objects<<EOF
36856: \$(phplibdir)/phpexif.$suffix: $ext_builddir/phpexif.$suffix
36857: \$(LIBTOOL) --mode=install cp $ext_builddir/phpexif.$suffix \$(phplibdir)
36858:
36859: $ext_builddir/phpexif.$suffix: \$(shared_objects_exif) \$(PHPEXIF_SHARED_DEPENDENCIES)
36860: $link_cmd
36861:
36862: EOF
36863:
36864: ;;
36865: *)
36866:
36867: install_modules="install-modules"
36868:
36869: case $host_alias in
36870: *aix*)
36871: suffix=so
36872: 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'
36873: ;;
36874: *netware*)
36875: suffix=nlm
36876: link_cmd='$(LIBTOOL) --mode=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)'
36877: ;;
36878: *)
36879: suffix=la
36880: link_cmd='$(LIBTOOL) --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)'
36881: ;;
36882: esac
36883:
36884: if test "x" = "xyes"; then
36885: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/exif.$suffix"
36886: else
36887: PHP_MODULES="$PHP_MODULES \$(phplibdir)/exif.$suffix"
36888: fi
36889:
36890: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_exif"
36891:
36892: cat >>Makefile.objects<<EOF
36893: \$(phplibdir)/exif.$suffix: $ext_builddir/exif.$suffix
36894: \$(LIBTOOL) --mode=install cp $ext_builddir/exif.$suffix \$(phplibdir)
36895:
36896: $ext_builddir/exif.$suffix: \$(shared_objects_exif) \$(EXIF_SHARED_DEPENDENCIES)
36897: $link_cmd
36898:
36899: EOF
36900:
36901: ;;
36902: esac
36903:
36904: cat >>confdefs.h <<_ACEOF
36905: #define COMPILE_DL_EXIF 1
36906: _ACEOF
36907:
36908: fi
36909: fi
36910:
36911: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
36912: PHP_EXIF_SHARED=no
36913:
36914:
36915: case ext/exif in
36916: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
36917: /*) ac_srcdir=`echo "ext/exif"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
36918: *) ac_srcdir="$abs_srcdir/ext/exif/"; ac_bdir="ext/exif/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
36919: esac
36920:
36921:
36922:
36923: b_c_pre=$php_c_pre
36924: b_cxx_pre=$php_cxx_pre
36925: b_c_meta=$php_c_meta
36926: b_cxx_meta=$php_cxx_meta
36927: b_c_post=$php_c_post
36928: b_cxx_post=$php_cxx_post
36929: b_lo=$php_lo
36930:
36931:
36932: old_IFS=$IFS
36933: for ac_src in exif.c; do
36934:
36935: IFS=.
36936: set $ac_src
36937: ac_obj=$1
36938: IFS=$old_IFS
36939:
36940: PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
36941:
36942: case $ac_src in
36943: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
36944: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
36945: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
36946: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
36947: esac
36948:
36949: cat >>Makefile.objects<<EOF
36950: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
36951: $ac_comp
36952: EOF
36953: done
36954:
36955:
36956:
36957:
36958: case ext/exif in
36959: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
36960: /*) ac_srcdir=`echo "ext/exif"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
36961: *) ac_srcdir="$abs_srcdir/ext/exif/"; ac_bdir="ext/exif/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
36962: esac
36963:
36964:
36965:
36966: b_c_pre=$php_c_pre
36967: b_cxx_pre=$php_cxx_pre
36968: b_c_meta=$php_c_meta
36969: b_cxx_meta=$php_cxx_meta
36970: b_c_post=$php_c_post
36971: b_cxx_post=$php_cxx_post
36972: b_lo=$php_lo
36973:
36974:
36975: old_IFS=$IFS
36976: for ac_src in exif.c; do
36977:
36978: IFS=.
36979: set $ac_src
36980: ac_obj=$1
36981: IFS=$old_IFS
36982:
36983: PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo"
36984:
36985: case $ac_src in
36986: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
36987: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
36988: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
36989: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
36990: esac
36991:
36992: cat >>Makefile.objects<<EOF
36993: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
36994: $ac_comp
36995: EOF
36996: done
36997:
36998:
36999:
37000:
37001: case ext/exif in
37002: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
37003: /*) ac_srcdir=`echo "ext/exif"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
37004: *) ac_srcdir="$abs_srcdir/ext/exif/"; ac_bdir="ext/exif/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
37005: esac
37006:
37007:
37008:
37009: b_c_pre=$php_c_pre
37010: b_cxx_pre=$php_cxx_pre
37011: b_c_meta=$php_c_meta
37012: b_cxx_meta=$php_cxx_meta
37013: b_c_post=$php_c_post
37014: b_cxx_post=$php_cxx_post
37015: b_lo=$php_lo
37016:
37017:
37018: old_IFS=$IFS
37019: for ac_src in exif.c; do
37020:
37021: IFS=.
37022: set $ac_src
37023: ac_obj=$1
37024: IFS=$old_IFS
37025:
37026: PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo"
37027:
37028: case $ac_src in
37029: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
37030: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
37031: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
37032: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
37033: esac
37034:
37035: cat >>Makefile.objects<<EOF
37036: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
37037: $ac_comp
37038: EOF
37039: done
37040:
37041:
37042: EXT_CLI_STATIC="$EXT_CLI_STATIC exif"
37043: fi
37044:
37045:
37046: BUILD_DIR="$BUILD_DIR $ext_builddir"
37047:
37048:
37049:
37050: if test "$ext_builddir" = "."; then
37051: PHP_PECL_EXTENSION=exif
37052:
37053: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
37054:
37055: fi
37056:
37057: fi
37058:
37059:
37060:
37061: php_enable_fileinfo=yes
37062:
37063: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fileinfo support" >&5
37064: $as_echo_n "checking for fileinfo support... " >&6; }
37065: # Check whether --enable-fileinfo was given.
37066: if test "${enable_fileinfo+set}" = set; then :
37067: enableval=$enable_fileinfo; PHP_FILEINFO=$enableval
37068: else
37069:
37070: PHP_FILEINFO=yes
37071: test "$PHP_ENABLE_ALL" && PHP_FILEINFO=$PHP_ENABLE_ALL
37072:
37073: fi
37074:
37075:
37076:
37077: ext_output="yes, shared"
37078: ext_shared=yes
37079: case $PHP_FILEINFO in
37080: shared,*)
37081: PHP_FILEINFO=`echo "$PHP_FILEINFO"|$SED 's/^shared,//'`
37082: ;;
37083: shared)
37084: PHP_FILEINFO=yes
37085: ;;
37086: no)
37087: ext_output=no
37088: ext_shared=no
37089: ;;
37090: *)
37091: ext_output=yes
37092: ext_shared=no
37093: ;;
37094: esac
37095:
37096:
37097:
37098: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
37099: $as_echo "$ext_output" >&6; }
37100:
37101:
37102:
37103:
37104: if test "$PHP_FILEINFO" != "no"; then
37105:
37106: libmagic_sources=" \
37107: libmagic/apprentice.c libmagic/apptype.c libmagic/ascmagic.c \
37108: libmagic/cdf.c libmagic/cdf_time.c libmagic/compress.c \
37109: libmagic/encoding.c libmagic/fsmagic.c libmagic/funcs.c \
37110: libmagic/is_tar.c libmagic/magic.c libmagic/print.c \
37111: libmagic/readcdf.c libmagic/readelf.c libmagic/softmagic.c"
37112:
37113:
37114: ext_builddir=ext/fileinfo
37115: ext_srcdir=$abs_srcdir/ext/fileinfo
37116:
37117: ac_extra=`echo "-I@ext_srcdir@/libmagic"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
37118:
37119: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
37120: PHP_FILEINFO_SHARED=no
37121:
37122:
37123: case ext/fileinfo in
37124: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
37125: /*) ac_srcdir=`echo "ext/fileinfo"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
37126: *) ac_srcdir="$abs_srcdir/ext/fileinfo/"; ac_bdir="ext/fileinfo/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
37127: esac
37128:
37129:
37130:
37131: b_c_pre=$php_c_pre
37132: b_cxx_pre=$php_cxx_pre
37133: b_c_meta=$php_c_meta
37134: b_cxx_meta=$php_cxx_meta
37135: b_c_post=$php_c_post
37136: b_cxx_post=$php_cxx_post
37137: b_lo=$php_lo
37138:
37139:
37140: old_IFS=$IFS
37141: for ac_src in fileinfo.c $libmagic_sources; do
37142:
37143: IFS=.
37144: set $ac_src
37145: ac_obj=$1
37146: IFS=$old_IFS
37147:
37148: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
37149:
37150: case $ac_src in
37151: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
37152: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
37153: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
37154: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
37155: esac
37156:
37157: cat >>Makefile.objects<<EOF
37158: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
37159: $ac_comp
37160: EOF
37161: done
37162:
37163:
37164: EXT_STATIC="$EXT_STATIC fileinfo"
37165: if test "$ext_shared" != "nocli"; then
37166: EXT_CLI_STATIC="$EXT_CLI_STATIC fileinfo"
37167: fi
37168: else
37169: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
37170: PHP_FILEINFO_SHARED=yes
37171:
37172: case ext/fileinfo in
37173: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
37174: /*) ac_srcdir=`echo "ext/fileinfo"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
37175: *) ac_srcdir="$abs_srcdir/ext/fileinfo/"; ac_bdir="ext/fileinfo/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
37176: esac
37177:
37178:
37179:
37180: b_c_pre=$shared_c_pre
37181: b_cxx_pre=$shared_cxx_pre
37182: b_c_meta=$shared_c_meta
37183: b_cxx_meta=$shared_cxx_meta
37184: b_c_post=$shared_c_post
37185: b_cxx_post=$shared_cxx_post
37186: b_lo=$shared_lo
37187:
37188:
37189: old_IFS=$IFS
37190: for ac_src in fileinfo.c $libmagic_sources; do
37191:
37192: IFS=.
37193: set $ac_src
37194: ac_obj=$1
37195: IFS=$old_IFS
37196:
37197: shared_objects_fileinfo="$shared_objects_fileinfo $ac_bdir$ac_obj.lo"
37198:
37199: case $ac_src in
37200: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
37201: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
37202: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
37203: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
37204: esac
37205:
37206: cat >>Makefile.objects<<EOF
37207: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
37208: $ac_comp
37209: EOF
37210: done
37211:
37212: case $host_alias in
37213: *netware*)
37214:
37215: install_modules="install-modules"
37216:
37217: case $host_alias in
37218: *aix*)
37219: suffix=so
37220: 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'
37221: ;;
37222: *netware*)
37223: suffix=nlm
37224: link_cmd='$(LIBTOOL) --mode=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)'
37225: ;;
37226: *)
37227: suffix=la
37228: link_cmd='$(LIBTOOL) --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)'
37229: ;;
37230: esac
37231:
37232: if test "x" = "xyes"; then
37233: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpfileinfo.$suffix"
37234: else
37235: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpfileinfo.$suffix"
37236: fi
37237:
37238: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_fileinfo"
37239:
37240: cat >>Makefile.objects<<EOF
37241: \$(phplibdir)/phpfileinfo.$suffix: $ext_builddir/phpfileinfo.$suffix
37242: \$(LIBTOOL) --mode=install cp $ext_builddir/phpfileinfo.$suffix \$(phplibdir)
37243:
37244: $ext_builddir/phpfileinfo.$suffix: \$(shared_objects_fileinfo) \$(PHPFILEINFO_SHARED_DEPENDENCIES)
37245: $link_cmd
37246:
37247: EOF
37248:
37249: ;;
37250: *)
37251:
37252: install_modules="install-modules"
37253:
37254: case $host_alias in
37255: *aix*)
37256: suffix=so
37257: 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'
37258: ;;
37259: *netware*)
37260: suffix=nlm
37261: link_cmd='$(LIBTOOL) --mode=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)'
37262: ;;
37263: *)
37264: suffix=la
37265: link_cmd='$(LIBTOOL) --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)'
37266: ;;
37267: esac
37268:
37269: if test "x" = "xyes"; then
37270: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/fileinfo.$suffix"
37271: else
37272: PHP_MODULES="$PHP_MODULES \$(phplibdir)/fileinfo.$suffix"
37273: fi
37274:
37275: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_fileinfo"
37276:
37277: cat >>Makefile.objects<<EOF
37278: \$(phplibdir)/fileinfo.$suffix: $ext_builddir/fileinfo.$suffix
37279: \$(LIBTOOL) --mode=install cp $ext_builddir/fileinfo.$suffix \$(phplibdir)
37280:
37281: $ext_builddir/fileinfo.$suffix: \$(shared_objects_fileinfo) \$(FILEINFO_SHARED_DEPENDENCIES)
37282: $link_cmd
37283:
37284: EOF
37285:
37286: ;;
37287: esac
37288:
37289: cat >>confdefs.h <<_ACEOF
37290: #define COMPILE_DL_FILEINFO 1
37291: _ACEOF
37292:
37293: fi
37294: fi
37295:
37296: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
37297: PHP_FILEINFO_SHARED=no
37298:
37299:
37300: case ext/fileinfo in
37301: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
37302: /*) ac_srcdir=`echo "ext/fileinfo"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
37303: *) ac_srcdir="$abs_srcdir/ext/fileinfo/"; ac_bdir="ext/fileinfo/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
37304: esac
37305:
37306:
37307:
37308: b_c_pre=$php_c_pre
37309: b_cxx_pre=$php_cxx_pre
37310: b_c_meta=$php_c_meta
37311: b_cxx_meta=$php_cxx_meta
37312: b_c_post=$php_c_post
37313: b_cxx_post=$php_cxx_post
37314: b_lo=$php_lo
37315:
37316:
37317: old_IFS=$IFS
37318: for ac_src in fileinfo.c $libmagic_sources; do
37319:
37320: IFS=.
37321: set $ac_src
37322: ac_obj=$1
37323: IFS=$old_IFS
37324:
37325: PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
37326:
37327: case $ac_src in
37328: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
37329: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
37330: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
37331: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
37332: esac
37333:
37334: cat >>Makefile.objects<<EOF
37335: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
37336: $ac_comp
37337: EOF
37338: done
37339:
37340:
37341:
37342:
37343: case ext/fileinfo in
37344: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
37345: /*) ac_srcdir=`echo "ext/fileinfo"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
37346: *) ac_srcdir="$abs_srcdir/ext/fileinfo/"; ac_bdir="ext/fileinfo/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
37347: esac
37348:
37349:
37350:
37351: b_c_pre=$php_c_pre
37352: b_cxx_pre=$php_cxx_pre
37353: b_c_meta=$php_c_meta
37354: b_cxx_meta=$php_cxx_meta
37355: b_c_post=$php_c_post
37356: b_cxx_post=$php_cxx_post
37357: b_lo=$php_lo
37358:
37359:
37360: old_IFS=$IFS
37361: for ac_src in fileinfo.c $libmagic_sources; do
37362:
37363: IFS=.
37364: set $ac_src
37365: ac_obj=$1
37366: IFS=$old_IFS
37367:
37368: PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo"
37369:
37370: case $ac_src in
37371: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
37372: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
37373: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
37374: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
37375: esac
37376:
37377: cat >>Makefile.objects<<EOF
37378: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
37379: $ac_comp
37380: EOF
37381: done
37382:
37383:
37384:
37385:
37386: case ext/fileinfo in
37387: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
37388: /*) ac_srcdir=`echo "ext/fileinfo"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
37389: *) ac_srcdir="$abs_srcdir/ext/fileinfo/"; ac_bdir="ext/fileinfo/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
37390: esac
37391:
37392:
37393:
37394: b_c_pre=$php_c_pre
37395: b_cxx_pre=$php_cxx_pre
37396: b_c_meta=$php_c_meta
37397: b_cxx_meta=$php_cxx_meta
37398: b_c_post=$php_c_post
37399: b_cxx_post=$php_cxx_post
37400: b_lo=$php_lo
37401:
37402:
37403: old_IFS=$IFS
37404: for ac_src in fileinfo.c $libmagic_sources; do
37405:
37406: IFS=.
37407: set $ac_src
37408: ac_obj=$1
37409: IFS=$old_IFS
37410:
37411: PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo"
37412:
37413: case $ac_src in
37414: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
37415: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
37416: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
37417: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
37418: esac
37419:
37420: cat >>Makefile.objects<<EOF
37421: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
37422: $ac_comp
37423: EOF
37424: done
37425:
37426:
37427: EXT_CLI_STATIC="$EXT_CLI_STATIC fileinfo"
37428: fi
37429:
37430:
37431: BUILD_DIR="$BUILD_DIR $ext_builddir"
37432:
37433:
37434:
37435: if test "$ext_builddir" = "."; then
37436: PHP_PECL_EXTENSION=fileinfo
37437:
37438: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
37439:
37440: fi
37441:
37442:
37443:
37444: BUILD_DIR="$BUILD_DIR $ext_builddir/libmagic"
37445:
37446:
37447:
37448: for ac_func in utimes strndup
37449: do :
37450: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
37451: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
37452: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
37453: cat >>confdefs.h <<_ACEOF
37454: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
37455: _ACEOF
37456:
37457: fi
37458: done
37459:
37460:
37461:
37462: src=$ext_srcdir/Makefile.frag
37463: ac_srcdir=$ext_srcdir
37464: ac_builddir=$ext_builddir
37465: test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments
37466:
37467: fi
37468:
37469:
37470:
37471: php_enable_filter=yes
37472:
37473: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable input filter support" >&5
37474: $as_echo_n "checking whether to enable input filter support... " >&6; }
37475: # Check whether --enable-filter was given.
37476: if test "${enable_filter+set}" = set; then :
37477: enableval=$enable_filter; PHP_FILTER=$enableval
37478: else
37479:
37480: PHP_FILTER=yes
37481: test "$PHP_ENABLE_ALL" && PHP_FILTER=$PHP_ENABLE_ALL
37482:
37483: fi
37484:
37485:
37486:
37487: ext_output="yes, shared"
37488: ext_shared=yes
37489: case $PHP_FILTER in
37490: shared,*)
37491: PHP_FILTER=`echo "$PHP_FILTER"|$SED 's/^shared,//'`
37492: ;;
37493: shared)
37494: PHP_FILTER=yes
37495: ;;
37496: no)
37497: ext_output=no
37498: ext_shared=no
37499: ;;
37500: *)
37501: ext_output=yes
37502: ext_shared=no
37503: ;;
37504: esac
37505:
37506:
37507:
37508: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
37509: $as_echo "$ext_output" >&6; }
37510:
37511:
37512:
37513:
37514:
37515: php_with_pcre_dir=no
37516:
37517: { $as_echo "$as_me:${as_lineno-$LINENO}: checking pcre install prefix" >&5
37518: $as_echo_n "checking pcre install prefix... " >&6; }
37519:
37520: # Check whether --with-pcre-dir was given.
37521: if test "${with_pcre_dir+set}" = set; then :
37522: withval=$with_pcre_dir; PHP_PCRE_DIR=$withval
37523: else
37524:
37525: PHP_PCRE_DIR=no
37526:
37527:
37528: fi
37529:
37530:
37531: ext_output=$PHP_PCRE_DIR
37532: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
37533: $as_echo "$ext_output" >&6; }
37534:
37535:
37536:
37537:
37538: if test "$PHP_FILTER" != "no"; then
37539:
37540: if test -n "$PHP_VERSION"; then
37541: ext_shared=no
37542: else
37543: old_CPPFLAGS=$CPPFLAGS
37544: CPPFLAGS=$INCLUDES
37545: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37546: /* end confdefs.h. */
37547:
37548: #include <main/php_config.h>
37549: #if defined(HAVE_BUNDLED_PCRE) && !defined(COMPILE_DL_PCRE)
37550: yes
37551: #endif
37552:
37553: _ACEOF
37554: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37555: $EGREP "yes" >/dev/null 2>&1; then :
37556:
37557: PHP_PCRE_REGEX=yes
37558:
37559: else
37560:
37561: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37562: /* end confdefs.h. */
37563:
37564: #include <main/php_config.h>
37565: #if defined(HAVE_PCRE) && !defined(COMPILE_DL_PCRE)
37566: yes
37567: #endif
37568:
37569: _ACEOF
37570: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37571: $EGREP "yes" >/dev/null 2>&1; then :
37572:
37573: PHP_PCRE_REGEX=pecl
37574:
37575: else
37576:
37577: PHP_PCRE_REGEX=no
37578:
37579: fi
37580: rm -f conftest*
37581:
37582:
37583: fi
37584: rm -f conftest*
37585:
37586: CPPFLAGS=$old_CPPFLAGS
37587: fi
37588:
37589:
37590: ext_builddir=ext/filter
37591: ext_srcdir=$abs_srcdir/ext/filter
37592:
37593: ac_extra=
37594:
37595: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
37596: PHP_FILTER_SHARED=no
37597:
37598:
37599: case ext/filter in
37600: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
37601: /*) ac_srcdir=`echo "ext/filter"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
37602: *) ac_srcdir="$abs_srcdir/ext/filter/"; ac_bdir="ext/filter/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
37603: esac
37604:
37605:
37606:
37607: b_c_pre=$php_c_pre
37608: b_cxx_pre=$php_cxx_pre
37609: b_c_meta=$php_c_meta
37610: b_cxx_meta=$php_cxx_meta
37611: b_c_post=$php_c_post
37612: b_cxx_post=$php_cxx_post
37613: b_lo=$php_lo
37614:
37615:
37616: old_IFS=$IFS
37617: for ac_src in filter.c sanitizing_filters.c logical_filters.c callback_filter.c; do
37618:
37619: IFS=.
37620: set $ac_src
37621: ac_obj=$1
37622: IFS=$old_IFS
37623:
37624: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
37625:
37626: case $ac_src in
37627: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
37628: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
37629: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
37630: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
37631: esac
37632:
37633: cat >>Makefile.objects<<EOF
37634: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
37635: $ac_comp
37636: EOF
37637: done
37638:
37639:
37640: EXT_STATIC="$EXT_STATIC filter"
37641: if test "$ext_shared" != "nocli"; then
37642: EXT_CLI_STATIC="$EXT_CLI_STATIC filter"
37643: fi
37644: else
37645: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
37646: PHP_FILTER_SHARED=yes
37647:
37648: case ext/filter in
37649: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
37650: /*) ac_srcdir=`echo "ext/filter"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
37651: *) ac_srcdir="$abs_srcdir/ext/filter/"; ac_bdir="ext/filter/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
37652: esac
37653:
37654:
37655:
37656: b_c_pre=$shared_c_pre
37657: b_cxx_pre=$shared_cxx_pre
37658: b_c_meta=$shared_c_meta
37659: b_cxx_meta=$shared_cxx_meta
37660: b_c_post=$shared_c_post
37661: b_cxx_post=$shared_cxx_post
37662: b_lo=$shared_lo
37663:
37664:
37665: old_IFS=$IFS
37666: for ac_src in filter.c sanitizing_filters.c logical_filters.c callback_filter.c; do
37667:
37668: IFS=.
37669: set $ac_src
37670: ac_obj=$1
37671: IFS=$old_IFS
37672:
37673: shared_objects_filter="$shared_objects_filter $ac_bdir$ac_obj.lo"
37674:
37675: case $ac_src in
37676: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
37677: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
37678: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
37679: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
37680: esac
37681:
37682: cat >>Makefile.objects<<EOF
37683: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
37684: $ac_comp
37685: EOF
37686: done
37687:
37688: case $host_alias in
37689: *netware*)
37690:
37691: install_modules="install-modules"
37692:
37693: case $host_alias in
37694: *aix*)
37695: suffix=so
37696: 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'
37697: ;;
37698: *netware*)
37699: suffix=nlm
37700: link_cmd='$(LIBTOOL) --mode=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)'
37701: ;;
37702: *)
37703: suffix=la
37704: link_cmd='$(LIBTOOL) --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)'
37705: ;;
37706: esac
37707:
37708: if test "x" = "xyes"; then
37709: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpfilter.$suffix"
37710: else
37711: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpfilter.$suffix"
37712: fi
37713:
37714: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_filter"
37715:
37716: cat >>Makefile.objects<<EOF
37717: \$(phplibdir)/phpfilter.$suffix: $ext_builddir/phpfilter.$suffix
37718: \$(LIBTOOL) --mode=install cp $ext_builddir/phpfilter.$suffix \$(phplibdir)
37719:
37720: $ext_builddir/phpfilter.$suffix: \$(shared_objects_filter) \$(PHPFILTER_SHARED_DEPENDENCIES)
37721: $link_cmd
37722:
37723: EOF
37724:
37725: ;;
37726: *)
37727:
37728: install_modules="install-modules"
37729:
37730: case $host_alias in
37731: *aix*)
37732: suffix=so
37733: 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'
37734: ;;
37735: *netware*)
37736: suffix=nlm
37737: link_cmd='$(LIBTOOL) --mode=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)'
37738: ;;
37739: *)
37740: suffix=la
37741: link_cmd='$(LIBTOOL) --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)'
37742: ;;
37743: esac
37744:
37745: if test "x" = "xyes"; then
37746: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/filter.$suffix"
37747: else
37748: PHP_MODULES="$PHP_MODULES \$(phplibdir)/filter.$suffix"
37749: fi
37750:
37751: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_filter"
37752:
37753: cat >>Makefile.objects<<EOF
37754: \$(phplibdir)/filter.$suffix: $ext_builddir/filter.$suffix
37755: \$(LIBTOOL) --mode=install cp $ext_builddir/filter.$suffix \$(phplibdir)
37756:
37757: $ext_builddir/filter.$suffix: \$(shared_objects_filter) \$(FILTER_SHARED_DEPENDENCIES)
37758: $link_cmd
37759:
37760: EOF
37761:
37762: ;;
37763: esac
37764:
37765: cat >>confdefs.h <<_ACEOF
37766: #define COMPILE_DL_FILTER 1
37767: _ACEOF
37768:
37769: fi
37770: fi
37771:
37772: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
37773: PHP_FILTER_SHARED=no
37774:
37775:
37776: case ext/filter in
37777: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
37778: /*) ac_srcdir=`echo "ext/filter"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
37779: *) ac_srcdir="$abs_srcdir/ext/filter/"; ac_bdir="ext/filter/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
37780: esac
37781:
37782:
37783:
37784: b_c_pre=$php_c_pre
37785: b_cxx_pre=$php_cxx_pre
37786: b_c_meta=$php_c_meta
37787: b_cxx_meta=$php_cxx_meta
37788: b_c_post=$php_c_post
37789: b_cxx_post=$php_cxx_post
37790: b_lo=$php_lo
37791:
37792:
37793: old_IFS=$IFS
37794: for ac_src in filter.c sanitizing_filters.c logical_filters.c callback_filter.c; do
37795:
37796: IFS=.
37797: set $ac_src
37798: ac_obj=$1
37799: IFS=$old_IFS
37800:
37801: PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
37802:
37803: case $ac_src in
37804: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
37805: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
37806: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
37807: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
37808: esac
37809:
37810: cat >>Makefile.objects<<EOF
37811: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
37812: $ac_comp
37813: EOF
37814: done
37815:
37816:
37817:
37818:
37819: case ext/filter in
37820: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
37821: /*) ac_srcdir=`echo "ext/filter"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
37822: *) ac_srcdir="$abs_srcdir/ext/filter/"; ac_bdir="ext/filter/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
37823: esac
37824:
37825:
37826:
37827: b_c_pre=$php_c_pre
37828: b_cxx_pre=$php_cxx_pre
37829: b_c_meta=$php_c_meta
37830: b_cxx_meta=$php_cxx_meta
37831: b_c_post=$php_c_post
37832: b_cxx_post=$php_cxx_post
37833: b_lo=$php_lo
37834:
37835:
37836: old_IFS=$IFS
37837: for ac_src in filter.c sanitizing_filters.c logical_filters.c callback_filter.c; do
37838:
37839: IFS=.
37840: set $ac_src
37841: ac_obj=$1
37842: IFS=$old_IFS
37843:
37844: PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo"
37845:
37846: case $ac_src in
37847: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
37848: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
37849: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
37850: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
37851: esac
37852:
37853: cat >>Makefile.objects<<EOF
37854: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
37855: $ac_comp
37856: EOF
37857: done
37858:
37859:
37860:
37861:
37862: case ext/filter in
37863: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
37864: /*) ac_srcdir=`echo "ext/filter"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
37865: *) ac_srcdir="$abs_srcdir/ext/filter/"; ac_bdir="ext/filter/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
37866: esac
37867:
37868:
37869:
37870: b_c_pre=$php_c_pre
37871: b_cxx_pre=$php_cxx_pre
37872: b_c_meta=$php_c_meta
37873: b_cxx_meta=$php_cxx_meta
37874: b_c_post=$php_c_post
37875: b_cxx_post=$php_cxx_post
37876: b_lo=$php_lo
37877:
37878:
37879: old_IFS=$IFS
37880: for ac_src in filter.c sanitizing_filters.c logical_filters.c callback_filter.c; do
37881:
37882: IFS=.
37883: set $ac_src
37884: ac_obj=$1
37885: IFS=$old_IFS
37886:
37887: PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo"
37888:
37889: case $ac_src in
37890: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
37891: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
37892: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
37893: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
37894: esac
37895:
37896: cat >>Makefile.objects<<EOF
37897: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
37898: $ac_comp
37899: EOF
37900: done
37901:
37902:
37903: EXT_CLI_STATIC="$EXT_CLI_STATIC filter"
37904: fi
37905:
37906:
37907: BUILD_DIR="$BUILD_DIR $ext_builddir"
37908:
37909:
37910:
37911: if test "$ext_builddir" = "."; then
37912: PHP_PECL_EXTENSION=filter
37913:
37914: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
37915:
37916: fi
37917:
37918:
37919: PHP_VAR_SUBST="$PHP_VAR_SUBST FILTER_SHARED_LIBADD"
37920:
37921:
37922:
37923:
37924: for header_file in ext/filter/php_filter.h; do
37925:
37926:
37927: unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
37928:
37929: cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
37930: if test -n "$unique" && test "`eval $cmd`" = "" ; then
37931: eval "INSTALLHEADERS$unique=set"
37932:
37933: INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
37934:
37935: fi
37936:
37937: done
37938:
37939:
37940:
37941: am_i_shared=$PHP_FILTER_SHARED
37942: is_it_shared=$PHP_PCRE_SHARED
37943: is_it_enabled=$PHP_PCRE
37944: if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
37945: as_fn_error $? "
37946: You've configured extension filter to build statically, but it
37947: depends on extension pcre, which you've configured to build shared.
37948: You either need to build filter shared or build pcre statically for the
37949: build to be successful.
37950: " "$LINENO" 5
37951: fi
37952:
37953: fi
37954:
37955:
37956:
37957: php_enable_ftp=no
37958:
37959: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable FTP support" >&5
37960: $as_echo_n "checking whether to enable FTP support... " >&6; }
37961: # Check whether --enable-ftp was given.
37962: if test "${enable_ftp+set}" = set; then :
37963: enableval=$enable_ftp; PHP_FTP=$enableval
37964: else
37965:
37966: PHP_FTP=no
37967: test "$PHP_ENABLE_ALL" && PHP_FTP=$PHP_ENABLE_ALL
37968:
37969: fi
37970:
37971:
37972:
37973: ext_output="yes, shared"
37974: ext_shared=yes
37975: case $PHP_FTP in
37976: shared,*)
37977: PHP_FTP=`echo "$PHP_FTP"|$SED 's/^shared,//'`
37978: ;;
37979: shared)
37980: PHP_FTP=yes
37981: ;;
37982: no)
37983: ext_output=no
37984: ext_shared=no
37985: ;;
37986: *)
37987: ext_output=yes
37988: ext_shared=no
37989: ;;
37990: esac
37991:
37992:
37993:
37994: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
37995: $as_echo "$ext_output" >&6; }
37996:
37997:
37998:
37999:
38000:
38001: php_with_openssl_dir=no
38002:
38003: { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL dir for FTP" >&5
38004: $as_echo_n "checking OpenSSL dir for FTP... " >&6; }
38005:
38006: # Check whether --with-openssl-dir was given.
38007: if test "${with_openssl_dir+set}" = set; then :
38008: withval=$with_openssl_dir; PHP_OPENSSL_DIR=$withval
38009: else
38010:
38011: PHP_OPENSSL_DIR=no
38012:
38013:
38014: fi
38015:
38016:
38017: ext_output=$PHP_OPENSSL_DIR
38018: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
38019: $as_echo "$ext_output" >&6; }
38020:
38021:
38022:
38023:
38024: if test "$PHP_FTP" = "yes"; then
38025:
38026: $as_echo "#define HAVE_FTP 1" >>confdefs.h
38027:
38028:
38029: ext_builddir=ext/ftp
38030: ext_srcdir=$abs_srcdir/ext/ftp
38031:
38032: ac_extra=
38033:
38034: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
38035: PHP_FTP_SHARED=no
38036:
38037:
38038: case ext/ftp in
38039: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
38040: /*) ac_srcdir=`echo "ext/ftp"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
38041: *) ac_srcdir="$abs_srcdir/ext/ftp/"; ac_bdir="ext/ftp/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
38042: esac
38043:
38044:
38045:
38046: b_c_pre=$php_c_pre
38047: b_cxx_pre=$php_cxx_pre
38048: b_c_meta=$php_c_meta
38049: b_cxx_meta=$php_cxx_meta
38050: b_c_post=$php_c_post
38051: b_cxx_post=$php_cxx_post
38052: b_lo=$php_lo
38053:
38054:
38055: old_IFS=$IFS
38056: for ac_src in php_ftp.c ftp.c; do
38057:
38058: IFS=.
38059: set $ac_src
38060: ac_obj=$1
38061: IFS=$old_IFS
38062:
38063: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
38064:
38065: case $ac_src in
38066: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
38067: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
38068: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
38069: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
38070: esac
38071:
38072: cat >>Makefile.objects<<EOF
38073: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
38074: $ac_comp
38075: EOF
38076: done
38077:
38078:
38079: EXT_STATIC="$EXT_STATIC ftp"
38080: if test "$ext_shared" != "nocli"; then
38081: EXT_CLI_STATIC="$EXT_CLI_STATIC ftp"
38082: fi
38083: else
38084: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
38085: PHP_FTP_SHARED=yes
38086:
38087: case ext/ftp in
38088: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
38089: /*) ac_srcdir=`echo "ext/ftp"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
38090: *) ac_srcdir="$abs_srcdir/ext/ftp/"; ac_bdir="ext/ftp/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
38091: esac
38092:
38093:
38094:
38095: b_c_pre=$shared_c_pre
38096: b_cxx_pre=$shared_cxx_pre
38097: b_c_meta=$shared_c_meta
38098: b_cxx_meta=$shared_cxx_meta
38099: b_c_post=$shared_c_post
38100: b_cxx_post=$shared_cxx_post
38101: b_lo=$shared_lo
38102:
38103:
38104: old_IFS=$IFS
38105: for ac_src in php_ftp.c ftp.c; do
38106:
38107: IFS=.
38108: set $ac_src
38109: ac_obj=$1
38110: IFS=$old_IFS
38111:
38112: shared_objects_ftp="$shared_objects_ftp $ac_bdir$ac_obj.lo"
38113:
38114: case $ac_src in
38115: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
38116: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
38117: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
38118: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
38119: esac
38120:
38121: cat >>Makefile.objects<<EOF
38122: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
38123: $ac_comp
38124: EOF
38125: done
38126:
38127: case $host_alias in
38128: *netware*)
38129:
38130: install_modules="install-modules"
38131:
38132: case $host_alias in
38133: *aix*)
38134: suffix=so
38135: 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'
38136: ;;
38137: *netware*)
38138: suffix=nlm
38139: link_cmd='$(LIBTOOL) --mode=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)'
38140: ;;
38141: *)
38142: suffix=la
38143: link_cmd='$(LIBTOOL) --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)'
38144: ;;
38145: esac
38146:
38147: if test "x" = "xyes"; then
38148: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpftp.$suffix"
38149: else
38150: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpftp.$suffix"
38151: fi
38152:
38153: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_ftp"
38154:
38155: cat >>Makefile.objects<<EOF
38156: \$(phplibdir)/phpftp.$suffix: $ext_builddir/phpftp.$suffix
38157: \$(LIBTOOL) --mode=install cp $ext_builddir/phpftp.$suffix \$(phplibdir)
38158:
38159: $ext_builddir/phpftp.$suffix: \$(shared_objects_ftp) \$(PHPFTP_SHARED_DEPENDENCIES)
38160: $link_cmd
38161:
38162: EOF
38163:
38164: ;;
38165: *)
38166:
38167: install_modules="install-modules"
38168:
38169: case $host_alias in
38170: *aix*)
38171: suffix=so
38172: 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'
38173: ;;
38174: *netware*)
38175: suffix=nlm
38176: link_cmd='$(LIBTOOL) --mode=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)'
38177: ;;
38178: *)
38179: suffix=la
38180: link_cmd='$(LIBTOOL) --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)'
38181: ;;
38182: esac
38183:
38184: if test "x" = "xyes"; then
38185: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/ftp.$suffix"
38186: else
38187: PHP_MODULES="$PHP_MODULES \$(phplibdir)/ftp.$suffix"
38188: fi
38189:
38190: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_ftp"
38191:
38192: cat >>Makefile.objects<<EOF
38193: \$(phplibdir)/ftp.$suffix: $ext_builddir/ftp.$suffix
38194: \$(LIBTOOL) --mode=install cp $ext_builddir/ftp.$suffix \$(phplibdir)
38195:
38196: $ext_builddir/ftp.$suffix: \$(shared_objects_ftp) \$(FTP_SHARED_DEPENDENCIES)
38197: $link_cmd
38198:
38199: EOF
38200:
38201: ;;
38202: esac
38203:
38204: cat >>confdefs.h <<_ACEOF
38205: #define COMPILE_DL_FTP 1
38206: _ACEOF
38207:
38208: fi
38209: fi
38210:
38211: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
38212: PHP_FTP_SHARED=no
38213:
38214:
38215: case ext/ftp in
38216: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
38217: /*) ac_srcdir=`echo "ext/ftp"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
38218: *) ac_srcdir="$abs_srcdir/ext/ftp/"; ac_bdir="ext/ftp/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
38219: esac
38220:
38221:
38222:
38223: b_c_pre=$php_c_pre
38224: b_cxx_pre=$php_cxx_pre
38225: b_c_meta=$php_c_meta
38226: b_cxx_meta=$php_cxx_meta
38227: b_c_post=$php_c_post
38228: b_cxx_post=$php_cxx_post
38229: b_lo=$php_lo
38230:
38231:
38232: old_IFS=$IFS
38233: for ac_src in php_ftp.c ftp.c; do
38234:
38235: IFS=.
38236: set $ac_src
38237: ac_obj=$1
38238: IFS=$old_IFS
38239:
38240: PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
38241:
38242: case $ac_src in
38243: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
38244: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
38245: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
38246: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
38247: esac
38248:
38249: cat >>Makefile.objects<<EOF
38250: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
38251: $ac_comp
38252: EOF
38253: done
38254:
38255:
38256:
38257:
38258: case ext/ftp in
38259: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
38260: /*) ac_srcdir=`echo "ext/ftp"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
38261: *) ac_srcdir="$abs_srcdir/ext/ftp/"; ac_bdir="ext/ftp/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
38262: esac
38263:
38264:
38265:
38266: b_c_pre=$php_c_pre
38267: b_cxx_pre=$php_cxx_pre
38268: b_c_meta=$php_c_meta
38269: b_cxx_meta=$php_cxx_meta
38270: b_c_post=$php_c_post
38271: b_cxx_post=$php_cxx_post
38272: b_lo=$php_lo
38273:
38274:
38275: old_IFS=$IFS
38276: for ac_src in php_ftp.c ftp.c; do
38277:
38278: IFS=.
38279: set $ac_src
38280: ac_obj=$1
38281: IFS=$old_IFS
38282:
38283: PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo"
38284:
38285: case $ac_src in
38286: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
38287: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
38288: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
38289: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
38290: esac
38291:
38292: cat >>Makefile.objects<<EOF
38293: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
38294: $ac_comp
38295: EOF
38296: done
38297:
38298:
38299:
38300:
38301: case ext/ftp in
38302: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
38303: /*) ac_srcdir=`echo "ext/ftp"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
38304: *) ac_srcdir="$abs_srcdir/ext/ftp/"; ac_bdir="ext/ftp/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
38305: esac
38306:
38307:
38308:
38309: b_c_pre=$php_c_pre
38310: b_cxx_pre=$php_cxx_pre
38311: b_c_meta=$php_c_meta
38312: b_cxx_meta=$php_cxx_meta
38313: b_c_post=$php_c_post
38314: b_cxx_post=$php_cxx_post
38315: b_lo=$php_lo
38316:
38317:
38318: old_IFS=$IFS
38319: for ac_src in php_ftp.c ftp.c; do
38320:
38321: IFS=.
38322: set $ac_src
38323: ac_obj=$1
38324: IFS=$old_IFS
38325:
38326: PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo"
38327:
38328: case $ac_src in
38329: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
38330: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
38331: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
38332: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
38333: esac
38334:
38335: cat >>Makefile.objects<<EOF
38336: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
38337: $ac_comp
38338: EOF
38339: done
38340:
38341:
38342: EXT_CLI_STATIC="$EXT_CLI_STATIC ftp"
38343: fi
38344:
38345:
38346: BUILD_DIR="$BUILD_DIR $ext_builddir"
38347:
38348:
38349:
38350: if test "$ext_builddir" = "."; then
38351: PHP_PECL_EXTENSION=ftp
38352:
38353: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
38354:
38355: fi
38356:
38357:
38358: test -z "$PHP_OPENSSL" && PHP_OPENSSL=no
38359:
38360: if test "$PHP_OPENSSL" != "no" || test "$PHP_OPENSSL_DIR" != "no"; then
38361:
38362: found_openssl=no
38363: unset OPENSSL_INCDIR
38364: unset OPENSSL_LIBDIR
38365:
38366: test -z "$PHP_OPENSSL" && PHP_OPENSSL=no
38367: test -z "$PHP_IMAP_SSL" && PHP_IMAP_SSL=no
38368:
38369: if test -n "$PHP_OPENSSL" && test "$PHP_OPENSSL" != "no"; then
38370: PHP_OPENSSL_DIR=$PHP_OPENSSL
38371: elif test -n "$PHP_IMAP_SSL" && test "$PHP_IMAP_SSL" != "no"; then
38372: PHP_OPENSSL_DIR=$PHP_IMAP_SSL
38373: fi
38374:
38375: if test -z "$PKG_CONFIG"; then
38376: # Extract the first word of "pkg-config", so it can be a program name with args.
38377: set dummy pkg-config; ac_word=$2
38378: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38379: $as_echo_n "checking for $ac_word... " >&6; }
38380: if ${ac_cv_path_PKG_CONFIG+:} false; then :
38381: $as_echo_n "(cached) " >&6
38382: else
38383: case $PKG_CONFIG in
38384: [\\/]* | ?:[\\/]*)
38385: ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
38386: ;;
38387: *)
38388: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38389: for as_dir in $PATH
38390: do
38391: IFS=$as_save_IFS
38392: test -z "$as_dir" && as_dir=.
38393: for ac_exec_ext in '' $ac_executable_extensions; do
38394: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
38395: ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
38396: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38397: break 2
38398: fi
38399: done
38400: done
38401: IFS=$as_save_IFS
38402:
38403: test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
38404: ;;
38405: esac
38406: fi
38407: PKG_CONFIG=$ac_cv_path_PKG_CONFIG
38408: if test -n "$PKG_CONFIG"; then
38409: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
38410: $as_echo "$PKG_CONFIG" >&6; }
38411: else
38412: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38413: $as_echo "no" >&6; }
38414: fi
38415:
38416:
38417: fi
38418:
38419: if test "$PHP_OPENSSL_DIR" = "yes" && test -x "$PKG_CONFIG" && $PKG_CONFIG --exists openssl; then
38420: if $PKG_CONFIG --atleast-version=0.9.6 openssl; then
38421: found_openssl=yes
38422: OPENSSL_LIBS=`$PKG_CONFIG --libs openssl`
38423: OPENSSL_INCS=`$PKG_CONFIG --cflags-only-I openssl`
38424: OPENSSL_INCDIR=`$PKG_CONFIG --variable=includedir openssl`
38425: else
38426: as_fn_error $? "OpenSSL version 0.9.6 or greater required." "$LINENO" 5
38427: fi
38428:
38429: if test -n "$OPENSSL_LIBS" && test -n "$OPENSSL_INCS"; then
38430:
38431: for ac_i in $OPENSSL_LIBS; do
38432: case $ac_i in
38433: -pthread)
38434: if test "$ext_shared" = "yes"; then
38435: FTP_SHARED_LIBADD="$FTP_SHARED_LIBADD -pthread"
38436: else
38437:
38438:
38439: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
38440:
38441: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
38442: if test -n "$unique" && test "`eval $cmd`" = "" ; then
38443: eval "EXTRA_LDFLAGS$unique=set"
38444: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
38445: fi
38446:
38447: fi
38448: ;;
38449: -l*)
38450: ac_ii=`echo $ac_i|cut -c 3-`
38451:
38452:
38453: case $ac_ii in
38454: c|c_r|pthread*) ;;
38455: *)
38456: if test "$ext_shared" = "yes"; then
38457: FTP_SHARED_LIBADD="$FTP_SHARED_LIBADD -l$ac_ii"
38458: else
38459:
38460:
38461: case $ac_ii in
38462: c|c_r|pthread*) ;;
38463: *)
38464: LIBS="$LIBS -l$ac_ii"
38465: ;;
38466: esac
38467:
38468:
38469: fi
38470: ;;
38471: esac
38472:
38473:
38474: ;;
38475: -L*)
38476: ac_ii=`echo $ac_i|cut -c 3-`
38477:
38478: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
38479:
38480: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
38481: ai_p=$ac_ii
38482: else
38483:
38484: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
38485:
38486: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
38487: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
38488: fi
38489:
38490:
38491: if test "$ext_shared" = "yes"; then
38492: FTP_SHARED_LIBADD="-L$ai_p $FTP_SHARED_LIBADD"
38493: test -n "$ld_runpath_switch" && FTP_SHARED_LIBADD="$ld_runpath_switch$ai_p $FTP_SHARED_LIBADD"
38494: else
38495:
38496:
38497:
38498: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
38499:
38500: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
38501: if test -n "$unique" && test "`eval $cmd`" = "" ; then
38502: eval "LIBPATH$unique=set"
38503:
38504: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
38505: LDFLAGS="$LDFLAGS -L$ai_p"
38506: PHP_RPATHS="$PHP_RPATHS $ai_p"
38507:
38508: fi
38509:
38510:
38511: fi
38512:
38513: fi
38514:
38515: ;;
38516: esac
38517: done
38518:
38519:
38520: for ac_i in $OPENSSL_INCS; do
38521: case $ac_i in
38522: -I*)
38523: ac_ii=`echo $ac_i|cut -c 3-`
38524:
38525: if test "$ac_ii" != "/usr/include"; then
38526:
38527: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
38528: ai_p=$ac_ii
38529: else
38530:
38531: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
38532:
38533: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
38534: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
38535: fi
38536:
38537:
38538:
38539: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
38540:
38541: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
38542: if test -n "$unique" && test "`eval $cmd`" = "" ; then
38543: eval "INCLUDEPATH$unique=set"
38544:
38545: if test ""; then
38546: INCLUDES="-I$ai_p $INCLUDES"
38547: else
38548: INCLUDES="$INCLUDES -I$ai_p"
38549: fi
38550:
38551: fi
38552:
38553: fi
38554:
38555: ;;
38556: esac
38557: done
38558:
38559: fi
38560: fi
38561:
38562: if test "$found_openssl" = "no"; then
38563:
38564: if test "$PHP_OPENSSL_DIR" = "yes"; then
38565: PHP_OPENSSL_DIR="/usr/local/ssl /usr/local /usr /usr/local/openssl"
38566: fi
38567:
38568: for i in $PHP_OPENSSL_DIR; do
38569: if test -r $i/include/openssl/evp.h; then
38570: OPENSSL_INCDIR=$i/include
38571: fi
38572: if test -r $i/$PHP_LIBDIR/libssl.a -o -r $i/$PHP_LIBDIR/libssl.$SHLIB_SUFFIX_NAME; then
38573: OPENSSL_LIBDIR=$i/$PHP_LIBDIR
38574: fi
38575: test -n "$OPENSSL_INCDIR" && test -n "$OPENSSL_LIBDIR" && break
38576: done
38577:
38578: if test -z "$OPENSSL_INCDIR"; then
38579: as_fn_error $? "Cannot find OpenSSL's <evp.h>" "$LINENO" 5
38580: fi
38581:
38582: if test -z "$OPENSSL_LIBDIR"; then
38583: as_fn_error $? "Cannot find OpenSSL's libraries" "$LINENO" 5
38584: fi
38585:
38586: old_CPPFLAGS=$CPPFLAGS
38587: CPPFLAGS=-I$OPENSSL_INCDIR
38588: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version" >&5
38589: $as_echo_n "checking for OpenSSL version... " >&6; }
38590: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38591: /* end confdefs.h. */
38592:
38593: #include <openssl/opensslv.h>
38594: #if OPENSSL_VERSION_NUMBER >= 0x0090600fL
38595: yes
38596: #endif
38597:
38598: _ACEOF
38599: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38600: $EGREP "yes" >/dev/null 2>&1; then :
38601:
38602: { $as_echo "$as_me:${as_lineno-$LINENO}: result: >= 0.9.6" >&5
38603: $as_echo ">= 0.9.6" >&6; }
38604:
38605: else
38606:
38607: as_fn_error $? "OpenSSL version 0.9.6 or greater required." "$LINENO" 5
38608:
38609: fi
38610: rm -f conftest*
38611:
38612: CPPFLAGS=$old_CPPFLAGS
38613:
38614:
38615: if test "$OPENSSL_INCDIR" != "/usr/include"; then
38616:
38617: if test -z "$OPENSSL_INCDIR" || echo "$OPENSSL_INCDIR" | grep '^/' >/dev/null ; then
38618: ai_p=$OPENSSL_INCDIR
38619: else
38620:
38621: ep_dir="`echo $OPENSSL_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`"
38622:
38623: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
38624: ai_p="$ep_realdir/`basename \"$OPENSSL_INCDIR\"`"
38625: fi
38626:
38627:
38628:
38629: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
38630:
38631: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
38632: if test -n "$unique" && test "`eval $cmd`" = "" ; then
38633: eval "INCLUDEPATH$unique=set"
38634:
38635: if test ""; then
38636: INCLUDES="-I$ai_p $INCLUDES"
38637: else
38638: INCLUDES="$INCLUDES -I$ai_p"
38639: fi
38640:
38641: fi
38642:
38643: fi
38644:
38645:
38646:
38647: save_old_LDFLAGS=$LDFLAGS
38648: ac_stuff="
38649: -L$OPENSSL_LIBDIR
38650: "
38651:
38652: save_ext_shared=$ext_shared
38653: ext_shared=yes
38654:
38655: for ac_i in $ac_stuff; do
38656: case $ac_i in
38657: -pthread)
38658: if test "$ext_shared" = "yes"; then
38659: LDFLAGS="$LDFLAGS -pthread"
38660: else
38661:
38662:
38663: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
38664:
38665: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
38666: if test -n "$unique" && test "`eval $cmd`" = "" ; then
38667: eval "EXTRA_LDFLAGS$unique=set"
38668: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
38669: fi
38670:
38671: fi
38672: ;;
38673: -l*)
38674: ac_ii=`echo $ac_i|cut -c 3-`
38675:
38676:
38677: case $ac_ii in
38678: c|c_r|pthread*) ;;
38679: *)
38680: if test "$ext_shared" = "yes"; then
38681: LDFLAGS="$LDFLAGS -l$ac_ii"
38682: else
38683:
38684:
38685: case $ac_ii in
38686: c|c_r|pthread*) ;;
38687: *)
38688: LIBS="$LIBS -l$ac_ii"
38689: ;;
38690: esac
38691:
38692:
38693: fi
38694: ;;
38695: esac
38696:
38697:
38698: ;;
38699: -L*)
38700: ac_ii=`echo $ac_i|cut -c 3-`
38701:
38702: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
38703:
38704: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
38705: ai_p=$ac_ii
38706: else
38707:
38708: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
38709:
38710: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
38711: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
38712: fi
38713:
38714:
38715: if test "$ext_shared" = "yes"; then
38716: LDFLAGS="-L$ai_p $LDFLAGS"
38717: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
38718: else
38719:
38720:
38721:
38722: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
38723:
38724: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
38725: if test -n "$unique" && test "`eval $cmd`" = "" ; then
38726: eval "LIBPATH$unique=set"
38727:
38728: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
38729: LDFLAGS="$LDFLAGS -L$ai_p"
38730: PHP_RPATHS="$PHP_RPATHS $ai_p"
38731:
38732: fi
38733:
38734:
38735: fi
38736:
38737: fi
38738:
38739: ;;
38740: esac
38741: done
38742:
38743: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_free in -lcrypto" >&5
38744: $as_echo_n "checking for CRYPTO_free in -lcrypto... " >&6; }
38745: if ${ac_cv_lib_crypto_CRYPTO_free+:} false; then :
38746: $as_echo_n "(cached) " >&6
38747: else
38748: ac_check_lib_save_LIBS=$LIBS
38749: LIBS="-lcrypto $LIBS"
38750: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38751: /* end confdefs.h. */
38752:
38753: /* Override any GCC internal prototype to avoid an error.
38754: Use char because int might match the return type of a GCC
38755: builtin and then its argument prototype would still apply. */
38756: #ifdef __cplusplus
38757: extern "C"
38758: #endif
38759: char CRYPTO_free ();
38760: int
38761: main ()
38762: {
38763: return CRYPTO_free ();
38764: ;
38765: return 0;
38766: }
38767: _ACEOF
38768: if ac_fn_c_try_link "$LINENO"; then :
38769: ac_cv_lib_crypto_CRYPTO_free=yes
38770: else
38771: ac_cv_lib_crypto_CRYPTO_free=no
38772: fi
38773: rm -f core conftest.err conftest.$ac_objext \
38774: conftest$ac_exeext conftest.$ac_ext
38775: LIBS=$ac_check_lib_save_LIBS
38776: fi
38777: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_free" >&5
38778: $as_echo "$ac_cv_lib_crypto_CRYPTO_free" >&6; }
38779: if test "x$ac_cv_lib_crypto_CRYPTO_free" = xyes; then :
38780:
38781: LDFLAGS=$save_old_LDFLAGS
38782: ext_shared=$save_ext_shared
38783:
38784:
38785:
38786: case crypto in
38787: c|c_r|pthread*) ;;
38788: *)
38789: if test "$ext_shared" = "yes"; then
38790: FTP_SHARED_LIBADD="-lcrypto $FTP_SHARED_LIBADD"
38791: else
38792:
38793:
38794: case crypto in
38795: c|c_r|pthread*) ;;
38796: *)
38797: LIBS="-lcrypto $LIBS"
38798: ;;
38799: esac
38800:
38801:
38802: fi
38803: ;;
38804: esac
38805:
38806:
38807:
38808:
38809: else
38810:
38811: LDFLAGS=$save_old_LDFLAGS
38812: ext_shared=$save_ext_shared
38813: unset ac_cv_lib_crypto_CRYPTO_free
38814:
38815: as_fn_error $? "libcrypto not found!" "$LINENO" 5
38816:
38817:
38818: fi
38819:
38820:
38821: old_LIBS=$LIBS
38822: LIBS="$LIBS -lcrypto"
38823:
38824: save_old_LDFLAGS=$LDFLAGS
38825: ac_stuff="
38826: -L$OPENSSL_LIBDIR
38827: "
38828:
38829: save_ext_shared=$ext_shared
38830: ext_shared=yes
38831:
38832: for ac_i in $ac_stuff; do
38833: case $ac_i in
38834: -pthread)
38835: if test "$ext_shared" = "yes"; then
38836: LDFLAGS="$LDFLAGS -pthread"
38837: else
38838:
38839:
38840: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
38841:
38842: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
38843: if test -n "$unique" && test "`eval $cmd`" = "" ; then
38844: eval "EXTRA_LDFLAGS$unique=set"
38845: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
38846: fi
38847:
38848: fi
38849: ;;
38850: -l*)
38851: ac_ii=`echo $ac_i|cut -c 3-`
38852:
38853:
38854: case $ac_ii in
38855: c|c_r|pthread*) ;;
38856: *)
38857: if test "$ext_shared" = "yes"; then
38858: LDFLAGS="$LDFLAGS -l$ac_ii"
38859: else
38860:
38861:
38862: case $ac_ii in
38863: c|c_r|pthread*) ;;
38864: *)
38865: LIBS="$LIBS -l$ac_ii"
38866: ;;
38867: esac
38868:
38869:
38870: fi
38871: ;;
38872: esac
38873:
38874:
38875: ;;
38876: -L*)
38877: ac_ii=`echo $ac_i|cut -c 3-`
38878:
38879: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
38880:
38881: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
38882: ai_p=$ac_ii
38883: else
38884:
38885: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
38886:
38887: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
38888: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
38889: fi
38890:
38891:
38892: if test "$ext_shared" = "yes"; then
38893: LDFLAGS="-L$ai_p $LDFLAGS"
38894: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
38895: else
38896:
38897:
38898:
38899: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
38900:
38901: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
38902: if test -n "$unique" && test "`eval $cmd`" = "" ; then
38903: eval "LIBPATH$unique=set"
38904:
38905: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
38906: LDFLAGS="$LDFLAGS -L$ai_p"
38907: PHP_RPATHS="$PHP_RPATHS $ai_p"
38908:
38909: fi
38910:
38911:
38912: fi
38913:
38914: fi
38915:
38916: ;;
38917: esac
38918: done
38919:
38920: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_CTX_set_ssl_version in -lssl" >&5
38921: $as_echo_n "checking for SSL_CTX_set_ssl_version in -lssl... " >&6; }
38922: if ${ac_cv_lib_ssl_SSL_CTX_set_ssl_version+:} false; then :
38923: $as_echo_n "(cached) " >&6
38924: else
38925: ac_check_lib_save_LIBS=$LIBS
38926: LIBS="-lssl $LIBS"
38927: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38928: /* end confdefs.h. */
38929:
38930: /* Override any GCC internal prototype to avoid an error.
38931: Use char because int might match the return type of a GCC
38932: builtin and then its argument prototype would still apply. */
38933: #ifdef __cplusplus
38934: extern "C"
38935: #endif
38936: char SSL_CTX_set_ssl_version ();
38937: int
38938: main ()
38939: {
38940: return SSL_CTX_set_ssl_version ();
38941: ;
38942: return 0;
38943: }
38944: _ACEOF
38945: if ac_fn_c_try_link "$LINENO"; then :
38946: ac_cv_lib_ssl_SSL_CTX_set_ssl_version=yes
38947: else
38948: ac_cv_lib_ssl_SSL_CTX_set_ssl_version=no
38949: fi
38950: rm -f core conftest.err conftest.$ac_objext \
38951: conftest$ac_exeext conftest.$ac_ext
38952: LIBS=$ac_check_lib_save_LIBS
38953: fi
38954: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_CTX_set_ssl_version" >&5
38955: $as_echo "$ac_cv_lib_ssl_SSL_CTX_set_ssl_version" >&6; }
38956: if test "x$ac_cv_lib_ssl_SSL_CTX_set_ssl_version" = xyes; then :
38957:
38958: LDFLAGS=$save_old_LDFLAGS
38959: ext_shared=$save_ext_shared
38960:
38961: found_openssl=yes
38962:
38963:
38964: else
38965:
38966: LDFLAGS=$save_old_LDFLAGS
38967: ext_shared=$save_ext_shared
38968: unset ac_cv_lib_ssl_SSL_CTX_set_ssl_version
38969:
38970: as_fn_error $? "libssl not found!" "$LINENO" 5
38971:
38972:
38973: fi
38974:
38975: LIBS=$old_LIBS
38976:
38977:
38978: case ssl in
38979: c|c_r|pthread*) ;;
38980: *)
38981: if test "$ext_shared" = "yes"; then
38982: FTP_SHARED_LIBADD="-lssl $FTP_SHARED_LIBADD"
38983: else
38984:
38985:
38986: case ssl in
38987: c|c_r|pthread*) ;;
38988: *)
38989: LIBS="-lssl $LIBS"
38990: ;;
38991: esac
38992:
38993:
38994: fi
38995: ;;
38996: esac
38997:
38998:
38999:
39000:
39001: case crypto in
39002: c|c_r|pthread*) ;;
39003: *)
39004: if test "$ext_shared" = "yes"; then
39005: FTP_SHARED_LIBADD="-lcrypto $FTP_SHARED_LIBADD"
39006: else
39007:
39008:
39009: case crypto in
39010: c|c_r|pthread*) ;;
39011: *)
39012: LIBS="-lcrypto $LIBS"
39013: ;;
39014: esac
39015:
39016:
39017: fi
39018: ;;
39019: esac
39020:
39021:
39022:
39023:
39024: if test "$OPENSSL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$OPENSSL_LIBDIR" != "/usr/lib"; then
39025:
39026: if test -z "$OPENSSL_LIBDIR" || echo "$OPENSSL_LIBDIR" | grep '^/' >/dev/null ; then
39027: ai_p=$OPENSSL_LIBDIR
39028: else
39029:
39030: ep_dir="`echo $OPENSSL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
39031:
39032: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
39033: ai_p="$ep_realdir/`basename \"$OPENSSL_LIBDIR\"`"
39034: fi
39035:
39036:
39037: if test "$ext_shared" = "yes"; then
39038: FTP_SHARED_LIBADD="-L$ai_p $FTP_SHARED_LIBADD"
39039: test -n "$ld_runpath_switch" && FTP_SHARED_LIBADD="$ld_runpath_switch$ai_p $FTP_SHARED_LIBADD"
39040: else
39041:
39042:
39043:
39044: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
39045:
39046: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
39047: if test -n "$unique" && test "`eval $cmd`" = "" ; then
39048: eval "LIBPATH$unique=set"
39049:
39050: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
39051: LDFLAGS="$LDFLAGS -L$ai_p"
39052: PHP_RPATHS="$PHP_RPATHS $ai_p"
39053:
39054: fi
39055:
39056:
39057: fi
39058:
39059: fi
39060:
39061: fi
39062:
39063: if test "$found_openssl" = "yes"; then
39064: OPENSSL_INCDIR_OPT=-I$OPENSSL_INCDIR
39065:
39066:
39067: :
39068:
39069: fi
39070:
39071:
39072: PHP_VAR_SUBST="$PHP_VAR_SUBST FTP_SHARED_LIBADD"
39073:
39074: fi
39075: fi
39076:
39077:
39078:
39079:
39080: php_with_gd=no
39081:
39082: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GD support" >&5
39083: $as_echo_n "checking for GD support... " >&6; }
39084:
39085: # Check whether --with-gd was given.
39086: if test "${with_gd+set}" = set; then :
39087: withval=$with_gd; PHP_GD=$withval
39088: else
39089:
39090: PHP_GD=no
39091: test "$PHP_ENABLE_ALL" && PHP_GD=$PHP_ENABLE_ALL
39092:
39093: fi
39094:
39095:
39096:
39097: ext_output="yes, shared"
39098: ext_shared=yes
39099: case $PHP_GD in
39100: shared,*)
39101: PHP_GD=`echo "$PHP_GD"|$SED 's/^shared,//'`
39102: ;;
39103: shared)
39104: PHP_GD=yes
39105: ;;
39106: no)
39107: ext_output=no
39108: ext_shared=no
39109: ;;
39110: *)
39111: ext_output=yes
39112: ext_shared=no
39113: ;;
39114: esac
39115:
39116:
39117:
39118: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
39119: $as_echo "$ext_output" >&6; }
39120:
39121:
39122:
39123:
39124: if test -z "$PHP_JPEG_DIR"; then
39125:
39126: php_with_jpeg_dir=no
39127:
39128: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the location of libjpeg" >&5
39129: $as_echo_n "checking for the location of libjpeg... " >&6; }
39130:
39131: # Check whether --with-jpeg-dir was given.
39132: if test "${with_jpeg_dir+set}" = set; then :
39133: withval=$with_jpeg_dir; PHP_JPEG_DIR=$withval
39134: else
39135:
39136: PHP_JPEG_DIR=no
39137:
39138:
39139: fi
39140:
39141:
39142: ext_output=$PHP_JPEG_DIR
39143: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
39144: $as_echo "$ext_output" >&6; }
39145:
39146:
39147:
39148: fi
39149:
39150: if test -z "$PHP_PNG_DIR"; then
39151:
39152: php_with_png_dir=no
39153:
39154: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the location of libpng" >&5
39155: $as_echo_n "checking for the location of libpng... " >&6; }
39156:
39157: # Check whether --with-png-dir was given.
39158: if test "${with_png_dir+set}" = set; then :
39159: withval=$with_png_dir; PHP_PNG_DIR=$withval
39160: else
39161:
39162: PHP_PNG_DIR=no
39163:
39164:
39165: fi
39166:
39167:
39168: ext_output=$PHP_PNG_DIR
39169: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
39170: $as_echo "$ext_output" >&6; }
39171:
39172:
39173:
39174: fi
39175:
39176: if test -z "$PHP_ZLIB_DIR"; then
39177:
39178: php_with_zlib_dir=no
39179:
39180: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the location of libz" >&5
39181: $as_echo_n "checking for the location of libz... " >&6; }
39182:
39183: # Check whether --with-zlib-dir was given.
39184: if test "${with_zlib_dir+set}" = set; then :
39185: withval=$with_zlib_dir; PHP_ZLIB_DIR=$withval
39186: else
39187:
39188: PHP_ZLIB_DIR=no
39189:
39190:
39191: fi
39192:
39193:
39194: ext_output=$PHP_ZLIB_DIR
39195: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
39196: $as_echo "$ext_output" >&6; }
39197:
39198:
39199:
39200: fi
39201:
39202:
39203: php_with_xpm_dir=no
39204:
39205: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the location of libXpm" >&5
39206: $as_echo_n "checking for the location of libXpm... " >&6; }
39207:
39208: # Check whether --with-xpm-dir was given.
39209: if test "${with_xpm_dir+set}" = set; then :
39210: withval=$with_xpm_dir; PHP_XPM_DIR=$withval
39211: else
39212:
39213: PHP_XPM_DIR=no
39214:
39215:
39216: fi
39217:
39218:
39219: ext_output=$PHP_XPM_DIR
39220: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
39221: $as_echo "$ext_output" >&6; }
39222:
39223:
39224:
39225:
39226:
39227: php_with_freetype_dir=no
39228:
39229: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2" >&5
39230: $as_echo_n "checking for FreeType 2... " >&6; }
39231:
39232: # Check whether --with-freetype-dir was given.
39233: if test "${with_freetype_dir+set}" = set; then :
39234: withval=$with_freetype_dir; PHP_FREETYPE_DIR=$withval
39235: else
39236:
39237: PHP_FREETYPE_DIR=no
39238:
39239:
39240: fi
39241:
39242:
39243: ext_output=$PHP_FREETYPE_DIR
39244: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
39245: $as_echo "$ext_output" >&6; }
39246:
39247:
39248:
39249:
39250:
39251: php_with_t1lib=no
39252:
39253: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for T1lib support" >&5
39254: $as_echo_n "checking for T1lib support... " >&6; }
39255:
39256: # Check whether --with-t1lib was given.
39257: if test "${with_t1lib+set}" = set; then :
39258: withval=$with_t1lib; PHP_T1LIB=$withval
39259: else
39260:
39261: PHP_T1LIB=no
39262:
39263:
39264: fi
39265:
39266:
39267: ext_output=$PHP_T1LIB
39268: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
39269: $as_echo "$ext_output" >&6; }
39270:
39271:
39272:
39273:
39274:
39275: php_enable_gd_native_ttf=no
39276:
39277: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable truetype string function in GD" >&5
39278: $as_echo_n "checking whether to enable truetype string function in GD... " >&6; }
39279: # Check whether --enable-gd-native-ttf was given.
39280: if test "${enable_gd_native_ttf+set}" = set; then :
39281: enableval=$enable_gd_native_ttf; PHP_GD_NATIVE_TTF=$enableval
39282: else
39283:
39284: PHP_GD_NATIVE_TTF=no
39285:
39286:
39287: fi
39288:
39289:
39290: ext_output=$PHP_GD_NATIVE_TTF
39291: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
39292: $as_echo "$ext_output" >&6; }
39293:
39294:
39295:
39296:
39297:
39298: php_enable_gd_jis_conv=no
39299:
39300: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable JIS-mapped Japanese font support in GD" >&5
39301: $as_echo_n "checking whether to enable JIS-mapped Japanese font support in GD... " >&6; }
39302: # Check whether --enable-gd-jis-conv was given.
39303: if test "${enable_gd_jis_conv+set}" = set; then :
39304: enableval=$enable_gd_jis_conv; PHP_GD_JIS_CONV=$enableval
39305: else
39306:
39307: PHP_GD_JIS_CONV=no
39308:
39309:
39310: fi
39311:
39312:
39313: ext_output=$PHP_GD_JIS_CONV
39314: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
39315: $as_echo "$ext_output" >&6; }
39316:
39317:
39318:
39319:
39320:
39321:
39322:
39323:
39324:
39325:
39326:
39327:
39328:
39329:
39330:
39331:
39332:
39333:
39334:
39335:
39336:
39337:
39338:
39339:
39340: if test "$PHP_GD" = "yes"; then
39341: GD_MODULE_TYPE=builtin
39342: extra_sources="libgd/gd.c libgd/gd_gd.c libgd/gd_gd2.c libgd/gd_io.c libgd/gd_io_dp.c \
39343: libgd/gd_io_file.c libgd/gd_ss.c libgd/gd_io_ss.c libgd/gd_png.c libgd/gd_jpeg.c \
39344: libgd/gdxpm.c libgd/gdfontt.c libgd/gdfonts.c libgd/gdfontmb.c libgd/gdfontl.c \
39345: libgd/gdfontg.c libgd/gdtables.c libgd/gdft.c libgd/gdcache.c libgd/gdkanji.c \
39346: libgd/wbmp.c libgd/gd_wbmp.c libgd/gdhelpers.c libgd/gd_topal.c libgd/gd_gif_in.c \
39347: libgd/xbm.c libgd/gd_gif_out.c libgd/gd_security.c libgd/gd_filter.c \
39348: libgd/gd_pixelate.c libgd/gd_arc.c libgd/gd_rotate.c libgd/gd_color.c"
39349:
39350: for ac_func in fabsf floorf
39351: do :
39352: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
39353: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
39354: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
39355: cat >>confdefs.h <<_ACEOF
39356: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
39357: _ACEOF
39358:
39359: fi
39360: done
39361:
39362:
39363: test "$PHP_PNG_DIR" = "no" && PHP_PNG_DIR=yes
39364:
39365:
39366: if test "$PHP_ZLIB_DIR" != "no" && test "$PHP_ZLIB_DIR" != "yes"; then
39367: if test -f "$PHP_ZLIB_DIR/include/zlib/zlib.h"; then
39368: PHP_ZLIB_DIR="$PHP_ZLIB_DIR"
39369: PHP_ZLIB_INCDIR="$PHP_ZLIB_DIR/include/zlib"
39370: elif test -f "$PHP_ZLIB_DIR/include/zlib.h"; then
39371: PHP_ZLIB_DIR="$PHP_ZLIB_DIR"
39372: PHP_ZLIB_INCDIR="$PHP_ZLIB_DIR/include"
39373: else
39374: as_fn_error $? "Can't find zlib headers under \"$PHP_ZLIB_DIR\"" "$LINENO" 5
39375: fi
39376: else
39377: for i in /usr/local /usr; do
39378: if test -f "$i/include/zlib/zlib.h"; then
39379: PHP_ZLIB_DIR="$i"
39380: PHP_ZLIB_INCDIR="$i/include/zlib"
39381: elif test -f "$i/include/zlib.h"; then
39382: PHP_ZLIB_DIR="$i"
39383: PHP_ZLIB_INCDIR="$i/include"
39384: fi
39385: done
39386: fi
39387:
39388:
39389: if test "$PHP_GD_NATIVE_TTF" = "yes"; then
39390:
39391: $as_echo "#define USE_GD_IMGSTRTTF 1" >>confdefs.h
39392:
39393: fi
39394:
39395:
39396: if test "$PHP_GD_JIS_CONV" = "yes"; then
39397: USE_GD_JIS_CONV=1
39398: fi
39399:
39400:
39401: if test "$PHP_JPEG_DIR" != "no"; then
39402:
39403: for i in $PHP_JPEG_DIR /usr/local /usr; do
39404: test -f $i/include/jpeglib.h && GD_JPEG_DIR=$i && break
39405: done
39406:
39407: if test -z "$GD_JPEG_DIR"; then
39408: as_fn_error $? "jpeglib.h not found." "$LINENO" 5
39409: fi
39410:
39411:
39412: save_old_LDFLAGS=$LDFLAGS
39413: ac_stuff="
39414: -L$GD_JPEG_DIR/$PHP_LIBDIR
39415: "
39416:
39417: save_ext_shared=$ext_shared
39418: ext_shared=yes
39419:
39420: for ac_i in $ac_stuff; do
39421: case $ac_i in
39422: -pthread)
39423: if test "$ext_shared" = "yes"; then
39424: LDFLAGS="$LDFLAGS -pthread"
39425: else
39426:
39427:
39428: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
39429:
39430: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
39431: if test -n "$unique" && test "`eval $cmd`" = "" ; then
39432: eval "EXTRA_LDFLAGS$unique=set"
39433: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
39434: fi
39435:
39436: fi
39437: ;;
39438: -l*)
39439: ac_ii=`echo $ac_i|cut -c 3-`
39440:
39441:
39442: case $ac_ii in
39443: c|c_r|pthread*) ;;
39444: *)
39445: if test "$ext_shared" = "yes"; then
39446: LDFLAGS="$LDFLAGS -l$ac_ii"
39447: else
39448:
39449:
39450: case $ac_ii in
39451: c|c_r|pthread*) ;;
39452: *)
39453: LIBS="$LIBS -l$ac_ii"
39454: ;;
39455: esac
39456:
39457:
39458: fi
39459: ;;
39460: esac
39461:
39462:
39463: ;;
39464: -L*)
39465: ac_ii=`echo $ac_i|cut -c 3-`
39466:
39467: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
39468:
39469: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
39470: ai_p=$ac_ii
39471: else
39472:
39473: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
39474:
39475: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
39476: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
39477: fi
39478:
39479:
39480: if test "$ext_shared" = "yes"; then
39481: LDFLAGS="-L$ai_p $LDFLAGS"
39482: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
39483: else
39484:
39485:
39486:
39487: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
39488:
39489: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
39490: if test -n "$unique" && test "`eval $cmd`" = "" ; then
39491: eval "LIBPATH$unique=set"
39492:
39493: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
39494: LDFLAGS="$LDFLAGS -L$ai_p"
39495: PHP_RPATHS="$PHP_RPATHS $ai_p"
39496:
39497: fi
39498:
39499:
39500: fi
39501:
39502: fi
39503:
39504: ;;
39505: esac
39506: done
39507:
39508: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
39509: $as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
39510: if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
39511: $as_echo_n "(cached) " >&6
39512: else
39513: ac_check_lib_save_LIBS=$LIBS
39514: LIBS="-ljpeg $LIBS"
39515: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39516: /* end confdefs.h. */
39517:
39518: /* Override any GCC internal prototype to avoid an error.
39519: Use char because int might match the return type of a GCC
39520: builtin and then its argument prototype would still apply. */
39521: #ifdef __cplusplus
39522: extern "C"
39523: #endif
39524: char jpeg_read_header ();
39525: int
39526: main ()
39527: {
39528: return jpeg_read_header ();
39529: ;
39530: return 0;
39531: }
39532: _ACEOF
39533: if ac_fn_c_try_link "$LINENO"; then :
39534: ac_cv_lib_jpeg_jpeg_read_header=yes
39535: else
39536: ac_cv_lib_jpeg_jpeg_read_header=no
39537: fi
39538: rm -f core conftest.err conftest.$ac_objext \
39539: conftest$ac_exeext conftest.$ac_ext
39540: LIBS=$ac_check_lib_save_LIBS
39541: fi
39542: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
39543: $as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
39544: if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
39545:
39546: LDFLAGS=$save_old_LDFLAGS
39547: ext_shared=$save_ext_shared
39548:
39549:
39550: if test "$GD_JPEG_DIR/include" != "/usr/include"; then
39551:
39552: if test -z "$GD_JPEG_DIR/include" || echo "$GD_JPEG_DIR/include" | grep '^/' >/dev/null ; then
39553: ai_p=$GD_JPEG_DIR/include
39554: else
39555:
39556: ep_dir="`echo $GD_JPEG_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
39557:
39558: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
39559: ai_p="$ep_realdir/`basename \"$GD_JPEG_DIR/include\"`"
39560: fi
39561:
39562:
39563:
39564: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
39565:
39566: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
39567: if test -n "$unique" && test "`eval $cmd`" = "" ; then
39568: eval "INCLUDEPATH$unique=set"
39569:
39570: if test ""; then
39571: INCLUDES="-I$ai_p $INCLUDES"
39572: else
39573: INCLUDES="$INCLUDES -I$ai_p"
39574: fi
39575:
39576: fi
39577:
39578: fi
39579:
39580:
39581:
39582: if test "$ext_shared" = "yes"; then
39583: GD_SHARED_LIBADD="-ljpeg $GD_SHARED_LIBADD"
39584: if test -n "$GD_JPEG_DIR/$PHP_LIBDIR"; then
39585:
39586: if test "$GD_JPEG_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_JPEG_DIR/$PHP_LIBDIR" != "/usr/lib"; then
39587:
39588: if test -z "$GD_JPEG_DIR/$PHP_LIBDIR" || echo "$GD_JPEG_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
39589: ai_p=$GD_JPEG_DIR/$PHP_LIBDIR
39590: else
39591:
39592: ep_dir="`echo $GD_JPEG_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
39593:
39594: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
39595: ai_p="$ep_realdir/`basename \"$GD_JPEG_DIR/$PHP_LIBDIR\"`"
39596: fi
39597:
39598:
39599: if test "$ext_shared" = "yes"; then
39600: GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
39601: test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
39602: else
39603:
39604:
39605:
39606: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
39607:
39608: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
39609: if test -n "$unique" && test "`eval $cmd`" = "" ; then
39610: eval "LIBPATH$unique=set"
39611:
39612: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
39613: LDFLAGS="$LDFLAGS -L$ai_p"
39614: PHP_RPATHS="$PHP_RPATHS $ai_p"
39615:
39616: fi
39617:
39618:
39619: fi
39620:
39621: fi
39622:
39623: fi
39624: else
39625:
39626:
39627: if test -n "$GD_JPEG_DIR/$PHP_LIBDIR"; then
39628:
39629: if test "$GD_JPEG_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_JPEG_DIR/$PHP_LIBDIR" != "/usr/lib"; then
39630:
39631: if test -z "$GD_JPEG_DIR/$PHP_LIBDIR" || echo "$GD_JPEG_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
39632: ai_p=$GD_JPEG_DIR/$PHP_LIBDIR
39633: else
39634:
39635: ep_dir="`echo $GD_JPEG_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
39636:
39637: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
39638: ai_p="$ep_realdir/`basename \"$GD_JPEG_DIR/$PHP_LIBDIR\"`"
39639: fi
39640:
39641:
39642:
39643:
39644:
39645: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
39646:
39647: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
39648: if test -n "$unique" && test "`eval $cmd`" = "" ; then
39649: eval "LIBPATH$unique=set"
39650:
39651: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
39652: LDFLAGS="$LDFLAGS -L$ai_p"
39653: PHP_RPATHS="$PHP_RPATHS $ai_p"
39654:
39655: fi
39656:
39657:
39658:
39659: fi
39660:
39661: fi
39662:
39663:
39664: case jpeg in
39665: c|c_r|pthread*) ;;
39666: *)
39667: LIBS="-ljpeg $LIBS"
39668: ;;
39669: esac
39670:
39671:
39672:
39673:
39674: fi
39675:
39676:
39677:
39678:
39679: else
39680:
39681: LDFLAGS=$save_old_LDFLAGS
39682: ext_shared=$save_ext_shared
39683: unset ac_cv_lib_jpeg_jpeg_read_header
39684:
39685: as_fn_error $? "Problem with libjpeg.(a|so). Please check config.log for more information." "$LINENO" 5
39686:
39687:
39688: fi
39689:
39690: else
39691: { $as_echo "$as_me:${as_lineno-$LINENO}: result: If configure fails try --with-jpeg-dir=<DIR>" >&5
39692: $as_echo "If configure fails try --with-jpeg-dir=<DIR>" >&6; }
39693: fi
39694:
39695:
39696: if test "$PHP_PNG_DIR" != "no"; then
39697:
39698: for i in $PHP_PNG_DIR /usr/local /usr; do
39699: test -f $i/include/png.h && GD_PNG_DIR=$i && break
39700: done
39701:
39702: if test -z "$GD_PNG_DIR"; then
39703: as_fn_error $? "png.h not found." "$LINENO" 5
39704: fi
39705:
39706: if test "$PHP_ZLIB_DIR" = "no"; then
39707: as_fn_error $? "PNG support requires ZLIB. Use --with-zlib-dir=<DIR>" "$LINENO" 5
39708: fi
39709:
39710:
39711: save_old_LDFLAGS=$LDFLAGS
39712: ac_stuff="
39713: -L$PHP_ZLIB_DIR/$PHP_LIBDIR -lz -L$GD_PNG_DIR/$PHP_LIBDIR
39714: "
39715:
39716: save_ext_shared=$ext_shared
39717: ext_shared=yes
39718:
39719: for ac_i in $ac_stuff; do
39720: case $ac_i in
39721: -pthread)
39722: if test "$ext_shared" = "yes"; then
39723: LDFLAGS="$LDFLAGS -pthread"
39724: else
39725:
39726:
39727: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
39728:
39729: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
39730: if test -n "$unique" && test "`eval $cmd`" = "" ; then
39731: eval "EXTRA_LDFLAGS$unique=set"
39732: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
39733: fi
39734:
39735: fi
39736: ;;
39737: -l*)
39738: ac_ii=`echo $ac_i|cut -c 3-`
39739:
39740:
39741: case $ac_ii in
39742: c|c_r|pthread*) ;;
39743: *)
39744: if test "$ext_shared" = "yes"; then
39745: LDFLAGS="$LDFLAGS -l$ac_ii"
39746: else
39747:
39748:
39749: case $ac_ii in
39750: c|c_r|pthread*) ;;
39751: *)
39752: LIBS="$LIBS -l$ac_ii"
39753: ;;
39754: esac
39755:
39756:
39757: fi
39758: ;;
39759: esac
39760:
39761:
39762: ;;
39763: -L*)
39764: ac_ii=`echo $ac_i|cut -c 3-`
39765:
39766: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
39767:
39768: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
39769: ai_p=$ac_ii
39770: else
39771:
39772: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
39773:
39774: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
39775: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
39776: fi
39777:
39778:
39779: if test "$ext_shared" = "yes"; then
39780: LDFLAGS="-L$ai_p $LDFLAGS"
39781: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
39782: else
39783:
39784:
39785:
39786: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
39787:
39788: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
39789: if test -n "$unique" && test "`eval $cmd`" = "" ; then
39790: eval "LIBPATH$unique=set"
39791:
39792: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
39793: LDFLAGS="$LDFLAGS -L$ai_p"
39794: PHP_RPATHS="$PHP_RPATHS $ai_p"
39795:
39796: fi
39797:
39798:
39799: fi
39800:
39801: fi
39802:
39803: ;;
39804: esac
39805: done
39806:
39807: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_write_image in -lpng" >&5
39808: $as_echo_n "checking for png_write_image in -lpng... " >&6; }
39809: if ${ac_cv_lib_png_png_write_image+:} false; then :
39810: $as_echo_n "(cached) " >&6
39811: else
39812: ac_check_lib_save_LIBS=$LIBS
39813: LIBS="-lpng $LIBS"
39814: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39815: /* end confdefs.h. */
39816:
39817: /* Override any GCC internal prototype to avoid an error.
39818: Use char because int might match the return type of a GCC
39819: builtin and then its argument prototype would still apply. */
39820: #ifdef __cplusplus
39821: extern "C"
39822: #endif
39823: char png_write_image ();
39824: int
39825: main ()
39826: {
39827: return png_write_image ();
39828: ;
39829: return 0;
39830: }
39831: _ACEOF
39832: if ac_fn_c_try_link "$LINENO"; then :
39833: ac_cv_lib_png_png_write_image=yes
39834: else
39835: ac_cv_lib_png_png_write_image=no
39836: fi
39837: rm -f core conftest.err conftest.$ac_objext \
39838: conftest$ac_exeext conftest.$ac_ext
39839: LIBS=$ac_check_lib_save_LIBS
39840: fi
39841: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_write_image" >&5
39842: $as_echo "$ac_cv_lib_png_png_write_image" >&6; }
39843: if test "x$ac_cv_lib_png_png_write_image" = xyes; then :
39844:
39845: LDFLAGS=$save_old_LDFLAGS
39846: ext_shared=$save_ext_shared
39847:
39848:
39849: if test "$GD_PNG_DIR/include" != "/usr/include"; then
39850:
39851: if test -z "$GD_PNG_DIR/include" || echo "$GD_PNG_DIR/include" | grep '^/' >/dev/null ; then
39852: ai_p=$GD_PNG_DIR/include
39853: else
39854:
39855: ep_dir="`echo $GD_PNG_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
39856:
39857: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
39858: ai_p="$ep_realdir/`basename \"$GD_PNG_DIR/include\"`"
39859: fi
39860:
39861:
39862:
39863: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
39864:
39865: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
39866: if test -n "$unique" && test "`eval $cmd`" = "" ; then
39867: eval "INCLUDEPATH$unique=set"
39868:
39869: if test ""; then
39870: INCLUDES="-I$ai_p $INCLUDES"
39871: else
39872: INCLUDES="$INCLUDES -I$ai_p"
39873: fi
39874:
39875: fi
39876:
39877: fi
39878:
39879:
39880:
39881: if test "$ext_shared" = "yes"; then
39882: GD_SHARED_LIBADD="-lz $GD_SHARED_LIBADD"
39883: if test -n "$PHP_ZLIB_DIR/$PHP_LIBDIR"; then
39884:
39885: if test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/lib"; then
39886:
39887: if test -z "$PHP_ZLIB_DIR/$PHP_LIBDIR" || echo "$PHP_ZLIB_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
39888: ai_p=$PHP_ZLIB_DIR/$PHP_LIBDIR
39889: else
39890:
39891: ep_dir="`echo $PHP_ZLIB_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
39892:
39893: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
39894: ai_p="$ep_realdir/`basename \"$PHP_ZLIB_DIR/$PHP_LIBDIR\"`"
39895: fi
39896:
39897:
39898: if test "$ext_shared" = "yes"; then
39899: GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
39900: test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
39901: else
39902:
39903:
39904:
39905: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
39906:
39907: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
39908: if test -n "$unique" && test "`eval $cmd`" = "" ; then
39909: eval "LIBPATH$unique=set"
39910:
39911: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
39912: LDFLAGS="$LDFLAGS -L$ai_p"
39913: PHP_RPATHS="$PHP_RPATHS $ai_p"
39914:
39915: fi
39916:
39917:
39918: fi
39919:
39920: fi
39921:
39922: fi
39923: else
39924:
39925:
39926: if test -n "$PHP_ZLIB_DIR/$PHP_LIBDIR"; then
39927:
39928: if test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/lib"; then
39929:
39930: if test -z "$PHP_ZLIB_DIR/$PHP_LIBDIR" || echo "$PHP_ZLIB_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
39931: ai_p=$PHP_ZLIB_DIR/$PHP_LIBDIR
39932: else
39933:
39934: ep_dir="`echo $PHP_ZLIB_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
39935:
39936: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
39937: ai_p="$ep_realdir/`basename \"$PHP_ZLIB_DIR/$PHP_LIBDIR\"`"
39938: fi
39939:
39940:
39941:
39942:
39943:
39944: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
39945:
39946: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
39947: if test -n "$unique" && test "`eval $cmd`" = "" ; then
39948: eval "LIBPATH$unique=set"
39949:
39950: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
39951: LDFLAGS="$LDFLAGS -L$ai_p"
39952: PHP_RPATHS="$PHP_RPATHS $ai_p"
39953:
39954: fi
39955:
39956:
39957:
39958: fi
39959:
39960: fi
39961:
39962:
39963: case z in
39964: c|c_r|pthread*) ;;
39965: *)
39966: LIBS="-lz $LIBS"
39967: ;;
39968: esac
39969:
39970:
39971:
39972:
39973: fi
39974:
39975:
39976:
39977:
39978: if test "$ext_shared" = "yes"; then
39979: GD_SHARED_LIBADD="-lpng $GD_SHARED_LIBADD"
39980: if test -n "$GD_PNG_DIR/$PHP_LIBDIR"; then
39981:
39982: if test "$GD_PNG_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_PNG_DIR/$PHP_LIBDIR" != "/usr/lib"; then
39983:
39984: if test -z "$GD_PNG_DIR/$PHP_LIBDIR" || echo "$GD_PNG_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
39985: ai_p=$GD_PNG_DIR/$PHP_LIBDIR
39986: else
39987:
39988: ep_dir="`echo $GD_PNG_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
39989:
39990: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
39991: ai_p="$ep_realdir/`basename \"$GD_PNG_DIR/$PHP_LIBDIR\"`"
39992: fi
39993:
39994:
39995: if test "$ext_shared" = "yes"; then
39996: GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
39997: test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
39998: else
39999:
40000:
40001:
40002: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
40003:
40004: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
40005: if test -n "$unique" && test "`eval $cmd`" = "" ; then
40006: eval "LIBPATH$unique=set"
40007:
40008: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
40009: LDFLAGS="$LDFLAGS -L$ai_p"
40010: PHP_RPATHS="$PHP_RPATHS $ai_p"
40011:
40012: fi
40013:
40014:
40015: fi
40016:
40017: fi
40018:
40019: fi
40020: else
40021:
40022:
40023: if test -n "$GD_PNG_DIR/$PHP_LIBDIR"; then
40024:
40025: if test "$GD_PNG_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_PNG_DIR/$PHP_LIBDIR" != "/usr/lib"; then
40026:
40027: if test -z "$GD_PNG_DIR/$PHP_LIBDIR" || echo "$GD_PNG_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
40028: ai_p=$GD_PNG_DIR/$PHP_LIBDIR
40029: else
40030:
40031: ep_dir="`echo $GD_PNG_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
40032:
40033: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
40034: ai_p="$ep_realdir/`basename \"$GD_PNG_DIR/$PHP_LIBDIR\"`"
40035: fi
40036:
40037:
40038:
40039:
40040:
40041: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
40042:
40043: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
40044: if test -n "$unique" && test "`eval $cmd`" = "" ; then
40045: eval "LIBPATH$unique=set"
40046:
40047: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
40048: LDFLAGS="$LDFLAGS -L$ai_p"
40049: PHP_RPATHS="$PHP_RPATHS $ai_p"
40050:
40051: fi
40052:
40053:
40054:
40055: fi
40056:
40057: fi
40058:
40059:
40060: case png in
40061: c|c_r|pthread*) ;;
40062: *)
40063: LIBS="-lpng $LIBS"
40064: ;;
40065: esac
40066:
40067:
40068:
40069:
40070: fi
40071:
40072:
40073:
40074:
40075: else
40076:
40077: LDFLAGS=$save_old_LDFLAGS
40078: ext_shared=$save_ext_shared
40079: unset ac_cv_lib_png_png_write_image
40080:
40081: as_fn_error $? "Problem with libpng.(a|so) or libz.(a|so). Please check config.log for more information." "$LINENO" 5
40082:
40083:
40084: fi
40085:
40086:
40087: else
40088: { $as_echo "$as_me:${as_lineno-$LINENO}: result: If configure fails try --with-png-dir=<DIR> and --with-zlib-dir=<DIR>" >&5
40089: $as_echo "If configure fails try --with-png-dir=<DIR> and --with-zlib-dir=<DIR>" >&6; }
40090: fi
40091:
40092:
40093: if test "$PHP_XPM_DIR" != "no"; then
40094:
40095: for i in $PHP_XPM_DIR /usr/local /usr/X11R6 /usr; do
40096: test -f $i/$PHP_LIBDIR/libXpm.$SHLIB_SUFFIX_NAME || test -f $i/$PHP_LIBDIR/libXpm.a && GD_XPM_DIR=$i && break
40097: done
40098:
40099: if test -z "$GD_XPM_DIR"; then
40100: as_fn_error $? "libXpm.(a|so) not found." "$LINENO" 5
40101: fi
40102:
40103: for i in include include/X11; do
40104: test -f $GD_XPM_DIR/$i/xpm.h && GD_XPM_INC=$GD_XPM_DIR/include
40105: done
40106:
40107: if test -z "$GD_XPM_INC"; then
40108: as_fn_error $? "xpm.h not found." "$LINENO" 5
40109: fi
40110:
40111:
40112: save_old_LDFLAGS=$LDFLAGS
40113: ac_stuff="
40114: -L$GD_XPM_DIR/$PHP_LIBDIR -lX11
40115: "
40116:
40117: save_ext_shared=$ext_shared
40118: ext_shared=yes
40119:
40120: for ac_i in $ac_stuff; do
40121: case $ac_i in
40122: -pthread)
40123: if test "$ext_shared" = "yes"; then
40124: LDFLAGS="$LDFLAGS -pthread"
40125: else
40126:
40127:
40128: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
40129:
40130: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
40131: if test -n "$unique" && test "`eval $cmd`" = "" ; then
40132: eval "EXTRA_LDFLAGS$unique=set"
40133: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
40134: fi
40135:
40136: fi
40137: ;;
40138: -l*)
40139: ac_ii=`echo $ac_i|cut -c 3-`
40140:
40141:
40142: case $ac_ii in
40143: c|c_r|pthread*) ;;
40144: *)
40145: if test "$ext_shared" = "yes"; then
40146: LDFLAGS="$LDFLAGS -l$ac_ii"
40147: else
40148:
40149:
40150: case $ac_ii in
40151: c|c_r|pthread*) ;;
40152: *)
40153: LIBS="$LIBS -l$ac_ii"
40154: ;;
40155: esac
40156:
40157:
40158: fi
40159: ;;
40160: esac
40161:
40162:
40163: ;;
40164: -L*)
40165: ac_ii=`echo $ac_i|cut -c 3-`
40166:
40167: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
40168:
40169: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
40170: ai_p=$ac_ii
40171: else
40172:
40173: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
40174:
40175: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
40176: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
40177: fi
40178:
40179:
40180: if test "$ext_shared" = "yes"; then
40181: LDFLAGS="-L$ai_p $LDFLAGS"
40182: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
40183: else
40184:
40185:
40186:
40187: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
40188:
40189: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
40190: if test -n "$unique" && test "`eval $cmd`" = "" ; then
40191: eval "LIBPATH$unique=set"
40192:
40193: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
40194: LDFLAGS="$LDFLAGS -L$ai_p"
40195: PHP_RPATHS="$PHP_RPATHS $ai_p"
40196:
40197: fi
40198:
40199:
40200: fi
40201:
40202: fi
40203:
40204: ;;
40205: esac
40206: done
40207:
40208: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmFreeXpmImage in -lXpm" >&5
40209: $as_echo_n "checking for XpmFreeXpmImage in -lXpm... " >&6; }
40210: if ${ac_cv_lib_Xpm_XpmFreeXpmImage+:} false; then :
40211: $as_echo_n "(cached) " >&6
40212: else
40213: ac_check_lib_save_LIBS=$LIBS
40214: LIBS="-lXpm $LIBS"
40215: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40216: /* end confdefs.h. */
40217:
40218: /* Override any GCC internal prototype to avoid an error.
40219: Use char because int might match the return type of a GCC
40220: builtin and then its argument prototype would still apply. */
40221: #ifdef __cplusplus
40222: extern "C"
40223: #endif
40224: char XpmFreeXpmImage ();
40225: int
40226: main ()
40227: {
40228: return XpmFreeXpmImage ();
40229: ;
40230: return 0;
40231: }
40232: _ACEOF
40233: if ac_fn_c_try_link "$LINENO"; then :
40234: ac_cv_lib_Xpm_XpmFreeXpmImage=yes
40235: else
40236: ac_cv_lib_Xpm_XpmFreeXpmImage=no
40237: fi
40238: rm -f core conftest.err conftest.$ac_objext \
40239: conftest$ac_exeext conftest.$ac_ext
40240: LIBS=$ac_check_lib_save_LIBS
40241: fi
40242: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmFreeXpmImage" >&5
40243: $as_echo "$ac_cv_lib_Xpm_XpmFreeXpmImage" >&6; }
40244: if test "x$ac_cv_lib_Xpm_XpmFreeXpmImage" = xyes; then :
40245:
40246: LDFLAGS=$save_old_LDFLAGS
40247: ext_shared=$save_ext_shared
40248:
40249:
40250: if test "$GD_XPM_INC" != "/usr/include"; then
40251:
40252: if test -z "$GD_XPM_INC" || echo "$GD_XPM_INC" | grep '^/' >/dev/null ; then
40253: ai_p=$GD_XPM_INC
40254: else
40255:
40256: ep_dir="`echo $GD_XPM_INC|$SED 's%/*[^/][^/]*/*$%%'`"
40257:
40258: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
40259: ai_p="$ep_realdir/`basename \"$GD_XPM_INC\"`"
40260: fi
40261:
40262:
40263:
40264: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
40265:
40266: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
40267: if test -n "$unique" && test "`eval $cmd`" = "" ; then
40268: eval "INCLUDEPATH$unique=set"
40269:
40270: if test ""; then
40271: INCLUDES="-I$ai_p $INCLUDES"
40272: else
40273: INCLUDES="$INCLUDES -I$ai_p"
40274: fi
40275:
40276: fi
40277:
40278: fi
40279:
40280:
40281:
40282: if test "$ext_shared" = "yes"; then
40283: GD_SHARED_LIBADD="-lXpm $GD_SHARED_LIBADD"
40284: if test -n "$GD_XPM_DIR/$PHP_LIBDIR"; then
40285:
40286: if test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/lib"; then
40287:
40288: if test -z "$GD_XPM_DIR/$PHP_LIBDIR" || echo "$GD_XPM_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
40289: ai_p=$GD_XPM_DIR/$PHP_LIBDIR
40290: else
40291:
40292: ep_dir="`echo $GD_XPM_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
40293:
40294: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
40295: ai_p="$ep_realdir/`basename \"$GD_XPM_DIR/$PHP_LIBDIR\"`"
40296: fi
40297:
40298:
40299: if test "$ext_shared" = "yes"; then
40300: GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
40301: test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
40302: else
40303:
40304:
40305:
40306: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
40307:
40308: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
40309: if test -n "$unique" && test "`eval $cmd`" = "" ; then
40310: eval "LIBPATH$unique=set"
40311:
40312: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
40313: LDFLAGS="$LDFLAGS -L$ai_p"
40314: PHP_RPATHS="$PHP_RPATHS $ai_p"
40315:
40316: fi
40317:
40318:
40319: fi
40320:
40321: fi
40322:
40323: fi
40324: else
40325:
40326:
40327: if test -n "$GD_XPM_DIR/$PHP_LIBDIR"; then
40328:
40329: if test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/lib"; then
40330:
40331: if test -z "$GD_XPM_DIR/$PHP_LIBDIR" || echo "$GD_XPM_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
40332: ai_p=$GD_XPM_DIR/$PHP_LIBDIR
40333: else
40334:
40335: ep_dir="`echo $GD_XPM_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
40336:
40337: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
40338: ai_p="$ep_realdir/`basename \"$GD_XPM_DIR/$PHP_LIBDIR\"`"
40339: fi
40340:
40341:
40342:
40343:
40344:
40345: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
40346:
40347: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
40348: if test -n "$unique" && test "`eval $cmd`" = "" ; then
40349: eval "LIBPATH$unique=set"
40350:
40351: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
40352: LDFLAGS="$LDFLAGS -L$ai_p"
40353: PHP_RPATHS="$PHP_RPATHS $ai_p"
40354:
40355: fi
40356:
40357:
40358:
40359: fi
40360:
40361: fi
40362:
40363:
40364: case Xpm in
40365: c|c_r|pthread*) ;;
40366: *)
40367: LIBS="-lXpm $LIBS"
40368: ;;
40369: esac
40370:
40371:
40372:
40373:
40374: fi
40375:
40376:
40377:
40378:
40379: if test "$ext_shared" = "yes"; then
40380: GD_SHARED_LIBADD="-lX11 $GD_SHARED_LIBADD"
40381: if test -n "$GD_XPM_DIR/$PHP_LIBDIR"; then
40382:
40383: if test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/lib"; then
40384:
40385: if test -z "$GD_XPM_DIR/$PHP_LIBDIR" || echo "$GD_XPM_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
40386: ai_p=$GD_XPM_DIR/$PHP_LIBDIR
40387: else
40388:
40389: ep_dir="`echo $GD_XPM_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
40390:
40391: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
40392: ai_p="$ep_realdir/`basename \"$GD_XPM_DIR/$PHP_LIBDIR\"`"
40393: fi
40394:
40395:
40396: if test "$ext_shared" = "yes"; then
40397: GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
40398: test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
40399: else
40400:
40401:
40402:
40403: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
40404:
40405: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
40406: if test -n "$unique" && test "`eval $cmd`" = "" ; then
40407: eval "LIBPATH$unique=set"
40408:
40409: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
40410: LDFLAGS="$LDFLAGS -L$ai_p"
40411: PHP_RPATHS="$PHP_RPATHS $ai_p"
40412:
40413: fi
40414:
40415:
40416: fi
40417:
40418: fi
40419:
40420: fi
40421: else
40422:
40423:
40424: if test -n "$GD_XPM_DIR/$PHP_LIBDIR"; then
40425:
40426: if test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/lib"; then
40427:
40428: if test -z "$GD_XPM_DIR/$PHP_LIBDIR" || echo "$GD_XPM_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
40429: ai_p=$GD_XPM_DIR/$PHP_LIBDIR
40430: else
40431:
40432: ep_dir="`echo $GD_XPM_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
40433:
40434: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
40435: ai_p="$ep_realdir/`basename \"$GD_XPM_DIR/$PHP_LIBDIR\"`"
40436: fi
40437:
40438:
40439:
40440:
40441:
40442: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
40443:
40444: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
40445: if test -n "$unique" && test "`eval $cmd`" = "" ; then
40446: eval "LIBPATH$unique=set"
40447:
40448: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
40449: LDFLAGS="$LDFLAGS -L$ai_p"
40450: PHP_RPATHS="$PHP_RPATHS $ai_p"
40451:
40452: fi
40453:
40454:
40455:
40456: fi
40457:
40458: fi
40459:
40460:
40461: case X11 in
40462: c|c_r|pthread*) ;;
40463: *)
40464: LIBS="-lX11 $LIBS"
40465: ;;
40466: esac
40467:
40468:
40469:
40470:
40471: fi
40472:
40473:
40474:
40475:
40476: else
40477:
40478: LDFLAGS=$save_old_LDFLAGS
40479: ext_shared=$save_ext_shared
40480: unset ac_cv_lib_Xpm_XpmFreeXpmImage
40481:
40482: as_fn_error $? "Problem with libXpm.(a|so) or libX11.(a|so). Please check config.log for more information." "$LINENO" 5
40483:
40484:
40485: fi
40486:
40487: else
40488: { $as_echo "$as_me:${as_lineno-$LINENO}: result: If configure fails try --with-xpm-dir=<DIR>" >&5
40489: $as_echo "If configure fails try --with-xpm-dir=<DIR>" >&6; }
40490: fi
40491:
40492:
40493: if test "$PHP_FREETYPE_DIR" != "no"; then
40494:
40495: for i in $PHP_FREETYPE_DIR /usr/local /usr; do
40496: if test -f "$i/include/freetype2/freetype/freetype.h"; then
40497: FREETYPE2_DIR=$i
40498: FREETYPE2_INC_DIR=$i/include/freetype2
40499: break
40500: fi
40501: done
40502:
40503: if test -z "$FREETYPE2_DIR"; then
40504: as_fn_error $? "freetype.h not found." "$LINENO" 5
40505: fi
40506:
40507:
40508: save_old_LDFLAGS=$LDFLAGS
40509: ac_stuff="
40510: -L$FREETYPE2_DIR/$PHP_LIBDIR
40511: "
40512:
40513: save_ext_shared=$ext_shared
40514: ext_shared=yes
40515:
40516: for ac_i in $ac_stuff; do
40517: case $ac_i in
40518: -pthread)
40519: if test "$ext_shared" = "yes"; then
40520: LDFLAGS="$LDFLAGS -pthread"
40521: else
40522:
40523:
40524: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
40525:
40526: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
40527: if test -n "$unique" && test "`eval $cmd`" = "" ; then
40528: eval "EXTRA_LDFLAGS$unique=set"
40529: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
40530: fi
40531:
40532: fi
40533: ;;
40534: -l*)
40535: ac_ii=`echo $ac_i|cut -c 3-`
40536:
40537:
40538: case $ac_ii in
40539: c|c_r|pthread*) ;;
40540: *)
40541: if test "$ext_shared" = "yes"; then
40542: LDFLAGS="$LDFLAGS -l$ac_ii"
40543: else
40544:
40545:
40546: case $ac_ii in
40547: c|c_r|pthread*) ;;
40548: *)
40549: LIBS="$LIBS -l$ac_ii"
40550: ;;
40551: esac
40552:
40553:
40554: fi
40555: ;;
40556: esac
40557:
40558:
40559: ;;
40560: -L*)
40561: ac_ii=`echo $ac_i|cut -c 3-`
40562:
40563: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
40564:
40565: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
40566: ai_p=$ac_ii
40567: else
40568:
40569: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
40570:
40571: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
40572: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
40573: fi
40574:
40575:
40576: if test "$ext_shared" = "yes"; then
40577: LDFLAGS="-L$ai_p $LDFLAGS"
40578: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
40579: else
40580:
40581:
40582:
40583: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
40584:
40585: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
40586: if test -n "$unique" && test "`eval $cmd`" = "" ; then
40587: eval "LIBPATH$unique=set"
40588:
40589: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
40590: LDFLAGS="$LDFLAGS -L$ai_p"
40591: PHP_RPATHS="$PHP_RPATHS $ai_p"
40592:
40593: fi
40594:
40595:
40596: fi
40597:
40598: fi
40599:
40600: ;;
40601: esac
40602: done
40603:
40604: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_New_Face in -lfreetype" >&5
40605: $as_echo_n "checking for FT_New_Face in -lfreetype... " >&6; }
40606: if ${ac_cv_lib_freetype_FT_New_Face+:} false; then :
40607: $as_echo_n "(cached) " >&6
40608: else
40609: ac_check_lib_save_LIBS=$LIBS
40610: LIBS="-lfreetype $LIBS"
40611: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40612: /* end confdefs.h. */
40613:
40614: /* Override any GCC internal prototype to avoid an error.
40615: Use char because int might match the return type of a GCC
40616: builtin and then its argument prototype would still apply. */
40617: #ifdef __cplusplus
40618: extern "C"
40619: #endif
40620: char FT_New_Face ();
40621: int
40622: main ()
40623: {
40624: return FT_New_Face ();
40625: ;
40626: return 0;
40627: }
40628: _ACEOF
40629: if ac_fn_c_try_link "$LINENO"; then :
40630: ac_cv_lib_freetype_FT_New_Face=yes
40631: else
40632: ac_cv_lib_freetype_FT_New_Face=no
40633: fi
40634: rm -f core conftest.err conftest.$ac_objext \
40635: conftest$ac_exeext conftest.$ac_ext
40636: LIBS=$ac_check_lib_save_LIBS
40637: fi
40638: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_New_Face" >&5
40639: $as_echo "$ac_cv_lib_freetype_FT_New_Face" >&6; }
40640: if test "x$ac_cv_lib_freetype_FT_New_Face" = xyes; then :
40641:
40642: LDFLAGS=$save_old_LDFLAGS
40643: ext_shared=$save_ext_shared
40644:
40645:
40646:
40647: if test "$ext_shared" = "yes"; then
40648: GD_SHARED_LIBADD="-lfreetype $GD_SHARED_LIBADD"
40649: if test -n "$FREETYPE2_DIR/$PHP_LIBDIR"; then
40650:
40651: if test "$FREETYPE2_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$FREETYPE2_DIR/$PHP_LIBDIR" != "/usr/lib"; then
40652:
40653: if test -z "$FREETYPE2_DIR/$PHP_LIBDIR" || echo "$FREETYPE2_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
40654: ai_p=$FREETYPE2_DIR/$PHP_LIBDIR
40655: else
40656:
40657: ep_dir="`echo $FREETYPE2_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
40658:
40659: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
40660: ai_p="$ep_realdir/`basename \"$FREETYPE2_DIR/$PHP_LIBDIR\"`"
40661: fi
40662:
40663:
40664: if test "$ext_shared" = "yes"; then
40665: GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
40666: test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
40667: else
40668:
40669:
40670:
40671: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
40672:
40673: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
40674: if test -n "$unique" && test "`eval $cmd`" = "" ; then
40675: eval "LIBPATH$unique=set"
40676:
40677: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
40678: LDFLAGS="$LDFLAGS -L$ai_p"
40679: PHP_RPATHS="$PHP_RPATHS $ai_p"
40680:
40681: fi
40682:
40683:
40684: fi
40685:
40686: fi
40687:
40688: fi
40689: else
40690:
40691:
40692: if test -n "$FREETYPE2_DIR/$PHP_LIBDIR"; then
40693:
40694: if test "$FREETYPE2_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$FREETYPE2_DIR/$PHP_LIBDIR" != "/usr/lib"; then
40695:
40696: if test -z "$FREETYPE2_DIR/$PHP_LIBDIR" || echo "$FREETYPE2_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
40697: ai_p=$FREETYPE2_DIR/$PHP_LIBDIR
40698: else
40699:
40700: ep_dir="`echo $FREETYPE2_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
40701:
40702: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
40703: ai_p="$ep_realdir/`basename \"$FREETYPE2_DIR/$PHP_LIBDIR\"`"
40704: fi
40705:
40706:
40707:
40708:
40709:
40710: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
40711:
40712: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
40713: if test -n "$unique" && test "`eval $cmd`" = "" ; then
40714: eval "LIBPATH$unique=set"
40715:
40716: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
40717: LDFLAGS="$LDFLAGS -L$ai_p"
40718: PHP_RPATHS="$PHP_RPATHS $ai_p"
40719:
40720: fi
40721:
40722:
40723:
40724: fi
40725:
40726: fi
40727:
40728:
40729: case freetype in
40730: c|c_r|pthread*) ;;
40731: *)
40732: LIBS="-lfreetype $LIBS"
40733: ;;
40734: esac
40735:
40736:
40737:
40738:
40739: fi
40740:
40741:
40742:
40743: if test "$FREETYPE2_DIR/include" != "/usr/include"; then
40744:
40745: if test -z "$FREETYPE2_DIR/include" || echo "$FREETYPE2_DIR/include" | grep '^/' >/dev/null ; then
40746: ai_p=$FREETYPE2_DIR/include
40747: else
40748:
40749: ep_dir="`echo $FREETYPE2_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
40750:
40751: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
40752: ai_p="$ep_realdir/`basename \"$FREETYPE2_DIR/include\"`"
40753: fi
40754:
40755:
40756:
40757: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
40758:
40759: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
40760: if test -n "$unique" && test "`eval $cmd`" = "" ; then
40761: eval "INCLUDEPATH$unique=set"
40762:
40763: if test ""; then
40764: INCLUDES="-I$ai_p $INCLUDES"
40765: else
40766: INCLUDES="$INCLUDES -I$ai_p"
40767: fi
40768:
40769: fi
40770:
40771: fi
40772:
40773:
40774: if test "$FREETYPE2_INC_DIR" != "/usr/include"; then
40775:
40776: if test -z "$FREETYPE2_INC_DIR" || echo "$FREETYPE2_INC_DIR" | grep '^/' >/dev/null ; then
40777: ai_p=$FREETYPE2_INC_DIR
40778: else
40779:
40780: ep_dir="`echo $FREETYPE2_INC_DIR|$SED 's%/*[^/][^/]*/*$%%'`"
40781:
40782: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
40783: ai_p="$ep_realdir/`basename \"$FREETYPE2_INC_DIR\"`"
40784: fi
40785:
40786:
40787:
40788: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
40789:
40790: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
40791: if test -n "$unique" && test "`eval $cmd`" = "" ; then
40792: eval "INCLUDEPATH$unique=set"
40793:
40794: if test ""; then
40795: INCLUDES="-I$ai_p $INCLUDES"
40796: else
40797: INCLUDES="$INCLUDES -I$ai_p"
40798: fi
40799:
40800: fi
40801:
40802: fi
40803:
40804:
40805: $as_echo "#define USE_GD_IMGSTRTTF 1" >>confdefs.h
40806:
40807:
40808: $as_echo "#define HAVE_LIBFREETYPE 1" >>confdefs.h
40809:
40810:
40811: $as_echo "#define ENABLE_GD_TTF 1" >>confdefs.h
40812:
40813:
40814:
40815: else
40816:
40817: LDFLAGS=$save_old_LDFLAGS
40818: ext_shared=$save_ext_shared
40819: unset ac_cv_lib_freetype_FT_New_Face
40820:
40821: as_fn_error $? "Problem with freetype.(a|so). Please check config.log for more information." "$LINENO" 5
40822:
40823:
40824: fi
40825:
40826: else
40827: { $as_echo "$as_me:${as_lineno-$LINENO}: result: If configure fails try --with-freetype-dir=<DIR>" >&5
40828: $as_echo "If configure fails try --with-freetype-dir=<DIR>" >&6; }
40829: fi
40830:
40831:
40832: if test "$PHP_T1LIB" != "no"; then
40833:
40834: for i in $PHP_T1LIB /usr/local /usr; do
40835: test -f "$i/include/t1lib.h" && GD_T1_DIR=$i && break
40836: done
40837:
40838: if test -z "$GD_T1_DIR"; then
40839: as_fn_error $? "Your t1lib distribution is not installed correctly. Please reinstall it." "$LINENO" 5
40840: fi
40841:
40842:
40843: save_old_LDFLAGS=$LDFLAGS
40844: ac_stuff="
40845: -L$GD_T1_DIR/$PHP_LIBDIR
40846: "
40847:
40848: save_ext_shared=$ext_shared
40849: ext_shared=yes
40850:
40851: for ac_i in $ac_stuff; do
40852: case $ac_i in
40853: -pthread)
40854: if test "$ext_shared" = "yes"; then
40855: LDFLAGS="$LDFLAGS -pthread"
40856: else
40857:
40858:
40859: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
40860:
40861: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
40862: if test -n "$unique" && test "`eval $cmd`" = "" ; then
40863: eval "EXTRA_LDFLAGS$unique=set"
40864: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
40865: fi
40866:
40867: fi
40868: ;;
40869: -l*)
40870: ac_ii=`echo $ac_i|cut -c 3-`
40871:
40872:
40873: case $ac_ii in
40874: c|c_r|pthread*) ;;
40875: *)
40876: if test "$ext_shared" = "yes"; then
40877: LDFLAGS="$LDFLAGS -l$ac_ii"
40878: else
40879:
40880:
40881: case $ac_ii in
40882: c|c_r|pthread*) ;;
40883: *)
40884: LIBS="$LIBS -l$ac_ii"
40885: ;;
40886: esac
40887:
40888:
40889: fi
40890: ;;
40891: esac
40892:
40893:
40894: ;;
40895: -L*)
40896: ac_ii=`echo $ac_i|cut -c 3-`
40897:
40898: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
40899:
40900: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
40901: ai_p=$ac_ii
40902: else
40903:
40904: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
40905:
40906: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
40907: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
40908: fi
40909:
40910:
40911: if test "$ext_shared" = "yes"; then
40912: LDFLAGS="-L$ai_p $LDFLAGS"
40913: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
40914: else
40915:
40916:
40917:
40918: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
40919:
40920: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
40921: if test -n "$unique" && test "`eval $cmd`" = "" ; then
40922: eval "LIBPATH$unique=set"
40923:
40924: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
40925: LDFLAGS="$LDFLAGS -L$ai_p"
40926: PHP_RPATHS="$PHP_RPATHS $ai_p"
40927:
40928: fi
40929:
40930:
40931: fi
40932:
40933: fi
40934:
40935: ;;
40936: esac
40937: done
40938:
40939: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for T1_StrError in -lt1" >&5
40940: $as_echo_n "checking for T1_StrError in -lt1... " >&6; }
40941: if ${ac_cv_lib_t1_T1_StrError+:} false; then :
40942: $as_echo_n "(cached) " >&6
40943: else
40944: ac_check_lib_save_LIBS=$LIBS
40945: LIBS="-lt1 $LIBS"
40946: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40947: /* end confdefs.h. */
40948:
40949: /* Override any GCC internal prototype to avoid an error.
40950: Use char because int might match the return type of a GCC
40951: builtin and then its argument prototype would still apply. */
40952: #ifdef __cplusplus
40953: extern "C"
40954: #endif
40955: char T1_StrError ();
40956: int
40957: main ()
40958: {
40959: return T1_StrError ();
40960: ;
40961: return 0;
40962: }
40963: _ACEOF
40964: if ac_fn_c_try_link "$LINENO"; then :
40965: ac_cv_lib_t1_T1_StrError=yes
40966: else
40967: ac_cv_lib_t1_T1_StrError=no
40968: fi
40969: rm -f core conftest.err conftest.$ac_objext \
40970: conftest$ac_exeext conftest.$ac_ext
40971: LIBS=$ac_check_lib_save_LIBS
40972: fi
40973: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_t1_T1_StrError" >&5
40974: $as_echo "$ac_cv_lib_t1_T1_StrError" >&6; }
40975: if test "x$ac_cv_lib_t1_T1_StrError" = xyes; then :
40976:
40977: LDFLAGS=$save_old_LDFLAGS
40978: ext_shared=$save_ext_shared
40979:
40980:
40981: $as_echo "#define HAVE_LIBT1 1" >>confdefs.h
40982:
40983:
40984: if test "$GD_T1_DIR/include" != "/usr/include"; then
40985:
40986: if test -z "$GD_T1_DIR/include" || echo "$GD_T1_DIR/include" | grep '^/' >/dev/null ; then
40987: ai_p=$GD_T1_DIR/include
40988: else
40989:
40990: ep_dir="`echo $GD_T1_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
40991:
40992: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
40993: ai_p="$ep_realdir/`basename \"$GD_T1_DIR/include\"`"
40994: fi
40995:
40996:
40997:
40998: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
40999:
41000: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
41001: if test -n "$unique" && test "`eval $cmd`" = "" ; then
41002: eval "INCLUDEPATH$unique=set"
41003:
41004: if test ""; then
41005: INCLUDES="-I$ai_p $INCLUDES"
41006: else
41007: INCLUDES="$INCLUDES -I$ai_p"
41008: fi
41009:
41010: fi
41011:
41012: fi
41013:
41014:
41015:
41016: if test "$ext_shared" = "yes"; then
41017: GD_SHARED_LIBADD="-lt1 $GD_SHARED_LIBADD"
41018: if test -n "$GD_T1_DIR/$PHP_LIBDIR"; then
41019:
41020: if test "$GD_T1_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_T1_DIR/$PHP_LIBDIR" != "/usr/lib"; then
41021:
41022: if test -z "$GD_T1_DIR/$PHP_LIBDIR" || echo "$GD_T1_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
41023: ai_p=$GD_T1_DIR/$PHP_LIBDIR
41024: else
41025:
41026: ep_dir="`echo $GD_T1_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
41027:
41028: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
41029: ai_p="$ep_realdir/`basename \"$GD_T1_DIR/$PHP_LIBDIR\"`"
41030: fi
41031:
41032:
41033: if test "$ext_shared" = "yes"; then
41034: GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
41035: test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
41036: else
41037:
41038:
41039:
41040: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
41041:
41042: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
41043: if test -n "$unique" && test "`eval $cmd`" = "" ; then
41044: eval "LIBPATH$unique=set"
41045:
41046: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
41047: LDFLAGS="$LDFLAGS -L$ai_p"
41048: PHP_RPATHS="$PHP_RPATHS $ai_p"
41049:
41050: fi
41051:
41052:
41053: fi
41054:
41055: fi
41056:
41057: fi
41058: else
41059:
41060:
41061: if test -n "$GD_T1_DIR/$PHP_LIBDIR"; then
41062:
41063: if test "$GD_T1_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_T1_DIR/$PHP_LIBDIR" != "/usr/lib"; then
41064:
41065: if test -z "$GD_T1_DIR/$PHP_LIBDIR" || echo "$GD_T1_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
41066: ai_p=$GD_T1_DIR/$PHP_LIBDIR
41067: else
41068:
41069: ep_dir="`echo $GD_T1_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
41070:
41071: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
41072: ai_p="$ep_realdir/`basename \"$GD_T1_DIR/$PHP_LIBDIR\"`"
41073: fi
41074:
41075:
41076:
41077:
41078:
41079: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
41080:
41081: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
41082: if test -n "$unique" && test "`eval $cmd`" = "" ; then
41083: eval "LIBPATH$unique=set"
41084:
41085: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
41086: LDFLAGS="$LDFLAGS -L$ai_p"
41087: PHP_RPATHS="$PHP_RPATHS $ai_p"
41088:
41089: fi
41090:
41091:
41092:
41093: fi
41094:
41095: fi
41096:
41097:
41098: case t1 in
41099: c|c_r|pthread*) ;;
41100: *)
41101: LIBS="-lt1 $LIBS"
41102: ;;
41103: esac
41104:
41105:
41106:
41107:
41108: fi
41109:
41110:
41111:
41112:
41113: else
41114:
41115: LDFLAGS=$save_old_LDFLAGS
41116: ext_shared=$save_ext_shared
41117: unset ac_cv_lib_t1_T1_StrError
41118:
41119: as_fn_error $? "Problem with libt1.(a|so). Please check config.log for more information." "$LINENO" 5
41120:
41121:
41122: fi
41123:
41124: fi
41125:
41126:
41127:
41128: $as_echo "#define HAVE_LIBGD 1" >>confdefs.h
41129:
41130:
41131: $as_echo "#define HAVE_LIBGD13 1" >>confdefs.h
41132:
41133:
41134: $as_echo "#define HAVE_LIBGD15 1" >>confdefs.h
41135:
41136:
41137: $as_echo "#define HAVE_LIBGD20 1" >>confdefs.h
41138:
41139:
41140: $as_echo "#define HAVE_LIBGD204 1" >>confdefs.h
41141:
41142:
41143: $as_echo "#define HAVE_GD_IMAGESETTILE 1" >>confdefs.h
41144:
41145:
41146: $as_echo "#define HAVE_GD_IMAGESETBRUSH 1" >>confdefs.h
41147:
41148:
41149: $as_echo "#define HAVE_GDIMAGECOLORRESOLVE 1" >>confdefs.h
41150:
41151:
41152: $as_echo "#define HAVE_COLORCLOSESTHWB 1" >>confdefs.h
41153:
41154:
41155: $as_echo "#define HAVE_GD_WBMP 1" >>confdefs.h
41156:
41157:
41158: $as_echo "#define HAVE_GD_GD2 1" >>confdefs.h
41159:
41160:
41161: $as_echo "#define HAVE_GD_PNG 1" >>confdefs.h
41162:
41163:
41164: $as_echo "#define HAVE_GD_XBM 1" >>confdefs.h
41165:
41166:
41167: $as_echo "#define HAVE_GD_BUNDLED 1" >>confdefs.h
41168:
41169:
41170: $as_echo "#define HAVE_GD_GIF_READ 1" >>confdefs.h
41171:
41172:
41173: $as_echo "#define HAVE_GD_GIF_CREATE 1" >>confdefs.h
41174:
41175:
41176: $as_echo "#define HAVE_GD_IMAGEELLIPSE 1" >>confdefs.h
41177:
41178:
41179: $as_echo "#define HAVE_GD_FONTCACHESHUTDOWN 1" >>confdefs.h
41180:
41181:
41182: $as_echo "#define HAVE_GD_FONTMUTEX 1" >>confdefs.h
41183:
41184:
41185: $as_echo "#define HAVE_GD_DYNAMIC_CTX_EX 1" >>confdefs.h
41186:
41187:
41188: $as_echo "#define HAVE_GD_GIF_CTX 1" >>confdefs.h
41189:
41190:
41191: GDLIB_CFLAGS="-DHAVE_LIBPNG"
41192:
41193:
41194: if test -n "$GD_JPEG_DIR"; then
41195:
41196: $as_echo "#define HAVE_GD_JPG 1" >>confdefs.h
41197:
41198: GDLIB_CFLAGS="$GDLIB_CFLAGS -DHAVE_LIBJPEG"
41199: fi
41200:
41201: if test -n "$GD_XPM_DIR"; then
41202:
41203: $as_echo "#define HAVE_GD_XPM 1" >>confdefs.h
41204:
41205: GDLIB_CFLAGS="$GDLIB_CFLAGS -DHAVE_XPM"
41206: fi
41207:
41208: if test -n "$FREETYPE2_DIR"; then
41209:
41210: $as_echo "#define HAVE_GD_STRINGFT 1" >>confdefs.h
41211:
41212:
41213: $as_echo "#define HAVE_GD_STRINGFTEX 1" >>confdefs.h
41214:
41215:
41216: $as_echo "#define ENABLE_GD_TTF 1" >>confdefs.h
41217:
41218: GDLIB_CFLAGS="$GDLIB_CFLAGS -DHAVE_LIBFREETYPE -DENABLE_GD_TTF"
41219: fi
41220:
41221: if test -n "$USE_GD_JIS_CONV"; then
41222:
41223: $as_echo "#define USE_GD_JISX0208 1" >>confdefs.h
41224:
41225: GDLIB_CFLAGS="$GDLIB_CFLAGS -DJISX0208"
41226: fi
41227:
41228: else
41229:
41230: if test "$PHP_GD" != "no"; then
41231: GD_MODULE_TYPE=external
41232: extra_sources="gdcache.c libgd/gd_compat.c libgd/gd_filter.c libgd/gd_pixelate.c libgd/gd_arc.c \
41233: libgd/gd_rotate.c libgd/gd_color.c"
41234:
41235:
41236: if test "$PHP_ZLIB_DIR" != "no" && test "$PHP_ZLIB_DIR" != "yes"; then
41237: if test -f "$PHP_ZLIB_DIR/include/zlib/zlib.h"; then
41238: PHP_ZLIB_DIR="$PHP_ZLIB_DIR"
41239: PHP_ZLIB_INCDIR="$PHP_ZLIB_DIR/include/zlib"
41240: elif test -f "$PHP_ZLIB_DIR/include/zlib.h"; then
41241: PHP_ZLIB_DIR="$PHP_ZLIB_DIR"
41242: PHP_ZLIB_INCDIR="$PHP_ZLIB_DIR/include"
41243: else
41244: as_fn_error $? "Can't find zlib headers under \"$PHP_ZLIB_DIR\"" "$LINENO" 5
41245: fi
41246: else
41247: for i in /usr/local /usr; do
41248: if test -f "$i/include/zlib/zlib.h"; then
41249: PHP_ZLIB_DIR="$i"
41250: PHP_ZLIB_INCDIR="$i/include/zlib"
41251: elif test -f "$i/include/zlib.h"; then
41252: PHP_ZLIB_DIR="$i"
41253: PHP_ZLIB_INCDIR="$i/include"
41254: fi
41255: done
41256: fi
41257:
41258:
41259: if test "$PHP_GD_NATIVE_TTF" = "yes"; then
41260:
41261: $as_echo "#define USE_GD_IMGSTRTTF 1" >>confdefs.h
41262:
41263: fi
41264:
41265:
41266: if test "$PHP_JPEG_DIR" != "no"; then
41267:
41268: for i in $PHP_JPEG_DIR /usr/local /usr; do
41269: test -f $i/include/jpeglib.h && GD_JPEG_DIR=$i && break
41270: done
41271:
41272: if test -z "$GD_JPEG_DIR"; then
41273: as_fn_error $? "jpeglib.h not found." "$LINENO" 5
41274: fi
41275:
41276:
41277: save_old_LDFLAGS=$LDFLAGS
41278: ac_stuff="
41279: -L$GD_JPEG_DIR/$PHP_LIBDIR
41280: "
41281:
41282: save_ext_shared=$ext_shared
41283: ext_shared=yes
41284:
41285: for ac_i in $ac_stuff; do
41286: case $ac_i in
41287: -pthread)
41288: if test "$ext_shared" = "yes"; then
41289: LDFLAGS="$LDFLAGS -pthread"
41290: else
41291:
41292:
41293: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
41294:
41295: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
41296: if test -n "$unique" && test "`eval $cmd`" = "" ; then
41297: eval "EXTRA_LDFLAGS$unique=set"
41298: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
41299: fi
41300:
41301: fi
41302: ;;
41303: -l*)
41304: ac_ii=`echo $ac_i|cut -c 3-`
41305:
41306:
41307: case $ac_ii in
41308: c|c_r|pthread*) ;;
41309: *)
41310: if test "$ext_shared" = "yes"; then
41311: LDFLAGS="$LDFLAGS -l$ac_ii"
41312: else
41313:
41314:
41315: case $ac_ii in
41316: c|c_r|pthread*) ;;
41317: *)
41318: LIBS="$LIBS -l$ac_ii"
41319: ;;
41320: esac
41321:
41322:
41323: fi
41324: ;;
41325: esac
41326:
41327:
41328: ;;
41329: -L*)
41330: ac_ii=`echo $ac_i|cut -c 3-`
41331:
41332: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
41333:
41334: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
41335: ai_p=$ac_ii
41336: else
41337:
41338: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
41339:
41340: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
41341: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
41342: fi
41343:
41344:
41345: if test "$ext_shared" = "yes"; then
41346: LDFLAGS="-L$ai_p $LDFLAGS"
41347: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
41348: else
41349:
41350:
41351:
41352: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
41353:
41354: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
41355: if test -n "$unique" && test "`eval $cmd`" = "" ; then
41356: eval "LIBPATH$unique=set"
41357:
41358: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
41359: LDFLAGS="$LDFLAGS -L$ai_p"
41360: PHP_RPATHS="$PHP_RPATHS $ai_p"
41361:
41362: fi
41363:
41364:
41365: fi
41366:
41367: fi
41368:
41369: ;;
41370: esac
41371: done
41372:
41373: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
41374: $as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
41375: if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
41376: $as_echo_n "(cached) " >&6
41377: else
41378: ac_check_lib_save_LIBS=$LIBS
41379: LIBS="-ljpeg $LIBS"
41380: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41381: /* end confdefs.h. */
41382:
41383: /* Override any GCC internal prototype to avoid an error.
41384: Use char because int might match the return type of a GCC
41385: builtin and then its argument prototype would still apply. */
41386: #ifdef __cplusplus
41387: extern "C"
41388: #endif
41389: char jpeg_read_header ();
41390: int
41391: main ()
41392: {
41393: return jpeg_read_header ();
41394: ;
41395: return 0;
41396: }
41397: _ACEOF
41398: if ac_fn_c_try_link "$LINENO"; then :
41399: ac_cv_lib_jpeg_jpeg_read_header=yes
41400: else
41401: ac_cv_lib_jpeg_jpeg_read_header=no
41402: fi
41403: rm -f core conftest.err conftest.$ac_objext \
41404: conftest$ac_exeext conftest.$ac_ext
41405: LIBS=$ac_check_lib_save_LIBS
41406: fi
41407: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
41408: $as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
41409: if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
41410:
41411: LDFLAGS=$save_old_LDFLAGS
41412: ext_shared=$save_ext_shared
41413:
41414:
41415: if test "$GD_JPEG_DIR/include" != "/usr/include"; then
41416:
41417: if test -z "$GD_JPEG_DIR/include" || echo "$GD_JPEG_DIR/include" | grep '^/' >/dev/null ; then
41418: ai_p=$GD_JPEG_DIR/include
41419: else
41420:
41421: ep_dir="`echo $GD_JPEG_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
41422:
41423: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
41424: ai_p="$ep_realdir/`basename \"$GD_JPEG_DIR/include\"`"
41425: fi
41426:
41427:
41428:
41429: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
41430:
41431: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
41432: if test -n "$unique" && test "`eval $cmd`" = "" ; then
41433: eval "INCLUDEPATH$unique=set"
41434:
41435: if test ""; then
41436: INCLUDES="-I$ai_p $INCLUDES"
41437: else
41438: INCLUDES="$INCLUDES -I$ai_p"
41439: fi
41440:
41441: fi
41442:
41443: fi
41444:
41445:
41446:
41447: if test "$ext_shared" = "yes"; then
41448: GD_SHARED_LIBADD="-ljpeg $GD_SHARED_LIBADD"
41449: if test -n "$GD_JPEG_DIR/$PHP_LIBDIR"; then
41450:
41451: if test "$GD_JPEG_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_JPEG_DIR/$PHP_LIBDIR" != "/usr/lib"; then
41452:
41453: if test -z "$GD_JPEG_DIR/$PHP_LIBDIR" || echo "$GD_JPEG_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
41454: ai_p=$GD_JPEG_DIR/$PHP_LIBDIR
41455: else
41456:
41457: ep_dir="`echo $GD_JPEG_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
41458:
41459: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
41460: ai_p="$ep_realdir/`basename \"$GD_JPEG_DIR/$PHP_LIBDIR\"`"
41461: fi
41462:
41463:
41464: if test "$ext_shared" = "yes"; then
41465: GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
41466: test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
41467: else
41468:
41469:
41470:
41471: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
41472:
41473: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
41474: if test -n "$unique" && test "`eval $cmd`" = "" ; then
41475: eval "LIBPATH$unique=set"
41476:
41477: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
41478: LDFLAGS="$LDFLAGS -L$ai_p"
41479: PHP_RPATHS="$PHP_RPATHS $ai_p"
41480:
41481: fi
41482:
41483:
41484: fi
41485:
41486: fi
41487:
41488: fi
41489: else
41490:
41491:
41492: if test -n "$GD_JPEG_DIR/$PHP_LIBDIR"; then
41493:
41494: if test "$GD_JPEG_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_JPEG_DIR/$PHP_LIBDIR" != "/usr/lib"; then
41495:
41496: if test -z "$GD_JPEG_DIR/$PHP_LIBDIR" || echo "$GD_JPEG_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
41497: ai_p=$GD_JPEG_DIR/$PHP_LIBDIR
41498: else
41499:
41500: ep_dir="`echo $GD_JPEG_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
41501:
41502: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
41503: ai_p="$ep_realdir/`basename \"$GD_JPEG_DIR/$PHP_LIBDIR\"`"
41504: fi
41505:
41506:
41507:
41508:
41509:
41510: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
41511:
41512: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
41513: if test -n "$unique" && test "`eval $cmd`" = "" ; then
41514: eval "LIBPATH$unique=set"
41515:
41516: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
41517: LDFLAGS="$LDFLAGS -L$ai_p"
41518: PHP_RPATHS="$PHP_RPATHS $ai_p"
41519:
41520: fi
41521:
41522:
41523:
41524: fi
41525:
41526: fi
41527:
41528:
41529: case jpeg in
41530: c|c_r|pthread*) ;;
41531: *)
41532: LIBS="-ljpeg $LIBS"
41533: ;;
41534: esac
41535:
41536:
41537:
41538:
41539: fi
41540:
41541:
41542:
41543:
41544: else
41545:
41546: LDFLAGS=$save_old_LDFLAGS
41547: ext_shared=$save_ext_shared
41548: unset ac_cv_lib_jpeg_jpeg_read_header
41549:
41550: as_fn_error $? "Problem with libjpeg.(a|so). Please check config.log for more information." "$LINENO" 5
41551:
41552:
41553: fi
41554:
41555: else
41556: { $as_echo "$as_me:${as_lineno-$LINENO}: result: If configure fails try --with-jpeg-dir=<DIR>" >&5
41557: $as_echo "If configure fails try --with-jpeg-dir=<DIR>" >&6; }
41558: fi
41559:
41560:
41561: if test "$PHP_PNG_DIR" != "no"; then
41562:
41563: for i in $PHP_PNG_DIR /usr/local /usr; do
41564: test -f $i/include/png.h && GD_PNG_DIR=$i && break
41565: done
41566:
41567: if test -z "$GD_PNG_DIR"; then
41568: as_fn_error $? "png.h not found." "$LINENO" 5
41569: fi
41570:
41571: if test "$PHP_ZLIB_DIR" = "no"; then
41572: as_fn_error $? "PNG support requires ZLIB. Use --with-zlib-dir=<DIR>" "$LINENO" 5
41573: fi
41574:
41575:
41576: save_old_LDFLAGS=$LDFLAGS
41577: ac_stuff="
41578: -L$PHP_ZLIB_DIR/$PHP_LIBDIR -lz -L$GD_PNG_DIR/$PHP_LIBDIR
41579: "
41580:
41581: save_ext_shared=$ext_shared
41582: ext_shared=yes
41583:
41584: for ac_i in $ac_stuff; do
41585: case $ac_i in
41586: -pthread)
41587: if test "$ext_shared" = "yes"; then
41588: LDFLAGS="$LDFLAGS -pthread"
41589: else
41590:
41591:
41592: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
41593:
41594: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
41595: if test -n "$unique" && test "`eval $cmd`" = "" ; then
41596: eval "EXTRA_LDFLAGS$unique=set"
41597: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
41598: fi
41599:
41600: fi
41601: ;;
41602: -l*)
41603: ac_ii=`echo $ac_i|cut -c 3-`
41604:
41605:
41606: case $ac_ii in
41607: c|c_r|pthread*) ;;
41608: *)
41609: if test "$ext_shared" = "yes"; then
41610: LDFLAGS="$LDFLAGS -l$ac_ii"
41611: else
41612:
41613:
41614: case $ac_ii in
41615: c|c_r|pthread*) ;;
41616: *)
41617: LIBS="$LIBS -l$ac_ii"
41618: ;;
41619: esac
41620:
41621:
41622: fi
41623: ;;
41624: esac
41625:
41626:
41627: ;;
41628: -L*)
41629: ac_ii=`echo $ac_i|cut -c 3-`
41630:
41631: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
41632:
41633: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
41634: ai_p=$ac_ii
41635: else
41636:
41637: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
41638:
41639: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
41640: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
41641: fi
41642:
41643:
41644: if test "$ext_shared" = "yes"; then
41645: LDFLAGS="-L$ai_p $LDFLAGS"
41646: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
41647: else
41648:
41649:
41650:
41651: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
41652:
41653: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
41654: if test -n "$unique" && test "`eval $cmd`" = "" ; then
41655: eval "LIBPATH$unique=set"
41656:
41657: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
41658: LDFLAGS="$LDFLAGS -L$ai_p"
41659: PHP_RPATHS="$PHP_RPATHS $ai_p"
41660:
41661: fi
41662:
41663:
41664: fi
41665:
41666: fi
41667:
41668: ;;
41669: esac
41670: done
41671:
41672: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_write_image in -lpng" >&5
41673: $as_echo_n "checking for png_write_image in -lpng... " >&6; }
41674: if ${ac_cv_lib_png_png_write_image+:} false; then :
41675: $as_echo_n "(cached) " >&6
41676: else
41677: ac_check_lib_save_LIBS=$LIBS
41678: LIBS="-lpng $LIBS"
41679: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41680: /* end confdefs.h. */
41681:
41682: /* Override any GCC internal prototype to avoid an error.
41683: Use char because int might match the return type of a GCC
41684: builtin and then its argument prototype would still apply. */
41685: #ifdef __cplusplus
41686: extern "C"
41687: #endif
41688: char png_write_image ();
41689: int
41690: main ()
41691: {
41692: return png_write_image ();
41693: ;
41694: return 0;
41695: }
41696: _ACEOF
41697: if ac_fn_c_try_link "$LINENO"; then :
41698: ac_cv_lib_png_png_write_image=yes
41699: else
41700: ac_cv_lib_png_png_write_image=no
41701: fi
41702: rm -f core conftest.err conftest.$ac_objext \
41703: conftest$ac_exeext conftest.$ac_ext
41704: LIBS=$ac_check_lib_save_LIBS
41705: fi
41706: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_write_image" >&5
41707: $as_echo "$ac_cv_lib_png_png_write_image" >&6; }
41708: if test "x$ac_cv_lib_png_png_write_image" = xyes; then :
41709:
41710: LDFLAGS=$save_old_LDFLAGS
41711: ext_shared=$save_ext_shared
41712:
41713:
41714: if test "$GD_PNG_DIR/include" != "/usr/include"; then
41715:
41716: if test -z "$GD_PNG_DIR/include" || echo "$GD_PNG_DIR/include" | grep '^/' >/dev/null ; then
41717: ai_p=$GD_PNG_DIR/include
41718: else
41719:
41720: ep_dir="`echo $GD_PNG_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
41721:
41722: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
41723: ai_p="$ep_realdir/`basename \"$GD_PNG_DIR/include\"`"
41724: fi
41725:
41726:
41727:
41728: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
41729:
41730: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
41731: if test -n "$unique" && test "`eval $cmd`" = "" ; then
41732: eval "INCLUDEPATH$unique=set"
41733:
41734: if test ""; then
41735: INCLUDES="-I$ai_p $INCLUDES"
41736: else
41737: INCLUDES="$INCLUDES -I$ai_p"
41738: fi
41739:
41740: fi
41741:
41742: fi
41743:
41744:
41745:
41746: if test "$ext_shared" = "yes"; then
41747: GD_SHARED_LIBADD="-lz $GD_SHARED_LIBADD"
41748: if test -n "$PHP_ZLIB_DIR/$PHP_LIBDIR"; then
41749:
41750: if test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/lib"; then
41751:
41752: if test -z "$PHP_ZLIB_DIR/$PHP_LIBDIR" || echo "$PHP_ZLIB_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
41753: ai_p=$PHP_ZLIB_DIR/$PHP_LIBDIR
41754: else
41755:
41756: ep_dir="`echo $PHP_ZLIB_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
41757:
41758: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
41759: ai_p="$ep_realdir/`basename \"$PHP_ZLIB_DIR/$PHP_LIBDIR\"`"
41760: fi
41761:
41762:
41763: if test "$ext_shared" = "yes"; then
41764: GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
41765: test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
41766: else
41767:
41768:
41769:
41770: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
41771:
41772: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
41773: if test -n "$unique" && test "`eval $cmd`" = "" ; then
41774: eval "LIBPATH$unique=set"
41775:
41776: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
41777: LDFLAGS="$LDFLAGS -L$ai_p"
41778: PHP_RPATHS="$PHP_RPATHS $ai_p"
41779:
41780: fi
41781:
41782:
41783: fi
41784:
41785: fi
41786:
41787: fi
41788: else
41789:
41790:
41791: if test -n "$PHP_ZLIB_DIR/$PHP_LIBDIR"; then
41792:
41793: if test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/lib"; then
41794:
41795: if test -z "$PHP_ZLIB_DIR/$PHP_LIBDIR" || echo "$PHP_ZLIB_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
41796: ai_p=$PHP_ZLIB_DIR/$PHP_LIBDIR
41797: else
41798:
41799: ep_dir="`echo $PHP_ZLIB_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
41800:
41801: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
41802: ai_p="$ep_realdir/`basename \"$PHP_ZLIB_DIR/$PHP_LIBDIR\"`"
41803: fi
41804:
41805:
41806:
41807:
41808:
41809: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
41810:
41811: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
41812: if test -n "$unique" && test "`eval $cmd`" = "" ; then
41813: eval "LIBPATH$unique=set"
41814:
41815: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
41816: LDFLAGS="$LDFLAGS -L$ai_p"
41817: PHP_RPATHS="$PHP_RPATHS $ai_p"
41818:
41819: fi
41820:
41821:
41822:
41823: fi
41824:
41825: fi
41826:
41827:
41828: case z in
41829: c|c_r|pthread*) ;;
41830: *)
41831: LIBS="-lz $LIBS"
41832: ;;
41833: esac
41834:
41835:
41836:
41837:
41838: fi
41839:
41840:
41841:
41842:
41843: if test "$ext_shared" = "yes"; then
41844: GD_SHARED_LIBADD="-lpng $GD_SHARED_LIBADD"
41845: if test -n "$GD_PNG_DIR/$PHP_LIBDIR"; then
41846:
41847: if test "$GD_PNG_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_PNG_DIR/$PHP_LIBDIR" != "/usr/lib"; then
41848:
41849: if test -z "$GD_PNG_DIR/$PHP_LIBDIR" || echo "$GD_PNG_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
41850: ai_p=$GD_PNG_DIR/$PHP_LIBDIR
41851: else
41852:
41853: ep_dir="`echo $GD_PNG_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
41854:
41855: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
41856: ai_p="$ep_realdir/`basename \"$GD_PNG_DIR/$PHP_LIBDIR\"`"
41857: fi
41858:
41859:
41860: if test "$ext_shared" = "yes"; then
41861: GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
41862: test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
41863: else
41864:
41865:
41866:
41867: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
41868:
41869: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
41870: if test -n "$unique" && test "`eval $cmd`" = "" ; then
41871: eval "LIBPATH$unique=set"
41872:
41873: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
41874: LDFLAGS="$LDFLAGS -L$ai_p"
41875: PHP_RPATHS="$PHP_RPATHS $ai_p"
41876:
41877: fi
41878:
41879:
41880: fi
41881:
41882: fi
41883:
41884: fi
41885: else
41886:
41887:
41888: if test -n "$GD_PNG_DIR/$PHP_LIBDIR"; then
41889:
41890: if test "$GD_PNG_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_PNG_DIR/$PHP_LIBDIR" != "/usr/lib"; then
41891:
41892: if test -z "$GD_PNG_DIR/$PHP_LIBDIR" || echo "$GD_PNG_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
41893: ai_p=$GD_PNG_DIR/$PHP_LIBDIR
41894: else
41895:
41896: ep_dir="`echo $GD_PNG_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
41897:
41898: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
41899: ai_p="$ep_realdir/`basename \"$GD_PNG_DIR/$PHP_LIBDIR\"`"
41900: fi
41901:
41902:
41903:
41904:
41905:
41906: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
41907:
41908: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
41909: if test -n "$unique" && test "`eval $cmd`" = "" ; then
41910: eval "LIBPATH$unique=set"
41911:
41912: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
41913: LDFLAGS="$LDFLAGS -L$ai_p"
41914: PHP_RPATHS="$PHP_RPATHS $ai_p"
41915:
41916: fi
41917:
41918:
41919:
41920: fi
41921:
41922: fi
41923:
41924:
41925: case png in
41926: c|c_r|pthread*) ;;
41927: *)
41928: LIBS="-lpng $LIBS"
41929: ;;
41930: esac
41931:
41932:
41933:
41934:
41935: fi
41936:
41937:
41938:
41939:
41940: else
41941:
41942: LDFLAGS=$save_old_LDFLAGS
41943: ext_shared=$save_ext_shared
41944: unset ac_cv_lib_png_png_write_image
41945:
41946: as_fn_error $? "Problem with libpng.(a|so) or libz.(a|so). Please check config.log for more information." "$LINENO" 5
41947:
41948:
41949: fi
41950:
41951:
41952: else
41953: { $as_echo "$as_me:${as_lineno-$LINENO}: result: If configure fails try --with-png-dir=<DIR> and --with-zlib-dir=<DIR>" >&5
41954: $as_echo "If configure fails try --with-png-dir=<DIR> and --with-zlib-dir=<DIR>" >&6; }
41955: fi
41956:
41957:
41958: if test "$PHP_XPM_DIR" != "no"; then
41959:
41960: for i in $PHP_XPM_DIR /usr/local /usr/X11R6 /usr; do
41961: test -f $i/$PHP_LIBDIR/libXpm.$SHLIB_SUFFIX_NAME || test -f $i/$PHP_LIBDIR/libXpm.a && GD_XPM_DIR=$i && break
41962: done
41963:
41964: if test -z "$GD_XPM_DIR"; then
41965: as_fn_error $? "libXpm.(a|so) not found." "$LINENO" 5
41966: fi
41967:
41968: for i in include include/X11; do
41969: test -f $GD_XPM_DIR/$i/xpm.h && GD_XPM_INC=$GD_XPM_DIR/include
41970: done
41971:
41972: if test -z "$GD_XPM_INC"; then
41973: as_fn_error $? "xpm.h not found." "$LINENO" 5
41974: fi
41975:
41976:
41977: save_old_LDFLAGS=$LDFLAGS
41978: ac_stuff="
41979: -L$GD_XPM_DIR/$PHP_LIBDIR -lX11
41980: "
41981:
41982: save_ext_shared=$ext_shared
41983: ext_shared=yes
41984:
41985: for ac_i in $ac_stuff; do
41986: case $ac_i in
41987: -pthread)
41988: if test "$ext_shared" = "yes"; then
41989: LDFLAGS="$LDFLAGS -pthread"
41990: else
41991:
41992:
41993: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
41994:
41995: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
41996: if test -n "$unique" && test "`eval $cmd`" = "" ; then
41997: eval "EXTRA_LDFLAGS$unique=set"
41998: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
41999: fi
42000:
42001: fi
42002: ;;
42003: -l*)
42004: ac_ii=`echo $ac_i|cut -c 3-`
42005:
42006:
42007: case $ac_ii in
42008: c|c_r|pthread*) ;;
42009: *)
42010: if test "$ext_shared" = "yes"; then
42011: LDFLAGS="$LDFLAGS -l$ac_ii"
42012: else
42013:
42014:
42015: case $ac_ii in
42016: c|c_r|pthread*) ;;
42017: *)
42018: LIBS="$LIBS -l$ac_ii"
42019: ;;
42020: esac
42021:
42022:
42023: fi
42024: ;;
42025: esac
42026:
42027:
42028: ;;
42029: -L*)
42030: ac_ii=`echo $ac_i|cut -c 3-`
42031:
42032: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
42033:
42034: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
42035: ai_p=$ac_ii
42036: else
42037:
42038: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
42039:
42040: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
42041: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
42042: fi
42043:
42044:
42045: if test "$ext_shared" = "yes"; then
42046: LDFLAGS="-L$ai_p $LDFLAGS"
42047: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
42048: else
42049:
42050:
42051:
42052: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
42053:
42054: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
42055: if test -n "$unique" && test "`eval $cmd`" = "" ; then
42056: eval "LIBPATH$unique=set"
42057:
42058: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
42059: LDFLAGS="$LDFLAGS -L$ai_p"
42060: PHP_RPATHS="$PHP_RPATHS $ai_p"
42061:
42062: fi
42063:
42064:
42065: fi
42066:
42067: fi
42068:
42069: ;;
42070: esac
42071: done
42072:
42073: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmFreeXpmImage in -lXpm" >&5
42074: $as_echo_n "checking for XpmFreeXpmImage in -lXpm... " >&6; }
42075: if ${ac_cv_lib_Xpm_XpmFreeXpmImage+:} false; then :
42076: $as_echo_n "(cached) " >&6
42077: else
42078: ac_check_lib_save_LIBS=$LIBS
42079: LIBS="-lXpm $LIBS"
42080: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42081: /* end confdefs.h. */
42082:
42083: /* Override any GCC internal prototype to avoid an error.
42084: Use char because int might match the return type of a GCC
42085: builtin and then its argument prototype would still apply. */
42086: #ifdef __cplusplus
42087: extern "C"
42088: #endif
42089: char XpmFreeXpmImage ();
42090: int
42091: main ()
42092: {
42093: return XpmFreeXpmImage ();
42094: ;
42095: return 0;
42096: }
42097: _ACEOF
42098: if ac_fn_c_try_link "$LINENO"; then :
42099: ac_cv_lib_Xpm_XpmFreeXpmImage=yes
42100: else
42101: ac_cv_lib_Xpm_XpmFreeXpmImage=no
42102: fi
42103: rm -f core conftest.err conftest.$ac_objext \
42104: conftest$ac_exeext conftest.$ac_ext
42105: LIBS=$ac_check_lib_save_LIBS
42106: fi
42107: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmFreeXpmImage" >&5
42108: $as_echo "$ac_cv_lib_Xpm_XpmFreeXpmImage" >&6; }
42109: if test "x$ac_cv_lib_Xpm_XpmFreeXpmImage" = xyes; then :
42110:
42111: LDFLAGS=$save_old_LDFLAGS
42112: ext_shared=$save_ext_shared
42113:
42114:
42115: if test "$GD_XPM_INC" != "/usr/include"; then
42116:
42117: if test -z "$GD_XPM_INC" || echo "$GD_XPM_INC" | grep '^/' >/dev/null ; then
42118: ai_p=$GD_XPM_INC
42119: else
42120:
42121: ep_dir="`echo $GD_XPM_INC|$SED 's%/*[^/][^/]*/*$%%'`"
42122:
42123: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
42124: ai_p="$ep_realdir/`basename \"$GD_XPM_INC\"`"
42125: fi
42126:
42127:
42128:
42129: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
42130:
42131: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
42132: if test -n "$unique" && test "`eval $cmd`" = "" ; then
42133: eval "INCLUDEPATH$unique=set"
42134:
42135: if test ""; then
42136: INCLUDES="-I$ai_p $INCLUDES"
42137: else
42138: INCLUDES="$INCLUDES -I$ai_p"
42139: fi
42140:
42141: fi
42142:
42143: fi
42144:
42145:
42146:
42147: if test "$ext_shared" = "yes"; then
42148: GD_SHARED_LIBADD="-lXpm $GD_SHARED_LIBADD"
42149: if test -n "$GD_XPM_DIR/$PHP_LIBDIR"; then
42150:
42151: if test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/lib"; then
42152:
42153: if test -z "$GD_XPM_DIR/$PHP_LIBDIR" || echo "$GD_XPM_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
42154: ai_p=$GD_XPM_DIR/$PHP_LIBDIR
42155: else
42156:
42157: ep_dir="`echo $GD_XPM_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
42158:
42159: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
42160: ai_p="$ep_realdir/`basename \"$GD_XPM_DIR/$PHP_LIBDIR\"`"
42161: fi
42162:
42163:
42164: if test "$ext_shared" = "yes"; then
42165: GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
42166: test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
42167: else
42168:
42169:
42170:
42171: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
42172:
42173: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
42174: if test -n "$unique" && test "`eval $cmd`" = "" ; then
42175: eval "LIBPATH$unique=set"
42176:
42177: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
42178: LDFLAGS="$LDFLAGS -L$ai_p"
42179: PHP_RPATHS="$PHP_RPATHS $ai_p"
42180:
42181: fi
42182:
42183:
42184: fi
42185:
42186: fi
42187:
42188: fi
42189: else
42190:
42191:
42192: if test -n "$GD_XPM_DIR/$PHP_LIBDIR"; then
42193:
42194: if test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/lib"; then
42195:
42196: if test -z "$GD_XPM_DIR/$PHP_LIBDIR" || echo "$GD_XPM_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
42197: ai_p=$GD_XPM_DIR/$PHP_LIBDIR
42198: else
42199:
42200: ep_dir="`echo $GD_XPM_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
42201:
42202: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
42203: ai_p="$ep_realdir/`basename \"$GD_XPM_DIR/$PHP_LIBDIR\"`"
42204: fi
42205:
42206:
42207:
42208:
42209:
42210: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
42211:
42212: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
42213: if test -n "$unique" && test "`eval $cmd`" = "" ; then
42214: eval "LIBPATH$unique=set"
42215:
42216: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
42217: LDFLAGS="$LDFLAGS -L$ai_p"
42218: PHP_RPATHS="$PHP_RPATHS $ai_p"
42219:
42220: fi
42221:
42222:
42223:
42224: fi
42225:
42226: fi
42227:
42228:
42229: case Xpm in
42230: c|c_r|pthread*) ;;
42231: *)
42232: LIBS="-lXpm $LIBS"
42233: ;;
42234: esac
42235:
42236:
42237:
42238:
42239: fi
42240:
42241:
42242:
42243:
42244: if test "$ext_shared" = "yes"; then
42245: GD_SHARED_LIBADD="-lX11 $GD_SHARED_LIBADD"
42246: if test -n "$GD_XPM_DIR/$PHP_LIBDIR"; then
42247:
42248: if test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/lib"; then
42249:
42250: if test -z "$GD_XPM_DIR/$PHP_LIBDIR" || echo "$GD_XPM_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
42251: ai_p=$GD_XPM_DIR/$PHP_LIBDIR
42252: else
42253:
42254: ep_dir="`echo $GD_XPM_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
42255:
42256: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
42257: ai_p="$ep_realdir/`basename \"$GD_XPM_DIR/$PHP_LIBDIR\"`"
42258: fi
42259:
42260:
42261: if test "$ext_shared" = "yes"; then
42262: GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
42263: test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
42264: else
42265:
42266:
42267:
42268: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
42269:
42270: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
42271: if test -n "$unique" && test "`eval $cmd`" = "" ; then
42272: eval "LIBPATH$unique=set"
42273:
42274: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
42275: LDFLAGS="$LDFLAGS -L$ai_p"
42276: PHP_RPATHS="$PHP_RPATHS $ai_p"
42277:
42278: fi
42279:
42280:
42281: fi
42282:
42283: fi
42284:
42285: fi
42286: else
42287:
42288:
42289: if test -n "$GD_XPM_DIR/$PHP_LIBDIR"; then
42290:
42291: if test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/lib"; then
42292:
42293: if test -z "$GD_XPM_DIR/$PHP_LIBDIR" || echo "$GD_XPM_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
42294: ai_p=$GD_XPM_DIR/$PHP_LIBDIR
42295: else
42296:
42297: ep_dir="`echo $GD_XPM_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
42298:
42299: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
42300: ai_p="$ep_realdir/`basename \"$GD_XPM_DIR/$PHP_LIBDIR\"`"
42301: fi
42302:
42303:
42304:
42305:
42306:
42307: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
42308:
42309: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
42310: if test -n "$unique" && test "`eval $cmd`" = "" ; then
42311: eval "LIBPATH$unique=set"
42312:
42313: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
42314: LDFLAGS="$LDFLAGS -L$ai_p"
42315: PHP_RPATHS="$PHP_RPATHS $ai_p"
42316:
42317: fi
42318:
42319:
42320:
42321: fi
42322:
42323: fi
42324:
42325:
42326: case X11 in
42327: c|c_r|pthread*) ;;
42328: *)
42329: LIBS="-lX11 $LIBS"
42330: ;;
42331: esac
42332:
42333:
42334:
42335:
42336: fi
42337:
42338:
42339:
42340:
42341: else
42342:
42343: LDFLAGS=$save_old_LDFLAGS
42344: ext_shared=$save_ext_shared
42345: unset ac_cv_lib_Xpm_XpmFreeXpmImage
42346:
42347: as_fn_error $? "Problem with libXpm.(a|so) or libX11.(a|so). Please check config.log for more information." "$LINENO" 5
42348:
42349:
42350: fi
42351:
42352: else
42353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: If configure fails try --with-xpm-dir=<DIR>" >&5
42354: $as_echo "If configure fails try --with-xpm-dir=<DIR>" >&6; }
42355: fi
42356:
42357:
42358: if test "$PHP_FREETYPE_DIR" != "no"; then
42359:
42360: for i in $PHP_FREETYPE_DIR /usr/local /usr; do
42361: if test -f "$i/include/freetype2/freetype/freetype.h"; then
42362: FREETYPE2_DIR=$i
42363: FREETYPE2_INC_DIR=$i/include/freetype2
42364: break
42365: fi
42366: done
42367:
42368: if test -z "$FREETYPE2_DIR"; then
42369: as_fn_error $? "freetype.h not found." "$LINENO" 5
42370: fi
42371:
42372:
42373: save_old_LDFLAGS=$LDFLAGS
42374: ac_stuff="
42375: -L$FREETYPE2_DIR/$PHP_LIBDIR
42376: "
42377:
42378: save_ext_shared=$ext_shared
42379: ext_shared=yes
42380:
42381: for ac_i in $ac_stuff; do
42382: case $ac_i in
42383: -pthread)
42384: if test "$ext_shared" = "yes"; then
42385: LDFLAGS="$LDFLAGS -pthread"
42386: else
42387:
42388:
42389: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
42390:
42391: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
42392: if test -n "$unique" && test "`eval $cmd`" = "" ; then
42393: eval "EXTRA_LDFLAGS$unique=set"
42394: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
42395: fi
42396:
42397: fi
42398: ;;
42399: -l*)
42400: ac_ii=`echo $ac_i|cut -c 3-`
42401:
42402:
42403: case $ac_ii in
42404: c|c_r|pthread*) ;;
42405: *)
42406: if test "$ext_shared" = "yes"; then
42407: LDFLAGS="$LDFLAGS -l$ac_ii"
42408: else
42409:
42410:
42411: case $ac_ii in
42412: c|c_r|pthread*) ;;
42413: *)
42414: LIBS="$LIBS -l$ac_ii"
42415: ;;
42416: esac
42417:
42418:
42419: fi
42420: ;;
42421: esac
42422:
42423:
42424: ;;
42425: -L*)
42426: ac_ii=`echo $ac_i|cut -c 3-`
42427:
42428: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
42429:
42430: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
42431: ai_p=$ac_ii
42432: else
42433:
42434: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
42435:
42436: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
42437: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
42438: fi
42439:
42440:
42441: if test "$ext_shared" = "yes"; then
42442: LDFLAGS="-L$ai_p $LDFLAGS"
42443: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
42444: else
42445:
42446:
42447:
42448: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
42449:
42450: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
42451: if test -n "$unique" && test "`eval $cmd`" = "" ; then
42452: eval "LIBPATH$unique=set"
42453:
42454: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
42455: LDFLAGS="$LDFLAGS -L$ai_p"
42456: PHP_RPATHS="$PHP_RPATHS $ai_p"
42457:
42458: fi
42459:
42460:
42461: fi
42462:
42463: fi
42464:
42465: ;;
42466: esac
42467: done
42468:
42469: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_New_Face in -lfreetype" >&5
42470: $as_echo_n "checking for FT_New_Face in -lfreetype... " >&6; }
42471: if ${ac_cv_lib_freetype_FT_New_Face+:} false; then :
42472: $as_echo_n "(cached) " >&6
42473: else
42474: ac_check_lib_save_LIBS=$LIBS
42475: LIBS="-lfreetype $LIBS"
42476: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42477: /* end confdefs.h. */
42478:
42479: /* Override any GCC internal prototype to avoid an error.
42480: Use char because int might match the return type of a GCC
42481: builtin and then its argument prototype would still apply. */
42482: #ifdef __cplusplus
42483: extern "C"
42484: #endif
42485: char FT_New_Face ();
42486: int
42487: main ()
42488: {
42489: return FT_New_Face ();
42490: ;
42491: return 0;
42492: }
42493: _ACEOF
42494: if ac_fn_c_try_link "$LINENO"; then :
42495: ac_cv_lib_freetype_FT_New_Face=yes
42496: else
42497: ac_cv_lib_freetype_FT_New_Face=no
42498: fi
42499: rm -f core conftest.err conftest.$ac_objext \
42500: conftest$ac_exeext conftest.$ac_ext
42501: LIBS=$ac_check_lib_save_LIBS
42502: fi
42503: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_New_Face" >&5
42504: $as_echo "$ac_cv_lib_freetype_FT_New_Face" >&6; }
42505: if test "x$ac_cv_lib_freetype_FT_New_Face" = xyes; then :
42506:
42507: LDFLAGS=$save_old_LDFLAGS
42508: ext_shared=$save_ext_shared
42509:
42510:
42511:
42512: if test "$ext_shared" = "yes"; then
42513: GD_SHARED_LIBADD="-lfreetype $GD_SHARED_LIBADD"
42514: if test -n "$FREETYPE2_DIR/$PHP_LIBDIR"; then
42515:
42516: if test "$FREETYPE2_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$FREETYPE2_DIR/$PHP_LIBDIR" != "/usr/lib"; then
42517:
42518: if test -z "$FREETYPE2_DIR/$PHP_LIBDIR" || echo "$FREETYPE2_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
42519: ai_p=$FREETYPE2_DIR/$PHP_LIBDIR
42520: else
42521:
42522: ep_dir="`echo $FREETYPE2_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
42523:
42524: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
42525: ai_p="$ep_realdir/`basename \"$FREETYPE2_DIR/$PHP_LIBDIR\"`"
42526: fi
42527:
42528:
42529: if test "$ext_shared" = "yes"; then
42530: GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
42531: test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
42532: else
42533:
42534:
42535:
42536: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
42537:
42538: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
42539: if test -n "$unique" && test "`eval $cmd`" = "" ; then
42540: eval "LIBPATH$unique=set"
42541:
42542: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
42543: LDFLAGS="$LDFLAGS -L$ai_p"
42544: PHP_RPATHS="$PHP_RPATHS $ai_p"
42545:
42546: fi
42547:
42548:
42549: fi
42550:
42551: fi
42552:
42553: fi
42554: else
42555:
42556:
42557: if test -n "$FREETYPE2_DIR/$PHP_LIBDIR"; then
42558:
42559: if test "$FREETYPE2_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$FREETYPE2_DIR/$PHP_LIBDIR" != "/usr/lib"; then
42560:
42561: if test -z "$FREETYPE2_DIR/$PHP_LIBDIR" || echo "$FREETYPE2_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
42562: ai_p=$FREETYPE2_DIR/$PHP_LIBDIR
42563: else
42564:
42565: ep_dir="`echo $FREETYPE2_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
42566:
42567: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
42568: ai_p="$ep_realdir/`basename \"$FREETYPE2_DIR/$PHP_LIBDIR\"`"
42569: fi
42570:
42571:
42572:
42573:
42574:
42575: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
42576:
42577: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
42578: if test -n "$unique" && test "`eval $cmd`" = "" ; then
42579: eval "LIBPATH$unique=set"
42580:
42581: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
42582: LDFLAGS="$LDFLAGS -L$ai_p"
42583: PHP_RPATHS="$PHP_RPATHS $ai_p"
42584:
42585: fi
42586:
42587:
42588:
42589: fi
42590:
42591: fi
42592:
42593:
42594: case freetype in
42595: c|c_r|pthread*) ;;
42596: *)
42597: LIBS="-lfreetype $LIBS"
42598: ;;
42599: esac
42600:
42601:
42602:
42603:
42604: fi
42605:
42606:
42607:
42608: if test "$FREETYPE2_DIR/include" != "/usr/include"; then
42609:
42610: if test -z "$FREETYPE2_DIR/include" || echo "$FREETYPE2_DIR/include" | grep '^/' >/dev/null ; then
42611: ai_p=$FREETYPE2_DIR/include
42612: else
42613:
42614: ep_dir="`echo $FREETYPE2_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
42615:
42616: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
42617: ai_p="$ep_realdir/`basename \"$FREETYPE2_DIR/include\"`"
42618: fi
42619:
42620:
42621:
42622: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
42623:
42624: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
42625: if test -n "$unique" && test "`eval $cmd`" = "" ; then
42626: eval "INCLUDEPATH$unique=set"
42627:
42628: if test ""; then
42629: INCLUDES="-I$ai_p $INCLUDES"
42630: else
42631: INCLUDES="$INCLUDES -I$ai_p"
42632: fi
42633:
42634: fi
42635:
42636: fi
42637:
42638:
42639: if test "$FREETYPE2_INC_DIR" != "/usr/include"; then
42640:
42641: if test -z "$FREETYPE2_INC_DIR" || echo "$FREETYPE2_INC_DIR" | grep '^/' >/dev/null ; then
42642: ai_p=$FREETYPE2_INC_DIR
42643: else
42644:
42645: ep_dir="`echo $FREETYPE2_INC_DIR|$SED 's%/*[^/][^/]*/*$%%'`"
42646:
42647: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
42648: ai_p="$ep_realdir/`basename \"$FREETYPE2_INC_DIR\"`"
42649: fi
42650:
42651:
42652:
42653: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
42654:
42655: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
42656: if test -n "$unique" && test "`eval $cmd`" = "" ; then
42657: eval "INCLUDEPATH$unique=set"
42658:
42659: if test ""; then
42660: INCLUDES="-I$ai_p $INCLUDES"
42661: else
42662: INCLUDES="$INCLUDES -I$ai_p"
42663: fi
42664:
42665: fi
42666:
42667: fi
42668:
42669:
42670: $as_echo "#define USE_GD_IMGSTRTTF 1" >>confdefs.h
42671:
42672:
42673: $as_echo "#define HAVE_LIBFREETYPE 1" >>confdefs.h
42674:
42675:
42676: $as_echo "#define ENABLE_GD_TTF 1" >>confdefs.h
42677:
42678:
42679:
42680: else
42681:
42682: LDFLAGS=$save_old_LDFLAGS
42683: ext_shared=$save_ext_shared
42684: unset ac_cv_lib_freetype_FT_New_Face
42685:
42686: as_fn_error $? "Problem with freetype.(a|so). Please check config.log for more information." "$LINENO" 5
42687:
42688:
42689: fi
42690:
42691: else
42692: { $as_echo "$as_me:${as_lineno-$LINENO}: result: If configure fails try --with-freetype-dir=<DIR>" >&5
42693: $as_echo "If configure fails try --with-freetype-dir=<DIR>" >&6; }
42694: fi
42695:
42696:
42697: if test "$PHP_T1LIB" != "no"; then
42698:
42699: for i in $PHP_T1LIB /usr/local /usr; do
42700: test -f "$i/include/t1lib.h" && GD_T1_DIR=$i && break
42701: done
42702:
42703: if test -z "$GD_T1_DIR"; then
42704: as_fn_error $? "Your t1lib distribution is not installed correctly. Please reinstall it." "$LINENO" 5
42705: fi
42706:
42707:
42708: save_old_LDFLAGS=$LDFLAGS
42709: ac_stuff="
42710: -L$GD_T1_DIR/$PHP_LIBDIR
42711: "
42712:
42713: save_ext_shared=$ext_shared
42714: ext_shared=yes
42715:
42716: for ac_i in $ac_stuff; do
42717: case $ac_i in
42718: -pthread)
42719: if test "$ext_shared" = "yes"; then
42720: LDFLAGS="$LDFLAGS -pthread"
42721: else
42722:
42723:
42724: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
42725:
42726: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
42727: if test -n "$unique" && test "`eval $cmd`" = "" ; then
42728: eval "EXTRA_LDFLAGS$unique=set"
42729: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
42730: fi
42731:
42732: fi
42733: ;;
42734: -l*)
42735: ac_ii=`echo $ac_i|cut -c 3-`
42736:
42737:
42738: case $ac_ii in
42739: c|c_r|pthread*) ;;
42740: *)
42741: if test "$ext_shared" = "yes"; then
42742: LDFLAGS="$LDFLAGS -l$ac_ii"
42743: else
42744:
42745:
42746: case $ac_ii in
42747: c|c_r|pthread*) ;;
42748: *)
42749: LIBS="$LIBS -l$ac_ii"
42750: ;;
42751: esac
42752:
42753:
42754: fi
42755: ;;
42756: esac
42757:
42758:
42759: ;;
42760: -L*)
42761: ac_ii=`echo $ac_i|cut -c 3-`
42762:
42763: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
42764:
42765: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
42766: ai_p=$ac_ii
42767: else
42768:
42769: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
42770:
42771: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
42772: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
42773: fi
42774:
42775:
42776: if test "$ext_shared" = "yes"; then
42777: LDFLAGS="-L$ai_p $LDFLAGS"
42778: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
42779: else
42780:
42781:
42782:
42783: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
42784:
42785: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
42786: if test -n "$unique" && test "`eval $cmd`" = "" ; then
42787: eval "LIBPATH$unique=set"
42788:
42789: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
42790: LDFLAGS="$LDFLAGS -L$ai_p"
42791: PHP_RPATHS="$PHP_RPATHS $ai_p"
42792:
42793: fi
42794:
42795:
42796: fi
42797:
42798: fi
42799:
42800: ;;
42801: esac
42802: done
42803:
42804: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for T1_StrError in -lt1" >&5
42805: $as_echo_n "checking for T1_StrError in -lt1... " >&6; }
42806: if ${ac_cv_lib_t1_T1_StrError+:} false; then :
42807: $as_echo_n "(cached) " >&6
42808: else
42809: ac_check_lib_save_LIBS=$LIBS
42810: LIBS="-lt1 $LIBS"
42811: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42812: /* end confdefs.h. */
42813:
42814: /* Override any GCC internal prototype to avoid an error.
42815: Use char because int might match the return type of a GCC
42816: builtin and then its argument prototype would still apply. */
42817: #ifdef __cplusplus
42818: extern "C"
42819: #endif
42820: char T1_StrError ();
42821: int
42822: main ()
42823: {
42824: return T1_StrError ();
42825: ;
42826: return 0;
42827: }
42828: _ACEOF
42829: if ac_fn_c_try_link "$LINENO"; then :
42830: ac_cv_lib_t1_T1_StrError=yes
42831: else
42832: ac_cv_lib_t1_T1_StrError=no
42833: fi
42834: rm -f core conftest.err conftest.$ac_objext \
42835: conftest$ac_exeext conftest.$ac_ext
42836: LIBS=$ac_check_lib_save_LIBS
42837: fi
42838: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_t1_T1_StrError" >&5
42839: $as_echo "$ac_cv_lib_t1_T1_StrError" >&6; }
42840: if test "x$ac_cv_lib_t1_T1_StrError" = xyes; then :
42841:
42842: LDFLAGS=$save_old_LDFLAGS
42843: ext_shared=$save_ext_shared
42844:
42845:
42846: $as_echo "#define HAVE_LIBT1 1" >>confdefs.h
42847:
42848:
42849: if test "$GD_T1_DIR/include" != "/usr/include"; then
42850:
42851: if test -z "$GD_T1_DIR/include" || echo "$GD_T1_DIR/include" | grep '^/' >/dev/null ; then
42852: ai_p=$GD_T1_DIR/include
42853: else
42854:
42855: ep_dir="`echo $GD_T1_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
42856:
42857: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
42858: ai_p="$ep_realdir/`basename \"$GD_T1_DIR/include\"`"
42859: fi
42860:
42861:
42862:
42863: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
42864:
42865: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
42866: if test -n "$unique" && test "`eval $cmd`" = "" ; then
42867: eval "INCLUDEPATH$unique=set"
42868:
42869: if test ""; then
42870: INCLUDES="-I$ai_p $INCLUDES"
42871: else
42872: INCLUDES="$INCLUDES -I$ai_p"
42873: fi
42874:
42875: fi
42876:
42877: fi
42878:
42879:
42880:
42881: if test "$ext_shared" = "yes"; then
42882: GD_SHARED_LIBADD="-lt1 $GD_SHARED_LIBADD"
42883: if test -n "$GD_T1_DIR/$PHP_LIBDIR"; then
42884:
42885: if test "$GD_T1_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_T1_DIR/$PHP_LIBDIR" != "/usr/lib"; then
42886:
42887: if test -z "$GD_T1_DIR/$PHP_LIBDIR" || echo "$GD_T1_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
42888: ai_p=$GD_T1_DIR/$PHP_LIBDIR
42889: else
42890:
42891: ep_dir="`echo $GD_T1_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
42892:
42893: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
42894: ai_p="$ep_realdir/`basename \"$GD_T1_DIR/$PHP_LIBDIR\"`"
42895: fi
42896:
42897:
42898: if test "$ext_shared" = "yes"; then
42899: GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
42900: test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
42901: else
42902:
42903:
42904:
42905: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
42906:
42907: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
42908: if test -n "$unique" && test "`eval $cmd`" = "" ; then
42909: eval "LIBPATH$unique=set"
42910:
42911: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
42912: LDFLAGS="$LDFLAGS -L$ai_p"
42913: PHP_RPATHS="$PHP_RPATHS $ai_p"
42914:
42915: fi
42916:
42917:
42918: fi
42919:
42920: fi
42921:
42922: fi
42923: else
42924:
42925:
42926: if test -n "$GD_T1_DIR/$PHP_LIBDIR"; then
42927:
42928: if test "$GD_T1_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_T1_DIR/$PHP_LIBDIR" != "/usr/lib"; then
42929:
42930: if test -z "$GD_T1_DIR/$PHP_LIBDIR" || echo "$GD_T1_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
42931: ai_p=$GD_T1_DIR/$PHP_LIBDIR
42932: else
42933:
42934: ep_dir="`echo $GD_T1_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
42935:
42936: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
42937: ai_p="$ep_realdir/`basename \"$GD_T1_DIR/$PHP_LIBDIR\"`"
42938: fi
42939:
42940:
42941:
42942:
42943:
42944: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
42945:
42946: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
42947: if test -n "$unique" && test "`eval $cmd`" = "" ; then
42948: eval "LIBPATH$unique=set"
42949:
42950: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
42951: LDFLAGS="$LDFLAGS -L$ai_p"
42952: PHP_RPATHS="$PHP_RPATHS $ai_p"
42953:
42954: fi
42955:
42956:
42957:
42958: fi
42959:
42960: fi
42961:
42962:
42963: case t1 in
42964: c|c_r|pthread*) ;;
42965: *)
42966: LIBS="-lt1 $LIBS"
42967: ;;
42968: esac
42969:
42970:
42971:
42972:
42973: fi
42974:
42975:
42976:
42977:
42978: else
42979:
42980: LDFLAGS=$save_old_LDFLAGS
42981: ext_shared=$save_ext_shared
42982: unset ac_cv_lib_t1_T1_StrError
42983:
42984: as_fn_error $? "Problem with libt1.(a|so). Please check config.log for more information." "$LINENO" 5
42985:
42986:
42987: fi
42988:
42989: fi
42990:
42991:
42992: for i in include/gd1.3 include/gd include gd1.3 gd ""; do
42993: test -f "$PHP_GD/$i/gd.h" && GD_INCLUDE="$PHP_GD/$i"
42994: done
42995:
42996: for i in $PHP_LIBDIR/gd1.3 $PHP_LIBDIR/gd $PHP_LIBDIR gd1.3 gd ""; do
42997: test -f "$PHP_GD/$i/libgd.$SHLIB_SUFFIX_NAME" || test -f "$PHP_GD/$i/libgd.a" && GD_LIB="$PHP_GD/$i"
42998: done
42999:
43000: if test -n "$GD_INCLUDE" && test -n "$GD_LIB"; then
43001:
43002:
43003: if test "$ext_shared" = "yes"; then
43004: GD_SHARED_LIBADD="-lgd $GD_SHARED_LIBADD"
43005: if test -n "$GD_LIB"; then
43006:
43007: if test "$GD_LIB" != "/usr/$PHP_LIBDIR" && test "$GD_LIB" != "/usr/lib"; then
43008:
43009: if test -z "$GD_LIB" || echo "$GD_LIB" | grep '^/' >/dev/null ; then
43010: ai_p=$GD_LIB
43011: else
43012:
43013: ep_dir="`echo $GD_LIB|$SED 's%/*[^/][^/]*/*$%%'`"
43014:
43015: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
43016: ai_p="$ep_realdir/`basename \"$GD_LIB\"`"
43017: fi
43018:
43019:
43020: if test "$ext_shared" = "yes"; then
43021: GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
43022: test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
43023: else
43024:
43025:
43026:
43027: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
43028:
43029: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
43030: if test -n "$unique" && test "`eval $cmd`" = "" ; then
43031: eval "LIBPATH$unique=set"
43032:
43033: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
43034: LDFLAGS="$LDFLAGS -L$ai_p"
43035: PHP_RPATHS="$PHP_RPATHS $ai_p"
43036:
43037: fi
43038:
43039:
43040: fi
43041:
43042: fi
43043:
43044: fi
43045: else
43046:
43047:
43048: if test -n "$GD_LIB"; then
43049:
43050: if test "$GD_LIB" != "/usr/$PHP_LIBDIR" && test "$GD_LIB" != "/usr/lib"; then
43051:
43052: if test -z "$GD_LIB" || echo "$GD_LIB" | grep '^/' >/dev/null ; then
43053: ai_p=$GD_LIB
43054: else
43055:
43056: ep_dir="`echo $GD_LIB|$SED 's%/*[^/][^/]*/*$%%'`"
43057:
43058: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
43059: ai_p="$ep_realdir/`basename \"$GD_LIB\"`"
43060: fi
43061:
43062:
43063:
43064:
43065:
43066: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
43067:
43068: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
43069: if test -n "$unique" && test "`eval $cmd`" = "" ; then
43070: eval "LIBPATH$unique=set"
43071:
43072: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
43073: LDFLAGS="$LDFLAGS -L$ai_p"
43074: PHP_RPATHS="$PHP_RPATHS $ai_p"
43075:
43076: fi
43077:
43078:
43079:
43080: fi
43081:
43082: fi
43083:
43084:
43085: case gd in
43086: c|c_r|pthread*) ;;
43087: *)
43088: LIBS="-lgd $LIBS"
43089: ;;
43090: esac
43091:
43092:
43093:
43094:
43095: fi
43096:
43097:
43098:
43099: $as_echo "#define HAVE_LIBGD 1" >>confdefs.h
43100:
43101:
43102:
43103: save_old_LDFLAGS=$LDFLAGS
43104: ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
43105:
43106: save_ext_shared=$ext_shared
43107: ext_shared=yes
43108:
43109: for ac_i in $ac_stuff; do
43110: case $ac_i in
43111: -pthread)
43112: if test "$ext_shared" = "yes"; then
43113: LDFLAGS="$LDFLAGS -pthread"
43114: else
43115:
43116:
43117: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
43118:
43119: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
43120: if test -n "$unique" && test "`eval $cmd`" = "" ; then
43121: eval "EXTRA_LDFLAGS$unique=set"
43122: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
43123: fi
43124:
43125: fi
43126: ;;
43127: -l*)
43128: ac_ii=`echo $ac_i|cut -c 3-`
43129:
43130:
43131: case $ac_ii in
43132: c|c_r|pthread*) ;;
43133: *)
43134: if test "$ext_shared" = "yes"; then
43135: LDFLAGS="$LDFLAGS -l$ac_ii"
43136: else
43137:
43138:
43139: case $ac_ii in
43140: c|c_r|pthread*) ;;
43141: *)
43142: LIBS="$LIBS -l$ac_ii"
43143: ;;
43144: esac
43145:
43146:
43147: fi
43148: ;;
43149: esac
43150:
43151:
43152: ;;
43153: -L*)
43154: ac_ii=`echo $ac_i|cut -c 3-`
43155:
43156: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
43157:
43158: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
43159: ai_p=$ac_ii
43160: else
43161:
43162: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
43163:
43164: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
43165: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
43166: fi
43167:
43168:
43169: if test "$ext_shared" = "yes"; then
43170: LDFLAGS="-L$ai_p $LDFLAGS"
43171: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
43172: else
43173:
43174:
43175:
43176: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
43177:
43178: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
43179: if test -n "$unique" && test "`eval $cmd`" = "" ; then
43180: eval "LIBPATH$unique=set"
43181:
43182: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
43183: LDFLAGS="$LDFLAGS -L$ai_p"
43184: PHP_RPATHS="$PHP_RPATHS $ai_p"
43185:
43186: fi
43187:
43188:
43189: fi
43190:
43191: fi
43192:
43193: ;;
43194: esac
43195: done
43196:
43197: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageString16 in -lgd" >&5
43198: $as_echo_n "checking for gdImageString16 in -lgd... " >&6; }
43199: if ${ac_cv_lib_gd_gdImageString16+:} false; then :
43200: $as_echo_n "(cached) " >&6
43201: else
43202: ac_check_lib_save_LIBS=$LIBS
43203: LIBS="-lgd $LIBS"
43204: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43205: /* end confdefs.h. */
43206:
43207: /* Override any GCC internal prototype to avoid an error.
43208: Use char because int might match the return type of a GCC
43209: builtin and then its argument prototype would still apply. */
43210: #ifdef __cplusplus
43211: extern "C"
43212: #endif
43213: char gdImageString16 ();
43214: int
43215: main ()
43216: {
43217: return gdImageString16 ();
43218: ;
43219: return 0;
43220: }
43221: _ACEOF
43222: if ac_fn_c_try_link "$LINENO"; then :
43223: ac_cv_lib_gd_gdImageString16=yes
43224: else
43225: ac_cv_lib_gd_gdImageString16=no
43226: fi
43227: rm -f core conftest.err conftest.$ac_objext \
43228: conftest$ac_exeext conftest.$ac_ext
43229: LIBS=$ac_check_lib_save_LIBS
43230: fi
43231: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageString16" >&5
43232: $as_echo "$ac_cv_lib_gd_gdImageString16" >&6; }
43233: if test "x$ac_cv_lib_gd_gdImageString16" = xyes; then :
43234:
43235: LDFLAGS=$save_old_LDFLAGS
43236: ext_shared=$save_ext_shared
43237:
43238: $as_echo "#define HAVE_LIBGD13 1" >>confdefs.h
43239:
43240:
43241: else
43242:
43243: LDFLAGS=$save_old_LDFLAGS
43244: ext_shared=$save_ext_shared
43245: unset ac_cv_lib_gd_gdImageString16
43246:
43247:
43248: fi
43249:
43250:
43251: save_old_LDFLAGS=$LDFLAGS
43252: ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
43253:
43254: save_ext_shared=$ext_shared
43255: ext_shared=yes
43256:
43257: for ac_i in $ac_stuff; do
43258: case $ac_i in
43259: -pthread)
43260: if test "$ext_shared" = "yes"; then
43261: LDFLAGS="$LDFLAGS -pthread"
43262: else
43263:
43264:
43265: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
43266:
43267: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
43268: if test -n "$unique" && test "`eval $cmd`" = "" ; then
43269: eval "EXTRA_LDFLAGS$unique=set"
43270: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
43271: fi
43272:
43273: fi
43274: ;;
43275: -l*)
43276: ac_ii=`echo $ac_i|cut -c 3-`
43277:
43278:
43279: case $ac_ii in
43280: c|c_r|pthread*) ;;
43281: *)
43282: if test "$ext_shared" = "yes"; then
43283: LDFLAGS="$LDFLAGS -l$ac_ii"
43284: else
43285:
43286:
43287: case $ac_ii in
43288: c|c_r|pthread*) ;;
43289: *)
43290: LIBS="$LIBS -l$ac_ii"
43291: ;;
43292: esac
43293:
43294:
43295: fi
43296: ;;
43297: esac
43298:
43299:
43300: ;;
43301: -L*)
43302: ac_ii=`echo $ac_i|cut -c 3-`
43303:
43304: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
43305:
43306: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
43307: ai_p=$ac_ii
43308: else
43309:
43310: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
43311:
43312: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
43313: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
43314: fi
43315:
43316:
43317: if test "$ext_shared" = "yes"; then
43318: LDFLAGS="-L$ai_p $LDFLAGS"
43319: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
43320: else
43321:
43322:
43323:
43324: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
43325:
43326: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
43327: if test -n "$unique" && test "`eval $cmd`" = "" ; then
43328: eval "LIBPATH$unique=set"
43329:
43330: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
43331: LDFLAGS="$LDFLAGS -L$ai_p"
43332: PHP_RPATHS="$PHP_RPATHS $ai_p"
43333:
43334: fi
43335:
43336:
43337: fi
43338:
43339: fi
43340:
43341: ;;
43342: esac
43343: done
43344:
43345: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImagePaletteCopy in -lgd" >&5
43346: $as_echo_n "checking for gdImagePaletteCopy in -lgd... " >&6; }
43347: if ${ac_cv_lib_gd_gdImagePaletteCopy+:} false; then :
43348: $as_echo_n "(cached) " >&6
43349: else
43350: ac_check_lib_save_LIBS=$LIBS
43351: LIBS="-lgd $LIBS"
43352: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43353: /* end confdefs.h. */
43354:
43355: /* Override any GCC internal prototype to avoid an error.
43356: Use char because int might match the return type of a GCC
43357: builtin and then its argument prototype would still apply. */
43358: #ifdef __cplusplus
43359: extern "C"
43360: #endif
43361: char gdImagePaletteCopy ();
43362: int
43363: main ()
43364: {
43365: return gdImagePaletteCopy ();
43366: ;
43367: return 0;
43368: }
43369: _ACEOF
43370: if ac_fn_c_try_link "$LINENO"; then :
43371: ac_cv_lib_gd_gdImagePaletteCopy=yes
43372: else
43373: ac_cv_lib_gd_gdImagePaletteCopy=no
43374: fi
43375: rm -f core conftest.err conftest.$ac_objext \
43376: conftest$ac_exeext conftest.$ac_ext
43377: LIBS=$ac_check_lib_save_LIBS
43378: fi
43379: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImagePaletteCopy" >&5
43380: $as_echo "$ac_cv_lib_gd_gdImagePaletteCopy" >&6; }
43381: if test "x$ac_cv_lib_gd_gdImagePaletteCopy" = xyes; then :
43382:
43383: LDFLAGS=$save_old_LDFLAGS
43384: ext_shared=$save_ext_shared
43385:
43386: $as_echo "#define HAVE_LIBGD15 1" >>confdefs.h
43387:
43388:
43389: else
43390:
43391: LDFLAGS=$save_old_LDFLAGS
43392: ext_shared=$save_ext_shared
43393: unset ac_cv_lib_gd_gdImagePaletteCopy
43394:
43395:
43396: fi
43397:
43398:
43399: save_old_LDFLAGS=$LDFLAGS
43400: ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
43401:
43402: save_ext_shared=$ext_shared
43403: ext_shared=yes
43404:
43405: for ac_i in $ac_stuff; do
43406: case $ac_i in
43407: -pthread)
43408: if test "$ext_shared" = "yes"; then
43409: LDFLAGS="$LDFLAGS -pthread"
43410: else
43411:
43412:
43413: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
43414:
43415: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
43416: if test -n "$unique" && test "`eval $cmd`" = "" ; then
43417: eval "EXTRA_LDFLAGS$unique=set"
43418: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
43419: fi
43420:
43421: fi
43422: ;;
43423: -l*)
43424: ac_ii=`echo $ac_i|cut -c 3-`
43425:
43426:
43427: case $ac_ii in
43428: c|c_r|pthread*) ;;
43429: *)
43430: if test "$ext_shared" = "yes"; then
43431: LDFLAGS="$LDFLAGS -l$ac_ii"
43432: else
43433:
43434:
43435: case $ac_ii in
43436: c|c_r|pthread*) ;;
43437: *)
43438: LIBS="$LIBS -l$ac_ii"
43439: ;;
43440: esac
43441:
43442:
43443: fi
43444: ;;
43445: esac
43446:
43447:
43448: ;;
43449: -L*)
43450: ac_ii=`echo $ac_i|cut -c 3-`
43451:
43452: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
43453:
43454: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
43455: ai_p=$ac_ii
43456: else
43457:
43458: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
43459:
43460: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
43461: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
43462: fi
43463:
43464:
43465: if test "$ext_shared" = "yes"; then
43466: LDFLAGS="-L$ai_p $LDFLAGS"
43467: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
43468: else
43469:
43470:
43471:
43472: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
43473:
43474: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
43475: if test -n "$unique" && test "`eval $cmd`" = "" ; then
43476: eval "LIBPATH$unique=set"
43477:
43478: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
43479: LDFLAGS="$LDFLAGS -L$ai_p"
43480: PHP_RPATHS="$PHP_RPATHS $ai_p"
43481:
43482: fi
43483:
43484:
43485: fi
43486:
43487: fi
43488:
43489: ;;
43490: esac
43491: done
43492:
43493: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageCreateFromPng in -lgd" >&5
43494: $as_echo_n "checking for gdImageCreateFromPng in -lgd... " >&6; }
43495: if ${ac_cv_lib_gd_gdImageCreateFromPng+:} false; then :
43496: $as_echo_n "(cached) " >&6
43497: else
43498: ac_check_lib_save_LIBS=$LIBS
43499: LIBS="-lgd $LIBS"
43500: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43501: /* end confdefs.h. */
43502:
43503: /* Override any GCC internal prototype to avoid an error.
43504: Use char because int might match the return type of a GCC
43505: builtin and then its argument prototype would still apply. */
43506: #ifdef __cplusplus
43507: extern "C"
43508: #endif
43509: char gdImageCreateFromPng ();
43510: int
43511: main ()
43512: {
43513: return gdImageCreateFromPng ();
43514: ;
43515: return 0;
43516: }
43517: _ACEOF
43518: if ac_fn_c_try_link "$LINENO"; then :
43519: ac_cv_lib_gd_gdImageCreateFromPng=yes
43520: else
43521: ac_cv_lib_gd_gdImageCreateFromPng=no
43522: fi
43523: rm -f core conftest.err conftest.$ac_objext \
43524: conftest$ac_exeext conftest.$ac_ext
43525: LIBS=$ac_check_lib_save_LIBS
43526: fi
43527: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageCreateFromPng" >&5
43528: $as_echo "$ac_cv_lib_gd_gdImageCreateFromPng" >&6; }
43529: if test "x$ac_cv_lib_gd_gdImageCreateFromPng" = xyes; then :
43530:
43531: LDFLAGS=$save_old_LDFLAGS
43532: ext_shared=$save_ext_shared
43533:
43534: $as_echo "#define HAVE_GD_PNG 1" >>confdefs.h
43535:
43536:
43537: else
43538:
43539: LDFLAGS=$save_old_LDFLAGS
43540: ext_shared=$save_ext_shared
43541: unset ac_cv_lib_gd_gdImageCreateFromPng
43542:
43543:
43544: fi
43545:
43546:
43547: save_old_LDFLAGS=$LDFLAGS
43548: ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
43549:
43550: save_ext_shared=$ext_shared
43551: ext_shared=yes
43552:
43553: for ac_i in $ac_stuff; do
43554: case $ac_i in
43555: -pthread)
43556: if test "$ext_shared" = "yes"; then
43557: LDFLAGS="$LDFLAGS -pthread"
43558: else
43559:
43560:
43561: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
43562:
43563: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
43564: if test -n "$unique" && test "`eval $cmd`" = "" ; then
43565: eval "EXTRA_LDFLAGS$unique=set"
43566: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
43567: fi
43568:
43569: fi
43570: ;;
43571: -l*)
43572: ac_ii=`echo $ac_i|cut -c 3-`
43573:
43574:
43575: case $ac_ii in
43576: c|c_r|pthread*) ;;
43577: *)
43578: if test "$ext_shared" = "yes"; then
43579: LDFLAGS="$LDFLAGS -l$ac_ii"
43580: else
43581:
43582:
43583: case $ac_ii in
43584: c|c_r|pthread*) ;;
43585: *)
43586: LIBS="$LIBS -l$ac_ii"
43587: ;;
43588: esac
43589:
43590:
43591: fi
43592: ;;
43593: esac
43594:
43595:
43596: ;;
43597: -L*)
43598: ac_ii=`echo $ac_i|cut -c 3-`
43599:
43600: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
43601:
43602: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
43603: ai_p=$ac_ii
43604: else
43605:
43606: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
43607:
43608: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
43609: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
43610: fi
43611:
43612:
43613: if test "$ext_shared" = "yes"; then
43614: LDFLAGS="-L$ai_p $LDFLAGS"
43615: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
43616: else
43617:
43618:
43619:
43620: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
43621:
43622: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
43623: if test -n "$unique" && test "`eval $cmd`" = "" ; then
43624: eval "LIBPATH$unique=set"
43625:
43626: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
43627: LDFLAGS="$LDFLAGS -L$ai_p"
43628: PHP_RPATHS="$PHP_RPATHS $ai_p"
43629:
43630: fi
43631:
43632:
43633: fi
43634:
43635: fi
43636:
43637: ;;
43638: esac
43639: done
43640:
43641: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageCreateFromGif in -lgd" >&5
43642: $as_echo_n "checking for gdImageCreateFromGif in -lgd... " >&6; }
43643: if ${ac_cv_lib_gd_gdImageCreateFromGif+:} false; then :
43644: $as_echo_n "(cached) " >&6
43645: else
43646: ac_check_lib_save_LIBS=$LIBS
43647: LIBS="-lgd $LIBS"
43648: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43649: /* end confdefs.h. */
43650:
43651: /* Override any GCC internal prototype to avoid an error.
43652: Use char because int might match the return type of a GCC
43653: builtin and then its argument prototype would still apply. */
43654: #ifdef __cplusplus
43655: extern "C"
43656: #endif
43657: char gdImageCreateFromGif ();
43658: int
43659: main ()
43660: {
43661: return gdImageCreateFromGif ();
43662: ;
43663: return 0;
43664: }
43665: _ACEOF
43666: if ac_fn_c_try_link "$LINENO"; then :
43667: ac_cv_lib_gd_gdImageCreateFromGif=yes
43668: else
43669: ac_cv_lib_gd_gdImageCreateFromGif=no
43670: fi
43671: rm -f core conftest.err conftest.$ac_objext \
43672: conftest$ac_exeext conftest.$ac_ext
43673: LIBS=$ac_check_lib_save_LIBS
43674: fi
43675: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageCreateFromGif" >&5
43676: $as_echo "$ac_cv_lib_gd_gdImageCreateFromGif" >&6; }
43677: if test "x$ac_cv_lib_gd_gdImageCreateFromGif" = xyes; then :
43678:
43679: LDFLAGS=$save_old_LDFLAGS
43680: ext_shared=$save_ext_shared
43681:
43682: $as_echo "#define HAVE_GD_GIF_READ 1" >>confdefs.h
43683:
43684:
43685: else
43686:
43687: LDFLAGS=$save_old_LDFLAGS
43688: ext_shared=$save_ext_shared
43689: unset ac_cv_lib_gd_gdImageCreateFromGif
43690:
43691:
43692: fi
43693:
43694:
43695: save_old_LDFLAGS=$LDFLAGS
43696: ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
43697:
43698: save_ext_shared=$ext_shared
43699: ext_shared=yes
43700:
43701: for ac_i in $ac_stuff; do
43702: case $ac_i in
43703: -pthread)
43704: if test "$ext_shared" = "yes"; then
43705: LDFLAGS="$LDFLAGS -pthread"
43706: else
43707:
43708:
43709: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
43710:
43711: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
43712: if test -n "$unique" && test "`eval $cmd`" = "" ; then
43713: eval "EXTRA_LDFLAGS$unique=set"
43714: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
43715: fi
43716:
43717: fi
43718: ;;
43719: -l*)
43720: ac_ii=`echo $ac_i|cut -c 3-`
43721:
43722:
43723: case $ac_ii in
43724: c|c_r|pthread*) ;;
43725: *)
43726: if test "$ext_shared" = "yes"; then
43727: LDFLAGS="$LDFLAGS -l$ac_ii"
43728: else
43729:
43730:
43731: case $ac_ii in
43732: c|c_r|pthread*) ;;
43733: *)
43734: LIBS="$LIBS -l$ac_ii"
43735: ;;
43736: esac
43737:
43738:
43739: fi
43740: ;;
43741: esac
43742:
43743:
43744: ;;
43745: -L*)
43746: ac_ii=`echo $ac_i|cut -c 3-`
43747:
43748: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
43749:
43750: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
43751: ai_p=$ac_ii
43752: else
43753:
43754: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
43755:
43756: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
43757: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
43758: fi
43759:
43760:
43761: if test "$ext_shared" = "yes"; then
43762: LDFLAGS="-L$ai_p $LDFLAGS"
43763: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
43764: else
43765:
43766:
43767:
43768: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
43769:
43770: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
43771: if test -n "$unique" && test "`eval $cmd`" = "" ; then
43772: eval "LIBPATH$unique=set"
43773:
43774: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
43775: LDFLAGS="$LDFLAGS -L$ai_p"
43776: PHP_RPATHS="$PHP_RPATHS $ai_p"
43777:
43778: fi
43779:
43780:
43781: fi
43782:
43783: fi
43784:
43785: ;;
43786: esac
43787: done
43788:
43789: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageGif in -lgd" >&5
43790: $as_echo_n "checking for gdImageGif in -lgd... " >&6; }
43791: if ${ac_cv_lib_gd_gdImageGif+:} false; then :
43792: $as_echo_n "(cached) " >&6
43793: else
43794: ac_check_lib_save_LIBS=$LIBS
43795: LIBS="-lgd $LIBS"
43796: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43797: /* end confdefs.h. */
43798:
43799: /* Override any GCC internal prototype to avoid an error.
43800: Use char because int might match the return type of a GCC
43801: builtin and then its argument prototype would still apply. */
43802: #ifdef __cplusplus
43803: extern "C"
43804: #endif
43805: char gdImageGif ();
43806: int
43807: main ()
43808: {
43809: return gdImageGif ();
43810: ;
43811: return 0;
43812: }
43813: _ACEOF
43814: if ac_fn_c_try_link "$LINENO"; then :
43815: ac_cv_lib_gd_gdImageGif=yes
43816: else
43817: ac_cv_lib_gd_gdImageGif=no
43818: fi
43819: rm -f core conftest.err conftest.$ac_objext \
43820: conftest$ac_exeext conftest.$ac_ext
43821: LIBS=$ac_check_lib_save_LIBS
43822: fi
43823: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageGif" >&5
43824: $as_echo "$ac_cv_lib_gd_gdImageGif" >&6; }
43825: if test "x$ac_cv_lib_gd_gdImageGif" = xyes; then :
43826:
43827: LDFLAGS=$save_old_LDFLAGS
43828: ext_shared=$save_ext_shared
43829:
43830: $as_echo "#define HAVE_GD_GIF_CREATE 1" >>confdefs.h
43831:
43832:
43833: else
43834:
43835: LDFLAGS=$save_old_LDFLAGS
43836: ext_shared=$save_ext_shared
43837: unset ac_cv_lib_gd_gdImageGif
43838:
43839:
43840: fi
43841:
43842:
43843: save_old_LDFLAGS=$LDFLAGS
43844: ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
43845:
43846: save_ext_shared=$ext_shared
43847: ext_shared=yes
43848:
43849: for ac_i in $ac_stuff; do
43850: case $ac_i in
43851: -pthread)
43852: if test "$ext_shared" = "yes"; then
43853: LDFLAGS="$LDFLAGS -pthread"
43854: else
43855:
43856:
43857: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
43858:
43859: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
43860: if test -n "$unique" && test "`eval $cmd`" = "" ; then
43861: eval "EXTRA_LDFLAGS$unique=set"
43862: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
43863: fi
43864:
43865: fi
43866: ;;
43867: -l*)
43868: ac_ii=`echo $ac_i|cut -c 3-`
43869:
43870:
43871: case $ac_ii in
43872: c|c_r|pthread*) ;;
43873: *)
43874: if test "$ext_shared" = "yes"; then
43875: LDFLAGS="$LDFLAGS -l$ac_ii"
43876: else
43877:
43878:
43879: case $ac_ii in
43880: c|c_r|pthread*) ;;
43881: *)
43882: LIBS="$LIBS -l$ac_ii"
43883: ;;
43884: esac
43885:
43886:
43887: fi
43888: ;;
43889: esac
43890:
43891:
43892: ;;
43893: -L*)
43894: ac_ii=`echo $ac_i|cut -c 3-`
43895:
43896: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
43897:
43898: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
43899: ai_p=$ac_ii
43900: else
43901:
43902: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
43903:
43904: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
43905: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
43906: fi
43907:
43908:
43909: if test "$ext_shared" = "yes"; then
43910: LDFLAGS="-L$ai_p $LDFLAGS"
43911: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
43912: else
43913:
43914:
43915:
43916: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
43917:
43918: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
43919: if test -n "$unique" && test "`eval $cmd`" = "" ; then
43920: eval "LIBPATH$unique=set"
43921:
43922: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
43923: LDFLAGS="$LDFLAGS -L$ai_p"
43924: PHP_RPATHS="$PHP_RPATHS $ai_p"
43925:
43926: fi
43927:
43928:
43929: fi
43930:
43931: fi
43932:
43933: ;;
43934: esac
43935: done
43936:
43937: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageWBMP in -lgd" >&5
43938: $as_echo_n "checking for gdImageWBMP in -lgd... " >&6; }
43939: if ${ac_cv_lib_gd_gdImageWBMP+:} false; then :
43940: $as_echo_n "(cached) " >&6
43941: else
43942: ac_check_lib_save_LIBS=$LIBS
43943: LIBS="-lgd $LIBS"
43944: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43945: /* end confdefs.h. */
43946:
43947: /* Override any GCC internal prototype to avoid an error.
43948: Use char because int might match the return type of a GCC
43949: builtin and then its argument prototype would still apply. */
43950: #ifdef __cplusplus
43951: extern "C"
43952: #endif
43953: char gdImageWBMP ();
43954: int
43955: main ()
43956: {
43957: return gdImageWBMP ();
43958: ;
43959: return 0;
43960: }
43961: _ACEOF
43962: if ac_fn_c_try_link "$LINENO"; then :
43963: ac_cv_lib_gd_gdImageWBMP=yes
43964: else
43965: ac_cv_lib_gd_gdImageWBMP=no
43966: fi
43967: rm -f core conftest.err conftest.$ac_objext \
43968: conftest$ac_exeext conftest.$ac_ext
43969: LIBS=$ac_check_lib_save_LIBS
43970: fi
43971: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageWBMP" >&5
43972: $as_echo "$ac_cv_lib_gd_gdImageWBMP" >&6; }
43973: if test "x$ac_cv_lib_gd_gdImageWBMP" = xyes; then :
43974:
43975: LDFLAGS=$save_old_LDFLAGS
43976: ext_shared=$save_ext_shared
43977:
43978: $as_echo "#define HAVE_GD_WBMP 1" >>confdefs.h
43979:
43980:
43981: else
43982:
43983: LDFLAGS=$save_old_LDFLAGS
43984: ext_shared=$save_ext_shared
43985: unset ac_cv_lib_gd_gdImageWBMP
43986:
43987:
43988: fi
43989:
43990:
43991: save_old_LDFLAGS=$LDFLAGS
43992: ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
43993:
43994: save_ext_shared=$ext_shared
43995: ext_shared=yes
43996:
43997: for ac_i in $ac_stuff; do
43998: case $ac_i in
43999: -pthread)
44000: if test "$ext_shared" = "yes"; then
44001: LDFLAGS="$LDFLAGS -pthread"
44002: else
44003:
44004:
44005: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
44006:
44007: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
44008: if test -n "$unique" && test "`eval $cmd`" = "" ; then
44009: eval "EXTRA_LDFLAGS$unique=set"
44010: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
44011: fi
44012:
44013: fi
44014: ;;
44015: -l*)
44016: ac_ii=`echo $ac_i|cut -c 3-`
44017:
44018:
44019: case $ac_ii in
44020: c|c_r|pthread*) ;;
44021: *)
44022: if test "$ext_shared" = "yes"; then
44023: LDFLAGS="$LDFLAGS -l$ac_ii"
44024: else
44025:
44026:
44027: case $ac_ii in
44028: c|c_r|pthread*) ;;
44029: *)
44030: LIBS="$LIBS -l$ac_ii"
44031: ;;
44032: esac
44033:
44034:
44035: fi
44036: ;;
44037: esac
44038:
44039:
44040: ;;
44041: -L*)
44042: ac_ii=`echo $ac_i|cut -c 3-`
44043:
44044: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
44045:
44046: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
44047: ai_p=$ac_ii
44048: else
44049:
44050: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
44051:
44052: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
44053: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
44054: fi
44055:
44056:
44057: if test "$ext_shared" = "yes"; then
44058: LDFLAGS="-L$ai_p $LDFLAGS"
44059: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
44060: else
44061:
44062:
44063:
44064: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
44065:
44066: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
44067: if test -n "$unique" && test "`eval $cmd`" = "" ; then
44068: eval "LIBPATH$unique=set"
44069:
44070: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
44071: LDFLAGS="$LDFLAGS -L$ai_p"
44072: PHP_RPATHS="$PHP_RPATHS $ai_p"
44073:
44074: fi
44075:
44076:
44077: fi
44078:
44079: fi
44080:
44081: ;;
44082: esac
44083: done
44084:
44085: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageCreateFromJpeg in -lgd" >&5
44086: $as_echo_n "checking for gdImageCreateFromJpeg in -lgd... " >&6; }
44087: if ${ac_cv_lib_gd_gdImageCreateFromJpeg+:} false; then :
44088: $as_echo_n "(cached) " >&6
44089: else
44090: ac_check_lib_save_LIBS=$LIBS
44091: LIBS="-lgd $LIBS"
44092: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44093: /* end confdefs.h. */
44094:
44095: /* Override any GCC internal prototype to avoid an error.
44096: Use char because int might match the return type of a GCC
44097: builtin and then its argument prototype would still apply. */
44098: #ifdef __cplusplus
44099: extern "C"
44100: #endif
44101: char gdImageCreateFromJpeg ();
44102: int
44103: main ()
44104: {
44105: return gdImageCreateFromJpeg ();
44106: ;
44107: return 0;
44108: }
44109: _ACEOF
44110: if ac_fn_c_try_link "$LINENO"; then :
44111: ac_cv_lib_gd_gdImageCreateFromJpeg=yes
44112: else
44113: ac_cv_lib_gd_gdImageCreateFromJpeg=no
44114: fi
44115: rm -f core conftest.err conftest.$ac_objext \
44116: conftest$ac_exeext conftest.$ac_ext
44117: LIBS=$ac_check_lib_save_LIBS
44118: fi
44119: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageCreateFromJpeg" >&5
44120: $as_echo "$ac_cv_lib_gd_gdImageCreateFromJpeg" >&6; }
44121: if test "x$ac_cv_lib_gd_gdImageCreateFromJpeg" = xyes; then :
44122:
44123: LDFLAGS=$save_old_LDFLAGS
44124: ext_shared=$save_ext_shared
44125:
44126: $as_echo "#define HAVE_GD_JPG 1" >>confdefs.h
44127:
44128:
44129: else
44130:
44131: LDFLAGS=$save_old_LDFLAGS
44132: ext_shared=$save_ext_shared
44133: unset ac_cv_lib_gd_gdImageCreateFromJpeg
44134:
44135:
44136: fi
44137:
44138:
44139: save_old_LDFLAGS=$LDFLAGS
44140: ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
44141:
44142: save_ext_shared=$ext_shared
44143: ext_shared=yes
44144:
44145: for ac_i in $ac_stuff; do
44146: case $ac_i in
44147: -pthread)
44148: if test "$ext_shared" = "yes"; then
44149: LDFLAGS="$LDFLAGS -pthread"
44150: else
44151:
44152:
44153: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
44154:
44155: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
44156: if test -n "$unique" && test "`eval $cmd`" = "" ; then
44157: eval "EXTRA_LDFLAGS$unique=set"
44158: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
44159: fi
44160:
44161: fi
44162: ;;
44163: -l*)
44164: ac_ii=`echo $ac_i|cut -c 3-`
44165:
44166:
44167: case $ac_ii in
44168: c|c_r|pthread*) ;;
44169: *)
44170: if test "$ext_shared" = "yes"; then
44171: LDFLAGS="$LDFLAGS -l$ac_ii"
44172: else
44173:
44174:
44175: case $ac_ii in
44176: c|c_r|pthread*) ;;
44177: *)
44178: LIBS="$LIBS -l$ac_ii"
44179: ;;
44180: esac
44181:
44182:
44183: fi
44184: ;;
44185: esac
44186:
44187:
44188: ;;
44189: -L*)
44190: ac_ii=`echo $ac_i|cut -c 3-`
44191:
44192: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
44193:
44194: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
44195: ai_p=$ac_ii
44196: else
44197:
44198: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
44199:
44200: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
44201: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
44202: fi
44203:
44204:
44205: if test "$ext_shared" = "yes"; then
44206: LDFLAGS="-L$ai_p $LDFLAGS"
44207: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
44208: else
44209:
44210:
44211:
44212: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
44213:
44214: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
44215: if test -n "$unique" && test "`eval $cmd`" = "" ; then
44216: eval "LIBPATH$unique=set"
44217:
44218: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
44219: LDFLAGS="$LDFLAGS -L$ai_p"
44220: PHP_RPATHS="$PHP_RPATHS $ai_p"
44221:
44222: fi
44223:
44224:
44225: fi
44226:
44227: fi
44228:
44229: ;;
44230: esac
44231: done
44232:
44233: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageCreateFromXpm in -lgd" >&5
44234: $as_echo_n "checking for gdImageCreateFromXpm in -lgd... " >&6; }
44235: if ${ac_cv_lib_gd_gdImageCreateFromXpm+:} false; then :
44236: $as_echo_n "(cached) " >&6
44237: else
44238: ac_check_lib_save_LIBS=$LIBS
44239: LIBS="-lgd $LIBS"
44240: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44241: /* end confdefs.h. */
44242:
44243: /* Override any GCC internal prototype to avoid an error.
44244: Use char because int might match the return type of a GCC
44245: builtin and then its argument prototype would still apply. */
44246: #ifdef __cplusplus
44247: extern "C"
44248: #endif
44249: char gdImageCreateFromXpm ();
44250: int
44251: main ()
44252: {
44253: return gdImageCreateFromXpm ();
44254: ;
44255: return 0;
44256: }
44257: _ACEOF
44258: if ac_fn_c_try_link "$LINENO"; then :
44259: ac_cv_lib_gd_gdImageCreateFromXpm=yes
44260: else
44261: ac_cv_lib_gd_gdImageCreateFromXpm=no
44262: fi
44263: rm -f core conftest.err conftest.$ac_objext \
44264: conftest$ac_exeext conftest.$ac_ext
44265: LIBS=$ac_check_lib_save_LIBS
44266: fi
44267: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageCreateFromXpm" >&5
44268: $as_echo "$ac_cv_lib_gd_gdImageCreateFromXpm" >&6; }
44269: if test "x$ac_cv_lib_gd_gdImageCreateFromXpm" = xyes; then :
44270:
44271: LDFLAGS=$save_old_LDFLAGS
44272: ext_shared=$save_ext_shared
44273:
44274: $as_echo "#define HAVE_GD_XPM 1" >>confdefs.h
44275:
44276:
44277: else
44278:
44279: LDFLAGS=$save_old_LDFLAGS
44280: ext_shared=$save_ext_shared
44281: unset ac_cv_lib_gd_gdImageCreateFromXpm
44282:
44283:
44284: fi
44285:
44286:
44287: save_old_LDFLAGS=$LDFLAGS
44288: ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
44289:
44290: save_ext_shared=$ext_shared
44291: ext_shared=yes
44292:
44293: for ac_i in $ac_stuff; do
44294: case $ac_i in
44295: -pthread)
44296: if test "$ext_shared" = "yes"; then
44297: LDFLAGS="$LDFLAGS -pthread"
44298: else
44299:
44300:
44301: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
44302:
44303: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
44304: if test -n "$unique" && test "`eval $cmd`" = "" ; then
44305: eval "EXTRA_LDFLAGS$unique=set"
44306: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
44307: fi
44308:
44309: fi
44310: ;;
44311: -l*)
44312: ac_ii=`echo $ac_i|cut -c 3-`
44313:
44314:
44315: case $ac_ii in
44316: c|c_r|pthread*) ;;
44317: *)
44318: if test "$ext_shared" = "yes"; then
44319: LDFLAGS="$LDFLAGS -l$ac_ii"
44320: else
44321:
44322:
44323: case $ac_ii in
44324: c|c_r|pthread*) ;;
44325: *)
44326: LIBS="$LIBS -l$ac_ii"
44327: ;;
44328: esac
44329:
44330:
44331: fi
44332: ;;
44333: esac
44334:
44335:
44336: ;;
44337: -L*)
44338: ac_ii=`echo $ac_i|cut -c 3-`
44339:
44340: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
44341:
44342: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
44343: ai_p=$ac_ii
44344: else
44345:
44346: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
44347:
44348: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
44349: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
44350: fi
44351:
44352:
44353: if test "$ext_shared" = "yes"; then
44354: LDFLAGS="-L$ai_p $LDFLAGS"
44355: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
44356: else
44357:
44358:
44359:
44360: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
44361:
44362: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
44363: if test -n "$unique" && test "`eval $cmd`" = "" ; then
44364: eval "LIBPATH$unique=set"
44365:
44366: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
44367: LDFLAGS="$LDFLAGS -L$ai_p"
44368: PHP_RPATHS="$PHP_RPATHS $ai_p"
44369:
44370: fi
44371:
44372:
44373: fi
44374:
44375: fi
44376:
44377: ;;
44378: esac
44379: done
44380:
44381: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageCreateFromGd2 in -lgd" >&5
44382: $as_echo_n "checking for gdImageCreateFromGd2 in -lgd... " >&6; }
44383: if ${ac_cv_lib_gd_gdImageCreateFromGd2+:} false; then :
44384: $as_echo_n "(cached) " >&6
44385: else
44386: ac_check_lib_save_LIBS=$LIBS
44387: LIBS="-lgd $LIBS"
44388: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44389: /* end confdefs.h. */
44390:
44391: /* Override any GCC internal prototype to avoid an error.
44392: Use char because int might match the return type of a GCC
44393: builtin and then its argument prototype would still apply. */
44394: #ifdef __cplusplus
44395: extern "C"
44396: #endif
44397: char gdImageCreateFromGd2 ();
44398: int
44399: main ()
44400: {
44401: return gdImageCreateFromGd2 ();
44402: ;
44403: return 0;
44404: }
44405: _ACEOF
44406: if ac_fn_c_try_link "$LINENO"; then :
44407: ac_cv_lib_gd_gdImageCreateFromGd2=yes
44408: else
44409: ac_cv_lib_gd_gdImageCreateFromGd2=no
44410: fi
44411: rm -f core conftest.err conftest.$ac_objext \
44412: conftest$ac_exeext conftest.$ac_ext
44413: LIBS=$ac_check_lib_save_LIBS
44414: fi
44415: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageCreateFromGd2" >&5
44416: $as_echo "$ac_cv_lib_gd_gdImageCreateFromGd2" >&6; }
44417: if test "x$ac_cv_lib_gd_gdImageCreateFromGd2" = xyes; then :
44418:
44419: LDFLAGS=$save_old_LDFLAGS
44420: ext_shared=$save_ext_shared
44421:
44422: $as_echo "#define HAVE_GD_GD2 1" >>confdefs.h
44423:
44424:
44425: else
44426:
44427: LDFLAGS=$save_old_LDFLAGS
44428: ext_shared=$save_ext_shared
44429: unset ac_cv_lib_gd_gdImageCreateFromGd2
44430:
44431:
44432: fi
44433:
44434:
44435: save_old_LDFLAGS=$LDFLAGS
44436: ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
44437:
44438: save_ext_shared=$ext_shared
44439: ext_shared=yes
44440:
44441: for ac_i in $ac_stuff; do
44442: case $ac_i in
44443: -pthread)
44444: if test "$ext_shared" = "yes"; then
44445: LDFLAGS="$LDFLAGS -pthread"
44446: else
44447:
44448:
44449: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
44450:
44451: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
44452: if test -n "$unique" && test "`eval $cmd`" = "" ; then
44453: eval "EXTRA_LDFLAGS$unique=set"
44454: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
44455: fi
44456:
44457: fi
44458: ;;
44459: -l*)
44460: ac_ii=`echo $ac_i|cut -c 3-`
44461:
44462:
44463: case $ac_ii in
44464: c|c_r|pthread*) ;;
44465: *)
44466: if test "$ext_shared" = "yes"; then
44467: LDFLAGS="$LDFLAGS -l$ac_ii"
44468: else
44469:
44470:
44471: case $ac_ii in
44472: c|c_r|pthread*) ;;
44473: *)
44474: LIBS="$LIBS -l$ac_ii"
44475: ;;
44476: esac
44477:
44478:
44479: fi
44480: ;;
44481: esac
44482:
44483:
44484: ;;
44485: -L*)
44486: ac_ii=`echo $ac_i|cut -c 3-`
44487:
44488: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
44489:
44490: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
44491: ai_p=$ac_ii
44492: else
44493:
44494: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
44495:
44496: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
44497: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
44498: fi
44499:
44500:
44501: if test "$ext_shared" = "yes"; then
44502: LDFLAGS="-L$ai_p $LDFLAGS"
44503: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
44504: else
44505:
44506:
44507:
44508: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
44509:
44510: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
44511: if test -n "$unique" && test "`eval $cmd`" = "" ; then
44512: eval "LIBPATH$unique=set"
44513:
44514: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
44515: LDFLAGS="$LDFLAGS -L$ai_p"
44516: PHP_RPATHS="$PHP_RPATHS $ai_p"
44517:
44518: fi
44519:
44520:
44521: fi
44522:
44523: fi
44524:
44525: ;;
44526: esac
44527: done
44528:
44529: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageCreateTrueColor in -lgd" >&5
44530: $as_echo_n "checking for gdImageCreateTrueColor in -lgd... " >&6; }
44531: if ${ac_cv_lib_gd_gdImageCreateTrueColor+:} false; then :
44532: $as_echo_n "(cached) " >&6
44533: else
44534: ac_check_lib_save_LIBS=$LIBS
44535: LIBS="-lgd $LIBS"
44536: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44537: /* end confdefs.h. */
44538:
44539: /* Override any GCC internal prototype to avoid an error.
44540: Use char because int might match the return type of a GCC
44541: builtin and then its argument prototype would still apply. */
44542: #ifdef __cplusplus
44543: extern "C"
44544: #endif
44545: char gdImageCreateTrueColor ();
44546: int
44547: main ()
44548: {
44549: return gdImageCreateTrueColor ();
44550: ;
44551: return 0;
44552: }
44553: _ACEOF
44554: if ac_fn_c_try_link "$LINENO"; then :
44555: ac_cv_lib_gd_gdImageCreateTrueColor=yes
44556: else
44557: ac_cv_lib_gd_gdImageCreateTrueColor=no
44558: fi
44559: rm -f core conftest.err conftest.$ac_objext \
44560: conftest$ac_exeext conftest.$ac_ext
44561: LIBS=$ac_check_lib_save_LIBS
44562: fi
44563: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageCreateTrueColor" >&5
44564: $as_echo "$ac_cv_lib_gd_gdImageCreateTrueColor" >&6; }
44565: if test "x$ac_cv_lib_gd_gdImageCreateTrueColor" = xyes; then :
44566:
44567: LDFLAGS=$save_old_LDFLAGS
44568: ext_shared=$save_ext_shared
44569:
44570: $as_echo "#define HAVE_LIBGD20 1" >>confdefs.h
44571:
44572:
44573: else
44574:
44575: LDFLAGS=$save_old_LDFLAGS
44576: ext_shared=$save_ext_shared
44577: unset ac_cv_lib_gd_gdImageCreateTrueColor
44578:
44579:
44580: fi
44581:
44582:
44583: save_old_LDFLAGS=$LDFLAGS
44584: ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
44585:
44586: save_ext_shared=$ext_shared
44587: ext_shared=yes
44588:
44589: for ac_i in $ac_stuff; do
44590: case $ac_i in
44591: -pthread)
44592: if test "$ext_shared" = "yes"; then
44593: LDFLAGS="$LDFLAGS -pthread"
44594: else
44595:
44596:
44597: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
44598:
44599: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
44600: if test -n "$unique" && test "`eval $cmd`" = "" ; then
44601: eval "EXTRA_LDFLAGS$unique=set"
44602: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
44603: fi
44604:
44605: fi
44606: ;;
44607: -l*)
44608: ac_ii=`echo $ac_i|cut -c 3-`
44609:
44610:
44611: case $ac_ii in
44612: c|c_r|pthread*) ;;
44613: *)
44614: if test "$ext_shared" = "yes"; then
44615: LDFLAGS="$LDFLAGS -l$ac_ii"
44616: else
44617:
44618:
44619: case $ac_ii in
44620: c|c_r|pthread*) ;;
44621: *)
44622: LIBS="$LIBS -l$ac_ii"
44623: ;;
44624: esac
44625:
44626:
44627: fi
44628: ;;
44629: esac
44630:
44631:
44632: ;;
44633: -L*)
44634: ac_ii=`echo $ac_i|cut -c 3-`
44635:
44636: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
44637:
44638: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
44639: ai_p=$ac_ii
44640: else
44641:
44642: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
44643:
44644: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
44645: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
44646: fi
44647:
44648:
44649: if test "$ext_shared" = "yes"; then
44650: LDFLAGS="-L$ai_p $LDFLAGS"
44651: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
44652: else
44653:
44654:
44655:
44656: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
44657:
44658: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
44659: if test -n "$unique" && test "`eval $cmd`" = "" ; then
44660: eval "LIBPATH$unique=set"
44661:
44662: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
44663: LDFLAGS="$LDFLAGS -L$ai_p"
44664: PHP_RPATHS="$PHP_RPATHS $ai_p"
44665:
44666: fi
44667:
44668:
44669: fi
44670:
44671: fi
44672:
44673: ;;
44674: esac
44675: done
44676:
44677: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageSetTile in -lgd" >&5
44678: $as_echo_n "checking for gdImageSetTile in -lgd... " >&6; }
44679: if ${ac_cv_lib_gd_gdImageSetTile+:} false; then :
44680: $as_echo_n "(cached) " >&6
44681: else
44682: ac_check_lib_save_LIBS=$LIBS
44683: LIBS="-lgd $LIBS"
44684: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44685: /* end confdefs.h. */
44686:
44687: /* Override any GCC internal prototype to avoid an error.
44688: Use char because int might match the return type of a GCC
44689: builtin and then its argument prototype would still apply. */
44690: #ifdef __cplusplus
44691: extern "C"
44692: #endif
44693: char gdImageSetTile ();
44694: int
44695: main ()
44696: {
44697: return gdImageSetTile ();
44698: ;
44699: return 0;
44700: }
44701: _ACEOF
44702: if ac_fn_c_try_link "$LINENO"; then :
44703: ac_cv_lib_gd_gdImageSetTile=yes
44704: else
44705: ac_cv_lib_gd_gdImageSetTile=no
44706: fi
44707: rm -f core conftest.err conftest.$ac_objext \
44708: conftest$ac_exeext conftest.$ac_ext
44709: LIBS=$ac_check_lib_save_LIBS
44710: fi
44711: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageSetTile" >&5
44712: $as_echo "$ac_cv_lib_gd_gdImageSetTile" >&6; }
44713: if test "x$ac_cv_lib_gd_gdImageSetTile" = xyes; then :
44714:
44715: LDFLAGS=$save_old_LDFLAGS
44716: ext_shared=$save_ext_shared
44717:
44718: $as_echo "#define HAVE_GD_IMAGESETTILE 1" >>confdefs.h
44719:
44720:
44721: else
44722:
44723: LDFLAGS=$save_old_LDFLAGS
44724: ext_shared=$save_ext_shared
44725: unset ac_cv_lib_gd_gdImageSetTile
44726:
44727:
44728: fi
44729:
44730:
44731: save_old_LDFLAGS=$LDFLAGS
44732: ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
44733:
44734: save_ext_shared=$ext_shared
44735: ext_shared=yes
44736:
44737: for ac_i in $ac_stuff; do
44738: case $ac_i in
44739: -pthread)
44740: if test "$ext_shared" = "yes"; then
44741: LDFLAGS="$LDFLAGS -pthread"
44742: else
44743:
44744:
44745: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
44746:
44747: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
44748: if test -n "$unique" && test "`eval $cmd`" = "" ; then
44749: eval "EXTRA_LDFLAGS$unique=set"
44750: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
44751: fi
44752:
44753: fi
44754: ;;
44755: -l*)
44756: ac_ii=`echo $ac_i|cut -c 3-`
44757:
44758:
44759: case $ac_ii in
44760: c|c_r|pthread*) ;;
44761: *)
44762: if test "$ext_shared" = "yes"; then
44763: LDFLAGS="$LDFLAGS -l$ac_ii"
44764: else
44765:
44766:
44767: case $ac_ii in
44768: c|c_r|pthread*) ;;
44769: *)
44770: LIBS="$LIBS -l$ac_ii"
44771: ;;
44772: esac
44773:
44774:
44775: fi
44776: ;;
44777: esac
44778:
44779:
44780: ;;
44781: -L*)
44782: ac_ii=`echo $ac_i|cut -c 3-`
44783:
44784: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
44785:
44786: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
44787: ai_p=$ac_ii
44788: else
44789:
44790: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
44791:
44792: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
44793: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
44794: fi
44795:
44796:
44797: if test "$ext_shared" = "yes"; then
44798: LDFLAGS="-L$ai_p $LDFLAGS"
44799: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
44800: else
44801:
44802:
44803:
44804: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
44805:
44806: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
44807: if test -n "$unique" && test "`eval $cmd`" = "" ; then
44808: eval "LIBPATH$unique=set"
44809:
44810: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
44811: LDFLAGS="$LDFLAGS -L$ai_p"
44812: PHP_RPATHS="$PHP_RPATHS $ai_p"
44813:
44814: fi
44815:
44816:
44817: fi
44818:
44819: fi
44820:
44821: ;;
44822: esac
44823: done
44824:
44825: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageEllipse in -lgd" >&5
44826: $as_echo_n "checking for gdImageEllipse in -lgd... " >&6; }
44827: if ${ac_cv_lib_gd_gdImageEllipse+:} false; then :
44828: $as_echo_n "(cached) " >&6
44829: else
44830: ac_check_lib_save_LIBS=$LIBS
44831: LIBS="-lgd $LIBS"
44832: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44833: /* end confdefs.h. */
44834:
44835: /* Override any GCC internal prototype to avoid an error.
44836: Use char because int might match the return type of a GCC
44837: builtin and then its argument prototype would still apply. */
44838: #ifdef __cplusplus
44839: extern "C"
44840: #endif
44841: char gdImageEllipse ();
44842: int
44843: main ()
44844: {
44845: return gdImageEllipse ();
44846: ;
44847: return 0;
44848: }
44849: _ACEOF
44850: if ac_fn_c_try_link "$LINENO"; then :
44851: ac_cv_lib_gd_gdImageEllipse=yes
44852: else
44853: ac_cv_lib_gd_gdImageEllipse=no
44854: fi
44855: rm -f core conftest.err conftest.$ac_objext \
44856: conftest$ac_exeext conftest.$ac_ext
44857: LIBS=$ac_check_lib_save_LIBS
44858: fi
44859: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageEllipse" >&5
44860: $as_echo "$ac_cv_lib_gd_gdImageEllipse" >&6; }
44861: if test "x$ac_cv_lib_gd_gdImageEllipse" = xyes; then :
44862:
44863: LDFLAGS=$save_old_LDFLAGS
44864: ext_shared=$save_ext_shared
44865:
44866: $as_echo "#define HAVE_GD_IMAGEELLIPSE 1" >>confdefs.h
44867:
44868:
44869: else
44870:
44871: LDFLAGS=$save_old_LDFLAGS
44872: ext_shared=$save_ext_shared
44873: unset ac_cv_lib_gd_gdImageEllipse
44874:
44875:
44876: fi
44877:
44878:
44879: save_old_LDFLAGS=$LDFLAGS
44880: ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
44881:
44882: save_ext_shared=$ext_shared
44883: ext_shared=yes
44884:
44885: for ac_i in $ac_stuff; do
44886: case $ac_i in
44887: -pthread)
44888: if test "$ext_shared" = "yes"; then
44889: LDFLAGS="$LDFLAGS -pthread"
44890: else
44891:
44892:
44893: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
44894:
44895: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
44896: if test -n "$unique" && test "`eval $cmd`" = "" ; then
44897: eval "EXTRA_LDFLAGS$unique=set"
44898: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
44899: fi
44900:
44901: fi
44902: ;;
44903: -l*)
44904: ac_ii=`echo $ac_i|cut -c 3-`
44905:
44906:
44907: case $ac_ii in
44908: c|c_r|pthread*) ;;
44909: *)
44910: if test "$ext_shared" = "yes"; then
44911: LDFLAGS="$LDFLAGS -l$ac_ii"
44912: else
44913:
44914:
44915: case $ac_ii in
44916: c|c_r|pthread*) ;;
44917: *)
44918: LIBS="$LIBS -l$ac_ii"
44919: ;;
44920: esac
44921:
44922:
44923: fi
44924: ;;
44925: esac
44926:
44927:
44928: ;;
44929: -L*)
44930: ac_ii=`echo $ac_i|cut -c 3-`
44931:
44932: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
44933:
44934: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
44935: ai_p=$ac_ii
44936: else
44937:
44938: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
44939:
44940: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
44941: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
44942: fi
44943:
44944:
44945: if test "$ext_shared" = "yes"; then
44946: LDFLAGS="-L$ai_p $LDFLAGS"
44947: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
44948: else
44949:
44950:
44951:
44952: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
44953:
44954: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
44955: if test -n "$unique" && test "`eval $cmd`" = "" ; then
44956: eval "LIBPATH$unique=set"
44957:
44958: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
44959: LDFLAGS="$LDFLAGS -L$ai_p"
44960: PHP_RPATHS="$PHP_RPATHS $ai_p"
44961:
44962: fi
44963:
44964:
44965: fi
44966:
44967: fi
44968:
44969: ;;
44970: esac
44971: done
44972:
44973: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageSetBrush in -lgd" >&5
44974: $as_echo_n "checking for gdImageSetBrush in -lgd... " >&6; }
44975: if ${ac_cv_lib_gd_gdImageSetBrush+:} false; then :
44976: $as_echo_n "(cached) " >&6
44977: else
44978: ac_check_lib_save_LIBS=$LIBS
44979: LIBS="-lgd $LIBS"
44980: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44981: /* end confdefs.h. */
44982:
44983: /* Override any GCC internal prototype to avoid an error.
44984: Use char because int might match the return type of a GCC
44985: builtin and then its argument prototype would still apply. */
44986: #ifdef __cplusplus
44987: extern "C"
44988: #endif
44989: char gdImageSetBrush ();
44990: int
44991: main ()
44992: {
44993: return gdImageSetBrush ();
44994: ;
44995: return 0;
44996: }
44997: _ACEOF
44998: if ac_fn_c_try_link "$LINENO"; then :
44999: ac_cv_lib_gd_gdImageSetBrush=yes
45000: else
45001: ac_cv_lib_gd_gdImageSetBrush=no
45002: fi
45003: rm -f core conftest.err conftest.$ac_objext \
45004: conftest$ac_exeext conftest.$ac_ext
45005: LIBS=$ac_check_lib_save_LIBS
45006: fi
45007: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageSetBrush" >&5
45008: $as_echo "$ac_cv_lib_gd_gdImageSetBrush" >&6; }
45009: if test "x$ac_cv_lib_gd_gdImageSetBrush" = xyes; then :
45010:
45011: LDFLAGS=$save_old_LDFLAGS
45012: ext_shared=$save_ext_shared
45013:
45014: $as_echo "#define HAVE_GD_IMAGESETBRUSH 1" >>confdefs.h
45015:
45016:
45017: else
45018:
45019: LDFLAGS=$save_old_LDFLAGS
45020: ext_shared=$save_ext_shared
45021: unset ac_cv_lib_gd_gdImageSetBrush
45022:
45023:
45024: fi
45025:
45026:
45027: save_old_LDFLAGS=$LDFLAGS
45028: ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
45029:
45030: save_ext_shared=$ext_shared
45031: ext_shared=yes
45032:
45033: for ac_i in $ac_stuff; do
45034: case $ac_i in
45035: -pthread)
45036: if test "$ext_shared" = "yes"; then
45037: LDFLAGS="$LDFLAGS -pthread"
45038: else
45039:
45040:
45041: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
45042:
45043: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
45044: if test -n "$unique" && test "`eval $cmd`" = "" ; then
45045: eval "EXTRA_LDFLAGS$unique=set"
45046: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
45047: fi
45048:
45049: fi
45050: ;;
45051: -l*)
45052: ac_ii=`echo $ac_i|cut -c 3-`
45053:
45054:
45055: case $ac_ii in
45056: c|c_r|pthread*) ;;
45057: *)
45058: if test "$ext_shared" = "yes"; then
45059: LDFLAGS="$LDFLAGS -l$ac_ii"
45060: else
45061:
45062:
45063: case $ac_ii in
45064: c|c_r|pthread*) ;;
45065: *)
45066: LIBS="$LIBS -l$ac_ii"
45067: ;;
45068: esac
45069:
45070:
45071: fi
45072: ;;
45073: esac
45074:
45075:
45076: ;;
45077: -L*)
45078: ac_ii=`echo $ac_i|cut -c 3-`
45079:
45080: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
45081:
45082: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
45083: ai_p=$ac_ii
45084: else
45085:
45086: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
45087:
45088: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
45089: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
45090: fi
45091:
45092:
45093: if test "$ext_shared" = "yes"; then
45094: LDFLAGS="-L$ai_p $LDFLAGS"
45095: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
45096: else
45097:
45098:
45099:
45100: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
45101:
45102: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
45103: if test -n "$unique" && test "`eval $cmd`" = "" ; then
45104: eval "LIBPATH$unique=set"
45105:
45106: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
45107: LDFLAGS="$LDFLAGS -L$ai_p"
45108: PHP_RPATHS="$PHP_RPATHS $ai_p"
45109:
45110: fi
45111:
45112:
45113: fi
45114:
45115: fi
45116:
45117: ;;
45118: esac
45119: done
45120:
45121: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageStringTTF in -lgd" >&5
45122: $as_echo_n "checking for gdImageStringTTF in -lgd... " >&6; }
45123: if ${ac_cv_lib_gd_gdImageStringTTF+:} false; then :
45124: $as_echo_n "(cached) " >&6
45125: else
45126: ac_check_lib_save_LIBS=$LIBS
45127: LIBS="-lgd $LIBS"
45128: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45129: /* end confdefs.h. */
45130:
45131: /* Override any GCC internal prototype to avoid an error.
45132: Use char because int might match the return type of a GCC
45133: builtin and then its argument prototype would still apply. */
45134: #ifdef __cplusplus
45135: extern "C"
45136: #endif
45137: char gdImageStringTTF ();
45138: int
45139: main ()
45140: {
45141: return gdImageStringTTF ();
45142: ;
45143: return 0;
45144: }
45145: _ACEOF
45146: if ac_fn_c_try_link "$LINENO"; then :
45147: ac_cv_lib_gd_gdImageStringTTF=yes
45148: else
45149: ac_cv_lib_gd_gdImageStringTTF=no
45150: fi
45151: rm -f core conftest.err conftest.$ac_objext \
45152: conftest$ac_exeext conftest.$ac_ext
45153: LIBS=$ac_check_lib_save_LIBS
45154: fi
45155: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageStringTTF" >&5
45156: $as_echo "$ac_cv_lib_gd_gdImageStringTTF" >&6; }
45157: if test "x$ac_cv_lib_gd_gdImageStringTTF" = xyes; then :
45158:
45159: LDFLAGS=$save_old_LDFLAGS
45160: ext_shared=$save_ext_shared
45161:
45162: $as_echo "#define HAVE_GD_STRINGTTF 1" >>confdefs.h
45163:
45164:
45165: else
45166:
45167: LDFLAGS=$save_old_LDFLAGS
45168: ext_shared=$save_ext_shared
45169: unset ac_cv_lib_gd_gdImageStringTTF
45170:
45171:
45172: fi
45173:
45174:
45175: save_old_LDFLAGS=$LDFLAGS
45176: ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
45177:
45178: save_ext_shared=$ext_shared
45179: ext_shared=yes
45180:
45181: for ac_i in $ac_stuff; do
45182: case $ac_i in
45183: -pthread)
45184: if test "$ext_shared" = "yes"; then
45185: LDFLAGS="$LDFLAGS -pthread"
45186: else
45187:
45188:
45189: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
45190:
45191: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
45192: if test -n "$unique" && test "`eval $cmd`" = "" ; then
45193: eval "EXTRA_LDFLAGS$unique=set"
45194: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
45195: fi
45196:
45197: fi
45198: ;;
45199: -l*)
45200: ac_ii=`echo $ac_i|cut -c 3-`
45201:
45202:
45203: case $ac_ii in
45204: c|c_r|pthread*) ;;
45205: *)
45206: if test "$ext_shared" = "yes"; then
45207: LDFLAGS="$LDFLAGS -l$ac_ii"
45208: else
45209:
45210:
45211: case $ac_ii in
45212: c|c_r|pthread*) ;;
45213: *)
45214: LIBS="$LIBS -l$ac_ii"
45215: ;;
45216: esac
45217:
45218:
45219: fi
45220: ;;
45221: esac
45222:
45223:
45224: ;;
45225: -L*)
45226: ac_ii=`echo $ac_i|cut -c 3-`
45227:
45228: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
45229:
45230: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
45231: ai_p=$ac_ii
45232: else
45233:
45234: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
45235:
45236: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
45237: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
45238: fi
45239:
45240:
45241: if test "$ext_shared" = "yes"; then
45242: LDFLAGS="-L$ai_p $LDFLAGS"
45243: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
45244: else
45245:
45246:
45247:
45248: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
45249:
45250: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
45251: if test -n "$unique" && test "`eval $cmd`" = "" ; then
45252: eval "LIBPATH$unique=set"
45253:
45254: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
45255: LDFLAGS="$LDFLAGS -L$ai_p"
45256: PHP_RPATHS="$PHP_RPATHS $ai_p"
45257:
45258: fi
45259:
45260:
45261: fi
45262:
45263: fi
45264:
45265: ;;
45266: esac
45267: done
45268:
45269: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageStringFT in -lgd" >&5
45270: $as_echo_n "checking for gdImageStringFT in -lgd... " >&6; }
45271: if ${ac_cv_lib_gd_gdImageStringFT+:} false; then :
45272: $as_echo_n "(cached) " >&6
45273: else
45274: ac_check_lib_save_LIBS=$LIBS
45275: LIBS="-lgd $LIBS"
45276: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45277: /* end confdefs.h. */
45278:
45279: /* Override any GCC internal prototype to avoid an error.
45280: Use char because int might match the return type of a GCC
45281: builtin and then its argument prototype would still apply. */
45282: #ifdef __cplusplus
45283: extern "C"
45284: #endif
45285: char gdImageStringFT ();
45286: int
45287: main ()
45288: {
45289: return gdImageStringFT ();
45290: ;
45291: return 0;
45292: }
45293: _ACEOF
45294: if ac_fn_c_try_link "$LINENO"; then :
45295: ac_cv_lib_gd_gdImageStringFT=yes
45296: else
45297: ac_cv_lib_gd_gdImageStringFT=no
45298: fi
45299: rm -f core conftest.err conftest.$ac_objext \
45300: conftest$ac_exeext conftest.$ac_ext
45301: LIBS=$ac_check_lib_save_LIBS
45302: fi
45303: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageStringFT" >&5
45304: $as_echo "$ac_cv_lib_gd_gdImageStringFT" >&6; }
45305: if test "x$ac_cv_lib_gd_gdImageStringFT" = xyes; then :
45306:
45307: LDFLAGS=$save_old_LDFLAGS
45308: ext_shared=$save_ext_shared
45309:
45310: $as_echo "#define HAVE_GD_STRINGFT 1" >>confdefs.h
45311:
45312:
45313: else
45314:
45315: LDFLAGS=$save_old_LDFLAGS
45316: ext_shared=$save_ext_shared
45317: unset ac_cv_lib_gd_gdImageStringFT
45318:
45319:
45320: fi
45321:
45322:
45323: save_old_LDFLAGS=$LDFLAGS
45324: ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
45325:
45326: save_ext_shared=$ext_shared
45327: ext_shared=yes
45328:
45329: for ac_i in $ac_stuff; do
45330: case $ac_i in
45331: -pthread)
45332: if test "$ext_shared" = "yes"; then
45333: LDFLAGS="$LDFLAGS -pthread"
45334: else
45335:
45336:
45337: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
45338:
45339: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
45340: if test -n "$unique" && test "`eval $cmd`" = "" ; then
45341: eval "EXTRA_LDFLAGS$unique=set"
45342: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
45343: fi
45344:
45345: fi
45346: ;;
45347: -l*)
45348: ac_ii=`echo $ac_i|cut -c 3-`
45349:
45350:
45351: case $ac_ii in
45352: c|c_r|pthread*) ;;
45353: *)
45354: if test "$ext_shared" = "yes"; then
45355: LDFLAGS="$LDFLAGS -l$ac_ii"
45356: else
45357:
45358:
45359: case $ac_ii in
45360: c|c_r|pthread*) ;;
45361: *)
45362: LIBS="$LIBS -l$ac_ii"
45363: ;;
45364: esac
45365:
45366:
45367: fi
45368: ;;
45369: esac
45370:
45371:
45372: ;;
45373: -L*)
45374: ac_ii=`echo $ac_i|cut -c 3-`
45375:
45376: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
45377:
45378: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
45379: ai_p=$ac_ii
45380: else
45381:
45382: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
45383:
45384: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
45385: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
45386: fi
45387:
45388:
45389: if test "$ext_shared" = "yes"; then
45390: LDFLAGS="-L$ai_p $LDFLAGS"
45391: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
45392: else
45393:
45394:
45395:
45396: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
45397:
45398: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
45399: if test -n "$unique" && test "`eval $cmd`" = "" ; then
45400: eval "LIBPATH$unique=set"
45401:
45402: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
45403: LDFLAGS="$LDFLAGS -L$ai_p"
45404: PHP_RPATHS="$PHP_RPATHS $ai_p"
45405:
45406: fi
45407:
45408:
45409: fi
45410:
45411: fi
45412:
45413: ;;
45414: esac
45415: done
45416:
45417: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageStringFTEx in -lgd" >&5
45418: $as_echo_n "checking for gdImageStringFTEx in -lgd... " >&6; }
45419: if ${ac_cv_lib_gd_gdImageStringFTEx+:} false; then :
45420: $as_echo_n "(cached) " >&6
45421: else
45422: ac_check_lib_save_LIBS=$LIBS
45423: LIBS="-lgd $LIBS"
45424: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45425: /* end confdefs.h. */
45426:
45427: /* Override any GCC internal prototype to avoid an error.
45428: Use char because int might match the return type of a GCC
45429: builtin and then its argument prototype would still apply. */
45430: #ifdef __cplusplus
45431: extern "C"
45432: #endif
45433: char gdImageStringFTEx ();
45434: int
45435: main ()
45436: {
45437: return gdImageStringFTEx ();
45438: ;
45439: return 0;
45440: }
45441: _ACEOF
45442: if ac_fn_c_try_link "$LINENO"; then :
45443: ac_cv_lib_gd_gdImageStringFTEx=yes
45444: else
45445: ac_cv_lib_gd_gdImageStringFTEx=no
45446: fi
45447: rm -f core conftest.err conftest.$ac_objext \
45448: conftest$ac_exeext conftest.$ac_ext
45449: LIBS=$ac_check_lib_save_LIBS
45450: fi
45451: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageStringFTEx" >&5
45452: $as_echo "$ac_cv_lib_gd_gdImageStringFTEx" >&6; }
45453: if test "x$ac_cv_lib_gd_gdImageStringFTEx" = xyes; then :
45454:
45455: LDFLAGS=$save_old_LDFLAGS
45456: ext_shared=$save_ext_shared
45457:
45458: $as_echo "#define HAVE_GD_STRINGFTEX 1" >>confdefs.h
45459:
45460:
45461: else
45462:
45463: LDFLAGS=$save_old_LDFLAGS
45464: ext_shared=$save_ext_shared
45465: unset ac_cv_lib_gd_gdImageStringFTEx
45466:
45467:
45468: fi
45469:
45470:
45471: save_old_LDFLAGS=$LDFLAGS
45472: ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
45473:
45474: save_ext_shared=$ext_shared
45475: ext_shared=yes
45476:
45477: for ac_i in $ac_stuff; do
45478: case $ac_i in
45479: -pthread)
45480: if test "$ext_shared" = "yes"; then
45481: LDFLAGS="$LDFLAGS -pthread"
45482: else
45483:
45484:
45485: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
45486:
45487: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
45488: if test -n "$unique" && test "`eval $cmd`" = "" ; then
45489: eval "EXTRA_LDFLAGS$unique=set"
45490: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
45491: fi
45492:
45493: fi
45494: ;;
45495: -l*)
45496: ac_ii=`echo $ac_i|cut -c 3-`
45497:
45498:
45499: case $ac_ii in
45500: c|c_r|pthread*) ;;
45501: *)
45502: if test "$ext_shared" = "yes"; then
45503: LDFLAGS="$LDFLAGS -l$ac_ii"
45504: else
45505:
45506:
45507: case $ac_ii in
45508: c|c_r|pthread*) ;;
45509: *)
45510: LIBS="$LIBS -l$ac_ii"
45511: ;;
45512: esac
45513:
45514:
45515: fi
45516: ;;
45517: esac
45518:
45519:
45520: ;;
45521: -L*)
45522: ac_ii=`echo $ac_i|cut -c 3-`
45523:
45524: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
45525:
45526: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
45527: ai_p=$ac_ii
45528: else
45529:
45530: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
45531:
45532: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
45533: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
45534: fi
45535:
45536:
45537: if test "$ext_shared" = "yes"; then
45538: LDFLAGS="-L$ai_p $LDFLAGS"
45539: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
45540: else
45541:
45542:
45543:
45544: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
45545:
45546: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
45547: if test -n "$unique" && test "`eval $cmd`" = "" ; then
45548: eval "LIBPATH$unique=set"
45549:
45550: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
45551: LDFLAGS="$LDFLAGS -L$ai_p"
45552: PHP_RPATHS="$PHP_RPATHS $ai_p"
45553:
45554: fi
45555:
45556:
45557: fi
45558:
45559: fi
45560:
45561: ;;
45562: esac
45563: done
45564:
45565: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageColorClosestHWB in -lgd" >&5
45566: $as_echo_n "checking for gdImageColorClosestHWB in -lgd... " >&6; }
45567: if ${ac_cv_lib_gd_gdImageColorClosestHWB+:} false; then :
45568: $as_echo_n "(cached) " >&6
45569: else
45570: ac_check_lib_save_LIBS=$LIBS
45571: LIBS="-lgd $LIBS"
45572: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45573: /* end confdefs.h. */
45574:
45575: /* Override any GCC internal prototype to avoid an error.
45576: Use char because int might match the return type of a GCC
45577: builtin and then its argument prototype would still apply. */
45578: #ifdef __cplusplus
45579: extern "C"
45580: #endif
45581: char gdImageColorClosestHWB ();
45582: int
45583: main ()
45584: {
45585: return gdImageColorClosestHWB ();
45586: ;
45587: return 0;
45588: }
45589: _ACEOF
45590: if ac_fn_c_try_link "$LINENO"; then :
45591: ac_cv_lib_gd_gdImageColorClosestHWB=yes
45592: else
45593: ac_cv_lib_gd_gdImageColorClosestHWB=no
45594: fi
45595: rm -f core conftest.err conftest.$ac_objext \
45596: conftest$ac_exeext conftest.$ac_ext
45597: LIBS=$ac_check_lib_save_LIBS
45598: fi
45599: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageColorClosestHWB" >&5
45600: $as_echo "$ac_cv_lib_gd_gdImageColorClosestHWB" >&6; }
45601: if test "x$ac_cv_lib_gd_gdImageColorClosestHWB" = xyes; then :
45602:
45603: LDFLAGS=$save_old_LDFLAGS
45604: ext_shared=$save_ext_shared
45605:
45606: $as_echo "#define HAVE_COLORCLOSESTHWB 1" >>confdefs.h
45607:
45608:
45609: else
45610:
45611: LDFLAGS=$save_old_LDFLAGS
45612: ext_shared=$save_ext_shared
45613: unset ac_cv_lib_gd_gdImageColorClosestHWB
45614:
45615:
45616: fi
45617:
45618:
45619: save_old_LDFLAGS=$LDFLAGS
45620: ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
45621:
45622: save_ext_shared=$ext_shared
45623: ext_shared=yes
45624:
45625: for ac_i in $ac_stuff; do
45626: case $ac_i in
45627: -pthread)
45628: if test "$ext_shared" = "yes"; then
45629: LDFLAGS="$LDFLAGS -pthread"
45630: else
45631:
45632:
45633: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
45634:
45635: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
45636: if test -n "$unique" && test "`eval $cmd`" = "" ; then
45637: eval "EXTRA_LDFLAGS$unique=set"
45638: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
45639: fi
45640:
45641: fi
45642: ;;
45643: -l*)
45644: ac_ii=`echo $ac_i|cut -c 3-`
45645:
45646:
45647: case $ac_ii in
45648: c|c_r|pthread*) ;;
45649: *)
45650: if test "$ext_shared" = "yes"; then
45651: LDFLAGS="$LDFLAGS -l$ac_ii"
45652: else
45653:
45654:
45655: case $ac_ii in
45656: c|c_r|pthread*) ;;
45657: *)
45658: LIBS="$LIBS -l$ac_ii"
45659: ;;
45660: esac
45661:
45662:
45663: fi
45664: ;;
45665: esac
45666:
45667:
45668: ;;
45669: -L*)
45670: ac_ii=`echo $ac_i|cut -c 3-`
45671:
45672: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
45673:
45674: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
45675: ai_p=$ac_ii
45676: else
45677:
45678: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
45679:
45680: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
45681: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
45682: fi
45683:
45684:
45685: if test "$ext_shared" = "yes"; then
45686: LDFLAGS="-L$ai_p $LDFLAGS"
45687: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
45688: else
45689:
45690:
45691:
45692: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
45693:
45694: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
45695: if test -n "$unique" && test "`eval $cmd`" = "" ; then
45696: eval "LIBPATH$unique=set"
45697:
45698: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
45699: LDFLAGS="$LDFLAGS -L$ai_p"
45700: PHP_RPATHS="$PHP_RPATHS $ai_p"
45701:
45702: fi
45703:
45704:
45705: fi
45706:
45707: fi
45708:
45709: ;;
45710: esac
45711: done
45712:
45713: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageColorResolve in -lgd" >&5
45714: $as_echo_n "checking for gdImageColorResolve in -lgd... " >&6; }
45715: if ${ac_cv_lib_gd_gdImageColorResolve+:} false; then :
45716: $as_echo_n "(cached) " >&6
45717: else
45718: ac_check_lib_save_LIBS=$LIBS
45719: LIBS="-lgd $LIBS"
45720: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45721: /* end confdefs.h. */
45722:
45723: /* Override any GCC internal prototype to avoid an error.
45724: Use char because int might match the return type of a GCC
45725: builtin and then its argument prototype would still apply. */
45726: #ifdef __cplusplus
45727: extern "C"
45728: #endif
45729: char gdImageColorResolve ();
45730: int
45731: main ()
45732: {
45733: return gdImageColorResolve ();
45734: ;
45735: return 0;
45736: }
45737: _ACEOF
45738: if ac_fn_c_try_link "$LINENO"; then :
45739: ac_cv_lib_gd_gdImageColorResolve=yes
45740: else
45741: ac_cv_lib_gd_gdImageColorResolve=no
45742: fi
45743: rm -f core conftest.err conftest.$ac_objext \
45744: conftest$ac_exeext conftest.$ac_ext
45745: LIBS=$ac_check_lib_save_LIBS
45746: fi
45747: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageColorResolve" >&5
45748: $as_echo "$ac_cv_lib_gd_gdImageColorResolve" >&6; }
45749: if test "x$ac_cv_lib_gd_gdImageColorResolve" = xyes; then :
45750:
45751: LDFLAGS=$save_old_LDFLAGS
45752: ext_shared=$save_ext_shared
45753:
45754: $as_echo "#define HAVE_GDIMAGECOLORRESOLVE 1" >>confdefs.h
45755:
45756:
45757: else
45758:
45759: LDFLAGS=$save_old_LDFLAGS
45760: ext_shared=$save_ext_shared
45761: unset ac_cv_lib_gd_gdImageColorResolve
45762:
45763:
45764: fi
45765:
45766:
45767: save_old_LDFLAGS=$LDFLAGS
45768: ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
45769:
45770: save_ext_shared=$ext_shared
45771: ext_shared=yes
45772:
45773: for ac_i in $ac_stuff; do
45774: case $ac_i in
45775: -pthread)
45776: if test "$ext_shared" = "yes"; then
45777: LDFLAGS="$LDFLAGS -pthread"
45778: else
45779:
45780:
45781: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
45782:
45783: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
45784: if test -n "$unique" && test "`eval $cmd`" = "" ; then
45785: eval "EXTRA_LDFLAGS$unique=set"
45786: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
45787: fi
45788:
45789: fi
45790: ;;
45791: -l*)
45792: ac_ii=`echo $ac_i|cut -c 3-`
45793:
45794:
45795: case $ac_ii in
45796: c|c_r|pthread*) ;;
45797: *)
45798: if test "$ext_shared" = "yes"; then
45799: LDFLAGS="$LDFLAGS -l$ac_ii"
45800: else
45801:
45802:
45803: case $ac_ii in
45804: c|c_r|pthread*) ;;
45805: *)
45806: LIBS="$LIBS -l$ac_ii"
45807: ;;
45808: esac
45809:
45810:
45811: fi
45812: ;;
45813: esac
45814:
45815:
45816: ;;
45817: -L*)
45818: ac_ii=`echo $ac_i|cut -c 3-`
45819:
45820: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
45821:
45822: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
45823: ai_p=$ac_ii
45824: else
45825:
45826: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
45827:
45828: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
45829: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
45830: fi
45831:
45832:
45833: if test "$ext_shared" = "yes"; then
45834: LDFLAGS="-L$ai_p $LDFLAGS"
45835: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
45836: else
45837:
45838:
45839:
45840: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
45841:
45842: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
45843: if test -n "$unique" && test "`eval $cmd`" = "" ; then
45844: eval "LIBPATH$unique=set"
45845:
45846: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
45847: LDFLAGS="$LDFLAGS -L$ai_p"
45848: PHP_RPATHS="$PHP_RPATHS $ai_p"
45849:
45850: fi
45851:
45852:
45853: fi
45854:
45855: fi
45856:
45857: ;;
45858: esac
45859: done
45860:
45861: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageGifCtx in -lgd" >&5
45862: $as_echo_n "checking for gdImageGifCtx in -lgd... " >&6; }
45863: if ${ac_cv_lib_gd_gdImageGifCtx+:} false; then :
45864: $as_echo_n "(cached) " >&6
45865: else
45866: ac_check_lib_save_LIBS=$LIBS
45867: LIBS="-lgd $LIBS"
45868: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45869: /* end confdefs.h. */
45870:
45871: /* Override any GCC internal prototype to avoid an error.
45872: Use char because int might match the return type of a GCC
45873: builtin and then its argument prototype would still apply. */
45874: #ifdef __cplusplus
45875: extern "C"
45876: #endif
45877: char gdImageGifCtx ();
45878: int
45879: main ()
45880: {
45881: return gdImageGifCtx ();
45882: ;
45883: return 0;
45884: }
45885: _ACEOF
45886: if ac_fn_c_try_link "$LINENO"; then :
45887: ac_cv_lib_gd_gdImageGifCtx=yes
45888: else
45889: ac_cv_lib_gd_gdImageGifCtx=no
45890: fi
45891: rm -f core conftest.err conftest.$ac_objext \
45892: conftest$ac_exeext conftest.$ac_ext
45893: LIBS=$ac_check_lib_save_LIBS
45894: fi
45895: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageGifCtx" >&5
45896: $as_echo "$ac_cv_lib_gd_gdImageGifCtx" >&6; }
45897: if test "x$ac_cv_lib_gd_gdImageGifCtx" = xyes; then :
45898:
45899: LDFLAGS=$save_old_LDFLAGS
45900: ext_shared=$save_ext_shared
45901:
45902: $as_echo "#define HAVE_GD_GIF_CTX 1" >>confdefs.h
45903:
45904:
45905: else
45906:
45907: LDFLAGS=$save_old_LDFLAGS
45908: ext_shared=$save_ext_shared
45909: unset ac_cv_lib_gd_gdImageGifCtx
45910:
45911:
45912: fi
45913:
45914:
45915: save_old_LDFLAGS=$LDFLAGS
45916: ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
45917:
45918: save_ext_shared=$ext_shared
45919: ext_shared=yes
45920:
45921: for ac_i in $ac_stuff; do
45922: case $ac_i in
45923: -pthread)
45924: if test "$ext_shared" = "yes"; then
45925: LDFLAGS="$LDFLAGS -pthread"
45926: else
45927:
45928:
45929: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
45930:
45931: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
45932: if test -n "$unique" && test "`eval $cmd`" = "" ; then
45933: eval "EXTRA_LDFLAGS$unique=set"
45934: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
45935: fi
45936:
45937: fi
45938: ;;
45939: -l*)
45940: ac_ii=`echo $ac_i|cut -c 3-`
45941:
45942:
45943: case $ac_ii in
45944: c|c_r|pthread*) ;;
45945: *)
45946: if test "$ext_shared" = "yes"; then
45947: LDFLAGS="$LDFLAGS -l$ac_ii"
45948: else
45949:
45950:
45951: case $ac_ii in
45952: c|c_r|pthread*) ;;
45953: *)
45954: LIBS="$LIBS -l$ac_ii"
45955: ;;
45956: esac
45957:
45958:
45959: fi
45960: ;;
45961: esac
45962:
45963:
45964: ;;
45965: -L*)
45966: ac_ii=`echo $ac_i|cut -c 3-`
45967:
45968: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
45969:
45970: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
45971: ai_p=$ac_ii
45972: else
45973:
45974: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
45975:
45976: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
45977: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
45978: fi
45979:
45980:
45981: if test "$ext_shared" = "yes"; then
45982: LDFLAGS="-L$ai_p $LDFLAGS"
45983: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
45984: else
45985:
45986:
45987:
45988: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
45989:
45990: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
45991: if test -n "$unique" && test "`eval $cmd`" = "" ; then
45992: eval "LIBPATH$unique=set"
45993:
45994: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
45995: LDFLAGS="$LDFLAGS -L$ai_p"
45996: PHP_RPATHS="$PHP_RPATHS $ai_p"
45997:
45998: fi
45999:
46000:
46001: fi
46002:
46003: fi
46004:
46005: ;;
46006: esac
46007: done
46008:
46009: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdCacheCreate in -lgd" >&5
46010: $as_echo_n "checking for gdCacheCreate in -lgd... " >&6; }
46011: if ${ac_cv_lib_gd_gdCacheCreate+:} false; then :
46012: $as_echo_n "(cached) " >&6
46013: else
46014: ac_check_lib_save_LIBS=$LIBS
46015: LIBS="-lgd $LIBS"
46016: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46017: /* end confdefs.h. */
46018:
46019: /* Override any GCC internal prototype to avoid an error.
46020: Use char because int might match the return type of a GCC
46021: builtin and then its argument prototype would still apply. */
46022: #ifdef __cplusplus
46023: extern "C"
46024: #endif
46025: char gdCacheCreate ();
46026: int
46027: main ()
46028: {
46029: return gdCacheCreate ();
46030: ;
46031: return 0;
46032: }
46033: _ACEOF
46034: if ac_fn_c_try_link "$LINENO"; then :
46035: ac_cv_lib_gd_gdCacheCreate=yes
46036: else
46037: ac_cv_lib_gd_gdCacheCreate=no
46038: fi
46039: rm -f core conftest.err conftest.$ac_objext \
46040: conftest$ac_exeext conftest.$ac_ext
46041: LIBS=$ac_check_lib_save_LIBS
46042: fi
46043: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdCacheCreate" >&5
46044: $as_echo "$ac_cv_lib_gd_gdCacheCreate" >&6; }
46045: if test "x$ac_cv_lib_gd_gdCacheCreate" = xyes; then :
46046:
46047: LDFLAGS=$save_old_LDFLAGS
46048: ext_shared=$save_ext_shared
46049:
46050: $as_echo "#define HAVE_GD_CACHE_CREATE 1" >>confdefs.h
46051:
46052:
46053: else
46054:
46055: LDFLAGS=$save_old_LDFLAGS
46056: ext_shared=$save_ext_shared
46057: unset ac_cv_lib_gd_gdCacheCreate
46058:
46059:
46060: fi
46061:
46062:
46063: save_old_LDFLAGS=$LDFLAGS
46064: ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
46065:
46066: save_ext_shared=$ext_shared
46067: ext_shared=yes
46068:
46069: for ac_i in $ac_stuff; do
46070: case $ac_i in
46071: -pthread)
46072: if test "$ext_shared" = "yes"; then
46073: LDFLAGS="$LDFLAGS -pthread"
46074: else
46075:
46076:
46077: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
46078:
46079: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
46080: if test -n "$unique" && test "`eval $cmd`" = "" ; then
46081: eval "EXTRA_LDFLAGS$unique=set"
46082: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
46083: fi
46084:
46085: fi
46086: ;;
46087: -l*)
46088: ac_ii=`echo $ac_i|cut -c 3-`
46089:
46090:
46091: case $ac_ii in
46092: c|c_r|pthread*) ;;
46093: *)
46094: if test "$ext_shared" = "yes"; then
46095: LDFLAGS="$LDFLAGS -l$ac_ii"
46096: else
46097:
46098:
46099: case $ac_ii in
46100: c|c_r|pthread*) ;;
46101: *)
46102: LIBS="$LIBS -l$ac_ii"
46103: ;;
46104: esac
46105:
46106:
46107: fi
46108: ;;
46109: esac
46110:
46111:
46112: ;;
46113: -L*)
46114: ac_ii=`echo $ac_i|cut -c 3-`
46115:
46116: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
46117:
46118: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
46119: ai_p=$ac_ii
46120: else
46121:
46122: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
46123:
46124: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
46125: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
46126: fi
46127:
46128:
46129: if test "$ext_shared" = "yes"; then
46130: LDFLAGS="-L$ai_p $LDFLAGS"
46131: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
46132: else
46133:
46134:
46135:
46136: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
46137:
46138: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
46139: if test -n "$unique" && test "`eval $cmd`" = "" ; then
46140: eval "LIBPATH$unique=set"
46141:
46142: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
46143: LDFLAGS="$LDFLAGS -L$ai_p"
46144: PHP_RPATHS="$PHP_RPATHS $ai_p"
46145:
46146: fi
46147:
46148:
46149: fi
46150:
46151: fi
46152:
46153: ;;
46154: esac
46155: done
46156:
46157: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdFontCacheShutdown in -lgd" >&5
46158: $as_echo_n "checking for gdFontCacheShutdown in -lgd... " >&6; }
46159: if ${ac_cv_lib_gd_gdFontCacheShutdown+:} false; then :
46160: $as_echo_n "(cached) " >&6
46161: else
46162: ac_check_lib_save_LIBS=$LIBS
46163: LIBS="-lgd $LIBS"
46164: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46165: /* end confdefs.h. */
46166:
46167: /* Override any GCC internal prototype to avoid an error.
46168: Use char because int might match the return type of a GCC
46169: builtin and then its argument prototype would still apply. */
46170: #ifdef __cplusplus
46171: extern "C"
46172: #endif
46173: char gdFontCacheShutdown ();
46174: int
46175: main ()
46176: {
46177: return gdFontCacheShutdown ();
46178: ;
46179: return 0;
46180: }
46181: _ACEOF
46182: if ac_fn_c_try_link "$LINENO"; then :
46183: ac_cv_lib_gd_gdFontCacheShutdown=yes
46184: else
46185: ac_cv_lib_gd_gdFontCacheShutdown=no
46186: fi
46187: rm -f core conftest.err conftest.$ac_objext \
46188: conftest$ac_exeext conftest.$ac_ext
46189: LIBS=$ac_check_lib_save_LIBS
46190: fi
46191: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdFontCacheShutdown" >&5
46192: $as_echo "$ac_cv_lib_gd_gdFontCacheShutdown" >&6; }
46193: if test "x$ac_cv_lib_gd_gdFontCacheShutdown" = xyes; then :
46194:
46195: LDFLAGS=$save_old_LDFLAGS
46196: ext_shared=$save_ext_shared
46197:
46198: $as_echo "#define HAVE_GD_FONTCACHESHUTDOWN 1" >>confdefs.h
46199:
46200:
46201: else
46202:
46203: LDFLAGS=$save_old_LDFLAGS
46204: ext_shared=$save_ext_shared
46205: unset ac_cv_lib_gd_gdFontCacheShutdown
46206:
46207:
46208: fi
46209:
46210:
46211: save_old_LDFLAGS=$LDFLAGS
46212: ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
46213:
46214: save_ext_shared=$ext_shared
46215: ext_shared=yes
46216:
46217: for ac_i in $ac_stuff; do
46218: case $ac_i in
46219: -pthread)
46220: if test "$ext_shared" = "yes"; then
46221: LDFLAGS="$LDFLAGS -pthread"
46222: else
46223:
46224:
46225: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
46226:
46227: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
46228: if test -n "$unique" && test "`eval $cmd`" = "" ; then
46229: eval "EXTRA_LDFLAGS$unique=set"
46230: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
46231: fi
46232:
46233: fi
46234: ;;
46235: -l*)
46236: ac_ii=`echo $ac_i|cut -c 3-`
46237:
46238:
46239: case $ac_ii in
46240: c|c_r|pthread*) ;;
46241: *)
46242: if test "$ext_shared" = "yes"; then
46243: LDFLAGS="$LDFLAGS -l$ac_ii"
46244: else
46245:
46246:
46247: case $ac_ii in
46248: c|c_r|pthread*) ;;
46249: *)
46250: LIBS="$LIBS -l$ac_ii"
46251: ;;
46252: esac
46253:
46254:
46255: fi
46256: ;;
46257: esac
46258:
46259:
46260: ;;
46261: -L*)
46262: ac_ii=`echo $ac_i|cut -c 3-`
46263:
46264: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
46265:
46266: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
46267: ai_p=$ac_ii
46268: else
46269:
46270: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
46271:
46272: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
46273: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
46274: fi
46275:
46276:
46277: if test "$ext_shared" = "yes"; then
46278: LDFLAGS="-L$ai_p $LDFLAGS"
46279: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
46280: else
46281:
46282:
46283:
46284: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
46285:
46286: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
46287: if test -n "$unique" && test "`eval $cmd`" = "" ; then
46288: eval "LIBPATH$unique=set"
46289:
46290: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
46291: LDFLAGS="$LDFLAGS -L$ai_p"
46292: PHP_RPATHS="$PHP_RPATHS $ai_p"
46293:
46294: fi
46295:
46296:
46297: fi
46298:
46299: fi
46300:
46301: ;;
46302: esac
46303: done
46304:
46305: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdFreeFontCache in -lgd" >&5
46306: $as_echo_n "checking for gdFreeFontCache in -lgd... " >&6; }
46307: if ${ac_cv_lib_gd_gdFreeFontCache+:} false; then :
46308: $as_echo_n "(cached) " >&6
46309: else
46310: ac_check_lib_save_LIBS=$LIBS
46311: LIBS="-lgd $LIBS"
46312: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46313: /* end confdefs.h. */
46314:
46315: /* Override any GCC internal prototype to avoid an error.
46316: Use char because int might match the return type of a GCC
46317: builtin and then its argument prototype would still apply. */
46318: #ifdef __cplusplus
46319: extern "C"
46320: #endif
46321: char gdFreeFontCache ();
46322: int
46323: main ()
46324: {
46325: return gdFreeFontCache ();
46326: ;
46327: return 0;
46328: }
46329: _ACEOF
46330: if ac_fn_c_try_link "$LINENO"; then :
46331: ac_cv_lib_gd_gdFreeFontCache=yes
46332: else
46333: ac_cv_lib_gd_gdFreeFontCache=no
46334: fi
46335: rm -f core conftest.err conftest.$ac_objext \
46336: conftest$ac_exeext conftest.$ac_ext
46337: LIBS=$ac_check_lib_save_LIBS
46338: fi
46339: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdFreeFontCache" >&5
46340: $as_echo "$ac_cv_lib_gd_gdFreeFontCache" >&6; }
46341: if test "x$ac_cv_lib_gd_gdFreeFontCache" = xyes; then :
46342:
46343: LDFLAGS=$save_old_LDFLAGS
46344: ext_shared=$save_ext_shared
46345:
46346: $as_echo "#define HAVE_GD_FREEFONTCACHE 1" >>confdefs.h
46347:
46348:
46349: else
46350:
46351: LDFLAGS=$save_old_LDFLAGS
46352: ext_shared=$save_ext_shared
46353: unset ac_cv_lib_gd_gdFreeFontCache
46354:
46355:
46356: fi
46357:
46358:
46359: save_old_LDFLAGS=$LDFLAGS
46360: ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
46361:
46362: save_ext_shared=$ext_shared
46363: ext_shared=yes
46364:
46365: for ac_i in $ac_stuff; do
46366: case $ac_i in
46367: -pthread)
46368: if test "$ext_shared" = "yes"; then
46369: LDFLAGS="$LDFLAGS -pthread"
46370: else
46371:
46372:
46373: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
46374:
46375: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
46376: if test -n "$unique" && test "`eval $cmd`" = "" ; then
46377: eval "EXTRA_LDFLAGS$unique=set"
46378: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
46379: fi
46380:
46381: fi
46382: ;;
46383: -l*)
46384: ac_ii=`echo $ac_i|cut -c 3-`
46385:
46386:
46387: case $ac_ii in
46388: c|c_r|pthread*) ;;
46389: *)
46390: if test "$ext_shared" = "yes"; then
46391: LDFLAGS="$LDFLAGS -l$ac_ii"
46392: else
46393:
46394:
46395: case $ac_ii in
46396: c|c_r|pthread*) ;;
46397: *)
46398: LIBS="$LIBS -l$ac_ii"
46399: ;;
46400: esac
46401:
46402:
46403: fi
46404: ;;
46405: esac
46406:
46407:
46408: ;;
46409: -L*)
46410: ac_ii=`echo $ac_i|cut -c 3-`
46411:
46412: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
46413:
46414: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
46415: ai_p=$ac_ii
46416: else
46417:
46418: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
46419:
46420: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
46421: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
46422: fi
46423:
46424:
46425: if test "$ext_shared" = "yes"; then
46426: LDFLAGS="-L$ai_p $LDFLAGS"
46427: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
46428: else
46429:
46430:
46431:
46432: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
46433:
46434: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
46435: if test -n "$unique" && test "`eval $cmd`" = "" ; then
46436: eval "LIBPATH$unique=set"
46437:
46438: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
46439: LDFLAGS="$LDFLAGS -L$ai_p"
46440: PHP_RPATHS="$PHP_RPATHS $ai_p"
46441:
46442: fi
46443:
46444:
46445: fi
46446:
46447: fi
46448:
46449: ;;
46450: esac
46451: done
46452:
46453: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdFontCacheMutexSetup in -lgd" >&5
46454: $as_echo_n "checking for gdFontCacheMutexSetup in -lgd... " >&6; }
46455: if ${ac_cv_lib_gd_gdFontCacheMutexSetup+:} false; then :
46456: $as_echo_n "(cached) " >&6
46457: else
46458: ac_check_lib_save_LIBS=$LIBS
46459: LIBS="-lgd $LIBS"
46460: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46461: /* end confdefs.h. */
46462:
46463: /* Override any GCC internal prototype to avoid an error.
46464: Use char because int might match the return type of a GCC
46465: builtin and then its argument prototype would still apply. */
46466: #ifdef __cplusplus
46467: extern "C"
46468: #endif
46469: char gdFontCacheMutexSetup ();
46470: int
46471: main ()
46472: {
46473: return gdFontCacheMutexSetup ();
46474: ;
46475: return 0;
46476: }
46477: _ACEOF
46478: if ac_fn_c_try_link "$LINENO"; then :
46479: ac_cv_lib_gd_gdFontCacheMutexSetup=yes
46480: else
46481: ac_cv_lib_gd_gdFontCacheMutexSetup=no
46482: fi
46483: rm -f core conftest.err conftest.$ac_objext \
46484: conftest$ac_exeext conftest.$ac_ext
46485: LIBS=$ac_check_lib_save_LIBS
46486: fi
46487: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdFontCacheMutexSetup" >&5
46488: $as_echo "$ac_cv_lib_gd_gdFontCacheMutexSetup" >&6; }
46489: if test "x$ac_cv_lib_gd_gdFontCacheMutexSetup" = xyes; then :
46490:
46491: LDFLAGS=$save_old_LDFLAGS
46492: ext_shared=$save_ext_shared
46493:
46494: $as_echo "#define HAVE_GD_FONTMUTEX 1" >>confdefs.h
46495:
46496:
46497: else
46498:
46499: LDFLAGS=$save_old_LDFLAGS
46500: ext_shared=$save_ext_shared
46501: unset ac_cv_lib_gd_gdFontCacheMutexSetup
46502:
46503:
46504: fi
46505:
46506:
46507: save_old_LDFLAGS=$LDFLAGS
46508: ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
46509:
46510: save_ext_shared=$ext_shared
46511: ext_shared=yes
46512:
46513: for ac_i in $ac_stuff; do
46514: case $ac_i in
46515: -pthread)
46516: if test "$ext_shared" = "yes"; then
46517: LDFLAGS="$LDFLAGS -pthread"
46518: else
46519:
46520:
46521: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
46522:
46523: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
46524: if test -n "$unique" && test "`eval $cmd`" = "" ; then
46525: eval "EXTRA_LDFLAGS$unique=set"
46526: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
46527: fi
46528:
46529: fi
46530: ;;
46531: -l*)
46532: ac_ii=`echo $ac_i|cut -c 3-`
46533:
46534:
46535: case $ac_ii in
46536: c|c_r|pthread*) ;;
46537: *)
46538: if test "$ext_shared" = "yes"; then
46539: LDFLAGS="$LDFLAGS -l$ac_ii"
46540: else
46541:
46542:
46543: case $ac_ii in
46544: c|c_r|pthread*) ;;
46545: *)
46546: LIBS="$LIBS -l$ac_ii"
46547: ;;
46548: esac
46549:
46550:
46551: fi
46552: ;;
46553: esac
46554:
46555:
46556: ;;
46557: -L*)
46558: ac_ii=`echo $ac_i|cut -c 3-`
46559:
46560: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
46561:
46562: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
46563: ai_p=$ac_ii
46564: else
46565:
46566: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
46567:
46568: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
46569: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
46570: fi
46571:
46572:
46573: if test "$ext_shared" = "yes"; then
46574: LDFLAGS="-L$ai_p $LDFLAGS"
46575: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
46576: else
46577:
46578:
46579:
46580: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
46581:
46582: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
46583: if test -n "$unique" && test "`eval $cmd`" = "" ; then
46584: eval "LIBPATH$unique=set"
46585:
46586: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
46587: LDFLAGS="$LDFLAGS -L$ai_p"
46588: PHP_RPATHS="$PHP_RPATHS $ai_p"
46589:
46590: fi
46591:
46592:
46593: fi
46594:
46595: fi
46596:
46597: ;;
46598: esac
46599: done
46600:
46601: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdNewDynamicCtxEx in -lgd" >&5
46602: $as_echo_n "checking for gdNewDynamicCtxEx in -lgd... " >&6; }
46603: if ${ac_cv_lib_gd_gdNewDynamicCtxEx+:} false; then :
46604: $as_echo_n "(cached) " >&6
46605: else
46606: ac_check_lib_save_LIBS=$LIBS
46607: LIBS="-lgd $LIBS"
46608: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46609: /* end confdefs.h. */
46610:
46611: /* Override any GCC internal prototype to avoid an error.
46612: Use char because int might match the return type of a GCC
46613: builtin and then its argument prototype would still apply. */
46614: #ifdef __cplusplus
46615: extern "C"
46616: #endif
46617: char gdNewDynamicCtxEx ();
46618: int
46619: main ()
46620: {
46621: return gdNewDynamicCtxEx ();
46622: ;
46623: return 0;
46624: }
46625: _ACEOF
46626: if ac_fn_c_try_link "$LINENO"; then :
46627: ac_cv_lib_gd_gdNewDynamicCtxEx=yes
46628: else
46629: ac_cv_lib_gd_gdNewDynamicCtxEx=no
46630: fi
46631: rm -f core conftest.err conftest.$ac_objext \
46632: conftest$ac_exeext conftest.$ac_ext
46633: LIBS=$ac_check_lib_save_LIBS
46634: fi
46635: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdNewDynamicCtxEx" >&5
46636: $as_echo "$ac_cv_lib_gd_gdNewDynamicCtxEx" >&6; }
46637: if test "x$ac_cv_lib_gd_gdNewDynamicCtxEx" = xyes; then :
46638:
46639: LDFLAGS=$save_old_LDFLAGS
46640: ext_shared=$save_ext_shared
46641:
46642: $as_echo "#define HAVE_GD_DYNAMIC_CTX_EX 1" >>confdefs.h
46643:
46644:
46645: else
46646:
46647: LDFLAGS=$save_old_LDFLAGS
46648: ext_shared=$save_ext_shared
46649: unset ac_cv_lib_gd_gdNewDynamicCtxEx
46650:
46651:
46652: fi
46653:
46654:
46655: elif test -z "$GD_INCLUDE"; then
46656: as_fn_error $? "Unable to find gd.h anywhere under $PHP_GD" "$LINENO" 5
46657: else
46658: as_fn_error $? "Unable to find libgd.(a|so) anywhere under $PHP_GD" "$LINENO" 5
46659: fi
46660:
46661:
46662: if test -z "$GD_INCLUDE" || echo "$GD_INCLUDE" | grep '^/' >/dev/null ; then
46663: GD_INCLUDE=$GD_INCLUDE
46664: else
46665:
46666: ep_dir="`echo $GD_INCLUDE|$SED 's%/*[^/][^/]*/*$%%'`"
46667:
46668: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
46669: GD_INCLUDE="$ep_realdir/`basename \"$GD_INCLUDE\"`"
46670: fi
46671:
46672:
46673: old_CPPFLAGS=$CPPFLAGS
46674: CPPFLAGS=-I$GD_INCLUDE
46675: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46676: /* end confdefs.h. */
46677:
46678: #include <gd.h>
46679: #include <stdlib.h>
46680:
46681: int
46682: main ()
46683: {
46684:
46685: gdIOCtx *ctx;
46686: ctx = malloc(sizeof(gdIOCtx));
46687: ctx->gd_free = 1;
46688:
46689: ;
46690: return 0;
46691: }
46692: _ACEOF
46693: if ac_fn_c_try_compile "$LINENO"; then :
46694:
46695:
46696: $as_echo "#define HAVE_LIBGD204 1" >>confdefs.h
46697:
46698:
46699: fi
46700: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46701: CPPFLAGS=$old_CPPFLAGS
46702:
46703: fi
46704: fi
46705:
46706: if test "$PHP_GD" != "no"; then
46707:
46708: ext_builddir=ext/gd
46709: ext_srcdir=$abs_srcdir/ext/gd
46710:
46711: ac_extra=`echo "\\$(GDLIB_CFLAGS)"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
46712:
46713: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
46714: PHP_GD_SHARED=no
46715:
46716:
46717: case ext/gd in
46718: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
46719: /*) ac_srcdir=`echo "ext/gd"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
46720: *) ac_srcdir="$abs_srcdir/ext/gd/"; ac_bdir="ext/gd/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
46721: esac
46722:
46723:
46724:
46725: b_c_pre=$php_c_pre
46726: b_cxx_pre=$php_cxx_pre
46727: b_c_meta=$php_c_meta
46728: b_cxx_meta=$php_cxx_meta
46729: b_c_post=$php_c_post
46730: b_cxx_post=$php_cxx_post
46731: b_lo=$php_lo
46732:
46733:
46734: old_IFS=$IFS
46735: for ac_src in gd.c $extra_sources; do
46736:
46737: IFS=.
46738: set $ac_src
46739: ac_obj=$1
46740: IFS=$old_IFS
46741:
46742: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
46743:
46744: case $ac_src in
46745: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
46746: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
46747: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
46748: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
46749: esac
46750:
46751: cat >>Makefile.objects<<EOF
46752: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
46753: $ac_comp
46754: EOF
46755: done
46756:
46757:
46758: EXT_STATIC="$EXT_STATIC gd"
46759: if test "$ext_shared" != "nocli"; then
46760: EXT_CLI_STATIC="$EXT_CLI_STATIC gd"
46761: fi
46762: else
46763: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
46764: PHP_GD_SHARED=yes
46765:
46766: case ext/gd in
46767: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
46768: /*) ac_srcdir=`echo "ext/gd"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
46769: *) ac_srcdir="$abs_srcdir/ext/gd/"; ac_bdir="ext/gd/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
46770: esac
46771:
46772:
46773:
46774: b_c_pre=$shared_c_pre
46775: b_cxx_pre=$shared_cxx_pre
46776: b_c_meta=$shared_c_meta
46777: b_cxx_meta=$shared_cxx_meta
46778: b_c_post=$shared_c_post
46779: b_cxx_post=$shared_cxx_post
46780: b_lo=$shared_lo
46781:
46782:
46783: old_IFS=$IFS
46784: for ac_src in gd.c $extra_sources; do
46785:
46786: IFS=.
46787: set $ac_src
46788: ac_obj=$1
46789: IFS=$old_IFS
46790:
46791: shared_objects_gd="$shared_objects_gd $ac_bdir$ac_obj.lo"
46792:
46793: case $ac_src in
46794: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
46795: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
46796: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
46797: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
46798: esac
46799:
46800: cat >>Makefile.objects<<EOF
46801: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
46802: $ac_comp
46803: EOF
46804: done
46805:
46806: case $host_alias in
46807: *netware*)
46808:
46809: install_modules="install-modules"
46810:
46811: case $host_alias in
46812: *aix*)
46813: suffix=so
46814: 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'
46815: ;;
46816: *netware*)
46817: suffix=nlm
46818: link_cmd='$(LIBTOOL) --mode=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)'
46819: ;;
46820: *)
46821: suffix=la
46822: link_cmd='$(LIBTOOL) --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)'
46823: ;;
46824: esac
46825:
46826: if test "x" = "xyes"; then
46827: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpgd.$suffix"
46828: else
46829: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpgd.$suffix"
46830: fi
46831:
46832: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_gd"
46833:
46834: cat >>Makefile.objects<<EOF
46835: \$(phplibdir)/phpgd.$suffix: $ext_builddir/phpgd.$suffix
46836: \$(LIBTOOL) --mode=install cp $ext_builddir/phpgd.$suffix \$(phplibdir)
46837:
46838: $ext_builddir/phpgd.$suffix: \$(shared_objects_gd) \$(PHPGD_SHARED_DEPENDENCIES)
46839: $link_cmd
46840:
46841: EOF
46842:
46843: ;;
46844: *)
46845:
46846: install_modules="install-modules"
46847:
46848: case $host_alias in
46849: *aix*)
46850: suffix=so
46851: 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'
46852: ;;
46853: *netware*)
46854: suffix=nlm
46855: link_cmd='$(LIBTOOL) --mode=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)'
46856: ;;
46857: *)
46858: suffix=la
46859: link_cmd='$(LIBTOOL) --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)'
46860: ;;
46861: esac
46862:
46863: if test "x" = "xyes"; then
46864: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/gd.$suffix"
46865: else
46866: PHP_MODULES="$PHP_MODULES \$(phplibdir)/gd.$suffix"
46867: fi
46868:
46869: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_gd"
46870:
46871: cat >>Makefile.objects<<EOF
46872: \$(phplibdir)/gd.$suffix: $ext_builddir/gd.$suffix
46873: \$(LIBTOOL) --mode=install cp $ext_builddir/gd.$suffix \$(phplibdir)
46874:
46875: $ext_builddir/gd.$suffix: \$(shared_objects_gd) \$(GD_SHARED_DEPENDENCIES)
46876: $link_cmd
46877:
46878: EOF
46879:
46880: ;;
46881: esac
46882:
46883: cat >>confdefs.h <<_ACEOF
46884: #define COMPILE_DL_GD 1
46885: _ACEOF
46886:
46887: fi
46888: fi
46889:
46890: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
46891: PHP_GD_SHARED=no
46892:
46893:
46894: case ext/gd in
46895: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
46896: /*) ac_srcdir=`echo "ext/gd"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
46897: *) ac_srcdir="$abs_srcdir/ext/gd/"; ac_bdir="ext/gd/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
46898: esac
46899:
46900:
46901:
46902: b_c_pre=$php_c_pre
46903: b_cxx_pre=$php_cxx_pre
46904: b_c_meta=$php_c_meta
46905: b_cxx_meta=$php_cxx_meta
46906: b_c_post=$php_c_post
46907: b_cxx_post=$php_cxx_post
46908: b_lo=$php_lo
46909:
46910:
46911: old_IFS=$IFS
46912: for ac_src in gd.c $extra_sources; do
46913:
46914: IFS=.
46915: set $ac_src
46916: ac_obj=$1
46917: IFS=$old_IFS
46918:
46919: PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
46920:
46921: case $ac_src in
46922: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
46923: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
46924: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
46925: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
46926: esac
46927:
46928: cat >>Makefile.objects<<EOF
46929: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
46930: $ac_comp
46931: EOF
46932: done
46933:
46934:
46935:
46936:
46937: case ext/gd in
46938: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
46939: /*) ac_srcdir=`echo "ext/gd"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
46940: *) ac_srcdir="$abs_srcdir/ext/gd/"; ac_bdir="ext/gd/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
46941: esac
46942:
46943:
46944:
46945: b_c_pre=$php_c_pre
46946: b_cxx_pre=$php_cxx_pre
46947: b_c_meta=$php_c_meta
46948: b_cxx_meta=$php_cxx_meta
46949: b_c_post=$php_c_post
46950: b_cxx_post=$php_cxx_post
46951: b_lo=$php_lo
46952:
46953:
46954: old_IFS=$IFS
46955: for ac_src in gd.c $extra_sources; do
46956:
46957: IFS=.
46958: set $ac_src
46959: ac_obj=$1
46960: IFS=$old_IFS
46961:
46962: PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo"
46963:
46964: case $ac_src in
46965: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
46966: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
46967: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
46968: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
46969: esac
46970:
46971: cat >>Makefile.objects<<EOF
46972: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
46973: $ac_comp
46974: EOF
46975: done
46976:
46977:
46978:
46979:
46980: case ext/gd in
46981: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
46982: /*) ac_srcdir=`echo "ext/gd"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
46983: *) ac_srcdir="$abs_srcdir/ext/gd/"; ac_bdir="ext/gd/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
46984: esac
46985:
46986:
46987:
46988: b_c_pre=$php_c_pre
46989: b_cxx_pre=$php_cxx_pre
46990: b_c_meta=$php_c_meta
46991: b_cxx_meta=$php_cxx_meta
46992: b_c_post=$php_c_post
46993: b_cxx_post=$php_cxx_post
46994: b_lo=$php_lo
46995:
46996:
46997: old_IFS=$IFS
46998: for ac_src in gd.c $extra_sources; do
46999:
47000: IFS=.
47001: set $ac_src
47002: ac_obj=$1
47003: IFS=$old_IFS
47004:
47005: PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo"
47006:
47007: case $ac_src in
47008: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
47009: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
47010: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
47011: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
47012: esac
47013:
47014: cat >>Makefile.objects<<EOF
47015: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
47016: $ac_comp
47017: EOF
47018: done
47019:
47020:
47021: EXT_CLI_STATIC="$EXT_CLI_STATIC gd"
47022: fi
47023:
47024:
47025: BUILD_DIR="$BUILD_DIR $ext_builddir"
47026:
47027:
47028:
47029: if test "$ext_builddir" = "."; then
47030: PHP_PECL_EXTENSION=gd
47031:
47032: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
47033:
47034: fi
47035:
47036:
47037:
47038:
47039: BUILD_DIR="$BUILD_DIR $ext_builddir/libgd"
47040:
47041:
47042:
47043: if test "$GD_MODULE_TYPE" = "builtin"; then
47044: GDLIB_CFLAGS="-I$ext_srcdir/libgd $GDLIB_CFLAGS"
47045: GD_HEADER_DIRS="ext/gd/ ext/gd/libgd/"
47046:
47047:
47048: old_LIBS=$LIBS
47049: LIBS=" $GD_SHARED_LIBADD $LIBS"
47050: if test "$cross_compiling" = yes; then :
47051:
47052: LIBS=$old_LIBS
47053:
47054: else
47055: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47056: /* end confdefs.h. */
47057:
47058: char foobar () {}
47059: char foobar();
47060: int main() {
47061: foobar();
47062: return 0;
47063: }
47064:
47065: _ACEOF
47066: if ac_fn_c_try_run "$LINENO"; then :
47067:
47068: LIBS=$old_LIBS
47069:
47070:
47071: else
47072:
47073: LIBS=$old_LIBS
47074:
47075: as_fn_error $? "GD build test failed. Please check the config.log for details." "$LINENO" 5
47076:
47077:
47078: fi
47079: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
47080: conftest.$ac_objext conftest.beam conftest.$ac_ext
47081: fi
47082:
47083:
47084: else
47085: GD_HEADER_DIRS="ext/gd/"
47086: GDLIB_CFLAGS="-I$GD_INCLUDE $GDLIB_CFLAGS"
47087:
47088: if test "$GD_INCLUDE" != "/usr/include"; then
47089:
47090: if test -z "$GD_INCLUDE" || echo "$GD_INCLUDE" | grep '^/' >/dev/null ; then
47091: ai_p=$GD_INCLUDE
47092: else
47093:
47094: ep_dir="`echo $GD_INCLUDE|$SED 's%/*[^/][^/]*/*$%%'`"
47095:
47096: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
47097: ai_p="$ep_realdir/`basename \"$GD_INCLUDE\"`"
47098: fi
47099:
47100:
47101:
47102: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
47103:
47104: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
47105: if test -n "$unique" && test "`eval $cmd`" = "" ; then
47106: eval "INCLUDEPATH$unique=set"
47107:
47108: if test ""; then
47109: INCLUDES="-I$ai_p $INCLUDES"
47110: else
47111: INCLUDES="$INCLUDES -I$ai_p"
47112: fi
47113:
47114: fi
47115:
47116: fi
47117:
47118:
47119: save_old_LDFLAGS=$LDFLAGS
47120: ac_stuff=" -L$GD_LIB $GD_SHARED_LIBADD "
47121:
47122: save_ext_shared=$ext_shared
47123: ext_shared=yes
47124:
47125: for ac_i in $ac_stuff; do
47126: case $ac_i in
47127: -pthread)
47128: if test "$ext_shared" = "yes"; then
47129: LDFLAGS="$LDFLAGS -pthread"
47130: else
47131:
47132:
47133: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
47134:
47135: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
47136: if test -n "$unique" && test "`eval $cmd`" = "" ; then
47137: eval "EXTRA_LDFLAGS$unique=set"
47138: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
47139: fi
47140:
47141: fi
47142: ;;
47143: -l*)
47144: ac_ii=`echo $ac_i|cut -c 3-`
47145:
47146:
47147: case $ac_ii in
47148: c|c_r|pthread*) ;;
47149: *)
47150: if test "$ext_shared" = "yes"; then
47151: LDFLAGS="$LDFLAGS -l$ac_ii"
47152: else
47153:
47154:
47155: case $ac_ii in
47156: c|c_r|pthread*) ;;
47157: *)
47158: LIBS="$LIBS -l$ac_ii"
47159: ;;
47160: esac
47161:
47162:
47163: fi
47164: ;;
47165: esac
47166:
47167:
47168: ;;
47169: -L*)
47170: ac_ii=`echo $ac_i|cut -c 3-`
47171:
47172: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
47173:
47174: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
47175: ai_p=$ac_ii
47176: else
47177:
47178: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
47179:
47180: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
47181: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
47182: fi
47183:
47184:
47185: if test "$ext_shared" = "yes"; then
47186: LDFLAGS="-L$ai_p $LDFLAGS"
47187: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
47188: else
47189:
47190:
47191:
47192: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
47193:
47194: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
47195: if test -n "$unique" && test "`eval $cmd`" = "" ; then
47196: eval "LIBPATH$unique=set"
47197:
47198: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
47199: LDFLAGS="$LDFLAGS -L$ai_p"
47200: PHP_RPATHS="$PHP_RPATHS $ai_p"
47201:
47202: fi
47203:
47204:
47205: fi
47206:
47207: fi
47208:
47209: ;;
47210: esac
47211: done
47212:
47213: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageCreate in -lgd" >&5
47214: $as_echo_n "checking for gdImageCreate in -lgd... " >&6; }
47215: if ${ac_cv_lib_gd_gdImageCreate+:} false; then :
47216: $as_echo_n "(cached) " >&6
47217: else
47218: ac_check_lib_save_LIBS=$LIBS
47219: LIBS="-lgd $LIBS"
47220: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47221: /* end confdefs.h. */
47222:
47223: /* Override any GCC internal prototype to avoid an error.
47224: Use char because int might match the return type of a GCC
47225: builtin and then its argument prototype would still apply. */
47226: #ifdef __cplusplus
47227: extern "C"
47228: #endif
47229: char gdImageCreate ();
47230: int
47231: main ()
47232: {
47233: return gdImageCreate ();
47234: ;
47235: return 0;
47236: }
47237: _ACEOF
47238: if ac_fn_c_try_link "$LINENO"; then :
47239: ac_cv_lib_gd_gdImageCreate=yes
47240: else
47241: ac_cv_lib_gd_gdImageCreate=no
47242: fi
47243: rm -f core conftest.err conftest.$ac_objext \
47244: conftest$ac_exeext conftest.$ac_ext
47245: LIBS=$ac_check_lib_save_LIBS
47246: fi
47247: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageCreate" >&5
47248: $as_echo "$ac_cv_lib_gd_gdImageCreate" >&6; }
47249: if test "x$ac_cv_lib_gd_gdImageCreate" = xyes; then :
47250:
47251: LDFLAGS=$save_old_LDFLAGS
47252: ext_shared=$save_ext_shared
47253:
47254:
47255: else
47256:
47257: LDFLAGS=$save_old_LDFLAGS
47258: ext_shared=$save_ext_shared
47259: unset ac_cv_lib_gd_gdImageCreate
47260:
47261: as_fn_error $? "GD build test failed. Please check the config.log for details." "$LINENO" 5
47262:
47263:
47264: fi
47265:
47266: fi
47267:
47268:
47269:
47270: for header_file in $GD_HEADER_DIRS; do
47271:
47272:
47273: unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
47274:
47275: cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
47276: if test -n "$unique" && test "`eval $cmd`" = "" ; then
47277: eval "INSTALLHEADERS$unique=set"
47278:
47279: INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
47280:
47281: fi
47282:
47283: done
47284:
47285:
47286:
47287: PHP_VAR_SUBST="$PHP_VAR_SUBST GDLIB_CFLAGS"
47288:
47289:
47290: PHP_VAR_SUBST="$PHP_VAR_SUBST GD_SHARED_LIBADD"
47291:
47292: fi
47293:
47294:
47295:
47296: php_with_gettext=no
47297:
47298: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext support" >&5
47299: $as_echo_n "checking for GNU gettext support... " >&6; }
47300:
47301: # Check whether --with-gettext was given.
47302: if test "${with_gettext+set}" = set; then :
47303: withval=$with_gettext; PHP_GETTEXT=$withval
47304: else
47305:
47306: PHP_GETTEXT=no
47307: test "$PHP_ENABLE_ALL" && PHP_GETTEXT=$PHP_ENABLE_ALL
47308:
47309: fi
47310:
47311:
47312:
47313: ext_output="yes, shared"
47314: ext_shared=yes
47315: case $PHP_GETTEXT in
47316: shared,*)
47317: PHP_GETTEXT=`echo "$PHP_GETTEXT"|$SED 's/^shared,//'`
47318: ;;
47319: shared)
47320: PHP_GETTEXT=yes
47321: ;;
47322: no)
47323: ext_output=no
47324: ext_shared=no
47325: ;;
47326: *)
47327: ext_output=yes
47328: ext_shared=no
47329: ;;
47330: esac
47331:
47332:
47333:
47334: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
47335: $as_echo "$ext_output" >&6; }
47336:
47337:
47338:
47339:
47340: if test "$PHP_GETTEXT" != "no"; then
47341: for i in $PHP_GETTEXT /usr/local /usr; do
47342: test -r $i/include/libintl.h && GETTEXT_DIR=$i && break
47343: done
47344:
47345: if test -z "$GETTEXT_DIR"; then
47346: as_fn_error $? "Cannot locate header file libintl.h" "$LINENO" 5
47347: fi
47348:
47349: GETTEXT_LIBDIR=$GETTEXT_DIR/$PHP_LIBDIR
47350: GETTEXT_INCDIR=$GETTEXT_DIR/include
47351:
47352: O_LDFLAGS=$LDFLAGS
47353: LDFLAGS="$LDFLAGS -L$GETTEXT_LIBDIR"
47354: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lintl" >&5
47355: $as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
47356: if ${ac_cv_lib_intl_bindtextdomain+:} false; then :
47357: $as_echo_n "(cached) " >&6
47358: else
47359: ac_check_lib_save_LIBS=$LIBS
47360: LIBS="-lintl $LIBS"
47361: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47362: /* end confdefs.h. */
47363:
47364: /* Override any GCC internal prototype to avoid an error.
47365: Use char because int might match the return type of a GCC
47366: builtin and then its argument prototype would still apply. */
47367: #ifdef __cplusplus
47368: extern "C"
47369: #endif
47370: char bindtextdomain ();
47371: int
47372: main ()
47373: {
47374: return bindtextdomain ();
47375: ;
47376: return 0;
47377: }
47378: _ACEOF
47379: if ac_fn_c_try_link "$LINENO"; then :
47380: ac_cv_lib_intl_bindtextdomain=yes
47381: else
47382: ac_cv_lib_intl_bindtextdomain=no
47383: fi
47384: rm -f core conftest.err conftest.$ac_objext \
47385: conftest$ac_exeext conftest.$ac_ext
47386: LIBS=$ac_check_lib_save_LIBS
47387: fi
47388: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_bindtextdomain" >&5
47389: $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
47390: if test "x$ac_cv_lib_intl_bindtextdomain" = xyes; then :
47391:
47392: GETTEXT_LIBS=intl
47393: GETTEXT_CHECK_IN_LIB=intl
47394:
47395: else
47396: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lc" >&5
47397: $as_echo_n "checking for bindtextdomain in -lc... " >&6; }
47398: if ${ac_cv_lib_c_bindtextdomain+:} false; then :
47399: $as_echo_n "(cached) " >&6
47400: else
47401: ac_check_lib_save_LIBS=$LIBS
47402: LIBS="-lc $LIBS"
47403: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47404: /* end confdefs.h. */
47405:
47406: /* Override any GCC internal prototype to avoid an error.
47407: Use char because int might match the return type of a GCC
47408: builtin and then its argument prototype would still apply. */
47409: #ifdef __cplusplus
47410: extern "C"
47411: #endif
47412: char bindtextdomain ();
47413: int
47414: main ()
47415: {
47416: return bindtextdomain ();
47417: ;
47418: return 0;
47419: }
47420: _ACEOF
47421: if ac_fn_c_try_link "$LINENO"; then :
47422: ac_cv_lib_c_bindtextdomain=yes
47423: else
47424: ac_cv_lib_c_bindtextdomain=no
47425: fi
47426: rm -f core conftest.err conftest.$ac_objext \
47427: conftest$ac_exeext conftest.$ac_ext
47428: LIBS=$ac_check_lib_save_LIBS
47429: fi
47430: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_bindtextdomain" >&5
47431: $as_echo "$ac_cv_lib_c_bindtextdomain" >&6; }
47432: if test "x$ac_cv_lib_c_bindtextdomain" = xyes; then :
47433:
47434: GETTEXT_LIBS=
47435: GETTEXT_CHECK_IN_LIB=c
47436:
47437: else
47438:
47439: as_fn_error $? "Unable to find required gettext library" "$LINENO" 5
47440:
47441: fi
47442:
47443:
47444: fi
47445:
47446: LDFLAGS=$O_LDFLAGS
47447:
47448:
47449: $as_echo "#define HAVE_LIBINTL 1" >>confdefs.h
47450:
47451:
47452: ext_builddir=ext/gettext
47453: ext_srcdir=$abs_srcdir/ext/gettext
47454:
47455: ac_extra=
47456:
47457: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
47458: PHP_GETTEXT_SHARED=no
47459:
47460:
47461: case ext/gettext in
47462: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
47463: /*) ac_srcdir=`echo "ext/gettext"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
47464: *) ac_srcdir="$abs_srcdir/ext/gettext/"; ac_bdir="ext/gettext/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
47465: esac
47466:
47467:
47468:
47469: b_c_pre=$php_c_pre
47470: b_cxx_pre=$php_cxx_pre
47471: b_c_meta=$php_c_meta
47472: b_cxx_meta=$php_cxx_meta
47473: b_c_post=$php_c_post
47474: b_cxx_post=$php_cxx_post
47475: b_lo=$php_lo
47476:
47477:
47478: old_IFS=$IFS
47479: for ac_src in gettext.c; do
47480:
47481: IFS=.
47482: set $ac_src
47483: ac_obj=$1
47484: IFS=$old_IFS
47485:
47486: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
47487:
47488: case $ac_src in
47489: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
47490: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
47491: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
47492: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
47493: esac
47494:
47495: cat >>Makefile.objects<<EOF
47496: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
47497: $ac_comp
47498: EOF
47499: done
47500:
47501:
47502: EXT_STATIC="$EXT_STATIC gettext"
47503: if test "$ext_shared" != "nocli"; then
47504: EXT_CLI_STATIC="$EXT_CLI_STATIC gettext"
47505: fi
47506: else
47507: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
47508: PHP_GETTEXT_SHARED=yes
47509:
47510: case ext/gettext in
47511: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
47512: /*) ac_srcdir=`echo "ext/gettext"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
47513: *) ac_srcdir="$abs_srcdir/ext/gettext/"; ac_bdir="ext/gettext/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
47514: esac
47515:
47516:
47517:
47518: b_c_pre=$shared_c_pre
47519: b_cxx_pre=$shared_cxx_pre
47520: b_c_meta=$shared_c_meta
47521: b_cxx_meta=$shared_cxx_meta
47522: b_c_post=$shared_c_post
47523: b_cxx_post=$shared_cxx_post
47524: b_lo=$shared_lo
47525:
47526:
47527: old_IFS=$IFS
47528: for ac_src in gettext.c; do
47529:
47530: IFS=.
47531: set $ac_src
47532: ac_obj=$1
47533: IFS=$old_IFS
47534:
47535: shared_objects_gettext="$shared_objects_gettext $ac_bdir$ac_obj.lo"
47536:
47537: case $ac_src in
47538: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
47539: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
47540: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
47541: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
47542: esac
47543:
47544: cat >>Makefile.objects<<EOF
47545: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
47546: $ac_comp
47547: EOF
47548: done
47549:
47550: case $host_alias in
47551: *netware*)
47552:
47553: install_modules="install-modules"
47554:
47555: case $host_alias in
47556: *aix*)
47557: suffix=so
47558: 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'
47559: ;;
47560: *netware*)
47561: suffix=nlm
47562: link_cmd='$(LIBTOOL) --mode=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)'
47563: ;;
47564: *)
47565: suffix=la
47566: link_cmd='$(LIBTOOL) --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)'
47567: ;;
47568: esac
47569:
47570: if test "x" = "xyes"; then
47571: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpgettext.$suffix"
47572: else
47573: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpgettext.$suffix"
47574: fi
47575:
47576: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_gettext"
47577:
47578: cat >>Makefile.objects<<EOF
47579: \$(phplibdir)/phpgettext.$suffix: $ext_builddir/phpgettext.$suffix
47580: \$(LIBTOOL) --mode=install cp $ext_builddir/phpgettext.$suffix \$(phplibdir)
47581:
47582: $ext_builddir/phpgettext.$suffix: \$(shared_objects_gettext) \$(PHPGETTEXT_SHARED_DEPENDENCIES)
47583: $link_cmd
47584:
47585: EOF
47586:
47587: ;;
47588: *)
47589:
47590: install_modules="install-modules"
47591:
47592: case $host_alias in
47593: *aix*)
47594: suffix=so
47595: 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'
47596: ;;
47597: *netware*)
47598: suffix=nlm
47599: link_cmd='$(LIBTOOL) --mode=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)'
47600: ;;
47601: *)
47602: suffix=la
47603: link_cmd='$(LIBTOOL) --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)'
47604: ;;
47605: esac
47606:
47607: if test "x" = "xyes"; then
47608: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/gettext.$suffix"
47609: else
47610: PHP_MODULES="$PHP_MODULES \$(phplibdir)/gettext.$suffix"
47611: fi
47612:
47613: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_gettext"
47614:
47615: cat >>Makefile.objects<<EOF
47616: \$(phplibdir)/gettext.$suffix: $ext_builddir/gettext.$suffix
47617: \$(LIBTOOL) --mode=install cp $ext_builddir/gettext.$suffix \$(phplibdir)
47618:
47619: $ext_builddir/gettext.$suffix: \$(shared_objects_gettext) \$(GETTEXT_SHARED_DEPENDENCIES)
47620: $link_cmd
47621:
47622: EOF
47623:
47624: ;;
47625: esac
47626:
47627: cat >>confdefs.h <<_ACEOF
47628: #define COMPILE_DL_GETTEXT 1
47629: _ACEOF
47630:
47631: fi
47632: fi
47633:
47634: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
47635: PHP_GETTEXT_SHARED=no
47636:
47637:
47638: case ext/gettext in
47639: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
47640: /*) ac_srcdir=`echo "ext/gettext"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
47641: *) ac_srcdir="$abs_srcdir/ext/gettext/"; ac_bdir="ext/gettext/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
47642: esac
47643:
47644:
47645:
47646: b_c_pre=$php_c_pre
47647: b_cxx_pre=$php_cxx_pre
47648: b_c_meta=$php_c_meta
47649: b_cxx_meta=$php_cxx_meta
47650: b_c_post=$php_c_post
47651: b_cxx_post=$php_cxx_post
47652: b_lo=$php_lo
47653:
47654:
47655: old_IFS=$IFS
47656: for ac_src in gettext.c; do
47657:
47658: IFS=.
47659: set $ac_src
47660: ac_obj=$1
47661: IFS=$old_IFS
47662:
47663: PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
47664:
47665: case $ac_src in
47666: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
47667: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
47668: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
47669: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
47670: esac
47671:
47672: cat >>Makefile.objects<<EOF
47673: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
47674: $ac_comp
47675: EOF
47676: done
47677:
47678:
47679:
47680:
47681: case ext/gettext in
47682: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
47683: /*) ac_srcdir=`echo "ext/gettext"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
47684: *) ac_srcdir="$abs_srcdir/ext/gettext/"; ac_bdir="ext/gettext/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
47685: esac
47686:
47687:
47688:
47689: b_c_pre=$php_c_pre
47690: b_cxx_pre=$php_cxx_pre
47691: b_c_meta=$php_c_meta
47692: b_cxx_meta=$php_cxx_meta
47693: b_c_post=$php_c_post
47694: b_cxx_post=$php_cxx_post
47695: b_lo=$php_lo
47696:
47697:
47698: old_IFS=$IFS
47699: for ac_src in gettext.c; do
47700:
47701: IFS=.
47702: set $ac_src
47703: ac_obj=$1
47704: IFS=$old_IFS
47705:
47706: PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo"
47707:
47708: case $ac_src in
47709: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
47710: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
47711: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
47712: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
47713: esac
47714:
47715: cat >>Makefile.objects<<EOF
47716: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
47717: $ac_comp
47718: EOF
47719: done
47720:
47721:
47722:
47723:
47724: case ext/gettext in
47725: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
47726: /*) ac_srcdir=`echo "ext/gettext"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
47727: *) ac_srcdir="$abs_srcdir/ext/gettext/"; ac_bdir="ext/gettext/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
47728: esac
47729:
47730:
47731:
47732: b_c_pre=$php_c_pre
47733: b_cxx_pre=$php_cxx_pre
47734: b_c_meta=$php_c_meta
47735: b_cxx_meta=$php_cxx_meta
47736: b_c_post=$php_c_post
47737: b_cxx_post=$php_cxx_post
47738: b_lo=$php_lo
47739:
47740:
47741: old_IFS=$IFS
47742: for ac_src in gettext.c; do
47743:
47744: IFS=.
47745: set $ac_src
47746: ac_obj=$1
47747: IFS=$old_IFS
47748:
47749: PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo"
47750:
47751: case $ac_src in
47752: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
47753: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
47754: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
47755: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
47756: esac
47757:
47758: cat >>Makefile.objects<<EOF
47759: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
47760: $ac_comp
47761: EOF
47762: done
47763:
47764:
47765: EXT_CLI_STATIC="$EXT_CLI_STATIC gettext"
47766: fi
47767:
47768:
47769: BUILD_DIR="$BUILD_DIR $ext_builddir"
47770:
47771:
47772:
47773: if test "$ext_builddir" = "."; then
47774: PHP_PECL_EXTENSION=gettext
47775:
47776: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
47777:
47778: fi
47779:
47780:
47781: PHP_VAR_SUBST="$PHP_VAR_SUBST GETTEXT_SHARED_LIBADD"
47782:
47783:
47784: if test -n "$GETTEXT_LIBS"; then
47785:
47786:
47787: if test "$ext_shared" = "yes"; then
47788: GETTEXT_SHARED_LIBADD="-l$GETTEXT_LIBS $GETTEXT_SHARED_LIBADD"
47789: if test -n "$GETTEXT_LIBDIR"; then
47790:
47791: if test "$GETTEXT_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GETTEXT_LIBDIR" != "/usr/lib"; then
47792:
47793: if test -z "$GETTEXT_LIBDIR" || echo "$GETTEXT_LIBDIR" | grep '^/' >/dev/null ; then
47794: ai_p=$GETTEXT_LIBDIR
47795: else
47796:
47797: ep_dir="`echo $GETTEXT_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
47798:
47799: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
47800: ai_p="$ep_realdir/`basename \"$GETTEXT_LIBDIR\"`"
47801: fi
47802:
47803:
47804: if test "$ext_shared" = "yes"; then
47805: GETTEXT_SHARED_LIBADD="-L$ai_p $GETTEXT_SHARED_LIBADD"
47806: test -n "$ld_runpath_switch" && GETTEXT_SHARED_LIBADD="$ld_runpath_switch$ai_p $GETTEXT_SHARED_LIBADD"
47807: else
47808:
47809:
47810:
47811: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
47812:
47813: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
47814: if test -n "$unique" && test "`eval $cmd`" = "" ; then
47815: eval "LIBPATH$unique=set"
47816:
47817: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
47818: LDFLAGS="$LDFLAGS -L$ai_p"
47819: PHP_RPATHS="$PHP_RPATHS $ai_p"
47820:
47821: fi
47822:
47823:
47824: fi
47825:
47826: fi
47827:
47828: fi
47829: else
47830:
47831:
47832: if test -n "$GETTEXT_LIBDIR"; then
47833:
47834: if test "$GETTEXT_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GETTEXT_LIBDIR" != "/usr/lib"; then
47835:
47836: if test -z "$GETTEXT_LIBDIR" || echo "$GETTEXT_LIBDIR" | grep '^/' >/dev/null ; then
47837: ai_p=$GETTEXT_LIBDIR
47838: else
47839:
47840: ep_dir="`echo $GETTEXT_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
47841:
47842: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
47843: ai_p="$ep_realdir/`basename \"$GETTEXT_LIBDIR\"`"
47844: fi
47845:
47846:
47847:
47848:
47849:
47850: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
47851:
47852: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
47853: if test -n "$unique" && test "`eval $cmd`" = "" ; then
47854: eval "LIBPATH$unique=set"
47855:
47856: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
47857: LDFLAGS="$LDFLAGS -L$ai_p"
47858: PHP_RPATHS="$PHP_RPATHS $ai_p"
47859:
47860: fi
47861:
47862:
47863:
47864: fi
47865:
47866: fi
47867:
47868:
47869: case $GETTEXT_LIBS in
47870: c|c_r|pthread*) ;;
47871: *)
47872: LIBS="-l$GETTEXT_LIBS $LIBS"
47873: ;;
47874: esac
47875:
47876:
47877:
47878:
47879: fi
47880:
47881:
47882: fi
47883:
47884:
47885: if test "$GETTEXT_INCDIR" != "/usr/include"; then
47886:
47887: if test -z "$GETTEXT_INCDIR" || echo "$GETTEXT_INCDIR" | grep '^/' >/dev/null ; then
47888: ai_p=$GETTEXT_INCDIR
47889: else
47890:
47891: ep_dir="`echo $GETTEXT_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`"
47892:
47893: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
47894: ai_p="$ep_realdir/`basename \"$GETTEXT_INCDIR\"`"
47895: fi
47896:
47897:
47898:
47899: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
47900:
47901: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
47902: if test -n "$unique" && test "`eval $cmd`" = "" ; then
47903: eval "INCLUDEPATH$unique=set"
47904:
47905: if test ""; then
47906: INCLUDES="-I$ai_p $INCLUDES"
47907: else
47908: INCLUDES="$INCLUDES -I$ai_p"
47909: fi
47910:
47911: fi
47912:
47913: fi
47914:
47915:
47916: as_ac_Lib=`$as_echo "ac_cv_lib_$GETTEXT_CHECK_IN_LIB''_ngettext" | $as_tr_sh`
47917: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -l$GETTEXT_CHECK_IN_LIB" >&5
47918: $as_echo_n "checking for ngettext in -l$GETTEXT_CHECK_IN_LIB... " >&6; }
47919: if eval \${$as_ac_Lib+:} false; then :
47920: $as_echo_n "(cached) " >&6
47921: else
47922: ac_check_lib_save_LIBS=$LIBS
47923: LIBS="-l$GETTEXT_CHECK_IN_LIB $LIBS"
47924: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47925: /* end confdefs.h. */
47926:
47927: /* Override any GCC internal prototype to avoid an error.
47928: Use char because int might match the return type of a GCC
47929: builtin and then its argument prototype would still apply. */
47930: #ifdef __cplusplus
47931: extern "C"
47932: #endif
47933: char ngettext ();
47934: int
47935: main ()
47936: {
47937: return ngettext ();
47938: ;
47939: return 0;
47940: }
47941: _ACEOF
47942: if ac_fn_c_try_link "$LINENO"; then :
47943: eval "$as_ac_Lib=yes"
47944: else
47945: eval "$as_ac_Lib=no"
47946: fi
47947: rm -f core conftest.err conftest.$ac_objext \
47948: conftest$ac_exeext conftest.$ac_ext
47949: LIBS=$ac_check_lib_save_LIBS
47950: fi
47951: eval ac_res=\$$as_ac_Lib
47952: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
47953: $as_echo "$ac_res" >&6; }
47954: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
47955:
47956: $as_echo "#define HAVE_NGETTEXT 1" >>confdefs.h
47957:
47958: fi
47959:
47960: as_ac_Lib=`$as_echo "ac_cv_lib_$GETTEXT_CHECK_IN_LIB''_dngettext" | $as_tr_sh`
47961: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dngettext in -l$GETTEXT_CHECK_IN_LIB" >&5
47962: $as_echo_n "checking for dngettext in -l$GETTEXT_CHECK_IN_LIB... " >&6; }
47963: if eval \${$as_ac_Lib+:} false; then :
47964: $as_echo_n "(cached) " >&6
47965: else
47966: ac_check_lib_save_LIBS=$LIBS
47967: LIBS="-l$GETTEXT_CHECK_IN_LIB $LIBS"
47968: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47969: /* end confdefs.h. */
47970:
47971: /* Override any GCC internal prototype to avoid an error.
47972: Use char because int might match the return type of a GCC
47973: builtin and then its argument prototype would still apply. */
47974: #ifdef __cplusplus
47975: extern "C"
47976: #endif
47977: char dngettext ();
47978: int
47979: main ()
47980: {
47981: return dngettext ();
47982: ;
47983: return 0;
47984: }
47985: _ACEOF
47986: if ac_fn_c_try_link "$LINENO"; then :
47987: eval "$as_ac_Lib=yes"
47988: else
47989: eval "$as_ac_Lib=no"
47990: fi
47991: rm -f core conftest.err conftest.$ac_objext \
47992: conftest$ac_exeext conftest.$ac_ext
47993: LIBS=$ac_check_lib_save_LIBS
47994: fi
47995: eval ac_res=\$$as_ac_Lib
47996: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
47997: $as_echo "$ac_res" >&6; }
47998: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
47999:
48000: $as_echo "#define HAVE_DNGETTEXT 1" >>confdefs.h
48001:
48002: fi
48003:
48004: as_ac_Lib=`$as_echo "ac_cv_lib_$GETTEXT_CHECK_IN_LIB''_dcngettext" | $as_tr_sh`
48005: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dcngettext in -l$GETTEXT_CHECK_IN_LIB" >&5
48006: $as_echo_n "checking for dcngettext in -l$GETTEXT_CHECK_IN_LIB... " >&6; }
48007: if eval \${$as_ac_Lib+:} false; then :
48008: $as_echo_n "(cached) " >&6
48009: else
48010: ac_check_lib_save_LIBS=$LIBS
48011: LIBS="-l$GETTEXT_CHECK_IN_LIB $LIBS"
48012: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48013: /* end confdefs.h. */
48014:
48015: /* Override any GCC internal prototype to avoid an error.
48016: Use char because int might match the return type of a GCC
48017: builtin and then its argument prototype would still apply. */
48018: #ifdef __cplusplus
48019: extern "C"
48020: #endif
48021: char dcngettext ();
48022: int
48023: main ()
48024: {
48025: return dcngettext ();
48026: ;
48027: return 0;
48028: }
48029: _ACEOF
48030: if ac_fn_c_try_link "$LINENO"; then :
48031: eval "$as_ac_Lib=yes"
48032: else
48033: eval "$as_ac_Lib=no"
48034: fi
48035: rm -f core conftest.err conftest.$ac_objext \
48036: conftest$ac_exeext conftest.$ac_ext
48037: LIBS=$ac_check_lib_save_LIBS
48038: fi
48039: eval ac_res=\$$as_ac_Lib
48040: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
48041: $as_echo "$ac_res" >&6; }
48042: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
48043:
48044: $as_echo "#define HAVE_DCNGETTEXT 1" >>confdefs.h
48045:
48046: fi
48047:
48048: as_ac_Lib=`$as_echo "ac_cv_lib_$GETTEXT_CHECK_IN_LIB''_bind_textdomain_codeset" | $as_tr_sh`
48049: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind_textdomain_codeset in -l$GETTEXT_CHECK_IN_LIB" >&5
48050: $as_echo_n "checking for bind_textdomain_codeset in -l$GETTEXT_CHECK_IN_LIB... " >&6; }
48051: if eval \${$as_ac_Lib+:} false; then :
48052: $as_echo_n "(cached) " >&6
48053: else
48054: ac_check_lib_save_LIBS=$LIBS
48055: LIBS="-l$GETTEXT_CHECK_IN_LIB $LIBS"
48056: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48057: /* end confdefs.h. */
48058:
48059: /* Override any GCC internal prototype to avoid an error.
48060: Use char because int might match the return type of a GCC
48061: builtin and then its argument prototype would still apply. */
48062: #ifdef __cplusplus
48063: extern "C"
48064: #endif
48065: char bind_textdomain_codeset ();
48066: int
48067: main ()
48068: {
48069: return bind_textdomain_codeset ();
48070: ;
48071: return 0;
48072: }
48073: _ACEOF
48074: if ac_fn_c_try_link "$LINENO"; then :
48075: eval "$as_ac_Lib=yes"
48076: else
48077: eval "$as_ac_Lib=no"
48078: fi
48079: rm -f core conftest.err conftest.$ac_objext \
48080: conftest$ac_exeext conftest.$ac_ext
48081: LIBS=$ac_check_lib_save_LIBS
48082: fi
48083: eval ac_res=\$$as_ac_Lib
48084: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
48085: $as_echo "$ac_res" >&6; }
48086: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
48087:
48088: $as_echo "#define HAVE_BIND_TEXTDOMAIN_CODESET 1" >>confdefs.h
48089:
48090: fi
48091:
48092:
48093: fi
48094:
48095:
48096:
48097: php_with_gmp=no
48098:
48099: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU MP support" >&5
48100: $as_echo_n "checking for GNU MP support... " >&6; }
48101:
48102: # Check whether --with-gmp was given.
48103: if test "${with_gmp+set}" = set; then :
48104: withval=$with_gmp; PHP_GMP=$withval
48105: else
48106:
48107: PHP_GMP=no
48108: test "$PHP_ENABLE_ALL" && PHP_GMP=$PHP_ENABLE_ALL
48109:
48110: fi
48111:
48112:
48113:
48114: ext_output="yes, shared"
48115: ext_shared=yes
48116: case $PHP_GMP in
48117: shared,*)
48118: PHP_GMP=`echo "$PHP_GMP"|$SED 's/^shared,//'`
48119: ;;
48120: shared)
48121: PHP_GMP=yes
48122: ;;
48123: no)
48124: ext_output=no
48125: ext_shared=no
48126: ;;
48127: *)
48128: ext_output=yes
48129: ext_shared=no
48130: ;;
48131: esac
48132:
48133:
48134:
48135: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
48136: $as_echo "$ext_output" >&6; }
48137:
48138:
48139:
48140:
48141: if test "$PHP_GMP" != "no"; then
48142:
48143: for i in $PHP_GMP /usr/local /usr; do
48144: test -f $i/include/gmp.h && GMP_DIR=$i && break
48145: done
48146:
48147: if test -z "$GMP_DIR"; then
48148: as_fn_error $? "Unable to locate gmp.h" "$LINENO" 5
48149: fi
48150:
48151:
48152: save_old_LDFLAGS=$LDFLAGS
48153: ac_stuff="
48154: -L$GMP_DIR/$PHP_LIBDIR
48155: "
48156:
48157: save_ext_shared=$ext_shared
48158: ext_shared=yes
48159:
48160: for ac_i in $ac_stuff; do
48161: case $ac_i in
48162: -pthread)
48163: if test "$ext_shared" = "yes"; then
48164: LDFLAGS="$LDFLAGS -pthread"
48165: else
48166:
48167:
48168: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
48169:
48170: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
48171: if test -n "$unique" && test "`eval $cmd`" = "" ; then
48172: eval "EXTRA_LDFLAGS$unique=set"
48173: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
48174: fi
48175:
48176: fi
48177: ;;
48178: -l*)
48179: ac_ii=`echo $ac_i|cut -c 3-`
48180:
48181:
48182: case $ac_ii in
48183: c|c_r|pthread*) ;;
48184: *)
48185: if test "$ext_shared" = "yes"; then
48186: LDFLAGS="$LDFLAGS -l$ac_ii"
48187: else
48188:
48189:
48190: case $ac_ii in
48191: c|c_r|pthread*) ;;
48192: *)
48193: LIBS="$LIBS -l$ac_ii"
48194: ;;
48195: esac
48196:
48197:
48198: fi
48199: ;;
48200: esac
48201:
48202:
48203: ;;
48204: -L*)
48205: ac_ii=`echo $ac_i|cut -c 3-`
48206:
48207: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
48208:
48209: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
48210: ai_p=$ac_ii
48211: else
48212:
48213: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
48214:
48215: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
48216: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
48217: fi
48218:
48219:
48220: if test "$ext_shared" = "yes"; then
48221: LDFLAGS="-L$ai_p $LDFLAGS"
48222: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
48223: else
48224:
48225:
48226:
48227: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
48228:
48229: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
48230: if test -n "$unique" && test "`eval $cmd`" = "" ; then
48231: eval "LIBPATH$unique=set"
48232:
48233: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
48234: LDFLAGS="$LDFLAGS -L$ai_p"
48235: PHP_RPATHS="$PHP_RPATHS $ai_p"
48236:
48237: fi
48238:
48239:
48240: fi
48241:
48242: fi
48243:
48244: ;;
48245: esac
48246: done
48247:
48248: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmp_randinit_lc_2exp_size in -lgmp" >&5
48249: $as_echo_n "checking for __gmp_randinit_lc_2exp_size in -lgmp... " >&6; }
48250: if ${ac_cv_lib_gmp___gmp_randinit_lc_2exp_size+:} false; then :
48251: $as_echo_n "(cached) " >&6
48252: else
48253: ac_check_lib_save_LIBS=$LIBS
48254: LIBS="-lgmp $LIBS"
48255: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48256: /* end confdefs.h. */
48257:
48258: /* Override any GCC internal prototype to avoid an error.
48259: Use char because int might match the return type of a GCC
48260: builtin and then its argument prototype would still apply. */
48261: #ifdef __cplusplus
48262: extern "C"
48263: #endif
48264: char __gmp_randinit_lc_2exp_size ();
48265: int
48266: main ()
48267: {
48268: return __gmp_randinit_lc_2exp_size ();
48269: ;
48270: return 0;
48271: }
48272: _ACEOF
48273: if ac_fn_c_try_link "$LINENO"; then :
48274: ac_cv_lib_gmp___gmp_randinit_lc_2exp_size=yes
48275: else
48276: ac_cv_lib_gmp___gmp_randinit_lc_2exp_size=no
48277: fi
48278: rm -f core conftest.err conftest.$ac_objext \
48279: conftest$ac_exeext conftest.$ac_ext
48280: LIBS=$ac_check_lib_save_LIBS
48281: fi
48282: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmp_randinit_lc_2exp_size" >&5
48283: $as_echo "$ac_cv_lib_gmp___gmp_randinit_lc_2exp_size" >&6; }
48284: if test "x$ac_cv_lib_gmp___gmp_randinit_lc_2exp_size" = xyes; then :
48285:
48286: LDFLAGS=$save_old_LDFLAGS
48287: ext_shared=$save_ext_shared
48288:
48289:
48290: else
48291:
48292: LDFLAGS=$save_old_LDFLAGS
48293: ext_shared=$save_ext_shared
48294: unset ac_cv_lib_gmp___gmp_randinit_lc_2exp_size
48295:
48296:
48297: save_old_LDFLAGS=$LDFLAGS
48298: ac_stuff="
48299: -L$GMP_DIR/$PHP_LIBDIR
48300: "
48301:
48302: save_ext_shared=$ext_shared
48303: ext_shared=yes
48304:
48305: for ac_i in $ac_stuff; do
48306: case $ac_i in
48307: -pthread)
48308: if test "$ext_shared" = "yes"; then
48309: LDFLAGS="$LDFLAGS -pthread"
48310: else
48311:
48312:
48313: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
48314:
48315: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
48316: if test -n "$unique" && test "`eval $cmd`" = "" ; then
48317: eval "EXTRA_LDFLAGS$unique=set"
48318: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
48319: fi
48320:
48321: fi
48322: ;;
48323: -l*)
48324: ac_ii=`echo $ac_i|cut -c 3-`
48325:
48326:
48327: case $ac_ii in
48328: c|c_r|pthread*) ;;
48329: *)
48330: if test "$ext_shared" = "yes"; then
48331: LDFLAGS="$LDFLAGS -l$ac_ii"
48332: else
48333:
48334:
48335: case $ac_ii in
48336: c|c_r|pthread*) ;;
48337: *)
48338: LIBS="$LIBS -l$ac_ii"
48339: ;;
48340: esac
48341:
48342:
48343: fi
48344: ;;
48345: esac
48346:
48347:
48348: ;;
48349: -L*)
48350: ac_ii=`echo $ac_i|cut -c 3-`
48351:
48352: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
48353:
48354: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
48355: ai_p=$ac_ii
48356: else
48357:
48358: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
48359:
48360: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
48361: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
48362: fi
48363:
48364:
48365: if test "$ext_shared" = "yes"; then
48366: LDFLAGS="-L$ai_p $LDFLAGS"
48367: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
48368: else
48369:
48370:
48371:
48372: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
48373:
48374: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
48375: if test -n "$unique" && test "`eval $cmd`" = "" ; then
48376: eval "LIBPATH$unique=set"
48377:
48378: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
48379: LDFLAGS="$LDFLAGS -L$ai_p"
48380: PHP_RPATHS="$PHP_RPATHS $ai_p"
48381:
48382: fi
48383:
48384:
48385: fi
48386:
48387: fi
48388:
48389: ;;
48390: esac
48391: done
48392:
48393: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gmp_randinit_lc_2exp_size in -lgmp" >&5
48394: $as_echo_n "checking for gmp_randinit_lc_2exp_size in -lgmp... " >&6; }
48395: if ${ac_cv_lib_gmp_gmp_randinit_lc_2exp_size+:} false; then :
48396: $as_echo_n "(cached) " >&6
48397: else
48398: ac_check_lib_save_LIBS=$LIBS
48399: LIBS="-lgmp $LIBS"
48400: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48401: /* end confdefs.h. */
48402:
48403: /* Override any GCC internal prototype to avoid an error.
48404: Use char because int might match the return type of a GCC
48405: builtin and then its argument prototype would still apply. */
48406: #ifdef __cplusplus
48407: extern "C"
48408: #endif
48409: char gmp_randinit_lc_2exp_size ();
48410: int
48411: main ()
48412: {
48413: return gmp_randinit_lc_2exp_size ();
48414: ;
48415: return 0;
48416: }
48417: _ACEOF
48418: if ac_fn_c_try_link "$LINENO"; then :
48419: ac_cv_lib_gmp_gmp_randinit_lc_2exp_size=yes
48420: else
48421: ac_cv_lib_gmp_gmp_randinit_lc_2exp_size=no
48422: fi
48423: rm -f core conftest.err conftest.$ac_objext \
48424: conftest$ac_exeext conftest.$ac_ext
48425: LIBS=$ac_check_lib_save_LIBS
48426: fi
48427: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp_gmp_randinit_lc_2exp_size" >&5
48428: $as_echo "$ac_cv_lib_gmp_gmp_randinit_lc_2exp_size" >&6; }
48429: if test "x$ac_cv_lib_gmp_gmp_randinit_lc_2exp_size" = xyes; then :
48430:
48431: LDFLAGS=$save_old_LDFLAGS
48432: ext_shared=$save_ext_shared
48433:
48434:
48435: else
48436:
48437: LDFLAGS=$save_old_LDFLAGS
48438: ext_shared=$save_ext_shared
48439: unset ac_cv_lib_gmp_gmp_randinit_lc_2exp_size
48440:
48441: as_fn_error $? "GNU MP Library version 4.1.2 or greater required." "$LINENO" 5
48442:
48443:
48444: fi
48445:
48446:
48447:
48448: fi
48449:
48450:
48451:
48452:
48453: if test "$ext_shared" = "yes"; then
48454: GMP_SHARED_LIBADD="-lgmp $GMP_SHARED_LIBADD"
48455: if test -n "$GMP_DIR/$PHP_LIBDIR"; then
48456:
48457: if test "$GMP_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GMP_DIR/$PHP_LIBDIR" != "/usr/lib"; then
48458:
48459: if test -z "$GMP_DIR/$PHP_LIBDIR" || echo "$GMP_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
48460: ai_p=$GMP_DIR/$PHP_LIBDIR
48461: else
48462:
48463: ep_dir="`echo $GMP_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
48464:
48465: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
48466: ai_p="$ep_realdir/`basename \"$GMP_DIR/$PHP_LIBDIR\"`"
48467: fi
48468:
48469:
48470: if test "$ext_shared" = "yes"; then
48471: GMP_SHARED_LIBADD="-L$ai_p $GMP_SHARED_LIBADD"
48472: test -n "$ld_runpath_switch" && GMP_SHARED_LIBADD="$ld_runpath_switch$ai_p $GMP_SHARED_LIBADD"
48473: else
48474:
48475:
48476:
48477: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
48478:
48479: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
48480: if test -n "$unique" && test "`eval $cmd`" = "" ; then
48481: eval "LIBPATH$unique=set"
48482:
48483: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
48484: LDFLAGS="$LDFLAGS -L$ai_p"
48485: PHP_RPATHS="$PHP_RPATHS $ai_p"
48486:
48487: fi
48488:
48489:
48490: fi
48491:
48492: fi
48493:
48494: fi
48495: else
48496:
48497:
48498: if test -n "$GMP_DIR/$PHP_LIBDIR"; then
48499:
48500: if test "$GMP_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GMP_DIR/$PHP_LIBDIR" != "/usr/lib"; then
48501:
48502: if test -z "$GMP_DIR/$PHP_LIBDIR" || echo "$GMP_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
48503: ai_p=$GMP_DIR/$PHP_LIBDIR
48504: else
48505:
48506: ep_dir="`echo $GMP_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
48507:
48508: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
48509: ai_p="$ep_realdir/`basename \"$GMP_DIR/$PHP_LIBDIR\"`"
48510: fi
48511:
48512:
48513:
48514:
48515:
48516: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
48517:
48518: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
48519: if test -n "$unique" && test "`eval $cmd`" = "" ; then
48520: eval "LIBPATH$unique=set"
48521:
48522: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
48523: LDFLAGS="$LDFLAGS -L$ai_p"
48524: PHP_RPATHS="$PHP_RPATHS $ai_p"
48525:
48526: fi
48527:
48528:
48529:
48530: fi
48531:
48532: fi
48533:
48534:
48535: case gmp in
48536: c|c_r|pthread*) ;;
48537: *)
48538: LIBS="-lgmp $LIBS"
48539: ;;
48540: esac
48541:
48542:
48543:
48544:
48545: fi
48546:
48547:
48548:
48549: if test "$GMP_DIR/include" != "/usr/include"; then
48550:
48551: if test -z "$GMP_DIR/include" || echo "$GMP_DIR/include" | grep '^/' >/dev/null ; then
48552: ai_p=$GMP_DIR/include
48553: else
48554:
48555: ep_dir="`echo $GMP_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
48556:
48557: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
48558: ai_p="$ep_realdir/`basename \"$GMP_DIR/include\"`"
48559: fi
48560:
48561:
48562:
48563: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
48564:
48565: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
48566: if test -n "$unique" && test "`eval $cmd`" = "" ; then
48567: eval "INCLUDEPATH$unique=set"
48568:
48569: if test ""; then
48570: INCLUDES="-I$ai_p $INCLUDES"
48571: else
48572: INCLUDES="$INCLUDES -I$ai_p"
48573: fi
48574:
48575: fi
48576:
48577: fi
48578:
48579:
48580:
48581: ext_builddir=ext/gmp
48582: ext_srcdir=$abs_srcdir/ext/gmp
48583:
48584: ac_extra=
48585:
48586: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
48587: PHP_GMP_SHARED=no
48588:
48589:
48590: case ext/gmp in
48591: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
48592: /*) ac_srcdir=`echo "ext/gmp"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
48593: *) ac_srcdir="$abs_srcdir/ext/gmp/"; ac_bdir="ext/gmp/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
48594: esac
48595:
48596:
48597:
48598: b_c_pre=$php_c_pre
48599: b_cxx_pre=$php_cxx_pre
48600: b_c_meta=$php_c_meta
48601: b_cxx_meta=$php_cxx_meta
48602: b_c_post=$php_c_post
48603: b_cxx_post=$php_cxx_post
48604: b_lo=$php_lo
48605:
48606:
48607: old_IFS=$IFS
48608: for ac_src in gmp.c; do
48609:
48610: IFS=.
48611: set $ac_src
48612: ac_obj=$1
48613: IFS=$old_IFS
48614:
48615: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
48616:
48617: case $ac_src in
48618: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
48619: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
48620: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
48621: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
48622: esac
48623:
48624: cat >>Makefile.objects<<EOF
48625: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
48626: $ac_comp
48627: EOF
48628: done
48629:
48630:
48631: EXT_STATIC="$EXT_STATIC gmp"
48632: if test "$ext_shared" != "nocli"; then
48633: EXT_CLI_STATIC="$EXT_CLI_STATIC gmp"
48634: fi
48635: else
48636: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
48637: PHP_GMP_SHARED=yes
48638:
48639: case ext/gmp in
48640: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
48641: /*) ac_srcdir=`echo "ext/gmp"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
48642: *) ac_srcdir="$abs_srcdir/ext/gmp/"; ac_bdir="ext/gmp/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
48643: esac
48644:
48645:
48646:
48647: b_c_pre=$shared_c_pre
48648: b_cxx_pre=$shared_cxx_pre
48649: b_c_meta=$shared_c_meta
48650: b_cxx_meta=$shared_cxx_meta
48651: b_c_post=$shared_c_post
48652: b_cxx_post=$shared_cxx_post
48653: b_lo=$shared_lo
48654:
48655:
48656: old_IFS=$IFS
48657: for ac_src in gmp.c; do
48658:
48659: IFS=.
48660: set $ac_src
48661: ac_obj=$1
48662: IFS=$old_IFS
48663:
48664: shared_objects_gmp="$shared_objects_gmp $ac_bdir$ac_obj.lo"
48665:
48666: case $ac_src in
48667: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
48668: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
48669: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
48670: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
48671: esac
48672:
48673: cat >>Makefile.objects<<EOF
48674: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
48675: $ac_comp
48676: EOF
48677: done
48678:
48679: case $host_alias in
48680: *netware*)
48681:
48682: install_modules="install-modules"
48683:
48684: case $host_alias in
48685: *aix*)
48686: suffix=so
48687: 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'
48688: ;;
48689: *netware*)
48690: suffix=nlm
48691: link_cmd='$(LIBTOOL) --mode=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)'
48692: ;;
48693: *)
48694: suffix=la
48695: link_cmd='$(LIBTOOL) --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)'
48696: ;;
48697: esac
48698:
48699: if test "x" = "xyes"; then
48700: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpgmp.$suffix"
48701: else
48702: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpgmp.$suffix"
48703: fi
48704:
48705: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_gmp"
48706:
48707: cat >>Makefile.objects<<EOF
48708: \$(phplibdir)/phpgmp.$suffix: $ext_builddir/phpgmp.$suffix
48709: \$(LIBTOOL) --mode=install cp $ext_builddir/phpgmp.$suffix \$(phplibdir)
48710:
48711: $ext_builddir/phpgmp.$suffix: \$(shared_objects_gmp) \$(PHPGMP_SHARED_DEPENDENCIES)
48712: $link_cmd
48713:
48714: EOF
48715:
48716: ;;
48717: *)
48718:
48719: install_modules="install-modules"
48720:
48721: case $host_alias in
48722: *aix*)
48723: suffix=so
48724: 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'
48725: ;;
48726: *netware*)
48727: suffix=nlm
48728: link_cmd='$(LIBTOOL) --mode=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)'
48729: ;;
48730: *)
48731: suffix=la
48732: link_cmd='$(LIBTOOL) --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)'
48733: ;;
48734: esac
48735:
48736: if test "x" = "xyes"; then
48737: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/gmp.$suffix"
48738: else
48739: PHP_MODULES="$PHP_MODULES \$(phplibdir)/gmp.$suffix"
48740: fi
48741:
48742: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_gmp"
48743:
48744: cat >>Makefile.objects<<EOF
48745: \$(phplibdir)/gmp.$suffix: $ext_builddir/gmp.$suffix
48746: \$(LIBTOOL) --mode=install cp $ext_builddir/gmp.$suffix \$(phplibdir)
48747:
48748: $ext_builddir/gmp.$suffix: \$(shared_objects_gmp) \$(GMP_SHARED_DEPENDENCIES)
48749: $link_cmd
48750:
48751: EOF
48752:
48753: ;;
48754: esac
48755:
48756: cat >>confdefs.h <<_ACEOF
48757: #define COMPILE_DL_GMP 1
48758: _ACEOF
48759:
48760: fi
48761: fi
48762:
48763: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
48764: PHP_GMP_SHARED=no
48765:
48766:
48767: case ext/gmp in
48768: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
48769: /*) ac_srcdir=`echo "ext/gmp"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
48770: *) ac_srcdir="$abs_srcdir/ext/gmp/"; ac_bdir="ext/gmp/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
48771: esac
48772:
48773:
48774:
48775: b_c_pre=$php_c_pre
48776: b_cxx_pre=$php_cxx_pre
48777: b_c_meta=$php_c_meta
48778: b_cxx_meta=$php_cxx_meta
48779: b_c_post=$php_c_post
48780: b_cxx_post=$php_cxx_post
48781: b_lo=$php_lo
48782:
48783:
48784: old_IFS=$IFS
48785: for ac_src in gmp.c; do
48786:
48787: IFS=.
48788: set $ac_src
48789: ac_obj=$1
48790: IFS=$old_IFS
48791:
48792: PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
48793:
48794: case $ac_src in
48795: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
48796: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
48797: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
48798: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
48799: esac
48800:
48801: cat >>Makefile.objects<<EOF
48802: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
48803: $ac_comp
48804: EOF
48805: done
48806:
48807:
48808:
48809:
48810: case ext/gmp in
48811: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
48812: /*) ac_srcdir=`echo "ext/gmp"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
48813: *) ac_srcdir="$abs_srcdir/ext/gmp/"; ac_bdir="ext/gmp/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
48814: esac
48815:
48816:
48817:
48818: b_c_pre=$php_c_pre
48819: b_cxx_pre=$php_cxx_pre
48820: b_c_meta=$php_c_meta
48821: b_cxx_meta=$php_cxx_meta
48822: b_c_post=$php_c_post
48823: b_cxx_post=$php_cxx_post
48824: b_lo=$php_lo
48825:
48826:
48827: old_IFS=$IFS
48828: for ac_src in gmp.c; do
48829:
48830: IFS=.
48831: set $ac_src
48832: ac_obj=$1
48833: IFS=$old_IFS
48834:
48835: PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo"
48836:
48837: case $ac_src in
48838: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
48839: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
48840: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
48841: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
48842: esac
48843:
48844: cat >>Makefile.objects<<EOF
48845: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
48846: $ac_comp
48847: EOF
48848: done
48849:
48850:
48851:
48852:
48853: case ext/gmp in
48854: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
48855: /*) ac_srcdir=`echo "ext/gmp"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
48856: *) ac_srcdir="$abs_srcdir/ext/gmp/"; ac_bdir="ext/gmp/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
48857: esac
48858:
48859:
48860:
48861: b_c_pre=$php_c_pre
48862: b_cxx_pre=$php_cxx_pre
48863: b_c_meta=$php_c_meta
48864: b_cxx_meta=$php_cxx_meta
48865: b_c_post=$php_c_post
48866: b_cxx_post=$php_cxx_post
48867: b_lo=$php_lo
48868:
48869:
48870: old_IFS=$IFS
48871: for ac_src in gmp.c; do
48872:
48873: IFS=.
48874: set $ac_src
48875: ac_obj=$1
48876: IFS=$old_IFS
48877:
48878: PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo"
48879:
48880: case $ac_src in
48881: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
48882: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
48883: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
48884: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
48885: esac
48886:
48887: cat >>Makefile.objects<<EOF
48888: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
48889: $ac_comp
48890: EOF
48891: done
48892:
48893:
48894: EXT_CLI_STATIC="$EXT_CLI_STATIC gmp"
48895: fi
48896:
48897:
48898: BUILD_DIR="$BUILD_DIR $ext_builddir"
48899:
48900:
48901:
48902: if test "$ext_builddir" = "."; then
48903: PHP_PECL_EXTENSION=gmp
48904:
48905: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
48906:
48907: fi
48908:
48909:
48910: PHP_VAR_SUBST="$PHP_VAR_SUBST GMP_SHARED_LIBADD"
48911:
48912:
48913: $as_echo "#define HAVE_GMP 1" >>confdefs.h
48914:
48915: fi
48916:
48917:
48918:
48919: php_with_mhash=no
48920:
48921: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mhash support" >&5
48922: $as_echo_n "checking for mhash support... " >&6; }
48923:
48924: # Check whether --with-mhash was given.
48925: if test "${with_mhash+set}" = set; then :
48926: withval=$with_mhash; PHP_MHASH=$withval
48927: else
48928:
48929: PHP_MHASH=no
48930: test "$PHP_ENABLE_ALL" && PHP_MHASH=$PHP_ENABLE_ALL
48931:
48932: fi
48933:
48934:
48935:
48936: ext_output="yes, shared"
48937: ext_shared=yes
48938: case $PHP_MHASH in
48939: shared,*)
48940: PHP_MHASH=`echo "$PHP_MHASH"|$SED 's/^shared,//'`
48941: ;;
48942: shared)
48943: PHP_MHASH=yes
48944: ;;
48945: no)
48946: ext_output=no
48947: ext_shared=no
48948: ;;
48949: *)
48950: ext_output=yes
48951: ext_shared=no
48952: ;;
48953: esac
48954:
48955:
48956:
48957: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
48958: $as_echo "$ext_output" >&6; }
48959:
48960:
48961:
48962:
48963:
48964: php_enable_hash=yes
48965:
48966: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable hash support" >&5
48967: $as_echo_n "checking whether to enable hash support... " >&6; }
48968: # Check whether --enable-hash was given.
48969: if test "${enable_hash+set}" = set; then :
48970: enableval=$enable_hash; PHP_HASH=$enableval
48971: else
48972:
48973: PHP_HASH=yes
48974: test "$PHP_ENABLE_ALL" && PHP_HASH=$PHP_ENABLE_ALL
48975:
48976: fi
48977:
48978:
48979:
48980: ext_output="yes, shared"
48981: ext_shared=yes
48982: case $PHP_HASH in
48983: shared,*)
48984: PHP_HASH=`echo "$PHP_HASH"|$SED 's/^shared,//'`
48985: ;;
48986: shared)
48987: PHP_HASH=yes
48988: ;;
48989: no)
48990: ext_output=no
48991: ext_shared=no
48992: ;;
48993: *)
48994: ext_output=yes
48995: ext_shared=no
48996: ;;
48997: esac
48998:
48999:
49000:
49001: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
49002: $as_echo "$ext_output" >&6; }
49003:
49004:
49005:
49006:
49007: if test "$PHP_MHASH" != "no"; then
49008: if test "$PHP_HASH" = "no"; then
49009: PHP_HASH="yes"
49010: fi
49011:
49012:
49013: $as_echo "#define PHP_MHASH_BC 1" >>confdefs.h
49014:
49015: fi
49016:
49017: if test "$PHP_HASH" != "no"; then
49018:
49019: $as_echo "#define HAVE_HASH_EXT 1" >>confdefs.h
49020:
49021:
49022: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
49023: $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
49024: if ${ac_cv_c_bigendian_php+:} false; then :
49025: $as_echo_n "(cached) " >&6
49026: else
49027:
49028: ac_cv_c_bigendian_php=unknown
49029: if test "$cross_compiling" = yes; then :
49030: ac_cv_c_bigendian_php=unknown
49031: else
49032: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49033: /* end confdefs.h. */
49034:
49035: int main(void)
49036: {
49037: short one = 1;
49038: char *cp = (char *)&one;
49039:
49040: if (*cp == 0) {
49041: return(0);
49042: } else {
49043: return(1);
49044: }
49045: }
49046:
49047: _ACEOF
49048: if ac_fn_c_try_run "$LINENO"; then :
49049: ac_cv_c_bigendian_php=yes
49050: else
49051: ac_cv_c_bigendian_php=no
49052: fi
49053: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
49054: conftest.$ac_objext conftest.beam conftest.$ac_ext
49055: fi
49056:
49057:
49058: fi
49059: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian_php" >&5
49060: $as_echo "$ac_cv_c_bigendian_php" >&6; }
49061: if test $ac_cv_c_bigendian_php = yes; then
49062:
49063: $as_echo "#define WORDS_BIGENDIAN /**/" >>confdefs.h
49064:
49065: fi
49066:
49067:
49068: # The cast to long int works around a bug in the HP C Compiler
49069: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
49070: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
49071: # This bug is HP SR number 8606223364.
49072: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
49073: $as_echo_n "checking size of short... " >&6; }
49074: if ${ac_cv_sizeof_short+:} false; then :
49075: $as_echo_n "(cached) " >&6
49076: else
49077: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
49078:
49079: else
49080: if test "$ac_cv_type_short" = yes; then
49081: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
49082: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
49083: as_fn_error 77 "cannot compute sizeof (short)
49084: See \`config.log' for more details" "$LINENO" 5; }
49085: else
49086: ac_cv_sizeof_short=0
49087: fi
49088: fi
49089:
49090: fi
49091: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
49092: $as_echo "$ac_cv_sizeof_short" >&6; }
49093:
49094:
49095:
49096: cat >>confdefs.h <<_ACEOF
49097: #define SIZEOF_SHORT $ac_cv_sizeof_short
49098: _ACEOF
49099:
49100:
49101: # The cast to long int works around a bug in the HP C Compiler
49102: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
49103: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
49104: # This bug is HP SR number 8606223364.
49105: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
49106: $as_echo_n "checking size of int... " >&6; }
49107: if ${ac_cv_sizeof_int+:} false; then :
49108: $as_echo_n "(cached) " >&6
49109: else
49110: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
49111:
49112: else
49113: if test "$ac_cv_type_int" = yes; then
49114: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
49115: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
49116: as_fn_error 77 "cannot compute sizeof (int)
49117: See \`config.log' for more details" "$LINENO" 5; }
49118: else
49119: ac_cv_sizeof_int=0
49120: fi
49121: fi
49122:
49123: fi
49124: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
49125: $as_echo "$ac_cv_sizeof_int" >&6; }
49126:
49127:
49128:
49129: cat >>confdefs.h <<_ACEOF
49130: #define SIZEOF_INT $ac_cv_sizeof_int
49131: _ACEOF
49132:
49133:
49134: # The cast to long int works around a bug in the HP C Compiler
49135: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
49136: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
49137: # This bug is HP SR number 8606223364.
49138: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
49139: $as_echo_n "checking size of long... " >&6; }
49140: if ${ac_cv_sizeof_long+:} false; then :
49141: $as_echo_n "(cached) " >&6
49142: else
49143: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
49144:
49145: else
49146: if test "$ac_cv_type_long" = yes; then
49147: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
49148: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
49149: as_fn_error 77 "cannot compute sizeof (long)
49150: See \`config.log' for more details" "$LINENO" 5; }
49151: else
49152: ac_cv_sizeof_long=0
49153: fi
49154: fi
49155:
49156: fi
49157: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
49158: $as_echo "$ac_cv_sizeof_long" >&6; }
49159:
49160:
49161:
49162: cat >>confdefs.h <<_ACEOF
49163: #define SIZEOF_LONG $ac_cv_sizeof_long
49164: _ACEOF
49165:
49166:
49167: # The cast to long int works around a bug in the HP C Compiler
49168: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
49169: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
49170: # This bug is HP SR number 8606223364.
49171: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
49172: $as_echo_n "checking size of long long... " >&6; }
49173: if ${ac_cv_sizeof_long_long+:} false; then :
49174: $as_echo_n "(cached) " >&6
49175: else
49176: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
49177:
49178: else
49179: if test "$ac_cv_type_long_long" = yes; then
49180: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
49181: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
49182: as_fn_error 77 "cannot compute sizeof (long long)
49183: See \`config.log' for more details" "$LINENO" 5; }
49184: else
49185: ac_cv_sizeof_long_long=0
49186: fi
49187: fi
49188:
49189: fi
49190: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
49191: $as_echo "$ac_cv_sizeof_long_long" >&6; }
49192:
49193:
49194:
49195: cat >>confdefs.h <<_ACEOF
49196: #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
49197: _ACEOF
49198:
49199:
49200:
49201: EXT_HASH_SOURCES="hash.c hash_md.c hash_sha.c hash_ripemd.c hash_haval.c \
49202: hash_tiger.c hash_gost.c hash_snefru.c hash_whirlpool.c hash_adler32.c \
49203: hash_crc32.c hash_salsa.c"
49204: EXT_HASH_HEADERS="php_hash.h php_hash_md.h php_hash_sha.h php_hash_ripemd.h \
49205: php_hash_haval.h php_hash_tiger.h php_hash_gost.h php_hash_snefru.h \
49206: php_hash_whirlpool.h php_hash_adler32.h php_hash_crc32.h php_hash_salsa.h \
49207: php_hash_types.h"
49208:
49209:
49210: ext_builddir=ext/hash
49211: ext_srcdir=$abs_srcdir/ext/hash
49212:
49213: ac_extra=
49214:
49215: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
49216: PHP_HASH_SHARED=no
49217:
49218:
49219: case ext/hash in
49220: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
49221: /*) ac_srcdir=`echo "ext/hash"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
49222: *) ac_srcdir="$abs_srcdir/ext/hash/"; ac_bdir="ext/hash/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
49223: esac
49224:
49225:
49226:
49227: b_c_pre=$php_c_pre
49228: b_cxx_pre=$php_cxx_pre
49229: b_c_meta=$php_c_meta
49230: b_cxx_meta=$php_cxx_meta
49231: b_c_post=$php_c_post
49232: b_cxx_post=$php_cxx_post
49233: b_lo=$php_lo
49234:
49235:
49236: old_IFS=$IFS
49237: for ac_src in $EXT_HASH_SOURCES; do
49238:
49239: IFS=.
49240: set $ac_src
49241: ac_obj=$1
49242: IFS=$old_IFS
49243:
49244: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
49245:
49246: case $ac_src in
49247: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
49248: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
49249: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
49250: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
49251: esac
49252:
49253: cat >>Makefile.objects<<EOF
49254: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
49255: $ac_comp
49256: EOF
49257: done
49258:
49259:
49260: EXT_STATIC="$EXT_STATIC hash"
49261: if test "$ext_shared" != "nocli"; then
49262: EXT_CLI_STATIC="$EXT_CLI_STATIC hash"
49263: fi
49264: else
49265: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
49266: PHP_HASH_SHARED=yes
49267:
49268: case ext/hash in
49269: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
49270: /*) ac_srcdir=`echo "ext/hash"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
49271: *) ac_srcdir="$abs_srcdir/ext/hash/"; ac_bdir="ext/hash/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
49272: esac
49273:
49274:
49275:
49276: b_c_pre=$shared_c_pre
49277: b_cxx_pre=$shared_cxx_pre
49278: b_c_meta=$shared_c_meta
49279: b_cxx_meta=$shared_cxx_meta
49280: b_c_post=$shared_c_post
49281: b_cxx_post=$shared_cxx_post
49282: b_lo=$shared_lo
49283:
49284:
49285: old_IFS=$IFS
49286: for ac_src in $EXT_HASH_SOURCES; do
49287:
49288: IFS=.
49289: set $ac_src
49290: ac_obj=$1
49291: IFS=$old_IFS
49292:
49293: shared_objects_hash="$shared_objects_hash $ac_bdir$ac_obj.lo"
49294:
49295: case $ac_src in
49296: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
49297: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
49298: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
49299: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
49300: esac
49301:
49302: cat >>Makefile.objects<<EOF
49303: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
49304: $ac_comp
49305: EOF
49306: done
49307:
49308: case $host_alias in
49309: *netware*)
49310:
49311: install_modules="install-modules"
49312:
49313: case $host_alias in
49314: *aix*)
49315: suffix=so
49316: 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'
49317: ;;
49318: *netware*)
49319: suffix=nlm
49320: link_cmd='$(LIBTOOL) --mode=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)'
49321: ;;
49322: *)
49323: suffix=la
49324: link_cmd='$(LIBTOOL) --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)'
49325: ;;
49326: esac
49327:
49328: if test "x" = "xyes"; then
49329: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phphash.$suffix"
49330: else
49331: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phphash.$suffix"
49332: fi
49333:
49334: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_hash"
49335:
49336: cat >>Makefile.objects<<EOF
49337: \$(phplibdir)/phphash.$suffix: $ext_builddir/phphash.$suffix
49338: \$(LIBTOOL) --mode=install cp $ext_builddir/phphash.$suffix \$(phplibdir)
49339:
49340: $ext_builddir/phphash.$suffix: \$(shared_objects_hash) \$(PHPHASH_SHARED_DEPENDENCIES)
49341: $link_cmd
49342:
49343: EOF
49344:
49345: ;;
49346: *)
49347:
49348: install_modules="install-modules"
49349:
49350: case $host_alias in
49351: *aix*)
49352: suffix=so
49353: 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'
49354: ;;
49355: *netware*)
49356: suffix=nlm
49357: link_cmd='$(LIBTOOL) --mode=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)'
49358: ;;
49359: *)
49360: suffix=la
49361: link_cmd='$(LIBTOOL) --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)'
49362: ;;
49363: esac
49364:
49365: if test "x" = "xyes"; then
49366: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/hash.$suffix"
49367: else
49368: PHP_MODULES="$PHP_MODULES \$(phplibdir)/hash.$suffix"
49369: fi
49370:
49371: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_hash"
49372:
49373: cat >>Makefile.objects<<EOF
49374: \$(phplibdir)/hash.$suffix: $ext_builddir/hash.$suffix
49375: \$(LIBTOOL) --mode=install cp $ext_builddir/hash.$suffix \$(phplibdir)
49376:
49377: $ext_builddir/hash.$suffix: \$(shared_objects_hash) \$(HASH_SHARED_DEPENDENCIES)
49378: $link_cmd
49379:
49380: EOF
49381:
49382: ;;
49383: esac
49384:
49385: cat >>confdefs.h <<_ACEOF
49386: #define COMPILE_DL_HASH 1
49387: _ACEOF
49388:
49389: fi
49390: fi
49391:
49392: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
49393: PHP_HASH_SHARED=no
49394:
49395:
49396: case ext/hash in
49397: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
49398: /*) ac_srcdir=`echo "ext/hash"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
49399: *) ac_srcdir="$abs_srcdir/ext/hash/"; ac_bdir="ext/hash/"; 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 $EXT_HASH_SOURCES; do
49415:
49416: IFS=.
49417: set $ac_src
49418: ac_obj=$1
49419: IFS=$old_IFS
49420:
49421: PHP_CLI_OBJS="$PHP_CLI_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:
49438:
49439: case ext/hash in
49440: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
49441: /*) ac_srcdir=`echo "ext/hash"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
49442: *) ac_srcdir="$abs_srcdir/ext/hash/"; ac_bdir="ext/hash/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
49443: esac
49444:
49445:
49446:
49447: b_c_pre=$php_c_pre
49448: b_cxx_pre=$php_cxx_pre
49449: b_c_meta=$php_c_meta
49450: b_cxx_meta=$php_cxx_meta
49451: b_c_post=$php_c_post
49452: b_cxx_post=$php_cxx_post
49453: b_lo=$php_lo
49454:
49455:
49456: old_IFS=$IFS
49457: for ac_src in $EXT_HASH_SOURCES; do
49458:
49459: IFS=.
49460: set $ac_src
49461: ac_obj=$1
49462: IFS=$old_IFS
49463:
49464: PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo"
49465:
49466: case $ac_src in
49467: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
49468: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
49469: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
49470: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
49471: esac
49472:
49473: cat >>Makefile.objects<<EOF
49474: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
49475: $ac_comp
49476: EOF
49477: done
49478:
49479:
49480:
49481:
49482: case ext/hash in
49483: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
49484: /*) ac_srcdir=`echo "ext/hash"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
49485: *) ac_srcdir="$abs_srcdir/ext/hash/"; ac_bdir="ext/hash/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
49486: esac
49487:
49488:
49489:
49490: b_c_pre=$php_c_pre
49491: b_cxx_pre=$php_cxx_pre
49492: b_c_meta=$php_c_meta
49493: b_cxx_meta=$php_cxx_meta
49494: b_c_post=$php_c_post
49495: b_cxx_post=$php_cxx_post
49496: b_lo=$php_lo
49497:
49498:
49499: old_IFS=$IFS
49500: for ac_src in $EXT_HASH_SOURCES; do
49501:
49502: IFS=.
49503: set $ac_src
49504: ac_obj=$1
49505: IFS=$old_IFS
49506:
49507: PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo"
49508:
49509: case $ac_src in
49510: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
49511: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
49512: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
49513: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
49514: esac
49515:
49516: cat >>Makefile.objects<<EOF
49517: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
49518: $ac_comp
49519: EOF
49520: done
49521:
49522:
49523: EXT_CLI_STATIC="$EXT_CLI_STATIC hash"
49524: fi
49525:
49526:
49527: BUILD_DIR="$BUILD_DIR $ext_builddir"
49528:
49529:
49530:
49531: if test "$ext_builddir" = "."; then
49532: PHP_PECL_EXTENSION=hash
49533:
49534: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
49535:
49536: fi
49537:
49538:
49539:
49540:
49541: header_path=ext/hash
49542: for header_file in $EXT_HASH_HEADERS; do
49543: hp_hf="$header_path/$header_file"
49544:
49545:
49546: unique=`echo $hp_hf|$SED 's/[^a-zA-Z0-9]/_/g'`
49547:
49548: cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
49549: if test -n "$unique" && test "`eval $cmd`" = "" ; then
49550: eval "INSTALLHEADERS$unique=set"
49551:
49552: INSTALL_HEADERS="$INSTALL_HEADERS $hp_hf"
49553:
49554: fi
49555:
49556: done
49557:
49558:
49559:
49560: fi
49561:
49562:
49563:
49564: php_with_iconv=yes
49565:
49566: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv support" >&5
49567: $as_echo_n "checking for iconv support... " >&6; }
49568:
49569: # Check whether --with-iconv was given.
49570: if test "${with_iconv+set}" = set; then :
49571: withval=$with_iconv; PHP_ICONV=$withval
49572: else
49573:
49574: PHP_ICONV=yes
49575: test "$PHP_ENABLE_ALL" && PHP_ICONV=$PHP_ENABLE_ALL
49576:
49577: fi
49578:
49579:
49580:
49581: ext_output="yes, shared"
49582: ext_shared=yes
49583: case $PHP_ICONV in
49584: shared,*)
49585: PHP_ICONV=`echo "$PHP_ICONV"|$SED 's/^shared,//'`
49586: ;;
49587: shared)
49588: PHP_ICONV=yes
49589: ;;
49590: no)
49591: ext_output=no
49592: ext_shared=no
49593: ;;
49594: *)
49595: ext_output=yes
49596: ext_shared=no
49597: ;;
49598: esac
49599:
49600:
49601:
49602: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
49603: $as_echo "$ext_output" >&6; }
49604:
49605:
49606:
49607:
49608: if test "$PHP_ICONV" != "no"; then
49609:
49610:
49611: found_iconv=no
49612: unset ICONV_DIR
49613:
49614: # Create the directories for a VPATH build:
49615: $php_shtool mkdir -p ext/iconv
49616:
49617: echo > ext/iconv/php_have_bsd_iconv.h
49618: echo > ext/iconv/php_have_ibm_iconv.h
49619: echo > ext/iconv/php_have_glibc_iconv.h
49620: echo > ext/iconv/php_have_libiconv.h
49621: echo > ext/iconv/php_have_iconv.h
49622: echo > ext/iconv/php_php_iconv_impl.h
49623: echo > ext/iconv/php_iconv_aliased_libiconv.h
49624: echo > ext/iconv/php_php_iconv_h_path.h
49625: echo > ext/iconv/php_iconv_supports_errno.h
49626:
49627: if test "$PHP_ICONV" = "yes"; then
49628: ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
49629: if test "x$ac_cv_func_iconv" = xyes; then :
49630:
49631: found_iconv=yes
49632:
49633: else
49634:
49635: ac_fn_c_check_func "$LINENO" "libiconv" "ac_cv_func_libiconv"
49636: if test "x$ac_cv_func_libiconv" = xyes; then :
49637:
49638:
49639: echo "#define HAVE_LIBICONV 1" > ext/iconv/php_have_libiconv.h
49640:
49641:
49642: $as_echo "#define HAVE_LIBICONV 1" >>confdefs.h
49643:
49644: found_iconv=yes
49645:
49646: fi
49647:
49648:
49649: fi
49650:
49651: fi
49652:
49653: if test "$found_iconv" = "no"; then
49654:
49655: for i in $PHP_ICONV /usr/local /usr; do
49656: if test -r $i/include/giconv.h; then
49657:
49658: $as_echo "#define HAVE_GICONV_H 1" >>confdefs.h
49659:
49660: ICONV_DIR=$i
49661: iconv_lib_name=giconv
49662: break
49663: elif test -r $i/include/iconv.h; then
49664: ICONV_DIR=$i
49665: iconv_lib_name=iconv
49666: break
49667: fi
49668: done
49669:
49670: if test -z "$ICONV_DIR"; then
49671: as_fn_error $? "Please specify the install prefix of iconv with --with-iconv=<DIR>" "$LINENO" 5
49672: fi
49673:
49674: if test -f $ICONV_DIR/$PHP_LIBDIR/lib$iconv_lib_name.a ||
49675: test -f $ICONV_DIR/$PHP_LIBDIR/lib$iconv_lib_name.$SHLIB_SUFFIX_NAME
49676: then
49677:
49678: save_old_LDFLAGS=$LDFLAGS
49679: ac_stuff="
49680: -L$ICONV_DIR/$PHP_LIBDIR
49681: "
49682:
49683: save_ext_shared=$ext_shared
49684: ext_shared=yes
49685:
49686: for ac_i in $ac_stuff; do
49687: case $ac_i in
49688: -pthread)
49689: if test "$ext_shared" = "yes"; then
49690: LDFLAGS="$LDFLAGS -pthread"
49691: else
49692:
49693:
49694: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
49695:
49696: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
49697: if test -n "$unique" && test "`eval $cmd`" = "" ; then
49698: eval "EXTRA_LDFLAGS$unique=set"
49699: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
49700: fi
49701:
49702: fi
49703: ;;
49704: -l*)
49705: ac_ii=`echo $ac_i|cut -c 3-`
49706:
49707:
49708: case $ac_ii in
49709: c|c_r|pthread*) ;;
49710: *)
49711: if test "$ext_shared" = "yes"; then
49712: LDFLAGS="$LDFLAGS -l$ac_ii"
49713: else
49714:
49715:
49716: case $ac_ii in
49717: c|c_r|pthread*) ;;
49718: *)
49719: LIBS="$LIBS -l$ac_ii"
49720: ;;
49721: esac
49722:
49723:
49724: fi
49725: ;;
49726: esac
49727:
49728:
49729: ;;
49730: -L*)
49731: ac_ii=`echo $ac_i|cut -c 3-`
49732:
49733: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
49734:
49735: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
49736: ai_p=$ac_ii
49737: else
49738:
49739: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
49740:
49741: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
49742: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
49743: fi
49744:
49745:
49746: if test "$ext_shared" = "yes"; then
49747: LDFLAGS="-L$ai_p $LDFLAGS"
49748: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
49749: else
49750:
49751:
49752:
49753: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
49754:
49755: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
49756: if test -n "$unique" && test "`eval $cmd`" = "" ; then
49757: eval "LIBPATH$unique=set"
49758:
49759: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
49760: LDFLAGS="$LDFLAGS -L$ai_p"
49761: PHP_RPATHS="$PHP_RPATHS $ai_p"
49762:
49763: fi
49764:
49765:
49766: fi
49767:
49768: fi
49769:
49770: ;;
49771: esac
49772: done
49773:
49774: as_ac_Lib=`$as_echo "ac_cv_lib_$iconv_lib_name''_libiconv" | $as_tr_sh`
49775: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiconv in -l$iconv_lib_name" >&5
49776: $as_echo_n "checking for libiconv in -l$iconv_lib_name... " >&6; }
49777: if eval \${$as_ac_Lib+:} false; then :
49778: $as_echo_n "(cached) " >&6
49779: else
49780: ac_check_lib_save_LIBS=$LIBS
49781: LIBS="-l$iconv_lib_name $LIBS"
49782: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49783: /* end confdefs.h. */
49784:
49785: /* Override any GCC internal prototype to avoid an error.
49786: Use char because int might match the return type of a GCC
49787: builtin and then its argument prototype would still apply. */
49788: #ifdef __cplusplus
49789: extern "C"
49790: #endif
49791: char libiconv ();
49792: int
49793: main ()
49794: {
49795: return libiconv ();
49796: ;
49797: return 0;
49798: }
49799: _ACEOF
49800: if ac_fn_c_try_link "$LINENO"; then :
49801: eval "$as_ac_Lib=yes"
49802: else
49803: eval "$as_ac_Lib=no"
49804: fi
49805: rm -f core conftest.err conftest.$ac_objext \
49806: conftest$ac_exeext conftest.$ac_ext
49807: LIBS=$ac_check_lib_save_LIBS
49808: fi
49809: eval ac_res=\$$as_ac_Lib
49810: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
49811: $as_echo "$ac_res" >&6; }
49812: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
49813:
49814: LDFLAGS=$save_old_LDFLAGS
49815: ext_shared=$save_ext_shared
49816:
49817: found_iconv=yes
49818:
49819: echo "#define HAVE_LIBICONV 1" > ext/iconv/php_have_libiconv.h
49820:
49821:
49822: $as_echo "#define HAVE_LIBICONV 1" >>confdefs.h
49823:
49824:
49825: echo "#define ICONV_ALIASED_LIBICONV 1" > ext/iconv/php_iconv_aliased_libiconv.h
49826:
49827:
49828: $as_echo "#define ICONV_ALIASED_LIBICONV 1" >>confdefs.h
49829:
49830:
49831:
49832: else
49833:
49834: LDFLAGS=$save_old_LDFLAGS
49835: ext_shared=$save_ext_shared
49836: unset ac_cv_lib_$iconv_lib_name_libiconv
49837:
49838:
49839: save_old_LDFLAGS=$LDFLAGS
49840: ac_stuff="
49841: -L$ICONV_DIR/$PHP_LIBDIR
49842: "
49843:
49844: save_ext_shared=$ext_shared
49845: ext_shared=yes
49846:
49847: for ac_i in $ac_stuff; do
49848: case $ac_i in
49849: -pthread)
49850: if test "$ext_shared" = "yes"; then
49851: LDFLAGS="$LDFLAGS -pthread"
49852: else
49853:
49854:
49855: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
49856:
49857: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
49858: if test -n "$unique" && test "`eval $cmd`" = "" ; then
49859: eval "EXTRA_LDFLAGS$unique=set"
49860: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
49861: fi
49862:
49863: fi
49864: ;;
49865: -l*)
49866: ac_ii=`echo $ac_i|cut -c 3-`
49867:
49868:
49869: case $ac_ii in
49870: c|c_r|pthread*) ;;
49871: *)
49872: if test "$ext_shared" = "yes"; then
49873: LDFLAGS="$LDFLAGS -l$ac_ii"
49874: else
49875:
49876:
49877: case $ac_ii in
49878: c|c_r|pthread*) ;;
49879: *)
49880: LIBS="$LIBS -l$ac_ii"
49881: ;;
49882: esac
49883:
49884:
49885: fi
49886: ;;
49887: esac
49888:
49889:
49890: ;;
49891: -L*)
49892: ac_ii=`echo $ac_i|cut -c 3-`
49893:
49894: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
49895:
49896: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
49897: ai_p=$ac_ii
49898: else
49899:
49900: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
49901:
49902: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
49903: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
49904: fi
49905:
49906:
49907: if test "$ext_shared" = "yes"; then
49908: LDFLAGS="-L$ai_p $LDFLAGS"
49909: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
49910: else
49911:
49912:
49913:
49914: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
49915:
49916: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
49917: if test -n "$unique" && test "`eval $cmd`" = "" ; then
49918: eval "LIBPATH$unique=set"
49919:
49920: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
49921: LDFLAGS="$LDFLAGS -L$ai_p"
49922: PHP_RPATHS="$PHP_RPATHS $ai_p"
49923:
49924: fi
49925:
49926:
49927: fi
49928:
49929: fi
49930:
49931: ;;
49932: esac
49933: done
49934:
49935: as_ac_Lib=`$as_echo "ac_cv_lib_$iconv_lib_name''_iconv" | $as_tr_sh`
49936: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv in -l$iconv_lib_name" >&5
49937: $as_echo_n "checking for iconv in -l$iconv_lib_name... " >&6; }
49938: if eval \${$as_ac_Lib+:} false; then :
49939: $as_echo_n "(cached) " >&6
49940: else
49941: ac_check_lib_save_LIBS=$LIBS
49942: LIBS="-l$iconv_lib_name $LIBS"
49943: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49944: /* end confdefs.h. */
49945:
49946: /* Override any GCC internal prototype to avoid an error.
49947: Use char because int might match the return type of a GCC
49948: builtin and then its argument prototype would still apply. */
49949: #ifdef __cplusplus
49950: extern "C"
49951: #endif
49952: char iconv ();
49953: int
49954: main ()
49955: {
49956: return iconv ();
49957: ;
49958: return 0;
49959: }
49960: _ACEOF
49961: if ac_fn_c_try_link "$LINENO"; then :
49962: eval "$as_ac_Lib=yes"
49963: else
49964: eval "$as_ac_Lib=no"
49965: fi
49966: rm -f core conftest.err conftest.$ac_objext \
49967: conftest$ac_exeext conftest.$ac_ext
49968: LIBS=$ac_check_lib_save_LIBS
49969: fi
49970: eval ac_res=\$$as_ac_Lib
49971: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
49972: $as_echo "$ac_res" >&6; }
49973: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
49974:
49975: LDFLAGS=$save_old_LDFLAGS
49976: ext_shared=$save_ext_shared
49977:
49978: found_iconv=yes
49979:
49980:
49981: else
49982:
49983: LDFLAGS=$save_old_LDFLAGS
49984: ext_shared=$save_ext_shared
49985: unset ac_cv_lib_$iconv_lib_name_iconv
49986:
49987:
49988: fi
49989:
49990:
49991:
49992: fi
49993:
49994: fi
49995: fi
49996:
49997: if test "$found_iconv" = "yes"; then
49998:
49999: echo "#define HAVE_ICONV 1" > ext/iconv/php_have_iconv.h
50000:
50001:
50002: $as_echo "#define HAVE_ICONV 1" >>confdefs.h
50003:
50004: if test -n "$ICONV_DIR"; then
50005:
50006:
50007: if test "$ext_shared" = "yes"; then
50008: ICONV_SHARED_LIBADD="-l$iconv_lib_name $ICONV_SHARED_LIBADD"
50009: if test -n "$ICONV_DIR/$PHP_LIBDIR"; then
50010:
50011: if test "$ICONV_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$ICONV_DIR/$PHP_LIBDIR" != "/usr/lib"; then
50012:
50013: if test -z "$ICONV_DIR/$PHP_LIBDIR" || echo "$ICONV_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
50014: ai_p=$ICONV_DIR/$PHP_LIBDIR
50015: else
50016:
50017: ep_dir="`echo $ICONV_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
50018:
50019: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
50020: ai_p="$ep_realdir/`basename \"$ICONV_DIR/$PHP_LIBDIR\"`"
50021: fi
50022:
50023:
50024: if test "$ext_shared" = "yes"; then
50025: ICONV_SHARED_LIBADD="-L$ai_p $ICONV_SHARED_LIBADD"
50026: test -n "$ld_runpath_switch" && ICONV_SHARED_LIBADD="$ld_runpath_switch$ai_p $ICONV_SHARED_LIBADD"
50027: else
50028:
50029:
50030:
50031: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
50032:
50033: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
50034: if test -n "$unique" && test "`eval $cmd`" = "" ; then
50035: eval "LIBPATH$unique=set"
50036:
50037: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
50038: LDFLAGS="$LDFLAGS -L$ai_p"
50039: PHP_RPATHS="$PHP_RPATHS $ai_p"
50040:
50041: fi
50042:
50043:
50044: fi
50045:
50046: fi
50047:
50048: fi
50049: else
50050:
50051:
50052: if test -n "$ICONV_DIR/$PHP_LIBDIR"; then
50053:
50054: if test "$ICONV_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$ICONV_DIR/$PHP_LIBDIR" != "/usr/lib"; then
50055:
50056: if test -z "$ICONV_DIR/$PHP_LIBDIR" || echo "$ICONV_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
50057: ai_p=$ICONV_DIR/$PHP_LIBDIR
50058: else
50059:
50060: ep_dir="`echo $ICONV_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
50061:
50062: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
50063: ai_p="$ep_realdir/`basename \"$ICONV_DIR/$PHP_LIBDIR\"`"
50064: fi
50065:
50066:
50067:
50068:
50069:
50070: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
50071:
50072: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
50073: if test -n "$unique" && test "`eval $cmd`" = "" ; then
50074: eval "LIBPATH$unique=set"
50075:
50076: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
50077: LDFLAGS="$LDFLAGS -L$ai_p"
50078: PHP_RPATHS="$PHP_RPATHS $ai_p"
50079:
50080: fi
50081:
50082:
50083:
50084: fi
50085:
50086: fi
50087:
50088:
50089: case $iconv_lib_name in
50090: c|c_r|pthread*) ;;
50091: *)
50092: LIBS="-l$iconv_lib_name $LIBS"
50093: ;;
50094: esac
50095:
50096:
50097:
50098:
50099: fi
50100:
50101:
50102:
50103: if test "$ICONV_DIR/include" != "/usr/include"; then
50104:
50105: if test -z "$ICONV_DIR/include" || echo "$ICONV_DIR/include" | grep '^/' >/dev/null ; then
50106: ai_p=$ICONV_DIR/include
50107: else
50108:
50109: ep_dir="`echo $ICONV_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
50110:
50111: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
50112: ai_p="$ep_realdir/`basename \"$ICONV_DIR/include\"`"
50113: fi
50114:
50115:
50116:
50117: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
50118:
50119: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
50120: if test -n "$unique" && test "`eval $cmd`" = "" ; then
50121: eval "INCLUDEPATH$unique=set"
50122:
50123: if test ""; then
50124: INCLUDES="-I$ai_p $INCLUDES"
50125: else
50126: INCLUDES="$INCLUDES -I$ai_p"
50127: fi
50128:
50129: fi
50130:
50131: fi
50132:
50133: fi
50134:
50135: iconv_avail="yes";
50136:
50137: else
50138: iconv_avail="no";
50139:
50140: fi
50141:
50142:
50143: if test "$iconv_avail" != "no"; then
50144: if test -z "$ICONV_DIR"; then
50145: for i in /usr/local /usr; do
50146: if test -f "$i/include/iconv.h" || test -f "$i/include/giconv.h"; then
50147: PHP_ICONV_PREFIX="$i"
50148: break
50149: fi
50150: done
50151: if test -z "$PHP_ICONV_PREFIX"; then
50152: PHP_ICONV_PREFIX="/usr"
50153: fi
50154: else
50155: PHP_ICONV_PREFIX="$ICONV_DIR"
50156: fi
50157:
50158: CFLAGS="-I$PHP_ICONV_PREFIX/include $CFLAGS"
50159: LDFLAGS="-L$PHP_ICONV_PREFIX/$PHP_LIBDIR $LDFLAGS"
50160:
50161: if test -r "$PHP_ICONV_PREFIX/include/giconv.h"; then
50162: PHP_ICONV_H_PATH="$PHP_ICONV_PREFIX/include/giconv.h"
50163: else
50164: PHP_ICONV_H_PATH="$PHP_ICONV_PREFIX/include/iconv.h"
50165: fi
50166:
50167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if iconv is glibc's" >&5
50168: $as_echo_n "checking if iconv is glibc's... " >&6; }
50169: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50170: /* end confdefs.h. */
50171: #include <gnu/libc-version.h>
50172: int
50173: main ()
50174: {
50175: gnu_get_libc_version();
50176: ;
50177: return 0;
50178: }
50179: _ACEOF
50180: if ac_fn_c_try_link "$LINENO"; then :
50181:
50182: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
50183: $as_echo "yes" >&6; }
50184: iconv_impl_name="glibc"
50185:
50186: else
50187:
50188: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
50189: $as_echo "no" >&6; }
50190:
50191: fi
50192: rm -f core conftest.err conftest.$ac_objext \
50193: conftest$ac_exeext conftest.$ac_ext
50194:
50195: if test -z "$iconv_impl_name"; then
50196: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if using GNU libiconv" >&5
50197: $as_echo_n "checking if using GNU libiconv... " >&6; }
50198: php_iconv_old_ld="$LDFLAGS"
50199: LDFLAGS="-liconv $LDFLAGS"
50200: if test "$cross_compiling" = yes; then :
50201:
50202: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
50203: $as_echo "no" >&6; }
50204: LDFLAGS="$php_iconv_old_ld"
50205:
50206: else
50207: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50208: /* end confdefs.h. */
50209:
50210: #include <$PHP_ICONV_H_PATH>
50211: int main() {
50212: printf("%d", _libiconv_version);
50213: return 0;
50214: }
50215:
50216: _ACEOF
50217: if ac_fn_c_try_run "$LINENO"; then :
50218:
50219: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
50220: $as_echo "yes" >&6; }
50221: iconv_impl_name="gnu_libiconv"
50222:
50223: else
50224:
50225: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
50226: $as_echo "no" >&6; }
50227: LDFLAGS="$php_iconv_old_ld"
50228:
50229: fi
50230: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
50231: conftest.$ac_objext conftest.beam conftest.$ac_ext
50232: fi
50233:
50234: fi
50235:
50236: if test -z "$iconv_impl_name"; then
50237: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if iconv is Konstantin Chuguev's" >&5
50238: $as_echo_n "checking if iconv is Konstantin Chuguev's... " >&6; }
50239: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50240: /* end confdefs.h. */
50241: #include <iconv.h>
50242: int
50243: main ()
50244: {
50245: iconv_ccs_init(NULL, NULL);
50246: ;
50247: return 0;
50248: }
50249: _ACEOF
50250: if ac_fn_c_try_link "$LINENO"; then :
50251:
50252: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
50253: $as_echo "yes" >&6; }
50254: iconv_impl_name="bsd"
50255:
50256: else
50257:
50258: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
50259: $as_echo "no" >&6; }
50260:
50261: fi
50262: rm -f core conftest.err conftest.$ac_objext \
50263: conftest$ac_exeext conftest.$ac_ext
50264: fi
50265:
50266: if test -z "$iconv_impl_name"; then
50267: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if using IBM iconv" >&5
50268: $as_echo_n "checking if using IBM iconv... " >&6; }
50269: php_iconv_old_ld="$LDFLAGS"
50270: LDFLAGS="-liconv $LDFLAGS"
50271: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50272: /* end confdefs.h. */
50273: #include <iconv.h>
50274: int
50275: main ()
50276: {
50277: cstoccsid("");
50278: ;
50279: return 0;
50280: }
50281: _ACEOF
50282: if ac_fn_c_try_link "$LINENO"; then :
50283:
50284: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
50285: $as_echo "yes" >&6; }
50286: iconv_impl_name="ibm"
50287:
50288: else
50289:
50290: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
50291: $as_echo "no" >&6; }
50292: LDFLAGS="$php_iconv_old_ld"
50293:
50294: fi
50295: rm -f core conftest.err conftest.$ac_objext \
50296: conftest$ac_exeext conftest.$ac_ext
50297: fi
50298:
50299: echo > ext/iconv/php_have_bsd_iconv.h
50300: echo > ext/iconv/php_have_glibc_iconv.h
50301: echo > ext/iconv/php_have_libiconv.h
50302: echo > ext/iconv/php_have_ibm_iconv.h
50303:
50304: case "$iconv_impl_name" in
50305: gnu_libiconv )
50306:
50307: echo "#define PHP_ICONV_IMPL \"libiconv\"" > ext/iconv/php_php_iconv_impl.h
50308:
50309:
50310: $as_echo "#define PHP_ICONV_IMPL \"libiconv\"" >>confdefs.h
50311:
50312:
50313: echo "#define HAVE_LIBICONV 1" > ext/iconv/php_have_libiconv.h
50314:
50315:
50316:
50317: if test "$ext_shared" = "yes"; then
50318: ICONV_SHARED_LIBADD="-liconv $ICONV_SHARED_LIBADD"
50319: if test -n ""$PHP_ICONV_PREFIX/$PHP_LIBDIR""; then
50320:
50321: if test ""$PHP_ICONV_PREFIX/$PHP_LIBDIR"" != "/usr/$PHP_LIBDIR" && test ""$PHP_ICONV_PREFIX/$PHP_LIBDIR"" != "/usr/lib"; then
50322:
50323: if test -z ""$PHP_ICONV_PREFIX/$PHP_LIBDIR"" || echo ""$PHP_ICONV_PREFIX/$PHP_LIBDIR"" | grep '^/' >/dev/null ; then
50324: ai_p="$PHP_ICONV_PREFIX/$PHP_LIBDIR"
50325: else
50326:
50327: ep_dir="`echo "$PHP_ICONV_PREFIX/$PHP_LIBDIR"|$SED 's%/*[^/][^/]*/*$%%'`"
50328:
50329: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
50330: ai_p="$ep_realdir/`basename \""$PHP_ICONV_PREFIX/$PHP_LIBDIR"\"`"
50331: fi
50332:
50333:
50334: if test "$ext_shared" = "yes"; then
50335: ICONV_SHARED_LIBADD="-L$ai_p $ICONV_SHARED_LIBADD"
50336: test -n "$ld_runpath_switch" && ICONV_SHARED_LIBADD="$ld_runpath_switch$ai_p $ICONV_SHARED_LIBADD"
50337: else
50338:
50339:
50340:
50341: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
50342:
50343: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
50344: if test -n "$unique" && test "`eval $cmd`" = "" ; then
50345: eval "LIBPATH$unique=set"
50346:
50347: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
50348: LDFLAGS="$LDFLAGS -L$ai_p"
50349: PHP_RPATHS="$PHP_RPATHS $ai_p"
50350:
50351: fi
50352:
50353:
50354: fi
50355:
50356: fi
50357:
50358: fi
50359: else
50360:
50361:
50362: if test -n ""$PHP_ICONV_PREFIX/$PHP_LIBDIR""; then
50363:
50364: if test ""$PHP_ICONV_PREFIX/$PHP_LIBDIR"" != "/usr/$PHP_LIBDIR" && test ""$PHP_ICONV_PREFIX/$PHP_LIBDIR"" != "/usr/lib"; then
50365:
50366: if test -z ""$PHP_ICONV_PREFIX/$PHP_LIBDIR"" || echo ""$PHP_ICONV_PREFIX/$PHP_LIBDIR"" | grep '^/' >/dev/null ; then
50367: ai_p="$PHP_ICONV_PREFIX/$PHP_LIBDIR"
50368: else
50369:
50370: ep_dir="`echo "$PHP_ICONV_PREFIX/$PHP_LIBDIR"|$SED 's%/*[^/][^/]*/*$%%'`"
50371:
50372: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
50373: ai_p="$ep_realdir/`basename \""$PHP_ICONV_PREFIX/$PHP_LIBDIR"\"`"
50374: fi
50375:
50376:
50377:
50378:
50379:
50380: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
50381:
50382: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
50383: if test -n "$unique" && test "`eval $cmd`" = "" ; then
50384: eval "LIBPATH$unique=set"
50385:
50386: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
50387: LDFLAGS="$LDFLAGS -L$ai_p"
50388: PHP_RPATHS="$PHP_RPATHS $ai_p"
50389:
50390: fi
50391:
50392:
50393:
50394: fi
50395:
50396: fi
50397:
50398:
50399: case iconv in
50400: c|c_r|pthread*) ;;
50401: *)
50402: LIBS="-liconv $LIBS"
50403: ;;
50404: esac
50405:
50406:
50407:
50408:
50409: fi
50410:
50411:
50412: ;;
50413:
50414: bsd )
50415:
50416: echo "#define HAVE_BSD_ICONV 1" > ext/iconv/php_have_bsd_iconv.h
50417:
50418:
50419: $as_echo "#define HAVE_BSD_ICONV 1" >>confdefs.h
50420:
50421:
50422: echo "#define PHP_ICONV_IMPL \"BSD iconv\"" > ext/iconv/php_php_iconv_impl.h
50423:
50424:
50425: $as_echo "#define PHP_ICONV_IMPL \"BSD iconv\"" >>confdefs.h
50426:
50427: ;;
50428:
50429: glibc )
50430:
50431: echo "#define HAVE_GLIBC_ICONV 1" > ext/iconv/php_have_glibc_iconv.h
50432:
50433:
50434: $as_echo "#define HAVE_GLIBC_ICONV 1" >>confdefs.h
50435:
50436:
50437: echo "#define PHP_ICONV_IMPL \"glibc\"" > ext/iconv/php_php_iconv_impl.h
50438:
50439:
50440: $as_echo "#define PHP_ICONV_IMPL \"glibc\"" >>confdefs.h
50441:
50442: ;;
50443: ibm )
50444:
50445: echo "#define HAVE_IBM_ICONV 1" > ext/iconv/php_have_ibm_iconv.h
50446:
50447:
50448: $as_echo "#define HAVE_IBM_ICONV 1" >>confdefs.h
50449:
50450:
50451: echo "#define PHP_ICONV_IMPL \"IBM iconv\"" > ext/iconv/php_php_iconv_impl.h
50452:
50453:
50454: $as_echo "#define PHP_ICONV_IMPL \"IBM iconv\"" >>confdefs.h
50455:
50456: ;;
50457: esac
50458:
50459: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if iconv supports errno" >&5
50460: $as_echo_n "checking if iconv supports errno... " >&6; }
50461: if test "$cross_compiling" = yes; then :
50462:
50463: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
50464: $as_echo "no" >&6; }
50465:
50466: echo "#define ICONV_SUPPORTS_ERRNO 0" > ext/iconv/php_iconv_supports_errno.h
50467:
50468:
50469: $as_echo "#define ICONV_SUPPORTS_ERRNO 0" >>confdefs.h
50470:
50471:
50472: else
50473: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50474: /* end confdefs.h. */
50475:
50476: #include <$PHP_ICONV_H_PATH>
50477: #include <errno.h>
50478:
50479: int main() {
50480: iconv_t cd;
50481: cd = iconv_open( "*blahblah*", "*blahblah*" );
50482: if (cd == (iconv_t)(-1)) {
50483: if (errno == EINVAL) {
50484: return 0;
50485: } else {
50486: return 1;
50487: }
50488: }
50489: iconv_close( cd );
50490: return 2;
50491: }
50492:
50493: _ACEOF
50494: if ac_fn_c_try_run "$LINENO"; then :
50495:
50496: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
50497: $as_echo "yes" >&6; }
50498:
50499: echo "#define ICONV_SUPPORTS_ERRNO 1" > ext/iconv/php_iconv_supports_errno.h
50500:
50501:
50502: $as_echo "#define ICONV_SUPPORTS_ERRNO 1" >>confdefs.h
50503:
50504:
50505: else
50506:
50507: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
50508: $as_echo "no" >&6; }
50509:
50510: echo "#define ICONV_SUPPORTS_ERRNO 0" > ext/iconv/php_iconv_supports_errno.h
50511:
50512:
50513: $as_echo "#define ICONV_SUPPORTS_ERRNO 0" >>confdefs.h
50514:
50515:
50516: fi
50517: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
50518: conftest.$ac_objext conftest.beam conftest.$ac_ext
50519: fi
50520:
50521:
50522: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your cpp allows macro usage in include lines" >&5
50523: $as_echo_n "checking if your cpp allows macro usage in include lines... " >&6; }
50524: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50525: /* end confdefs.h. */
50526:
50527: #define FOO <$PHP_ICONV_H_PATH>
50528: #include FOO
50529:
50530: int
50531: main ()
50532: {
50533:
50534: ;
50535: return 0;
50536: }
50537: _ACEOF
50538: if ac_fn_c_try_compile "$LINENO"; then :
50539:
50540: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
50541: $as_echo "yes" >&6; }
50542:
50543: echo "#define PHP_ICONV_H_PATH <$PHP_ICONV_H_PATH>" > ext/iconv/php_php_iconv_h_path.h
50544:
50545:
50546: cat >>confdefs.h <<_ACEOF
50547: #define PHP_ICONV_H_PATH <$PHP_ICONV_H_PATH>
50548: _ACEOF
50549:
50550:
50551: else
50552:
50553: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
50554: $as_echo "no" >&6; }
50555:
50556: fi
50557: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50558:
50559:
50560: ext_builddir=ext/iconv
50561: ext_srcdir=$abs_srcdir/ext/iconv
50562:
50563: ac_extra=`echo "-I\"$PHP_ICONV_PREFIX/include\""|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
50564:
50565: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
50566: PHP_ICONV_SHARED=no
50567:
50568:
50569: case ext/iconv in
50570: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
50571: /*) ac_srcdir=`echo "ext/iconv"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
50572: *) ac_srcdir="$abs_srcdir/ext/iconv/"; ac_bdir="ext/iconv/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
50573: esac
50574:
50575:
50576:
50577: b_c_pre=$php_c_pre
50578: b_cxx_pre=$php_cxx_pre
50579: b_c_meta=$php_c_meta
50580: b_cxx_meta=$php_cxx_meta
50581: b_c_post=$php_c_post
50582: b_cxx_post=$php_cxx_post
50583: b_lo=$php_lo
50584:
50585:
50586: old_IFS=$IFS
50587: for ac_src in iconv.c; do
50588:
50589: IFS=.
50590: set $ac_src
50591: ac_obj=$1
50592: IFS=$old_IFS
50593:
50594: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
50595:
50596: case $ac_src in
50597: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
50598: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
50599: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
50600: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
50601: esac
50602:
50603: cat >>Makefile.objects<<EOF
50604: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
50605: $ac_comp
50606: EOF
50607: done
50608:
50609:
50610: EXT_STATIC="$EXT_STATIC iconv"
50611: if test "$ext_shared" != "nocli"; then
50612: EXT_CLI_STATIC="$EXT_CLI_STATIC iconv"
50613: fi
50614: else
50615: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
50616: PHP_ICONV_SHARED=yes
50617:
50618: case ext/iconv in
50619: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
50620: /*) ac_srcdir=`echo "ext/iconv"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
50621: *) ac_srcdir="$abs_srcdir/ext/iconv/"; ac_bdir="ext/iconv/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
50622: esac
50623:
50624:
50625:
50626: b_c_pre=$shared_c_pre
50627: b_cxx_pre=$shared_cxx_pre
50628: b_c_meta=$shared_c_meta
50629: b_cxx_meta=$shared_cxx_meta
50630: b_c_post=$shared_c_post
50631: b_cxx_post=$shared_cxx_post
50632: b_lo=$shared_lo
50633:
50634:
50635: old_IFS=$IFS
50636: for ac_src in iconv.c; do
50637:
50638: IFS=.
50639: set $ac_src
50640: ac_obj=$1
50641: IFS=$old_IFS
50642:
50643: shared_objects_iconv="$shared_objects_iconv $ac_bdir$ac_obj.lo"
50644:
50645: case $ac_src in
50646: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
50647: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
50648: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
50649: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
50650: esac
50651:
50652: cat >>Makefile.objects<<EOF
50653: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
50654: $ac_comp
50655: EOF
50656: done
50657:
50658: case $host_alias in
50659: *netware*)
50660:
50661: install_modules="install-modules"
50662:
50663: case $host_alias in
50664: *aix*)
50665: suffix=so
50666: 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'
50667: ;;
50668: *netware*)
50669: suffix=nlm
50670: link_cmd='$(LIBTOOL) --mode=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)'
50671: ;;
50672: *)
50673: suffix=la
50674: link_cmd='$(LIBTOOL) --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)'
50675: ;;
50676: esac
50677:
50678: if test "x" = "xyes"; then
50679: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpiconv.$suffix"
50680: else
50681: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpiconv.$suffix"
50682: fi
50683:
50684: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_iconv"
50685:
50686: cat >>Makefile.objects<<EOF
50687: \$(phplibdir)/phpiconv.$suffix: $ext_builddir/phpiconv.$suffix
50688: \$(LIBTOOL) --mode=install cp $ext_builddir/phpiconv.$suffix \$(phplibdir)
50689:
50690: $ext_builddir/phpiconv.$suffix: \$(shared_objects_iconv) \$(PHPICONV_SHARED_DEPENDENCIES)
50691: $link_cmd
50692:
50693: EOF
50694:
50695: ;;
50696: *)
50697:
50698: install_modules="install-modules"
50699:
50700: case $host_alias in
50701: *aix*)
50702: suffix=so
50703: 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'
50704: ;;
50705: *netware*)
50706: suffix=nlm
50707: link_cmd='$(LIBTOOL) --mode=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)'
50708: ;;
50709: *)
50710: suffix=la
50711: link_cmd='$(LIBTOOL) --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)'
50712: ;;
50713: esac
50714:
50715: if test "x" = "xyes"; then
50716: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/iconv.$suffix"
50717: else
50718: PHP_MODULES="$PHP_MODULES \$(phplibdir)/iconv.$suffix"
50719: fi
50720:
50721: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_iconv"
50722:
50723: cat >>Makefile.objects<<EOF
50724: \$(phplibdir)/iconv.$suffix: $ext_builddir/iconv.$suffix
50725: \$(LIBTOOL) --mode=install cp $ext_builddir/iconv.$suffix \$(phplibdir)
50726:
50727: $ext_builddir/iconv.$suffix: \$(shared_objects_iconv) \$(ICONV_SHARED_DEPENDENCIES)
50728: $link_cmd
50729:
50730: EOF
50731:
50732: ;;
50733: esac
50734:
50735: cat >>confdefs.h <<_ACEOF
50736: #define COMPILE_DL_ICONV 1
50737: _ACEOF
50738:
50739: fi
50740: fi
50741:
50742: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
50743: PHP_ICONV_SHARED=no
50744:
50745:
50746: case ext/iconv in
50747: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
50748: /*) ac_srcdir=`echo "ext/iconv"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
50749: *) ac_srcdir="$abs_srcdir/ext/iconv/"; ac_bdir="ext/iconv/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
50750: esac
50751:
50752:
50753:
50754: b_c_pre=$php_c_pre
50755: b_cxx_pre=$php_cxx_pre
50756: b_c_meta=$php_c_meta
50757: b_cxx_meta=$php_cxx_meta
50758: b_c_post=$php_c_post
50759: b_cxx_post=$php_cxx_post
50760: b_lo=$php_lo
50761:
50762:
50763: old_IFS=$IFS
50764: for ac_src in iconv.c; do
50765:
50766: IFS=.
50767: set $ac_src
50768: ac_obj=$1
50769: IFS=$old_IFS
50770:
50771: PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
50772:
50773: case $ac_src in
50774: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
50775: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
50776: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
50777: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
50778: esac
50779:
50780: cat >>Makefile.objects<<EOF
50781: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
50782: $ac_comp
50783: EOF
50784: done
50785:
50786:
50787:
50788:
50789: case ext/iconv in
50790: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
50791: /*) ac_srcdir=`echo "ext/iconv"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
50792: *) ac_srcdir="$abs_srcdir/ext/iconv/"; ac_bdir="ext/iconv/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
50793: esac
50794:
50795:
50796:
50797: b_c_pre=$php_c_pre
50798: b_cxx_pre=$php_cxx_pre
50799: b_c_meta=$php_c_meta
50800: b_cxx_meta=$php_cxx_meta
50801: b_c_post=$php_c_post
50802: b_cxx_post=$php_cxx_post
50803: b_lo=$php_lo
50804:
50805:
50806: old_IFS=$IFS
50807: for ac_src in iconv.c; do
50808:
50809: IFS=.
50810: set $ac_src
50811: ac_obj=$1
50812: IFS=$old_IFS
50813:
50814: PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo"
50815:
50816: case $ac_src in
50817: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
50818: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
50819: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
50820: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
50821: esac
50822:
50823: cat >>Makefile.objects<<EOF
50824: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
50825: $ac_comp
50826: EOF
50827: done
50828:
50829:
50830:
50831:
50832: case ext/iconv in
50833: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
50834: /*) ac_srcdir=`echo "ext/iconv"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
50835: *) ac_srcdir="$abs_srcdir/ext/iconv/"; ac_bdir="ext/iconv/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
50836: esac
50837:
50838:
50839:
50840: b_c_pre=$php_c_pre
50841: b_cxx_pre=$php_cxx_pre
50842: b_c_meta=$php_c_meta
50843: b_cxx_meta=$php_cxx_meta
50844: b_c_post=$php_c_post
50845: b_cxx_post=$php_cxx_post
50846: b_lo=$php_lo
50847:
50848:
50849: old_IFS=$IFS
50850: for ac_src in iconv.c; do
50851:
50852: IFS=.
50853: set $ac_src
50854: ac_obj=$1
50855: IFS=$old_IFS
50856:
50857: PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo"
50858:
50859: case $ac_src in
50860: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
50861: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
50862: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
50863: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
50864: esac
50865:
50866: cat >>Makefile.objects<<EOF
50867: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
50868: $ac_comp
50869: EOF
50870: done
50871:
50872:
50873: EXT_CLI_STATIC="$EXT_CLI_STATIC iconv"
50874: fi
50875:
50876:
50877: BUILD_DIR="$BUILD_DIR $ext_builddir"
50878:
50879:
50880:
50881: if test "$ext_builddir" = "."; then
50882: PHP_PECL_EXTENSION=iconv
50883:
50884: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
50885:
50886: fi
50887:
50888:
50889: PHP_VAR_SUBST="$PHP_VAR_SUBST ICONV_SHARED_LIBADD"
50890:
50891:
50892:
50893: for header_file in ext/iconv/; do
50894:
50895:
50896: unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
50897:
50898: cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
50899: if test -n "$unique" && test "`eval $cmd`" = "" ; then
50900: eval "INSTALLHEADERS$unique=set"
50901:
50902: INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
50903:
50904: fi
50905:
50906: done
50907:
50908:
50909: else
50910: as_fn_error $? "Please reinstall the iconv library." "$LINENO" 5
50911: fi
50912: fi
50913:
50914:
50915:
50916:
50917:
50918:
50919:
50920:
50921:
50922:
50923:
50924:
50925:
50926:
50927: php_with_imap=no
50928:
50929: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IMAP support" >&5
50930: $as_echo_n "checking for IMAP support... " >&6; }
50931:
50932: # Check whether --with-imap was given.
50933: if test "${with_imap+set}" = set; then :
50934: withval=$with_imap; PHP_IMAP=$withval
50935: else
50936:
50937: PHP_IMAP=no
50938: test "$PHP_ENABLE_ALL" && PHP_IMAP=$PHP_ENABLE_ALL
50939:
50940: fi
50941:
50942:
50943:
50944: ext_output="yes, shared"
50945: ext_shared=yes
50946: case $PHP_IMAP in
50947: shared,*)
50948: PHP_IMAP=`echo "$PHP_IMAP"|$SED 's/^shared,//'`
50949: ;;
50950: shared)
50951: PHP_IMAP=yes
50952: ;;
50953: no)
50954: ext_output=no
50955: ext_shared=no
50956: ;;
50957: *)
50958: ext_output=yes
50959: ext_shared=no
50960: ;;
50961: esac
50962:
50963:
50964:
50965: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
50966: $as_echo "$ext_output" >&6; }
50967:
50968:
50969:
50970:
50971:
50972: php_with_kerberos=no
50973:
50974: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IMAP Kerberos support" >&5
50975: $as_echo_n "checking for IMAP Kerberos support... " >&6; }
50976:
50977: # Check whether --with-kerberos was given.
50978: if test "${with_kerberos+set}" = set; then :
50979: withval=$with_kerberos; PHP_KERBEROS=$withval
50980: else
50981:
50982: PHP_KERBEROS=no
50983:
50984:
50985: fi
50986:
50987:
50988: ext_output=$PHP_KERBEROS
50989: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
50990: $as_echo "$ext_output" >&6; }
50991:
50992:
50993:
50994:
50995:
50996: php_with_imap_ssl=no
50997:
50998: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IMAP SSL support" >&5
50999: $as_echo_n "checking for IMAP SSL support... " >&6; }
51000:
51001: # Check whether --with-imap-ssl was given.
51002: if test "${with_imap_ssl+set}" = set; then :
51003: withval=$with_imap_ssl; PHP_IMAP_SSL=$withval
51004: else
51005:
51006: PHP_IMAP_SSL=no
51007:
51008:
51009: fi
51010:
51011:
51012: ext_output=$PHP_IMAP_SSL
51013: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
51014: $as_echo "$ext_output" >&6; }
51015:
51016:
51017:
51018:
51019:
51020: if test "$PHP_IMAP" != "no"; then
51021:
51022: PHP_VAR_SUBST="$PHP_VAR_SUBST IMAP_SHARED_LIBADD"
51023:
51024:
51025: ext_builddir=ext/imap
51026: ext_srcdir=$abs_srcdir/ext/imap
51027:
51028: ac_extra=
51029:
51030: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
51031: PHP_IMAP_SHARED=no
51032:
51033:
51034: case ext/imap in
51035: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
51036: /*) ac_srcdir=`echo "ext/imap"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
51037: *) ac_srcdir="$abs_srcdir/ext/imap/"; ac_bdir="ext/imap/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
51038: esac
51039:
51040:
51041:
51042: b_c_pre=$php_c_pre
51043: b_cxx_pre=$php_cxx_pre
51044: b_c_meta=$php_c_meta
51045: b_cxx_meta=$php_cxx_meta
51046: b_c_post=$php_c_post
51047: b_cxx_post=$php_cxx_post
51048: b_lo=$php_lo
51049:
51050:
51051: old_IFS=$IFS
51052: for ac_src in php_imap.c; do
51053:
51054: IFS=.
51055: set $ac_src
51056: ac_obj=$1
51057: IFS=$old_IFS
51058:
51059: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
51060:
51061: case $ac_src in
51062: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
51063: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
51064: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
51065: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
51066: esac
51067:
51068: cat >>Makefile.objects<<EOF
51069: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
51070: $ac_comp
51071: EOF
51072: done
51073:
51074:
51075: EXT_STATIC="$EXT_STATIC imap"
51076: if test "$ext_shared" != "nocli"; then
51077: EXT_CLI_STATIC="$EXT_CLI_STATIC imap"
51078: fi
51079: else
51080: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
51081: PHP_IMAP_SHARED=yes
51082:
51083: case ext/imap in
51084: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
51085: /*) ac_srcdir=`echo "ext/imap"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
51086: *) ac_srcdir="$abs_srcdir/ext/imap/"; ac_bdir="ext/imap/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
51087: esac
51088:
51089:
51090:
51091: b_c_pre=$shared_c_pre
51092: b_cxx_pre=$shared_cxx_pre
51093: b_c_meta=$shared_c_meta
51094: b_cxx_meta=$shared_cxx_meta
51095: b_c_post=$shared_c_post
51096: b_cxx_post=$shared_cxx_post
51097: b_lo=$shared_lo
51098:
51099:
51100: old_IFS=$IFS
51101: for ac_src in php_imap.c; do
51102:
51103: IFS=.
51104: set $ac_src
51105: ac_obj=$1
51106: IFS=$old_IFS
51107:
51108: shared_objects_imap="$shared_objects_imap $ac_bdir$ac_obj.lo"
51109:
51110: case $ac_src in
51111: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
51112: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
51113: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
51114: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
51115: esac
51116:
51117: cat >>Makefile.objects<<EOF
51118: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
51119: $ac_comp
51120: EOF
51121: done
51122:
51123: case $host_alias in
51124: *netware*)
51125:
51126: install_modules="install-modules"
51127:
51128: case $host_alias in
51129: *aix*)
51130: suffix=so
51131: 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'
51132: ;;
51133: *netware*)
51134: suffix=nlm
51135: link_cmd='$(LIBTOOL) --mode=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)'
51136: ;;
51137: *)
51138: suffix=la
51139: link_cmd='$(LIBTOOL) --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)'
51140: ;;
51141: esac
51142:
51143: if test "x" = "xyes"; then
51144: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpimap.$suffix"
51145: else
51146: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpimap.$suffix"
51147: fi
51148:
51149: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_imap"
51150:
51151: cat >>Makefile.objects<<EOF
51152: \$(phplibdir)/phpimap.$suffix: $ext_builddir/phpimap.$suffix
51153: \$(LIBTOOL) --mode=install cp $ext_builddir/phpimap.$suffix \$(phplibdir)
51154:
51155: $ext_builddir/phpimap.$suffix: \$(shared_objects_imap) \$(PHPIMAP_SHARED_DEPENDENCIES)
51156: $link_cmd
51157:
51158: EOF
51159:
51160: ;;
51161: *)
51162:
51163: install_modules="install-modules"
51164:
51165: case $host_alias in
51166: *aix*)
51167: suffix=so
51168: 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'
51169: ;;
51170: *netware*)
51171: suffix=nlm
51172: link_cmd='$(LIBTOOL) --mode=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)'
51173: ;;
51174: *)
51175: suffix=la
51176: link_cmd='$(LIBTOOL) --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)'
51177: ;;
51178: esac
51179:
51180: if test "x" = "xyes"; then
51181: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/imap.$suffix"
51182: else
51183: PHP_MODULES="$PHP_MODULES \$(phplibdir)/imap.$suffix"
51184: fi
51185:
51186: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_imap"
51187:
51188: cat >>Makefile.objects<<EOF
51189: \$(phplibdir)/imap.$suffix: $ext_builddir/imap.$suffix
51190: \$(LIBTOOL) --mode=install cp $ext_builddir/imap.$suffix \$(phplibdir)
51191:
51192: $ext_builddir/imap.$suffix: \$(shared_objects_imap) \$(IMAP_SHARED_DEPENDENCIES)
51193: $link_cmd
51194:
51195: EOF
51196:
51197: ;;
51198: esac
51199:
51200: cat >>confdefs.h <<_ACEOF
51201: #define COMPILE_DL_IMAP 1
51202: _ACEOF
51203:
51204: fi
51205: fi
51206:
51207: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
51208: PHP_IMAP_SHARED=no
51209:
51210:
51211: case ext/imap in
51212: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
51213: /*) ac_srcdir=`echo "ext/imap"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
51214: *) ac_srcdir="$abs_srcdir/ext/imap/"; ac_bdir="ext/imap/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
51215: esac
51216:
51217:
51218:
51219: b_c_pre=$php_c_pre
51220: b_cxx_pre=$php_cxx_pre
51221: b_c_meta=$php_c_meta
51222: b_cxx_meta=$php_cxx_meta
51223: b_c_post=$php_c_post
51224: b_cxx_post=$php_cxx_post
51225: b_lo=$php_lo
51226:
51227:
51228: old_IFS=$IFS
51229: for ac_src in php_imap.c; do
51230:
51231: IFS=.
51232: set $ac_src
51233: ac_obj=$1
51234: IFS=$old_IFS
51235:
51236: PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
51237:
51238: case $ac_src in
51239: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
51240: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
51241: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
51242: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
51243: esac
51244:
51245: cat >>Makefile.objects<<EOF
51246: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
51247: $ac_comp
51248: EOF
51249: done
51250:
51251:
51252:
51253:
51254: case ext/imap in
51255: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
51256: /*) ac_srcdir=`echo "ext/imap"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
51257: *) ac_srcdir="$abs_srcdir/ext/imap/"; ac_bdir="ext/imap/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
51258: esac
51259:
51260:
51261:
51262: b_c_pre=$php_c_pre
51263: b_cxx_pre=$php_cxx_pre
51264: b_c_meta=$php_c_meta
51265: b_cxx_meta=$php_cxx_meta
51266: b_c_post=$php_c_post
51267: b_cxx_post=$php_cxx_post
51268: b_lo=$php_lo
51269:
51270:
51271: old_IFS=$IFS
51272: for ac_src in php_imap.c; do
51273:
51274: IFS=.
51275: set $ac_src
51276: ac_obj=$1
51277: IFS=$old_IFS
51278:
51279: PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo"
51280:
51281: case $ac_src in
51282: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
51283: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
51284: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
51285: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
51286: esac
51287:
51288: cat >>Makefile.objects<<EOF
51289: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
51290: $ac_comp
51291: EOF
51292: done
51293:
51294:
51295:
51296:
51297: case ext/imap in
51298: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
51299: /*) ac_srcdir=`echo "ext/imap"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
51300: *) ac_srcdir="$abs_srcdir/ext/imap/"; ac_bdir="ext/imap/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
51301: esac
51302:
51303:
51304:
51305: b_c_pre=$php_c_pre
51306: b_cxx_pre=$php_cxx_pre
51307: b_c_meta=$php_c_meta
51308: b_cxx_meta=$php_cxx_meta
51309: b_c_post=$php_c_post
51310: b_cxx_post=$php_cxx_post
51311: b_lo=$php_lo
51312:
51313:
51314: old_IFS=$IFS
51315: for ac_src in php_imap.c; do
51316:
51317: IFS=.
51318: set $ac_src
51319: ac_obj=$1
51320: IFS=$old_IFS
51321:
51322: PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo"
51323:
51324: case $ac_src in
51325: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
51326: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
51327: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
51328: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
51329: esac
51330:
51331: cat >>Makefile.objects<<EOF
51332: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
51333: $ac_comp
51334: EOF
51335: done
51336:
51337:
51338: EXT_CLI_STATIC="$EXT_CLI_STATIC imap"
51339: fi
51340:
51341:
51342: BUILD_DIR="$BUILD_DIR $ext_builddir"
51343:
51344:
51345:
51346: if test "$ext_builddir" = "."; then
51347: PHP_PECL_EXTENSION=imap
51348:
51349: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
51350:
51351: fi
51352:
51353:
51354: $as_echo "#define HAVE_IMAP 1" >>confdefs.h
51355:
51356:
51357: for i in $PHP_IMAP /usr/local /usr; do
51358: if test -r "$i/c-client.h"; then
51359:
51360: $as_echo "#define HAVE_IMAP2000 1" >>confdefs.h
51361:
51362: IMAP_DIR=$i
51363: IMAP_INC_DIR=$i
51364: break
51365: elif test -r "$i/rfc822.h"; then
51366: IMAP_DIR=$i;
51367: IMAP_INC_DIR=$i
51368: break
51369:
51370: elif test -r "$i/include/c-client/c-client.h"; then
51371:
51372: $as_echo "#define HAVE_IMAP2000 1" >>confdefs.h
51373:
51374: IMAP_DIR=$i
51375: IMAP_INC_DIR=$i/include/c-client
51376: break
51377: elif test -r "$i/include/c-client/rfc822.h"; then
51378: IMAP_DIR=$i;
51379: IMAP_INC_DIR=$i/include/c-client
51380: break
51381:
51382: elif test -r "$i/include/imap/c-client.h"; then
51383:
51384: $as_echo "#define HAVE_IMAP2000 1" >>confdefs.h
51385:
51386: IMAP_DIR=$i
51387: IMAP_INC_DIR=$i/include/imap
51388: break
51389: elif test -r "$i/include/imap/rfc822.h"; then
51390: IMAP_DIR=$i;
51391: IMAP_INC_DIR=$i/include/imap
51392: break
51393:
51394: elif test -r "$i/include/c-client.h"; then
51395:
51396: $as_echo "#define HAVE_IMAP2000 1" >>confdefs.h
51397:
51398: IMAP_DIR=$i
51399: IMAP_INC_DIR=$i/include
51400: break
51401: elif test -r "$i/include/rfc822.h"; then
51402: IMAP_DIR=$i;
51403: IMAP_INC_DIR=$i/include
51404: break
51405:
51406: elif test -r "$i/imap/c-client.h"; then
51407:
51408: $as_echo "#define HAVE_IMAP2000 1" >>confdefs.h
51409:
51410: IMAP_DIR=$i
51411: IMAP_INC_DIR=$i/imap
51412: break
51413: elif test -r "$i/imap/rfc822.h"; then
51414: IMAP_DIR=$i;
51415: IMAP_INC_DIR=$i/imap
51416: break
51417:
51418: elif test -r "$i/c-client/c-client.h"; then
51419:
51420: $as_echo "#define HAVE_IMAP2000 1" >>confdefs.h
51421:
51422: IMAP_DIR=$i
51423: IMAP_INC_DIR=$i/c-client
51424: break
51425: elif test -r "$i/c-client/rfc822.h"; then
51426: IMAP_DIR=$i;
51427: IMAP_INC_DIR=$i/c-client
51428: break
51429:
51430: fi
51431: done
51432:
51433: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51434: /* end confdefs.h. */
51435: #include <$IMAP_INC_DIR/mail.h>
51436:
51437: _ACEOF
51438: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51439: $EGREP "mail_fetch_overview_sequence" >/dev/null 2>&1; then :
51440:
51441:
51442: $as_echo "#define HAVE_IMAP2004 1" >>confdefs.h
51443:
51444:
51445: fi
51446: rm -f conftest*
51447:
51448:
51449: old_CFLAGS=$CFLAGS
51450: CFLAGS="-I$IMAP_INC_DIR"
51451: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utf8_mime2text signature" >&5
51452: $as_echo_n "checking for utf8_mime2text signature... " >&6; }
51453: if ${ac_cv_utf8_mime2text+:} false; then :
51454: $as_echo_n "(cached) " >&6
51455: else
51456: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51457: /* end confdefs.h. */
51458:
51459: #include <stdio.h>
51460: #include <c-client.h>
51461:
51462: int
51463: main ()
51464: {
51465:
51466: SIZEDTEXT *src, *dst;
51467: utf8_mime2text(src, dst);
51468:
51469: ;
51470: return 0;
51471: }
51472: _ACEOF
51473: if ac_fn_c_try_compile "$LINENO"; then :
51474:
51475: ac_cv_utf8_mime2text=old
51476:
51477: else
51478:
51479: ac_cv_utf8_mime2text=new
51480:
51481: fi
51482: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51483:
51484: fi
51485: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_utf8_mime2text" >&5
51486: $as_echo "$ac_cv_utf8_mime2text" >&6; }
51487: if test "$ac_cv_utf8_mime2text" = "new"; then
51488:
51489: $as_echo "#define HAVE_NEW_MIME2TEXT 1" >>confdefs.h
51490:
51491: fi
51492: CFLAGS=$old_CFLAGS
51493:
51494: old_CFLAGS=$CFLAGS
51495: CFLAGS="-I$IMAP_INC_DIR"
51496: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for U8T_DECOMPOSE" >&5
51497: $as_echo_n "checking for U8T_DECOMPOSE... " >&6; }
51498: if ${ac_cv_u8t_canonical+:} false; then :
51499: $as_echo_n "(cached) " >&6
51500: else
51501: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51502: /* end confdefs.h. */
51503:
51504: #include <c-client.h>
51505:
51506: int
51507: main ()
51508: {
51509:
51510: int i = U8T_CANONICAL;
51511:
51512: ;
51513: return 0;
51514: }
51515: _ACEOF
51516: if ac_fn_c_try_compile "$LINENO"; then :
51517:
51518: ac_cv_u8t_decompose=yes
51519:
51520: else
51521:
51522: ac_cv_u8t_decompose=no
51523:
51524: fi
51525: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51526:
51527: fi
51528: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_u8t_canonical" >&5
51529: $as_echo "$ac_cv_u8t_canonical" >&6; }
51530: CFLAGS=$old_CFLAGS
51531:
51532: if test "$ac_cv_u8t_decompose" = "no" && test "$ac_cv_utf8_mime2text" = "new"; then
51533: 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
51534: fi
51535: if test "$ac_cv_u8t_decompose" = "yes" && test "$ac_cv_utf8_mime2text" = "old"; then
51536: 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
51537: fi
51538:
51539: old_CPPFLAGS=$CPPFLAGS
51540: CPPFLAGS=-I$IMAP_INC_DIR
51541: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51542: /* end confdefs.h. */
51543:
51544: #include "imap4r1.h"
51545: #if defined(IMAPSSLPORT)
51546: this_is_true
51547: #endif
51548:
51549: _ACEOF
51550: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51551: $EGREP "this_is_true" >/dev/null 2>&1; then :
51552:
51553:
51554: $as_echo "#define HAVE_IMAP2001 1" >>confdefs.h
51555:
51556:
51557: fi
51558: rm -f conftest*
51559:
51560: CPPFLAGS=$old_CPPFLAGS
51561:
51562:
51563: save_old_LDFLAGS=$LDFLAGS
51564: ac_stuff=""
51565:
51566: save_ext_shared=$ext_shared
51567: ext_shared=yes
51568:
51569: for ac_i in $ac_stuff; do
51570: case $ac_i in
51571: -pthread)
51572: if test "$ext_shared" = "yes"; then
51573: LDFLAGS="$LDFLAGS -pthread"
51574: else
51575:
51576:
51577: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
51578:
51579: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
51580: if test -n "$unique" && test "`eval $cmd`" = "" ; then
51581: eval "EXTRA_LDFLAGS$unique=set"
51582: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
51583: fi
51584:
51585: fi
51586: ;;
51587: -l*)
51588: ac_ii=`echo $ac_i|cut -c 3-`
51589:
51590:
51591: case $ac_ii in
51592: c|c_r|pthread*) ;;
51593: *)
51594: if test "$ext_shared" = "yes"; then
51595: LDFLAGS="$LDFLAGS -l$ac_ii"
51596: else
51597:
51598:
51599: case $ac_ii in
51600: c|c_r|pthread*) ;;
51601: *)
51602: LIBS="$LIBS -l$ac_ii"
51603: ;;
51604: esac
51605:
51606:
51607: fi
51608: ;;
51609: esac
51610:
51611:
51612: ;;
51613: -L*)
51614: ac_ii=`echo $ac_i|cut -c 3-`
51615:
51616: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
51617:
51618: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
51619: ai_p=$ac_ii
51620: else
51621:
51622: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
51623:
51624: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
51625: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
51626: fi
51627:
51628:
51629: if test "$ext_shared" = "yes"; then
51630: LDFLAGS="-L$ai_p $LDFLAGS"
51631: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
51632: else
51633:
51634:
51635:
51636: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
51637:
51638: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
51639: if test -n "$unique" && test "`eval $cmd`" = "" ; then
51640: eval "LIBPATH$unique=set"
51641:
51642: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
51643: LDFLAGS="$LDFLAGS -L$ai_p"
51644: PHP_RPATHS="$PHP_RPATHS $ai_p"
51645:
51646: fi
51647:
51648:
51649: fi
51650:
51651: fi
51652:
51653: ;;
51654: esac
51655: done
51656:
51657: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
51658: $as_echo_n "checking for pam_start in -lpam... " >&6; }
51659: if ${ac_cv_lib_pam_pam_start+:} false; then :
51660: $as_echo_n "(cached) " >&6
51661: else
51662: ac_check_lib_save_LIBS=$LIBS
51663: LIBS="-lpam $LIBS"
51664: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51665: /* end confdefs.h. */
51666:
51667: /* Override any GCC internal prototype to avoid an error.
51668: Use char because int might match the return type of a GCC
51669: builtin and then its argument prototype would still apply. */
51670: #ifdef __cplusplus
51671: extern "C"
51672: #endif
51673: char pam_start ();
51674: int
51675: main ()
51676: {
51677: return pam_start ();
51678: ;
51679: return 0;
51680: }
51681: _ACEOF
51682: if ac_fn_c_try_link "$LINENO"; then :
51683: ac_cv_lib_pam_pam_start=yes
51684: else
51685: ac_cv_lib_pam_pam_start=no
51686: fi
51687: rm -f core conftest.err conftest.$ac_objext \
51688: conftest$ac_exeext conftest.$ac_ext
51689: LIBS=$ac_check_lib_save_LIBS
51690: fi
51691: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
51692: $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
51693: if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
51694:
51695: LDFLAGS=$save_old_LDFLAGS
51696: ext_shared=$save_ext_shared
51697:
51698:
51699:
51700: case pam in
51701: c|c_r|pthread*) ;;
51702: *)
51703: if test "$ext_shared" = "yes"; then
51704: IMAP_SHARED_LIBADD="-lpam $IMAP_SHARED_LIBADD"
51705: else
51706:
51707:
51708: case pam in
51709: c|c_r|pthread*) ;;
51710: *)
51711: LIBS="-lpam $LIBS"
51712: ;;
51713: esac
51714:
51715:
51716: fi
51717: ;;
51718: esac
51719:
51720:
51721:
51722: $as_echo "#define HAVE_LIBPAM 1" >>confdefs.h
51723:
51724:
51725:
51726: else
51727:
51728: LDFLAGS=$save_old_LDFLAGS
51729: ext_shared=$save_ext_shared
51730: unset ac_cv_lib_pam_pam_start
51731:
51732:
51733: fi
51734:
51735:
51736:
51737: save_old_LDFLAGS=$LDFLAGS
51738: ac_stuff=""
51739:
51740: save_ext_shared=$ext_shared
51741: ext_shared=yes
51742:
51743: for ac_i in $ac_stuff; do
51744: case $ac_i in
51745: -pthread)
51746: if test "$ext_shared" = "yes"; then
51747: LDFLAGS="$LDFLAGS -pthread"
51748: else
51749:
51750:
51751: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
51752:
51753: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
51754: if test -n "$unique" && test "`eval $cmd`" = "" ; then
51755: eval "EXTRA_LDFLAGS$unique=set"
51756: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
51757: fi
51758:
51759: fi
51760: ;;
51761: -l*)
51762: ac_ii=`echo $ac_i|cut -c 3-`
51763:
51764:
51765: case $ac_ii in
51766: c|c_r|pthread*) ;;
51767: *)
51768: if test "$ext_shared" = "yes"; then
51769: LDFLAGS="$LDFLAGS -l$ac_ii"
51770: else
51771:
51772:
51773: case $ac_ii in
51774: c|c_r|pthread*) ;;
51775: *)
51776: LIBS="$LIBS -l$ac_ii"
51777: ;;
51778: esac
51779:
51780:
51781: fi
51782: ;;
51783: esac
51784:
51785:
51786: ;;
51787: -L*)
51788: ac_ii=`echo $ac_i|cut -c 3-`
51789:
51790: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
51791:
51792: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
51793: ai_p=$ac_ii
51794: else
51795:
51796: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
51797:
51798: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
51799: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
51800: fi
51801:
51802:
51803: if test "$ext_shared" = "yes"; then
51804: LDFLAGS="-L$ai_p $LDFLAGS"
51805: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
51806: else
51807:
51808:
51809:
51810: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
51811:
51812: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
51813: if test -n "$unique" && test "`eval $cmd`" = "" ; then
51814: eval "LIBPATH$unique=set"
51815:
51816: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
51817: LDFLAGS="$LDFLAGS -L$ai_p"
51818: PHP_RPATHS="$PHP_RPATHS $ai_p"
51819:
51820: fi
51821:
51822:
51823: fi
51824:
51825: fi
51826:
51827: ;;
51828: esac
51829: done
51830:
51831: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
51832: $as_echo_n "checking for crypt in -lcrypt... " >&6; }
51833: if ${ac_cv_lib_crypt_crypt+:} false; then :
51834: $as_echo_n "(cached) " >&6
51835: else
51836: ac_check_lib_save_LIBS=$LIBS
51837: LIBS="-lcrypt $LIBS"
51838: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51839: /* end confdefs.h. */
51840:
51841: /* Override any GCC internal prototype to avoid an error.
51842: Use char because int might match the return type of a GCC
51843: builtin and then its argument prototype would still apply. */
51844: #ifdef __cplusplus
51845: extern "C"
51846: #endif
51847: char crypt ();
51848: int
51849: main ()
51850: {
51851: return crypt ();
51852: ;
51853: return 0;
51854: }
51855: _ACEOF
51856: if ac_fn_c_try_link "$LINENO"; then :
51857: ac_cv_lib_crypt_crypt=yes
51858: else
51859: ac_cv_lib_crypt_crypt=no
51860: fi
51861: rm -f core conftest.err conftest.$ac_objext \
51862: conftest$ac_exeext conftest.$ac_ext
51863: LIBS=$ac_check_lib_save_LIBS
51864: fi
51865: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
51866: $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
51867: if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
51868:
51869: LDFLAGS=$save_old_LDFLAGS
51870: ext_shared=$save_ext_shared
51871:
51872:
51873:
51874: case crypt in
51875: c|c_r|pthread*) ;;
51876: *)
51877: if test "$ext_shared" = "yes"; then
51878: IMAP_SHARED_LIBADD="-lcrypt $IMAP_SHARED_LIBADD"
51879: else
51880:
51881:
51882: case crypt in
51883: c|c_r|pthread*) ;;
51884: *)
51885: LIBS="-lcrypt $LIBS"
51886: ;;
51887: esac
51888:
51889:
51890: fi
51891: ;;
51892: esac
51893:
51894:
51895:
51896: $as_echo "#define HAVE_LIBCRYPT 1" >>confdefs.h
51897:
51898:
51899:
51900: else
51901:
51902: LDFLAGS=$save_old_LDFLAGS
51903: ext_shared=$save_ext_shared
51904: unset ac_cv_lib_crypt_crypt
51905:
51906:
51907: fi
51908:
51909:
51910:
51911: if test -z "$IMAP_DIR" || echo "$IMAP_DIR" | grep '^/' >/dev/null ; then
51912: IMAP_DIR=$IMAP_DIR
51913: else
51914:
51915: ep_dir="`echo $IMAP_DIR|$SED 's%/*[^/][^/]*/*$%%'`"
51916:
51917: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
51918: IMAP_DIR="$ep_realdir/`basename \"$IMAP_DIR\"`"
51919: fi
51920:
51921:
51922: if test -z "$IMAP_DIR"; then
51923: as_fn_error $? "Cannot find rfc822.h. Please check your c-client installation." "$LINENO" 5
51924: fi
51925:
51926: if test -r "$IMAP_DIR/c-client/c-client.a"; then
51927: ln -s "$IMAP_DIR/c-client/c-client.a" "$IMAP_DIR/c-client/libc-client.a" >/dev/null 2>&1
51928: elif test -r "$IMAP_DIR/$PHP_LIBDIR/c-client.a"; then
51929: ln -s "$IMAP_DIR/$PHP_LIBDIR/c-client.a" "$IMAP_DIR/$PHP_LIBDIR/libc-client.a" >/dev/null 2>&1
51930: fi
51931:
51932: for lib in c-client4 c-client imap; do
51933: IMAP_LIB=$lib
51934:
51935: str="$IMAP_DIR/$PHP_LIBDIR/lib$lib.*"
51936: for i in `echo $str`; do
51937: test -r $i && IMAP_LIBDIR=$IMAP_DIR/$PHP_LIBDIR && break 2
51938: done
51939:
51940:
51941: str="$IMAP_DIR/c-client/lib$lib.*"
51942: for i in `echo $str`; do
51943: test -r $i && IMAP_LIBDIR=$IMAP_DIR/c-client && break 2
51944: done
51945:
51946: done
51947:
51948: if test -z "$IMAP_LIBDIR"; then
51949: as_fn_error $? "Cannot find imap library (libc-client.a). Please check your c-client installation." "$LINENO" 5
51950: fi
51951:
51952:
51953: if test "$IMAP_INC_DIR" != "/usr/include"; then
51954:
51955: if test -z "$IMAP_INC_DIR" || echo "$IMAP_INC_DIR" | grep '^/' >/dev/null ; then
51956: ai_p=$IMAP_INC_DIR
51957: else
51958:
51959: ep_dir="`echo $IMAP_INC_DIR|$SED 's%/*[^/][^/]*/*$%%'`"
51960:
51961: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
51962: ai_p="$ep_realdir/`basename \"$IMAP_INC_DIR\"`"
51963: fi
51964:
51965:
51966:
51967: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
51968:
51969: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
51970: if test -n "$unique" && test "`eval $cmd`" = "" ; then
51971: eval "INCLUDEPATH$unique=set"
51972:
51973: if test ""; then
51974: INCLUDES="-I$ai_p $INCLUDES"
51975: else
51976: INCLUDES="$INCLUDES -I$ai_p"
51977: fi
51978:
51979: fi
51980:
51981: fi
51982:
51983:
51984:
51985: case $IMAP_LIB in
51986: c|c_r|pthread*) ;;
51987: *)
51988: if test "$ext_shared" = "yes"; then
51989: IMAP_SHARED_LIBADD="-l$IMAP_LIB $IMAP_SHARED_LIBADD"
51990: else
51991:
51992:
51993: case $IMAP_LIB in
51994: c|c_r|pthread*) ;;
51995: *)
51996: DLIBS="-l$IMAP_LIB $DLIBS"
51997: ;;
51998: esac
51999:
52000:
52001: fi
52002: ;;
52003: esac
52004:
52005:
52006:
52007: if test "$IMAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$IMAP_LIBDIR" != "/usr/lib"; then
52008:
52009: if test -z "$IMAP_LIBDIR" || echo "$IMAP_LIBDIR" | grep '^/' >/dev/null ; then
52010: ai_p=$IMAP_LIBDIR
52011: else
52012:
52013: ep_dir="`echo $IMAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
52014:
52015: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
52016: ai_p="$ep_realdir/`basename \"$IMAP_LIBDIR\"`"
52017: fi
52018:
52019:
52020: if test "$ext_shared" = "yes"; then
52021: IMAP_SHARED_LIBADD="-L$ai_p $IMAP_SHARED_LIBADD"
52022: test -n "$ld_runpath_switch" && IMAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $IMAP_SHARED_LIBADD"
52023: else
52024:
52025:
52026:
52027: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
52028:
52029: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
52030: if test -n "$unique" && test "`eval $cmd`" = "" ; then
52031: eval "LIBPATH$unique=set"
52032:
52033: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
52034: LDFLAGS="$LDFLAGS -L$ai_p"
52035: PHP_RPATHS="$PHP_RPATHS $ai_p"
52036:
52037: fi
52038:
52039:
52040: fi
52041:
52042: fi
52043:
52044:
52045: if test "$PHP_KERBEROS" != "no"; then
52046:
52047: found_kerberos=no
52048: unset KERBEROS_CFLAGS
52049: unset KERBEROS_LIBS
52050:
52051: if test -z "$KRB5_CONFIG"; then
52052: # Extract the first word of "krb5-config", so it can be a program name with args.
52053: set dummy krb5-config; ac_word=$2
52054: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
52055: $as_echo_n "checking for $ac_word... " >&6; }
52056: if ${ac_cv_path_KRB5_CONFIG+:} false; then :
52057: $as_echo_n "(cached) " >&6
52058: else
52059: case $KRB5_CONFIG in
52060: [\\/]* | ?:[\\/]*)
52061: ac_cv_path_KRB5_CONFIG="$KRB5_CONFIG" # Let the user override the test with a path.
52062: ;;
52063: *)
52064: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52065: as_dummy="$PATH:/usr/kerberos/bin:/usr/local/bin"
52066: for as_dir in $as_dummy
52067: do
52068: IFS=$as_save_IFS
52069: test -z "$as_dir" && as_dir=.
52070: for ac_exec_ext in '' $ac_executable_extensions; do
52071: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
52072: ac_cv_path_KRB5_CONFIG="$as_dir/$ac_word$ac_exec_ext"
52073: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
52074: break 2
52075: fi
52076: done
52077: done
52078: IFS=$as_save_IFS
52079:
52080: test -z "$ac_cv_path_KRB5_CONFIG" && ac_cv_path_KRB5_CONFIG="no"
52081: ;;
52082: esac
52083: fi
52084: KRB5_CONFIG=$ac_cv_path_KRB5_CONFIG
52085: if test -n "$KRB5_CONFIG"; then
52086: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5_CONFIG" >&5
52087: $as_echo "$KRB5_CONFIG" >&6; }
52088: else
52089: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
52090: $as_echo "no" >&6; }
52091: fi
52092:
52093:
52094: fi
52095:
52096: if test "$PHP_KERBEROS" = "yes" && test -x "$KRB5_CONFIG"; then
52097: KERBEROS_LIBS=`$KRB5_CONFIG --libs gssapi`
52098: KERBEROS_CFLAGS=`$KRB5_CONFIG --cflags gssapi`
52099:
52100: if test -n "$KERBEROS_LIBS"; then
52101: found_kerberos=yes
52102:
52103: for ac_i in $KERBEROS_LIBS; do
52104: case $ac_i in
52105: -pthread)
52106: if test "$ext_shared" = "yes"; then
52107: IMAP_SHARED_LIBADD="$IMAP_SHARED_LIBADD -pthread"
52108: else
52109:
52110:
52111: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
52112:
52113: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
52114: if test -n "$unique" && test "`eval $cmd`" = "" ; then
52115: eval "EXTRA_LDFLAGS$unique=set"
52116: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
52117: fi
52118:
52119: fi
52120: ;;
52121: -l*)
52122: ac_ii=`echo $ac_i|cut -c 3-`
52123:
52124:
52125: case $ac_ii in
52126: c|c_r|pthread*) ;;
52127: *)
52128: if test "$ext_shared" = "yes"; then
52129: IMAP_SHARED_LIBADD="$IMAP_SHARED_LIBADD -l$ac_ii"
52130: else
52131:
52132:
52133: case $ac_ii in
52134: c|c_r|pthread*) ;;
52135: *)
52136: LIBS="$LIBS -l$ac_ii"
52137: ;;
52138: esac
52139:
52140:
52141: fi
52142: ;;
52143: esac
52144:
52145:
52146: ;;
52147: -L*)
52148: ac_ii=`echo $ac_i|cut -c 3-`
52149:
52150: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
52151:
52152: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
52153: ai_p=$ac_ii
52154: else
52155:
52156: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
52157:
52158: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
52159: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
52160: fi
52161:
52162:
52163: if test "$ext_shared" = "yes"; then
52164: IMAP_SHARED_LIBADD="-L$ai_p $IMAP_SHARED_LIBADD"
52165: test -n "$ld_runpath_switch" && IMAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $IMAP_SHARED_LIBADD"
52166: else
52167:
52168:
52169:
52170: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
52171:
52172: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
52173: if test -n "$unique" && test "`eval $cmd`" = "" ; then
52174: eval "LIBPATH$unique=set"
52175:
52176: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
52177: LDFLAGS="$LDFLAGS -L$ai_p"
52178: PHP_RPATHS="$PHP_RPATHS $ai_p"
52179:
52180: fi
52181:
52182:
52183: fi
52184:
52185: fi
52186:
52187: ;;
52188: esac
52189: done
52190:
52191:
52192: for ac_i in $KERBEROS_CFLAGS; do
52193: case $ac_i in
52194: -I*)
52195: ac_ii=`echo $ac_i|cut -c 3-`
52196:
52197: if test "$ac_ii" != "/usr/include"; then
52198:
52199: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
52200: ai_p=$ac_ii
52201: else
52202:
52203: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
52204:
52205: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
52206: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
52207: fi
52208:
52209:
52210:
52211: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
52212:
52213: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
52214: if test -n "$unique" && test "`eval $cmd`" = "" ; then
52215: eval "INCLUDEPATH$unique=set"
52216:
52217: if test ""; then
52218: INCLUDES="-I$ai_p $INCLUDES"
52219: else
52220: INCLUDES="$INCLUDES -I$ai_p"
52221: fi
52222:
52223: fi
52224:
52225: fi
52226:
52227: ;;
52228: esac
52229: done
52230:
52231: fi
52232: fi
52233:
52234: if test "$found_kerberos" = "no"; then
52235:
52236: if test "$PHP_KERBEROS" = "yes"; then
52237: PHP_KERBEROS="/usr/kerberos /usr/local /usr"
52238: fi
52239:
52240: for i in $PHP_KERBEROS; do
52241: if test -f $i/$PHP_LIBDIR/libkrb5.a || test -f $i/$PHP_LIBDIR/libkrb5.$SHLIB_SUFFIX_NAME; then
52242: PHP_KERBEROS_DIR=$i
52243: break
52244: fi
52245: done
52246:
52247: if test "$PHP_KERBEROS_DIR"; then
52248: found_kerberos=yes
52249:
52250: if test "$PHP_KERBEROS_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_KERBEROS_DIR/$PHP_LIBDIR" != "/usr/lib"; then
52251:
52252: if test -z "$PHP_KERBEROS_DIR/$PHP_LIBDIR" || echo "$PHP_KERBEROS_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
52253: ai_p=$PHP_KERBEROS_DIR/$PHP_LIBDIR
52254: else
52255:
52256: ep_dir="`echo $PHP_KERBEROS_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
52257:
52258: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
52259: ai_p="$ep_realdir/`basename \"$PHP_KERBEROS_DIR/$PHP_LIBDIR\"`"
52260: fi
52261:
52262:
52263: if test "$ext_shared" = "yes"; then
52264: IMAP_SHARED_LIBADD="-L$ai_p $IMAP_SHARED_LIBADD"
52265: test -n "$ld_runpath_switch" && IMAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $IMAP_SHARED_LIBADD"
52266: else
52267:
52268:
52269:
52270: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
52271:
52272: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
52273: if test -n "$unique" && test "`eval $cmd`" = "" ; then
52274: eval "LIBPATH$unique=set"
52275:
52276: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
52277: LDFLAGS="$LDFLAGS -L$ai_p"
52278: PHP_RPATHS="$PHP_RPATHS $ai_p"
52279:
52280: fi
52281:
52282:
52283: fi
52284:
52285: fi
52286:
52287:
52288:
52289: case gssapi_krb5 in
52290: c|c_r|pthread*) ;;
52291: *)
52292: if test "$ext_shared" = "yes"; then
52293: IMAP_SHARED_LIBADD="$IMAP_SHARED_LIBADD -lgssapi_krb5"
52294: else
52295:
52296:
52297: case gssapi_krb5 in
52298: c|c_r|pthread*) ;;
52299: *)
52300: LIBS="$LIBS -lgssapi_krb5"
52301: ;;
52302: esac
52303:
52304:
52305: fi
52306: ;;
52307: esac
52308:
52309:
52310:
52311:
52312: case krb5 in
52313: c|c_r|pthread*) ;;
52314: *)
52315: if test "$ext_shared" = "yes"; then
52316: IMAP_SHARED_LIBADD="$IMAP_SHARED_LIBADD -lkrb5"
52317: else
52318:
52319:
52320: case krb5 in
52321: c|c_r|pthread*) ;;
52322: *)
52323: LIBS="$LIBS -lkrb5"
52324: ;;
52325: esac
52326:
52327:
52328: fi
52329: ;;
52330: esac
52331:
52332:
52333:
52334:
52335: case k5crypto in
52336: c|c_r|pthread*) ;;
52337: *)
52338: if test "$ext_shared" = "yes"; then
52339: IMAP_SHARED_LIBADD="$IMAP_SHARED_LIBADD -lk5crypto"
52340: else
52341:
52342:
52343: case k5crypto in
52344: c|c_r|pthread*) ;;
52345: *)
52346: LIBS="$LIBS -lk5crypto"
52347: ;;
52348: esac
52349:
52350:
52351: fi
52352: ;;
52353: esac
52354:
52355:
52356:
52357:
52358: case com_err in
52359: c|c_r|pthread*) ;;
52360: *)
52361: if test "$ext_shared" = "yes"; then
52362: IMAP_SHARED_LIBADD="$IMAP_SHARED_LIBADD -lcom_err"
52363: else
52364:
52365:
52366: case com_err in
52367: c|c_r|pthread*) ;;
52368: *)
52369: LIBS="$LIBS -lcom_err"
52370: ;;
52371: esac
52372:
52373:
52374: fi
52375: ;;
52376: esac
52377:
52378:
52379:
52380: if test "$PHP_KERBEROS_DIR/include" != "/usr/include"; then
52381:
52382: if test -z "$PHP_KERBEROS_DIR/include" || echo "$PHP_KERBEROS_DIR/include" | grep '^/' >/dev/null ; then
52383: ai_p=$PHP_KERBEROS_DIR/include
52384: else
52385:
52386: ep_dir="`echo $PHP_KERBEROS_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
52387:
52388: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
52389: ai_p="$ep_realdir/`basename \"$PHP_KERBEROS_DIR/include\"`"
52390: fi
52391:
52392:
52393:
52394: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
52395:
52396: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
52397: if test -n "$unique" && test "`eval $cmd`" = "" ; then
52398: eval "INCLUDEPATH$unique=set"
52399:
52400: if test ""; then
52401: INCLUDES="-I$ai_p $INCLUDES"
52402: else
52403: INCLUDES="$INCLUDES -I$ai_p"
52404: fi
52405:
52406: fi
52407:
52408: fi
52409:
52410: fi
52411: fi
52412:
52413: if test "$found_kerberos" = "yes"; then
52414:
52415:
52416: $as_echo "#define HAVE_IMAP_KRB 1" >>confdefs.h
52417:
52418:
52419: else
52420: as_fn_error $? "Kerberos libraries not found.
52421:
52422: Check the path given to --with-kerberos (if no path is given, searches in /usr/kerberos, /usr/local and /usr )
52423: " "$LINENO" 5
52424:
52425: fi
52426:
52427: else
52428: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52429: /* end confdefs.h. */
52430: #include <$IMAP_INC_DIR/linkage.h>
52431:
52432: _ACEOF
52433: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
52434: $EGREP "auth_gss" >/dev/null 2>&1; then :
52435:
52436: as_fn_error $? "This c-client library is built with Kerberos support.
52437:
52438: Add --with-kerberos to your configure line. Check config.log for details.
52439: " "$LINENO" 5
52440:
52441: fi
52442: rm -f conftest*
52443:
52444: fi
52445:
52446:
52447: if test "$PHP_IMAP_SSL" != "no"; then
52448: if test "$PHP_OPENSSL" = ""; then
52449: PHP_OPENSSL='no'
52450: fi
52451:
52452: found_openssl=no
52453: unset OPENSSL_INCDIR
52454: unset OPENSSL_LIBDIR
52455:
52456: test -z "$PHP_OPENSSL" && PHP_OPENSSL=no
52457: test -z "$PHP_IMAP_SSL" && PHP_IMAP_SSL=no
52458:
52459: if test -n "$PHP_OPENSSL" && test "$PHP_OPENSSL" != "no"; then
52460: PHP_OPENSSL_DIR=$PHP_OPENSSL
52461: elif test -n "$PHP_IMAP_SSL" && test "$PHP_IMAP_SSL" != "no"; then
52462: PHP_OPENSSL_DIR=$PHP_IMAP_SSL
52463: fi
52464:
52465: if test -z "$PKG_CONFIG"; then
52466: # Extract the first word of "pkg-config", so it can be a program name with args.
52467: set dummy pkg-config; ac_word=$2
52468: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
52469: $as_echo_n "checking for $ac_word... " >&6; }
52470: if ${ac_cv_path_PKG_CONFIG+:} false; then :
52471: $as_echo_n "(cached) " >&6
52472: else
52473: case $PKG_CONFIG in
52474: [\\/]* | ?:[\\/]*)
52475: ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
52476: ;;
52477: *)
52478: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52479: for as_dir in $PATH
52480: do
52481: IFS=$as_save_IFS
52482: test -z "$as_dir" && as_dir=.
52483: for ac_exec_ext in '' $ac_executable_extensions; do
52484: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
52485: ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
52486: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
52487: break 2
52488: fi
52489: done
52490: done
52491: IFS=$as_save_IFS
52492:
52493: test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
52494: ;;
52495: esac
52496: fi
52497: PKG_CONFIG=$ac_cv_path_PKG_CONFIG
52498: if test -n "$PKG_CONFIG"; then
52499: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
52500: $as_echo "$PKG_CONFIG" >&6; }
52501: else
52502: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
52503: $as_echo "no" >&6; }
52504: fi
52505:
52506:
52507: fi
52508:
52509: if test "$PHP_OPENSSL_DIR" = "yes" && test -x "$PKG_CONFIG" && $PKG_CONFIG --exists openssl; then
52510: if $PKG_CONFIG --atleast-version=0.9.6 openssl; then
52511: found_openssl=yes
52512: OPENSSL_LIBS=`$PKG_CONFIG --libs openssl`
52513: OPENSSL_INCS=`$PKG_CONFIG --cflags-only-I openssl`
52514: OPENSSL_INCDIR=`$PKG_CONFIG --variable=includedir openssl`
52515: else
52516: as_fn_error $? "OpenSSL version 0.9.6 or greater required." "$LINENO" 5
52517: fi
52518:
52519: if test -n "$OPENSSL_LIBS" && test -n "$OPENSSL_INCS"; then
52520:
52521: for ac_i in $OPENSSL_LIBS; do
52522: case $ac_i in
52523: -pthread)
52524: if test "$ext_shared" = "yes"; then
52525: IMAP_SHARED_LIBADD="$IMAP_SHARED_LIBADD -pthread"
52526: else
52527:
52528:
52529: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
52530:
52531: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
52532: if test -n "$unique" && test "`eval $cmd`" = "" ; then
52533: eval "EXTRA_LDFLAGS$unique=set"
52534: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
52535: fi
52536:
52537: fi
52538: ;;
52539: -l*)
52540: ac_ii=`echo $ac_i|cut -c 3-`
52541:
52542:
52543: case $ac_ii in
52544: c|c_r|pthread*) ;;
52545: *)
52546: if test "$ext_shared" = "yes"; then
52547: IMAP_SHARED_LIBADD="$IMAP_SHARED_LIBADD -l$ac_ii"
52548: else
52549:
52550:
52551: case $ac_ii in
52552: c|c_r|pthread*) ;;
52553: *)
52554: LIBS="$LIBS -l$ac_ii"
52555: ;;
52556: esac
52557:
52558:
52559: fi
52560: ;;
52561: esac
52562:
52563:
52564: ;;
52565: -L*)
52566: ac_ii=`echo $ac_i|cut -c 3-`
52567:
52568: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
52569:
52570: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
52571: ai_p=$ac_ii
52572: else
52573:
52574: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
52575:
52576: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
52577: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
52578: fi
52579:
52580:
52581: if test "$ext_shared" = "yes"; then
52582: IMAP_SHARED_LIBADD="-L$ai_p $IMAP_SHARED_LIBADD"
52583: test -n "$ld_runpath_switch" && IMAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $IMAP_SHARED_LIBADD"
52584: else
52585:
52586:
52587:
52588: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
52589:
52590: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
52591: if test -n "$unique" && test "`eval $cmd`" = "" ; then
52592: eval "LIBPATH$unique=set"
52593:
52594: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
52595: LDFLAGS="$LDFLAGS -L$ai_p"
52596: PHP_RPATHS="$PHP_RPATHS $ai_p"
52597:
52598: fi
52599:
52600:
52601: fi
52602:
52603: fi
52604:
52605: ;;
52606: esac
52607: done
52608:
52609:
52610: for ac_i in $OPENSSL_INCS; do
52611: case $ac_i in
52612: -I*)
52613: ac_ii=`echo $ac_i|cut -c 3-`
52614:
52615: if test "$ac_ii" != "/usr/include"; then
52616:
52617: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
52618: ai_p=$ac_ii
52619: else
52620:
52621: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
52622:
52623: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
52624: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
52625: fi
52626:
52627:
52628:
52629: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
52630:
52631: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
52632: if test -n "$unique" && test "`eval $cmd`" = "" ; then
52633: eval "INCLUDEPATH$unique=set"
52634:
52635: if test ""; then
52636: INCLUDES="-I$ai_p $INCLUDES"
52637: else
52638: INCLUDES="$INCLUDES -I$ai_p"
52639: fi
52640:
52641: fi
52642:
52643: fi
52644:
52645: ;;
52646: esac
52647: done
52648:
52649: fi
52650: fi
52651:
52652: if test "$found_openssl" = "no"; then
52653:
52654: if test "$PHP_OPENSSL_DIR" = "yes"; then
52655: PHP_OPENSSL_DIR="/usr/local/ssl /usr/local /usr /usr/local/openssl"
52656: fi
52657:
52658: for i in $PHP_OPENSSL_DIR; do
52659: if test -r $i/include/openssl/evp.h; then
52660: OPENSSL_INCDIR=$i/include
52661: fi
52662: if test -r $i/$PHP_LIBDIR/libssl.a -o -r $i/$PHP_LIBDIR/libssl.$SHLIB_SUFFIX_NAME; then
52663: OPENSSL_LIBDIR=$i/$PHP_LIBDIR
52664: fi
52665: test -n "$OPENSSL_INCDIR" && test -n "$OPENSSL_LIBDIR" && break
52666: done
52667:
52668: if test -z "$OPENSSL_INCDIR"; then
52669: as_fn_error $? "Cannot find OpenSSL's <evp.h>" "$LINENO" 5
52670: fi
52671:
52672: if test -z "$OPENSSL_LIBDIR"; then
52673: as_fn_error $? "Cannot find OpenSSL's libraries" "$LINENO" 5
52674: fi
52675:
52676: old_CPPFLAGS=$CPPFLAGS
52677: CPPFLAGS=-I$OPENSSL_INCDIR
52678: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version" >&5
52679: $as_echo_n "checking for OpenSSL version... " >&6; }
52680: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52681: /* end confdefs.h. */
52682:
52683: #include <openssl/opensslv.h>
52684: #if OPENSSL_VERSION_NUMBER >= 0x0090600fL
52685: yes
52686: #endif
52687:
52688: _ACEOF
52689: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
52690: $EGREP "yes" >/dev/null 2>&1; then :
52691:
52692: { $as_echo "$as_me:${as_lineno-$LINENO}: result: >= 0.9.6" >&5
52693: $as_echo ">= 0.9.6" >&6; }
52694:
52695: else
52696:
52697: as_fn_error $? "OpenSSL version 0.9.6 or greater required." "$LINENO" 5
52698:
52699: fi
52700: rm -f conftest*
52701:
52702: CPPFLAGS=$old_CPPFLAGS
52703:
52704:
52705: if test "$OPENSSL_INCDIR" != "/usr/include"; then
52706:
52707: if test -z "$OPENSSL_INCDIR" || echo "$OPENSSL_INCDIR" | grep '^/' >/dev/null ; then
52708: ai_p=$OPENSSL_INCDIR
52709: else
52710:
52711: ep_dir="`echo $OPENSSL_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`"
52712:
52713: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
52714: ai_p="$ep_realdir/`basename \"$OPENSSL_INCDIR\"`"
52715: fi
52716:
52717:
52718:
52719: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
52720:
52721: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
52722: if test -n "$unique" && test "`eval $cmd`" = "" ; then
52723: eval "INCLUDEPATH$unique=set"
52724:
52725: if test ""; then
52726: INCLUDES="-I$ai_p $INCLUDES"
52727: else
52728: INCLUDES="$INCLUDES -I$ai_p"
52729: fi
52730:
52731: fi
52732:
52733: fi
52734:
52735:
52736:
52737: save_old_LDFLAGS=$LDFLAGS
52738: ac_stuff="
52739: -L$OPENSSL_LIBDIR
52740: "
52741:
52742: save_ext_shared=$ext_shared
52743: ext_shared=yes
52744:
52745: for ac_i in $ac_stuff; do
52746: case $ac_i in
52747: -pthread)
52748: if test "$ext_shared" = "yes"; then
52749: LDFLAGS="$LDFLAGS -pthread"
52750: else
52751:
52752:
52753: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
52754:
52755: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
52756: if test -n "$unique" && test "`eval $cmd`" = "" ; then
52757: eval "EXTRA_LDFLAGS$unique=set"
52758: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
52759: fi
52760:
52761: fi
52762: ;;
52763: -l*)
52764: ac_ii=`echo $ac_i|cut -c 3-`
52765:
52766:
52767: case $ac_ii in
52768: c|c_r|pthread*) ;;
52769: *)
52770: if test "$ext_shared" = "yes"; then
52771: LDFLAGS="$LDFLAGS -l$ac_ii"
52772: else
52773:
52774:
52775: case $ac_ii in
52776: c|c_r|pthread*) ;;
52777: *)
52778: LIBS="$LIBS -l$ac_ii"
52779: ;;
52780: esac
52781:
52782:
52783: fi
52784: ;;
52785: esac
52786:
52787:
52788: ;;
52789: -L*)
52790: ac_ii=`echo $ac_i|cut -c 3-`
52791:
52792: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
52793:
52794: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
52795: ai_p=$ac_ii
52796: else
52797:
52798: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
52799:
52800: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
52801: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
52802: fi
52803:
52804:
52805: if test "$ext_shared" = "yes"; then
52806: LDFLAGS="-L$ai_p $LDFLAGS"
52807: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
52808: else
52809:
52810:
52811:
52812: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
52813:
52814: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
52815: if test -n "$unique" && test "`eval $cmd`" = "" ; then
52816: eval "LIBPATH$unique=set"
52817:
52818: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
52819: LDFLAGS="$LDFLAGS -L$ai_p"
52820: PHP_RPATHS="$PHP_RPATHS $ai_p"
52821:
52822: fi
52823:
52824:
52825: fi
52826:
52827: fi
52828:
52829: ;;
52830: esac
52831: done
52832:
52833: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_free in -lcrypto" >&5
52834: $as_echo_n "checking for CRYPTO_free in -lcrypto... " >&6; }
52835: if ${ac_cv_lib_crypto_CRYPTO_free+:} false; then :
52836: $as_echo_n "(cached) " >&6
52837: else
52838: ac_check_lib_save_LIBS=$LIBS
52839: LIBS="-lcrypto $LIBS"
52840: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52841: /* end confdefs.h. */
52842:
52843: /* Override any GCC internal prototype to avoid an error.
52844: Use char because int might match the return type of a GCC
52845: builtin and then its argument prototype would still apply. */
52846: #ifdef __cplusplus
52847: extern "C"
52848: #endif
52849: char CRYPTO_free ();
52850: int
52851: main ()
52852: {
52853: return CRYPTO_free ();
52854: ;
52855: return 0;
52856: }
52857: _ACEOF
52858: if ac_fn_c_try_link "$LINENO"; then :
52859: ac_cv_lib_crypto_CRYPTO_free=yes
52860: else
52861: ac_cv_lib_crypto_CRYPTO_free=no
52862: fi
52863: rm -f core conftest.err conftest.$ac_objext \
52864: conftest$ac_exeext conftest.$ac_ext
52865: LIBS=$ac_check_lib_save_LIBS
52866: fi
52867: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_free" >&5
52868: $as_echo "$ac_cv_lib_crypto_CRYPTO_free" >&6; }
52869: if test "x$ac_cv_lib_crypto_CRYPTO_free" = xyes; then :
52870:
52871: LDFLAGS=$save_old_LDFLAGS
52872: ext_shared=$save_ext_shared
52873:
52874:
52875:
52876: case crypto in
52877: c|c_r|pthread*) ;;
52878: *)
52879: if test "$ext_shared" = "yes"; then
52880: IMAP_SHARED_LIBADD="-lcrypto $IMAP_SHARED_LIBADD"
52881: else
52882:
52883:
52884: case crypto in
52885: c|c_r|pthread*) ;;
52886: *)
52887: LIBS="-lcrypto $LIBS"
52888: ;;
52889: esac
52890:
52891:
52892: fi
52893: ;;
52894: esac
52895:
52896:
52897:
52898:
52899: else
52900:
52901: LDFLAGS=$save_old_LDFLAGS
52902: ext_shared=$save_ext_shared
52903: unset ac_cv_lib_crypto_CRYPTO_free
52904:
52905: as_fn_error $? "libcrypto not found!" "$LINENO" 5
52906:
52907:
52908: fi
52909:
52910:
52911: old_LIBS=$LIBS
52912: LIBS="$LIBS -lcrypto"
52913:
52914: save_old_LDFLAGS=$LDFLAGS
52915: ac_stuff="
52916: -L$OPENSSL_LIBDIR
52917: "
52918:
52919: save_ext_shared=$ext_shared
52920: ext_shared=yes
52921:
52922: for ac_i in $ac_stuff; do
52923: case $ac_i in
52924: -pthread)
52925: if test "$ext_shared" = "yes"; then
52926: LDFLAGS="$LDFLAGS -pthread"
52927: else
52928:
52929:
52930: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
52931:
52932: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
52933: if test -n "$unique" && test "`eval $cmd`" = "" ; then
52934: eval "EXTRA_LDFLAGS$unique=set"
52935: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
52936: fi
52937:
52938: fi
52939: ;;
52940: -l*)
52941: ac_ii=`echo $ac_i|cut -c 3-`
52942:
52943:
52944: case $ac_ii in
52945: c|c_r|pthread*) ;;
52946: *)
52947: if test "$ext_shared" = "yes"; then
52948: LDFLAGS="$LDFLAGS -l$ac_ii"
52949: else
52950:
52951:
52952: case $ac_ii in
52953: c|c_r|pthread*) ;;
52954: *)
52955: LIBS="$LIBS -l$ac_ii"
52956: ;;
52957: esac
52958:
52959:
52960: fi
52961: ;;
52962: esac
52963:
52964:
52965: ;;
52966: -L*)
52967: ac_ii=`echo $ac_i|cut -c 3-`
52968:
52969: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
52970:
52971: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
52972: ai_p=$ac_ii
52973: else
52974:
52975: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
52976:
52977: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
52978: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
52979: fi
52980:
52981:
52982: if test "$ext_shared" = "yes"; then
52983: LDFLAGS="-L$ai_p $LDFLAGS"
52984: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
52985: else
52986:
52987:
52988:
52989: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
52990:
52991: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
52992: if test -n "$unique" && test "`eval $cmd`" = "" ; then
52993: eval "LIBPATH$unique=set"
52994:
52995: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
52996: LDFLAGS="$LDFLAGS -L$ai_p"
52997: PHP_RPATHS="$PHP_RPATHS $ai_p"
52998:
52999: fi
53000:
53001:
53002: fi
53003:
53004: fi
53005:
53006: ;;
53007: esac
53008: done
53009:
53010: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_CTX_set_ssl_version in -lssl" >&5
53011: $as_echo_n "checking for SSL_CTX_set_ssl_version in -lssl... " >&6; }
53012: if ${ac_cv_lib_ssl_SSL_CTX_set_ssl_version+:} false; then :
53013: $as_echo_n "(cached) " >&6
53014: else
53015: ac_check_lib_save_LIBS=$LIBS
53016: LIBS="-lssl $LIBS"
53017: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53018: /* end confdefs.h. */
53019:
53020: /* Override any GCC internal prototype to avoid an error.
53021: Use char because int might match the return type of a GCC
53022: builtin and then its argument prototype would still apply. */
53023: #ifdef __cplusplus
53024: extern "C"
53025: #endif
53026: char SSL_CTX_set_ssl_version ();
53027: int
53028: main ()
53029: {
53030: return SSL_CTX_set_ssl_version ();
53031: ;
53032: return 0;
53033: }
53034: _ACEOF
53035: if ac_fn_c_try_link "$LINENO"; then :
53036: ac_cv_lib_ssl_SSL_CTX_set_ssl_version=yes
53037: else
53038: ac_cv_lib_ssl_SSL_CTX_set_ssl_version=no
53039: fi
53040: rm -f core conftest.err conftest.$ac_objext \
53041: conftest$ac_exeext conftest.$ac_ext
53042: LIBS=$ac_check_lib_save_LIBS
53043: fi
53044: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_CTX_set_ssl_version" >&5
53045: $as_echo "$ac_cv_lib_ssl_SSL_CTX_set_ssl_version" >&6; }
53046: if test "x$ac_cv_lib_ssl_SSL_CTX_set_ssl_version" = xyes; then :
53047:
53048: LDFLAGS=$save_old_LDFLAGS
53049: ext_shared=$save_ext_shared
53050:
53051: found_openssl=yes
53052:
53053:
53054: else
53055:
53056: LDFLAGS=$save_old_LDFLAGS
53057: ext_shared=$save_ext_shared
53058: unset ac_cv_lib_ssl_SSL_CTX_set_ssl_version
53059:
53060: as_fn_error $? "libssl not found!" "$LINENO" 5
53061:
53062:
53063: fi
53064:
53065: LIBS=$old_LIBS
53066:
53067:
53068: case ssl in
53069: c|c_r|pthread*) ;;
53070: *)
53071: if test "$ext_shared" = "yes"; then
53072: IMAP_SHARED_LIBADD="-lssl $IMAP_SHARED_LIBADD"
53073: else
53074:
53075:
53076: case ssl in
53077: c|c_r|pthread*) ;;
53078: *)
53079: LIBS="-lssl $LIBS"
53080: ;;
53081: esac
53082:
53083:
53084: fi
53085: ;;
53086: esac
53087:
53088:
53089:
53090:
53091: case crypto in
53092: c|c_r|pthread*) ;;
53093: *)
53094: if test "$ext_shared" = "yes"; then
53095: IMAP_SHARED_LIBADD="-lcrypto $IMAP_SHARED_LIBADD"
53096: else
53097:
53098:
53099: case crypto in
53100: c|c_r|pthread*) ;;
53101: *)
53102: LIBS="-lcrypto $LIBS"
53103: ;;
53104: esac
53105:
53106:
53107: fi
53108: ;;
53109: esac
53110:
53111:
53112:
53113:
53114: if test "$OPENSSL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$OPENSSL_LIBDIR" != "/usr/lib"; then
53115:
53116: if test -z "$OPENSSL_LIBDIR" || echo "$OPENSSL_LIBDIR" | grep '^/' >/dev/null ; then
53117: ai_p=$OPENSSL_LIBDIR
53118: else
53119:
53120: ep_dir="`echo $OPENSSL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
53121:
53122: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
53123: ai_p="$ep_realdir/`basename \"$OPENSSL_LIBDIR\"`"
53124: fi
53125:
53126:
53127: if test "$ext_shared" = "yes"; then
53128: IMAP_SHARED_LIBADD="-L$ai_p $IMAP_SHARED_LIBADD"
53129: test -n "$ld_runpath_switch" && IMAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $IMAP_SHARED_LIBADD"
53130: else
53131:
53132:
53133:
53134: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
53135:
53136: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
53137: if test -n "$unique" && test "`eval $cmd`" = "" ; then
53138: eval "LIBPATH$unique=set"
53139:
53140: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
53141: LDFLAGS="$LDFLAGS -L$ai_p"
53142: PHP_RPATHS="$PHP_RPATHS $ai_p"
53143:
53144: fi
53145:
53146:
53147: fi
53148:
53149: fi
53150:
53151: fi
53152:
53153: if test "$found_openssl" = "yes"; then
53154: OPENSSL_INCDIR_OPT=-I$OPENSSL_INCDIR
53155:
53156:
53157:
53158:
53159: $as_echo "#define HAVE_IMAP_SSL 1" >>confdefs.h
53160:
53161:
53162: else
53163: as_fn_error $? "OpenSSL libraries not found.
53164:
53165: Check the path given to --with-openssl-dir and output in config.log)
53166: " "$LINENO" 5
53167:
53168: fi
53169:
53170: elif test -f "$IMAP_INC_DIR/linkage.c"; then
53171: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53172: /* end confdefs.h. */
53173: #include <$IMAP_INC_DIR/linkage.c>
53174:
53175: _ACEOF
53176: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
53177: $EGREP "ssl_onceonlyinit" >/dev/null 2>&1; then :
53178:
53179: as_fn_error $? "This c-client library is built with SSL support.
53180:
53181: Add --with-imap-ssl to your configure line. Check config.log for details.
53182: " "$LINENO" 5
53183:
53184: fi
53185: rm -f conftest*
53186:
53187: fi
53188:
53189:
53190: TST_LIBS="$DLIBS $IMAP_SHARED_LIBADD"
53191:
53192:
53193:
53194: old_LIBS=$LIBS
53195: LIBS="$TST_LIBS $LIBS"
53196: if test "$cross_compiling" = yes; then :
53197:
53198: LIBS=$old_LIBS
53199:
53200: else
53201: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53202: /* end confdefs.h. */
53203:
53204:
53205: #if defined(__GNUC__) && __GNUC__ >= 4
53206: # define PHP_IMAP_EXPORT __attribute__ ((visibility("default")))
53207: #else
53208: # define PHP_IMAP_EXPORT
53209: #endif
53210:
53211: PHP_IMAP_EXPORT void mm_log(void){}
53212: PHP_IMAP_EXPORT void mm_dlog(void){}
53213: PHP_IMAP_EXPORT void mm_flags(void){}
53214: PHP_IMAP_EXPORT void mm_fatal(void){}
53215: PHP_IMAP_EXPORT void mm_critical(void){}
53216: PHP_IMAP_EXPORT void mm_nocritical(void){}
53217: PHP_IMAP_EXPORT void mm_notify(void){}
53218: PHP_IMAP_EXPORT void mm_login(void){}
53219: PHP_IMAP_EXPORT void mm_diskerror(void){}
53220: PHP_IMAP_EXPORT void mm_status(void){}
53221: PHP_IMAP_EXPORT void mm_lsub(void){}
53222: PHP_IMAP_EXPORT void mm_list(void){}
53223: PHP_IMAP_EXPORT void mm_exists(void){}
53224: PHP_IMAP_EXPORT void mm_searched(void){}
53225: PHP_IMAP_EXPORT void mm_expunged(void){}
53226:
53227: char auth_gssapi_valid();
53228: int main() {
53229: auth_gssapi_valid();
53230: return 0;
53231: }
53232:
53233: _ACEOF
53234: if ac_fn_c_try_run "$LINENO"; then :
53235:
53236: LIBS=$old_LIBS
53237:
53238:
53239: $as_echo "#define HAVE_IMAP_AUTH_GSS 1" >>confdefs.h
53240:
53241:
53242:
53243: else
53244:
53245: LIBS=$old_LIBS
53246:
53247:
53248: fi
53249: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
53250: conftest.$ac_objext conftest.beam conftest.$ac_ext
53251: fi
53252:
53253:
53254:
53255:
53256:
53257:
53258: old_LIBS=$LIBS
53259: LIBS="$TST_LIBS $LIBS"
53260: if test "$cross_compiling" = yes; then :
53261:
53262: LIBS=$old_LIBS
53263:
53264: else
53265: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53266: /* end confdefs.h. */
53267:
53268:
53269: #if defined(__GNUC__) && __GNUC__ >= 4
53270: # define PHP_IMAP_EXPORT __attribute__ ((visibility("default")))
53271: #else
53272: # define PHP_IMAP_EXPORT
53273: #endif
53274:
53275: PHP_IMAP_EXPORT void mm_log(void){}
53276: PHP_IMAP_EXPORT void mm_dlog(void){}
53277: PHP_IMAP_EXPORT void mm_flags(void){}
53278: PHP_IMAP_EXPORT void mm_fatal(void){}
53279: PHP_IMAP_EXPORT void mm_critical(void){}
53280: PHP_IMAP_EXPORT void mm_nocritical(void){}
53281: PHP_IMAP_EXPORT void mm_notify(void){}
53282: PHP_IMAP_EXPORT void mm_login(void){}
53283: PHP_IMAP_EXPORT void mm_diskerror(void){}
53284: PHP_IMAP_EXPORT void mm_status(void){}
53285: PHP_IMAP_EXPORT void mm_lsub(void){}
53286: PHP_IMAP_EXPORT void mm_list(void){}
53287: PHP_IMAP_EXPORT void mm_exists(void){}
53288: PHP_IMAP_EXPORT void mm_searched(void){}
53289: PHP_IMAP_EXPORT void mm_expunged(void){}
53290:
53291: char utf8_to_mutf7();
53292: int main() {
53293: utf8_to_mutf7();
53294: return 0;
53295: }
53296:
53297: _ACEOF
53298: if ac_fn_c_try_run "$LINENO"; then :
53299:
53300: LIBS=$old_LIBS
53301:
53302:
53303: $as_echo "#define HAVE_IMAP_MUTF7 1" >>confdefs.h
53304:
53305:
53306:
53307: else
53308:
53309: LIBS=$old_LIBS
53310:
53311:
53312: fi
53313: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
53314: conftest.$ac_objext conftest.beam conftest.$ac_ext
53315: fi
53316:
53317:
53318:
53319:
53320: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rfc822_output_address_list function present" >&5
53321: $as_echo_n "checking whether rfc822_output_address_list function present... " >&6; }
53322:
53323: old_LIBS=$LIBS
53324: LIBS="
53325: $TST_LIBS
53326: $LIBS"
53327: if test "$cross_compiling" = yes; then :
53328:
53329: LIBS=$old_LIBS
53330:
53331: else
53332: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53333: /* end confdefs.h. */
53334:
53335:
53336: #if defined(__GNUC__) && __GNUC__ >= 4
53337: # define PHP_IMAP_EXPORT __attribute__ ((visibility("default")))
53338: #else
53339: # define PHP_IMAP_EXPORT
53340: #endif
53341:
53342: PHP_IMAP_EXPORT void mm_log(void){}
53343: PHP_IMAP_EXPORT void mm_dlog(void){}
53344: PHP_IMAP_EXPORT void mm_flags(void){}
53345: PHP_IMAP_EXPORT void mm_fatal(void){}
53346: PHP_IMAP_EXPORT void mm_critical(void){}
53347: PHP_IMAP_EXPORT void mm_nocritical(void){}
53348: PHP_IMAP_EXPORT void mm_notify(void){}
53349: PHP_IMAP_EXPORT void mm_login(void){}
53350: PHP_IMAP_EXPORT void mm_diskerror(void){}
53351: PHP_IMAP_EXPORT void mm_status(void){}
53352: PHP_IMAP_EXPORT void mm_lsub(void){}
53353: PHP_IMAP_EXPORT void mm_list(void){}
53354: PHP_IMAP_EXPORT void mm_exists(void){}
53355: PHP_IMAP_EXPORT void mm_searched(void){}
53356: PHP_IMAP_EXPORT void mm_expunged(void){}
53357: void rfc822_output_address_list(void);
53358: void (*f)(void);
53359: char foobar () {f = rfc822_output_address_list;}
53360:
53361: char foobar();
53362: int main() {
53363: foobar();
53364: return 0;
53365: }
53366:
53367: _ACEOF
53368: if ac_fn_c_try_run "$LINENO"; then :
53369:
53370: LIBS=$old_LIBS
53371:
53372: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
53373: $as_echo "yes" >&6; }
53374:
53375: $as_echo "#define HAVE_RFC822_OUTPUT_ADDRESS_LIST 1" >>confdefs.h
53376:
53377:
53378:
53379: else
53380:
53381: LIBS=$old_LIBS
53382:
53383: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
53384: $as_echo "no" >&6; }
53385:
53386:
53387: fi
53388: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
53389: conftest.$ac_objext conftest.beam conftest.$ac_ext
53390: fi
53391:
53392:
53393:
53394: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build with IMAP works" >&5
53395: $as_echo_n "checking whether build with IMAP works... " >&6; }
53396:
53397:
53398: old_LIBS=$LIBS
53399: LIBS="$TST_LIBS $LIBS"
53400: if test "$cross_compiling" = yes; then :
53401:
53402: LIBS=$old_LIBS
53403:
53404: else
53405: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53406: /* end confdefs.h. */
53407:
53408:
53409: #if defined(__GNUC__) && __GNUC__ >= 4
53410: # define PHP_IMAP_EXPORT __attribute__ ((visibility("default")))
53411: #else
53412: # define PHP_IMAP_EXPORT
53413: #endif
53414:
53415: PHP_IMAP_EXPORT void mm_log(void){}
53416: PHP_IMAP_EXPORT void mm_dlog(void){}
53417: PHP_IMAP_EXPORT void mm_flags(void){}
53418: PHP_IMAP_EXPORT void mm_fatal(void){}
53419: PHP_IMAP_EXPORT void mm_critical(void){}
53420: PHP_IMAP_EXPORT void mm_nocritical(void){}
53421: PHP_IMAP_EXPORT void mm_notify(void){}
53422: PHP_IMAP_EXPORT void mm_login(void){}
53423: PHP_IMAP_EXPORT void mm_diskerror(void){}
53424: PHP_IMAP_EXPORT void mm_status(void){}
53425: PHP_IMAP_EXPORT void mm_lsub(void){}
53426: PHP_IMAP_EXPORT void mm_list(void){}
53427: PHP_IMAP_EXPORT void mm_exists(void){}
53428: PHP_IMAP_EXPORT void mm_searched(void){}
53429: PHP_IMAP_EXPORT void mm_expunged(void){}
53430:
53431: char mail_newbody();
53432: int main() {
53433: mail_newbody();
53434: return 0;
53435: }
53436:
53437: _ACEOF
53438: if ac_fn_c_try_run "$LINENO"; then :
53439:
53440: LIBS=$old_LIBS
53441:
53442: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
53443: $as_echo "yes" >&6; }
53444:
53445:
53446: else
53447:
53448: LIBS=$old_LIBS
53449:
53450: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
53451: $as_echo "no" >&6; }
53452: as_fn_error $? "build test failed. Please check the config.log for details." "$LINENO" 5
53453:
53454:
53455: fi
53456: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
53457: conftest.$ac_objext conftest.beam conftest.$ac_ext
53458: fi
53459:
53460:
53461:
53462: fi
53463:
53464:
53465:
53466: php_with_interbase=no
53467:
53468: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for InterBase support" >&5
53469: $as_echo_n "checking for InterBase support... " >&6; }
53470:
53471: # Check whether --with-interbase was given.
53472: if test "${with_interbase+set}" = set; then :
53473: withval=$with_interbase; PHP_INTERBASE=$withval
53474: else
53475:
53476: PHP_INTERBASE=no
53477: test "$PHP_ENABLE_ALL" && PHP_INTERBASE=$PHP_ENABLE_ALL
53478:
53479: fi
53480:
53481:
53482:
53483: ext_output="yes, shared"
53484: ext_shared=yes
53485: case $PHP_INTERBASE in
53486: shared,*)
53487: PHP_INTERBASE=`echo "$PHP_INTERBASE"|$SED 's/^shared,//'`
53488: ;;
53489: shared)
53490: PHP_INTERBASE=yes
53491: ;;
53492: no)
53493: ext_output=no
53494: ext_shared=no
53495: ;;
53496: *)
53497: ext_output=yes
53498: ext_shared=no
53499: ;;
53500: esac
53501:
53502:
53503:
53504: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
53505: $as_echo "$ext_output" >&6; }
53506:
53507:
53508:
53509:
53510: if test "$PHP_INTERBASE" != "no"; then
53511: if test "$PHP_INTERBASE" = "yes"; then
53512: IBASE_INCDIR=/usr/interbase/include
53513: IBASE_LIBDIR=/usr/interbase/lib
53514: else
53515: IBASE_INCDIR=$PHP_INTERBASE/include
53516: IBASE_LIBDIR=$PHP_INTERBASE/$PHP_LIBDIR
53517: fi
53518:
53519:
53520: save_old_LDFLAGS=$LDFLAGS
53521: ac_stuff="
53522: -L$IBASE_LIBDIR
53523: "
53524:
53525: save_ext_shared=$ext_shared
53526: ext_shared=yes
53527:
53528: for ac_i in $ac_stuff; do
53529: case $ac_i in
53530: -pthread)
53531: if test "$ext_shared" = "yes"; then
53532: LDFLAGS="$LDFLAGS -pthread"
53533: else
53534:
53535:
53536: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
53537:
53538: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
53539: if test -n "$unique" && test "`eval $cmd`" = "" ; then
53540: eval "EXTRA_LDFLAGS$unique=set"
53541: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
53542: fi
53543:
53544: fi
53545: ;;
53546: -l*)
53547: ac_ii=`echo $ac_i|cut -c 3-`
53548:
53549:
53550: case $ac_ii in
53551: c|c_r|pthread*) ;;
53552: *)
53553: if test "$ext_shared" = "yes"; then
53554: LDFLAGS="$LDFLAGS -l$ac_ii"
53555: else
53556:
53557:
53558: case $ac_ii in
53559: c|c_r|pthread*) ;;
53560: *)
53561: LIBS="$LIBS -l$ac_ii"
53562: ;;
53563: esac
53564:
53565:
53566: fi
53567: ;;
53568: esac
53569:
53570:
53571: ;;
53572: -L*)
53573: ac_ii=`echo $ac_i|cut -c 3-`
53574:
53575: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
53576:
53577: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
53578: ai_p=$ac_ii
53579: else
53580:
53581: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
53582:
53583: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
53584: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
53585: fi
53586:
53587:
53588: if test "$ext_shared" = "yes"; then
53589: LDFLAGS="-L$ai_p $LDFLAGS"
53590: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
53591: else
53592:
53593:
53594:
53595: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
53596:
53597: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
53598: if test -n "$unique" && test "`eval $cmd`" = "" ; then
53599: eval "LIBPATH$unique=set"
53600:
53601: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
53602: LDFLAGS="$LDFLAGS -L$ai_p"
53603: PHP_RPATHS="$PHP_RPATHS $ai_p"
53604:
53605: fi
53606:
53607:
53608: fi
53609:
53610: fi
53611:
53612: ;;
53613: esac
53614: done
53615:
53616: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isc_detach_database in -lfbclient" >&5
53617: $as_echo_n "checking for isc_detach_database in -lfbclient... " >&6; }
53618: if ${ac_cv_lib_fbclient_isc_detach_database+:} false; then :
53619: $as_echo_n "(cached) " >&6
53620: else
53621: ac_check_lib_save_LIBS=$LIBS
53622: LIBS="-lfbclient $LIBS"
53623: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53624: /* end confdefs.h. */
53625:
53626: /* Override any GCC internal prototype to avoid an error.
53627: Use char because int might match the return type of a GCC
53628: builtin and then its argument prototype would still apply. */
53629: #ifdef __cplusplus
53630: extern "C"
53631: #endif
53632: char isc_detach_database ();
53633: int
53634: main ()
53635: {
53636: return isc_detach_database ();
53637: ;
53638: return 0;
53639: }
53640: _ACEOF
53641: if ac_fn_c_try_link "$LINENO"; then :
53642: ac_cv_lib_fbclient_isc_detach_database=yes
53643: else
53644: ac_cv_lib_fbclient_isc_detach_database=no
53645: fi
53646: rm -f core conftest.err conftest.$ac_objext \
53647: conftest$ac_exeext conftest.$ac_ext
53648: LIBS=$ac_check_lib_save_LIBS
53649: fi
53650: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fbclient_isc_detach_database" >&5
53651: $as_echo "$ac_cv_lib_fbclient_isc_detach_database" >&6; }
53652: if test "x$ac_cv_lib_fbclient_isc_detach_database" = xyes; then :
53653:
53654: LDFLAGS=$save_old_LDFLAGS
53655: ext_shared=$save_ext_shared
53656:
53657: IBASE_LIBNAME=fbclient
53658:
53659:
53660: else
53661:
53662: LDFLAGS=$save_old_LDFLAGS
53663: ext_shared=$save_ext_shared
53664: unset ac_cv_lib_fbclient_isc_detach_database
53665:
53666:
53667: save_old_LDFLAGS=$LDFLAGS
53668: ac_stuff="
53669: -L$IBASE_LIBDIR
53670: "
53671:
53672: save_ext_shared=$ext_shared
53673: ext_shared=yes
53674:
53675: for ac_i in $ac_stuff; do
53676: case $ac_i in
53677: -pthread)
53678: if test "$ext_shared" = "yes"; then
53679: LDFLAGS="$LDFLAGS -pthread"
53680: else
53681:
53682:
53683: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
53684:
53685: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
53686: if test -n "$unique" && test "`eval $cmd`" = "" ; then
53687: eval "EXTRA_LDFLAGS$unique=set"
53688: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
53689: fi
53690:
53691: fi
53692: ;;
53693: -l*)
53694: ac_ii=`echo $ac_i|cut -c 3-`
53695:
53696:
53697: case $ac_ii in
53698: c|c_r|pthread*) ;;
53699: *)
53700: if test "$ext_shared" = "yes"; then
53701: LDFLAGS="$LDFLAGS -l$ac_ii"
53702: else
53703:
53704:
53705: case $ac_ii in
53706: c|c_r|pthread*) ;;
53707: *)
53708: LIBS="$LIBS -l$ac_ii"
53709: ;;
53710: esac
53711:
53712:
53713: fi
53714: ;;
53715: esac
53716:
53717:
53718: ;;
53719: -L*)
53720: ac_ii=`echo $ac_i|cut -c 3-`
53721:
53722: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
53723:
53724: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
53725: ai_p=$ac_ii
53726: else
53727:
53728: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
53729:
53730: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
53731: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
53732: fi
53733:
53734:
53735: if test "$ext_shared" = "yes"; then
53736: LDFLAGS="-L$ai_p $LDFLAGS"
53737: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
53738: else
53739:
53740:
53741:
53742: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
53743:
53744: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
53745: if test -n "$unique" && test "`eval $cmd`" = "" ; then
53746: eval "LIBPATH$unique=set"
53747:
53748: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
53749: LDFLAGS="$LDFLAGS -L$ai_p"
53750: PHP_RPATHS="$PHP_RPATHS $ai_p"
53751:
53752: fi
53753:
53754:
53755: fi
53756:
53757: fi
53758:
53759: ;;
53760: esac
53761: done
53762:
53763: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isc_detach_database in -lgds" >&5
53764: $as_echo_n "checking for isc_detach_database in -lgds... " >&6; }
53765: if ${ac_cv_lib_gds_isc_detach_database+:} false; then :
53766: $as_echo_n "(cached) " >&6
53767: else
53768: ac_check_lib_save_LIBS=$LIBS
53769: LIBS="-lgds $LIBS"
53770: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53771: /* end confdefs.h. */
53772:
53773: /* Override any GCC internal prototype to avoid an error.
53774: Use char because int might match the return type of a GCC
53775: builtin and then its argument prototype would still apply. */
53776: #ifdef __cplusplus
53777: extern "C"
53778: #endif
53779: char isc_detach_database ();
53780: int
53781: main ()
53782: {
53783: return isc_detach_database ();
53784: ;
53785: return 0;
53786: }
53787: _ACEOF
53788: if ac_fn_c_try_link "$LINENO"; then :
53789: ac_cv_lib_gds_isc_detach_database=yes
53790: else
53791: ac_cv_lib_gds_isc_detach_database=no
53792: fi
53793: rm -f core conftest.err conftest.$ac_objext \
53794: conftest$ac_exeext conftest.$ac_ext
53795: LIBS=$ac_check_lib_save_LIBS
53796: fi
53797: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gds_isc_detach_database" >&5
53798: $as_echo "$ac_cv_lib_gds_isc_detach_database" >&6; }
53799: if test "x$ac_cv_lib_gds_isc_detach_database" = xyes; then :
53800:
53801: LDFLAGS=$save_old_LDFLAGS
53802: ext_shared=$save_ext_shared
53803:
53804: IBASE_LIBNAME=gds
53805:
53806:
53807: else
53808:
53809: LDFLAGS=$save_old_LDFLAGS
53810: ext_shared=$save_ext_shared
53811: unset ac_cv_lib_gds_isc_detach_database
53812:
53813:
53814: save_old_LDFLAGS=$LDFLAGS
53815: ac_stuff="
53816: -L$IBASE_LIBDIR
53817: "
53818:
53819: save_ext_shared=$ext_shared
53820: ext_shared=yes
53821:
53822: for ac_i in $ac_stuff; do
53823: case $ac_i in
53824: -pthread)
53825: if test "$ext_shared" = "yes"; then
53826: LDFLAGS="$LDFLAGS -pthread"
53827: else
53828:
53829:
53830: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
53831:
53832: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
53833: if test -n "$unique" && test "`eval $cmd`" = "" ; then
53834: eval "EXTRA_LDFLAGS$unique=set"
53835: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
53836: fi
53837:
53838: fi
53839: ;;
53840: -l*)
53841: ac_ii=`echo $ac_i|cut -c 3-`
53842:
53843:
53844: case $ac_ii in
53845: c|c_r|pthread*) ;;
53846: *)
53847: if test "$ext_shared" = "yes"; then
53848: LDFLAGS="$LDFLAGS -l$ac_ii"
53849: else
53850:
53851:
53852: case $ac_ii in
53853: c|c_r|pthread*) ;;
53854: *)
53855: LIBS="$LIBS -l$ac_ii"
53856: ;;
53857: esac
53858:
53859:
53860: fi
53861: ;;
53862: esac
53863:
53864:
53865: ;;
53866: -L*)
53867: ac_ii=`echo $ac_i|cut -c 3-`
53868:
53869: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
53870:
53871: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
53872: ai_p=$ac_ii
53873: else
53874:
53875: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
53876:
53877: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
53878: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
53879: fi
53880:
53881:
53882: if test "$ext_shared" = "yes"; then
53883: LDFLAGS="-L$ai_p $LDFLAGS"
53884: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
53885: else
53886:
53887:
53888:
53889: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
53890:
53891: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
53892: if test -n "$unique" && test "`eval $cmd`" = "" ; then
53893: eval "LIBPATH$unique=set"
53894:
53895: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
53896: LDFLAGS="$LDFLAGS -L$ai_p"
53897: PHP_RPATHS="$PHP_RPATHS $ai_p"
53898:
53899: fi
53900:
53901:
53902: fi
53903:
53904: fi
53905:
53906: ;;
53907: esac
53908: done
53909:
53910: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isc_detach_database in -lib_util" >&5
53911: $as_echo_n "checking for isc_detach_database in -lib_util... " >&6; }
53912: if ${ac_cv_lib_ib_util_isc_detach_database+:} false; then :
53913: $as_echo_n "(cached) " >&6
53914: else
53915: ac_check_lib_save_LIBS=$LIBS
53916: LIBS="-lib_util $LIBS"
53917: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53918: /* end confdefs.h. */
53919:
53920: /* Override any GCC internal prototype to avoid an error.
53921: Use char because int might match the return type of a GCC
53922: builtin and then its argument prototype would still apply. */
53923: #ifdef __cplusplus
53924: extern "C"
53925: #endif
53926: char isc_detach_database ();
53927: int
53928: main ()
53929: {
53930: return isc_detach_database ();
53931: ;
53932: return 0;
53933: }
53934: _ACEOF
53935: if ac_fn_c_try_link "$LINENO"; then :
53936: ac_cv_lib_ib_util_isc_detach_database=yes
53937: else
53938: ac_cv_lib_ib_util_isc_detach_database=no
53939: fi
53940: rm -f core conftest.err conftest.$ac_objext \
53941: conftest$ac_exeext conftest.$ac_ext
53942: LIBS=$ac_check_lib_save_LIBS
53943: fi
53944: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ib_util_isc_detach_database" >&5
53945: $as_echo "$ac_cv_lib_ib_util_isc_detach_database" >&6; }
53946: if test "x$ac_cv_lib_ib_util_isc_detach_database" = xyes; then :
53947:
53948: LDFLAGS=$save_old_LDFLAGS
53949: ext_shared=$save_ext_shared
53950:
53951: IBASE_LIBNAME=ib_util
53952:
53953:
53954: else
53955:
53956: LDFLAGS=$save_old_LDFLAGS
53957: ext_shared=$save_ext_shared
53958: unset ac_cv_lib_ib_util_isc_detach_database
53959:
53960: as_fn_error $? "libgds, libib_util or libfbclient not found! Check config.log for more information." "$LINENO" 5
53961:
53962:
53963: fi
53964:
53965:
53966:
53967: fi
53968:
53969:
53970:
53971: fi
53972:
53973:
53974:
53975:
53976: if test "$ext_shared" = "yes"; then
53977: INTERBASE_SHARED_LIBADD="-l$IBASE_LIBNAME $INTERBASE_SHARED_LIBADD"
53978: if test -n "$IBASE_LIBDIR"; then
53979:
53980: if test "$IBASE_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$IBASE_LIBDIR" != "/usr/lib"; then
53981:
53982: if test -z "$IBASE_LIBDIR" || echo "$IBASE_LIBDIR" | grep '^/' >/dev/null ; then
53983: ai_p=$IBASE_LIBDIR
53984: else
53985:
53986: ep_dir="`echo $IBASE_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
53987:
53988: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
53989: ai_p="$ep_realdir/`basename \"$IBASE_LIBDIR\"`"
53990: fi
53991:
53992:
53993: if test "$ext_shared" = "yes"; then
53994: INTERBASE_SHARED_LIBADD="-L$ai_p $INTERBASE_SHARED_LIBADD"
53995: test -n "$ld_runpath_switch" && INTERBASE_SHARED_LIBADD="$ld_runpath_switch$ai_p $INTERBASE_SHARED_LIBADD"
53996: else
53997:
53998:
53999:
54000: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
54001:
54002: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
54003: if test -n "$unique" && test "`eval $cmd`" = "" ; then
54004: eval "LIBPATH$unique=set"
54005:
54006: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
54007: LDFLAGS="$LDFLAGS -L$ai_p"
54008: PHP_RPATHS="$PHP_RPATHS $ai_p"
54009:
54010: fi
54011:
54012:
54013: fi
54014:
54015: fi
54016:
54017: fi
54018: else
54019:
54020:
54021: if test -n "$IBASE_LIBDIR"; then
54022:
54023: if test "$IBASE_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$IBASE_LIBDIR" != "/usr/lib"; then
54024:
54025: if test -z "$IBASE_LIBDIR" || echo "$IBASE_LIBDIR" | grep '^/' >/dev/null ; then
54026: ai_p=$IBASE_LIBDIR
54027: else
54028:
54029: ep_dir="`echo $IBASE_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
54030:
54031: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
54032: ai_p="$ep_realdir/`basename \"$IBASE_LIBDIR\"`"
54033: fi
54034:
54035:
54036:
54037:
54038:
54039: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
54040:
54041: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
54042: if test -n "$unique" && test "`eval $cmd`" = "" ; then
54043: eval "LIBPATH$unique=set"
54044:
54045: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
54046: LDFLAGS="$LDFLAGS -L$ai_p"
54047: PHP_RPATHS="$PHP_RPATHS $ai_p"
54048:
54049: fi
54050:
54051:
54052:
54053: fi
54054:
54055: fi
54056:
54057:
54058: case $IBASE_LIBNAME in
54059: c|c_r|pthread*) ;;
54060: *)
54061: LIBS="-l$IBASE_LIBNAME $LIBS"
54062: ;;
54063: esac
54064:
54065:
54066:
54067:
54068: fi
54069:
54070:
54071:
54072: if test "$IBASE_INCDIR" != "/usr/include"; then
54073:
54074: if test -z "$IBASE_INCDIR" || echo "$IBASE_INCDIR" | grep '^/' >/dev/null ; then
54075: ai_p=$IBASE_INCDIR
54076: else
54077:
54078: ep_dir="`echo $IBASE_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`"
54079:
54080: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
54081: ai_p="$ep_realdir/`basename \"$IBASE_INCDIR\"`"
54082: fi
54083:
54084:
54085:
54086: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
54087:
54088: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
54089: if test -n "$unique" && test "`eval $cmd`" = "" ; then
54090: eval "INCLUDEPATH$unique=set"
54091:
54092: if test ""; then
54093: INCLUDES="-I$ai_p $INCLUDES"
54094: else
54095: INCLUDES="$INCLUDES -I$ai_p"
54096: fi
54097:
54098: fi
54099:
54100: fi
54101:
54102:
54103: $as_echo "#define HAVE_IBASE 1" >>confdefs.h
54104:
54105:
54106: ext_builddir=ext/interbase
54107: ext_srcdir=$abs_srcdir/ext/interbase
54108:
54109: ac_extra=
54110:
54111: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
54112: PHP_INTERBASE_SHARED=no
54113:
54114:
54115: case ext/interbase in
54116: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
54117: /*) ac_srcdir=`echo "ext/interbase"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
54118: *) ac_srcdir="$abs_srcdir/ext/interbase/"; ac_bdir="ext/interbase/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
54119: esac
54120:
54121:
54122:
54123: b_c_pre=$php_c_pre
54124: b_cxx_pre=$php_cxx_pre
54125: b_c_meta=$php_c_meta
54126: b_cxx_meta=$php_cxx_meta
54127: b_c_post=$php_c_post
54128: b_cxx_post=$php_cxx_post
54129: b_lo=$php_lo
54130:
54131:
54132: old_IFS=$IFS
54133: for ac_src in interbase.c ibase_query.c ibase_service.c ibase_events.c ibase_blobs.c; do
54134:
54135: IFS=.
54136: set $ac_src
54137: ac_obj=$1
54138: IFS=$old_IFS
54139:
54140: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
54141:
54142: case $ac_src in
54143: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
54144: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
54145: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
54146: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
54147: esac
54148:
54149: cat >>Makefile.objects<<EOF
54150: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
54151: $ac_comp
54152: EOF
54153: done
54154:
54155:
54156: EXT_STATIC="$EXT_STATIC interbase"
54157: if test "$ext_shared" != "nocli"; then
54158: EXT_CLI_STATIC="$EXT_CLI_STATIC interbase"
54159: fi
54160: else
54161: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
54162: PHP_INTERBASE_SHARED=yes
54163:
54164: case ext/interbase in
54165: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
54166: /*) ac_srcdir=`echo "ext/interbase"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
54167: *) ac_srcdir="$abs_srcdir/ext/interbase/"; ac_bdir="ext/interbase/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
54168: esac
54169:
54170:
54171:
54172: b_c_pre=$shared_c_pre
54173: b_cxx_pre=$shared_cxx_pre
54174: b_c_meta=$shared_c_meta
54175: b_cxx_meta=$shared_cxx_meta
54176: b_c_post=$shared_c_post
54177: b_cxx_post=$shared_cxx_post
54178: b_lo=$shared_lo
54179:
54180:
54181: old_IFS=$IFS
54182: for ac_src in interbase.c ibase_query.c ibase_service.c ibase_events.c ibase_blobs.c; do
54183:
54184: IFS=.
54185: set $ac_src
54186: ac_obj=$1
54187: IFS=$old_IFS
54188:
54189: shared_objects_interbase="$shared_objects_interbase $ac_bdir$ac_obj.lo"
54190:
54191: case $ac_src in
54192: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
54193: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
54194: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
54195: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
54196: esac
54197:
54198: cat >>Makefile.objects<<EOF
54199: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
54200: $ac_comp
54201: EOF
54202: done
54203:
54204: case $host_alias in
54205: *netware*)
54206:
54207: install_modules="install-modules"
54208:
54209: case $host_alias in
54210: *aix*)
54211: suffix=so
54212: 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'
54213: ;;
54214: *netware*)
54215: suffix=nlm
54216: link_cmd='$(LIBTOOL) --mode=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)'
54217: ;;
54218: *)
54219: suffix=la
54220: link_cmd='$(LIBTOOL) --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)'
54221: ;;
54222: esac
54223:
54224: if test "x" = "xyes"; then
54225: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpinterbase.$suffix"
54226: else
54227: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpinterbase.$suffix"
54228: fi
54229:
54230: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_interbase"
54231:
54232: cat >>Makefile.objects<<EOF
54233: \$(phplibdir)/phpinterbase.$suffix: $ext_builddir/phpinterbase.$suffix
54234: \$(LIBTOOL) --mode=install cp $ext_builddir/phpinterbase.$suffix \$(phplibdir)
54235:
54236: $ext_builddir/phpinterbase.$suffix: \$(shared_objects_interbase) \$(PHPINTERBASE_SHARED_DEPENDENCIES)
54237: $link_cmd
54238:
54239: EOF
54240:
54241: ;;
54242: *)
54243:
54244: install_modules="install-modules"
54245:
54246: case $host_alias in
54247: *aix*)
54248: suffix=so
54249: 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'
54250: ;;
54251: *netware*)
54252: suffix=nlm
54253: link_cmd='$(LIBTOOL) --mode=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)'
54254: ;;
54255: *)
54256: suffix=la
54257: link_cmd='$(LIBTOOL) --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)'
54258: ;;
54259: esac
54260:
54261: if test "x" = "xyes"; then
54262: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/interbase.$suffix"
54263: else
54264: PHP_MODULES="$PHP_MODULES \$(phplibdir)/interbase.$suffix"
54265: fi
54266:
54267: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_interbase"
54268:
54269: cat >>Makefile.objects<<EOF
54270: \$(phplibdir)/interbase.$suffix: $ext_builddir/interbase.$suffix
54271: \$(LIBTOOL) --mode=install cp $ext_builddir/interbase.$suffix \$(phplibdir)
54272:
54273: $ext_builddir/interbase.$suffix: \$(shared_objects_interbase) \$(INTERBASE_SHARED_DEPENDENCIES)
54274: $link_cmd
54275:
54276: EOF
54277:
54278: ;;
54279: esac
54280:
54281: cat >>confdefs.h <<_ACEOF
54282: #define COMPILE_DL_INTERBASE 1
54283: _ACEOF
54284:
54285: fi
54286: fi
54287:
54288: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
54289: PHP_INTERBASE_SHARED=no
54290:
54291:
54292: case ext/interbase in
54293: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
54294: /*) ac_srcdir=`echo "ext/interbase"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
54295: *) ac_srcdir="$abs_srcdir/ext/interbase/"; ac_bdir="ext/interbase/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
54296: esac
54297:
54298:
54299:
54300: b_c_pre=$php_c_pre
54301: b_cxx_pre=$php_cxx_pre
54302: b_c_meta=$php_c_meta
54303: b_cxx_meta=$php_cxx_meta
54304: b_c_post=$php_c_post
54305: b_cxx_post=$php_cxx_post
54306: b_lo=$php_lo
54307:
54308:
54309: old_IFS=$IFS
54310: for ac_src in interbase.c ibase_query.c ibase_service.c ibase_events.c ibase_blobs.c; do
54311:
54312: IFS=.
54313: set $ac_src
54314: ac_obj=$1
54315: IFS=$old_IFS
54316:
54317: PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
54318:
54319: case $ac_src in
54320: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
54321: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
54322: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
54323: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
54324: esac
54325:
54326: cat >>Makefile.objects<<EOF
54327: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
54328: $ac_comp
54329: EOF
54330: done
54331:
54332:
54333:
54334:
54335: case ext/interbase in
54336: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
54337: /*) ac_srcdir=`echo "ext/interbase"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
54338: *) ac_srcdir="$abs_srcdir/ext/interbase/"; ac_bdir="ext/interbase/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
54339: esac
54340:
54341:
54342:
54343: b_c_pre=$php_c_pre
54344: b_cxx_pre=$php_cxx_pre
54345: b_c_meta=$php_c_meta
54346: b_cxx_meta=$php_cxx_meta
54347: b_c_post=$php_c_post
54348: b_cxx_post=$php_cxx_post
54349: b_lo=$php_lo
54350:
54351:
54352: old_IFS=$IFS
54353: for ac_src in interbase.c ibase_query.c ibase_service.c ibase_events.c ibase_blobs.c; do
54354:
54355: IFS=.
54356: set $ac_src
54357: ac_obj=$1
54358: IFS=$old_IFS
54359:
54360: PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo"
54361:
54362: case $ac_src in
54363: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
54364: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
54365: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
54366: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
54367: esac
54368:
54369: cat >>Makefile.objects<<EOF
54370: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
54371: $ac_comp
54372: EOF
54373: done
54374:
54375:
54376:
54377:
54378: case ext/interbase in
54379: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
54380: /*) ac_srcdir=`echo "ext/interbase"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
54381: *) ac_srcdir="$abs_srcdir/ext/interbase/"; ac_bdir="ext/interbase/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
54382: esac
54383:
54384:
54385:
54386: b_c_pre=$php_c_pre
54387: b_cxx_pre=$php_cxx_pre
54388: b_c_meta=$php_c_meta
54389: b_cxx_meta=$php_cxx_meta
54390: b_c_post=$php_c_post
54391: b_cxx_post=$php_cxx_post
54392: b_lo=$php_lo
54393:
54394:
54395: old_IFS=$IFS
54396: for ac_src in interbase.c ibase_query.c ibase_service.c ibase_events.c ibase_blobs.c; do
54397:
54398: IFS=.
54399: set $ac_src
54400: ac_obj=$1
54401: IFS=$old_IFS
54402:
54403: PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo"
54404:
54405: case $ac_src in
54406: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
54407: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
54408: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
54409: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
54410: esac
54411:
54412: cat >>Makefile.objects<<EOF
54413: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
54414: $ac_comp
54415: EOF
54416: done
54417:
54418:
54419: EXT_CLI_STATIC="$EXT_CLI_STATIC interbase"
54420: fi
54421:
54422:
54423: BUILD_DIR="$BUILD_DIR $ext_builddir"
54424:
54425:
54426:
54427: if test "$ext_builddir" = "."; then
54428: PHP_PECL_EXTENSION=interbase
54429:
54430: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
54431:
54432: fi
54433:
54434:
54435: PHP_VAR_SUBST="$PHP_VAR_SUBST INTERBASE_SHARED_LIBADD"
54436:
54437: fi
54438:
54439:
54440:
54441: php_enable_intl=no
54442:
54443: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable internationalization support" >&5
54444: $as_echo_n "checking whether to enable internationalization support... " >&6; }
54445: # Check whether --enable-intl was given.
54446: if test "${enable_intl+set}" = set; then :
54447: enableval=$enable_intl; PHP_INTL=$enableval
54448: else
54449:
54450: PHP_INTL=no
54451: test "$PHP_ENABLE_ALL" && PHP_INTL=$PHP_ENABLE_ALL
54452:
54453: fi
54454:
54455:
54456:
54457: ext_output="yes, shared"
54458: ext_shared=yes
54459: case $PHP_INTL in
54460: shared,*)
54461: PHP_INTL=`echo "$PHP_INTL"|$SED 's/^shared,//'`
54462: ;;
54463: shared)
54464: PHP_INTL=yes
54465: ;;
54466: no)
54467: ext_output=no
54468: ext_shared=no
54469: ;;
54470: *)
54471: ext_output=yes
54472: ext_shared=no
54473: ;;
54474: esac
54475:
54476:
54477:
54478: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
54479: $as_echo "$ext_output" >&6; }
54480:
54481:
54482:
54483:
54484: if test "$PHP_INTL" != "no"; then
54485:
54486:
54487: php_with_icu_dir=DEFAULT
54488:
54489:
54490:
54491: # Check whether --with-icu-dir was given.
54492: if test "${with_icu_dir+set}" = set; then :
54493: withval=$with_icu_dir; PHP_ICU_DIR=$withval
54494: else
54495:
54496: PHP_ICU_DIR=DEFAULT
54497:
54498:
54499: fi
54500:
54501:
54502: ext_output=$PHP_ICU_DIR
54503:
54504:
54505:
54506:
54507:
54508: if test "$PHP_ICU_DIR" = "no"; then
54509: PHP_ICU_DIR=DEFAULT
54510: fi
54511:
54512: if test "$PHP_ICU_DIR" = "DEFAULT"; then
54513: # Extract the first word of "icu-config", so it can be a program name with args.
54514: set dummy icu-config; ac_word=$2
54515: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
54516: $as_echo_n "checking for $ac_word... " >&6; }
54517: if ${ac_cv_path_ICU_CONFIG+:} false; then :
54518: $as_echo_n "(cached) " >&6
54519: else
54520: case $ICU_CONFIG in
54521: [\\/]* | ?:[\\/]*)
54522: ac_cv_path_ICU_CONFIG="$ICU_CONFIG" # Let the user override the test with a path.
54523: ;;
54524: *)
54525: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
54526: as_dummy="$PATH:/usr/local/bin"
54527: for as_dir in $as_dummy
54528: do
54529: IFS=$as_save_IFS
54530: test -z "$as_dir" && as_dir=.
54531: for ac_exec_ext in '' $ac_executable_extensions; do
54532: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
54533: ac_cv_path_ICU_CONFIG="$as_dir/$ac_word$ac_exec_ext"
54534: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
54535: break 2
54536: fi
54537: done
54538: done
54539: IFS=$as_save_IFS
54540:
54541: test -z "$ac_cv_path_ICU_CONFIG" && ac_cv_path_ICU_CONFIG="no"
54542: ;;
54543: esac
54544: fi
54545: ICU_CONFIG=$ac_cv_path_ICU_CONFIG
54546: if test -n "$ICU_CONFIG"; then
54547: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICU_CONFIG" >&5
54548: $as_echo "$ICU_CONFIG" >&6; }
54549: else
54550: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54551: $as_echo "no" >&6; }
54552: fi
54553:
54554:
54555: else
54556: ICU_CONFIG="$PHP_ICU_DIR/bin/icu-config"
54557: fi
54558:
54559: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of ICU headers and libraries" >&5
54560: $as_echo_n "checking for location of ICU headers and libraries... " >&6; }
54561:
54562: icu_install_prefix=`$ICU_CONFIG --prefix 2> /dev/null`
54563: if test "$?" != "0" || test -z "$icu_install_prefix"; then
54564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
54565: $as_echo "not found" >&6; }
54566: 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
54567: else
54568: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $icu_install_prefix" >&5
54569: $as_echo "$icu_install_prefix" >&6; }
54570:
54571: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU 3.4 or greater" >&5
54572: $as_echo_n "checking for ICU 3.4 or greater... " >&6; }
54573: icu_version_full=`$ICU_CONFIG --version`
54574: ac_IFS=$IFS
54575: IFS="."
54576: set $icu_version_full
54577: IFS=$ac_IFS
54578: icu_version=`expr $1 \* 1000 + $2`
54579: { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $icu_version_full" >&5
54580: $as_echo "found $icu_version_full" >&6; }
54581:
54582: if test "$icu_version" -lt "3004"; then
54583: as_fn_error $? "ICU version 3.4 or later is required" "$LINENO" 5
54584: fi
54585:
54586: ICU_VERSION=$icu_version
54587: ICU_INCS=`$ICU_CONFIG --cppflags-searchpath`
54588: ICU_LIBS=`$ICU_CONFIG --ldflags --ldflags-icuio`
54589:
54590: for ac_i in $ICU_INCS; do
54591: case $ac_i in
54592: -I*)
54593: ac_ii=`echo $ac_i|cut -c 3-`
54594:
54595: if test "$ac_ii" != "/usr/include"; then
54596:
54597: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
54598: ai_p=$ac_ii
54599: else
54600:
54601: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
54602:
54603: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
54604: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
54605: fi
54606:
54607:
54608:
54609: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
54610:
54611: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
54612: if test -n "$unique" && test "`eval $cmd`" = "" ; then
54613: eval "INCLUDEPATH$unique=set"
54614:
54615: if test ""; then
54616: INCLUDES="-I$ai_p $INCLUDES"
54617: else
54618: INCLUDES="$INCLUDES -I$ai_p"
54619: fi
54620:
54621: fi
54622:
54623: fi
54624:
54625: ;;
54626: esac
54627: done
54628:
54629:
54630: for ac_i in $ICU_LIBS; do
54631: case $ac_i in
54632: -pthread)
54633: if test "$ext_shared" = "yes"; then
54634: INTL_SHARED_LIBADD="$INTL_SHARED_LIBADD -pthread"
54635: else
54636:
54637:
54638: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
54639:
54640: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
54641: if test -n "$unique" && test "`eval $cmd`" = "" ; then
54642: eval "EXTRA_LDFLAGS$unique=set"
54643: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
54644: fi
54645:
54646: fi
54647: ;;
54648: -l*)
54649: ac_ii=`echo $ac_i|cut -c 3-`
54650:
54651:
54652: case $ac_ii in
54653: c|c_r|pthread*) ;;
54654: *)
54655: if test "$ext_shared" = "yes"; then
54656: INTL_SHARED_LIBADD="$INTL_SHARED_LIBADD -l$ac_ii"
54657: else
54658:
54659:
54660: case $ac_ii in
54661: c|c_r|pthread*) ;;
54662: *)
54663: LIBS="$LIBS -l$ac_ii"
54664: ;;
54665: esac
54666:
54667:
54668: fi
54669: ;;
54670: esac
54671:
54672:
54673: ;;
54674: -L*)
54675: ac_ii=`echo $ac_i|cut -c 3-`
54676:
54677: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
54678:
54679: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
54680: ai_p=$ac_ii
54681: else
54682:
54683: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
54684:
54685: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
54686: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
54687: fi
54688:
54689:
54690: if test "$ext_shared" = "yes"; then
54691: INTL_SHARED_LIBADD="-L$ai_p $INTL_SHARED_LIBADD"
54692: test -n "$ld_runpath_switch" && INTL_SHARED_LIBADD="$ld_runpath_switch$ai_p $INTL_SHARED_LIBADD"
54693: else
54694:
54695:
54696:
54697: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
54698:
54699: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
54700: if test -n "$unique" && test "`eval $cmd`" = "" ; then
54701: eval "LIBPATH$unique=set"
54702:
54703: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
54704: LDFLAGS="$LDFLAGS -L$ai_p"
54705: PHP_RPATHS="$PHP_RPATHS $ai_p"
54706:
54707: fi
54708:
54709:
54710: fi
54711:
54712: fi
54713:
54714: ;;
54715: esac
54716: done
54717:
54718: fi
54719:
54720:
54721: PHP_VAR_SUBST="$PHP_VAR_SUBST INTL_SHARED_LIBADD"
54722:
54723:
54724: if test -z "$php_cxx_done"; then
54725: ac_ext=cpp
54726: ac_cpp='$CXXCPP $CPPFLAGS'
54727: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
54728: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
54729: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
54730: if test -z "$CXX"; then
54731: if test -n "$CCC"; then
54732: CXX=$CCC
54733: else
54734: if test -n "$ac_tool_prefix"; then
54735: for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
54736: do
54737: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
54738: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
54739: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
54740: $as_echo_n "checking for $ac_word... " >&6; }
54741: if ${ac_cv_prog_CXX+:} false; then :
54742: $as_echo_n "(cached) " >&6
54743: else
54744: if test -n "$CXX"; then
54745: ac_cv_prog_CXX="$CXX" # Let the user override the test.
54746: else
54747: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
54748: for as_dir in $PATH
54749: do
54750: IFS=$as_save_IFS
54751: test -z "$as_dir" && as_dir=.
54752: for ac_exec_ext in '' $ac_executable_extensions; do
54753: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
54754: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
54755: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
54756: break 2
54757: fi
54758: done
54759: done
54760: IFS=$as_save_IFS
54761:
54762: fi
54763: fi
54764: CXX=$ac_cv_prog_CXX
54765: if test -n "$CXX"; then
54766: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
54767: $as_echo "$CXX" >&6; }
54768: else
54769: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54770: $as_echo "no" >&6; }
54771: fi
54772:
54773:
54774: test -n "$CXX" && break
54775: done
54776: fi
54777: if test -z "$CXX"; then
54778: ac_ct_CXX=$CXX
54779: for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
54780: do
54781: # Extract the first word of "$ac_prog", so it can be a program name with args.
54782: set dummy $ac_prog; ac_word=$2
54783: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
54784: $as_echo_n "checking for $ac_word... " >&6; }
54785: if ${ac_cv_prog_ac_ct_CXX+:} false; then :
54786: $as_echo_n "(cached) " >&6
54787: else
54788: if test -n "$ac_ct_CXX"; then
54789: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
54790: else
54791: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
54792: for as_dir in $PATH
54793: do
54794: IFS=$as_save_IFS
54795: test -z "$as_dir" && as_dir=.
54796: for ac_exec_ext in '' $ac_executable_extensions; do
54797: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
54798: ac_cv_prog_ac_ct_CXX="$ac_prog"
54799: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
54800: break 2
54801: fi
54802: done
54803: done
54804: IFS=$as_save_IFS
54805:
54806: fi
54807: fi
54808: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
54809: if test -n "$ac_ct_CXX"; then
54810: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
54811: $as_echo "$ac_ct_CXX" >&6; }
54812: else
54813: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54814: $as_echo "no" >&6; }
54815: fi
54816:
54817:
54818: test -n "$ac_ct_CXX" && break
54819: done
54820:
54821: if test "x$ac_ct_CXX" = x; then
54822: CXX="g++"
54823: else
54824: case $cross_compiling:$ac_tool_warned in
54825: yes:)
54826: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
54827: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
54828: ac_tool_warned=yes ;;
54829: esac
54830: CXX=$ac_ct_CXX
54831: fi
54832: fi
54833:
54834: fi
54835: fi
54836: # Provide some information about the compiler.
54837: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
54838: set X $ac_compile
54839: ac_compiler=$2
54840: for ac_option in --version -v -V -qversion; do
54841: { { ac_try="$ac_compiler $ac_option >&5"
54842: case "(($ac_try" in
54843: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54844: *) ac_try_echo=$ac_try;;
54845: esac
54846: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
54847: $as_echo "$ac_try_echo"; } >&5
54848: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
54849: ac_status=$?
54850: if test -s conftest.err; then
54851: sed '10a\
54852: ... rest of stderr output deleted ...
54853: 10q' conftest.err >conftest.er1
54854: cat conftest.er1 >&5
54855: fi
54856: rm -f conftest.er1 conftest.err
54857: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
54858: test $ac_status = 0; }
54859: done
54860:
54861: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
54862: $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
54863: if ${ac_cv_cxx_compiler_gnu+:} false; then :
54864: $as_echo_n "(cached) " >&6
54865: else
54866: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54867: /* end confdefs.h. */
54868:
54869: int
54870: main ()
54871: {
54872: #ifndef __GNUC__
54873: choke me
54874: #endif
54875:
54876: ;
54877: return 0;
54878: }
54879: _ACEOF
54880: if ac_fn_cxx_try_compile "$LINENO"; then :
54881: ac_compiler_gnu=yes
54882: else
54883: ac_compiler_gnu=no
54884: fi
54885: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54886: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
54887:
54888: fi
54889: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
54890: $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
54891: if test $ac_compiler_gnu = yes; then
54892: GXX=yes
54893: else
54894: GXX=
54895: fi
54896: ac_test_CXXFLAGS=${CXXFLAGS+set}
54897: ac_save_CXXFLAGS=$CXXFLAGS
54898: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
54899: $as_echo_n "checking whether $CXX accepts -g... " >&6; }
54900: if ${ac_cv_prog_cxx_g+:} false; then :
54901: $as_echo_n "(cached) " >&6
54902: else
54903: ac_save_cxx_werror_flag=$ac_cxx_werror_flag
54904: ac_cxx_werror_flag=yes
54905: ac_cv_prog_cxx_g=no
54906: CXXFLAGS="-g"
54907: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54908: /* end confdefs.h. */
54909:
54910: int
54911: main ()
54912: {
54913:
54914: ;
54915: return 0;
54916: }
54917: _ACEOF
54918: if ac_fn_cxx_try_compile "$LINENO"; then :
54919: ac_cv_prog_cxx_g=yes
54920: else
54921: CXXFLAGS=""
54922: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54923: /* end confdefs.h. */
54924:
54925: int
54926: main ()
54927: {
54928:
54929: ;
54930: return 0;
54931: }
54932: _ACEOF
54933: if ac_fn_cxx_try_compile "$LINENO"; then :
54934:
54935: else
54936: ac_cxx_werror_flag=$ac_save_cxx_werror_flag
54937: CXXFLAGS="-g"
54938: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54939: /* end confdefs.h. */
54940:
54941: int
54942: main ()
54943: {
54944:
54945: ;
54946: return 0;
54947: }
54948: _ACEOF
54949: if ac_fn_cxx_try_compile "$LINENO"; then :
54950: ac_cv_prog_cxx_g=yes
54951: fi
54952: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54953: fi
54954: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54955: fi
54956: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54957: ac_cxx_werror_flag=$ac_save_cxx_werror_flag
54958: fi
54959: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
54960: $as_echo "$ac_cv_prog_cxx_g" >&6; }
54961: if test "$ac_test_CXXFLAGS" = set; then
54962: CXXFLAGS=$ac_save_CXXFLAGS
54963: elif test $ac_cv_prog_cxx_g = yes; then
54964: if test "$GXX" = yes; then
54965: CXXFLAGS="-g -O2"
54966: else
54967: CXXFLAGS="-g"
54968: fi
54969: else
54970: if test "$GXX" = yes; then
54971: CXXFLAGS="-O2"
54972: else
54973: CXXFLAGS=
54974: fi
54975: fi
54976: ac_ext=c
54977: ac_cpp='$CPP $CPPFLAGS'
54978: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
54979: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
54980: ac_compiler_gnu=$ac_cv_c_compiler_gnu
54981:
54982: ac_ext=cpp
54983: ac_cpp='$CXXCPP $CPPFLAGS'
54984: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
54985: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
54986: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
54987: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
54988: $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
54989: if test -z "$CXXCPP"; then
54990: if ${ac_cv_prog_CXXCPP+:} false; then :
54991: $as_echo_n "(cached) " >&6
54992: else
54993: # Double quotes because CXXCPP needs to be expanded
54994: for CXXCPP in "$CXX -E" "/lib/cpp"
54995: do
54996: ac_preproc_ok=false
54997: for ac_cxx_preproc_warn_flag in '' yes
54998: do
54999: # Use a header file that comes with gcc, so configuring glibc
55000: # with a fresh cross-compiler works.
55001: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55002: # <limits.h> exists even on freestanding compilers.
55003: # On the NeXT, cc -E runs the code through the compiler's parser,
55004: # not just through cpp. "Syntax error" is here to catch this case.
55005: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55006: /* end confdefs.h. */
55007: #ifdef __STDC__
55008: # include <limits.h>
55009: #else
55010: # include <assert.h>
55011: #endif
55012: Syntax error
55013: _ACEOF
55014: if ac_fn_cxx_try_cpp "$LINENO"; then :
55015:
55016: else
55017: # Broken: fails on valid input.
55018: continue
55019: fi
55020: rm -f conftest.err conftest.i conftest.$ac_ext
55021:
55022: # OK, works on sane cases. Now check whether nonexistent headers
55023: # can be detected and how.
55024: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55025: /* end confdefs.h. */
55026: #include <ac_nonexistent.h>
55027: _ACEOF
55028: if ac_fn_cxx_try_cpp "$LINENO"; then :
55029: # Broken: success on invalid input.
55030: continue
55031: else
55032: # Passes both tests.
55033: ac_preproc_ok=:
55034: break
55035: fi
55036: rm -f conftest.err conftest.i conftest.$ac_ext
55037:
55038: done
55039: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
55040: rm -f conftest.i conftest.err conftest.$ac_ext
55041: if $ac_preproc_ok; then :
55042: break
55043: fi
55044:
55045: done
55046: ac_cv_prog_CXXCPP=$CXXCPP
55047:
55048: fi
55049: CXXCPP=$ac_cv_prog_CXXCPP
55050: else
55051: ac_cv_prog_CXXCPP=$CXXCPP
55052: fi
55053: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
55054: $as_echo "$CXXCPP" >&6; }
55055: ac_preproc_ok=false
55056: for ac_cxx_preproc_warn_flag in '' yes
55057: do
55058: # Use a header file that comes with gcc, so configuring glibc
55059: # with a fresh cross-compiler works.
55060: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55061: # <limits.h> exists even on freestanding compilers.
55062: # On the NeXT, cc -E runs the code through the compiler's parser,
55063: # not just through cpp. "Syntax error" is here to catch this case.
55064: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55065: /* end confdefs.h. */
55066: #ifdef __STDC__
55067: # include <limits.h>
55068: #else
55069: # include <assert.h>
55070: #endif
55071: Syntax error
55072: _ACEOF
55073: if ac_fn_cxx_try_cpp "$LINENO"; then :
55074:
55075: else
55076: # Broken: fails on valid input.
55077: continue
55078: fi
55079: rm -f conftest.err conftest.i conftest.$ac_ext
55080:
55081: # OK, works on sane cases. Now check whether nonexistent headers
55082: # can be detected and how.
55083: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55084: /* end confdefs.h. */
55085: #include <ac_nonexistent.h>
55086: _ACEOF
55087: if ac_fn_cxx_try_cpp "$LINENO"; then :
55088: # Broken: success on invalid input.
55089: continue
55090: else
55091: # Passes both tests.
55092: ac_preproc_ok=:
55093: break
55094: fi
55095: rm -f conftest.err conftest.i conftest.$ac_ext
55096:
55097: done
55098: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
55099: rm -f conftest.i conftest.err conftest.$ac_ext
55100: if $ac_preproc_ok; then :
55101:
55102: else
55103: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
55104: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
55105: as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
55106: See \`config.log' for more details" "$LINENO" 5; }
55107: fi
55108:
55109: ac_ext=c
55110: ac_cpp='$CPP $CPPFLAGS'
55111: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
55112: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
55113: ac_compiler_gnu=$ac_cv_c_compiler_gnu
55114:
55115: php_cxx_done=yes
55116: fi
55117:
55118:
55119:
55120: ext_builddir=ext/intl
55121: ext_srcdir=$abs_srcdir/ext/intl
55122:
55123: ac_extra=`echo "$ICU_INCS"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
55124:
55125: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
55126: PHP_INTL_SHARED=no
55127:
55128:
55129: case ext/intl in
55130: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
55131: /*) ac_srcdir=`echo "ext/intl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
55132: *) ac_srcdir="$abs_srcdir/ext/intl/"; ac_bdir="ext/intl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
55133: esac
55134:
55135:
55136:
55137: b_c_pre=$php_c_pre
55138: b_cxx_pre=$php_cxx_pre
55139: b_c_meta=$php_c_meta
55140: b_cxx_meta=$php_cxx_meta
55141: b_c_post=$php_c_post
55142: b_cxx_post=$php_cxx_post
55143: b_lo=$php_lo
55144:
55145:
55146: old_IFS=$IFS
55147: for ac_src in php_intl.c \
55148: intl_error.c \
55149: intl_convert.c \
55150: collator/collator.c \
55151: collator/collator_class.c \
55152: collator/collator_sort.c \
55153: collator/collator_convert.c \
55154: collator/collator_locale.c \
55155: collator/collator_compare.c \
55156: collator/collator_attr.c \
55157: collator/collator_create.c \
55158: collator/collator_is_numeric.c \
55159: collator/collator_error.c \
55160: common/common_error.c \
55161: formatter/formatter.c \
55162: formatter/formatter_main.c \
55163: formatter/formatter_class.c \
55164: formatter/formatter_attr.c \
55165: formatter/formatter_data.c \
55166: formatter/formatter_format.c \
55167: formatter/formatter_parse.c \
55168: normalizer/normalizer.c \
55169: normalizer/normalizer_class.c \
55170: normalizer/normalizer_normalize.c \
55171: locale/locale.c \
55172: locale/locale_class.c \
55173: locale/locale_methods.c \
55174: dateformat/dateformat.c \
55175: dateformat/dateformat_class.c \
55176: dateformat/dateformat_attr.c \
55177: dateformat/dateformat_data.c \
55178: dateformat/dateformat_format.c \
55179: dateformat/dateformat_parse.c \
55180: msgformat/msgformat.c \
55181: msgformat/msgformat_attr.c \
55182: msgformat/msgformat_class.c \
55183: msgformat/msgformat_data.c \
55184: msgformat/msgformat_format.c \
55185: msgformat/msgformat_helpers.cpp \
55186: msgformat/msgformat_parse.c \
55187: grapheme/grapheme_string.c \
55188: grapheme/grapheme_util.c \
55189: resourcebundle/resourcebundle.c \
55190: resourcebundle/resourcebundle_class.c \
55191: resourcebundle/resourcebundle_iterator.c \
55192: idn/idn.c; do
55193:
55194: IFS=.
55195: set $ac_src
55196: ac_obj=$1
55197: IFS=$old_IFS
55198:
55199: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
55200:
55201: case $ac_src in
55202: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
55203: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
55204: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
55205: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
55206: esac
55207:
55208: cat >>Makefile.objects<<EOF
55209: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
55210: $ac_comp
55211: EOF
55212: done
55213:
55214:
55215: EXT_STATIC="$EXT_STATIC intl"
55216: if test "$ext_shared" != "nocli"; then
55217: EXT_CLI_STATIC="$EXT_CLI_STATIC intl"
55218: fi
55219: else
55220: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
55221: PHP_INTL_SHARED=yes
55222:
55223: case ext/intl in
55224: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
55225: /*) ac_srcdir=`echo "ext/intl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
55226: *) ac_srcdir="$abs_srcdir/ext/intl/"; ac_bdir="ext/intl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
55227: esac
55228:
55229:
55230:
55231: b_c_pre=$shared_c_pre
55232: b_cxx_pre=$shared_cxx_pre
55233: b_c_meta=$shared_c_meta
55234: b_cxx_meta=$shared_cxx_meta
55235: b_c_post=$shared_c_post
55236: b_cxx_post=$shared_cxx_post
55237: b_lo=$shared_lo
55238:
55239:
55240: old_IFS=$IFS
55241: for ac_src in php_intl.c \
55242: intl_error.c \
55243: intl_convert.c \
55244: collator/collator.c \
55245: collator/collator_class.c \
55246: collator/collator_sort.c \
55247: collator/collator_convert.c \
55248: collator/collator_locale.c \
55249: collator/collator_compare.c \
55250: collator/collator_attr.c \
55251: collator/collator_create.c \
55252: collator/collator_is_numeric.c \
55253: collator/collator_error.c \
55254: common/common_error.c \
55255: formatter/formatter.c \
55256: formatter/formatter_main.c \
55257: formatter/formatter_class.c \
55258: formatter/formatter_attr.c \
55259: formatter/formatter_data.c \
55260: formatter/formatter_format.c \
55261: formatter/formatter_parse.c \
55262: normalizer/normalizer.c \
55263: normalizer/normalizer_class.c \
55264: normalizer/normalizer_normalize.c \
55265: locale/locale.c \
55266: locale/locale_class.c \
55267: locale/locale_methods.c \
55268: dateformat/dateformat.c \
55269: dateformat/dateformat_class.c \
55270: dateformat/dateformat_attr.c \
55271: dateformat/dateformat_data.c \
55272: dateformat/dateformat_format.c \
55273: dateformat/dateformat_parse.c \
55274: msgformat/msgformat.c \
55275: msgformat/msgformat_attr.c \
55276: msgformat/msgformat_class.c \
55277: msgformat/msgformat_data.c \
55278: msgformat/msgformat_format.c \
55279: msgformat/msgformat_helpers.cpp \
55280: msgformat/msgformat_parse.c \
55281: grapheme/grapheme_string.c \
55282: grapheme/grapheme_util.c \
55283: resourcebundle/resourcebundle.c \
55284: resourcebundle/resourcebundle_class.c \
55285: resourcebundle/resourcebundle_iterator.c \
55286: idn/idn.c; do
55287:
55288: IFS=.
55289: set $ac_src
55290: ac_obj=$1
55291: IFS=$old_IFS
55292:
55293: shared_objects_intl="$shared_objects_intl $ac_bdir$ac_obj.lo"
55294:
55295: case $ac_src in
55296: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
55297: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
55298: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
55299: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
55300: esac
55301:
55302: cat >>Makefile.objects<<EOF
55303: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
55304: $ac_comp
55305: EOF
55306: done
55307:
55308: case $host_alias in
55309: *netware*)
55310:
55311: install_modules="install-modules"
55312:
55313: case $host_alias in
55314: *aix*)
55315: suffix=so
55316: 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'
55317: ;;
55318: *netware*)
55319: suffix=nlm
55320: link_cmd='$(LIBTOOL) --mode=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)'
55321: ;;
55322: *)
55323: suffix=la
55324: link_cmd='$(LIBTOOL) --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)'
55325: ;;
55326: esac
55327:
55328: if test "x" = "xyes"; then
55329: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpintl.$suffix"
55330: else
55331: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpintl.$suffix"
55332: fi
55333:
55334: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_intl"
55335:
55336: cat >>Makefile.objects<<EOF
55337: \$(phplibdir)/phpintl.$suffix: $ext_builddir/phpintl.$suffix
55338: \$(LIBTOOL) --mode=install cp $ext_builddir/phpintl.$suffix \$(phplibdir)
55339:
55340: $ext_builddir/phpintl.$suffix: \$(shared_objects_intl) \$(PHPINTL_SHARED_DEPENDENCIES)
55341: $link_cmd
55342:
55343: EOF
55344:
55345: ;;
55346: *)
55347:
55348: install_modules="install-modules"
55349:
55350: case $host_alias in
55351: *aix*)
55352: suffix=so
55353: 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'
55354: ;;
55355: *netware*)
55356: suffix=nlm
55357: link_cmd='$(LIBTOOL) --mode=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)'
55358: ;;
55359: *)
55360: suffix=la
55361: link_cmd='$(LIBTOOL) --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)'
55362: ;;
55363: esac
55364:
55365: if test "x" = "xyes"; then
55366: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/intl.$suffix"
55367: else
55368: PHP_MODULES="$PHP_MODULES \$(phplibdir)/intl.$suffix"
55369: fi
55370:
55371: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_intl"
55372:
55373: cat >>Makefile.objects<<EOF
55374: \$(phplibdir)/intl.$suffix: $ext_builddir/intl.$suffix
55375: \$(LIBTOOL) --mode=install cp $ext_builddir/intl.$suffix \$(phplibdir)
55376:
55377: $ext_builddir/intl.$suffix: \$(shared_objects_intl) \$(INTL_SHARED_DEPENDENCIES)
55378: $link_cmd
55379:
55380: EOF
55381:
55382: ;;
55383: esac
55384:
55385: cat >>confdefs.h <<_ACEOF
55386: #define COMPILE_DL_INTL 1
55387: _ACEOF
55388:
55389: fi
55390: fi
55391:
55392: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
55393: PHP_INTL_SHARED=no
55394:
55395:
55396: case ext/intl in
55397: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
55398: /*) ac_srcdir=`echo "ext/intl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
55399: *) ac_srcdir="$abs_srcdir/ext/intl/"; ac_bdir="ext/intl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
55400: esac
55401:
55402:
55403:
55404: b_c_pre=$php_c_pre
55405: b_cxx_pre=$php_cxx_pre
55406: b_c_meta=$php_c_meta
55407: b_cxx_meta=$php_cxx_meta
55408: b_c_post=$php_c_post
55409: b_cxx_post=$php_cxx_post
55410: b_lo=$php_lo
55411:
55412:
55413: old_IFS=$IFS
55414: for ac_src in php_intl.c \
55415: intl_error.c \
55416: intl_convert.c \
55417: collator/collator.c \
55418: collator/collator_class.c \
55419: collator/collator_sort.c \
55420: collator/collator_convert.c \
55421: collator/collator_locale.c \
55422: collator/collator_compare.c \
55423: collator/collator_attr.c \
55424: collator/collator_create.c \
55425: collator/collator_is_numeric.c \
55426: collator/collator_error.c \
55427: common/common_error.c \
55428: formatter/formatter.c \
55429: formatter/formatter_main.c \
55430: formatter/formatter_class.c \
55431: formatter/formatter_attr.c \
55432: formatter/formatter_data.c \
55433: formatter/formatter_format.c \
55434: formatter/formatter_parse.c \
55435: normalizer/normalizer.c \
55436: normalizer/normalizer_class.c \
55437: normalizer/normalizer_normalize.c \
55438: locale/locale.c \
55439: locale/locale_class.c \
55440: locale/locale_methods.c \
55441: dateformat/dateformat.c \
55442: dateformat/dateformat_class.c \
55443: dateformat/dateformat_attr.c \
55444: dateformat/dateformat_data.c \
55445: dateformat/dateformat_format.c \
55446: dateformat/dateformat_parse.c \
55447: msgformat/msgformat.c \
55448: msgformat/msgformat_attr.c \
55449: msgformat/msgformat_class.c \
55450: msgformat/msgformat_data.c \
55451: msgformat/msgformat_format.c \
55452: msgformat/msgformat_helpers.cpp \
55453: msgformat/msgformat_parse.c \
55454: grapheme/grapheme_string.c \
55455: grapheme/grapheme_util.c \
55456: resourcebundle/resourcebundle.c \
55457: resourcebundle/resourcebundle_class.c \
55458: resourcebundle/resourcebundle_iterator.c \
55459: idn/idn.c; do
55460:
55461: IFS=.
55462: set $ac_src
55463: ac_obj=$1
55464: IFS=$old_IFS
55465:
55466: PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
55467:
55468: case $ac_src in
55469: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
55470: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
55471: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
55472: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
55473: esac
55474:
55475: cat >>Makefile.objects<<EOF
55476: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
55477: $ac_comp
55478: EOF
55479: done
55480:
55481:
55482:
55483:
55484: case ext/intl in
55485: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
55486: /*) ac_srcdir=`echo "ext/intl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
55487: *) ac_srcdir="$abs_srcdir/ext/intl/"; ac_bdir="ext/intl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
55488: esac
55489:
55490:
55491:
55492: b_c_pre=$php_c_pre
55493: b_cxx_pre=$php_cxx_pre
55494: b_c_meta=$php_c_meta
55495: b_cxx_meta=$php_cxx_meta
55496: b_c_post=$php_c_post
55497: b_cxx_post=$php_cxx_post
55498: b_lo=$php_lo
55499:
55500:
55501: old_IFS=$IFS
55502: for ac_src in php_intl.c \
55503: intl_error.c \
55504: intl_convert.c \
55505: collator/collator.c \
55506: collator/collator_class.c \
55507: collator/collator_sort.c \
55508: collator/collator_convert.c \
55509: collator/collator_locale.c \
55510: collator/collator_compare.c \
55511: collator/collator_attr.c \
55512: collator/collator_create.c \
55513: collator/collator_is_numeric.c \
55514: collator/collator_error.c \
55515: common/common_error.c \
55516: formatter/formatter.c \
55517: formatter/formatter_main.c \
55518: formatter/formatter_class.c \
55519: formatter/formatter_attr.c \
55520: formatter/formatter_data.c \
55521: formatter/formatter_format.c \
55522: formatter/formatter_parse.c \
55523: normalizer/normalizer.c \
55524: normalizer/normalizer_class.c \
55525: normalizer/normalizer_normalize.c \
55526: locale/locale.c \
55527: locale/locale_class.c \
55528: locale/locale_methods.c \
55529: dateformat/dateformat.c \
55530: dateformat/dateformat_class.c \
55531: dateformat/dateformat_attr.c \
55532: dateformat/dateformat_data.c \
55533: dateformat/dateformat_format.c \
55534: dateformat/dateformat_parse.c \
55535: msgformat/msgformat.c \
55536: msgformat/msgformat_attr.c \
55537: msgformat/msgformat_class.c \
55538: msgformat/msgformat_data.c \
55539: msgformat/msgformat_format.c \
55540: msgformat/msgformat_helpers.cpp \
55541: msgformat/msgformat_parse.c \
55542: grapheme/grapheme_string.c \
55543: grapheme/grapheme_util.c \
55544: resourcebundle/resourcebundle.c \
55545: resourcebundle/resourcebundle_class.c \
55546: resourcebundle/resourcebundle_iterator.c \
55547: idn/idn.c; do
55548:
55549: IFS=.
55550: set $ac_src
55551: ac_obj=$1
55552: IFS=$old_IFS
55553:
55554: PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo"
55555:
55556: case $ac_src in
55557: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
55558: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
55559: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
55560: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
55561: esac
55562:
55563: cat >>Makefile.objects<<EOF
55564: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
55565: $ac_comp
55566: EOF
55567: done
55568:
55569:
55570:
55571:
55572: case ext/intl in
55573: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
55574: /*) ac_srcdir=`echo "ext/intl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
55575: *) ac_srcdir="$abs_srcdir/ext/intl/"; ac_bdir="ext/intl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
55576: esac
55577:
55578:
55579:
55580: b_c_pre=$php_c_pre
55581: b_cxx_pre=$php_cxx_pre
55582: b_c_meta=$php_c_meta
55583: b_cxx_meta=$php_cxx_meta
55584: b_c_post=$php_c_post
55585: b_cxx_post=$php_cxx_post
55586: b_lo=$php_lo
55587:
55588:
55589: old_IFS=$IFS
55590: for ac_src in php_intl.c \
55591: intl_error.c \
55592: intl_convert.c \
55593: collator/collator.c \
55594: collator/collator_class.c \
55595: collator/collator_sort.c \
55596: collator/collator_convert.c \
55597: collator/collator_locale.c \
55598: collator/collator_compare.c \
55599: collator/collator_attr.c \
55600: collator/collator_create.c \
55601: collator/collator_is_numeric.c \
55602: collator/collator_error.c \
55603: common/common_error.c \
55604: formatter/formatter.c \
55605: formatter/formatter_main.c \
55606: formatter/formatter_class.c \
55607: formatter/formatter_attr.c \
55608: formatter/formatter_data.c \
55609: formatter/formatter_format.c \
55610: formatter/formatter_parse.c \
55611: normalizer/normalizer.c \
55612: normalizer/normalizer_class.c \
55613: normalizer/normalizer_normalize.c \
55614: locale/locale.c \
55615: locale/locale_class.c \
55616: locale/locale_methods.c \
55617: dateformat/dateformat.c \
55618: dateformat/dateformat_class.c \
55619: dateformat/dateformat_attr.c \
55620: dateformat/dateformat_data.c \
55621: dateformat/dateformat_format.c \
55622: dateformat/dateformat_parse.c \
55623: msgformat/msgformat.c \
55624: msgformat/msgformat_attr.c \
55625: msgformat/msgformat_class.c \
55626: msgformat/msgformat_data.c \
55627: msgformat/msgformat_format.c \
55628: msgformat/msgformat_helpers.cpp \
55629: msgformat/msgformat_parse.c \
55630: grapheme/grapheme_string.c \
55631: grapheme/grapheme_util.c \
55632: resourcebundle/resourcebundle.c \
55633: resourcebundle/resourcebundle_class.c \
55634: resourcebundle/resourcebundle_iterator.c \
55635: idn/idn.c; do
55636:
55637: IFS=.
55638: set $ac_src
55639: ac_obj=$1
55640: IFS=$old_IFS
55641:
55642: PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo"
55643:
55644: case $ac_src in
55645: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
55646: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
55647: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
55648: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
55649: esac
55650:
55651: cat >>Makefile.objects<<EOF
55652: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
55653: $ac_comp
55654: EOF
55655: done
55656:
55657:
55658: EXT_CLI_STATIC="$EXT_CLI_STATIC intl"
55659: fi
55660:
55661:
55662: BUILD_DIR="$BUILD_DIR $ext_builddir"
55663:
55664:
55665:
55666: if test "$ext_builddir" = "."; then
55667: PHP_PECL_EXTENSION=intl
55668:
55669: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
55670:
55671: fi
55672:
55673:
55674:
55675:
55676: BUILD_DIR="$BUILD_DIR $ext_builddir/collator"
55677:
55678:
55679:
55680:
55681: BUILD_DIR="$BUILD_DIR $ext_builddir/common"
55682:
55683:
55684:
55685:
55686: BUILD_DIR="$BUILD_DIR $ext_builddir/formatter"
55687:
55688:
55689:
55690:
55691: BUILD_DIR="$BUILD_DIR $ext_builddir/normalizer"
55692:
55693:
55694:
55695:
55696: BUILD_DIR="$BUILD_DIR $ext_builddir/dateformat"
55697:
55698:
55699:
55700:
55701: BUILD_DIR="$BUILD_DIR $ext_builddir/locale"
55702:
55703:
55704:
55705:
55706: BUILD_DIR="$BUILD_DIR $ext_builddir/msgformat"
55707:
55708:
55709:
55710:
55711: BUILD_DIR="$BUILD_DIR $ext_builddir/grapheme"
55712:
55713:
55714:
55715:
55716: BUILD_DIR="$BUILD_DIR $ext_builddir/resourcebundle"
55717:
55718:
55719:
55720:
55721: BUILD_DIR="$BUILD_DIR $ext_builddir/idn"
55722:
55723:
55724: fi
55725:
55726:
55727:
55728: php_enable_json=yes
55729:
55730: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable JavaScript Object Serialization support" >&5
55731: $as_echo_n "checking whether to enable JavaScript Object Serialization support... " >&6; }
55732: # Check whether --enable-json was given.
55733: if test "${enable_json+set}" = set; then :
55734: enableval=$enable_json; PHP_JSON=$enableval
55735: else
55736:
55737: PHP_JSON=yes
55738: test "$PHP_ENABLE_ALL" && PHP_JSON=$PHP_ENABLE_ALL
55739:
55740: fi
55741:
55742:
55743:
55744: ext_output="yes, shared"
55745: ext_shared=yes
55746: case $PHP_JSON in
55747: shared,*)
55748: PHP_JSON=`echo "$PHP_JSON"|$SED 's/^shared,//'`
55749: ;;
55750: shared)
55751: PHP_JSON=yes
55752: ;;
55753: no)
55754: ext_output=no
55755: ext_shared=no
55756: ;;
55757: *)
55758: ext_output=yes
55759: ext_shared=no
55760: ;;
55761: esac
55762:
55763:
55764:
55765: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
55766: $as_echo "$ext_output" >&6; }
55767:
55768:
55769:
55770:
55771: if test "$PHP_JSON" != "no"; then
55772:
55773: $as_echo "#define HAVE_JSON 1 " >>confdefs.h
55774:
55775: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
55776: $as_echo_n "checking for ANSI C header files... " >&6; }
55777: if ${ac_cv_header_stdc+:} false; then :
55778: $as_echo_n "(cached) " >&6
55779: else
55780: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55781: /* end confdefs.h. */
55782: #include <stdlib.h>
55783: #include <stdarg.h>
55784: #include <string.h>
55785: #include <float.h>
55786:
55787: int
55788: main ()
55789: {
55790:
55791: ;
55792: return 0;
55793: }
55794: _ACEOF
55795: if ac_fn_c_try_compile "$LINENO"; then :
55796: ac_cv_header_stdc=yes
55797: else
55798: ac_cv_header_stdc=no
55799: fi
55800: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55801:
55802: if test $ac_cv_header_stdc = yes; then
55803: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
55804: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55805: /* end confdefs.h. */
55806: #include <string.h>
55807:
55808: _ACEOF
55809: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
55810: $EGREP "memchr" >/dev/null 2>&1; then :
55811:
55812: else
55813: ac_cv_header_stdc=no
55814: fi
55815: rm -f conftest*
55816:
55817: fi
55818:
55819: if test $ac_cv_header_stdc = yes; then
55820: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
55821: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55822: /* end confdefs.h. */
55823: #include <stdlib.h>
55824:
55825: _ACEOF
55826: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
55827: $EGREP "free" >/dev/null 2>&1; then :
55828:
55829: else
55830: ac_cv_header_stdc=no
55831: fi
55832: rm -f conftest*
55833:
55834: fi
55835:
55836: if test $ac_cv_header_stdc = yes; then
55837: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
55838: if test "$cross_compiling" = yes; then :
55839: :
55840: else
55841: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55842: /* end confdefs.h. */
55843: #include <ctype.h>
55844: #include <stdlib.h>
55845: #if ((' ' & 0x0FF) == 0x020)
55846: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
55847: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
55848: #else
55849: # define ISLOWER(c) \
55850: (('a' <= (c) && (c) <= 'i') \
55851: || ('j' <= (c) && (c) <= 'r') \
55852: || ('s' <= (c) && (c) <= 'z'))
55853: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
55854: #endif
55855:
55856: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
55857: int
55858: main ()
55859: {
55860: int i;
55861: for (i = 0; i < 256; i++)
55862: if (XOR (islower (i), ISLOWER (i))
55863: || toupper (i) != TOUPPER (i))
55864: return 2;
55865: return 0;
55866: }
55867: _ACEOF
55868: if ac_fn_c_try_run "$LINENO"; then :
55869:
55870: else
55871: ac_cv_header_stdc=no
55872: fi
55873: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
55874: conftest.$ac_objext conftest.beam conftest.$ac_ext
55875: fi
55876:
55877: fi
55878: fi
55879: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
55880: $as_echo "$ac_cv_header_stdc" >&6; }
55881: if test $ac_cv_header_stdc = yes; then
55882:
55883: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
55884:
55885: fi
55886:
55887:
55888:
55889: ext_builddir=ext/json
55890: ext_srcdir=$abs_srcdir/ext/json
55891:
55892: ac_extra=
55893:
55894: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
55895: PHP_JSON_SHARED=no
55896:
55897:
55898: case ext/json in
55899: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
55900: /*) ac_srcdir=`echo "ext/json"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
55901: *) ac_srcdir="$abs_srcdir/ext/json/"; ac_bdir="ext/json/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
55902: esac
55903:
55904:
55905:
55906: b_c_pre=$php_c_pre
55907: b_cxx_pre=$php_cxx_pre
55908: b_c_meta=$php_c_meta
55909: b_cxx_meta=$php_cxx_meta
55910: b_c_post=$php_c_post
55911: b_cxx_post=$php_cxx_post
55912: b_lo=$php_lo
55913:
55914:
55915: old_IFS=$IFS
55916: for ac_src in json.c utf8_to_utf16.c utf8_decode.c JSON_parser.c; do
55917:
55918: IFS=.
55919: set $ac_src
55920: ac_obj=$1
55921: IFS=$old_IFS
55922:
55923: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
55924:
55925: case $ac_src in
55926: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
55927: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
55928: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
55929: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
55930: esac
55931:
55932: cat >>Makefile.objects<<EOF
55933: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
55934: $ac_comp
55935: EOF
55936: done
55937:
55938:
55939: EXT_STATIC="$EXT_STATIC json"
55940: if test "$ext_shared" != "nocli"; then
55941: EXT_CLI_STATIC="$EXT_CLI_STATIC json"
55942: fi
55943: else
55944: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
55945: PHP_JSON_SHARED=yes
55946:
55947: case ext/json in
55948: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
55949: /*) ac_srcdir=`echo "ext/json"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
55950: *) ac_srcdir="$abs_srcdir/ext/json/"; ac_bdir="ext/json/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
55951: esac
55952:
55953:
55954:
55955: b_c_pre=$shared_c_pre
55956: b_cxx_pre=$shared_cxx_pre
55957: b_c_meta=$shared_c_meta
55958: b_cxx_meta=$shared_cxx_meta
55959: b_c_post=$shared_c_post
55960: b_cxx_post=$shared_cxx_post
55961: b_lo=$shared_lo
55962:
55963:
55964: old_IFS=$IFS
55965: for ac_src in json.c utf8_to_utf16.c utf8_decode.c JSON_parser.c; do
55966:
55967: IFS=.
55968: set $ac_src
55969: ac_obj=$1
55970: IFS=$old_IFS
55971:
55972: shared_objects_json="$shared_objects_json $ac_bdir$ac_obj.lo"
55973:
55974: case $ac_src in
55975: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
55976: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
55977: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
55978: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
55979: esac
55980:
55981: cat >>Makefile.objects<<EOF
55982: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
55983: $ac_comp
55984: EOF
55985: done
55986:
55987: case $host_alias in
55988: *netware*)
55989:
55990: install_modules="install-modules"
55991:
55992: case $host_alias in
55993: *aix*)
55994: suffix=so
55995: 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'
55996: ;;
55997: *netware*)
55998: suffix=nlm
55999: link_cmd='$(LIBTOOL) --mode=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)'
56000: ;;
56001: *)
56002: suffix=la
56003: link_cmd='$(LIBTOOL) --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)'
56004: ;;
56005: esac
56006:
56007: if test "x" = "xyes"; then
56008: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpjson.$suffix"
56009: else
56010: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpjson.$suffix"
56011: fi
56012:
56013: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_json"
56014:
56015: cat >>Makefile.objects<<EOF
56016: \$(phplibdir)/phpjson.$suffix: $ext_builddir/phpjson.$suffix
56017: \$(LIBTOOL) --mode=install cp $ext_builddir/phpjson.$suffix \$(phplibdir)
56018:
56019: $ext_builddir/phpjson.$suffix: \$(shared_objects_json) \$(PHPJSON_SHARED_DEPENDENCIES)
56020: $link_cmd
56021:
56022: EOF
56023:
56024: ;;
56025: *)
56026:
56027: install_modules="install-modules"
56028:
56029: case $host_alias in
56030: *aix*)
56031: suffix=so
56032: 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'
56033: ;;
56034: *netware*)
56035: suffix=nlm
56036: link_cmd='$(LIBTOOL) --mode=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)'
56037: ;;
56038: *)
56039: suffix=la
56040: link_cmd='$(LIBTOOL) --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)'
56041: ;;
56042: esac
56043:
56044: if test "x" = "xyes"; then
56045: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/json.$suffix"
56046: else
56047: PHP_MODULES="$PHP_MODULES \$(phplibdir)/json.$suffix"
56048: fi
56049:
56050: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_json"
56051:
56052: cat >>Makefile.objects<<EOF
56053: \$(phplibdir)/json.$suffix: $ext_builddir/json.$suffix
56054: \$(LIBTOOL) --mode=install cp $ext_builddir/json.$suffix \$(phplibdir)
56055:
56056: $ext_builddir/json.$suffix: \$(shared_objects_json) \$(JSON_SHARED_DEPENDENCIES)
56057: $link_cmd
56058:
56059: EOF
56060:
56061: ;;
56062: esac
56063:
56064: cat >>confdefs.h <<_ACEOF
56065: #define COMPILE_DL_JSON 1
56066: _ACEOF
56067:
56068: fi
56069: fi
56070:
56071: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
56072: PHP_JSON_SHARED=no
56073:
56074:
56075: case ext/json in
56076: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
56077: /*) ac_srcdir=`echo "ext/json"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
56078: *) ac_srcdir="$abs_srcdir/ext/json/"; ac_bdir="ext/json/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
56079: esac
56080:
56081:
56082:
56083: b_c_pre=$php_c_pre
56084: b_cxx_pre=$php_cxx_pre
56085: b_c_meta=$php_c_meta
56086: b_cxx_meta=$php_cxx_meta
56087: b_c_post=$php_c_post
56088: b_cxx_post=$php_cxx_post
56089: b_lo=$php_lo
56090:
56091:
56092: old_IFS=$IFS
56093: for ac_src in json.c utf8_to_utf16.c utf8_decode.c JSON_parser.c; do
56094:
56095: IFS=.
56096: set $ac_src
56097: ac_obj=$1
56098: IFS=$old_IFS
56099:
56100: PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
56101:
56102: case $ac_src in
56103: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
56104: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
56105: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
56106: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
56107: esac
56108:
56109: cat >>Makefile.objects<<EOF
56110: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
56111: $ac_comp
56112: EOF
56113: done
56114:
56115:
56116:
56117:
56118: case ext/json in
56119: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
56120: /*) ac_srcdir=`echo "ext/json"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
56121: *) ac_srcdir="$abs_srcdir/ext/json/"; ac_bdir="ext/json/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
56122: esac
56123:
56124:
56125:
56126: b_c_pre=$php_c_pre
56127: b_cxx_pre=$php_cxx_pre
56128: b_c_meta=$php_c_meta
56129: b_cxx_meta=$php_cxx_meta
56130: b_c_post=$php_c_post
56131: b_cxx_post=$php_cxx_post
56132: b_lo=$php_lo
56133:
56134:
56135: old_IFS=$IFS
56136: for ac_src in json.c utf8_to_utf16.c utf8_decode.c JSON_parser.c; do
56137:
56138: IFS=.
56139: set $ac_src
56140: ac_obj=$1
56141: IFS=$old_IFS
56142:
56143: PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo"
56144:
56145: case $ac_src in
56146: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
56147: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
56148: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
56149: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
56150: esac
56151:
56152: cat >>Makefile.objects<<EOF
56153: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
56154: $ac_comp
56155: EOF
56156: done
56157:
56158:
56159:
56160:
56161: case ext/json in
56162: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
56163: /*) ac_srcdir=`echo "ext/json"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
56164: *) ac_srcdir="$abs_srcdir/ext/json/"; ac_bdir="ext/json/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
56165: esac
56166:
56167:
56168:
56169: b_c_pre=$php_c_pre
56170: b_cxx_pre=$php_cxx_pre
56171: b_c_meta=$php_c_meta
56172: b_cxx_meta=$php_cxx_meta
56173: b_c_post=$php_c_post
56174: b_cxx_post=$php_cxx_post
56175: b_lo=$php_lo
56176:
56177:
56178: old_IFS=$IFS
56179: for ac_src in json.c utf8_to_utf16.c utf8_decode.c JSON_parser.c; do
56180:
56181: IFS=.
56182: set $ac_src
56183: ac_obj=$1
56184: IFS=$old_IFS
56185:
56186: PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo"
56187:
56188: case $ac_src in
56189: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
56190: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
56191: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
56192: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
56193: esac
56194:
56195: cat >>Makefile.objects<<EOF
56196: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
56197: $ac_comp
56198: EOF
56199: done
56200:
56201:
56202: EXT_CLI_STATIC="$EXT_CLI_STATIC json"
56203: fi
56204:
56205:
56206: BUILD_DIR="$BUILD_DIR $ext_builddir"
56207:
56208:
56209:
56210: if test "$ext_builddir" = "."; then
56211: PHP_PECL_EXTENSION=json
56212:
56213: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
56214:
56215: fi
56216:
56217:
56218:
56219: header_path=ext/json
56220: for header_file in php_json.h; do
56221: hp_hf="$header_path/$header_file"
56222:
56223:
56224: unique=`echo $hp_hf|$SED 's/[^a-zA-Z0-9]/_/g'`
56225:
56226: cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
56227: if test -n "$unique" && test "`eval $cmd`" = "" ; then
56228: eval "INSTALLHEADERS$unique=set"
56229:
56230: INSTALL_HEADERS="$INSTALL_HEADERS $hp_hf"
56231:
56232: fi
56233:
56234: done
56235:
56236:
56237:
56238: PHP_VAR_SUBST="$PHP_VAR_SUBST JSON_SHARED_LIBADD"
56239:
56240: fi
56241:
56242:
56243:
56244:
56245:
56246:
56247:
56248: php_with_ldap=no
56249:
56250: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP support" >&5
56251: $as_echo_n "checking for LDAP support... " >&6; }
56252:
56253: # Check whether --with-ldap was given.
56254: if test "${with_ldap+set}" = set; then :
56255: withval=$with_ldap; PHP_LDAP=$withval
56256: else
56257:
56258: PHP_LDAP=no
56259: test "$PHP_ENABLE_ALL" && PHP_LDAP=$PHP_ENABLE_ALL
56260:
56261: fi
56262:
56263:
56264:
56265: ext_output="yes, shared"
56266: ext_shared=yes
56267: case $PHP_LDAP in
56268: shared,*)
56269: PHP_LDAP=`echo "$PHP_LDAP"|$SED 's/^shared,//'`
56270: ;;
56271: shared)
56272: PHP_LDAP=yes
56273: ;;
56274: no)
56275: ext_output=no
56276: ext_shared=no
56277: ;;
56278: *)
56279: ext_output=yes
56280: ext_shared=no
56281: ;;
56282: esac
56283:
56284:
56285:
56286: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
56287: $as_echo "$ext_output" >&6; }
56288:
56289:
56290:
56291:
56292:
56293: php_with_ldap_sasl=no
56294:
56295: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP Cyrus SASL support" >&5
56296: $as_echo_n "checking for LDAP Cyrus SASL support... " >&6; }
56297:
56298: # Check whether --with-ldap-sasl was given.
56299: if test "${with_ldap_sasl+set}" = set; then :
56300: withval=$with_ldap_sasl; PHP_LDAP_SASL=$withval
56301: else
56302:
56303: PHP_LDAP_SASL=no
56304:
56305:
56306: fi
56307:
56308:
56309: ext_output=$PHP_LDAP_SASL
56310: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
56311: $as_echo "$ext_output" >&6; }
56312:
56313:
56314:
56315:
56316: if test "$PHP_LDAP" != "no"; then
56317:
56318:
56319: ext_builddir=ext/ldap
56320: ext_srcdir=$abs_srcdir/ext/ldap
56321:
56322: ac_extra=`echo "-DLDAP_DEPRECATED=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
56323:
56324: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
56325: PHP_LDAP_SHARED=no
56326:
56327:
56328: case ext/ldap in
56329: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
56330: /*) ac_srcdir=`echo "ext/ldap"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
56331: *) ac_srcdir="$abs_srcdir/ext/ldap/"; ac_bdir="ext/ldap/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
56332: esac
56333:
56334:
56335:
56336: b_c_pre=$php_c_pre
56337: b_cxx_pre=$php_cxx_pre
56338: b_c_meta=$php_c_meta
56339: b_cxx_meta=$php_cxx_meta
56340: b_c_post=$php_c_post
56341: b_cxx_post=$php_cxx_post
56342: b_lo=$php_lo
56343:
56344:
56345: old_IFS=$IFS
56346: for ac_src in ldap.c; do
56347:
56348: IFS=.
56349: set $ac_src
56350: ac_obj=$1
56351: IFS=$old_IFS
56352:
56353: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
56354:
56355: case $ac_src in
56356: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
56357: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
56358: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
56359: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
56360: esac
56361:
56362: cat >>Makefile.objects<<EOF
56363: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
56364: $ac_comp
56365: EOF
56366: done
56367:
56368:
56369: EXT_STATIC="$EXT_STATIC ldap"
56370: if test "$ext_shared" != "nocli"; then
56371: EXT_CLI_STATIC="$EXT_CLI_STATIC ldap"
56372: fi
56373: else
56374: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
56375: PHP_LDAP_SHARED=yes
56376:
56377: case ext/ldap in
56378: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
56379: /*) ac_srcdir=`echo "ext/ldap"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
56380: *) ac_srcdir="$abs_srcdir/ext/ldap/"; ac_bdir="ext/ldap/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
56381: esac
56382:
56383:
56384:
56385: b_c_pre=$shared_c_pre
56386: b_cxx_pre=$shared_cxx_pre
56387: b_c_meta=$shared_c_meta
56388: b_cxx_meta=$shared_cxx_meta
56389: b_c_post=$shared_c_post
56390: b_cxx_post=$shared_cxx_post
56391: b_lo=$shared_lo
56392:
56393:
56394: old_IFS=$IFS
56395: for ac_src in ldap.c; do
56396:
56397: IFS=.
56398: set $ac_src
56399: ac_obj=$1
56400: IFS=$old_IFS
56401:
56402: shared_objects_ldap="$shared_objects_ldap $ac_bdir$ac_obj.lo"
56403:
56404: case $ac_src in
56405: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
56406: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
56407: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
56408: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
56409: esac
56410:
56411: cat >>Makefile.objects<<EOF
56412: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
56413: $ac_comp
56414: EOF
56415: done
56416:
56417: case $host_alias in
56418: *netware*)
56419:
56420: install_modules="install-modules"
56421:
56422: case $host_alias in
56423: *aix*)
56424: suffix=so
56425: 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'
56426: ;;
56427: *netware*)
56428: suffix=nlm
56429: link_cmd='$(LIBTOOL) --mode=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)'
56430: ;;
56431: *)
56432: suffix=la
56433: link_cmd='$(LIBTOOL) --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)'
56434: ;;
56435: esac
56436:
56437: if test "x" = "xyes"; then
56438: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpldap.$suffix"
56439: else
56440: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpldap.$suffix"
56441: fi
56442:
56443: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_ldap"
56444:
56445: cat >>Makefile.objects<<EOF
56446: \$(phplibdir)/phpldap.$suffix: $ext_builddir/phpldap.$suffix
56447: \$(LIBTOOL) --mode=install cp $ext_builddir/phpldap.$suffix \$(phplibdir)
56448:
56449: $ext_builddir/phpldap.$suffix: \$(shared_objects_ldap) \$(PHPLDAP_SHARED_DEPENDENCIES)
56450: $link_cmd
56451:
56452: EOF
56453:
56454: ;;
56455: *)
56456:
56457: install_modules="install-modules"
56458:
56459: case $host_alias in
56460: *aix*)
56461: suffix=so
56462: 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'
56463: ;;
56464: *netware*)
56465: suffix=nlm
56466: link_cmd='$(LIBTOOL) --mode=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)'
56467: ;;
56468: *)
56469: suffix=la
56470: link_cmd='$(LIBTOOL) --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)'
56471: ;;
56472: esac
56473:
56474: if test "x" = "xyes"; then
56475: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/ldap.$suffix"
56476: else
56477: PHP_MODULES="$PHP_MODULES \$(phplibdir)/ldap.$suffix"
56478: fi
56479:
56480: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_ldap"
56481:
56482: cat >>Makefile.objects<<EOF
56483: \$(phplibdir)/ldap.$suffix: $ext_builddir/ldap.$suffix
56484: \$(LIBTOOL) --mode=install cp $ext_builddir/ldap.$suffix \$(phplibdir)
56485:
56486: $ext_builddir/ldap.$suffix: \$(shared_objects_ldap) \$(LDAP_SHARED_DEPENDENCIES)
56487: $link_cmd
56488:
56489: EOF
56490:
56491: ;;
56492: esac
56493:
56494: cat >>confdefs.h <<_ACEOF
56495: #define COMPILE_DL_LDAP 1
56496: _ACEOF
56497:
56498: fi
56499: fi
56500:
56501: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
56502: PHP_LDAP_SHARED=no
56503:
56504:
56505: case ext/ldap in
56506: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
56507: /*) ac_srcdir=`echo "ext/ldap"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
56508: *) ac_srcdir="$abs_srcdir/ext/ldap/"; ac_bdir="ext/ldap/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
56509: esac
56510:
56511:
56512:
56513: b_c_pre=$php_c_pre
56514: b_cxx_pre=$php_cxx_pre
56515: b_c_meta=$php_c_meta
56516: b_cxx_meta=$php_cxx_meta
56517: b_c_post=$php_c_post
56518: b_cxx_post=$php_cxx_post
56519: b_lo=$php_lo
56520:
56521:
56522: old_IFS=$IFS
56523: for ac_src in ldap.c; do
56524:
56525: IFS=.
56526: set $ac_src
56527: ac_obj=$1
56528: IFS=$old_IFS
56529:
56530: PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
56531:
56532: case $ac_src in
56533: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
56534: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
56535: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
56536: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
56537: esac
56538:
56539: cat >>Makefile.objects<<EOF
56540: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
56541: $ac_comp
56542: EOF
56543: done
56544:
56545:
56546:
56547:
56548: case ext/ldap in
56549: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
56550: /*) ac_srcdir=`echo "ext/ldap"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
56551: *) ac_srcdir="$abs_srcdir/ext/ldap/"; ac_bdir="ext/ldap/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
56552: esac
56553:
56554:
56555:
56556: b_c_pre=$php_c_pre
56557: b_cxx_pre=$php_cxx_pre
56558: b_c_meta=$php_c_meta
56559: b_cxx_meta=$php_cxx_meta
56560: b_c_post=$php_c_post
56561: b_cxx_post=$php_cxx_post
56562: b_lo=$php_lo
56563:
56564:
56565: old_IFS=$IFS
56566: for ac_src in ldap.c; do
56567:
56568: IFS=.
56569: set $ac_src
56570: ac_obj=$1
56571: IFS=$old_IFS
56572:
56573: PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo"
56574:
56575: case $ac_src in
56576: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
56577: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
56578: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
56579: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
56580: esac
56581:
56582: cat >>Makefile.objects<<EOF
56583: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
56584: $ac_comp
56585: EOF
56586: done
56587:
56588:
56589:
56590:
56591: case ext/ldap in
56592: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
56593: /*) ac_srcdir=`echo "ext/ldap"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
56594: *) ac_srcdir="$abs_srcdir/ext/ldap/"; ac_bdir="ext/ldap/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
56595: esac
56596:
56597:
56598:
56599: b_c_pre=$php_c_pre
56600: b_cxx_pre=$php_cxx_pre
56601: b_c_meta=$php_c_meta
56602: b_cxx_meta=$php_cxx_meta
56603: b_c_post=$php_c_post
56604: b_cxx_post=$php_cxx_post
56605: b_lo=$php_lo
56606:
56607:
56608: old_IFS=$IFS
56609: for ac_src in ldap.c; do
56610:
56611: IFS=.
56612: set $ac_src
56613: ac_obj=$1
56614: IFS=$old_IFS
56615:
56616: PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo"
56617:
56618: case $ac_src in
56619: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
56620: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
56621: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
56622: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
56623: esac
56624:
56625: cat >>Makefile.objects<<EOF
56626: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
56627: $ac_comp
56628: EOF
56629: done
56630:
56631:
56632: EXT_CLI_STATIC="$EXT_CLI_STATIC ldap"
56633: fi
56634:
56635:
56636: BUILD_DIR="$BUILD_DIR $ext_builddir"
56637:
56638:
56639:
56640: if test "$ext_builddir" = "."; then
56641: PHP_PECL_EXTENSION=ldap
56642:
56643: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
56644:
56645: fi
56646:
56647:
56648: if test "$PHP_LDAP" = "yes"; then
56649: for i in /usr/local /usr; do
56650:
56651: if test -f $i/include/ldap.h; then
56652: LDAP_DIR=$i
56653: LDAP_INCDIR=$i/include
56654: LDAP_LIBDIR=$i/$PHP_LIBDIR
56655: elif test -f $i/include/umich-ldap/ldap.h; then
56656: LDAP_DIR=$i
56657: LDAP_INCDIR=$i/include/umich-ldap
56658: LDAP_LIBDIR=$i/$PHP_LIBDIR
56659: elif test -f $i/ldap/public/ldap.h; then
56660: LDAP_DIR=$i
56661: LDAP_INCDIR=$i/ldap/public
56662: LDAP_LIBDIR=$i/$PHP_LIBDIR
56663: fi
56664:
56665: done
56666: else
56667:
56668: if test -f $PHP_LDAP/include/ldap.h; then
56669: LDAP_DIR=$PHP_LDAP
56670: LDAP_INCDIR=$PHP_LDAP/include
56671: LDAP_LIBDIR=$PHP_LDAP/$PHP_LIBDIR
56672: elif test -f $PHP_LDAP/include/umich-ldap/ldap.h; then
56673: LDAP_DIR=$PHP_LDAP
56674: LDAP_INCDIR=$PHP_LDAP/include/umich-ldap
56675: LDAP_LIBDIR=$PHP_LDAP/$PHP_LIBDIR
56676: elif test -f $PHP_LDAP/ldap/public/ldap.h; then
56677: LDAP_DIR=$PHP_LDAP
56678: LDAP_INCDIR=$PHP_LDAP/ldap/public
56679: LDAP_LIBDIR=$PHP_LDAP/$PHP_LIBDIR
56680: fi
56681:
56682: fi
56683:
56684: if test -z "$LDAP_DIR"; then
56685: as_fn_error $? "Cannot find ldap.h" "$LINENO" 5
56686: fi
56687:
56688:
56689: if test `uname` = "Linux"; then
56690: LDAP_PTHREAD=pthread
56691: else
56692: LDAP_PTHREAD=
56693: fi
56694:
56695: if test -f $LDAP_LIBDIR/liblber.a || test -f $LDAP_LIBDIR/liblber.$SHLIB_SUFFIX_NAME; then
56696:
56697:
56698: if test "$ext_shared" = "yes"; then
56699: LDAP_SHARED_LIBADD="-llber $LDAP_SHARED_LIBADD"
56700: if test -n "$LDAP_LIBDIR"; then
56701:
56702: if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
56703:
56704: if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
56705: ai_p=$LDAP_LIBDIR
56706: else
56707:
56708: ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
56709:
56710: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
56711: ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
56712: fi
56713:
56714:
56715: if test "$ext_shared" = "yes"; then
56716: LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
56717: test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
56718: else
56719:
56720:
56721:
56722: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
56723:
56724: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
56725: if test -n "$unique" && test "`eval $cmd`" = "" ; then
56726: eval "LIBPATH$unique=set"
56727:
56728: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
56729: LDFLAGS="$LDFLAGS -L$ai_p"
56730: PHP_RPATHS="$PHP_RPATHS $ai_p"
56731:
56732: fi
56733:
56734:
56735: fi
56736:
56737: fi
56738:
56739: fi
56740: else
56741:
56742:
56743: if test -n "$LDAP_LIBDIR"; then
56744:
56745: if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
56746:
56747: if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
56748: ai_p=$LDAP_LIBDIR
56749: else
56750:
56751: ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
56752:
56753: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
56754: ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
56755: fi
56756:
56757:
56758:
56759:
56760:
56761: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
56762:
56763: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
56764: if test -n "$unique" && test "`eval $cmd`" = "" ; then
56765: eval "LIBPATH$unique=set"
56766:
56767: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
56768: LDFLAGS="$LDFLAGS -L$ai_p"
56769: PHP_RPATHS="$PHP_RPATHS $ai_p"
56770:
56771: fi
56772:
56773:
56774:
56775: fi
56776:
56777: fi
56778:
56779:
56780: case lber in
56781: c|c_r|pthread*) ;;
56782: *)
56783: LIBS="-llber $LIBS"
56784: ;;
56785: esac
56786:
56787:
56788:
56789:
56790: fi
56791:
56792:
56793:
56794:
56795: if test "$ext_shared" = "yes"; then
56796: LDAP_SHARED_LIBADD="-lldap $LDAP_SHARED_LIBADD"
56797: if test -n "$LDAP_LIBDIR"; then
56798:
56799: if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
56800:
56801: if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
56802: ai_p=$LDAP_LIBDIR
56803: else
56804:
56805: ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
56806:
56807: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
56808: ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
56809: fi
56810:
56811:
56812: if test "$ext_shared" = "yes"; then
56813: LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
56814: test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
56815: else
56816:
56817:
56818:
56819: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
56820:
56821: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
56822: if test -n "$unique" && test "`eval $cmd`" = "" ; then
56823: eval "LIBPATH$unique=set"
56824:
56825: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
56826: LDFLAGS="$LDFLAGS -L$ai_p"
56827: PHP_RPATHS="$PHP_RPATHS $ai_p"
56828:
56829: fi
56830:
56831:
56832: fi
56833:
56834: fi
56835:
56836: fi
56837: else
56838:
56839:
56840: if test -n "$LDAP_LIBDIR"; then
56841:
56842: if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
56843:
56844: if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
56845: ai_p=$LDAP_LIBDIR
56846: else
56847:
56848: ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
56849:
56850: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
56851: ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
56852: fi
56853:
56854:
56855:
56856:
56857:
56858: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
56859:
56860: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
56861: if test -n "$unique" && test "`eval $cmd`" = "" ; then
56862: eval "LIBPATH$unique=set"
56863:
56864: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
56865: LDFLAGS="$LDFLAGS -L$ai_p"
56866: PHP_RPATHS="$PHP_RPATHS $ai_p"
56867:
56868: fi
56869:
56870:
56871:
56872: fi
56873:
56874: fi
56875:
56876:
56877: case ldap in
56878: c|c_r|pthread*) ;;
56879: *)
56880: LIBS="-lldap $LIBS"
56881: ;;
56882: esac
56883:
56884:
56885:
56886:
56887: fi
56888:
56889:
56890:
56891: 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
56892:
56893:
56894: if test "$ext_shared" = "yes"; then
56895: LDAP_SHARED_LIBADD="-lldap $LDAP_SHARED_LIBADD"
56896: if test -n "$LDAP_LIBDIR"; then
56897:
56898: if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
56899:
56900: if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
56901: ai_p=$LDAP_LIBDIR
56902: else
56903:
56904: ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
56905:
56906: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
56907: ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
56908: fi
56909:
56910:
56911: if test "$ext_shared" = "yes"; then
56912: LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
56913: test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
56914: else
56915:
56916:
56917:
56918: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
56919:
56920: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
56921: if test -n "$unique" && test "`eval $cmd`" = "" ; then
56922: eval "LIBPATH$unique=set"
56923:
56924: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
56925: LDFLAGS="$LDFLAGS -L$ai_p"
56926: PHP_RPATHS="$PHP_RPATHS $ai_p"
56927:
56928: fi
56929:
56930:
56931: fi
56932:
56933: fi
56934:
56935: fi
56936: else
56937:
56938:
56939: if test -n "$LDAP_LIBDIR"; then
56940:
56941: if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
56942:
56943: if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
56944: ai_p=$LDAP_LIBDIR
56945: else
56946:
56947: ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
56948:
56949: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
56950: ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
56951: fi
56952:
56953:
56954:
56955:
56956:
56957: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
56958:
56959: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
56960: if test -n "$unique" && test "`eval $cmd`" = "" ; then
56961: eval "LIBPATH$unique=set"
56962:
56963: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
56964: LDFLAGS="$LDFLAGS -L$ai_p"
56965: PHP_RPATHS="$PHP_RPATHS $ai_p"
56966:
56967: fi
56968:
56969:
56970:
56971: fi
56972:
56973: fi
56974:
56975:
56976: case ldap in
56977: c|c_r|pthread*) ;;
56978: *)
56979: LIBS="-lldap $LIBS"
56980: ;;
56981: esac
56982:
56983:
56984:
56985:
56986: fi
56987:
56988:
56989:
56990: elif test -f $LDAP_LIBDIR/libssldap50.$SHLIB_SUFFIX_NAME; then
56991: if test -n "$LDAP_PTHREAD"; then
56992:
56993:
56994: case $LDAP_PTHREAD in
56995: c|c_r|pthread*) ;;
56996: *)
56997: LIBS="-l$LDAP_PTHREAD $LIBS"
56998: ;;
56999: esac
57000:
57001:
57002: fi
57003:
57004:
57005: if test "$ext_shared" = "yes"; then
57006: LDAP_SHARED_LIBADD="-lnspr4 $LDAP_SHARED_LIBADD"
57007: if test -n "$LDAP_LIBDIR"; then
57008:
57009: if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
57010:
57011: if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
57012: ai_p=$LDAP_LIBDIR
57013: else
57014:
57015: ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
57016:
57017: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
57018: ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
57019: fi
57020:
57021:
57022: if test "$ext_shared" = "yes"; then
57023: LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
57024: test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
57025: else
57026:
57027:
57028:
57029: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
57030:
57031: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
57032: if test -n "$unique" && test "`eval $cmd`" = "" ; then
57033: eval "LIBPATH$unique=set"
57034:
57035: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
57036: LDFLAGS="$LDFLAGS -L$ai_p"
57037: PHP_RPATHS="$PHP_RPATHS $ai_p"
57038:
57039: fi
57040:
57041:
57042: fi
57043:
57044: fi
57045:
57046: fi
57047: else
57048:
57049:
57050: if test -n "$LDAP_LIBDIR"; then
57051:
57052: if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
57053:
57054: if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
57055: ai_p=$LDAP_LIBDIR
57056: else
57057:
57058: ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
57059:
57060: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
57061: ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
57062: fi
57063:
57064:
57065:
57066:
57067:
57068: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
57069:
57070: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
57071: if test -n "$unique" && test "`eval $cmd`" = "" ; then
57072: eval "LIBPATH$unique=set"
57073:
57074: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
57075: LDFLAGS="$LDFLAGS -L$ai_p"
57076: PHP_RPATHS="$PHP_RPATHS $ai_p"
57077:
57078: fi
57079:
57080:
57081:
57082: fi
57083:
57084: fi
57085:
57086:
57087: case nspr4 in
57088: c|c_r|pthread*) ;;
57089: *)
57090: LIBS="-lnspr4 $LIBS"
57091: ;;
57092: esac
57093:
57094:
57095:
57096:
57097: fi
57098:
57099:
57100:
57101:
57102: if test "$ext_shared" = "yes"; then
57103: LDAP_SHARED_LIBADD="-lplc4 $LDAP_SHARED_LIBADD"
57104: if test -n "$LDAP_LIBDIR"; then
57105:
57106: if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
57107:
57108: if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
57109: ai_p=$LDAP_LIBDIR
57110: else
57111:
57112: ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
57113:
57114: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
57115: ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
57116: fi
57117:
57118:
57119: if test "$ext_shared" = "yes"; then
57120: LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
57121: test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
57122: else
57123:
57124:
57125:
57126: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
57127:
57128: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
57129: if test -n "$unique" && test "`eval $cmd`" = "" ; then
57130: eval "LIBPATH$unique=set"
57131:
57132: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
57133: LDFLAGS="$LDFLAGS -L$ai_p"
57134: PHP_RPATHS="$PHP_RPATHS $ai_p"
57135:
57136: fi
57137:
57138:
57139: fi
57140:
57141: fi
57142:
57143: fi
57144: else
57145:
57146:
57147: if test -n "$LDAP_LIBDIR"; then
57148:
57149: if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
57150:
57151: if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
57152: ai_p=$LDAP_LIBDIR
57153: else
57154:
57155: ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
57156:
57157: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
57158: ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
57159: fi
57160:
57161:
57162:
57163:
57164:
57165: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
57166:
57167: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
57168: if test -n "$unique" && test "`eval $cmd`" = "" ; then
57169: eval "LIBPATH$unique=set"
57170:
57171: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
57172: LDFLAGS="$LDFLAGS -L$ai_p"
57173: PHP_RPATHS="$PHP_RPATHS $ai_p"
57174:
57175: fi
57176:
57177:
57178:
57179: fi
57180:
57181: fi
57182:
57183:
57184: case plc4 in
57185: c|c_r|pthread*) ;;
57186: *)
57187: LIBS="-lplc4 $LIBS"
57188: ;;
57189: esac
57190:
57191:
57192:
57193:
57194: fi
57195:
57196:
57197:
57198:
57199: if test "$ext_shared" = "yes"; then
57200: LDAP_SHARED_LIBADD="-lplds4 $LDAP_SHARED_LIBADD"
57201: if test -n "$LDAP_LIBDIR"; then
57202:
57203: if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
57204:
57205: if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
57206: ai_p=$LDAP_LIBDIR
57207: else
57208:
57209: ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
57210:
57211: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
57212: ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
57213: fi
57214:
57215:
57216: if test "$ext_shared" = "yes"; then
57217: LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
57218: test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
57219: else
57220:
57221:
57222:
57223: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
57224:
57225: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
57226: if test -n "$unique" && test "`eval $cmd`" = "" ; then
57227: eval "LIBPATH$unique=set"
57228:
57229: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
57230: LDFLAGS="$LDFLAGS -L$ai_p"
57231: PHP_RPATHS="$PHP_RPATHS $ai_p"
57232:
57233: fi
57234:
57235:
57236: fi
57237:
57238: fi
57239:
57240: fi
57241: else
57242:
57243:
57244: if test -n "$LDAP_LIBDIR"; then
57245:
57246: if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
57247:
57248: if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
57249: ai_p=$LDAP_LIBDIR
57250: else
57251:
57252: ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
57253:
57254: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
57255: ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
57256: fi
57257:
57258:
57259:
57260:
57261:
57262: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
57263:
57264: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
57265: if test -n "$unique" && test "`eval $cmd`" = "" ; then
57266: eval "LIBPATH$unique=set"
57267:
57268: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
57269: LDFLAGS="$LDFLAGS -L$ai_p"
57270: PHP_RPATHS="$PHP_RPATHS $ai_p"
57271:
57272: fi
57273:
57274:
57275:
57276: fi
57277:
57278: fi
57279:
57280:
57281: case plds4 in
57282: c|c_r|pthread*) ;;
57283: *)
57284: LIBS="-lplds4 $LIBS"
57285: ;;
57286: esac
57287:
57288:
57289:
57290:
57291: fi
57292:
57293:
57294:
57295:
57296: if test "$ext_shared" = "yes"; then
57297: LDAP_SHARED_LIBADD="-lssldap50 $LDAP_SHARED_LIBADD"
57298: if test -n "$LDAP_LIBDIR"; then
57299:
57300: if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
57301:
57302: if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
57303: ai_p=$LDAP_LIBDIR
57304: else
57305:
57306: ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
57307:
57308: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
57309: ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
57310: fi
57311:
57312:
57313: if test "$ext_shared" = "yes"; then
57314: LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
57315: test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
57316: else
57317:
57318:
57319:
57320: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
57321:
57322: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
57323: if test -n "$unique" && test "`eval $cmd`" = "" ; then
57324: eval "LIBPATH$unique=set"
57325:
57326: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
57327: LDFLAGS="$LDFLAGS -L$ai_p"
57328: PHP_RPATHS="$PHP_RPATHS $ai_p"
57329:
57330: fi
57331:
57332:
57333: fi
57334:
57335: fi
57336:
57337: fi
57338: else
57339:
57340:
57341: if test -n "$LDAP_LIBDIR"; then
57342:
57343: if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
57344:
57345: if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
57346: ai_p=$LDAP_LIBDIR
57347: else
57348:
57349: ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
57350:
57351: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
57352: ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
57353: fi
57354:
57355:
57356:
57357:
57358:
57359: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
57360:
57361: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
57362: if test -n "$unique" && test "`eval $cmd`" = "" ; then
57363: eval "LIBPATH$unique=set"
57364:
57365: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
57366: LDFLAGS="$LDFLAGS -L$ai_p"
57367: PHP_RPATHS="$PHP_RPATHS $ai_p"
57368:
57369: fi
57370:
57371:
57372:
57373: fi
57374:
57375: fi
57376:
57377:
57378: case ssldap50 in
57379: c|c_r|pthread*) ;;
57380: *)
57381: LIBS="-lssldap50 $LIBS"
57382: ;;
57383: esac
57384:
57385:
57386:
57387:
57388: fi
57389:
57390:
57391:
57392:
57393: if test "$ext_shared" = "yes"; then
57394: LDAP_SHARED_LIBADD="-lldap50 $LDAP_SHARED_LIBADD"
57395: if test -n "$LDAP_LIBDIR"; then
57396:
57397: if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
57398:
57399: if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
57400: ai_p=$LDAP_LIBDIR
57401: else
57402:
57403: ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
57404:
57405: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
57406: ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
57407: fi
57408:
57409:
57410: if test "$ext_shared" = "yes"; then
57411: LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
57412: test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
57413: else
57414:
57415:
57416:
57417: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
57418:
57419: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
57420: if test -n "$unique" && test "`eval $cmd`" = "" ; then
57421: eval "LIBPATH$unique=set"
57422:
57423: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
57424: LDFLAGS="$LDFLAGS -L$ai_p"
57425: PHP_RPATHS="$PHP_RPATHS $ai_p"
57426:
57427: fi
57428:
57429:
57430: fi
57431:
57432: fi
57433:
57434: fi
57435: else
57436:
57437:
57438: if test -n "$LDAP_LIBDIR"; then
57439:
57440: if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
57441:
57442: if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
57443: ai_p=$LDAP_LIBDIR
57444: else
57445:
57446: ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
57447:
57448: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
57449: ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
57450: fi
57451:
57452:
57453:
57454:
57455:
57456: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
57457:
57458: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
57459: if test -n "$unique" && test "`eval $cmd`" = "" ; then
57460: eval "LIBPATH$unique=set"
57461:
57462: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
57463: LDFLAGS="$LDFLAGS -L$ai_p"
57464: PHP_RPATHS="$PHP_RPATHS $ai_p"
57465:
57466: fi
57467:
57468:
57469:
57470: fi
57471:
57472: fi
57473:
57474:
57475: case ldap50 in
57476: c|c_r|pthread*) ;;
57477: *)
57478: LIBS="-lldap50 $LIBS"
57479: ;;
57480: esac
57481:
57482:
57483:
57484:
57485: fi
57486:
57487:
57488:
57489:
57490: if test "$ext_shared" = "yes"; then
57491: LDAP_SHARED_LIBADD="-lprldap50 $LDAP_SHARED_LIBADD"
57492: if test -n "$LDAP_LIBDIR"; then
57493:
57494: if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
57495:
57496: if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
57497: ai_p=$LDAP_LIBDIR
57498: else
57499:
57500: ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
57501:
57502: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
57503: ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
57504: fi
57505:
57506:
57507: if test "$ext_shared" = "yes"; then
57508: LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
57509: test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
57510: else
57511:
57512:
57513:
57514: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
57515:
57516: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
57517: if test -n "$unique" && test "`eval $cmd`" = "" ; then
57518: eval "LIBPATH$unique=set"
57519:
57520: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
57521: LDFLAGS="$LDFLAGS -L$ai_p"
57522: PHP_RPATHS="$PHP_RPATHS $ai_p"
57523:
57524: fi
57525:
57526:
57527: fi
57528:
57529: fi
57530:
57531: fi
57532: else
57533:
57534:
57535: if test -n "$LDAP_LIBDIR"; then
57536:
57537: if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
57538:
57539: if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
57540: ai_p=$LDAP_LIBDIR
57541: else
57542:
57543: ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
57544:
57545: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
57546: ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
57547: fi
57548:
57549:
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:
57567: fi
57568:
57569: fi
57570:
57571:
57572: case prldap50 in
57573: c|c_r|pthread*) ;;
57574: *)
57575: LIBS="-lprldap50 $LIBS"
57576: ;;
57577: esac
57578:
57579:
57580:
57581:
57582: fi
57583:
57584:
57585:
57586:
57587: if test "$ext_shared" = "yes"; then
57588: LDAP_SHARED_LIBADD="-lssl3 $LDAP_SHARED_LIBADD"
57589: if test -n "$LDAP_LIBDIR"; then
57590:
57591: if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
57592:
57593: if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
57594: ai_p=$LDAP_LIBDIR
57595: else
57596:
57597: ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
57598:
57599: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
57600: ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
57601: fi
57602:
57603:
57604: if test "$ext_shared" = "yes"; then
57605: LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
57606: test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
57607: else
57608:
57609:
57610:
57611: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
57612:
57613: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
57614: if test -n "$unique" && test "`eval $cmd`" = "" ; then
57615: eval "LIBPATH$unique=set"
57616:
57617: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
57618: LDFLAGS="$LDFLAGS -L$ai_p"
57619: PHP_RPATHS="$PHP_RPATHS $ai_p"
57620:
57621: fi
57622:
57623:
57624: fi
57625:
57626: fi
57627:
57628: fi
57629: else
57630:
57631:
57632: if test -n "$LDAP_LIBDIR"; then
57633:
57634: if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
57635:
57636: if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
57637: ai_p=$LDAP_LIBDIR
57638: else
57639:
57640: ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
57641:
57642: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
57643: ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
57644: fi
57645:
57646:
57647:
57648:
57649:
57650: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
57651:
57652: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
57653: if test -n "$unique" && test "`eval $cmd`" = "" ; then
57654: eval "LIBPATH$unique=set"
57655:
57656: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
57657: LDFLAGS="$LDFLAGS -L$ai_p"
57658: PHP_RPATHS="$PHP_RPATHS $ai_p"
57659:
57660: fi
57661:
57662:
57663:
57664: fi
57665:
57666: fi
57667:
57668:
57669: case ssl3 in
57670: c|c_r|pthread*) ;;
57671: *)
57672: LIBS="-lssl3 $LIBS"
57673: ;;
57674: esac
57675:
57676:
57677:
57678:
57679: fi
57680:
57681:
57682:
57683: $as_echo "#define HAVE_NSLDAP 1" >>confdefs.h
57684:
57685:
57686: elif test -f $LDAP_LIBDIR/libldapssl41.$SHLIB_SUFFIX_NAME; then
57687: if test -n "$LDAP_PTHREAD"; then
57688:
57689:
57690: case $LDAP_PTHREAD in
57691: c|c_r|pthread*) ;;
57692: *)
57693: LIBS="-l$LDAP_PTHREAD $LIBS"
57694: ;;
57695: esac
57696:
57697:
57698: fi
57699:
57700:
57701: if test "$ext_shared" = "yes"; then
57702: LDAP_SHARED_LIBADD="-lnspr3 $LDAP_SHARED_LIBADD"
57703: if test -n "$LDAP_LIBDIR"; then
57704:
57705: if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
57706:
57707: if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
57708: ai_p=$LDAP_LIBDIR
57709: else
57710:
57711: ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
57712:
57713: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
57714: ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
57715: fi
57716:
57717:
57718: if test "$ext_shared" = "yes"; then
57719: LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
57720: test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
57721: else
57722:
57723:
57724:
57725: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
57726:
57727: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
57728: if test -n "$unique" && test "`eval $cmd`" = "" ; then
57729: eval "LIBPATH$unique=set"
57730:
57731: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
57732: LDFLAGS="$LDFLAGS -L$ai_p"
57733: PHP_RPATHS="$PHP_RPATHS $ai_p"
57734:
57735: fi
57736:
57737:
57738: fi
57739:
57740: fi
57741:
57742: fi
57743: else
57744:
57745:
57746: if test -n "$LDAP_LIBDIR"; then
57747:
57748: if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
57749:
57750: if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
57751: ai_p=$LDAP_LIBDIR
57752: else
57753:
57754: ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
57755:
57756: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
57757: ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
57758: fi
57759:
57760:
57761:
57762:
57763:
57764: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
57765:
57766: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
57767: if test -n "$unique" && test "`eval $cmd`" = "" ; then
57768: eval "LIBPATH$unique=set"
57769:
57770: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
57771: LDFLAGS="$LDFLAGS -L$ai_p"
57772: PHP_RPATHS="$PHP_RPATHS $ai_p"
57773:
57774: fi
57775:
57776:
57777:
57778: fi
57779:
57780: fi
57781:
57782:
57783: case nspr3 in
57784: c|c_r|pthread*) ;;
57785: *)
57786: LIBS="-lnspr3 $LIBS"
57787: ;;
57788: esac
57789:
57790:
57791:
57792:
57793: fi
57794:
57795:
57796:
57797:
57798: if test "$ext_shared" = "yes"; then
57799: LDAP_SHARED_LIBADD="-lplc3 $LDAP_SHARED_LIBADD"
57800: if test -n "$LDAP_LIBDIR"; then
57801:
57802: if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
57803:
57804: if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
57805: ai_p=$LDAP_LIBDIR
57806: else
57807:
57808: ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
57809:
57810: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
57811: ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
57812: fi
57813:
57814:
57815: if test "$ext_shared" = "yes"; then
57816: LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
57817: test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
57818: else
57819:
57820:
57821:
57822: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
57823:
57824: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
57825: if test -n "$unique" && test "`eval $cmd`" = "" ; then
57826: eval "LIBPATH$unique=set"
57827:
57828: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
57829: LDFLAGS="$LDFLAGS -L$ai_p"
57830: PHP_RPATHS="$PHP_RPATHS $ai_p"
57831:
57832: fi
57833:
57834:
57835: fi
57836:
57837: fi
57838:
57839: fi
57840: else
57841:
57842:
57843: if test -n "$LDAP_LIBDIR"; then
57844:
57845: if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
57846:
57847: if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
57848: ai_p=$LDAP_LIBDIR
57849: else
57850:
57851: ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
57852:
57853: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
57854: ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
57855: fi
57856:
57857:
57858:
57859:
57860:
57861: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
57862:
57863: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
57864: if test -n "$unique" && test "`eval $cmd`" = "" ; then
57865: eval "LIBPATH$unique=set"
57866:
57867: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
57868: LDFLAGS="$LDFLAGS -L$ai_p"
57869: PHP_RPATHS="$PHP_RPATHS $ai_p"
57870:
57871: fi
57872:
57873:
57874:
57875: fi
57876:
57877: fi
57878:
57879:
57880: case plc3 in
57881: c|c_r|pthread*) ;;
57882: *)
57883: LIBS="-lplc3 $LIBS"
57884: ;;
57885: esac
57886:
57887:
57888:
57889:
57890: fi
57891:
57892:
57893:
57894:
57895: if test "$ext_shared" = "yes"; then
57896: LDAP_SHARED_LIBADD="-lplds3 $LDAP_SHARED_LIBADD"
57897: if test -n "$LDAP_LIBDIR"; then
57898:
57899: if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
57900:
57901: if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
57902: ai_p=$LDAP_LIBDIR
57903: else
57904:
57905: ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
57906:
57907: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
57908: ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
57909: fi
57910:
57911:
57912: if test "$ext_shared" = "yes"; then
57913: LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
57914: test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
57915: else
57916:
57917:
57918:
57919: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
57920:
57921: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
57922: if test -n "$unique" && test "`eval $cmd`" = "" ; then
57923: eval "LIBPATH$unique=set"
57924:
57925: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
57926: LDFLAGS="$LDFLAGS -L$ai_p"
57927: PHP_RPATHS="$PHP_RPATHS $ai_p"
57928:
57929: fi
57930:
57931:
57932: fi
57933:
57934: fi
57935:
57936: fi
57937: else
57938:
57939:
57940: if test -n "$LDAP_LIBDIR"; then
57941:
57942: if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
57943:
57944: if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
57945: ai_p=$LDAP_LIBDIR
57946: else
57947:
57948: ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
57949:
57950: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
57951: ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
57952: fi
57953:
57954:
57955:
57956:
57957:
57958: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
57959:
57960: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
57961: if test -n "$unique" && test "`eval $cmd`" = "" ; then
57962: eval "LIBPATH$unique=set"
57963:
57964: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
57965: LDFLAGS="$LDFLAGS -L$ai_p"
57966: PHP_RPATHS="$PHP_RPATHS $ai_p"
57967:
57968: fi
57969:
57970:
57971:
57972: fi
57973:
57974: fi
57975:
57976:
57977: case plds3 in
57978: c|c_r|pthread*) ;;
57979: *)
57980: LIBS="-lplds3 $LIBS"
57981: ;;
57982: esac
57983:
57984:
57985:
57986:
57987: fi
57988:
57989:
57990:
57991:
57992: if test "$ext_shared" = "yes"; then
57993: LDAP_SHARED_LIBADD="-lldapssl41 $LDAP_SHARED_LIBADD"
57994: if test -n "$LDAP_LIBDIR"; then
57995:
57996: if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
57997:
57998: if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
57999: ai_p=$LDAP_LIBDIR
58000: else
58001:
58002: ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
58003:
58004: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
58005: ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
58006: fi
58007:
58008:
58009: if test "$ext_shared" = "yes"; then
58010: LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
58011: test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
58012: else
58013:
58014:
58015:
58016: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
58017:
58018: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
58019: if test -n "$unique" && test "`eval $cmd`" = "" ; then
58020: eval "LIBPATH$unique=set"
58021:
58022: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
58023: LDFLAGS="$LDFLAGS -L$ai_p"
58024: PHP_RPATHS="$PHP_RPATHS $ai_p"
58025:
58026: fi
58027:
58028:
58029: fi
58030:
58031: fi
58032:
58033: fi
58034: else
58035:
58036:
58037: if test -n "$LDAP_LIBDIR"; then
58038:
58039: if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
58040:
58041: if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
58042: ai_p=$LDAP_LIBDIR
58043: else
58044:
58045: ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
58046:
58047: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
58048: ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
58049: fi
58050:
58051:
58052:
58053:
58054:
58055: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
58056:
58057: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
58058: if test -n "$unique" && test "`eval $cmd`" = "" ; then
58059: eval "LIBPATH$unique=set"
58060:
58061: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
58062: LDFLAGS="$LDFLAGS -L$ai_p"
58063: PHP_RPATHS="$PHP_RPATHS $ai_p"
58064:
58065: fi
58066:
58067:
58068:
58069: fi
58070:
58071: fi
58072:
58073:
58074: case ldapssl41 in
58075: c|c_r|pthread*) ;;
58076: *)
58077: LIBS="-lldapssl41 $LIBS"
58078: ;;
58079: esac
58080:
58081:
58082:
58083:
58084: fi
58085:
58086:
58087:
58088: $as_echo "#define HAVE_NSLDAP 1" >>confdefs.h
58089:
58090:
58091: elif test -f $LDAP_LIBDIR/libldapssl30.$SHLIB_SUFFIX_NAME; then
58092: if test -n "$LDAP_PTHREAD"; then
58093:
58094:
58095: case $LDAP_PTHREAD in
58096: c|c_r|pthread*) ;;
58097: *)
58098: LIBS="-l$LDAP_PTHREAD $LIBS"
58099: ;;
58100: esac
58101:
58102:
58103: fi
58104:
58105:
58106: if test "$ext_shared" = "yes"; then
58107: LDAP_SHARED_LIBADD="-lldapssl30 $LDAP_SHARED_LIBADD"
58108: if test -n "$LDAP_LIBDIR"; then
58109:
58110: if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
58111:
58112: if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
58113: ai_p=$LDAP_LIBDIR
58114: else
58115:
58116: ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
58117:
58118: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
58119: ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
58120: fi
58121:
58122:
58123: if test "$ext_shared" = "yes"; then
58124: LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
58125: test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
58126: else
58127:
58128:
58129:
58130: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
58131:
58132: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
58133: if test -n "$unique" && test "`eval $cmd`" = "" ; then
58134: eval "LIBPATH$unique=set"
58135:
58136: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
58137: LDFLAGS="$LDFLAGS -L$ai_p"
58138: PHP_RPATHS="$PHP_RPATHS $ai_p"
58139:
58140: fi
58141:
58142:
58143: fi
58144:
58145: fi
58146:
58147: fi
58148: else
58149:
58150:
58151: if test -n "$LDAP_LIBDIR"; then
58152:
58153: if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
58154:
58155: if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
58156: ai_p=$LDAP_LIBDIR
58157: else
58158:
58159: ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
58160:
58161: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
58162: ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
58163: fi
58164:
58165:
58166:
58167:
58168:
58169: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
58170:
58171: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
58172: if test -n "$unique" && test "`eval $cmd`" = "" ; then
58173: eval "LIBPATH$unique=set"
58174:
58175: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
58176: LDFLAGS="$LDFLAGS -L$ai_p"
58177: PHP_RPATHS="$PHP_RPATHS $ai_p"
58178:
58179: fi
58180:
58181:
58182:
58183: fi
58184:
58185: fi
58186:
58187:
58188: case ldapssl30 in
58189: c|c_r|pthread*) ;;
58190: *)
58191: LIBS="-lldapssl30 $LIBS"
58192: ;;
58193: esac
58194:
58195:
58196:
58197:
58198: fi
58199:
58200:
58201:
58202: $as_echo "#define HAVE_NSLDAP 1" >>confdefs.h
58203:
58204:
58205: elif test -f $LDAP_LIBDIR/libldap30.$SHLIB_SUFFIX_NAME; then
58206: if test -n "$LDAP_PTHREAD"; then
58207:
58208:
58209: case $LDAP_PTHREAD in
58210: c|c_r|pthread*) ;;
58211: *)
58212: LIBS="-l$LDAP_PTHREAD $LIBS"
58213: ;;
58214: esac
58215:
58216:
58217: fi
58218:
58219:
58220: if test "$ext_shared" = "yes"; then
58221: LDAP_SHARED_LIBADD="-lldap30 $LDAP_SHARED_LIBADD"
58222: if test -n "$LDAP_LIBDIR"; then
58223:
58224: if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
58225:
58226: if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
58227: ai_p=$LDAP_LIBDIR
58228: else
58229:
58230: ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
58231:
58232: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
58233: ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
58234: fi
58235:
58236:
58237: if test "$ext_shared" = "yes"; then
58238: LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
58239: test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
58240: else
58241:
58242:
58243:
58244: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
58245:
58246: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
58247: if test -n "$unique" && test "`eval $cmd`" = "" ; then
58248: eval "LIBPATH$unique=set"
58249:
58250: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
58251: LDFLAGS="$LDFLAGS -L$ai_p"
58252: PHP_RPATHS="$PHP_RPATHS $ai_p"
58253:
58254: fi
58255:
58256:
58257: fi
58258:
58259: fi
58260:
58261: fi
58262: else
58263:
58264:
58265: if test -n "$LDAP_LIBDIR"; then
58266:
58267: if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
58268:
58269: if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
58270: ai_p=$LDAP_LIBDIR
58271: else
58272:
58273: ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
58274:
58275: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
58276: ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
58277: fi
58278:
58279:
58280:
58281:
58282:
58283: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
58284:
58285: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
58286: if test -n "$unique" && test "`eval $cmd`" = "" ; then
58287: eval "LIBPATH$unique=set"
58288:
58289: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
58290: LDFLAGS="$LDFLAGS -L$ai_p"
58291: PHP_RPATHS="$PHP_RPATHS $ai_p"
58292:
58293: fi
58294:
58295:
58296:
58297: fi
58298:
58299: fi
58300:
58301:
58302: case ldap30 in
58303: c|c_r|pthread*) ;;
58304: *)
58305: LIBS="-lldap30 $LIBS"
58306: ;;
58307: esac
58308:
58309:
58310:
58311:
58312: fi
58313:
58314:
58315:
58316: $as_echo "#define HAVE_NSLDAP 1" >>confdefs.h
58317:
58318:
58319: elif test -f $LDAP_LIBDIR/libumich_ldap.$SHLIB_SUFFIX_NAME; then
58320:
58321:
58322: if test "$ext_shared" = "yes"; then
58323: LDAP_SHARED_LIBADD="-lumich_lber $LDAP_SHARED_LIBADD"
58324: if test -n "$LDAP_LIBDIR"; then
58325:
58326: if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
58327:
58328: if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
58329: ai_p=$LDAP_LIBDIR
58330: else
58331:
58332: ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
58333:
58334: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
58335: ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
58336: fi
58337:
58338:
58339: if test "$ext_shared" = "yes"; then
58340: LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
58341: test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
58342: else
58343:
58344:
58345:
58346: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
58347:
58348: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
58349: if test -n "$unique" && test "`eval $cmd`" = "" ; then
58350: eval "LIBPATH$unique=set"
58351:
58352: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
58353: LDFLAGS="$LDFLAGS -L$ai_p"
58354: PHP_RPATHS="$PHP_RPATHS $ai_p"
58355:
58356: fi
58357:
58358:
58359: fi
58360:
58361: fi
58362:
58363: fi
58364: else
58365:
58366:
58367: if test -n "$LDAP_LIBDIR"; then
58368:
58369: if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
58370:
58371: if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
58372: ai_p=$LDAP_LIBDIR
58373: else
58374:
58375: ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
58376:
58377: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
58378: ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
58379: fi
58380:
58381:
58382:
58383:
58384:
58385: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
58386:
58387: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
58388: if test -n "$unique" && test "`eval $cmd`" = "" ; then
58389: eval "LIBPATH$unique=set"
58390:
58391: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
58392: LDFLAGS="$LDFLAGS -L$ai_p"
58393: PHP_RPATHS="$PHP_RPATHS $ai_p"
58394:
58395: fi
58396:
58397:
58398:
58399: fi
58400:
58401: fi
58402:
58403:
58404: case umich_lber in
58405: c|c_r|pthread*) ;;
58406: *)
58407: LIBS="-lumich_lber $LIBS"
58408: ;;
58409: esac
58410:
58411:
58412:
58413:
58414: fi
58415:
58416:
58417:
58418:
58419: if test "$ext_shared" = "yes"; then
58420: LDAP_SHARED_LIBADD="-lumich_ldap $LDAP_SHARED_LIBADD"
58421: if test -n "$LDAP_LIBDIR"; then
58422:
58423: if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
58424:
58425: if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
58426: ai_p=$LDAP_LIBDIR
58427: else
58428:
58429: ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
58430:
58431: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
58432: ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
58433: fi
58434:
58435:
58436: if test "$ext_shared" = "yes"; then
58437: LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
58438: test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
58439: else
58440:
58441:
58442:
58443: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
58444:
58445: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
58446: if test -n "$unique" && test "`eval $cmd`" = "" ; then
58447: eval "LIBPATH$unique=set"
58448:
58449: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
58450: LDFLAGS="$LDFLAGS -L$ai_p"
58451: PHP_RPATHS="$PHP_RPATHS $ai_p"
58452:
58453: fi
58454:
58455:
58456: fi
58457:
58458: fi
58459:
58460: fi
58461: else
58462:
58463:
58464: if test -n "$LDAP_LIBDIR"; then
58465:
58466: if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
58467:
58468: if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
58469: ai_p=$LDAP_LIBDIR
58470: else
58471:
58472: ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
58473:
58474: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
58475: ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
58476: fi
58477:
58478:
58479:
58480:
58481:
58482: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
58483:
58484: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
58485: if test -n "$unique" && test "`eval $cmd`" = "" ; then
58486: eval "LIBPATH$unique=set"
58487:
58488: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
58489: LDFLAGS="$LDFLAGS -L$ai_p"
58490: PHP_RPATHS="$PHP_RPATHS $ai_p"
58491:
58492: fi
58493:
58494:
58495:
58496: fi
58497:
58498: fi
58499:
58500:
58501: case umich_ldap in
58502: c|c_r|pthread*) ;;
58503: *)
58504: LIBS="-lumich_ldap $LIBS"
58505: ;;
58506: esac
58507:
58508:
58509:
58510:
58511: fi
58512:
58513:
58514:
58515: elif test -f $LDAP_LIBDIR/libclntsh.$SHLIB_SUFFIX_NAME; then
58516:
58517:
58518: if test "$ext_shared" = "yes"; then
58519: LDAP_SHARED_LIBADD="-lclntsh $LDAP_SHARED_LIBADD"
58520: if test -n "$LDAP_LIBDIR"; then
58521:
58522: if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
58523:
58524: if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
58525: ai_p=$LDAP_LIBDIR
58526: else
58527:
58528: ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
58529:
58530: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
58531: ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
58532: fi
58533:
58534:
58535: if test "$ext_shared" = "yes"; then
58536: LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
58537: test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
58538: else
58539:
58540:
58541:
58542: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
58543:
58544: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
58545: if test -n "$unique" && test "`eval $cmd`" = "" ; then
58546: eval "LIBPATH$unique=set"
58547:
58548: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
58549: LDFLAGS="$LDFLAGS -L$ai_p"
58550: PHP_RPATHS="$PHP_RPATHS $ai_p"
58551:
58552: fi
58553:
58554:
58555: fi
58556:
58557: fi
58558:
58559: fi
58560: else
58561:
58562:
58563: if test -n "$LDAP_LIBDIR"; then
58564:
58565: if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
58566:
58567: if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
58568: ai_p=$LDAP_LIBDIR
58569: else
58570:
58571: ep_dir="`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
58572:
58573: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
58574: ai_p="$ep_realdir/`basename \"$LDAP_LIBDIR\"`"
58575: fi
58576:
58577:
58578:
58579:
58580:
58581: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
58582:
58583: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
58584: if test -n "$unique" && test "`eval $cmd`" = "" ; then
58585: eval "LIBPATH$unique=set"
58586:
58587: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
58588: LDFLAGS="$LDFLAGS -L$ai_p"
58589: PHP_RPATHS="$PHP_RPATHS $ai_p"
58590:
58591: fi
58592:
58593:
58594:
58595: fi
58596:
58597: fi
58598:
58599:
58600: case clntsh in
58601: c|c_r|pthread*) ;;
58602: *)
58603: LIBS="-lclntsh $LIBS"
58604: ;;
58605: esac
58606:
58607:
58608:
58609:
58610: fi
58611:
58612:
58613:
58614: $as_echo "#define HAVE_ORALDAP 1" >>confdefs.h
58615:
58616: if test -f $LDAP_LIBDIR/libclntsh.$SHLIB_SUFFIX_NAME.10.1; then
58617:
58618: $as_echo "#define HAVE_ORALDAP_10 1" >>confdefs.h
58619:
58620: fi
58621: else
58622: as_fn_error $? "Cannot find ldap libraries in $LDAP_LIBDIR." "$LINENO" 5
58623: fi
58624:
58625:
58626: if test "$LDAP_INCDIR" != "/usr/include"; then
58627:
58628: if test -z "$LDAP_INCDIR" || echo "$LDAP_INCDIR" | grep '^/' >/dev/null ; then
58629: ai_p=$LDAP_INCDIR
58630: else
58631:
58632: ep_dir="`echo $LDAP_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`"
58633:
58634: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
58635: ai_p="$ep_realdir/`basename \"$LDAP_INCDIR\"`"
58636: fi
58637:
58638:
58639:
58640: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
58641:
58642: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
58643: if test -n "$unique" && test "`eval $cmd`" = "" ; then
58644: eval "INCLUDEPATH$unique=set"
58645:
58646: if test ""; then
58647: INCLUDES="-I$ai_p $INCLUDES"
58648: else
58649: INCLUDES="$INCLUDES -I$ai_p"
58650: fi
58651:
58652: fi
58653:
58654: fi
58655:
58656:
58657: PHP_VAR_SUBST="$PHP_VAR_SUBST LDAP_SHARED_LIBADD"
58658:
58659:
58660: $as_echo "#define HAVE_LDAP 1" >>confdefs.h
58661:
58662:
58663: _SAVE_CPPFLAGS=$CPPFLAGS
58664: _SAVE_LIBS=$LIBS
58665: CPPFLAGS="$CPPFLAGS -I$LDAP_INCDIR"
58666: LIBS="$LIBS $LDAP_SHARED_LIBADD"
58667:
58668: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 3 arg ldap_set_rebind_proc" >&5
58669: $as_echo_n "checking for 3 arg ldap_set_rebind_proc... " >&6; }
58670: if ${ac_cv_3arg_setrebindproc+:} false; then :
58671: $as_echo_n "(cached) " >&6
58672: else
58673: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58674: /* end confdefs.h. */
58675: #include <ldap.h>
58676: int
58677: main ()
58678: {
58679: ldap_set_rebind_proc(0,0,0)
58680: ;
58681: return 0;
58682: }
58683: _ACEOF
58684: if ac_fn_c_try_compile "$LINENO"; then :
58685: ac_cv_3arg_setrebindproc=yes
58686: else
58687: ac_cv_3arg_setrebindproc=no
58688: fi
58689: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58690: fi
58691: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_3arg_setrebindproc" >&5
58692: $as_echo "$ac_cv_3arg_setrebindproc" >&6; }
58693: if test "$ac_cv_3arg_setrebindproc" = yes; then
58694:
58695: $as_echo "#define HAVE_3ARG_SETREBINDPROC 1" >>confdefs.h
58696:
58697: fi
58698:
58699: for ac_func in ldap_parse_result ldap_parse_reference ldap_start_tls_s
58700: do :
58701: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
58702: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
58703: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
58704: cat >>confdefs.h <<_ACEOF
58705: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
58706: _ACEOF
58707:
58708: fi
58709: done
58710:
58711:
58712: if test "$PHP_LDAP_SASL" != "no"; then
58713:
58714: if test "$PHP_LDAP_SASL" = "yes"; then
58715: SEARCH_DIRS="/usr/local /usr"
58716: else
58717: SEARCH_DIRS=$PHP_LDAP_SASL
58718: fi
58719:
58720: for i in $SEARCH_DIRS; do
58721: if test -f $i/include/sasl/sasl.h; then
58722: LDAP_SASL_DIR=$i
58723:
58724: $as_echo "#define HAVE_LDAP_SASL_SASL_H 1" >>confdefs.h
58725:
58726: break
58727: elif test -f $i/include/sasl.h; then
58728: LDAP_SASL_DIR=$i
58729:
58730: $as_echo "#define HAVE_LDAP_SASL_H 1" >>confdefs.h
58731:
58732: break
58733: fi
58734: done
58735:
58736: if test "$LDAP_SASL_DIR"; then
58737: LDAP_SASL_INCDIR=$LDAP_SASL_DIR/include
58738: LDAP_SASL_LIBDIR=$LDAP_SASL_DIR/$PHP_LIBDIR
58739: else
58740: as_fn_error $? "sasl.h not found!" "$LINENO" 5
58741: fi
58742:
58743: if test "$PHP_LDAP_SASL" = "yes"; then
58744: SASL_LIB="-lsasl2"
58745: else
58746: SASL_LIB="-L$LDAP_SASL_LIBDIR -lsasl2"
58747: fi
58748:
58749:
58750: save_old_LDFLAGS=$LDFLAGS
58751: ac_stuff="
58752: $LDAP_SHARED_LIBADD $SASL_LIB
58753: "
58754:
58755: save_ext_shared=$ext_shared
58756: ext_shared=yes
58757:
58758: for ac_i in $ac_stuff; do
58759: case $ac_i in
58760: -pthread)
58761: if test "$ext_shared" = "yes"; then
58762: LDFLAGS="$LDFLAGS -pthread"
58763: else
58764:
58765:
58766: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
58767:
58768: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
58769: if test -n "$unique" && test "`eval $cmd`" = "" ; then
58770: eval "EXTRA_LDFLAGS$unique=set"
58771: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
58772: fi
58773:
58774: fi
58775: ;;
58776: -l*)
58777: ac_ii=`echo $ac_i|cut -c 3-`
58778:
58779:
58780: case $ac_ii in
58781: c|c_r|pthread*) ;;
58782: *)
58783: if test "$ext_shared" = "yes"; then
58784: LDFLAGS="$LDFLAGS -l$ac_ii"
58785: else
58786:
58787:
58788: case $ac_ii in
58789: c|c_r|pthread*) ;;
58790: *)
58791: LIBS="$LIBS -l$ac_ii"
58792: ;;
58793: esac
58794:
58795:
58796: fi
58797: ;;
58798: esac
58799:
58800:
58801: ;;
58802: -L*)
58803: ac_ii=`echo $ac_i|cut -c 3-`
58804:
58805: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
58806:
58807: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
58808: ai_p=$ac_ii
58809: else
58810:
58811: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
58812:
58813: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
58814: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
58815: fi
58816:
58817:
58818: if test "$ext_shared" = "yes"; then
58819: LDFLAGS="-L$ai_p $LDFLAGS"
58820: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
58821: else
58822:
58823:
58824:
58825: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
58826:
58827: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
58828: if test -n "$unique" && test "`eval $cmd`" = "" ; then
58829: eval "LIBPATH$unique=set"
58830:
58831: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
58832: LDFLAGS="$LDFLAGS -L$ai_p"
58833: PHP_RPATHS="$PHP_RPATHS $ai_p"
58834:
58835: fi
58836:
58837:
58838: fi
58839:
58840: fi
58841:
58842: ;;
58843: esac
58844: done
58845:
58846: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sasl_version in -lsasl2" >&5
58847: $as_echo_n "checking for sasl_version in -lsasl2... " >&6; }
58848: if ${ac_cv_lib_sasl2_sasl_version+:} false; then :
58849: $as_echo_n "(cached) " >&6
58850: else
58851: ac_check_lib_save_LIBS=$LIBS
58852: LIBS="-lsasl2 $LIBS"
58853: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58854: /* end confdefs.h. */
58855:
58856: /* Override any GCC internal prototype to avoid an error.
58857: Use char because int might match the return type of a GCC
58858: builtin and then its argument prototype would still apply. */
58859: #ifdef __cplusplus
58860: extern "C"
58861: #endif
58862: char sasl_version ();
58863: int
58864: main ()
58865: {
58866: return sasl_version ();
58867: ;
58868: return 0;
58869: }
58870: _ACEOF
58871: if ac_fn_c_try_link "$LINENO"; then :
58872: ac_cv_lib_sasl2_sasl_version=yes
58873: else
58874: ac_cv_lib_sasl2_sasl_version=no
58875: fi
58876: rm -f core conftest.err conftest.$ac_objext \
58877: conftest$ac_exeext conftest.$ac_ext
58878: LIBS=$ac_check_lib_save_LIBS
58879: fi
58880: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl2_sasl_version" >&5
58881: $as_echo "$ac_cv_lib_sasl2_sasl_version" >&6; }
58882: if test "x$ac_cv_lib_sasl2_sasl_version" = xyes; then :
58883:
58884: LDFLAGS=$save_old_LDFLAGS
58885: ext_shared=$save_ext_shared
58886:
58887:
58888: if test "$LDAP_SASL_INCDIR" != "/usr/include"; then
58889:
58890: if test -z "$LDAP_SASL_INCDIR" || echo "$LDAP_SASL_INCDIR" | grep '^/' >/dev/null ; then
58891: ai_p=$LDAP_SASL_INCDIR
58892: else
58893:
58894: ep_dir="`echo $LDAP_SASL_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`"
58895:
58896: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
58897: ai_p="$ep_realdir/`basename \"$LDAP_SASL_INCDIR\"`"
58898: fi
58899:
58900:
58901:
58902: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
58903:
58904: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
58905: if test -n "$unique" && test "`eval $cmd`" = "" ; then
58906: eval "INCLUDEPATH$unique=set"
58907:
58908: if test ""; then
58909: INCLUDES="-I$ai_p $INCLUDES"
58910: else
58911: INCLUDES="$INCLUDES -I$ai_p"
58912: fi
58913:
58914: fi
58915:
58916: fi
58917:
58918:
58919:
58920: if test "$ext_shared" = "yes"; then
58921: LDAP_SHARED_LIBADD="-lsasl2 $LDAP_SHARED_LIBADD"
58922: if test -n "$LDAP_SASL_LIBDIR"; then
58923:
58924: if test "$LDAP_SASL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_SASL_LIBDIR" != "/usr/lib"; then
58925:
58926: if test -z "$LDAP_SASL_LIBDIR" || echo "$LDAP_SASL_LIBDIR" | grep '^/' >/dev/null ; then
58927: ai_p=$LDAP_SASL_LIBDIR
58928: else
58929:
58930: ep_dir="`echo $LDAP_SASL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
58931:
58932: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
58933: ai_p="$ep_realdir/`basename \"$LDAP_SASL_LIBDIR\"`"
58934: fi
58935:
58936:
58937: if test "$ext_shared" = "yes"; then
58938: LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
58939: test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
58940: else
58941:
58942:
58943:
58944: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
58945:
58946: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
58947: if test -n "$unique" && test "`eval $cmd`" = "" ; then
58948: eval "LIBPATH$unique=set"
58949:
58950: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
58951: LDFLAGS="$LDFLAGS -L$ai_p"
58952: PHP_RPATHS="$PHP_RPATHS $ai_p"
58953:
58954: fi
58955:
58956:
58957: fi
58958:
58959: fi
58960:
58961: fi
58962: else
58963:
58964:
58965: if test -n "$LDAP_SASL_LIBDIR"; then
58966:
58967: if test "$LDAP_SASL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_SASL_LIBDIR" != "/usr/lib"; then
58968:
58969: if test -z "$LDAP_SASL_LIBDIR" || echo "$LDAP_SASL_LIBDIR" | grep '^/' >/dev/null ; then
58970: ai_p=$LDAP_SASL_LIBDIR
58971: else
58972:
58973: ep_dir="`echo $LDAP_SASL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
58974:
58975: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
58976: ai_p="$ep_realdir/`basename \"$LDAP_SASL_LIBDIR\"`"
58977: fi
58978:
58979:
58980:
58981:
58982:
58983: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
58984:
58985: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
58986: if test -n "$unique" && test "`eval $cmd`" = "" ; then
58987: eval "LIBPATH$unique=set"
58988:
58989: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
58990: LDFLAGS="$LDFLAGS -L$ai_p"
58991: PHP_RPATHS="$PHP_RPATHS $ai_p"
58992:
58993: fi
58994:
58995:
58996:
58997: fi
58998:
58999: fi
59000:
59001:
59002: case sasl2 in
59003: c|c_r|pthread*) ;;
59004: *)
59005: LIBS="-lsasl2 $LIBS"
59006: ;;
59007: esac
59008:
59009:
59010:
59011:
59012: fi
59013:
59014:
59015:
59016: $as_echo "#define HAVE_LDAP_SASL 1" >>confdefs.h
59017:
59018:
59019:
59020: else
59021:
59022: LDFLAGS=$save_old_LDFLAGS
59023: ext_shared=$save_ext_shared
59024: unset ac_cv_lib_sasl2_sasl_version
59025:
59026: as_fn_error $? "LDAP SASL check failed. Please check config.log for more information." "$LINENO" 5
59027:
59028:
59029: fi
59030:
59031:
59032: fi
59033:
59034: ac_fn_c_check_func "$LINENO" "ldap_bind_s" "ac_cv_func_ldap_bind_s"
59035: if test "x$ac_cv_func_ldap_bind_s" = xyes; then :
59036:
59037: else
59038:
59039: as_fn_error $? "LDAP build check failed. Please check config.log for more information." "$LINENO" 5
59040:
59041: fi
59042:
59043:
59044: CPPFLAGS=$_SAVE_CPPFLAGS
59045: LIBS=$_SAVE_LIBS
59046: fi
59047:
59048:
59049:
59050:
59051:
59052:
59053:
59054:
59055:
59056:
59057:
59058:
59059:
59060:
59061:
59062:
59063:
59064:
59065:
59066:
59067:
59068:
59069:
59070:
59071: php_enable_mbstring=no
59072:
59073: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable multibyte string support" >&5
59074: $as_echo_n "checking whether to enable multibyte string support... " >&6; }
59075: # Check whether --enable-mbstring was given.
59076: if test "${enable_mbstring+set}" = set; then :
59077: enableval=$enable_mbstring; PHP_MBSTRING=$enableval
59078: else
59079:
59080: PHP_MBSTRING=no
59081: test "$PHP_ENABLE_ALL" && PHP_MBSTRING=$PHP_ENABLE_ALL
59082:
59083: fi
59084:
59085:
59086:
59087: ext_output="yes, shared"
59088: ext_shared=yes
59089: case $PHP_MBSTRING in
59090: shared,*)
59091: PHP_MBSTRING=`echo "$PHP_MBSTRING"|$SED 's/^shared,//'`
59092: ;;
59093: shared)
59094: PHP_MBSTRING=yes
59095: ;;
59096: no)
59097: ext_output=no
59098: ext_shared=no
59099: ;;
59100: *)
59101: ext_output=yes
59102: ext_shared=no
59103: ;;
59104: esac
59105:
59106:
59107:
59108: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
59109: $as_echo "$ext_output" >&6; }
59110:
59111:
59112:
59113:
59114:
59115: php_enable_mbregex=yes
59116:
59117: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable multibyte regex support" >&5
59118: $as_echo_n "checking whether to enable multibyte regex support... " >&6; }
59119: # Check whether --enable-mbregex was given.
59120: if test "${enable_mbregex+set}" = set; then :
59121: enableval=$enable_mbregex; PHP_MBREGEX=$enableval
59122: else
59123:
59124: PHP_MBREGEX=yes
59125:
59126:
59127: fi
59128:
59129:
59130: ext_output=$PHP_MBREGEX
59131: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
59132: $as_echo "$ext_output" >&6; }
59133:
59134:
59135:
59136:
59137:
59138: php_enable_mbregex_backtrack=yes
59139:
59140: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check multibyte regex backtrack" >&5
59141: $as_echo_n "checking whether to check multibyte regex backtrack... " >&6; }
59142: # Check whether --enable-mbregex_backtrack was given.
59143: if test "${enable_mbregex_backtrack+set}" = set; then :
59144: enableval=$enable_mbregex_backtrack; PHP_MBREGEX_BACKTRACK=$enableval
59145: else
59146:
59147: PHP_MBREGEX_BACKTRACK=yes
59148:
59149:
59150: fi
59151:
59152:
59153: ext_output=$PHP_MBREGEX_BACKTRACK
59154: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
59155: $as_echo "$ext_output" >&6; }
59156:
59157:
59158:
59159:
59160:
59161: php_with_libmbfl=no
59162:
59163: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for external libmbfl" >&5
59164: $as_echo_n "checking for external libmbfl... " >&6; }
59165:
59166: # Check whether --with-libmbfl was given.
59167: if test "${with_libmbfl+set}" = set; then :
59168: withval=$with_libmbfl; PHP_LIBMBFL=$withval
59169: else
59170:
59171: PHP_LIBMBFL=no
59172:
59173:
59174: fi
59175:
59176:
59177: ext_output=$PHP_LIBMBFL
59178: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
59179: $as_echo "$ext_output" >&6; }
59180:
59181:
59182:
59183:
59184:
59185: php_with_onig=no
59186:
59187: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for external oniguruma" >&5
59188: $as_echo_n "checking for external oniguruma... " >&6; }
59189:
59190: # Check whether --with-onig was given.
59191: if test "${with_onig+set}" = set; then :
59192: withval=$with_onig; PHP_ONIG=$withval
59193: else
59194:
59195: PHP_ONIG=no
59196:
59197:
59198: fi
59199:
59200:
59201: ext_output=$PHP_ONIG
59202: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
59203: $as_echo "$ext_output" >&6; }
59204:
59205:
59206:
59207:
59208: if test "$PHP_MBSTRING" != "no"; then
59209:
59210: $as_echo "#define HAVE_MBSTRING 1" >>confdefs.h
59211:
59212:
59213:
59214: PHP_MBSTRING_BASE_SOURCES="$PHP_MBSTRING_BASE_SOURCES mbstring.c php_unicode.c mb_gpc.c"
59215:
59216:
59217: if test "$PHP_MBREGEX" != "no"; then
59218:
59219: if test "$PHP_MBREGEX" = "yes"; then
59220: if test "$PHP_ONIG" = "yes" || test "$PHP_ONIG" = "no"; then
59221: if test "$PHP_MBREGEX_BACKTRACK" != "no"; then
59222:
59223: $as_echo "#define USE_COMBINATION_EXPLOSION_CHECK 1" >>confdefs.h
59224:
59225: fi
59226:
59227: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable length prototypes and stdarg.h" >&5
59228: $as_echo_n "checking for variable length prototypes and stdarg.h... " >&6; }
59229: if ${php_cv_mbstring_stdarg+:} false; then :
59230: $as_echo_n "(cached) " >&6
59231: else
59232:
59233: if test "$cross_compiling" = yes; then :
59234:
59235: case $host_alias in
59236: *netware*)
59237: php_cv_mbstring_stdarg=yes
59238: ;;
59239: *)
59240: php_cv_mbstring_stdarg=no
59241: ;;
59242: esac
59243:
59244: else
59245: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59246: /* end confdefs.h. */
59247:
59248: #include <stdarg.h>
59249: int foo(int x, ...) {
59250: va_list va;
59251: va_start(va, x);
59252: va_arg(va, int);
59253: va_arg(va, char *);
59254: va_arg(va, double);
59255: return 0;
59256: }
59257: int main() { return foo(10, "", 3.14); }
59258:
59259: _ACEOF
59260: if ac_fn_c_try_run "$LINENO"; then :
59261: php_cv_mbstring_stdarg=yes
59262: else
59263: php_cv_mbstring_stdarg=no
59264: fi
59265: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
59266: conftest.$ac_objext conftest.beam conftest.$ac_ext
59267: fi
59268:
59269:
59270: fi
59271: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_mbstring_stdarg" >&5
59272: $as_echo "$php_cv_mbstring_stdarg" >&6; }
59273:
59274: for ac_header in stdlib.h string.h strings.h unistd.h sys/time.h sys/times.h stdarg.h
59275: do :
59276: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
59277: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
59278: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
59279: cat >>confdefs.h <<_ACEOF
59280: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
59281: _ACEOF
59282:
59283: fi
59284:
59285: done
59286:
59287: # The cast to long int works around a bug in the HP C Compiler
59288: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
59289: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
59290: # This bug is HP SR number 8606223364.
59291: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
59292: $as_echo_n "checking size of int... " >&6; }
59293: if ${ac_cv_sizeof_int+:} false; then :
59294: $as_echo_n "(cached) " >&6
59295: else
59296: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
59297:
59298: else
59299: if test "$ac_cv_type_int" = yes; then
59300: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
59301: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
59302: as_fn_error 77 "cannot compute sizeof (int)
59303: See \`config.log' for more details" "$LINENO" 5; }
59304: else
59305: ac_cv_sizeof_int=0
59306: fi
59307: fi
59308:
59309: fi
59310: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
59311: $as_echo "$ac_cv_sizeof_int" >&6; }
59312:
59313:
59314:
59315: cat >>confdefs.h <<_ACEOF
59316: #define SIZEOF_INT $ac_cv_sizeof_int
59317: _ACEOF
59318:
59319:
59320: # The cast to long int works around a bug in the HP C Compiler
59321: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
59322: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
59323: # This bug is HP SR number 8606223364.
59324: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
59325: $as_echo_n "checking size of short... " >&6; }
59326: if ${ac_cv_sizeof_short+:} false; then :
59327: $as_echo_n "(cached) " >&6
59328: else
59329: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
59330:
59331: else
59332: if test "$ac_cv_type_short" = yes; then
59333: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
59334: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
59335: as_fn_error 77 "cannot compute sizeof (short)
59336: See \`config.log' for more details" "$LINENO" 5; }
59337: else
59338: ac_cv_sizeof_short=0
59339: fi
59340: fi
59341:
59342: fi
59343: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
59344: $as_echo "$ac_cv_sizeof_short" >&6; }
59345:
59346:
59347:
59348: cat >>confdefs.h <<_ACEOF
59349: #define SIZEOF_SHORT $ac_cv_sizeof_short
59350: _ACEOF
59351:
59352:
59353: # The cast to long int works around a bug in the HP C Compiler
59354: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
59355: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
59356: # This bug is HP SR number 8606223364.
59357: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
59358: $as_echo_n "checking size of long... " >&6; }
59359: if ${ac_cv_sizeof_long+:} false; then :
59360: $as_echo_n "(cached) " >&6
59361: else
59362: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
59363:
59364: else
59365: if test "$ac_cv_type_long" = yes; then
59366: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
59367: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
59368: as_fn_error 77 "cannot compute sizeof (long)
59369: See \`config.log' for more details" "$LINENO" 5; }
59370: else
59371: ac_cv_sizeof_long=0
59372: fi
59373: fi
59374:
59375: fi
59376: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
59377: $as_echo "$ac_cv_sizeof_long" >&6; }
59378:
59379:
59380:
59381: cat >>confdefs.h <<_ACEOF
59382: #define SIZEOF_LONG $ac_cv_sizeof_long
59383: _ACEOF
59384:
59385:
59386: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
59387: $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
59388: if ${ac_cv_c_const+:} false; then :
59389: $as_echo_n "(cached) " >&6
59390: else
59391: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59392: /* end confdefs.h. */
59393:
59394: int
59395: main ()
59396: {
59397: /* FIXME: Include the comments suggested by Paul. */
59398: #ifndef __cplusplus
59399: /* Ultrix mips cc rejects this. */
59400: typedef int charset[2];
59401: const charset cs;
59402: /* SunOS 4.1.1 cc rejects this. */
59403: char const *const *pcpcc;
59404: char **ppc;
59405: /* NEC SVR4.0.2 mips cc rejects this. */
59406: struct point {int x, y;};
59407: static struct point const zero = {0,0};
59408: /* AIX XL C 1.02.0.0 rejects this.
59409: It does not let you subtract one const X* pointer from another in
59410: an arm of an if-expression whose if-part is not a constant
59411: expression */
59412: const char *g = "string";
59413: pcpcc = &g + (g ? g-g : 0);
59414: /* HPUX 7.0 cc rejects these. */
59415: ++pcpcc;
59416: ppc = (char**) pcpcc;
59417: pcpcc = (char const *const *) ppc;
59418: { /* SCO 3.2v4 cc rejects this. */
59419: char *t;
59420: char const *s = 0 ? (char *) 0 : (char const *) 0;
59421:
59422: *t++ = 0;
59423: if (s) return 0;
59424: }
59425: { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
59426: int x[] = {25, 17};
59427: const int *foo = &x[0];
59428: ++foo;
59429: }
59430: { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
59431: typedef const int *iptr;
59432: iptr p = 0;
59433: ++p;
59434: }
59435: { /* AIX XL C 1.02.0.0 rejects this saying
59436: "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
59437: struct s { int j; const int *ap[3]; };
59438: struct s *b; b->j = 5;
59439: }
59440: { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
59441: const int foo = 10;
59442: if (!foo) return 0;
59443: }
59444: return !cs[0] && !zero.x;
59445: #endif
59446:
59447: ;
59448: return 0;
59449: }
59450: _ACEOF
59451: if ac_fn_c_try_compile "$LINENO"; then :
59452: ac_cv_c_const=yes
59453: else
59454: ac_cv_c_const=no
59455: fi
59456: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
59457: fi
59458: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
59459: $as_echo "$ac_cv_c_const" >&6; }
59460: if test $ac_cv_c_const = no; then
59461:
59462: $as_echo "#define const /**/" >>confdefs.h
59463:
59464: fi
59465:
59466: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
59467: $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
59468: if ${ac_cv_header_time+:} false; then :
59469: $as_echo_n "(cached) " >&6
59470: else
59471: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59472: /* end confdefs.h. */
59473: #include <sys/types.h>
59474: #include <sys/time.h>
59475: #include <time.h>
59476:
59477: int
59478: main ()
59479: {
59480: if ((struct tm *) 0)
59481: return 0;
59482: ;
59483: return 0;
59484: }
59485: _ACEOF
59486: if ac_fn_c_try_compile "$LINENO"; then :
59487: ac_cv_header_time=yes
59488: else
59489: ac_cv_header_time=no
59490: fi
59491: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
59492: fi
59493: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
59494: $as_echo "$ac_cv_header_time" >&6; }
59495: if test $ac_cv_header_time = yes; then
59496:
59497: $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
59498:
59499: fi
59500:
59501: # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
59502: # for constant arguments. Useless!
59503: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
59504: $as_echo_n "checking for working alloca.h... " >&6; }
59505: if ${ac_cv_working_alloca_h+:} false; then :
59506: $as_echo_n "(cached) " >&6
59507: else
59508: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59509: /* end confdefs.h. */
59510: #include <alloca.h>
59511: int
59512: main ()
59513: {
59514: char *p = (char *) alloca (2 * sizeof (int));
59515: if (p) return 0;
59516: ;
59517: return 0;
59518: }
59519: _ACEOF
59520: if ac_fn_c_try_link "$LINENO"; then :
59521: ac_cv_working_alloca_h=yes
59522: else
59523: ac_cv_working_alloca_h=no
59524: fi
59525: rm -f core conftest.err conftest.$ac_objext \
59526: conftest$ac_exeext conftest.$ac_ext
59527: fi
59528: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
59529: $as_echo "$ac_cv_working_alloca_h" >&6; }
59530: if test $ac_cv_working_alloca_h = yes; then
59531:
59532: $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
59533:
59534: fi
59535:
59536: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
59537: $as_echo_n "checking for alloca... " >&6; }
59538: if ${ac_cv_func_alloca_works+:} false; then :
59539: $as_echo_n "(cached) " >&6
59540: else
59541: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59542: /* end confdefs.h. */
59543: #ifdef __GNUC__
59544: # define alloca __builtin_alloca
59545: #else
59546: # ifdef _MSC_VER
59547: # include <malloc.h>
59548: # define alloca _alloca
59549: # else
59550: # ifdef HAVE_ALLOCA_H
59551: # include <alloca.h>
59552: # else
59553: # ifdef _AIX
59554: #pragma alloca
59555: # else
59556: # ifndef alloca /* predefined by HP cc +Olibcalls */
59557: void *alloca (size_t);
59558: # endif
59559: # endif
59560: # endif
59561: # endif
59562: #endif
59563:
59564: int
59565: main ()
59566: {
59567: char *p = (char *) alloca (1);
59568: if (p) return 0;
59569: ;
59570: return 0;
59571: }
59572: _ACEOF
59573: if ac_fn_c_try_link "$LINENO"; then :
59574: ac_cv_func_alloca_works=yes
59575: else
59576: ac_cv_func_alloca_works=no
59577: fi
59578: rm -f core conftest.err conftest.$ac_objext \
59579: conftest$ac_exeext conftest.$ac_ext
59580: fi
59581: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
59582: $as_echo "$ac_cv_func_alloca_works" >&6; }
59583:
59584: if test $ac_cv_func_alloca_works = yes; then
59585:
59586: $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
59587:
59588: else
59589: # The SVR3 libPW and SVR4 libucb both contain incompatible functions
59590: # that cause trouble. Some versions do not even contain alloca or
59591: # contain a buggy version. If you still want to use their alloca,
59592: # use ar to extract alloca.o from them instead of compiling alloca.c.
59593:
59594: ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
59595:
59596: $as_echo "#define C_ALLOCA 1" >>confdefs.h
59597:
59598:
59599: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
59600: $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
59601: if ${ac_cv_os_cray+:} false; then :
59602: $as_echo_n "(cached) " >&6
59603: else
59604: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59605: /* end confdefs.h. */
59606: #if defined CRAY && ! defined CRAY2
59607: webecray
59608: #else
59609: wenotbecray
59610: #endif
59611:
59612: _ACEOF
59613: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59614: $EGREP "webecray" >/dev/null 2>&1; then :
59615: ac_cv_os_cray=yes
59616: else
59617: ac_cv_os_cray=no
59618: fi
59619: rm -f conftest*
59620:
59621: fi
59622: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
59623: $as_echo "$ac_cv_os_cray" >&6; }
59624: if test $ac_cv_os_cray = yes; then
59625: for ac_func in _getb67 GETB67 getb67; do
59626: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
59627: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
59628: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
59629:
59630: cat >>confdefs.h <<_ACEOF
59631: #define CRAY_STACKSEG_END $ac_func
59632: _ACEOF
59633:
59634: break
59635: fi
59636:
59637: done
59638: fi
59639:
59640: { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
59641: $as_echo_n "checking stack direction for C alloca... " >&6; }
59642: if ${ac_cv_c_stack_direction+:} false; then :
59643: $as_echo_n "(cached) " >&6
59644: else
59645: if test "$cross_compiling" = yes; then :
59646: ac_cv_c_stack_direction=0
59647: else
59648: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59649: /* end confdefs.h. */
59650: $ac_includes_default
59651: int
59652: find_stack_direction ()
59653: {
59654: static char *addr = 0;
59655: auto char dummy;
59656: if (addr == 0)
59657: {
59658: addr = &dummy;
59659: return find_stack_direction ();
59660: }
59661: else
59662: return (&dummy > addr) ? 1 : -1;
59663: }
59664:
59665: int
59666: main ()
59667: {
59668: return find_stack_direction () < 0;
59669: }
59670: _ACEOF
59671: if ac_fn_c_try_run "$LINENO"; then :
59672: ac_cv_c_stack_direction=1
59673: else
59674: ac_cv_c_stack_direction=-1
59675: fi
59676: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
59677: conftest.$ac_objext conftest.beam conftest.$ac_ext
59678: fi
59679:
59680: fi
59681: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
59682: $as_echo "$ac_cv_c_stack_direction" >&6; }
59683: cat >>confdefs.h <<_ACEOF
59684: #define STACK_DIRECTION $ac_cv_c_stack_direction
59685: _ACEOF
59686:
59687:
59688: fi
59689:
59690: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
59691: $as_echo_n "checking for working memcmp... " >&6; }
59692: if ${ac_cv_func_memcmp_working+:} false; then :
59693: $as_echo_n "(cached) " >&6
59694: else
59695: if test "$cross_compiling" = yes; then :
59696: ac_cv_func_memcmp_working=no
59697: else
59698: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59699: /* end confdefs.h. */
59700: $ac_includes_default
59701: int
59702: main ()
59703: {
59704:
59705: /* Some versions of memcmp are not 8-bit clean. */
59706: char c0 = '\100', c1 = '\200', c2 = '\201';
59707: if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
59708: return 1;
59709:
59710: /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
59711: or more and with at least one buffer not starting on a 4-byte boundary.
59712: William Lewis provided this test program. */
59713: {
59714: char foo[21];
59715: char bar[21];
59716: int i;
59717: for (i = 0; i < 4; i++)
59718: {
59719: char *a = foo + i;
59720: char *b = bar + i;
59721: strcpy (a, "--------01111111");
59722: strcpy (b, "--------10000000");
59723: if (memcmp (a, b, 16) >= 0)
59724: return 1;
59725: }
59726: return 0;
59727: }
59728:
59729: ;
59730: return 0;
59731: }
59732: _ACEOF
59733: if ac_fn_c_try_run "$LINENO"; then :
59734: ac_cv_func_memcmp_working=yes
59735: else
59736: ac_cv_func_memcmp_working=no
59737: fi
59738: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
59739: conftest.$ac_objext conftest.beam conftest.$ac_ext
59740: fi
59741:
59742: fi
59743: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
59744: $as_echo "$ac_cv_func_memcmp_working" >&6; }
59745: test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
59746: *" memcmp.$ac_objext "* ) ;;
59747: *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
59748: ;;
59749: esac
59750:
59751:
59752: ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
59753: if test "x$ac_cv_header_stdarg_h" = xyes; then :
59754:
59755:
59756: $as_echo "#define HAVE_STDARG_PROTOTYPES 1" >>confdefs.h
59757:
59758:
59759: fi
59760:
59761:
59762:
59763: $as_echo "#define PHP_ONIG_BUNDLED 1" >>confdefs.h
59764:
59765:
59766: $as_echo "#define HAVE_ONIG 1" >>confdefs.h
59767:
59768:
59769: PHP_MBSTRING_CFLAGS="$PHP_MBSTRING_CFLAGS -DNOT_RUBY"
59770:
59771:
59772: PHP_MBSTRING_EXTRA_BUILD_DIRS="$PHP_MBSTRING_EXTRA_BUILD_DIRS oniguruma"
59773:
59774:
59775: PHP_MBSTRING_EXTRA_BUILD_DIRS="$PHP_MBSTRING_EXTRA_BUILD_DIRS oniguruma/enc"
59776:
59777:
59778: PHP_MBSTRING_EXTRA_INCLUDES="$PHP_MBSTRING_EXTRA_INCLUDES oniguruma"
59779:
59780:
59781: PHP_MBSTRING_EXTRA_CONFIG_HEADERS="$PHP_MBSTRING_EXTRA_CONFIG_HEADERS oniguruma/config.h"
59782:
59783:
59784: PHP_MBSTRING_SOURCES="$PHP_MBSTRING_SOURCES
59785: oniguruma/regcomp.c
59786: oniguruma/regerror.c
59787: oniguruma/regexec.c
59788: oniguruma/reggnu.c
59789: oniguruma/regparse.c
59790: oniguruma/regenc.c
59791: oniguruma/regext.c
59792: oniguruma/regsyntax.c
59793: oniguruma/regtrav.c
59794: oniguruma/regversion.c
59795: oniguruma/st.c
59796: oniguruma/enc/unicode.c
59797: oniguruma/enc/ascii.c
59798: oniguruma/enc/utf8.c
59799: oniguruma/enc/euc_jp.c
59800: oniguruma/enc/euc_tw.c
59801: oniguruma/enc/euc_kr.c
59802: oniguruma/enc/sjis.c
59803: oniguruma/enc/iso8859_1.c
59804: oniguruma/enc/iso8859_2.c
59805: oniguruma/enc/iso8859_3.c
59806: oniguruma/enc/iso8859_4.c
59807: oniguruma/enc/iso8859_5.c
59808: oniguruma/enc/iso8859_6.c
59809: oniguruma/enc/iso8859_7.c
59810: oniguruma/enc/iso8859_8.c
59811: oniguruma/enc/iso8859_9.c
59812: oniguruma/enc/iso8859_10.c
59813: oniguruma/enc/iso8859_11.c
59814: oniguruma/enc/iso8859_13.c
59815: oniguruma/enc/iso8859_14.c
59816: oniguruma/enc/iso8859_15.c
59817: oniguruma/enc/iso8859_16.c
59818: oniguruma/enc/koi8.c
59819: oniguruma/enc/koi8_r.c
59820: oniguruma/enc/big5.c
59821: oniguruma/enc/utf16_be.c
59822: oniguruma/enc/utf16_le.c
59823: oniguruma/enc/utf32_be.c
59824: oniguruma/enc/utf32_le.c
59825: "
59826:
59827:
59828: PHP_MBSTRING_INSTALL_HEADERS="$PHP_MBSTRING_INSTALL_HEADERS oniguruma/oniguruma.h"
59829:
59830: else
59831: if test ! -f "$PHP_ONIG/include/oniguruma.h"; then
59832: as_fn_error $? "oniguruma.h not found in $PHP_ONIG/include" "$LINENO" 5
59833: fi
59834:
59835: if test "$PHP_ONIG/include" != "/usr/include"; then
59836:
59837: if test -z "$PHP_ONIG/include" || echo "$PHP_ONIG/include" | grep '^/' >/dev/null ; then
59838: ai_p=$PHP_ONIG/include
59839: else
59840:
59841: ep_dir="`echo $PHP_ONIG/include|$SED 's%/*[^/][^/]*/*$%%'`"
59842:
59843: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
59844: ai_p="$ep_realdir/`basename \"$PHP_ONIG/include\"`"
59845: fi
59846:
59847:
59848:
59849: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
59850:
59851: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
59852: if test -n "$unique" && test "`eval $cmd`" = "" ; then
59853: eval "INCLUDEPATH$unique=set"
59854:
59855: if test ""; then
59856: INCLUDES="-I$ai_p $INCLUDES"
59857: else
59858: INCLUDES="$INCLUDES -I$ai_p"
59859: fi
59860:
59861: fi
59862:
59863: fi
59864:
59865:
59866:
59867: save_old_LDFLAGS=$LDFLAGS
59868: ac_stuff="
59869: -L$PHP_ONIG/$PHP_LIBDIR
59870: "
59871:
59872: save_ext_shared=$ext_shared
59873: ext_shared=yes
59874:
59875: for ac_i in $ac_stuff; do
59876: case $ac_i in
59877: -pthread)
59878: if test "$ext_shared" = "yes"; then
59879: LDFLAGS="$LDFLAGS -pthread"
59880: else
59881:
59882:
59883: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
59884:
59885: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
59886: if test -n "$unique" && test "`eval $cmd`" = "" ; then
59887: eval "EXTRA_LDFLAGS$unique=set"
59888: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
59889: fi
59890:
59891: fi
59892: ;;
59893: -l*)
59894: ac_ii=`echo $ac_i|cut -c 3-`
59895:
59896:
59897: case $ac_ii in
59898: c|c_r|pthread*) ;;
59899: *)
59900: if test "$ext_shared" = "yes"; then
59901: LDFLAGS="$LDFLAGS -l$ac_ii"
59902: else
59903:
59904:
59905: case $ac_ii in
59906: c|c_r|pthread*) ;;
59907: *)
59908: LIBS="$LIBS -l$ac_ii"
59909: ;;
59910: esac
59911:
59912:
59913: fi
59914: ;;
59915: esac
59916:
59917:
59918: ;;
59919: -L*)
59920: ac_ii=`echo $ac_i|cut -c 3-`
59921:
59922: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
59923:
59924: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
59925: ai_p=$ac_ii
59926: else
59927:
59928: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
59929:
59930: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
59931: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
59932: fi
59933:
59934:
59935: if test "$ext_shared" = "yes"; then
59936: LDFLAGS="-L$ai_p $LDFLAGS"
59937: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
59938: else
59939:
59940:
59941:
59942: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
59943:
59944: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
59945: if test -n "$unique" && test "`eval $cmd`" = "" ; then
59946: eval "LIBPATH$unique=set"
59947:
59948: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
59949: LDFLAGS="$LDFLAGS -L$ai_p"
59950: PHP_RPATHS="$PHP_RPATHS $ai_p"
59951:
59952: fi
59953:
59954:
59955: fi
59956:
59957: fi
59958:
59959: ;;
59960: esac
59961: done
59962:
59963: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for onig_init in -lonig" >&5
59964: $as_echo_n "checking for onig_init in -lonig... " >&6; }
59965: if ${ac_cv_lib_onig_onig_init+:} false; then :
59966: $as_echo_n "(cached) " >&6
59967: else
59968: ac_check_lib_save_LIBS=$LIBS
59969: LIBS="-lonig $LIBS"
59970: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59971: /* end confdefs.h. */
59972:
59973: /* Override any GCC internal prototype to avoid an error.
59974: Use char because int might match the return type of a GCC
59975: builtin and then its argument prototype would still apply. */
59976: #ifdef __cplusplus
59977: extern "C"
59978: #endif
59979: char onig_init ();
59980: int
59981: main ()
59982: {
59983: return onig_init ();
59984: ;
59985: return 0;
59986: }
59987: _ACEOF
59988: if ac_fn_c_try_link "$LINENO"; then :
59989: ac_cv_lib_onig_onig_init=yes
59990: else
59991: ac_cv_lib_onig_onig_init=no
59992: fi
59993: rm -f core conftest.err conftest.$ac_objext \
59994: conftest$ac_exeext conftest.$ac_ext
59995: LIBS=$ac_check_lib_save_LIBS
59996: fi
59997: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_onig_onig_init" >&5
59998: $as_echo "$ac_cv_lib_onig_onig_init" >&6; }
59999: if test "x$ac_cv_lib_onig_onig_init" = xyes; then :
60000:
60001: LDFLAGS=$save_old_LDFLAGS
60002: ext_shared=$save_ext_shared
60003:
60004:
60005:
60006: if test "$ext_shared" = "yes"; then
60007: MBSTRING_SHARED_LIBADD="-lonig $MBSTRING_SHARED_LIBADD"
60008: if test -n "$PHP_ONIG/$PHP_LIBDIR"; then
60009:
60010: if test "$PHP_ONIG/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ONIG/$PHP_LIBDIR" != "/usr/lib"; then
60011:
60012: if test -z "$PHP_ONIG/$PHP_LIBDIR" || echo "$PHP_ONIG/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
60013: ai_p=$PHP_ONIG/$PHP_LIBDIR
60014: else
60015:
60016: ep_dir="`echo $PHP_ONIG/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
60017:
60018: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
60019: ai_p="$ep_realdir/`basename \"$PHP_ONIG/$PHP_LIBDIR\"`"
60020: fi
60021:
60022:
60023: if test "$ext_shared" = "yes"; then
60024: MBSTRING_SHARED_LIBADD="-L$ai_p $MBSTRING_SHARED_LIBADD"
60025: test -n "$ld_runpath_switch" && MBSTRING_SHARED_LIBADD="$ld_runpath_switch$ai_p $MBSTRING_SHARED_LIBADD"
60026: else
60027:
60028:
60029:
60030: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
60031:
60032: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
60033: if test -n "$unique" && test "`eval $cmd`" = "" ; then
60034: eval "LIBPATH$unique=set"
60035:
60036: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
60037: LDFLAGS="$LDFLAGS -L$ai_p"
60038: PHP_RPATHS="$PHP_RPATHS $ai_p"
60039:
60040: fi
60041:
60042:
60043: fi
60044:
60045: fi
60046:
60047: fi
60048: else
60049:
60050:
60051: if test -n "$PHP_ONIG/$PHP_LIBDIR"; then
60052:
60053: if test "$PHP_ONIG/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ONIG/$PHP_LIBDIR" != "/usr/lib"; then
60054:
60055: if test -z "$PHP_ONIG/$PHP_LIBDIR" || echo "$PHP_ONIG/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
60056: ai_p=$PHP_ONIG/$PHP_LIBDIR
60057: else
60058:
60059: ep_dir="`echo $PHP_ONIG/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
60060:
60061: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
60062: ai_p="$ep_realdir/`basename \"$PHP_ONIG/$PHP_LIBDIR\"`"
60063: fi
60064:
60065:
60066:
60067:
60068:
60069: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
60070:
60071: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
60072: if test -n "$unique" && test "`eval $cmd`" = "" ; then
60073: eval "LIBPATH$unique=set"
60074:
60075: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
60076: LDFLAGS="$LDFLAGS -L$ai_p"
60077: PHP_RPATHS="$PHP_RPATHS $ai_p"
60078:
60079: fi
60080:
60081:
60082:
60083: fi
60084:
60085: fi
60086:
60087:
60088: case onig in
60089: c|c_r|pthread*) ;;
60090: *)
60091: LIBS="-lonig $LIBS"
60092: ;;
60093: esac
60094:
60095:
60096:
60097:
60098: fi
60099:
60100:
60101:
60102: $as_echo "#define HAVE_ONIG 1" >>confdefs.h
60103:
60104:
60105:
60106: else
60107:
60108: LDFLAGS=$save_old_LDFLAGS
60109: ext_shared=$save_ext_shared
60110: unset ac_cv_lib_onig_onig_init
60111:
60112: as_fn_error $? "Problem with oniguruma. Please check config.log for more information." "$LINENO" 5
60113:
60114:
60115: fi
60116:
60117:
60118: save_old_LDFLAGS=$LDFLAGS
60119:
60120: for ac_i in $MBSTRING_SHARED_LIBADD; do
60121: case $ac_i in
60122: -pthread)
60123: if test "$ext_shared" = "yes"; then
60124: LDFLAGS="$LDFLAGS -pthread"
60125: else
60126:
60127:
60128: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
60129:
60130: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
60131: if test -n "$unique" && test "`eval $cmd`" = "" ; then
60132: eval "EXTRA_LDFLAGS$unique=set"
60133: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
60134: fi
60135:
60136: fi
60137: ;;
60138: -l*)
60139: ac_ii=`echo $ac_i|cut -c 3-`
60140:
60141:
60142: case $ac_ii in
60143: c|c_r|pthread*) ;;
60144: *)
60145: if test "$ext_shared" = "yes"; then
60146: LDFLAGS="$LDFLAGS -l$ac_ii"
60147: else
60148:
60149:
60150: case $ac_ii in
60151: c|c_r|pthread*) ;;
60152: *)
60153: LIBS="$LIBS -l$ac_ii"
60154: ;;
60155: esac
60156:
60157:
60158: fi
60159: ;;
60160: esac
60161:
60162:
60163: ;;
60164: -L*)
60165: ac_ii=`echo $ac_i|cut -c 3-`
60166:
60167: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
60168:
60169: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
60170: ai_p=$ac_ii
60171: else
60172:
60173: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
60174:
60175: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
60176: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
60177: fi
60178:
60179:
60180: if test "$ext_shared" = "yes"; then
60181: LDFLAGS="-L$ai_p $LDFLAGS"
60182: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
60183: else
60184:
60185:
60186:
60187: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
60188:
60189: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
60190: if test -n "$unique" && test "`eval $cmd`" = "" ; then
60191: eval "LIBPATH$unique=set"
60192:
60193: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
60194: LDFLAGS="$LDFLAGS -L$ai_p"
60195: PHP_RPATHS="$PHP_RPATHS $ai_p"
60196:
60197: fi
60198:
60199:
60200: fi
60201:
60202: fi
60203:
60204: ;;
60205: esac
60206: done
60207:
60208: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if oniguruma has an invalid entry for KOI8 encoding" >&5
60209: $as_echo_n "checking if oniguruma has an invalid entry for KOI8 encoding... " >&6; }
60210: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60211: /* end confdefs.h. */
60212:
60213: #include <oniguruma.h>
60214:
60215: int
60216: main ()
60217: {
60218:
60219: return (int)(ONIG_ENCODING_KOI8 + 1);
60220:
60221: ;
60222: return 0;
60223: }
60224: _ACEOF
60225: if ac_fn_c_try_link "$LINENO"; then :
60226:
60227: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
60228: $as_echo "no" >&6; }
60229:
60230: else
60231:
60232: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
60233: $as_echo "yes" >&6; }
60234:
60235: $as_echo "#define PHP_ONIG_BAD_KOI8_ENTRY 1" >>confdefs.h
60236:
60237:
60238: fi
60239: rm -f core conftest.err conftest.$ac_objext \
60240: conftest$ac_exeext conftest.$ac_ext
60241: LDFLAGS=$save_old_LDFLAGS
60242: fi
60243:
60244:
60245: PHP_MBSTRING_CFLAGS="$PHP_MBSTRING_CFLAGS -DONIG_ESCAPE_UCHAR_COLLISION=1"
60246:
60247:
60248: PHP_MBSTRING_CFLAGS="$PHP_MBSTRING_CFLAGS -DUChar=OnigUChar"
60249:
60250:
60251:
60252: $as_echo "#define HAVE_MBREGEX 1" >>confdefs.h
60253:
60254:
60255:
60256: PHP_MBSTRING_BASE_SOURCES="$PHP_MBSTRING_BASE_SOURCES php_mbregex.c"
60257:
60258:
60259: PHP_MBSTRING_INSTALL_HEADERS="$PHP_MBSTRING_INSTALL_HEADERS php_mbregex.h php_onig_compat.h"
60260:
60261: fi
60262:
60263: fi
60264:
60265:
60266: if test "$PHP_LIBMBFL" = "yes" || test "$PHP_LIBMBFL" = "no"; then
60267:
60268: PHP_MBSTRING_EXTRA_BUILD_DIRS="$PHP_MBSTRING_EXTRA_BUILD_DIRS libmbfl"
60269:
60270:
60271: PHP_MBSTRING_EXTRA_BUILD_DIRS="$PHP_MBSTRING_EXTRA_BUILD_DIRS libmbfl/mbfl"
60272:
60273:
60274: PHP_MBSTRING_EXTRA_BUILD_DIRS="$PHP_MBSTRING_EXTRA_BUILD_DIRS libmbfl/filters"
60275:
60276:
60277: PHP_MBSTRING_EXTRA_BUILD_DIRS="$PHP_MBSTRING_EXTRA_BUILD_DIRS libmbfl/nls"
60278:
60279:
60280: PHP_MBSTRING_EXTRA_INCLUDES="$PHP_MBSTRING_EXTRA_INCLUDES libmbfl"
60281:
60282:
60283: PHP_MBSTRING_EXTRA_INCLUDES="$PHP_MBSTRING_EXTRA_INCLUDES libmbfl/mbfl"
60284:
60285:
60286: PHP_MBSTRING_EXTRA_CONFIG_HEADERS="$PHP_MBSTRING_EXTRA_CONFIG_HEADERS libmbfl/config.h"
60287:
60288:
60289:
60290: PHP_MBSTRING_SOURCES="$PHP_MBSTRING_SOURCES
60291: libmbfl/filters/html_entities.c
60292: libmbfl/filters/mbfilter_7bit.c
60293: libmbfl/filters/mbfilter_ascii.c
60294: libmbfl/filters/mbfilter_base64.c
60295: libmbfl/filters/mbfilter_big5.c
60296: libmbfl/filters/mbfilter_byte2.c
60297: libmbfl/filters/mbfilter_byte4.c
60298: libmbfl/filters/mbfilter_cp1251.c
60299: libmbfl/filters/mbfilter_cp1252.c
60300: libmbfl/filters/mbfilter_cp1254.c
60301: libmbfl/filters/mbfilter_cp5022x.c
60302: libmbfl/filters/mbfilter_cp51932.c
60303: libmbfl/filters/mbfilter_cp850.c
60304: libmbfl/filters/mbfilter_cp866.c
60305: libmbfl/filters/mbfilter_cp932.c
60306: libmbfl/filters/mbfilter_cp936.c
60307: libmbfl/filters/mbfilter_euc_cn.c
60308: libmbfl/filters/mbfilter_euc_jp.c
60309: libmbfl/filters/mbfilter_euc_jp_win.c
60310: libmbfl/filters/mbfilter_euc_kr.c
60311: libmbfl/filters/mbfilter_euc_tw.c
60312: libmbfl/filters/mbfilter_htmlent.c
60313: libmbfl/filters/mbfilter_hz.c
60314: libmbfl/filters/mbfilter_iso2022_jp_ms.c
60315: libmbfl/filters/mbfilter_iso2022_kr.c
60316: libmbfl/filters/mbfilter_iso8859_1.c
60317: libmbfl/filters/mbfilter_iso8859_10.c
60318: libmbfl/filters/mbfilter_iso8859_13.c
60319: libmbfl/filters/mbfilter_iso8859_14.c
60320: libmbfl/filters/mbfilter_iso8859_15.c
60321: libmbfl/filters/mbfilter_iso8859_16.c
60322: libmbfl/filters/mbfilter_iso8859_2.c
60323: libmbfl/filters/mbfilter_iso8859_3.c
60324: libmbfl/filters/mbfilter_iso8859_4.c
60325: libmbfl/filters/mbfilter_iso8859_5.c
60326: libmbfl/filters/mbfilter_iso8859_6.c
60327: libmbfl/filters/mbfilter_iso8859_7.c
60328: libmbfl/filters/mbfilter_iso8859_8.c
60329: libmbfl/filters/mbfilter_iso8859_9.c
60330: libmbfl/filters/mbfilter_jis.c
60331: libmbfl/filters/mbfilter_koi8r.c
60332: libmbfl/filters/mbfilter_armscii8.c
60333: libmbfl/filters/mbfilter_qprint.c
60334: libmbfl/filters/mbfilter_sjis.c
60335: libmbfl/filters/mbfilter_sjis_open.c
60336: libmbfl/filters/mbfilter_tl_jisx0201_jisx0208.c
60337: libmbfl/filters/mbfilter_ucs2.c
60338: libmbfl/filters/mbfilter_ucs4.c
60339: libmbfl/filters/mbfilter_uhc.c
60340: libmbfl/filters/mbfilter_utf16.c
60341: libmbfl/filters/mbfilter_utf32.c
60342: libmbfl/filters/mbfilter_utf7.c
60343: libmbfl/filters/mbfilter_utf7imap.c
60344: libmbfl/filters/mbfilter_utf8.c
60345: libmbfl/filters/mbfilter_uuencode.c
60346: libmbfl/filters/mbfilter_koi8u.c
60347: libmbfl/mbfl/mbfilter.c
60348: libmbfl/mbfl/mbfilter_8bit.c
60349: libmbfl/mbfl/mbfilter_pass.c
60350: libmbfl/mbfl/mbfilter_wchar.c
60351: libmbfl/mbfl/mbfl_convert.c
60352: libmbfl/mbfl/mbfl_encoding.c
60353: libmbfl/mbfl/mbfl_filter_output.c
60354: libmbfl/mbfl/mbfl_ident.c
60355: libmbfl/mbfl/mbfl_language.c
60356: libmbfl/mbfl/mbfl_memory_device.c
60357: libmbfl/mbfl/mbfl_string.c
60358: libmbfl/mbfl/mbfl_allocators.c
60359: libmbfl/nls/nls_de.c
60360: libmbfl/nls/nls_en.c
60361: libmbfl/nls/nls_ja.c
60362: libmbfl/nls/nls_kr.c
60363: libmbfl/nls/nls_neutral.c
60364: libmbfl/nls/nls_ru.c
60365: libmbfl/nls/nls_uni.c
60366: libmbfl/nls/nls_zh.c
60367: libmbfl/nls/nls_hy.c
60368: libmbfl/nls/nls_tr.c
60369: libmbfl/nls/nls_ua.c
60370: "
60371:
60372:
60373: PHP_MBSTRING_CFLAGS="$PHP_MBSTRING_CFLAGS -DHAVE_CONFIG_H"
60374:
60375:
60376: 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"
60377:
60378: else
60379: for inc in include include/mbfl-1.0 include/mbfl; do
60380: if test -f "$PHP_LIBMBFL/$inc/mbfilter.h"; then
60381: PHP_LIBMBFL_INCLUDE="$inc"
60382: break
60383: fi
60384: done
60385:
60386: if test -z "$PHP_LIBMBFL_INCLUDE"; then
60387: as_fn_error $? "mbfilter.h not found. Please reinstall libmbfl library." "$LINENO" 5
60388: else
60389:
60390: if test "$PHP_LIBMBFL_INCLUDE" != "/usr/include"; then
60391:
60392: if test -z "$PHP_LIBMBFL_INCLUDE" || echo "$PHP_LIBMBFL_INCLUDE" | grep '^/' >/dev/null ; then
60393: ai_p=$PHP_LIBMBFL_INCLUDE
60394: else
60395:
60396: ep_dir="`echo $PHP_LIBMBFL_INCLUDE|$SED 's%/*[^/][^/]*/*$%%'`"
60397:
60398: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
60399: ai_p="$ep_realdir/`basename \"$PHP_LIBMBFL_INCLUDE\"`"
60400: fi
60401:
60402:
60403:
60404: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
60405:
60406: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
60407: if test -n "$unique" && test "`eval $cmd`" = "" ; then
60408: eval "INCLUDEPATH$unique=set"
60409:
60410: if test ""; then
60411: INCLUDES="-I$ai_p $INCLUDES"
60412: else
60413: INCLUDES="$INCLUDES -I$ai_p"
60414: fi
60415:
60416: fi
60417:
60418: fi
60419:
60420: fi
60421:
60422:
60423: save_old_LDFLAGS=$LDFLAGS
60424: ac_stuff="
60425: -L$PHP_LIBMBFL/$PHP_LIBDIR
60426: "
60427:
60428: save_ext_shared=$ext_shared
60429: ext_shared=yes
60430:
60431: for ac_i in $ac_stuff; do
60432: case $ac_i in
60433: -pthread)
60434: if test "$ext_shared" = "yes"; then
60435: LDFLAGS="$LDFLAGS -pthread"
60436: else
60437:
60438:
60439: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
60440:
60441: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
60442: if test -n "$unique" && test "`eval $cmd`" = "" ; then
60443: eval "EXTRA_LDFLAGS$unique=set"
60444: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
60445: fi
60446:
60447: fi
60448: ;;
60449: -l*)
60450: ac_ii=`echo $ac_i|cut -c 3-`
60451:
60452:
60453: case $ac_ii in
60454: c|c_r|pthread*) ;;
60455: *)
60456: if test "$ext_shared" = "yes"; then
60457: LDFLAGS="$LDFLAGS -l$ac_ii"
60458: else
60459:
60460:
60461: case $ac_ii in
60462: c|c_r|pthread*) ;;
60463: *)
60464: LIBS="$LIBS -l$ac_ii"
60465: ;;
60466: esac
60467:
60468:
60469: fi
60470: ;;
60471: esac
60472:
60473:
60474: ;;
60475: -L*)
60476: ac_ii=`echo $ac_i|cut -c 3-`
60477:
60478: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
60479:
60480: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
60481: ai_p=$ac_ii
60482: else
60483:
60484: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
60485:
60486: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
60487: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
60488: fi
60489:
60490:
60491: if test "$ext_shared" = "yes"; then
60492: LDFLAGS="-L$ai_p $LDFLAGS"
60493: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
60494: else
60495:
60496:
60497:
60498: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
60499:
60500: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
60501: if test -n "$unique" && test "`eval $cmd`" = "" ; then
60502: eval "LIBPATH$unique=set"
60503:
60504: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
60505: LDFLAGS="$LDFLAGS -L$ai_p"
60506: PHP_RPATHS="$PHP_RPATHS $ai_p"
60507:
60508: fi
60509:
60510:
60511: fi
60512:
60513: fi
60514:
60515: ;;
60516: esac
60517: done
60518:
60519: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbfl_buffer_converter_new in -lmbfl" >&5
60520: $as_echo_n "checking for mbfl_buffer_converter_new in -lmbfl... " >&6; }
60521: if ${ac_cv_lib_mbfl_mbfl_buffer_converter_new+:} false; then :
60522: $as_echo_n "(cached) " >&6
60523: else
60524: ac_check_lib_save_LIBS=$LIBS
60525: LIBS="-lmbfl $LIBS"
60526: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60527: /* end confdefs.h. */
60528:
60529: /* Override any GCC internal prototype to avoid an error.
60530: Use char because int might match the return type of a GCC
60531: builtin and then its argument prototype would still apply. */
60532: #ifdef __cplusplus
60533: extern "C"
60534: #endif
60535: char mbfl_buffer_converter_new ();
60536: int
60537: main ()
60538: {
60539: return mbfl_buffer_converter_new ();
60540: ;
60541: return 0;
60542: }
60543: _ACEOF
60544: if ac_fn_c_try_link "$LINENO"; then :
60545: ac_cv_lib_mbfl_mbfl_buffer_converter_new=yes
60546: else
60547: ac_cv_lib_mbfl_mbfl_buffer_converter_new=no
60548: fi
60549: rm -f core conftest.err conftest.$ac_objext \
60550: conftest$ac_exeext conftest.$ac_ext
60551: LIBS=$ac_check_lib_save_LIBS
60552: fi
60553: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbfl_mbfl_buffer_converter_new" >&5
60554: $as_echo "$ac_cv_lib_mbfl_mbfl_buffer_converter_new" >&6; }
60555: if test "x$ac_cv_lib_mbfl_mbfl_buffer_converter_new" = xyes; then :
60556:
60557: LDFLAGS=$save_old_LDFLAGS
60558: ext_shared=$save_ext_shared
60559:
60560:
60561:
60562: if test "$ext_shared" = "yes"; then
60563: MBSTRING_SHARED_LIBADD="-lmbfl $MBSTRING_SHARED_LIBADD"
60564: if test -n "$PHP_LIBMBFL/$PHP_LIBDIR"; then
60565:
60566: if test "$PHP_LIBMBFL/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_LIBMBFL/$PHP_LIBDIR" != "/usr/lib"; then
60567:
60568: if test -z "$PHP_LIBMBFL/$PHP_LIBDIR" || echo "$PHP_LIBMBFL/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
60569: ai_p=$PHP_LIBMBFL/$PHP_LIBDIR
60570: else
60571:
60572: ep_dir="`echo $PHP_LIBMBFL/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
60573:
60574: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
60575: ai_p="$ep_realdir/`basename \"$PHP_LIBMBFL/$PHP_LIBDIR\"`"
60576: fi
60577:
60578:
60579: if test "$ext_shared" = "yes"; then
60580: MBSTRING_SHARED_LIBADD="-L$ai_p $MBSTRING_SHARED_LIBADD"
60581: test -n "$ld_runpath_switch" && MBSTRING_SHARED_LIBADD="$ld_runpath_switch$ai_p $MBSTRING_SHARED_LIBADD"
60582: else
60583:
60584:
60585:
60586: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
60587:
60588: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
60589: if test -n "$unique" && test "`eval $cmd`" = "" ; then
60590: eval "LIBPATH$unique=set"
60591:
60592: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
60593: LDFLAGS="$LDFLAGS -L$ai_p"
60594: PHP_RPATHS="$PHP_RPATHS $ai_p"
60595:
60596: fi
60597:
60598:
60599: fi
60600:
60601: fi
60602:
60603: fi
60604: else
60605:
60606:
60607: if test -n "$PHP_LIBMBFL/$PHP_LIBDIR"; then
60608:
60609: if test "$PHP_LIBMBFL/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_LIBMBFL/$PHP_LIBDIR" != "/usr/lib"; then
60610:
60611: if test -z "$PHP_LIBMBFL/$PHP_LIBDIR" || echo "$PHP_LIBMBFL/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
60612: ai_p=$PHP_LIBMBFL/$PHP_LIBDIR
60613: else
60614:
60615: ep_dir="`echo $PHP_LIBMBFL/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
60616:
60617: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
60618: ai_p="$ep_realdir/`basename \"$PHP_LIBMBFL/$PHP_LIBDIR\"`"
60619: fi
60620:
60621:
60622:
60623:
60624:
60625: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
60626:
60627: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
60628: if test -n "$unique" && test "`eval $cmd`" = "" ; then
60629: eval "LIBPATH$unique=set"
60630:
60631: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
60632: LDFLAGS="$LDFLAGS -L$ai_p"
60633: PHP_RPATHS="$PHP_RPATHS $ai_p"
60634:
60635: fi
60636:
60637:
60638:
60639: fi
60640:
60641: fi
60642:
60643:
60644: case mbfl in
60645: c|c_r|pthread*) ;;
60646: *)
60647: LIBS="-lmbfl $LIBS"
60648: ;;
60649: esac
60650:
60651:
60652:
60653:
60654: fi
60655:
60656:
60657:
60658:
60659: else
60660:
60661: LDFLAGS=$save_old_LDFLAGS
60662: ext_shared=$save_ext_shared
60663: unset ac_cv_lib_mbfl_mbfl_buffer_converter_new
60664:
60665: as_fn_error $? "Problem with libmbfl. Please check config.log for more information." "$LINENO" 5
60666:
60667:
60668: fi
60669:
60670: fi
60671:
60672:
60673:
60674: ext_builddir=ext/mbstring
60675: ext_srcdir=$abs_srcdir/ext/mbstring
60676:
60677: ac_extra=`echo "$PHP_MBSTRING_CFLAGS"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
60678:
60679: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
60680: PHP_MBSTRING_SHARED=no
60681:
60682:
60683: case ext/mbstring in
60684: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
60685: /*) ac_srcdir=`echo "ext/mbstring"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
60686: *) ac_srcdir="$abs_srcdir/ext/mbstring/"; ac_bdir="ext/mbstring/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
60687: esac
60688:
60689:
60690:
60691: b_c_pre=$php_c_pre
60692: b_cxx_pre=$php_cxx_pre
60693: b_c_meta=$php_c_meta
60694: b_cxx_meta=$php_cxx_meta
60695: b_c_post=$php_c_post
60696: b_cxx_post=$php_cxx_post
60697: b_lo=$php_lo
60698:
60699:
60700: old_IFS=$IFS
60701: for ac_src in $PHP_MBSTRING_SOURCES; do
60702:
60703: IFS=.
60704: set $ac_src
60705: ac_obj=$1
60706: IFS=$old_IFS
60707:
60708: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
60709:
60710: case $ac_src in
60711: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
60712: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
60713: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
60714: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
60715: esac
60716:
60717: cat >>Makefile.objects<<EOF
60718: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
60719: $ac_comp
60720: EOF
60721: done
60722:
60723:
60724: EXT_STATIC="$EXT_STATIC mbstring"
60725: if test "$ext_shared" != "nocli"; then
60726: EXT_CLI_STATIC="$EXT_CLI_STATIC mbstring"
60727: fi
60728: else
60729: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
60730: PHP_MBSTRING_SHARED=yes
60731:
60732: case ext/mbstring in
60733: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
60734: /*) ac_srcdir=`echo "ext/mbstring"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
60735: *) ac_srcdir="$abs_srcdir/ext/mbstring/"; ac_bdir="ext/mbstring/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
60736: esac
60737:
60738:
60739:
60740: b_c_pre=$shared_c_pre
60741: b_cxx_pre=$shared_cxx_pre
60742: b_c_meta=$shared_c_meta
60743: b_cxx_meta=$shared_cxx_meta
60744: b_c_post=$shared_c_post
60745: b_cxx_post=$shared_cxx_post
60746: b_lo=$shared_lo
60747:
60748:
60749: old_IFS=$IFS
60750: for ac_src in $PHP_MBSTRING_SOURCES; do
60751:
60752: IFS=.
60753: set $ac_src
60754: ac_obj=$1
60755: IFS=$old_IFS
60756:
60757: shared_objects_mbstring="$shared_objects_mbstring $ac_bdir$ac_obj.lo"
60758:
60759: case $ac_src in
60760: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
60761: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
60762: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
60763: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
60764: esac
60765:
60766: cat >>Makefile.objects<<EOF
60767: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
60768: $ac_comp
60769: EOF
60770: done
60771:
60772: case $host_alias in
60773: *netware*)
60774:
60775: install_modules="install-modules"
60776:
60777: case $host_alias in
60778: *aix*)
60779: suffix=so
60780: 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'
60781: ;;
60782: *netware*)
60783: suffix=nlm
60784: link_cmd='$(LIBTOOL) --mode=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)'
60785: ;;
60786: *)
60787: suffix=la
60788: link_cmd='$(LIBTOOL) --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)'
60789: ;;
60790: esac
60791:
60792: if test "x" = "xyes"; then
60793: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpmbstring.$suffix"
60794: else
60795: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpmbstring.$suffix"
60796: fi
60797:
60798: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_mbstring"
60799:
60800: cat >>Makefile.objects<<EOF
60801: \$(phplibdir)/phpmbstring.$suffix: $ext_builddir/phpmbstring.$suffix
60802: \$(LIBTOOL) --mode=install cp $ext_builddir/phpmbstring.$suffix \$(phplibdir)
60803:
60804: $ext_builddir/phpmbstring.$suffix: \$(shared_objects_mbstring) \$(PHPMBSTRING_SHARED_DEPENDENCIES)
60805: $link_cmd
60806:
60807: EOF
60808:
60809: ;;
60810: *)
60811:
60812: install_modules="install-modules"
60813:
60814: case $host_alias in
60815: *aix*)
60816: suffix=so
60817: 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'
60818: ;;
60819: *netware*)
60820: suffix=nlm
60821: link_cmd='$(LIBTOOL) --mode=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)'
60822: ;;
60823: *)
60824: suffix=la
60825: link_cmd='$(LIBTOOL) --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)'
60826: ;;
60827: esac
60828:
60829: if test "x" = "xyes"; then
60830: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/mbstring.$suffix"
60831: else
60832: PHP_MODULES="$PHP_MODULES \$(phplibdir)/mbstring.$suffix"
60833: fi
60834:
60835: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_mbstring"
60836:
60837: cat >>Makefile.objects<<EOF
60838: \$(phplibdir)/mbstring.$suffix: $ext_builddir/mbstring.$suffix
60839: \$(LIBTOOL) --mode=install cp $ext_builddir/mbstring.$suffix \$(phplibdir)
60840:
60841: $ext_builddir/mbstring.$suffix: \$(shared_objects_mbstring) \$(MBSTRING_SHARED_DEPENDENCIES)
60842: $link_cmd
60843:
60844: EOF
60845:
60846: ;;
60847: esac
60848:
60849: cat >>confdefs.h <<_ACEOF
60850: #define COMPILE_DL_MBSTRING 1
60851: _ACEOF
60852:
60853: fi
60854: fi
60855:
60856: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
60857: PHP_MBSTRING_SHARED=no
60858:
60859:
60860: case ext/mbstring in
60861: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
60862: /*) ac_srcdir=`echo "ext/mbstring"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
60863: *) ac_srcdir="$abs_srcdir/ext/mbstring/"; ac_bdir="ext/mbstring/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
60864: esac
60865:
60866:
60867:
60868: b_c_pre=$php_c_pre
60869: b_cxx_pre=$php_cxx_pre
60870: b_c_meta=$php_c_meta
60871: b_cxx_meta=$php_cxx_meta
60872: b_c_post=$php_c_post
60873: b_cxx_post=$php_cxx_post
60874: b_lo=$php_lo
60875:
60876:
60877: old_IFS=$IFS
60878: for ac_src in $PHP_MBSTRING_SOURCES; do
60879:
60880: IFS=.
60881: set $ac_src
60882: ac_obj=$1
60883: IFS=$old_IFS
60884:
60885: PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
60886:
60887: case $ac_src in
60888: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
60889: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
60890: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
60891: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
60892: esac
60893:
60894: cat >>Makefile.objects<<EOF
60895: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
60896: $ac_comp
60897: EOF
60898: done
60899:
60900:
60901:
60902:
60903: case ext/mbstring in
60904: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
60905: /*) ac_srcdir=`echo "ext/mbstring"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
60906: *) ac_srcdir="$abs_srcdir/ext/mbstring/"; ac_bdir="ext/mbstring/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
60907: esac
60908:
60909:
60910:
60911: b_c_pre=$php_c_pre
60912: b_cxx_pre=$php_cxx_pre
60913: b_c_meta=$php_c_meta
60914: b_cxx_meta=$php_cxx_meta
60915: b_c_post=$php_c_post
60916: b_cxx_post=$php_cxx_post
60917: b_lo=$php_lo
60918:
60919:
60920: old_IFS=$IFS
60921: for ac_src in $PHP_MBSTRING_SOURCES; do
60922:
60923: IFS=.
60924: set $ac_src
60925: ac_obj=$1
60926: IFS=$old_IFS
60927:
60928: PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo"
60929:
60930: case $ac_src in
60931: *.c) ac_comp="$b_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: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
60933: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
60934: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
60935: esac
60936:
60937: cat >>Makefile.objects<<EOF
60938: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
60939: $ac_comp
60940: EOF
60941: done
60942:
60943:
60944:
60945:
60946: case ext/mbstring in
60947: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
60948: /*) ac_srcdir=`echo "ext/mbstring"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
60949: *) ac_srcdir="$abs_srcdir/ext/mbstring/"; ac_bdir="ext/mbstring/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
60950: esac
60951:
60952:
60953:
60954: b_c_pre=$php_c_pre
60955: b_cxx_pre=$php_cxx_pre
60956: b_c_meta=$php_c_meta
60957: b_cxx_meta=$php_cxx_meta
60958: b_c_post=$php_c_post
60959: b_cxx_post=$php_cxx_post
60960: b_lo=$php_lo
60961:
60962:
60963: old_IFS=$IFS
60964: for ac_src in $PHP_MBSTRING_SOURCES; do
60965:
60966: IFS=.
60967: set $ac_src
60968: ac_obj=$1
60969: IFS=$old_IFS
60970:
60971: PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo"
60972:
60973: case $ac_src in
60974: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
60975: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
60976: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
60977: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
60978: esac
60979:
60980: cat >>Makefile.objects<<EOF
60981: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
60982: $ac_comp
60983: EOF
60984: done
60985:
60986:
60987: EXT_CLI_STATIC="$EXT_CLI_STATIC mbstring"
60988: fi
60989:
60990:
60991: BUILD_DIR="$BUILD_DIR $ext_builddir"
60992:
60993:
60994:
60995: if test "$ext_builddir" = "."; then
60996: PHP_PECL_EXTENSION=mbstring
60997:
60998: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
60999:
61000: fi
61001:
61002:
61003: PHP_VAR_SUBST="$PHP_VAR_SUBST MBSTRING_SHARED_LIBADD"
61004:
61005:
61006: for dir in $PHP_MBSTRING_EXTRA_BUILD_DIRS; do
61007:
61008:
61009: $php_shtool mkdir -p $ext_builddir/$dir
61010:
61011:
61012: done
61013:
61014: for dir in $PHP_MBSTRING_EXTRA_INCLUDES; do
61015:
61016: if test "$ext_srcdir/$dir" != "/usr/include"; then
61017:
61018: if test -z "$ext_srcdir/$dir" || echo "$ext_srcdir/$dir" | grep '^/' >/dev/null ; then
61019: ai_p=$ext_srcdir/$dir
61020: else
61021:
61022: ep_dir="`echo $ext_srcdir/$dir|$SED 's%/*[^/][^/]*/*$%%'`"
61023:
61024: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
61025: ai_p="$ep_realdir/`basename \"$ext_srcdir/$dir\"`"
61026: fi
61027:
61028:
61029:
61030: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
61031:
61032: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
61033: if test -n "$unique" && test "`eval $cmd`" = "" ; then
61034: eval "INCLUDEPATH$unique=set"
61035:
61036: if test ""; then
61037: INCLUDES="-I$ai_p $INCLUDES"
61038: else
61039: INCLUDES="$INCLUDES -I$ai_p"
61040: fi
61041:
61042: fi
61043:
61044: fi
61045:
61046:
61047: if test "$ext_builddir/$dir" != "/usr/include"; then
61048:
61049: if test -z "$ext_builddir/$dir" || echo "$ext_builddir/$dir" | grep '^/' >/dev/null ; then
61050: ai_p=$ext_builddir/$dir
61051: else
61052:
61053: ep_dir="`echo $ext_builddir/$dir|$SED 's%/*[^/][^/]*/*$%%'`"
61054:
61055: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
61056: ai_p="$ep_realdir/`basename \"$ext_builddir/$dir\"`"
61057: fi
61058:
61059:
61060:
61061: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
61062:
61063: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
61064: if test -n "$unique" && test "`eval $cmd`" = "" ; then
61065: eval "INCLUDEPATH$unique=set"
61066:
61067: if test ""; then
61068: INCLUDES="-I$ai_p $INCLUDES"
61069: else
61070: INCLUDES="$INCLUDES -I$ai_p"
61071: fi
61072:
61073: fi
61074:
61075: fi
61076:
61077: done
61078:
61079: if test "$ext_shared" = "no"; then
61080:
61081:
61082: case ext/mbstring in
61083: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
61084: /*) ac_srcdir=`echo "ext/mbstring"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
61085: *) ac_srcdir="$abs_srcdir/ext/mbstring/"; ac_bdir="ext/mbstring/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
61086: esac
61087:
61088:
61089:
61090: b_c_pre=$php_c_pre
61091: b_cxx_pre=$php_cxx_pre
61092: b_c_meta=$php_c_meta
61093: b_cxx_meta=$php_cxx_meta
61094: b_c_post=$php_c_post
61095: b_cxx_post=$php_cxx_post
61096: b_lo=$php_lo
61097:
61098:
61099: old_IFS=$IFS
61100: for ac_src in $PHP_MBSTRING_BASE_SOURCES; do
61101:
61102: IFS=.
61103: set $ac_src
61104: ac_obj=$1
61105: IFS=$old_IFS
61106:
61107: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
61108:
61109: case $ac_src in
61110: *.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" ;;
61111: *.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" ;;
61112: *.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" ;;
61113: *.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" ;;
61114: esac
61115:
61116: cat >>Makefile.objects<<EOF
61117: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
61118: $ac_comp
61119: EOF
61120: done
61121:
61122:
61123: out="php_config.h"
61124: else
61125:
61126: case ext/mbstring in
61127: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
61128: /*) ac_srcdir=`echo "ext/mbstring"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
61129: *) ac_srcdir="$abs_srcdir/ext/mbstring/"; ac_bdir="ext/mbstring/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
61130: esac
61131:
61132:
61133:
61134: b_c_pre=$shared_c_pre
61135: b_cxx_pre=$shared_cxx_pre
61136: b_c_meta=$shared_c_meta
61137: b_cxx_meta=$shared_cxx_meta
61138: b_c_post=$shared_c_post
61139: b_cxx_post=$shared_cxx_post
61140: b_lo=$shared_lo
61141:
61142:
61143: old_IFS=$IFS
61144: for ac_src in $PHP_MBSTRING_BASE_SOURCES; do
61145:
61146: IFS=.
61147: set $ac_src
61148: ac_obj=$1
61149: IFS=$old_IFS
61150:
61151: shared_objects_mbstring="$shared_objects_mbstring $ac_bdir$ac_obj.lo"
61152:
61153: case $ac_src in
61154: *.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" ;;
61155: *.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" ;;
61156: *.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" ;;
61157: *.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" ;;
61158: esac
61159:
61160: cat >>Makefile.objects<<EOF
61161: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
61162: $ac_comp
61163: EOF
61164: done
61165:
61166: if test -f "$ext_builddir/config.h.in"; then
61167: out="$abs_builddir/config.h"
61168: else
61169: out="php_config.h"
61170: fi
61171: fi
61172:
61173: for cfg in $PHP_MBSTRING_EXTRA_CONFIG_HEADERS; do
61174: cat > $ext_builddir/$cfg <<EOF
61175: #include "$out"
61176: EOF
61177: done
61178:
61179: PHP_MBSTRING_INSTALL_HEADERS="$PHP_MBSTRING_INSTALL_HEADERS mbstring.h"
61180:
61181:
61182:
61183: header_path=ext/mbstring
61184: for header_file in $PHP_MBSTRING_INSTALL_HEADERS; do
61185: hp_hf="$header_path/$header_file"
61186:
61187:
61188: unique=`echo $hp_hf|$SED 's/[^a-zA-Z0-9]/_/g'`
61189:
61190: cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
61191: if test -n "$unique" && test "`eval $cmd`" = "" ; then
61192: eval "INSTALLHEADERS$unique=set"
61193:
61194: INSTALL_HEADERS="$INSTALL_HEADERS $hp_hf"
61195:
61196: fi
61197:
61198: done
61199:
61200:
61201:
61202: fi
61203:
61204: # vim600: sts=2 sw=2 et
61205:
61206:
61207:
61208:
61209:
61210:
61211: php_with_mcrypt=no
61212:
61213: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mcrypt support" >&5
61214: $as_echo_n "checking for mcrypt support... " >&6; }
61215:
61216: # Check whether --with-mcrypt was given.
61217: if test "${with_mcrypt+set}" = set; then :
61218: withval=$with_mcrypt; PHP_MCRYPT=$withval
61219: else
61220:
61221: PHP_MCRYPT=no
61222: test "$PHP_ENABLE_ALL" && PHP_MCRYPT=$PHP_ENABLE_ALL
61223:
61224: fi
61225:
61226:
61227:
61228: ext_output="yes, shared"
61229: ext_shared=yes
61230: case $PHP_MCRYPT in
61231: shared,*)
61232: PHP_MCRYPT=`echo "$PHP_MCRYPT"|$SED 's/^shared,//'`
61233: ;;
61234: shared)
61235: PHP_MCRYPT=yes
61236: ;;
61237: no)
61238: ext_output=no
61239: ext_shared=no
61240: ;;
61241: *)
61242: ext_output=yes
61243: ext_shared=no
61244: ;;
61245: esac
61246:
61247:
61248:
61249: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
61250: $as_echo "$ext_output" >&6; }
61251:
61252:
61253:
61254:
61255: if test "$PHP_MCRYPT" != "no"; then
61256: for i in $PHP_MCRYPT /usr/local /usr; do
61257: test -f $i/include/mcrypt.h && MCRYPT_DIR=$i && break
61258: done
61259:
61260: if test -z "$MCRYPT_DIR"; then
61261: as_fn_error $? "mcrypt.h not found. Please reinstall libmcrypt." "$LINENO" 5
61262: fi
61263:
61264:
61265: old_CPPFLAGS=$CPPFLAGS
61266: CPPFLAGS=-I$MCRYPT_DIR/include
61267: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmcrypt version" >&5
61268: $as_echo_n "checking for libmcrypt version... " >&6; }
61269: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61270: /* end confdefs.h. */
61271:
61272: #include <mcrypt.h>
61273: #if MCRYPT_API_VERSION >= 20021217
61274: yes
61275: #endif
61276:
61277: _ACEOF
61278: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61279: $EGREP "yes" >/dev/null 2>&1; then :
61280:
61281: { $as_echo "$as_me:${as_lineno-$LINENO}: result: >= 2.5.6" >&5
61282: $as_echo ">= 2.5.6" >&6; }
61283:
61284: else
61285:
61286: as_fn_error $? "libmcrypt version 2.5.6 or greater required." "$LINENO" 5
61287:
61288: fi
61289: rm -f conftest*
61290:
61291: CPPFLAGS=$old_CPPFLAGS
61292:
61293:
61294:
61295: save_old_LDFLAGS=$LDFLAGS
61296: ac_stuff="
61297: -L$MCRYPT_DIR/$PHP_LIBDIR -lltdl
61298: "
61299:
61300: save_ext_shared=$ext_shared
61301: ext_shared=yes
61302:
61303: for ac_i in $ac_stuff; do
61304: case $ac_i in
61305: -pthread)
61306: if test "$ext_shared" = "yes"; then
61307: LDFLAGS="$LDFLAGS -pthread"
61308: else
61309:
61310:
61311: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
61312:
61313: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
61314: if test -n "$unique" && test "`eval $cmd`" = "" ; then
61315: eval "EXTRA_LDFLAGS$unique=set"
61316: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
61317: fi
61318:
61319: fi
61320: ;;
61321: -l*)
61322: ac_ii=`echo $ac_i|cut -c 3-`
61323:
61324:
61325: case $ac_ii in
61326: c|c_r|pthread*) ;;
61327: *)
61328: if test "$ext_shared" = "yes"; then
61329: LDFLAGS="$LDFLAGS -l$ac_ii"
61330: else
61331:
61332:
61333: case $ac_ii in
61334: c|c_r|pthread*) ;;
61335: *)
61336: LIBS="$LIBS -l$ac_ii"
61337: ;;
61338: esac
61339:
61340:
61341: fi
61342: ;;
61343: esac
61344:
61345:
61346: ;;
61347: -L*)
61348: ac_ii=`echo $ac_i|cut -c 3-`
61349:
61350: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
61351:
61352: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
61353: ai_p=$ac_ii
61354: else
61355:
61356: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
61357:
61358: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
61359: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
61360: fi
61361:
61362:
61363: if test "$ext_shared" = "yes"; then
61364: LDFLAGS="-L$ai_p $LDFLAGS"
61365: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
61366: else
61367:
61368:
61369:
61370: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
61371:
61372: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
61373: if test -n "$unique" && test "`eval $cmd`" = "" ; then
61374: eval "LIBPATH$unique=set"
61375:
61376: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
61377: LDFLAGS="$LDFLAGS -L$ai_p"
61378: PHP_RPATHS="$PHP_RPATHS $ai_p"
61379:
61380: fi
61381:
61382:
61383: fi
61384:
61385: fi
61386:
61387: ;;
61388: esac
61389: done
61390:
61391: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mcrypt_module_open in -lmcrypt" >&5
61392: $as_echo_n "checking for mcrypt_module_open in -lmcrypt... " >&6; }
61393: if ${ac_cv_lib_mcrypt_mcrypt_module_open+:} false; then :
61394: $as_echo_n "(cached) " >&6
61395: else
61396: ac_check_lib_save_LIBS=$LIBS
61397: LIBS="-lmcrypt $LIBS"
61398: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61399: /* end confdefs.h. */
61400:
61401: /* Override any GCC internal prototype to avoid an error.
61402: Use char because int might match the return type of a GCC
61403: builtin and then its argument prototype would still apply. */
61404: #ifdef __cplusplus
61405: extern "C"
61406: #endif
61407: char mcrypt_module_open ();
61408: int
61409: main ()
61410: {
61411: return mcrypt_module_open ();
61412: ;
61413: return 0;
61414: }
61415: _ACEOF
61416: if ac_fn_c_try_link "$LINENO"; then :
61417: ac_cv_lib_mcrypt_mcrypt_module_open=yes
61418: else
61419: ac_cv_lib_mcrypt_mcrypt_module_open=no
61420: fi
61421: rm -f core conftest.err conftest.$ac_objext \
61422: conftest$ac_exeext conftest.$ac_ext
61423: LIBS=$ac_check_lib_save_LIBS
61424: fi
61425: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mcrypt_mcrypt_module_open" >&5
61426: $as_echo "$ac_cv_lib_mcrypt_mcrypt_module_open" >&6; }
61427: if test "x$ac_cv_lib_mcrypt_mcrypt_module_open" = xyes; then :
61428:
61429: LDFLAGS=$save_old_LDFLAGS
61430: ext_shared=$save_ext_shared
61431:
61432:
61433:
61434: case ltdl in
61435: c|c_r|pthread*) ;;
61436: *)
61437: if test "$ext_shared" = "yes"; then
61438: MCRYPT_SHARED_LIBADD="-lltdl $MCRYPT_SHARED_LIBADD"
61439: else
61440:
61441:
61442: case ltdl in
61443: c|c_r|pthread*) ;;
61444: *)
61445: LIBS="-lltdl $LIBS"
61446: ;;
61447: esac
61448:
61449:
61450: fi
61451: ;;
61452: esac
61453:
61454:
61455:
61456: $as_echo "#define HAVE_LIBMCRYPT 1" >>confdefs.h
61457:
61458:
61459:
61460: else
61461:
61462: LDFLAGS=$save_old_LDFLAGS
61463: ext_shared=$save_ext_shared
61464: unset ac_cv_lib_mcrypt_mcrypt_module_open
61465:
61466:
61467: save_old_LDFLAGS=$LDFLAGS
61468: ac_stuff="
61469: -L$MCRYPT_DIR/$PHP_LIBDIR
61470: "
61471:
61472: save_ext_shared=$ext_shared
61473: ext_shared=yes
61474:
61475: for ac_i in $ac_stuff; do
61476: case $ac_i in
61477: -pthread)
61478: if test "$ext_shared" = "yes"; then
61479: LDFLAGS="$LDFLAGS -pthread"
61480: else
61481:
61482:
61483: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
61484:
61485: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
61486: if test -n "$unique" && test "`eval $cmd`" = "" ; then
61487: eval "EXTRA_LDFLAGS$unique=set"
61488: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
61489: fi
61490:
61491: fi
61492: ;;
61493: -l*)
61494: ac_ii=`echo $ac_i|cut -c 3-`
61495:
61496:
61497: case $ac_ii in
61498: c|c_r|pthread*) ;;
61499: *)
61500: if test "$ext_shared" = "yes"; then
61501: LDFLAGS="$LDFLAGS -l$ac_ii"
61502: else
61503:
61504:
61505: case $ac_ii in
61506: c|c_r|pthread*) ;;
61507: *)
61508: LIBS="$LIBS -l$ac_ii"
61509: ;;
61510: esac
61511:
61512:
61513: fi
61514: ;;
61515: esac
61516:
61517:
61518: ;;
61519: -L*)
61520: ac_ii=`echo $ac_i|cut -c 3-`
61521:
61522: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
61523:
61524: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
61525: ai_p=$ac_ii
61526: else
61527:
61528: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
61529:
61530: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
61531: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
61532: fi
61533:
61534:
61535: if test "$ext_shared" = "yes"; then
61536: LDFLAGS="-L$ai_p $LDFLAGS"
61537: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
61538: else
61539:
61540:
61541:
61542: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
61543:
61544: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
61545: if test -n "$unique" && test "`eval $cmd`" = "" ; then
61546: eval "LIBPATH$unique=set"
61547:
61548: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
61549: LDFLAGS="$LDFLAGS -L$ai_p"
61550: PHP_RPATHS="$PHP_RPATHS $ai_p"
61551:
61552: fi
61553:
61554:
61555: fi
61556:
61557: fi
61558:
61559: ;;
61560: esac
61561: done
61562:
61563: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mcrypt_module_open in -lmcrypt" >&5
61564: $as_echo_n "checking for mcrypt_module_open in -lmcrypt... " >&6; }
61565: if ${ac_cv_lib_mcrypt_mcrypt_module_open+:} false; then :
61566: $as_echo_n "(cached) " >&6
61567: else
61568: ac_check_lib_save_LIBS=$LIBS
61569: LIBS="-lmcrypt $LIBS"
61570: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61571: /* end confdefs.h. */
61572:
61573: /* Override any GCC internal prototype to avoid an error.
61574: Use char because int might match the return type of a GCC
61575: builtin and then its argument prototype would still apply. */
61576: #ifdef __cplusplus
61577: extern "C"
61578: #endif
61579: char mcrypt_module_open ();
61580: int
61581: main ()
61582: {
61583: return mcrypt_module_open ();
61584: ;
61585: return 0;
61586: }
61587: _ACEOF
61588: if ac_fn_c_try_link "$LINENO"; then :
61589: ac_cv_lib_mcrypt_mcrypt_module_open=yes
61590: else
61591: ac_cv_lib_mcrypt_mcrypt_module_open=no
61592: fi
61593: rm -f core conftest.err conftest.$ac_objext \
61594: conftest$ac_exeext conftest.$ac_ext
61595: LIBS=$ac_check_lib_save_LIBS
61596: fi
61597: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mcrypt_mcrypt_module_open" >&5
61598: $as_echo "$ac_cv_lib_mcrypt_mcrypt_module_open" >&6; }
61599: if test "x$ac_cv_lib_mcrypt_mcrypt_module_open" = xyes; then :
61600:
61601: LDFLAGS=$save_old_LDFLAGS
61602: ext_shared=$save_ext_shared
61603:
61604:
61605: $as_echo "#define HAVE_LIBMCRYPT 1" >>confdefs.h
61606:
61607:
61608:
61609: else
61610:
61611: LDFLAGS=$save_old_LDFLAGS
61612: ext_shared=$save_ext_shared
61613: unset ac_cv_lib_mcrypt_mcrypt_module_open
61614:
61615: as_fn_error $? "Sorry, I was not able to diagnose which libmcrypt version you have installed." "$LINENO" 5
61616:
61617:
61618: fi
61619:
61620:
61621:
61622: fi
61623:
61624:
61625:
61626:
61627: if test "$ext_shared" = "yes"; then
61628: MCRYPT_SHARED_LIBADD="-lmcrypt $MCRYPT_SHARED_LIBADD"
61629: if test -n "$MCRYPT_DIR/$PHP_LIBDIR"; then
61630:
61631: if test "$MCRYPT_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$MCRYPT_DIR/$PHP_LIBDIR" != "/usr/lib"; then
61632:
61633: if test -z "$MCRYPT_DIR/$PHP_LIBDIR" || echo "$MCRYPT_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
61634: ai_p=$MCRYPT_DIR/$PHP_LIBDIR
61635: else
61636:
61637: ep_dir="`echo $MCRYPT_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
61638:
61639: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
61640: ai_p="$ep_realdir/`basename \"$MCRYPT_DIR/$PHP_LIBDIR\"`"
61641: fi
61642:
61643:
61644: if test "$ext_shared" = "yes"; then
61645: MCRYPT_SHARED_LIBADD="-L$ai_p $MCRYPT_SHARED_LIBADD"
61646: test -n "$ld_runpath_switch" && MCRYPT_SHARED_LIBADD="$ld_runpath_switch$ai_p $MCRYPT_SHARED_LIBADD"
61647: else
61648:
61649:
61650:
61651: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
61652:
61653: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
61654: if test -n "$unique" && test "`eval $cmd`" = "" ; then
61655: eval "LIBPATH$unique=set"
61656:
61657: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
61658: LDFLAGS="$LDFLAGS -L$ai_p"
61659: PHP_RPATHS="$PHP_RPATHS $ai_p"
61660:
61661: fi
61662:
61663:
61664: fi
61665:
61666: fi
61667:
61668: fi
61669: else
61670:
61671:
61672: if test -n "$MCRYPT_DIR/$PHP_LIBDIR"; then
61673:
61674: if test "$MCRYPT_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$MCRYPT_DIR/$PHP_LIBDIR" != "/usr/lib"; then
61675:
61676: if test -z "$MCRYPT_DIR/$PHP_LIBDIR" || echo "$MCRYPT_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
61677: ai_p=$MCRYPT_DIR/$PHP_LIBDIR
61678: else
61679:
61680: ep_dir="`echo $MCRYPT_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
61681:
61682: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
61683: ai_p="$ep_realdir/`basename \"$MCRYPT_DIR/$PHP_LIBDIR\"`"
61684: fi
61685:
61686:
61687:
61688:
61689:
61690: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
61691:
61692: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
61693: if test -n "$unique" && test "`eval $cmd`" = "" ; then
61694: eval "LIBPATH$unique=set"
61695:
61696: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
61697: LDFLAGS="$LDFLAGS -L$ai_p"
61698: PHP_RPATHS="$PHP_RPATHS $ai_p"
61699:
61700: fi
61701:
61702:
61703:
61704: fi
61705:
61706: fi
61707:
61708:
61709: case mcrypt in
61710: c|c_r|pthread*) ;;
61711: *)
61712: LIBS="-lmcrypt $LIBS"
61713: ;;
61714: esac
61715:
61716:
61717:
61718:
61719: fi
61720:
61721:
61722:
61723: if test "$MCRYPT_DIR/include" != "/usr/include"; then
61724:
61725: if test -z "$MCRYPT_DIR/include" || echo "$MCRYPT_DIR/include" | grep '^/' >/dev/null ; then
61726: ai_p=$MCRYPT_DIR/include
61727: else
61728:
61729: ep_dir="`echo $MCRYPT_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
61730:
61731: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
61732: ai_p="$ep_realdir/`basename \"$MCRYPT_DIR/include\"`"
61733: fi
61734:
61735:
61736:
61737: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
61738:
61739: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
61740: if test -n "$unique" && test "`eval $cmd`" = "" ; then
61741: eval "INCLUDEPATH$unique=set"
61742:
61743: if test ""; then
61744: INCLUDES="-I$ai_p $INCLUDES"
61745: else
61746: INCLUDES="$INCLUDES -I$ai_p"
61747: fi
61748:
61749: fi
61750:
61751: fi
61752:
61753:
61754:
61755: PHP_VAR_SUBST="$PHP_VAR_SUBST MCRYPT_SHARED_LIBADD"
61756:
61757:
61758: ext_builddir=ext/mcrypt
61759: ext_srcdir=$abs_srcdir/ext/mcrypt
61760:
61761: ac_extra=
61762:
61763: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
61764: PHP_MCRYPT_SHARED=no
61765:
61766:
61767: case ext/mcrypt in
61768: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
61769: /*) ac_srcdir=`echo "ext/mcrypt"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
61770: *) ac_srcdir="$abs_srcdir/ext/mcrypt/"; ac_bdir="ext/mcrypt/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
61771: esac
61772:
61773:
61774:
61775: b_c_pre=$php_c_pre
61776: b_cxx_pre=$php_cxx_pre
61777: b_c_meta=$php_c_meta
61778: b_cxx_meta=$php_cxx_meta
61779: b_c_post=$php_c_post
61780: b_cxx_post=$php_cxx_post
61781: b_lo=$php_lo
61782:
61783:
61784: old_IFS=$IFS
61785: for ac_src in mcrypt.c mcrypt_filter.c; do
61786:
61787: IFS=.
61788: set $ac_src
61789: ac_obj=$1
61790: IFS=$old_IFS
61791:
61792: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
61793:
61794: case $ac_src in
61795: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
61796: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
61797: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
61798: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
61799: esac
61800:
61801: cat >>Makefile.objects<<EOF
61802: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
61803: $ac_comp
61804: EOF
61805: done
61806:
61807:
61808: EXT_STATIC="$EXT_STATIC mcrypt"
61809: if test "$ext_shared" != "nocli"; then
61810: EXT_CLI_STATIC="$EXT_CLI_STATIC mcrypt"
61811: fi
61812: else
61813: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
61814: PHP_MCRYPT_SHARED=yes
61815:
61816: case ext/mcrypt in
61817: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
61818: /*) ac_srcdir=`echo "ext/mcrypt"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
61819: *) ac_srcdir="$abs_srcdir/ext/mcrypt/"; ac_bdir="ext/mcrypt/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
61820: esac
61821:
61822:
61823:
61824: b_c_pre=$shared_c_pre
61825: b_cxx_pre=$shared_cxx_pre
61826: b_c_meta=$shared_c_meta
61827: b_cxx_meta=$shared_cxx_meta
61828: b_c_post=$shared_c_post
61829: b_cxx_post=$shared_cxx_post
61830: b_lo=$shared_lo
61831:
61832:
61833: old_IFS=$IFS
61834: for ac_src in mcrypt.c mcrypt_filter.c; do
61835:
61836: IFS=.
61837: set $ac_src
61838: ac_obj=$1
61839: IFS=$old_IFS
61840:
61841: shared_objects_mcrypt="$shared_objects_mcrypt $ac_bdir$ac_obj.lo"
61842:
61843: case $ac_src in
61844: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
61845: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
61846: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
61847: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
61848: esac
61849:
61850: cat >>Makefile.objects<<EOF
61851: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
61852: $ac_comp
61853: EOF
61854: done
61855:
61856: case $host_alias in
61857: *netware*)
61858:
61859: install_modules="install-modules"
61860:
61861: case $host_alias in
61862: *aix*)
61863: suffix=so
61864: 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'
61865: ;;
61866: *netware*)
61867: suffix=nlm
61868: link_cmd='$(LIBTOOL) --mode=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)'
61869: ;;
61870: *)
61871: suffix=la
61872: link_cmd='$(LIBTOOL) --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)'
61873: ;;
61874: esac
61875:
61876: if test "x" = "xyes"; then
61877: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpmcrypt.$suffix"
61878: else
61879: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpmcrypt.$suffix"
61880: fi
61881:
61882: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_mcrypt"
61883:
61884: cat >>Makefile.objects<<EOF
61885: \$(phplibdir)/phpmcrypt.$suffix: $ext_builddir/phpmcrypt.$suffix
61886: \$(LIBTOOL) --mode=install cp $ext_builddir/phpmcrypt.$suffix \$(phplibdir)
61887:
61888: $ext_builddir/phpmcrypt.$suffix: \$(shared_objects_mcrypt) \$(PHPMCRYPT_SHARED_DEPENDENCIES)
61889: $link_cmd
61890:
61891: EOF
61892:
61893: ;;
61894: *)
61895:
61896: install_modules="install-modules"
61897:
61898: case $host_alias in
61899: *aix*)
61900: suffix=so
61901: 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'
61902: ;;
61903: *netware*)
61904: suffix=nlm
61905: link_cmd='$(LIBTOOL) --mode=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)'
61906: ;;
61907: *)
61908: suffix=la
61909: link_cmd='$(LIBTOOL) --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)'
61910: ;;
61911: esac
61912:
61913: if test "x" = "xyes"; then
61914: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/mcrypt.$suffix"
61915: else
61916: PHP_MODULES="$PHP_MODULES \$(phplibdir)/mcrypt.$suffix"
61917: fi
61918:
61919: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_mcrypt"
61920:
61921: cat >>Makefile.objects<<EOF
61922: \$(phplibdir)/mcrypt.$suffix: $ext_builddir/mcrypt.$suffix
61923: \$(LIBTOOL) --mode=install cp $ext_builddir/mcrypt.$suffix \$(phplibdir)
61924:
61925: $ext_builddir/mcrypt.$suffix: \$(shared_objects_mcrypt) \$(MCRYPT_SHARED_DEPENDENCIES)
61926: $link_cmd
61927:
61928: EOF
61929:
61930: ;;
61931: esac
61932:
61933: cat >>confdefs.h <<_ACEOF
61934: #define COMPILE_DL_MCRYPT 1
61935: _ACEOF
61936:
61937: fi
61938: fi
61939:
61940: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
61941: PHP_MCRYPT_SHARED=no
61942:
61943:
61944: case ext/mcrypt in
61945: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
61946: /*) ac_srcdir=`echo "ext/mcrypt"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
61947: *) ac_srcdir="$abs_srcdir/ext/mcrypt/"; ac_bdir="ext/mcrypt/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
61948: esac
61949:
61950:
61951:
61952: b_c_pre=$php_c_pre
61953: b_cxx_pre=$php_cxx_pre
61954: b_c_meta=$php_c_meta
61955: b_cxx_meta=$php_cxx_meta
61956: b_c_post=$php_c_post
61957: b_cxx_post=$php_cxx_post
61958: b_lo=$php_lo
61959:
61960:
61961: old_IFS=$IFS
61962: for ac_src in mcrypt.c mcrypt_filter.c; do
61963:
61964: IFS=.
61965: set $ac_src
61966: ac_obj=$1
61967: IFS=$old_IFS
61968:
61969: PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
61970:
61971: case $ac_src in
61972: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
61973: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
61974: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
61975: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
61976: esac
61977:
61978: cat >>Makefile.objects<<EOF
61979: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
61980: $ac_comp
61981: EOF
61982: done
61983:
61984:
61985:
61986:
61987: case ext/mcrypt in
61988: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
61989: /*) ac_srcdir=`echo "ext/mcrypt"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
61990: *) ac_srcdir="$abs_srcdir/ext/mcrypt/"; ac_bdir="ext/mcrypt/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
61991: esac
61992:
61993:
61994:
61995: b_c_pre=$php_c_pre
61996: b_cxx_pre=$php_cxx_pre
61997: b_c_meta=$php_c_meta
61998: b_cxx_meta=$php_cxx_meta
61999: b_c_post=$php_c_post
62000: b_cxx_post=$php_cxx_post
62001: b_lo=$php_lo
62002:
62003:
62004: old_IFS=$IFS
62005: for ac_src in mcrypt.c mcrypt_filter.c; do
62006:
62007: IFS=.
62008: set $ac_src
62009: ac_obj=$1
62010: IFS=$old_IFS
62011:
62012: PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo"
62013:
62014: case $ac_src in
62015: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
62016: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
62017: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
62018: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
62019: esac
62020:
62021: cat >>Makefile.objects<<EOF
62022: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
62023: $ac_comp
62024: EOF
62025: done
62026:
62027:
62028:
62029:
62030: case ext/mcrypt in
62031: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
62032: /*) ac_srcdir=`echo "ext/mcrypt"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
62033: *) ac_srcdir="$abs_srcdir/ext/mcrypt/"; ac_bdir="ext/mcrypt/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
62034: esac
62035:
62036:
62037:
62038: b_c_pre=$php_c_pre
62039: b_cxx_pre=$php_cxx_pre
62040: b_c_meta=$php_c_meta
62041: b_cxx_meta=$php_cxx_meta
62042: b_c_post=$php_c_post
62043: b_cxx_post=$php_cxx_post
62044: b_lo=$php_lo
62045:
62046:
62047: old_IFS=$IFS
62048: for ac_src in mcrypt.c mcrypt_filter.c; do
62049:
62050: IFS=.
62051: set $ac_src
62052: ac_obj=$1
62053: IFS=$old_IFS
62054:
62055: PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo"
62056:
62057: case $ac_src in
62058: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
62059: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
62060: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
62061: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
62062: esac
62063:
62064: cat >>Makefile.objects<<EOF
62065: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
62066: $ac_comp
62067: EOF
62068: done
62069:
62070:
62071: EXT_CLI_STATIC="$EXT_CLI_STATIC mcrypt"
62072: fi
62073:
62074:
62075: BUILD_DIR="$BUILD_DIR $ext_builddir"
62076:
62077:
62078:
62079: if test "$ext_builddir" = "."; then
62080: PHP_PECL_EXTENSION=mcrypt
62081:
62082: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
62083:
62084: fi
62085:
62086: fi
62087:
62088:
62089:
62090: php_with_mssql=no
62091:
62092: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSSQL support via FreeTDS" >&5
62093: $as_echo_n "checking for MSSQL support via FreeTDS... " >&6; }
62094:
62095: # Check whether --with-mssql was given.
62096: if test "${with_mssql+set}" = set; then :
62097: withval=$with_mssql; PHP_MSSQL=$withval
62098: else
62099:
62100: PHP_MSSQL=no
62101: test "$PHP_ENABLE_ALL" && PHP_MSSQL=$PHP_ENABLE_ALL
62102:
62103: fi
62104:
62105:
62106:
62107: ext_output="yes, shared"
62108: ext_shared=yes
62109: case $PHP_MSSQL in
62110: shared,*)
62111: PHP_MSSQL=`echo "$PHP_MSSQL"|$SED 's/^shared,//'`
62112: ;;
62113: shared)
62114: PHP_MSSQL=yes
62115: ;;
62116: no)
62117: ext_output=no
62118: ext_shared=no
62119: ;;
62120: *)
62121: ext_output=yes
62122: ext_shared=no
62123: ;;
62124: esac
62125:
62126:
62127:
62128: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
62129: $as_echo "$ext_output" >&6; }
62130:
62131:
62132:
62133:
62134: if test "$PHP_MSSQL" != "no"; then
62135:
62136: if test "$PHP_MSSQL" = "yes"; then
62137: for i in /usr/local /usr; do
62138: if test -f $i/include/sybdb.h; then
62139: FREETDS_INSTALLATION_DIR=$i
62140: FREETDS_INCLUDE_DIR=$i/include
62141: break
62142: elif test -f $i/include/freetds/sybdb.h; then
62143: FREETDS_INSTALLATION_DIR=$i
62144: FREETDS_INCLUDE_DIR=$i/include/freetds
62145: break
62146: fi
62147: done
62148:
62149: if test -z "$FREETDS_INSTALLATION_DIR"; then
62150: as_fn_error $? "Cannot find FreeTDS in known installation directories" "$LINENO" 5
62151: fi
62152:
62153: elif test "$PHP_MSSQL" != "no"; then
62154:
62155: if test -f $PHP_MSSQL/include/sybdb.h; then
62156: FREETDS_INSTALLATION_DIR=$PHP_MSSQL
62157: FREETDS_INCLUDE_DIR=$PHP_MSSQL/include
62158: elif test -f $PHP_MSSQL/include/freetds/sybdb.h; then
62159: FREETDS_INSTALLATION_DIR=$PHP_MSSQL
62160: FREETDS_INCLUDE_DIR=$PHP_MSSQL/include/freetds
62161: else
62162: as_fn_error $? "Directory $PHP_MSSQL is not a FreeTDS installation directory" "$LINENO" 5
62163: fi
62164: fi
62165:
62166: if test ! -r "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.a" && test ! -r "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.so"; then
62167: as_fn_error $? "Could not find $FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.a|so" "$LINENO" 5
62168: fi
62169:
62170:
62171: if test "$FREETDS_INCLUDE_DIR" != "/usr/include"; then
62172:
62173: if test -z "$FREETDS_INCLUDE_DIR" || echo "$FREETDS_INCLUDE_DIR" | grep '^/' >/dev/null ; then
62174: ai_p=$FREETDS_INCLUDE_DIR
62175: else
62176:
62177: ep_dir="`echo $FREETDS_INCLUDE_DIR|$SED 's%/*[^/][^/]*/*$%%'`"
62178:
62179: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
62180: ai_p="$ep_realdir/`basename \"$FREETDS_INCLUDE_DIR\"`"
62181: fi
62182:
62183:
62184:
62185: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
62186:
62187: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
62188: if test -n "$unique" && test "`eval $cmd`" = "" ; then
62189: eval "INCLUDEPATH$unique=set"
62190:
62191: if test ""; then
62192: INCLUDES="-I$ai_p $INCLUDES"
62193: else
62194: INCLUDES="$INCLUDES -I$ai_p"
62195: fi
62196:
62197: fi
62198:
62199: fi
62200:
62201:
62202:
62203: if test "$ext_shared" = "yes"; then
62204: MSSQL_SHARED_LIBADD="-lsybdb $MSSQL_SHARED_LIBADD"
62205: if test -n "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR"; then
62206:
62207: if test "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" != "/usr/lib"; then
62208:
62209: if test -z "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" || echo "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
62210: ai_p=$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR
62211: else
62212:
62213: ep_dir="`echo $FREETDS_INSTALLATION_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
62214:
62215: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
62216: ai_p="$ep_realdir/`basename \"$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR\"`"
62217: fi
62218:
62219:
62220: if test "$ext_shared" = "yes"; then
62221: MSSQL_SHARED_LIBADD="-L$ai_p $MSSQL_SHARED_LIBADD"
62222: test -n "$ld_runpath_switch" && MSSQL_SHARED_LIBADD="$ld_runpath_switch$ai_p $MSSQL_SHARED_LIBADD"
62223: else
62224:
62225:
62226:
62227: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
62228:
62229: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
62230: if test -n "$unique" && test "`eval $cmd`" = "" ; then
62231: eval "LIBPATH$unique=set"
62232:
62233: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
62234: LDFLAGS="$LDFLAGS -L$ai_p"
62235: PHP_RPATHS="$PHP_RPATHS $ai_p"
62236:
62237: fi
62238:
62239:
62240: fi
62241:
62242: fi
62243:
62244: fi
62245: else
62246:
62247:
62248: if test -n "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR"; then
62249:
62250: if test "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" != "/usr/lib"; then
62251:
62252: if test -z "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" || echo "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
62253: ai_p=$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR
62254: else
62255:
62256: ep_dir="`echo $FREETDS_INSTALLATION_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
62257:
62258: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
62259: ai_p="$ep_realdir/`basename \"$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR\"`"
62260: fi
62261:
62262:
62263:
62264:
62265:
62266: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
62267:
62268: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
62269: if test -n "$unique" && test "`eval $cmd`" = "" ; then
62270: eval "LIBPATH$unique=set"
62271:
62272: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
62273: LDFLAGS="$LDFLAGS -L$ai_p"
62274: PHP_RPATHS="$PHP_RPATHS $ai_p"
62275:
62276: fi
62277:
62278:
62279:
62280: fi
62281:
62282: fi
62283:
62284:
62285: case sybdb in
62286: c|c_r|pthread*) ;;
62287: *)
62288: LIBS="-lsybdb $LIBS"
62289: ;;
62290: esac
62291:
62292:
62293:
62294:
62295: fi
62296:
62297:
62298:
62299:
62300: ext_builddir=ext/mssql
62301: ext_srcdir=$abs_srcdir/ext/mssql
62302:
62303: ac_extra=
62304:
62305: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
62306: PHP_MSSQL_SHARED=no
62307:
62308:
62309: case ext/mssql in
62310: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
62311: /*) ac_srcdir=`echo "ext/mssql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
62312: *) ac_srcdir="$abs_srcdir/ext/mssql/"; ac_bdir="ext/mssql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
62313: esac
62314:
62315:
62316:
62317: b_c_pre=$php_c_pre
62318: b_cxx_pre=$php_cxx_pre
62319: b_c_meta=$php_c_meta
62320: b_cxx_meta=$php_cxx_meta
62321: b_c_post=$php_c_post
62322: b_cxx_post=$php_cxx_post
62323: b_lo=$php_lo
62324:
62325:
62326: old_IFS=$IFS
62327: for ac_src in php_mssql.c; do
62328:
62329: IFS=.
62330: set $ac_src
62331: ac_obj=$1
62332: IFS=$old_IFS
62333:
62334: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $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:
62350: EXT_STATIC="$EXT_STATIC mssql"
62351: if test "$ext_shared" != "nocli"; then
62352: EXT_CLI_STATIC="$EXT_CLI_STATIC mssql"
62353: fi
62354: else
62355: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
62356: PHP_MSSQL_SHARED=yes
62357:
62358: case ext/mssql in
62359: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
62360: /*) ac_srcdir=`echo "ext/mssql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
62361: *) ac_srcdir="$abs_srcdir/ext/mssql/"; ac_bdir="ext/mssql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
62362: esac
62363:
62364:
62365:
62366: b_c_pre=$shared_c_pre
62367: b_cxx_pre=$shared_cxx_pre
62368: b_c_meta=$shared_c_meta
62369: b_cxx_meta=$shared_cxx_meta
62370: b_c_post=$shared_c_post
62371: b_cxx_post=$shared_cxx_post
62372: b_lo=$shared_lo
62373:
62374:
62375: old_IFS=$IFS
62376: for ac_src in php_mssql.c; do
62377:
62378: IFS=.
62379: set $ac_src
62380: ac_obj=$1
62381: IFS=$old_IFS
62382:
62383: shared_objects_mssql="$shared_objects_mssql $ac_bdir$ac_obj.lo"
62384:
62385: case $ac_src in
62386: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
62387: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
62388: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
62389: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
62390: esac
62391:
62392: cat >>Makefile.objects<<EOF
62393: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
62394: $ac_comp
62395: EOF
62396: done
62397:
62398: case $host_alias in
62399: *netware*)
62400:
62401: install_modules="install-modules"
62402:
62403: case $host_alias in
62404: *aix*)
62405: suffix=so
62406: 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'
62407: ;;
62408: *netware*)
62409: suffix=nlm
62410: link_cmd='$(LIBTOOL) --mode=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)'
62411: ;;
62412: *)
62413: suffix=la
62414: link_cmd='$(LIBTOOL) --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)'
62415: ;;
62416: esac
62417:
62418: if test "x" = "xyes"; then
62419: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpmssql.$suffix"
62420: else
62421: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpmssql.$suffix"
62422: fi
62423:
62424: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_mssql"
62425:
62426: cat >>Makefile.objects<<EOF
62427: \$(phplibdir)/phpmssql.$suffix: $ext_builddir/phpmssql.$suffix
62428: \$(LIBTOOL) --mode=install cp $ext_builddir/phpmssql.$suffix \$(phplibdir)
62429:
62430: $ext_builddir/phpmssql.$suffix: \$(shared_objects_mssql) \$(PHPMSSQL_SHARED_DEPENDENCIES)
62431: $link_cmd
62432:
62433: EOF
62434:
62435: ;;
62436: *)
62437:
62438: install_modules="install-modules"
62439:
62440: case $host_alias in
62441: *aix*)
62442: suffix=so
62443: 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'
62444: ;;
62445: *netware*)
62446: suffix=nlm
62447: link_cmd='$(LIBTOOL) --mode=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)'
62448: ;;
62449: *)
62450: suffix=la
62451: link_cmd='$(LIBTOOL) --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)'
62452: ;;
62453: esac
62454:
62455: if test "x" = "xyes"; then
62456: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/mssql.$suffix"
62457: else
62458: PHP_MODULES="$PHP_MODULES \$(phplibdir)/mssql.$suffix"
62459: fi
62460:
62461: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_mssql"
62462:
62463: cat >>Makefile.objects<<EOF
62464: \$(phplibdir)/mssql.$suffix: $ext_builddir/mssql.$suffix
62465: \$(LIBTOOL) --mode=install cp $ext_builddir/mssql.$suffix \$(phplibdir)
62466:
62467: $ext_builddir/mssql.$suffix: \$(shared_objects_mssql) \$(MSSQL_SHARED_DEPENDENCIES)
62468: $link_cmd
62469:
62470: EOF
62471:
62472: ;;
62473: esac
62474:
62475: cat >>confdefs.h <<_ACEOF
62476: #define COMPILE_DL_MSSQL 1
62477: _ACEOF
62478:
62479: fi
62480: fi
62481:
62482: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
62483: PHP_MSSQL_SHARED=no
62484:
62485:
62486: case ext/mssql in
62487: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
62488: /*) ac_srcdir=`echo "ext/mssql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
62489: *) ac_srcdir="$abs_srcdir/ext/mssql/"; ac_bdir="ext/mssql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
62490: esac
62491:
62492:
62493:
62494: b_c_pre=$php_c_pre
62495: b_cxx_pre=$php_cxx_pre
62496: b_c_meta=$php_c_meta
62497: b_cxx_meta=$php_cxx_meta
62498: b_c_post=$php_c_post
62499: b_cxx_post=$php_cxx_post
62500: b_lo=$php_lo
62501:
62502:
62503: old_IFS=$IFS
62504: for ac_src in php_mssql.c; do
62505:
62506: IFS=.
62507: set $ac_src
62508: ac_obj=$1
62509: IFS=$old_IFS
62510:
62511: PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
62512:
62513: case $ac_src in
62514: *.c) ac_comp="$b_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: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
62517: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
62518: esac
62519:
62520: cat >>Makefile.objects<<EOF
62521: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
62522: $ac_comp
62523: EOF
62524: done
62525:
62526:
62527:
62528:
62529: case ext/mssql in
62530: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
62531: /*) ac_srcdir=`echo "ext/mssql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
62532: *) ac_srcdir="$abs_srcdir/ext/mssql/"; ac_bdir="ext/mssql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
62533: esac
62534:
62535:
62536:
62537: b_c_pre=$php_c_pre
62538: b_cxx_pre=$php_cxx_pre
62539: b_c_meta=$php_c_meta
62540: b_cxx_meta=$php_cxx_meta
62541: b_c_post=$php_c_post
62542: b_cxx_post=$php_cxx_post
62543: b_lo=$php_lo
62544:
62545:
62546: old_IFS=$IFS
62547: for ac_src in php_mssql.c; do
62548:
62549: IFS=.
62550: set $ac_src
62551: ac_obj=$1
62552: IFS=$old_IFS
62553:
62554: PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo"
62555:
62556: case $ac_src in
62557: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
62558: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
62559: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
62560: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
62561: esac
62562:
62563: cat >>Makefile.objects<<EOF
62564: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
62565: $ac_comp
62566: EOF
62567: done
62568:
62569:
62570:
62571:
62572: case ext/mssql in
62573: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
62574: /*) ac_srcdir=`echo "ext/mssql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
62575: *) ac_srcdir="$abs_srcdir/ext/mssql/"; ac_bdir="ext/mssql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
62576: esac
62577:
62578:
62579:
62580: b_c_pre=$php_c_pre
62581: b_cxx_pre=$php_cxx_pre
62582: b_c_meta=$php_c_meta
62583: b_cxx_meta=$php_cxx_meta
62584: b_c_post=$php_c_post
62585: b_cxx_post=$php_cxx_post
62586: b_lo=$php_lo
62587:
62588:
62589: old_IFS=$IFS
62590: for ac_src in php_mssql.c; do
62591:
62592: IFS=.
62593: set $ac_src
62594: ac_obj=$1
62595: IFS=$old_IFS
62596:
62597: PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo"
62598:
62599: case $ac_src in
62600: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
62601: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
62602: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
62603: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
62604: esac
62605:
62606: cat >>Makefile.objects<<EOF
62607: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
62608: $ac_comp
62609: EOF
62610: done
62611:
62612:
62613: EXT_CLI_STATIC="$EXT_CLI_STATIC mssql"
62614: fi
62615:
62616:
62617: BUILD_DIR="$BUILD_DIR $ext_builddir"
62618:
62619:
62620:
62621: if test "$ext_builddir" = "."; then
62622: PHP_PECL_EXTENSION=mssql
62623:
62624: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
62625:
62626: fi
62627:
62628: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_addr in -ldnet_stub" >&5
62629: $as_echo_n "checking for dnet_addr in -ldnet_stub... " >&6; }
62630: if ${ac_cv_lib_dnet_stub_dnet_addr+:} false; then :
62631: $as_echo_n "(cached) " >&6
62632: else
62633: ac_check_lib_save_LIBS=$LIBS
62634: LIBS="-ldnet_stub $LIBS"
62635: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62636: /* end confdefs.h. */
62637:
62638: /* Override any GCC internal prototype to avoid an error.
62639: Use char because int might match the return type of a GCC
62640: builtin and then its argument prototype would still apply. */
62641: #ifdef __cplusplus
62642: extern "C"
62643: #endif
62644: char dnet_addr ();
62645: int
62646: main ()
62647: {
62648: return dnet_addr ();
62649: ;
62650: return 0;
62651: }
62652: _ACEOF
62653: if ac_fn_c_try_link "$LINENO"; then :
62654: ac_cv_lib_dnet_stub_dnet_addr=yes
62655: else
62656: ac_cv_lib_dnet_stub_dnet_addr=no
62657: fi
62658: rm -f core conftest.err conftest.$ac_objext \
62659: conftest$ac_exeext conftest.$ac_ext
62660: LIBS=$ac_check_lib_save_LIBS
62661: fi
62662: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_addr" >&5
62663: $as_echo "$ac_cv_lib_dnet_stub_dnet_addr" >&6; }
62664: if test "x$ac_cv_lib_dnet_stub_dnet_addr" = xyes; then :
62665:
62666:
62667: if test "$ext_shared" = "yes"; then
62668: MSSQL_SHARED_LIBADD="-ldnet_stub $MSSQL_SHARED_LIBADD"
62669: if test -n ""; then
62670:
62671: if test "" != "/usr/$PHP_LIBDIR" && test "" != "/usr/lib"; then
62672:
62673: if test -z "" || echo "" | grep '^/' >/dev/null ; then
62674: ai_p=
62675: else
62676:
62677: ep_dir="`echo |$SED 's%/*[^/][^/]*/*$%%'`"
62678:
62679: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
62680: ai_p="$ep_realdir/`basename \"\"`"
62681: fi
62682:
62683:
62684: if test "$ext_shared" = "yes"; then
62685: MSSQL_SHARED_LIBADD="-L$ai_p $MSSQL_SHARED_LIBADD"
62686: test -n "$ld_runpath_switch" && MSSQL_SHARED_LIBADD="$ld_runpath_switch$ai_p $MSSQL_SHARED_LIBADD"
62687: else
62688:
62689:
62690:
62691: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
62692:
62693: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
62694: if test -n "$unique" && test "`eval $cmd`" = "" ; then
62695: eval "LIBPATH$unique=set"
62696:
62697: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
62698: LDFLAGS="$LDFLAGS -L$ai_p"
62699: PHP_RPATHS="$PHP_RPATHS $ai_p"
62700:
62701: fi
62702:
62703:
62704: fi
62705:
62706: fi
62707:
62708: fi
62709: else
62710:
62711:
62712: if test -n ""; then
62713:
62714: if test "" != "/usr/$PHP_LIBDIR" && test "" != "/usr/lib"; then
62715:
62716: if test -z "" || echo "" | grep '^/' >/dev/null ; then
62717: ai_p=
62718: else
62719:
62720: ep_dir="`echo |$SED 's%/*[^/][^/]*/*$%%'`"
62721:
62722: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
62723: ai_p="$ep_realdir/`basename \"\"`"
62724: fi
62725:
62726:
62727:
62728:
62729:
62730: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
62731:
62732: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
62733: if test -n "$unique" && test "`eval $cmd`" = "" ; then
62734: eval "LIBPATH$unique=set"
62735:
62736: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
62737: LDFLAGS="$LDFLAGS -L$ai_p"
62738: PHP_RPATHS="$PHP_RPATHS $ai_p"
62739:
62740: fi
62741:
62742:
62743:
62744: fi
62745:
62746: fi
62747:
62748:
62749: case dnet_stub in
62750: c|c_r|pthread*) ;;
62751: *)
62752: LIBS="-ldnet_stub $LIBS"
62753: ;;
62754: esac
62755:
62756:
62757:
62758:
62759: fi
62760:
62761:
62762:
62763: $as_echo "#define HAVE_LIBDNET_STUB 1" >>confdefs.h
62764:
62765:
62766: fi
62767:
62768:
62769: $as_echo "#define HAVE_MSSQL 1" >>confdefs.h
62770:
62771:
62772: $as_echo "#define HAVE_FREETDS 1" >>confdefs.h
62773:
62774:
62775: PHP_VAR_SUBST="$PHP_VAR_SUBST MSSQL_SHARED_LIBADD"
62776:
62777: fi
62778:
62779:
62780:
62781:
62782:
62783:
62784:
62785:
62786: php_with_mysql=no
62787:
62788: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
62789: $as_echo_n "checking for MySQL support... " >&6; }
62790:
62791: # Check whether --with-mysql was given.
62792: if test "${with_mysql+set}" = set; then :
62793: withval=$with_mysql; PHP_MYSQL=$withval
62794: else
62795:
62796: PHP_MYSQL=no
62797: test "$PHP_ENABLE_ALL" && PHP_MYSQL=$PHP_ENABLE_ALL
62798:
62799: fi
62800:
62801:
62802:
62803: ext_output="yes, shared"
62804: ext_shared=yes
62805: case $PHP_MYSQL in
62806: shared,*)
62807: PHP_MYSQL=`echo "$PHP_MYSQL"|$SED 's/^shared,//'`
62808: ;;
62809: shared)
62810: PHP_MYSQL=yes
62811: ;;
62812: no)
62813: ext_output=no
62814: ext_shared=no
62815: ;;
62816: *)
62817: ext_output=yes
62818: ext_shared=no
62819: ;;
62820: esac
62821:
62822:
62823:
62824: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
62825: $as_echo "$ext_output" >&6; }
62826:
62827:
62828:
62829:
62830:
62831: php_with_mysql_sock=no
62832:
62833: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for specified location of the MySQL UNIX socket" >&5
62834: $as_echo_n "checking for specified location of the MySQL UNIX socket... " >&6; }
62835:
62836: # Check whether --with-mysql-sock was given.
62837: if test "${with_mysql_sock+set}" = set; then :
62838: withval=$with_mysql_sock; PHP_MYSQL_SOCK=$withval
62839: else
62840:
62841: PHP_MYSQL_SOCK=no
62842:
62843:
62844: fi
62845:
62846:
62847: ext_output=$PHP_MYSQL_SOCK
62848: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
62849: $as_echo "$ext_output" >&6; }
62850:
62851:
62852:
62853:
62854: if test -z "$PHP_ZLIB_DIR"; then
62855:
62856: php_with_zlib_dir=no
62857:
62858: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the location of libz" >&5
62859: $as_echo_n "checking for the location of libz... " >&6; }
62860:
62861: # Check whether --with-zlib-dir was given.
62862: if test "${with_zlib_dir+set}" = set; then :
62863: withval=$with_zlib_dir; PHP_ZLIB_DIR=$withval
62864: else
62865:
62866: PHP_ZLIB_DIR=no
62867:
62868:
62869: fi
62870:
62871:
62872: ext_output=$PHP_ZLIB_DIR
62873: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
62874: $as_echo "$ext_output" >&6; }
62875:
62876:
62877:
62878: fi
62879:
62880: if test "$PHP_MYSQL" = "mysqlnd"; then
62881: PHP_MYSQLND_ENABLED=yes
62882:
62883: elif test "$PHP_MYSQL" != "no"; then
62884: MYSQL_DIR=
62885: MYSQL_INC_DIR=
62886:
62887: for i in $PHP_MYSQL /usr/local /usr; do
62888: if test -r $i/include/mysql/mysql.h; then
62889: MYSQL_DIR=$i
62890: MYSQL_INC_DIR=$i/include/mysql
62891: break
62892: elif test -r $i/include/mysql.h; then
62893: MYSQL_DIR=$i
62894: MYSQL_INC_DIR=$i/include
62895: break
62896: fi
62897: done
62898:
62899: if test -z "$MYSQL_DIR"; then
62900: as_fn_error $? "Cannot find MySQL header files under $PHP_MYSQL.
62901: Note that the MySQL client library is not bundled anymore!" "$LINENO" 5
62902: fi
62903:
62904: if test "$enable_maintainer_zts" = "yes"; then
62905: MYSQL_LIBNAME=mysqlclient_r
62906: else
62907: MYSQL_LIBNAME=mysqlclient
62908: fi
62909: case $host_alias in
62910: *netware*)
62911: MYSQL_LIBNAME=mysql
62912: ;;
62913: esac
62914:
62915: if test -z "$PHP_LIBDIR"; then
62916: PHP_LIBDIR=lib
62917: fi
62918:
62919: for i in $PHP_LIBDIR $PHP_LIBDIR/mysql; do
62920:
62921: str="$MYSQL_DIR/$i/lib$MYSQL_LIBNAME.*"
62922: for j in `echo $str`; do
62923: if test -r $j; then
62924: MYSQL_LIB_DIR=$MYSQL_DIR/$i
62925: break 2
62926: fi
62927: done
62928:
62929: done
62930:
62931: if test -z "$MYSQL_LIB_DIR"; then
62932: as_fn_error $? "Cannot find lib$MYSQL_LIBNAME under $MYSQL_DIR.
62933: Note that the MySQL client library is not bundled anymore!" "$LINENO" 5
62934: fi
62935:
62936:
62937: save_old_LDFLAGS=$LDFLAGS
62938: ac_stuff="
62939: -L$MYSQL_LIB_DIR
62940: "
62941:
62942: save_ext_shared=$ext_shared
62943: ext_shared=yes
62944:
62945: for ac_i in $ac_stuff; do
62946: case $ac_i in
62947: -pthread)
62948: if test "$ext_shared" = "yes"; then
62949: LDFLAGS="$LDFLAGS -pthread"
62950: else
62951:
62952:
62953: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
62954:
62955: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
62956: if test -n "$unique" && test "`eval $cmd`" = "" ; then
62957: eval "EXTRA_LDFLAGS$unique=set"
62958: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
62959: fi
62960:
62961: fi
62962: ;;
62963: -l*)
62964: ac_ii=`echo $ac_i|cut -c 3-`
62965:
62966:
62967: case $ac_ii in
62968: c|c_r|pthread*) ;;
62969: *)
62970: if test "$ext_shared" = "yes"; then
62971: LDFLAGS="$LDFLAGS -l$ac_ii"
62972: else
62973:
62974:
62975: case $ac_ii in
62976: c|c_r|pthread*) ;;
62977: *)
62978: LIBS="$LIBS -l$ac_ii"
62979: ;;
62980: esac
62981:
62982:
62983: fi
62984: ;;
62985: esac
62986:
62987:
62988: ;;
62989: -L*)
62990: ac_ii=`echo $ac_i|cut -c 3-`
62991:
62992: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
62993:
62994: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
62995: ai_p=$ac_ii
62996: else
62997:
62998: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
62999:
63000: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
63001: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
63002: fi
63003:
63004:
63005: if test "$ext_shared" = "yes"; then
63006: LDFLAGS="-L$ai_p $LDFLAGS"
63007: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
63008: else
63009:
63010:
63011:
63012: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
63013:
63014: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
63015: if test -n "$unique" && test "`eval $cmd`" = "" ; then
63016: eval "LIBPATH$unique=set"
63017:
63018: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
63019: LDFLAGS="$LDFLAGS -L$ai_p"
63020: PHP_RPATHS="$PHP_RPATHS $ai_p"
63021:
63022: fi
63023:
63024:
63025: fi
63026:
63027: fi
63028:
63029: ;;
63030: esac
63031: done
63032:
63033: as_ac_Lib=`$as_echo "ac_cv_lib_$MYSQL_LIBNAME''_mysql_close" | $as_tr_sh`
63034: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_close in -l$MYSQL_LIBNAME" >&5
63035: $as_echo_n "checking for mysql_close in -l$MYSQL_LIBNAME... " >&6; }
63036: if eval \${$as_ac_Lib+:} false; then :
63037: $as_echo_n "(cached) " >&6
63038: else
63039: ac_check_lib_save_LIBS=$LIBS
63040: LIBS="-l$MYSQL_LIBNAME $LIBS"
63041: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
63042: /* end confdefs.h. */
63043:
63044: /* Override any GCC internal prototype to avoid an error.
63045: Use char because int might match the return type of a GCC
63046: builtin and then its argument prototype would still apply. */
63047: #ifdef __cplusplus
63048: extern "C"
63049: #endif
63050: char mysql_close ();
63051: int
63052: main ()
63053: {
63054: return mysql_close ();
63055: ;
63056: return 0;
63057: }
63058: _ACEOF
63059: if ac_fn_c_try_link "$LINENO"; then :
63060: eval "$as_ac_Lib=yes"
63061: else
63062: eval "$as_ac_Lib=no"
63063: fi
63064: rm -f core conftest.err conftest.$ac_objext \
63065: conftest$ac_exeext conftest.$ac_ext
63066: LIBS=$ac_check_lib_save_LIBS
63067: fi
63068: eval ac_res=\$$as_ac_Lib
63069: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
63070: $as_echo "$ac_res" >&6; }
63071: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
63072:
63073: LDFLAGS=$save_old_LDFLAGS
63074: ext_shared=$save_ext_shared
63075:
63076:
63077: else
63078:
63079: LDFLAGS=$save_old_LDFLAGS
63080: ext_shared=$save_ext_shared
63081: unset ac_cv_lib_$MYSQL_LIBNAME_mysql_close
63082:
63083: if test "$PHP_ZLIB_DIR" != "no"; then
63084:
63085:
63086: if test "$ext_shared" = "yes"; then
63087: MYSQL_SHARED_LIBADD="-lz $MYSQL_SHARED_LIBADD"
63088: if test -n "$PHP_ZLIB_DIR"; then
63089:
63090: if test "$PHP_ZLIB_DIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ZLIB_DIR" != "/usr/lib"; then
63091:
63092: if test -z "$PHP_ZLIB_DIR" || echo "$PHP_ZLIB_DIR" | grep '^/' >/dev/null ; then
63093: ai_p=$PHP_ZLIB_DIR
63094: else
63095:
63096: ep_dir="`echo $PHP_ZLIB_DIR|$SED 's%/*[^/][^/]*/*$%%'`"
63097:
63098: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
63099: ai_p="$ep_realdir/`basename \"$PHP_ZLIB_DIR\"`"
63100: fi
63101:
63102:
63103: if test "$ext_shared" = "yes"; then
63104: MYSQL_SHARED_LIBADD="-L$ai_p $MYSQL_SHARED_LIBADD"
63105: test -n "$ld_runpath_switch" && MYSQL_SHARED_LIBADD="$ld_runpath_switch$ai_p $MYSQL_SHARED_LIBADD"
63106: else
63107:
63108:
63109:
63110: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
63111:
63112: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
63113: if test -n "$unique" && test "`eval $cmd`" = "" ; then
63114: eval "LIBPATH$unique=set"
63115:
63116: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
63117: LDFLAGS="$LDFLAGS -L$ai_p"
63118: PHP_RPATHS="$PHP_RPATHS $ai_p"
63119:
63120: fi
63121:
63122:
63123: fi
63124:
63125: fi
63126:
63127: fi
63128: else
63129:
63130:
63131: if test -n "$PHP_ZLIB_DIR"; then
63132:
63133: if test "$PHP_ZLIB_DIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ZLIB_DIR" != "/usr/lib"; then
63134:
63135: if test -z "$PHP_ZLIB_DIR" || echo "$PHP_ZLIB_DIR" | grep '^/' >/dev/null ; then
63136: ai_p=$PHP_ZLIB_DIR
63137: else
63138:
63139: ep_dir="`echo $PHP_ZLIB_DIR|$SED 's%/*[^/][^/]*/*$%%'`"
63140:
63141: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
63142: ai_p="$ep_realdir/`basename \"$PHP_ZLIB_DIR\"`"
63143: fi
63144:
63145:
63146:
63147:
63148:
63149: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
63150:
63151: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
63152: if test -n "$unique" && test "`eval $cmd`" = "" ; then
63153: eval "LIBPATH$unique=set"
63154:
63155: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
63156: LDFLAGS="$LDFLAGS -L$ai_p"
63157: PHP_RPATHS="$PHP_RPATHS $ai_p"
63158:
63159: fi
63160:
63161:
63162:
63163: fi
63164:
63165: fi
63166:
63167:
63168: case z in
63169: c|c_r|pthread*) ;;
63170: *)
63171: LIBS="-lz $LIBS"
63172: ;;
63173: esac
63174:
63175:
63176:
63177:
63178: fi
63179:
63180:
63181:
63182: save_old_LDFLAGS=$LDFLAGS
63183: ac_stuff="
63184: -L$PHP_ZLIB_DIR/$PHP_LIBDIR -L$MYSQL_LIB_DIR
63185: "
63186:
63187: save_ext_shared=$ext_shared
63188: ext_shared=yes
63189:
63190: for ac_i in $ac_stuff; do
63191: case $ac_i in
63192: -pthread)
63193: if test "$ext_shared" = "yes"; then
63194: LDFLAGS="$LDFLAGS -pthread"
63195: else
63196:
63197:
63198: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
63199:
63200: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
63201: if test -n "$unique" && test "`eval $cmd`" = "" ; then
63202: eval "EXTRA_LDFLAGS$unique=set"
63203: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
63204: fi
63205:
63206: fi
63207: ;;
63208: -l*)
63209: ac_ii=`echo $ac_i|cut -c 3-`
63210:
63211:
63212: case $ac_ii in
63213: c|c_r|pthread*) ;;
63214: *)
63215: if test "$ext_shared" = "yes"; then
63216: LDFLAGS="$LDFLAGS -l$ac_ii"
63217: else
63218:
63219:
63220: case $ac_ii in
63221: c|c_r|pthread*) ;;
63222: *)
63223: LIBS="$LIBS -l$ac_ii"
63224: ;;
63225: esac
63226:
63227:
63228: fi
63229: ;;
63230: esac
63231:
63232:
63233: ;;
63234: -L*)
63235: ac_ii=`echo $ac_i|cut -c 3-`
63236:
63237: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
63238:
63239: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
63240: ai_p=$ac_ii
63241: else
63242:
63243: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
63244:
63245: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
63246: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
63247: fi
63248:
63249:
63250: if test "$ext_shared" = "yes"; then
63251: LDFLAGS="-L$ai_p $LDFLAGS"
63252: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
63253: else
63254:
63255:
63256:
63257: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
63258:
63259: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
63260: if test -n "$unique" && test "`eval $cmd`" = "" ; then
63261: eval "LIBPATH$unique=set"
63262:
63263: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
63264: LDFLAGS="$LDFLAGS -L$ai_p"
63265: PHP_RPATHS="$PHP_RPATHS $ai_p"
63266:
63267: fi
63268:
63269:
63270: fi
63271:
63272: fi
63273:
63274: ;;
63275: esac
63276: done
63277:
63278: as_ac_Lib=`$as_echo "ac_cv_lib_$MYSQL_LIBNAME''_mysql_error" | $as_tr_sh`
63279: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_error in -l$MYSQL_LIBNAME" >&5
63280: $as_echo_n "checking for mysql_error in -l$MYSQL_LIBNAME... " >&6; }
63281: if eval \${$as_ac_Lib+:} false; then :
63282: $as_echo_n "(cached) " >&6
63283: else
63284: ac_check_lib_save_LIBS=$LIBS
63285: LIBS="-l$MYSQL_LIBNAME $LIBS"
63286: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
63287: /* end confdefs.h. */
63288:
63289: /* Override any GCC internal prototype to avoid an error.
63290: Use char because int might match the return type of a GCC
63291: builtin and then its argument prototype would still apply. */
63292: #ifdef __cplusplus
63293: extern "C"
63294: #endif
63295: char mysql_error ();
63296: int
63297: main ()
63298: {
63299: return mysql_error ();
63300: ;
63301: return 0;
63302: }
63303: _ACEOF
63304: if ac_fn_c_try_link "$LINENO"; then :
63305: eval "$as_ac_Lib=yes"
63306: else
63307: eval "$as_ac_Lib=no"
63308: fi
63309: rm -f core conftest.err conftest.$ac_objext \
63310: conftest$ac_exeext conftest.$ac_ext
63311: LIBS=$ac_check_lib_save_LIBS
63312: fi
63313: eval ac_res=\$$as_ac_Lib
63314: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
63315: $as_echo "$ac_res" >&6; }
63316: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
63317:
63318: LDFLAGS=$save_old_LDFLAGS
63319: ext_shared=$save_ext_shared
63320:
63321:
63322: else
63323:
63324: LDFLAGS=$save_old_LDFLAGS
63325: ext_shared=$save_ext_shared
63326: unset ac_cv_lib_$MYSQL_LIBNAME_mysql_error
63327:
63328: as_fn_error $? "mysql configure failed. Please check config.log for more information." "$LINENO" 5
63329:
63330:
63331: fi
63332:
63333: MYSQL_LIBS="-L$PHP_ZLIB_DIR/$PHP_LIBDIR -lz"
63334: else
63335:
63336:
63337: case z in
63338: c|c_r|pthread*) ;;
63339: *)
63340: if test "$ext_shared" = "yes"; then
63341: MYSQL_SHARED_LIBADD="-lz $MYSQL_SHARED_LIBADD"
63342: else
63343:
63344:
63345: case z in
63346: c|c_r|pthread*) ;;
63347: *)
63348: LIBS="-lz $LIBS"
63349: ;;
63350: esac
63351:
63352:
63353: fi
63354: ;;
63355: esac
63356:
63357:
63358:
63359: save_old_LDFLAGS=$LDFLAGS
63360: ac_stuff="
63361: -L$MYSQL_LIB_DIR
63362: "
63363:
63364: save_ext_shared=$ext_shared
63365: ext_shared=yes
63366:
63367: for ac_i in $ac_stuff; do
63368: case $ac_i in
63369: -pthread)
63370: if test "$ext_shared" = "yes"; then
63371: LDFLAGS="$LDFLAGS -pthread"
63372: else
63373:
63374:
63375: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
63376:
63377: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
63378: if test -n "$unique" && test "`eval $cmd`" = "" ; then
63379: eval "EXTRA_LDFLAGS$unique=set"
63380: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
63381: fi
63382:
63383: fi
63384: ;;
63385: -l*)
63386: ac_ii=`echo $ac_i|cut -c 3-`
63387:
63388:
63389: case $ac_ii in
63390: c|c_r|pthread*) ;;
63391: *)
63392: if test "$ext_shared" = "yes"; then
63393: LDFLAGS="$LDFLAGS -l$ac_ii"
63394: else
63395:
63396:
63397: case $ac_ii in
63398: c|c_r|pthread*) ;;
63399: *)
63400: LIBS="$LIBS -l$ac_ii"
63401: ;;
63402: esac
63403:
63404:
63405: fi
63406: ;;
63407: esac
63408:
63409:
63410: ;;
63411: -L*)
63412: ac_ii=`echo $ac_i|cut -c 3-`
63413:
63414: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
63415:
63416: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
63417: ai_p=$ac_ii
63418: else
63419:
63420: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
63421:
63422: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
63423: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
63424: fi
63425:
63426:
63427: if test "$ext_shared" = "yes"; then
63428: LDFLAGS="-L$ai_p $LDFLAGS"
63429: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
63430: else
63431:
63432:
63433:
63434: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
63435:
63436: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
63437: if test -n "$unique" && test "`eval $cmd`" = "" ; then
63438: eval "LIBPATH$unique=set"
63439:
63440: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
63441: LDFLAGS="$LDFLAGS -L$ai_p"
63442: PHP_RPATHS="$PHP_RPATHS $ai_p"
63443:
63444: fi
63445:
63446:
63447: fi
63448:
63449: fi
63450:
63451: ;;
63452: esac
63453: done
63454:
63455: as_ac_Lib=`$as_echo "ac_cv_lib_$MYSQL_LIBNAME''_mysql_errno" | $as_tr_sh`
63456: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_errno in -l$MYSQL_LIBNAME" >&5
63457: $as_echo_n "checking for mysql_errno in -l$MYSQL_LIBNAME... " >&6; }
63458: if eval \${$as_ac_Lib+:} false; then :
63459: $as_echo_n "(cached) " >&6
63460: else
63461: ac_check_lib_save_LIBS=$LIBS
63462: LIBS="-l$MYSQL_LIBNAME $LIBS"
63463: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
63464: /* end confdefs.h. */
63465:
63466: /* Override any GCC internal prototype to avoid an error.
63467: Use char because int might match the return type of a GCC
63468: builtin and then its argument prototype would still apply. */
63469: #ifdef __cplusplus
63470: extern "C"
63471: #endif
63472: char mysql_errno ();
63473: int
63474: main ()
63475: {
63476: return mysql_errno ();
63477: ;
63478: return 0;
63479: }
63480: _ACEOF
63481: if ac_fn_c_try_link "$LINENO"; then :
63482: eval "$as_ac_Lib=yes"
63483: else
63484: eval "$as_ac_Lib=no"
63485: fi
63486: rm -f core conftest.err conftest.$ac_objext \
63487: conftest$ac_exeext conftest.$ac_ext
63488: LIBS=$ac_check_lib_save_LIBS
63489: fi
63490: eval ac_res=\$$as_ac_Lib
63491: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
63492: $as_echo "$ac_res" >&6; }
63493: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
63494:
63495: LDFLAGS=$save_old_LDFLAGS
63496: ext_shared=$save_ext_shared
63497:
63498:
63499: else
63500:
63501: LDFLAGS=$save_old_LDFLAGS
63502: ext_shared=$save_ext_shared
63503: unset ac_cv_lib_$MYSQL_LIBNAME_mysql_errno
63504:
63505: as_fn_error $? "Try adding --with-zlib-dir=<DIR>. Please check config.log for more information." "$LINENO" 5
63506:
63507:
63508: fi
63509:
63510: MYSQL_LIBS="-lz"
63511: fi
63512:
63513:
63514: fi
63515:
63516:
63517:
63518:
63519: if test "$ext_shared" = "yes"; then
63520: MYSQL_SHARED_LIBADD="-l$MYSQL_LIBNAME $MYSQL_SHARED_LIBADD"
63521: if test -n "$MYSQL_LIB_DIR"; then
63522:
63523: if test "$MYSQL_LIB_DIR" != "/usr/$PHP_LIBDIR" && test "$MYSQL_LIB_DIR" != "/usr/lib"; then
63524:
63525: if test -z "$MYSQL_LIB_DIR" || echo "$MYSQL_LIB_DIR" | grep '^/' >/dev/null ; then
63526: ai_p=$MYSQL_LIB_DIR
63527: else
63528:
63529: ep_dir="`echo $MYSQL_LIB_DIR|$SED 's%/*[^/][^/]*/*$%%'`"
63530:
63531: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
63532: ai_p="$ep_realdir/`basename \"$MYSQL_LIB_DIR\"`"
63533: fi
63534:
63535:
63536: if test "$ext_shared" = "yes"; then
63537: MYSQL_SHARED_LIBADD="-L$ai_p $MYSQL_SHARED_LIBADD"
63538: test -n "$ld_runpath_switch" && MYSQL_SHARED_LIBADD="$ld_runpath_switch$ai_p $MYSQL_SHARED_LIBADD"
63539: else
63540:
63541:
63542:
63543: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
63544:
63545: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
63546: if test -n "$unique" && test "`eval $cmd`" = "" ; then
63547: eval "LIBPATH$unique=set"
63548:
63549: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
63550: LDFLAGS="$LDFLAGS -L$ai_p"
63551: PHP_RPATHS="$PHP_RPATHS $ai_p"
63552:
63553: fi
63554:
63555:
63556: fi
63557:
63558: fi
63559:
63560: fi
63561: else
63562:
63563:
63564: if test -n "$MYSQL_LIB_DIR"; then
63565:
63566: if test "$MYSQL_LIB_DIR" != "/usr/$PHP_LIBDIR" && test "$MYSQL_LIB_DIR" != "/usr/lib"; then
63567:
63568: if test -z "$MYSQL_LIB_DIR" || echo "$MYSQL_LIB_DIR" | grep '^/' >/dev/null ; then
63569: ai_p=$MYSQL_LIB_DIR
63570: else
63571:
63572: ep_dir="`echo $MYSQL_LIB_DIR|$SED 's%/*[^/][^/]*/*$%%'`"
63573:
63574: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
63575: ai_p="$ep_realdir/`basename \"$MYSQL_LIB_DIR\"`"
63576: fi
63577:
63578:
63579:
63580:
63581:
63582: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
63583:
63584: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
63585: if test -n "$unique" && test "`eval $cmd`" = "" ; then
63586: eval "LIBPATH$unique=set"
63587:
63588: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
63589: LDFLAGS="$LDFLAGS -L$ai_p"
63590: PHP_RPATHS="$PHP_RPATHS $ai_p"
63591:
63592: fi
63593:
63594:
63595:
63596: fi
63597:
63598: fi
63599:
63600:
63601: case $MYSQL_LIBNAME in
63602: c|c_r|pthread*) ;;
63603: *)
63604: LIBS="-l$MYSQL_LIBNAME $LIBS"
63605: ;;
63606: esac
63607:
63608:
63609:
63610:
63611: fi
63612:
63613:
63614:
63615: if test "$MYSQL_INC_DIR" != "/usr/include"; then
63616:
63617: if test -z "$MYSQL_INC_DIR" || echo "$MYSQL_INC_DIR" | grep '^/' >/dev/null ; then
63618: ai_p=$MYSQL_INC_DIR
63619: else
63620:
63621: ep_dir="`echo $MYSQL_INC_DIR|$SED 's%/*[^/][^/]*/*$%%'`"
63622:
63623: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
63624: ai_p="$ep_realdir/`basename \"$MYSQL_INC_DIR\"`"
63625: fi
63626:
63627:
63628:
63629: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
63630:
63631: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
63632: if test -n "$unique" && test "`eval $cmd`" = "" ; then
63633: eval "INCLUDEPATH$unique=set"
63634:
63635: if test ""; then
63636: INCLUDES="-I$ai_p $INCLUDES"
63637: else
63638: INCLUDES="$INCLUDES -I$ai_p"
63639: fi
63640:
63641: fi
63642:
63643: fi
63644:
63645:
63646: MYSQL_MODULE_TYPE=external
63647: MYSQL_LIBS="-L$MYSQL_LIB_DIR -l$MYSQL_LIBNAME $MYSQL_LIBS"
63648: MYSQL_INCLUDE=-I$MYSQL_INC_DIR
63649:
63650:
63651:
63652: PHP_VAR_SUBST="$PHP_VAR_SUBST MYSQL_MODULE_TYPE"
63653:
63654:
63655:
63656:
63657:
63658: PHP_VAR_SUBST="$PHP_VAR_SUBST MYSQL_LIBS"
63659:
63660:
63661:
63662:
63663:
63664: PHP_VAR_SUBST="$PHP_VAR_SUBST MYSQL_INCLUDE"
63665:
63666:
63667:
63668: fi
63669:
63670: if test "$PHP_MYSQL" != "no"; then
63671: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL UNIX socket location" >&5
63672: $as_echo_n "checking for MySQL UNIX socket location... " >&6; }
63673: if test "$PHP_MYSQL_SOCK" != "no" && test "$PHP_MYSQL_SOCK" != "yes"; then
63674: MYSQL_SOCK=$PHP_MYSQL_SOCK
63675:
63676: cat >>confdefs.h <<_ACEOF
63677: #define PHP_MYSQL_UNIX_SOCK_ADDR "$MYSQL_SOCK"
63678: _ACEOF
63679:
63680: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_SOCK" >&5
63681: $as_echo "$MYSQL_SOCK" >&6; }
63682: elif test "$PHP_MYSQL" = "yes" || test "$PHP_MYSQL_SOCK" = "yes"; then
63683:
63684: for i in \
63685: /var/run/mysqld/mysqld.sock \
63686: /var/tmp/mysql.sock \
63687: /var/run/mysql/mysql.sock \
63688: /var/lib/mysql/mysql.sock \
63689: /var/mysql/mysql.sock \
63690: /usr/local/mysql/var/mysql.sock \
63691: /Private/tmp/mysql.sock \
63692: /private/tmp/mysql.sock \
63693: /tmp/mysql.sock \
63694: ; do
63695: if test -r $i; then
63696: MYSQL_SOCK=$i
63697: break 2
63698: fi
63699: done
63700:
63701: if test -n "$MYSQL_SOCK"; then
63702:
63703: cat >>confdefs.h <<_ACEOF
63704: #define PHP_MYSQL_UNIX_SOCK_ADDR "$MYSQL_SOCK"
63705: _ACEOF
63706:
63707: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_SOCK" >&5
63708: $as_echo "$MYSQL_SOCK" >&6; }
63709: else
63710: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
63711: $as_echo "no" >&6; }
63712: fi
63713:
63714: else
63715: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
63716: $as_echo "no" >&6; }
63717: fi
63718:
63719:
63720: $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
63721:
63722:
63723: ext_builddir=ext/mysql
63724: ext_srcdir=$abs_srcdir/ext/mysql
63725:
63726: ac_extra=
63727:
63728: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
63729: PHP_MYSQL_SHARED=no
63730:
63731:
63732: case ext/mysql in
63733: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
63734: /*) ac_srcdir=`echo "ext/mysql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
63735: *) ac_srcdir="$abs_srcdir/ext/mysql/"; ac_bdir="ext/mysql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
63736: esac
63737:
63738:
63739:
63740: b_c_pre=$php_c_pre
63741: b_cxx_pre=$php_cxx_pre
63742: b_c_meta=$php_c_meta
63743: b_cxx_meta=$php_cxx_meta
63744: b_c_post=$php_c_post
63745: b_cxx_post=$php_cxx_post
63746: b_lo=$php_lo
63747:
63748:
63749: old_IFS=$IFS
63750: for ac_src in php_mysql.c; do
63751:
63752: IFS=.
63753: set $ac_src
63754: ac_obj=$1
63755: IFS=$old_IFS
63756:
63757: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
63758:
63759: case $ac_src in
63760: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
63761: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
63762: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
63763: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
63764: esac
63765:
63766: cat >>Makefile.objects<<EOF
63767: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
63768: $ac_comp
63769: EOF
63770: done
63771:
63772:
63773: EXT_STATIC="$EXT_STATIC mysql"
63774: if test "$ext_shared" != "nocli"; then
63775: EXT_CLI_STATIC="$EXT_CLI_STATIC mysql"
63776: fi
63777: else
63778: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
63779: PHP_MYSQL_SHARED=yes
63780:
63781: case ext/mysql in
63782: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
63783: /*) ac_srcdir=`echo "ext/mysql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
63784: *) ac_srcdir="$abs_srcdir/ext/mysql/"; ac_bdir="ext/mysql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
63785: esac
63786:
63787:
63788:
63789: b_c_pre=$shared_c_pre
63790: b_cxx_pre=$shared_cxx_pre
63791: b_c_meta=$shared_c_meta
63792: b_cxx_meta=$shared_cxx_meta
63793: b_c_post=$shared_c_post
63794: b_cxx_post=$shared_cxx_post
63795: b_lo=$shared_lo
63796:
63797:
63798: old_IFS=$IFS
63799: for ac_src in php_mysql.c; do
63800:
63801: IFS=.
63802: set $ac_src
63803: ac_obj=$1
63804: IFS=$old_IFS
63805:
63806: shared_objects_mysql="$shared_objects_mysql $ac_bdir$ac_obj.lo"
63807:
63808: case $ac_src in
63809: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
63810: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
63811: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
63812: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
63813: esac
63814:
63815: cat >>Makefile.objects<<EOF
63816: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
63817: $ac_comp
63818: EOF
63819: done
63820:
63821: case $host_alias in
63822: *netware*)
63823:
63824: install_modules="install-modules"
63825:
63826: case $host_alias in
63827: *aix*)
63828: suffix=so
63829: 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'
63830: ;;
63831: *netware*)
63832: suffix=nlm
63833: link_cmd='$(LIBTOOL) --mode=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)'
63834: ;;
63835: *)
63836: suffix=la
63837: link_cmd='$(LIBTOOL) --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)'
63838: ;;
63839: esac
63840:
63841: if test "x" = "xyes"; then
63842: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpmysql.$suffix"
63843: else
63844: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpmysql.$suffix"
63845: fi
63846:
63847: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_mysql"
63848:
63849: cat >>Makefile.objects<<EOF
63850: \$(phplibdir)/phpmysql.$suffix: $ext_builddir/phpmysql.$suffix
63851: \$(LIBTOOL) --mode=install cp $ext_builddir/phpmysql.$suffix \$(phplibdir)
63852:
63853: $ext_builddir/phpmysql.$suffix: \$(shared_objects_mysql) \$(PHPMYSQL_SHARED_DEPENDENCIES)
63854: $link_cmd
63855:
63856: EOF
63857:
63858: ;;
63859: *)
63860:
63861: install_modules="install-modules"
63862:
63863: case $host_alias in
63864: *aix*)
63865: suffix=so
63866: 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'
63867: ;;
63868: *netware*)
63869: suffix=nlm
63870: link_cmd='$(LIBTOOL) --mode=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)'
63871: ;;
63872: *)
63873: suffix=la
63874: link_cmd='$(LIBTOOL) --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)'
63875: ;;
63876: esac
63877:
63878: if test "x" = "xyes"; then
63879: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/mysql.$suffix"
63880: else
63881: PHP_MODULES="$PHP_MODULES \$(phplibdir)/mysql.$suffix"
63882: fi
63883:
63884: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_mysql"
63885:
63886: cat >>Makefile.objects<<EOF
63887: \$(phplibdir)/mysql.$suffix: $ext_builddir/mysql.$suffix
63888: \$(LIBTOOL) --mode=install cp $ext_builddir/mysql.$suffix \$(phplibdir)
63889:
63890: $ext_builddir/mysql.$suffix: \$(shared_objects_mysql) \$(MYSQL_SHARED_DEPENDENCIES)
63891: $link_cmd
63892:
63893: EOF
63894:
63895: ;;
63896: esac
63897:
63898: cat >>confdefs.h <<_ACEOF
63899: #define COMPILE_DL_MYSQL 1
63900: _ACEOF
63901:
63902: fi
63903: fi
63904:
63905: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
63906: PHP_MYSQL_SHARED=no
63907:
63908:
63909: case ext/mysql in
63910: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
63911: /*) ac_srcdir=`echo "ext/mysql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
63912: *) ac_srcdir="$abs_srcdir/ext/mysql/"; ac_bdir="ext/mysql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
63913: esac
63914:
63915:
63916:
63917: b_c_pre=$php_c_pre
63918: b_cxx_pre=$php_cxx_pre
63919: b_c_meta=$php_c_meta
63920: b_cxx_meta=$php_cxx_meta
63921: b_c_post=$php_c_post
63922: b_cxx_post=$php_cxx_post
63923: b_lo=$php_lo
63924:
63925:
63926: old_IFS=$IFS
63927: for ac_src in php_mysql.c; do
63928:
63929: IFS=.
63930: set $ac_src
63931: ac_obj=$1
63932: IFS=$old_IFS
63933:
63934: PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
63935:
63936: case $ac_src in
63937: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
63938: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
63939: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
63940: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
63941: esac
63942:
63943: cat >>Makefile.objects<<EOF
63944: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
63945: $ac_comp
63946: EOF
63947: done
63948:
63949:
63950:
63951:
63952: case ext/mysql in
63953: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
63954: /*) ac_srcdir=`echo "ext/mysql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
63955: *) ac_srcdir="$abs_srcdir/ext/mysql/"; ac_bdir="ext/mysql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
63956: esac
63957:
63958:
63959:
63960: b_c_pre=$php_c_pre
63961: b_cxx_pre=$php_cxx_pre
63962: b_c_meta=$php_c_meta
63963: b_cxx_meta=$php_cxx_meta
63964: b_c_post=$php_c_post
63965: b_cxx_post=$php_cxx_post
63966: b_lo=$php_lo
63967:
63968:
63969: old_IFS=$IFS
63970: for ac_src in php_mysql.c; do
63971:
63972: IFS=.
63973: set $ac_src
63974: ac_obj=$1
63975: IFS=$old_IFS
63976:
63977: PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo"
63978:
63979: case $ac_src in
63980: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
63981: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
63982: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
63983: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
63984: esac
63985:
63986: cat >>Makefile.objects<<EOF
63987: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
63988: $ac_comp
63989: EOF
63990: done
63991:
63992:
63993:
63994:
63995: case ext/mysql in
63996: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
63997: /*) ac_srcdir=`echo "ext/mysql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
63998: *) ac_srcdir="$abs_srcdir/ext/mysql/"; ac_bdir="ext/mysql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
63999: esac
64000:
64001:
64002:
64003: b_c_pre=$php_c_pre
64004: b_cxx_pre=$php_cxx_pre
64005: b_c_meta=$php_c_meta
64006: b_cxx_meta=$php_cxx_meta
64007: b_c_post=$php_c_post
64008: b_cxx_post=$php_cxx_post
64009: b_lo=$php_lo
64010:
64011:
64012: old_IFS=$IFS
64013: for ac_src in php_mysql.c; do
64014:
64015: IFS=.
64016: set $ac_src
64017: ac_obj=$1
64018: IFS=$old_IFS
64019:
64020: PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo"
64021:
64022: case $ac_src in
64023: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
64024: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
64025: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
64026: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
64027: esac
64028:
64029: cat >>Makefile.objects<<EOF
64030: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
64031: $ac_comp
64032: EOF
64033: done
64034:
64035:
64036: EXT_CLI_STATIC="$EXT_CLI_STATIC mysql"
64037: fi
64038:
64039:
64040: BUILD_DIR="$BUILD_DIR $ext_builddir"
64041:
64042:
64043:
64044: if test "$ext_builddir" = "."; then
64045: PHP_PECL_EXTENSION=mysql
64046:
64047: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
64048:
64049: fi
64050:
64051:
64052: PHP_VAR_SUBST="$PHP_VAR_SUBST MYSQL_SHARED_LIBADD"
64053:
64054:
64055: if test "$PHP_MYSQL" = "mysqlnd"; then
64056:
64057: am_i_shared=$PHP_MYSQL_SHARED
64058: is_it_shared=$PHP_MYSQLND_SHARED
64059: is_it_enabled=$PHP_MYSQLND
64060: if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
64061: as_fn_error $? "
64062: You've configured extension mysql to build statically, but it
64063: depends on extension mysqlnd, which you've configured to build shared.
64064: You either need to build mysql shared or build mysqlnd statically for the
64065: build to be successful.
64066: " "$LINENO" 5
64067: fi
64068:
64069:
64070: $as_echo "#define MYSQL_USE_MYSQLND 1" >>confdefs.h
64071:
64072: fi
64073: fi
64074:
64075:
64076:
64077: php_with_mysqli=no
64078:
64079: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQLi support" >&5
64080: $as_echo_n "checking for MySQLi support... " >&6; }
64081:
64082: # Check whether --with-mysqli was given.
64083: if test "${with_mysqli+set}" = set; then :
64084: withval=$with_mysqli; PHP_MYSQLI=$withval
64085: else
64086:
64087: PHP_MYSQLI=no
64088: test "$PHP_ENABLE_ALL" && PHP_MYSQLI=$PHP_ENABLE_ALL
64089:
64090: fi
64091:
64092:
64093:
64094: ext_output="yes, shared"
64095: ext_shared=yes
64096: case $PHP_MYSQLI in
64097: shared,*)
64098: PHP_MYSQLI=`echo "$PHP_MYSQLI"|$SED 's/^shared,//'`
64099: ;;
64100: shared)
64101: PHP_MYSQLI=yes
64102: ;;
64103: no)
64104: ext_output=no
64105: ext_shared=no
64106: ;;
64107: *)
64108: ext_output=yes
64109: ext_shared=no
64110: ;;
64111: esac
64112:
64113:
64114:
64115: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
64116: $as_echo "$ext_output" >&6; }
64117:
64118:
64119:
64120:
64121:
64122: php_enable_embedded_mysqli=no
64123:
64124: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable embedded MySQLi support" >&5
64125: $as_echo_n "checking whether to enable embedded MySQLi support... " >&6; }
64126: # Check whether --enable-embedded_mysqli was given.
64127: if test "${enable_embedded_mysqli+set}" = set; then :
64128: enableval=$enable_embedded_mysqli; PHP_EMBEDDED_MYSQLI=$enableval
64129: else
64130:
64131: PHP_EMBEDDED_MYSQLI=no
64132:
64133:
64134: fi
64135:
64136:
64137: ext_output=$PHP_EMBEDDED_MYSQLI
64138: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
64139: $as_echo "$ext_output" >&6; }
64140:
64141:
64142:
64143:
64144: if test "$PHP_MYSQLI" = "mysqlnd"; then
64145: PHP_MYSQLND_ENABLED=yes
64146:
64147: elif test "$PHP_MYSQLI" != "no"; then
64148:
64149: if test "$PHP_MYSQLI" = "yes"; then
64150: MYSQL_CONFIG=`$php_shtool path mysql_config`
64151: else
64152: MYSQL_CONFIG=$PHP_MYSQLI
64153: fi
64154:
64155: MYSQL_LIB_NAME='mysqlclient'
64156: if test "$PHP_EMBEDDED_MYSQLI" = "yes"; then
64157:
64158: $as_echo "#define HAVE_EMBEDDED_MYSQLI 1" >>confdefs.h
64159:
64160: MYSQL_LIB_CFG='--libmysqld-libs'
64161: mysqli_extra_sources="mysqli_embedded.c"
64162: elif test "$enable_maintainer_zts" = "yes"; then
64163: MYSQL_LIB_CFG='--libs_r'
64164: MYSQL_LIB_NAME='mysqlclient_r'
64165: else
64166: MYSQL_LIB_CFG='--libs'
64167: fi
64168:
64169: if test -x "$MYSQL_CONFIG" && $MYSQL_CONFIG $MYSQL_LIB_CFG > /dev/null 2>&1; then
64170: MYSQLI_INCLINE=`$MYSQL_CONFIG --cflags | $SED -e "s/'//g"`
64171: MYSQLI_LIBLINE=`$MYSQL_CONFIG $MYSQL_LIB_CFG | $SED -e "s/'//g"`
64172: else
64173: { $as_echo "$as_me:${as_lineno-$LINENO}: result: mysql_config not found" >&5
64174: $as_echo "mysql_config not found" >&6; }
64175: as_fn_error $? "Please reinstall the mysql distribution" "$LINENO" 5
64176: fi
64177:
64178:
64179: save_old_LDFLAGS=$LDFLAGS
64180: ac_stuff="
64181: $MYSQLI_LIBLINE
64182: "
64183:
64184: save_ext_shared=$ext_shared
64185: ext_shared=yes
64186:
64187: for ac_i in $ac_stuff; do
64188: case $ac_i in
64189: -pthread)
64190: if test "$ext_shared" = "yes"; then
64191: LDFLAGS="$LDFLAGS -pthread"
64192: else
64193:
64194:
64195: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
64196:
64197: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
64198: if test -n "$unique" && test "`eval $cmd`" = "" ; then
64199: eval "EXTRA_LDFLAGS$unique=set"
64200: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
64201: fi
64202:
64203: fi
64204: ;;
64205: -l*)
64206: ac_ii=`echo $ac_i|cut -c 3-`
64207:
64208:
64209: case $ac_ii in
64210: c|c_r|pthread*) ;;
64211: *)
64212: if test "$ext_shared" = "yes"; then
64213: LDFLAGS="$LDFLAGS -l$ac_ii"
64214: else
64215:
64216:
64217: case $ac_ii in
64218: c|c_r|pthread*) ;;
64219: *)
64220: LIBS="$LIBS -l$ac_ii"
64221: ;;
64222: esac
64223:
64224:
64225: fi
64226: ;;
64227: esac
64228:
64229:
64230: ;;
64231: -L*)
64232: ac_ii=`echo $ac_i|cut -c 3-`
64233:
64234: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
64235:
64236: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
64237: ai_p=$ac_ii
64238: else
64239:
64240: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
64241:
64242: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
64243: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
64244: fi
64245:
64246:
64247: if test "$ext_shared" = "yes"; then
64248: LDFLAGS="-L$ai_p $LDFLAGS"
64249: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
64250: else
64251:
64252:
64253:
64254: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
64255:
64256: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
64257: if test -n "$unique" && test "`eval $cmd`" = "" ; then
64258: eval "LIBPATH$unique=set"
64259:
64260: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
64261: LDFLAGS="$LDFLAGS -L$ai_p"
64262: PHP_RPATHS="$PHP_RPATHS $ai_p"
64263:
64264: fi
64265:
64266:
64267: fi
64268:
64269: fi
64270:
64271: ;;
64272: esac
64273: done
64274:
64275: as_ac_Lib=`$as_echo "ac_cv_lib_$MYSQL_LIB_NAME''_mysql_set_server_option" | $as_tr_sh`
64276: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_set_server_option in -l$MYSQL_LIB_NAME" >&5
64277: $as_echo_n "checking for mysql_set_server_option in -l$MYSQL_LIB_NAME... " >&6; }
64278: if eval \${$as_ac_Lib+:} false; then :
64279: $as_echo_n "(cached) " >&6
64280: else
64281: ac_check_lib_save_LIBS=$LIBS
64282: LIBS="-l$MYSQL_LIB_NAME $LIBS"
64283: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
64284: /* end confdefs.h. */
64285:
64286: /* Override any GCC internal prototype to avoid an error.
64287: Use char because int might match the return type of a GCC
64288: builtin and then its argument prototype would still apply. */
64289: #ifdef __cplusplus
64290: extern "C"
64291: #endif
64292: char mysql_set_server_option ();
64293: int
64294: main ()
64295: {
64296: return mysql_set_server_option ();
64297: ;
64298: return 0;
64299: }
64300: _ACEOF
64301: if ac_fn_c_try_link "$LINENO"; then :
64302: eval "$as_ac_Lib=yes"
64303: else
64304: eval "$as_ac_Lib=no"
64305: fi
64306: rm -f core conftest.err conftest.$ac_objext \
64307: conftest$ac_exeext conftest.$ac_ext
64308: LIBS=$ac_check_lib_save_LIBS
64309: fi
64310: eval ac_res=\$$as_ac_Lib
64311: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
64312: $as_echo "$ac_res" >&6; }
64313: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
64314:
64315: LDFLAGS=$save_old_LDFLAGS
64316: ext_shared=$save_ext_shared
64317:
64318:
64319: for ac_i in $MYSQLI_INCLINE; do
64320: case $ac_i in
64321: -I*)
64322: ac_ii=`echo $ac_i|cut -c 3-`
64323:
64324: if test "$ac_ii" != "/usr/include"; then
64325:
64326: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
64327: ai_p=$ac_ii
64328: else
64329:
64330: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
64331:
64332: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
64333: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
64334: fi
64335:
64336:
64337:
64338: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
64339:
64340: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
64341: if test -n "$unique" && test "`eval $cmd`" = "" ; then
64342: eval "INCLUDEPATH$unique=set"
64343:
64344: if test ""; then
64345: INCLUDES="-I$ai_p $INCLUDES"
64346: else
64347: INCLUDES="$INCLUDES -I$ai_p"
64348: fi
64349:
64350: fi
64351:
64352: fi
64353:
64354: ;;
64355: esac
64356: done
64357:
64358:
64359: for ac_i in $MYSQLI_LIBLINE; do
64360: case $ac_i in
64361: -pthread)
64362: if test "$ext_shared" = "yes"; then
64363: MYSQLI_SHARED_LIBADD="$MYSQLI_SHARED_LIBADD -pthread"
64364: else
64365:
64366:
64367: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
64368:
64369: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
64370: if test -n "$unique" && test "`eval $cmd`" = "" ; then
64371: eval "EXTRA_LDFLAGS$unique=set"
64372: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
64373: fi
64374:
64375: fi
64376: ;;
64377: -l*)
64378: ac_ii=`echo $ac_i|cut -c 3-`
64379:
64380:
64381: case $ac_ii in
64382: c|c_r|pthread*) ;;
64383: *)
64384: if test "$ext_shared" = "yes"; then
64385: MYSQLI_SHARED_LIBADD="$MYSQLI_SHARED_LIBADD -l$ac_ii"
64386: else
64387:
64388:
64389: case $ac_ii in
64390: c|c_r|pthread*) ;;
64391: *)
64392: LIBS="$LIBS -l$ac_ii"
64393: ;;
64394: esac
64395:
64396:
64397: fi
64398: ;;
64399: esac
64400:
64401:
64402: ;;
64403: -L*)
64404: ac_ii=`echo $ac_i|cut -c 3-`
64405:
64406: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
64407:
64408: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
64409: ai_p=$ac_ii
64410: else
64411:
64412: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
64413:
64414: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
64415: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
64416: fi
64417:
64418:
64419: if test "$ext_shared" = "yes"; then
64420: MYSQLI_SHARED_LIBADD="-L$ai_p $MYSQLI_SHARED_LIBADD"
64421: test -n "$ld_runpath_switch" && MYSQLI_SHARED_LIBADD="$ld_runpath_switch$ai_p $MYSQLI_SHARED_LIBADD"
64422: else
64423:
64424:
64425:
64426: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
64427:
64428: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
64429: if test -n "$unique" && test "`eval $cmd`" = "" ; then
64430: eval "LIBPATH$unique=set"
64431:
64432: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
64433: LDFLAGS="$LDFLAGS -L$ai_p"
64434: PHP_RPATHS="$PHP_RPATHS $ai_p"
64435:
64436: fi
64437:
64438:
64439: fi
64440:
64441: fi
64442:
64443: ;;
64444: esac
64445: done
64446:
64447:
64448: $as_echo "#define HAVE_MYSQLILIB 1" >>confdefs.h
64449:
64450:
64451: save_old_LDFLAGS=$LDFLAGS
64452: ac_stuff="$MYSQLI_LIBLINE"
64453:
64454: save_ext_shared=$ext_shared
64455: ext_shared=yes
64456:
64457: for ac_i in $ac_stuff; do
64458: case $ac_i in
64459: -pthread)
64460: if test "$ext_shared" = "yes"; then
64461: LDFLAGS="$LDFLAGS -pthread"
64462: else
64463:
64464:
64465: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
64466:
64467: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
64468: if test -n "$unique" && test "`eval $cmd`" = "" ; then
64469: eval "EXTRA_LDFLAGS$unique=set"
64470: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
64471: fi
64472:
64473: fi
64474: ;;
64475: -l*)
64476: ac_ii=`echo $ac_i|cut -c 3-`
64477:
64478:
64479: case $ac_ii in
64480: c|c_r|pthread*) ;;
64481: *)
64482: if test "$ext_shared" = "yes"; then
64483: LDFLAGS="$LDFLAGS -l$ac_ii"
64484: else
64485:
64486:
64487: case $ac_ii in
64488: c|c_r|pthread*) ;;
64489: *)
64490: LIBS="$LIBS -l$ac_ii"
64491: ;;
64492: esac
64493:
64494:
64495: fi
64496: ;;
64497: esac
64498:
64499:
64500: ;;
64501: -L*)
64502: ac_ii=`echo $ac_i|cut -c 3-`
64503:
64504: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
64505:
64506: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
64507: ai_p=$ac_ii
64508: else
64509:
64510: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
64511:
64512: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
64513: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
64514: fi
64515:
64516:
64517: if test "$ext_shared" = "yes"; then
64518: LDFLAGS="-L$ai_p $LDFLAGS"
64519: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
64520: else
64521:
64522:
64523:
64524: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
64525:
64526: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
64527: if test -n "$unique" && test "`eval $cmd`" = "" ; then
64528: eval "LIBPATH$unique=set"
64529:
64530: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
64531: LDFLAGS="$LDFLAGS -L$ai_p"
64532: PHP_RPATHS="$PHP_RPATHS $ai_p"
64533:
64534: fi
64535:
64536:
64537: fi
64538:
64539: fi
64540:
64541: ;;
64542: esac
64543: done
64544:
64545: as_ac_Lib=`$as_echo "ac_cv_lib_$MYSQL_LIB_NAME''_mysql_set_character_set" | $as_tr_sh`
64546: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_set_character_set in -l$MYSQL_LIB_NAME" >&5
64547: $as_echo_n "checking for mysql_set_character_set in -l$MYSQL_LIB_NAME... " >&6; }
64548: if eval \${$as_ac_Lib+:} false; then :
64549: $as_echo_n "(cached) " >&6
64550: else
64551: ac_check_lib_save_LIBS=$LIBS
64552: LIBS="-l$MYSQL_LIB_NAME $LIBS"
64553: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
64554: /* end confdefs.h. */
64555:
64556: /* Override any GCC internal prototype to avoid an error.
64557: Use char because int might match the return type of a GCC
64558: builtin and then its argument prototype would still apply. */
64559: #ifdef __cplusplus
64560: extern "C"
64561: #endif
64562: char mysql_set_character_set ();
64563: int
64564: main ()
64565: {
64566: return mysql_set_character_set ();
64567: ;
64568: return 0;
64569: }
64570: _ACEOF
64571: if ac_fn_c_try_link "$LINENO"; then :
64572: eval "$as_ac_Lib=yes"
64573: else
64574: eval "$as_ac_Lib=no"
64575: fi
64576: rm -f core conftest.err conftest.$ac_objext \
64577: conftest$ac_exeext conftest.$ac_ext
64578: LIBS=$ac_check_lib_save_LIBS
64579: fi
64580: eval ac_res=\$$as_ac_Lib
64581: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
64582: $as_echo "$ac_res" >&6; }
64583: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
64584:
64585: LDFLAGS=$save_old_LDFLAGS
64586: ext_shared=$save_ext_shared
64587:
64588:
64589: else
64590:
64591: LDFLAGS=$save_old_LDFLAGS
64592: ext_shared=$save_ext_shared
64593: unset ac_cv_lib_$MYSQL_LIB_NAME_mysql_set_character_set
64594:
64595: 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
64596:
64597:
64598: fi
64599:
64600:
64601:
64602: else
64603:
64604: LDFLAGS=$save_old_LDFLAGS
64605: ext_shared=$save_ext_shared
64606: unset ac_cv_lib_$MYSQL_LIB_NAME_mysql_set_server_option
64607:
64608: as_fn_error $? "wrong mysql library version or lib not found. Check config.log for more information." "$LINENO" 5
64609:
64610:
64611: fi
64612:
64613:
64614: save_old_LDFLAGS=$LDFLAGS
64615: ac_stuff="
64616: $MYSQLI_LIBLINE
64617: "
64618:
64619: save_ext_shared=$ext_shared
64620: ext_shared=yes
64621:
64622: for ac_i in $ac_stuff; do
64623: case $ac_i in
64624: -pthread)
64625: if test "$ext_shared" = "yes"; then
64626: LDFLAGS="$LDFLAGS -pthread"
64627: else
64628:
64629:
64630: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
64631:
64632: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
64633: if test -n "$unique" && test "`eval $cmd`" = "" ; then
64634: eval "EXTRA_LDFLAGS$unique=set"
64635: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
64636: fi
64637:
64638: fi
64639: ;;
64640: -l*)
64641: ac_ii=`echo $ac_i|cut -c 3-`
64642:
64643:
64644: case $ac_ii in
64645: c|c_r|pthread*) ;;
64646: *)
64647: if test "$ext_shared" = "yes"; then
64648: LDFLAGS="$LDFLAGS -l$ac_ii"
64649: else
64650:
64651:
64652: case $ac_ii in
64653: c|c_r|pthread*) ;;
64654: *)
64655: LIBS="$LIBS -l$ac_ii"
64656: ;;
64657: esac
64658:
64659:
64660: fi
64661: ;;
64662: esac
64663:
64664:
64665: ;;
64666: -L*)
64667: ac_ii=`echo $ac_i|cut -c 3-`
64668:
64669: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
64670:
64671: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
64672: ai_p=$ac_ii
64673: else
64674:
64675: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
64676:
64677: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
64678: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
64679: fi
64680:
64681:
64682: if test "$ext_shared" = "yes"; then
64683: LDFLAGS="-L$ai_p $LDFLAGS"
64684: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
64685: else
64686:
64687:
64688:
64689: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
64690:
64691: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
64692: if test -n "$unique" && test "`eval $cmd`" = "" ; then
64693: eval "LIBPATH$unique=set"
64694:
64695: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
64696: LDFLAGS="$LDFLAGS -L$ai_p"
64697: PHP_RPATHS="$PHP_RPATHS $ai_p"
64698:
64699: fi
64700:
64701:
64702: fi
64703:
64704: fi
64705:
64706: ;;
64707: esac
64708: done
64709:
64710: as_ac_Lib=`$as_echo "ac_cv_lib_$MYSQL_LIB_NAME''_mysql_stmt_next_result" | $as_tr_sh`
64711: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_stmt_next_result in -l$MYSQL_LIB_NAME" >&5
64712: $as_echo_n "checking for mysql_stmt_next_result in -l$MYSQL_LIB_NAME... " >&6; }
64713: if eval \${$as_ac_Lib+:} false; then :
64714: $as_echo_n "(cached) " >&6
64715: else
64716: ac_check_lib_save_LIBS=$LIBS
64717: LIBS="-l$MYSQL_LIB_NAME $LIBS"
64718: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
64719: /* end confdefs.h. */
64720:
64721: /* Override any GCC internal prototype to avoid an error.
64722: Use char because int might match the return type of a GCC
64723: builtin and then its argument prototype would still apply. */
64724: #ifdef __cplusplus
64725: extern "C"
64726: #endif
64727: char mysql_stmt_next_result ();
64728: int
64729: main ()
64730: {
64731: return mysql_stmt_next_result ();
64732: ;
64733: return 0;
64734: }
64735: _ACEOF
64736: if ac_fn_c_try_link "$LINENO"; then :
64737: eval "$as_ac_Lib=yes"
64738: else
64739: eval "$as_ac_Lib=no"
64740: fi
64741: rm -f core conftest.err conftest.$ac_objext \
64742: conftest$ac_exeext conftest.$ac_ext
64743: LIBS=$ac_check_lib_save_LIBS
64744: fi
64745: eval ac_res=\$$as_ac_Lib
64746: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
64747: $as_echo "$ac_res" >&6; }
64748: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
64749:
64750: LDFLAGS=$save_old_LDFLAGS
64751: ext_shared=$save_ext_shared
64752:
64753:
64754: $as_echo "#define HAVE_STMT_NEXT_RESULT 1" >>confdefs.h
64755:
64756:
64757:
64758: else
64759:
64760: LDFLAGS=$save_old_LDFLAGS
64761: ext_shared=$save_ext_shared
64762: unset ac_cv_lib_$MYSQL_LIB_NAME_mysql_stmt_next_result
64763:
64764:
64765:
64766: fi
64767:
64768: fi
64769:
64770: if test "$PHP_MYSQLI" != "no"; then
64771: mysqli_sources="mysqli.c mysqli_api.c mysqli_prop.c mysqli_nonapi.c \
64772: mysqli_fe.c mysqli_report.c mysqli_driver.c mysqli_warning.c \
64773: mysqli_exception.c $mysqli_extra_sources"
64774:
64775: ext_builddir=ext/mysqli
64776: ext_srcdir=$abs_srcdir/ext/mysqli
64777:
64778: ac_extra=
64779:
64780: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
64781: PHP_MYSQLI_SHARED=no
64782:
64783:
64784: case ext/mysqli in
64785: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
64786: /*) ac_srcdir=`echo "ext/mysqli"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
64787: *) ac_srcdir="$abs_srcdir/ext/mysqli/"; ac_bdir="ext/mysqli/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
64788: esac
64789:
64790:
64791:
64792: b_c_pre=$php_c_pre
64793: b_cxx_pre=$php_cxx_pre
64794: b_c_meta=$php_c_meta
64795: b_cxx_meta=$php_cxx_meta
64796: b_c_post=$php_c_post
64797: b_cxx_post=$php_cxx_post
64798: b_lo=$php_lo
64799:
64800:
64801: old_IFS=$IFS
64802: for ac_src in $mysqli_sources; do
64803:
64804: IFS=.
64805: set $ac_src
64806: ac_obj=$1
64807: IFS=$old_IFS
64808:
64809: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
64810:
64811: case $ac_src in
64812: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
64813: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
64814: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
64815: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
64816: esac
64817:
64818: cat >>Makefile.objects<<EOF
64819: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
64820: $ac_comp
64821: EOF
64822: done
64823:
64824:
64825: EXT_STATIC="$EXT_STATIC mysqli"
64826: if test "$ext_shared" != "nocli"; then
64827: EXT_CLI_STATIC="$EXT_CLI_STATIC mysqli"
64828: fi
64829: else
64830: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
64831: PHP_MYSQLI_SHARED=yes
64832:
64833: case ext/mysqli in
64834: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
64835: /*) ac_srcdir=`echo "ext/mysqli"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
64836: *) ac_srcdir="$abs_srcdir/ext/mysqli/"; ac_bdir="ext/mysqli/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
64837: esac
64838:
64839:
64840:
64841: b_c_pre=$shared_c_pre
64842: b_cxx_pre=$shared_cxx_pre
64843: b_c_meta=$shared_c_meta
64844: b_cxx_meta=$shared_cxx_meta
64845: b_c_post=$shared_c_post
64846: b_cxx_post=$shared_cxx_post
64847: b_lo=$shared_lo
64848:
64849:
64850: old_IFS=$IFS
64851: for ac_src in $mysqli_sources; do
64852:
64853: IFS=.
64854: set $ac_src
64855: ac_obj=$1
64856: IFS=$old_IFS
64857:
64858: shared_objects_mysqli="$shared_objects_mysqli $ac_bdir$ac_obj.lo"
64859:
64860: case $ac_src in
64861: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
64862: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
64863: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
64864: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
64865: esac
64866:
64867: cat >>Makefile.objects<<EOF
64868: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
64869: $ac_comp
64870: EOF
64871: done
64872:
64873: case $host_alias in
64874: *netware*)
64875:
64876: install_modules="install-modules"
64877:
64878: case $host_alias in
64879: *aix*)
64880: suffix=so
64881: 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'
64882: ;;
64883: *netware*)
64884: suffix=nlm
64885: link_cmd='$(LIBTOOL) --mode=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)'
64886: ;;
64887: *)
64888: suffix=la
64889: link_cmd='$(LIBTOOL) --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)'
64890: ;;
64891: esac
64892:
64893: if test "x" = "xyes"; then
64894: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpmysqli.$suffix"
64895: else
64896: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpmysqli.$suffix"
64897: fi
64898:
64899: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_mysqli"
64900:
64901: cat >>Makefile.objects<<EOF
64902: \$(phplibdir)/phpmysqli.$suffix: $ext_builddir/phpmysqli.$suffix
64903: \$(LIBTOOL) --mode=install cp $ext_builddir/phpmysqli.$suffix \$(phplibdir)
64904:
64905: $ext_builddir/phpmysqli.$suffix: \$(shared_objects_mysqli) \$(PHPMYSQLI_SHARED_DEPENDENCIES)
64906: $link_cmd
64907:
64908: EOF
64909:
64910: ;;
64911: *)
64912:
64913: install_modules="install-modules"
64914:
64915: case $host_alias in
64916: *aix*)
64917: suffix=so
64918: 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'
64919: ;;
64920: *netware*)
64921: suffix=nlm
64922: link_cmd='$(LIBTOOL) --mode=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)'
64923: ;;
64924: *)
64925: suffix=la
64926: link_cmd='$(LIBTOOL) --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)'
64927: ;;
64928: esac
64929:
64930: if test "x" = "xyes"; then
64931: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/mysqli.$suffix"
64932: else
64933: PHP_MODULES="$PHP_MODULES \$(phplibdir)/mysqli.$suffix"
64934: fi
64935:
64936: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_mysqli"
64937:
64938: cat >>Makefile.objects<<EOF
64939: \$(phplibdir)/mysqli.$suffix: $ext_builddir/mysqli.$suffix
64940: \$(LIBTOOL) --mode=install cp $ext_builddir/mysqli.$suffix \$(phplibdir)
64941:
64942: $ext_builddir/mysqli.$suffix: \$(shared_objects_mysqli) \$(MYSQLI_SHARED_DEPENDENCIES)
64943: $link_cmd
64944:
64945: EOF
64946:
64947: ;;
64948: esac
64949:
64950: cat >>confdefs.h <<_ACEOF
64951: #define COMPILE_DL_MYSQLI 1
64952: _ACEOF
64953:
64954: fi
64955: fi
64956:
64957: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
64958: PHP_MYSQLI_SHARED=no
64959:
64960:
64961: case ext/mysqli in
64962: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
64963: /*) ac_srcdir=`echo "ext/mysqli"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
64964: *) ac_srcdir="$abs_srcdir/ext/mysqli/"; ac_bdir="ext/mysqli/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
64965: esac
64966:
64967:
64968:
64969: b_c_pre=$php_c_pre
64970: b_cxx_pre=$php_cxx_pre
64971: b_c_meta=$php_c_meta
64972: b_cxx_meta=$php_cxx_meta
64973: b_c_post=$php_c_post
64974: b_cxx_post=$php_cxx_post
64975: b_lo=$php_lo
64976:
64977:
64978: old_IFS=$IFS
64979: for ac_src in $mysqli_sources; do
64980:
64981: IFS=.
64982: set $ac_src
64983: ac_obj=$1
64984: IFS=$old_IFS
64985:
64986: PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
64987:
64988: case $ac_src in
64989: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
64990: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
64991: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
64992: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
64993: esac
64994:
64995: cat >>Makefile.objects<<EOF
64996: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
64997: $ac_comp
64998: EOF
64999: done
65000:
65001:
65002:
65003:
65004: case ext/mysqli in
65005: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
65006: /*) ac_srcdir=`echo "ext/mysqli"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
65007: *) ac_srcdir="$abs_srcdir/ext/mysqli/"; ac_bdir="ext/mysqli/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
65008: esac
65009:
65010:
65011:
65012: b_c_pre=$php_c_pre
65013: b_cxx_pre=$php_cxx_pre
65014: b_c_meta=$php_c_meta
65015: b_cxx_meta=$php_cxx_meta
65016: b_c_post=$php_c_post
65017: b_cxx_post=$php_cxx_post
65018: b_lo=$php_lo
65019:
65020:
65021: old_IFS=$IFS
65022: for ac_src in $mysqli_sources; do
65023:
65024: IFS=.
65025: set $ac_src
65026: ac_obj=$1
65027: IFS=$old_IFS
65028:
65029: PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo"
65030:
65031: case $ac_src in
65032: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
65033: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
65034: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
65035: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
65036: esac
65037:
65038: cat >>Makefile.objects<<EOF
65039: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
65040: $ac_comp
65041: EOF
65042: done
65043:
65044:
65045:
65046:
65047: case ext/mysqli in
65048: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
65049: /*) ac_srcdir=`echo "ext/mysqli"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
65050: *) ac_srcdir="$abs_srcdir/ext/mysqli/"; ac_bdir="ext/mysqli/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
65051: esac
65052:
65053:
65054:
65055: b_c_pre=$php_c_pre
65056: b_cxx_pre=$php_cxx_pre
65057: b_c_meta=$php_c_meta
65058: b_cxx_meta=$php_cxx_meta
65059: b_c_post=$php_c_post
65060: b_cxx_post=$php_cxx_post
65061: b_lo=$php_lo
65062:
65063:
65064: old_IFS=$IFS
65065: for ac_src in $mysqli_sources; do
65066:
65067: IFS=.
65068: set $ac_src
65069: ac_obj=$1
65070: IFS=$old_IFS
65071:
65072: PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo"
65073:
65074: case $ac_src in
65075: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
65076: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
65077: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
65078: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
65079: esac
65080:
65081: cat >>Makefile.objects<<EOF
65082: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
65083: $ac_comp
65084: EOF
65085: done
65086:
65087:
65088: EXT_CLI_STATIC="$EXT_CLI_STATIC mysqli"
65089: fi
65090:
65091:
65092: BUILD_DIR="$BUILD_DIR $ext_builddir"
65093:
65094:
65095:
65096: if test "$ext_builddir" = "."; then
65097: PHP_PECL_EXTENSION=mysqli
65098:
65099: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
65100:
65101: fi
65102:
65103:
65104: PHP_VAR_SUBST="$PHP_VAR_SUBST MYSQLI_SHARED_LIBADD"
65105:
65106:
65107:
65108: for header_file in ext/mysqli/php_mysqli_structs.h; do
65109:
65110:
65111: unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
65112:
65113: cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
65114: if test -n "$unique" && test "`eval $cmd`" = "" ; then
65115: eval "INSTALLHEADERS$unique=set"
65116:
65117: INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
65118:
65119: fi
65120:
65121: done
65122:
65123:
65124:
65125: if test "$PHP_MYSQLI" = "mysqlnd"; then
65126:
65127: am_i_shared=$PHP_MYSQLI_SHARED
65128: is_it_shared=$PHP_MYSQLND_SHARED
65129: is_it_enabled=$PHP_MYSQLND
65130: if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
65131: as_fn_error $? "
65132: You've configured extension mysqli to build statically, but it
65133: depends on extension mysqlnd, which you've configured to build shared.
65134: You either need to build mysqli shared or build mysqlnd statically for the
65135: build to be successful.
65136: " "$LINENO" 5
65137: fi
65138:
65139:
65140: $as_echo "#define MYSQLI_USE_MYSQLND 1" >>confdefs.h
65141:
65142: fi
65143: fi
65144:
65145:
65146: if test -z "$SED"; then
65147: PHP_OCI8_SED="sed";
65148: else
65149: PHP_OCI8_SED="$SED";
65150: fi
65151:
65152:
65153:
65154:
65155:
65156:
65157:
65158:
65159:
65160:
65161:
65162: php_with_oci8=no
65163:
65164: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Oracle Database OCI8 support" >&5
65165: $as_echo_n "checking for Oracle Database OCI8 support... " >&6; }
65166:
65167: # Check whether --with-oci8 was given.
65168: if test "${with_oci8+set}" = set; then :
65169: withval=$with_oci8; PHP_OCI8=$withval
65170: else
65171:
65172: PHP_OCI8=no
65173: test "$PHP_ENABLE_ALL" && PHP_OCI8=$PHP_ENABLE_ALL
65174:
65175: fi
65176:
65177:
65178:
65179: ext_output="yes, shared"
65180: ext_shared=yes
65181: case $PHP_OCI8 in
65182: shared,*)
65183: PHP_OCI8=`echo "$PHP_OCI8"|$SED 's/^shared,//'`
65184: ;;
65185: shared)
65186: PHP_OCI8=yes
65187: ;;
65188: no)
65189: ext_output=no
65190: ext_shared=no
65191: ;;
65192: *)
65193: ext_output=yes
65194: ext_shared=no
65195: ;;
65196: esac
65197:
65198:
65199:
65200: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
65201: $as_echo "$ext_output" >&6; }
65202:
65203:
65204:
65205:
65206: if test "$PHP_OCI8" != "no"; then
65207:
65208: if test -z "$PHP_OCI8"; then
65209: as_fn_error $? "Empty parameter value passed to --with-oci8" "$LINENO" 5
65210: fi
65211:
65212:
65213: { $as_echo "$as_me:${as_lineno-$LINENO}: checking PHP version" >&5
65214: $as_echo_n "checking PHP version... " >&6; }
65215:
65216: tmp_version=$PHP_VERSION
65217: if test -z "$tmp_version"; then
65218: if test -z "$PHP_CONFIG"; then
65219: as_fn_error $? "php-config not found" "$LINENO" 5
65220: fi
65221: php_version=`$PHP_CONFIG --version 2>/dev/null|head -n 1|$PHP_OCI8_SED -e 's#\([0-9]\.[0-9]*\.[0-9]*\)\(.*\)#\1#'`
65222: else
65223: php_version=`echo "$tmp_version"|$PHP_OCI8_SED -e 's#\([0-9]\.[0-9]*\.[0-9]*\)\(.*\)#\1#'`
65224: fi
65225:
65226: if test -z "$php_version"; then
65227: as_fn_error $? "failed to detect PHP version, please report" "$LINENO" 5
65228: fi
65229:
65230: ac_IFS=$IFS
65231: IFS="."
65232: set $php_version
65233: IFS=$ac_IFS
65234: oci8_php_version=`expr $1 \* 1000000 + $2 \* 1000 + $3`
65235:
65236: if test "$oci8_php_version" -lt "4003009"; then
65237: 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
65238: elif test "$oci8_php_version" -ge "6000000"; then
65239: as_fn_error $? "This version of OCI8 is not compatible with PHP 6 or higher" "$LINENO" 5
65240: else
65241: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_version, ok" >&5
65242: $as_echo "$php_version, ok" >&6; }
65243: fi
65244:
65245:
65246: # The cast to long int works around a bug in the HP C Compiler
65247: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
65248: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
65249: # This bug is HP SR number 8606223364.
65250: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
65251: $as_echo_n "checking size of long int... " >&6; }
65252: if ${ac_cv_sizeof_long_int+:} false; then :
65253: $as_echo_n "(cached) " >&6
65254: else
65255: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
65256:
65257: else
65258: if test "$ac_cv_type_long_int" = yes; then
65259: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
65260: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
65261: as_fn_error 77 "cannot compute sizeof (long int)
65262: See \`config.log' for more details" "$LINENO" 5; }
65263: else
65264: ac_cv_sizeof_long_int=0
65265: fi
65266: fi
65267:
65268: fi
65269: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
65270: $as_echo "$ac_cv_sizeof_long_int" >&6; }
65271:
65272:
65273:
65274: cat >>confdefs.h <<_ACEOF
65275: #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
65276: _ACEOF
65277:
65278:
65279: { $as_echo "$as_me:${as_lineno-$LINENO}: checking checking if we're on a 64-bit platform" >&5
65280: $as_echo_n "checking checking if we're on a 64-bit platform... " >&6; }
65281: if test "$ac_cv_sizeof_long_int" = "4"; then
65282: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
65283: $as_echo "no" >&6; }
65284: PHP_OCI8_OH_LIBDIR=lib32
65285: PHP_OCI8_IC_LIBDIR_SUFFIX=""
65286: else
65287: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
65288: $as_echo "yes" >&6; }
65289: PHP_OCI8_OH_LIBDIR=lib
65290: PHP_OCI8_IC_LIBDIR_SUFFIX=64
65291: fi
65292:
65293:
65294: PHP_OCI8_INSTANT_CLIENT="no"
65295:
65296: if test "$PHP_OCI8" = "yes" && test -z "$ORACLE_HOME"; then
65297: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OCI8 extension: ORACLE_HOME is not set, looking for default Oracle Instant Client instead" >&5
65298: $as_echo "$as_me: WARNING: OCI8 extension: ORACLE_HOME is not set, looking for default Oracle Instant Client instead" >&2;}
65299: PHP_OCI8=instantclient
65300: fi
65301:
65302: if test "`echo $PHP_OCI8`" = "instantclient"; then
65303: PHP_OCI8_INSTANT_CLIENT="yes"
65304: elif test "`echo $PHP_OCI8 | cut -d, -f2`" = "instantclient"; then
65305: PHP_OCI8_INSTANT_CLIENT="`echo $PHP_OCI8 | cut -d, -f3`"
65306: PHP_OCI8="`echo $PHP_OCI8 | cut -d, -f1,4`"
65307: if test "$PHP_OCI8_INSTANT_CLIENT" = ""; then
65308: PHP_OCI8_INSTANT_CLIENT="yes"
65309: fi
65310: if test -z "$PHP_OCI8"; then
65311: PHP_OCI8=yes
65312: fi
65313: elif test "`echo $PHP_OCI8 | cut -d, -f1`" = "instantclient"; then
65314: PHP_OCI8_INSTANT_CLIENT="`echo $PHP_OCI8 | cut -d, -f2`"
65315: PHP_OCI8="`echo $PHP_OCI8 | cut -d, -f3,4`"
65316: if test "$PHP_OCI8_INSTANT_CLIENT" = ""; then
65317: PHP_OCI8_INSTANT_CLIENT="yes"
65318: fi
65319: if test -z "$PHP_OCI8"; then
65320: PHP_OCI8=yes
65321: fi
65322: fi
65323:
65324: if test "$PHP_OCI8_INSTANT_CLIENT" = "no"; then
65325:
65326: { $as_echo "$as_me:${as_lineno-$LINENO}: checking Oracle ORACLE_HOME install directory" >&5
65327: $as_echo_n "checking Oracle ORACLE_HOME install directory... " >&6; }
65328:
65329: if test "$PHP_OCI8" = "yes"; then
65330: OCI8_DIR=$ORACLE_HOME
65331: else
65332: OCI8_DIR=$PHP_OCI8
65333: fi
65334: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCI8_DIR" >&5
65335: $as_echo "$OCI8_DIR" >&6; }
65336:
65337:
65338: { $as_echo "$as_me:${as_lineno-$LINENO}: checking ORACLE_HOME library validity" >&5
65339: $as_echo_n "checking ORACLE_HOME library validity... " >&6; }
65340: if test ! -d "$OCI8_DIR"; then
65341: as_fn_error $? "${OCI8_DIR} is not a directory" "$LINENO" 5
65342: fi
65343: if test -d "$OCI8_DIR/lib" && test ! -d "$OCI8_DIR/lib32"; then
65344: OCI8_LIB_DIR=lib
65345: elif test ! -d "$OCI8_DIR/lib" && test -d "$OCI8_DIR/lib32"; then
65346: OCI8_LIB_DIR=lib32
65347: elif test -d "$OCI8_DIR/lib" && test -d "$OCI8_DIR/lib32"; then
65348: OCI8_LIB_DIR=$PHP_OCI8_OH_LIBDIR
65349: else
65350: if test -f "$OCI8_DIR/libociei.$SHLIB_SUFFIX_NAME"; then
65351: 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
65352: else
65353: as_fn_error $? "Oracle library directory not found in ${OCI8_DIR}" "$LINENO" 5
65354: fi
65355: fi
65356: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCI8_LIB_DIR" >&5
65357: $as_echo "$OCI8_LIB_DIR" >&6; }
65358:
65359:
65360: if test -d "$OCI8_DIR/rdbms/public"; then
65361:
65362: if test "$OCI8_DIR/rdbms/public" != "/usr/include"; then
65363:
65364: if test -z "$OCI8_DIR/rdbms/public" || echo "$OCI8_DIR/rdbms/public" | grep '^/' >/dev/null ; then
65365: ai_p=$OCI8_DIR/rdbms/public
65366: else
65367:
65368: ep_dir="`echo $OCI8_DIR/rdbms/public|$SED 's%/*[^/][^/]*/*$%%'`"
65369:
65370: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
65371: ai_p="$ep_realdir/`basename \"$OCI8_DIR/rdbms/public\"`"
65372: fi
65373:
65374:
65375:
65376: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
65377:
65378: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
65379: if test -n "$unique" && test "`eval $cmd`" = "" ; then
65380: eval "INCLUDEPATH$unique=set"
65381:
65382: if test ""; then
65383: INCLUDES="-I$ai_p $INCLUDES"
65384: else
65385: INCLUDES="$INCLUDES -I$ai_p"
65386: fi
65387:
65388: fi
65389:
65390: fi
65391:
65392: OCI8_INCLUDES="$OCI8_INCLUDES -I$OCI8_DIR/rdbms/public"
65393: fi
65394: if test -d "$OCI8_DIR/rdbms/demo"; then
65395:
65396: if test "$OCI8_DIR/rdbms/demo" != "/usr/include"; then
65397:
65398: if test -z "$OCI8_DIR/rdbms/demo" || echo "$OCI8_DIR/rdbms/demo" | grep '^/' >/dev/null ; then
65399: ai_p=$OCI8_DIR/rdbms/demo
65400: else
65401:
65402: ep_dir="`echo $OCI8_DIR/rdbms/demo|$SED 's%/*[^/][^/]*/*$%%'`"
65403:
65404: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
65405: ai_p="$ep_realdir/`basename \"$OCI8_DIR/rdbms/demo\"`"
65406: fi
65407:
65408:
65409:
65410: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
65411:
65412: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
65413: if test -n "$unique" && test "`eval $cmd`" = "" ; then
65414: eval "INCLUDEPATH$unique=set"
65415:
65416: if test ""; then
65417: INCLUDES="-I$ai_p $INCLUDES"
65418: else
65419: INCLUDES="$INCLUDES -I$ai_p"
65420: fi
65421:
65422: fi
65423:
65424: fi
65425:
65426: OCI8_INCLUDES="$OCI8_INCLUDES -I$OCI8_DIR/rdbms/demo"
65427: fi
65428: if test -d "$OCI8_DIR/network/public"; then
65429:
65430: if test "$OCI8_DIR/network/public" != "/usr/include"; then
65431:
65432: if test -z "$OCI8_DIR/network/public" || echo "$OCI8_DIR/network/public" | grep '^/' >/dev/null ; then
65433: ai_p=$OCI8_DIR/network/public
65434: else
65435:
65436: ep_dir="`echo $OCI8_DIR/network/public|$SED 's%/*[^/][^/]*/*$%%'`"
65437:
65438: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
65439: ai_p="$ep_realdir/`basename \"$OCI8_DIR/network/public\"`"
65440: fi
65441:
65442:
65443:
65444: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
65445:
65446: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
65447: if test -n "$unique" && test "`eval $cmd`" = "" ; then
65448: eval "INCLUDEPATH$unique=set"
65449:
65450: if test ""; then
65451: INCLUDES="-I$ai_p $INCLUDES"
65452: else
65453: INCLUDES="$INCLUDES -I$ai_p"
65454: fi
65455:
65456: fi
65457:
65458: fi
65459:
65460: OCI8_INCLUDES="$OCI8_INCLUDES -I$OCI8_DIR/network/public"
65461: fi
65462: if test -d "$OCI8_DIR/plsql/public"; then
65463:
65464: if test "$OCI8_DIR/plsql/public" != "/usr/include"; then
65465:
65466: if test -z "$OCI8_DIR/plsql/public" || echo "$OCI8_DIR/plsql/public" | grep '^/' >/dev/null ; then
65467: ai_p=$OCI8_DIR/plsql/public
65468: else
65469:
65470: ep_dir="`echo $OCI8_DIR/plsql/public|$SED 's%/*[^/][^/]*/*$%%'`"
65471:
65472: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
65473: ai_p="$ep_realdir/`basename \"$OCI8_DIR/plsql/public\"`"
65474: fi
65475:
65476:
65477:
65478: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
65479:
65480: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
65481: if test -n "$unique" && test "`eval $cmd`" = "" ; then
65482: eval "INCLUDEPATH$unique=set"
65483:
65484: if test ""; then
65485: INCLUDES="-I$ai_p $INCLUDES"
65486: else
65487: INCLUDES="$INCLUDES -I$ai_p"
65488: fi
65489:
65490: fi
65491:
65492: fi
65493:
65494: OCI8_INCLUDES="$OCI8_INCLUDES -I$OCI8_DIR/plsql/public"
65495: fi
65496:
65497: if test -f "$OCI8_DIR/$OCI8_LIB_DIR/sysliblist"; then
65498:
65499: for ac_i in `cat $OCI8_DIR/$OCI8_LIB_DIR/sysliblist`; do
65500: case $ac_i in
65501: -pthread)
65502: if test "$ext_shared" = "yes"; then
65503: OCI8_SYSLIB="$OCI8_SYSLIB -pthread"
65504: else
65505:
65506:
65507: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
65508:
65509: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
65510: if test -n "$unique" && test "`eval $cmd`" = "" ; then
65511: eval "EXTRA_LDFLAGS$unique=set"
65512: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
65513: fi
65514:
65515: fi
65516: ;;
65517: -l*)
65518: ac_ii=`echo $ac_i|cut -c 3-`
65519:
65520:
65521: case $ac_ii in
65522: c|c_r|pthread*) ;;
65523: *)
65524: if test "$ext_shared" = "yes"; then
65525: OCI8_SYSLIB="$OCI8_SYSLIB -l$ac_ii"
65526: else
65527:
65528:
65529: case $ac_ii in
65530: c|c_r|pthread*) ;;
65531: *)
65532: LIBS="$LIBS -l$ac_ii"
65533: ;;
65534: esac
65535:
65536:
65537: fi
65538: ;;
65539: esac
65540:
65541:
65542: ;;
65543: -L*)
65544: ac_ii=`echo $ac_i|cut -c 3-`
65545:
65546: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
65547:
65548: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
65549: ai_p=$ac_ii
65550: else
65551:
65552: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
65553:
65554: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
65555: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
65556: fi
65557:
65558:
65559: if test "$ext_shared" = "yes"; then
65560: OCI8_SYSLIB="-L$ai_p $OCI8_SYSLIB"
65561: test -n "$ld_runpath_switch" && OCI8_SYSLIB="$ld_runpath_switch$ai_p $OCI8_SYSLIB"
65562: else
65563:
65564:
65565:
65566: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
65567:
65568: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
65569: if test -n "$unique" && test "`eval $cmd`" = "" ; then
65570: eval "LIBPATH$unique=set"
65571:
65572: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
65573: LDFLAGS="$LDFLAGS -L$ai_p"
65574: PHP_RPATHS="$PHP_RPATHS $ai_p"
65575:
65576: fi
65577:
65578:
65579: fi
65580:
65581: fi
65582:
65583: ;;
65584: esac
65585: done
65586:
65587: elif test -f "$OCI8_DIR/rdbms/$OCI8_LIB_DIR/sysliblist"; then
65588:
65589: for ac_i in `cat $OCI8_DIR/rdbms/$OCI8_LIB_DIR/sysliblist`; do
65590: case $ac_i in
65591: -pthread)
65592: if test "$ext_shared" = "yes"; then
65593: OCI8_SYSLIB="$OCI8_SYSLIB -pthread"
65594: else
65595:
65596:
65597: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
65598:
65599: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
65600: if test -n "$unique" && test "`eval $cmd`" = "" ; then
65601: eval "EXTRA_LDFLAGS$unique=set"
65602: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
65603: fi
65604:
65605: fi
65606: ;;
65607: -l*)
65608: ac_ii=`echo $ac_i|cut -c 3-`
65609:
65610:
65611: case $ac_ii in
65612: c|c_r|pthread*) ;;
65613: *)
65614: if test "$ext_shared" = "yes"; then
65615: OCI8_SYSLIB="$OCI8_SYSLIB -l$ac_ii"
65616: else
65617:
65618:
65619: case $ac_ii in
65620: c|c_r|pthread*) ;;
65621: *)
65622: LIBS="$LIBS -l$ac_ii"
65623: ;;
65624: esac
65625:
65626:
65627: fi
65628: ;;
65629: esac
65630:
65631:
65632: ;;
65633: -L*)
65634: ac_ii=`echo $ac_i|cut -c 3-`
65635:
65636: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
65637:
65638: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
65639: ai_p=$ac_ii
65640: else
65641:
65642: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
65643:
65644: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
65645: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
65646: fi
65647:
65648:
65649: if test "$ext_shared" = "yes"; then
65650: OCI8_SYSLIB="-L$ai_p $OCI8_SYSLIB"
65651: test -n "$ld_runpath_switch" && OCI8_SYSLIB="$ld_runpath_switch$ai_p $OCI8_SYSLIB"
65652: else
65653:
65654:
65655:
65656: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
65657:
65658: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
65659: if test -n "$unique" && test "`eval $cmd`" = "" ; then
65660: eval "LIBPATH$unique=set"
65661:
65662: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
65663: LDFLAGS="$LDFLAGS -L$ai_p"
65664: PHP_RPATHS="$PHP_RPATHS $ai_p"
65665:
65666: fi
65667:
65668:
65669: fi
65670:
65671: fi
65672:
65673: ;;
65674: esac
65675: done
65676:
65677: fi
65678:
65679:
65680: { $as_echo "$as_me:${as_lineno-$LINENO}: checking Oracle library version compatibility" >&5
65681: $as_echo_n "checking Oracle library version compatibility... " >&6; }
65682: OCI8_LCS_BASE=$OCI8_DIR/$OCI8_LIB_DIR/libclntsh.$SHLIB_SUFFIX_NAME
65683: OCI8_LCS=`ls $OCI8_LCS_BASE.*.1 2> /dev/null | tail -1` # Oracle 10g, 11g etc
65684: if test -s "$OCI8_DIR/orainst/unix.rgs"; then
65685: OCI8_ORACLE_VERSION=`grep '"ocommon"' $OCI8_DIR/orainst/unix.rgs | $PHP_OCI8_SED 's/ */:/g' | cut -d: -f 6 | cut -c 2-4`
65686: test -z "$OCI8_ORACLE_VERSION" && OCI8_ORACLE_VERSION=7.3
65687: elif test -f "$OCI8_LCS"; then
65688: OCI8_ORACLE_VERSION=`echo $OCI8_LCS | $PHP_OCI8_SED -e 's/.*\.\(.*\)\.1$/\1.1/'`
65689: elif test -f $OCI8_LCS_BASE.9.0; then
65690: OCI8_ORACLE_VERSION=9.0
65691: elif test -f $OCI8_LCS_BASE.8.0; then
65692: OCI8_ORACLE_VERSION=8.1
65693: elif test -f $OCI8_LCS_BASE.1.0; then
65694: OCI8_ORACLE_VERSION=8.0
65695: elif test -f $OCI8_DIR/$OCI8_LIB_DIR/libclntsh.a; then
65696: if test -f $OCI8_DIR/$OCI8_LIB_DIR/libcore4.a; then
65697: OCI8_ORACLE_VERSION=8.0
65698: else
65699: OCI8_ORACLE_VERSION=8.1
65700: fi
65701: else
65702: as_fn_error $? "Oracle libclntsh.$SHLIB_SUFFIX_NAME client library not found" "$LINENO" 5
65703: fi
65704: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCI8_ORACLE_VERSION" >&5
65705: $as_echo "$OCI8_ORACLE_VERSION" >&6; }
65706:
65707:
65708: case $OCI8_ORACLE_VERSION in
65709: 7.3|8.0|8.1)
65710: as_fn_error $? "Oracle client libraries < 9.2 are not supported" "$LINENO" 5
65711: ;;
65712:
65713: 9.0)
65714:
65715: save_old_LDFLAGS=$LDFLAGS
65716: ac_stuff="
65717: -L$OCI8_DIR/$OCI8_LIB_DIR $OCI8_SHARED_LIBADD
65718: "
65719:
65720: save_ext_shared=$ext_shared
65721: ext_shared=yes
65722:
65723: for ac_i in $ac_stuff; do
65724: case $ac_i in
65725: -pthread)
65726: if test "$ext_shared" = "yes"; then
65727: LDFLAGS="$LDFLAGS -pthread"
65728: else
65729:
65730:
65731: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
65732:
65733: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
65734: if test -n "$unique" && test "`eval $cmd`" = "" ; then
65735: eval "EXTRA_LDFLAGS$unique=set"
65736: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
65737: fi
65738:
65739: fi
65740: ;;
65741: -l*)
65742: ac_ii=`echo $ac_i|cut -c 3-`
65743:
65744:
65745: case $ac_ii in
65746: c|c_r|pthread*) ;;
65747: *)
65748: if test "$ext_shared" = "yes"; then
65749: LDFLAGS="$LDFLAGS -l$ac_ii"
65750: else
65751:
65752:
65753: case $ac_ii in
65754: c|c_r|pthread*) ;;
65755: *)
65756: LIBS="$LIBS -l$ac_ii"
65757: ;;
65758: esac
65759:
65760:
65761: fi
65762: ;;
65763: esac
65764:
65765:
65766: ;;
65767: -L*)
65768: ac_ii=`echo $ac_i|cut -c 3-`
65769:
65770: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
65771:
65772: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
65773: ai_p=$ac_ii
65774: else
65775:
65776: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
65777:
65778: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
65779: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
65780: fi
65781:
65782:
65783: if test "$ext_shared" = "yes"; then
65784: LDFLAGS="-L$ai_p $LDFLAGS"
65785: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
65786: else
65787:
65788:
65789:
65790: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
65791:
65792: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
65793: if test -n "$unique" && test "`eval $cmd`" = "" ; then
65794: eval "LIBPATH$unique=set"
65795:
65796: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
65797: LDFLAGS="$LDFLAGS -L$ai_p"
65798: PHP_RPATHS="$PHP_RPATHS $ai_p"
65799:
65800: fi
65801:
65802:
65803: fi
65804:
65805: fi
65806:
65807: ;;
65808: esac
65809: done
65810:
65811: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCIEnvNlsCreate in -lclntsh" >&5
65812: $as_echo_n "checking for OCIEnvNlsCreate in -lclntsh... " >&6; }
65813: if ${ac_cv_lib_clntsh_OCIEnvNlsCreate+:} false; then :
65814: $as_echo_n "(cached) " >&6
65815: else
65816: ac_check_lib_save_LIBS=$LIBS
65817: LIBS="-lclntsh $LIBS"
65818: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
65819: /* end confdefs.h. */
65820:
65821: /* Override any GCC internal prototype to avoid an error.
65822: Use char because int might match the return type of a GCC
65823: builtin and then its argument prototype would still apply. */
65824: #ifdef __cplusplus
65825: extern "C"
65826: #endif
65827: char OCIEnvNlsCreate ();
65828: int
65829: main ()
65830: {
65831: return OCIEnvNlsCreate ();
65832: ;
65833: return 0;
65834: }
65835: _ACEOF
65836: if ac_fn_c_try_link "$LINENO"; then :
65837: ac_cv_lib_clntsh_OCIEnvNlsCreate=yes
65838: else
65839: ac_cv_lib_clntsh_OCIEnvNlsCreate=no
65840: fi
65841: rm -f core conftest.err conftest.$ac_objext \
65842: conftest$ac_exeext conftest.$ac_ext
65843: LIBS=$ac_check_lib_save_LIBS
65844: fi
65845: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clntsh_OCIEnvNlsCreate" >&5
65846: $as_echo "$ac_cv_lib_clntsh_OCIEnvNlsCreate" >&6; }
65847: if test "x$ac_cv_lib_clntsh_OCIEnvNlsCreate" = xyes; then :
65848:
65849: LDFLAGS=$save_old_LDFLAGS
65850: ext_shared=$save_ext_shared
65851:
65852: OCI8_ORACLE_VERSION=9.2
65853:
65854:
65855: else
65856:
65857: LDFLAGS=$save_old_LDFLAGS
65858: ext_shared=$save_ext_shared
65859: unset ac_cv_lib_clntsh_OCIEnvNlsCreate
65860:
65861: as_fn_error $? "Oracle client libraries < 9.2 are not supported" "$LINENO" 5
65862:
65863:
65864: fi
65865:
65866: ;;
65867:
65868: *)
65869:
65870: $as_echo "#define HAVE_OCI_LOB_READ2 1" >>confdefs.h
65871:
65872: ;;
65873: esac
65874:
65875:
65876:
65877: case clntsh in
65878: c|c_r|pthread*) ;;
65879: *)
65880: if test "$ext_shared" = "yes"; then
65881: OCI8_SHARED_LIBADD="$OCI8_SHARED_LIBADD -lclntsh"
65882: else
65883:
65884:
65885: case clntsh in
65886: c|c_r|pthread*) ;;
65887: *)
65888: LIBS="$LIBS -lclntsh"
65889: ;;
65890: esac
65891:
65892:
65893: fi
65894: ;;
65895: esac
65896:
65897:
65898:
65899: if test "$OCI8_DIR/$OCI8_LIB_DIR" != "/usr/$PHP_LIBDIR" && test "$OCI8_DIR/$OCI8_LIB_DIR" != "/usr/lib"; then
65900:
65901: if test -z "$OCI8_DIR/$OCI8_LIB_DIR" || echo "$OCI8_DIR/$OCI8_LIB_DIR" | grep '^/' >/dev/null ; then
65902: ai_p=$OCI8_DIR/$OCI8_LIB_DIR
65903: else
65904:
65905: ep_dir="`echo $OCI8_DIR/$OCI8_LIB_DIR|$SED 's%/*[^/][^/]*/*$%%'`"
65906:
65907: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
65908: ai_p="$ep_realdir/`basename \"$OCI8_DIR/$OCI8_LIB_DIR\"`"
65909: fi
65910:
65911:
65912: if test "$ext_shared" = "yes"; then
65913: OCI8_SHARED_LIBADD="-L$ai_p $OCI8_SHARED_LIBADD"
65914: test -n "$ld_runpath_switch" && OCI8_SHARED_LIBADD="$ld_runpath_switch$ai_p $OCI8_SHARED_LIBADD"
65915: else
65916:
65917:
65918:
65919: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
65920:
65921: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
65922: if test -n "$unique" && test "`eval $cmd`" = "" ; then
65923: eval "LIBPATH$unique=set"
65924:
65925: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
65926: LDFLAGS="$LDFLAGS -L$ai_p"
65927: PHP_RPATHS="$PHP_RPATHS $ai_p"
65928:
65929: fi
65930:
65931:
65932: fi
65933:
65934: fi
65935:
65936:
65937: ext_builddir=ext/oci8
65938: ext_srcdir=$abs_srcdir/ext/oci8
65939:
65940: ac_extra=
65941:
65942: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
65943: PHP_OCI8_SHARED=no
65944:
65945:
65946: case ext/oci8 in
65947: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
65948: /*) ac_srcdir=`echo "ext/oci8"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
65949: *) ac_srcdir="$abs_srcdir/ext/oci8/"; ac_bdir="ext/oci8/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
65950: esac
65951:
65952:
65953:
65954: b_c_pre=$php_c_pre
65955: b_cxx_pre=$php_cxx_pre
65956: b_c_meta=$php_c_meta
65957: b_cxx_meta=$php_cxx_meta
65958: b_c_post=$php_c_post
65959: b_cxx_post=$php_cxx_post
65960: b_lo=$php_lo
65961:
65962:
65963: old_IFS=$IFS
65964: for ac_src in oci8.c oci8_lob.c oci8_statement.c oci8_collection.c oci8_interface.c; do
65965:
65966: IFS=.
65967: set $ac_src
65968: ac_obj=$1
65969: IFS=$old_IFS
65970:
65971: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
65972:
65973: case $ac_src in
65974: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
65975: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
65976: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
65977: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
65978: esac
65979:
65980: cat >>Makefile.objects<<EOF
65981: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
65982: $ac_comp
65983: EOF
65984: done
65985:
65986:
65987: EXT_STATIC="$EXT_STATIC oci8"
65988: if test "$ext_shared" != "nocli"; then
65989: EXT_CLI_STATIC="$EXT_CLI_STATIC oci8"
65990: fi
65991: else
65992: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
65993: PHP_OCI8_SHARED=yes
65994:
65995: case ext/oci8 in
65996: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
65997: /*) ac_srcdir=`echo "ext/oci8"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
65998: *) ac_srcdir="$abs_srcdir/ext/oci8/"; ac_bdir="ext/oci8/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
65999: esac
66000:
66001:
66002:
66003: b_c_pre=$shared_c_pre
66004: b_cxx_pre=$shared_cxx_pre
66005: b_c_meta=$shared_c_meta
66006: b_cxx_meta=$shared_cxx_meta
66007: b_c_post=$shared_c_post
66008: b_cxx_post=$shared_cxx_post
66009: b_lo=$shared_lo
66010:
66011:
66012: old_IFS=$IFS
66013: for ac_src in oci8.c oci8_lob.c oci8_statement.c oci8_collection.c oci8_interface.c; do
66014:
66015: IFS=.
66016: set $ac_src
66017: ac_obj=$1
66018: IFS=$old_IFS
66019:
66020: shared_objects_oci8="$shared_objects_oci8 $ac_bdir$ac_obj.lo"
66021:
66022: case $ac_src in
66023: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
66024: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
66025: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
66026: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
66027: esac
66028:
66029: cat >>Makefile.objects<<EOF
66030: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
66031: $ac_comp
66032: EOF
66033: done
66034:
66035: case $host_alias in
66036: *netware*)
66037:
66038: install_modules="install-modules"
66039:
66040: case $host_alias in
66041: *aix*)
66042: suffix=so
66043: 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'
66044: ;;
66045: *netware*)
66046: suffix=nlm
66047: link_cmd='$(LIBTOOL) --mode=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)'
66048: ;;
66049: *)
66050: suffix=la
66051: link_cmd='$(LIBTOOL) --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)'
66052: ;;
66053: esac
66054:
66055: if test "x" = "xyes"; then
66056: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpoci8.$suffix"
66057: else
66058: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpoci8.$suffix"
66059: fi
66060:
66061: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_oci8"
66062:
66063: cat >>Makefile.objects<<EOF
66064: \$(phplibdir)/phpoci8.$suffix: $ext_builddir/phpoci8.$suffix
66065: \$(LIBTOOL) --mode=install cp $ext_builddir/phpoci8.$suffix \$(phplibdir)
66066:
66067: $ext_builddir/phpoci8.$suffix: \$(shared_objects_oci8) \$(PHPOCI8_SHARED_DEPENDENCIES)
66068: $link_cmd
66069:
66070: EOF
66071:
66072: ;;
66073: *)
66074:
66075: install_modules="install-modules"
66076:
66077: case $host_alias in
66078: *aix*)
66079: suffix=so
66080: 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'
66081: ;;
66082: *netware*)
66083: suffix=nlm
66084: link_cmd='$(LIBTOOL) --mode=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)'
66085: ;;
66086: *)
66087: suffix=la
66088: link_cmd='$(LIBTOOL) --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)'
66089: ;;
66090: esac
66091:
66092: if test "x" = "xyes"; then
66093: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/oci8.$suffix"
66094: else
66095: PHP_MODULES="$PHP_MODULES \$(phplibdir)/oci8.$suffix"
66096: fi
66097:
66098: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_oci8"
66099:
66100: cat >>Makefile.objects<<EOF
66101: \$(phplibdir)/oci8.$suffix: $ext_builddir/oci8.$suffix
66102: \$(LIBTOOL) --mode=install cp $ext_builddir/oci8.$suffix \$(phplibdir)
66103:
66104: $ext_builddir/oci8.$suffix: \$(shared_objects_oci8) \$(OCI8_SHARED_DEPENDENCIES)
66105: $link_cmd
66106:
66107: EOF
66108:
66109: ;;
66110: esac
66111:
66112: cat >>confdefs.h <<_ACEOF
66113: #define COMPILE_DL_OCI8 1
66114: _ACEOF
66115:
66116: fi
66117: fi
66118:
66119: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
66120: PHP_OCI8_SHARED=no
66121:
66122:
66123: case ext/oci8 in
66124: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
66125: /*) ac_srcdir=`echo "ext/oci8"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
66126: *) ac_srcdir="$abs_srcdir/ext/oci8/"; ac_bdir="ext/oci8/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
66127: esac
66128:
66129:
66130:
66131: b_c_pre=$php_c_pre
66132: b_cxx_pre=$php_cxx_pre
66133: b_c_meta=$php_c_meta
66134: b_cxx_meta=$php_cxx_meta
66135: b_c_post=$php_c_post
66136: b_cxx_post=$php_cxx_post
66137: b_lo=$php_lo
66138:
66139:
66140: old_IFS=$IFS
66141: for ac_src in oci8.c oci8_lob.c oci8_statement.c oci8_collection.c oci8_interface.c; do
66142:
66143: IFS=.
66144: set $ac_src
66145: ac_obj=$1
66146: IFS=$old_IFS
66147:
66148: PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
66149:
66150: case $ac_src in
66151: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
66152: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
66153: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
66154: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
66155: esac
66156:
66157: cat >>Makefile.objects<<EOF
66158: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
66159: $ac_comp
66160: EOF
66161: done
66162:
66163:
66164:
66165:
66166: case ext/oci8 in
66167: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
66168: /*) ac_srcdir=`echo "ext/oci8"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
66169: *) ac_srcdir="$abs_srcdir/ext/oci8/"; ac_bdir="ext/oci8/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
66170: esac
66171:
66172:
66173:
66174: b_c_pre=$php_c_pre
66175: b_cxx_pre=$php_cxx_pre
66176: b_c_meta=$php_c_meta
66177: b_cxx_meta=$php_cxx_meta
66178: b_c_post=$php_c_post
66179: b_cxx_post=$php_cxx_post
66180: b_lo=$php_lo
66181:
66182:
66183: old_IFS=$IFS
66184: for ac_src in oci8.c oci8_lob.c oci8_statement.c oci8_collection.c oci8_interface.c; do
66185:
66186: IFS=.
66187: set $ac_src
66188: ac_obj=$1
66189: IFS=$old_IFS
66190:
66191: PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo"
66192:
66193: case $ac_src in
66194: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
66195: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
66196: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
66197: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
66198: esac
66199:
66200: cat >>Makefile.objects<<EOF
66201: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
66202: $ac_comp
66203: EOF
66204: done
66205:
66206:
66207:
66208:
66209: case ext/oci8 in
66210: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
66211: /*) ac_srcdir=`echo "ext/oci8"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
66212: *) ac_srcdir="$abs_srcdir/ext/oci8/"; ac_bdir="ext/oci8/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
66213: esac
66214:
66215:
66216:
66217: b_c_pre=$php_c_pre
66218: b_cxx_pre=$php_cxx_pre
66219: b_c_meta=$php_c_meta
66220: b_cxx_meta=$php_cxx_meta
66221: b_c_post=$php_c_post
66222: b_cxx_post=$php_cxx_post
66223: b_lo=$php_lo
66224:
66225:
66226: old_IFS=$IFS
66227: for ac_src in oci8.c oci8_lob.c oci8_statement.c oci8_collection.c oci8_interface.c; do
66228:
66229: IFS=.
66230: set $ac_src
66231: ac_obj=$1
66232: IFS=$old_IFS
66233:
66234: PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo"
66235:
66236: case $ac_src in
66237: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
66238: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
66239: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
66240: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
66241: esac
66242:
66243: cat >>Makefile.objects<<EOF
66244: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
66245: $ac_comp
66246: EOF
66247: done
66248:
66249:
66250: EXT_CLI_STATIC="$EXT_CLI_STATIC oci8"
66251: fi
66252:
66253:
66254: BUILD_DIR="$BUILD_DIR $ext_builddir"
66255:
66256:
66257:
66258: if test "$ext_builddir" = "."; then
66259: PHP_PECL_EXTENSION=oci8
66260:
66261: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
66262:
66263: fi
66264:
66265:
66266: $as_echo "#define HAVE_OCI8 1" >>confdefs.h
66267:
66268:
66269:
66270:
66271: PHP_VAR_SUBST="$PHP_VAR_SUBST OCI8_SHARED_LIBADD"
66272:
66273:
66274:
66275:
66276:
66277: PHP_VAR_SUBST="$PHP_VAR_SUBST OCI8_DIR"
66278:
66279:
66280:
66281:
66282:
66283: PHP_VAR_SUBST="$PHP_VAR_SUBST OCI8_ORACLE_VERSION"
66284:
66285:
66286:
66287:
66288:
66289: cat >>confdefs.h <<_ACEOF
66290: #define PHP_OCI8_DEF_DIR "$OCI8_DIR"
66291: _ACEOF
66292:
66293:
66294: cat >>confdefs.h <<_ACEOF
66295: #define PHP_OCI8_DEF_SHARED_LIBADD "$OCI8_SHARED_LIBADD"
66296: _ACEOF
66297:
66298:
66299: else
66300:
66301: { $as_echo "$as_me:${as_lineno-$LINENO}: checking Oracle Instant Client directory" >&5
66302: $as_echo_n "checking Oracle Instant Client directory... " >&6; }
66303:
66304: if test "$PHP_OCI8_INSTANT_CLIENT" = "yes"; then
66305: PHP_OCI8_INSTANT_CLIENT=`ls -d /usr/lib/oracle/*/client${PHP_OCI8_IC_LIBDIR_SUFFIX}/lib/libclntsh.* 2> /dev/null | tail -1 | $PHP_OCI8_SED -e 's#/libclntsh[^/]*##'`
66306: if test -z "$PHP_OCI8_INSTANT_CLIENT"; then
66307: 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
66308: fi
66309: fi
66310: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_OCI8_INSTANT_CLIENT" >&5
66311: $as_echo "$PHP_OCI8_INSTANT_CLIENT" >&6; }
66312:
66313: OCI8_DIR=$PHP_OCI8_INSTANT_CLIENT
66314:
66315: { $as_echo "$as_me:${as_lineno-$LINENO}: checking Oracle Instant Client SDK header directory" >&5
66316: $as_echo_n "checking Oracle Instant Client SDK header directory... " >&6; }
66317:
66318: 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!'`
66319:
66320: OCISDKZIPINC=$PHP_OCI8_INSTANT_CLIENT/sdk/include
66321:
66322: OCISDKMANINC=`echo "$PHP_OCI8_INSTANT_CLIENT" | $PHP_OCI8_SED -e 's!\(.*\)/lib/*$!\1/include!'`
66323:
66324: if test -f "$OCISDKRPMINC/oci.h"; then
66325: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCISDKRPMINC" >&5
66326: $as_echo "$OCISDKRPMINC" >&6; }
66327:
66328: if test "$OCISDKRPMINC" != "/usr/include"; then
66329:
66330: if test -z "$OCISDKRPMINC" || echo "$OCISDKRPMINC" | grep '^/' >/dev/null ; then
66331: ai_p=$OCISDKRPMINC
66332: else
66333:
66334: ep_dir="`echo $OCISDKRPMINC|$SED 's%/*[^/][^/]*/*$%%'`"
66335:
66336: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
66337: ai_p="$ep_realdir/`basename \"$OCISDKRPMINC\"`"
66338: fi
66339:
66340:
66341:
66342: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
66343:
66344: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
66345: if test -n "$unique" && test "`eval $cmd`" = "" ; then
66346: eval "INCLUDEPATH$unique=set"
66347:
66348: if test ""; then
66349: INCLUDES="-I$ai_p $INCLUDES"
66350: else
66351: INCLUDES="$INCLUDES -I$ai_p"
66352: fi
66353:
66354: fi
66355:
66356: fi
66357:
66358: OCI8INCDIR=$OCISDKRPMINC
66359: elif test -f "$OCISDKZIPINC/oci.h"; then
66360: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCISDKZIPINC" >&5
66361: $as_echo "$OCISDKZIPINC" >&6; }
66362:
66363: if test "$OCISDKZIPINC" != "/usr/include"; then
66364:
66365: if test -z "$OCISDKZIPINC" || echo "$OCISDKZIPINC" | grep '^/' >/dev/null ; then
66366: ai_p=$OCISDKZIPINC
66367: else
66368:
66369: ep_dir="`echo $OCISDKZIPINC|$SED 's%/*[^/][^/]*/*$%%'`"
66370:
66371: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
66372: ai_p="$ep_realdir/`basename \"$OCISDKZIPINC\"`"
66373: fi
66374:
66375:
66376:
66377: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
66378:
66379: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
66380: if test -n "$unique" && test "`eval $cmd`" = "" ; then
66381: eval "INCLUDEPATH$unique=set"
66382:
66383: if test ""; then
66384: INCLUDES="-I$ai_p $INCLUDES"
66385: else
66386: INCLUDES="$INCLUDES -I$ai_p"
66387: fi
66388:
66389: fi
66390:
66391: fi
66392:
66393: OCI8INCDIR=$OCISDKZIPINC
66394: elif test -f "$OCISDKMANINC/oci.h"; then
66395: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCISDKMANINC" >&5
66396: $as_echo "$OCISDKMANINC" >&6; }
66397:
66398: if test "$OCISDKMANINC" != "/usr/include"; then
66399:
66400: if test -z "$OCISDKMANINC" || echo "$OCISDKMANINC" | grep '^/' >/dev/null ; then
66401: ai_p=$OCISDKMANINC
66402: else
66403:
66404: ep_dir="`echo $OCISDKMANINC|$SED 's%/*[^/][^/]*/*$%%'`"
66405:
66406: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
66407: ai_p="$ep_realdir/`basename \"$OCISDKMANINC\"`"
66408: fi
66409:
66410:
66411:
66412: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
66413:
66414: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
66415: if test -n "$unique" && test "`eval $cmd`" = "" ; then
66416: eval "INCLUDEPATH$unique=set"
66417:
66418: if test ""; then
66419: INCLUDES="-I$ai_p $INCLUDES"
66420: else
66421: INCLUDES="$INCLUDES -I$ai_p"
66422: fi
66423:
66424: fi
66425:
66426: fi
66427:
66428: OCI8INCDIR=$OCISDKMANINC
66429: else
66430: as_fn_error $? "Oracle Instant Client SDK header files not found" "$LINENO" 5
66431: fi
66432:
66433: OCISYSLIBLIST=`echo "$OCI8INCDIR" | $PHP_OCI8_SED -e 's!\(.*\)/include$!\1/demo/sysliblist!'`
66434: if test -f "$OCISYSLIBLIST"; then
66435:
66436: for ac_i in `cat $OCISYSLIBLIST`; do
66437: case $ac_i in
66438: -pthread)
66439: if test "$ext_shared" = "yes"; then
66440: OCI8_SYSLIB="$OCI8_SYSLIB -pthread"
66441: else
66442:
66443:
66444: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
66445:
66446: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
66447: if test -n "$unique" && test "`eval $cmd`" = "" ; then
66448: eval "EXTRA_LDFLAGS$unique=set"
66449: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
66450: fi
66451:
66452: fi
66453: ;;
66454: -l*)
66455: ac_ii=`echo $ac_i|cut -c 3-`
66456:
66457:
66458: case $ac_ii in
66459: c|c_r|pthread*) ;;
66460: *)
66461: if test "$ext_shared" = "yes"; then
66462: OCI8_SYSLIB="$OCI8_SYSLIB -l$ac_ii"
66463: else
66464:
66465:
66466: case $ac_ii in
66467: c|c_r|pthread*) ;;
66468: *)
66469: LIBS="$LIBS -l$ac_ii"
66470: ;;
66471: esac
66472:
66473:
66474: fi
66475: ;;
66476: esac
66477:
66478:
66479: ;;
66480: -L*)
66481: ac_ii=`echo $ac_i|cut -c 3-`
66482:
66483: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
66484:
66485: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
66486: ai_p=$ac_ii
66487: else
66488:
66489: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
66490:
66491: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
66492: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
66493: fi
66494:
66495:
66496: if test "$ext_shared" = "yes"; then
66497: OCI8_SYSLIB="-L$ai_p $OCI8_SYSLIB"
66498: test -n "$ld_runpath_switch" && OCI8_SYSLIB="$ld_runpath_switch$ai_p $OCI8_SYSLIB"
66499: else
66500:
66501:
66502:
66503: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
66504:
66505: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
66506: if test -n "$unique" && test "`eval $cmd`" = "" ; then
66507: eval "LIBPATH$unique=set"
66508:
66509: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
66510: LDFLAGS="$LDFLAGS -L$ai_p"
66511: PHP_RPATHS="$PHP_RPATHS $ai_p"
66512:
66513: fi
66514:
66515:
66516: fi
66517:
66518: fi
66519:
66520: ;;
66521: esac
66522: done
66523:
66524: fi
66525:
66526:
66527: { $as_echo "$as_me:${as_lineno-$LINENO}: checking Oracle Instant Client library version compatibility" >&5
66528: $as_echo_n "checking Oracle Instant Client library version compatibility... " >&6; }
66529: OCI8_LCS_BASE=$PHP_OCI8_INSTANT_CLIENT/libclntsh.$SHLIB_SUFFIX_NAME
66530: OCI8_LCS=`ls $OCI8_LCS_BASE.*.1 2> /dev/null | tail -1` # Oracle 10g, 11g etc
66531: OCI8_NNZ=`ls $PHP_OCI8_INSTANT_CLIENT/libnnz*.$SHLIB_SUFFIX_NAME 2> /dev/null | tail -1`
66532: if test -f "$OCI8_NNZ" && test -f "$OCI8_LCS"; then
66533: if test ! -f "$OCI8_LCS_BASE"; then
66534: as_fn_error $? "Link from $OCI8_LCS_BASE to $OCI8_LCS_BASE.*.1 not found" "$LINENO" 5
66535: fi
66536: OCI8_ORACLE_VERSION=`echo $OCI8_LCS | $PHP_OCI8_SED -e 's/.*\.\(.*\)\.1$/\1.1/'`
66537: else
66538: as_fn_error $? "Oracle Instant Client libraries libnnz.$SHLIB_SUFFIX_NAME and libclntsh.$SHLIB_SUFFIX_NAME not found" "$LINENO" 5
66539: fi
66540: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCI8_ORACLE_VERSION" >&5
66541: $as_echo "$OCI8_ORACLE_VERSION" >&6; }
66542:
66543:
66544:
66545: case clntsh in
66546: c|c_r|pthread*) ;;
66547: *)
66548: if test "$ext_shared" = "yes"; then
66549: OCI8_SHARED_LIBADD="$OCI8_SHARED_LIBADD -lclntsh"
66550: else
66551:
66552:
66553: case clntsh in
66554: c|c_r|pthread*) ;;
66555: *)
66556: LIBS="$LIBS -lclntsh"
66557: ;;
66558: esac
66559:
66560:
66561: fi
66562: ;;
66563: esac
66564:
66565:
66566:
66567: if test "$PHP_OCI8_INSTANT_CLIENT" != "/usr/$PHP_LIBDIR" && test "$PHP_OCI8_INSTANT_CLIENT" != "/usr/lib"; then
66568:
66569: if test -z "$PHP_OCI8_INSTANT_CLIENT" || echo "$PHP_OCI8_INSTANT_CLIENT" | grep '^/' >/dev/null ; then
66570: ai_p=$PHP_OCI8_INSTANT_CLIENT
66571: else
66572:
66573: ep_dir="`echo $PHP_OCI8_INSTANT_CLIENT|$SED 's%/*[^/][^/]*/*$%%'`"
66574:
66575: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
66576: ai_p="$ep_realdir/`basename \"$PHP_OCI8_INSTANT_CLIENT\"`"
66577: fi
66578:
66579:
66580: if test "$ext_shared" = "yes"; then
66581: OCI8_SHARED_LIBADD="-L$ai_p $OCI8_SHARED_LIBADD"
66582: test -n "$ld_runpath_switch" && OCI8_SHARED_LIBADD="$ld_runpath_switch$ai_p $OCI8_SHARED_LIBADD"
66583: else
66584:
66585:
66586:
66587: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
66588:
66589: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
66590: if test -n "$unique" && test "`eval $cmd`" = "" ; then
66591: eval "LIBPATH$unique=set"
66592:
66593: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
66594: LDFLAGS="$LDFLAGS -L$ai_p"
66595: PHP_RPATHS="$PHP_RPATHS $ai_p"
66596:
66597: fi
66598:
66599:
66600: fi
66601:
66602: fi
66603:
66604:
66605:
66606: $as_echo "#define HAVE_OCI_INSTANT_CLIENT 1" >>confdefs.h
66607:
66608:
66609: $as_echo "#define HAVE_OCI_LOB_READ2 1" >>confdefs.h
66610:
66611:
66612:
66613: ext_builddir=ext/oci8
66614: ext_srcdir=$abs_srcdir/ext/oci8
66615:
66616: ac_extra=
66617:
66618: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
66619: PHP_OCI8_SHARED=no
66620:
66621:
66622: case ext/oci8 in
66623: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
66624: /*) ac_srcdir=`echo "ext/oci8"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
66625: *) ac_srcdir="$abs_srcdir/ext/oci8/"; ac_bdir="ext/oci8/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
66626: esac
66627:
66628:
66629:
66630: b_c_pre=$php_c_pre
66631: b_cxx_pre=$php_cxx_pre
66632: b_c_meta=$php_c_meta
66633: b_cxx_meta=$php_cxx_meta
66634: b_c_post=$php_c_post
66635: b_cxx_post=$php_cxx_post
66636: b_lo=$php_lo
66637:
66638:
66639: old_IFS=$IFS
66640: for ac_src in oci8.c oci8_lob.c oci8_statement.c oci8_collection.c oci8_interface.c; do
66641:
66642: IFS=.
66643: set $ac_src
66644: ac_obj=$1
66645: IFS=$old_IFS
66646:
66647: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
66648:
66649: case $ac_src in
66650: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
66651: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
66652: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
66653: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
66654: esac
66655:
66656: cat >>Makefile.objects<<EOF
66657: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
66658: $ac_comp
66659: EOF
66660: done
66661:
66662:
66663: EXT_STATIC="$EXT_STATIC oci8"
66664: if test "$ext_shared" != "nocli"; then
66665: EXT_CLI_STATIC="$EXT_CLI_STATIC oci8"
66666: fi
66667: else
66668: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
66669: PHP_OCI8_SHARED=yes
66670:
66671: case ext/oci8 in
66672: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
66673: /*) ac_srcdir=`echo "ext/oci8"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
66674: *) ac_srcdir="$abs_srcdir/ext/oci8/"; ac_bdir="ext/oci8/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
66675: esac
66676:
66677:
66678:
66679: b_c_pre=$shared_c_pre
66680: b_cxx_pre=$shared_cxx_pre
66681: b_c_meta=$shared_c_meta
66682: b_cxx_meta=$shared_cxx_meta
66683: b_c_post=$shared_c_post
66684: b_cxx_post=$shared_cxx_post
66685: b_lo=$shared_lo
66686:
66687:
66688: old_IFS=$IFS
66689: for ac_src in oci8.c oci8_lob.c oci8_statement.c oci8_collection.c oci8_interface.c; do
66690:
66691: IFS=.
66692: set $ac_src
66693: ac_obj=$1
66694: IFS=$old_IFS
66695:
66696: shared_objects_oci8="$shared_objects_oci8 $ac_bdir$ac_obj.lo"
66697:
66698: case $ac_src in
66699: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
66700: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
66701: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
66702: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
66703: esac
66704:
66705: cat >>Makefile.objects<<EOF
66706: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
66707: $ac_comp
66708: EOF
66709: done
66710:
66711: case $host_alias in
66712: *netware*)
66713:
66714: install_modules="install-modules"
66715:
66716: case $host_alias in
66717: *aix*)
66718: suffix=so
66719: 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'
66720: ;;
66721: *netware*)
66722: suffix=nlm
66723: link_cmd='$(LIBTOOL) --mode=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)'
66724: ;;
66725: *)
66726: suffix=la
66727: link_cmd='$(LIBTOOL) --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)'
66728: ;;
66729: esac
66730:
66731: if test "x" = "xyes"; then
66732: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpoci8.$suffix"
66733: else
66734: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpoci8.$suffix"
66735: fi
66736:
66737: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_oci8"
66738:
66739: cat >>Makefile.objects<<EOF
66740: \$(phplibdir)/phpoci8.$suffix: $ext_builddir/phpoci8.$suffix
66741: \$(LIBTOOL) --mode=install cp $ext_builddir/phpoci8.$suffix \$(phplibdir)
66742:
66743: $ext_builddir/phpoci8.$suffix: \$(shared_objects_oci8) \$(PHPOCI8_SHARED_DEPENDENCIES)
66744: $link_cmd
66745:
66746: EOF
66747:
66748: ;;
66749: *)
66750:
66751: install_modules="install-modules"
66752:
66753: case $host_alias in
66754: *aix*)
66755: suffix=so
66756: 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'
66757: ;;
66758: *netware*)
66759: suffix=nlm
66760: link_cmd='$(LIBTOOL) --mode=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)'
66761: ;;
66762: *)
66763: suffix=la
66764: link_cmd='$(LIBTOOL) --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)'
66765: ;;
66766: esac
66767:
66768: if test "x" = "xyes"; then
66769: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/oci8.$suffix"
66770: else
66771: PHP_MODULES="$PHP_MODULES \$(phplibdir)/oci8.$suffix"
66772: fi
66773:
66774: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_oci8"
66775:
66776: cat >>Makefile.objects<<EOF
66777: \$(phplibdir)/oci8.$suffix: $ext_builddir/oci8.$suffix
66778: \$(LIBTOOL) --mode=install cp $ext_builddir/oci8.$suffix \$(phplibdir)
66779:
66780: $ext_builddir/oci8.$suffix: \$(shared_objects_oci8) \$(OCI8_SHARED_DEPENDENCIES)
66781: $link_cmd
66782:
66783: EOF
66784:
66785: ;;
66786: esac
66787:
66788: cat >>confdefs.h <<_ACEOF
66789: #define COMPILE_DL_OCI8 1
66790: _ACEOF
66791:
66792: fi
66793: fi
66794:
66795: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
66796: PHP_OCI8_SHARED=no
66797:
66798:
66799: case ext/oci8 in
66800: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
66801: /*) ac_srcdir=`echo "ext/oci8"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
66802: *) ac_srcdir="$abs_srcdir/ext/oci8/"; ac_bdir="ext/oci8/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
66803: esac
66804:
66805:
66806:
66807: b_c_pre=$php_c_pre
66808: b_cxx_pre=$php_cxx_pre
66809: b_c_meta=$php_c_meta
66810: b_cxx_meta=$php_cxx_meta
66811: b_c_post=$php_c_post
66812: b_cxx_post=$php_cxx_post
66813: b_lo=$php_lo
66814:
66815:
66816: old_IFS=$IFS
66817: for ac_src in oci8.c oci8_lob.c oci8_statement.c oci8_collection.c oci8_interface.c; do
66818:
66819: IFS=.
66820: set $ac_src
66821: ac_obj=$1
66822: IFS=$old_IFS
66823:
66824: PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
66825:
66826: case $ac_src in
66827: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
66828: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
66829: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
66830: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
66831: esac
66832:
66833: cat >>Makefile.objects<<EOF
66834: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
66835: $ac_comp
66836: EOF
66837: done
66838:
66839:
66840:
66841:
66842: case ext/oci8 in
66843: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
66844: /*) ac_srcdir=`echo "ext/oci8"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
66845: *) ac_srcdir="$abs_srcdir/ext/oci8/"; ac_bdir="ext/oci8/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
66846: esac
66847:
66848:
66849:
66850: b_c_pre=$php_c_pre
66851: b_cxx_pre=$php_cxx_pre
66852: b_c_meta=$php_c_meta
66853: b_cxx_meta=$php_cxx_meta
66854: b_c_post=$php_c_post
66855: b_cxx_post=$php_cxx_post
66856: b_lo=$php_lo
66857:
66858:
66859: old_IFS=$IFS
66860: for ac_src in oci8.c oci8_lob.c oci8_statement.c oci8_collection.c oci8_interface.c; do
66861:
66862: IFS=.
66863: set $ac_src
66864: ac_obj=$1
66865: IFS=$old_IFS
66866:
66867: PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo"
66868:
66869: case $ac_src in
66870: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
66871: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
66872: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
66873: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
66874: esac
66875:
66876: cat >>Makefile.objects<<EOF
66877: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
66878: $ac_comp
66879: EOF
66880: done
66881:
66882:
66883:
66884:
66885: case ext/oci8 in
66886: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
66887: /*) ac_srcdir=`echo "ext/oci8"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
66888: *) ac_srcdir="$abs_srcdir/ext/oci8/"; ac_bdir="ext/oci8/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
66889: esac
66890:
66891:
66892:
66893: b_c_pre=$php_c_pre
66894: b_cxx_pre=$php_cxx_pre
66895: b_c_meta=$php_c_meta
66896: b_cxx_meta=$php_cxx_meta
66897: b_c_post=$php_c_post
66898: b_cxx_post=$php_cxx_post
66899: b_lo=$php_lo
66900:
66901:
66902: old_IFS=$IFS
66903: for ac_src in oci8.c oci8_lob.c oci8_statement.c oci8_collection.c oci8_interface.c; do
66904:
66905: IFS=.
66906: set $ac_src
66907: ac_obj=$1
66908: IFS=$old_IFS
66909:
66910: PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo"
66911:
66912: case $ac_src in
66913: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
66914: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
66915: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
66916: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
66917: esac
66918:
66919: cat >>Makefile.objects<<EOF
66920: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
66921: $ac_comp
66922: EOF
66923: done
66924:
66925:
66926: EXT_CLI_STATIC="$EXT_CLI_STATIC oci8"
66927: fi
66928:
66929:
66930: BUILD_DIR="$BUILD_DIR $ext_builddir"
66931:
66932:
66933:
66934: if test "$ext_builddir" = "."; then
66935: PHP_PECL_EXTENSION=oci8
66936:
66937: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
66938:
66939: fi
66940:
66941:
66942: $as_echo "#define HAVE_OCI8 1" >>confdefs.h
66943:
66944:
66945:
66946:
66947: PHP_VAR_SUBST="$PHP_VAR_SUBST OCI8_SHARED_LIBADD"
66948:
66949:
66950:
66951:
66952:
66953: PHP_VAR_SUBST="$PHP_VAR_SUBST OCI8_DIR"
66954:
66955:
66956:
66957:
66958:
66959: PHP_VAR_SUBST="$PHP_VAR_SUBST OCI8_ORACLE_VERSION"
66960:
66961:
66962:
66963:
66964: fi
66965: fi
66966:
66967:
66968:
66969:
66970:
66971:
66972:
66973:
66974:
66975:
66976:
66977:
66978: if test -z "$ODBC_TYPE"; then
66979:
66980: php_with_adabas=no
66981:
66982:
66983:
66984: # Check whether --with-adabas was given.
66985: if test "${with_adabas+set}" = set; then :
66986: withval=$with_adabas; PHP_ADABAS=$withval
66987: else
66988:
66989: PHP_ADABAS=no
66990: test "$PHP_ENABLE_ALL" && PHP_ADABAS=$PHP_ENABLE_ALL
66991:
66992: fi
66993:
66994:
66995:
66996: ext_output="yes, shared"
66997: ext_shared=yes
66998: case $PHP_ADABAS in
66999: shared,*)
67000: PHP_ADABAS=`echo "$PHP_ADABAS"|$SED 's/^shared,//'`
67001: ;;
67002: shared)
67003: PHP_ADABAS=yes
67004: ;;
67005: no)
67006: ext_output=no
67007: ext_shared=no
67008: ;;
67009: *)
67010: ext_output=yes
67011: ext_shared=no
67012: ;;
67013: esac
67014:
67015:
67016:
67017:
67018:
67019:
67020:
67021:
67022: if test "$PHP_ADABAS" != "no"; then
67023: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Adabas support" >&5
67024: $as_echo_n "checking for Adabas support... " >&6; }
67025: if test "$PHP_ADABAS" = "yes"; then
67026: PHP_ADABAS=/usr/local
67027: fi
67028:
67029: if test "$PHP_ADABAS/incl" != "/usr/include"; then
67030:
67031: if test -z "$PHP_ADABAS/incl" || echo "$PHP_ADABAS/incl" | grep '^/' >/dev/null ; then
67032: ai_p=$PHP_ADABAS/incl
67033: else
67034:
67035: ep_dir="`echo $PHP_ADABAS/incl|$SED 's%/*[^/][^/]*/*$%%'`"
67036:
67037: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
67038: ai_p="$ep_realdir/`basename \"$PHP_ADABAS/incl\"`"
67039: fi
67040:
67041:
67042:
67043: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
67044:
67045: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
67046: if test -n "$unique" && test "`eval $cmd`" = "" ; then
67047: eval "INCLUDEPATH$unique=set"
67048:
67049: if test ""; then
67050: INCLUDES="-I$ai_p $INCLUDES"
67051: else
67052: INCLUDES="$INCLUDES -I$ai_p"
67053: fi
67054:
67055: fi
67056:
67057: fi
67058:
67059:
67060: if test "$PHP_ADABAS/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ADABAS/$PHP_LIBDIR" != "/usr/lib"; then
67061:
67062: if test -z "$PHP_ADABAS/$PHP_LIBDIR" || echo "$PHP_ADABAS/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
67063: ai_p=$PHP_ADABAS/$PHP_LIBDIR
67064: else
67065:
67066: ep_dir="`echo $PHP_ADABAS/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
67067:
67068: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
67069: ai_p="$ep_realdir/`basename \"$PHP_ADABAS/$PHP_LIBDIR\"`"
67070: fi
67071:
67072:
67073:
67074:
67075:
67076: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
67077:
67078: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
67079: if test -n "$unique" && test "`eval $cmd`" = "" ; then
67080: eval "LIBPATH$unique=set"
67081:
67082: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
67083: LDFLAGS="$LDFLAGS -L$ai_p"
67084: PHP_RPATHS="$PHP_RPATHS $ai_p"
67085:
67086: fi
67087:
67088:
67089:
67090: fi
67091:
67092: ODBC_OBJS="$PHP_ADABAS/$PHP_LIBDIR/odbclib.a"
67093: ODBC_LIB="$abs_builddir/ext/odbc/libodbc_adabas.a"
67094: $srcdir/build/shtool mkdir -f -p ext/odbc
67095: rm -f "$ODBC_LIB"
67096: cp "$ODBC_OBJS" "$ODBC_LIB"
67097:
67098:
67099: case sqlptc in
67100: c|c_r|pthread*) ;;
67101: *)
67102: LIBS="-lsqlptc $LIBS"
67103: ;;
67104: esac
67105:
67106:
67107:
67108:
67109: case sqlrte in
67110: c|c_r|pthread*) ;;
67111: *)
67112: LIBS="-lsqlrte $LIBS"
67113: ;;
67114: esac
67115:
67116:
67117:
67118:
67119: if test -n "$abs_builddir/ext/odbc"; then
67120:
67121: if test "$abs_builddir/ext/odbc" != "/usr/$PHP_LIBDIR" && test "$abs_builddir/ext/odbc" != "/usr/lib"; then
67122:
67123: if test -z "$abs_builddir/ext/odbc" || echo "$abs_builddir/ext/odbc" | grep '^/' >/dev/null ; then
67124: ai_p=$abs_builddir/ext/odbc
67125: else
67126:
67127: ep_dir="`echo $abs_builddir/ext/odbc|$SED 's%/*[^/][^/]*/*$%%'`"
67128:
67129: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
67130: ai_p="$ep_realdir/`basename \"$abs_builddir/ext/odbc\"`"
67131: fi
67132:
67133:
67134:
67135:
67136:
67137: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
67138:
67139: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
67140: if test -n "$unique" && test "`eval $cmd`" = "" ; then
67141: eval "LIBPATH$unique=set"
67142:
67143: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
67144: LDFLAGS="$LDFLAGS -L$ai_p"
67145: PHP_RPATHS="$PHP_RPATHS $ai_p"
67146:
67147: fi
67148:
67149:
67150:
67151: fi
67152:
67153: fi
67154:
67155:
67156: case odbc_adabas in
67157: c|c_r|pthread*) ;;
67158: *)
67159: LIBS="-lodbc_adabas $LIBS"
67160: ;;
67161: esac
67162:
67163:
67164:
67165:
67166: ODBC_TYPE=adabas
67167: ODBC_INCDIR=$PHP_ADABAS/incl
67168:
67169: if ! test -f "$ODBC_INCDIR/sqlext.h"; then
67170: as_fn_error $? "ODBC header file '$ODBC_INCDIR/sqlext.h' not found!" "$LINENO" 5
67171: fi
67172:
67173:
67174: $as_echo "#define HAVE_ADABAS 1" >>confdefs.h
67175:
67176: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
67177: $as_echo "$ext_output" >&6; }
67178: fi
67179: fi
67180:
67181: if test -z "$ODBC_TYPE"; then
67182:
67183: php_with_sapdb=no
67184:
67185:
67186:
67187: # Check whether --with-sapdb was given.
67188: if test "${with_sapdb+set}" = set; then :
67189: withval=$with_sapdb; PHP_SAPDB=$withval
67190: else
67191:
67192: PHP_SAPDB=no
67193: test "$PHP_ENABLE_ALL" && PHP_SAPDB=$PHP_ENABLE_ALL
67194:
67195: fi
67196:
67197:
67198:
67199: ext_output="yes, shared"
67200: ext_shared=yes
67201: case $PHP_SAPDB in
67202: shared,*)
67203: PHP_SAPDB=`echo "$PHP_SAPDB"|$SED 's/^shared,//'`
67204: ;;
67205: shared)
67206: PHP_SAPDB=yes
67207: ;;
67208: no)
67209: ext_output=no
67210: ext_shared=no
67211: ;;
67212: *)
67213: ext_output=yes
67214: ext_shared=no
67215: ;;
67216: esac
67217:
67218:
67219:
67220:
67221:
67222:
67223:
67224:
67225: if test "$PHP_SAPDB" != "no"; then
67226: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SAP DB support" >&5
67227: $as_echo_n "checking for SAP DB support... " >&6; }
67228: if test "$PHP_SAPDB" = "yes"; then
67229: PHP_SAPDB=/usr/local
67230: fi
67231:
67232: if test "$PHP_SAPDB/incl" != "/usr/include"; then
67233:
67234: if test -z "$PHP_SAPDB/incl" || echo "$PHP_SAPDB/incl" | grep '^/' >/dev/null ; then
67235: ai_p=$PHP_SAPDB/incl
67236: else
67237:
67238: ep_dir="`echo $PHP_SAPDB/incl|$SED 's%/*[^/][^/]*/*$%%'`"
67239:
67240: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
67241: ai_p="$ep_realdir/`basename \"$PHP_SAPDB/incl\"`"
67242: fi
67243:
67244:
67245:
67246: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
67247:
67248: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
67249: if test -n "$unique" && test "`eval $cmd`" = "" ; then
67250: eval "INCLUDEPATH$unique=set"
67251:
67252: if test ""; then
67253: INCLUDES="-I$ai_p $INCLUDES"
67254: else
67255: INCLUDES="$INCLUDES -I$ai_p"
67256: fi
67257:
67258: fi
67259:
67260: fi
67261:
67262:
67263: if test "$PHP_SAPDB/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_SAPDB/$PHP_LIBDIR" != "/usr/lib"; then
67264:
67265: if test -z "$PHP_SAPDB/$PHP_LIBDIR" || echo "$PHP_SAPDB/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
67266: ai_p=$PHP_SAPDB/$PHP_LIBDIR
67267: else
67268:
67269: ep_dir="`echo $PHP_SAPDB/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
67270:
67271: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
67272: ai_p="$ep_realdir/`basename \"$PHP_SAPDB/$PHP_LIBDIR\"`"
67273: fi
67274:
67275:
67276:
67277:
67278:
67279: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
67280:
67281: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
67282: if test -n "$unique" && test "`eval $cmd`" = "" ; then
67283: eval "LIBPATH$unique=set"
67284:
67285: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
67286: LDFLAGS="$LDFLAGS -L$ai_p"
67287: PHP_RPATHS="$PHP_RPATHS $ai_p"
67288:
67289: fi
67290:
67291:
67292:
67293: fi
67294:
67295:
67296:
67297: case sqlod in
67298: c|c_r|pthread*) ;;
67299: *)
67300: LIBS="-lsqlod $LIBS"
67301: ;;
67302: esac
67303:
67304:
67305: ODBC_TYPE=sapdb
67306:
67307: $as_echo "#define HAVE_SAPDB 1" >>confdefs.h
67308:
67309: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
67310: $as_echo "$ext_output" >&6; }
67311: fi
67312: fi
67313:
67314: if test -z "$ODBC_TYPE"; then
67315:
67316: php_with_solid=no
67317:
67318:
67319:
67320: # Check whether --with-solid was given.
67321: if test "${with_solid+set}" = set; then :
67322: withval=$with_solid; PHP_SOLID=$withval
67323: else
67324:
67325: PHP_SOLID=no
67326: test "$PHP_ENABLE_ALL" && PHP_SOLID=$PHP_ENABLE_ALL
67327:
67328: fi
67329:
67330:
67331:
67332: ext_output="yes, shared"
67333: ext_shared=yes
67334: case $PHP_SOLID in
67335: shared,*)
67336: PHP_SOLID=`echo "$PHP_SOLID"|$SED 's/^shared,//'`
67337: ;;
67338: shared)
67339: PHP_SOLID=yes
67340: ;;
67341: no)
67342: ext_output=no
67343: ext_shared=no
67344: ;;
67345: *)
67346: ext_output=yes
67347: ext_shared=no
67348: ;;
67349: esac
67350:
67351:
67352:
67353:
67354:
67355:
67356:
67357:
67358: if test "$PHP_SOLID" != "no"; then
67359: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solid support" >&5
67360: $as_echo_n "checking for Solid support... " >&6; }
67361: if test "$PHP_SOLID" = "yes"; then
67362: PHP_SOLID=/usr/local/solid
67363: fi
67364: ODBC_INCDIR=$PHP_SOLID/include
67365: ODBC_LIBDIR=$PHP_SOLID/$PHP_LIBDIR
67366: ODBC_INCLUDE=-I$ODBC_INCDIR
67367: ODBC_TYPE=solid
67368: if test -f $ODBC_LIBDIR/soc*35.a; then
67369:
67370: $as_echo "#define HAVE_SOLID_35 1" >>confdefs.h
67371:
67372: elif test -f $ODBC_LIBDIR/scl*30.a; then
67373:
67374: $as_echo "#define HAVE_SOLID_30 1" >>confdefs.h
67375:
67376: elif test -f $ODBC_LIBDIR/scl*23.a; then
67377:
67378: $as_echo "#define HAVE_SOLID 1" >>confdefs.h
67379:
67380: fi
67381: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
67382: $as_echo "$ext_output" >&6; }
67383:
67384: { $as_echo "$as_me:${as_lineno-$LINENO}: checking Solid library file" >&5
67385: $as_echo_n "checking Solid library file... " >&6; }
67386: ac_solid_uname_r=`uname -r 2>/dev/null`
67387: ac_solid_uname_s=`uname -s 2>/dev/null`
67388: case $ac_solid_uname_s in
67389: AIX) ac_solid_os=a3x;; # a4x for AIX4/ Solid 2.3/3.0 only
67390: HP-UX) ac_solid_os=h9x;; # h1x for hpux11, h0x for hpux10
67391: IRIX) ac_solid_os=irx;; # Solid 2.3(?)/ 3.0 only
67392: Linux)
67393: if ldd -v /bin/sh | grep GLIBC > /dev/null; then
67394:
67395: $as_echo "#define SS_LINUX 1" >>confdefs.h
67396:
67397: ac_solid_os=l2x
67398: else
67399:
67400: $as_echo "#define SS_LINUX 1" >>confdefs.h
67401:
67402: ac_solid_os=lux
67403: fi;;
67404: SunOS)
67405: ac_solid_os=ssx;; # should we deal with SunOS 4?
67406: FreeBSD)
67407: if test `expr $ac_solid_uname_r : '\(.\)'` -gt "2"; then
67408:
67409: $as_echo "#define SS_FBX 1" >>confdefs.h
67410:
67411: ac_solid_os=fex
67412: else
67413:
67414: $as_echo "#define SS_FBX 1" >>confdefs.h
67415:
67416: ac_solid_os=fbx
67417: fi;;
67418: esac
67419:
67420: if test -f $ODBC_LIBDIR/soc${ac_solid_os}35.a; then
67421: ac_solid_version=35
67422: ac_solid_prefix=soc
67423: elif test -f $ODBC_LIBDIR/scl${ac_solid_os}30.a; then
67424: ac_solid_version=30
67425: ac_solid_prefix=scl
67426: elif test -f $ODBC_LIBDIR/scl${ac_solid_os}23.a; then
67427: ac_solid_version=23
67428: ac_solid_prefix=scl
67429: fi
67430:
67431: #
67432: # Check for the library files, and setup the ODBC_LIBS path...
67433: #
67434: if test ! -f $ODBC_LIBDIR/lib${ac_solid_prefix}${ac_solid_os}${ac_solid_version}.so -a \
67435: ! -f $ODBC_LIBDIR/lib${ac_solid_prefix}${ac_solid_os}${ac_solid_version}.a; then
67436: #
67437: # we have an error and should bail out, as we can't find the libs!
67438: #
67439: echo ""
67440: echo "*********************************************************************"
67441: 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"
67442: echo "* Please correct this by creating the following links and reconfiguring:"
67443: 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"
67444: 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"
67445: echo "*********************************************************************"
67446: else
67447: ODBC_LFLAGS=-L$ODBC_LIBDIR
67448: ODBC_LIBS=-l${ac_solid_prefix}${ac_solid_os}${ac_solid_version}
67449: fi
67450:
67451: { $as_echo "$as_me:${as_lineno-$LINENO}: result: \`echo $ODBC_LIBS | sed -e 's!.*/!!'\`" >&5
67452: $as_echo "\`echo $ODBC_LIBS | sed -e 's!.*/!!'\`" >&6; }
67453:
67454: fi
67455: fi
67456:
67457: if test -z "$ODBC_TYPE"; then
67458:
67459: php_with_ibm_db2=no
67460:
67461:
67462:
67463: # Check whether --with-ibm-db2 was given.
67464: if test "${with_ibm_db2+set}" = set; then :
67465: withval=$with_ibm_db2; PHP_IBM_DB2=$withval
67466: else
67467:
67468: PHP_IBM_DB2=no
67469: test "$PHP_ENABLE_ALL" && PHP_IBM_DB2=$PHP_ENABLE_ALL
67470:
67471: fi
67472:
67473:
67474:
67475: ext_output="yes, shared"
67476: ext_shared=yes
67477: case $PHP_IBM_DB2 in
67478: shared,*)
67479: PHP_IBM_DB2=`echo "$PHP_IBM_DB2"|$SED 's/^shared,//'`
67480: ;;
67481: shared)
67482: PHP_IBM_DB2=yes
67483: ;;
67484: no)
67485: ext_output=no
67486: ext_shared=no
67487: ;;
67488: *)
67489: ext_output=yes
67490: ext_shared=no
67491: ;;
67492: esac
67493:
67494:
67495:
67496:
67497:
67498:
67499:
67500:
67501: if test "$PHP_IBM_DB2" != "no"; then
67502: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IBM DB2 support" >&5
67503: $as_echo_n "checking for IBM DB2 support... " >&6; }
67504: if test "$PHP_IBM_DB2" = "yes"; then
67505: ODBC_INCDIR=/home/db2inst1/sqllib/include
67506: ODBC_LIBDIR=/home/db2inst1/sqllib/lib
67507: else
67508: ODBC_INCDIR=$PHP_IBM_DB2/include
67509: ODBC_LIBDIR=$PHP_IBM_DB2/$PHP_LIBDIR
67510: fi
67511:
67512:
67513: if ! test -f "$ODBC_INCDIR/sqlcli1.h"; then
67514: as_fn_error $? "ODBC header file '$ODBC_INCDIR/sqlcli1.h' not found!" "$LINENO" 5
67515: fi
67516:
67517:
67518: ODBC_INCLUDE=-I$ODBC_INCDIR
67519: ODBC_LFLAGS=-L$ODBC_LIBDIR
67520: ODBC_TYPE=ibm-db2
67521: ODBC_LIBS=-ldb2
67522:
67523:
67524: old_LIBS=$LIBS
67525: LIBS="
67526: $ODBC_LFLAGS $ODBC_LIBS
67527: $LIBS"
67528: if test "$cross_compiling" = yes; then :
67529:
67530: LIBS=$old_LIBS
67531:
67532: else
67533: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
67534: /* end confdefs.h. */
67535:
67536:
67537: char SQLExecute();
67538: int main() {
67539: SQLExecute();
67540: return 0;
67541: }
67542:
67543: _ACEOF
67544: if ac_fn_c_try_run "$LINENO"; then :
67545:
67546: LIBS=$old_LIBS
67547:
67548:
67549: $as_echo "#define HAVE_IBMDB2 1" >>confdefs.h
67550:
67551: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
67552: $as_echo "$ext_output" >&6; }
67553:
67554:
67555: else
67556:
67557: LIBS=$old_LIBS
67558:
67559: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
67560: $as_echo "no" >&6; }
67561: as_fn_error $? "
67562: build test failed. Please check the config.log for details.
67563: You need to source your DB2 environment before running PHP configure:
67564: # . \$IBM_DB2/db2profile
67565: " "$LINENO" 5
67566:
67567:
67568: fi
67569: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
67570: conftest.$ac_objext conftest.beam conftest.$ac_ext
67571: fi
67572:
67573:
67574: fi
67575: fi
67576:
67577: if test -z "$ODBC_TYPE"; then
67578:
67579: php_with_odbcrouter=no
67580:
67581:
67582:
67583: # Check whether --with-ODBCRouter was given.
67584: if test "${with_ODBCRouter+set}" = set; then :
67585: withval=$with_ODBCRouter; PHP_ODBCROUTER=$withval
67586: else
67587:
67588: PHP_ODBCROUTER=no
67589: test "$PHP_ENABLE_ALL" && PHP_ODBCROUTER=$PHP_ENABLE_ALL
67590:
67591: fi
67592:
67593:
67594:
67595: ext_output="yes, shared"
67596: ext_shared=yes
67597: case $PHP_ODBCROUTER in
67598: shared,*)
67599: PHP_ODBCROUTER=`echo "$PHP_ODBCROUTER"|$SED 's/^shared,//'`
67600: ;;
67601: shared)
67602: PHP_ODBCROUTER=yes
67603: ;;
67604: no)
67605: ext_output=no
67606: ext_shared=no
67607: ;;
67608: *)
67609: ext_output=yes
67610: ext_shared=no
67611: ;;
67612: esac
67613:
67614:
67615:
67616:
67617:
67618:
67619:
67620:
67621: if test "$PHP_ODBCROUTER" != "no"; then
67622: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ODBCRouter.com support" >&5
67623: $as_echo_n "checking for ODBCRouter.com support... " >&6; }
67624: if test "$PHP_ODBCROUTER" = "yes"; then
67625: PHP_ODBCROUTER=/usr
67626: fi
67627: ODBC_INCDIR=$PHP_ODBCROUTER/include
67628: ODBC_LIBDIR=$PHP_ODBCROUTER/lib
67629: ODBC_LFLAGS=-L$ODBC_LIBDIR
67630: ODBC_INCLUDE=-I$ODBC_INCDIR
67631: ODBC_LIBS=-lodbcsdk
67632: ODBC_TYPE=ODBCRouter
67633:
67634: $as_echo "#define HAVE_ODBC_ROUTER 1" >>confdefs.h
67635:
67636: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
67637: $as_echo "$ext_output" >&6; }
67638: fi
67639: fi
67640:
67641: if test -z "$ODBC_TYPE"; then
67642:
67643: php_with_empress=no
67644:
67645:
67646:
67647: # Check whether --with-empress was given.
67648: if test "${with_empress+set}" = set; then :
67649: withval=$with_empress; PHP_EMPRESS=$withval
67650: else
67651:
67652: PHP_EMPRESS=no
67653: test "$PHP_ENABLE_ALL" && PHP_EMPRESS=$PHP_ENABLE_ALL
67654:
67655: fi
67656:
67657:
67658:
67659: ext_output="yes, shared"
67660: ext_shared=yes
67661: case $PHP_EMPRESS in
67662: shared,*)
67663: PHP_EMPRESS=`echo "$PHP_EMPRESS"|$SED 's/^shared,//'`
67664: ;;
67665: shared)
67666: PHP_EMPRESS=yes
67667: ;;
67668: no)
67669: ext_output=no
67670: ext_shared=no
67671: ;;
67672: *)
67673: ext_output=yes
67674: ext_shared=no
67675: ;;
67676: esac
67677:
67678:
67679:
67680:
67681:
67682:
67683:
67684:
67685: if test "$PHP_EMPRESS" != "no"; then
67686: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Empress support" >&5
67687: $as_echo_n "checking for Empress support... " >&6; }
67688: if test "$PHP_EMPRESS" = "yes"; then
67689: ODBC_INCDIR=$EMPRESSPATH/include/odbc
67690: ODBC_LIBDIR=$EMPRESSPATH/shlib
67691: else
67692: ODBC_INCDIR=$PHP_EMPRESS/include/odbc
67693: ODBC_LIBDIR=$PHP_EMPRESS/shlib
67694: fi
67695: ODBC_INCLUDE=-I$ODBC_INCDIR
67696: ODBC_LFLAGS=-L$ODBC_LIBDIR
67697: ODBC_TYPE=empress
67698:
67699: $as_echo "#define HAVE_EMPRESS 1" >>confdefs.h
67700:
67701: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
67702: $as_echo "$ext_output" >&6; }
67703:
67704: { $as_echo "$as_me:${as_lineno-$LINENO}: checking Empress library file" >&5
67705: $as_echo_n "checking Empress library file... " >&6; }
67706: ODBC_LIBS=`echo $ODBC_LIBDIR/libempodbccl.so | cut -d' ' -f1`
67707: if test ! -f $ODBC_LIBS; then
67708: ODBC_LIBS=`echo $ODBC_LIBDIR/libempodbccl.so | cut -d' ' -f1`
67709: fi
67710: { $as_echo "$as_me:${as_lineno-$LINENO}: result: \`echo $ODBC_LIBS | sed -e 's!.*/!!'\`" >&5
67711: $as_echo "\`echo $ODBC_LIBS | sed -e 's!.*/!!'\`" >&6; }
67712:
67713: fi
67714: fi
67715:
67716: if test -z "$ODBC_TYPE"; then
67717:
67718: php_with_empress_bcs=no
67719:
67720:
67721:
67722: # Check whether --with-empress-bcs was given.
67723: if test "${with_empress_bcs+set}" = set; then :
67724: withval=$with_empress_bcs; PHP_EMPRESS_BCS=$withval
67725: else
67726:
67727: PHP_EMPRESS_BCS=no
67728: test "$PHP_ENABLE_ALL" && PHP_EMPRESS_BCS=$PHP_ENABLE_ALL
67729:
67730: fi
67731:
67732:
67733:
67734: ext_output="yes, shared"
67735: ext_shared=yes
67736: case $PHP_EMPRESS_BCS in
67737: shared,*)
67738: PHP_EMPRESS_BCS=`echo "$PHP_EMPRESS_BCS"|$SED 's/^shared,//'`
67739: ;;
67740: shared)
67741: PHP_EMPRESS_BCS=yes
67742: ;;
67743: no)
67744: ext_output=no
67745: ext_shared=no
67746: ;;
67747: *)
67748: ext_output=yes
67749: ext_shared=no
67750: ;;
67751: esac
67752:
67753:
67754:
67755:
67756:
67757:
67758:
67759:
67760: if test "$PHP_EMPRESS_BCS" != "no"; then
67761: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Empress local access support" >&5
67762: $as_echo_n "checking for Empress local access support... " >&6; }
67763: if test "$PHP_EMPRESS_BCS" = "yes"; then
67764: ODBC_INCDIR=$EMPRESSPATH/include/odbc
67765: ODBC_LIBDIR=$EMPRESSPATH/shlib
67766: else
67767: ODBC_INCDIR=$PHP_EMPRESS_BCS/include/odbc
67768: ODBC_LIBDIR=$PHP_EMPRESS_BCS/shlib
67769: fi
67770: CC="empocc -bcs";export CC;
67771: LD="empocc -bcs";export LD;
67772: ODBC_INCLUDE=-I$ODBC_INCDIR
67773: ODBC_LFLAGS=-L$ODBC_LIBDIR
67774: LIST=`empocc -listlines -bcs -o a a.c`
67775:
67776: NEWLIST=
67777: for I in $LIST
67778: do
67779: case $I in
67780: $EMPRESSPATH/odbccl/lib/* | \
67781: $EMPRESSPATH/rdbms/lib/* | \
67782: $EMPRESSPATH/common/lib/*)
67783: NEWLIST="$NEWLIST $I"
67784: ;;
67785: esac
67786: done
67787: ODBC_LIBS="-lempphpbcs -lms -lmscfg -lbasic -lbasic_os -lnlscstab -lnlsmsgtab -lm -ldl -lcrypt"
67788: ODBC_TYPE=empress-bcs
67789:
67790: $as_echo "#define HAVE_EMPRESS 1" >>confdefs.h
67791:
67792: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
67793: $as_echo "$ext_output" >&6; }
67794:
67795: { $as_echo "$as_me:${as_lineno-$LINENO}: checking Empress local access library file" >&5
67796: $as_echo_n "checking Empress local access library file... " >&6; }
67797: ODBCBCS_LIBS=`echo $ODBC_LIBDIR/libempodbcbcs.a | cut -d' ' -f1`
67798: if test ! -f $ODBCBCS_LIBS; then
67799: ODBCBCS_LIBS=`echo $ODBC_LIBDIR/libempodbcbcs.a | cut -d' ' -f1`
67800: fi
67801: { $as_echo "$as_me:${as_lineno-$LINENO}: result: \`echo $ODBCBCS_LIBS | sed -e 's!.*/!!'\`" >&5
67802: $as_echo "\`echo $ODBCBCS_LIBS | sed -e 's!.*/!!'\`" >&6; }
67803:
67804: fi
67805: fi
67806:
67807: if test -z "$ODBC_TYPE"; then
67808:
67809: php_with_birdstep=no
67810:
67811:
67812:
67813: # Check whether --with-birdstep was given.
67814: if test "${with_birdstep+set}" = set; then :
67815: withval=$with_birdstep; PHP_BIRDSTEP=$withval
67816: else
67817:
67818: PHP_BIRDSTEP=no
67819: test "$PHP_ENABLE_ALL" && PHP_BIRDSTEP=$PHP_ENABLE_ALL
67820:
67821: fi
67822:
67823:
67824:
67825: ext_output="yes, shared"
67826: ext_shared=yes
67827: case $PHP_BIRDSTEP in
67828: shared,*)
67829: PHP_BIRDSTEP=`echo "$PHP_BIRDSTEP"|$SED 's/^shared,//'`
67830: ;;
67831: shared)
67832: PHP_BIRDSTEP=yes
67833: ;;
67834: no)
67835: ext_output=no
67836: ext_shared=no
67837: ;;
67838: *)
67839: ext_output=yes
67840: ext_shared=no
67841: ;;
67842: esac
67843:
67844:
67845:
67846:
67847:
67848:
67849:
67850:
67851: if test "$PHP_BIRDSTEP" != "no"; then
67852: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Birdstep support" >&5
67853: $as_echo_n "checking for Birdstep support... " >&6; }
67854: if test "$PHP_BIRDSTEP" = "yes"; then
67855: ODBC_INCDIR=/usr/local/birdstep/include
67856: ODBC_LIBDIR=/usr/local/birdstep/lib
67857: else
67858: ODBC_INCDIR=$PHP_BIRDSTEP/include
67859: ODBC_LIBDIR=$PHP_BIRDSTEP/$PHP_LIBDIR
67860: fi
67861:
67862: case $host_alias in
67863: *aix*)
67864:
67865: $as_echo "#define AIX 1" >>confdefs.h
67866: ;;
67867: *hpux*)
67868:
67869: $as_echo "#define HPUX 1" >>confdefs.h
67870: ;;
67871: *linux*)
67872:
67873: $as_echo "#define LINUX 1" >>confdefs.h
67874: ;;
67875: *qnx*)
67876:
67877: $as_echo "#define NEUTRINO 1" >>confdefs.h
67878: ;;
67879: i?86-*-solaris*)
67880:
67881: $as_echo "#define ISOLARIS 1" >>confdefs.h
67882: ;;
67883: sparc-*-solaris*)
67884:
67885: $as_echo "#define SOLARIS 1" >>confdefs.h
67886: ;;
67887: *unixware*)
67888:
67889: $as_echo "#define UNIXWARE 1" >>confdefs.h
67890: ;;
67891: esac
67892:
67893: ODBC_INCLUDE=-I$ODBC_INCDIR
67894: ODBC_TYPE=birdstep
67895: ODBC_LFLAGS=-L$ODBC_LIBDIR
67896: ODBC_LIBS="-lCadm -lCdict -lCenc -lCrdm -lCrpc -lCrdbc -lCrm -lCuapi -lutil"
67897:
67898: if test -f "$ODBC_LIBDIR/libCrdbc32.$SHLIB_SUFFIX_NAME"; then
67899: ODBC_LIBS="-lCrdbc32 -lCadm32 -lCncp32 -lCrm32 -lCsql32 -lCdict32 -lCrdm32 -lCrpc32 -lutil"
67900: elif test -f "$ODBC_LIBDIR/libCrdbc.$SHLIB_SUFFIX_NAME"; then
67901: ODBC_LIBS="-lCrdbc -lCadm -lCncp -lCrm -lCsql -lCdict -lCrdm -lCrpc -lutil"
67902: fi
67903:
67904:
67905: $as_echo "#define HAVE_BIRDSTEP 1" >>confdefs.h
67906:
67907: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
67908: $as_echo "$ext_output" >&6; }
67909: fi
67910: fi
67911:
67912: if test -z "$ODBC_TYPE"; then
67913:
67914: php_with_custom_odbc=no
67915:
67916:
67917:
67918: # Check whether --with-custom-odbc was given.
67919: if test "${with_custom_odbc+set}" = set; then :
67920: withval=$with_custom_odbc; PHP_CUSTOM_ODBC=$withval
67921: else
67922:
67923: PHP_CUSTOM_ODBC=no
67924: test "$PHP_ENABLE_ALL" && PHP_CUSTOM_ODBC=$PHP_ENABLE_ALL
67925:
67926: fi
67927:
67928:
67929:
67930: ext_output="yes, shared"
67931: ext_shared=yes
67932: case $PHP_CUSTOM_ODBC in
67933: shared,*)
67934: PHP_CUSTOM_ODBC=`echo "$PHP_CUSTOM_ODBC"|$SED 's/^shared,//'`
67935: ;;
67936: shared)
67937: PHP_CUSTOM_ODBC=yes
67938: ;;
67939: no)
67940: ext_output=no
67941: ext_shared=no
67942: ;;
67943: *)
67944: ext_output=yes
67945: ext_shared=no
67946: ;;
67947: esac
67948:
67949:
67950:
67951:
67952:
67953:
67954:
67955:
67956: if test "$PHP_CUSTOM_ODBC" != "no"; then
67957: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a custom ODBC support" >&5
67958: $as_echo_n "checking for a custom ODBC support... " >&6; }
67959: if test "$PHP_CUSTOM_ODBC" = "yes"; then
67960: PHP_CUSTOM_ODBC=/usr/local
67961: fi
67962: ODBC_INCDIR=$PHP_CUSTOM_ODBC/include
67963: ODBC_LIBDIR=$PHP_CUSTOM_ODBC/$PHP_LIBDIR
67964: ODBC_LFLAGS=-L$ODBC_LIBDIR
67965: ODBC_INCLUDE=-I$ODBC_INCDIR
67966: ODBC_LIBS=$CUSTOM_ODBC_LIBS
67967: ODBC_TYPE=custom-odbc
67968:
67969: $as_echo "#define HAVE_CODBC 1" >>confdefs.h
67970:
67971: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_ouput" >&5
67972: $as_echo "$ext_ouput" >&6; }
67973: fi
67974: fi
67975:
67976: if test -z "$ODBC_TYPE"; then
67977:
67978: php_with_iodbc=no
67979:
67980:
67981:
67982: # Check whether --with-iodbc was given.
67983: if test "${with_iodbc+set}" = set; then :
67984: withval=$with_iodbc; PHP_IODBC=$withval
67985: else
67986:
67987: PHP_IODBC=no
67988: test "$PHP_ENABLE_ALL" && PHP_IODBC=$PHP_ENABLE_ALL
67989:
67990: fi
67991:
67992:
67993:
67994: ext_output="yes, shared"
67995: ext_shared=yes
67996: case $PHP_IODBC in
67997: shared,*)
67998: PHP_IODBC=`echo "$PHP_IODBC"|$SED 's/^shared,//'`
67999: ;;
68000: shared)
68001: PHP_IODBC=yes
68002: ;;
68003: no)
68004: ext_output=no
68005: ext_shared=no
68006: ;;
68007: *)
68008: ext_output=yes
68009: ext_shared=no
68010: ;;
68011: esac
68012:
68013:
68014:
68015:
68016:
68017:
68018:
68019:
68020: if test "$PHP_IODBC" != "no"; then
68021: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iODBC support" >&5
68022: $as_echo_n "checking for iODBC support... " >&6; }
68023: if test "$PHP_IODBC" = "yes"; then
68024: PHP_IODBC=/usr/local
68025: fi
68026:
68027:
68028: if test -n "$PHP_IODBC/$PHP_LIBDIR"; then
68029:
68030: if test "$PHP_IODBC/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_IODBC/$PHP_LIBDIR" != "/usr/lib"; then
68031:
68032: if test -z "$PHP_IODBC/$PHP_LIBDIR" || echo "$PHP_IODBC/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
68033: ai_p=$PHP_IODBC/$PHP_LIBDIR
68034: else
68035:
68036: ep_dir="`echo $PHP_IODBC/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
68037:
68038: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
68039: ai_p="$ep_realdir/`basename \"$PHP_IODBC/$PHP_LIBDIR\"`"
68040: fi
68041:
68042:
68043:
68044:
68045:
68046: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
68047:
68048: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
68049: if test -n "$unique" && test "`eval $cmd`" = "" ; then
68050: eval "LIBPATH$unique=set"
68051:
68052: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
68053: LDFLAGS="$LDFLAGS -L$ai_p"
68054: PHP_RPATHS="$PHP_RPATHS $ai_p"
68055:
68056: fi
68057:
68058:
68059:
68060: fi
68061:
68062: fi
68063:
68064:
68065: case iodbc in
68066: c|c_r|pthread*) ;;
68067: *)
68068: LIBS="-liodbc $LIBS"
68069: ;;
68070: esac
68071:
68072:
68073:
68074:
68075:
68076: if test "$PHP_IODBC/include" != "/usr/include"; then
68077:
68078: if test -z "$PHP_IODBC/include" || echo "$PHP_IODBC/include" | grep '^/' >/dev/null ; then
68079: ai_p=$PHP_IODBC/include
68080: else
68081:
68082: ep_dir="`echo $PHP_IODBC/include|$SED 's%/*[^/][^/]*/*$%%'`"
68083:
68084: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
68085: ai_p="$ep_realdir/`basename \"$PHP_IODBC/include\"`"
68086: fi
68087:
68088:
68089:
68090: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
68091:
68092: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
68093: if test -n "$unique" && test "`eval $cmd`" = "" ; then
68094: eval "INCLUDEPATH$unique=set"
68095:
68096: if test "1"; then
68097: INCLUDES="-I$ai_p $INCLUDES"
68098: else
68099: INCLUDES="$INCLUDES -I$ai_p"
68100: fi
68101:
68102: fi
68103:
68104: fi
68105:
68106: ODBC_TYPE=iodbc
68107: ODBC_INCLUDE=-I$PHP_IODBC/include
68108: ODBC_LFLAGS=-L$PHP_IODBC/$PHP_LIBDIR
68109: ODBC_LIBS=-liodbc
68110:
68111: $as_echo "#define HAVE_IODBC 1" >>confdefs.h
68112:
68113:
68114: $as_echo "#define HAVE_ODBC2 1" >>confdefs.h
68115:
68116: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
68117: $as_echo "$ext_output" >&6; }
68118: fi
68119: fi
68120:
68121: if test -z "$ODBC_TYPE"; then
68122:
68123: php_with_esoob=no
68124:
68125:
68126:
68127: # Check whether --with-esoob was given.
68128: if test "${with_esoob+set}" = set; then :
68129: withval=$with_esoob; PHP_ESOOB=$withval
68130: else
68131:
68132: PHP_ESOOB=no
68133: test "$PHP_ENABLE_ALL" && PHP_ESOOB=$PHP_ENABLE_ALL
68134:
68135: fi
68136:
68137:
68138:
68139: ext_output="yes, shared"
68140: ext_shared=yes
68141: case $PHP_ESOOB in
68142: shared,*)
68143: PHP_ESOOB=`echo "$PHP_ESOOB"|$SED 's/^shared,//'`
68144: ;;
68145: shared)
68146: PHP_ESOOB=yes
68147: ;;
68148: no)
68149: ext_output=no
68150: ext_shared=no
68151: ;;
68152: *)
68153: ext_output=yes
68154: ext_shared=no
68155: ;;
68156: esac
68157:
68158:
68159:
68160:
68161:
68162:
68163:
68164:
68165: if test "$PHP_ESOOB" != "no"; then
68166: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Easysoft ODBC-ODBC Bridge support" >&5
68167: $as_echo_n "checking for Easysoft ODBC-ODBC Bridge support... " >&6; }
68168: if test "$PHP_ESOOB" = "yes"; then
68169: PHP_ESOOB=/usr/local/easysoft/oob/client
68170: fi
68171: ODBC_INCDIR=$PHP_ESOOB/include
68172: ODBC_LIBDIR=$PHP_ESOOB/$PHP_LIBDIR
68173: ODBC_LFLAGS=-L$ODBC_LIBDIR
68174: ODBC_INCLUDE=-I$ODBC_INCDIR
68175: ODBC_LIBS=-lesoobclient
68176: ODBC_TYPE=esoob
68177:
68178: $as_echo "#define HAVE_ESOOB 1" >>confdefs.h
68179:
68180: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
68181: $as_echo "$ext_output" >&6; }
68182: fi
68183: fi
68184:
68185: if test -z "$ODBC_TYPE"; then
68186:
68187: php_with_unixodbc=no
68188:
68189:
68190:
68191: # Check whether --with-unixODBC was given.
68192: if test "${with_unixODBC+set}" = set; then :
68193: withval=$with_unixODBC; PHP_UNIXODBC=$withval
68194: else
68195:
68196: PHP_UNIXODBC=no
68197: test "$PHP_ENABLE_ALL" && PHP_UNIXODBC=$PHP_ENABLE_ALL
68198:
68199: fi
68200:
68201:
68202:
68203: ext_output="yes, shared"
68204: ext_shared=yes
68205: case $PHP_UNIXODBC in
68206: shared,*)
68207: PHP_UNIXODBC=`echo "$PHP_UNIXODBC"|$SED 's/^shared,//'`
68208: ;;
68209: shared)
68210: PHP_UNIXODBC=yes
68211: ;;
68212: no)
68213: ext_output=no
68214: ext_shared=no
68215: ;;
68216: *)
68217: ext_output=yes
68218: ext_shared=no
68219: ;;
68220: esac
68221:
68222:
68223:
68224:
68225:
68226:
68227:
68228:
68229: if test "$PHP_UNIXODBC" != "no"; then
68230: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unixODBC support" >&5
68231: $as_echo_n "checking for unixODBC support... " >&6; }
68232: if test "$PHP_UNIXODBC" = "yes"; then
68233: PHP_UNIXODBC=/usr/local
68234: fi
68235: ODBC_INCDIR=$PHP_UNIXODBC/include
68236: ODBC_LIBDIR=$PHP_UNIXODBC/$PHP_LIBDIR
68237: ODBC_LFLAGS=-L$ODBC_LIBDIR
68238: ODBC_INCLUDE=-I$ODBC_INCDIR
68239: ODBC_LIBS=-lodbc
68240: ODBC_TYPE=unixODBC
68241:
68242: if ! test -f "$ODBC_INCDIR/sqlext.h"; then
68243: as_fn_error $? "ODBC header file '$ODBC_INCDIR/sqlext.h' not found!" "$LINENO" 5
68244: fi
68245:
68246:
68247: $as_echo "#define HAVE_UNIXODBC 1" >>confdefs.h
68248:
68249: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
68250: $as_echo "$ext_output" >&6; }
68251: fi
68252: fi
68253:
68254: if test -z "$ODBC_TYPE"; then
68255:
68256: php_with_dbmaker=no
68257:
68258:
68259:
68260: # Check whether --with-dbmaker was given.
68261: if test "${with_dbmaker+set}" = set; then :
68262: withval=$with_dbmaker; PHP_DBMAKER=$withval
68263: else
68264:
68265: PHP_DBMAKER=no
68266: test "$PHP_ENABLE_ALL" && PHP_DBMAKER=$PHP_ENABLE_ALL
68267:
68268: fi
68269:
68270:
68271:
68272: ext_output="yes, shared"
68273: ext_shared=yes
68274: case $PHP_DBMAKER in
68275: shared,*)
68276: PHP_DBMAKER=`echo "$PHP_DBMAKER"|$SED 's/^shared,//'`
68277: ;;
68278: shared)
68279: PHP_DBMAKER=yes
68280: ;;
68281: no)
68282: ext_output=no
68283: ext_shared=no
68284: ;;
68285: *)
68286: ext_output=yes
68287: ext_shared=no
68288: ;;
68289: esac
68290:
68291:
68292:
68293:
68294:
68295:
68296:
68297:
68298: if test "$PHP_DBMAKER" != "no"; then
68299: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBMaker support" >&5
68300: $as_echo_n "checking for DBMaker support... " >&6; }
68301: if test "$PHP_DBMAKER" = "yes"; then
68302: # find dbmaker's home directory
68303: DBMAKER_HOME=`grep "^dbmaker:" /etc/passwd | $AWK -F: '{print $6}'`
68304:
68305: # check DBMaker version (from 5.0 to 2.0)
68306: DBMAKER_VERSION=5.0
68307:
68308: while test ! -d $DBMAKER_HOME/$DBMAKER_VERSION -a "$DBMAKER_VERSION" != "2.9"; do
68309: DM_VER=`echo $DBMAKER_VERSION | sed -e 's/\.//' | $AWK '{ print $1-1;}'`
68310: MAJOR_V=`echo $DM_VER | $AWK '{ print $1/10; }' | $AWK -F. '{ print $1; }'`
68311: MINOR_V=`echo $DM_VER | $AWK '{ print $1%10; }'`
68312: DBMAKER_VERSION=$MAJOR_V.$MINOR_V
68313: done
68314:
68315: if test "$DBMAKER_VERSION" = "2.9"; then
68316: PHP_DBMAKER=$DBMAKER_HOME
68317: else
68318: PHP_DBMAKER=$DBMAKER_HOME/$DBMAKER_VERSION
68319: fi
68320: fi
68321:
68322: ODBC_INCDIR=$PHP_DBMAKER/include
68323: ODBC_LIBDIR=$PHP_DBMAKER/$PHP_LIBDIR
68324: ODBC_INCLUDE=-I$ODBC_INCDIR
68325: ODBC_LFLAGS=-L$ODBC_LIBDIR
68326: ODBC_INCLUDE=-I$ODBC_INCDIR
68327: ODBC_LIBS="-ldmapic -lc"
68328: ODBC_TYPE=dbmaker
68329:
68330:
68331: $as_echo "#define HAVE_DBMAKER 1" >>confdefs.h
68332:
68333:
68334: if test "$ext_shared" = "yes"; then
68335: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (shared)" >&5
68336: $as_echo "yes (shared)" >&6; }
68337: ODBC_LIBS="-ldmapic -lc -lm"
68338: ODBC_SHARED="odbc.la"
68339: else
68340: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (static)" >&5
68341: $as_echo "yes (static)" >&6; }
68342:
68343:
68344: if test -n "$ODBC_LIBDIR"; then
68345:
68346: if test "$ODBC_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$ODBC_LIBDIR" != "/usr/lib"; then
68347:
68348: if test -z "$ODBC_LIBDIR" || echo "$ODBC_LIBDIR" | grep '^/' >/dev/null ; then
68349: ai_p=$ODBC_LIBDIR
68350: else
68351:
68352: ep_dir="`echo $ODBC_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
68353:
68354: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
68355: ai_p="$ep_realdir/`basename \"$ODBC_LIBDIR\"`"
68356: fi
68357:
68358:
68359:
68360:
68361:
68362: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
68363:
68364: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
68365: if test -n "$unique" && test "`eval $cmd`" = "" ; then
68366: eval "LIBPATH$unique=set"
68367:
68368: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
68369: LDFLAGS="$LDFLAGS -L$ai_p"
68370: PHP_RPATHS="$PHP_RPATHS $ai_p"
68371:
68372: fi
68373:
68374:
68375:
68376: fi
68377:
68378: fi
68379:
68380:
68381: case dmapic in
68382: c|c_r|pthread*) ;;
68383: *)
68384: LIBS="-ldmapic $LIBS"
68385: ;;
68386: esac
68387:
68388:
68389:
68390:
68391:
68392: if test "$ODBC_INCDIR" != "/usr/include"; then
68393:
68394: if test -z "$ODBC_INCDIR" || echo "$ODBC_INCDIR" | grep '^/' >/dev/null ; then
68395: ai_p=$ODBC_INCDIR
68396: else
68397:
68398: ep_dir="`echo $ODBC_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`"
68399:
68400: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
68401: ai_p="$ep_realdir/`basename \"$ODBC_INCDIR\"`"
68402: fi
68403:
68404:
68405:
68406: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
68407:
68408: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
68409: if test -n "$unique" && test "`eval $cmd`" = "" ; then
68410: eval "INCLUDEPATH$unique=set"
68411:
68412: if test ""; then
68413: INCLUDES="-I$ai_p $INCLUDES"
68414: else
68415: INCLUDES="$INCLUDES -I$ai_p"
68416: fi
68417:
68418: fi
68419:
68420: fi
68421:
68422: ODBC_STATIC="libphpext_odbc.la"
68423: fi
68424: fi
68425: fi
68426:
68427: if test -n "$ODBC_TYPE"; then
68428: if test "$ODBC_TYPE" != "dbmaker"; then
68429:
68430: for ac_i in $ODBC_LFLAGS $ODBC_LIBS; do
68431: case $ac_i in
68432: -pthread)
68433: if test "$ext_shared" = "yes"; then
68434: ODBC_SHARED_LIBADD="$ODBC_SHARED_LIBADD -pthread"
68435: else
68436:
68437:
68438: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
68439:
68440: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
68441: if test -n "$unique" && test "`eval $cmd`" = "" ; then
68442: eval "EXTRA_LDFLAGS$unique=set"
68443: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
68444: fi
68445:
68446: fi
68447: ;;
68448: -l*)
68449: ac_ii=`echo $ac_i|cut -c 3-`
68450:
68451:
68452: case $ac_ii in
68453: c|c_r|pthread*) ;;
68454: *)
68455: if test "$ext_shared" = "yes"; then
68456: ODBC_SHARED_LIBADD="$ODBC_SHARED_LIBADD -l$ac_ii"
68457: else
68458:
68459:
68460: case $ac_ii in
68461: c|c_r|pthread*) ;;
68462: *)
68463: LIBS="$LIBS -l$ac_ii"
68464: ;;
68465: esac
68466:
68467:
68468: fi
68469: ;;
68470: esac
68471:
68472:
68473: ;;
68474: -L*)
68475: ac_ii=`echo $ac_i|cut -c 3-`
68476:
68477: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
68478:
68479: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
68480: ai_p=$ac_ii
68481: else
68482:
68483: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
68484:
68485: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
68486: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
68487: fi
68488:
68489:
68490: if test "$ext_shared" = "yes"; then
68491: ODBC_SHARED_LIBADD="-L$ai_p $ODBC_SHARED_LIBADD"
68492: test -n "$ld_runpath_switch" && ODBC_SHARED_LIBADD="$ld_runpath_switch$ai_p $ODBC_SHARED_LIBADD"
68493: else
68494:
68495:
68496:
68497: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
68498:
68499: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
68500: if test -n "$unique" && test "`eval $cmd`" = "" ; then
68501: eval "LIBPATH$unique=set"
68502:
68503: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
68504: LDFLAGS="$LDFLAGS -L$ai_p"
68505: PHP_RPATHS="$PHP_RPATHS $ai_p"
68506:
68507: fi
68508:
68509:
68510: fi
68511:
68512: fi
68513:
68514: ;;
68515: esac
68516: done
68517:
68518: if test "$ODBC_TYPE" != "birdstep" && test "$ODBC_TYPE" != "solid"; then
68519:
68520: $as_echo "#define HAVE_SQLDATASOURCES 1" >>confdefs.h
68521:
68522: fi
68523: fi
68524:
68525:
68526: $as_echo "#define HAVE_UODBC 1" >>confdefs.h
68527:
68528:
68529: PHP_VAR_SUBST="$PHP_VAR_SUBST ODBC_SHARED_LIBADD"
68530:
68531:
68532: PHP_VAR_SUBST="$PHP_VAR_SUBST ODBC_INCDIR"
68533:
68534:
68535: PHP_VAR_SUBST="$PHP_VAR_SUBST ODBC_LIBDIR"
68536:
68537:
68538:
68539: PHP_VAR_SUBST="$PHP_VAR_SUBST ODBC_INCLUDE"
68540:
68541:
68542:
68543:
68544:
68545: PHP_VAR_SUBST="$PHP_VAR_SUBST ODBC_LIBS"
68546:
68547:
68548:
68549:
68550:
68551: PHP_VAR_SUBST="$PHP_VAR_SUBST ODBC_LFLAGS"
68552:
68553:
68554:
68555:
68556:
68557: PHP_VAR_SUBST="$PHP_VAR_SUBST ODBC_TYPE"
68558:
68559:
68560:
68561:
68562:
68563: ext_builddir=ext/odbc
68564: ext_srcdir=$abs_srcdir/ext/odbc
68565:
68566: ac_extra=`echo "$ODBC_INCLUDE"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
68567:
68568: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
68569: PHP_ODBC_SHARED=no
68570:
68571:
68572: case ext/odbc in
68573: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
68574: /*) ac_srcdir=`echo "ext/odbc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
68575: *) ac_srcdir="$abs_srcdir/ext/odbc/"; ac_bdir="ext/odbc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
68576: esac
68577:
68578:
68579:
68580: b_c_pre=$php_c_pre
68581: b_cxx_pre=$php_cxx_pre
68582: b_c_meta=$php_c_meta
68583: b_cxx_meta=$php_cxx_meta
68584: b_c_post=$php_c_post
68585: b_cxx_post=$php_cxx_post
68586: b_lo=$php_lo
68587:
68588:
68589: old_IFS=$IFS
68590: for ac_src in php_odbc.c; do
68591:
68592: IFS=.
68593: set $ac_src
68594: ac_obj=$1
68595: IFS=$old_IFS
68596:
68597: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
68598:
68599: case $ac_src in
68600: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
68601: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
68602: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
68603: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
68604: esac
68605:
68606: cat >>Makefile.objects<<EOF
68607: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
68608: $ac_comp
68609: EOF
68610: done
68611:
68612:
68613: EXT_STATIC="$EXT_STATIC odbc"
68614: if test "$ext_shared" != "nocli"; then
68615: EXT_CLI_STATIC="$EXT_CLI_STATIC odbc"
68616: fi
68617: else
68618: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
68619: PHP_ODBC_SHARED=yes
68620:
68621: case ext/odbc in
68622: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
68623: /*) ac_srcdir=`echo "ext/odbc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
68624: *) ac_srcdir="$abs_srcdir/ext/odbc/"; ac_bdir="ext/odbc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
68625: esac
68626:
68627:
68628:
68629: b_c_pre=$shared_c_pre
68630: b_cxx_pre=$shared_cxx_pre
68631: b_c_meta=$shared_c_meta
68632: b_cxx_meta=$shared_cxx_meta
68633: b_c_post=$shared_c_post
68634: b_cxx_post=$shared_cxx_post
68635: b_lo=$shared_lo
68636:
68637:
68638: old_IFS=$IFS
68639: for ac_src in php_odbc.c; do
68640:
68641: IFS=.
68642: set $ac_src
68643: ac_obj=$1
68644: IFS=$old_IFS
68645:
68646: shared_objects_odbc="$shared_objects_odbc $ac_bdir$ac_obj.lo"
68647:
68648: case $ac_src in
68649: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
68650: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
68651: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
68652: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
68653: esac
68654:
68655: cat >>Makefile.objects<<EOF
68656: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
68657: $ac_comp
68658: EOF
68659: done
68660:
68661: case $host_alias in
68662: *netware*)
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'/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'
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_odbc) -L$(top_builddir)/netware -lphp5lib $(ODBC_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_odbc) $(PHPODBC_SHARED_LIBADD)'
68678: ;;
68679: esac
68680:
68681: if test "x" = "xyes"; then
68682: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpodbc.$suffix"
68683: else
68684: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpodbc.$suffix"
68685: fi
68686:
68687: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_odbc"
68688:
68689: cat >>Makefile.objects<<EOF
68690: \$(phplibdir)/phpodbc.$suffix: $ext_builddir/phpodbc.$suffix
68691: \$(LIBTOOL) --mode=install cp $ext_builddir/phpodbc.$suffix \$(phplibdir)
68692:
68693: $ext_builddir/phpodbc.$suffix: \$(shared_objects_odbc) \$(PHPODBC_SHARED_DEPENDENCIES)
68694: $link_cmd
68695:
68696: EOF
68697:
68698: ;;
68699: *)
68700:
68701: install_modules="install-modules"
68702:
68703: case $host_alias in
68704: *aix*)
68705: suffix=so
68706: 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'
68707: ;;
68708: *netware*)
68709: suffix=nlm
68710: link_cmd='$(LIBTOOL) --mode=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)'
68711: ;;
68712: *)
68713: suffix=la
68714: link_cmd='$(LIBTOOL) --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)'
68715: ;;
68716: esac
68717:
68718: if test "x" = "xyes"; then
68719: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/odbc.$suffix"
68720: else
68721: PHP_MODULES="$PHP_MODULES \$(phplibdir)/odbc.$suffix"
68722: fi
68723:
68724: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_odbc"
68725:
68726: cat >>Makefile.objects<<EOF
68727: \$(phplibdir)/odbc.$suffix: $ext_builddir/odbc.$suffix
68728: \$(LIBTOOL) --mode=install cp $ext_builddir/odbc.$suffix \$(phplibdir)
68729:
68730: $ext_builddir/odbc.$suffix: \$(shared_objects_odbc) \$(ODBC_SHARED_DEPENDENCIES)
68731: $link_cmd
68732:
68733: EOF
68734:
68735: ;;
68736: esac
68737:
68738: cat >>confdefs.h <<_ACEOF
68739: #define COMPILE_DL_ODBC 1
68740: _ACEOF
68741:
68742: fi
68743: fi
68744:
68745: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
68746: PHP_ODBC_SHARED=no
68747:
68748:
68749: case ext/odbc in
68750: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
68751: /*) ac_srcdir=`echo "ext/odbc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
68752: *) ac_srcdir="$abs_srcdir/ext/odbc/"; ac_bdir="ext/odbc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
68753: esac
68754:
68755:
68756:
68757: b_c_pre=$php_c_pre
68758: b_cxx_pre=$php_cxx_pre
68759: b_c_meta=$php_c_meta
68760: b_cxx_meta=$php_cxx_meta
68761: b_c_post=$php_c_post
68762: b_cxx_post=$php_cxx_post
68763: b_lo=$php_lo
68764:
68765:
68766: old_IFS=$IFS
68767: for ac_src in php_odbc.c; do
68768:
68769: IFS=.
68770: set $ac_src
68771: ac_obj=$1
68772: IFS=$old_IFS
68773:
68774: PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
68775:
68776: case $ac_src in
68777: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
68778: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
68779: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
68780: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
68781: esac
68782:
68783: cat >>Makefile.objects<<EOF
68784: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
68785: $ac_comp
68786: EOF
68787: done
68788:
68789:
68790:
68791:
68792: case ext/odbc in
68793: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
68794: /*) ac_srcdir=`echo "ext/odbc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
68795: *) ac_srcdir="$abs_srcdir/ext/odbc/"; ac_bdir="ext/odbc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
68796: esac
68797:
68798:
68799:
68800: b_c_pre=$php_c_pre
68801: b_cxx_pre=$php_cxx_pre
68802: b_c_meta=$php_c_meta
68803: b_cxx_meta=$php_cxx_meta
68804: b_c_post=$php_c_post
68805: b_cxx_post=$php_cxx_post
68806: b_lo=$php_lo
68807:
68808:
68809: old_IFS=$IFS
68810: for ac_src in php_odbc.c; do
68811:
68812: IFS=.
68813: set $ac_src
68814: ac_obj=$1
68815: IFS=$old_IFS
68816:
68817: PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo"
68818:
68819: case $ac_src in
68820: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
68821: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
68822: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
68823: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
68824: esac
68825:
68826: cat >>Makefile.objects<<EOF
68827: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
68828: $ac_comp
68829: EOF
68830: done
68831:
68832:
68833:
68834:
68835: case ext/odbc in
68836: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
68837: /*) ac_srcdir=`echo "ext/odbc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
68838: *) ac_srcdir="$abs_srcdir/ext/odbc/"; ac_bdir="ext/odbc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
68839: esac
68840:
68841:
68842:
68843: b_c_pre=$php_c_pre
68844: b_cxx_pre=$php_cxx_pre
68845: b_c_meta=$php_c_meta
68846: b_cxx_meta=$php_cxx_meta
68847: b_c_post=$php_c_post
68848: b_cxx_post=$php_cxx_post
68849: b_lo=$php_lo
68850:
68851:
68852: old_IFS=$IFS
68853: for ac_src in php_odbc.c; do
68854:
68855: IFS=.
68856: set $ac_src
68857: ac_obj=$1
68858: IFS=$old_IFS
68859:
68860: PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo"
68861:
68862: case $ac_src in
68863: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
68864: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
68865: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
68866: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
68867: esac
68868:
68869: cat >>Makefile.objects<<EOF
68870: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
68871: $ac_comp
68872: EOF
68873: done
68874:
68875:
68876: EXT_CLI_STATIC="$EXT_CLI_STATIC odbc"
68877: fi
68878:
68879:
68880: BUILD_DIR="$BUILD_DIR $ext_builddir"
68881:
68882:
68883:
68884: if test "$ext_builddir" = "."; then
68885: PHP_PECL_EXTENSION=odbc
68886:
68887: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
68888:
68889: fi
68890:
68891: fi
68892:
68893:
68894:
68895: php_enable_pcntl=no
68896:
68897: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable pcntl support" >&5
68898: $as_echo_n "checking whether to enable pcntl support... " >&6; }
68899: # Check whether --enable-pcntl was given.
68900: if test "${enable_pcntl+set}" = set; then :
68901: enableval=$enable_pcntl; PHP_PCNTL=$enableval
68902: else
68903:
68904: PHP_PCNTL=no
68905: test "$PHP_ENABLE_ALL" && PHP_PCNTL=$PHP_ENABLE_ALL
68906:
68907: fi
68908:
68909:
68910:
68911: ext_output="yes, shared"
68912: ext_shared=yes
68913: case $PHP_PCNTL in
68914: shared,*)
68915: PHP_PCNTL=`echo "$PHP_PCNTL"|$SED 's/^shared,//'`
68916: ;;
68917: shared)
68918: PHP_PCNTL=yes
68919: ;;
68920: no)
68921: ext_output=no
68922: ext_shared=no
68923: ;;
68924: *)
68925: ext_output=yes
68926: ext_shared=no
68927: ;;
68928: esac
68929:
68930:
68931:
68932: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
68933: $as_echo "$ext_output" >&6; }
68934:
68935:
68936:
68937:
68938: if test "$PHP_PCNTL" != "no"; then
68939: for ac_func in fork
68940: do :
68941: ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork"
68942: if test "x$ac_cv_func_fork" = xyes; then :
68943: cat >>confdefs.h <<_ACEOF
68944: #define HAVE_FORK 1
68945: _ACEOF
68946:
68947: $as_echo "#define HAVE_FORK 1" >>confdefs.h
68948:
68949: else
68950: as_fn_error $? "pcntl: fork() not supported by this platform" "$LINENO" 5
68951: fi
68952: done
68953:
68954: for ac_func in waitpid
68955: do :
68956: ac_fn_c_check_func "$LINENO" "waitpid" "ac_cv_func_waitpid"
68957: if test "x$ac_cv_func_waitpid" = xyes; then :
68958: cat >>confdefs.h <<_ACEOF
68959: #define HAVE_WAITPID 1
68960: _ACEOF
68961:
68962: $as_echo "#define HAVE_WAITPID 1" >>confdefs.h
68963:
68964: else
68965: as_fn_error $? "pcntl: waitpid() not supported by this platform" "$LINENO" 5
68966: fi
68967: done
68968:
68969: for ac_func in sigaction
68970: do :
68971: ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
68972: if test "x$ac_cv_func_sigaction" = xyes; then :
68973: cat >>confdefs.h <<_ACEOF
68974: #define HAVE_SIGACTION 1
68975: _ACEOF
68976:
68977: $as_echo "#define HAVE_SIGACTION 1" >>confdefs.h
68978:
68979: else
68980: as_fn_error $? "pcntl: sigaction() not supported by this platform" "$LINENO" 5
68981: fi
68982: done
68983:
68984: for ac_func in getpriority setpriority wait3 sigprocmask sigwaitinfo sigtimedwait
68985: do :
68986: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
68987: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
68988: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
68989: cat >>confdefs.h <<_ACEOF
68990: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
68991: _ACEOF
68992:
68993: fi
68994: done
68995:
68996:
68997: ext_builddir=ext/pcntl
68998: ext_srcdir=$abs_srcdir/ext/pcntl
68999:
69000: ac_extra=
69001:
69002: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "cli" != "cli"; then
69003: PHP_PCNTL_SHARED=no
69004:
69005:
69006: case ext/pcntl in
69007: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
69008: /*) ac_srcdir=`echo "ext/pcntl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
69009: *) ac_srcdir="$abs_srcdir/ext/pcntl/"; ac_bdir="ext/pcntl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
69010: esac
69011:
69012:
69013:
69014: b_c_pre=$php_c_pre
69015: b_cxx_pre=$php_cxx_pre
69016: b_c_meta=$php_c_meta
69017: b_cxx_meta=$php_cxx_meta
69018: b_c_post=$php_c_post
69019: b_cxx_post=$php_cxx_post
69020: b_lo=$php_lo
69021:
69022:
69023: old_IFS=$IFS
69024: for ac_src in pcntl.c php_signal.c; do
69025:
69026: IFS=.
69027: set $ac_src
69028: ac_obj=$1
69029: IFS=$old_IFS
69030:
69031: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
69032:
69033: case $ac_src in
69034: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
69035: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
69036: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
69037: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
69038: esac
69039:
69040: cat >>Makefile.objects<<EOF
69041: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
69042: $ac_comp
69043: EOF
69044: done
69045:
69046:
69047: EXT_STATIC="$EXT_STATIC pcntl"
69048: if test "$ext_shared" != "nocli"; then
69049: EXT_CLI_STATIC="$EXT_CLI_STATIC pcntl"
69050: fi
69051: else
69052: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
69053: PHP_PCNTL_SHARED=yes
69054:
69055: case ext/pcntl in
69056: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
69057: /*) ac_srcdir=`echo "ext/pcntl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
69058: *) ac_srcdir="$abs_srcdir/ext/pcntl/"; ac_bdir="ext/pcntl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
69059: esac
69060:
69061:
69062:
69063: b_c_pre=$shared_c_pre
69064: b_cxx_pre=$shared_cxx_pre
69065: b_c_meta=$shared_c_meta
69066: b_cxx_meta=$shared_cxx_meta
69067: b_c_post=$shared_c_post
69068: b_cxx_post=$shared_cxx_post
69069: b_lo=$shared_lo
69070:
69071:
69072: old_IFS=$IFS
69073: for ac_src in pcntl.c php_signal.c; do
69074:
69075: IFS=.
69076: set $ac_src
69077: ac_obj=$1
69078: IFS=$old_IFS
69079:
69080: shared_objects_pcntl="$shared_objects_pcntl $ac_bdir$ac_obj.lo"
69081:
69082: case $ac_src in
69083: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
69084: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
69085: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
69086: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
69087: esac
69088:
69089: cat >>Makefile.objects<<EOF
69090: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
69091: $ac_comp
69092: EOF
69093: done
69094:
69095: case $host_alias in
69096: *netware*)
69097:
69098: install_modules="install-modules"
69099:
69100: case $host_alias in
69101: *aix*)
69102: suffix=so
69103: 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'
69104: ;;
69105: *netware*)
69106: suffix=nlm
69107: link_cmd='$(LIBTOOL) --mode=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)'
69108: ;;
69109: *)
69110: suffix=la
69111: link_cmd='$(LIBTOOL) --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)'
69112: ;;
69113: esac
69114:
69115: if test "x" = "xyes"; then
69116: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phppcntl.$suffix"
69117: else
69118: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phppcntl.$suffix"
69119: fi
69120:
69121: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pcntl"
69122:
69123: cat >>Makefile.objects<<EOF
69124: \$(phplibdir)/phppcntl.$suffix: $ext_builddir/phppcntl.$suffix
69125: \$(LIBTOOL) --mode=install cp $ext_builddir/phppcntl.$suffix \$(phplibdir)
69126:
69127: $ext_builddir/phppcntl.$suffix: \$(shared_objects_pcntl) \$(PHPPCNTL_SHARED_DEPENDENCIES)
69128: $link_cmd
69129:
69130: EOF
69131:
69132: ;;
69133: *)
69134:
69135: install_modules="install-modules"
69136:
69137: case $host_alias in
69138: *aix*)
69139: suffix=so
69140: 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'
69141: ;;
69142: *netware*)
69143: suffix=nlm
69144: link_cmd='$(LIBTOOL) --mode=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)'
69145: ;;
69146: *)
69147: suffix=la
69148: link_cmd='$(LIBTOOL) --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)'
69149: ;;
69150: esac
69151:
69152: if test "x" = "xyes"; then
69153: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/pcntl.$suffix"
69154: else
69155: PHP_MODULES="$PHP_MODULES \$(phplibdir)/pcntl.$suffix"
69156: fi
69157:
69158: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pcntl"
69159:
69160: cat >>Makefile.objects<<EOF
69161: \$(phplibdir)/pcntl.$suffix: $ext_builddir/pcntl.$suffix
69162: \$(LIBTOOL) --mode=install cp $ext_builddir/pcntl.$suffix \$(phplibdir)
69163:
69164: $ext_builddir/pcntl.$suffix: \$(shared_objects_pcntl) \$(PCNTL_SHARED_DEPENDENCIES)
69165: $link_cmd
69166:
69167: EOF
69168:
69169: ;;
69170: esac
69171:
69172: cat >>confdefs.h <<_ACEOF
69173: #define COMPILE_DL_PCNTL 1
69174: _ACEOF
69175:
69176: fi
69177: fi
69178:
69179: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "cli" = "cli"; then
69180: PHP_PCNTL_SHARED=no
69181:
69182:
69183: case ext/pcntl in
69184: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
69185: /*) ac_srcdir=`echo "ext/pcntl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
69186: *) ac_srcdir="$abs_srcdir/ext/pcntl/"; ac_bdir="ext/pcntl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
69187: esac
69188:
69189:
69190:
69191: b_c_pre=$php_c_pre
69192: b_cxx_pre=$php_cxx_pre
69193: b_c_meta=$php_c_meta
69194: b_cxx_meta=$php_cxx_meta
69195: b_c_post=$php_c_post
69196: b_cxx_post=$php_cxx_post
69197: b_lo=$php_lo
69198:
69199:
69200: old_IFS=$IFS
69201: for ac_src in pcntl.c php_signal.c; do
69202:
69203: IFS=.
69204: set $ac_src
69205: ac_obj=$1
69206: IFS=$old_IFS
69207:
69208: PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
69209:
69210: case $ac_src in
69211: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
69212: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
69213: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
69214: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
69215: esac
69216:
69217: cat >>Makefile.objects<<EOF
69218: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
69219: $ac_comp
69220: EOF
69221: done
69222:
69223:
69224:
69225:
69226: case ext/pcntl in
69227: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
69228: /*) ac_srcdir=`echo "ext/pcntl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
69229: *) ac_srcdir="$abs_srcdir/ext/pcntl/"; ac_bdir="ext/pcntl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
69230: esac
69231:
69232:
69233:
69234: b_c_pre=$php_c_pre
69235: b_cxx_pre=$php_cxx_pre
69236: b_c_meta=$php_c_meta
69237: b_cxx_meta=$php_cxx_meta
69238: b_c_post=$php_c_post
69239: b_cxx_post=$php_cxx_post
69240: b_lo=$php_lo
69241:
69242:
69243: old_IFS=$IFS
69244: for ac_src in pcntl.c php_signal.c; do
69245:
69246: IFS=.
69247: set $ac_src
69248: ac_obj=$1
69249: IFS=$old_IFS
69250:
69251: PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo"
69252:
69253: case $ac_src in
69254: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
69255: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
69256: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
69257: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
69258: esac
69259:
69260: cat >>Makefile.objects<<EOF
69261: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
69262: $ac_comp
69263: EOF
69264: done
69265:
69266:
69267:
69268:
69269: case ext/pcntl in
69270: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
69271: /*) ac_srcdir=`echo "ext/pcntl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
69272: *) ac_srcdir="$abs_srcdir/ext/pcntl/"; ac_bdir="ext/pcntl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
69273: esac
69274:
69275:
69276:
69277: b_c_pre=$php_c_pre
69278: b_cxx_pre=$php_cxx_pre
69279: b_c_meta=$php_c_meta
69280: b_cxx_meta=$php_cxx_meta
69281: b_c_post=$php_c_post
69282: b_cxx_post=$php_cxx_post
69283: b_lo=$php_lo
69284:
69285:
69286: old_IFS=$IFS
69287: for ac_src in pcntl.c php_signal.c; do
69288:
69289: IFS=.
69290: set $ac_src
69291: ac_obj=$1
69292: IFS=$old_IFS
69293:
69294: PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo"
69295:
69296: case $ac_src in
69297: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
69298: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
69299: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
69300: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
69301: esac
69302:
69303: cat >>Makefile.objects<<EOF
69304: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
69305: $ac_comp
69306: EOF
69307: done
69308:
69309:
69310: EXT_CLI_STATIC="$EXT_CLI_STATIC pcntl"
69311: fi
69312:
69313:
69314: BUILD_DIR="$BUILD_DIR $ext_builddir"
69315:
69316:
69317:
69318: if test "$ext_builddir" = "."; then
69319: PHP_PECL_EXTENSION=pcntl
69320:
69321: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
69322:
69323: fi
69324:
69325: fi
69326:
69327:
69328:
69329:
69330:
69331: php_enable_pdo=yes
69332:
69333: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable PDO support" >&5
69334: $as_echo_n "checking whether to enable PDO support... " >&6; }
69335: # Check whether --enable-pdo was given.
69336: if test "${enable_pdo+set}" = set; then :
69337: enableval=$enable_pdo; PHP_PDO=$enableval
69338: else
69339:
69340: PHP_PDO=yes
69341: test "$PHP_ENABLE_ALL" && PHP_PDO=$PHP_ENABLE_ALL
69342:
69343: fi
69344:
69345:
69346:
69347: ext_output="yes, shared"
69348: ext_shared=yes
69349: case $PHP_PDO in
69350: shared,*)
69351: PHP_PDO=`echo "$PHP_PDO"|$SED 's/^shared,//'`
69352: ;;
69353: shared)
69354: PHP_PDO=yes
69355: ;;
69356: no)
69357: ext_output=no
69358: ext_shared=no
69359: ;;
69360: *)
69361: ext_output=yes
69362: ext_shared=no
69363: ;;
69364: esac
69365:
69366:
69367:
69368: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
69369: $as_echo "$ext_output" >&6; }
69370:
69371:
69372:
69373:
69374: if test "$PHP_PDO" != "no"; then
69375:
69376: PHP_PDO=yes
69377:
69378:
69379: pdo_running_under_pear=0
69380: case `pwd` in
69381: /var/tmp/pear-build-*)
69382: pdo_running_under_pear=1
69383: ;;
69384: esac
69385:
69386: if test "$pdo_running_under_pear$PHP_PEAR_VERSION" = "1"; then
69387: # we're running in an environment that smells like pear,
69388: # and the PHP_PEAR_VERSION env var is not set. That implies
69389: # that we're running under a slightly broken pear installer
69390: as_fn_error $? "
69391: PDO requires that you upgrade your PEAR installer tools. Please
69392: do so now by running:
69393:
69394: % sudo pear upgrade pear
69395:
69396: or by manually downloading and installing PEAR version 1.3.5 or higher.
69397:
69398: Once you've upgraded, please re-try your PDO install.
69399: " "$LINENO" 5
69400: fi
69401:
69402:
69403: if test "$ext_shared" = "yes" ; then
69404: case $host_alias in
69405: *darwin*)
69406: as_fn_error $? "
69407: Due to the way that loadable modules work on OSX/Darwin, you need to
69408: compile the PDO package statically into the PHP core.
69409:
69410: Please follow the instructions at: http://netevil.org/node.php?nid=202
69411: for more detail on this issue.
69412: " "$LINENO" 5
69413: ext_shared=no
69414: ;;
69415: esac
69416: fi
69417:
69418: ext_builddir=ext/pdo
69419: ext_srcdir=$abs_srcdir/ext/pdo
69420:
69421: ac_extra=
69422:
69423: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
69424: PHP_PDO_SHARED=no
69425:
69426:
69427: case ext/pdo in
69428: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
69429: /*) ac_srcdir=`echo "ext/pdo"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
69430: *) ac_srcdir="$abs_srcdir/ext/pdo/"; ac_bdir="ext/pdo/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
69431: esac
69432:
69433:
69434:
69435: b_c_pre=$php_c_pre
69436: b_cxx_pre=$php_cxx_pre
69437: b_c_meta=$php_c_meta
69438: b_cxx_meta=$php_cxx_meta
69439: b_c_post=$php_c_post
69440: b_cxx_post=$php_cxx_post
69441: b_lo=$php_lo
69442:
69443:
69444: old_IFS=$IFS
69445: for ac_src in pdo.c pdo_dbh.c pdo_stmt.c pdo_sql_parser.c pdo_sqlstate.c; do
69446:
69447: IFS=.
69448: set $ac_src
69449: ac_obj=$1
69450: IFS=$old_IFS
69451:
69452: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
69453:
69454: case $ac_src in
69455: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
69456: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
69457: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
69458: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
69459: esac
69460:
69461: cat >>Makefile.objects<<EOF
69462: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
69463: $ac_comp
69464: EOF
69465: done
69466:
69467:
69468: EXT_STATIC="$EXT_STATIC pdo"
69469: if test "$ext_shared" != "nocli"; then
69470: EXT_CLI_STATIC="$EXT_CLI_STATIC pdo"
69471: fi
69472: else
69473: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
69474: PHP_PDO_SHARED=yes
69475:
69476: case ext/pdo in
69477: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
69478: /*) ac_srcdir=`echo "ext/pdo"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
69479: *) ac_srcdir="$abs_srcdir/ext/pdo/"; ac_bdir="ext/pdo/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
69480: esac
69481:
69482:
69483:
69484: b_c_pre=$shared_c_pre
69485: b_cxx_pre=$shared_cxx_pre
69486: b_c_meta=$shared_c_meta
69487: b_cxx_meta=$shared_cxx_meta
69488: b_c_post=$shared_c_post
69489: b_cxx_post=$shared_cxx_post
69490: b_lo=$shared_lo
69491:
69492:
69493: old_IFS=$IFS
69494: for ac_src in pdo.c pdo_dbh.c pdo_stmt.c pdo_sql_parser.c pdo_sqlstate.c; do
69495:
69496: IFS=.
69497: set $ac_src
69498: ac_obj=$1
69499: IFS=$old_IFS
69500:
69501: shared_objects_pdo="$shared_objects_pdo $ac_bdir$ac_obj.lo"
69502:
69503: case $ac_src in
69504: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
69505: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
69506: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
69507: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
69508: esac
69509:
69510: cat >>Makefile.objects<<EOF
69511: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
69512: $ac_comp
69513: EOF
69514: done
69515:
69516: case $host_alias in
69517: *netware*)
69518:
69519: install_modules="install-modules"
69520:
69521: case $host_alias in
69522: *aix*)
69523: suffix=so
69524: 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'
69525: ;;
69526: *netware*)
69527: suffix=nlm
69528: link_cmd='$(LIBTOOL) --mode=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)'
69529: ;;
69530: *)
69531: suffix=la
69532: link_cmd='$(LIBTOOL) --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)'
69533: ;;
69534: esac
69535:
69536: if test "x" = "xyes"; then
69537: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phppdo.$suffix"
69538: else
69539: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phppdo.$suffix"
69540: fi
69541:
69542: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo"
69543:
69544: cat >>Makefile.objects<<EOF
69545: \$(phplibdir)/phppdo.$suffix: $ext_builddir/phppdo.$suffix
69546: \$(LIBTOOL) --mode=install cp $ext_builddir/phppdo.$suffix \$(phplibdir)
69547:
69548: $ext_builddir/phppdo.$suffix: \$(shared_objects_pdo) \$(PHPPDO_SHARED_DEPENDENCIES)
69549: $link_cmd
69550:
69551: EOF
69552:
69553: ;;
69554: *)
69555:
69556: install_modules="install-modules"
69557:
69558: case $host_alias in
69559: *aix*)
69560: suffix=so
69561: 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'
69562: ;;
69563: *netware*)
69564: suffix=nlm
69565: link_cmd='$(LIBTOOL) --mode=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)'
69566: ;;
69567: *)
69568: suffix=la
69569: link_cmd='$(LIBTOOL) --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)'
69570: ;;
69571: esac
69572:
69573: if test "x" = "xyes"; then
69574: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/pdo.$suffix"
69575: else
69576: PHP_MODULES="$PHP_MODULES \$(phplibdir)/pdo.$suffix"
69577: fi
69578:
69579: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo"
69580:
69581: cat >>Makefile.objects<<EOF
69582: \$(phplibdir)/pdo.$suffix: $ext_builddir/pdo.$suffix
69583: \$(LIBTOOL) --mode=install cp $ext_builddir/pdo.$suffix \$(phplibdir)
69584:
69585: $ext_builddir/pdo.$suffix: \$(shared_objects_pdo) \$(PDO_SHARED_DEPENDENCIES)
69586: $link_cmd
69587:
69588: EOF
69589:
69590: ;;
69591: esac
69592:
69593: cat >>confdefs.h <<_ACEOF
69594: #define COMPILE_DL_PDO 1
69595: _ACEOF
69596:
69597: fi
69598: fi
69599:
69600: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
69601: PHP_PDO_SHARED=no
69602:
69603:
69604: case ext/pdo in
69605: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
69606: /*) ac_srcdir=`echo "ext/pdo"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
69607: *) ac_srcdir="$abs_srcdir/ext/pdo/"; ac_bdir="ext/pdo/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
69608: esac
69609:
69610:
69611:
69612: b_c_pre=$php_c_pre
69613: b_cxx_pre=$php_cxx_pre
69614: b_c_meta=$php_c_meta
69615: b_cxx_meta=$php_cxx_meta
69616: b_c_post=$php_c_post
69617: b_cxx_post=$php_cxx_post
69618: b_lo=$php_lo
69619:
69620:
69621: old_IFS=$IFS
69622: for ac_src in pdo.c pdo_dbh.c pdo_stmt.c pdo_sql_parser.c pdo_sqlstate.c; do
69623:
69624: IFS=.
69625: set $ac_src
69626: ac_obj=$1
69627: IFS=$old_IFS
69628:
69629: PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
69630:
69631: case $ac_src in
69632: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
69633: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
69634: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
69635: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
69636: esac
69637:
69638: cat >>Makefile.objects<<EOF
69639: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
69640: $ac_comp
69641: EOF
69642: done
69643:
69644:
69645:
69646:
69647: case ext/pdo in
69648: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
69649: /*) ac_srcdir=`echo "ext/pdo"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
69650: *) ac_srcdir="$abs_srcdir/ext/pdo/"; ac_bdir="ext/pdo/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
69651: esac
69652:
69653:
69654:
69655: b_c_pre=$php_c_pre
69656: b_cxx_pre=$php_cxx_pre
69657: b_c_meta=$php_c_meta
69658: b_cxx_meta=$php_cxx_meta
69659: b_c_post=$php_c_post
69660: b_cxx_post=$php_cxx_post
69661: b_lo=$php_lo
69662:
69663:
69664: old_IFS=$IFS
69665: for ac_src in pdo.c pdo_dbh.c pdo_stmt.c pdo_sql_parser.c pdo_sqlstate.c; do
69666:
69667: IFS=.
69668: set $ac_src
69669: ac_obj=$1
69670: IFS=$old_IFS
69671:
69672: PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo"
69673:
69674: case $ac_src in
69675: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
69676: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
69677: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
69678: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
69679: esac
69680:
69681: cat >>Makefile.objects<<EOF
69682: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
69683: $ac_comp
69684: EOF
69685: done
69686:
69687:
69688:
69689:
69690: case ext/pdo in
69691: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
69692: /*) ac_srcdir=`echo "ext/pdo"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
69693: *) ac_srcdir="$abs_srcdir/ext/pdo/"; ac_bdir="ext/pdo/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
69694: esac
69695:
69696:
69697:
69698: b_c_pre=$php_c_pre
69699: b_cxx_pre=$php_cxx_pre
69700: b_c_meta=$php_c_meta
69701: b_cxx_meta=$php_cxx_meta
69702: b_c_post=$php_c_post
69703: b_cxx_post=$php_cxx_post
69704: b_lo=$php_lo
69705:
69706:
69707: old_IFS=$IFS
69708: for ac_src in pdo.c pdo_dbh.c pdo_stmt.c pdo_sql_parser.c pdo_sqlstate.c; do
69709:
69710: IFS=.
69711: set $ac_src
69712: ac_obj=$1
69713: IFS=$old_IFS
69714:
69715: PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo"
69716:
69717: case $ac_src in
69718: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
69719: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
69720: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
69721: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
69722: esac
69723:
69724: cat >>Makefile.objects<<EOF
69725: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
69726: $ac_comp
69727: EOF
69728: done
69729:
69730:
69731: EXT_CLI_STATIC="$EXT_CLI_STATIC pdo"
69732: fi
69733:
69734:
69735: BUILD_DIR="$BUILD_DIR $ext_builddir"
69736:
69737:
69738:
69739: if test "$ext_builddir" = "."; then
69740: PHP_PECL_EXTENSION=pdo
69741:
69742: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
69743:
69744: fi
69745:
69746:
69747:
69748: am_i_shared=$PHP_PDO_SHARED
69749: is_it_shared=$PHP_SPL_SHARED
69750: is_it_enabled=$PHP_SPL
69751: if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
69752: as_fn_error $? "
69753: You've configured extension pdo to build statically, but it
69754: depends on extension spl, which you've configured to build shared.
69755: You either need to build pdo shared or build spl statically for the
69756: build to be successful.
69757: " "$LINENO" 5
69758: fi
69759:
69760:
69761:
69762:
69763:
69764:
69765: header_path=ext/pdo
69766: for header_file in php_pdo.h php_pdo_driver.h; do
69767: hp_hf="$header_path/$header_file"
69768:
69769:
69770: unique=`echo $hp_hf|$SED 's/[^a-zA-Z0-9]/_/g'`
69771:
69772: cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
69773: if test -n "$unique" && test "`eval $cmd`" = "" ; then
69774: eval "INSTALLHEADERS$unique=set"
69775:
69776: INSTALL_HEADERS="$INSTALL_HEADERS $hp_hf"
69777:
69778: fi
69779:
69780: done
69781:
69782:
69783:
69784:
69785:
69786: src=$ext_srcdir/Makefile.frag
69787: ac_srcdir=$ext_srcdir
69788: ac_builddir=$ext_builddir
69789: test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments
69790:
69791: fi
69792:
69793:
69794:
69795:
69796: php_with_pdo_dblib=no
69797:
69798: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO_DBLIB support via FreeTDS" >&5
69799: $as_echo_n "checking for PDO_DBLIB support via FreeTDS... " >&6; }
69800:
69801: # Check whether --with-pdo-dblib was given.
69802: if test "${with_pdo_dblib+set}" = set; then :
69803: withval=$with_pdo_dblib; PHP_PDO_DBLIB=$withval
69804: else
69805:
69806: PHP_PDO_DBLIB=no
69807: test "$PHP_ENABLE_ALL" && PHP_PDO_DBLIB=$PHP_ENABLE_ALL
69808:
69809: fi
69810:
69811:
69812:
69813: ext_output="yes, shared"
69814: ext_shared=yes
69815: case $PHP_PDO_DBLIB in
69816: shared,*)
69817: PHP_PDO_DBLIB=`echo "$PHP_PDO_DBLIB"|$SED 's/^shared,//'`
69818: ;;
69819: shared)
69820: PHP_PDO_DBLIB=yes
69821: ;;
69822: no)
69823: ext_output=no
69824: ext_shared=no
69825: ;;
69826: *)
69827: ext_output=yes
69828: ext_shared=no
69829: ;;
69830: esac
69831:
69832:
69833:
69834: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
69835: $as_echo "$ext_output" >&6; }
69836:
69837:
69838:
69839:
69840: if test "$PHP_PDO_DBLIB" != "no"; then
69841:
69842: if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then
69843: as_fn_error $? "PDO is not enabled! Add --enable-pdo to your configure line." "$LINENO" 5
69844: fi
69845:
69846: if test "$PHP_PDO_DBLIB" = "yes"; then
69847:
69848: for i in /usr/local /usr; do
69849: if test -f $i/include/sybdb.h; then
69850: PDO_FREETDS_INSTALLATION_DIR=$i
69851: PDO_FREETDS_INCLUDE_DIR=$i/include
69852: break
69853: elif test -f $i/include/freetds/sybdb.h; then
69854: PDO_FREETDS_INSTALLATION_DIR=$i
69855: PDO_FREETDS_INCLUDE_DIR=$i/include/freetds
69856: break;
69857: fi
69858: done
69859:
69860: if test -z "$PDO_FREETDS_INSTALLATION_DIR"; then
69861: as_fn_error $? "Cannot find FreeTDS in known installation directories" "$LINENO" 5
69862: fi
69863:
69864: elif test "$PHP_PDO_DBLIB" != "no"; then
69865:
69866: if test -f $PHP_PDO_DBLIB/include/sybdb.h; then
69867: PDO_FREETDS_INSTALLATION_DIR=$PHP_PDO_DBLIB
69868: PDO_FREETDS_INCLUDE_DIR=$PHP_PDO_DBLIB/include
69869: elif test -f $PHP_PDO_DBLIB/include/freetds/sybdb.h; then
69870: PDO_FREETDS_INSTALLATION_DIR=$PHP_PDO_DBLIB
69871: PDO_FREETDS_INCLUDE_DIR=$PHP_PDO_DBLIB/include/freetds
69872: else
69873: as_fn_error $? "Directory $PHP_PDO_DBLIB is not a FreeTDS installation directory" "$LINENO" 5
69874: fi
69875: fi
69876:
69877: if test "x$PHP_LIBDIR" = "x" ; then
69878: PHP_LIBDIR=lib
69879: fi
69880:
69881: if test ! -r "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.a" && test ! -r "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.so"; then
69882: as_fn_error $? "Could not find $PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.a|so" "$LINENO" 5
69883: fi
69884:
69885:
69886: if test "$PDO_FREETDS_INCLUDE_DIR" != "/usr/include"; then
69887:
69888: if test -z "$PDO_FREETDS_INCLUDE_DIR" || echo "$PDO_FREETDS_INCLUDE_DIR" | grep '^/' >/dev/null ; then
69889: ai_p=$PDO_FREETDS_INCLUDE_DIR
69890: else
69891:
69892: ep_dir="`echo $PDO_FREETDS_INCLUDE_DIR|$SED 's%/*[^/][^/]*/*$%%'`"
69893:
69894: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
69895: ai_p="$ep_realdir/`basename \"$PDO_FREETDS_INCLUDE_DIR\"`"
69896: fi
69897:
69898:
69899:
69900: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
69901:
69902: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
69903: if test -n "$unique" && test "`eval $cmd`" = "" ; then
69904: eval "INCLUDEPATH$unique=set"
69905:
69906: if test ""; then
69907: INCLUDES="-I$ai_p $INCLUDES"
69908: else
69909: INCLUDES="$INCLUDES -I$ai_p"
69910: fi
69911:
69912: fi
69913:
69914: fi
69915:
69916:
69917:
69918: if test "$ext_shared" = "yes"; then
69919: PDO_DBLIB_SHARED_LIBADD="-lsybdb $PDO_DBLIB_SHARED_LIBADD"
69920: if test -n "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR"; then
69921:
69922: if test "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" != "/usr/lib"; then
69923:
69924: if test -z "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" || echo "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
69925: ai_p=$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR
69926: else
69927:
69928: ep_dir="`echo $PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
69929:
69930: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
69931: ai_p="$ep_realdir/`basename \"$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR\"`"
69932: fi
69933:
69934:
69935: if test "$ext_shared" = "yes"; then
69936: PDO_DBLIB_SHARED_LIBADD="-L$ai_p $PDO_DBLIB_SHARED_LIBADD"
69937: test -n "$ld_runpath_switch" && PDO_DBLIB_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_DBLIB_SHARED_LIBADD"
69938: else
69939:
69940:
69941:
69942: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
69943:
69944: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
69945: if test -n "$unique" && test "`eval $cmd`" = "" ; then
69946: eval "LIBPATH$unique=set"
69947:
69948: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
69949: LDFLAGS="$LDFLAGS -L$ai_p"
69950: PHP_RPATHS="$PHP_RPATHS $ai_p"
69951:
69952: fi
69953:
69954:
69955: fi
69956:
69957: fi
69958:
69959: fi
69960: else
69961:
69962:
69963: if test -n "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR"; then
69964:
69965: if test "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" != "/usr/lib"; then
69966:
69967: if test -z "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" || echo "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
69968: ai_p=$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR
69969: else
69970:
69971: ep_dir="`echo $PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
69972:
69973: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
69974: ai_p="$ep_realdir/`basename \"$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR\"`"
69975: fi
69976:
69977:
69978:
69979:
69980:
69981: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
69982:
69983: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
69984: if test -n "$unique" && test "`eval $cmd`" = "" ; then
69985: eval "LIBPATH$unique=set"
69986:
69987: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
69988: LDFLAGS="$LDFLAGS -L$ai_p"
69989: PHP_RPATHS="$PHP_RPATHS $ai_p"
69990:
69991: fi
69992:
69993:
69994:
69995: fi
69996:
69997: fi
69998:
69999:
70000: case sybdb in
70001: c|c_r|pthread*) ;;
70002: *)
70003: LIBS="-lsybdb $LIBS"
70004: ;;
70005: esac
70006:
70007:
70008:
70009:
70010: fi
70011:
70012:
70013:
70014:
70015:
70016: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5
70017: $as_echo_n "checking for PDO includes... " >&6; }
70018: if ${pdo_inc_path+:} false; then :
70019: $as_echo_n "(cached) " >&6
70020: else
70021:
70022: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5
70023: $as_echo_n "checking for PDO includes... " >&6; }
70024: if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then
70025: pdo_inc_path=$abs_srcdir/ext
70026: elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then
70027: pdo_inc_path=$abs_srcdir/ext
70028: elif test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then
70029: pdo_inc_path=$prefix/include/php/ext
70030: fi
70031:
70032: fi
70033: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pdo_inc_path" >&5
70034: $as_echo "$pdo_inc_path" >&6; }
70035: if test -n "$pdo_inc_path"; then
70036: :
70037: else
70038: as_fn_error $? "Cannot find php_pdo_driver.h." "$LINENO" 5
70039: fi
70040:
70041:
70042:
70043: PDO_DBLIB_DEFS="-DPDO_DBLIB_FLAVOUR=\\\"freetds\\\""
70044:
70045: ext_builddir=ext/pdo_dblib
70046: ext_srcdir=$abs_srcdir/ext/pdo_dblib
70047:
70048: ac_extra=`echo "-I$pdo_inc_path $PDO_DBLIB_DEFS"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
70049:
70050: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
70051: PHP_PDO_DBLIB_SHARED=no
70052:
70053:
70054: case ext/pdo_dblib in
70055: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
70056: /*) ac_srcdir=`echo "ext/pdo_dblib"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
70057: *) ac_srcdir="$abs_srcdir/ext/pdo_dblib/"; ac_bdir="ext/pdo_dblib/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
70058: esac
70059:
70060:
70061:
70062: b_c_pre=$php_c_pre
70063: b_cxx_pre=$php_cxx_pre
70064: b_c_meta=$php_c_meta
70065: b_cxx_meta=$php_cxx_meta
70066: b_c_post=$php_c_post
70067: b_cxx_post=$php_cxx_post
70068: b_lo=$php_lo
70069:
70070:
70071: old_IFS=$IFS
70072: for ac_src in pdo_dblib.c dblib_driver.c dblib_stmt.c; do
70073:
70074: IFS=.
70075: set $ac_src
70076: ac_obj=$1
70077: IFS=$old_IFS
70078:
70079: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
70080:
70081: case $ac_src in
70082: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
70083: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
70084: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
70085: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
70086: esac
70087:
70088: cat >>Makefile.objects<<EOF
70089: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
70090: $ac_comp
70091: EOF
70092: done
70093:
70094:
70095: EXT_STATIC="$EXT_STATIC pdo_dblib"
70096: if test "$ext_shared" != "nocli"; then
70097: EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_dblib"
70098: fi
70099: else
70100: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
70101: PHP_PDO_DBLIB_SHARED=yes
70102:
70103: case ext/pdo_dblib in
70104: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
70105: /*) ac_srcdir=`echo "ext/pdo_dblib"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
70106: *) ac_srcdir="$abs_srcdir/ext/pdo_dblib/"; ac_bdir="ext/pdo_dblib/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
70107: esac
70108:
70109:
70110:
70111: b_c_pre=$shared_c_pre
70112: b_cxx_pre=$shared_cxx_pre
70113: b_c_meta=$shared_c_meta
70114: b_cxx_meta=$shared_cxx_meta
70115: b_c_post=$shared_c_post
70116: b_cxx_post=$shared_cxx_post
70117: b_lo=$shared_lo
70118:
70119:
70120: old_IFS=$IFS
70121: for ac_src in pdo_dblib.c dblib_driver.c dblib_stmt.c; do
70122:
70123: IFS=.
70124: set $ac_src
70125: ac_obj=$1
70126: IFS=$old_IFS
70127:
70128: shared_objects_pdo_dblib="$shared_objects_pdo_dblib $ac_bdir$ac_obj.lo"
70129:
70130: case $ac_src in
70131: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
70132: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
70133: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
70134: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
70135: esac
70136:
70137: cat >>Makefile.objects<<EOF
70138: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
70139: $ac_comp
70140: EOF
70141: done
70142:
70143: case $host_alias in
70144: *netware*)
70145:
70146: install_modules="install-modules"
70147:
70148: case $host_alias in
70149: *aix*)
70150: suffix=so
70151: 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'
70152: ;;
70153: *netware*)
70154: suffix=nlm
70155: link_cmd='$(LIBTOOL) --mode=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)'
70156: ;;
70157: *)
70158: suffix=la
70159: link_cmd='$(LIBTOOL) --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)'
70160: ;;
70161: esac
70162:
70163: if test "x" = "xyes"; then
70164: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phppdo_dblib.$suffix"
70165: else
70166: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phppdo_dblib.$suffix"
70167: fi
70168:
70169: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo_dblib"
70170:
70171: cat >>Makefile.objects<<EOF
70172: \$(phplibdir)/phppdo_dblib.$suffix: $ext_builddir/phppdo_dblib.$suffix
70173: \$(LIBTOOL) --mode=install cp $ext_builddir/phppdo_dblib.$suffix \$(phplibdir)
70174:
70175: $ext_builddir/phppdo_dblib.$suffix: \$(shared_objects_pdo_dblib) \$(PHPPDO_DBLIB_SHARED_DEPENDENCIES)
70176: $link_cmd
70177:
70178: EOF
70179:
70180: ;;
70181: *)
70182:
70183: install_modules="install-modules"
70184:
70185: case $host_alias in
70186: *aix*)
70187: suffix=so
70188: 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'
70189: ;;
70190: *netware*)
70191: suffix=nlm
70192: link_cmd='$(LIBTOOL) --mode=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)'
70193: ;;
70194: *)
70195: suffix=la
70196: link_cmd='$(LIBTOOL) --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)'
70197: ;;
70198: esac
70199:
70200: if test "x" = "xyes"; then
70201: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/pdo_dblib.$suffix"
70202: else
70203: PHP_MODULES="$PHP_MODULES \$(phplibdir)/pdo_dblib.$suffix"
70204: fi
70205:
70206: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo_dblib"
70207:
70208: cat >>Makefile.objects<<EOF
70209: \$(phplibdir)/pdo_dblib.$suffix: $ext_builddir/pdo_dblib.$suffix
70210: \$(LIBTOOL) --mode=install cp $ext_builddir/pdo_dblib.$suffix \$(phplibdir)
70211:
70212: $ext_builddir/pdo_dblib.$suffix: \$(shared_objects_pdo_dblib) \$(PDO_DBLIB_SHARED_DEPENDENCIES)
70213: $link_cmd
70214:
70215: EOF
70216:
70217: ;;
70218: esac
70219:
70220: cat >>confdefs.h <<_ACEOF
70221: #define COMPILE_DL_PDO_DBLIB 1
70222: _ACEOF
70223:
70224: fi
70225: fi
70226:
70227: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
70228: PHP_PDO_DBLIB_SHARED=no
70229:
70230:
70231: case ext/pdo_dblib in
70232: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
70233: /*) ac_srcdir=`echo "ext/pdo_dblib"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
70234: *) ac_srcdir="$abs_srcdir/ext/pdo_dblib/"; ac_bdir="ext/pdo_dblib/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
70235: esac
70236:
70237:
70238:
70239: b_c_pre=$php_c_pre
70240: b_cxx_pre=$php_cxx_pre
70241: b_c_meta=$php_c_meta
70242: b_cxx_meta=$php_cxx_meta
70243: b_c_post=$php_c_post
70244: b_cxx_post=$php_cxx_post
70245: b_lo=$php_lo
70246:
70247:
70248: old_IFS=$IFS
70249: for ac_src in pdo_dblib.c dblib_driver.c dblib_stmt.c; do
70250:
70251: IFS=.
70252: set $ac_src
70253: ac_obj=$1
70254: IFS=$old_IFS
70255:
70256: PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
70257:
70258: case $ac_src in
70259: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
70260: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
70261: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
70262: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
70263: esac
70264:
70265: cat >>Makefile.objects<<EOF
70266: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
70267: $ac_comp
70268: EOF
70269: done
70270:
70271:
70272:
70273:
70274: case ext/pdo_dblib in
70275: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
70276: /*) ac_srcdir=`echo "ext/pdo_dblib"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
70277: *) ac_srcdir="$abs_srcdir/ext/pdo_dblib/"; ac_bdir="ext/pdo_dblib/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
70278: esac
70279:
70280:
70281:
70282: b_c_pre=$php_c_pre
70283: b_cxx_pre=$php_cxx_pre
70284: b_c_meta=$php_c_meta
70285: b_cxx_meta=$php_cxx_meta
70286: b_c_post=$php_c_post
70287: b_cxx_post=$php_cxx_post
70288: b_lo=$php_lo
70289:
70290:
70291: old_IFS=$IFS
70292: for ac_src in pdo_dblib.c dblib_driver.c dblib_stmt.c; do
70293:
70294: IFS=.
70295: set $ac_src
70296: ac_obj=$1
70297: IFS=$old_IFS
70298:
70299: PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo"
70300:
70301: case $ac_src in
70302: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
70303: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
70304: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
70305: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
70306: esac
70307:
70308: cat >>Makefile.objects<<EOF
70309: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
70310: $ac_comp
70311: EOF
70312: done
70313:
70314:
70315:
70316:
70317: case ext/pdo_dblib in
70318: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
70319: /*) ac_srcdir=`echo "ext/pdo_dblib"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
70320: *) ac_srcdir="$abs_srcdir/ext/pdo_dblib/"; ac_bdir="ext/pdo_dblib/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
70321: esac
70322:
70323:
70324:
70325: b_c_pre=$php_c_pre
70326: b_cxx_pre=$php_cxx_pre
70327: b_c_meta=$php_c_meta
70328: b_cxx_meta=$php_cxx_meta
70329: b_c_post=$php_c_post
70330: b_cxx_post=$php_cxx_post
70331: b_lo=$php_lo
70332:
70333:
70334: old_IFS=$IFS
70335: for ac_src in pdo_dblib.c dblib_driver.c dblib_stmt.c; do
70336:
70337: IFS=.
70338: set $ac_src
70339: ac_obj=$1
70340: IFS=$old_IFS
70341:
70342: PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo"
70343:
70344: case $ac_src in
70345: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
70346: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
70347: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
70348: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
70349: esac
70350:
70351: cat >>Makefile.objects<<EOF
70352: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
70353: $ac_comp
70354: EOF
70355: done
70356:
70357:
70358: EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_dblib"
70359: fi
70360:
70361:
70362: BUILD_DIR="$BUILD_DIR $ext_builddir"
70363:
70364:
70365:
70366: if test "$ext_builddir" = "."; then
70367: PHP_PECL_EXTENSION=pdo_dblib
70368:
70369: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
70370:
70371: fi
70372:
70373: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_addr in -ldnet_stub" >&5
70374: $as_echo_n "checking for dnet_addr in -ldnet_stub... " >&6; }
70375: if ${ac_cv_lib_dnet_stub_dnet_addr+:} false; then :
70376: $as_echo_n "(cached) " >&6
70377: else
70378: ac_check_lib_save_LIBS=$LIBS
70379: LIBS="-ldnet_stub $LIBS"
70380: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
70381: /* end confdefs.h. */
70382:
70383: /* Override any GCC internal prototype to avoid an error.
70384: Use char because int might match the return type of a GCC
70385: builtin and then its argument prototype would still apply. */
70386: #ifdef __cplusplus
70387: extern "C"
70388: #endif
70389: char dnet_addr ();
70390: int
70391: main ()
70392: {
70393: return dnet_addr ();
70394: ;
70395: return 0;
70396: }
70397: _ACEOF
70398: if ac_fn_c_try_link "$LINENO"; then :
70399: ac_cv_lib_dnet_stub_dnet_addr=yes
70400: else
70401: ac_cv_lib_dnet_stub_dnet_addr=no
70402: fi
70403: rm -f core conftest.err conftest.$ac_objext \
70404: conftest$ac_exeext conftest.$ac_ext
70405: LIBS=$ac_check_lib_save_LIBS
70406: fi
70407: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_addr" >&5
70408: $as_echo "$ac_cv_lib_dnet_stub_dnet_addr" >&6; }
70409: if test "x$ac_cv_lib_dnet_stub_dnet_addr" = xyes; then :
70410:
70411:
70412: if test "$ext_shared" = "yes"; then
70413: PDO_DBLIB_SHARED_LIBADD="-ldnet_stub $PDO_DBLIB_SHARED_LIBADD"
70414: if test -n ""; then
70415:
70416: if test "" != "/usr/$PHP_LIBDIR" && test "" != "/usr/lib"; then
70417:
70418: if test -z "" || echo "" | grep '^/' >/dev/null ; then
70419: ai_p=
70420: else
70421:
70422: ep_dir="`echo |$SED 's%/*[^/][^/]*/*$%%'`"
70423:
70424: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
70425: ai_p="$ep_realdir/`basename \"\"`"
70426: fi
70427:
70428:
70429: if test "$ext_shared" = "yes"; then
70430: PDO_DBLIB_SHARED_LIBADD="-L$ai_p $PDO_DBLIB_SHARED_LIBADD"
70431: test -n "$ld_runpath_switch" && PDO_DBLIB_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_DBLIB_SHARED_LIBADD"
70432: else
70433:
70434:
70435:
70436: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
70437:
70438: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
70439: if test -n "$unique" && test "`eval $cmd`" = "" ; then
70440: eval "LIBPATH$unique=set"
70441:
70442: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
70443: LDFLAGS="$LDFLAGS -L$ai_p"
70444: PHP_RPATHS="$PHP_RPATHS $ai_p"
70445:
70446: fi
70447:
70448:
70449: fi
70450:
70451: fi
70452:
70453: fi
70454: else
70455:
70456:
70457: if test -n ""; then
70458:
70459: if test "" != "/usr/$PHP_LIBDIR" && test "" != "/usr/lib"; then
70460:
70461: if test -z "" || echo "" | grep '^/' >/dev/null ; then
70462: ai_p=
70463: else
70464:
70465: ep_dir="`echo |$SED 's%/*[^/][^/]*/*$%%'`"
70466:
70467: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
70468: ai_p="$ep_realdir/`basename \"\"`"
70469: fi
70470:
70471:
70472:
70473:
70474:
70475: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
70476:
70477: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
70478: if test -n "$unique" && test "`eval $cmd`" = "" ; then
70479: eval "LIBPATH$unique=set"
70480:
70481: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
70482: LDFLAGS="$LDFLAGS -L$ai_p"
70483: PHP_RPATHS="$PHP_RPATHS $ai_p"
70484:
70485: fi
70486:
70487:
70488:
70489: fi
70490:
70491: fi
70492:
70493:
70494: case dnet_stub in
70495: c|c_r|pthread*) ;;
70496: *)
70497: LIBS="-ldnet_stub $LIBS"
70498: ;;
70499: esac
70500:
70501:
70502:
70503:
70504: fi
70505:
70506:
70507:
70508: $as_echo "#define HAVE_LIBDNET_STUB 1" >>confdefs.h
70509:
70510:
70511: fi
70512:
70513:
70514: $as_echo "#define HAVE_PDO_DBLIB 1" >>confdefs.h
70515:
70516:
70517: $as_echo "#define HAVE_FREETDS 1" >>confdefs.h
70518:
70519:
70520: PHP_VAR_SUBST="$PHP_VAR_SUBST PDO_DBLIB_SHARED_LIBADD"
70521:
70522:
70523:
70524:
70525: am_i_shared=$PHP_PDO_DBLIB_SHARED
70526: is_it_shared=$PHP_PDO_SHARED
70527: is_it_enabled=$PHP_PDO
70528: if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
70529: as_fn_error $? "
70530: You've configured extension pdo_dblib to build statically, but it
70531: depends on extension pdo, which you've configured to build shared.
70532: You either need to build pdo_dblib shared or build pdo statically for the
70533: build to be successful.
70534: " "$LINENO" 5
70535: fi
70536:
70537:
70538: fi
70539:
70540:
70541:
70542: php_with_pdo_firebird=no
70543:
70544: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Firebird support for PDO" >&5
70545: $as_echo_n "checking for Firebird support for PDO... " >&6; }
70546:
70547: # Check whether --with-pdo-firebird was given.
70548: if test "${with_pdo_firebird+set}" = set; then :
70549: withval=$with_pdo_firebird; PHP_PDO_FIREBIRD=$withval
70550: else
70551:
70552: PHP_PDO_FIREBIRD=no
70553: test "$PHP_ENABLE_ALL" && PHP_PDO_FIREBIRD=$PHP_ENABLE_ALL
70554:
70555: fi
70556:
70557:
70558:
70559: ext_output="yes, shared"
70560: ext_shared=yes
70561: case $PHP_PDO_FIREBIRD in
70562: shared,*)
70563: PHP_PDO_FIREBIRD=`echo "$PHP_PDO_FIREBIRD"|$SED 's/^shared,//'`
70564: ;;
70565: shared)
70566: PHP_PDO_FIREBIRD=yes
70567: ;;
70568: no)
70569: ext_output=no
70570: ext_shared=no
70571: ;;
70572: *)
70573: ext_output=yes
70574: ext_shared=no
70575: ;;
70576: esac
70577:
70578:
70579:
70580: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
70581: $as_echo "$ext_output" >&6; }
70582:
70583:
70584:
70585:
70586: if test "$PHP_PDO_FIREBIRD" != "no"; then
70587:
70588: if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then
70589: as_fn_error $? "PDO is not enabled! Add --enable-pdo to your configure line." "$LINENO" 5
70590: fi
70591:
70592: if test "$PHP_PDO_FIREBIRD" = "yes"; then
70593: FIREBIRD_INCDIR=
70594: FIREBIRD_LIBDIR=
70595: FIREBIRD_LIBDIR_FLAG=
70596: else
70597: FIREBIRD_INCDIR=$PHP_PDO_FIREBIRD/include
70598: FIREBIRD_LIBDIR=$PHP_PDO_FIREBIRD/$PHP_LIBDIR
70599: FIREBIRD_LIBDIR_FLAG=-L$FIREBIRD_LIBDIR
70600: fi
70601:
70602:
70603: save_old_LDFLAGS=$LDFLAGS
70604: ac_stuff="
70605: $FIREBIRD_LIBDIR_FLAG
70606: "
70607:
70608: save_ext_shared=$ext_shared
70609: ext_shared=yes
70610:
70611: for ac_i in $ac_stuff; do
70612: case $ac_i in
70613: -pthread)
70614: if test "$ext_shared" = "yes"; then
70615: LDFLAGS="$LDFLAGS -pthread"
70616: else
70617:
70618:
70619: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
70620:
70621: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
70622: if test -n "$unique" && test "`eval $cmd`" = "" ; then
70623: eval "EXTRA_LDFLAGS$unique=set"
70624: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
70625: fi
70626:
70627: fi
70628: ;;
70629: -l*)
70630: ac_ii=`echo $ac_i|cut -c 3-`
70631:
70632:
70633: case $ac_ii in
70634: c|c_r|pthread*) ;;
70635: *)
70636: if test "$ext_shared" = "yes"; then
70637: LDFLAGS="$LDFLAGS -l$ac_ii"
70638: else
70639:
70640:
70641: case $ac_ii in
70642: c|c_r|pthread*) ;;
70643: *)
70644: LIBS="$LIBS -l$ac_ii"
70645: ;;
70646: esac
70647:
70648:
70649: fi
70650: ;;
70651: esac
70652:
70653:
70654: ;;
70655: -L*)
70656: ac_ii=`echo $ac_i|cut -c 3-`
70657:
70658: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
70659:
70660: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
70661: ai_p=$ac_ii
70662: else
70663:
70664: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
70665:
70666: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
70667: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
70668: fi
70669:
70670:
70671: if test "$ext_shared" = "yes"; then
70672: LDFLAGS="-L$ai_p $LDFLAGS"
70673: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
70674: else
70675:
70676:
70677:
70678: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
70679:
70680: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
70681: if test -n "$unique" && test "`eval $cmd`" = "" ; then
70682: eval "LIBPATH$unique=set"
70683:
70684: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
70685: LDFLAGS="$LDFLAGS -L$ai_p"
70686: PHP_RPATHS="$PHP_RPATHS $ai_p"
70687:
70688: fi
70689:
70690:
70691: fi
70692:
70693: fi
70694:
70695: ;;
70696: esac
70697: done
70698:
70699: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isc_detach_database in -lfbclient" >&5
70700: $as_echo_n "checking for isc_detach_database in -lfbclient... " >&6; }
70701: if ${ac_cv_lib_fbclient_isc_detach_database+:} false; then :
70702: $as_echo_n "(cached) " >&6
70703: else
70704: ac_check_lib_save_LIBS=$LIBS
70705: LIBS="-lfbclient $LIBS"
70706: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
70707: /* end confdefs.h. */
70708:
70709: /* Override any GCC internal prototype to avoid an error.
70710: Use char because int might match the return type of a GCC
70711: builtin and then its argument prototype would still apply. */
70712: #ifdef __cplusplus
70713: extern "C"
70714: #endif
70715: char isc_detach_database ();
70716: int
70717: main ()
70718: {
70719: return isc_detach_database ();
70720: ;
70721: return 0;
70722: }
70723: _ACEOF
70724: if ac_fn_c_try_link "$LINENO"; then :
70725: ac_cv_lib_fbclient_isc_detach_database=yes
70726: else
70727: ac_cv_lib_fbclient_isc_detach_database=no
70728: fi
70729: rm -f core conftest.err conftest.$ac_objext \
70730: conftest$ac_exeext conftest.$ac_ext
70731: LIBS=$ac_check_lib_save_LIBS
70732: fi
70733: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fbclient_isc_detach_database" >&5
70734: $as_echo "$ac_cv_lib_fbclient_isc_detach_database" >&6; }
70735: if test "x$ac_cv_lib_fbclient_isc_detach_database" = xyes; then :
70736:
70737: LDFLAGS=$save_old_LDFLAGS
70738: ext_shared=$save_ext_shared
70739:
70740: FIREBIRD_LIBNAME=fbclient
70741:
70742:
70743: else
70744:
70745: LDFLAGS=$save_old_LDFLAGS
70746: ext_shared=$save_ext_shared
70747: unset ac_cv_lib_fbclient_isc_detach_database
70748:
70749:
70750: save_old_LDFLAGS=$LDFLAGS
70751: ac_stuff="
70752: $FIREBIRD_LIBDIR_FLAG
70753: "
70754:
70755: save_ext_shared=$ext_shared
70756: ext_shared=yes
70757:
70758: for ac_i in $ac_stuff; do
70759: case $ac_i in
70760: -pthread)
70761: if test "$ext_shared" = "yes"; then
70762: LDFLAGS="$LDFLAGS -pthread"
70763: else
70764:
70765:
70766: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
70767:
70768: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
70769: if test -n "$unique" && test "`eval $cmd`" = "" ; then
70770: eval "EXTRA_LDFLAGS$unique=set"
70771: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
70772: fi
70773:
70774: fi
70775: ;;
70776: -l*)
70777: ac_ii=`echo $ac_i|cut -c 3-`
70778:
70779:
70780: case $ac_ii in
70781: c|c_r|pthread*) ;;
70782: *)
70783: if test "$ext_shared" = "yes"; then
70784: LDFLAGS="$LDFLAGS -l$ac_ii"
70785: else
70786:
70787:
70788: case $ac_ii in
70789: c|c_r|pthread*) ;;
70790: *)
70791: LIBS="$LIBS -l$ac_ii"
70792: ;;
70793: esac
70794:
70795:
70796: fi
70797: ;;
70798: esac
70799:
70800:
70801: ;;
70802: -L*)
70803: ac_ii=`echo $ac_i|cut -c 3-`
70804:
70805: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
70806:
70807: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
70808: ai_p=$ac_ii
70809: else
70810:
70811: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
70812:
70813: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
70814: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
70815: fi
70816:
70817:
70818: if test "$ext_shared" = "yes"; then
70819: LDFLAGS="-L$ai_p $LDFLAGS"
70820: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
70821: else
70822:
70823:
70824:
70825: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
70826:
70827: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
70828: if test -n "$unique" && test "`eval $cmd`" = "" ; then
70829: eval "LIBPATH$unique=set"
70830:
70831: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
70832: LDFLAGS="$LDFLAGS -L$ai_p"
70833: PHP_RPATHS="$PHP_RPATHS $ai_p"
70834:
70835: fi
70836:
70837:
70838: fi
70839:
70840: fi
70841:
70842: ;;
70843: esac
70844: done
70845:
70846: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isc_detach_database in -lgds" >&5
70847: $as_echo_n "checking for isc_detach_database in -lgds... " >&6; }
70848: if ${ac_cv_lib_gds_isc_detach_database+:} false; then :
70849: $as_echo_n "(cached) " >&6
70850: else
70851: ac_check_lib_save_LIBS=$LIBS
70852: LIBS="-lgds $LIBS"
70853: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
70854: /* end confdefs.h. */
70855:
70856: /* Override any GCC internal prototype to avoid an error.
70857: Use char because int might match the return type of a GCC
70858: builtin and then its argument prototype would still apply. */
70859: #ifdef __cplusplus
70860: extern "C"
70861: #endif
70862: char isc_detach_database ();
70863: int
70864: main ()
70865: {
70866: return isc_detach_database ();
70867: ;
70868: return 0;
70869: }
70870: _ACEOF
70871: if ac_fn_c_try_link "$LINENO"; then :
70872: ac_cv_lib_gds_isc_detach_database=yes
70873: else
70874: ac_cv_lib_gds_isc_detach_database=no
70875: fi
70876: rm -f core conftest.err conftest.$ac_objext \
70877: conftest$ac_exeext conftest.$ac_ext
70878: LIBS=$ac_check_lib_save_LIBS
70879: fi
70880: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gds_isc_detach_database" >&5
70881: $as_echo "$ac_cv_lib_gds_isc_detach_database" >&6; }
70882: if test "x$ac_cv_lib_gds_isc_detach_database" = xyes; then :
70883:
70884: LDFLAGS=$save_old_LDFLAGS
70885: ext_shared=$save_ext_shared
70886:
70887: FIREBIRD_LIBNAME=gds
70888:
70889:
70890: else
70891:
70892: LDFLAGS=$save_old_LDFLAGS
70893: ext_shared=$save_ext_shared
70894: unset ac_cv_lib_gds_isc_detach_database
70895:
70896:
70897: save_old_LDFLAGS=$LDFLAGS
70898: ac_stuff="
70899: $FIREBIRD_LIBDIR_FLAG
70900: "
70901:
70902: save_ext_shared=$ext_shared
70903: ext_shared=yes
70904:
70905: for ac_i in $ac_stuff; do
70906: case $ac_i in
70907: -pthread)
70908: if test "$ext_shared" = "yes"; then
70909: LDFLAGS="$LDFLAGS -pthread"
70910: else
70911:
70912:
70913: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
70914:
70915: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
70916: if test -n "$unique" && test "`eval $cmd`" = "" ; then
70917: eval "EXTRA_LDFLAGS$unique=set"
70918: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
70919: fi
70920:
70921: fi
70922: ;;
70923: -l*)
70924: ac_ii=`echo $ac_i|cut -c 3-`
70925:
70926:
70927: case $ac_ii in
70928: c|c_r|pthread*) ;;
70929: *)
70930: if test "$ext_shared" = "yes"; then
70931: LDFLAGS="$LDFLAGS -l$ac_ii"
70932: else
70933:
70934:
70935: case $ac_ii in
70936: c|c_r|pthread*) ;;
70937: *)
70938: LIBS="$LIBS -l$ac_ii"
70939: ;;
70940: esac
70941:
70942:
70943: fi
70944: ;;
70945: esac
70946:
70947:
70948: ;;
70949: -L*)
70950: ac_ii=`echo $ac_i|cut -c 3-`
70951:
70952: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
70953:
70954: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
70955: ai_p=$ac_ii
70956: else
70957:
70958: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
70959:
70960: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
70961: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
70962: fi
70963:
70964:
70965: if test "$ext_shared" = "yes"; then
70966: LDFLAGS="-L$ai_p $LDFLAGS"
70967: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
70968: else
70969:
70970:
70971:
70972: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
70973:
70974: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
70975: if test -n "$unique" && test "`eval $cmd`" = "" ; then
70976: eval "LIBPATH$unique=set"
70977:
70978: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
70979: LDFLAGS="$LDFLAGS -L$ai_p"
70980: PHP_RPATHS="$PHP_RPATHS $ai_p"
70981:
70982: fi
70983:
70984:
70985: fi
70986:
70987: fi
70988:
70989: ;;
70990: esac
70991: done
70992:
70993: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isc_detach_database in -lib_util" >&5
70994: $as_echo_n "checking for isc_detach_database in -lib_util... " >&6; }
70995: if ${ac_cv_lib_ib_util_isc_detach_database+:} false; then :
70996: $as_echo_n "(cached) " >&6
70997: else
70998: ac_check_lib_save_LIBS=$LIBS
70999: LIBS="-lib_util $LIBS"
71000: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71001: /* end confdefs.h. */
71002:
71003: /* Override any GCC internal prototype to avoid an error.
71004: Use char because int might match the return type of a GCC
71005: builtin and then its argument prototype would still apply. */
71006: #ifdef __cplusplus
71007: extern "C"
71008: #endif
71009: char isc_detach_database ();
71010: int
71011: main ()
71012: {
71013: return isc_detach_database ();
71014: ;
71015: return 0;
71016: }
71017: _ACEOF
71018: if ac_fn_c_try_link "$LINENO"; then :
71019: ac_cv_lib_ib_util_isc_detach_database=yes
71020: else
71021: ac_cv_lib_ib_util_isc_detach_database=no
71022: fi
71023: rm -f core conftest.err conftest.$ac_objext \
71024: conftest$ac_exeext conftest.$ac_ext
71025: LIBS=$ac_check_lib_save_LIBS
71026: fi
71027: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ib_util_isc_detach_database" >&5
71028: $as_echo "$ac_cv_lib_ib_util_isc_detach_database" >&6; }
71029: if test "x$ac_cv_lib_ib_util_isc_detach_database" = xyes; then :
71030:
71031: LDFLAGS=$save_old_LDFLAGS
71032: ext_shared=$save_ext_shared
71033:
71034: FIREBIRD_LIBNAME=ib_util
71035:
71036:
71037: else
71038:
71039: LDFLAGS=$save_old_LDFLAGS
71040: ext_shared=$save_ext_shared
71041: unset ac_cv_lib_ib_util_isc_detach_database
71042:
71043: as_fn_error $? "libfbclient, libgds or libib_util not found! Check config.log for more information." "$LINENO" 5
71044:
71045:
71046: fi
71047:
71048:
71049:
71050: fi
71051:
71052:
71053:
71054: fi
71055:
71056:
71057:
71058: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5
71059: $as_echo_n "checking for PDO includes... " >&6; }
71060: if ${pdo_inc_path+:} false; then :
71061: $as_echo_n "(cached) " >&6
71062: else
71063:
71064: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5
71065: $as_echo_n "checking for PDO includes... " >&6; }
71066: if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then
71067: pdo_inc_path=$abs_srcdir/ext
71068: elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then
71069: pdo_inc_path=$abs_srcdir/ext
71070: elif test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then
71071: pdo_inc_path=$prefix/include/php/ext
71072: fi
71073:
71074: fi
71075: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pdo_inc_path" >&5
71076: $as_echo "$pdo_inc_path" >&6; }
71077: if test -n "$pdo_inc_path"; then
71078: :
71079: else
71080: as_fn_error $? "Cannot find php_pdo_driver.h." "$LINENO" 5
71081: fi
71082:
71083:
71084:
71085:
71086: if test "$ext_shared" = "yes"; then
71087: PDO_FIREBIRD_SHARED_LIBADD="-l$FIREBIRD_LIBNAME $PDO_FIREBIRD_SHARED_LIBADD"
71088: if test -n "$FIREBIRD_LIBDIR"; then
71089:
71090: if test "$FIREBIRD_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$FIREBIRD_LIBDIR" != "/usr/lib"; then
71091:
71092: if test -z "$FIREBIRD_LIBDIR" || echo "$FIREBIRD_LIBDIR" | grep '^/' >/dev/null ; then
71093: ai_p=$FIREBIRD_LIBDIR
71094: else
71095:
71096: ep_dir="`echo $FIREBIRD_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
71097:
71098: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
71099: ai_p="$ep_realdir/`basename \"$FIREBIRD_LIBDIR\"`"
71100: fi
71101:
71102:
71103: if test "$ext_shared" = "yes"; then
71104: PDO_FIREBIRD_SHARED_LIBADD="-L$ai_p $PDO_FIREBIRD_SHARED_LIBADD"
71105: test -n "$ld_runpath_switch" && PDO_FIREBIRD_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_FIREBIRD_SHARED_LIBADD"
71106: else
71107:
71108:
71109:
71110: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
71111:
71112: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
71113: if test -n "$unique" && test "`eval $cmd`" = "" ; then
71114: eval "LIBPATH$unique=set"
71115:
71116: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
71117: LDFLAGS="$LDFLAGS -L$ai_p"
71118: PHP_RPATHS="$PHP_RPATHS $ai_p"
71119:
71120: fi
71121:
71122:
71123: fi
71124:
71125: fi
71126:
71127: fi
71128: else
71129:
71130:
71131: if test -n "$FIREBIRD_LIBDIR"; then
71132:
71133: if test "$FIREBIRD_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$FIREBIRD_LIBDIR" != "/usr/lib"; then
71134:
71135: if test -z "$FIREBIRD_LIBDIR" || echo "$FIREBIRD_LIBDIR" | grep '^/' >/dev/null ; then
71136: ai_p=$FIREBIRD_LIBDIR
71137: else
71138:
71139: ep_dir="`echo $FIREBIRD_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
71140:
71141: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
71142: ai_p="$ep_realdir/`basename \"$FIREBIRD_LIBDIR\"`"
71143: fi
71144:
71145:
71146:
71147:
71148:
71149: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
71150:
71151: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
71152: if test -n "$unique" && test "`eval $cmd`" = "" ; then
71153: eval "LIBPATH$unique=set"
71154:
71155: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
71156: LDFLAGS="$LDFLAGS -L$ai_p"
71157: PHP_RPATHS="$PHP_RPATHS $ai_p"
71158:
71159: fi
71160:
71161:
71162:
71163: fi
71164:
71165: fi
71166:
71167:
71168: case $FIREBIRD_LIBNAME in
71169: c|c_r|pthread*) ;;
71170: *)
71171: LIBS="-l$FIREBIRD_LIBNAME $LIBS"
71172: ;;
71173: esac
71174:
71175:
71176:
71177:
71178: fi
71179:
71180:
71181:
71182: if test "$FIREBIRD_INCDIR" != "/usr/include"; then
71183:
71184: if test -z "$FIREBIRD_INCDIR" || echo "$FIREBIRD_INCDIR" | grep '^/' >/dev/null ; then
71185: ai_p=$FIREBIRD_INCDIR
71186: else
71187:
71188: ep_dir="`echo $FIREBIRD_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`"
71189:
71190: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
71191: ai_p="$ep_realdir/`basename \"$FIREBIRD_INCDIR\"`"
71192: fi
71193:
71194:
71195:
71196: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
71197:
71198: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
71199: if test -n "$unique" && test "`eval $cmd`" = "" ; then
71200: eval "INCLUDEPATH$unique=set"
71201:
71202: if test ""; then
71203: INCLUDES="-I$ai_p $INCLUDES"
71204: else
71205: INCLUDES="$INCLUDES -I$ai_p"
71206: fi
71207:
71208: fi
71209:
71210: fi
71211:
71212:
71213: $as_echo "#define HAVE_PDO_FIREBIRD 1" >>confdefs.h
71214:
71215:
71216: ext_builddir=ext/pdo_firebird
71217: ext_srcdir=$abs_srcdir/ext/pdo_firebird
71218:
71219: ac_extra=`echo "-I$pdo_inc_path"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
71220:
71221: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
71222: PHP_PDO_FIREBIRD_SHARED=no
71223:
71224:
71225: case ext/pdo_firebird in
71226: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
71227: /*) ac_srcdir=`echo "ext/pdo_firebird"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
71228: *) ac_srcdir="$abs_srcdir/ext/pdo_firebird/"; ac_bdir="ext/pdo_firebird/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
71229: esac
71230:
71231:
71232:
71233: b_c_pre=$php_c_pre
71234: b_cxx_pre=$php_cxx_pre
71235: b_c_meta=$php_c_meta
71236: b_cxx_meta=$php_cxx_meta
71237: b_c_post=$php_c_post
71238: b_cxx_post=$php_cxx_post
71239: b_lo=$php_lo
71240:
71241:
71242: old_IFS=$IFS
71243: for ac_src in pdo_firebird.c firebird_driver.c firebird_statement.c; do
71244:
71245: IFS=.
71246: set $ac_src
71247: ac_obj=$1
71248: IFS=$old_IFS
71249:
71250: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
71251:
71252: case $ac_src in
71253: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
71254: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
71255: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
71256: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
71257: esac
71258:
71259: cat >>Makefile.objects<<EOF
71260: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
71261: $ac_comp
71262: EOF
71263: done
71264:
71265:
71266: EXT_STATIC="$EXT_STATIC pdo_firebird"
71267: if test "$ext_shared" != "nocli"; then
71268: EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_firebird"
71269: fi
71270: else
71271: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
71272: PHP_PDO_FIREBIRD_SHARED=yes
71273:
71274: case ext/pdo_firebird in
71275: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
71276: /*) ac_srcdir=`echo "ext/pdo_firebird"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
71277: *) ac_srcdir="$abs_srcdir/ext/pdo_firebird/"; ac_bdir="ext/pdo_firebird/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
71278: esac
71279:
71280:
71281:
71282: b_c_pre=$shared_c_pre
71283: b_cxx_pre=$shared_cxx_pre
71284: b_c_meta=$shared_c_meta
71285: b_cxx_meta=$shared_cxx_meta
71286: b_c_post=$shared_c_post
71287: b_cxx_post=$shared_cxx_post
71288: b_lo=$shared_lo
71289:
71290:
71291: old_IFS=$IFS
71292: for ac_src in pdo_firebird.c firebird_driver.c firebird_statement.c; do
71293:
71294: IFS=.
71295: set $ac_src
71296: ac_obj=$1
71297: IFS=$old_IFS
71298:
71299: shared_objects_pdo_firebird="$shared_objects_pdo_firebird $ac_bdir$ac_obj.lo"
71300:
71301: case $ac_src in
71302: *.c) ac_comp="$b_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: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
71305: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
71306: esac
71307:
71308: cat >>Makefile.objects<<EOF
71309: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
71310: $ac_comp
71311: EOF
71312: done
71313:
71314: case $host_alias in
71315: *netware*)
71316:
71317: install_modules="install-modules"
71318:
71319: case $host_alias in
71320: *aix*)
71321: suffix=so
71322: 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'
71323: ;;
71324: *netware*)
71325: suffix=nlm
71326: link_cmd='$(LIBTOOL) --mode=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)'
71327: ;;
71328: *)
71329: suffix=la
71330: link_cmd='$(LIBTOOL) --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)'
71331: ;;
71332: esac
71333:
71334: if test "x" = "xyes"; then
71335: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phppdo_firebird.$suffix"
71336: else
71337: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phppdo_firebird.$suffix"
71338: fi
71339:
71340: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo_firebird"
71341:
71342: cat >>Makefile.objects<<EOF
71343: \$(phplibdir)/phppdo_firebird.$suffix: $ext_builddir/phppdo_firebird.$suffix
71344: \$(LIBTOOL) --mode=install cp $ext_builddir/phppdo_firebird.$suffix \$(phplibdir)
71345:
71346: $ext_builddir/phppdo_firebird.$suffix: \$(shared_objects_pdo_firebird) \$(PHPPDO_FIREBIRD_SHARED_DEPENDENCIES)
71347: $link_cmd
71348:
71349: EOF
71350:
71351: ;;
71352: *)
71353:
71354: install_modules="install-modules"
71355:
71356: case $host_alias in
71357: *aix*)
71358: suffix=so
71359: 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'
71360: ;;
71361: *netware*)
71362: suffix=nlm
71363: link_cmd='$(LIBTOOL) --mode=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)'
71364: ;;
71365: *)
71366: suffix=la
71367: link_cmd='$(LIBTOOL) --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)'
71368: ;;
71369: esac
71370:
71371: if test "x" = "xyes"; then
71372: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/pdo_firebird.$suffix"
71373: else
71374: PHP_MODULES="$PHP_MODULES \$(phplibdir)/pdo_firebird.$suffix"
71375: fi
71376:
71377: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo_firebird"
71378:
71379: cat >>Makefile.objects<<EOF
71380: \$(phplibdir)/pdo_firebird.$suffix: $ext_builddir/pdo_firebird.$suffix
71381: \$(LIBTOOL) --mode=install cp $ext_builddir/pdo_firebird.$suffix \$(phplibdir)
71382:
71383: $ext_builddir/pdo_firebird.$suffix: \$(shared_objects_pdo_firebird) \$(PDO_FIREBIRD_SHARED_DEPENDENCIES)
71384: $link_cmd
71385:
71386: EOF
71387:
71388: ;;
71389: esac
71390:
71391: cat >>confdefs.h <<_ACEOF
71392: #define COMPILE_DL_PDO_FIREBIRD 1
71393: _ACEOF
71394:
71395: fi
71396: fi
71397:
71398: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
71399: PHP_PDO_FIREBIRD_SHARED=no
71400:
71401:
71402: case ext/pdo_firebird in
71403: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
71404: /*) ac_srcdir=`echo "ext/pdo_firebird"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
71405: *) ac_srcdir="$abs_srcdir/ext/pdo_firebird/"; ac_bdir="ext/pdo_firebird/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
71406: esac
71407:
71408:
71409:
71410: b_c_pre=$php_c_pre
71411: b_cxx_pre=$php_cxx_pre
71412: b_c_meta=$php_c_meta
71413: b_cxx_meta=$php_cxx_meta
71414: b_c_post=$php_c_post
71415: b_cxx_post=$php_cxx_post
71416: b_lo=$php_lo
71417:
71418:
71419: old_IFS=$IFS
71420: for ac_src in pdo_firebird.c firebird_driver.c firebird_statement.c; do
71421:
71422: IFS=.
71423: set $ac_src
71424: ac_obj=$1
71425: IFS=$old_IFS
71426:
71427: PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
71428:
71429: case $ac_src in
71430: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
71431: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
71432: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
71433: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
71434: esac
71435:
71436: cat >>Makefile.objects<<EOF
71437: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
71438: $ac_comp
71439: EOF
71440: done
71441:
71442:
71443:
71444:
71445: case ext/pdo_firebird in
71446: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
71447: /*) ac_srcdir=`echo "ext/pdo_firebird"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
71448: *) ac_srcdir="$abs_srcdir/ext/pdo_firebird/"; ac_bdir="ext/pdo_firebird/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
71449: esac
71450:
71451:
71452:
71453: b_c_pre=$php_c_pre
71454: b_cxx_pre=$php_cxx_pre
71455: b_c_meta=$php_c_meta
71456: b_cxx_meta=$php_cxx_meta
71457: b_c_post=$php_c_post
71458: b_cxx_post=$php_cxx_post
71459: b_lo=$php_lo
71460:
71461:
71462: old_IFS=$IFS
71463: for ac_src in pdo_firebird.c firebird_driver.c firebird_statement.c; do
71464:
71465: IFS=.
71466: set $ac_src
71467: ac_obj=$1
71468: IFS=$old_IFS
71469:
71470: PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo"
71471:
71472: case $ac_src in
71473: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
71474: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
71475: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
71476: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
71477: esac
71478:
71479: cat >>Makefile.objects<<EOF
71480: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
71481: $ac_comp
71482: EOF
71483: done
71484:
71485:
71486:
71487:
71488: case ext/pdo_firebird in
71489: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
71490: /*) ac_srcdir=`echo "ext/pdo_firebird"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
71491: *) ac_srcdir="$abs_srcdir/ext/pdo_firebird/"; ac_bdir="ext/pdo_firebird/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
71492: esac
71493:
71494:
71495:
71496: b_c_pre=$php_c_pre
71497: b_cxx_pre=$php_cxx_pre
71498: b_c_meta=$php_c_meta
71499: b_cxx_meta=$php_cxx_meta
71500: b_c_post=$php_c_post
71501: b_cxx_post=$php_cxx_post
71502: b_lo=$php_lo
71503:
71504:
71505: old_IFS=$IFS
71506: for ac_src in pdo_firebird.c firebird_driver.c firebird_statement.c; do
71507:
71508: IFS=.
71509: set $ac_src
71510: ac_obj=$1
71511: IFS=$old_IFS
71512:
71513: PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo"
71514:
71515: case $ac_src in
71516: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
71517: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
71518: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
71519: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
71520: esac
71521:
71522: cat >>Makefile.objects<<EOF
71523: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
71524: $ac_comp
71525: EOF
71526: done
71527:
71528:
71529: EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_firebird"
71530: fi
71531:
71532:
71533: BUILD_DIR="$BUILD_DIR $ext_builddir"
71534:
71535:
71536:
71537: if test "$ext_builddir" = "."; then
71538: PHP_PECL_EXTENSION=pdo_firebird
71539:
71540: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
71541:
71542: fi
71543:
71544:
71545: PHP_VAR_SUBST="$PHP_VAR_SUBST PDO_FIREBIRD_SHARED_LIBADD"
71546:
71547:
71548: am_i_shared=$PHP_PDO_FIREBIRD_SHARED
71549: is_it_shared=$PHP_PDO_SHARED
71550: is_it_enabled=$PHP_PDO
71551: if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
71552: as_fn_error $? "
71553: You've configured extension pdo_firebird to build statically, but it
71554: depends on extension pdo, which you've configured to build shared.
71555: You either need to build pdo_firebird shared or build pdo statically for the
71556: build to be successful.
71557: " "$LINENO" 5
71558: fi
71559:
71560: fi
71561:
71562:
71563:
71564: php_with_pdo_mysql=no
71565:
71566: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support for PDO" >&5
71567: $as_echo_n "checking for MySQL support for PDO... " >&6; }
71568:
71569: # Check whether --with-pdo-mysql was given.
71570: if test "${with_pdo_mysql+set}" = set; then :
71571: withval=$with_pdo_mysql; PHP_PDO_MYSQL=$withval
71572: else
71573:
71574: PHP_PDO_MYSQL=no
71575: test "$PHP_ENABLE_ALL" && PHP_PDO_MYSQL=$PHP_ENABLE_ALL
71576:
71577: fi
71578:
71579:
71580:
71581: ext_output="yes, shared"
71582: ext_shared=yes
71583: case $PHP_PDO_MYSQL in
71584: shared,*)
71585: PHP_PDO_MYSQL=`echo "$PHP_PDO_MYSQL"|$SED 's/^shared,//'`
71586: ;;
71587: shared)
71588: PHP_PDO_MYSQL=yes
71589: ;;
71590: no)
71591: ext_output=no
71592: ext_shared=no
71593: ;;
71594: *)
71595: ext_output=yes
71596: ext_shared=no
71597: ;;
71598: esac
71599:
71600:
71601:
71602: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
71603: $as_echo "$ext_output" >&6; }
71604:
71605:
71606:
71607:
71608: if test -z "$PHP_ZLIB_DIR"; then
71609:
71610: php_with_zlib_dir=no
71611:
71612: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the location of libz" >&5
71613: $as_echo_n "checking for the location of libz... " >&6; }
71614:
71615: # Check whether --with-zlib-dir was given.
71616: if test "${with_zlib_dir+set}" = set; then :
71617: withval=$with_zlib_dir; PHP_ZLIB_DIR=$withval
71618: else
71619:
71620: PHP_ZLIB_DIR=no
71621:
71622:
71623: fi
71624:
71625:
71626: ext_output=$PHP_ZLIB_DIR
71627: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
71628: $as_echo "$ext_output" >&6; }
71629:
71630:
71631:
71632: fi
71633:
71634: if test "$PHP_PDO_MYSQL" != "no"; then
71635:
71636: if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then
71637: as_fn_error $? "PDO is not enabled! Add --enable-pdo to your configure line." "$LINENO" 5
71638: fi
71639:
71640:
71641:
71642: if test -f $PHP_PDO_MYSQL && test -x $PHP_PDO_MYSQL ; then
71643: PDO_MYSQL_CONFIG=$PHP_PDO_MYSQL
71644: elif test "$PHP_PDO_MYSQL" != "yes"; then
71645: if test -d "$PHP_PDO_MYSQL" ; then
71646: if test -x "$PHP_PDO_MYSQL/bin/mysql_config" ; then
71647: PDO_MYSQL_CONFIG="$PHP_PDO_MYSQL/bin/mysql_config"
71648: else
71649: PDO_MYSQL_DIR="$PHP_PDO_MYSQL"
71650: fi
71651: fi
71652: else
71653: for i in /usr/local /usr ; do
71654: if test -x "$i/bin/mysql_config" ; then
71655: PDO_MYSQL_CONFIG="$i/bin/mysql_config"
71656: break;
71657: fi
71658: if test -r $i/include/mysql/mysql.h || test -r $i/include/mysql.h ; then
71659: PDO_MYSQL_DIR="$i"
71660: break;
71661: fi
71662: done
71663: fi
71664:
71665: if test "$PHP_PDO_MYSQL" = "mysqlnd"; then
71666: PHP_MYSQLND_ENABLED=yes
71667:
71668: $as_echo "#define PDO_USE_MYSQLND 1" >>confdefs.h
71669:
71670: else
71671:
71672: $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
71673:
71674:
71675: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_config" >&5
71676: $as_echo_n "checking for mysql_config... " >&6; }
71677: if test -n "$PDO_MYSQL_CONFIG"; then
71678: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDO_MYSQL_CONFIG" >&5
71679: $as_echo "$PDO_MYSQL_CONFIG" >&6; }
71680: if test "x$SED" = "x"; then
71681: # Extract the first word of "sed", so it can be a program name with args.
71682: set dummy sed; ac_word=$2
71683: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
71684: $as_echo_n "checking for $ac_word... " >&6; }
71685: if ${ac_cv_path_SED+:} false; then :
71686: $as_echo_n "(cached) " >&6
71687: else
71688: case $SED in
71689: [\\/]* | ?:[\\/]*)
71690: ac_cv_path_SED="$SED" # Let the user override the test with a path.
71691: ;;
71692: *)
71693: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
71694: for as_dir in $PATH
71695: do
71696: IFS=$as_save_IFS
71697: test -z "$as_dir" && as_dir=.
71698: for ac_exec_ext in '' $ac_executable_extensions; do
71699: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
71700: ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
71701: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
71702: break 2
71703: fi
71704: done
71705: done
71706: IFS=$as_save_IFS
71707:
71708: ;;
71709: esac
71710: fi
71711: SED=$ac_cv_path_SED
71712: if test -n "$SED"; then
71713: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
71714: $as_echo "$SED" >&6; }
71715: else
71716: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
71717: $as_echo "no" >&6; }
71718: fi
71719:
71720:
71721: fi
71722: if test "$enable_maintainer_zts" = "yes"; then
71723: PDO_MYSQL_LIBNAME=mysqlclient_r
71724: PDO_MYSQL_LIBS=`$PDO_MYSQL_CONFIG --libs_r | $SED -e "s/'//g"`
71725: else
71726: PDO_MYSQL_LIBNAME=mysqlclient
71727: PDO_MYSQL_LIBS=`$PDO_MYSQL_CONFIG --libs | $SED -e "s/'//g"`
71728: fi
71729: PDO_MYSQL_INCLUDE=`$PDO_MYSQL_CONFIG --cflags | $SED -e "s/'//g"`
71730: elif test -n "$PDO_MYSQL_DIR"; then
71731: { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
71732: $as_echo "not found" >&6; }
71733: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql install under $PDO_MYSQL_DIR" >&5
71734: $as_echo_n "checking for mysql install under $PDO_MYSQL_DIR... " >&6; }
71735: if test -r $PDO_MYSQL_DIR/include/mysql; then
71736: PDO_MYSQL_INC_DIR=$PDO_MYSQL_DIR/include/mysql
71737: else
71738: PDO_MYSQL_INC_DIR=$PDO_MYSQL_DIR/include
71739: fi
71740: if test -r $PDO_MYSQL_DIR/$PHP_LIBDIR/mysql; then
71741: PDO_MYSQL_LIB_DIR=$PDO_MYSQL_DIR/$PHP_LIBDIR/mysql
71742: else
71743: PDO_MYSQL_LIB_DIR=$PDO_MYSQL_DIR/$PHP_LIBDIR
71744: fi
71745:
71746: if test -r "$PDO_MYSQL_LIB_DIR"; then
71747: { $as_echo "$as_me:${as_lineno-$LINENO}: result: libs under $PDO_MYSQL_LIB_DIR; seems promising" >&5
71748: $as_echo "libs under $PDO_MYSQL_LIB_DIR; seems promising" >&6; }
71749: else
71750: { $as_echo "$as_me:${as_lineno-$LINENO}: result: can not find it" >&5
71751: $as_echo "can not find it" >&6; }
71752: as_fn_error $? "Unable to find your mysql installation" "$LINENO" 5
71753: fi
71754:
71755:
71756: if test "$PDO_MYSQL_INC_DIR" != "/usr/include"; then
71757:
71758: if test -z "$PDO_MYSQL_INC_DIR" || echo "$PDO_MYSQL_INC_DIR" | grep '^/' >/dev/null ; then
71759: ai_p=$PDO_MYSQL_INC_DIR
71760: else
71761:
71762: ep_dir="`echo $PDO_MYSQL_INC_DIR|$SED 's%/*[^/][^/]*/*$%%'`"
71763:
71764: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
71765: ai_p="$ep_realdir/`basename \"$PDO_MYSQL_INC_DIR\"`"
71766: fi
71767:
71768:
71769:
71770: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
71771:
71772: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
71773: if test -n "$unique" && test "`eval $cmd`" = "" ; then
71774: eval "INCLUDEPATH$unique=set"
71775:
71776: if test ""; then
71777: INCLUDES="-I$ai_p $INCLUDES"
71778: else
71779: INCLUDES="$INCLUDES -I$ai_p"
71780: fi
71781:
71782: fi
71783:
71784: fi
71785:
71786: PDO_MYSQL_INCLUDE=-I$PDO_MYSQL_INC_DIR
71787: else
71788: { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
71789: $as_echo "not found" >&6; }
71790: as_fn_error $? "Unable to find your mysql installation" "$LINENO" 5
71791: fi
71792:
71793:
71794: save_old_LDFLAGS=$LDFLAGS
71795: ac_stuff="
71796: $PDO_MYSQL_LIBS
71797: "
71798:
71799: save_ext_shared=$ext_shared
71800: ext_shared=yes
71801:
71802: for ac_i in $ac_stuff; do
71803: case $ac_i in
71804: -pthread)
71805: if test "$ext_shared" = "yes"; then
71806: LDFLAGS="$LDFLAGS -pthread"
71807: else
71808:
71809:
71810: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
71811:
71812: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
71813: if test -n "$unique" && test "`eval $cmd`" = "" ; then
71814: eval "EXTRA_LDFLAGS$unique=set"
71815: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
71816: fi
71817:
71818: fi
71819: ;;
71820: -l*)
71821: ac_ii=`echo $ac_i|cut -c 3-`
71822:
71823:
71824: case $ac_ii in
71825: c|c_r|pthread*) ;;
71826: *)
71827: if test "$ext_shared" = "yes"; then
71828: LDFLAGS="$LDFLAGS -l$ac_ii"
71829: else
71830:
71831:
71832: case $ac_ii in
71833: c|c_r|pthread*) ;;
71834: *)
71835: LIBS="$LIBS -l$ac_ii"
71836: ;;
71837: esac
71838:
71839:
71840: fi
71841: ;;
71842: esac
71843:
71844:
71845: ;;
71846: -L*)
71847: ac_ii=`echo $ac_i|cut -c 3-`
71848:
71849: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
71850:
71851: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
71852: ai_p=$ac_ii
71853: else
71854:
71855: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
71856:
71857: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
71858: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
71859: fi
71860:
71861:
71862: if test "$ext_shared" = "yes"; then
71863: LDFLAGS="-L$ai_p $LDFLAGS"
71864: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
71865: else
71866:
71867:
71868:
71869: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
71870:
71871: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
71872: if test -n "$unique" && test "`eval $cmd`" = "" ; then
71873: eval "LIBPATH$unique=set"
71874:
71875: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
71876: LDFLAGS="$LDFLAGS -L$ai_p"
71877: PHP_RPATHS="$PHP_RPATHS $ai_p"
71878:
71879: fi
71880:
71881:
71882: fi
71883:
71884: fi
71885:
71886: ;;
71887: esac
71888: done
71889:
71890: as_ac_Lib=`$as_echo "ac_cv_lib_$PDO_MYSQL_LIBNAME''_mysql_query" | $as_tr_sh`
71891: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_query in -l$PDO_MYSQL_LIBNAME" >&5
71892: $as_echo_n "checking for mysql_query in -l$PDO_MYSQL_LIBNAME... " >&6; }
71893: if eval \${$as_ac_Lib+:} false; then :
71894: $as_echo_n "(cached) " >&6
71895: else
71896: ac_check_lib_save_LIBS=$LIBS
71897: LIBS="-l$PDO_MYSQL_LIBNAME $LIBS"
71898: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71899: /* end confdefs.h. */
71900:
71901: /* Override any GCC internal prototype to avoid an error.
71902: Use char because int might match the return type of a GCC
71903: builtin and then its argument prototype would still apply. */
71904: #ifdef __cplusplus
71905: extern "C"
71906: #endif
71907: char mysql_query ();
71908: int
71909: main ()
71910: {
71911: return mysql_query ();
71912: ;
71913: return 0;
71914: }
71915: _ACEOF
71916: if ac_fn_c_try_link "$LINENO"; then :
71917: eval "$as_ac_Lib=yes"
71918: else
71919: eval "$as_ac_Lib=no"
71920: fi
71921: rm -f core conftest.err conftest.$ac_objext \
71922: conftest$ac_exeext conftest.$ac_ext
71923: LIBS=$ac_check_lib_save_LIBS
71924: fi
71925: eval ac_res=\$$as_ac_Lib
71926: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
71927: $as_echo "$ac_res" >&6; }
71928: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
71929:
71930: LDFLAGS=$save_old_LDFLAGS
71931: ext_shared=$save_ext_shared
71932:
71933:
71934: for ac_i in $PDO_MYSQL_INCLUDE; do
71935: case $ac_i in
71936: -I*)
71937: ac_ii=`echo $ac_i|cut -c 3-`
71938:
71939: if test "$ac_ii" != "/usr/include"; then
71940:
71941: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
71942: ai_p=$ac_ii
71943: else
71944:
71945: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
71946:
71947: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
71948: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
71949: fi
71950:
71951:
71952:
71953: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
71954:
71955: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
71956: if test -n "$unique" && test "`eval $cmd`" = "" ; then
71957: eval "INCLUDEPATH$unique=set"
71958:
71959: if test ""; then
71960: INCLUDES="-I$ai_p $INCLUDES"
71961: else
71962: INCLUDES="$INCLUDES -I$ai_p"
71963: fi
71964:
71965: fi
71966:
71967: fi
71968:
71969: ;;
71970: esac
71971: done
71972:
71973:
71974: for ac_i in $PDO_MYSQL_LIBS; do
71975: case $ac_i in
71976: -pthread)
71977: if test "$ext_shared" = "yes"; then
71978: PDO_MYSQL_SHARED_LIBADD="$PDO_MYSQL_SHARED_LIBADD -pthread"
71979: else
71980:
71981:
71982: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
71983:
71984: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
71985: if test -n "$unique" && test "`eval $cmd`" = "" ; then
71986: eval "EXTRA_LDFLAGS$unique=set"
71987: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
71988: fi
71989:
71990: fi
71991: ;;
71992: -l*)
71993: ac_ii=`echo $ac_i|cut -c 3-`
71994:
71995:
71996: case $ac_ii in
71997: c|c_r|pthread*) ;;
71998: *)
71999: if test "$ext_shared" = "yes"; then
72000: PDO_MYSQL_SHARED_LIBADD="$PDO_MYSQL_SHARED_LIBADD -l$ac_ii"
72001: else
72002:
72003:
72004: case $ac_ii in
72005: c|c_r|pthread*) ;;
72006: *)
72007: LIBS="$LIBS -l$ac_ii"
72008: ;;
72009: esac
72010:
72011:
72012: fi
72013: ;;
72014: esac
72015:
72016:
72017: ;;
72018: -L*)
72019: ac_ii=`echo $ac_i|cut -c 3-`
72020:
72021: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
72022:
72023: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
72024: ai_p=$ac_ii
72025: else
72026:
72027: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
72028:
72029: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
72030: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
72031: fi
72032:
72033:
72034: if test "$ext_shared" = "yes"; then
72035: PDO_MYSQL_SHARED_LIBADD="-L$ai_p $PDO_MYSQL_SHARED_LIBADD"
72036: test -n "$ld_runpath_switch" && PDO_MYSQL_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_MYSQL_SHARED_LIBADD"
72037: else
72038:
72039:
72040:
72041: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
72042:
72043: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
72044: if test -n "$unique" && test "`eval $cmd`" = "" ; then
72045: eval "LIBPATH$unique=set"
72046:
72047: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
72048: LDFLAGS="$LDFLAGS -L$ai_p"
72049: PHP_RPATHS="$PHP_RPATHS $ai_p"
72050:
72051: fi
72052:
72053:
72054: fi
72055:
72056: fi
72057:
72058: ;;
72059: esac
72060: done
72061:
72062:
72063:
72064: else
72065:
72066: LDFLAGS=$save_old_LDFLAGS
72067: ext_shared=$save_ext_shared
72068: unset ac_cv_lib_$PDO_MYSQL_LIBNAME_mysql_query
72069:
72070: if test "$PHP_ZLIB_DIR" != "no"; then
72071:
72072:
72073: if test "$ext_shared" = "yes"; then
72074: PDO_MYSQL_SHARED_LIBADD="-lz $PDO_MYSQL_SHARED_LIBADD"
72075: if test -n "$PHP_ZLIB_DIR"; then
72076:
72077: if test "$PHP_ZLIB_DIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ZLIB_DIR" != "/usr/lib"; then
72078:
72079: if test -z "$PHP_ZLIB_DIR" || echo "$PHP_ZLIB_DIR" | grep '^/' >/dev/null ; then
72080: ai_p=$PHP_ZLIB_DIR
72081: else
72082:
72083: ep_dir="`echo $PHP_ZLIB_DIR|$SED 's%/*[^/][^/]*/*$%%'`"
72084:
72085: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
72086: ai_p="$ep_realdir/`basename \"$PHP_ZLIB_DIR\"`"
72087: fi
72088:
72089:
72090: if test "$ext_shared" = "yes"; then
72091: PDO_MYSQL_SHARED_LIBADD="-L$ai_p $PDO_MYSQL_SHARED_LIBADD"
72092: test -n "$ld_runpath_switch" && PDO_MYSQL_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_MYSQL_SHARED_LIBADD"
72093: else
72094:
72095:
72096:
72097: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
72098:
72099: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
72100: if test -n "$unique" && test "`eval $cmd`" = "" ; then
72101: eval "LIBPATH$unique=set"
72102:
72103: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
72104: LDFLAGS="$LDFLAGS -L$ai_p"
72105: PHP_RPATHS="$PHP_RPATHS $ai_p"
72106:
72107: fi
72108:
72109:
72110: fi
72111:
72112: fi
72113:
72114: fi
72115: else
72116:
72117:
72118: if test -n "$PHP_ZLIB_DIR"; then
72119:
72120: if test "$PHP_ZLIB_DIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ZLIB_DIR" != "/usr/lib"; then
72121:
72122: if test -z "$PHP_ZLIB_DIR" || echo "$PHP_ZLIB_DIR" | grep '^/' >/dev/null ; then
72123: ai_p=$PHP_ZLIB_DIR
72124: else
72125:
72126: ep_dir="`echo $PHP_ZLIB_DIR|$SED 's%/*[^/][^/]*/*$%%'`"
72127:
72128: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
72129: ai_p="$ep_realdir/`basename \"$PHP_ZLIB_DIR\"`"
72130: fi
72131:
72132:
72133:
72134:
72135:
72136: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
72137:
72138: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
72139: if test -n "$unique" && test "`eval $cmd`" = "" ; then
72140: eval "LIBPATH$unique=set"
72141:
72142: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
72143: LDFLAGS="$LDFLAGS -L$ai_p"
72144: PHP_RPATHS="$PHP_RPATHS $ai_p"
72145:
72146: fi
72147:
72148:
72149:
72150: fi
72151:
72152: fi
72153:
72154:
72155: case z in
72156: c|c_r|pthread*) ;;
72157: *)
72158: LIBS="-lz $LIBS"
72159: ;;
72160: esac
72161:
72162:
72163:
72164:
72165: fi
72166:
72167:
72168:
72169: save_old_LDFLAGS=$LDFLAGS
72170: ac_stuff="
72171: -L$PHP_ZLIB_DIR/$PHP_LIBDIR -L$PDO_MYSQL_LIB_DIR
72172: "
72173:
72174: save_ext_shared=$ext_shared
72175: ext_shared=yes
72176:
72177: for ac_i in $ac_stuff; do
72178: case $ac_i in
72179: -pthread)
72180: if test "$ext_shared" = "yes"; then
72181: LDFLAGS="$LDFLAGS -pthread"
72182: else
72183:
72184:
72185: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
72186:
72187: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
72188: if test -n "$unique" && test "`eval $cmd`" = "" ; then
72189: eval "EXTRA_LDFLAGS$unique=set"
72190: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
72191: fi
72192:
72193: fi
72194: ;;
72195: -l*)
72196: ac_ii=`echo $ac_i|cut -c 3-`
72197:
72198:
72199: case $ac_ii in
72200: c|c_r|pthread*) ;;
72201: *)
72202: if test "$ext_shared" = "yes"; then
72203: LDFLAGS="$LDFLAGS -l$ac_ii"
72204: else
72205:
72206:
72207: case $ac_ii in
72208: c|c_r|pthread*) ;;
72209: *)
72210: LIBS="$LIBS -l$ac_ii"
72211: ;;
72212: esac
72213:
72214:
72215: fi
72216: ;;
72217: esac
72218:
72219:
72220: ;;
72221: -L*)
72222: ac_ii=`echo $ac_i|cut -c 3-`
72223:
72224: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
72225:
72226: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
72227: ai_p=$ac_ii
72228: else
72229:
72230: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
72231:
72232: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
72233: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
72234: fi
72235:
72236:
72237: if test "$ext_shared" = "yes"; then
72238: LDFLAGS="-L$ai_p $LDFLAGS"
72239: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
72240: else
72241:
72242:
72243:
72244: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
72245:
72246: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
72247: if test -n "$unique" && test "`eval $cmd`" = "" ; then
72248: eval "LIBPATH$unique=set"
72249:
72250: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
72251: LDFLAGS="$LDFLAGS -L$ai_p"
72252: PHP_RPATHS="$PHP_RPATHS $ai_p"
72253:
72254: fi
72255:
72256:
72257: fi
72258:
72259: fi
72260:
72261: ;;
72262: esac
72263: done
72264:
72265: as_ac_Lib=`$as_echo "ac_cv_lib_$PDO_MYSQL_LIBNAME''_mysql_query" | $as_tr_sh`
72266: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_query in -l$PDO_MYSQL_LIBNAME" >&5
72267: $as_echo_n "checking for mysql_query in -l$PDO_MYSQL_LIBNAME... " >&6; }
72268: if eval \${$as_ac_Lib+:} false; then :
72269: $as_echo_n "(cached) " >&6
72270: else
72271: ac_check_lib_save_LIBS=$LIBS
72272: LIBS="-l$PDO_MYSQL_LIBNAME $LIBS"
72273: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
72274: /* end confdefs.h. */
72275:
72276: /* Override any GCC internal prototype to avoid an error.
72277: Use char because int might match the return type of a GCC
72278: builtin and then its argument prototype would still apply. */
72279: #ifdef __cplusplus
72280: extern "C"
72281: #endif
72282: char mysql_query ();
72283: int
72284: main ()
72285: {
72286: return mysql_query ();
72287: ;
72288: return 0;
72289: }
72290: _ACEOF
72291: if ac_fn_c_try_link "$LINENO"; then :
72292: eval "$as_ac_Lib=yes"
72293: else
72294: eval "$as_ac_Lib=no"
72295: fi
72296: rm -f core conftest.err conftest.$ac_objext \
72297: conftest$ac_exeext conftest.$ac_ext
72298: LIBS=$ac_check_lib_save_LIBS
72299: fi
72300: eval ac_res=\$$as_ac_Lib
72301: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
72302: $as_echo "$ac_res" >&6; }
72303: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
72304:
72305: LDFLAGS=$save_old_LDFLAGS
72306: ext_shared=$save_ext_shared
72307:
72308:
72309: else
72310:
72311: LDFLAGS=$save_old_LDFLAGS
72312: ext_shared=$save_ext_shared
72313: unset ac_cv_lib_$PDO_MYSQL_LIBNAME_mysql_query
72314:
72315: as_fn_error $? "PDO_MYSQL configure failed. Please check config.log for more information." "$LINENO" 5
72316:
72317:
72318: fi
72319:
72320: PDO_MYSQL_LIBS="$PDO_MYSQL_LIBS -L$PHP_ZLIB_DIR/$PHP_LIBDIR -lz"
72321: else
72322:
72323:
72324: case z in
72325: c|c_r|pthread*) ;;
72326: *)
72327: if test "$ext_shared" = "yes"; then
72328: PDO_MYSQL_SHARED_LIBADD="-lz $PDO_MYSQL_SHARED_LIBADD"
72329: else
72330:
72331:
72332: case z in
72333: c|c_r|pthread*) ;;
72334: *)
72335: LIBS="-lz $LIBS"
72336: ;;
72337: esac
72338:
72339:
72340: fi
72341: ;;
72342: esac
72343:
72344:
72345:
72346: save_old_LDFLAGS=$LDFLAGS
72347: ac_stuff="
72348: -L$PDO_MYSQL_LIB_DIR
72349: "
72350:
72351: save_ext_shared=$ext_shared
72352: ext_shared=yes
72353:
72354: for ac_i in $ac_stuff; do
72355: case $ac_i in
72356: -pthread)
72357: if test "$ext_shared" = "yes"; then
72358: LDFLAGS="$LDFLAGS -pthread"
72359: else
72360:
72361:
72362: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
72363:
72364: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
72365: if test -n "$unique" && test "`eval $cmd`" = "" ; then
72366: eval "EXTRA_LDFLAGS$unique=set"
72367: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
72368: fi
72369:
72370: fi
72371: ;;
72372: -l*)
72373: ac_ii=`echo $ac_i|cut -c 3-`
72374:
72375:
72376: case $ac_ii in
72377: c|c_r|pthread*) ;;
72378: *)
72379: if test "$ext_shared" = "yes"; then
72380: LDFLAGS="$LDFLAGS -l$ac_ii"
72381: else
72382:
72383:
72384: case $ac_ii in
72385: c|c_r|pthread*) ;;
72386: *)
72387: LIBS="$LIBS -l$ac_ii"
72388: ;;
72389: esac
72390:
72391:
72392: fi
72393: ;;
72394: esac
72395:
72396:
72397: ;;
72398: -L*)
72399: ac_ii=`echo $ac_i|cut -c 3-`
72400:
72401: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
72402:
72403: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
72404: ai_p=$ac_ii
72405: else
72406:
72407: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
72408:
72409: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
72410: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
72411: fi
72412:
72413:
72414: if test "$ext_shared" = "yes"; then
72415: LDFLAGS="-L$ai_p $LDFLAGS"
72416: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
72417: else
72418:
72419:
72420:
72421: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
72422:
72423: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
72424: if test -n "$unique" && test "`eval $cmd`" = "" ; then
72425: eval "LIBPATH$unique=set"
72426:
72427: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
72428: LDFLAGS="$LDFLAGS -L$ai_p"
72429: PHP_RPATHS="$PHP_RPATHS $ai_p"
72430:
72431: fi
72432:
72433:
72434: fi
72435:
72436: fi
72437:
72438: ;;
72439: esac
72440: done
72441:
72442: as_ac_Lib=`$as_echo "ac_cv_lib_$PDO_MYSQL_LIBNAME''_mysql_query" | $as_tr_sh`
72443: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_query in -l$PDO_MYSQL_LIBNAME" >&5
72444: $as_echo_n "checking for mysql_query in -l$PDO_MYSQL_LIBNAME... " >&6; }
72445: if eval \${$as_ac_Lib+:} false; then :
72446: $as_echo_n "(cached) " >&6
72447: else
72448: ac_check_lib_save_LIBS=$LIBS
72449: LIBS="-l$PDO_MYSQL_LIBNAME $LIBS"
72450: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
72451: /* end confdefs.h. */
72452:
72453: /* Override any GCC internal prototype to avoid an error.
72454: Use char because int might match the return type of a GCC
72455: builtin and then its argument prototype would still apply. */
72456: #ifdef __cplusplus
72457: extern "C"
72458: #endif
72459: char mysql_query ();
72460: int
72461: main ()
72462: {
72463: return mysql_query ();
72464: ;
72465: return 0;
72466: }
72467: _ACEOF
72468: if ac_fn_c_try_link "$LINENO"; then :
72469: eval "$as_ac_Lib=yes"
72470: else
72471: eval "$as_ac_Lib=no"
72472: fi
72473: rm -f core conftest.err conftest.$ac_objext \
72474: conftest$ac_exeext conftest.$ac_ext
72475: LIBS=$ac_check_lib_save_LIBS
72476: fi
72477: eval ac_res=\$$as_ac_Lib
72478: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
72479: $as_echo "$ac_res" >&6; }
72480: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
72481:
72482: LDFLAGS=$save_old_LDFLAGS
72483: ext_shared=$save_ext_shared
72484:
72485:
72486: else
72487:
72488: LDFLAGS=$save_old_LDFLAGS
72489: ext_shared=$save_ext_shared
72490: unset ac_cv_lib_$PDO_MYSQL_LIBNAME_mysql_query
72491:
72492: as_fn_error $? "Try adding --with-zlib-dir=<DIR>. Please check config.log for more information." "$LINENO" 5
72493:
72494:
72495: fi
72496:
72497: PDO_MYSQL_LIBS="$PDO_MYSQL_LIBS -lz"
72498: fi
72499:
72500:
72501: for ac_i in $PDO_MYSQL_INCLUDE; do
72502: case $ac_i in
72503: -I*)
72504: ac_ii=`echo $ac_i|cut -c 3-`
72505:
72506: if test "$ac_ii" != "/usr/include"; then
72507:
72508: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
72509: ai_p=$ac_ii
72510: else
72511:
72512: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
72513:
72514: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
72515: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
72516: fi
72517:
72518:
72519:
72520: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
72521:
72522: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
72523: if test -n "$unique" && test "`eval $cmd`" = "" ; then
72524: eval "INCLUDEPATH$unique=set"
72525:
72526: if test ""; then
72527: INCLUDES="-I$ai_p $INCLUDES"
72528: else
72529: INCLUDES="$INCLUDES -I$ai_p"
72530: fi
72531:
72532: fi
72533:
72534: fi
72535:
72536: ;;
72537: esac
72538: done
72539:
72540:
72541: for ac_i in $PDO_MYSQL_LIBS; do
72542: case $ac_i in
72543: -pthread)
72544: if test "$ext_shared" = "yes"; then
72545: PDO_MYSQL_SHARED_LIBADD="$PDO_MYSQL_SHARED_LIBADD -pthread"
72546: else
72547:
72548:
72549: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
72550:
72551: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
72552: if test -n "$unique" && test "`eval $cmd`" = "" ; then
72553: eval "EXTRA_LDFLAGS$unique=set"
72554: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
72555: fi
72556:
72557: fi
72558: ;;
72559: -l*)
72560: ac_ii=`echo $ac_i|cut -c 3-`
72561:
72562:
72563: case $ac_ii in
72564: c|c_r|pthread*) ;;
72565: *)
72566: if test "$ext_shared" = "yes"; then
72567: PDO_MYSQL_SHARED_LIBADD="$PDO_MYSQL_SHARED_LIBADD -l$ac_ii"
72568: else
72569:
72570:
72571: case $ac_ii in
72572: c|c_r|pthread*) ;;
72573: *)
72574: LIBS="$LIBS -l$ac_ii"
72575: ;;
72576: esac
72577:
72578:
72579: fi
72580: ;;
72581: esac
72582:
72583:
72584: ;;
72585: -L*)
72586: ac_ii=`echo $ac_i|cut -c 3-`
72587:
72588: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
72589:
72590: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
72591: ai_p=$ac_ii
72592: else
72593:
72594: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
72595:
72596: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
72597: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
72598: fi
72599:
72600:
72601: if test "$ext_shared" = "yes"; then
72602: PDO_MYSQL_SHARED_LIBADD="-L$ai_p $PDO_MYSQL_SHARED_LIBADD"
72603: test -n "$ld_runpath_switch" && PDO_MYSQL_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_MYSQL_SHARED_LIBADD"
72604: else
72605:
72606:
72607:
72608: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
72609:
72610: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
72611: if test -n "$unique" && test "`eval $cmd`" = "" ; then
72612: eval "LIBPATH$unique=set"
72613:
72614: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
72615: LDFLAGS="$LDFLAGS -L$ai_p"
72616: PHP_RPATHS="$PHP_RPATHS $ai_p"
72617:
72618: fi
72619:
72620:
72621: fi
72622:
72623: fi
72624:
72625: ;;
72626: esac
72627: done
72628:
72629:
72630:
72631: fi
72632:
72633:
72634: _SAVE_LIBS=$LIBS
72635: LIBS="$LIBS $PDO_MYSQL_LIBS"
72636: for ac_func in mysql_commit mysql_stmt_prepare mysql_next_result mysql_sqlstate
72637: do :
72638: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
72639: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
72640: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
72641: cat >>confdefs.h <<_ACEOF
72642: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
72643: _ACEOF
72644:
72645: fi
72646: done
72647:
72648: LIBS=$_SAVE_LIBS
72649: fi
72650:
72651:
72652:
72653: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5
72654: $as_echo_n "checking for PDO includes... " >&6; }
72655: if ${pdo_inc_path+:} false; then :
72656: $as_echo_n "(cached) " >&6
72657: else
72658:
72659: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5
72660: $as_echo_n "checking for PDO includes... " >&6; }
72661: if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then
72662: pdo_inc_path=$abs_srcdir/ext
72663: elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then
72664: pdo_inc_path=$abs_srcdir/ext
72665: elif test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then
72666: pdo_inc_path=$prefix/include/php/ext
72667: fi
72668:
72669: fi
72670: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pdo_inc_path" >&5
72671: $as_echo "$pdo_inc_path" >&6; }
72672: if test -n "$pdo_inc_path"; then
72673: :
72674: else
72675: as_fn_error $? "Cannot find php_pdo_driver.h." "$LINENO" 5
72676: fi
72677:
72678:
72679:
72680: if test -n "$PDO_MYSQL_CONFIG"; then
72681: PDO_MYSQL_SOCKET=`$PDO_MYSQL_CONFIG --socket`
72682:
72683: cat >>confdefs.h <<_ACEOF
72684: #define PDO_MYSQL_UNIX_ADDR "$PDO_MYSQL_SOCKET"
72685: _ACEOF
72686:
72687: fi
72688:
72689:
72690: ext_builddir=ext/pdo_mysql
72691: ext_srcdir=$abs_srcdir/ext/pdo_mysql
72692:
72693: ac_extra=`echo "-I$pdo_inc_path -I"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
72694:
72695: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
72696: PHP_PDO_MYSQL_SHARED=no
72697:
72698:
72699: case ext/pdo_mysql in
72700: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
72701: /*) ac_srcdir=`echo "ext/pdo_mysql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
72702: *) ac_srcdir="$abs_srcdir/ext/pdo_mysql/"; ac_bdir="ext/pdo_mysql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
72703: esac
72704:
72705:
72706:
72707: b_c_pre=$php_c_pre
72708: b_cxx_pre=$php_cxx_pre
72709: b_c_meta=$php_c_meta
72710: b_cxx_meta=$php_cxx_meta
72711: b_c_post=$php_c_post
72712: b_cxx_post=$php_cxx_post
72713: b_lo=$php_lo
72714:
72715:
72716: old_IFS=$IFS
72717: for ac_src in pdo_mysql.c mysql_driver.c mysql_statement.c; do
72718:
72719: IFS=.
72720: set $ac_src
72721: ac_obj=$1
72722: IFS=$old_IFS
72723:
72724: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
72725:
72726: case $ac_src in
72727: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
72728: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
72729: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
72730: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
72731: esac
72732:
72733: cat >>Makefile.objects<<EOF
72734: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
72735: $ac_comp
72736: EOF
72737: done
72738:
72739:
72740: EXT_STATIC="$EXT_STATIC pdo_mysql"
72741: if test "$ext_shared" != "nocli"; then
72742: EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_mysql"
72743: fi
72744: else
72745: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
72746: PHP_PDO_MYSQL_SHARED=yes
72747:
72748: case ext/pdo_mysql in
72749: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
72750: /*) ac_srcdir=`echo "ext/pdo_mysql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
72751: *) ac_srcdir="$abs_srcdir/ext/pdo_mysql/"; ac_bdir="ext/pdo_mysql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
72752: esac
72753:
72754:
72755:
72756: b_c_pre=$shared_c_pre
72757: b_cxx_pre=$shared_cxx_pre
72758: b_c_meta=$shared_c_meta
72759: b_cxx_meta=$shared_cxx_meta
72760: b_c_post=$shared_c_post
72761: b_cxx_post=$shared_cxx_post
72762: b_lo=$shared_lo
72763:
72764:
72765: old_IFS=$IFS
72766: for ac_src in pdo_mysql.c mysql_driver.c mysql_statement.c; do
72767:
72768: IFS=.
72769: set $ac_src
72770: ac_obj=$1
72771: IFS=$old_IFS
72772:
72773: shared_objects_pdo_mysql="$shared_objects_pdo_mysql $ac_bdir$ac_obj.lo"
72774:
72775: case $ac_src in
72776: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
72777: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
72778: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
72779: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
72780: esac
72781:
72782: cat >>Makefile.objects<<EOF
72783: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
72784: $ac_comp
72785: EOF
72786: done
72787:
72788: case $host_alias in
72789: *netware*)
72790:
72791: install_modules="install-modules"
72792:
72793: case $host_alias in
72794: *aix*)
72795: suffix=so
72796: 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'
72797: ;;
72798: *netware*)
72799: suffix=nlm
72800: link_cmd='$(LIBTOOL) --mode=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)'
72801: ;;
72802: *)
72803: suffix=la
72804: link_cmd='$(LIBTOOL) --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)'
72805: ;;
72806: esac
72807:
72808: if test "x" = "xyes"; then
72809: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phppdo_mysql.$suffix"
72810: else
72811: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phppdo_mysql.$suffix"
72812: fi
72813:
72814: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo_mysql"
72815:
72816: cat >>Makefile.objects<<EOF
72817: \$(phplibdir)/phppdo_mysql.$suffix: $ext_builddir/phppdo_mysql.$suffix
72818: \$(LIBTOOL) --mode=install cp $ext_builddir/phppdo_mysql.$suffix \$(phplibdir)
72819:
72820: $ext_builddir/phppdo_mysql.$suffix: \$(shared_objects_pdo_mysql) \$(PHPPDO_MYSQL_SHARED_DEPENDENCIES)
72821: $link_cmd
72822:
72823: EOF
72824:
72825: ;;
72826: *)
72827:
72828: install_modules="install-modules"
72829:
72830: case $host_alias in
72831: *aix*)
72832: suffix=so
72833: 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'
72834: ;;
72835: *netware*)
72836: suffix=nlm
72837: link_cmd='$(LIBTOOL) --mode=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)'
72838: ;;
72839: *)
72840: suffix=la
72841: link_cmd='$(LIBTOOL) --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)'
72842: ;;
72843: esac
72844:
72845: if test "x" = "xyes"; then
72846: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/pdo_mysql.$suffix"
72847: else
72848: PHP_MODULES="$PHP_MODULES \$(phplibdir)/pdo_mysql.$suffix"
72849: fi
72850:
72851: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo_mysql"
72852:
72853: cat >>Makefile.objects<<EOF
72854: \$(phplibdir)/pdo_mysql.$suffix: $ext_builddir/pdo_mysql.$suffix
72855: \$(LIBTOOL) --mode=install cp $ext_builddir/pdo_mysql.$suffix \$(phplibdir)
72856:
72857: $ext_builddir/pdo_mysql.$suffix: \$(shared_objects_pdo_mysql) \$(PDO_MYSQL_SHARED_DEPENDENCIES)
72858: $link_cmd
72859:
72860: EOF
72861:
72862: ;;
72863: esac
72864:
72865: cat >>confdefs.h <<_ACEOF
72866: #define COMPILE_DL_PDO_MYSQL 1
72867: _ACEOF
72868:
72869: fi
72870: fi
72871:
72872: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
72873: PHP_PDO_MYSQL_SHARED=no
72874:
72875:
72876: case ext/pdo_mysql in
72877: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
72878: /*) ac_srcdir=`echo "ext/pdo_mysql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
72879: *) ac_srcdir="$abs_srcdir/ext/pdo_mysql/"; ac_bdir="ext/pdo_mysql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
72880: esac
72881:
72882:
72883:
72884: b_c_pre=$php_c_pre
72885: b_cxx_pre=$php_cxx_pre
72886: b_c_meta=$php_c_meta
72887: b_cxx_meta=$php_cxx_meta
72888: b_c_post=$php_c_post
72889: b_cxx_post=$php_cxx_post
72890: b_lo=$php_lo
72891:
72892:
72893: old_IFS=$IFS
72894: for ac_src in pdo_mysql.c mysql_driver.c mysql_statement.c; do
72895:
72896: IFS=.
72897: set $ac_src
72898: ac_obj=$1
72899: IFS=$old_IFS
72900:
72901: PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
72902:
72903: case $ac_src in
72904: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
72905: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
72906: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
72907: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
72908: esac
72909:
72910: cat >>Makefile.objects<<EOF
72911: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
72912: $ac_comp
72913: EOF
72914: done
72915:
72916:
72917:
72918:
72919: case ext/pdo_mysql in
72920: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
72921: /*) ac_srcdir=`echo "ext/pdo_mysql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
72922: *) ac_srcdir="$abs_srcdir/ext/pdo_mysql/"; ac_bdir="ext/pdo_mysql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
72923: esac
72924:
72925:
72926:
72927: b_c_pre=$php_c_pre
72928: b_cxx_pre=$php_cxx_pre
72929: b_c_meta=$php_c_meta
72930: b_cxx_meta=$php_cxx_meta
72931: b_c_post=$php_c_post
72932: b_cxx_post=$php_cxx_post
72933: b_lo=$php_lo
72934:
72935:
72936: old_IFS=$IFS
72937: for ac_src in pdo_mysql.c mysql_driver.c mysql_statement.c; do
72938:
72939: IFS=.
72940: set $ac_src
72941: ac_obj=$1
72942: IFS=$old_IFS
72943:
72944: PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo"
72945:
72946: case $ac_src in
72947: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
72948: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
72949: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
72950: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
72951: esac
72952:
72953: cat >>Makefile.objects<<EOF
72954: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
72955: $ac_comp
72956: EOF
72957: done
72958:
72959:
72960:
72961:
72962: case ext/pdo_mysql in
72963: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
72964: /*) ac_srcdir=`echo "ext/pdo_mysql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
72965: *) ac_srcdir="$abs_srcdir/ext/pdo_mysql/"; ac_bdir="ext/pdo_mysql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
72966: esac
72967:
72968:
72969:
72970: b_c_pre=$php_c_pre
72971: b_cxx_pre=$php_cxx_pre
72972: b_c_meta=$php_c_meta
72973: b_cxx_meta=$php_cxx_meta
72974: b_c_post=$php_c_post
72975: b_cxx_post=$php_cxx_post
72976: b_lo=$php_lo
72977:
72978:
72979: old_IFS=$IFS
72980: for ac_src in pdo_mysql.c mysql_driver.c mysql_statement.c; do
72981:
72982: IFS=.
72983: set $ac_src
72984: ac_obj=$1
72985: IFS=$old_IFS
72986:
72987: PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo"
72988:
72989: case $ac_src in
72990: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
72991: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
72992: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
72993: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
72994: esac
72995:
72996: cat >>Makefile.objects<<EOF
72997: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
72998: $ac_comp
72999: EOF
73000: done
73001:
73002:
73003: EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_mysql"
73004: fi
73005:
73006:
73007: BUILD_DIR="$BUILD_DIR $ext_builddir"
73008:
73009:
73010:
73011: if test "$ext_builddir" = "."; then
73012: PHP_PECL_EXTENSION=pdo_mysql
73013:
73014: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
73015:
73016: fi
73017:
73018:
73019:
73020: am_i_shared=$PHP_PDO_MYSQL_SHARED
73021: is_it_shared=$PHP_PDO_SHARED
73022: is_it_enabled=$PHP_PDO
73023: if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
73024: as_fn_error $? "
73025: You've configured extension pdo_mysql to build statically, but it
73026: depends on extension pdo, which you've configured to build shared.
73027: You either need to build pdo_mysql shared or build pdo statically for the
73028: build to be successful.
73029: " "$LINENO" 5
73030: fi
73031:
73032: if test "$PHP_MYSQL" = "mysqlnd"; then
73033:
73034: am_i_shared=$PHP_PDO_MYSQL_SHARED
73035: is_it_shared=$PHP_MYSQLND_SHARED
73036: is_it_enabled=$PHP_MYSQLND
73037: if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
73038: as_fn_error $? "
73039: You've configured extension pdo_mysql to build statically, but it
73040: depends on extension mysqlnd, which you've configured to build shared.
73041: You either need to build pdo_mysql shared or build mysqlnd statically for the
73042: build to be successful.
73043: " "$LINENO" 5
73044: fi
73045:
73046: fi
73047:
73048: PDO_MYSQL_MODULE_TYPE=external
73049:
73050:
73051: PHP_VAR_SUBST="$PHP_VAR_SUBST PDO_MYSQL_SHARED_LIBADD"
73052:
73053:
73054:
73055: PHP_VAR_SUBST="$PHP_VAR_SUBST PDO_MYSQL_MODULE_TYPE"
73056:
73057:
73058:
73059: fi
73060:
73061:
73062: SUPPORTED_LIB_VERS="9.0 10.1 11.1" # This caters for all Oracle 9.x, 10.x and 11.1 installs
73063:
73064:
73065:
73066:
73067:
73068: php_with_pdo_oci=no
73069:
73070: { $as_echo "$as_me:${as_lineno-$LINENO}: checking Oracle OCI support for PDO" >&5
73071: $as_echo_n "checking Oracle OCI support for PDO... " >&6; }
73072:
73073: # Check whether --with-pdo-oci was given.
73074: if test "${with_pdo_oci+set}" = set; then :
73075: withval=$with_pdo_oci; PHP_PDO_OCI=$withval
73076: else
73077:
73078: PHP_PDO_OCI=no
73079: test "$PHP_ENABLE_ALL" && PHP_PDO_OCI=$PHP_ENABLE_ALL
73080:
73081: fi
73082:
73083:
73084:
73085: ext_output="yes, shared"
73086: ext_shared=yes
73087: case $PHP_PDO_OCI in
73088: shared,*)
73089: PHP_PDO_OCI=`echo "$PHP_PDO_OCI"|$SED 's/^shared,//'`
73090: ;;
73091: shared)
73092: PHP_PDO_OCI=yes
73093: ;;
73094: no)
73095: ext_output=no
73096: ext_shared=no
73097: ;;
73098: *)
73099: ext_output=yes
73100: ext_shared=no
73101: ;;
73102: esac
73103:
73104:
73105:
73106: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
73107: $as_echo "$ext_output" >&6; }
73108:
73109:
73110:
73111:
73112: if test "$PHP_PDO_OCI" != "no"; then
73113:
73114: if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then
73115: as_fn_error $? "PDO is not enabled! Add --enable-pdo to your configure line." "$LINENO" 5
73116: fi
73117:
73118: { $as_echo "$as_me:${as_lineno-$LINENO}: checking Oracle Install-Dir" >&5
73119: $as_echo_n "checking Oracle Install-Dir... " >&6; }
73120: if test "$PHP_PDO_OCI" = "yes" || test -z "$PHP_PDO_OCI"; then
73121: PDO_OCI_DIR=$ORACLE_HOME
73122: else
73123: PDO_OCI_DIR=$PHP_PDO_OCI
73124: fi
73125: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_PDO_OCI" >&5
73126: $as_echo "$PHP_PDO_OCI" >&6; }
73127:
73128: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if that is sane" >&5
73129: $as_echo_n "checking if that is sane... " >&6; }
73130: if test -z "$PDO_OCI_DIR"; then
73131: as_fn_error $? "
73132: You need to tell me where to find your Oracle Instant Client SDK, or set ORACLE_HOME.
73133: " "$LINENO" 5
73134: else
73135: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
73136: $as_echo "yes" >&6; }
73137: fi
73138:
73139: if test "instantclient" = "`echo $PDO_OCI_DIR | cut -d, -f1`" ; then
73140: # The cast to long int works around a bug in the HP C Compiler
73141: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
73142: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
73143: # This bug is HP SR number 8606223364.
73144: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
73145: $as_echo_n "checking size of long int... " >&6; }
73146: if ${ac_cv_sizeof_long_int+:} false; then :
73147: $as_echo_n "(cached) " >&6
73148: else
73149: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
73150:
73151: else
73152: if test "$ac_cv_type_long_int" = yes; then
73153: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
73154: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
73155: as_fn_error 77 "cannot compute sizeof (long int)
73156: See \`config.log' for more details" "$LINENO" 5; }
73157: else
73158: ac_cv_sizeof_long_int=0
73159: fi
73160: fi
73161:
73162: fi
73163: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
73164: $as_echo "$ac_cv_sizeof_long_int" >&6; }
73165:
73166:
73167:
73168: cat >>confdefs.h <<_ACEOF
73169: #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
73170: _ACEOF
73171:
73172:
73173: if test "$ac_cv_sizeof_long_int" = "4" ; then
73174: PDO_OCI_CLIENT_DIR="client"
73175: else
73176: PDO_OCI_CLIENT_DIR="client64"
73177: fi
73178: PDO_OCI_IC_PREFIX="`echo $PDO_OCI_DIR | cut -d, -f2`"
73179: PDO_OCI_IC_VERS="`echo $PDO_OCI_DIR | cut -d, -f3`"
73180: if test -n "$PDO_OCI_IC_VERS"; then
73181: PDO_OCI_IC_MAJ_VER="`echo $PDO_OCI_IC_VERS | cut -d. -f1`"
73182: if test "$PDO_OCI_IC_MAJ_VER" -ge 11; then
73183: # From 11.1.0.7 the RPM path only has an X.Y component
73184: PDO_OCI_IC_VERS="`echo $PDO_OCI_IC_VERS | cut -d. -f1-2`"
73185: fi
73186: fi
73187: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for oci.h" >&5
73188: $as_echo_n "checking for oci.h... " >&6; }
73189: if test -f $PDO_OCI_IC_PREFIX/include/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/oci.h ; then
73190:
73191: if test "$PDO_OCI_IC_PREFIX/include/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR" != "/usr/include"; then
73192:
73193: 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
73194: ai_p=$PDO_OCI_IC_PREFIX/include/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR
73195: else
73196:
73197: ep_dir="`echo $PDO_OCI_IC_PREFIX/include/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR|$SED 's%/*[^/][^/]*/*$%%'`"
73198:
73199: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
73200: ai_p="$ep_realdir/`basename \"$PDO_OCI_IC_PREFIX/include/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR\"`"
73201: fi
73202:
73203:
73204:
73205: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
73206:
73207: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
73208: if test -n "$unique" && test "`eval $cmd`" = "" ; then
73209: eval "INCLUDEPATH$unique=set"
73210:
73211: if test ""; then
73212: INCLUDES="-I$ai_p $INCLUDES"
73213: else
73214: INCLUDES="$INCLUDES -I$ai_p"
73215: fi
73216:
73217: fi
73218:
73219: fi
73220:
73221: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDO_OCI_IC_PREFIX/include/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR" >&5
73222: $as_echo "$PDO_OCI_IC_PREFIX/include/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR" >&6; }
73223: elif test -f $PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/include/oci.h ; then
73224:
73225: if test "$PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/include" != "/usr/include"; then
73226:
73227: 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
73228: ai_p=$PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/include
73229: else
73230:
73231: ep_dir="`echo $PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
73232:
73233: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
73234: ai_p="$ep_realdir/`basename \"$PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/include\"`"
73235: fi
73236:
73237:
73238:
73239: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
73240:
73241: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
73242: if test -n "$unique" && test "`eval $cmd`" = "" ; then
73243: eval "INCLUDEPATH$unique=set"
73244:
73245: if test ""; then
73246: INCLUDES="-I$ai_p $INCLUDES"
73247: else
73248: INCLUDES="$INCLUDES -I$ai_p"
73249: fi
73250:
73251: fi
73252:
73253: fi
73254:
73255: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/include" >&5
73256: $as_echo "$PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/include" >&6; }
73257: elif test -f $PDO_OCI_IC_PREFIX/sdk/include/oci.h ; then
73258:
73259: if test "$PDO_OCI_IC_PREFIX/sdk/include" != "/usr/include"; then
73260:
73261: if test -z "$PDO_OCI_IC_PREFIX/sdk/include" || echo "$PDO_OCI_IC_PREFIX/sdk/include" | grep '^/' >/dev/null ; then
73262: ai_p=$PDO_OCI_IC_PREFIX/sdk/include
73263: else
73264:
73265: ep_dir="`echo $PDO_OCI_IC_PREFIX/sdk/include|$SED 's%/*[^/][^/]*/*$%%'`"
73266:
73267: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
73268: ai_p="$ep_realdir/`basename \"$PDO_OCI_IC_PREFIX/sdk/include\"`"
73269: fi
73270:
73271:
73272:
73273: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
73274:
73275: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
73276: if test -n "$unique" && test "`eval $cmd`" = "" ; then
73277: eval "INCLUDEPATH$unique=set"
73278:
73279: if test ""; then
73280: INCLUDES="-I$ai_p $INCLUDES"
73281: else
73282: INCLUDES="$INCLUDES -I$ai_p"
73283: fi
73284:
73285: fi
73286:
73287: fi
73288:
73289: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDO_OCI_IC_PREFIX/sdk/include" >&5
73290: $as_echo "$PDO_OCI_IC_PREFIX/sdk/include" >&6; }
73291: elif test -f $PDO_OCI_IC_PREFIX/$PDO_OCI_CLIENT_DIR/include/oci.h ; then
73292:
73293: if test "$PDO_OCI_IC_PREFIX/$PDO_OCI_CLIENT_DIR/include" != "/usr/include"; then
73294:
73295: 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
73296: ai_p=$PDO_OCI_IC_PREFIX/$PDO_OCI_CLIENT_DIR/include
73297: else
73298:
73299: ep_dir="`echo $PDO_OCI_IC_PREFIX/$PDO_OCI_CLIENT_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
73300:
73301: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
73302: ai_p="$ep_realdir/`basename \"$PDO_OCI_IC_PREFIX/$PDO_OCI_CLIENT_DIR/include\"`"
73303: fi
73304:
73305:
73306:
73307: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
73308:
73309: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
73310: if test -n "$unique" && test "`eval $cmd`" = "" ; then
73311: eval "INCLUDEPATH$unique=set"
73312:
73313: if test ""; then
73314: INCLUDES="-I$ai_p $INCLUDES"
73315: else
73316: INCLUDES="$INCLUDES -I$ai_p"
73317: fi
73318:
73319: fi
73320:
73321: fi
73322:
73323: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDO_OCI_IC_PREFIX/$PDO_OCI_CLIENT_DIR/include" >&5
73324: $as_echo "$PDO_OCI_IC_PREFIX/$PDO_OCI_CLIENT_DIR/include" >&6; }
73325: else
73326: as_fn_error $? "I'm too dumb to figure out where the include dir is in your Instant Client install" "$LINENO" 5
73327: fi
73328: if test -f "$PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/lib/libclntsh.$SHLIB_SUFFIX_NAME" ; then
73329: PDO_OCI_LIB_DIR="$PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/lib"
73330: elif test -f "$PDO_OCI_IC_PREFIX/$PDO_OCI_CLIENT_DIR/lib/libclntsh.$SHLIB_SUFFIX_NAME" ; then
73331: PDO_OCI_LIB_DIR="$PDO_OCI_IC_PREFIX/$PDO_OCI_CLIENT_DIR/lib"
73332: elif test -f "$PDO_OCI_IC_PREFIX/libclntsh.$SHLIB_SUFFIX_NAME" ; then
73333: PDO_OCI_LIB_DIR="$PDO_OCI_IC_PREFIX"
73334: else
73335: as_fn_error $? "I'm too dumb to figure out where the libraries are in your Instant Client install" "$LINENO" 5
73336: fi
73337: PDO_OCI_VERSION="`echo $PDO_OCI_IC_VERS | cut -d. -f1-2`"
73338: else
73339:
73340: # The cast to long int works around a bug in the HP C Compiler
73341: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
73342: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
73343: # This bug is HP SR number 8606223364.
73344: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
73345: $as_echo_n "checking size of long int... " >&6; }
73346: if ${ac_cv_sizeof_long_int+:} false; then :
73347: $as_echo_n "(cached) " >&6
73348: else
73349: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
73350:
73351: else
73352: if test "$ac_cv_type_long_int" = yes; then
73353: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
73354: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
73355: as_fn_error 77 "cannot compute sizeof (long int)
73356: See \`config.log' for more details" "$LINENO" 5; }
73357: else
73358: ac_cv_sizeof_long_int=0
73359: fi
73360: fi
73361:
73362: fi
73363: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
73364: $as_echo "$ac_cv_sizeof_long_int" >&6; }
73365:
73366:
73367:
73368: cat >>confdefs.h <<_ACEOF
73369: #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
73370: _ACEOF
73371:
73372:
73373: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're on a 64-bit platform" >&5
73374: $as_echo_n "checking if we're on a 64-bit platform... " >&6; }
73375: if test "$ac_cv_sizeof_long_int" = "4" ; then
73376: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
73377: $as_echo "no" >&6; }
73378: TMP_PDO_OCI_LIB_DIR="$PDO_OCI_DIR/lib32"
73379: else
73380: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
73381: $as_echo "yes" >&6; }
73382: TMP_PDO_OCI_LIB_DIR="$PDO_OCI_DIR/lib"
73383: fi
73384:
73385: { $as_echo "$as_me:${as_lineno-$LINENO}: checking OCI8 libraries dir" >&5
73386: $as_echo_n "checking OCI8 libraries dir... " >&6; }
73387: if test -d "$PDO_OCI_DIR/lib" && test ! -d "$PDO_OCI_DIR/lib32"; then
73388: PDO_OCI_LIB_DIR="$PDO_OCI_DIR/lib"
73389: elif test ! -d "$PDO_OCI_DIR/lib" && test -d "$PDO_OCI_DIR/lib32"; then
73390: PDO_OCI_LIB_DIR="$PDO_OCI_DIR/lib32"
73391: elif test -d "$PDO_OCI_DIR/lib" && test -d "$PDO_OCI_DIR/lib32"; then
73392: PDO_OCI_LIB_DIR=$TMP_PDO_OCI_LIB_DIR
73393: else
73394: as_fn_error $? "Oracle required OCI8 libraries not found" "$LINENO" 5
73395: fi
73396: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDO_OCI_LIB_DIR" >&5
73397: $as_echo "$PDO_OCI_LIB_DIR" >&6; }
73398:
73399:
73400: if test -d "$PDO_OCI_DIR/rdbms/public"; then
73401:
73402: if test "$PDO_OCI_DIR/rdbms/public" != "/usr/include"; then
73403:
73404: if test -z "$PDO_OCI_DIR/rdbms/public" || echo "$PDO_OCI_DIR/rdbms/public" | grep '^/' >/dev/null ; then
73405: ai_p=$PDO_OCI_DIR/rdbms/public
73406: else
73407:
73408: ep_dir="`echo $PDO_OCI_DIR/rdbms/public|$SED 's%/*[^/][^/]*/*$%%'`"
73409:
73410: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
73411: ai_p="$ep_realdir/`basename \"$PDO_OCI_DIR/rdbms/public\"`"
73412: fi
73413:
73414:
73415:
73416: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
73417:
73418: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
73419: if test -n "$unique" && test "`eval $cmd`" = "" ; then
73420: eval "INCLUDEPATH$unique=set"
73421:
73422: if test ""; then
73423: INCLUDES="-I$ai_p $INCLUDES"
73424: else
73425: INCLUDES="$INCLUDES -I$ai_p"
73426: fi
73427:
73428: fi
73429:
73430: fi
73431:
73432: PDO_OCI_INCLUDES="$PDO_OCI_INCLUDES -I$PDO_OCI_DIR/rdbms/public"
73433: fi
73434: if test -d "$PDO_OCI_DIR/rdbms/demo"; then
73435:
73436: if test "$PDO_OCI_DIR/rdbms/demo" != "/usr/include"; then
73437:
73438: if test -z "$PDO_OCI_DIR/rdbms/demo" || echo "$PDO_OCI_DIR/rdbms/demo" | grep '^/' >/dev/null ; then
73439: ai_p=$PDO_OCI_DIR/rdbms/demo
73440: else
73441:
73442: ep_dir="`echo $PDO_OCI_DIR/rdbms/demo|$SED 's%/*[^/][^/]*/*$%%'`"
73443:
73444: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
73445: ai_p="$ep_realdir/`basename \"$PDO_OCI_DIR/rdbms/demo\"`"
73446: fi
73447:
73448:
73449:
73450: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
73451:
73452: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
73453: if test -n "$unique" && test "`eval $cmd`" = "" ; then
73454: eval "INCLUDEPATH$unique=set"
73455:
73456: if test ""; then
73457: INCLUDES="-I$ai_p $INCLUDES"
73458: else
73459: INCLUDES="$INCLUDES -I$ai_p"
73460: fi
73461:
73462: fi
73463:
73464: fi
73465:
73466: PDO_OCI_INCLUDES="$PDO_OCI_INCLUDES -I$PDO_OCI_DIR/rdbms/demo"
73467: fi
73468: if test -d "$PDO_OCI_DIR/network/public"; then
73469:
73470: if test "$PDO_OCI_DIR/network/public" != "/usr/include"; then
73471:
73472: if test -z "$PDO_OCI_DIR/network/public" || echo "$PDO_OCI_DIR/network/public" | grep '^/' >/dev/null ; then
73473: ai_p=$PDO_OCI_DIR/network/public
73474: else
73475:
73476: ep_dir="`echo $PDO_OCI_DIR/network/public|$SED 's%/*[^/][^/]*/*$%%'`"
73477:
73478: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
73479: ai_p="$ep_realdir/`basename \"$PDO_OCI_DIR/network/public\"`"
73480: fi
73481:
73482:
73483:
73484: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
73485:
73486: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
73487: if test -n "$unique" && test "`eval $cmd`" = "" ; then
73488: eval "INCLUDEPATH$unique=set"
73489:
73490: if test ""; then
73491: INCLUDES="-I$ai_p $INCLUDES"
73492: else
73493: INCLUDES="$INCLUDES -I$ai_p"
73494: fi
73495:
73496: fi
73497:
73498: fi
73499:
73500: PDO_OCI_INCLUDES="$PDO_OCI_INCLUDES -I$PDO_OCI_DIR/network/public"
73501: fi
73502: if test -d "$PDO_OCI_DIR/plsql/public"; then
73503:
73504: if test "$PDO_OCI_DIR/plsql/public" != "/usr/include"; then
73505:
73506: if test -z "$PDO_OCI_DIR/plsql/public" || echo "$PDO_OCI_DIR/plsql/public" | grep '^/' >/dev/null ; then
73507: ai_p=$PDO_OCI_DIR/plsql/public
73508: else
73509:
73510: ep_dir="`echo $PDO_OCI_DIR/plsql/public|$SED 's%/*[^/][^/]*/*$%%'`"
73511:
73512: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
73513: ai_p="$ep_realdir/`basename \"$PDO_OCI_DIR/plsql/public\"`"
73514: fi
73515:
73516:
73517:
73518: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
73519:
73520: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
73521: if test -n "$unique" && test "`eval $cmd`" = "" ; then
73522: eval "INCLUDEPATH$unique=set"
73523:
73524: if test ""; then
73525: INCLUDES="-I$ai_p $INCLUDES"
73526: else
73527: INCLUDES="$INCLUDES -I$ai_p"
73528: fi
73529:
73530: fi
73531:
73532: fi
73533:
73534: PDO_OCI_INCLUDES="$PDO_OCI_INCLUDES -I$PDO_OCI_DIR/plsql/public"
73535: fi
73536: if test -d "$PDO_OCI_DIR/include"; then
73537:
73538: if test "$PDO_OCI_DIR/include" != "/usr/include"; then
73539:
73540: if test -z "$PDO_OCI_DIR/include" || echo "$PDO_OCI_DIR/include" | grep '^/' >/dev/null ; then
73541: ai_p=$PDO_OCI_DIR/include
73542: else
73543:
73544: ep_dir="`echo $PDO_OCI_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
73545:
73546: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
73547: ai_p="$ep_realdir/`basename \"$PDO_OCI_DIR/include\"`"
73548: fi
73549:
73550:
73551:
73552: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
73553:
73554: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
73555: if test -n "$unique" && test "`eval $cmd`" = "" ; then
73556: eval "INCLUDEPATH$unique=set"
73557:
73558: if test ""; then
73559: INCLUDES="-I$ai_p $INCLUDES"
73560: else
73561: INCLUDES="$INCLUDES -I$ai_p"
73562: fi
73563:
73564: fi
73565:
73566: fi
73567:
73568: PDO_OCI_INCLUDES="$PDO_OCI_INCLUDES -I$PDO_OCI_DIR/include"
73569: fi
73570:
73571: if test -f "$PDO_OCI_LIB_DIR/sysliblist"; then
73572:
73573: for ac_i in `cat $PDO_OCI_LIB_DIR/sysliblist`; do
73574: case $ac_i in
73575: -pthread)
73576: if test "$ext_shared" = "yes"; then
73577: PDO_OCI_SYSLIB="$PDO_OCI_SYSLIB -pthread"
73578: else
73579:
73580:
73581: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
73582:
73583: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
73584: if test -n "$unique" && test "`eval $cmd`" = "" ; then
73585: eval "EXTRA_LDFLAGS$unique=set"
73586: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
73587: fi
73588:
73589: fi
73590: ;;
73591: -l*)
73592: ac_ii=`echo $ac_i|cut -c 3-`
73593:
73594:
73595: case $ac_ii in
73596: c|c_r|pthread*) ;;
73597: *)
73598: if test "$ext_shared" = "yes"; then
73599: PDO_OCI_SYSLIB="$PDO_OCI_SYSLIB -l$ac_ii"
73600: else
73601:
73602:
73603: case $ac_ii in
73604: c|c_r|pthread*) ;;
73605: *)
73606: LIBS="$LIBS -l$ac_ii"
73607: ;;
73608: esac
73609:
73610:
73611: fi
73612: ;;
73613: esac
73614:
73615:
73616: ;;
73617: -L*)
73618: ac_ii=`echo $ac_i|cut -c 3-`
73619:
73620: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
73621:
73622: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
73623: ai_p=$ac_ii
73624: else
73625:
73626: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
73627:
73628: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
73629: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
73630: fi
73631:
73632:
73633: if test "$ext_shared" = "yes"; then
73634: PDO_OCI_SYSLIB="-L$ai_p $PDO_OCI_SYSLIB"
73635: test -n "$ld_runpath_switch" && PDO_OCI_SYSLIB="$ld_runpath_switch$ai_p $PDO_OCI_SYSLIB"
73636: else
73637:
73638:
73639:
73640: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
73641:
73642: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
73643: if test -n "$unique" && test "`eval $cmd`" = "" ; then
73644: eval "LIBPATH$unique=set"
73645:
73646: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
73647: LDFLAGS="$LDFLAGS -L$ai_p"
73648: PHP_RPATHS="$PHP_RPATHS $ai_p"
73649:
73650: fi
73651:
73652:
73653: fi
73654:
73655: fi
73656:
73657: ;;
73658: esac
73659: done
73660:
73661: elif test -f "$PDO_OCI_DIR/rdbms/lib/sysliblist"; then
73662:
73663: for ac_i in `cat $PDO_OCI_DIR/rdbms/lib/sysliblist`; do
73664: case $ac_i in
73665: -pthread)
73666: if test "$ext_shared" = "yes"; then
73667: PDO_OCI_SYSLIB="$PDO_OCI_SYSLIB -pthread"
73668: else
73669:
73670:
73671: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
73672:
73673: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
73674: if test -n "$unique" && test "`eval $cmd`" = "" ; then
73675: eval "EXTRA_LDFLAGS$unique=set"
73676: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
73677: fi
73678:
73679: fi
73680: ;;
73681: -l*)
73682: ac_ii=`echo $ac_i|cut -c 3-`
73683:
73684:
73685: case $ac_ii in
73686: c|c_r|pthread*) ;;
73687: *)
73688: if test "$ext_shared" = "yes"; then
73689: PDO_OCI_SYSLIB="$PDO_OCI_SYSLIB -l$ac_ii"
73690: else
73691:
73692:
73693: case $ac_ii in
73694: c|c_r|pthread*) ;;
73695: *)
73696: LIBS="$LIBS -l$ac_ii"
73697: ;;
73698: esac
73699:
73700:
73701: fi
73702: ;;
73703: esac
73704:
73705:
73706: ;;
73707: -L*)
73708: ac_ii=`echo $ac_i|cut -c 3-`
73709:
73710: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
73711:
73712: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
73713: ai_p=$ac_ii
73714: else
73715:
73716: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
73717:
73718: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
73719: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
73720: fi
73721:
73722:
73723: if test "$ext_shared" = "yes"; then
73724: PDO_OCI_SYSLIB="-L$ai_p $PDO_OCI_SYSLIB"
73725: test -n "$ld_runpath_switch" && PDO_OCI_SYSLIB="$ld_runpath_switch$ai_p $PDO_OCI_SYSLIB"
73726: else
73727:
73728:
73729:
73730: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
73731:
73732: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
73733: if test -n "$unique" && test "`eval $cmd`" = "" ; then
73734: eval "LIBPATH$unique=set"
73735:
73736: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
73737: LDFLAGS="$LDFLAGS -L$ai_p"
73738: PHP_RPATHS="$PHP_RPATHS $ai_p"
73739:
73740: fi
73741:
73742:
73743: fi
73744:
73745: fi
73746:
73747: ;;
73748: esac
73749: done
73750:
73751: fi
73752:
73753: { $as_echo "$as_me:${as_lineno-$LINENO}: checking Oracle version" >&5
73754: $as_echo_n "checking Oracle version... " >&6; }
73755: for OCI_VER in $SUPPORTED_LIB_VERS; do
73756: if test -f $PDO_OCI_DIR/lib/libclntsh.$SHLIB_SUFFIX_NAME.$OCI_VER; then
73757: PDO_OCI_VERSION="$OCI_VER"
73758: fi
73759: done
73760: if test -z "$PDO_OCI_VERSION"; then
73761: as_fn_error $? "Oracle required OCI8 libraries not found under $PDO_OCI_DIR" "$LINENO" 5
73762: fi
73763: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDO_OCI_VERSION" >&5
73764: $as_echo "$PDO_OCI_VERSION" >&6; }
73765:
73766: fi
73767:
73768: case $PDO_OCI_VERSION in
73769: 9.0|10.1|10.2|11.1|11.2)
73770:
73771:
73772: case clntsh in
73773: c|c_r|pthread*) ;;
73774: *)
73775: if test "$ext_shared" = "yes"; then
73776: PDO_OCI_SHARED_LIBADD="$PDO_OCI_SHARED_LIBADD -lclntsh"
73777: else
73778:
73779:
73780: case clntsh in
73781: c|c_r|pthread*) ;;
73782: *)
73783: LIBS="$LIBS -lclntsh"
73784: ;;
73785: esac
73786:
73787:
73788: fi
73789: ;;
73790: esac
73791:
73792:
73793: ;;
73794:
73795: *)
73796: as_fn_error $? "Unsupported Oracle version $PDO_OCI_VERSION" "$LINENO" 5
73797: ;;
73798: esac
73799:
73800:
73801: if test "$PDO_OCI_LIB_DIR" != "/usr/$PHP_LIBDIR" && test "$PDO_OCI_LIB_DIR" != "/usr/lib"; then
73802:
73803: if test -z "$PDO_OCI_LIB_DIR" || echo "$PDO_OCI_LIB_DIR" | grep '^/' >/dev/null ; then
73804: ai_p=$PDO_OCI_LIB_DIR
73805: else
73806:
73807: ep_dir="`echo $PDO_OCI_LIB_DIR|$SED 's%/*[^/][^/]*/*$%%'`"
73808:
73809: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
73810: ai_p="$ep_realdir/`basename \"$PDO_OCI_LIB_DIR\"`"
73811: fi
73812:
73813:
73814: if test "$ext_shared" = "yes"; then
73815: PDO_OCI_SHARED_LIBADD="-L$ai_p $PDO_OCI_SHARED_LIBADD"
73816: test -n "$ld_runpath_switch" && PDO_OCI_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_OCI_SHARED_LIBADD"
73817: else
73818:
73819:
73820:
73821: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
73822:
73823: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
73824: if test -n "$unique" && test "`eval $cmd`" = "" ; then
73825: eval "LIBPATH$unique=set"
73826:
73827: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
73828: LDFLAGS="$LDFLAGS -L$ai_p"
73829: PHP_RPATHS="$PHP_RPATHS $ai_p"
73830:
73831: fi
73832:
73833:
73834: fi
73835:
73836: fi
73837:
73838:
73839:
73840: save_old_LDFLAGS=$LDFLAGS
73841: ac_stuff="
73842: -L$PDO_OCI_LIB_DIR $PDO_OCI_SHARED_LIBADD
73843: "
73844:
73845: save_ext_shared=$ext_shared
73846: ext_shared=yes
73847:
73848: for ac_i in $ac_stuff; do
73849: case $ac_i in
73850: -pthread)
73851: if test "$ext_shared" = "yes"; then
73852: LDFLAGS="$LDFLAGS -pthread"
73853: else
73854:
73855:
73856: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
73857:
73858: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
73859: if test -n "$unique" && test "`eval $cmd`" = "" ; then
73860: eval "EXTRA_LDFLAGS$unique=set"
73861: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
73862: fi
73863:
73864: fi
73865: ;;
73866: -l*)
73867: ac_ii=`echo $ac_i|cut -c 3-`
73868:
73869:
73870: case $ac_ii in
73871: c|c_r|pthread*) ;;
73872: *)
73873: if test "$ext_shared" = "yes"; then
73874: LDFLAGS="$LDFLAGS -l$ac_ii"
73875: else
73876:
73877:
73878: case $ac_ii in
73879: c|c_r|pthread*) ;;
73880: *)
73881: LIBS="$LIBS -l$ac_ii"
73882: ;;
73883: esac
73884:
73885:
73886: fi
73887: ;;
73888: esac
73889:
73890:
73891: ;;
73892: -L*)
73893: ac_ii=`echo $ac_i|cut -c 3-`
73894:
73895: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
73896:
73897: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
73898: ai_p=$ac_ii
73899: else
73900:
73901: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
73902:
73903: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
73904: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
73905: fi
73906:
73907:
73908: if test "$ext_shared" = "yes"; then
73909: LDFLAGS="-L$ai_p $LDFLAGS"
73910: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
73911: else
73912:
73913:
73914:
73915: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
73916:
73917: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
73918: if test -n "$unique" && test "`eval $cmd`" = "" ; then
73919: eval "LIBPATH$unique=set"
73920:
73921: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
73922: LDFLAGS="$LDFLAGS -L$ai_p"
73923: PHP_RPATHS="$PHP_RPATHS $ai_p"
73924:
73925: fi
73926:
73927:
73928: fi
73929:
73930: fi
73931:
73932: ;;
73933: esac
73934: done
73935:
73936: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCIEnvCreate in -lclntsh" >&5
73937: $as_echo_n "checking for OCIEnvCreate in -lclntsh... " >&6; }
73938: if ${ac_cv_lib_clntsh_OCIEnvCreate+:} false; then :
73939: $as_echo_n "(cached) " >&6
73940: else
73941: ac_check_lib_save_LIBS=$LIBS
73942: LIBS="-lclntsh $LIBS"
73943: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
73944: /* end confdefs.h. */
73945:
73946: /* Override any GCC internal prototype to avoid an error.
73947: Use char because int might match the return type of a GCC
73948: builtin and then its argument prototype would still apply. */
73949: #ifdef __cplusplus
73950: extern "C"
73951: #endif
73952: char OCIEnvCreate ();
73953: int
73954: main ()
73955: {
73956: return OCIEnvCreate ();
73957: ;
73958: return 0;
73959: }
73960: _ACEOF
73961: if ac_fn_c_try_link "$LINENO"; then :
73962: ac_cv_lib_clntsh_OCIEnvCreate=yes
73963: else
73964: ac_cv_lib_clntsh_OCIEnvCreate=no
73965: fi
73966: rm -f core conftest.err conftest.$ac_objext \
73967: conftest$ac_exeext conftest.$ac_ext
73968: LIBS=$ac_check_lib_save_LIBS
73969: fi
73970: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clntsh_OCIEnvCreate" >&5
73971: $as_echo "$ac_cv_lib_clntsh_OCIEnvCreate" >&6; }
73972: if test "x$ac_cv_lib_clntsh_OCIEnvCreate" = xyes; then :
73973:
73974: LDFLAGS=$save_old_LDFLAGS
73975: ext_shared=$save_ext_shared
73976:
73977:
73978: $as_echo "#define HAVE_OCIENVCREATE 1" >>confdefs.h
73979:
73980:
73981:
73982: else
73983:
73984: LDFLAGS=$save_old_LDFLAGS
73985: ext_shared=$save_ext_shared
73986: unset ac_cv_lib_clntsh_OCIEnvCreate
73987:
73988:
73989: fi
73990:
73991:
73992:
73993: save_old_LDFLAGS=$LDFLAGS
73994: ac_stuff="
73995: -L$PDO_OCI_LIB_DIR $PDO_OCI_SHARED_LIBADD
73996: "
73997:
73998: save_ext_shared=$ext_shared
73999: ext_shared=yes
74000:
74001: for ac_i in $ac_stuff; do
74002: case $ac_i in
74003: -pthread)
74004: if test "$ext_shared" = "yes"; then
74005: LDFLAGS="$LDFLAGS -pthread"
74006: else
74007:
74008:
74009: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
74010:
74011: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
74012: if test -n "$unique" && test "`eval $cmd`" = "" ; then
74013: eval "EXTRA_LDFLAGS$unique=set"
74014: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
74015: fi
74016:
74017: fi
74018: ;;
74019: -l*)
74020: ac_ii=`echo $ac_i|cut -c 3-`
74021:
74022:
74023: case $ac_ii in
74024: c|c_r|pthread*) ;;
74025: *)
74026: if test "$ext_shared" = "yes"; then
74027: LDFLAGS="$LDFLAGS -l$ac_ii"
74028: else
74029:
74030:
74031: case $ac_ii in
74032: c|c_r|pthread*) ;;
74033: *)
74034: LIBS="$LIBS -l$ac_ii"
74035: ;;
74036: esac
74037:
74038:
74039: fi
74040: ;;
74041: esac
74042:
74043:
74044: ;;
74045: -L*)
74046: ac_ii=`echo $ac_i|cut -c 3-`
74047:
74048: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
74049:
74050: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
74051: ai_p=$ac_ii
74052: else
74053:
74054: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
74055:
74056: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
74057: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
74058: fi
74059:
74060:
74061: if test "$ext_shared" = "yes"; then
74062: LDFLAGS="-L$ai_p $LDFLAGS"
74063: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
74064: else
74065:
74066:
74067:
74068: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
74069:
74070: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
74071: if test -n "$unique" && test "`eval $cmd`" = "" ; then
74072: eval "LIBPATH$unique=set"
74073:
74074: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
74075: LDFLAGS="$LDFLAGS -L$ai_p"
74076: PHP_RPATHS="$PHP_RPATHS $ai_p"
74077:
74078: fi
74079:
74080:
74081: fi
74082:
74083: fi
74084:
74085: ;;
74086: esac
74087: done
74088:
74089: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCIEnvNlsCreate in -lclntsh" >&5
74090: $as_echo_n "checking for OCIEnvNlsCreate in -lclntsh... " >&6; }
74091: if ${ac_cv_lib_clntsh_OCIEnvNlsCreate+:} false; then :
74092: $as_echo_n "(cached) " >&6
74093: else
74094: ac_check_lib_save_LIBS=$LIBS
74095: LIBS="-lclntsh $LIBS"
74096: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
74097: /* end confdefs.h. */
74098:
74099: /* Override any GCC internal prototype to avoid an error.
74100: Use char because int might match the return type of a GCC
74101: builtin and then its argument prototype would still apply. */
74102: #ifdef __cplusplus
74103: extern "C"
74104: #endif
74105: char OCIEnvNlsCreate ();
74106: int
74107: main ()
74108: {
74109: return OCIEnvNlsCreate ();
74110: ;
74111: return 0;
74112: }
74113: _ACEOF
74114: if ac_fn_c_try_link "$LINENO"; then :
74115: ac_cv_lib_clntsh_OCIEnvNlsCreate=yes
74116: else
74117: ac_cv_lib_clntsh_OCIEnvNlsCreate=no
74118: fi
74119: rm -f core conftest.err conftest.$ac_objext \
74120: conftest$ac_exeext conftest.$ac_ext
74121: LIBS=$ac_check_lib_save_LIBS
74122: fi
74123: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clntsh_OCIEnvNlsCreate" >&5
74124: $as_echo "$ac_cv_lib_clntsh_OCIEnvNlsCreate" >&6; }
74125: if test "x$ac_cv_lib_clntsh_OCIEnvNlsCreate" = xyes; then :
74126:
74127: LDFLAGS=$save_old_LDFLAGS
74128: ext_shared=$save_ext_shared
74129:
74130:
74131: $as_echo "#define HAVE_OCIENVNLSCREATE 1" >>confdefs.h
74132:
74133:
74134:
74135: else
74136:
74137: LDFLAGS=$save_old_LDFLAGS
74138: ext_shared=$save_ext_shared
74139: unset ac_cv_lib_clntsh_OCIEnvNlsCreate
74140:
74141:
74142: fi
74143:
74144:
74145:
74146: save_old_LDFLAGS=$LDFLAGS
74147: ac_stuff="
74148: -L$PDO_OCI_LIB_DIR $PDO_OCI_SHARED_LIBADD
74149: "
74150:
74151: save_ext_shared=$ext_shared
74152: ext_shared=yes
74153:
74154: for ac_i in $ac_stuff; do
74155: case $ac_i in
74156: -pthread)
74157: if test "$ext_shared" = "yes"; then
74158: LDFLAGS="$LDFLAGS -pthread"
74159: else
74160:
74161:
74162: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
74163:
74164: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
74165: if test -n "$unique" && test "`eval $cmd`" = "" ; then
74166: eval "EXTRA_LDFLAGS$unique=set"
74167: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
74168: fi
74169:
74170: fi
74171: ;;
74172: -l*)
74173: ac_ii=`echo $ac_i|cut -c 3-`
74174:
74175:
74176: case $ac_ii in
74177: c|c_r|pthread*) ;;
74178: *)
74179: if test "$ext_shared" = "yes"; then
74180: LDFLAGS="$LDFLAGS -l$ac_ii"
74181: else
74182:
74183:
74184: case $ac_ii in
74185: c|c_r|pthread*) ;;
74186: *)
74187: LIBS="$LIBS -l$ac_ii"
74188: ;;
74189: esac
74190:
74191:
74192: fi
74193: ;;
74194: esac
74195:
74196:
74197: ;;
74198: -L*)
74199: ac_ii=`echo $ac_i|cut -c 3-`
74200:
74201: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
74202:
74203: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
74204: ai_p=$ac_ii
74205: else
74206:
74207: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
74208:
74209: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
74210: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
74211: fi
74212:
74213:
74214: if test "$ext_shared" = "yes"; then
74215: LDFLAGS="-L$ai_p $LDFLAGS"
74216: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
74217: else
74218:
74219:
74220:
74221: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
74222:
74223: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
74224: if test -n "$unique" && test "`eval $cmd`" = "" ; then
74225: eval "LIBPATH$unique=set"
74226:
74227: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
74228: LDFLAGS="$LDFLAGS -L$ai_p"
74229: PHP_RPATHS="$PHP_RPATHS $ai_p"
74230:
74231: fi
74232:
74233:
74234: fi
74235:
74236: fi
74237:
74238: ;;
74239: esac
74240: done
74241:
74242: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCILobIsTemporary in -lclntsh" >&5
74243: $as_echo_n "checking for OCILobIsTemporary in -lclntsh... " >&6; }
74244: if ${ac_cv_lib_clntsh_OCILobIsTemporary+:} false; then :
74245: $as_echo_n "(cached) " >&6
74246: else
74247: ac_check_lib_save_LIBS=$LIBS
74248: LIBS="-lclntsh $LIBS"
74249: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
74250: /* end confdefs.h. */
74251:
74252: /* Override any GCC internal prototype to avoid an error.
74253: Use char because int might match the return type of a GCC
74254: builtin and then its argument prototype would still apply. */
74255: #ifdef __cplusplus
74256: extern "C"
74257: #endif
74258: char OCILobIsTemporary ();
74259: int
74260: main ()
74261: {
74262: return OCILobIsTemporary ();
74263: ;
74264: return 0;
74265: }
74266: _ACEOF
74267: if ac_fn_c_try_link "$LINENO"; then :
74268: ac_cv_lib_clntsh_OCILobIsTemporary=yes
74269: else
74270: ac_cv_lib_clntsh_OCILobIsTemporary=no
74271: fi
74272: rm -f core conftest.err conftest.$ac_objext \
74273: conftest$ac_exeext conftest.$ac_ext
74274: LIBS=$ac_check_lib_save_LIBS
74275: fi
74276: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clntsh_OCILobIsTemporary" >&5
74277: $as_echo "$ac_cv_lib_clntsh_OCILobIsTemporary" >&6; }
74278: if test "x$ac_cv_lib_clntsh_OCILobIsTemporary" = xyes; then :
74279:
74280: LDFLAGS=$save_old_LDFLAGS
74281: ext_shared=$save_ext_shared
74282:
74283:
74284: $as_echo "#define HAVE_OCILOBISTEMPORARY 1" >>confdefs.h
74285:
74286:
74287:
74288: else
74289:
74290: LDFLAGS=$save_old_LDFLAGS
74291: ext_shared=$save_ext_shared
74292: unset ac_cv_lib_clntsh_OCILobIsTemporary
74293:
74294:
74295: save_old_LDFLAGS=$LDFLAGS
74296: ac_stuff="
74297: -L$PDO_OCI_LIB_DIR $PDO_OCI_SHARED_LIBADD
74298: "
74299:
74300: save_ext_shared=$ext_shared
74301: ext_shared=yes
74302:
74303: for ac_i in $ac_stuff; do
74304: case $ac_i in
74305: -pthread)
74306: if test "$ext_shared" = "yes"; then
74307: LDFLAGS="$LDFLAGS -pthread"
74308: else
74309:
74310:
74311: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
74312:
74313: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
74314: if test -n "$unique" && test "`eval $cmd`" = "" ; then
74315: eval "EXTRA_LDFLAGS$unique=set"
74316: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
74317: fi
74318:
74319: fi
74320: ;;
74321: -l*)
74322: ac_ii=`echo $ac_i|cut -c 3-`
74323:
74324:
74325: case $ac_ii in
74326: c|c_r|pthread*) ;;
74327: *)
74328: if test "$ext_shared" = "yes"; then
74329: LDFLAGS="$LDFLAGS -l$ac_ii"
74330: else
74331:
74332:
74333: case $ac_ii in
74334: c|c_r|pthread*) ;;
74335: *)
74336: LIBS="$LIBS -l$ac_ii"
74337: ;;
74338: esac
74339:
74340:
74341: fi
74342: ;;
74343: esac
74344:
74345:
74346: ;;
74347: -L*)
74348: ac_ii=`echo $ac_i|cut -c 3-`
74349:
74350: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
74351:
74352: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
74353: ai_p=$ac_ii
74354: else
74355:
74356: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
74357:
74358: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
74359: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
74360: fi
74361:
74362:
74363: if test "$ext_shared" = "yes"; then
74364: LDFLAGS="-L$ai_p $LDFLAGS"
74365: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
74366: else
74367:
74368:
74369:
74370: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
74371:
74372: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
74373: if test -n "$unique" && test "`eval $cmd`" = "" ; then
74374: eval "LIBPATH$unique=set"
74375:
74376: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
74377: LDFLAGS="$LDFLAGS -L$ai_p"
74378: PHP_RPATHS="$PHP_RPATHS $ai_p"
74379:
74380: fi
74381:
74382:
74383: fi
74384:
74385: fi
74386:
74387: ;;
74388: esac
74389: done
74390:
74391: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCILobIsTemporary in -locijdbc8" >&5
74392: $as_echo_n "checking for OCILobIsTemporary in -locijdbc8... " >&6; }
74393: if ${ac_cv_lib_ocijdbc8_OCILobIsTemporary+:} false; then :
74394: $as_echo_n "(cached) " >&6
74395: else
74396: ac_check_lib_save_LIBS=$LIBS
74397: LIBS="-locijdbc8 $LIBS"
74398: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
74399: /* end confdefs.h. */
74400:
74401: /* Override any GCC internal prototype to avoid an error.
74402: Use char because int might match the return type of a GCC
74403: builtin and then its argument prototype would still apply. */
74404: #ifdef __cplusplus
74405: extern "C"
74406: #endif
74407: char OCILobIsTemporary ();
74408: int
74409: main ()
74410: {
74411: return OCILobIsTemporary ();
74412: ;
74413: return 0;
74414: }
74415: _ACEOF
74416: if ac_fn_c_try_link "$LINENO"; then :
74417: ac_cv_lib_ocijdbc8_OCILobIsTemporary=yes
74418: else
74419: ac_cv_lib_ocijdbc8_OCILobIsTemporary=no
74420: fi
74421: rm -f core conftest.err conftest.$ac_objext \
74422: conftest$ac_exeext conftest.$ac_ext
74423: LIBS=$ac_check_lib_save_LIBS
74424: fi
74425: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ocijdbc8_OCILobIsTemporary" >&5
74426: $as_echo "$ac_cv_lib_ocijdbc8_OCILobIsTemporary" >&6; }
74427: if test "x$ac_cv_lib_ocijdbc8_OCILobIsTemporary" = xyes; then :
74428:
74429: LDFLAGS=$save_old_LDFLAGS
74430: ext_shared=$save_ext_shared
74431:
74432:
74433:
74434: case ocijdbc8 in
74435: c|c_r|pthread*) ;;
74436: *)
74437: if test "$ext_shared" = "yes"; then
74438: PDO_OCI_SHARED_LIBADD="$PDO_OCI_SHARED_LIBADD -locijdbc8"
74439: else
74440:
74441:
74442: case ocijdbc8 in
74443: c|c_r|pthread*) ;;
74444: *)
74445: LIBS="$LIBS -locijdbc8"
74446: ;;
74447: esac
74448:
74449:
74450: fi
74451: ;;
74452: esac
74453:
74454:
74455:
74456: $as_echo "#define HAVE_OCILOBISTEMPORARY 1" >>confdefs.h
74457:
74458:
74459:
74460: else
74461:
74462: LDFLAGS=$save_old_LDFLAGS
74463: ext_shared=$save_ext_shared
74464: unset ac_cv_lib_ocijdbc8_OCILobIsTemporary
74465:
74466:
74467: fi
74468:
74469:
74470:
74471: fi
74472:
74473:
74474:
74475: save_old_LDFLAGS=$LDFLAGS
74476: ac_stuff="
74477: -L$PDO_OCI_LIB_DIR $PDO_OCI_SHARED_LIBADD
74478: "
74479:
74480: save_ext_shared=$ext_shared
74481: ext_shared=yes
74482:
74483: for ac_i in $ac_stuff; do
74484: case $ac_i in
74485: -pthread)
74486: if test "$ext_shared" = "yes"; then
74487: LDFLAGS="$LDFLAGS -pthread"
74488: else
74489:
74490:
74491: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
74492:
74493: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
74494: if test -n "$unique" && test "`eval $cmd`" = "" ; then
74495: eval "EXTRA_LDFLAGS$unique=set"
74496: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
74497: fi
74498:
74499: fi
74500: ;;
74501: -l*)
74502: ac_ii=`echo $ac_i|cut -c 3-`
74503:
74504:
74505: case $ac_ii in
74506: c|c_r|pthread*) ;;
74507: *)
74508: if test "$ext_shared" = "yes"; then
74509: LDFLAGS="$LDFLAGS -l$ac_ii"
74510: else
74511:
74512:
74513: case $ac_ii in
74514: c|c_r|pthread*) ;;
74515: *)
74516: LIBS="$LIBS -l$ac_ii"
74517: ;;
74518: esac
74519:
74520:
74521: fi
74522: ;;
74523: esac
74524:
74525:
74526: ;;
74527: -L*)
74528: ac_ii=`echo $ac_i|cut -c 3-`
74529:
74530: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
74531:
74532: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
74533: ai_p=$ac_ii
74534: else
74535:
74536: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
74537:
74538: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
74539: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
74540: fi
74541:
74542:
74543: if test "$ext_shared" = "yes"; then
74544: LDFLAGS="-L$ai_p $LDFLAGS"
74545: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
74546: else
74547:
74548:
74549:
74550: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
74551:
74552: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
74553: if test -n "$unique" && test "`eval $cmd`" = "" ; then
74554: eval "LIBPATH$unique=set"
74555:
74556: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
74557: LDFLAGS="$LDFLAGS -L$ai_p"
74558: PHP_RPATHS="$PHP_RPATHS $ai_p"
74559:
74560: fi
74561:
74562:
74563: fi
74564:
74565: fi
74566:
74567: ;;
74568: esac
74569: done
74570:
74571: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCICollAssign in -lclntsh" >&5
74572: $as_echo_n "checking for OCICollAssign in -lclntsh... " >&6; }
74573: if ${ac_cv_lib_clntsh_OCICollAssign+:} false; then :
74574: $as_echo_n "(cached) " >&6
74575: else
74576: ac_check_lib_save_LIBS=$LIBS
74577: LIBS="-lclntsh $LIBS"
74578: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
74579: /* end confdefs.h. */
74580:
74581: /* Override any GCC internal prototype to avoid an error.
74582: Use char because int might match the return type of a GCC
74583: builtin and then its argument prototype would still apply. */
74584: #ifdef __cplusplus
74585: extern "C"
74586: #endif
74587: char OCICollAssign ();
74588: int
74589: main ()
74590: {
74591: return OCICollAssign ();
74592: ;
74593: return 0;
74594: }
74595: _ACEOF
74596: if ac_fn_c_try_link "$LINENO"; then :
74597: ac_cv_lib_clntsh_OCICollAssign=yes
74598: else
74599: ac_cv_lib_clntsh_OCICollAssign=no
74600: fi
74601: rm -f core conftest.err conftest.$ac_objext \
74602: conftest$ac_exeext conftest.$ac_ext
74603: LIBS=$ac_check_lib_save_LIBS
74604: fi
74605: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clntsh_OCICollAssign" >&5
74606: $as_echo "$ac_cv_lib_clntsh_OCICollAssign" >&6; }
74607: if test "x$ac_cv_lib_clntsh_OCICollAssign" = xyes; then :
74608:
74609: LDFLAGS=$save_old_LDFLAGS
74610: ext_shared=$save_ext_shared
74611:
74612:
74613: $as_echo "#define HAVE_OCICOLLASSIGN 1" >>confdefs.h
74614:
74615:
74616:
74617: else
74618:
74619: LDFLAGS=$save_old_LDFLAGS
74620: ext_shared=$save_ext_shared
74621: unset ac_cv_lib_clntsh_OCICollAssign
74622:
74623:
74624: fi
74625:
74626:
74627:
74628: save_old_LDFLAGS=$LDFLAGS
74629: ac_stuff="
74630: -L$PDO_OCI_LIB_DIR $PDO_OCI_SHARED_LIBADD
74631: "
74632:
74633: save_ext_shared=$ext_shared
74634: ext_shared=yes
74635:
74636: for ac_i in $ac_stuff; do
74637: case $ac_i in
74638: -pthread)
74639: if test "$ext_shared" = "yes"; then
74640: LDFLAGS="$LDFLAGS -pthread"
74641: else
74642:
74643:
74644: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
74645:
74646: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
74647: if test -n "$unique" && test "`eval $cmd`" = "" ; then
74648: eval "EXTRA_LDFLAGS$unique=set"
74649: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
74650: fi
74651:
74652: fi
74653: ;;
74654: -l*)
74655: ac_ii=`echo $ac_i|cut -c 3-`
74656:
74657:
74658: case $ac_ii in
74659: c|c_r|pthread*) ;;
74660: *)
74661: if test "$ext_shared" = "yes"; then
74662: LDFLAGS="$LDFLAGS -l$ac_ii"
74663: else
74664:
74665:
74666: case $ac_ii in
74667: c|c_r|pthread*) ;;
74668: *)
74669: LIBS="$LIBS -l$ac_ii"
74670: ;;
74671: esac
74672:
74673:
74674: fi
74675: ;;
74676: esac
74677:
74678:
74679: ;;
74680: -L*)
74681: ac_ii=`echo $ac_i|cut -c 3-`
74682:
74683: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
74684:
74685: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
74686: ai_p=$ac_ii
74687: else
74688:
74689: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
74690:
74691: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
74692: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
74693: fi
74694:
74695:
74696: if test "$ext_shared" = "yes"; then
74697: LDFLAGS="-L$ai_p $LDFLAGS"
74698: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
74699: else
74700:
74701:
74702:
74703: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
74704:
74705: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
74706: if test -n "$unique" && test "`eval $cmd`" = "" ; then
74707: eval "LIBPATH$unique=set"
74708:
74709: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
74710: LDFLAGS="$LDFLAGS -L$ai_p"
74711: PHP_RPATHS="$PHP_RPATHS $ai_p"
74712:
74713: fi
74714:
74715:
74716: fi
74717:
74718: fi
74719:
74720: ;;
74721: esac
74722: done
74723:
74724: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCIStmtFetch2 in -lclntsh" >&5
74725: $as_echo_n "checking for OCIStmtFetch2 in -lclntsh... " >&6; }
74726: if ${ac_cv_lib_clntsh_OCIStmtFetch2+:} false; then :
74727: $as_echo_n "(cached) " >&6
74728: else
74729: ac_check_lib_save_LIBS=$LIBS
74730: LIBS="-lclntsh $LIBS"
74731: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
74732: /* end confdefs.h. */
74733:
74734: /* Override any GCC internal prototype to avoid an error.
74735: Use char because int might match the return type of a GCC
74736: builtin and then its argument prototype would still apply. */
74737: #ifdef __cplusplus
74738: extern "C"
74739: #endif
74740: char OCIStmtFetch2 ();
74741: int
74742: main ()
74743: {
74744: return OCIStmtFetch2 ();
74745: ;
74746: return 0;
74747: }
74748: _ACEOF
74749: if ac_fn_c_try_link "$LINENO"; then :
74750: ac_cv_lib_clntsh_OCIStmtFetch2=yes
74751: else
74752: ac_cv_lib_clntsh_OCIStmtFetch2=no
74753: fi
74754: rm -f core conftest.err conftest.$ac_objext \
74755: conftest$ac_exeext conftest.$ac_ext
74756: LIBS=$ac_check_lib_save_LIBS
74757: fi
74758: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clntsh_OCIStmtFetch2" >&5
74759: $as_echo "$ac_cv_lib_clntsh_OCIStmtFetch2" >&6; }
74760: if test "x$ac_cv_lib_clntsh_OCIStmtFetch2" = xyes; then :
74761:
74762: LDFLAGS=$save_old_LDFLAGS
74763: ext_shared=$save_ext_shared
74764:
74765:
74766: $as_echo "#define HAVE_OCISTMTFETCH2 1" >>confdefs.h
74767:
74768:
74769:
74770: else
74771:
74772: LDFLAGS=$save_old_LDFLAGS
74773: ext_shared=$save_ext_shared
74774: unset ac_cv_lib_clntsh_OCIStmtFetch2
74775:
74776:
74777: fi
74778:
74779:
74780:
74781:
74782: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5
74783: $as_echo_n "checking for PDO includes... " >&6; }
74784: if ${pdo_inc_path+:} false; then :
74785: $as_echo_n "(cached) " >&6
74786: else
74787:
74788: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5
74789: $as_echo_n "checking for PDO includes... " >&6; }
74790: if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then
74791: pdo_inc_path=$abs_srcdir/ext
74792: elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then
74793: pdo_inc_path=$abs_srcdir/ext
74794: elif test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then
74795: pdo_inc_path=$prefix/include/php/ext
74796: fi
74797:
74798: fi
74799: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pdo_inc_path" >&5
74800: $as_echo "$pdo_inc_path" >&6; }
74801: if test -n "$pdo_inc_path"; then
74802: :
74803: else
74804: as_fn_error $? "Cannot find php_pdo_driver.h." "$LINENO" 5
74805: fi
74806:
74807:
74808:
74809:
74810: ext_builddir=ext/pdo_oci
74811: ext_srcdir=$abs_srcdir/ext/pdo_oci
74812:
74813: ac_extra=`echo "-I$pdo_inc_path"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
74814:
74815: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
74816: PHP_PDO_OCI_SHARED=no
74817:
74818:
74819: case ext/pdo_oci in
74820: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
74821: /*) ac_srcdir=`echo "ext/pdo_oci"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
74822: *) ac_srcdir="$abs_srcdir/ext/pdo_oci/"; ac_bdir="ext/pdo_oci/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
74823: esac
74824:
74825:
74826:
74827: b_c_pre=$php_c_pre
74828: b_cxx_pre=$php_cxx_pre
74829: b_c_meta=$php_c_meta
74830: b_cxx_meta=$php_cxx_meta
74831: b_c_post=$php_c_post
74832: b_cxx_post=$php_cxx_post
74833: b_lo=$php_lo
74834:
74835:
74836: old_IFS=$IFS
74837: for ac_src in pdo_oci.c oci_driver.c oci_statement.c; do
74838:
74839: IFS=.
74840: set $ac_src
74841: ac_obj=$1
74842: IFS=$old_IFS
74843:
74844: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
74845:
74846: case $ac_src in
74847: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
74848: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
74849: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
74850: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
74851: esac
74852:
74853: cat >>Makefile.objects<<EOF
74854: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
74855: $ac_comp
74856: EOF
74857: done
74858:
74859:
74860: EXT_STATIC="$EXT_STATIC pdo_oci"
74861: if test "$ext_shared" != "nocli"; then
74862: EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_oci"
74863: fi
74864: else
74865: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
74866: PHP_PDO_OCI_SHARED=yes
74867:
74868: case ext/pdo_oci in
74869: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
74870: /*) ac_srcdir=`echo "ext/pdo_oci"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
74871: *) ac_srcdir="$abs_srcdir/ext/pdo_oci/"; ac_bdir="ext/pdo_oci/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
74872: esac
74873:
74874:
74875:
74876: b_c_pre=$shared_c_pre
74877: b_cxx_pre=$shared_cxx_pre
74878: b_c_meta=$shared_c_meta
74879: b_cxx_meta=$shared_cxx_meta
74880: b_c_post=$shared_c_post
74881: b_cxx_post=$shared_cxx_post
74882: b_lo=$shared_lo
74883:
74884:
74885: old_IFS=$IFS
74886: for ac_src in pdo_oci.c oci_driver.c oci_statement.c; do
74887:
74888: IFS=.
74889: set $ac_src
74890: ac_obj=$1
74891: IFS=$old_IFS
74892:
74893: shared_objects_pdo_oci="$shared_objects_pdo_oci $ac_bdir$ac_obj.lo"
74894:
74895: case $ac_src in
74896: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
74897: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
74898: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
74899: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
74900: esac
74901:
74902: cat >>Makefile.objects<<EOF
74903: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
74904: $ac_comp
74905: EOF
74906: done
74907:
74908: case $host_alias in
74909: *netware*)
74910:
74911: install_modules="install-modules"
74912:
74913: case $host_alias in
74914: *aix*)
74915: suffix=so
74916: 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'
74917: ;;
74918: *netware*)
74919: suffix=nlm
74920: link_cmd='$(LIBTOOL) --mode=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)'
74921: ;;
74922: *)
74923: suffix=la
74924: link_cmd='$(LIBTOOL) --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)'
74925: ;;
74926: esac
74927:
74928: if test "x" = "xyes"; then
74929: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phppdo_oci.$suffix"
74930: else
74931: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phppdo_oci.$suffix"
74932: fi
74933:
74934: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo_oci"
74935:
74936: cat >>Makefile.objects<<EOF
74937: \$(phplibdir)/phppdo_oci.$suffix: $ext_builddir/phppdo_oci.$suffix
74938: \$(LIBTOOL) --mode=install cp $ext_builddir/phppdo_oci.$suffix \$(phplibdir)
74939:
74940: $ext_builddir/phppdo_oci.$suffix: \$(shared_objects_pdo_oci) \$(PHPPDO_OCI_SHARED_DEPENDENCIES)
74941: $link_cmd
74942:
74943: EOF
74944:
74945: ;;
74946: *)
74947:
74948: install_modules="install-modules"
74949:
74950: case $host_alias in
74951: *aix*)
74952: suffix=so
74953: 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'
74954: ;;
74955: *netware*)
74956: suffix=nlm
74957: link_cmd='$(LIBTOOL) --mode=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)'
74958: ;;
74959: *)
74960: suffix=la
74961: link_cmd='$(LIBTOOL) --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)'
74962: ;;
74963: esac
74964:
74965: if test "x" = "xyes"; then
74966: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/pdo_oci.$suffix"
74967: else
74968: PHP_MODULES="$PHP_MODULES \$(phplibdir)/pdo_oci.$suffix"
74969: fi
74970:
74971: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo_oci"
74972:
74973: cat >>Makefile.objects<<EOF
74974: \$(phplibdir)/pdo_oci.$suffix: $ext_builddir/pdo_oci.$suffix
74975: \$(LIBTOOL) --mode=install cp $ext_builddir/pdo_oci.$suffix \$(phplibdir)
74976:
74977: $ext_builddir/pdo_oci.$suffix: \$(shared_objects_pdo_oci) \$(PDO_OCI_SHARED_DEPENDENCIES)
74978: $link_cmd
74979:
74980: EOF
74981:
74982: ;;
74983: esac
74984:
74985: cat >>confdefs.h <<_ACEOF
74986: #define COMPILE_DL_PDO_OCI 1
74987: _ACEOF
74988:
74989: fi
74990: fi
74991:
74992: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
74993: PHP_PDO_OCI_SHARED=no
74994:
74995:
74996: case ext/pdo_oci in
74997: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
74998: /*) ac_srcdir=`echo "ext/pdo_oci"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
74999: *) ac_srcdir="$abs_srcdir/ext/pdo_oci/"; ac_bdir="ext/pdo_oci/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
75000: esac
75001:
75002:
75003:
75004: b_c_pre=$php_c_pre
75005: b_cxx_pre=$php_cxx_pre
75006: b_c_meta=$php_c_meta
75007: b_cxx_meta=$php_cxx_meta
75008: b_c_post=$php_c_post
75009: b_cxx_post=$php_cxx_post
75010: b_lo=$php_lo
75011:
75012:
75013: old_IFS=$IFS
75014: for ac_src in pdo_oci.c oci_driver.c oci_statement.c; do
75015:
75016: IFS=.
75017: set $ac_src
75018: ac_obj=$1
75019: IFS=$old_IFS
75020:
75021: PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
75022:
75023: case $ac_src in
75024: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
75025: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
75026: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
75027: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
75028: esac
75029:
75030: cat >>Makefile.objects<<EOF
75031: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
75032: $ac_comp
75033: EOF
75034: done
75035:
75036:
75037:
75038:
75039: case ext/pdo_oci in
75040: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
75041: /*) ac_srcdir=`echo "ext/pdo_oci"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
75042: *) ac_srcdir="$abs_srcdir/ext/pdo_oci/"; ac_bdir="ext/pdo_oci/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
75043: esac
75044:
75045:
75046:
75047: b_c_pre=$php_c_pre
75048: b_cxx_pre=$php_cxx_pre
75049: b_c_meta=$php_c_meta
75050: b_cxx_meta=$php_cxx_meta
75051: b_c_post=$php_c_post
75052: b_cxx_post=$php_cxx_post
75053: b_lo=$php_lo
75054:
75055:
75056: old_IFS=$IFS
75057: for ac_src in pdo_oci.c oci_driver.c oci_statement.c; do
75058:
75059: IFS=.
75060: set $ac_src
75061: ac_obj=$1
75062: IFS=$old_IFS
75063:
75064: PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo"
75065:
75066: case $ac_src in
75067: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
75068: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
75069: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
75070: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
75071: esac
75072:
75073: cat >>Makefile.objects<<EOF
75074: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
75075: $ac_comp
75076: EOF
75077: done
75078:
75079:
75080:
75081:
75082: case ext/pdo_oci in
75083: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
75084: /*) ac_srcdir=`echo "ext/pdo_oci"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
75085: *) ac_srcdir="$abs_srcdir/ext/pdo_oci/"; ac_bdir="ext/pdo_oci/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
75086: esac
75087:
75088:
75089:
75090: b_c_pre=$php_c_pre
75091: b_cxx_pre=$php_cxx_pre
75092: b_c_meta=$php_c_meta
75093: b_cxx_meta=$php_cxx_meta
75094: b_c_post=$php_c_post
75095: b_cxx_post=$php_cxx_post
75096: b_lo=$php_lo
75097:
75098:
75099: old_IFS=$IFS
75100: for ac_src in pdo_oci.c oci_driver.c oci_statement.c; do
75101:
75102: IFS=.
75103: set $ac_src
75104: ac_obj=$1
75105: IFS=$old_IFS
75106:
75107: PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo"
75108:
75109: case $ac_src in
75110: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
75111: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
75112: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
75113: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
75114: esac
75115:
75116: cat >>Makefile.objects<<EOF
75117: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
75118: $ac_comp
75119: EOF
75120: done
75121:
75122:
75123: EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_oci"
75124: fi
75125:
75126:
75127: BUILD_DIR="$BUILD_DIR $ext_builddir"
75128:
75129:
75130:
75131: if test "$ext_builddir" = "."; then
75132: PHP_PECL_EXTENSION=pdo_oci
75133:
75134: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
75135:
75136: fi
75137:
75138:
75139:
75140:
75141: PHP_VAR_SUBST="$PHP_VAR_SUBST PDO_OCI_SHARED_LIBADD"
75142:
75143:
75144:
75145:
75146:
75147: PHP_VAR_SUBST="$PHP_VAR_SUBST PDO_OCI_DIR"
75148:
75149:
75150:
75151:
75152:
75153: PHP_VAR_SUBST="$PHP_VAR_SUBST PDO_OCI_VERSION"
75154:
75155:
75156:
75157:
75158:
75159:
75160: am_i_shared=$PHP_PDO_OCI_SHARED
75161: is_it_shared=$PHP_PDO_SHARED
75162: is_it_enabled=$PHP_PDO
75163: if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
75164: as_fn_error $? "
75165: You've configured extension pdo_oci to build statically, but it
75166: depends on extension pdo, which you've configured to build shared.
75167: You either need to build pdo_oci shared or build pdo statically for the
75168: build to be successful.
75169: " "$LINENO" 5
75170: fi
75171:
75172:
75173:
75174:
75175: cat >>confdefs.h <<_ACEOF
75176: #define PHP_PDO_OCI_CLIENT_VERSION "$PDO_OCI_VERSION"
75177: _ACEOF
75178:
75179: fi
75180:
75181:
75182:
75183:
75184:
75185:
75186: php_with_pdo_odbc=no
75187:
75188: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ODBC v3 support for PDO" >&5
75189: $as_echo_n "checking for ODBC v3 support for PDO... " >&6; }
75190:
75191: # Check whether --with-pdo-odbc was given.
75192: if test "${with_pdo_odbc+set}" = set; then :
75193: withval=$with_pdo_odbc; PHP_PDO_ODBC=$withval
75194: else
75195:
75196: PHP_PDO_ODBC=no
75197: test "$PHP_ENABLE_ALL" && PHP_PDO_ODBC=$PHP_ENABLE_ALL
75198:
75199: fi
75200:
75201:
75202:
75203: ext_output="yes, shared"
75204: ext_shared=yes
75205: case $PHP_PDO_ODBC in
75206: shared,*)
75207: PHP_PDO_ODBC=`echo "$PHP_PDO_ODBC"|$SED 's/^shared,//'`
75208: ;;
75209: shared)
75210: PHP_PDO_ODBC=yes
75211: ;;
75212: no)
75213: ext_output=no
75214: ext_shared=no
75215: ;;
75216: *)
75217: ext_output=yes
75218: ext_shared=no
75219: ;;
75220: esac
75221:
75222:
75223:
75224: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
75225: $as_echo "$ext_output" >&6; }
75226:
75227:
75228:
75229:
75230:
75231:
75232:
75233: if test "$PHP_PDO_ODBC" != "no"; then
75234:
75235: if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then
75236: as_fn_error $? "PDO is not enabled! Add --enable-pdo to your configure line." "$LINENO" 5
75237: fi
75238:
75239:
75240:
75241: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5
75242: $as_echo_n "checking for PDO includes... " >&6; }
75243: if ${pdo_inc_path+:} false; then :
75244: $as_echo_n "(cached) " >&6
75245: else
75246:
75247: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5
75248: $as_echo_n "checking for PDO includes... " >&6; }
75249: if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then
75250: pdo_inc_path=$abs_srcdir/ext
75251: elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then
75252: pdo_inc_path=$abs_srcdir/ext
75253: elif test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then
75254: pdo_inc_path=$prefix/include/php/ext
75255: fi
75256:
75257: fi
75258: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pdo_inc_path" >&5
75259: $as_echo "$pdo_inc_path" >&6; }
75260: if test -n "$pdo_inc_path"; then
75261: :
75262: else
75263: as_fn_error $? "Cannot find php_pdo_driver.h." "$LINENO" 5
75264: fi
75265:
75266:
75267:
75268: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for selected PDO ODBC flavour" >&5
75269: $as_echo_n "checking for selected PDO ODBC flavour... " >&6; }
75270:
75271: pdo_odbc_flavour="`echo $PHP_PDO_ODBC | cut -d, -f1`"
75272: pdo_odbc_dir="`echo $PHP_PDO_ODBC | cut -d, -f2`"
75273:
75274: if test "$pdo_odbc_dir" = "$PHP_PDO_ODBC" ; then
75275: pdo_odbc_dir=
75276: fi
75277:
75278: case $pdo_odbc_flavour in
75279: ibm-db2)
75280: pdo_odbc_def_libdir=/home/db2inst1/sqllib/lib
75281: pdo_odbc_def_incdir=/home/db2inst1/sqllib/include
75282: pdo_odbc_def_lib=db2
75283: ;;
75284:
75285: iODBC|iodbc)
75286: pdo_odbc_def_libdir=/usr/local/$PHP_LIBDIR
75287: pdo_odbc_def_incdir=/usr/local/include
75288: pdo_odbc_def_lib=iodbc
75289: ;;
75290:
75291: unixODBC|unixodbc)
75292: pdo_odbc_def_libdir=/usr/local/$PHP_LIBDIR
75293: pdo_odbc_def_incdir=/usr/local/include
75294: pdo_odbc_def_lib=odbc
75295: ;;
75296:
75297: ODBCRouter|odbcrouter)
75298: pdo_odbc_def_libdir=/usr/$PHP_LIBDIR
75299: pdo_odbc_def_incdir=/usr/include
75300: pdo_odbc_def_lib=odbcsdk
75301: ;;
75302:
75303: generic)
75304: pdo_odbc_def_lib="`echo $PHP_PDO_ODBC | cut -d, -f3`"
75305: pdo_odbc_def_ldflags="`echo $PHP_PDO_ODBC | cut -d, -f4`"
75306: pdo_odbc_def_cflags="`echo $PHP_PDO_ODBC | cut -d, -f5`"
75307: pdo_odbc_flavour="generic-$pdo_odbc_def_lib"
75308: ;;
75309:
75310: *)
75311: as_fn_error $? "Unknown ODBC flavour $pdo_odbc_flavour
75312: include and lib dirs are looked for under 'dir'.
75313:
75314: 'flavour' can be one of: ibm-db2, iODBC, unixODBC, generic
75315: If ',dir' part is omitted, default for the flavour
75316: you have selected will used. e.g.:
75317:
75318: --with-pdo-odbc=unixODBC
75319:
75320: will check for unixODBC under /usr/local. You may attempt
75321: to use an otherwise unsupported driver using the \"generic\"
75322: flavour. The syntax for generic ODBC support is:
75323:
75324: --with-pdo-odbc=generic,dir,libname,ldflags,cflags
75325:
75326: When build as shared the extension filename is always pdo_odbc.so" "$LINENO" 5
75327: ;;
75328: esac
75329:
75330: if test -n "$pdo_odbc_dir"; then
75331: PDO_ODBC_INCDIR="$pdo_odbc_dir/include"
75332: PDO_ODBC_LIBDIR="$pdo_odbc_dir/$PHP_LIBDIR"
75333: else
75334: PDO_ODBC_INCDIR="$pdo_odbc_def_incdir"
75335: PDO_ODBC_LIBDIR="$pdo_odbc_def_libdir"
75336: fi
75337:
75338: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pdo_odbc_flavour
75339: libs $PDO_ODBC_LIBDIR,
75340: headers $PDO_ODBC_INCDIR" >&5
75341: $as_echo "$pdo_odbc_flavour
75342: libs $PDO_ODBC_LIBDIR,
75343: headers $PDO_ODBC_INCDIR" >&6; }
75344:
75345: if test ! -d "$PDO_ODBC_LIBDIR" ; then
75346: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: library dir $PDO_ODBC_LIBDIR does not exist" >&5
75347: $as_echo "$as_me: WARNING: library dir $PDO_ODBC_LIBDIR does not exist" >&2;}
75348: fi
75349:
75350:
75351: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for odbc.h in $PDO_ODBC_INCDIR" >&5
75352: $as_echo_n "checking for odbc.h in $PDO_ODBC_INCDIR... " >&6; }
75353: if test -f "$PDO_ODBC_INCDIR/odbc.h"; then
75354: php_pdo_have_header=yes
75355:
75356: $as_echo "#define HAVE_ODBC_H 1" >>confdefs.h
75357:
75358: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
75359: $as_echo "yes" >&6; }
75360: else
75361: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
75362: $as_echo "no" >&6; }
75363: fi
75364:
75365:
75366: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for odbcsdk.h in $PDO_ODBC_INCDIR" >&5
75367: $as_echo_n "checking for odbcsdk.h in $PDO_ODBC_INCDIR... " >&6; }
75368: if test -f "$PDO_ODBC_INCDIR/odbcsdk.h"; then
75369: php_pdo_have_header=yes
75370:
75371: $as_echo "#define HAVE_ODBCSDK_H 1" >>confdefs.h
75372:
75373: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
75374: $as_echo "yes" >&6; }
75375: else
75376: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
75377: $as_echo "no" >&6; }
75378: fi
75379:
75380:
75381: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iodbc.h in $PDO_ODBC_INCDIR" >&5
75382: $as_echo_n "checking for iodbc.h in $PDO_ODBC_INCDIR... " >&6; }
75383: if test -f "$PDO_ODBC_INCDIR/iodbc.h"; then
75384: php_pdo_have_header=yes
75385:
75386: $as_echo "#define HAVE_IODBC_H 1" >>confdefs.h
75387:
75388: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
75389: $as_echo "yes" >&6; }
75390: else
75391: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
75392: $as_echo "no" >&6; }
75393: fi
75394:
75395:
75396: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlunix.h in $PDO_ODBC_INCDIR" >&5
75397: $as_echo_n "checking for sqlunix.h in $PDO_ODBC_INCDIR... " >&6; }
75398: if test -f "$PDO_ODBC_INCDIR/sqlunix.h"; then
75399: php_pdo_have_header=yes
75400:
75401: $as_echo "#define HAVE_SQLUNIX_H 1" >>confdefs.h
75402:
75403: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
75404: $as_echo "yes" >&6; }
75405: else
75406: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
75407: $as_echo "no" >&6; }
75408: fi
75409:
75410:
75411: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqltypes.h in $PDO_ODBC_INCDIR" >&5
75412: $as_echo_n "checking for sqltypes.h in $PDO_ODBC_INCDIR... " >&6; }
75413: if test -f "$PDO_ODBC_INCDIR/sqltypes.h"; then
75414: php_pdo_have_header=yes
75415:
75416: $as_echo "#define HAVE_SQLTYPES_H 1" >>confdefs.h
75417:
75418: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
75419: $as_echo "yes" >&6; }
75420: else
75421: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
75422: $as_echo "no" >&6; }
75423: fi
75424:
75425:
75426: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlucode.h in $PDO_ODBC_INCDIR" >&5
75427: $as_echo_n "checking for sqlucode.h in $PDO_ODBC_INCDIR... " >&6; }
75428: if test -f "$PDO_ODBC_INCDIR/sqlucode.h"; then
75429: php_pdo_have_header=yes
75430:
75431: $as_echo "#define HAVE_SQLUCODE_H 1" >>confdefs.h
75432:
75433: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
75434: $as_echo "yes" >&6; }
75435: else
75436: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
75437: $as_echo "no" >&6; }
75438: fi
75439:
75440:
75441: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sql.h in $PDO_ODBC_INCDIR" >&5
75442: $as_echo_n "checking for sql.h in $PDO_ODBC_INCDIR... " >&6; }
75443: if test -f "$PDO_ODBC_INCDIR/sql.h"; then
75444: php_pdo_have_header=yes
75445:
75446: $as_echo "#define HAVE_SQL_H 1" >>confdefs.h
75447:
75448: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
75449: $as_echo "yes" >&6; }
75450: else
75451: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
75452: $as_echo "no" >&6; }
75453: fi
75454:
75455:
75456: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isql.h in $PDO_ODBC_INCDIR" >&5
75457: $as_echo_n "checking for isql.h in $PDO_ODBC_INCDIR... " >&6; }
75458: if test -f "$PDO_ODBC_INCDIR/isql.h"; then
75459: php_pdo_have_header=yes
75460:
75461: $as_echo "#define HAVE_ISQL_H 1" >>confdefs.h
75462:
75463: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
75464: $as_echo "yes" >&6; }
75465: else
75466: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
75467: $as_echo "no" >&6; }
75468: fi
75469:
75470:
75471: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlext.h in $PDO_ODBC_INCDIR" >&5
75472: $as_echo_n "checking for sqlext.h in $PDO_ODBC_INCDIR... " >&6; }
75473: if test -f "$PDO_ODBC_INCDIR/sqlext.h"; then
75474: php_pdo_have_header=yes
75475:
75476: $as_echo "#define HAVE_SQLEXT_H 1" >>confdefs.h
75477:
75478: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
75479: $as_echo "yes" >&6; }
75480: else
75481: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
75482: $as_echo "no" >&6; }
75483: fi
75484:
75485:
75486: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isqlext.h in $PDO_ODBC_INCDIR" >&5
75487: $as_echo_n "checking for isqlext.h in $PDO_ODBC_INCDIR... " >&6; }
75488: if test -f "$PDO_ODBC_INCDIR/isqlext.h"; then
75489: php_pdo_have_header=yes
75490:
75491: $as_echo "#define HAVE_ISQLEXT_H 1" >>confdefs.h
75492:
75493: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
75494: $as_echo "yes" >&6; }
75495: else
75496: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
75497: $as_echo "no" >&6; }
75498: fi
75499:
75500:
75501: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udbcext.h in $PDO_ODBC_INCDIR" >&5
75502: $as_echo_n "checking for udbcext.h in $PDO_ODBC_INCDIR... " >&6; }
75503: if test -f "$PDO_ODBC_INCDIR/udbcext.h"; then
75504: php_pdo_have_header=yes
75505:
75506: $as_echo "#define HAVE_UDBCEXT_H 1" >>confdefs.h
75507:
75508: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
75509: $as_echo "yes" >&6; }
75510: else
75511: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
75512: $as_echo "no" >&6; }
75513: fi
75514:
75515:
75516: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlcli1.h in $PDO_ODBC_INCDIR" >&5
75517: $as_echo_n "checking for sqlcli1.h in $PDO_ODBC_INCDIR... " >&6; }
75518: if test -f "$PDO_ODBC_INCDIR/sqlcli1.h"; then
75519: php_pdo_have_header=yes
75520:
75521: $as_echo "#define HAVE_SQLCLI1_H 1" >>confdefs.h
75522:
75523: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
75524: $as_echo "yes" >&6; }
75525: else
75526: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
75527: $as_echo "no" >&6; }
75528: fi
75529:
75530:
75531: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibraryManager.h in $PDO_ODBC_INCDIR" >&5
75532: $as_echo_n "checking for LibraryManager.h in $PDO_ODBC_INCDIR... " >&6; }
75533: if test -f "$PDO_ODBC_INCDIR/LibraryManager.h"; then
75534: php_pdo_have_header=yes
75535:
75536: $as_echo "#define HAVE_LIBRARYMANAGER_H 1" >>confdefs.h
75537:
75538: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
75539: $as_echo "yes" >&6; }
75540: else
75541: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
75542: $as_echo "no" >&6; }
75543: fi
75544:
75545:
75546: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cli0core.h in $PDO_ODBC_INCDIR" >&5
75547: $as_echo_n "checking for cli0core.h in $PDO_ODBC_INCDIR... " >&6; }
75548: if test -f "$PDO_ODBC_INCDIR/cli0core.h"; then
75549: php_pdo_have_header=yes
75550:
75551: $as_echo "#define HAVE_CLI0CORE_H 1" >>confdefs.h
75552:
75553: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
75554: $as_echo "yes" >&6; }
75555: else
75556: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
75557: $as_echo "no" >&6; }
75558: fi
75559:
75560:
75561: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cli0ext.h in $PDO_ODBC_INCDIR" >&5
75562: $as_echo_n "checking for cli0ext.h in $PDO_ODBC_INCDIR... " >&6; }
75563: if test -f "$PDO_ODBC_INCDIR/cli0ext.h"; then
75564: php_pdo_have_header=yes
75565:
75566: $as_echo "#define HAVE_CLI0EXT_H 1" >>confdefs.h
75567:
75568: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
75569: $as_echo "yes" >&6; }
75570: else
75571: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
75572: $as_echo "no" >&6; }
75573: fi
75574:
75575:
75576: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cli0cli.h in $PDO_ODBC_INCDIR" >&5
75577: $as_echo_n "checking for cli0cli.h in $PDO_ODBC_INCDIR... " >&6; }
75578: if test -f "$PDO_ODBC_INCDIR/cli0cli.h"; then
75579: php_pdo_have_header=yes
75580:
75581: $as_echo "#define HAVE_CLI0CLI_H 1" >>confdefs.h
75582:
75583: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
75584: $as_echo "yes" >&6; }
75585: else
75586: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
75587: $as_echo "no" >&6; }
75588: fi
75589:
75590:
75591: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cli0defs.h in $PDO_ODBC_INCDIR" >&5
75592: $as_echo_n "checking for cli0defs.h in $PDO_ODBC_INCDIR... " >&6; }
75593: if test -f "$PDO_ODBC_INCDIR/cli0defs.h"; then
75594: php_pdo_have_header=yes
75595:
75596: $as_echo "#define HAVE_CLI0DEFS_H 1" >>confdefs.h
75597:
75598: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
75599: $as_echo "yes" >&6; }
75600: else
75601: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
75602: $as_echo "no" >&6; }
75603: fi
75604:
75605:
75606: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cli0env.h in $PDO_ODBC_INCDIR" >&5
75607: $as_echo_n "checking for cli0env.h in $PDO_ODBC_INCDIR... " >&6; }
75608: if test -f "$PDO_ODBC_INCDIR/cli0env.h"; then
75609: php_pdo_have_header=yes
75610:
75611: $as_echo "#define HAVE_CLI0ENV_H 1" >>confdefs.h
75612:
75613: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
75614: $as_echo "yes" >&6; }
75615: else
75616: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
75617: $as_echo "no" >&6; }
75618: fi
75619:
75620:
75621: if test "$php_pdo_have_header" != "yes"; then
75622: as_fn_error $? "Cannot find header file(s) for pdo_odbc" "$LINENO" 5
75623: fi
75624:
75625: PDO_ODBC_INCLUDE="$pdo_odbc_def_cflags -I$PDO_ODBC_INCDIR -DPDO_ODBC_TYPE=\\\"$pdo_odbc_flavour\\\""
75626: PDO_ODBC_LDFLAGS="$pdo_odbc_def_ldflags -L$PDO_ODBC_LIBDIR -l$pdo_odbc_def_lib"
75627:
75628:
75629: for ac_i in $PDO_ODBC_LDFLAGS; do
75630: case $ac_i in
75631: -pthread)
75632: if test "$ext_shared" = "yes"; then
75633: PDO_ODBC_SHARED_LIBADD="$PDO_ODBC_SHARED_LIBADD -pthread"
75634: else
75635:
75636:
75637: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
75638:
75639: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
75640: if test -n "$unique" && test "`eval $cmd`" = "" ; then
75641: eval "EXTRA_LDFLAGS$unique=set"
75642: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
75643: fi
75644:
75645: fi
75646: ;;
75647: -l*)
75648: ac_ii=`echo $ac_i|cut -c 3-`
75649:
75650:
75651: case $ac_ii in
75652: c|c_r|pthread*) ;;
75653: *)
75654: if test "$ext_shared" = "yes"; then
75655: PDO_ODBC_SHARED_LIBADD="$PDO_ODBC_SHARED_LIBADD -l$ac_ii"
75656: else
75657:
75658:
75659: case $ac_ii in
75660: c|c_r|pthread*) ;;
75661: *)
75662: LIBS="$LIBS -l$ac_ii"
75663: ;;
75664: esac
75665:
75666:
75667: fi
75668: ;;
75669: esac
75670:
75671:
75672: ;;
75673: -L*)
75674: ac_ii=`echo $ac_i|cut -c 3-`
75675:
75676: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
75677:
75678: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
75679: ai_p=$ac_ii
75680: else
75681:
75682: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
75683:
75684: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
75685: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
75686: fi
75687:
75688:
75689: if test "$ext_shared" = "yes"; then
75690: PDO_ODBC_SHARED_LIBADD="-L$ai_p $PDO_ODBC_SHARED_LIBADD"
75691: test -n "$ld_runpath_switch" && PDO_ODBC_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_ODBC_SHARED_LIBADD"
75692: else
75693:
75694:
75695:
75696: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
75697:
75698: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
75699: if test -n "$unique" && test "`eval $cmd`" = "" ; then
75700: eval "LIBPATH$unique=set"
75701:
75702: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
75703: LDFLAGS="$LDFLAGS -L$ai_p"
75704: PHP_RPATHS="$PHP_RPATHS $ai_p"
75705:
75706: fi
75707:
75708:
75709: fi
75710:
75711: fi
75712:
75713: ;;
75714: esac
75715: done
75716:
75717:
75718:
75719: save_old_LDFLAGS=$LDFLAGS
75720: ac_stuff="$PDO_ODBC_LDFLAGS"
75721:
75722: save_ext_shared=$ext_shared
75723: ext_shared=yes
75724:
75725: for ac_i in $ac_stuff; do
75726: case $ac_i in
75727: -pthread)
75728: if test "$ext_shared" = "yes"; then
75729: LDFLAGS="$LDFLAGS -pthread"
75730: else
75731:
75732:
75733: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
75734:
75735: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
75736: if test -n "$unique" && test "`eval $cmd`" = "" ; then
75737: eval "EXTRA_LDFLAGS$unique=set"
75738: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
75739: fi
75740:
75741: fi
75742: ;;
75743: -l*)
75744: ac_ii=`echo $ac_i|cut -c 3-`
75745:
75746:
75747: case $ac_ii in
75748: c|c_r|pthread*) ;;
75749: *)
75750: if test "$ext_shared" = "yes"; then
75751: LDFLAGS="$LDFLAGS -l$ac_ii"
75752: else
75753:
75754:
75755: case $ac_ii in
75756: c|c_r|pthread*) ;;
75757: *)
75758: LIBS="$LIBS -l$ac_ii"
75759: ;;
75760: esac
75761:
75762:
75763: fi
75764: ;;
75765: esac
75766:
75767:
75768: ;;
75769: -L*)
75770: ac_ii=`echo $ac_i|cut -c 3-`
75771:
75772: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
75773:
75774: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
75775: ai_p=$ac_ii
75776: else
75777:
75778: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
75779:
75780: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
75781: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
75782: fi
75783:
75784:
75785: if test "$ext_shared" = "yes"; then
75786: LDFLAGS="-L$ai_p $LDFLAGS"
75787: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
75788: else
75789:
75790:
75791:
75792: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
75793:
75794: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
75795: if test -n "$unique" && test "`eval $cmd`" = "" ; then
75796: eval "LIBPATH$unique=set"
75797:
75798: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
75799: LDFLAGS="$LDFLAGS -L$ai_p"
75800: PHP_RPATHS="$PHP_RPATHS $ai_p"
75801:
75802: fi
75803:
75804:
75805: fi
75806:
75807: fi
75808:
75809: ;;
75810: esac
75811: done
75812:
75813: as_ac_Lib=`$as_echo "ac_cv_lib_$pdo_odbc_def_lib''_SQLBindCol" | $as_tr_sh`
75814: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLBindCol in -l$pdo_odbc_def_lib" >&5
75815: $as_echo_n "checking for SQLBindCol in -l$pdo_odbc_def_lib... " >&6; }
75816: if eval \${$as_ac_Lib+:} false; then :
75817: $as_echo_n "(cached) " >&6
75818: else
75819: ac_check_lib_save_LIBS=$LIBS
75820: LIBS="-l$pdo_odbc_def_lib $LIBS"
75821: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
75822: /* end confdefs.h. */
75823:
75824: /* Override any GCC internal prototype to avoid an error.
75825: Use char because int might match the return type of a GCC
75826: builtin and then its argument prototype would still apply. */
75827: #ifdef __cplusplus
75828: extern "C"
75829: #endif
75830: char SQLBindCol ();
75831: int
75832: main ()
75833: {
75834: return SQLBindCol ();
75835: ;
75836: return 0;
75837: }
75838: _ACEOF
75839: if ac_fn_c_try_link "$LINENO"; then :
75840: eval "$as_ac_Lib=yes"
75841: else
75842: eval "$as_ac_Lib=no"
75843: fi
75844: rm -f core conftest.err conftest.$ac_objext \
75845: conftest$ac_exeext conftest.$ac_ext
75846: LIBS=$ac_check_lib_save_LIBS
75847: fi
75848: eval ac_res=\$$as_ac_Lib
75849: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
75850: $as_echo "$ac_res" >&6; }
75851: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
75852:
75853: LDFLAGS=$save_old_LDFLAGS
75854: ext_shared=$save_ext_shared
75855:
75856:
75857: save_old_LDFLAGS=$LDFLAGS
75858: ac_stuff="$PDO_ODBC_LDFLAGS"
75859:
75860: save_ext_shared=$ext_shared
75861: ext_shared=yes
75862:
75863: for ac_i in $ac_stuff; do
75864: case $ac_i in
75865: -pthread)
75866: if test "$ext_shared" = "yes"; then
75867: LDFLAGS="$LDFLAGS -pthread"
75868: else
75869:
75870:
75871: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
75872:
75873: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
75874: if test -n "$unique" && test "`eval $cmd`" = "" ; then
75875: eval "EXTRA_LDFLAGS$unique=set"
75876: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
75877: fi
75878:
75879: fi
75880: ;;
75881: -l*)
75882: ac_ii=`echo $ac_i|cut -c 3-`
75883:
75884:
75885: case $ac_ii in
75886: c|c_r|pthread*) ;;
75887: *)
75888: if test "$ext_shared" = "yes"; then
75889: LDFLAGS="$LDFLAGS -l$ac_ii"
75890: else
75891:
75892:
75893: case $ac_ii in
75894: c|c_r|pthread*) ;;
75895: *)
75896: LIBS="$LIBS -l$ac_ii"
75897: ;;
75898: esac
75899:
75900:
75901: fi
75902: ;;
75903: esac
75904:
75905:
75906: ;;
75907: -L*)
75908: ac_ii=`echo $ac_i|cut -c 3-`
75909:
75910: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
75911:
75912: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
75913: ai_p=$ac_ii
75914: else
75915:
75916: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
75917:
75918: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
75919: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
75920: fi
75921:
75922:
75923: if test "$ext_shared" = "yes"; then
75924: LDFLAGS="-L$ai_p $LDFLAGS"
75925: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
75926: else
75927:
75928:
75929:
75930: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
75931:
75932: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
75933: if test -n "$unique" && test "`eval $cmd`" = "" ; then
75934: eval "LIBPATH$unique=set"
75935:
75936: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
75937: LDFLAGS="$LDFLAGS -L$ai_p"
75938: PHP_RPATHS="$PHP_RPATHS $ai_p"
75939:
75940: fi
75941:
75942:
75943: fi
75944:
75945: fi
75946:
75947: ;;
75948: esac
75949: done
75950:
75951: as_ac_Lib=`$as_echo "ac_cv_lib_$pdo_odbc_def_lib''_SQLAllocHandle" | $as_tr_sh`
75952: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLAllocHandle in -l$pdo_odbc_def_lib" >&5
75953: $as_echo_n "checking for SQLAllocHandle in -l$pdo_odbc_def_lib... " >&6; }
75954: if eval \${$as_ac_Lib+:} false; then :
75955: $as_echo_n "(cached) " >&6
75956: else
75957: ac_check_lib_save_LIBS=$LIBS
75958: LIBS="-l$pdo_odbc_def_lib $LIBS"
75959: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
75960: /* end confdefs.h. */
75961:
75962: /* Override any GCC internal prototype to avoid an error.
75963: Use char because int might match the return type of a GCC
75964: builtin and then its argument prototype would still apply. */
75965: #ifdef __cplusplus
75966: extern "C"
75967: #endif
75968: char SQLAllocHandle ();
75969: int
75970: main ()
75971: {
75972: return SQLAllocHandle ();
75973: ;
75974: return 0;
75975: }
75976: _ACEOF
75977: if ac_fn_c_try_link "$LINENO"; then :
75978: eval "$as_ac_Lib=yes"
75979: else
75980: eval "$as_ac_Lib=no"
75981: fi
75982: rm -f core conftest.err conftest.$ac_objext \
75983: conftest$ac_exeext conftest.$ac_ext
75984: LIBS=$ac_check_lib_save_LIBS
75985: fi
75986: eval ac_res=\$$as_ac_Lib
75987: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
75988: $as_echo "$ac_res" >&6; }
75989: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
75990:
75991: LDFLAGS=$save_old_LDFLAGS
75992: ext_shared=$save_ext_shared
75993:
75994:
75995: else
75996:
75997: LDFLAGS=$save_old_LDFLAGS
75998: ext_shared=$save_ext_shared
75999: unset ac_cv_lib_$pdo_odbc_def_lib_SQLAllocHandle
76000:
76001: as_fn_error $? "
76002: Your ODBC library does not appear to be ODBC 3 compatible.
76003: You should consider using iODBC or unixODBC instead, and loading your
76004: libraries as a driver in that environment; it will emulate the
76005: functions required for PDO support.
76006: " "$LINENO" 5
76007:
76008: fi
76009:
76010:
76011:
76012: else
76013:
76014: LDFLAGS=$save_old_LDFLAGS
76015: ext_shared=$save_ext_shared
76016: unset ac_cv_lib_$pdo_odbc_def_lib_SQLBindCol
76017:
76018: as_fn_error $? "Your ODBC library does not exist or there was an error. Check config.log for more information" "$LINENO" 5
76019:
76020:
76021: fi
76022:
76023:
76024:
76025: ext_builddir=ext/pdo_odbc
76026: ext_srcdir=$abs_srcdir/ext/pdo_odbc
76027:
76028: ac_extra=`echo "-I$pdo_inc_path $PDO_ODBC_INCLUDE"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
76029:
76030: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
76031: PHP_PDO_ODBC_SHARED=no
76032:
76033:
76034: case ext/pdo_odbc in
76035: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
76036: /*) ac_srcdir=`echo "ext/pdo_odbc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
76037: *) ac_srcdir="$abs_srcdir/ext/pdo_odbc/"; ac_bdir="ext/pdo_odbc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
76038: esac
76039:
76040:
76041:
76042: b_c_pre=$php_c_pre
76043: b_cxx_pre=$php_cxx_pre
76044: b_c_meta=$php_c_meta
76045: b_cxx_meta=$php_cxx_meta
76046: b_c_post=$php_c_post
76047: b_cxx_post=$php_cxx_post
76048: b_lo=$php_lo
76049:
76050:
76051: old_IFS=$IFS
76052: for ac_src in pdo_odbc.c odbc_driver.c odbc_stmt.c; do
76053:
76054: IFS=.
76055: set $ac_src
76056: ac_obj=$1
76057: IFS=$old_IFS
76058:
76059: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
76060:
76061: case $ac_src in
76062: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
76063: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
76064: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
76065: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
76066: esac
76067:
76068: cat >>Makefile.objects<<EOF
76069: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
76070: $ac_comp
76071: EOF
76072: done
76073:
76074:
76075: EXT_STATIC="$EXT_STATIC pdo_odbc"
76076: if test "$ext_shared" != "nocli"; then
76077: EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_odbc"
76078: fi
76079: else
76080: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
76081: PHP_PDO_ODBC_SHARED=yes
76082:
76083: case ext/pdo_odbc in
76084: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
76085: /*) ac_srcdir=`echo "ext/pdo_odbc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
76086: *) ac_srcdir="$abs_srcdir/ext/pdo_odbc/"; ac_bdir="ext/pdo_odbc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
76087: esac
76088:
76089:
76090:
76091: b_c_pre=$shared_c_pre
76092: b_cxx_pre=$shared_cxx_pre
76093: b_c_meta=$shared_c_meta
76094: b_cxx_meta=$shared_cxx_meta
76095: b_c_post=$shared_c_post
76096: b_cxx_post=$shared_cxx_post
76097: b_lo=$shared_lo
76098:
76099:
76100: old_IFS=$IFS
76101: for ac_src in pdo_odbc.c odbc_driver.c odbc_stmt.c; do
76102:
76103: IFS=.
76104: set $ac_src
76105: ac_obj=$1
76106: IFS=$old_IFS
76107:
76108: shared_objects_pdo_odbc="$shared_objects_pdo_odbc $ac_bdir$ac_obj.lo"
76109:
76110: case $ac_src in
76111: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
76112: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
76113: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
76114: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
76115: esac
76116:
76117: cat >>Makefile.objects<<EOF
76118: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
76119: $ac_comp
76120: EOF
76121: done
76122:
76123: case $host_alias in
76124: *netware*)
76125:
76126: install_modules="install-modules"
76127:
76128: case $host_alias in
76129: *aix*)
76130: suffix=so
76131: 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'
76132: ;;
76133: *netware*)
76134: suffix=nlm
76135: link_cmd='$(LIBTOOL) --mode=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)'
76136: ;;
76137: *)
76138: suffix=la
76139: link_cmd='$(LIBTOOL) --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)'
76140: ;;
76141: esac
76142:
76143: if test "x" = "xyes"; then
76144: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phppdo_odbc.$suffix"
76145: else
76146: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phppdo_odbc.$suffix"
76147: fi
76148:
76149: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo_odbc"
76150:
76151: cat >>Makefile.objects<<EOF
76152: \$(phplibdir)/phppdo_odbc.$suffix: $ext_builddir/phppdo_odbc.$suffix
76153: \$(LIBTOOL) --mode=install cp $ext_builddir/phppdo_odbc.$suffix \$(phplibdir)
76154:
76155: $ext_builddir/phppdo_odbc.$suffix: \$(shared_objects_pdo_odbc) \$(PHPPDO_ODBC_SHARED_DEPENDENCIES)
76156: $link_cmd
76157:
76158: EOF
76159:
76160: ;;
76161: *)
76162:
76163: install_modules="install-modules"
76164:
76165: case $host_alias in
76166: *aix*)
76167: suffix=so
76168: 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'
76169: ;;
76170: *netware*)
76171: suffix=nlm
76172: link_cmd='$(LIBTOOL) --mode=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)'
76173: ;;
76174: *)
76175: suffix=la
76176: link_cmd='$(LIBTOOL) --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)'
76177: ;;
76178: esac
76179:
76180: if test "x" = "xyes"; then
76181: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/pdo_odbc.$suffix"
76182: else
76183: PHP_MODULES="$PHP_MODULES \$(phplibdir)/pdo_odbc.$suffix"
76184: fi
76185:
76186: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo_odbc"
76187:
76188: cat >>Makefile.objects<<EOF
76189: \$(phplibdir)/pdo_odbc.$suffix: $ext_builddir/pdo_odbc.$suffix
76190: \$(LIBTOOL) --mode=install cp $ext_builddir/pdo_odbc.$suffix \$(phplibdir)
76191:
76192: $ext_builddir/pdo_odbc.$suffix: \$(shared_objects_pdo_odbc) \$(PDO_ODBC_SHARED_DEPENDENCIES)
76193: $link_cmd
76194:
76195: EOF
76196:
76197: ;;
76198: esac
76199:
76200: cat >>confdefs.h <<_ACEOF
76201: #define COMPILE_DL_PDO_ODBC 1
76202: _ACEOF
76203:
76204: fi
76205: fi
76206:
76207: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
76208: PHP_PDO_ODBC_SHARED=no
76209:
76210:
76211: case ext/pdo_odbc in
76212: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
76213: /*) ac_srcdir=`echo "ext/pdo_odbc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
76214: *) ac_srcdir="$abs_srcdir/ext/pdo_odbc/"; ac_bdir="ext/pdo_odbc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
76215: esac
76216:
76217:
76218:
76219: b_c_pre=$php_c_pre
76220: b_cxx_pre=$php_cxx_pre
76221: b_c_meta=$php_c_meta
76222: b_cxx_meta=$php_cxx_meta
76223: b_c_post=$php_c_post
76224: b_cxx_post=$php_cxx_post
76225: b_lo=$php_lo
76226:
76227:
76228: old_IFS=$IFS
76229: for ac_src in pdo_odbc.c odbc_driver.c odbc_stmt.c; do
76230:
76231: IFS=.
76232: set $ac_src
76233: ac_obj=$1
76234: IFS=$old_IFS
76235:
76236: PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
76237:
76238: case $ac_src in
76239: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
76240: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
76241: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
76242: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
76243: esac
76244:
76245: cat >>Makefile.objects<<EOF
76246: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
76247: $ac_comp
76248: EOF
76249: done
76250:
76251:
76252:
76253:
76254: case ext/pdo_odbc in
76255: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
76256: /*) ac_srcdir=`echo "ext/pdo_odbc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
76257: *) ac_srcdir="$abs_srcdir/ext/pdo_odbc/"; ac_bdir="ext/pdo_odbc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
76258: esac
76259:
76260:
76261:
76262: b_c_pre=$php_c_pre
76263: b_cxx_pre=$php_cxx_pre
76264: b_c_meta=$php_c_meta
76265: b_cxx_meta=$php_cxx_meta
76266: b_c_post=$php_c_post
76267: b_cxx_post=$php_cxx_post
76268: b_lo=$php_lo
76269:
76270:
76271: old_IFS=$IFS
76272: for ac_src in pdo_odbc.c odbc_driver.c odbc_stmt.c; do
76273:
76274: IFS=.
76275: set $ac_src
76276: ac_obj=$1
76277: IFS=$old_IFS
76278:
76279: PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo"
76280:
76281: case $ac_src in
76282: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
76283: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
76284: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
76285: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
76286: esac
76287:
76288: cat >>Makefile.objects<<EOF
76289: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
76290: $ac_comp
76291: EOF
76292: done
76293:
76294:
76295:
76296:
76297: case ext/pdo_odbc in
76298: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
76299: /*) ac_srcdir=`echo "ext/pdo_odbc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
76300: *) ac_srcdir="$abs_srcdir/ext/pdo_odbc/"; ac_bdir="ext/pdo_odbc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
76301: esac
76302:
76303:
76304:
76305: b_c_pre=$php_c_pre
76306: b_cxx_pre=$php_cxx_pre
76307: b_c_meta=$php_c_meta
76308: b_cxx_meta=$php_cxx_meta
76309: b_c_post=$php_c_post
76310: b_cxx_post=$php_cxx_post
76311: b_lo=$php_lo
76312:
76313:
76314: old_IFS=$IFS
76315: for ac_src in pdo_odbc.c odbc_driver.c odbc_stmt.c; do
76316:
76317: IFS=.
76318: set $ac_src
76319: ac_obj=$1
76320: IFS=$old_IFS
76321:
76322: PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo"
76323:
76324: case $ac_src in
76325: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
76326: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
76327: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
76328: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
76329: esac
76330:
76331: cat >>Makefile.objects<<EOF
76332: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
76333: $ac_comp
76334: EOF
76335: done
76336:
76337:
76338: EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_odbc"
76339: fi
76340:
76341:
76342: BUILD_DIR="$BUILD_DIR $ext_builddir"
76343:
76344:
76345:
76346: if test "$ext_builddir" = "."; then
76347: PHP_PECL_EXTENSION=pdo_odbc
76348:
76349: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
76350:
76351: fi
76352:
76353:
76354: PHP_VAR_SUBST="$PHP_VAR_SUBST PDO_ODBC_SHARED_LIBADD"
76355:
76356:
76357:
76358: am_i_shared=$PHP_PDO_ODBC_SHARED
76359: is_it_shared=$PHP_PDO_SHARED
76360: is_it_enabled=$PHP_PDO
76361: if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
76362: as_fn_error $? "
76363: You've configured extension pdo_odbc to build statically, but it
76364: depends on extension pdo, which you've configured to build shared.
76365: You either need to build pdo_odbc shared or build pdo statically for the
76366: build to be successful.
76367: " "$LINENO" 5
76368: fi
76369:
76370:
76371: fi
76372:
76373:
76374:
76375: php_with_pdo_pgsql=no
76376:
76377: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support for PDO" >&5
76378: $as_echo_n "checking for PostgreSQL support for PDO... " >&6; }
76379:
76380: # Check whether --with-pdo-pgsql was given.
76381: if test "${with_pdo_pgsql+set}" = set; then :
76382: withval=$with_pdo_pgsql; PHP_PDO_PGSQL=$withval
76383: else
76384:
76385: PHP_PDO_PGSQL=no
76386: test "$PHP_ENABLE_ALL" && PHP_PDO_PGSQL=$PHP_ENABLE_ALL
76387:
76388: fi
76389:
76390:
76391:
76392: ext_output="yes, shared"
76393: ext_shared=yes
76394: case $PHP_PDO_PGSQL in
76395: shared,*)
76396: PHP_PDO_PGSQL=`echo "$PHP_PDO_PGSQL"|$SED 's/^shared,//'`
76397: ;;
76398: shared)
76399: PHP_PDO_PGSQL=yes
76400: ;;
76401: no)
76402: ext_output=no
76403: ext_shared=no
76404: ;;
76405: *)
76406: ext_output=yes
76407: ext_shared=no
76408: ;;
76409: esac
76410:
76411:
76412:
76413: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
76414: $as_echo "$ext_output" >&6; }
76415:
76416:
76417:
76418:
76419: if test "$PHP_PDO_PGSQL" != "no"; then
76420:
76421: if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then
76422: as_fn_error $? "PDO is not enabled! Add --enable-pdo to your configure line." "$LINENO" 5
76423: fi
76424:
76425:
76426: if test -z "$PGSQL_INCLUDE" || echo "$PGSQL_INCLUDE" | grep '^/' >/dev/null ; then
76427: PGSQL_INCLUDE=$PGSQL_INCLUDE
76428: else
76429:
76430: ep_dir="`echo $PGSQL_INCLUDE|$SED 's%/*[^/][^/]*/*$%%'`"
76431:
76432: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
76433: PGSQL_INCLUDE="$ep_realdir/`basename \"$PGSQL_INCLUDE\"`"
76434: fi
76435:
76436:
76437: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pg_config" >&5
76438: $as_echo_n "checking for pg_config... " >&6; }
76439: for i in $PHP_PDO_PGSQL $PHP_PDO_PGSQL/bin /usr/local/pgsql/bin /usr/local/bin /usr/bin ""; do
76440: if test -x $i/pg_config; then
76441: PG_CONFIG="$i/pg_config"
76442: break;
76443: fi
76444: done
76445:
76446: if test -n "$PG_CONFIG"; then
76447: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5
76448: $as_echo "$PG_CONFIG" >&6; }
76449: PGSQL_INCLUDE=`$PG_CONFIG --includedir`
76450: PGSQL_LIBDIR=`$PG_CONFIG --libdir`
76451:
76452: $as_echo "#define HAVE_PG_CONFIG_H 1" >>confdefs.h
76453:
76454: else
76455: { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
76456: $as_echo "not found" >&6; }
76457: if test "$PHP_PDO_PGSQL" = "yes"; then
76458: PGSQL_SEARCH_PATHS="/usr /usr/local /usr/local/pgsql"
76459: else
76460: PGSQL_SEARCH_PATHS=$PHP_PDO_PGSQL
76461: fi
76462:
76463: for i in $PGSQL_SEARCH_PATHS; do
76464: for j in include include/pgsql include/postgres include/postgresql ""; do
76465: if test -r "$i/$j/libpq-fe.h"; then
76466: PGSQL_INC_BASE=$i
76467: PGSQL_INCLUDE=$i/$j
76468: if test -r "$i/$j/pg_config.h"; then
76469:
76470: $as_echo "#define HAVE_PG_CONFIG_H 1" >>confdefs.h
76471:
76472: fi
76473: fi
76474: done
76475:
76476: for j in $PHP_LIBDIR $PHP_LIBDIR/pgsql $PHP_LIBDIR/postgres $PHP_LIBDIR/postgresql ""; do
76477: if test -f "$i/$j/libpq.so" || test -f "$i/$j/libpq.a"; then
76478: PGSQL_LIBDIR=$i/$j
76479: fi
76480: done
76481: done
76482: fi
76483:
76484: if test -z "$PGSQL_INCLUDE"; then
76485: as_fn_error $? "Cannot find libpq-fe.h. Please specify correct PostgreSQL installation path" "$LINENO" 5
76486: fi
76487:
76488: if test -z "$PGSQL_LIBDIR"; then
76489: as_fn_error $? "Cannot find libpq.so. Please specify correct PostgreSQL installation path" "$LINENO" 5
76490: fi
76491:
76492: if test -z "$PGSQL_INCLUDE" -a -z "$PGSQL_LIBDIR" ; then
76493: as_fn_error $? "Unable to find libpq anywhere under $PGSQL_SEARCH_PATHS" "$LINENO" 5
76494: fi
76495:
76496:
76497: $as_echo "#define HAVE_PDO_PGSQL 1" >>confdefs.h
76498:
76499:
76500: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl dependencies" >&5
76501: $as_echo_n "checking for openssl dependencies... " >&6; }
76502: grep openssl $PGSQL_INCLUDE/libpq-fe.h >/dev/null 2>&1
76503: if test $? -eq 0 ; then
76504: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
76505: $as_echo "yes" >&6; }
76506: # Extract the first word of "pkg-config", so it can be a program name with args.
76507: set dummy pkg-config; ac_word=$2
76508: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
76509: $as_echo_n "checking for $ac_word... " >&6; }
76510: if ${ac_cv_path_PKG_CONFIG+:} false; then :
76511: $as_echo_n "(cached) " >&6
76512: else
76513: case $PKG_CONFIG in
76514: [\\/]* | ?:[\\/]*)
76515: ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
76516: ;;
76517: *)
76518: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76519: for as_dir in $PATH
76520: do
76521: IFS=$as_save_IFS
76522: test -z "$as_dir" && as_dir=.
76523: for ac_exec_ext in '' $ac_executable_extensions; do
76524: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
76525: ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
76526: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
76527: break 2
76528: fi
76529: done
76530: done
76531: IFS=$as_save_IFS
76532:
76533: test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
76534: ;;
76535: esac
76536: fi
76537: PKG_CONFIG=$ac_cv_path_PKG_CONFIG
76538: if test -n "$PKG_CONFIG"; then
76539: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
76540: $as_echo "$PKG_CONFIG" >&6; }
76541: else
76542: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
76543: $as_echo "no" >&6; }
76544: fi
76545:
76546:
76547: if test -x "$PKG_CONFIG" && $PKG_CONFIG --exists openssl; then
76548: PDO_PGSQL_CFLAGS=`$PKG_CONFIG openssl --cflags`
76549: fi
76550: else
76551: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
76552: $as_echo "no" >&6; }
76553: fi
76554:
76555: old_LIBS=$LIBS
76556: old_LDFLAGS=$LDFLAGS
76557: LDFLAGS="-L$PGSQL_LIBDIR $LDFLAGS"
76558: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQparameterStatus in -lpq" >&5
76559: $as_echo_n "checking for PQparameterStatus in -lpq... " >&6; }
76560: if ${ac_cv_lib_pq_PQparameterStatus+:} false; then :
76561: $as_echo_n "(cached) " >&6
76562: else
76563: ac_check_lib_save_LIBS=$LIBS
76564: LIBS="-lpq $LIBS"
76565: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
76566: /* end confdefs.h. */
76567:
76568: /* Override any GCC internal prototype to avoid an error.
76569: Use char because int might match the return type of a GCC
76570: builtin and then its argument prototype would still apply. */
76571: #ifdef __cplusplus
76572: extern "C"
76573: #endif
76574: char PQparameterStatus ();
76575: int
76576: main ()
76577: {
76578: return PQparameterStatus ();
76579: ;
76580: return 0;
76581: }
76582: _ACEOF
76583: if ac_fn_c_try_link "$LINENO"; then :
76584: ac_cv_lib_pq_PQparameterStatus=yes
76585: else
76586: ac_cv_lib_pq_PQparameterStatus=no
76587: fi
76588: rm -f core conftest.err conftest.$ac_objext \
76589: conftest$ac_exeext conftest.$ac_ext
76590: LIBS=$ac_check_lib_save_LIBS
76591: fi
76592: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQparameterStatus" >&5
76593: $as_echo "$ac_cv_lib_pq_PQparameterStatus" >&6; }
76594: if test "x$ac_cv_lib_pq_PQparameterStatus" = xyes; then :
76595:
76596: $as_echo "#define HAVE_PQPARAMETERSTATUS 1" >>confdefs.h
76597:
76598: else
76599:
76600: echo "Unable to build the PDO PostgreSQL driver: libpq 7.4+ is required"
76601: exit 1
76602:
76603: fi
76604:
76605:
76606: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQprepare in -lpq" >&5
76607: $as_echo_n "checking for PQprepare in -lpq... " >&6; }
76608: if ${ac_cv_lib_pq_PQprepare+:} false; then :
76609: $as_echo_n "(cached) " >&6
76610: else
76611: ac_check_lib_save_LIBS=$LIBS
76612: LIBS="-lpq $LIBS"
76613: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
76614: /* end confdefs.h. */
76615:
76616: /* Override any GCC internal prototype to avoid an error.
76617: Use char because int might match the return type of a GCC
76618: builtin and then its argument prototype would still apply. */
76619: #ifdef __cplusplus
76620: extern "C"
76621: #endif
76622: char PQprepare ();
76623: int
76624: main ()
76625: {
76626: return PQprepare ();
76627: ;
76628: return 0;
76629: }
76630: _ACEOF
76631: if ac_fn_c_try_link "$LINENO"; then :
76632: ac_cv_lib_pq_PQprepare=yes
76633: else
76634: ac_cv_lib_pq_PQprepare=no
76635: fi
76636: rm -f core conftest.err conftest.$ac_objext \
76637: conftest$ac_exeext conftest.$ac_ext
76638: LIBS=$ac_check_lib_save_LIBS
76639: fi
76640: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQprepare" >&5
76641: $as_echo "$ac_cv_lib_pq_PQprepare" >&6; }
76642: if test "x$ac_cv_lib_pq_PQprepare" = xyes; then :
76643:
76644: $as_echo "#define HAVE_PQPREPARE 1" >>confdefs.h
76645:
76646: fi
76647:
76648: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQescapeStringConn in -lpq" >&5
76649: $as_echo_n "checking for PQescapeStringConn in -lpq... " >&6; }
76650: if ${ac_cv_lib_pq_PQescapeStringConn+:} false; then :
76651: $as_echo_n "(cached) " >&6
76652: else
76653: ac_check_lib_save_LIBS=$LIBS
76654: LIBS="-lpq $LIBS"
76655: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
76656: /* end confdefs.h. */
76657:
76658: /* Override any GCC internal prototype to avoid an error.
76659: Use char because int might match the return type of a GCC
76660: builtin and then its argument prototype would still apply. */
76661: #ifdef __cplusplus
76662: extern "C"
76663: #endif
76664: char PQescapeStringConn ();
76665: int
76666: main ()
76667: {
76668: return PQescapeStringConn ();
76669: ;
76670: return 0;
76671: }
76672: _ACEOF
76673: if ac_fn_c_try_link "$LINENO"; then :
76674: ac_cv_lib_pq_PQescapeStringConn=yes
76675: else
76676: ac_cv_lib_pq_PQescapeStringConn=no
76677: fi
76678: rm -f core conftest.err conftest.$ac_objext \
76679: conftest$ac_exeext conftest.$ac_ext
76680: LIBS=$ac_check_lib_save_LIBS
76681: fi
76682: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQescapeStringConn" >&5
76683: $as_echo "$ac_cv_lib_pq_PQescapeStringConn" >&6; }
76684: if test "x$ac_cv_lib_pq_PQescapeStringConn" = xyes; then :
76685:
76686: $as_echo "#define HAVE_PQESCAPE_CONN 1" >>confdefs.h
76687:
76688: fi
76689:
76690: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQescapeByteaConn in -lpq" >&5
76691: $as_echo_n "checking for PQescapeByteaConn in -lpq... " >&6; }
76692: if ${ac_cv_lib_pq_PQescapeByteaConn+:} false; then :
76693: $as_echo_n "(cached) " >&6
76694: else
76695: ac_check_lib_save_LIBS=$LIBS
76696: LIBS="-lpq $LIBS"
76697: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
76698: /* end confdefs.h. */
76699:
76700: /* Override any GCC internal prototype to avoid an error.
76701: Use char because int might match the return type of a GCC
76702: builtin and then its argument prototype would still apply. */
76703: #ifdef __cplusplus
76704: extern "C"
76705: #endif
76706: char PQescapeByteaConn ();
76707: int
76708: main ()
76709: {
76710: return PQescapeByteaConn ();
76711: ;
76712: return 0;
76713: }
76714: _ACEOF
76715: if ac_fn_c_try_link "$LINENO"; then :
76716: ac_cv_lib_pq_PQescapeByteaConn=yes
76717: else
76718: ac_cv_lib_pq_PQescapeByteaConn=no
76719: fi
76720: rm -f core conftest.err conftest.$ac_objext \
76721: conftest$ac_exeext conftest.$ac_ext
76722: LIBS=$ac_check_lib_save_LIBS
76723: fi
76724: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQescapeByteaConn" >&5
76725: $as_echo "$ac_cv_lib_pq_PQescapeByteaConn" >&6; }
76726: if test "x$ac_cv_lib_pq_PQescapeByteaConn" = xyes; then :
76727:
76728: $as_echo "#define HAVE_PQESCAPE_BYTEA_CONN 1" >>confdefs.h
76729:
76730: fi
76731:
76732:
76733: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pg_encoding_to_char in -lpq" >&5
76734: $as_echo_n "checking for pg_encoding_to_char in -lpq... " >&6; }
76735: if ${ac_cv_lib_pq_pg_encoding_to_char+:} false; then :
76736: $as_echo_n "(cached) " >&6
76737: else
76738: ac_check_lib_save_LIBS=$LIBS
76739: LIBS="-lpq $LIBS"
76740: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
76741: /* end confdefs.h. */
76742:
76743: /* Override any GCC internal prototype to avoid an error.
76744: Use char because int might match the return type of a GCC
76745: builtin and then its argument prototype would still apply. */
76746: #ifdef __cplusplus
76747: extern "C"
76748: #endif
76749: char pg_encoding_to_char ();
76750: int
76751: main ()
76752: {
76753: return pg_encoding_to_char ();
76754: ;
76755: return 0;
76756: }
76757: _ACEOF
76758: if ac_fn_c_try_link "$LINENO"; then :
76759: ac_cv_lib_pq_pg_encoding_to_char=yes
76760: else
76761: ac_cv_lib_pq_pg_encoding_to_char=no
76762: fi
76763: rm -f core conftest.err conftest.$ac_objext \
76764: conftest$ac_exeext conftest.$ac_ext
76765: LIBS=$ac_check_lib_save_LIBS
76766: fi
76767: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_pg_encoding_to_char" >&5
76768: $as_echo "$ac_cv_lib_pq_pg_encoding_to_char" >&6; }
76769: if test "x$ac_cv_lib_pq_pg_encoding_to_char" = xyes; then :
76770:
76771: $as_echo "#define HAVE_PGSQL_WITH_MULTIBYTE_SUPPORT 1" >>confdefs.h
76772:
76773: fi
76774:
76775:
76776:
76777: LIBS=$old_LIBS
76778: LDFLAGS=$old_LDFLAGS
76779:
76780:
76781:
76782: if test "$ext_shared" = "yes"; then
76783: PDO_PGSQL_SHARED_LIBADD="-lpq $PDO_PGSQL_SHARED_LIBADD"
76784: if test -n "$PGSQL_LIBDIR"; then
76785:
76786: if test "$PGSQL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PGSQL_LIBDIR" != "/usr/lib"; then
76787:
76788: if test -z "$PGSQL_LIBDIR" || echo "$PGSQL_LIBDIR" | grep '^/' >/dev/null ; then
76789: ai_p=$PGSQL_LIBDIR
76790: else
76791:
76792: ep_dir="`echo $PGSQL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
76793:
76794: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
76795: ai_p="$ep_realdir/`basename \"$PGSQL_LIBDIR\"`"
76796: fi
76797:
76798:
76799: if test "$ext_shared" = "yes"; then
76800: PDO_PGSQL_SHARED_LIBADD="-L$ai_p $PDO_PGSQL_SHARED_LIBADD"
76801: test -n "$ld_runpath_switch" && PDO_PGSQL_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_PGSQL_SHARED_LIBADD"
76802: else
76803:
76804:
76805:
76806: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
76807:
76808: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
76809: if test -n "$unique" && test "`eval $cmd`" = "" ; then
76810: eval "LIBPATH$unique=set"
76811:
76812: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
76813: LDFLAGS="$LDFLAGS -L$ai_p"
76814: PHP_RPATHS="$PHP_RPATHS $ai_p"
76815:
76816: fi
76817:
76818:
76819: fi
76820:
76821: fi
76822:
76823: fi
76824: else
76825:
76826:
76827: if test -n "$PGSQL_LIBDIR"; then
76828:
76829: if test "$PGSQL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PGSQL_LIBDIR" != "/usr/lib"; then
76830:
76831: if test -z "$PGSQL_LIBDIR" || echo "$PGSQL_LIBDIR" | grep '^/' >/dev/null ; then
76832: ai_p=$PGSQL_LIBDIR
76833: else
76834:
76835: ep_dir="`echo $PGSQL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
76836:
76837: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
76838: ai_p="$ep_realdir/`basename \"$PGSQL_LIBDIR\"`"
76839: fi
76840:
76841:
76842:
76843:
76844:
76845: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
76846:
76847: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
76848: if test -n "$unique" && test "`eval $cmd`" = "" ; then
76849: eval "LIBPATH$unique=set"
76850:
76851: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
76852: LDFLAGS="$LDFLAGS -L$ai_p"
76853: PHP_RPATHS="$PHP_RPATHS $ai_p"
76854:
76855: fi
76856:
76857:
76858:
76859: fi
76860:
76861: fi
76862:
76863:
76864: case pq in
76865: c|c_r|pthread*) ;;
76866: *)
76867: LIBS="-lpq $LIBS"
76868: ;;
76869: esac
76870:
76871:
76872:
76873:
76874: fi
76875:
76876:
76877:
76878: PHP_VAR_SUBST="$PHP_VAR_SUBST PDO_PGSQL_SHARED_LIBADD"
76879:
76880:
76881:
76882: if test "$PGSQL_INCLUDE" != "/usr/include"; then
76883:
76884: if test -z "$PGSQL_INCLUDE" || echo "$PGSQL_INCLUDE" | grep '^/' >/dev/null ; then
76885: ai_p=$PGSQL_INCLUDE
76886: else
76887:
76888: ep_dir="`echo $PGSQL_INCLUDE|$SED 's%/*[^/][^/]*/*$%%'`"
76889:
76890: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
76891: ai_p="$ep_realdir/`basename \"$PGSQL_INCLUDE\"`"
76892: fi
76893:
76894:
76895:
76896: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
76897:
76898: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
76899: if test -n "$unique" && test "`eval $cmd`" = "" ; then
76900: eval "INCLUDEPATH$unique=set"
76901:
76902: if test ""; then
76903: INCLUDES="-I$ai_p $INCLUDES"
76904: else
76905: INCLUDES="$INCLUDES -I$ai_p"
76906: fi
76907:
76908: fi
76909:
76910: fi
76911:
76912:
76913:
76914:
76915: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5
76916: $as_echo_n "checking for PDO includes... " >&6; }
76917: if ${pdo_inc_path+:} false; then :
76918: $as_echo_n "(cached) " >&6
76919: else
76920:
76921: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5
76922: $as_echo_n "checking for PDO includes... " >&6; }
76923: if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then
76924: pdo_inc_path=$abs_srcdir/ext
76925: elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then
76926: pdo_inc_path=$abs_srcdir/ext
76927: elif test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then
76928: pdo_inc_path=$prefix/include/php/ext
76929: fi
76930:
76931: fi
76932: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pdo_inc_path" >&5
76933: $as_echo "$pdo_inc_path" >&6; }
76934: if test -n "$pdo_inc_path"; then
76935: :
76936: else
76937: as_fn_error $? "Cannot find php_pdo_driver.h." "$LINENO" 5
76938: fi
76939:
76940:
76941:
76942:
76943: ext_builddir=ext/pdo_pgsql
76944: ext_srcdir=$abs_srcdir/ext/pdo_pgsql
76945:
76946: ac_extra=`echo "-I$pdo_inc_path $PDO_PGSQL_CFLAGS"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
76947:
76948: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
76949: PHP_PDO_PGSQL_SHARED=no
76950:
76951:
76952: case ext/pdo_pgsql in
76953: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
76954: /*) ac_srcdir=`echo "ext/pdo_pgsql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
76955: *) ac_srcdir="$abs_srcdir/ext/pdo_pgsql/"; ac_bdir="ext/pdo_pgsql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
76956: esac
76957:
76958:
76959:
76960: b_c_pre=$php_c_pre
76961: b_cxx_pre=$php_cxx_pre
76962: b_c_meta=$php_c_meta
76963: b_cxx_meta=$php_cxx_meta
76964: b_c_post=$php_c_post
76965: b_cxx_post=$php_cxx_post
76966: b_lo=$php_lo
76967:
76968:
76969: old_IFS=$IFS
76970: for ac_src in pdo_pgsql.c pgsql_driver.c pgsql_statement.c; do
76971:
76972: IFS=.
76973: set $ac_src
76974: ac_obj=$1
76975: IFS=$old_IFS
76976:
76977: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
76978:
76979: case $ac_src in
76980: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
76981: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
76982: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
76983: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
76984: esac
76985:
76986: cat >>Makefile.objects<<EOF
76987: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
76988: $ac_comp
76989: EOF
76990: done
76991:
76992:
76993: EXT_STATIC="$EXT_STATIC pdo_pgsql"
76994: if test "$ext_shared" != "nocli"; then
76995: EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_pgsql"
76996: fi
76997: else
76998: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
76999: PHP_PDO_PGSQL_SHARED=yes
77000:
77001: case ext/pdo_pgsql in
77002: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
77003: /*) ac_srcdir=`echo "ext/pdo_pgsql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
77004: *) ac_srcdir="$abs_srcdir/ext/pdo_pgsql/"; ac_bdir="ext/pdo_pgsql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
77005: esac
77006:
77007:
77008:
77009: b_c_pre=$shared_c_pre
77010: b_cxx_pre=$shared_cxx_pre
77011: b_c_meta=$shared_c_meta
77012: b_cxx_meta=$shared_cxx_meta
77013: b_c_post=$shared_c_post
77014: b_cxx_post=$shared_cxx_post
77015: b_lo=$shared_lo
77016:
77017:
77018: old_IFS=$IFS
77019: for ac_src in pdo_pgsql.c pgsql_driver.c pgsql_statement.c; do
77020:
77021: IFS=.
77022: set $ac_src
77023: ac_obj=$1
77024: IFS=$old_IFS
77025:
77026: shared_objects_pdo_pgsql="$shared_objects_pdo_pgsql $ac_bdir$ac_obj.lo"
77027:
77028: case $ac_src in
77029: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
77030: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
77031: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
77032: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
77033: esac
77034:
77035: cat >>Makefile.objects<<EOF
77036: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
77037: $ac_comp
77038: EOF
77039: done
77040:
77041: case $host_alias in
77042: *netware*)
77043:
77044: install_modules="install-modules"
77045:
77046: case $host_alias in
77047: *aix*)
77048: suffix=so
77049: 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'
77050: ;;
77051: *netware*)
77052: suffix=nlm
77053: link_cmd='$(LIBTOOL) --mode=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)'
77054: ;;
77055: *)
77056: suffix=la
77057: link_cmd='$(LIBTOOL) --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)'
77058: ;;
77059: esac
77060:
77061: if test "x" = "xyes"; then
77062: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phppdo_pgsql.$suffix"
77063: else
77064: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phppdo_pgsql.$suffix"
77065: fi
77066:
77067: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo_pgsql"
77068:
77069: cat >>Makefile.objects<<EOF
77070: \$(phplibdir)/phppdo_pgsql.$suffix: $ext_builddir/phppdo_pgsql.$suffix
77071: \$(LIBTOOL) --mode=install cp $ext_builddir/phppdo_pgsql.$suffix \$(phplibdir)
77072:
77073: $ext_builddir/phppdo_pgsql.$suffix: \$(shared_objects_pdo_pgsql) \$(PHPPDO_PGSQL_SHARED_DEPENDENCIES)
77074: $link_cmd
77075:
77076: EOF
77077:
77078: ;;
77079: *)
77080:
77081: install_modules="install-modules"
77082:
77083: case $host_alias in
77084: *aix*)
77085: suffix=so
77086: 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'
77087: ;;
77088: *netware*)
77089: suffix=nlm
77090: link_cmd='$(LIBTOOL) --mode=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)'
77091: ;;
77092: *)
77093: suffix=la
77094: link_cmd='$(LIBTOOL) --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)'
77095: ;;
77096: esac
77097:
77098: if test "x" = "xyes"; then
77099: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/pdo_pgsql.$suffix"
77100: else
77101: PHP_MODULES="$PHP_MODULES \$(phplibdir)/pdo_pgsql.$suffix"
77102: fi
77103:
77104: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo_pgsql"
77105:
77106: cat >>Makefile.objects<<EOF
77107: \$(phplibdir)/pdo_pgsql.$suffix: $ext_builddir/pdo_pgsql.$suffix
77108: \$(LIBTOOL) --mode=install cp $ext_builddir/pdo_pgsql.$suffix \$(phplibdir)
77109:
77110: $ext_builddir/pdo_pgsql.$suffix: \$(shared_objects_pdo_pgsql) \$(PDO_PGSQL_SHARED_DEPENDENCIES)
77111: $link_cmd
77112:
77113: EOF
77114:
77115: ;;
77116: esac
77117:
77118: cat >>confdefs.h <<_ACEOF
77119: #define COMPILE_DL_PDO_PGSQL 1
77120: _ACEOF
77121:
77122: fi
77123: fi
77124:
77125: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
77126: PHP_PDO_PGSQL_SHARED=no
77127:
77128:
77129: case ext/pdo_pgsql in
77130: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
77131: /*) ac_srcdir=`echo "ext/pdo_pgsql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
77132: *) ac_srcdir="$abs_srcdir/ext/pdo_pgsql/"; ac_bdir="ext/pdo_pgsql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
77133: esac
77134:
77135:
77136:
77137: b_c_pre=$php_c_pre
77138: b_cxx_pre=$php_cxx_pre
77139: b_c_meta=$php_c_meta
77140: b_cxx_meta=$php_cxx_meta
77141: b_c_post=$php_c_post
77142: b_cxx_post=$php_cxx_post
77143: b_lo=$php_lo
77144:
77145:
77146: old_IFS=$IFS
77147: for ac_src in pdo_pgsql.c pgsql_driver.c pgsql_statement.c; do
77148:
77149: IFS=.
77150: set $ac_src
77151: ac_obj=$1
77152: IFS=$old_IFS
77153:
77154: PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
77155:
77156: case $ac_src in
77157: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
77158: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
77159: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
77160: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
77161: esac
77162:
77163: cat >>Makefile.objects<<EOF
77164: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
77165: $ac_comp
77166: EOF
77167: done
77168:
77169:
77170:
77171:
77172: case ext/pdo_pgsql in
77173: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
77174: /*) ac_srcdir=`echo "ext/pdo_pgsql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
77175: *) ac_srcdir="$abs_srcdir/ext/pdo_pgsql/"; ac_bdir="ext/pdo_pgsql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
77176: esac
77177:
77178:
77179:
77180: b_c_pre=$php_c_pre
77181: b_cxx_pre=$php_cxx_pre
77182: b_c_meta=$php_c_meta
77183: b_cxx_meta=$php_cxx_meta
77184: b_c_post=$php_c_post
77185: b_cxx_post=$php_cxx_post
77186: b_lo=$php_lo
77187:
77188:
77189: old_IFS=$IFS
77190: for ac_src in pdo_pgsql.c pgsql_driver.c pgsql_statement.c; do
77191:
77192: IFS=.
77193: set $ac_src
77194: ac_obj=$1
77195: IFS=$old_IFS
77196:
77197: PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo"
77198:
77199: case $ac_src in
77200: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
77201: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
77202: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
77203: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
77204: esac
77205:
77206: cat >>Makefile.objects<<EOF
77207: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
77208: $ac_comp
77209: EOF
77210: done
77211:
77212:
77213:
77214:
77215: case ext/pdo_pgsql in
77216: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
77217: /*) ac_srcdir=`echo "ext/pdo_pgsql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
77218: *) ac_srcdir="$abs_srcdir/ext/pdo_pgsql/"; ac_bdir="ext/pdo_pgsql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
77219: esac
77220:
77221:
77222:
77223: b_c_pre=$php_c_pre
77224: b_cxx_pre=$php_cxx_pre
77225: b_c_meta=$php_c_meta
77226: b_cxx_meta=$php_cxx_meta
77227: b_c_post=$php_c_post
77228: b_cxx_post=$php_cxx_post
77229: b_lo=$php_lo
77230:
77231:
77232: old_IFS=$IFS
77233: for ac_src in pdo_pgsql.c pgsql_driver.c pgsql_statement.c; do
77234:
77235: IFS=.
77236: set $ac_src
77237: ac_obj=$1
77238: IFS=$old_IFS
77239:
77240: PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo"
77241:
77242: case $ac_src in
77243: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
77244: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
77245: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
77246: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
77247: esac
77248:
77249: cat >>Makefile.objects<<EOF
77250: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
77251: $ac_comp
77252: EOF
77253: done
77254:
77255:
77256: EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_pgsql"
77257: fi
77258:
77259:
77260: BUILD_DIR="$BUILD_DIR $ext_builddir"
77261:
77262:
77263:
77264: if test "$ext_builddir" = "."; then
77265: PHP_PECL_EXTENSION=pdo_pgsql
77266:
77267: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
77268:
77269: fi
77270:
77271:
77272:
77273: am_i_shared=$PHP_PDO_PGSQL_SHARED
77274: is_it_shared=$PHP_PDO_SHARED
77275: is_it_enabled=$PHP_PDO
77276: if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
77277: as_fn_error $? "
77278: You've configured extension pdo_pgsql to build statically, but it
77279: depends on extension pdo, which you've configured to build shared.
77280: You either need to build pdo_pgsql shared or build pdo statically for the
77281: build to be successful.
77282: " "$LINENO" 5
77283: fi
77284:
77285:
77286: fi
77287:
77288:
77289:
77290: php_with_pdo_sqlite=$PHP_PDO
77291:
77292: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite 3 support for PDO" >&5
77293: $as_echo_n "checking for sqlite 3 support for PDO... " >&6; }
77294:
77295: # Check whether --with-pdo-sqlite was given.
77296: if test "${with_pdo_sqlite+set}" = set; then :
77297: withval=$with_pdo_sqlite; PHP_PDO_SQLITE=$withval
77298: else
77299:
77300: PHP_PDO_SQLITE=$PHP_PDO
77301: test "$PHP_ENABLE_ALL" && PHP_PDO_SQLITE=$PHP_ENABLE_ALL
77302:
77303: fi
77304:
77305:
77306:
77307: ext_output="yes, shared"
77308: ext_shared=yes
77309: case $PHP_PDO_SQLITE in
77310: shared,*)
77311: PHP_PDO_SQLITE=`echo "$PHP_PDO_SQLITE"|$SED 's/^shared,//'`
77312: ;;
77313: shared)
77314: PHP_PDO_SQLITE=yes
77315: ;;
77316: no)
77317: ext_output=no
77318: ext_shared=no
77319: ;;
77320: *)
77321: ext_output=yes
77322: ext_shared=no
77323: ;;
77324: esac
77325:
77326:
77327:
77328: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
77329: $as_echo "$ext_output" >&6; }
77330:
77331:
77332:
77333:
77334: if test "$PHP_PDO_SQLITE" != "no"; then
77335:
77336: if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then
77337: as_fn_error $? "PDO is not enabled! Add --enable-pdo to your configure line." "$LINENO" 5
77338: fi
77339:
77340:
77341:
77342: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5
77343: $as_echo_n "checking for PDO includes... " >&6; }
77344: if ${pdo_inc_path+:} false; then :
77345: $as_echo_n "(cached) " >&6
77346: else
77347:
77348: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5
77349: $as_echo_n "checking for PDO includes... " >&6; }
77350: if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then
77351: pdo_inc_path=$abs_srcdir/ext
77352: elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then
77353: pdo_inc_path=$abs_srcdir/ext
77354: elif test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then
77355: pdo_inc_path=$prefix/include/php/ext
77356: fi
77357:
77358: fi
77359: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pdo_inc_path" >&5
77360: $as_echo "$pdo_inc_path" >&6; }
77361: if test -n "$pdo_inc_path"; then
77362: :
77363: else
77364: as_fn_error $? "Cannot find php_pdo_driver.h." "$LINENO" 5
77365: fi
77366:
77367:
77368:
77369: php_pdo_sqlite_sources_core="pdo_sqlite.c sqlite_driver.c sqlite_statement.c"
77370:
77371: if test "$PHP_PDO_SQLITE" != "yes"; then
77372: SEARCH_PATH="$PHP_PDO_SQLITE /usr/local /usr" # you might want to change this
77373: SEARCH_FOR="/include/sqlite3.h" # you most likely want to change this
77374: if test -r $PHP_PDO_SQLITE/$SEARCH_FOR; then # path given as parameter
77375: PDO_SQLITE_DIR=$PHP_PDO_SQLITE
77376: else # search default path list
77377: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3 files in default path" >&5
77378: $as_echo_n "checking for sqlite3 files in default path... " >&6; }
77379: for i in $SEARCH_PATH ; do
77380: if test -r $i/$SEARCH_FOR; then
77381: PDO_SQLITE_DIR=$i
77382: { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $i" >&5
77383: $as_echo "found in $i" >&6; }
77384: fi
77385: done
77386: fi
77387: if test -z "$PDO_SQLITE_DIR"; then
77388: { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
77389: $as_echo "not found" >&6; }
77390: as_fn_error $? "Please reinstall the sqlite3 distribution" "$LINENO" 5
77391: fi
77392:
77393:
77394: if test "$PDO_SQLITE_DIR/include" != "/usr/include"; then
77395:
77396: if test -z "$PDO_SQLITE_DIR/include" || echo "$PDO_SQLITE_DIR/include" | grep '^/' >/dev/null ; then
77397: ai_p=$PDO_SQLITE_DIR/include
77398: else
77399:
77400: ep_dir="`echo $PDO_SQLITE_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
77401:
77402: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
77403: ai_p="$ep_realdir/`basename \"$PDO_SQLITE_DIR/include\"`"
77404: fi
77405:
77406:
77407:
77408: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
77409:
77410: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
77411: if test -n "$unique" && test "`eval $cmd`" = "" ; then
77412: eval "INCLUDEPATH$unique=set"
77413:
77414: if test ""; then
77415: INCLUDES="-I$ai_p $INCLUDES"
77416: else
77417: INCLUDES="$INCLUDES -I$ai_p"
77418: fi
77419:
77420: fi
77421:
77422: fi
77423:
77424:
77425: LIBNAME=sqlite3
77426: LIBSYMBOL=sqlite3_open
77427:
77428:
77429: save_old_LDFLAGS=$LDFLAGS
77430: ac_stuff="
77431: -L$PDO_SQLITE_DIR/$PHP_LIBDIR -lm
77432: "
77433:
77434: save_ext_shared=$ext_shared
77435: ext_shared=yes
77436:
77437: for ac_i in $ac_stuff; do
77438: case $ac_i in
77439: -pthread)
77440: if test "$ext_shared" = "yes"; then
77441: LDFLAGS="$LDFLAGS -pthread"
77442: else
77443:
77444:
77445: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
77446:
77447: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
77448: if test -n "$unique" && test "`eval $cmd`" = "" ; then
77449: eval "EXTRA_LDFLAGS$unique=set"
77450: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
77451: fi
77452:
77453: fi
77454: ;;
77455: -l*)
77456: ac_ii=`echo $ac_i|cut -c 3-`
77457:
77458:
77459: case $ac_ii in
77460: c|c_r|pthread*) ;;
77461: *)
77462: if test "$ext_shared" = "yes"; then
77463: LDFLAGS="$LDFLAGS -l$ac_ii"
77464: else
77465:
77466:
77467: case $ac_ii in
77468: c|c_r|pthread*) ;;
77469: *)
77470: LIBS="$LIBS -l$ac_ii"
77471: ;;
77472: esac
77473:
77474:
77475: fi
77476: ;;
77477: esac
77478:
77479:
77480: ;;
77481: -L*)
77482: ac_ii=`echo $ac_i|cut -c 3-`
77483:
77484: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
77485:
77486: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
77487: ai_p=$ac_ii
77488: else
77489:
77490: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
77491:
77492: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
77493: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
77494: fi
77495:
77496:
77497: if test "$ext_shared" = "yes"; then
77498: LDFLAGS="-L$ai_p $LDFLAGS"
77499: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
77500: else
77501:
77502:
77503:
77504: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
77505:
77506: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
77507: if test -n "$unique" && test "`eval $cmd`" = "" ; then
77508: eval "LIBPATH$unique=set"
77509:
77510: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
77511: LDFLAGS="$LDFLAGS -L$ai_p"
77512: PHP_RPATHS="$PHP_RPATHS $ai_p"
77513:
77514: fi
77515:
77516:
77517: fi
77518:
77519: fi
77520:
77521: ;;
77522: esac
77523: done
77524:
77525: as_ac_Lib=`$as_echo "ac_cv_lib_$LIBNAME''_$LIBSYMBOL" | $as_tr_sh`
77526: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LIBSYMBOL in -l$LIBNAME" >&5
77527: $as_echo_n "checking for $LIBSYMBOL in -l$LIBNAME... " >&6; }
77528: if eval \${$as_ac_Lib+:} false; then :
77529: $as_echo_n "(cached) " >&6
77530: else
77531: ac_check_lib_save_LIBS=$LIBS
77532: LIBS="-l$LIBNAME $LIBS"
77533: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
77534: /* end confdefs.h. */
77535:
77536: /* Override any GCC internal prototype to avoid an error.
77537: Use char because int might match the return type of a GCC
77538: builtin and then its argument prototype would still apply. */
77539: #ifdef __cplusplus
77540: extern "C"
77541: #endif
77542: char $LIBSYMBOL ();
77543: int
77544: main ()
77545: {
77546: return $LIBSYMBOL ();
77547: ;
77548: return 0;
77549: }
77550: _ACEOF
77551: if ac_fn_c_try_link "$LINENO"; then :
77552: eval "$as_ac_Lib=yes"
77553: else
77554: eval "$as_ac_Lib=no"
77555: fi
77556: rm -f core conftest.err conftest.$ac_objext \
77557: conftest$ac_exeext conftest.$ac_ext
77558: LIBS=$ac_check_lib_save_LIBS
77559: fi
77560: eval ac_res=\$$as_ac_Lib
77561: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
77562: $as_echo "$ac_res" >&6; }
77563: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
77564:
77565: LDFLAGS=$save_old_LDFLAGS
77566: ext_shared=$save_ext_shared
77567:
77568:
77569:
77570: if test "$ext_shared" = "yes"; then
77571: PDO_SQLITE_SHARED_LIBADD="-l$LIBNAME $PDO_SQLITE_SHARED_LIBADD"
77572: if test -n "$PDO_SQLITE_DIR/$PHP_LIBDIR"; then
77573:
77574: if test "$PDO_SQLITE_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PDO_SQLITE_DIR/$PHP_LIBDIR" != "/usr/lib"; then
77575:
77576: if test -z "$PDO_SQLITE_DIR/$PHP_LIBDIR" || echo "$PDO_SQLITE_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
77577: ai_p=$PDO_SQLITE_DIR/$PHP_LIBDIR
77578: else
77579:
77580: ep_dir="`echo $PDO_SQLITE_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
77581:
77582: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
77583: ai_p="$ep_realdir/`basename \"$PDO_SQLITE_DIR/$PHP_LIBDIR\"`"
77584: fi
77585:
77586:
77587: if test "$ext_shared" = "yes"; then
77588: PDO_SQLITE_SHARED_LIBADD="-L$ai_p $PDO_SQLITE_SHARED_LIBADD"
77589: test -n "$ld_runpath_switch" && PDO_SQLITE_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_SQLITE_SHARED_LIBADD"
77590: else
77591:
77592:
77593:
77594: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
77595:
77596: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
77597: if test -n "$unique" && test "`eval $cmd`" = "" ; then
77598: eval "LIBPATH$unique=set"
77599:
77600: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
77601: LDFLAGS="$LDFLAGS -L$ai_p"
77602: PHP_RPATHS="$PHP_RPATHS $ai_p"
77603:
77604: fi
77605:
77606:
77607: fi
77608:
77609: fi
77610:
77611: fi
77612: else
77613:
77614:
77615: if test -n "$PDO_SQLITE_DIR/$PHP_LIBDIR"; then
77616:
77617: if test "$PDO_SQLITE_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PDO_SQLITE_DIR/$PHP_LIBDIR" != "/usr/lib"; then
77618:
77619: if test -z "$PDO_SQLITE_DIR/$PHP_LIBDIR" || echo "$PDO_SQLITE_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
77620: ai_p=$PDO_SQLITE_DIR/$PHP_LIBDIR
77621: else
77622:
77623: ep_dir="`echo $PDO_SQLITE_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
77624:
77625: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
77626: ai_p="$ep_realdir/`basename \"$PDO_SQLITE_DIR/$PHP_LIBDIR\"`"
77627: fi
77628:
77629:
77630:
77631:
77632:
77633: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
77634:
77635: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
77636: if test -n "$unique" && test "`eval $cmd`" = "" ; then
77637: eval "LIBPATH$unique=set"
77638:
77639: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
77640: LDFLAGS="$LDFLAGS -L$ai_p"
77641: PHP_RPATHS="$PHP_RPATHS $ai_p"
77642:
77643: fi
77644:
77645:
77646:
77647: fi
77648:
77649: fi
77650:
77651:
77652: case $LIBNAME in
77653: c|c_r|pthread*) ;;
77654: *)
77655: LIBS="-l$LIBNAME $LIBS"
77656: ;;
77657: esac
77658:
77659:
77660:
77661:
77662: fi
77663:
77664:
77665:
77666: $as_echo "#define HAVE_PDO_SQLITELIB 1" >>confdefs.h
77667:
77668:
77669:
77670: else
77671:
77672: LDFLAGS=$save_old_LDFLAGS
77673: ext_shared=$save_ext_shared
77674: unset ac_cv_lib_$LIBNAME_$LIBSYMBOL
77675:
77676: as_fn_error $? "wrong sqlite lib version or lib not found" "$LINENO" 5
77677:
77678:
77679: fi
77680:
77681:
77682: save_old_LDFLAGS=$LDFLAGS
77683: ac_stuff=""
77684:
77685: save_ext_shared=$ext_shared
77686: ext_shared=yes
77687:
77688: for ac_i in $ac_stuff; do
77689: case $ac_i in
77690: -pthread)
77691: if test "$ext_shared" = "yes"; then
77692: LDFLAGS="$LDFLAGS -pthread"
77693: else
77694:
77695:
77696: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
77697:
77698: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
77699: if test -n "$unique" && test "`eval $cmd`" = "" ; then
77700: eval "EXTRA_LDFLAGS$unique=set"
77701: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
77702: fi
77703:
77704: fi
77705: ;;
77706: -l*)
77707: ac_ii=`echo $ac_i|cut -c 3-`
77708:
77709:
77710: case $ac_ii in
77711: c|c_r|pthread*) ;;
77712: *)
77713: if test "$ext_shared" = "yes"; then
77714: LDFLAGS="$LDFLAGS -l$ac_ii"
77715: else
77716:
77717:
77718: case $ac_ii in
77719: c|c_r|pthread*) ;;
77720: *)
77721: LIBS="$LIBS -l$ac_ii"
77722: ;;
77723: esac
77724:
77725:
77726: fi
77727: ;;
77728: esac
77729:
77730:
77731: ;;
77732: -L*)
77733: ac_ii=`echo $ac_i|cut -c 3-`
77734:
77735: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
77736:
77737: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
77738: ai_p=$ac_ii
77739: else
77740:
77741: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
77742:
77743: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
77744: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
77745: fi
77746:
77747:
77748: if test "$ext_shared" = "yes"; then
77749: LDFLAGS="-L$ai_p $LDFLAGS"
77750: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
77751: else
77752:
77753:
77754:
77755: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
77756:
77757: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
77758: if test -n "$unique" && test "`eval $cmd`" = "" ; then
77759: eval "LIBPATH$unique=set"
77760:
77761: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
77762: LDFLAGS="$LDFLAGS -L$ai_p"
77763: PHP_RPATHS="$PHP_RPATHS $ai_p"
77764:
77765: fi
77766:
77767:
77768: fi
77769:
77770: fi
77771:
77772: ;;
77773: esac
77774: done
77775:
77776: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_key in -lsqlite3" >&5
77777: $as_echo_n "checking for sqlite3_key in -lsqlite3... " >&6; }
77778: if ${ac_cv_lib_sqlite3_sqlite3_key+:} false; then :
77779: $as_echo_n "(cached) " >&6
77780: else
77781: ac_check_lib_save_LIBS=$LIBS
77782: LIBS="-lsqlite3 $LIBS"
77783: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
77784: /* end confdefs.h. */
77785:
77786: /* Override any GCC internal prototype to avoid an error.
77787: Use char because int might match the return type of a GCC
77788: builtin and then its argument prototype would still apply. */
77789: #ifdef __cplusplus
77790: extern "C"
77791: #endif
77792: char sqlite3_key ();
77793: int
77794: main ()
77795: {
77796: return sqlite3_key ();
77797: ;
77798: return 0;
77799: }
77800: _ACEOF
77801: if ac_fn_c_try_link "$LINENO"; then :
77802: ac_cv_lib_sqlite3_sqlite3_key=yes
77803: else
77804: ac_cv_lib_sqlite3_sqlite3_key=no
77805: fi
77806: rm -f core conftest.err conftest.$ac_objext \
77807: conftest$ac_exeext conftest.$ac_ext
77808: LIBS=$ac_check_lib_save_LIBS
77809: fi
77810: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_key" >&5
77811: $as_echo "$ac_cv_lib_sqlite3_sqlite3_key" >&6; }
77812: if test "x$ac_cv_lib_sqlite3_sqlite3_key" = xyes; then :
77813:
77814: LDFLAGS=$save_old_LDFLAGS
77815: ext_shared=$save_ext_shared
77816:
77817:
77818: $as_echo "#define HAVE_SQLITE3_KEY 1" >>confdefs.h
77819:
77820:
77821:
77822: else
77823:
77824: LDFLAGS=$save_old_LDFLAGS
77825: ext_shared=$save_ext_shared
77826: unset ac_cv_lib_sqlite3_sqlite3_key
77827:
77828:
77829: fi
77830:
77831:
77832:
77833: PHP_VAR_SUBST="$PHP_VAR_SUBST PDO_SQLITE_SHARED_LIBADD"
77834:
77835:
77836: ext_builddir=ext/pdo_sqlite
77837: ext_srcdir=$abs_srcdir/ext/pdo_sqlite
77838:
77839: ac_extra=`echo "-I$pdo_inc_path"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
77840:
77841: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
77842: PHP_PDO_SQLITE_SHARED=no
77843:
77844:
77845: case ext/pdo_sqlite in
77846: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
77847: /*) ac_srcdir=`echo "ext/pdo_sqlite"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
77848: *) ac_srcdir="$abs_srcdir/ext/pdo_sqlite/"; ac_bdir="ext/pdo_sqlite/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
77849: esac
77850:
77851:
77852:
77853: b_c_pre=$php_c_pre
77854: b_cxx_pre=$php_cxx_pre
77855: b_c_meta=$php_c_meta
77856: b_cxx_meta=$php_cxx_meta
77857: b_c_post=$php_c_post
77858: b_cxx_post=$php_cxx_post
77859: b_lo=$php_lo
77860:
77861:
77862: old_IFS=$IFS
77863: for ac_src in $php_pdo_sqlite_sources_core; do
77864:
77865: IFS=.
77866: set $ac_src
77867: ac_obj=$1
77868: IFS=$old_IFS
77869:
77870: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
77871:
77872: case $ac_src in
77873: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
77874: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
77875: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
77876: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
77877: esac
77878:
77879: cat >>Makefile.objects<<EOF
77880: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
77881: $ac_comp
77882: EOF
77883: done
77884:
77885:
77886: EXT_STATIC="$EXT_STATIC pdo_sqlite"
77887: if test "$ext_shared" != "nocli"; then
77888: EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_sqlite"
77889: fi
77890: else
77891: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
77892: PHP_PDO_SQLITE_SHARED=yes
77893:
77894: case ext/pdo_sqlite in
77895: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
77896: /*) ac_srcdir=`echo "ext/pdo_sqlite"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
77897: *) ac_srcdir="$abs_srcdir/ext/pdo_sqlite/"; ac_bdir="ext/pdo_sqlite/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
77898: esac
77899:
77900:
77901:
77902: b_c_pre=$shared_c_pre
77903: b_cxx_pre=$shared_cxx_pre
77904: b_c_meta=$shared_c_meta
77905: b_cxx_meta=$shared_cxx_meta
77906: b_c_post=$shared_c_post
77907: b_cxx_post=$shared_cxx_post
77908: b_lo=$shared_lo
77909:
77910:
77911: old_IFS=$IFS
77912: for ac_src in $php_pdo_sqlite_sources_core; do
77913:
77914: IFS=.
77915: set $ac_src
77916: ac_obj=$1
77917: IFS=$old_IFS
77918:
77919: shared_objects_pdo_sqlite="$shared_objects_pdo_sqlite $ac_bdir$ac_obj.lo"
77920:
77921: case $ac_src in
77922: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
77923: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
77924: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
77925: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
77926: esac
77927:
77928: cat >>Makefile.objects<<EOF
77929: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
77930: $ac_comp
77931: EOF
77932: done
77933:
77934: case $host_alias in
77935: *netware*)
77936:
77937: install_modules="install-modules"
77938:
77939: case $host_alias in
77940: *aix*)
77941: suffix=so
77942: 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'
77943: ;;
77944: *netware*)
77945: suffix=nlm
77946: link_cmd='$(LIBTOOL) --mode=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)'
77947: ;;
77948: *)
77949: suffix=la
77950: link_cmd='$(LIBTOOL) --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)'
77951: ;;
77952: esac
77953:
77954: if test "x" = "xyes"; then
77955: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phppdo_sqlite.$suffix"
77956: else
77957: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phppdo_sqlite.$suffix"
77958: fi
77959:
77960: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo_sqlite"
77961:
77962: cat >>Makefile.objects<<EOF
77963: \$(phplibdir)/phppdo_sqlite.$suffix: $ext_builddir/phppdo_sqlite.$suffix
77964: \$(LIBTOOL) --mode=install cp $ext_builddir/phppdo_sqlite.$suffix \$(phplibdir)
77965:
77966: $ext_builddir/phppdo_sqlite.$suffix: \$(shared_objects_pdo_sqlite) \$(PHPPDO_SQLITE_SHARED_DEPENDENCIES)
77967: $link_cmd
77968:
77969: EOF
77970:
77971: ;;
77972: *)
77973:
77974: install_modules="install-modules"
77975:
77976: case $host_alias in
77977: *aix*)
77978: suffix=so
77979: 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'
77980: ;;
77981: *netware*)
77982: suffix=nlm
77983: link_cmd='$(LIBTOOL) --mode=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)'
77984: ;;
77985: *)
77986: suffix=la
77987: link_cmd='$(LIBTOOL) --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)'
77988: ;;
77989: esac
77990:
77991: if test "x" = "xyes"; then
77992: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/pdo_sqlite.$suffix"
77993: else
77994: PHP_MODULES="$PHP_MODULES \$(phplibdir)/pdo_sqlite.$suffix"
77995: fi
77996:
77997: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo_sqlite"
77998:
77999: cat >>Makefile.objects<<EOF
78000: \$(phplibdir)/pdo_sqlite.$suffix: $ext_builddir/pdo_sqlite.$suffix
78001: \$(LIBTOOL) --mode=install cp $ext_builddir/pdo_sqlite.$suffix \$(phplibdir)
78002:
78003: $ext_builddir/pdo_sqlite.$suffix: \$(shared_objects_pdo_sqlite) \$(PDO_SQLITE_SHARED_DEPENDENCIES)
78004: $link_cmd
78005:
78006: EOF
78007:
78008: ;;
78009: esac
78010:
78011: cat >>confdefs.h <<_ACEOF
78012: #define COMPILE_DL_PDO_SQLITE 1
78013: _ACEOF
78014:
78015: fi
78016: fi
78017:
78018: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
78019: PHP_PDO_SQLITE_SHARED=no
78020:
78021:
78022: case ext/pdo_sqlite in
78023: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
78024: /*) ac_srcdir=`echo "ext/pdo_sqlite"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
78025: *) ac_srcdir="$abs_srcdir/ext/pdo_sqlite/"; ac_bdir="ext/pdo_sqlite/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
78026: esac
78027:
78028:
78029:
78030: b_c_pre=$php_c_pre
78031: b_cxx_pre=$php_cxx_pre
78032: b_c_meta=$php_c_meta
78033: b_cxx_meta=$php_cxx_meta
78034: b_c_post=$php_c_post
78035: b_cxx_post=$php_cxx_post
78036: b_lo=$php_lo
78037:
78038:
78039: old_IFS=$IFS
78040: for ac_src in $php_pdo_sqlite_sources_core; do
78041:
78042: IFS=.
78043: set $ac_src
78044: ac_obj=$1
78045: IFS=$old_IFS
78046:
78047: PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
78048:
78049: case $ac_src in
78050: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
78051: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
78052: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
78053: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
78054: esac
78055:
78056: cat >>Makefile.objects<<EOF
78057: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
78058: $ac_comp
78059: EOF
78060: done
78061:
78062:
78063:
78064:
78065: case ext/pdo_sqlite in
78066: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
78067: /*) ac_srcdir=`echo "ext/pdo_sqlite"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
78068: *) ac_srcdir="$abs_srcdir/ext/pdo_sqlite/"; ac_bdir="ext/pdo_sqlite/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
78069: esac
78070:
78071:
78072:
78073: b_c_pre=$php_c_pre
78074: b_cxx_pre=$php_cxx_pre
78075: b_c_meta=$php_c_meta
78076: b_cxx_meta=$php_cxx_meta
78077: b_c_post=$php_c_post
78078: b_cxx_post=$php_cxx_post
78079: b_lo=$php_lo
78080:
78081:
78082: old_IFS=$IFS
78083: for ac_src in $php_pdo_sqlite_sources_core; do
78084:
78085: IFS=.
78086: set $ac_src
78087: ac_obj=$1
78088: IFS=$old_IFS
78089:
78090: PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo"
78091:
78092: case $ac_src in
78093: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
78094: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
78095: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
78096: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
78097: esac
78098:
78099: cat >>Makefile.objects<<EOF
78100: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
78101: $ac_comp
78102: EOF
78103: done
78104:
78105:
78106:
78107:
78108: case ext/pdo_sqlite in
78109: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
78110: /*) ac_srcdir=`echo "ext/pdo_sqlite"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
78111: *) ac_srcdir="$abs_srcdir/ext/pdo_sqlite/"; ac_bdir="ext/pdo_sqlite/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
78112: esac
78113:
78114:
78115:
78116: b_c_pre=$php_c_pre
78117: b_cxx_pre=$php_cxx_pre
78118: b_c_meta=$php_c_meta
78119: b_cxx_meta=$php_cxx_meta
78120: b_c_post=$php_c_post
78121: b_cxx_post=$php_cxx_post
78122: b_lo=$php_lo
78123:
78124:
78125: old_IFS=$IFS
78126: for ac_src in $php_pdo_sqlite_sources_core; do
78127:
78128: IFS=.
78129: set $ac_src
78130: ac_obj=$1
78131: IFS=$old_IFS
78132:
78133: PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo"
78134:
78135: case $ac_src in
78136: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
78137: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
78138: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
78139: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
78140: esac
78141:
78142: cat >>Makefile.objects<<EOF
78143: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
78144: $ac_comp
78145: EOF
78146: done
78147:
78148:
78149: EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_sqlite"
78150: fi
78151:
78152:
78153: BUILD_DIR="$BUILD_DIR $ext_builddir"
78154:
78155:
78156:
78157: if test "$ext_builddir" = "."; then
78158: PHP_PECL_EXTENSION=pdo_sqlite
78159:
78160: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
78161:
78162: fi
78163:
78164: else
78165: # use bundled libs
78166: if test "$enable_maintainer_zts" = "yes"; then
78167: threadsafe_flags="-DSQLITE_THREADSAFE=1"
78168: else
78169: threadsafe_flags="-DSQLITE_THREADSAFE=0"
78170: fi
78171:
78172: other_flags="-DSQLITE_ENABLE_FTS3=1 -DSQLITE_CORE=1 -DSQLITE_ENABLE_COLUMN_METADATA=1"
78173:
78174: if test "$PHP_INTL" = "yes" && test "$PHP_INTL_SHARED" != "yes"; then
78175: other_flags="$other_flags -DSQLITE_ENABLE_ICU=1"
78176: fi
78177:
78178: if test "$PHP_SQLITE3" != "yes"; then
78179:
78180:
78181: case ext/sqlite3 in
78182: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
78183: /*) ac_srcdir=`echo "ext/sqlite3"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
78184: *) ac_srcdir="$abs_srcdir/ext/sqlite3/"; ac_bdir="ext/sqlite3/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
78185: esac
78186:
78187:
78188:
78189: b_c_pre=$php_c_pre
78190: b_cxx_pre=$php_cxx_pre
78191: b_c_meta=$php_c_meta
78192: b_cxx_meta=$php_cxx_meta
78193: b_c_post=$php_c_post
78194: b_cxx_post=$php_cxx_post
78195: b_lo=$php_lo
78196:
78197:
78198: old_IFS=$IFS
78199: for ac_src in libsqlite/sqlite3.c; do
78200:
78201: IFS=.
78202: set $ac_src
78203: ac_obj=$1
78204: IFS=$old_IFS
78205:
78206: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
78207:
78208: case $ac_src in
78209: *.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" ;;
78210: *.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" ;;
78211: *.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" ;;
78212: *.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" ;;
78213: esac
78214:
78215: cat >>Makefile.objects<<EOF
78216: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
78217: $ac_comp
78218: EOF
78219: done
78220:
78221:
78222: fi
78223:
78224:
78225: ext_builddir=ext/pdo_sqlite
78226: ext_srcdir=$abs_srcdir/ext/pdo_sqlite
78227:
78228: ac_extra=`echo "-DPDO_SQLITE_BUNDLED=1 $other_flags $threadsafe_flags -I$pdo_inc_path"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
78229:
78230: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
78231: PHP_PDO_SQLITE_SHARED=no
78232:
78233:
78234: case ext/pdo_sqlite in
78235: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
78236: /*) ac_srcdir=`echo "ext/pdo_sqlite"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
78237: *) ac_srcdir="$abs_srcdir/ext/pdo_sqlite/"; ac_bdir="ext/pdo_sqlite/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
78238: esac
78239:
78240:
78241:
78242: b_c_pre=$php_c_pre
78243: b_cxx_pre=$php_cxx_pre
78244: b_c_meta=$php_c_meta
78245: b_cxx_meta=$php_cxx_meta
78246: b_c_post=$php_c_post
78247: b_cxx_post=$php_cxx_post
78248: b_lo=$php_lo
78249:
78250:
78251: old_IFS=$IFS
78252: for ac_src in $php_pdo_sqlite_sources_core; do
78253:
78254: IFS=.
78255: set $ac_src
78256: ac_obj=$1
78257: IFS=$old_IFS
78258:
78259: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
78260:
78261: case $ac_src in
78262: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
78263: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
78264: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
78265: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
78266: esac
78267:
78268: cat >>Makefile.objects<<EOF
78269: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
78270: $ac_comp
78271: EOF
78272: done
78273:
78274:
78275: EXT_STATIC="$EXT_STATIC pdo_sqlite"
78276: if test "$ext_shared" != "nocli"; then
78277: EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_sqlite"
78278: fi
78279: else
78280: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
78281: PHP_PDO_SQLITE_SHARED=yes
78282:
78283: case ext/pdo_sqlite in
78284: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
78285: /*) ac_srcdir=`echo "ext/pdo_sqlite"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
78286: *) ac_srcdir="$abs_srcdir/ext/pdo_sqlite/"; ac_bdir="ext/pdo_sqlite/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
78287: esac
78288:
78289:
78290:
78291: b_c_pre=$shared_c_pre
78292: b_cxx_pre=$shared_cxx_pre
78293: b_c_meta=$shared_c_meta
78294: b_cxx_meta=$shared_cxx_meta
78295: b_c_post=$shared_c_post
78296: b_cxx_post=$shared_cxx_post
78297: b_lo=$shared_lo
78298:
78299:
78300: old_IFS=$IFS
78301: for ac_src in $php_pdo_sqlite_sources_core; do
78302:
78303: IFS=.
78304: set $ac_src
78305: ac_obj=$1
78306: IFS=$old_IFS
78307:
78308: shared_objects_pdo_sqlite="$shared_objects_pdo_sqlite $ac_bdir$ac_obj.lo"
78309:
78310: case $ac_src in
78311: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
78312: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
78313: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
78314: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
78315: esac
78316:
78317: cat >>Makefile.objects<<EOF
78318: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
78319: $ac_comp
78320: EOF
78321: done
78322:
78323: case $host_alias in
78324: *netware*)
78325:
78326: install_modules="install-modules"
78327:
78328: case $host_alias in
78329: *aix*)
78330: suffix=so
78331: 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'
78332: ;;
78333: *netware*)
78334: suffix=nlm
78335: link_cmd='$(LIBTOOL) --mode=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)'
78336: ;;
78337: *)
78338: suffix=la
78339: link_cmd='$(LIBTOOL) --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)'
78340: ;;
78341: esac
78342:
78343: if test "x" = "xyes"; then
78344: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phppdo_sqlite.$suffix"
78345: else
78346: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phppdo_sqlite.$suffix"
78347: fi
78348:
78349: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo_sqlite"
78350:
78351: cat >>Makefile.objects<<EOF
78352: \$(phplibdir)/phppdo_sqlite.$suffix: $ext_builddir/phppdo_sqlite.$suffix
78353: \$(LIBTOOL) --mode=install cp $ext_builddir/phppdo_sqlite.$suffix \$(phplibdir)
78354:
78355: $ext_builddir/phppdo_sqlite.$suffix: \$(shared_objects_pdo_sqlite) \$(PHPPDO_SQLITE_SHARED_DEPENDENCIES)
78356: $link_cmd
78357:
78358: EOF
78359:
78360: ;;
78361: *)
78362:
78363: install_modules="install-modules"
78364:
78365: case $host_alias in
78366: *aix*)
78367: suffix=so
78368: 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'
78369: ;;
78370: *netware*)
78371: suffix=nlm
78372: link_cmd='$(LIBTOOL) --mode=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)'
78373: ;;
78374: *)
78375: suffix=la
78376: link_cmd='$(LIBTOOL) --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)'
78377: ;;
78378: esac
78379:
78380: if test "x" = "xyes"; then
78381: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/pdo_sqlite.$suffix"
78382: else
78383: PHP_MODULES="$PHP_MODULES \$(phplibdir)/pdo_sqlite.$suffix"
78384: fi
78385:
78386: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo_sqlite"
78387:
78388: cat >>Makefile.objects<<EOF
78389: \$(phplibdir)/pdo_sqlite.$suffix: $ext_builddir/pdo_sqlite.$suffix
78390: \$(LIBTOOL) --mode=install cp $ext_builddir/pdo_sqlite.$suffix \$(phplibdir)
78391:
78392: $ext_builddir/pdo_sqlite.$suffix: \$(shared_objects_pdo_sqlite) \$(PDO_SQLITE_SHARED_DEPENDENCIES)
78393: $link_cmd
78394:
78395: EOF
78396:
78397: ;;
78398: esac
78399:
78400: cat >>confdefs.h <<_ACEOF
78401: #define COMPILE_DL_PDO_SQLITE 1
78402: _ACEOF
78403:
78404: fi
78405: fi
78406:
78407: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
78408: PHP_PDO_SQLITE_SHARED=no
78409:
78410:
78411: case ext/pdo_sqlite in
78412: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
78413: /*) ac_srcdir=`echo "ext/pdo_sqlite"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
78414: *) ac_srcdir="$abs_srcdir/ext/pdo_sqlite/"; ac_bdir="ext/pdo_sqlite/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
78415: esac
78416:
78417:
78418:
78419: b_c_pre=$php_c_pre
78420: b_cxx_pre=$php_cxx_pre
78421: b_c_meta=$php_c_meta
78422: b_cxx_meta=$php_cxx_meta
78423: b_c_post=$php_c_post
78424: b_cxx_post=$php_cxx_post
78425: b_lo=$php_lo
78426:
78427:
78428: old_IFS=$IFS
78429: for ac_src in $php_pdo_sqlite_sources_core; do
78430:
78431: IFS=.
78432: set $ac_src
78433: ac_obj=$1
78434: IFS=$old_IFS
78435:
78436: PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
78437:
78438: case $ac_src in
78439: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
78440: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
78441: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
78442: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
78443: esac
78444:
78445: cat >>Makefile.objects<<EOF
78446: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
78447: $ac_comp
78448: EOF
78449: done
78450:
78451:
78452:
78453:
78454: case ext/pdo_sqlite in
78455: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
78456: /*) ac_srcdir=`echo "ext/pdo_sqlite"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
78457: *) ac_srcdir="$abs_srcdir/ext/pdo_sqlite/"; ac_bdir="ext/pdo_sqlite/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
78458: esac
78459:
78460:
78461:
78462: b_c_pre=$php_c_pre
78463: b_cxx_pre=$php_cxx_pre
78464: b_c_meta=$php_c_meta
78465: b_cxx_meta=$php_cxx_meta
78466: b_c_post=$php_c_post
78467: b_cxx_post=$php_cxx_post
78468: b_lo=$php_lo
78469:
78470:
78471: old_IFS=$IFS
78472: for ac_src in $php_pdo_sqlite_sources_core; do
78473:
78474: IFS=.
78475: set $ac_src
78476: ac_obj=$1
78477: IFS=$old_IFS
78478:
78479: PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo"
78480:
78481: case $ac_src in
78482: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
78483: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
78484: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
78485: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
78486: esac
78487:
78488: cat >>Makefile.objects<<EOF
78489: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
78490: $ac_comp
78491: EOF
78492: done
78493:
78494:
78495:
78496:
78497: case ext/pdo_sqlite in
78498: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
78499: /*) ac_srcdir=`echo "ext/pdo_sqlite"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
78500: *) ac_srcdir="$abs_srcdir/ext/pdo_sqlite/"; ac_bdir="ext/pdo_sqlite/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
78501: esac
78502:
78503:
78504:
78505: b_c_pre=$php_c_pre
78506: b_cxx_pre=$php_cxx_pre
78507: b_c_meta=$php_c_meta
78508: b_cxx_meta=$php_cxx_meta
78509: b_c_post=$php_c_post
78510: b_cxx_post=$php_cxx_post
78511: b_lo=$php_lo
78512:
78513:
78514: old_IFS=$IFS
78515: for ac_src in $php_pdo_sqlite_sources_core; do
78516:
78517: IFS=.
78518: set $ac_src
78519: ac_obj=$1
78520: IFS=$old_IFS
78521:
78522: PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo"
78523:
78524: case $ac_src in
78525: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
78526: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
78527: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
78528: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
78529: esac
78530:
78531: cat >>Makefile.objects<<EOF
78532: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
78533: $ac_comp
78534: EOF
78535: done
78536:
78537:
78538: EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_sqlite"
78539: fi
78540:
78541:
78542: BUILD_DIR="$BUILD_DIR $ext_builddir"
78543:
78544:
78545:
78546: if test "$ext_builddir" = "."; then
78547: PHP_PECL_EXTENSION=pdo_sqlite
78548:
78549: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
78550:
78551: fi
78552:
78553:
78554:
78555: PHP_VAR_SUBST="$PHP_VAR_SUBST PDO_SQLITE_SHARED_LIBADD"
78556:
78557:
78558: am_i_shared=$PHP_PDO_SQLITE_SHARED
78559: is_it_shared=$PHP_SQLITE3_SHARED
78560: is_it_enabled=$PHP_SQLITE3
78561: if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
78562: as_fn_error $? "
78563: You've configured extension pdo_sqlite to build statically, but it
78564: depends on extension sqlite3, which you've configured to build shared.
78565: You either need to build pdo_sqlite shared or build sqlite3 statically for the
78566: build to be successful.
78567: " "$LINENO" 5
78568: fi
78569:
78570:
78571: if test "$abs_srcdir/ext/sqlite3/libsqlite" != "/usr/include"; then
78572:
78573: if test -z "$abs_srcdir/ext/sqlite3/libsqlite" || echo "$abs_srcdir/ext/sqlite3/libsqlite" | grep '^/' >/dev/null ; then
78574: ai_p=$abs_srcdir/ext/sqlite3/libsqlite
78575: else
78576:
78577: ep_dir="`echo $abs_srcdir/ext/sqlite3/libsqlite|$SED 's%/*[^/][^/]*/*$%%'`"
78578:
78579: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
78580: ai_p="$ep_realdir/`basename \"$abs_srcdir/ext/sqlite3/libsqlite\"`"
78581: fi
78582:
78583:
78584:
78585: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
78586:
78587: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
78588: if test -n "$unique" && test "`eval $cmd`" = "" ; then
78589: eval "INCLUDEPATH$unique=set"
78590:
78591: if test ""; then
78592: INCLUDES="-I$ai_p $INCLUDES"
78593: else
78594: INCLUDES="$INCLUDES -I$ai_p"
78595: fi
78596:
78597: fi
78598:
78599: fi
78600:
78601:
78602: for ac_func in usleep nanosleep
78603: do :
78604: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
78605: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
78606: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
78607: cat >>confdefs.h <<_ACEOF
78608: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
78609: _ACEOF
78610:
78611: fi
78612: done
78613:
78614: for ac_header in time.h
78615: do :
78616: ac_fn_c_check_header_mongrel "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
78617: if test "x$ac_cv_header_time_h" = xyes; then :
78618: cat >>confdefs.h <<_ACEOF
78619: #define HAVE_TIME_H 1
78620: _ACEOF
78621:
78622: fi
78623:
78624: done
78625:
78626: fi
78627:
78628:
78629: save_old_LDFLAGS=$LDFLAGS
78630: ac_stuff=""
78631:
78632: save_ext_shared=$ext_shared
78633: ext_shared=yes
78634:
78635: for ac_i in $ac_stuff; do
78636: case $ac_i in
78637: -pthread)
78638: if test "$ext_shared" = "yes"; then
78639: LDFLAGS="$LDFLAGS -pthread"
78640: else
78641:
78642:
78643: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
78644:
78645: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
78646: if test -n "$unique" && test "`eval $cmd`" = "" ; then
78647: eval "EXTRA_LDFLAGS$unique=set"
78648: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
78649: fi
78650:
78651: fi
78652: ;;
78653: -l*)
78654: ac_ii=`echo $ac_i|cut -c 3-`
78655:
78656:
78657: case $ac_ii in
78658: c|c_r|pthread*) ;;
78659: *)
78660: if test "$ext_shared" = "yes"; then
78661: LDFLAGS="$LDFLAGS -l$ac_ii"
78662: else
78663:
78664:
78665: case $ac_ii in
78666: c|c_r|pthread*) ;;
78667: *)
78668: LIBS="$LIBS -l$ac_ii"
78669: ;;
78670: esac
78671:
78672:
78673: fi
78674: ;;
78675: esac
78676:
78677:
78678: ;;
78679: -L*)
78680: ac_ii=`echo $ac_i|cut -c 3-`
78681:
78682: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
78683:
78684: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
78685: ai_p=$ac_ii
78686: else
78687:
78688: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
78689:
78690: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
78691: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
78692: fi
78693:
78694:
78695: if test "$ext_shared" = "yes"; then
78696: LDFLAGS="-L$ai_p $LDFLAGS"
78697: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
78698: else
78699:
78700:
78701:
78702: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
78703:
78704: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
78705: if test -n "$unique" && test "`eval $cmd`" = "" ; then
78706: eval "LIBPATH$unique=set"
78707:
78708: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
78709: LDFLAGS="$LDFLAGS -L$ai_p"
78710: PHP_RPATHS="$PHP_RPATHS $ai_p"
78711:
78712: fi
78713:
78714:
78715: fi
78716:
78717: fi
78718:
78719: ;;
78720: esac
78721: done
78722:
78723: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdatasync in -lrt" >&5
78724: $as_echo_n "checking for fdatasync in -lrt... " >&6; }
78725: if ${ac_cv_lib_rt_fdatasync+:} false; then :
78726: $as_echo_n "(cached) " >&6
78727: else
78728: ac_check_lib_save_LIBS=$LIBS
78729: LIBS="-lrt $LIBS"
78730: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
78731: /* end confdefs.h. */
78732:
78733: /* Override any GCC internal prototype to avoid an error.
78734: Use char because int might match the return type of a GCC
78735: builtin and then its argument prototype would still apply. */
78736: #ifdef __cplusplus
78737: extern "C"
78738: #endif
78739: char fdatasync ();
78740: int
78741: main ()
78742: {
78743: return fdatasync ();
78744: ;
78745: return 0;
78746: }
78747: _ACEOF
78748: if ac_fn_c_try_link "$LINENO"; then :
78749: ac_cv_lib_rt_fdatasync=yes
78750: else
78751: ac_cv_lib_rt_fdatasync=no
78752: fi
78753: rm -f core conftest.err conftest.$ac_objext \
78754: conftest$ac_exeext conftest.$ac_ext
78755: LIBS=$ac_check_lib_save_LIBS
78756: fi
78757: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_fdatasync" >&5
78758: $as_echo "$ac_cv_lib_rt_fdatasync" >&6; }
78759: if test "x$ac_cv_lib_rt_fdatasync" = xyes; then :
78760:
78761: LDFLAGS=$save_old_LDFLAGS
78762: ext_shared=$save_ext_shared
78763:
78764:
78765: case rt in
78766: c|c_r|pthread*) ;;
78767: *)
78768: if test "$ext_shared" = "yes"; then
78769: PDO_SQLITE_SHARED_LIBADD="-lrt $PDO_SQLITE_SHARED_LIBADD"
78770: else
78771:
78772:
78773: case rt in
78774: c|c_r|pthread*) ;;
78775: *)
78776: LIBS="-lrt $LIBS"
78777: ;;
78778: esac
78779:
78780:
78781: fi
78782: ;;
78783: esac
78784:
78785:
78786:
78787: else
78788:
78789: LDFLAGS=$save_old_LDFLAGS
78790: ext_shared=$save_ext_shared
78791: unset ac_cv_lib_rt_fdatasync
78792:
78793:
78794: fi
78795:
78796:
78797:
78798:
78799: am_i_shared=$PHP_PDO_SQLITE_SHARED
78800: is_it_shared=$PHP_PDO_SHARED
78801: is_it_enabled=$PHP_PDO
78802: if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
78803: as_fn_error $? "
78804: You've configured extension pdo_sqlite to build statically, but it
78805: depends on extension pdo, which you've configured to build shared.
78806: You either need to build pdo_sqlite shared or build pdo statically for the
78807: build to be successful.
78808: " "$LINENO" 5
78809: fi
78810:
78811:
78812: fi
78813:
78814:
78815:
78816: php_with_pgsql=no
78817:
78818: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support" >&5
78819: $as_echo_n "checking for PostgreSQL support... " >&6; }
78820:
78821: # Check whether --with-pgsql was given.
78822: if test "${with_pgsql+set}" = set; then :
78823: withval=$with_pgsql; PHP_PGSQL=$withval
78824: else
78825:
78826: PHP_PGSQL=no
78827: test "$PHP_ENABLE_ALL" && PHP_PGSQL=$PHP_ENABLE_ALL
78828:
78829: fi
78830:
78831:
78832:
78833: ext_output="yes, shared"
78834: ext_shared=yes
78835: case $PHP_PGSQL in
78836: shared,*)
78837: PHP_PGSQL=`echo "$PHP_PGSQL"|$SED 's/^shared,//'`
78838: ;;
78839: shared)
78840: PHP_PGSQL=yes
78841: ;;
78842: no)
78843: ext_output=no
78844: ext_shared=no
78845: ;;
78846: *)
78847: ext_output=yes
78848: ext_shared=no
78849: ;;
78850: esac
78851:
78852:
78853:
78854: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
78855: $as_echo "$ext_output" >&6; }
78856:
78857:
78858:
78859:
78860: if test "$PHP_PGSQL" != "no"; then
78861:
78862: if test -z "$PGSQL_INCLUDE" || echo "$PGSQL_INCLUDE" | grep '^/' >/dev/null ; then
78863: PGSQL_INCLUDE=$PGSQL_INCLUDE
78864: else
78865:
78866: ep_dir="`echo $PGSQL_INCLUDE|$SED 's%/*[^/][^/]*/*$%%'`"
78867:
78868: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
78869: PGSQL_INCLUDE="$ep_realdir/`basename \"$PGSQL_INCLUDE\"`"
78870: fi
78871:
78872:
78873: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pg_config" >&5
78874: $as_echo_n "checking for pg_config... " >&6; }
78875: for i in $PHP_PGSQL $PHP_PGSQL/bin /usr/local/pgsql/bin /usr/local/bin /usr/bin ""; do
78876: if test -x $i/pg_config; then
78877: PG_CONFIG="$i/pg_config"
78878: break;
78879: fi
78880: done
78881:
78882: if test -n "$PG_CONFIG"; then
78883: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5
78884: $as_echo "$PG_CONFIG" >&6; }
78885: PGSQL_INCLUDE=`$PG_CONFIG --includedir`
78886: PGSQL_LIBDIR=`$PG_CONFIG --libdir`
78887: if test -r "$PGSQL_INCLUDE/pg_config.h"; then
78888:
78889: $as_echo "#define HAVE_PG_CONFIG_H 1" >>confdefs.h
78890:
78891: fi
78892: else
78893: { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
78894: $as_echo "not found" >&6; }
78895: if test "$PHP_PGSQL" = "yes"; then
78896: PGSQL_SEARCH_PATHS="/usr /usr/local /usr/local/pgsql"
78897: else
78898: PGSQL_SEARCH_PATHS=$PHP_PGSQL
78899: fi
78900:
78901: for i in $PGSQL_SEARCH_PATHS; do
78902: for j in include include/pgsql include/postgres include/postgresql ""; do
78903: if test -r "$i/$j/libpq-fe.h"; then
78904: PGSQL_INC_BASE=$i
78905: PGSQL_INCLUDE=$i/$j
78906: if test -r "$i/$j/pg_config.h"; then
78907:
78908: $as_echo "#define HAVE_PG_CONFIG_H 1" >>confdefs.h
78909:
78910: fi
78911: fi
78912: done
78913:
78914: for j in lib $PHP_LIBDIR/pgsql $PHP_LIBDIR/postgres $PHP_LIBDIR/postgresql ""; do
78915: if test -f "$i/$j/libpq.so" || test -f "$i/$j/libpq.a"; then
78916: PGSQL_LIBDIR=$i/$j
78917: fi
78918: done
78919: done
78920: fi
78921:
78922: if test -z "$PGSQL_INCLUDE"; then
78923: as_fn_error $? "Cannot find libpq-fe.h. Please specify correct PostgreSQL installation path" "$LINENO" 5
78924: fi
78925:
78926: if test -z "$PGSQL_LIBDIR"; then
78927: as_fn_error $? "Cannot find libpq.so. Please specify correct PostgreSQL installation path" "$LINENO" 5
78928: fi
78929:
78930: if test -z "$PGSQL_INCLUDE" -a -z "$PGSQL_LIBDIR" ; then
78931: as_fn_error $? "Unable to find libpq anywhere under $PGSQL_SEARCH_PATHS" "$LINENO" 5
78932: fi
78933:
78934:
78935: $as_echo "#define HAVE_PGSQL 1" >>confdefs.h
78936:
78937: old_LIBS=$LIBS
78938: old_LDFLAGS=$LDFLAGS
78939: LDFLAGS="-L$PGSQL_LIBDIR $LDFLAGS"
78940: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQescapeString in -lpq" >&5
78941: $as_echo_n "checking for PQescapeString in -lpq... " >&6; }
78942: if ${ac_cv_lib_pq_PQescapeString+:} false; then :
78943: $as_echo_n "(cached) " >&6
78944: else
78945: ac_check_lib_save_LIBS=$LIBS
78946: LIBS="-lpq $LIBS"
78947: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
78948: /* end confdefs.h. */
78949:
78950: /* Override any GCC internal prototype to avoid an error.
78951: Use char because int might match the return type of a GCC
78952: builtin and then its argument prototype would still apply. */
78953: #ifdef __cplusplus
78954: extern "C"
78955: #endif
78956: char PQescapeString ();
78957: int
78958: main ()
78959: {
78960: return PQescapeString ();
78961: ;
78962: return 0;
78963: }
78964: _ACEOF
78965: if ac_fn_c_try_link "$LINENO"; then :
78966: ac_cv_lib_pq_PQescapeString=yes
78967: else
78968: ac_cv_lib_pq_PQescapeString=no
78969: fi
78970: rm -f core conftest.err conftest.$ac_objext \
78971: conftest$ac_exeext conftest.$ac_ext
78972: LIBS=$ac_check_lib_save_LIBS
78973: fi
78974: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQescapeString" >&5
78975: $as_echo "$ac_cv_lib_pq_PQescapeString" >&6; }
78976: if test "x$ac_cv_lib_pq_PQescapeString" = xyes; then :
78977:
78978: $as_echo "#define HAVE_PQESCAPE 1" >>confdefs.h
78979:
78980: fi
78981:
78982: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQunescapeBytea in -lpq" >&5
78983: $as_echo_n "checking for PQunescapeBytea in -lpq... " >&6; }
78984: if ${ac_cv_lib_pq_PQunescapeBytea+:} false; then :
78985: $as_echo_n "(cached) " >&6
78986: else
78987: ac_check_lib_save_LIBS=$LIBS
78988: LIBS="-lpq $LIBS"
78989: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
78990: /* end confdefs.h. */
78991:
78992: /* Override any GCC internal prototype to avoid an error.
78993: Use char because int might match the return type of a GCC
78994: builtin and then its argument prototype would still apply. */
78995: #ifdef __cplusplus
78996: extern "C"
78997: #endif
78998: char PQunescapeBytea ();
78999: int
79000: main ()
79001: {
79002: return PQunescapeBytea ();
79003: ;
79004: return 0;
79005: }
79006: _ACEOF
79007: if ac_fn_c_try_link "$LINENO"; then :
79008: ac_cv_lib_pq_PQunescapeBytea=yes
79009: else
79010: ac_cv_lib_pq_PQunescapeBytea=no
79011: fi
79012: rm -f core conftest.err conftest.$ac_objext \
79013: conftest$ac_exeext conftest.$ac_ext
79014: LIBS=$ac_check_lib_save_LIBS
79015: fi
79016: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQunescapeBytea" >&5
79017: $as_echo "$ac_cv_lib_pq_PQunescapeBytea" >&6; }
79018: if test "x$ac_cv_lib_pq_PQunescapeBytea" = xyes; then :
79019:
79020: $as_echo "#define HAVE_PQUNESCAPEBYTEA 1" >>confdefs.h
79021:
79022: fi
79023:
79024: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsetnonblocking in -lpq" >&5
79025: $as_echo_n "checking for PQsetnonblocking in -lpq... " >&6; }
79026: if ${ac_cv_lib_pq_PQsetnonblocking+:} false; then :
79027: $as_echo_n "(cached) " >&6
79028: else
79029: ac_check_lib_save_LIBS=$LIBS
79030: LIBS="-lpq $LIBS"
79031: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
79032: /* end confdefs.h. */
79033:
79034: /* Override any GCC internal prototype to avoid an error.
79035: Use char because int might match the return type of a GCC
79036: builtin and then its argument prototype would still apply. */
79037: #ifdef __cplusplus
79038: extern "C"
79039: #endif
79040: char PQsetnonblocking ();
79041: int
79042: main ()
79043: {
79044: return PQsetnonblocking ();
79045: ;
79046: return 0;
79047: }
79048: _ACEOF
79049: if ac_fn_c_try_link "$LINENO"; then :
79050: ac_cv_lib_pq_PQsetnonblocking=yes
79051: else
79052: ac_cv_lib_pq_PQsetnonblocking=no
79053: fi
79054: rm -f core conftest.err conftest.$ac_objext \
79055: conftest$ac_exeext conftest.$ac_ext
79056: LIBS=$ac_check_lib_save_LIBS
79057: fi
79058: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsetnonblocking" >&5
79059: $as_echo "$ac_cv_lib_pq_PQsetnonblocking" >&6; }
79060: if test "x$ac_cv_lib_pq_PQsetnonblocking" = xyes; then :
79061:
79062: $as_echo "#define HAVE_PQSETNONBLOCKING 1" >>confdefs.h
79063:
79064: fi
79065:
79066: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQcmdTuples in -lpq" >&5
79067: $as_echo_n "checking for PQcmdTuples in -lpq... " >&6; }
79068: if ${ac_cv_lib_pq_PQcmdTuples+:} false; then :
79069: $as_echo_n "(cached) " >&6
79070: else
79071: ac_check_lib_save_LIBS=$LIBS
79072: LIBS="-lpq $LIBS"
79073: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
79074: /* end confdefs.h. */
79075:
79076: /* Override any GCC internal prototype to avoid an error.
79077: Use char because int might match the return type of a GCC
79078: builtin and then its argument prototype would still apply. */
79079: #ifdef __cplusplus
79080: extern "C"
79081: #endif
79082: char PQcmdTuples ();
79083: int
79084: main ()
79085: {
79086: return PQcmdTuples ();
79087: ;
79088: return 0;
79089: }
79090: _ACEOF
79091: if ac_fn_c_try_link "$LINENO"; then :
79092: ac_cv_lib_pq_PQcmdTuples=yes
79093: else
79094: ac_cv_lib_pq_PQcmdTuples=no
79095: fi
79096: rm -f core conftest.err conftest.$ac_objext \
79097: conftest$ac_exeext conftest.$ac_ext
79098: LIBS=$ac_check_lib_save_LIBS
79099: fi
79100: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQcmdTuples" >&5
79101: $as_echo "$ac_cv_lib_pq_PQcmdTuples" >&6; }
79102: if test "x$ac_cv_lib_pq_PQcmdTuples" = xyes; then :
79103:
79104: $as_echo "#define HAVE_PQCMDTUPLES 1" >>confdefs.h
79105:
79106: fi
79107:
79108: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQoidValue in -lpq" >&5
79109: $as_echo_n "checking for PQoidValue in -lpq... " >&6; }
79110: if ${ac_cv_lib_pq_PQoidValue+:} false; then :
79111: $as_echo_n "(cached) " >&6
79112: else
79113: ac_check_lib_save_LIBS=$LIBS
79114: LIBS="-lpq $LIBS"
79115: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
79116: /* end confdefs.h. */
79117:
79118: /* Override any GCC internal prototype to avoid an error.
79119: Use char because int might match the return type of a GCC
79120: builtin and then its argument prototype would still apply. */
79121: #ifdef __cplusplus
79122: extern "C"
79123: #endif
79124: char PQoidValue ();
79125: int
79126: main ()
79127: {
79128: return PQoidValue ();
79129: ;
79130: return 0;
79131: }
79132: _ACEOF
79133: if ac_fn_c_try_link "$LINENO"; then :
79134: ac_cv_lib_pq_PQoidValue=yes
79135: else
79136: ac_cv_lib_pq_PQoidValue=no
79137: fi
79138: rm -f core conftest.err conftest.$ac_objext \
79139: conftest$ac_exeext conftest.$ac_ext
79140: LIBS=$ac_check_lib_save_LIBS
79141: fi
79142: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQoidValue" >&5
79143: $as_echo "$ac_cv_lib_pq_PQoidValue" >&6; }
79144: if test "x$ac_cv_lib_pq_PQoidValue" = xyes; then :
79145:
79146: $as_echo "#define HAVE_PQOIDVALUE 1" >>confdefs.h
79147:
79148: fi
79149:
79150: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQclientEncoding in -lpq" >&5
79151: $as_echo_n "checking for PQclientEncoding in -lpq... " >&6; }
79152: if ${ac_cv_lib_pq_PQclientEncoding+:} false; then :
79153: $as_echo_n "(cached) " >&6
79154: else
79155: ac_check_lib_save_LIBS=$LIBS
79156: LIBS="-lpq $LIBS"
79157: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
79158: /* end confdefs.h. */
79159:
79160: /* Override any GCC internal prototype to avoid an error.
79161: Use char because int might match the return type of a GCC
79162: builtin and then its argument prototype would still apply. */
79163: #ifdef __cplusplus
79164: extern "C"
79165: #endif
79166: char PQclientEncoding ();
79167: int
79168: main ()
79169: {
79170: return PQclientEncoding ();
79171: ;
79172: return 0;
79173: }
79174: _ACEOF
79175: if ac_fn_c_try_link "$LINENO"; then :
79176: ac_cv_lib_pq_PQclientEncoding=yes
79177: else
79178: ac_cv_lib_pq_PQclientEncoding=no
79179: fi
79180: rm -f core conftest.err conftest.$ac_objext \
79181: conftest$ac_exeext conftest.$ac_ext
79182: LIBS=$ac_check_lib_save_LIBS
79183: fi
79184: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQclientEncoding" >&5
79185: $as_echo "$ac_cv_lib_pq_PQclientEncoding" >&6; }
79186: if test "x$ac_cv_lib_pq_PQclientEncoding" = xyes; then :
79187:
79188: $as_echo "#define HAVE_PQCLIENTENCODING 1" >>confdefs.h
79189:
79190: fi
79191:
79192: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQparameterStatus in -lpq" >&5
79193: $as_echo_n "checking for PQparameterStatus in -lpq... " >&6; }
79194: if ${ac_cv_lib_pq_PQparameterStatus+:} false; then :
79195: $as_echo_n "(cached) " >&6
79196: else
79197: ac_check_lib_save_LIBS=$LIBS
79198: LIBS="-lpq $LIBS"
79199: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
79200: /* end confdefs.h. */
79201:
79202: /* Override any GCC internal prototype to avoid an error.
79203: Use char because int might match the return type of a GCC
79204: builtin and then its argument prototype would still apply. */
79205: #ifdef __cplusplus
79206: extern "C"
79207: #endif
79208: char PQparameterStatus ();
79209: int
79210: main ()
79211: {
79212: return PQparameterStatus ();
79213: ;
79214: return 0;
79215: }
79216: _ACEOF
79217: if ac_fn_c_try_link "$LINENO"; then :
79218: ac_cv_lib_pq_PQparameterStatus=yes
79219: else
79220: ac_cv_lib_pq_PQparameterStatus=no
79221: fi
79222: rm -f core conftest.err conftest.$ac_objext \
79223: conftest$ac_exeext conftest.$ac_ext
79224: LIBS=$ac_check_lib_save_LIBS
79225: fi
79226: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQparameterStatus" >&5
79227: $as_echo "$ac_cv_lib_pq_PQparameterStatus" >&6; }
79228: if test "x$ac_cv_lib_pq_PQparameterStatus" = xyes; then :
79229:
79230: $as_echo "#define HAVE_PQPARAMETERSTATUS 1" >>confdefs.h
79231:
79232: fi
79233:
79234: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQprotocolVersion in -lpq" >&5
79235: $as_echo_n "checking for PQprotocolVersion in -lpq... " >&6; }
79236: if ${ac_cv_lib_pq_PQprotocolVersion+:} false; then :
79237: $as_echo_n "(cached) " >&6
79238: else
79239: ac_check_lib_save_LIBS=$LIBS
79240: LIBS="-lpq $LIBS"
79241: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
79242: /* end confdefs.h. */
79243:
79244: /* Override any GCC internal prototype to avoid an error.
79245: Use char because int might match the return type of a GCC
79246: builtin and then its argument prototype would still apply. */
79247: #ifdef __cplusplus
79248: extern "C"
79249: #endif
79250: char PQprotocolVersion ();
79251: int
79252: main ()
79253: {
79254: return PQprotocolVersion ();
79255: ;
79256: return 0;
79257: }
79258: _ACEOF
79259: if ac_fn_c_try_link "$LINENO"; then :
79260: ac_cv_lib_pq_PQprotocolVersion=yes
79261: else
79262: ac_cv_lib_pq_PQprotocolVersion=no
79263: fi
79264: rm -f core conftest.err conftest.$ac_objext \
79265: conftest$ac_exeext conftest.$ac_ext
79266: LIBS=$ac_check_lib_save_LIBS
79267: fi
79268: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQprotocolVersion" >&5
79269: $as_echo "$ac_cv_lib_pq_PQprotocolVersion" >&6; }
79270: if test "x$ac_cv_lib_pq_PQprotocolVersion" = xyes; then :
79271:
79272: $as_echo "#define HAVE_PQPROTOCOLVERSION 1" >>confdefs.h
79273:
79274: fi
79275:
79276: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQtransactionStatus in -lpq" >&5
79277: $as_echo_n "checking for PQtransactionStatus in -lpq... " >&6; }
79278: if ${ac_cv_lib_pq_PQtransactionStatus+:} false; then :
79279: $as_echo_n "(cached) " >&6
79280: else
79281: ac_check_lib_save_LIBS=$LIBS
79282: LIBS="-lpq $LIBS"
79283: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
79284: /* end confdefs.h. */
79285:
79286: /* Override any GCC internal prototype to avoid an error.
79287: Use char because int might match the return type of a GCC
79288: builtin and then its argument prototype would still apply. */
79289: #ifdef __cplusplus
79290: extern "C"
79291: #endif
79292: char PQtransactionStatus ();
79293: int
79294: main ()
79295: {
79296: return PQtransactionStatus ();
79297: ;
79298: return 0;
79299: }
79300: _ACEOF
79301: if ac_fn_c_try_link "$LINENO"; then :
79302: ac_cv_lib_pq_PQtransactionStatus=yes
79303: else
79304: ac_cv_lib_pq_PQtransactionStatus=no
79305: fi
79306: rm -f core conftest.err conftest.$ac_objext \
79307: conftest$ac_exeext conftest.$ac_ext
79308: LIBS=$ac_check_lib_save_LIBS
79309: fi
79310: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQtransactionStatus" >&5
79311: $as_echo "$ac_cv_lib_pq_PQtransactionStatus" >&6; }
79312: if test "x$ac_cv_lib_pq_PQtransactionStatus" = xyes; then :
79313:
79314: $as_echo "#define HAVE_PGTRANSACTIONSTATUS 1" >>confdefs.h
79315:
79316: fi
79317:
79318: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQexecParams in -lpq" >&5
79319: $as_echo_n "checking for PQexecParams in -lpq... " >&6; }
79320: if ${ac_cv_lib_pq_PQexecParams+:} false; then :
79321: $as_echo_n "(cached) " >&6
79322: else
79323: ac_check_lib_save_LIBS=$LIBS
79324: LIBS="-lpq $LIBS"
79325: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
79326: /* end confdefs.h. */
79327:
79328: /* Override any GCC internal prototype to avoid an error.
79329: Use char because int might match the return type of a GCC
79330: builtin and then its argument prototype would still apply. */
79331: #ifdef __cplusplus
79332: extern "C"
79333: #endif
79334: char PQexecParams ();
79335: int
79336: main ()
79337: {
79338: return PQexecParams ();
79339: ;
79340: return 0;
79341: }
79342: _ACEOF
79343: if ac_fn_c_try_link "$LINENO"; then :
79344: ac_cv_lib_pq_PQexecParams=yes
79345: else
79346: ac_cv_lib_pq_PQexecParams=no
79347: fi
79348: rm -f core conftest.err conftest.$ac_objext \
79349: conftest$ac_exeext conftest.$ac_ext
79350: LIBS=$ac_check_lib_save_LIBS
79351: fi
79352: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQexecParams" >&5
79353: $as_echo "$ac_cv_lib_pq_PQexecParams" >&6; }
79354: if test "x$ac_cv_lib_pq_PQexecParams" = xyes; then :
79355:
79356: $as_echo "#define HAVE_PQEXECPARAMS 1" >>confdefs.h
79357:
79358: fi
79359:
79360: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQprepare in -lpq" >&5
79361: $as_echo_n "checking for PQprepare in -lpq... " >&6; }
79362: if ${ac_cv_lib_pq_PQprepare+:} false; then :
79363: $as_echo_n "(cached) " >&6
79364: else
79365: ac_check_lib_save_LIBS=$LIBS
79366: LIBS="-lpq $LIBS"
79367: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
79368: /* end confdefs.h. */
79369:
79370: /* Override any GCC internal prototype to avoid an error.
79371: Use char because int might match the return type of a GCC
79372: builtin and then its argument prototype would still apply. */
79373: #ifdef __cplusplus
79374: extern "C"
79375: #endif
79376: char PQprepare ();
79377: int
79378: main ()
79379: {
79380: return PQprepare ();
79381: ;
79382: return 0;
79383: }
79384: _ACEOF
79385: if ac_fn_c_try_link "$LINENO"; then :
79386: ac_cv_lib_pq_PQprepare=yes
79387: else
79388: ac_cv_lib_pq_PQprepare=no
79389: fi
79390: rm -f core conftest.err conftest.$ac_objext \
79391: conftest$ac_exeext conftest.$ac_ext
79392: LIBS=$ac_check_lib_save_LIBS
79393: fi
79394: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQprepare" >&5
79395: $as_echo "$ac_cv_lib_pq_PQprepare" >&6; }
79396: if test "x$ac_cv_lib_pq_PQprepare" = xyes; then :
79397:
79398: $as_echo "#define HAVE_PQPREPARE 1" >>confdefs.h
79399:
79400: fi
79401:
79402: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQexecPrepared in -lpq" >&5
79403: $as_echo_n "checking for PQexecPrepared in -lpq... " >&6; }
79404: if ${ac_cv_lib_pq_PQexecPrepared+:} false; then :
79405: $as_echo_n "(cached) " >&6
79406: else
79407: ac_check_lib_save_LIBS=$LIBS
79408: LIBS="-lpq $LIBS"
79409: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
79410: /* end confdefs.h. */
79411:
79412: /* Override any GCC internal prototype to avoid an error.
79413: Use char because int might match the return type of a GCC
79414: builtin and then its argument prototype would still apply. */
79415: #ifdef __cplusplus
79416: extern "C"
79417: #endif
79418: char PQexecPrepared ();
79419: int
79420: main ()
79421: {
79422: return PQexecPrepared ();
79423: ;
79424: return 0;
79425: }
79426: _ACEOF
79427: if ac_fn_c_try_link "$LINENO"; then :
79428: ac_cv_lib_pq_PQexecPrepared=yes
79429: else
79430: ac_cv_lib_pq_PQexecPrepared=no
79431: fi
79432: rm -f core conftest.err conftest.$ac_objext \
79433: conftest$ac_exeext conftest.$ac_ext
79434: LIBS=$ac_check_lib_save_LIBS
79435: fi
79436: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQexecPrepared" >&5
79437: $as_echo "$ac_cv_lib_pq_PQexecPrepared" >&6; }
79438: if test "x$ac_cv_lib_pq_PQexecPrepared" = xyes; then :
79439:
79440: $as_echo "#define HAVE_PQEXECPREPARED 1" >>confdefs.h
79441:
79442: fi
79443:
79444: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQresultErrorField in -lpq" >&5
79445: $as_echo_n "checking for PQresultErrorField in -lpq... " >&6; }
79446: if ${ac_cv_lib_pq_PQresultErrorField+:} false; then :
79447: $as_echo_n "(cached) " >&6
79448: else
79449: ac_check_lib_save_LIBS=$LIBS
79450: LIBS="-lpq $LIBS"
79451: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
79452: /* end confdefs.h. */
79453:
79454: /* Override any GCC internal prototype to avoid an error.
79455: Use char because int might match the return type of a GCC
79456: builtin and then its argument prototype would still apply. */
79457: #ifdef __cplusplus
79458: extern "C"
79459: #endif
79460: char PQresultErrorField ();
79461: int
79462: main ()
79463: {
79464: return PQresultErrorField ();
79465: ;
79466: return 0;
79467: }
79468: _ACEOF
79469: if ac_fn_c_try_link "$LINENO"; then :
79470: ac_cv_lib_pq_PQresultErrorField=yes
79471: else
79472: ac_cv_lib_pq_PQresultErrorField=no
79473: fi
79474: rm -f core conftest.err conftest.$ac_objext \
79475: conftest$ac_exeext conftest.$ac_ext
79476: LIBS=$ac_check_lib_save_LIBS
79477: fi
79478: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQresultErrorField" >&5
79479: $as_echo "$ac_cv_lib_pq_PQresultErrorField" >&6; }
79480: if test "x$ac_cv_lib_pq_PQresultErrorField" = xyes; then :
79481:
79482: $as_echo "#define HAVE_PQRESULTERRORFIELD 1" >>confdefs.h
79483:
79484: fi
79485:
79486: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsendQueryParams in -lpq" >&5
79487: $as_echo_n "checking for PQsendQueryParams in -lpq... " >&6; }
79488: if ${ac_cv_lib_pq_PQsendQueryParams+:} false; then :
79489: $as_echo_n "(cached) " >&6
79490: else
79491: ac_check_lib_save_LIBS=$LIBS
79492: LIBS="-lpq $LIBS"
79493: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
79494: /* end confdefs.h. */
79495:
79496: /* Override any GCC internal prototype to avoid an error.
79497: Use char because int might match the return type of a GCC
79498: builtin and then its argument prototype would still apply. */
79499: #ifdef __cplusplus
79500: extern "C"
79501: #endif
79502: char PQsendQueryParams ();
79503: int
79504: main ()
79505: {
79506: return PQsendQueryParams ();
79507: ;
79508: return 0;
79509: }
79510: _ACEOF
79511: if ac_fn_c_try_link "$LINENO"; then :
79512: ac_cv_lib_pq_PQsendQueryParams=yes
79513: else
79514: ac_cv_lib_pq_PQsendQueryParams=no
79515: fi
79516: rm -f core conftest.err conftest.$ac_objext \
79517: conftest$ac_exeext conftest.$ac_ext
79518: LIBS=$ac_check_lib_save_LIBS
79519: fi
79520: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsendQueryParams" >&5
79521: $as_echo "$ac_cv_lib_pq_PQsendQueryParams" >&6; }
79522: if test "x$ac_cv_lib_pq_PQsendQueryParams" = xyes; then :
79523:
79524: $as_echo "#define HAVE_PQSENDQUERYPARAMS 1" >>confdefs.h
79525:
79526: fi
79527:
79528: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsendPrepare in -lpq" >&5
79529: $as_echo_n "checking for PQsendPrepare in -lpq... " >&6; }
79530: if ${ac_cv_lib_pq_PQsendPrepare+:} false; then :
79531: $as_echo_n "(cached) " >&6
79532: else
79533: ac_check_lib_save_LIBS=$LIBS
79534: LIBS="-lpq $LIBS"
79535: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
79536: /* end confdefs.h. */
79537:
79538: /* Override any GCC internal prototype to avoid an error.
79539: Use char because int might match the return type of a GCC
79540: builtin and then its argument prototype would still apply. */
79541: #ifdef __cplusplus
79542: extern "C"
79543: #endif
79544: char PQsendPrepare ();
79545: int
79546: main ()
79547: {
79548: return PQsendPrepare ();
79549: ;
79550: return 0;
79551: }
79552: _ACEOF
79553: if ac_fn_c_try_link "$LINENO"; then :
79554: ac_cv_lib_pq_PQsendPrepare=yes
79555: else
79556: ac_cv_lib_pq_PQsendPrepare=no
79557: fi
79558: rm -f core conftest.err conftest.$ac_objext \
79559: conftest$ac_exeext conftest.$ac_ext
79560: LIBS=$ac_check_lib_save_LIBS
79561: fi
79562: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsendPrepare" >&5
79563: $as_echo "$ac_cv_lib_pq_PQsendPrepare" >&6; }
79564: if test "x$ac_cv_lib_pq_PQsendPrepare" = xyes; then :
79565:
79566: $as_echo "#define HAVE_PQSENDPREPARE 1" >>confdefs.h
79567:
79568: fi
79569:
79570: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsendQueryPrepared in -lpq" >&5
79571: $as_echo_n "checking for PQsendQueryPrepared in -lpq... " >&6; }
79572: if ${ac_cv_lib_pq_PQsendQueryPrepared+:} false; then :
79573: $as_echo_n "(cached) " >&6
79574: else
79575: ac_check_lib_save_LIBS=$LIBS
79576: LIBS="-lpq $LIBS"
79577: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
79578: /* end confdefs.h. */
79579:
79580: /* Override any GCC internal prototype to avoid an error.
79581: Use char because int might match the return type of a GCC
79582: builtin and then its argument prototype would still apply. */
79583: #ifdef __cplusplus
79584: extern "C"
79585: #endif
79586: char PQsendQueryPrepared ();
79587: int
79588: main ()
79589: {
79590: return PQsendQueryPrepared ();
79591: ;
79592: return 0;
79593: }
79594: _ACEOF
79595: if ac_fn_c_try_link "$LINENO"; then :
79596: ac_cv_lib_pq_PQsendQueryPrepared=yes
79597: else
79598: ac_cv_lib_pq_PQsendQueryPrepared=no
79599: fi
79600: rm -f core conftest.err conftest.$ac_objext \
79601: conftest$ac_exeext conftest.$ac_ext
79602: LIBS=$ac_check_lib_save_LIBS
79603: fi
79604: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsendQueryPrepared" >&5
79605: $as_echo "$ac_cv_lib_pq_PQsendQueryPrepared" >&6; }
79606: if test "x$ac_cv_lib_pq_PQsendQueryPrepared" = xyes; then :
79607:
79608: $as_echo "#define HAVE_PQSENDQUERYPREPARED 1" >>confdefs.h
79609:
79610: fi
79611:
79612: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
79613: $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
79614: if ${ac_cv_lib_pq_PQputCopyData+:} false; then :
79615: $as_echo_n "(cached) " >&6
79616: else
79617: ac_check_lib_save_LIBS=$LIBS
79618: LIBS="-lpq $LIBS"
79619: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
79620: /* end confdefs.h. */
79621:
79622: /* Override any GCC internal prototype to avoid an error.
79623: Use char because int might match the return type of a GCC
79624: builtin and then its argument prototype would still apply. */
79625: #ifdef __cplusplus
79626: extern "C"
79627: #endif
79628: char PQputCopyData ();
79629: int
79630: main ()
79631: {
79632: return PQputCopyData ();
79633: ;
79634: return 0;
79635: }
79636: _ACEOF
79637: if ac_fn_c_try_link "$LINENO"; then :
79638: ac_cv_lib_pq_PQputCopyData=yes
79639: else
79640: ac_cv_lib_pq_PQputCopyData=no
79641: fi
79642: rm -f core conftest.err conftest.$ac_objext \
79643: conftest$ac_exeext conftest.$ac_ext
79644: LIBS=$ac_check_lib_save_LIBS
79645: fi
79646: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
79647: $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
79648: if test "x$ac_cv_lib_pq_PQputCopyData" = xyes; then :
79649:
79650: $as_echo "#define HAVE_PQPUTCOPYDATA 1" >>confdefs.h
79651:
79652: fi
79653:
79654: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyEnd in -lpq" >&5
79655: $as_echo_n "checking for PQputCopyEnd in -lpq... " >&6; }
79656: if ${ac_cv_lib_pq_PQputCopyEnd+:} false; then :
79657: $as_echo_n "(cached) " >&6
79658: else
79659: ac_check_lib_save_LIBS=$LIBS
79660: LIBS="-lpq $LIBS"
79661: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
79662: /* end confdefs.h. */
79663:
79664: /* Override any GCC internal prototype to avoid an error.
79665: Use char because int might match the return type of a GCC
79666: builtin and then its argument prototype would still apply. */
79667: #ifdef __cplusplus
79668: extern "C"
79669: #endif
79670: char PQputCopyEnd ();
79671: int
79672: main ()
79673: {
79674: return PQputCopyEnd ();
79675: ;
79676: return 0;
79677: }
79678: _ACEOF
79679: if ac_fn_c_try_link "$LINENO"; then :
79680: ac_cv_lib_pq_PQputCopyEnd=yes
79681: else
79682: ac_cv_lib_pq_PQputCopyEnd=no
79683: fi
79684: rm -f core conftest.err conftest.$ac_objext \
79685: conftest$ac_exeext conftest.$ac_ext
79686: LIBS=$ac_check_lib_save_LIBS
79687: fi
79688: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyEnd" >&5
79689: $as_echo "$ac_cv_lib_pq_PQputCopyEnd" >&6; }
79690: if test "x$ac_cv_lib_pq_PQputCopyEnd" = xyes; then :
79691:
79692: $as_echo "#define HAVE_PQPUTCOPYEND 1" >>confdefs.h
79693:
79694: fi
79695:
79696: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQgetCopyData in -lpq" >&5
79697: $as_echo_n "checking for PQgetCopyData in -lpq... " >&6; }
79698: if ${ac_cv_lib_pq_PQgetCopyData+:} false; then :
79699: $as_echo_n "(cached) " >&6
79700: else
79701: ac_check_lib_save_LIBS=$LIBS
79702: LIBS="-lpq $LIBS"
79703: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
79704: /* end confdefs.h. */
79705:
79706: /* Override any GCC internal prototype to avoid an error.
79707: Use char because int might match the return type of a GCC
79708: builtin and then its argument prototype would still apply. */
79709: #ifdef __cplusplus
79710: extern "C"
79711: #endif
79712: char PQgetCopyData ();
79713: int
79714: main ()
79715: {
79716: return PQgetCopyData ();
79717: ;
79718: return 0;
79719: }
79720: _ACEOF
79721: if ac_fn_c_try_link "$LINENO"; then :
79722: ac_cv_lib_pq_PQgetCopyData=yes
79723: else
79724: ac_cv_lib_pq_PQgetCopyData=no
79725: fi
79726: rm -f core conftest.err conftest.$ac_objext \
79727: conftest$ac_exeext conftest.$ac_ext
79728: LIBS=$ac_check_lib_save_LIBS
79729: fi
79730: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQgetCopyData" >&5
79731: $as_echo "$ac_cv_lib_pq_PQgetCopyData" >&6; }
79732: if test "x$ac_cv_lib_pq_PQgetCopyData" = xyes; then :
79733:
79734: $as_echo "#define HAVE_PQGETCOPYDATA 1" >>confdefs.h
79735:
79736: fi
79737:
79738: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQfreemem in -lpq" >&5
79739: $as_echo_n "checking for PQfreemem in -lpq... " >&6; }
79740: if ${ac_cv_lib_pq_PQfreemem+:} false; then :
79741: $as_echo_n "(cached) " >&6
79742: else
79743: ac_check_lib_save_LIBS=$LIBS
79744: LIBS="-lpq $LIBS"
79745: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
79746: /* end confdefs.h. */
79747:
79748: /* Override any GCC internal prototype to avoid an error.
79749: Use char because int might match the return type of a GCC
79750: builtin and then its argument prototype would still apply. */
79751: #ifdef __cplusplus
79752: extern "C"
79753: #endif
79754: char PQfreemem ();
79755: int
79756: main ()
79757: {
79758: return PQfreemem ();
79759: ;
79760: return 0;
79761: }
79762: _ACEOF
79763: if ac_fn_c_try_link "$LINENO"; then :
79764: ac_cv_lib_pq_PQfreemem=yes
79765: else
79766: ac_cv_lib_pq_PQfreemem=no
79767: fi
79768: rm -f core conftest.err conftest.$ac_objext \
79769: conftest$ac_exeext conftest.$ac_ext
79770: LIBS=$ac_check_lib_save_LIBS
79771: fi
79772: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQfreemem" >&5
79773: $as_echo "$ac_cv_lib_pq_PQfreemem" >&6; }
79774: if test "x$ac_cv_lib_pq_PQfreemem" = xyes; then :
79775:
79776: $as_echo "#define HAVE_PQFREEMEM 1" >>confdefs.h
79777:
79778: fi
79779:
79780: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsetErrorVerbosity in -lpq" >&5
79781: $as_echo_n "checking for PQsetErrorVerbosity in -lpq... " >&6; }
79782: if ${ac_cv_lib_pq_PQsetErrorVerbosity+:} false; then :
79783: $as_echo_n "(cached) " >&6
79784: else
79785: ac_check_lib_save_LIBS=$LIBS
79786: LIBS="-lpq $LIBS"
79787: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
79788: /* end confdefs.h. */
79789:
79790: /* Override any GCC internal prototype to avoid an error.
79791: Use char because int might match the return type of a GCC
79792: builtin and then its argument prototype would still apply. */
79793: #ifdef __cplusplus
79794: extern "C"
79795: #endif
79796: char PQsetErrorVerbosity ();
79797: int
79798: main ()
79799: {
79800: return PQsetErrorVerbosity ();
79801: ;
79802: return 0;
79803: }
79804: _ACEOF
79805: if ac_fn_c_try_link "$LINENO"; then :
79806: ac_cv_lib_pq_PQsetErrorVerbosity=yes
79807: else
79808: ac_cv_lib_pq_PQsetErrorVerbosity=no
79809: fi
79810: rm -f core conftest.err conftest.$ac_objext \
79811: conftest$ac_exeext conftest.$ac_ext
79812: LIBS=$ac_check_lib_save_LIBS
79813: fi
79814: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsetErrorVerbosity" >&5
79815: $as_echo "$ac_cv_lib_pq_PQsetErrorVerbosity" >&6; }
79816: if test "x$ac_cv_lib_pq_PQsetErrorVerbosity" = xyes; then :
79817:
79818: $as_echo "#define HAVE_PQSETERRORVERBOSITY 1" >>confdefs.h
79819:
79820: fi
79821:
79822: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQftable in -lpq" >&5
79823: $as_echo_n "checking for PQftable in -lpq... " >&6; }
79824: if ${ac_cv_lib_pq_PQftable+:} false; then :
79825: $as_echo_n "(cached) " >&6
79826: else
79827: ac_check_lib_save_LIBS=$LIBS
79828: LIBS="-lpq $LIBS"
79829: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
79830: /* end confdefs.h. */
79831:
79832: /* Override any GCC internal prototype to avoid an error.
79833: Use char because int might match the return type of a GCC
79834: builtin and then its argument prototype would still apply. */
79835: #ifdef __cplusplus
79836: extern "C"
79837: #endif
79838: char PQftable ();
79839: int
79840: main ()
79841: {
79842: return PQftable ();
79843: ;
79844: return 0;
79845: }
79846: _ACEOF
79847: if ac_fn_c_try_link "$LINENO"; then :
79848: ac_cv_lib_pq_PQftable=yes
79849: else
79850: ac_cv_lib_pq_PQftable=no
79851: fi
79852: rm -f core conftest.err conftest.$ac_objext \
79853: conftest$ac_exeext conftest.$ac_ext
79854: LIBS=$ac_check_lib_save_LIBS
79855: fi
79856: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQftable" >&5
79857: $as_echo "$ac_cv_lib_pq_PQftable" >&6; }
79858: if test "x$ac_cv_lib_pq_PQftable" = xyes; then :
79859:
79860: $as_echo "#define HAVE_PQFTABLE 1" >>confdefs.h
79861:
79862: fi
79863:
79864: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQescapeStringConn in -lpq" >&5
79865: $as_echo_n "checking for PQescapeStringConn in -lpq... " >&6; }
79866: if ${ac_cv_lib_pq_PQescapeStringConn+:} false; then :
79867: $as_echo_n "(cached) " >&6
79868: else
79869: ac_check_lib_save_LIBS=$LIBS
79870: LIBS="-lpq $LIBS"
79871: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
79872: /* end confdefs.h. */
79873:
79874: /* Override any GCC internal prototype to avoid an error.
79875: Use char because int might match the return type of a GCC
79876: builtin and then its argument prototype would still apply. */
79877: #ifdef __cplusplus
79878: extern "C"
79879: #endif
79880: char PQescapeStringConn ();
79881: int
79882: main ()
79883: {
79884: return PQescapeStringConn ();
79885: ;
79886: return 0;
79887: }
79888: _ACEOF
79889: if ac_fn_c_try_link "$LINENO"; then :
79890: ac_cv_lib_pq_PQescapeStringConn=yes
79891: else
79892: ac_cv_lib_pq_PQescapeStringConn=no
79893: fi
79894: rm -f core conftest.err conftest.$ac_objext \
79895: conftest$ac_exeext conftest.$ac_ext
79896: LIBS=$ac_check_lib_save_LIBS
79897: fi
79898: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQescapeStringConn" >&5
79899: $as_echo "$ac_cv_lib_pq_PQescapeStringConn" >&6; }
79900: if test "x$ac_cv_lib_pq_PQescapeStringConn" = xyes; then :
79901:
79902: $as_echo "#define HAVE_PQESCAPE_CONN 1" >>confdefs.h
79903:
79904: fi
79905:
79906: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQescapeByteaConn in -lpq" >&5
79907: $as_echo_n "checking for PQescapeByteaConn in -lpq... " >&6; }
79908: if ${ac_cv_lib_pq_PQescapeByteaConn+:} false; then :
79909: $as_echo_n "(cached) " >&6
79910: else
79911: ac_check_lib_save_LIBS=$LIBS
79912: LIBS="-lpq $LIBS"
79913: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
79914: /* end confdefs.h. */
79915:
79916: /* Override any GCC internal prototype to avoid an error.
79917: Use char because int might match the return type of a GCC
79918: builtin and then its argument prototype would still apply. */
79919: #ifdef __cplusplus
79920: extern "C"
79921: #endif
79922: char PQescapeByteaConn ();
79923: int
79924: main ()
79925: {
79926: return PQescapeByteaConn ();
79927: ;
79928: return 0;
79929: }
79930: _ACEOF
79931: if ac_fn_c_try_link "$LINENO"; then :
79932: ac_cv_lib_pq_PQescapeByteaConn=yes
79933: else
79934: ac_cv_lib_pq_PQescapeByteaConn=no
79935: fi
79936: rm -f core conftest.err conftest.$ac_objext \
79937: conftest$ac_exeext conftest.$ac_ext
79938: LIBS=$ac_check_lib_save_LIBS
79939: fi
79940: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQescapeByteaConn" >&5
79941: $as_echo "$ac_cv_lib_pq_PQescapeByteaConn" >&6; }
79942: if test "x$ac_cv_lib_pq_PQescapeByteaConn" = xyes; then :
79943:
79944: $as_echo "#define HAVE_PQESCAPE_BYTEA_CONN 1" >>confdefs.h
79945:
79946: fi
79947:
79948: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pg_encoding_to_char in -lpq" >&5
79949: $as_echo_n "checking for pg_encoding_to_char in -lpq... " >&6; }
79950: if ${ac_cv_lib_pq_pg_encoding_to_char+:} false; then :
79951: $as_echo_n "(cached) " >&6
79952: else
79953: ac_check_lib_save_LIBS=$LIBS
79954: LIBS="-lpq $LIBS"
79955: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
79956: /* end confdefs.h. */
79957:
79958: /* Override any GCC internal prototype to avoid an error.
79959: Use char because int might match the return type of a GCC
79960: builtin and then its argument prototype would still apply. */
79961: #ifdef __cplusplus
79962: extern "C"
79963: #endif
79964: char pg_encoding_to_char ();
79965: int
79966: main ()
79967: {
79968: return pg_encoding_to_char ();
79969: ;
79970: return 0;
79971: }
79972: _ACEOF
79973: if ac_fn_c_try_link "$LINENO"; then :
79974: ac_cv_lib_pq_pg_encoding_to_char=yes
79975: else
79976: ac_cv_lib_pq_pg_encoding_to_char=no
79977: fi
79978: rm -f core conftest.err conftest.$ac_objext \
79979: conftest$ac_exeext conftest.$ac_ext
79980: LIBS=$ac_check_lib_save_LIBS
79981: fi
79982: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_pg_encoding_to_char" >&5
79983: $as_echo "$ac_cv_lib_pq_pg_encoding_to_char" >&6; }
79984: if test "x$ac_cv_lib_pq_pg_encoding_to_char" = xyes; then :
79985:
79986: $as_echo "#define HAVE_PGSQL_WITH_MULTIBYTE_SUPPORT 1" >>confdefs.h
79987:
79988: fi
79989:
79990: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lo_create in -lpq" >&5
79991: $as_echo_n "checking for lo_create in -lpq... " >&6; }
79992: if ${ac_cv_lib_pq_lo_create+:} false; then :
79993: $as_echo_n "(cached) " >&6
79994: else
79995: ac_check_lib_save_LIBS=$LIBS
79996: LIBS="-lpq $LIBS"
79997: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
79998: /* end confdefs.h. */
79999:
80000: /* Override any GCC internal prototype to avoid an error.
80001: Use char because int might match the return type of a GCC
80002: builtin and then its argument prototype would still apply. */
80003: #ifdef __cplusplus
80004: extern "C"
80005: #endif
80006: char lo_create ();
80007: int
80008: main ()
80009: {
80010: return lo_create ();
80011: ;
80012: return 0;
80013: }
80014: _ACEOF
80015: if ac_fn_c_try_link "$LINENO"; then :
80016: ac_cv_lib_pq_lo_create=yes
80017: else
80018: ac_cv_lib_pq_lo_create=no
80019: fi
80020: rm -f core conftest.err conftest.$ac_objext \
80021: conftest$ac_exeext conftest.$ac_ext
80022: LIBS=$ac_check_lib_save_LIBS
80023: fi
80024: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_lo_create" >&5
80025: $as_echo "$ac_cv_lib_pq_lo_create" >&6; }
80026: if test "x$ac_cv_lib_pq_lo_create" = xyes; then :
80027:
80028: $as_echo "#define HAVE_PG_LO_CREATE 1" >>confdefs.h
80029:
80030: fi
80031:
80032: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lo_import_with_oid in -lpq" >&5
80033: $as_echo_n "checking for lo_import_with_oid in -lpq... " >&6; }
80034: if ${ac_cv_lib_pq_lo_import_with_oid+:} false; then :
80035: $as_echo_n "(cached) " >&6
80036: else
80037: ac_check_lib_save_LIBS=$LIBS
80038: LIBS="-lpq $LIBS"
80039: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
80040: /* end confdefs.h. */
80041:
80042: /* Override any GCC internal prototype to avoid an error.
80043: Use char because int might match the return type of a GCC
80044: builtin and then its argument prototype would still apply. */
80045: #ifdef __cplusplus
80046: extern "C"
80047: #endif
80048: char lo_import_with_oid ();
80049: int
80050: main ()
80051: {
80052: return lo_import_with_oid ();
80053: ;
80054: return 0;
80055: }
80056: _ACEOF
80057: if ac_fn_c_try_link "$LINENO"; then :
80058: ac_cv_lib_pq_lo_import_with_oid=yes
80059: else
80060: ac_cv_lib_pq_lo_import_with_oid=no
80061: fi
80062: rm -f core conftest.err conftest.$ac_objext \
80063: conftest$ac_exeext conftest.$ac_ext
80064: LIBS=$ac_check_lib_save_LIBS
80065: fi
80066: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_lo_import_with_oid" >&5
80067: $as_echo "$ac_cv_lib_pq_lo_import_with_oid" >&6; }
80068: if test "x$ac_cv_lib_pq_lo_import_with_oid" = xyes; then :
80069:
80070: $as_echo "#define HAVE_PG_LO_IMPORT_WITH_OID 1" >>confdefs.h
80071:
80072: fi
80073:
80074: LIBS=$old_LIBS
80075: LDFLAGS=$old_LDFLAGS
80076:
80077:
80078:
80079: if test "$ext_shared" = "yes"; then
80080: PGSQL_SHARED_LIBADD="-lpq $PGSQL_SHARED_LIBADD"
80081: if test -n "$PGSQL_LIBDIR"; then
80082:
80083: if test "$PGSQL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PGSQL_LIBDIR" != "/usr/lib"; then
80084:
80085: if test -z "$PGSQL_LIBDIR" || echo "$PGSQL_LIBDIR" | grep '^/' >/dev/null ; then
80086: ai_p=$PGSQL_LIBDIR
80087: else
80088:
80089: ep_dir="`echo $PGSQL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
80090:
80091: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
80092: ai_p="$ep_realdir/`basename \"$PGSQL_LIBDIR\"`"
80093: fi
80094:
80095:
80096: if test "$ext_shared" = "yes"; then
80097: PGSQL_SHARED_LIBADD="-L$ai_p $PGSQL_SHARED_LIBADD"
80098: test -n "$ld_runpath_switch" && PGSQL_SHARED_LIBADD="$ld_runpath_switch$ai_p $PGSQL_SHARED_LIBADD"
80099: else
80100:
80101:
80102:
80103: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
80104:
80105: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
80106: if test -n "$unique" && test "`eval $cmd`" = "" ; then
80107: eval "LIBPATH$unique=set"
80108:
80109: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
80110: LDFLAGS="$LDFLAGS -L$ai_p"
80111: PHP_RPATHS="$PHP_RPATHS $ai_p"
80112:
80113: fi
80114:
80115:
80116: fi
80117:
80118: fi
80119:
80120: fi
80121: else
80122:
80123:
80124: if test -n "$PGSQL_LIBDIR"; then
80125:
80126: if test "$PGSQL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PGSQL_LIBDIR" != "/usr/lib"; then
80127:
80128: if test -z "$PGSQL_LIBDIR" || echo "$PGSQL_LIBDIR" | grep '^/' >/dev/null ; then
80129: ai_p=$PGSQL_LIBDIR
80130: else
80131:
80132: ep_dir="`echo $PGSQL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
80133:
80134: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
80135: ai_p="$ep_realdir/`basename \"$PGSQL_LIBDIR\"`"
80136: fi
80137:
80138:
80139:
80140:
80141:
80142: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
80143:
80144: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
80145: if test -n "$unique" && test "`eval $cmd`" = "" ; then
80146: eval "LIBPATH$unique=set"
80147:
80148: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
80149: LDFLAGS="$LDFLAGS -L$ai_p"
80150: PHP_RPATHS="$PHP_RPATHS $ai_p"
80151:
80152: fi
80153:
80154:
80155:
80156: fi
80157:
80158: fi
80159:
80160:
80161: case pq in
80162: c|c_r|pthread*) ;;
80163: *)
80164: LIBS="-lpq $LIBS"
80165: ;;
80166: esac
80167:
80168:
80169:
80170:
80171: fi
80172:
80173:
80174:
80175: PHP_VAR_SUBST="$PHP_VAR_SUBST PGSQL_SHARED_LIBADD"
80176:
80177:
80178:
80179: if test "$PGSQL_INCLUDE" != "/usr/include"; then
80180:
80181: if test -z "$PGSQL_INCLUDE" || echo "$PGSQL_INCLUDE" | grep '^/' >/dev/null ; then
80182: ai_p=$PGSQL_INCLUDE
80183: else
80184:
80185: ep_dir="`echo $PGSQL_INCLUDE|$SED 's%/*[^/][^/]*/*$%%'`"
80186:
80187: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
80188: ai_p="$ep_realdir/`basename \"$PGSQL_INCLUDE\"`"
80189: fi
80190:
80191:
80192:
80193: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
80194:
80195: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
80196: if test -n "$unique" && test "`eval $cmd`" = "" ; then
80197: eval "INCLUDEPATH$unique=set"
80198:
80199: if test ""; then
80200: INCLUDES="-I$ai_p $INCLUDES"
80201: else
80202: INCLUDES="$INCLUDES -I$ai_p"
80203: fi
80204:
80205: fi
80206:
80207: fi
80208:
80209:
80210:
80211: ext_builddir=ext/pgsql
80212: ext_srcdir=$abs_srcdir/ext/pgsql
80213:
80214: ac_extra=
80215:
80216: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
80217: PHP_PGSQL_SHARED=no
80218:
80219:
80220: case ext/pgsql in
80221: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
80222: /*) ac_srcdir=`echo "ext/pgsql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
80223: *) ac_srcdir="$abs_srcdir/ext/pgsql/"; ac_bdir="ext/pgsql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
80224: esac
80225:
80226:
80227:
80228: b_c_pre=$php_c_pre
80229: b_cxx_pre=$php_cxx_pre
80230: b_c_meta=$php_c_meta
80231: b_cxx_meta=$php_cxx_meta
80232: b_c_post=$php_c_post
80233: b_cxx_post=$php_cxx_post
80234: b_lo=$php_lo
80235:
80236:
80237: old_IFS=$IFS
80238: for ac_src in pgsql.c; do
80239:
80240: IFS=.
80241: set $ac_src
80242: ac_obj=$1
80243: IFS=$old_IFS
80244:
80245: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
80246:
80247: case $ac_src in
80248: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
80249: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
80250: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
80251: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
80252: esac
80253:
80254: cat >>Makefile.objects<<EOF
80255: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
80256: $ac_comp
80257: EOF
80258: done
80259:
80260:
80261: EXT_STATIC="$EXT_STATIC pgsql"
80262: if test "$ext_shared" != "nocli"; then
80263: EXT_CLI_STATIC="$EXT_CLI_STATIC pgsql"
80264: fi
80265: else
80266: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
80267: PHP_PGSQL_SHARED=yes
80268:
80269: case ext/pgsql in
80270: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
80271: /*) ac_srcdir=`echo "ext/pgsql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
80272: *) ac_srcdir="$abs_srcdir/ext/pgsql/"; ac_bdir="ext/pgsql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
80273: esac
80274:
80275:
80276:
80277: b_c_pre=$shared_c_pre
80278: b_cxx_pre=$shared_cxx_pre
80279: b_c_meta=$shared_c_meta
80280: b_cxx_meta=$shared_cxx_meta
80281: b_c_post=$shared_c_post
80282: b_cxx_post=$shared_cxx_post
80283: b_lo=$shared_lo
80284:
80285:
80286: old_IFS=$IFS
80287: for ac_src in pgsql.c; do
80288:
80289: IFS=.
80290: set $ac_src
80291: ac_obj=$1
80292: IFS=$old_IFS
80293:
80294: shared_objects_pgsql="$shared_objects_pgsql $ac_bdir$ac_obj.lo"
80295:
80296: case $ac_src in
80297: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
80298: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
80299: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
80300: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
80301: esac
80302:
80303: cat >>Makefile.objects<<EOF
80304: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
80305: $ac_comp
80306: EOF
80307: done
80308:
80309: case $host_alias in
80310: *netware*)
80311:
80312: install_modules="install-modules"
80313:
80314: case $host_alias in
80315: *aix*)
80316: suffix=so
80317: 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'
80318: ;;
80319: *netware*)
80320: suffix=nlm
80321: link_cmd='$(LIBTOOL) --mode=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)'
80322: ;;
80323: *)
80324: suffix=la
80325: link_cmd='$(LIBTOOL) --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)'
80326: ;;
80327: esac
80328:
80329: if test "x" = "xyes"; then
80330: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phppgsql.$suffix"
80331: else
80332: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phppgsql.$suffix"
80333: fi
80334:
80335: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pgsql"
80336:
80337: cat >>Makefile.objects<<EOF
80338: \$(phplibdir)/phppgsql.$suffix: $ext_builddir/phppgsql.$suffix
80339: \$(LIBTOOL) --mode=install cp $ext_builddir/phppgsql.$suffix \$(phplibdir)
80340:
80341: $ext_builddir/phppgsql.$suffix: \$(shared_objects_pgsql) \$(PHPPGSQL_SHARED_DEPENDENCIES)
80342: $link_cmd
80343:
80344: EOF
80345:
80346: ;;
80347: *)
80348:
80349: install_modules="install-modules"
80350:
80351: case $host_alias in
80352: *aix*)
80353: suffix=so
80354: 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'
80355: ;;
80356: *netware*)
80357: suffix=nlm
80358: link_cmd='$(LIBTOOL) --mode=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)'
80359: ;;
80360: *)
80361: suffix=la
80362: link_cmd='$(LIBTOOL) --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)'
80363: ;;
80364: esac
80365:
80366: if test "x" = "xyes"; then
80367: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/pgsql.$suffix"
80368: else
80369: PHP_MODULES="$PHP_MODULES \$(phplibdir)/pgsql.$suffix"
80370: fi
80371:
80372: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pgsql"
80373:
80374: cat >>Makefile.objects<<EOF
80375: \$(phplibdir)/pgsql.$suffix: $ext_builddir/pgsql.$suffix
80376: \$(LIBTOOL) --mode=install cp $ext_builddir/pgsql.$suffix \$(phplibdir)
80377:
80378: $ext_builddir/pgsql.$suffix: \$(shared_objects_pgsql) \$(PGSQL_SHARED_DEPENDENCIES)
80379: $link_cmd
80380:
80381: EOF
80382:
80383: ;;
80384: esac
80385:
80386: cat >>confdefs.h <<_ACEOF
80387: #define COMPILE_DL_PGSQL 1
80388: _ACEOF
80389:
80390: fi
80391: fi
80392:
80393: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
80394: PHP_PGSQL_SHARED=no
80395:
80396:
80397: case ext/pgsql in
80398: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
80399: /*) ac_srcdir=`echo "ext/pgsql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
80400: *) ac_srcdir="$abs_srcdir/ext/pgsql/"; ac_bdir="ext/pgsql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
80401: esac
80402:
80403:
80404:
80405: b_c_pre=$php_c_pre
80406: b_cxx_pre=$php_cxx_pre
80407: b_c_meta=$php_c_meta
80408: b_cxx_meta=$php_cxx_meta
80409: b_c_post=$php_c_post
80410: b_cxx_post=$php_cxx_post
80411: b_lo=$php_lo
80412:
80413:
80414: old_IFS=$IFS
80415: for ac_src in pgsql.c; do
80416:
80417: IFS=.
80418: set $ac_src
80419: ac_obj=$1
80420: IFS=$old_IFS
80421:
80422: PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
80423:
80424: case $ac_src in
80425: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
80426: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
80427: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
80428: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
80429: esac
80430:
80431: cat >>Makefile.objects<<EOF
80432: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
80433: $ac_comp
80434: EOF
80435: done
80436:
80437:
80438:
80439:
80440: case ext/pgsql in
80441: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
80442: /*) ac_srcdir=`echo "ext/pgsql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
80443: *) ac_srcdir="$abs_srcdir/ext/pgsql/"; ac_bdir="ext/pgsql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
80444: esac
80445:
80446:
80447:
80448: b_c_pre=$php_c_pre
80449: b_cxx_pre=$php_cxx_pre
80450: b_c_meta=$php_c_meta
80451: b_cxx_meta=$php_cxx_meta
80452: b_c_post=$php_c_post
80453: b_cxx_post=$php_cxx_post
80454: b_lo=$php_lo
80455:
80456:
80457: old_IFS=$IFS
80458: for ac_src in pgsql.c; do
80459:
80460: IFS=.
80461: set $ac_src
80462: ac_obj=$1
80463: IFS=$old_IFS
80464:
80465: PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo"
80466:
80467: case $ac_src in
80468: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
80469: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
80470: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
80471: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
80472: esac
80473:
80474: cat >>Makefile.objects<<EOF
80475: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
80476: $ac_comp
80477: EOF
80478: done
80479:
80480:
80481:
80482:
80483: case ext/pgsql in
80484: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
80485: /*) ac_srcdir=`echo "ext/pgsql"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
80486: *) ac_srcdir="$abs_srcdir/ext/pgsql/"; ac_bdir="ext/pgsql/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
80487: esac
80488:
80489:
80490:
80491: b_c_pre=$php_c_pre
80492: b_cxx_pre=$php_cxx_pre
80493: b_c_meta=$php_c_meta
80494: b_cxx_meta=$php_cxx_meta
80495: b_c_post=$php_c_post
80496: b_cxx_post=$php_cxx_post
80497: b_lo=$php_lo
80498:
80499:
80500: old_IFS=$IFS
80501: for ac_src in pgsql.c; do
80502:
80503: IFS=.
80504: set $ac_src
80505: ac_obj=$1
80506: IFS=$old_IFS
80507:
80508: PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo"
80509:
80510: case $ac_src in
80511: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
80512: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
80513: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
80514: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
80515: esac
80516:
80517: cat >>Makefile.objects<<EOF
80518: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
80519: $ac_comp
80520: EOF
80521: done
80522:
80523:
80524: EXT_CLI_STATIC="$EXT_CLI_STATIC pgsql"
80525: fi
80526:
80527:
80528: BUILD_DIR="$BUILD_DIR $ext_builddir"
80529:
80530:
80531:
80532: if test "$ext_builddir" = "."; then
80533: PHP_PECL_EXTENSION=pgsql
80534:
80535: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
80536:
80537: fi
80538:
80539: fi
80540:
80541:
80542:
80543:
80544:
80545: php_enable_phar=yes
80546:
80547: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for phar archive support" >&5
80548: $as_echo_n "checking for phar archive support... " >&6; }
80549: # Check whether --enable-phar was given.
80550: if test "${enable_phar+set}" = set; then :
80551: enableval=$enable_phar; PHP_PHAR=$enableval
80552: else
80553:
80554: PHP_PHAR=yes
80555: test "$PHP_ENABLE_ALL" && PHP_PHAR=$PHP_ENABLE_ALL
80556:
80557: fi
80558:
80559:
80560:
80561: ext_output="yes, shared"
80562: ext_shared=yes
80563: case $PHP_PHAR in
80564: shared,*)
80565: PHP_PHAR=`echo "$PHP_PHAR"|$SED 's/^shared,//'`
80566: ;;
80567: shared)
80568: PHP_PHAR=yes
80569: ;;
80570: no)
80571: ext_output=no
80572: ext_shared=no
80573: ;;
80574: *)
80575: ext_output=yes
80576: ext_shared=no
80577: ;;
80578: esac
80579:
80580:
80581:
80582: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
80583: $as_echo "$ext_output" >&6; }
80584:
80585:
80586:
80587:
80588: if test "$PHP_PHAR" != "no"; then
80589:
80590: ext_builddir=ext/phar
80591: ext_srcdir=$abs_srcdir/ext/phar
80592:
80593: ac_extra=
80594:
80595: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
80596: PHP_PHAR_SHARED=no
80597:
80598:
80599: case ext/phar in
80600: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
80601: /*) ac_srcdir=`echo "ext/phar"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
80602: *) ac_srcdir="$abs_srcdir/ext/phar/"; ac_bdir="ext/phar/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
80603: esac
80604:
80605:
80606:
80607: b_c_pre=$php_c_pre
80608: b_cxx_pre=$php_cxx_pre
80609: b_c_meta=$php_c_meta
80610: b_cxx_meta=$php_cxx_meta
80611: b_c_post=$php_c_post
80612: b_cxx_post=$php_cxx_post
80613: b_lo=$php_lo
80614:
80615:
80616: old_IFS=$IFS
80617: 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
80618:
80619: IFS=.
80620: set $ac_src
80621: ac_obj=$1
80622: IFS=$old_IFS
80623:
80624: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
80625:
80626: case $ac_src in
80627: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
80628: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
80629: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
80630: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
80631: esac
80632:
80633: cat >>Makefile.objects<<EOF
80634: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
80635: $ac_comp
80636: EOF
80637: done
80638:
80639:
80640: EXT_STATIC="$EXT_STATIC phar"
80641: if test "$ext_shared" != "nocli"; then
80642: EXT_CLI_STATIC="$EXT_CLI_STATIC phar"
80643: fi
80644: else
80645: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
80646: PHP_PHAR_SHARED=yes
80647:
80648: case ext/phar in
80649: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
80650: /*) ac_srcdir=`echo "ext/phar"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
80651: *) ac_srcdir="$abs_srcdir/ext/phar/"; ac_bdir="ext/phar/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
80652: esac
80653:
80654:
80655:
80656: b_c_pre=$shared_c_pre
80657: b_cxx_pre=$shared_cxx_pre
80658: b_c_meta=$shared_c_meta
80659: b_cxx_meta=$shared_cxx_meta
80660: b_c_post=$shared_c_post
80661: b_cxx_post=$shared_cxx_post
80662: b_lo=$shared_lo
80663:
80664:
80665: old_IFS=$IFS
80666: 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
80667:
80668: IFS=.
80669: set $ac_src
80670: ac_obj=$1
80671: IFS=$old_IFS
80672:
80673: shared_objects_phar="$shared_objects_phar $ac_bdir$ac_obj.lo"
80674:
80675: case $ac_src in
80676: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
80677: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
80678: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
80679: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
80680: esac
80681:
80682: cat >>Makefile.objects<<EOF
80683: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
80684: $ac_comp
80685: EOF
80686: done
80687:
80688: case $host_alias in
80689: *netware*)
80690:
80691: install_modules="install-modules"
80692:
80693: case $host_alias in
80694: *aix*)
80695: suffix=so
80696: 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'
80697: ;;
80698: *netware*)
80699: suffix=nlm
80700: link_cmd='$(LIBTOOL) --mode=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)'
80701: ;;
80702: *)
80703: suffix=la
80704: link_cmd='$(LIBTOOL) --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)'
80705: ;;
80706: esac
80707:
80708: if test "x" = "xyes"; then
80709: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpphar.$suffix"
80710: else
80711: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpphar.$suffix"
80712: fi
80713:
80714: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_phar"
80715:
80716: cat >>Makefile.objects<<EOF
80717: \$(phplibdir)/phpphar.$suffix: $ext_builddir/phpphar.$suffix
80718: \$(LIBTOOL) --mode=install cp $ext_builddir/phpphar.$suffix \$(phplibdir)
80719:
80720: $ext_builddir/phpphar.$suffix: \$(shared_objects_phar) \$(PHPPHAR_SHARED_DEPENDENCIES)
80721: $link_cmd
80722:
80723: EOF
80724:
80725: ;;
80726: *)
80727:
80728: install_modules="install-modules"
80729:
80730: case $host_alias in
80731: *aix*)
80732: suffix=so
80733: 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'
80734: ;;
80735: *netware*)
80736: suffix=nlm
80737: link_cmd='$(LIBTOOL) --mode=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)'
80738: ;;
80739: *)
80740: suffix=la
80741: link_cmd='$(LIBTOOL) --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)'
80742: ;;
80743: esac
80744:
80745: if test "x" = "xyes"; then
80746: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phar.$suffix"
80747: else
80748: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phar.$suffix"
80749: fi
80750:
80751: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_phar"
80752:
80753: cat >>Makefile.objects<<EOF
80754: \$(phplibdir)/phar.$suffix: $ext_builddir/phar.$suffix
80755: \$(LIBTOOL) --mode=install cp $ext_builddir/phar.$suffix \$(phplibdir)
80756:
80757: $ext_builddir/phar.$suffix: \$(shared_objects_phar) \$(PHAR_SHARED_DEPENDENCIES)
80758: $link_cmd
80759:
80760: EOF
80761:
80762: ;;
80763: esac
80764:
80765: cat >>confdefs.h <<_ACEOF
80766: #define COMPILE_DL_PHAR 1
80767: _ACEOF
80768:
80769: fi
80770: fi
80771:
80772: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
80773: PHP_PHAR_SHARED=no
80774:
80775:
80776: case ext/phar in
80777: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
80778: /*) ac_srcdir=`echo "ext/phar"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
80779: *) ac_srcdir="$abs_srcdir/ext/phar/"; ac_bdir="ext/phar/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
80780: esac
80781:
80782:
80783:
80784: b_c_pre=$php_c_pre
80785: b_cxx_pre=$php_cxx_pre
80786: b_c_meta=$php_c_meta
80787: b_cxx_meta=$php_cxx_meta
80788: b_c_post=$php_c_post
80789: b_cxx_post=$php_cxx_post
80790: b_lo=$php_lo
80791:
80792:
80793: old_IFS=$IFS
80794: 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
80795:
80796: IFS=.
80797: set $ac_src
80798: ac_obj=$1
80799: IFS=$old_IFS
80800:
80801: PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
80802:
80803: case $ac_src in
80804: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
80805: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
80806: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
80807: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
80808: esac
80809:
80810: cat >>Makefile.objects<<EOF
80811: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
80812: $ac_comp
80813: EOF
80814: done
80815:
80816:
80817:
80818:
80819: case ext/phar in
80820: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
80821: /*) ac_srcdir=`echo "ext/phar"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
80822: *) ac_srcdir="$abs_srcdir/ext/phar/"; ac_bdir="ext/phar/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
80823: esac
80824:
80825:
80826:
80827: b_c_pre=$php_c_pre
80828: b_cxx_pre=$php_cxx_pre
80829: b_c_meta=$php_c_meta
80830: b_cxx_meta=$php_cxx_meta
80831: b_c_post=$php_c_post
80832: b_cxx_post=$php_cxx_post
80833: b_lo=$php_lo
80834:
80835:
80836: old_IFS=$IFS
80837: 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
80838:
80839: IFS=.
80840: set $ac_src
80841: ac_obj=$1
80842: IFS=$old_IFS
80843:
80844: PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo"
80845:
80846: case $ac_src in
80847: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
80848: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
80849: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
80850: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
80851: esac
80852:
80853: cat >>Makefile.objects<<EOF
80854: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
80855: $ac_comp
80856: EOF
80857: done
80858:
80859:
80860:
80861:
80862: case ext/phar in
80863: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
80864: /*) ac_srcdir=`echo "ext/phar"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
80865: *) ac_srcdir="$abs_srcdir/ext/phar/"; ac_bdir="ext/phar/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
80866: esac
80867:
80868:
80869:
80870: b_c_pre=$php_c_pre
80871: b_cxx_pre=$php_cxx_pre
80872: b_c_meta=$php_c_meta
80873: b_cxx_meta=$php_cxx_meta
80874: b_c_post=$php_c_post
80875: b_cxx_post=$php_cxx_post
80876: b_lo=$php_lo
80877:
80878:
80879: old_IFS=$IFS
80880: 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
80881:
80882: IFS=.
80883: set $ac_src
80884: ac_obj=$1
80885: IFS=$old_IFS
80886:
80887: PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo"
80888:
80889: case $ac_src in
80890: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
80891: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
80892: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
80893: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
80894: esac
80895:
80896: cat >>Makefile.objects<<EOF
80897: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
80898: $ac_comp
80899: EOF
80900: done
80901:
80902:
80903: EXT_CLI_STATIC="$EXT_CLI_STATIC phar"
80904: fi
80905:
80906:
80907: BUILD_DIR="$BUILD_DIR $ext_builddir"
80908:
80909:
80910:
80911: if test "$ext_builddir" = "."; then
80912: PHP_PECL_EXTENSION=phar
80913:
80914: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
80915:
80916: fi
80917:
80918: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for phar openssl support" >&5
80919: $as_echo_n "checking for phar openssl support... " >&6; }
80920: if test "$PHP_HASH_SHARED" != "yes"; then
80921: if test "$PHP_HASH" != "no"; then
80922:
80923: $as_echo "#define PHAR_HASH_OK 1" >>confdefs.h
80924:
80925: fi
80926: else
80927: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Phar: sha256/sha512 signature support disabled if ext/hash is built shared" >&5
80928: $as_echo "$as_me: WARNING: Phar: sha256/sha512 signature support disabled if ext/hash is built shared" >&2;}
80929: fi
80930: if test "$PHP_OPENSSL_SHARED" = "yes"; then
80931: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (shared openssl)" >&5
80932: $as_echo "no (shared openssl)" >&6; }
80933: else
80934: if test "$PHP_OPENSSL" = "yes"; then
80935: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
80936: $as_echo "yes" >&6; }
80937:
80938: $as_echo "#define PHAR_HAVE_OPENSSL 1" >>confdefs.h
80939:
80940: else
80941: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
80942: $as_echo "no" >&6; }
80943: fi
80944: fi
80945:
80946: am_i_shared=$PHP_PHAR_SHARED
80947: is_it_shared=$PHP_HASH_SHARED
80948: is_it_enabled=$PHP_HASH
80949: if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
80950: as_fn_error $? "
80951: You've configured extension phar to build statically, but it
80952: depends on extension hash, which you've configured to build shared.
80953: You either need to build phar shared or build hash statically for the
80954: build to be successful.
80955: " "$LINENO" 5
80956: fi
80957:
80958:
80959: am_i_shared=$PHP_PHAR_SHARED
80960: is_it_shared=$PHP_SPL_SHARED
80961: is_it_enabled=$PHP_SPL
80962: if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
80963: as_fn_error $? "
80964: You've configured extension phar to build statically, but it
80965: depends on extension spl, which you've configured to build shared.
80966: You either need to build phar shared or build spl statically for the
80967: build to be successful.
80968: " "$LINENO" 5
80969: fi
80970:
80971:
80972: src=$ext_srcdir/Makefile.frag
80973: ac_srcdir=$ext_srcdir
80974: ac_builddir=$ext_builddir
80975: test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments
80976:
80977: fi
80978:
80979:
80980:
80981: php_enable_posix=yes
80982:
80983: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable POSIX-like functions" >&5
80984: $as_echo_n "checking whether to enable POSIX-like functions... " >&6; }
80985: # Check whether --enable-posix was given.
80986: if test "${enable_posix+set}" = set; then :
80987: enableval=$enable_posix; PHP_POSIX=$enableval
80988: else
80989:
80990: PHP_POSIX=yes
80991: test "$PHP_ENABLE_ALL" && PHP_POSIX=$PHP_ENABLE_ALL
80992:
80993: fi
80994:
80995:
80996:
80997: ext_output="yes, shared"
80998: ext_shared=yes
80999: case $PHP_POSIX in
81000: shared,*)
81001: PHP_POSIX=`echo "$PHP_POSIX"|$SED 's/^shared,//'`
81002: ;;
81003: shared)
81004: PHP_POSIX=yes
81005: ;;
81006: no)
81007: ext_output=no
81008: ext_shared=no
81009: ;;
81010: *)
81011: ext_output=yes
81012: ext_shared=no
81013: ;;
81014: esac
81015:
81016:
81017:
81018: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
81019: $as_echo "$ext_output" >&6; }
81020:
81021:
81022:
81023:
81024: if test "$PHP_POSIX" = "yes"; then
81025:
81026: $as_echo "#define HAVE_POSIX 1" >>confdefs.h
81027:
81028:
81029: ext_builddir=ext/posix
81030: ext_srcdir=$abs_srcdir/ext/posix
81031:
81032: ac_extra=
81033:
81034: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
81035: PHP_POSIX_SHARED=no
81036:
81037:
81038: case ext/posix in
81039: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
81040: /*) ac_srcdir=`echo "ext/posix"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
81041: *) ac_srcdir="$abs_srcdir/ext/posix/"; ac_bdir="ext/posix/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
81042: esac
81043:
81044:
81045:
81046: b_c_pre=$php_c_pre
81047: b_cxx_pre=$php_cxx_pre
81048: b_c_meta=$php_c_meta
81049: b_cxx_meta=$php_cxx_meta
81050: b_c_post=$php_c_post
81051: b_cxx_post=$php_cxx_post
81052: b_lo=$php_lo
81053:
81054:
81055: old_IFS=$IFS
81056: for ac_src in posix.c; do
81057:
81058: IFS=.
81059: set $ac_src
81060: ac_obj=$1
81061: IFS=$old_IFS
81062:
81063: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
81064:
81065: case $ac_src in
81066: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
81067: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
81068: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
81069: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
81070: esac
81071:
81072: cat >>Makefile.objects<<EOF
81073: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
81074: $ac_comp
81075: EOF
81076: done
81077:
81078:
81079: EXT_STATIC="$EXT_STATIC posix"
81080: if test "$ext_shared" != "nocli"; then
81081: EXT_CLI_STATIC="$EXT_CLI_STATIC posix"
81082: fi
81083: else
81084: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
81085: PHP_POSIX_SHARED=yes
81086:
81087: case ext/posix in
81088: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
81089: /*) ac_srcdir=`echo "ext/posix"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
81090: *) ac_srcdir="$abs_srcdir/ext/posix/"; ac_bdir="ext/posix/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
81091: esac
81092:
81093:
81094:
81095: b_c_pre=$shared_c_pre
81096: b_cxx_pre=$shared_cxx_pre
81097: b_c_meta=$shared_c_meta
81098: b_cxx_meta=$shared_cxx_meta
81099: b_c_post=$shared_c_post
81100: b_cxx_post=$shared_cxx_post
81101: b_lo=$shared_lo
81102:
81103:
81104: old_IFS=$IFS
81105: for ac_src in posix.c; do
81106:
81107: IFS=.
81108: set $ac_src
81109: ac_obj=$1
81110: IFS=$old_IFS
81111:
81112: shared_objects_posix="$shared_objects_posix $ac_bdir$ac_obj.lo"
81113:
81114: case $ac_src in
81115: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
81116: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
81117: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
81118: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
81119: esac
81120:
81121: cat >>Makefile.objects<<EOF
81122: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
81123: $ac_comp
81124: EOF
81125: done
81126:
81127: case $host_alias in
81128: *netware*)
81129:
81130: install_modules="install-modules"
81131:
81132: case $host_alias in
81133: *aix*)
81134: suffix=so
81135: 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'
81136: ;;
81137: *netware*)
81138: suffix=nlm
81139: link_cmd='$(LIBTOOL) --mode=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)'
81140: ;;
81141: *)
81142: suffix=la
81143: link_cmd='$(LIBTOOL) --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)'
81144: ;;
81145: esac
81146:
81147: if test "x" = "xyes"; then
81148: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpposix.$suffix"
81149: else
81150: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpposix.$suffix"
81151: fi
81152:
81153: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_posix"
81154:
81155: cat >>Makefile.objects<<EOF
81156: \$(phplibdir)/phpposix.$suffix: $ext_builddir/phpposix.$suffix
81157: \$(LIBTOOL) --mode=install cp $ext_builddir/phpposix.$suffix \$(phplibdir)
81158:
81159: $ext_builddir/phpposix.$suffix: \$(shared_objects_posix) \$(PHPPOSIX_SHARED_DEPENDENCIES)
81160: $link_cmd
81161:
81162: EOF
81163:
81164: ;;
81165: *)
81166:
81167: install_modules="install-modules"
81168:
81169: case $host_alias in
81170: *aix*)
81171: suffix=so
81172: 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'
81173: ;;
81174: *netware*)
81175: suffix=nlm
81176: link_cmd='$(LIBTOOL) --mode=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)'
81177: ;;
81178: *)
81179: suffix=la
81180: link_cmd='$(LIBTOOL) --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)'
81181: ;;
81182: esac
81183:
81184: if test "x" = "xyes"; then
81185: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/posix.$suffix"
81186: else
81187: PHP_MODULES="$PHP_MODULES \$(phplibdir)/posix.$suffix"
81188: fi
81189:
81190: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_posix"
81191:
81192: cat >>Makefile.objects<<EOF
81193: \$(phplibdir)/posix.$suffix: $ext_builddir/posix.$suffix
81194: \$(LIBTOOL) --mode=install cp $ext_builddir/posix.$suffix \$(phplibdir)
81195:
81196: $ext_builddir/posix.$suffix: \$(shared_objects_posix) \$(POSIX_SHARED_DEPENDENCIES)
81197: $link_cmd
81198:
81199: EOF
81200:
81201: ;;
81202: esac
81203:
81204: cat >>confdefs.h <<_ACEOF
81205: #define COMPILE_DL_POSIX 1
81206: _ACEOF
81207:
81208: fi
81209: fi
81210:
81211: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
81212: PHP_POSIX_SHARED=no
81213:
81214:
81215: case ext/posix in
81216: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
81217: /*) ac_srcdir=`echo "ext/posix"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
81218: *) ac_srcdir="$abs_srcdir/ext/posix/"; ac_bdir="ext/posix/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
81219: esac
81220:
81221:
81222:
81223: b_c_pre=$php_c_pre
81224: b_cxx_pre=$php_cxx_pre
81225: b_c_meta=$php_c_meta
81226: b_cxx_meta=$php_cxx_meta
81227: b_c_post=$php_c_post
81228: b_cxx_post=$php_cxx_post
81229: b_lo=$php_lo
81230:
81231:
81232: old_IFS=$IFS
81233: for ac_src in posix.c; do
81234:
81235: IFS=.
81236: set $ac_src
81237: ac_obj=$1
81238: IFS=$old_IFS
81239:
81240: PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
81241:
81242: case $ac_src in
81243: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
81244: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
81245: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
81246: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
81247: esac
81248:
81249: cat >>Makefile.objects<<EOF
81250: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
81251: $ac_comp
81252: EOF
81253: done
81254:
81255:
81256:
81257:
81258: case ext/posix in
81259: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
81260: /*) ac_srcdir=`echo "ext/posix"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
81261: *) ac_srcdir="$abs_srcdir/ext/posix/"; ac_bdir="ext/posix/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
81262: esac
81263:
81264:
81265:
81266: b_c_pre=$php_c_pre
81267: b_cxx_pre=$php_cxx_pre
81268: b_c_meta=$php_c_meta
81269: b_cxx_meta=$php_cxx_meta
81270: b_c_post=$php_c_post
81271: b_cxx_post=$php_cxx_post
81272: b_lo=$php_lo
81273:
81274:
81275: old_IFS=$IFS
81276: for ac_src in posix.c; do
81277:
81278: IFS=.
81279: set $ac_src
81280: ac_obj=$1
81281: IFS=$old_IFS
81282:
81283: PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo"
81284:
81285: case $ac_src in
81286: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
81287: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
81288: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
81289: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
81290: esac
81291:
81292: cat >>Makefile.objects<<EOF
81293: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
81294: $ac_comp
81295: EOF
81296: done
81297:
81298:
81299:
81300:
81301: case ext/posix in
81302: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
81303: /*) ac_srcdir=`echo "ext/posix"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
81304: *) ac_srcdir="$abs_srcdir/ext/posix/"; ac_bdir="ext/posix/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
81305: esac
81306:
81307:
81308:
81309: b_c_pre=$php_c_pre
81310: b_cxx_pre=$php_cxx_pre
81311: b_c_meta=$php_c_meta
81312: b_cxx_meta=$php_cxx_meta
81313: b_c_post=$php_c_post
81314: b_cxx_post=$php_cxx_post
81315: b_lo=$php_lo
81316:
81317:
81318: old_IFS=$IFS
81319: for ac_src in posix.c; do
81320:
81321: IFS=.
81322: set $ac_src
81323: ac_obj=$1
81324: IFS=$old_IFS
81325:
81326: PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo"
81327:
81328: case $ac_src in
81329: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
81330: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
81331: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
81332: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
81333: esac
81334:
81335: cat >>Makefile.objects<<EOF
81336: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
81337: $ac_comp
81338: EOF
81339: done
81340:
81341:
81342: EXT_CLI_STATIC="$EXT_CLI_STATIC posix"
81343: fi
81344:
81345:
81346: BUILD_DIR="$BUILD_DIR $ext_builddir"
81347:
81348:
81349:
81350: if test "$ext_builddir" = "."; then
81351: PHP_PECL_EXTENSION=posix
81352:
81353: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
81354:
81355: fi
81356:
81357:
81358: for ac_header in sys/mkdev.h
81359: do :
81360: ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
81361: if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
81362: cat >>confdefs.h <<_ACEOF
81363: #define HAVE_SYS_MKDEV_H 1
81364: _ACEOF
81365:
81366: fi
81367:
81368: done
81369:
81370:
81371: for ac_func in seteuid setegid setsid getsid setpgid getpgid ctermid mkfifo mknod getrlimit getlogin getgroups makedev initgroups getpwuid_r getgrgid_r
81372: do :
81373: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
81374: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
81375: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
81376: cat >>confdefs.h <<_ACEOF
81377: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
81378: _ACEOF
81379:
81380: fi
81381: done
81382:
81383:
81384: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working ttyname_r() implementation" >&5
81385: $as_echo_n "checking for working ttyname_r() implementation... " >&6; }
81386: if test "$cross_compiling" = yes; then :
81387:
81388: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, cannot detect working ttyname_r() when cross compiling. posix_ttyname() will be thread-unsafe" >&5
81389: $as_echo "no, cannot detect working ttyname_r() when cross compiling. posix_ttyname() will be thread-unsafe" >&6; }
81390:
81391: else
81392: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
81393: /* end confdefs.h. */
81394:
81395: #include <unistd.h>
81396:
81397: int main(int argc, char *argv[])
81398: {
81399: char buf[64];
81400:
81401: return ttyname_r(0, buf, 64) ? 1 : 0;
81402: }
81403:
81404: _ACEOF
81405: if ac_fn_c_try_run "$LINENO"; then :
81406:
81407: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
81408: $as_echo "yes" >&6; }
81409:
81410: $as_echo "#define HAVE_TTYNAME_R 1" >>confdefs.h
81411:
81412:
81413: else
81414:
81415: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, posix_ttyname() will be thread-unsafe" >&5
81416: $as_echo "no, posix_ttyname() will be thread-unsafe" >&6; }
81417:
81418: fi
81419: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
81420: conftest.$ac_objext conftest.beam conftest.$ac_ext
81421: fi
81422:
81423:
81424: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utsname.domainname" >&5
81425: $as_echo_n "checking for utsname.domainname... " >&6; }
81426: if ${ac_cv_have_utsname_domainname+:} false; then :
81427: $as_echo_n "(cached) " >&6
81428: else
81429:
81430: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
81431: /* end confdefs.h. */
81432:
81433: #define _GNU_SOURCE
81434: #include <sys/utsname.h>
81435:
81436: int
81437: main ()
81438: {
81439:
81440: return sizeof(((struct utsname *)0)->domainname);
81441:
81442: ;
81443: return 0;
81444: }
81445: _ACEOF
81446: if ac_fn_c_try_compile "$LINENO"; then :
81447:
81448: ac_cv_have_utsname_domainname=yes
81449:
81450: else
81451:
81452: ac_cv_have_utsname_domainname=no
81453:
81454: fi
81455: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
81456:
81457: fi
81458: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_utsname_domainname" >&5
81459: $as_echo "$ac_cv_have_utsname_domainname" >&6; }
81460: if test "$ac_cv_have_utsname_domainname" = yes; then
81461:
81462: $as_echo "#define HAVE_UTSNAME_DOMAINNAME 1" >>confdefs.h
81463:
81464: fi
81465: fi
81466:
81467:
81468:
81469: php_with_pspell=no
81470:
81471: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PSPELL support" >&5
81472: $as_echo_n "checking for PSPELL support... " >&6; }
81473:
81474: # Check whether --with-pspell was given.
81475: if test "${with_pspell+set}" = set; then :
81476: withval=$with_pspell; PHP_PSPELL=$withval
81477: else
81478:
81479: PHP_PSPELL=no
81480: test "$PHP_ENABLE_ALL" && PHP_PSPELL=$PHP_ENABLE_ALL
81481:
81482: fi
81483:
81484:
81485:
81486: ext_output="yes, shared"
81487: ext_shared=yes
81488: case $PHP_PSPELL in
81489: shared,*)
81490: PHP_PSPELL=`echo "$PHP_PSPELL"|$SED 's/^shared,//'`
81491: ;;
81492: shared)
81493: PHP_PSPELL=yes
81494: ;;
81495: no)
81496: ext_output=no
81497: ext_shared=no
81498: ;;
81499: *)
81500: ext_output=yes
81501: ext_shared=no
81502: ;;
81503: esac
81504:
81505:
81506:
81507: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
81508: $as_echo "$ext_output" >&6; }
81509:
81510:
81511:
81512:
81513: if test "$PHP_PSPELL" != "no"; then
81514:
81515: ext_builddir=ext/pspell
81516: ext_srcdir=$abs_srcdir/ext/pspell
81517:
81518: ac_extra=
81519:
81520: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
81521: PHP_PSPELL_SHARED=no
81522:
81523:
81524: case ext/pspell in
81525: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
81526: /*) ac_srcdir=`echo "ext/pspell"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
81527: *) ac_srcdir="$abs_srcdir/ext/pspell/"; ac_bdir="ext/pspell/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
81528: esac
81529:
81530:
81531:
81532: b_c_pre=$php_c_pre
81533: b_cxx_pre=$php_cxx_pre
81534: b_c_meta=$php_c_meta
81535: b_cxx_meta=$php_cxx_meta
81536: b_c_post=$php_c_post
81537: b_cxx_post=$php_cxx_post
81538: b_lo=$php_lo
81539:
81540:
81541: old_IFS=$IFS
81542: for ac_src in pspell.c; do
81543:
81544: IFS=.
81545: set $ac_src
81546: ac_obj=$1
81547: IFS=$old_IFS
81548:
81549: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
81550:
81551: case $ac_src in
81552: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
81553: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
81554: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
81555: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
81556: esac
81557:
81558: cat >>Makefile.objects<<EOF
81559: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
81560: $ac_comp
81561: EOF
81562: done
81563:
81564:
81565: EXT_STATIC="$EXT_STATIC pspell"
81566: if test "$ext_shared" != "nocli"; then
81567: EXT_CLI_STATIC="$EXT_CLI_STATIC pspell"
81568: fi
81569: else
81570: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
81571: PHP_PSPELL_SHARED=yes
81572:
81573: case ext/pspell in
81574: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
81575: /*) ac_srcdir=`echo "ext/pspell"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
81576: *) ac_srcdir="$abs_srcdir/ext/pspell/"; ac_bdir="ext/pspell/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
81577: esac
81578:
81579:
81580:
81581: b_c_pre=$shared_c_pre
81582: b_cxx_pre=$shared_cxx_pre
81583: b_c_meta=$shared_c_meta
81584: b_cxx_meta=$shared_cxx_meta
81585: b_c_post=$shared_c_post
81586: b_cxx_post=$shared_cxx_post
81587: b_lo=$shared_lo
81588:
81589:
81590: old_IFS=$IFS
81591: for ac_src in pspell.c; do
81592:
81593: IFS=.
81594: set $ac_src
81595: ac_obj=$1
81596: IFS=$old_IFS
81597:
81598: shared_objects_pspell="$shared_objects_pspell $ac_bdir$ac_obj.lo"
81599:
81600: case $ac_src in
81601: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
81602: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
81603: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
81604: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
81605: esac
81606:
81607: cat >>Makefile.objects<<EOF
81608: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
81609: $ac_comp
81610: EOF
81611: done
81612:
81613: case $host_alias in
81614: *netware*)
81615:
81616: install_modules="install-modules"
81617:
81618: case $host_alias in
81619: *aix*)
81620: suffix=so
81621: 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'
81622: ;;
81623: *netware*)
81624: suffix=nlm
81625: link_cmd='$(LIBTOOL) --mode=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)'
81626: ;;
81627: *)
81628: suffix=la
81629: link_cmd='$(LIBTOOL) --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)'
81630: ;;
81631: esac
81632:
81633: if test "x" = "xyes"; then
81634: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phppspell.$suffix"
81635: else
81636: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phppspell.$suffix"
81637: fi
81638:
81639: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pspell"
81640:
81641: cat >>Makefile.objects<<EOF
81642: \$(phplibdir)/phppspell.$suffix: $ext_builddir/phppspell.$suffix
81643: \$(LIBTOOL) --mode=install cp $ext_builddir/phppspell.$suffix \$(phplibdir)
81644:
81645: $ext_builddir/phppspell.$suffix: \$(shared_objects_pspell) \$(PHPPSPELL_SHARED_DEPENDENCIES)
81646: $link_cmd
81647:
81648: EOF
81649:
81650: ;;
81651: *)
81652:
81653: install_modules="install-modules"
81654:
81655: case $host_alias in
81656: *aix*)
81657: suffix=so
81658: 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'
81659: ;;
81660: *netware*)
81661: suffix=nlm
81662: link_cmd='$(LIBTOOL) --mode=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)'
81663: ;;
81664: *)
81665: suffix=la
81666: link_cmd='$(LIBTOOL) --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)'
81667: ;;
81668: esac
81669:
81670: if test "x" = "xyes"; then
81671: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/pspell.$suffix"
81672: else
81673: PHP_MODULES="$PHP_MODULES \$(phplibdir)/pspell.$suffix"
81674: fi
81675:
81676: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pspell"
81677:
81678: cat >>Makefile.objects<<EOF
81679: \$(phplibdir)/pspell.$suffix: $ext_builddir/pspell.$suffix
81680: \$(LIBTOOL) --mode=install cp $ext_builddir/pspell.$suffix \$(phplibdir)
81681:
81682: $ext_builddir/pspell.$suffix: \$(shared_objects_pspell) \$(PSPELL_SHARED_DEPENDENCIES)
81683: $link_cmd
81684:
81685: EOF
81686:
81687: ;;
81688: esac
81689:
81690: cat >>confdefs.h <<_ACEOF
81691: #define COMPILE_DL_PSPELL 1
81692: _ACEOF
81693:
81694: fi
81695: fi
81696:
81697: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
81698: PHP_PSPELL_SHARED=no
81699:
81700:
81701: case ext/pspell in
81702: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
81703: /*) ac_srcdir=`echo "ext/pspell"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
81704: *) ac_srcdir="$abs_srcdir/ext/pspell/"; ac_bdir="ext/pspell/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
81705: esac
81706:
81707:
81708:
81709: b_c_pre=$php_c_pre
81710: b_cxx_pre=$php_cxx_pre
81711: b_c_meta=$php_c_meta
81712: b_cxx_meta=$php_cxx_meta
81713: b_c_post=$php_c_post
81714: b_cxx_post=$php_cxx_post
81715: b_lo=$php_lo
81716:
81717:
81718: old_IFS=$IFS
81719: for ac_src in pspell.c; do
81720:
81721: IFS=.
81722: set $ac_src
81723: ac_obj=$1
81724: IFS=$old_IFS
81725:
81726: PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
81727:
81728: case $ac_src in
81729: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
81730: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
81731: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
81732: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
81733: esac
81734:
81735: cat >>Makefile.objects<<EOF
81736: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
81737: $ac_comp
81738: EOF
81739: done
81740:
81741:
81742:
81743:
81744: case ext/pspell in
81745: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
81746: /*) ac_srcdir=`echo "ext/pspell"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
81747: *) ac_srcdir="$abs_srcdir/ext/pspell/"; ac_bdir="ext/pspell/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
81748: esac
81749:
81750:
81751:
81752: b_c_pre=$php_c_pre
81753: b_cxx_pre=$php_cxx_pre
81754: b_c_meta=$php_c_meta
81755: b_cxx_meta=$php_cxx_meta
81756: b_c_post=$php_c_post
81757: b_cxx_post=$php_cxx_post
81758: b_lo=$php_lo
81759:
81760:
81761: old_IFS=$IFS
81762: for ac_src in pspell.c; do
81763:
81764: IFS=.
81765: set $ac_src
81766: ac_obj=$1
81767: IFS=$old_IFS
81768:
81769: PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo"
81770:
81771: case $ac_src in
81772: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
81773: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
81774: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
81775: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
81776: esac
81777:
81778: cat >>Makefile.objects<<EOF
81779: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
81780: $ac_comp
81781: EOF
81782: done
81783:
81784:
81785:
81786:
81787: case ext/pspell in
81788: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
81789: /*) ac_srcdir=`echo "ext/pspell"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
81790: *) ac_srcdir="$abs_srcdir/ext/pspell/"; ac_bdir="ext/pspell/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
81791: esac
81792:
81793:
81794:
81795: b_c_pre=$php_c_pre
81796: b_cxx_pre=$php_cxx_pre
81797: b_c_meta=$php_c_meta
81798: b_cxx_meta=$php_cxx_meta
81799: b_c_post=$php_c_post
81800: b_cxx_post=$php_cxx_post
81801: b_lo=$php_lo
81802:
81803:
81804: old_IFS=$IFS
81805: for ac_src in pspell.c; do
81806:
81807: IFS=.
81808: set $ac_src
81809: ac_obj=$1
81810: IFS=$old_IFS
81811:
81812: PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo"
81813:
81814: case $ac_src in
81815: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
81816: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
81817: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
81818: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
81819: esac
81820:
81821: cat >>Makefile.objects<<EOF
81822: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
81823: $ac_comp
81824: EOF
81825: done
81826:
81827:
81828: EXT_CLI_STATIC="$EXT_CLI_STATIC pspell"
81829: fi
81830:
81831:
81832: BUILD_DIR="$BUILD_DIR $ext_builddir"
81833:
81834:
81835:
81836: if test "$ext_builddir" = "."; then
81837: PHP_PECL_EXTENSION=pspell
81838:
81839: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
81840:
81841: fi
81842:
81843: if test "$PHP_PSPELL" != "yes"; then
81844: PSPELL_SEARCH_DIRS=$PHP_PSPELL
81845: else
81846: PSPELL_SEARCH_DIRS="/usr/local /usr"
81847: fi
81848: for i in $PSPELL_SEARCH_DIRS; do
81849: if test -f $i/include/pspell/pspell.h; then
81850: PSPELL_DIR=$i
81851: PSPELL_INCDIR=$i/include/pspell
81852: elif test -f $i/include/pspell.h; then
81853: PSPELL_DIR=$i
81854: PSPELL_INCDIR=$i/include
81855: fi
81856: done
81857:
81858: if test -z "$PSPELL_DIR"; then
81859: as_fn_error $? "Cannot find pspell" "$LINENO" 5
81860: fi
81861:
81862: PSPELL_LIBDIR=$PSPELL_DIR/$PHP_LIBDIR
81863:
81864:
81865:
81866: if test "$ext_shared" = "yes"; then
81867: PSPELL_SHARED_LIBADD="-lpspell $PSPELL_SHARED_LIBADD"
81868: if test -n "$PSPELL_LIBDIR"; then
81869:
81870: if test "$PSPELL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PSPELL_LIBDIR" != "/usr/lib"; then
81871:
81872: if test -z "$PSPELL_LIBDIR" || echo "$PSPELL_LIBDIR" | grep '^/' >/dev/null ; then
81873: ai_p=$PSPELL_LIBDIR
81874: else
81875:
81876: ep_dir="`echo $PSPELL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
81877:
81878: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
81879: ai_p="$ep_realdir/`basename \"$PSPELL_LIBDIR\"`"
81880: fi
81881:
81882:
81883: if test "$ext_shared" = "yes"; then
81884: PSPELL_SHARED_LIBADD="-L$ai_p $PSPELL_SHARED_LIBADD"
81885: test -n "$ld_runpath_switch" && PSPELL_SHARED_LIBADD="$ld_runpath_switch$ai_p $PSPELL_SHARED_LIBADD"
81886: else
81887:
81888:
81889:
81890: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
81891:
81892: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
81893: if test -n "$unique" && test "`eval $cmd`" = "" ; then
81894: eval "LIBPATH$unique=set"
81895:
81896: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
81897: LDFLAGS="$LDFLAGS -L$ai_p"
81898: PHP_RPATHS="$PHP_RPATHS $ai_p"
81899:
81900: fi
81901:
81902:
81903: fi
81904:
81905: fi
81906:
81907: fi
81908: else
81909:
81910:
81911: if test -n "$PSPELL_LIBDIR"; then
81912:
81913: if test "$PSPELL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PSPELL_LIBDIR" != "/usr/lib"; then
81914:
81915: if test -z "$PSPELL_LIBDIR" || echo "$PSPELL_LIBDIR" | grep '^/' >/dev/null ; then
81916: ai_p=$PSPELL_LIBDIR
81917: else
81918:
81919: ep_dir="`echo $PSPELL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
81920:
81921: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
81922: ai_p="$ep_realdir/`basename \"$PSPELL_LIBDIR\"`"
81923: fi
81924:
81925:
81926:
81927:
81928:
81929: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
81930:
81931: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
81932: if test -n "$unique" && test "`eval $cmd`" = "" ; then
81933: eval "LIBPATH$unique=set"
81934:
81935: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
81936: LDFLAGS="$LDFLAGS -L$ai_p"
81937: PHP_RPATHS="$PHP_RPATHS $ai_p"
81938:
81939: fi
81940:
81941:
81942:
81943: fi
81944:
81945: fi
81946:
81947:
81948: case pspell in
81949: c|c_r|pthread*) ;;
81950: *)
81951: LIBS="-lpspell $LIBS"
81952: ;;
81953: esac
81954:
81955:
81956:
81957:
81958: fi
81959:
81960:
81961:
81962:
81963: save_old_LDFLAGS=$LDFLAGS
81964: ac_stuff="
81965: -L$PSPELL_LIBDIR
81966: "
81967:
81968: save_ext_shared=$ext_shared
81969: ext_shared=yes
81970:
81971: for ac_i in $ac_stuff; do
81972: case $ac_i in
81973: -pthread)
81974: if test "$ext_shared" = "yes"; then
81975: LDFLAGS="$LDFLAGS -pthread"
81976: else
81977:
81978:
81979: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
81980:
81981: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
81982: if test -n "$unique" && test "`eval $cmd`" = "" ; then
81983: eval "EXTRA_LDFLAGS$unique=set"
81984: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
81985: fi
81986:
81987: fi
81988: ;;
81989: -l*)
81990: ac_ii=`echo $ac_i|cut -c 3-`
81991:
81992:
81993: case $ac_ii in
81994: c|c_r|pthread*) ;;
81995: *)
81996: if test "$ext_shared" = "yes"; then
81997: LDFLAGS="$LDFLAGS -l$ac_ii"
81998: else
81999:
82000:
82001: case $ac_ii in
82002: c|c_r|pthread*) ;;
82003: *)
82004: LIBS="$LIBS -l$ac_ii"
82005: ;;
82006: esac
82007:
82008:
82009: fi
82010: ;;
82011: esac
82012:
82013:
82014: ;;
82015: -L*)
82016: ac_ii=`echo $ac_i|cut -c 3-`
82017:
82018: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
82019:
82020: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
82021: ai_p=$ac_ii
82022: else
82023:
82024: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
82025:
82026: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
82027: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
82028: fi
82029:
82030:
82031: if test "$ext_shared" = "yes"; then
82032: LDFLAGS="-L$ai_p $LDFLAGS"
82033: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
82034: else
82035:
82036:
82037:
82038: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
82039:
82040: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
82041: if test -n "$unique" && test "`eval $cmd`" = "" ; then
82042: eval "LIBPATH$unique=set"
82043:
82044: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
82045: LDFLAGS="$LDFLAGS -L$ai_p"
82046: PHP_RPATHS="$PHP_RPATHS $ai_p"
82047:
82048: fi
82049:
82050:
82051: fi
82052:
82053: fi
82054:
82055: ;;
82056: esac
82057: done
82058:
82059: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new_aspell_config in -laspell" >&5
82060: $as_echo_n "checking for new_aspell_config in -laspell... " >&6; }
82061: if ${ac_cv_lib_aspell_new_aspell_config+:} false; then :
82062: $as_echo_n "(cached) " >&6
82063: else
82064: ac_check_lib_save_LIBS=$LIBS
82065: LIBS="-laspell $LIBS"
82066: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
82067: /* end confdefs.h. */
82068:
82069: /* Override any GCC internal prototype to avoid an error.
82070: Use char because int might match the return type of a GCC
82071: builtin and then its argument prototype would still apply. */
82072: #ifdef __cplusplus
82073: extern "C"
82074: #endif
82075: char new_aspell_config ();
82076: int
82077: main ()
82078: {
82079: return new_aspell_config ();
82080: ;
82081: return 0;
82082: }
82083: _ACEOF
82084: if ac_fn_c_try_link "$LINENO"; then :
82085: ac_cv_lib_aspell_new_aspell_config=yes
82086: else
82087: ac_cv_lib_aspell_new_aspell_config=no
82088: fi
82089: rm -f core conftest.err conftest.$ac_objext \
82090: conftest$ac_exeext conftest.$ac_ext
82091: LIBS=$ac_check_lib_save_LIBS
82092: fi
82093: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_aspell_new_aspell_config" >&5
82094: $as_echo "$ac_cv_lib_aspell_new_aspell_config" >&6; }
82095: if test "x$ac_cv_lib_aspell_new_aspell_config" = xyes; then :
82096:
82097: LDFLAGS=$save_old_LDFLAGS
82098: ext_shared=$save_ext_shared
82099:
82100:
82101:
82102: if test "$ext_shared" = "yes"; then
82103: PSPELL_SHARED_LIBADD="-laspell $PSPELL_SHARED_LIBADD"
82104: if test -n "$PSPELL_LIBDIR"; then
82105:
82106: if test "$PSPELL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PSPELL_LIBDIR" != "/usr/lib"; then
82107:
82108: if test -z "$PSPELL_LIBDIR" || echo "$PSPELL_LIBDIR" | grep '^/' >/dev/null ; then
82109: ai_p=$PSPELL_LIBDIR
82110: else
82111:
82112: ep_dir="`echo $PSPELL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
82113:
82114: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
82115: ai_p="$ep_realdir/`basename \"$PSPELL_LIBDIR\"`"
82116: fi
82117:
82118:
82119: if test "$ext_shared" = "yes"; then
82120: PSPELL_SHARED_LIBADD="-L$ai_p $PSPELL_SHARED_LIBADD"
82121: test -n "$ld_runpath_switch" && PSPELL_SHARED_LIBADD="$ld_runpath_switch$ai_p $PSPELL_SHARED_LIBADD"
82122: else
82123:
82124:
82125:
82126: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
82127:
82128: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
82129: if test -n "$unique" && test "`eval $cmd`" = "" ; then
82130: eval "LIBPATH$unique=set"
82131:
82132: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
82133: LDFLAGS="$LDFLAGS -L$ai_p"
82134: PHP_RPATHS="$PHP_RPATHS $ai_p"
82135:
82136: fi
82137:
82138:
82139: fi
82140:
82141: fi
82142:
82143: fi
82144: else
82145:
82146:
82147: if test -n "$PSPELL_LIBDIR"; then
82148:
82149: if test "$PSPELL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PSPELL_LIBDIR" != "/usr/lib"; then
82150:
82151: if test -z "$PSPELL_LIBDIR" || echo "$PSPELL_LIBDIR" | grep '^/' >/dev/null ; then
82152: ai_p=$PSPELL_LIBDIR
82153: else
82154:
82155: ep_dir="`echo $PSPELL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
82156:
82157: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
82158: ai_p="$ep_realdir/`basename \"$PSPELL_LIBDIR\"`"
82159: fi
82160:
82161:
82162:
82163:
82164:
82165: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
82166:
82167: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
82168: if test -n "$unique" && test "`eval $cmd`" = "" ; then
82169: eval "LIBPATH$unique=set"
82170:
82171: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
82172: LDFLAGS="$LDFLAGS -L$ai_p"
82173: PHP_RPATHS="$PHP_RPATHS $ai_p"
82174:
82175: fi
82176:
82177:
82178:
82179: fi
82180:
82181: fi
82182:
82183:
82184: case aspell in
82185: c|c_r|pthread*) ;;
82186: *)
82187: LIBS="-laspell $LIBS"
82188: ;;
82189: esac
82190:
82191:
82192:
82193:
82194: fi
82195:
82196:
82197:
82198:
82199: else
82200:
82201: LDFLAGS=$save_old_LDFLAGS
82202: ext_shared=$save_ext_shared
82203: unset ac_cv_lib_aspell_new_aspell_config
82204:
82205:
82206: fi
82207:
82208:
82209:
82210: if test "$PSPELL_INCDIR" != "/usr/include"; then
82211:
82212: if test -z "$PSPELL_INCDIR" || echo "$PSPELL_INCDIR" | grep '^/' >/dev/null ; then
82213: ai_p=$PSPELL_INCDIR
82214: else
82215:
82216: ep_dir="`echo $PSPELL_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`"
82217:
82218: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
82219: ai_p="$ep_realdir/`basename \"$PSPELL_INCDIR\"`"
82220: fi
82221:
82222:
82223:
82224: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
82225:
82226: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
82227: if test -n "$unique" && test "`eval $cmd`" = "" ; then
82228: eval "INCLUDEPATH$unique=set"
82229:
82230: if test ""; then
82231: INCLUDES="-I$ai_p $INCLUDES"
82232: else
82233: INCLUDES="$INCLUDES -I$ai_p"
82234: fi
82235:
82236: fi
82237:
82238: fi
82239:
82240:
82241: PHP_VAR_SUBST="$PHP_VAR_SUBST PSPELL_SHARED_LIBADD"
82242:
82243:
82244: $as_echo "#define HAVE_PSPELL 1" >>confdefs.h
82245:
82246: fi
82247:
82248:
82249:
82250: php_with_libedit=no
82251:
82252: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libedit readline replacement" >&5
82253: $as_echo_n "checking for libedit readline replacement... " >&6; }
82254:
82255: # Check whether --with-libedit was given.
82256: if test "${with_libedit+set}" = set; then :
82257: withval=$with_libedit; PHP_LIBEDIT=$withval
82258: else
82259:
82260: PHP_LIBEDIT=no
82261: test "$PHP_ENABLE_ALL" && PHP_LIBEDIT=$PHP_ENABLE_ALL
82262:
82263: fi
82264:
82265:
82266:
82267: ext_output="yes, shared"
82268: ext_shared=yes
82269: case $PHP_LIBEDIT in
82270: shared,*)
82271: PHP_LIBEDIT=`echo "$PHP_LIBEDIT"|$SED 's/^shared,//'`
82272: ;;
82273: shared)
82274: PHP_LIBEDIT=yes
82275: ;;
82276: no)
82277: ext_output=no
82278: ext_shared=no
82279: ;;
82280: *)
82281: ext_output=yes
82282: ext_shared=no
82283: ;;
82284: esac
82285:
82286:
82287:
82288: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
82289: $as_echo "$ext_output" >&6; }
82290:
82291:
82292:
82293:
82294: if test "$PHP_LIBEDIT" = "no"; then
82295:
82296: php_with_readline=no
82297:
82298: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline support" >&5
82299: $as_echo_n "checking for readline support... " >&6; }
82300:
82301: # Check whether --with-readline was given.
82302: if test "${with_readline+set}" = set; then :
82303: withval=$with_readline; PHP_READLINE=$withval
82304: else
82305:
82306: PHP_READLINE=no
82307: test "$PHP_ENABLE_ALL" && PHP_READLINE=$PHP_ENABLE_ALL
82308:
82309: fi
82310:
82311:
82312:
82313: ext_output="yes, shared"
82314: ext_shared=yes
82315: case $PHP_READLINE in
82316: shared,*)
82317: PHP_READLINE=`echo "$PHP_READLINE"|$SED 's/^shared,//'`
82318: ;;
82319: shared)
82320: PHP_READLINE=yes
82321: ;;
82322: no)
82323: ext_output=no
82324: ext_shared=no
82325: ;;
82326: *)
82327: ext_output=yes
82328: ext_shared=no
82329: ;;
82330: esac
82331:
82332:
82333:
82334: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
82335: $as_echo "$ext_output" >&6; }
82336:
82337:
82338:
82339: else
82340: php_with_readline=no
82341: fi
82342:
82343: if test "$PHP_READLINE" && test "$PHP_READLINE" != "no"; then
82344: for i in $PHP_READLINE /usr/local /usr; do
82345: test -f $i/include/readline/readline.h && READLINE_DIR=$i && break
82346: done
82347:
82348: if test -z "$READLINE_DIR"; then
82349: as_fn_error $? "Please reinstall readline - I cannot find readline.h" "$LINENO" 5
82350: fi
82351:
82352:
82353: if test "$READLINE_DIR/include" != "/usr/include"; then
82354:
82355: if test -z "$READLINE_DIR/include" || echo "$READLINE_DIR/include" | grep '^/' >/dev/null ; then
82356: ai_p=$READLINE_DIR/include
82357: else
82358:
82359: ep_dir="`echo $READLINE_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
82360:
82361: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
82362: ai_p="$ep_realdir/`basename \"$READLINE_DIR/include\"`"
82363: fi
82364:
82365:
82366:
82367: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
82368:
82369: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
82370: if test -n "$unique" && test "`eval $cmd`" = "" ; then
82371: eval "INCLUDEPATH$unique=set"
82372:
82373: if test ""; then
82374: INCLUDES="-I$ai_p $INCLUDES"
82375: else
82376: INCLUDES="$INCLUDES -I$ai_p"
82377: fi
82378:
82379: fi
82380:
82381: fi
82382:
82383:
82384: PHP_READLINE_LIBS=""
82385: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
82386: $as_echo_n "checking for tgetent in -lncurses... " >&6; }
82387: if ${ac_cv_lib_ncurses_tgetent+:} false; then :
82388: $as_echo_n "(cached) " >&6
82389: else
82390: ac_check_lib_save_LIBS=$LIBS
82391: LIBS="-lncurses $LIBS"
82392: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
82393: /* end confdefs.h. */
82394:
82395: /* Override any GCC internal prototype to avoid an error.
82396: Use char because int might match the return type of a GCC
82397: builtin and then its argument prototype would still apply. */
82398: #ifdef __cplusplus
82399: extern "C"
82400: #endif
82401: char tgetent ();
82402: int
82403: main ()
82404: {
82405: return tgetent ();
82406: ;
82407: return 0;
82408: }
82409: _ACEOF
82410: if ac_fn_c_try_link "$LINENO"; then :
82411: ac_cv_lib_ncurses_tgetent=yes
82412: else
82413: ac_cv_lib_ncurses_tgetent=no
82414: fi
82415: rm -f core conftest.err conftest.$ac_objext \
82416: conftest$ac_exeext conftest.$ac_ext
82417: LIBS=$ac_check_lib_save_LIBS
82418: fi
82419: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
82420: $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
82421: if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then :
82422:
82423:
82424:
82425: case ncurses in
82426: c|c_r|pthread*) ;;
82427: *)
82428: if test "$ext_shared" = "yes"; then
82429: READLINE_SHARED_LIBADD="-lncurses $READLINE_SHARED_LIBADD"
82430: else
82431:
82432:
82433: case ncurses in
82434: c|c_r|pthread*) ;;
82435: *)
82436: LIBS="-lncurses $LIBS"
82437: ;;
82438: esac
82439:
82440:
82441: fi
82442: ;;
82443: esac
82444:
82445:
82446: PHP_READLINE_LIBS="$PHP_READLINE_LIBS -lncurses"
82447:
82448: else
82449:
82450: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
82451: $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
82452: if ${ac_cv_lib_termcap_tgetent+:} false; then :
82453: $as_echo_n "(cached) " >&6
82454: else
82455: ac_check_lib_save_LIBS=$LIBS
82456: LIBS="-ltermcap $LIBS"
82457: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
82458: /* end confdefs.h. */
82459:
82460: /* Override any GCC internal prototype to avoid an error.
82461: Use char because int might match the return type of a GCC
82462: builtin and then its argument prototype would still apply. */
82463: #ifdef __cplusplus
82464: extern "C"
82465: #endif
82466: char tgetent ();
82467: int
82468: main ()
82469: {
82470: return tgetent ();
82471: ;
82472: return 0;
82473: }
82474: _ACEOF
82475: if ac_fn_c_try_link "$LINENO"; then :
82476: ac_cv_lib_termcap_tgetent=yes
82477: else
82478: ac_cv_lib_termcap_tgetent=no
82479: fi
82480: rm -f core conftest.err conftest.$ac_objext \
82481: conftest$ac_exeext conftest.$ac_ext
82482: LIBS=$ac_check_lib_save_LIBS
82483: fi
82484: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
82485: $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
82486: if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
82487:
82488:
82489:
82490: case termcap in
82491: c|c_r|pthread*) ;;
82492: *)
82493: if test "$ext_shared" = "yes"; then
82494: READLINE_SHARED_LIBADD="-ltermcap $READLINE_SHARED_LIBADD"
82495: else
82496:
82497:
82498: case termcap in
82499: c|c_r|pthread*) ;;
82500: *)
82501: LIBS="-ltermcap $LIBS"
82502: ;;
82503: esac
82504:
82505:
82506: fi
82507: ;;
82508: esac
82509:
82510:
82511: PHP_READLINE_LIBS="$PHP_READLINE_LIBS -ltermcap"
82512:
82513: fi
82514:
82515:
82516: fi
82517:
82518:
82519:
82520: save_old_LDFLAGS=$LDFLAGS
82521: ac_stuff="
82522: -L$READLINE_DIR/$PHP_LIBDIR $PHP_READLINE_LIBS
82523: "
82524:
82525: save_ext_shared=$ext_shared
82526: ext_shared=yes
82527:
82528: for ac_i in $ac_stuff; do
82529: case $ac_i in
82530: -pthread)
82531: if test "$ext_shared" = "yes"; then
82532: LDFLAGS="$LDFLAGS -pthread"
82533: else
82534:
82535:
82536: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
82537:
82538: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
82539: if test -n "$unique" && test "`eval $cmd`" = "" ; then
82540: eval "EXTRA_LDFLAGS$unique=set"
82541: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
82542: fi
82543:
82544: fi
82545: ;;
82546: -l*)
82547: ac_ii=`echo $ac_i|cut -c 3-`
82548:
82549:
82550: case $ac_ii in
82551: c|c_r|pthread*) ;;
82552: *)
82553: if test "$ext_shared" = "yes"; then
82554: LDFLAGS="$LDFLAGS -l$ac_ii"
82555: else
82556:
82557:
82558: case $ac_ii in
82559: c|c_r|pthread*) ;;
82560: *)
82561: LIBS="$LIBS -l$ac_ii"
82562: ;;
82563: esac
82564:
82565:
82566: fi
82567: ;;
82568: esac
82569:
82570:
82571: ;;
82572: -L*)
82573: ac_ii=`echo $ac_i|cut -c 3-`
82574:
82575: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
82576:
82577: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
82578: ai_p=$ac_ii
82579: else
82580:
82581: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
82582:
82583: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
82584: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
82585: fi
82586:
82587:
82588: if test "$ext_shared" = "yes"; then
82589: LDFLAGS="-L$ai_p $LDFLAGS"
82590: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
82591: else
82592:
82593:
82594:
82595: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
82596:
82597: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
82598: if test -n "$unique" && test "`eval $cmd`" = "" ; then
82599: eval "LIBPATH$unique=set"
82600:
82601: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
82602: LDFLAGS="$LDFLAGS -L$ai_p"
82603: PHP_RPATHS="$PHP_RPATHS $ai_p"
82604:
82605: fi
82606:
82607:
82608: fi
82609:
82610: fi
82611:
82612: ;;
82613: esac
82614: done
82615:
82616: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
82617: $as_echo_n "checking for readline in -lreadline... " >&6; }
82618: if ${ac_cv_lib_readline_readline+:} false; then :
82619: $as_echo_n "(cached) " >&6
82620: else
82621: ac_check_lib_save_LIBS=$LIBS
82622: LIBS="-lreadline $LIBS"
82623: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
82624: /* end confdefs.h. */
82625:
82626: /* Override any GCC internal prototype to avoid an error.
82627: Use char because int might match the return type of a GCC
82628: builtin and then its argument prototype would still apply. */
82629: #ifdef __cplusplus
82630: extern "C"
82631: #endif
82632: char readline ();
82633: int
82634: main ()
82635: {
82636: return readline ();
82637: ;
82638: return 0;
82639: }
82640: _ACEOF
82641: if ac_fn_c_try_link "$LINENO"; then :
82642: ac_cv_lib_readline_readline=yes
82643: else
82644: ac_cv_lib_readline_readline=no
82645: fi
82646: rm -f core conftest.err conftest.$ac_objext \
82647: conftest$ac_exeext conftest.$ac_ext
82648: LIBS=$ac_check_lib_save_LIBS
82649: fi
82650: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
82651: $as_echo "$ac_cv_lib_readline_readline" >&6; }
82652: if test "x$ac_cv_lib_readline_readline" = xyes; then :
82653:
82654: LDFLAGS=$save_old_LDFLAGS
82655: ext_shared=$save_ext_shared
82656:
82657:
82658:
82659: if test "$ext_shared" = "yes"; then
82660: READLINE_SHARED_LIBADD="-lreadline $READLINE_SHARED_LIBADD"
82661: if test -n "$READLINE_DIR/$PHP_LIBDIR"; then
82662:
82663: if test "$READLINE_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$READLINE_DIR/$PHP_LIBDIR" != "/usr/lib"; then
82664:
82665: if test -z "$READLINE_DIR/$PHP_LIBDIR" || echo "$READLINE_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
82666: ai_p=$READLINE_DIR/$PHP_LIBDIR
82667: else
82668:
82669: ep_dir="`echo $READLINE_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
82670:
82671: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
82672: ai_p="$ep_realdir/`basename \"$READLINE_DIR/$PHP_LIBDIR\"`"
82673: fi
82674:
82675:
82676: if test "$ext_shared" = "yes"; then
82677: READLINE_SHARED_LIBADD="-L$ai_p $READLINE_SHARED_LIBADD"
82678: test -n "$ld_runpath_switch" && READLINE_SHARED_LIBADD="$ld_runpath_switch$ai_p $READLINE_SHARED_LIBADD"
82679: else
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: fi
82697:
82698: fi
82699:
82700: fi
82701: else
82702:
82703:
82704: if test -n "$READLINE_DIR/$PHP_LIBDIR"; then
82705:
82706: if test "$READLINE_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$READLINE_DIR/$PHP_LIBDIR" != "/usr/lib"; then
82707:
82708: if test -z "$READLINE_DIR/$PHP_LIBDIR" || echo "$READLINE_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
82709: ai_p=$READLINE_DIR/$PHP_LIBDIR
82710: else
82711:
82712: ep_dir="`echo $READLINE_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
82713:
82714: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
82715: ai_p="$ep_realdir/`basename \"$READLINE_DIR/$PHP_LIBDIR\"`"
82716: fi
82717:
82718:
82719:
82720:
82721:
82722: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
82723:
82724: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
82725: if test -n "$unique" && test "`eval $cmd`" = "" ; then
82726: eval "LIBPATH$unique=set"
82727:
82728: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
82729: LDFLAGS="$LDFLAGS -L$ai_p"
82730: PHP_RPATHS="$PHP_RPATHS $ai_p"
82731:
82732: fi
82733:
82734:
82735:
82736: fi
82737:
82738: fi
82739:
82740:
82741: case readline in
82742: c|c_r|pthread*) ;;
82743: *)
82744: LIBS="-lreadline $LIBS"
82745: ;;
82746: esac
82747:
82748:
82749:
82750:
82751: fi
82752:
82753:
82754:
82755:
82756: else
82757:
82758: LDFLAGS=$save_old_LDFLAGS
82759: ext_shared=$save_ext_shared
82760: unset ac_cv_lib_readline_readline
82761:
82762: as_fn_error $? "readline library not found" "$LINENO" 5
82763:
82764:
82765: fi
82766:
82767:
82768:
82769: save_old_LDFLAGS=$LDFLAGS
82770: ac_stuff="
82771: -L$READLINE_DIR/$PHP_LIBDIR $PHP_READLINE_LIBS
82772: "
82773:
82774: save_ext_shared=$ext_shared
82775: ext_shared=yes
82776:
82777: for ac_i in $ac_stuff; do
82778: case $ac_i in
82779: -pthread)
82780: if test "$ext_shared" = "yes"; then
82781: LDFLAGS="$LDFLAGS -pthread"
82782: else
82783:
82784:
82785: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
82786:
82787: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
82788: if test -n "$unique" && test "`eval $cmd`" = "" ; then
82789: eval "EXTRA_LDFLAGS$unique=set"
82790: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
82791: fi
82792:
82793: fi
82794: ;;
82795: -l*)
82796: ac_ii=`echo $ac_i|cut -c 3-`
82797:
82798:
82799: case $ac_ii in
82800: c|c_r|pthread*) ;;
82801: *)
82802: if test "$ext_shared" = "yes"; then
82803: LDFLAGS="$LDFLAGS -l$ac_ii"
82804: else
82805:
82806:
82807: case $ac_ii in
82808: c|c_r|pthread*) ;;
82809: *)
82810: LIBS="$LIBS -l$ac_ii"
82811: ;;
82812: esac
82813:
82814:
82815: fi
82816: ;;
82817: esac
82818:
82819:
82820: ;;
82821: -L*)
82822: ac_ii=`echo $ac_i|cut -c 3-`
82823:
82824: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
82825:
82826: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
82827: ai_p=$ac_ii
82828: else
82829:
82830: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
82831:
82832: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
82833: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
82834: fi
82835:
82836:
82837: if test "$ext_shared" = "yes"; then
82838: LDFLAGS="-L$ai_p $LDFLAGS"
82839: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
82840: else
82841:
82842:
82843:
82844: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
82845:
82846: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
82847: if test -n "$unique" && test "`eval $cmd`" = "" ; then
82848: eval "LIBPATH$unique=set"
82849:
82850: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
82851: LDFLAGS="$LDFLAGS -L$ai_p"
82852: PHP_RPATHS="$PHP_RPATHS $ai_p"
82853:
82854: fi
82855:
82856:
82857: fi
82858:
82859: fi
82860:
82861: ;;
82862: esac
82863: done
82864:
82865: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_pending_input in -lreadline" >&5
82866: $as_echo_n "checking for rl_pending_input in -lreadline... " >&6; }
82867: if ${ac_cv_lib_readline_rl_pending_input+:} false; then :
82868: $as_echo_n "(cached) " >&6
82869: else
82870: ac_check_lib_save_LIBS=$LIBS
82871: LIBS="-lreadline $LIBS"
82872: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
82873: /* end confdefs.h. */
82874:
82875: /* Override any GCC internal prototype to avoid an error.
82876: Use char because int might match the return type of a GCC
82877: builtin and then its argument prototype would still apply. */
82878: #ifdef __cplusplus
82879: extern "C"
82880: #endif
82881: char rl_pending_input ();
82882: int
82883: main ()
82884: {
82885: return rl_pending_input ();
82886: ;
82887: return 0;
82888: }
82889: _ACEOF
82890: if ac_fn_c_try_link "$LINENO"; then :
82891: ac_cv_lib_readline_rl_pending_input=yes
82892: else
82893: ac_cv_lib_readline_rl_pending_input=no
82894: fi
82895: rm -f core conftest.err conftest.$ac_objext \
82896: conftest$ac_exeext conftest.$ac_ext
82897: LIBS=$ac_check_lib_save_LIBS
82898: fi
82899: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_pending_input" >&5
82900: $as_echo "$ac_cv_lib_readline_rl_pending_input" >&6; }
82901: if test "x$ac_cv_lib_readline_rl_pending_input" = xyes; then :
82902:
82903: LDFLAGS=$save_old_LDFLAGS
82904: ext_shared=$save_ext_shared
82905:
82906:
82907: else
82908:
82909: LDFLAGS=$save_old_LDFLAGS
82910: ext_shared=$save_ext_shared
82911: unset ac_cv_lib_readline_rl_pending_input
82912:
82913: as_fn_error $? "invalid readline installation detected. Try --with-libedit instead." "$LINENO" 5
82914:
82915:
82916: fi
82917:
82918:
82919:
82920: save_old_LDFLAGS=$LDFLAGS
82921: ac_stuff="
82922: -L$READLINE_DIR/$PHP_LIBDIR $PHP_READLINE_LIBS
82923: "
82924:
82925: save_ext_shared=$ext_shared
82926: ext_shared=yes
82927:
82928: for ac_i in $ac_stuff; do
82929: case $ac_i in
82930: -pthread)
82931: if test "$ext_shared" = "yes"; then
82932: LDFLAGS="$LDFLAGS -pthread"
82933: else
82934:
82935:
82936: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
82937:
82938: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
82939: if test -n "$unique" && test "`eval $cmd`" = "" ; then
82940: eval "EXTRA_LDFLAGS$unique=set"
82941: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
82942: fi
82943:
82944: fi
82945: ;;
82946: -l*)
82947: ac_ii=`echo $ac_i|cut -c 3-`
82948:
82949:
82950: case $ac_ii in
82951: c|c_r|pthread*) ;;
82952: *)
82953: if test "$ext_shared" = "yes"; then
82954: LDFLAGS="$LDFLAGS -l$ac_ii"
82955: else
82956:
82957:
82958: case $ac_ii in
82959: c|c_r|pthread*) ;;
82960: *)
82961: LIBS="$LIBS -l$ac_ii"
82962: ;;
82963: esac
82964:
82965:
82966: fi
82967: ;;
82968: esac
82969:
82970:
82971: ;;
82972: -L*)
82973: ac_ii=`echo $ac_i|cut -c 3-`
82974:
82975: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
82976:
82977: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
82978: ai_p=$ac_ii
82979: else
82980:
82981: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
82982:
82983: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
82984: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
82985: fi
82986:
82987:
82988: if test "$ext_shared" = "yes"; then
82989: LDFLAGS="-L$ai_p $LDFLAGS"
82990: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
82991: else
82992:
82993:
82994:
82995: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
82996:
82997: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
82998: if test -n "$unique" && test "`eval $cmd`" = "" ; then
82999: eval "LIBPATH$unique=set"
83000:
83001: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
83002: LDFLAGS="$LDFLAGS -L$ai_p"
83003: PHP_RPATHS="$PHP_RPATHS $ai_p"
83004:
83005: fi
83006:
83007:
83008: fi
83009:
83010: fi
83011:
83012: ;;
83013: esac
83014: done
83015:
83016: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_callback_read_char in -lreadline" >&5
83017: $as_echo_n "checking for rl_callback_read_char in -lreadline... " >&6; }
83018: if ${ac_cv_lib_readline_rl_callback_read_char+:} false; then :
83019: $as_echo_n "(cached) " >&6
83020: else
83021: ac_check_lib_save_LIBS=$LIBS
83022: LIBS="-lreadline $LIBS"
83023: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
83024: /* end confdefs.h. */
83025:
83026: /* Override any GCC internal prototype to avoid an error.
83027: Use char because int might match the return type of a GCC
83028: builtin and then its argument prototype would still apply. */
83029: #ifdef __cplusplus
83030: extern "C"
83031: #endif
83032: char rl_callback_read_char ();
83033: int
83034: main ()
83035: {
83036: return rl_callback_read_char ();
83037: ;
83038: return 0;
83039: }
83040: _ACEOF
83041: if ac_fn_c_try_link "$LINENO"; then :
83042: ac_cv_lib_readline_rl_callback_read_char=yes
83043: else
83044: ac_cv_lib_readline_rl_callback_read_char=no
83045: fi
83046: rm -f core conftest.err conftest.$ac_objext \
83047: conftest$ac_exeext conftest.$ac_ext
83048: LIBS=$ac_check_lib_save_LIBS
83049: fi
83050: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_callback_read_char" >&5
83051: $as_echo "$ac_cv_lib_readline_rl_callback_read_char" >&6; }
83052: if test "x$ac_cv_lib_readline_rl_callback_read_char" = xyes; then :
83053:
83054: LDFLAGS=$save_old_LDFLAGS
83055: ext_shared=$save_ext_shared
83056:
83057:
83058: $as_echo "#define HAVE_RL_CALLBACK_READ_CHAR 1" >>confdefs.h
83059:
83060:
83061:
83062: else
83063:
83064: LDFLAGS=$save_old_LDFLAGS
83065: ext_shared=$save_ext_shared
83066: unset ac_cv_lib_readline_rl_callback_read_char
83067:
83068:
83069: fi
83070:
83071:
83072:
83073: $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
83074:
83075:
83076: elif test "$PHP_LIBEDIT" != "no"; then
83077:
83078: for i in $PHP_LIBEDIT /usr/local /usr; do
83079: test -f $i/include/editline/readline.h && LIBEDIT_DIR=$i && break
83080: done
83081:
83082: if test -z "$LIBEDIT_DIR"; then
83083: as_fn_error $? "Please reinstall libedit - I cannot find readline.h" "$LINENO" 5
83084: fi
83085:
83086:
83087: if test "$LIBEDIT_DIR/include" != "/usr/include"; then
83088:
83089: if test -z "$LIBEDIT_DIR/include" || echo "$LIBEDIT_DIR/include" | grep '^/' >/dev/null ; then
83090: ai_p=$LIBEDIT_DIR/include
83091: else
83092:
83093: ep_dir="`echo $LIBEDIT_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
83094:
83095: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
83096: ai_p="$ep_realdir/`basename \"$LIBEDIT_DIR/include\"`"
83097: fi
83098:
83099:
83100:
83101: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
83102:
83103: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
83104: if test -n "$unique" && test "`eval $cmd`" = "" ; then
83105: eval "INCLUDEPATH$unique=set"
83106:
83107: if test ""; then
83108: INCLUDES="-I$ai_p $INCLUDES"
83109: else
83110: INCLUDES="$INCLUDES -I$ai_p"
83111: fi
83112:
83113: fi
83114:
83115: fi
83116:
83117:
83118: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
83119: $as_echo_n "checking for tgetent in -lncurses... " >&6; }
83120: if ${ac_cv_lib_ncurses_tgetent+:} false; then :
83121: $as_echo_n "(cached) " >&6
83122: else
83123: ac_check_lib_save_LIBS=$LIBS
83124: LIBS="-lncurses $LIBS"
83125: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
83126: /* end confdefs.h. */
83127:
83128: /* Override any GCC internal prototype to avoid an error.
83129: Use char because int might match the return type of a GCC
83130: builtin and then its argument prototype would still apply. */
83131: #ifdef __cplusplus
83132: extern "C"
83133: #endif
83134: char tgetent ();
83135: int
83136: main ()
83137: {
83138: return tgetent ();
83139: ;
83140: return 0;
83141: }
83142: _ACEOF
83143: if ac_fn_c_try_link "$LINENO"; then :
83144: ac_cv_lib_ncurses_tgetent=yes
83145: else
83146: ac_cv_lib_ncurses_tgetent=no
83147: fi
83148: rm -f core conftest.err conftest.$ac_objext \
83149: conftest$ac_exeext conftest.$ac_ext
83150: LIBS=$ac_check_lib_save_LIBS
83151: fi
83152: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
83153: $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
83154: if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then :
83155:
83156:
83157:
83158: case ncurses in
83159: c|c_r|pthread*) ;;
83160: *)
83161: if test "$ext_shared" = "yes"; then
83162: READLINE_SHARED_LIBADD="-lncurses $READLINE_SHARED_LIBADD"
83163: else
83164:
83165:
83166: case ncurses in
83167: c|c_r|pthread*) ;;
83168: *)
83169: LIBS="-lncurses $LIBS"
83170: ;;
83171: esac
83172:
83173:
83174: fi
83175: ;;
83176: esac
83177:
83178:
83179:
83180: else
83181:
83182: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
83183: $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
83184: if ${ac_cv_lib_termcap_tgetent+:} false; then :
83185: $as_echo_n "(cached) " >&6
83186: else
83187: ac_check_lib_save_LIBS=$LIBS
83188: LIBS="-ltermcap $LIBS"
83189: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
83190: /* end confdefs.h. */
83191:
83192: /* Override any GCC internal prototype to avoid an error.
83193: Use char because int might match the return type of a GCC
83194: builtin and then its argument prototype would still apply. */
83195: #ifdef __cplusplus
83196: extern "C"
83197: #endif
83198: char tgetent ();
83199: int
83200: main ()
83201: {
83202: return tgetent ();
83203: ;
83204: return 0;
83205: }
83206: _ACEOF
83207: if ac_fn_c_try_link "$LINENO"; then :
83208: ac_cv_lib_termcap_tgetent=yes
83209: else
83210: ac_cv_lib_termcap_tgetent=no
83211: fi
83212: rm -f core conftest.err conftest.$ac_objext \
83213: conftest$ac_exeext conftest.$ac_ext
83214: LIBS=$ac_check_lib_save_LIBS
83215: fi
83216: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
83217: $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
83218: if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
83219:
83220:
83221:
83222: case termcap in
83223: c|c_r|pthread*) ;;
83224: *)
83225: if test "$ext_shared" = "yes"; then
83226: READLINE_SHARED_LIBADD="-ltermcap $READLINE_SHARED_LIBADD"
83227: else
83228:
83229:
83230: case termcap in
83231: c|c_r|pthread*) ;;
83232: *)
83233: LIBS="-ltermcap $LIBS"
83234: ;;
83235: esac
83236:
83237:
83238: fi
83239: ;;
83240: esac
83241:
83242:
83243:
83244: fi
83245:
83246:
83247: fi
83248:
83249:
83250:
83251: save_old_LDFLAGS=$LDFLAGS
83252: ac_stuff="
83253: -L$READLINE_DIR/$PHP_LIBDIR
83254: "
83255:
83256: save_ext_shared=$ext_shared
83257: ext_shared=yes
83258:
83259: for ac_i in $ac_stuff; do
83260: case $ac_i in
83261: -pthread)
83262: if test "$ext_shared" = "yes"; then
83263: LDFLAGS="$LDFLAGS -pthread"
83264: else
83265:
83266:
83267: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
83268:
83269: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
83270: if test -n "$unique" && test "`eval $cmd`" = "" ; then
83271: eval "EXTRA_LDFLAGS$unique=set"
83272: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
83273: fi
83274:
83275: fi
83276: ;;
83277: -l*)
83278: ac_ii=`echo $ac_i|cut -c 3-`
83279:
83280:
83281: case $ac_ii in
83282: c|c_r|pthread*) ;;
83283: *)
83284: if test "$ext_shared" = "yes"; then
83285: LDFLAGS="$LDFLAGS -l$ac_ii"
83286: else
83287:
83288:
83289: case $ac_ii in
83290: c|c_r|pthread*) ;;
83291: *)
83292: LIBS="$LIBS -l$ac_ii"
83293: ;;
83294: esac
83295:
83296:
83297: fi
83298: ;;
83299: esac
83300:
83301:
83302: ;;
83303: -L*)
83304: ac_ii=`echo $ac_i|cut -c 3-`
83305:
83306: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
83307:
83308: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
83309: ai_p=$ac_ii
83310: else
83311:
83312: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
83313:
83314: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
83315: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
83316: fi
83317:
83318:
83319: if test "$ext_shared" = "yes"; then
83320: LDFLAGS="-L$ai_p $LDFLAGS"
83321: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
83322: else
83323:
83324:
83325:
83326: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
83327:
83328: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
83329: if test -n "$unique" && test "`eval $cmd`" = "" ; then
83330: eval "LIBPATH$unique=set"
83331:
83332: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
83333: LDFLAGS="$LDFLAGS -L$ai_p"
83334: PHP_RPATHS="$PHP_RPATHS $ai_p"
83335:
83336: fi
83337:
83338:
83339: fi
83340:
83341: fi
83342:
83343: ;;
83344: esac
83345: done
83346:
83347: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -ledit" >&5
83348: $as_echo_n "checking for readline in -ledit... " >&6; }
83349: if ${ac_cv_lib_edit_readline+:} false; then :
83350: $as_echo_n "(cached) " >&6
83351: else
83352: ac_check_lib_save_LIBS=$LIBS
83353: LIBS="-ledit $LIBS"
83354: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
83355: /* end confdefs.h. */
83356:
83357: /* Override any GCC internal prototype to avoid an error.
83358: Use char because int might match the return type of a GCC
83359: builtin and then its argument prototype would still apply. */
83360: #ifdef __cplusplus
83361: extern "C"
83362: #endif
83363: char readline ();
83364: int
83365: main ()
83366: {
83367: return readline ();
83368: ;
83369: return 0;
83370: }
83371: _ACEOF
83372: if ac_fn_c_try_link "$LINENO"; then :
83373: ac_cv_lib_edit_readline=yes
83374: else
83375: ac_cv_lib_edit_readline=no
83376: fi
83377: rm -f core conftest.err conftest.$ac_objext \
83378: conftest$ac_exeext conftest.$ac_ext
83379: LIBS=$ac_check_lib_save_LIBS
83380: fi
83381: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_readline" >&5
83382: $as_echo "$ac_cv_lib_edit_readline" >&6; }
83383: if test "x$ac_cv_lib_edit_readline" = xyes; then :
83384:
83385: LDFLAGS=$save_old_LDFLAGS
83386: ext_shared=$save_ext_shared
83387:
83388:
83389:
83390: if test "$ext_shared" = "yes"; then
83391: READLINE_SHARED_LIBADD="-ledit $READLINE_SHARED_LIBADD"
83392: if test -n "$LIBEDIT_DIR/$PHP_LIBDIR"; then
83393:
83394: if test "$LIBEDIT_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LIBEDIT_DIR/$PHP_LIBDIR" != "/usr/lib"; then
83395:
83396: if test -z "$LIBEDIT_DIR/$PHP_LIBDIR" || echo "$LIBEDIT_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
83397: ai_p=$LIBEDIT_DIR/$PHP_LIBDIR
83398: else
83399:
83400: ep_dir="`echo $LIBEDIT_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
83401:
83402: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
83403: ai_p="$ep_realdir/`basename \"$LIBEDIT_DIR/$PHP_LIBDIR\"`"
83404: fi
83405:
83406:
83407: if test "$ext_shared" = "yes"; then
83408: READLINE_SHARED_LIBADD="-L$ai_p $READLINE_SHARED_LIBADD"
83409: test -n "$ld_runpath_switch" && READLINE_SHARED_LIBADD="$ld_runpath_switch$ai_p $READLINE_SHARED_LIBADD"
83410: else
83411:
83412:
83413:
83414: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
83415:
83416: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
83417: if test -n "$unique" && test "`eval $cmd`" = "" ; then
83418: eval "LIBPATH$unique=set"
83419:
83420: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
83421: LDFLAGS="$LDFLAGS -L$ai_p"
83422: PHP_RPATHS="$PHP_RPATHS $ai_p"
83423:
83424: fi
83425:
83426:
83427: fi
83428:
83429: fi
83430:
83431: fi
83432: else
83433:
83434:
83435: if test -n "$LIBEDIT_DIR/$PHP_LIBDIR"; then
83436:
83437: if test "$LIBEDIT_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LIBEDIT_DIR/$PHP_LIBDIR" != "/usr/lib"; then
83438:
83439: if test -z "$LIBEDIT_DIR/$PHP_LIBDIR" || echo "$LIBEDIT_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
83440: ai_p=$LIBEDIT_DIR/$PHP_LIBDIR
83441: else
83442:
83443: ep_dir="`echo $LIBEDIT_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
83444:
83445: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
83446: ai_p="$ep_realdir/`basename \"$LIBEDIT_DIR/$PHP_LIBDIR\"`"
83447: fi
83448:
83449:
83450:
83451:
83452:
83453: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
83454:
83455: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
83456: if test -n "$unique" && test "`eval $cmd`" = "" ; then
83457: eval "LIBPATH$unique=set"
83458:
83459: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
83460: LDFLAGS="$LDFLAGS -L$ai_p"
83461: PHP_RPATHS="$PHP_RPATHS $ai_p"
83462:
83463: fi
83464:
83465:
83466:
83467: fi
83468:
83469: fi
83470:
83471:
83472: case edit in
83473: c|c_r|pthread*) ;;
83474: *)
83475: LIBS="-ledit $LIBS"
83476: ;;
83477: esac
83478:
83479:
83480:
83481:
83482: fi
83483:
83484:
83485:
83486:
83487: else
83488:
83489: LDFLAGS=$save_old_LDFLAGS
83490: ext_shared=$save_ext_shared
83491: unset ac_cv_lib_edit_readline
83492:
83493: as_fn_error $? "edit library required by readline not found" "$LINENO" 5
83494:
83495:
83496: fi
83497:
83498:
83499:
83500: $as_echo "#define HAVE_LIBEDIT 1" >>confdefs.h
83501:
83502: fi
83503:
83504: if test "$PHP_READLINE" != "no" || test "$PHP_LIBEDIT" != "no"; then
83505: for ac_func in rl_completion_matches
83506: do :
83507: ac_fn_c_check_func "$LINENO" "rl_completion_matches" "ac_cv_func_rl_completion_matches"
83508: if test "x$ac_cv_func_rl_completion_matches" = xyes; then :
83509: cat >>confdefs.h <<_ACEOF
83510: #define HAVE_RL_COMPLETION_MATCHES 1
83511: _ACEOF
83512:
83513: fi
83514: done
83515:
83516:
83517: ext_builddir=ext/readline
83518: ext_srcdir=$abs_srcdir/ext/readline
83519:
83520: ac_extra=
83521:
83522: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "cli" != "cli"; then
83523: PHP_READLINE_SHARED=no
83524:
83525:
83526: case ext/readline in
83527: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
83528: /*) ac_srcdir=`echo "ext/readline"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
83529: *) ac_srcdir="$abs_srcdir/ext/readline/"; ac_bdir="ext/readline/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
83530: esac
83531:
83532:
83533:
83534: b_c_pre=$php_c_pre
83535: b_cxx_pre=$php_cxx_pre
83536: b_c_meta=$php_c_meta
83537: b_cxx_meta=$php_cxx_meta
83538: b_c_post=$php_c_post
83539: b_cxx_post=$php_cxx_post
83540: b_lo=$php_lo
83541:
83542:
83543: old_IFS=$IFS
83544: for ac_src in readline.c; do
83545:
83546: IFS=.
83547: set $ac_src
83548: ac_obj=$1
83549: IFS=$old_IFS
83550:
83551: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
83552:
83553: case $ac_src in
83554: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
83555: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
83556: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
83557: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
83558: esac
83559:
83560: cat >>Makefile.objects<<EOF
83561: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
83562: $ac_comp
83563: EOF
83564: done
83565:
83566:
83567: EXT_STATIC="$EXT_STATIC readline"
83568: if test "$ext_shared" != "nocli"; then
83569: EXT_CLI_STATIC="$EXT_CLI_STATIC readline"
83570: fi
83571: else
83572: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
83573: PHP_READLINE_SHARED=yes
83574:
83575: case ext/readline in
83576: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
83577: /*) ac_srcdir=`echo "ext/readline"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
83578: *) ac_srcdir="$abs_srcdir/ext/readline/"; ac_bdir="ext/readline/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
83579: esac
83580:
83581:
83582:
83583: b_c_pre=$shared_c_pre
83584: b_cxx_pre=$shared_cxx_pre
83585: b_c_meta=$shared_c_meta
83586: b_cxx_meta=$shared_cxx_meta
83587: b_c_post=$shared_c_post
83588: b_cxx_post=$shared_cxx_post
83589: b_lo=$shared_lo
83590:
83591:
83592: old_IFS=$IFS
83593: for ac_src in readline.c; do
83594:
83595: IFS=.
83596: set $ac_src
83597: ac_obj=$1
83598: IFS=$old_IFS
83599:
83600: shared_objects_readline="$shared_objects_readline $ac_bdir$ac_obj.lo"
83601:
83602: case $ac_src in
83603: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
83604: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
83605: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
83606: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
83607: esac
83608:
83609: cat >>Makefile.objects<<EOF
83610: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
83611: $ac_comp
83612: EOF
83613: done
83614:
83615: case $host_alias in
83616: *netware*)
83617:
83618: install_modules="install-modules"
83619:
83620: case $host_alias in
83621: *aix*)
83622: suffix=so
83623: 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'
83624: ;;
83625: *netware*)
83626: suffix=nlm
83627: link_cmd='$(LIBTOOL) --mode=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)'
83628: ;;
83629: *)
83630: suffix=la
83631: link_cmd='$(LIBTOOL) --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)'
83632: ;;
83633: esac
83634:
83635: if test "x" = "xyes"; then
83636: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpreadline.$suffix"
83637: else
83638: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpreadline.$suffix"
83639: fi
83640:
83641: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_readline"
83642:
83643: cat >>Makefile.objects<<EOF
83644: \$(phplibdir)/phpreadline.$suffix: $ext_builddir/phpreadline.$suffix
83645: \$(LIBTOOL) --mode=install cp $ext_builddir/phpreadline.$suffix \$(phplibdir)
83646:
83647: $ext_builddir/phpreadline.$suffix: \$(shared_objects_readline) \$(PHPREADLINE_SHARED_DEPENDENCIES)
83648: $link_cmd
83649:
83650: EOF
83651:
83652: ;;
83653: *)
83654:
83655: install_modules="install-modules"
83656:
83657: case $host_alias in
83658: *aix*)
83659: suffix=so
83660: 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'
83661: ;;
83662: *netware*)
83663: suffix=nlm
83664: link_cmd='$(LIBTOOL) --mode=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)'
83665: ;;
83666: *)
83667: suffix=la
83668: link_cmd='$(LIBTOOL) --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)'
83669: ;;
83670: esac
83671:
83672: if test "x" = "xyes"; then
83673: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/readline.$suffix"
83674: else
83675: PHP_MODULES="$PHP_MODULES \$(phplibdir)/readline.$suffix"
83676: fi
83677:
83678: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_readline"
83679:
83680: cat >>Makefile.objects<<EOF
83681: \$(phplibdir)/readline.$suffix: $ext_builddir/readline.$suffix
83682: \$(LIBTOOL) --mode=install cp $ext_builddir/readline.$suffix \$(phplibdir)
83683:
83684: $ext_builddir/readline.$suffix: \$(shared_objects_readline) \$(READLINE_SHARED_DEPENDENCIES)
83685: $link_cmd
83686:
83687: EOF
83688:
83689: ;;
83690: esac
83691:
83692: cat >>confdefs.h <<_ACEOF
83693: #define COMPILE_DL_READLINE 1
83694: _ACEOF
83695:
83696: fi
83697: fi
83698:
83699: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "cli" = "cli"; then
83700: PHP_READLINE_SHARED=no
83701:
83702:
83703: case ext/readline in
83704: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
83705: /*) ac_srcdir=`echo "ext/readline"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
83706: *) ac_srcdir="$abs_srcdir/ext/readline/"; ac_bdir="ext/readline/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
83707: esac
83708:
83709:
83710:
83711: b_c_pre=$php_c_pre
83712: b_cxx_pre=$php_cxx_pre
83713: b_c_meta=$php_c_meta
83714: b_cxx_meta=$php_cxx_meta
83715: b_c_post=$php_c_post
83716: b_cxx_post=$php_cxx_post
83717: b_lo=$php_lo
83718:
83719:
83720: old_IFS=$IFS
83721: for ac_src in readline.c; do
83722:
83723: IFS=.
83724: set $ac_src
83725: ac_obj=$1
83726: IFS=$old_IFS
83727:
83728: PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
83729:
83730: case $ac_src in
83731: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
83732: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
83733: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
83734: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
83735: esac
83736:
83737: cat >>Makefile.objects<<EOF
83738: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
83739: $ac_comp
83740: EOF
83741: done
83742:
83743:
83744:
83745:
83746: case ext/readline in
83747: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
83748: /*) ac_srcdir=`echo "ext/readline"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
83749: *) ac_srcdir="$abs_srcdir/ext/readline/"; ac_bdir="ext/readline/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
83750: esac
83751:
83752:
83753:
83754: b_c_pre=$php_c_pre
83755: b_cxx_pre=$php_cxx_pre
83756: b_c_meta=$php_c_meta
83757: b_cxx_meta=$php_cxx_meta
83758: b_c_post=$php_c_post
83759: b_cxx_post=$php_cxx_post
83760: b_lo=$php_lo
83761:
83762:
83763: old_IFS=$IFS
83764: for ac_src in readline.c; do
83765:
83766: IFS=.
83767: set $ac_src
83768: ac_obj=$1
83769: IFS=$old_IFS
83770:
83771: PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo"
83772:
83773: case $ac_src in
83774: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
83775: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
83776: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
83777: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
83778: esac
83779:
83780: cat >>Makefile.objects<<EOF
83781: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
83782: $ac_comp
83783: EOF
83784: done
83785:
83786:
83787:
83788:
83789: case ext/readline in
83790: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
83791: /*) ac_srcdir=`echo "ext/readline"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
83792: *) ac_srcdir="$abs_srcdir/ext/readline/"; ac_bdir="ext/readline/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
83793: esac
83794:
83795:
83796:
83797: b_c_pre=$php_c_pre
83798: b_cxx_pre=$php_cxx_pre
83799: b_c_meta=$php_c_meta
83800: b_cxx_meta=$php_cxx_meta
83801: b_c_post=$php_c_post
83802: b_cxx_post=$php_cxx_post
83803: b_lo=$php_lo
83804:
83805:
83806: old_IFS=$IFS
83807: for ac_src in readline.c; do
83808:
83809: IFS=.
83810: set $ac_src
83811: ac_obj=$1
83812: IFS=$old_IFS
83813:
83814: PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo"
83815:
83816: case $ac_src in
83817: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
83818: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
83819: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
83820: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
83821: esac
83822:
83823: cat >>Makefile.objects<<EOF
83824: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
83825: $ac_comp
83826: EOF
83827: done
83828:
83829:
83830: EXT_CLI_STATIC="$EXT_CLI_STATIC readline"
83831: fi
83832:
83833:
83834: BUILD_DIR="$BUILD_DIR $ext_builddir"
83835:
83836:
83837:
83838: if test "$ext_builddir" = "."; then
83839: PHP_PECL_EXTENSION=readline
83840:
83841: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
83842:
83843: fi
83844:
83845:
83846: PHP_VAR_SUBST="$PHP_VAR_SUBST READLINE_SHARED_LIBADD"
83847:
83848: fi
83849:
83850:
83851:
83852: php_with_recode=no
83853:
83854: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recode support" >&5
83855: $as_echo_n "checking for recode support... " >&6; }
83856:
83857: # Check whether --with-recode was given.
83858: if test "${with_recode+set}" = set; then :
83859: withval=$with_recode; PHP_RECODE=$withval
83860: else
83861:
83862: PHP_RECODE=no
83863: test "$PHP_ENABLE_ALL" && PHP_RECODE=$PHP_ENABLE_ALL
83864:
83865: fi
83866:
83867:
83868:
83869: ext_output="yes, shared"
83870: ext_shared=yes
83871: case $PHP_RECODE in
83872: shared,*)
83873: PHP_RECODE=`echo "$PHP_RECODE"|$SED 's/^shared,//'`
83874: ;;
83875: shared)
83876: PHP_RECODE=yes
83877: ;;
83878: no)
83879: ext_output=no
83880: ext_shared=no
83881: ;;
83882: *)
83883: ext_output=yes
83884: ext_shared=no
83885: ;;
83886: esac
83887:
83888:
83889:
83890: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
83891: $as_echo "$ext_output" >&6; }
83892:
83893:
83894:
83895:
83896: if test "$PHP_RECODE" != "no"; then
83897: RECODE_LIST="$PHP_RECODE /usr/local /usr /opt"
83898:
83899: for i in $RECODE_LIST; do
83900: if test -f $i/include/recode.h; then
83901: RECODE_DIR=$i
83902: RECODE_INC=include
83903: RECODE_LIB=$PHP_LIBDIR
83904: fi
83905: if test -f $i/include/recode/recode.h; then
83906: RECODE_DIR=$i
83907: RECODE_INC=include/recode
83908: RECODE_LIB=$PHP_LIBDIR/recode
83909: fi
83910: if test -f $i/recode/include/recode.h; then
83911: RECODE_DIR=$i/recode
83912: RECODE_INC=include
83913: RECODE_LIB=$PHP_LIBDIR
83914: fi
83915: test -n "$RECODE_DIR" && break
83916: done
83917:
83918: if test -z "$RECODE_DIR"; then
83919: as_fn_error $? "Can not find recode.h anywhere under $RECODE_LIST." "$LINENO" 5
83920: fi
83921:
83922:
83923: save_old_LDFLAGS=$LDFLAGS
83924: ac_stuff="
83925: -L$RECODE_DIR/$RECODE_LIB
83926: "
83927:
83928: save_ext_shared=$ext_shared
83929: ext_shared=yes
83930:
83931: for ac_i in $ac_stuff; do
83932: case $ac_i in
83933: -pthread)
83934: if test "$ext_shared" = "yes"; then
83935: LDFLAGS="$LDFLAGS -pthread"
83936: else
83937:
83938:
83939: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
83940:
83941: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
83942: if test -n "$unique" && test "`eval $cmd`" = "" ; then
83943: eval "EXTRA_LDFLAGS$unique=set"
83944: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
83945: fi
83946:
83947: fi
83948: ;;
83949: -l*)
83950: ac_ii=`echo $ac_i|cut -c 3-`
83951:
83952:
83953: case $ac_ii in
83954: c|c_r|pthread*) ;;
83955: *)
83956: if test "$ext_shared" = "yes"; then
83957: LDFLAGS="$LDFLAGS -l$ac_ii"
83958: else
83959:
83960:
83961: case $ac_ii in
83962: c|c_r|pthread*) ;;
83963: *)
83964: LIBS="$LIBS -l$ac_ii"
83965: ;;
83966: esac
83967:
83968:
83969: fi
83970: ;;
83971: esac
83972:
83973:
83974: ;;
83975: -L*)
83976: ac_ii=`echo $ac_i|cut -c 3-`
83977:
83978: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
83979:
83980: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
83981: ai_p=$ac_ii
83982: else
83983:
83984: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
83985:
83986: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
83987: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
83988: fi
83989:
83990:
83991: if test "$ext_shared" = "yes"; then
83992: LDFLAGS="-L$ai_p $LDFLAGS"
83993: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
83994: else
83995:
83996:
83997:
83998: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
83999:
84000: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
84001: if test -n "$unique" && test "`eval $cmd`" = "" ; then
84002: eval "LIBPATH$unique=set"
84003:
84004: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
84005: LDFLAGS="$LDFLAGS -L$ai_p"
84006: PHP_RPATHS="$PHP_RPATHS $ai_p"
84007:
84008: fi
84009:
84010:
84011: fi
84012:
84013: fi
84014:
84015: ;;
84016: esac
84017: done
84018:
84019: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recode_format_table in -lrecode" >&5
84020: $as_echo_n "checking for recode_format_table in -lrecode... " >&6; }
84021: if ${ac_cv_lib_recode_recode_format_table+:} false; then :
84022: $as_echo_n "(cached) " >&6
84023: else
84024: ac_check_lib_save_LIBS=$LIBS
84025: LIBS="-lrecode $LIBS"
84026: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
84027: /* end confdefs.h. */
84028:
84029: /* Override any GCC internal prototype to avoid an error.
84030: Use char because int might match the return type of a GCC
84031: builtin and then its argument prototype would still apply. */
84032: #ifdef __cplusplus
84033: extern "C"
84034: #endif
84035: char recode_format_table ();
84036: int
84037: main ()
84038: {
84039: return recode_format_table ();
84040: ;
84041: return 0;
84042: }
84043: _ACEOF
84044: if ac_fn_c_try_link "$LINENO"; then :
84045: ac_cv_lib_recode_recode_format_table=yes
84046: else
84047: ac_cv_lib_recode_recode_format_table=no
84048: fi
84049: rm -f core conftest.err conftest.$ac_objext \
84050: conftest$ac_exeext conftest.$ac_ext
84051: LIBS=$ac_check_lib_save_LIBS
84052: fi
84053: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_recode_recode_format_table" >&5
84054: $as_echo "$ac_cv_lib_recode_recode_format_table" >&6; }
84055: if test "x$ac_cv_lib_recode_recode_format_table" = xyes; then :
84056:
84057: LDFLAGS=$save_old_LDFLAGS
84058: ext_shared=$save_ext_shared
84059:
84060:
84061:
84062: if test "$ext_shared" = "yes"; then
84063: RECODE_SHARED_LIBADD="-lrecode $RECODE_SHARED_LIBADD"
84064: if test -n "$RECODE_DIR/$RECODE_LIB"; then
84065:
84066: if test "$RECODE_DIR/$RECODE_LIB" != "/usr/$PHP_LIBDIR" && test "$RECODE_DIR/$RECODE_LIB" != "/usr/lib"; then
84067:
84068: if test -z "$RECODE_DIR/$RECODE_LIB" || echo "$RECODE_DIR/$RECODE_LIB" | grep '^/' >/dev/null ; then
84069: ai_p=$RECODE_DIR/$RECODE_LIB
84070: else
84071:
84072: ep_dir="`echo $RECODE_DIR/$RECODE_LIB|$SED 's%/*[^/][^/]*/*$%%'`"
84073:
84074: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
84075: ai_p="$ep_realdir/`basename \"$RECODE_DIR/$RECODE_LIB\"`"
84076: fi
84077:
84078:
84079: if test "$ext_shared" = "yes"; then
84080: RECODE_SHARED_LIBADD="-L$ai_p $RECODE_SHARED_LIBADD"
84081: test -n "$ld_runpath_switch" && RECODE_SHARED_LIBADD="$ld_runpath_switch$ai_p $RECODE_SHARED_LIBADD"
84082: else
84083:
84084:
84085:
84086: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
84087:
84088: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
84089: if test -n "$unique" && test "`eval $cmd`" = "" ; then
84090: eval "LIBPATH$unique=set"
84091:
84092: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
84093: LDFLAGS="$LDFLAGS -L$ai_p"
84094: PHP_RPATHS="$PHP_RPATHS $ai_p"
84095:
84096: fi
84097:
84098:
84099: fi
84100:
84101: fi
84102:
84103: fi
84104: else
84105:
84106:
84107: if test -n "$RECODE_DIR/$RECODE_LIB"; then
84108:
84109: if test "$RECODE_DIR/$RECODE_LIB" != "/usr/$PHP_LIBDIR" && test "$RECODE_DIR/$RECODE_LIB" != "/usr/lib"; then
84110:
84111: if test -z "$RECODE_DIR/$RECODE_LIB" || echo "$RECODE_DIR/$RECODE_LIB" | grep '^/' >/dev/null ; then
84112: ai_p=$RECODE_DIR/$RECODE_LIB
84113: else
84114:
84115: ep_dir="`echo $RECODE_DIR/$RECODE_LIB|$SED 's%/*[^/][^/]*/*$%%'`"
84116:
84117: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
84118: ai_p="$ep_realdir/`basename \"$RECODE_DIR/$RECODE_LIB\"`"
84119: fi
84120:
84121:
84122:
84123:
84124:
84125: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
84126:
84127: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
84128: if test -n "$unique" && test "`eval $cmd`" = "" ; then
84129: eval "LIBPATH$unique=set"
84130:
84131: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
84132: LDFLAGS="$LDFLAGS -L$ai_p"
84133: PHP_RPATHS="$PHP_RPATHS $ai_p"
84134:
84135: fi
84136:
84137:
84138:
84139: fi
84140:
84141: fi
84142:
84143:
84144: case recode in
84145: c|c_r|pthread*) ;;
84146: *)
84147: LIBS="-lrecode $LIBS"
84148: ;;
84149: esac
84150:
84151:
84152:
84153:
84154: fi
84155:
84156:
84157:
84158:
84159: else
84160:
84161: LDFLAGS=$save_old_LDFLAGS
84162: ext_shared=$save_ext_shared
84163: unset ac_cv_lib_recode_recode_format_table
84164:
84165: old_LDFLAGS=$LDFLAGS
84166: old_LIBS=$LIBS
84167: LDFLAGS="$LDFLAGS -L$RECODE_DIR/$RECODE_LIB"
84168: LIBS="$LIBS -lrecode"
84169: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
84170: /* end confdefs.h. */
84171:
84172: char *program_name;
84173:
84174: int
84175: main ()
84176: {
84177:
84178: recode_format_table();
84179:
84180: ;
84181: return 0;
84182: }
84183: _ACEOF
84184: if ac_fn_c_try_link "$LINENO"; then :
84185:
84186:
84187:
84188: if test "$ext_shared" = "yes"; then
84189: RECODE_SHARED_LIBADD="-lrecode $RECODE_SHARED_LIBADD"
84190: if test -n "$RECODE_DIR/$RECODE_LIB"; then
84191:
84192: if test "$RECODE_DIR/$RECODE_LIB" != "/usr/$PHP_LIBDIR" && test "$RECODE_DIR/$RECODE_LIB" != "/usr/lib"; then
84193:
84194: if test -z "$RECODE_DIR/$RECODE_LIB" || echo "$RECODE_DIR/$RECODE_LIB" | grep '^/' >/dev/null ; then
84195: ai_p=$RECODE_DIR/$RECODE_LIB
84196: else
84197:
84198: ep_dir="`echo $RECODE_DIR/$RECODE_LIB|$SED 's%/*[^/][^/]*/*$%%'`"
84199:
84200: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
84201: ai_p="$ep_realdir/`basename \"$RECODE_DIR/$RECODE_LIB\"`"
84202: fi
84203:
84204:
84205: if test "$ext_shared" = "yes"; then
84206: RECODE_SHARED_LIBADD="-L$ai_p $RECODE_SHARED_LIBADD"
84207: test -n "$ld_runpath_switch" && RECODE_SHARED_LIBADD="$ld_runpath_switch$ai_p $RECODE_SHARED_LIBADD"
84208: else
84209:
84210:
84211:
84212: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
84213:
84214: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
84215: if test -n "$unique" && test "`eval $cmd`" = "" ; then
84216: eval "LIBPATH$unique=set"
84217:
84218: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
84219: LDFLAGS="$LDFLAGS -L$ai_p"
84220: PHP_RPATHS="$PHP_RPATHS $ai_p"
84221:
84222: fi
84223:
84224:
84225: fi
84226:
84227: fi
84228:
84229: fi
84230: else
84231:
84232:
84233: if test -n "$RECODE_DIR/$RECODE_LIB"; then
84234:
84235: if test "$RECODE_DIR/$RECODE_LIB" != "/usr/$PHP_LIBDIR" && test "$RECODE_DIR/$RECODE_LIB" != "/usr/lib"; then
84236:
84237: if test -z "$RECODE_DIR/$RECODE_LIB" || echo "$RECODE_DIR/$RECODE_LIB" | grep '^/' >/dev/null ; then
84238: ai_p=$RECODE_DIR/$RECODE_LIB
84239: else
84240:
84241: ep_dir="`echo $RECODE_DIR/$RECODE_LIB|$SED 's%/*[^/][^/]*/*$%%'`"
84242:
84243: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
84244: ai_p="$ep_realdir/`basename \"$RECODE_DIR/$RECODE_LIB\"`"
84245: fi
84246:
84247:
84248:
84249:
84250:
84251: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
84252:
84253: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
84254: if test -n "$unique" && test "`eval $cmd`" = "" ; then
84255: eval "LIBPATH$unique=set"
84256:
84257: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
84258: LDFLAGS="$LDFLAGS -L$ai_p"
84259: PHP_RPATHS="$PHP_RPATHS $ai_p"
84260:
84261: fi
84262:
84263:
84264:
84265: fi
84266:
84267: fi
84268:
84269:
84270: case recode in
84271: c|c_r|pthread*) ;;
84272: *)
84273: DLIBS="-lrecode $DLIBS"
84274: ;;
84275: esac
84276:
84277:
84278:
84279:
84280: fi
84281:
84282:
84283:
84284: $as_echo "#define HAVE_BROKEN_RECODE 1" >>confdefs.h
84285:
84286:
84287: else
84288:
84289: as_fn_error $? "I cannot link librecode (-L$RECODE_DIR/$RECODE_LIB -lrecode). Is it installed?" "$LINENO" 5
84290:
84291: fi
84292: rm -f core conftest.err conftest.$ac_objext \
84293: conftest$ac_exeext conftest.$ac_ext
84294: LIBS=$old_LIBS
84295: LDFLAGS=$old_LDFLAGS
84296:
84297:
84298: fi
84299:
84300:
84301:
84302: $as_echo "#define HAVE_LIBRECODE 1" >>confdefs.h
84303:
84304:
84305: if test "$RECODE_DIR/$RECODE_INC" != "/usr/include"; then
84306:
84307: if test -z "$RECODE_DIR/$RECODE_INC" || echo "$RECODE_DIR/$RECODE_INC" | grep '^/' >/dev/null ; then
84308: ai_p=$RECODE_DIR/$RECODE_INC
84309: else
84310:
84311: ep_dir="`echo $RECODE_DIR/$RECODE_INC|$SED 's%/*[^/][^/]*/*$%%'`"
84312:
84313: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
84314: ai_p="$ep_realdir/`basename \"$RECODE_DIR/$RECODE_INC\"`"
84315: fi
84316:
84317:
84318:
84319: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
84320:
84321: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
84322: if test -n "$unique" && test "`eval $cmd`" = "" ; then
84323: eval "INCLUDEPATH$unique=set"
84324:
84325: if test ""; then
84326: INCLUDES="-I$ai_p $INCLUDES"
84327: else
84328: INCLUDES="$INCLUDES -I$ai_p"
84329: fi
84330:
84331: fi
84332:
84333: fi
84334:
84335:
84336: PHP_VAR_SUBST="$PHP_VAR_SUBST RECODE_SHARED_LIBADD"
84337:
84338: for ac_header in stdbool.h
84339: do :
84340: ac_fn_c_check_header_mongrel "$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" "$ac_includes_default"
84341: if test "x$ac_cv_header_stdbool_h" = xyes; then :
84342: cat >>confdefs.h <<_ACEOF
84343: #define HAVE_STDBOOL_H 1
84344: _ACEOF
84345:
84346: fi
84347:
84348: done
84349:
84350:
84351: ext_builddir=ext/recode
84352: ext_srcdir=$abs_srcdir/ext/recode
84353:
84354: ac_extra=
84355:
84356: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
84357: PHP_RECODE_SHARED=no
84358:
84359:
84360: case ext/recode in
84361: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
84362: /*) ac_srcdir=`echo "ext/recode"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
84363: *) ac_srcdir="$abs_srcdir/ext/recode/"; ac_bdir="ext/recode/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
84364: esac
84365:
84366:
84367:
84368: b_c_pre=$php_c_pre
84369: b_cxx_pre=$php_cxx_pre
84370: b_c_meta=$php_c_meta
84371: b_cxx_meta=$php_cxx_meta
84372: b_c_post=$php_c_post
84373: b_cxx_post=$php_cxx_post
84374: b_lo=$php_lo
84375:
84376:
84377: old_IFS=$IFS
84378: for ac_src in recode.c; do
84379:
84380: IFS=.
84381: set $ac_src
84382: ac_obj=$1
84383: IFS=$old_IFS
84384:
84385: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
84386:
84387: case $ac_src in
84388: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
84389: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
84390: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
84391: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
84392: esac
84393:
84394: cat >>Makefile.objects<<EOF
84395: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
84396: $ac_comp
84397: EOF
84398: done
84399:
84400:
84401: EXT_STATIC="$EXT_STATIC recode"
84402: if test "$ext_shared" != "nocli"; then
84403: EXT_CLI_STATIC="$EXT_CLI_STATIC recode"
84404: fi
84405: else
84406: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
84407: PHP_RECODE_SHARED=yes
84408:
84409: case ext/recode in
84410: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
84411: /*) ac_srcdir=`echo "ext/recode"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
84412: *) ac_srcdir="$abs_srcdir/ext/recode/"; ac_bdir="ext/recode/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
84413: esac
84414:
84415:
84416:
84417: b_c_pre=$shared_c_pre
84418: b_cxx_pre=$shared_cxx_pre
84419: b_c_meta=$shared_c_meta
84420: b_cxx_meta=$shared_cxx_meta
84421: b_c_post=$shared_c_post
84422: b_cxx_post=$shared_cxx_post
84423: b_lo=$shared_lo
84424:
84425:
84426: old_IFS=$IFS
84427: for ac_src in recode.c; do
84428:
84429: IFS=.
84430: set $ac_src
84431: ac_obj=$1
84432: IFS=$old_IFS
84433:
84434: shared_objects_recode="$shared_objects_recode $ac_bdir$ac_obj.lo"
84435:
84436: case $ac_src in
84437: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
84438: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
84439: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
84440: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
84441: esac
84442:
84443: cat >>Makefile.objects<<EOF
84444: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
84445: $ac_comp
84446: EOF
84447: done
84448:
84449: case $host_alias in
84450: *netware*)
84451:
84452: install_modules="install-modules"
84453:
84454: case $host_alias in
84455: *aix*)
84456: suffix=so
84457: 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'
84458: ;;
84459: *netware*)
84460: suffix=nlm
84461: link_cmd='$(LIBTOOL) --mode=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)'
84462: ;;
84463: *)
84464: suffix=la
84465: link_cmd='$(LIBTOOL) --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)'
84466: ;;
84467: esac
84468:
84469: if test "x" = "xyes"; then
84470: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phprecode.$suffix"
84471: else
84472: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phprecode.$suffix"
84473: fi
84474:
84475: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_recode"
84476:
84477: cat >>Makefile.objects<<EOF
84478: \$(phplibdir)/phprecode.$suffix: $ext_builddir/phprecode.$suffix
84479: \$(LIBTOOL) --mode=install cp $ext_builddir/phprecode.$suffix \$(phplibdir)
84480:
84481: $ext_builddir/phprecode.$suffix: \$(shared_objects_recode) \$(PHPRECODE_SHARED_DEPENDENCIES)
84482: $link_cmd
84483:
84484: EOF
84485:
84486: ;;
84487: *)
84488:
84489: install_modules="install-modules"
84490:
84491: case $host_alias in
84492: *aix*)
84493: suffix=so
84494: 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'
84495: ;;
84496: *netware*)
84497: suffix=nlm
84498: link_cmd='$(LIBTOOL) --mode=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)'
84499: ;;
84500: *)
84501: suffix=la
84502: link_cmd='$(LIBTOOL) --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)'
84503: ;;
84504: esac
84505:
84506: if test "x" = "xyes"; then
84507: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/recode.$suffix"
84508: else
84509: PHP_MODULES="$PHP_MODULES \$(phplibdir)/recode.$suffix"
84510: fi
84511:
84512: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_recode"
84513:
84514: cat >>Makefile.objects<<EOF
84515: \$(phplibdir)/recode.$suffix: $ext_builddir/recode.$suffix
84516: \$(LIBTOOL) --mode=install cp $ext_builddir/recode.$suffix \$(phplibdir)
84517:
84518: $ext_builddir/recode.$suffix: \$(shared_objects_recode) \$(RECODE_SHARED_DEPENDENCIES)
84519: $link_cmd
84520:
84521: EOF
84522:
84523: ;;
84524: esac
84525:
84526: cat >>confdefs.h <<_ACEOF
84527: #define COMPILE_DL_RECODE 1
84528: _ACEOF
84529:
84530: fi
84531: fi
84532:
84533: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
84534: PHP_RECODE_SHARED=no
84535:
84536:
84537: case ext/recode in
84538: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
84539: /*) ac_srcdir=`echo "ext/recode"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
84540: *) ac_srcdir="$abs_srcdir/ext/recode/"; ac_bdir="ext/recode/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
84541: esac
84542:
84543:
84544:
84545: b_c_pre=$php_c_pre
84546: b_cxx_pre=$php_cxx_pre
84547: b_c_meta=$php_c_meta
84548: b_cxx_meta=$php_cxx_meta
84549: b_c_post=$php_c_post
84550: b_cxx_post=$php_cxx_post
84551: b_lo=$php_lo
84552:
84553:
84554: old_IFS=$IFS
84555: for ac_src in recode.c; do
84556:
84557: IFS=.
84558: set $ac_src
84559: ac_obj=$1
84560: IFS=$old_IFS
84561:
84562: PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
84563:
84564: case $ac_src in
84565: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
84566: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
84567: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
84568: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
84569: esac
84570:
84571: cat >>Makefile.objects<<EOF
84572: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
84573: $ac_comp
84574: EOF
84575: done
84576:
84577:
84578:
84579:
84580: case ext/recode in
84581: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
84582: /*) ac_srcdir=`echo "ext/recode"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
84583: *) ac_srcdir="$abs_srcdir/ext/recode/"; ac_bdir="ext/recode/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
84584: esac
84585:
84586:
84587:
84588: b_c_pre=$php_c_pre
84589: b_cxx_pre=$php_cxx_pre
84590: b_c_meta=$php_c_meta
84591: b_cxx_meta=$php_cxx_meta
84592: b_c_post=$php_c_post
84593: b_cxx_post=$php_cxx_post
84594: b_lo=$php_lo
84595:
84596:
84597: old_IFS=$IFS
84598: for ac_src in recode.c; do
84599:
84600: IFS=.
84601: set $ac_src
84602: ac_obj=$1
84603: IFS=$old_IFS
84604:
84605: PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo"
84606:
84607: case $ac_src in
84608: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
84609: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
84610: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
84611: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
84612: esac
84613:
84614: cat >>Makefile.objects<<EOF
84615: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
84616: $ac_comp
84617: EOF
84618: done
84619:
84620:
84621:
84622:
84623: case ext/recode in
84624: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
84625: /*) ac_srcdir=`echo "ext/recode"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
84626: *) ac_srcdir="$abs_srcdir/ext/recode/"; ac_bdir="ext/recode/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
84627: esac
84628:
84629:
84630:
84631: b_c_pre=$php_c_pre
84632: b_cxx_pre=$php_cxx_pre
84633: b_c_meta=$php_c_meta
84634: b_cxx_meta=$php_cxx_meta
84635: b_c_post=$php_c_post
84636: b_cxx_post=$php_cxx_post
84637: b_lo=$php_lo
84638:
84639:
84640: old_IFS=$IFS
84641: for ac_src in recode.c; do
84642:
84643: IFS=.
84644: set $ac_src
84645: ac_obj=$1
84646: IFS=$old_IFS
84647:
84648: PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo"
84649:
84650: case $ac_src in
84651: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
84652: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
84653: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
84654: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
84655: esac
84656:
84657: cat >>Makefile.objects<<EOF
84658: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
84659: $ac_comp
84660: EOF
84661: done
84662:
84663:
84664: EXT_CLI_STATIC="$EXT_CLI_STATIC recode"
84665: fi
84666:
84667:
84668: BUILD_DIR="$BUILD_DIR $ext_builddir"
84669:
84670:
84671:
84672: if test "$ext_builddir" = "."; then
84673: PHP_PECL_EXTENSION=recode
84674:
84675: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
84676:
84677: fi
84678:
84679: fi
84680:
84681:
84682:
84683: $as_echo "#define HAVE_REFLECTION 1" >>confdefs.h
84684:
84685:
84686: ext_builddir=ext/reflection
84687: ext_srcdir=$abs_srcdir/ext/reflection
84688:
84689: ac_extra=
84690:
84691: if test "no" != "shared" && test "no" != "yes" && test "" != "cli"; then
84692: PHP_REFLECTION_SHARED=no
84693:
84694:
84695: case ext/reflection in
84696: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
84697: /*) ac_srcdir=`echo "ext/reflection"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
84698: *) ac_srcdir="$abs_srcdir/ext/reflection/"; ac_bdir="ext/reflection/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
84699: esac
84700:
84701:
84702:
84703: b_c_pre=$php_c_pre
84704: b_cxx_pre=$php_cxx_pre
84705: b_c_meta=$php_c_meta
84706: b_cxx_meta=$php_cxx_meta
84707: b_c_post=$php_c_post
84708: b_cxx_post=$php_cxx_post
84709: b_lo=$php_lo
84710:
84711:
84712: old_IFS=$IFS
84713: for ac_src in php_reflection.c; do
84714:
84715: IFS=.
84716: set $ac_src
84717: ac_obj=$1
84718: IFS=$old_IFS
84719:
84720: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
84721:
84722: case $ac_src in
84723: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
84724: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
84725: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
84726: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
84727: esac
84728:
84729: cat >>Makefile.objects<<EOF
84730: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
84731: $ac_comp
84732: EOF
84733: done
84734:
84735:
84736: EXT_STATIC="$EXT_STATIC reflection"
84737: if test "no" != "nocli"; then
84738: EXT_CLI_STATIC="$EXT_CLI_STATIC reflection"
84739: fi
84740: else
84741: if test "no" = "shared" || test "no" = "yes"; then
84742: PHP_REFLECTION_SHARED=yes
84743:
84744: case ext/reflection in
84745: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
84746: /*) ac_srcdir=`echo "ext/reflection"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
84747: *) ac_srcdir="$abs_srcdir/ext/reflection/"; ac_bdir="ext/reflection/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
84748: esac
84749:
84750:
84751:
84752: b_c_pre=$shared_c_pre
84753: b_cxx_pre=$shared_cxx_pre
84754: b_c_meta=$shared_c_meta
84755: b_cxx_meta=$shared_cxx_meta
84756: b_c_post=$shared_c_post
84757: b_cxx_post=$shared_cxx_post
84758: b_lo=$shared_lo
84759:
84760:
84761: old_IFS=$IFS
84762: for ac_src in php_reflection.c; do
84763:
84764: IFS=.
84765: set $ac_src
84766: ac_obj=$1
84767: IFS=$old_IFS
84768:
84769: shared_objects_reflection="$shared_objects_reflection $ac_bdir$ac_obj.lo"
84770:
84771: case $ac_src in
84772: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
84773: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
84774: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
84775: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
84776: esac
84777:
84778: cat >>Makefile.objects<<EOF
84779: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
84780: $ac_comp
84781: EOF
84782: done
84783:
84784: case $host_alias in
84785: *netware*)
84786:
84787: install_modules="install-modules"
84788:
84789: case $host_alias in
84790: *aix*)
84791: suffix=so
84792: 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'
84793: ;;
84794: *netware*)
84795: suffix=nlm
84796: link_cmd='$(LIBTOOL) --mode=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)'
84797: ;;
84798: *)
84799: suffix=la
84800: link_cmd='$(LIBTOOL) --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)'
84801: ;;
84802: esac
84803:
84804: if test "x" = "xyes"; then
84805: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpreflection.$suffix"
84806: else
84807: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpreflection.$suffix"
84808: fi
84809:
84810: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_reflection"
84811:
84812: cat >>Makefile.objects<<EOF
84813: \$(phplibdir)/phpreflection.$suffix: $ext_builddir/phpreflection.$suffix
84814: \$(LIBTOOL) --mode=install cp $ext_builddir/phpreflection.$suffix \$(phplibdir)
84815:
84816: $ext_builddir/phpreflection.$suffix: \$(shared_objects_reflection) \$(PHPREFLECTION_SHARED_DEPENDENCIES)
84817: $link_cmd
84818:
84819: EOF
84820:
84821: ;;
84822: *)
84823:
84824: install_modules="install-modules"
84825:
84826: case $host_alias in
84827: *aix*)
84828: suffix=so
84829: 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'
84830: ;;
84831: *netware*)
84832: suffix=nlm
84833: link_cmd='$(LIBTOOL) --mode=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)'
84834: ;;
84835: *)
84836: suffix=la
84837: link_cmd='$(LIBTOOL) --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)'
84838: ;;
84839: esac
84840:
84841: if test "x" = "xyes"; then
84842: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/reflection.$suffix"
84843: else
84844: PHP_MODULES="$PHP_MODULES \$(phplibdir)/reflection.$suffix"
84845: fi
84846:
84847: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_reflection"
84848:
84849: cat >>Makefile.objects<<EOF
84850: \$(phplibdir)/reflection.$suffix: $ext_builddir/reflection.$suffix
84851: \$(LIBTOOL) --mode=install cp $ext_builddir/reflection.$suffix \$(phplibdir)
84852:
84853: $ext_builddir/reflection.$suffix: \$(shared_objects_reflection) \$(REFLECTION_SHARED_DEPENDENCIES)
84854: $link_cmd
84855:
84856: EOF
84857:
84858: ;;
84859: esac
84860:
84861: cat >>confdefs.h <<_ACEOF
84862: #define COMPILE_DL_REFLECTION 1
84863: _ACEOF
84864:
84865: fi
84866: fi
84867:
84868: if test "no" != "shared" && test "no" != "yes" && test "" = "cli"; then
84869: PHP_REFLECTION_SHARED=no
84870:
84871:
84872: case ext/reflection in
84873: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
84874: /*) ac_srcdir=`echo "ext/reflection"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
84875: *) ac_srcdir="$abs_srcdir/ext/reflection/"; ac_bdir="ext/reflection/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
84876: esac
84877:
84878:
84879:
84880: b_c_pre=$php_c_pre
84881: b_cxx_pre=$php_cxx_pre
84882: b_c_meta=$php_c_meta
84883: b_cxx_meta=$php_cxx_meta
84884: b_c_post=$php_c_post
84885: b_cxx_post=$php_cxx_post
84886: b_lo=$php_lo
84887:
84888:
84889: old_IFS=$IFS
84890: for ac_src in php_reflection.c; do
84891:
84892: IFS=.
84893: set $ac_src
84894: ac_obj=$1
84895: IFS=$old_IFS
84896:
84897: PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
84898:
84899: case $ac_src in
84900: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
84901: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
84902: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
84903: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
84904: esac
84905:
84906: cat >>Makefile.objects<<EOF
84907: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
84908: $ac_comp
84909: EOF
84910: done
84911:
84912:
84913:
84914:
84915: case ext/reflection in
84916: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
84917: /*) ac_srcdir=`echo "ext/reflection"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
84918: *) ac_srcdir="$abs_srcdir/ext/reflection/"; ac_bdir="ext/reflection/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
84919: esac
84920:
84921:
84922:
84923: b_c_pre=$php_c_pre
84924: b_cxx_pre=$php_cxx_pre
84925: b_c_meta=$php_c_meta
84926: b_cxx_meta=$php_cxx_meta
84927: b_c_post=$php_c_post
84928: b_cxx_post=$php_cxx_post
84929: b_lo=$php_lo
84930:
84931:
84932: old_IFS=$IFS
84933: for ac_src in php_reflection.c; do
84934:
84935: IFS=.
84936: set $ac_src
84937: ac_obj=$1
84938: IFS=$old_IFS
84939:
84940: PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo"
84941:
84942: case $ac_src in
84943: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
84944: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
84945: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
84946: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
84947: esac
84948:
84949: cat >>Makefile.objects<<EOF
84950: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
84951: $ac_comp
84952: EOF
84953: done
84954:
84955:
84956:
84957:
84958: case ext/reflection in
84959: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
84960: /*) ac_srcdir=`echo "ext/reflection"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
84961: *) ac_srcdir="$abs_srcdir/ext/reflection/"; ac_bdir="ext/reflection/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
84962: esac
84963:
84964:
84965:
84966: b_c_pre=$php_c_pre
84967: b_cxx_pre=$php_cxx_pre
84968: b_c_meta=$php_c_meta
84969: b_cxx_meta=$php_cxx_meta
84970: b_c_post=$php_c_post
84971: b_cxx_post=$php_cxx_post
84972: b_lo=$php_lo
84973:
84974:
84975: old_IFS=$IFS
84976: for ac_src in php_reflection.c; do
84977:
84978: IFS=.
84979: set $ac_src
84980: ac_obj=$1
84981: IFS=$old_IFS
84982:
84983: PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo"
84984:
84985: case $ac_src in
84986: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
84987: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
84988: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
84989: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
84990: esac
84991:
84992: cat >>Makefile.objects<<EOF
84993: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
84994: $ac_comp
84995: EOF
84996: done
84997:
84998:
84999: EXT_CLI_STATIC="$EXT_CLI_STATIC reflection"
85000: fi
85001:
85002:
85003: BUILD_DIR="$BUILD_DIR $ext_builddir"
85004:
85005:
85006:
85007: if test "$ext_builddir" = "."; then
85008: PHP_PECL_EXTENSION=reflection
85009:
85010: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
85011:
85012: fi
85013:
85014:
85015:
85016:
85017: php_enable_session=yes
85018:
85019: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable PHP sessions" >&5
85020: $as_echo_n "checking whether to enable PHP sessions... " >&6; }
85021: # Check whether --enable-session was given.
85022: if test "${enable_session+set}" = set; then :
85023: enableval=$enable_session; PHP_SESSION=$enableval
85024: else
85025:
85026: PHP_SESSION=yes
85027: test "$PHP_ENABLE_ALL" && PHP_SESSION=$PHP_ENABLE_ALL
85028:
85029: fi
85030:
85031:
85032:
85033: ext_output="yes, shared"
85034: ext_shared=yes
85035: case $PHP_SESSION in
85036: shared,*)
85037: PHP_SESSION=`echo "$PHP_SESSION"|$SED 's/^shared,//'`
85038: ;;
85039: shared)
85040: PHP_SESSION=yes
85041: ;;
85042: no)
85043: ext_output=no
85044: ext_shared=no
85045: ;;
85046: *)
85047: ext_output=yes
85048: ext_shared=no
85049: ;;
85050: esac
85051:
85052:
85053:
85054: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
85055: $as_echo "$ext_output" >&6; }
85056:
85057:
85058:
85059:
85060:
85061: php_with_mm=no
85062:
85063: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mm support" >&5
85064: $as_echo_n "checking for mm support... " >&6; }
85065:
85066: # Check whether --with-mm was given.
85067: if test "${with_mm+set}" = set; then :
85068: withval=$with_mm; PHP_MM=$withval
85069: else
85070:
85071: PHP_MM=no
85072:
85073:
85074: fi
85075:
85076:
85077: ext_output=$PHP_MM
85078: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
85079: $as_echo "$ext_output" >&6; }
85080:
85081:
85082:
85083:
85084: if test "$PHP_SESSION" != "no"; then
85085:
85086: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pwrite works" >&5
85087: $as_echo_n "checking whether pwrite works... " >&6; }
85088: if ${ac_cv_pwrite+:} false; then :
85089: $as_echo_n "(cached) " >&6
85090: else
85091:
85092:
85093: if test "$cross_compiling" = yes; then :
85094:
85095: ac_cv_pwrite=no
85096:
85097: else
85098: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
85099: /* end confdefs.h. */
85100:
85101: #include <sys/types.h>
85102: #include <sys/stat.h>
85103: #include <fcntl.h>
85104: #include <unistd.h>
85105: #include <errno.h>
85106:
85107: main() {
85108: int fd = open("conftest_in", O_WRONLY|O_CREAT, 0600);
85109:
85110: if (fd < 0) exit(1);
85111: if (pwrite(fd, "text", 4, 0) != 4) exit(1);
85112: /* Linux glibc breakage until 2.2.5 */
85113: if (pwrite(fd, "text", 4, -1) != -1 || errno != EINVAL) exit(1);
85114: exit(0);
85115: }
85116:
85117:
85118: _ACEOF
85119: if ac_fn_c_try_run "$LINENO"; then :
85120:
85121: ac_cv_pwrite=yes
85122:
85123: else
85124:
85125: ac_cv_pwrite=no
85126:
85127: fi
85128: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
85129: conftest.$ac_objext conftest.beam conftest.$ac_ext
85130: fi
85131:
85132:
85133: if test "$ac_cv_pwrite" = "no"; then
85134:
85135: if test "$cross_compiling" = yes; then :
85136:
85137: ac_cv_pwrite=no
85138:
85139: else
85140: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
85141: /* end confdefs.h. */
85142:
85143: #include <sys/types.h>
85144: #include <sys/stat.h>
85145: #include <fcntl.h>
85146: #include <unistd.h>
85147: #include <errno.h>
85148: ssize_t pwrite(int, void *, size_t, off64_t);
85149: main() {
85150: int fd = open("conftest_in", O_WRONLY|O_CREAT, 0600);
85151:
85152: if (fd < 0) exit(1);
85153: if (pwrite(fd, "text", 4, 0) != 4) exit(1);
85154: /* Linux glibc breakage until 2.2.5 */
85155: if (pwrite(fd, "text", 4, -1) != -1 || errno != EINVAL) exit(1);
85156: exit(0);
85157: }
85158:
85159:
85160: _ACEOF
85161: if ac_fn_c_try_run "$LINENO"; then :
85162:
85163: ac_cv_pwrite=yes
85164:
85165: else
85166:
85167: ac_cv_pwrite=no
85168:
85169: fi
85170: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
85171: conftest.$ac_objext conftest.beam conftest.$ac_ext
85172: fi
85173:
85174:
85175: if test "$ac_cv_pwrite" = "yes"; then
85176: ac_cv_pwrite=64
85177: fi
85178: fi
85179:
85180: fi
85181: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pwrite" >&5
85182: $as_echo "$ac_cv_pwrite" >&6; }
85183:
85184: if test "$ac_cv_pwrite" != "no"; then
85185:
85186: $as_echo "#define HAVE_PWRITE 1" >>confdefs.h
85187:
85188: if test "$ac_cv_pwrite" = "64"; then
85189:
85190: $as_echo "#define PHP_PWRITE_64 1" >>confdefs.h
85191:
85192: fi
85193: fi
85194:
85195:
85196: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pread works" >&5
85197: $as_echo_n "checking whether pread works... " >&6; }
85198: if ${ac_cv_pread+:} false; then :
85199: $as_echo_n "(cached) " >&6
85200: else
85201:
85202:
85203: echo test > conftest_in
85204: if test "$cross_compiling" = yes; then :
85205:
85206: ac_cv_pread=no
85207:
85208: else
85209: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
85210: /* end confdefs.h. */
85211:
85212: #include <sys/types.h>
85213: #include <sys/stat.h>
85214: #include <fcntl.h>
85215: #include <unistd.h>
85216: #include <errno.h>
85217:
85218: main() {
85219: char buf[3];
85220: int fd = open("conftest_in", O_RDONLY);
85221: if (fd < 0) exit(1);
85222: if (pread(fd, buf, 2, 0) != 2) exit(1);
85223: /* Linux glibc breakage until 2.2.5 */
85224: if (pread(fd, buf, 2, -1) != -1 || errno != EINVAL) exit(1);
85225: exit(0);
85226: }
85227:
85228: _ACEOF
85229: if ac_fn_c_try_run "$LINENO"; then :
85230:
85231: ac_cv_pread=yes
85232:
85233: else
85234:
85235: ac_cv_pread=no
85236:
85237: fi
85238: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
85239: conftest.$ac_objext conftest.beam conftest.$ac_ext
85240: fi
85241:
85242: rm -f conftest_in
85243:
85244: if test "$ac_cv_pread" = "no"; then
85245:
85246: echo test > conftest_in
85247: if test "$cross_compiling" = yes; then :
85248:
85249: ac_cv_pread=no
85250:
85251: else
85252: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
85253: /* end confdefs.h. */
85254:
85255: #include <sys/types.h>
85256: #include <sys/stat.h>
85257: #include <fcntl.h>
85258: #include <unistd.h>
85259: #include <errno.h>
85260: ssize_t pread(int, void *, size_t, off64_t);
85261: main() {
85262: char buf[3];
85263: int fd = open("conftest_in", O_RDONLY);
85264: if (fd < 0) exit(1);
85265: if (pread(fd, buf, 2, 0) != 2) exit(1);
85266: /* Linux glibc breakage until 2.2.5 */
85267: if (pread(fd, buf, 2, -1) != -1 || errno != EINVAL) exit(1);
85268: exit(0);
85269: }
85270:
85271: _ACEOF
85272: if ac_fn_c_try_run "$LINENO"; then :
85273:
85274: ac_cv_pread=yes
85275:
85276: else
85277:
85278: ac_cv_pread=no
85279:
85280: fi
85281: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
85282: conftest.$ac_objext conftest.beam conftest.$ac_ext
85283: fi
85284:
85285: rm -f conftest_in
85286:
85287: if test "$ac_cv_pread" = "yes"; then
85288: ac_cv_pread=64
85289: fi
85290: fi
85291:
85292: fi
85293: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pread" >&5
85294: $as_echo "$ac_cv_pread" >&6; }
85295:
85296: if test "$ac_cv_pread" != "no"; then
85297:
85298: $as_echo "#define HAVE_PREAD 1" >>confdefs.h
85299:
85300: if test "$ac_cv_pread" = "64"; then
85301:
85302: $as_echo "#define PHP_PREAD_64 1" >>confdefs.h
85303:
85304: fi
85305: fi
85306:
85307:
85308: ext_builddir=ext/session
85309: ext_srcdir=$abs_srcdir/ext/session
85310:
85311: ac_extra=
85312:
85313: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
85314: PHP_SESSION_SHARED=no
85315:
85316:
85317: case ext/session in
85318: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
85319: /*) ac_srcdir=`echo "ext/session"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
85320: *) ac_srcdir="$abs_srcdir/ext/session/"; ac_bdir="ext/session/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
85321: esac
85322:
85323:
85324:
85325: b_c_pre=$php_c_pre
85326: b_cxx_pre=$php_cxx_pre
85327: b_c_meta=$php_c_meta
85328: b_cxx_meta=$php_cxx_meta
85329: b_c_post=$php_c_post
85330: b_cxx_post=$php_cxx_post
85331: b_lo=$php_lo
85332:
85333:
85334: old_IFS=$IFS
85335: for ac_src in session.c mod_files.c mod_mm.c mod_user.c; do
85336:
85337: IFS=.
85338: set $ac_src
85339: ac_obj=$1
85340: IFS=$old_IFS
85341:
85342: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
85343:
85344: case $ac_src in
85345: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
85346: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
85347: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
85348: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
85349: esac
85350:
85351: cat >>Makefile.objects<<EOF
85352: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
85353: $ac_comp
85354: EOF
85355: done
85356:
85357:
85358: EXT_STATIC="$EXT_STATIC session"
85359: if test "$ext_shared" != "nocli"; then
85360: EXT_CLI_STATIC="$EXT_CLI_STATIC session"
85361: fi
85362: else
85363: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
85364: PHP_SESSION_SHARED=yes
85365:
85366: case ext/session in
85367: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
85368: /*) ac_srcdir=`echo "ext/session"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
85369: *) ac_srcdir="$abs_srcdir/ext/session/"; ac_bdir="ext/session/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
85370: esac
85371:
85372:
85373:
85374: b_c_pre=$shared_c_pre
85375: b_cxx_pre=$shared_cxx_pre
85376: b_c_meta=$shared_c_meta
85377: b_cxx_meta=$shared_cxx_meta
85378: b_c_post=$shared_c_post
85379: b_cxx_post=$shared_cxx_post
85380: b_lo=$shared_lo
85381:
85382:
85383: old_IFS=$IFS
85384: for ac_src in session.c mod_files.c mod_mm.c mod_user.c; do
85385:
85386: IFS=.
85387: set $ac_src
85388: ac_obj=$1
85389: IFS=$old_IFS
85390:
85391: shared_objects_session="$shared_objects_session $ac_bdir$ac_obj.lo"
85392:
85393: case $ac_src in
85394: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
85395: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
85396: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
85397: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
85398: esac
85399:
85400: cat >>Makefile.objects<<EOF
85401: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
85402: $ac_comp
85403: EOF
85404: done
85405:
85406: case $host_alias in
85407: *netware*)
85408:
85409: install_modules="install-modules"
85410:
85411: case $host_alias in
85412: *aix*)
85413: suffix=so
85414: 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'
85415: ;;
85416: *netware*)
85417: suffix=nlm
85418: link_cmd='$(LIBTOOL) --mode=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)'
85419: ;;
85420: *)
85421: suffix=la
85422: link_cmd='$(LIBTOOL) --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)'
85423: ;;
85424: esac
85425:
85426: if test "x" = "xyes"; then
85427: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpsession.$suffix"
85428: else
85429: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpsession.$suffix"
85430: fi
85431:
85432: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_session"
85433:
85434: cat >>Makefile.objects<<EOF
85435: \$(phplibdir)/phpsession.$suffix: $ext_builddir/phpsession.$suffix
85436: \$(LIBTOOL) --mode=install cp $ext_builddir/phpsession.$suffix \$(phplibdir)
85437:
85438: $ext_builddir/phpsession.$suffix: \$(shared_objects_session) \$(PHPSESSION_SHARED_DEPENDENCIES)
85439: $link_cmd
85440:
85441: EOF
85442:
85443: ;;
85444: *)
85445:
85446: install_modules="install-modules"
85447:
85448: case $host_alias in
85449: *aix*)
85450: suffix=so
85451: 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'
85452: ;;
85453: *netware*)
85454: suffix=nlm
85455: link_cmd='$(LIBTOOL) --mode=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)'
85456: ;;
85457: *)
85458: suffix=la
85459: link_cmd='$(LIBTOOL) --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)'
85460: ;;
85461: esac
85462:
85463: if test "x" = "xyes"; then
85464: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/session.$suffix"
85465: else
85466: PHP_MODULES="$PHP_MODULES \$(phplibdir)/session.$suffix"
85467: fi
85468:
85469: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_session"
85470:
85471: cat >>Makefile.objects<<EOF
85472: \$(phplibdir)/session.$suffix: $ext_builddir/session.$suffix
85473: \$(LIBTOOL) --mode=install cp $ext_builddir/session.$suffix \$(phplibdir)
85474:
85475: $ext_builddir/session.$suffix: \$(shared_objects_session) \$(SESSION_SHARED_DEPENDENCIES)
85476: $link_cmd
85477:
85478: EOF
85479:
85480: ;;
85481: esac
85482:
85483: cat >>confdefs.h <<_ACEOF
85484: #define COMPILE_DL_SESSION 1
85485: _ACEOF
85486:
85487: fi
85488: fi
85489:
85490: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
85491: PHP_SESSION_SHARED=no
85492:
85493:
85494: case ext/session in
85495: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
85496: /*) ac_srcdir=`echo "ext/session"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
85497: *) ac_srcdir="$abs_srcdir/ext/session/"; ac_bdir="ext/session/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
85498: esac
85499:
85500:
85501:
85502: b_c_pre=$php_c_pre
85503: b_cxx_pre=$php_cxx_pre
85504: b_c_meta=$php_c_meta
85505: b_cxx_meta=$php_cxx_meta
85506: b_c_post=$php_c_post
85507: b_cxx_post=$php_cxx_post
85508: b_lo=$php_lo
85509:
85510:
85511: old_IFS=$IFS
85512: for ac_src in session.c mod_files.c mod_mm.c mod_user.c; do
85513:
85514: IFS=.
85515: set $ac_src
85516: ac_obj=$1
85517: IFS=$old_IFS
85518:
85519: PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
85520:
85521: case $ac_src in
85522: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
85523: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
85524: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
85525: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
85526: esac
85527:
85528: cat >>Makefile.objects<<EOF
85529: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
85530: $ac_comp
85531: EOF
85532: done
85533:
85534:
85535:
85536:
85537: case ext/session in
85538: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
85539: /*) ac_srcdir=`echo "ext/session"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
85540: *) ac_srcdir="$abs_srcdir/ext/session/"; ac_bdir="ext/session/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
85541: esac
85542:
85543:
85544:
85545: b_c_pre=$php_c_pre
85546: b_cxx_pre=$php_cxx_pre
85547: b_c_meta=$php_c_meta
85548: b_cxx_meta=$php_cxx_meta
85549: b_c_post=$php_c_post
85550: b_cxx_post=$php_cxx_post
85551: b_lo=$php_lo
85552:
85553:
85554: old_IFS=$IFS
85555: for ac_src in session.c mod_files.c mod_mm.c mod_user.c; do
85556:
85557: IFS=.
85558: set $ac_src
85559: ac_obj=$1
85560: IFS=$old_IFS
85561:
85562: PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo"
85563:
85564: case $ac_src in
85565: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
85566: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
85567: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
85568: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
85569: esac
85570:
85571: cat >>Makefile.objects<<EOF
85572: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
85573: $ac_comp
85574: EOF
85575: done
85576:
85577:
85578:
85579:
85580: case ext/session in
85581: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
85582: /*) ac_srcdir=`echo "ext/session"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
85583: *) ac_srcdir="$abs_srcdir/ext/session/"; ac_bdir="ext/session/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
85584: esac
85585:
85586:
85587:
85588: b_c_pre=$php_c_pre
85589: b_cxx_pre=$php_cxx_pre
85590: b_c_meta=$php_c_meta
85591: b_cxx_meta=$php_cxx_meta
85592: b_c_post=$php_c_post
85593: b_cxx_post=$php_cxx_post
85594: b_lo=$php_lo
85595:
85596:
85597: old_IFS=$IFS
85598: for ac_src in session.c mod_files.c mod_mm.c mod_user.c; do
85599:
85600: IFS=.
85601: set $ac_src
85602: ac_obj=$1
85603: IFS=$old_IFS
85604:
85605: PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo"
85606:
85607: case $ac_src in
85608: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
85609: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
85610: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
85611: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
85612: esac
85613:
85614: cat >>Makefile.objects<<EOF
85615: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
85616: $ac_comp
85617: EOF
85618: done
85619:
85620:
85621: EXT_CLI_STATIC="$EXT_CLI_STATIC session"
85622: fi
85623:
85624:
85625: BUILD_DIR="$BUILD_DIR $ext_builddir"
85626:
85627:
85628:
85629: if test "$ext_builddir" = "."; then
85630: PHP_PECL_EXTENSION=session
85631:
85632: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
85633:
85634: fi
85635:
85636:
85637: am_i_shared=$PHP_SESSION_SHARED
85638: is_it_shared=$PHP_HASH_SHARED
85639: is_it_enabled=$PHP_HASH
85640: if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
85641: as_fn_error $? "
85642: You've configured extension session to build statically, but it
85643: depends on extension hash, which you've configured to build shared.
85644: You either need to build session shared or build hash statically for the
85645: build to be successful.
85646: " "$LINENO" 5
85647: fi
85648:
85649:
85650: am_i_shared=$PHP_SESSION_SHARED
85651: is_it_shared=$PHP_SPL_SHARED
85652: is_it_enabled=$PHP_SPL
85653: if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
85654: as_fn_error $? "
85655: You've configured extension session to build statically, but it
85656: depends on extension spl, which you've configured to build shared.
85657: You either need to build session shared or build spl statically for the
85658: build to be successful.
85659: " "$LINENO" 5
85660: fi
85661:
85662:
85663: PHP_VAR_SUBST="$PHP_VAR_SUBST SESSION_SHARED_LIBADD"
85664:
85665:
85666:
85667: header_path=ext/session
85668: for header_file in php_session.h mod_files.h mod_user.h; do
85669: hp_hf="$header_path/$header_file"
85670:
85671:
85672: unique=`echo $hp_hf|$SED 's/[^a-zA-Z0-9]/_/g'`
85673:
85674: cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
85675: if test -n "$unique" && test "`eval $cmd`" = "" ; then
85676: eval "INSTALLHEADERS$unique=set"
85677:
85678: INSTALL_HEADERS="$INSTALL_HEADERS $hp_hf"
85679:
85680: fi
85681:
85682: done
85683:
85684:
85685:
85686: $as_echo "#define HAVE_PHP_SESSION 1" >>confdefs.h
85687:
85688: fi
85689:
85690: if test "$PHP_MM" != "no"; then
85691: for i in $PHP_MM /usr/local /usr; do
85692: test -f "$i/include/mm.h" && MM_DIR=$i && break
85693: done
85694:
85695: if test -z "$MM_DIR" ; then
85696: as_fn_error $? "cannot find mm library" "$LINENO" 5
85697: fi
85698:
85699:
85700:
85701: if test "$ext_shared" = "yes"; then
85702: SESSION_SHARED_LIBADD="-lmm $SESSION_SHARED_LIBADD"
85703: if test -n "$MM_DIR/$PHP_LIBDIR"; then
85704:
85705: if test "$MM_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$MM_DIR/$PHP_LIBDIR" != "/usr/lib"; then
85706:
85707: if test -z "$MM_DIR/$PHP_LIBDIR" || echo "$MM_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
85708: ai_p=$MM_DIR/$PHP_LIBDIR
85709: else
85710:
85711: ep_dir="`echo $MM_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
85712:
85713: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
85714: ai_p="$ep_realdir/`basename \"$MM_DIR/$PHP_LIBDIR\"`"
85715: fi
85716:
85717:
85718: if test "$ext_shared" = "yes"; then
85719: SESSION_SHARED_LIBADD="-L$ai_p $SESSION_SHARED_LIBADD"
85720: test -n "$ld_runpath_switch" && SESSION_SHARED_LIBADD="$ld_runpath_switch$ai_p $SESSION_SHARED_LIBADD"
85721: else
85722:
85723:
85724:
85725: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
85726:
85727: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
85728: if test -n "$unique" && test "`eval $cmd`" = "" ; then
85729: eval "LIBPATH$unique=set"
85730:
85731: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
85732: LDFLAGS="$LDFLAGS -L$ai_p"
85733: PHP_RPATHS="$PHP_RPATHS $ai_p"
85734:
85735: fi
85736:
85737:
85738: fi
85739:
85740: fi
85741:
85742: fi
85743: else
85744:
85745:
85746: if test -n "$MM_DIR/$PHP_LIBDIR"; then
85747:
85748: if test "$MM_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$MM_DIR/$PHP_LIBDIR" != "/usr/lib"; then
85749:
85750: if test -z "$MM_DIR/$PHP_LIBDIR" || echo "$MM_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
85751: ai_p=$MM_DIR/$PHP_LIBDIR
85752: else
85753:
85754: ep_dir="`echo $MM_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
85755:
85756: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
85757: ai_p="$ep_realdir/`basename \"$MM_DIR/$PHP_LIBDIR\"`"
85758: fi
85759:
85760:
85761:
85762:
85763:
85764: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
85765:
85766: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
85767: if test -n "$unique" && test "`eval $cmd`" = "" ; then
85768: eval "LIBPATH$unique=set"
85769:
85770: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
85771: LDFLAGS="$LDFLAGS -L$ai_p"
85772: PHP_RPATHS="$PHP_RPATHS $ai_p"
85773:
85774: fi
85775:
85776:
85777:
85778: fi
85779:
85780: fi
85781:
85782:
85783: case mm in
85784: c|c_r|pthread*) ;;
85785: *)
85786: LIBS="-lmm $LIBS"
85787: ;;
85788: esac
85789:
85790:
85791:
85792:
85793: fi
85794:
85795:
85796:
85797: if test "$MM_DIR/include" != "/usr/include"; then
85798:
85799: if test -z "$MM_DIR/include" || echo "$MM_DIR/include" | grep '^/' >/dev/null ; then
85800: ai_p=$MM_DIR/include
85801: else
85802:
85803: ep_dir="`echo $MM_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
85804:
85805: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
85806: ai_p="$ep_realdir/`basename \"$MM_DIR/include\"`"
85807: fi
85808:
85809:
85810:
85811: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
85812:
85813: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
85814: if test -n "$unique" && test "`eval $cmd`" = "" ; then
85815: eval "INCLUDEPATH$unique=set"
85816:
85817: if test ""; then
85818: INCLUDES="-I$ai_p $INCLUDES"
85819: else
85820: INCLUDES="$INCLUDES -I$ai_p"
85821: fi
85822:
85823: fi
85824:
85825: fi
85826:
85827:
85828:
85829: for header_file in ext/session/mod_mm.h; do
85830:
85831:
85832: unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
85833:
85834: cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
85835: if test -n "$unique" && test "`eval $cmd`" = "" ; then
85836: eval "INSTALLHEADERS$unique=set"
85837:
85838: INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
85839:
85840: fi
85841:
85842: done
85843:
85844:
85845:
85846: $as_echo "#define HAVE_LIBMM 1" >>confdefs.h
85847:
85848: fi
85849:
85850:
85851: php_enable_shmop=no
85852:
85853: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable shmop support" >&5
85854: $as_echo_n "checking whether to enable shmop support... " >&6; }
85855: # Check whether --enable-shmop was given.
85856: if test "${enable_shmop+set}" = set; then :
85857: enableval=$enable_shmop; PHP_SHMOP=$enableval
85858: else
85859:
85860: PHP_SHMOP=no
85861: test "$PHP_ENABLE_ALL" && PHP_SHMOP=$PHP_ENABLE_ALL
85862:
85863: fi
85864:
85865:
85866:
85867: ext_output="yes, shared"
85868: ext_shared=yes
85869: case $PHP_SHMOP in
85870: shared,*)
85871: PHP_SHMOP=`echo "$PHP_SHMOP"|$SED 's/^shared,//'`
85872: ;;
85873: shared)
85874: PHP_SHMOP=yes
85875: ;;
85876: no)
85877: ext_output=no
85878: ext_shared=no
85879: ;;
85880: *)
85881: ext_output=yes
85882: ext_shared=no
85883: ;;
85884: esac
85885:
85886:
85887:
85888: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
85889: $as_echo "$ext_output" >&6; }
85890:
85891:
85892:
85893:
85894: if test "$PHP_SHMOP" != "no"; then
85895:
85896: $as_echo "#define HAVE_SHMOP 1" >>confdefs.h
85897:
85898:
85899: ext_builddir=ext/shmop
85900: ext_srcdir=$abs_srcdir/ext/shmop
85901:
85902: ac_extra=
85903:
85904: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
85905: PHP_SHMOP_SHARED=no
85906:
85907:
85908: case ext/shmop in
85909: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
85910: /*) ac_srcdir=`echo "ext/shmop"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
85911: *) ac_srcdir="$abs_srcdir/ext/shmop/"; ac_bdir="ext/shmop/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
85912: esac
85913:
85914:
85915:
85916: b_c_pre=$php_c_pre
85917: b_cxx_pre=$php_cxx_pre
85918: b_c_meta=$php_c_meta
85919: b_cxx_meta=$php_cxx_meta
85920: b_c_post=$php_c_post
85921: b_cxx_post=$php_cxx_post
85922: b_lo=$php_lo
85923:
85924:
85925: old_IFS=$IFS
85926: for ac_src in shmop.c; do
85927:
85928: IFS=.
85929: set $ac_src
85930: ac_obj=$1
85931: IFS=$old_IFS
85932:
85933: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
85934:
85935: case $ac_src in
85936: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
85937: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
85938: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
85939: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
85940: esac
85941:
85942: cat >>Makefile.objects<<EOF
85943: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
85944: $ac_comp
85945: EOF
85946: done
85947:
85948:
85949: EXT_STATIC="$EXT_STATIC shmop"
85950: if test "$ext_shared" != "nocli"; then
85951: EXT_CLI_STATIC="$EXT_CLI_STATIC shmop"
85952: fi
85953: else
85954: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
85955: PHP_SHMOP_SHARED=yes
85956:
85957: case ext/shmop in
85958: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
85959: /*) ac_srcdir=`echo "ext/shmop"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
85960: *) ac_srcdir="$abs_srcdir/ext/shmop/"; ac_bdir="ext/shmop/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
85961: esac
85962:
85963:
85964:
85965: b_c_pre=$shared_c_pre
85966: b_cxx_pre=$shared_cxx_pre
85967: b_c_meta=$shared_c_meta
85968: b_cxx_meta=$shared_cxx_meta
85969: b_c_post=$shared_c_post
85970: b_cxx_post=$shared_cxx_post
85971: b_lo=$shared_lo
85972:
85973:
85974: old_IFS=$IFS
85975: for ac_src in shmop.c; do
85976:
85977: IFS=.
85978: set $ac_src
85979: ac_obj=$1
85980: IFS=$old_IFS
85981:
85982: shared_objects_shmop="$shared_objects_shmop $ac_bdir$ac_obj.lo"
85983:
85984: case $ac_src in
85985: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
85986: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
85987: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
85988: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
85989: esac
85990:
85991: cat >>Makefile.objects<<EOF
85992: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
85993: $ac_comp
85994: EOF
85995: done
85996:
85997: case $host_alias in
85998: *netware*)
85999:
86000: install_modules="install-modules"
86001:
86002: case $host_alias in
86003: *aix*)
86004: suffix=so
86005: 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'
86006: ;;
86007: *netware*)
86008: suffix=nlm
86009: link_cmd='$(LIBTOOL) --mode=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)'
86010: ;;
86011: *)
86012: suffix=la
86013: link_cmd='$(LIBTOOL) --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)'
86014: ;;
86015: esac
86016:
86017: if test "x" = "xyes"; then
86018: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpshmop.$suffix"
86019: else
86020: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpshmop.$suffix"
86021: fi
86022:
86023: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_shmop"
86024:
86025: cat >>Makefile.objects<<EOF
86026: \$(phplibdir)/phpshmop.$suffix: $ext_builddir/phpshmop.$suffix
86027: \$(LIBTOOL) --mode=install cp $ext_builddir/phpshmop.$suffix \$(phplibdir)
86028:
86029: $ext_builddir/phpshmop.$suffix: \$(shared_objects_shmop) \$(PHPSHMOP_SHARED_DEPENDENCIES)
86030: $link_cmd
86031:
86032: EOF
86033:
86034: ;;
86035: *)
86036:
86037: install_modules="install-modules"
86038:
86039: case $host_alias in
86040: *aix*)
86041: suffix=so
86042: 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'
86043: ;;
86044: *netware*)
86045: suffix=nlm
86046: link_cmd='$(LIBTOOL) --mode=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)'
86047: ;;
86048: *)
86049: suffix=la
86050: link_cmd='$(LIBTOOL) --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)'
86051: ;;
86052: esac
86053:
86054: if test "x" = "xyes"; then
86055: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/shmop.$suffix"
86056: else
86057: PHP_MODULES="$PHP_MODULES \$(phplibdir)/shmop.$suffix"
86058: fi
86059:
86060: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_shmop"
86061:
86062: cat >>Makefile.objects<<EOF
86063: \$(phplibdir)/shmop.$suffix: $ext_builddir/shmop.$suffix
86064: \$(LIBTOOL) --mode=install cp $ext_builddir/shmop.$suffix \$(phplibdir)
86065:
86066: $ext_builddir/shmop.$suffix: \$(shared_objects_shmop) \$(SHMOP_SHARED_DEPENDENCIES)
86067: $link_cmd
86068:
86069: EOF
86070:
86071: ;;
86072: esac
86073:
86074: cat >>confdefs.h <<_ACEOF
86075: #define COMPILE_DL_SHMOP 1
86076: _ACEOF
86077:
86078: fi
86079: fi
86080:
86081: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
86082: PHP_SHMOP_SHARED=no
86083:
86084:
86085: case ext/shmop in
86086: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
86087: /*) ac_srcdir=`echo "ext/shmop"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
86088: *) ac_srcdir="$abs_srcdir/ext/shmop/"; ac_bdir="ext/shmop/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
86089: esac
86090:
86091:
86092:
86093: b_c_pre=$php_c_pre
86094: b_cxx_pre=$php_cxx_pre
86095: b_c_meta=$php_c_meta
86096: b_cxx_meta=$php_cxx_meta
86097: b_c_post=$php_c_post
86098: b_cxx_post=$php_cxx_post
86099: b_lo=$php_lo
86100:
86101:
86102: old_IFS=$IFS
86103: for ac_src in shmop.c; do
86104:
86105: IFS=.
86106: set $ac_src
86107: ac_obj=$1
86108: IFS=$old_IFS
86109:
86110: PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
86111:
86112: case $ac_src in
86113: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
86114: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
86115: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
86116: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
86117: esac
86118:
86119: cat >>Makefile.objects<<EOF
86120: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
86121: $ac_comp
86122: EOF
86123: done
86124:
86125:
86126:
86127:
86128: case ext/shmop in
86129: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
86130: /*) ac_srcdir=`echo "ext/shmop"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
86131: *) ac_srcdir="$abs_srcdir/ext/shmop/"; ac_bdir="ext/shmop/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
86132: esac
86133:
86134:
86135:
86136: b_c_pre=$php_c_pre
86137: b_cxx_pre=$php_cxx_pre
86138: b_c_meta=$php_c_meta
86139: b_cxx_meta=$php_cxx_meta
86140: b_c_post=$php_c_post
86141: b_cxx_post=$php_cxx_post
86142: b_lo=$php_lo
86143:
86144:
86145: old_IFS=$IFS
86146: for ac_src in shmop.c; do
86147:
86148: IFS=.
86149: set $ac_src
86150: ac_obj=$1
86151: IFS=$old_IFS
86152:
86153: PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo"
86154:
86155: case $ac_src in
86156: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
86157: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
86158: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
86159: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
86160: esac
86161:
86162: cat >>Makefile.objects<<EOF
86163: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
86164: $ac_comp
86165: EOF
86166: done
86167:
86168:
86169:
86170:
86171: case ext/shmop in
86172: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
86173: /*) ac_srcdir=`echo "ext/shmop"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
86174: *) ac_srcdir="$abs_srcdir/ext/shmop/"; ac_bdir="ext/shmop/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
86175: esac
86176:
86177:
86178:
86179: b_c_pre=$php_c_pre
86180: b_cxx_pre=$php_cxx_pre
86181: b_c_meta=$php_c_meta
86182: b_cxx_meta=$php_cxx_meta
86183: b_c_post=$php_c_post
86184: b_cxx_post=$php_cxx_post
86185: b_lo=$php_lo
86186:
86187:
86188: old_IFS=$IFS
86189: for ac_src in shmop.c; do
86190:
86191: IFS=.
86192: set $ac_src
86193: ac_obj=$1
86194: IFS=$old_IFS
86195:
86196: PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo"
86197:
86198: case $ac_src in
86199: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
86200: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
86201: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
86202: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
86203: esac
86204:
86205: cat >>Makefile.objects<<EOF
86206: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
86207: $ac_comp
86208: EOF
86209: done
86210:
86211:
86212: EXT_CLI_STATIC="$EXT_CLI_STATIC shmop"
86213: fi
86214:
86215:
86216: BUILD_DIR="$BUILD_DIR $ext_builddir"
86217:
86218:
86219:
86220: if test "$ext_builddir" = "."; then
86221: PHP_PECL_EXTENSION=shmop
86222:
86223: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
86224:
86225: fi
86226:
86227: fi
86228:
86229:
86230:
86231: php_enable_simplexml=yes
86232:
86233: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable SimpleXML support" >&5
86234: $as_echo_n "checking whether to enable SimpleXML support... " >&6; }
86235: # Check whether --enable-simplexml was given.
86236: if test "${enable_simplexml+set}" = set; then :
86237: enableval=$enable_simplexml; PHP_SIMPLEXML=$enableval
86238: else
86239:
86240: PHP_SIMPLEXML=yes
86241: test "$PHP_ENABLE_ALL" && PHP_SIMPLEXML=$PHP_ENABLE_ALL
86242:
86243: fi
86244:
86245:
86246:
86247: ext_output="yes, shared"
86248: ext_shared=yes
86249: case $PHP_SIMPLEXML in
86250: shared,*)
86251: PHP_SIMPLEXML=`echo "$PHP_SIMPLEXML"|$SED 's/^shared,//'`
86252: ;;
86253: shared)
86254: PHP_SIMPLEXML=yes
86255: ;;
86256: no)
86257: ext_output=no
86258: ext_shared=no
86259: ;;
86260: *)
86261: ext_output=yes
86262: ext_shared=no
86263: ;;
86264: esac
86265:
86266:
86267:
86268: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
86269: $as_echo "$ext_output" >&6; }
86270:
86271:
86272:
86273:
86274: if test -z "$PHP_LIBXML_DIR"; then
86275:
86276: php_with_libxml_dir=no
86277:
86278: { $as_echo "$as_me:${as_lineno-$LINENO}: checking libxml2 install dir" >&5
86279: $as_echo_n "checking libxml2 install dir... " >&6; }
86280:
86281: # Check whether --with-libxml-dir was given.
86282: if test "${with_libxml_dir+set}" = set; then :
86283: withval=$with_libxml_dir; PHP_LIBXML_DIR=$withval
86284: else
86285:
86286: PHP_LIBXML_DIR=no
86287:
86288:
86289: fi
86290:
86291:
86292: ext_output=$PHP_LIBXML_DIR
86293: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
86294: $as_echo "$ext_output" >&6; }
86295:
86296:
86297:
86298: fi
86299:
86300: if test "$PHP_SIMPLEXML" != "no"; then
86301:
86302: if test "$PHP_LIBXML" = "no"; then
86303: as_fn_error $? "SimpleXML extension requires LIBXML extension, add --enable-libxml" "$LINENO" 5
86304: fi
86305:
86306:
86307: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xml2-config path" >&5
86308: $as_echo_n "checking for xml2-config path... " >&6; }
86309: if ${ac_cv_php_xml2_config_path+:} false; then :
86310: $as_echo_n "(cached) " >&6
86311: else
86312:
86313: for i in $PHP_LIBXML_DIR /usr/local /usr; do
86314: if test -x "$i/bin/xml2-config"; then
86315: ac_cv_php_xml2_config_path="$i/bin/xml2-config"
86316: break
86317: fi
86318: done
86319:
86320: fi
86321: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_php_xml2_config_path" >&5
86322: $as_echo "$ac_cv_php_xml2_config_path" >&6; }
86323:
86324: if test -x "$ac_cv_php_xml2_config_path"; then
86325: XML2_CONFIG="$ac_cv_php_xml2_config_path"
86326: libxml_full_version=`$XML2_CONFIG --version`
86327: ac_IFS=$IFS
86328: IFS="."
86329: set $libxml_full_version
86330: IFS=$ac_IFS
86331: LIBXML_VERSION=`expr $1 \* 1000000 + $2 \* 1000 + $3`
86332: if test "$LIBXML_VERSION" -ge "2006011"; then
86333: LIBXML_LIBS=`$XML2_CONFIG --libs`
86334: LIBXML_INCS=`$XML2_CONFIG --cflags`
86335:
86336: for ac_i in $LIBXML_LIBS; do
86337: case $ac_i in
86338: -pthread)
86339: if test "$ext_shared" = "yes"; then
86340: SIMPLEXML_SHARED_LIBADD="$SIMPLEXML_SHARED_LIBADD -pthread"
86341: else
86342:
86343:
86344: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
86345:
86346: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
86347: if test -n "$unique" && test "`eval $cmd`" = "" ; then
86348: eval "EXTRA_LDFLAGS$unique=set"
86349: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
86350: fi
86351:
86352: fi
86353: ;;
86354: -l*)
86355: ac_ii=`echo $ac_i|cut -c 3-`
86356:
86357:
86358: case $ac_ii in
86359: c|c_r|pthread*) ;;
86360: *)
86361: if test "$ext_shared" = "yes"; then
86362: SIMPLEXML_SHARED_LIBADD="$SIMPLEXML_SHARED_LIBADD -l$ac_ii"
86363: else
86364:
86365:
86366: case $ac_ii in
86367: c|c_r|pthread*) ;;
86368: *)
86369: LIBS="$LIBS -l$ac_ii"
86370: ;;
86371: esac
86372:
86373:
86374: fi
86375: ;;
86376: esac
86377:
86378:
86379: ;;
86380: -L*)
86381: ac_ii=`echo $ac_i|cut -c 3-`
86382:
86383: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
86384:
86385: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
86386: ai_p=$ac_ii
86387: else
86388:
86389: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
86390:
86391: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
86392: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
86393: fi
86394:
86395:
86396: if test "$ext_shared" = "yes"; then
86397: SIMPLEXML_SHARED_LIBADD="-L$ai_p $SIMPLEXML_SHARED_LIBADD"
86398: test -n "$ld_runpath_switch" && SIMPLEXML_SHARED_LIBADD="$ld_runpath_switch$ai_p $SIMPLEXML_SHARED_LIBADD"
86399: else
86400:
86401:
86402:
86403: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
86404:
86405: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
86406: if test -n "$unique" && test "`eval $cmd`" = "" ; then
86407: eval "LIBPATH$unique=set"
86408:
86409: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
86410: LDFLAGS="$LDFLAGS -L$ai_p"
86411: PHP_RPATHS="$PHP_RPATHS $ai_p"
86412:
86413: fi
86414:
86415:
86416: fi
86417:
86418: fi
86419:
86420: ;;
86421: esac
86422: done
86423:
86424:
86425: for ac_i in $LIBXML_INCS; do
86426: case $ac_i in
86427: -I*)
86428: ac_ii=`echo $ac_i|cut -c 3-`
86429:
86430: if test "$ac_ii" != "/usr/include"; then
86431:
86432: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
86433: ai_p=$ac_ii
86434: else
86435:
86436: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
86437:
86438: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
86439: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
86440: fi
86441:
86442:
86443:
86444: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
86445:
86446: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
86447: if test -n "$unique" && test "`eval $cmd`" = "" ; then
86448: eval "INCLUDEPATH$unique=set"
86449:
86450: if test ""; then
86451: INCLUDES="-I$ai_p $INCLUDES"
86452: else
86453: INCLUDES="$INCLUDES -I$ai_p"
86454: fi
86455:
86456: fi
86457:
86458: fi
86459:
86460: ;;
86461: esac
86462: done
86463:
86464:
86465: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libxml build works" >&5
86466: $as_echo_n "checking whether libxml build works... " >&6; }
86467: if ${php_cv_libxml_build_works+:} false; then :
86468: $as_echo_n "(cached) " >&6
86469: else
86470:
86471:
86472: old_LIBS=$LIBS
86473: LIBS="
86474: $SIMPLEXML_SHARED_LIBADD
86475: $LIBS"
86476: if test "$cross_compiling" = yes; then :
86477:
86478: LIBS=$old_LIBS
86479:
86480: else
86481: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
86482: /* end confdefs.h. */
86483:
86484:
86485: char xmlInitParser();
86486: int main() {
86487: xmlInitParser();
86488: return 0;
86489: }
86490:
86491: _ACEOF
86492: if ac_fn_c_try_run "$LINENO"; then :
86493:
86494: LIBS=$old_LIBS
86495:
86496: php_cv_libxml_build_works=yes
86497:
86498:
86499: else
86500:
86501: LIBS=$old_LIBS
86502:
86503: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
86504: $as_echo "no" >&6; }
86505: as_fn_error $? "build test failed. Please check the config.log for details." "$LINENO" 5
86506:
86507:
86508: fi
86509: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
86510: conftest.$ac_objext conftest.beam conftest.$ac_ext
86511: fi
86512:
86513:
86514:
86515: fi
86516: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_libxml_build_works" >&5
86517: $as_echo "$php_cv_libxml_build_works" >&6; }
86518: if test "$php_cv_libxml_build_works" = "yes"; then
86519:
86520: $as_echo "#define HAVE_LIBXML 1" >>confdefs.h
86521:
86522: fi
86523:
86524:
86525: $as_echo "#define HAVE_SIMPLEXML 1" >>confdefs.h
86526:
86527:
86528: ext_builddir=ext/simplexml
86529: ext_srcdir=$abs_srcdir/ext/simplexml
86530:
86531: ac_extra=
86532:
86533: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
86534: PHP_SIMPLEXML_SHARED=no
86535:
86536:
86537: case ext/simplexml in
86538: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
86539: /*) ac_srcdir=`echo "ext/simplexml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
86540: *) ac_srcdir="$abs_srcdir/ext/simplexml/"; ac_bdir="ext/simplexml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
86541: esac
86542:
86543:
86544:
86545: b_c_pre=$php_c_pre
86546: b_cxx_pre=$php_cxx_pre
86547: b_c_meta=$php_c_meta
86548: b_cxx_meta=$php_cxx_meta
86549: b_c_post=$php_c_post
86550: b_cxx_post=$php_cxx_post
86551: b_lo=$php_lo
86552:
86553:
86554: old_IFS=$IFS
86555: for ac_src in simplexml.c sxe.c; do
86556:
86557: IFS=.
86558: set $ac_src
86559: ac_obj=$1
86560: IFS=$old_IFS
86561:
86562: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
86563:
86564: case $ac_src in
86565: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
86566: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
86567: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
86568: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
86569: esac
86570:
86571: cat >>Makefile.objects<<EOF
86572: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
86573: $ac_comp
86574: EOF
86575: done
86576:
86577:
86578: EXT_STATIC="$EXT_STATIC simplexml"
86579: if test "$ext_shared" != "nocli"; then
86580: EXT_CLI_STATIC="$EXT_CLI_STATIC simplexml"
86581: fi
86582: else
86583: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
86584: PHP_SIMPLEXML_SHARED=yes
86585:
86586: case ext/simplexml in
86587: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
86588: /*) ac_srcdir=`echo "ext/simplexml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
86589: *) ac_srcdir="$abs_srcdir/ext/simplexml/"; ac_bdir="ext/simplexml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
86590: esac
86591:
86592:
86593:
86594: b_c_pre=$shared_c_pre
86595: b_cxx_pre=$shared_cxx_pre
86596: b_c_meta=$shared_c_meta
86597: b_cxx_meta=$shared_cxx_meta
86598: b_c_post=$shared_c_post
86599: b_cxx_post=$shared_cxx_post
86600: b_lo=$shared_lo
86601:
86602:
86603: old_IFS=$IFS
86604: for ac_src in simplexml.c sxe.c; do
86605:
86606: IFS=.
86607: set $ac_src
86608: ac_obj=$1
86609: IFS=$old_IFS
86610:
86611: shared_objects_simplexml="$shared_objects_simplexml $ac_bdir$ac_obj.lo"
86612:
86613: case $ac_src in
86614: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
86615: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
86616: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
86617: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
86618: esac
86619:
86620: cat >>Makefile.objects<<EOF
86621: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
86622: $ac_comp
86623: EOF
86624: done
86625:
86626: case $host_alias in
86627: *netware*)
86628:
86629: install_modules="install-modules"
86630:
86631: case $host_alias in
86632: *aix*)
86633: suffix=so
86634: 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'
86635: ;;
86636: *netware*)
86637: suffix=nlm
86638: link_cmd='$(LIBTOOL) --mode=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)'
86639: ;;
86640: *)
86641: suffix=la
86642: link_cmd='$(LIBTOOL) --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)'
86643: ;;
86644: esac
86645:
86646: if test "x" = "xyes"; then
86647: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpsimplexml.$suffix"
86648: else
86649: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpsimplexml.$suffix"
86650: fi
86651:
86652: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_simplexml"
86653:
86654: cat >>Makefile.objects<<EOF
86655: \$(phplibdir)/phpsimplexml.$suffix: $ext_builddir/phpsimplexml.$suffix
86656: \$(LIBTOOL) --mode=install cp $ext_builddir/phpsimplexml.$suffix \$(phplibdir)
86657:
86658: $ext_builddir/phpsimplexml.$suffix: \$(shared_objects_simplexml) \$(PHPSIMPLEXML_SHARED_DEPENDENCIES)
86659: $link_cmd
86660:
86661: EOF
86662:
86663: ;;
86664: *)
86665:
86666: install_modules="install-modules"
86667:
86668: case $host_alias in
86669: *aix*)
86670: suffix=so
86671: 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'
86672: ;;
86673: *netware*)
86674: suffix=nlm
86675: link_cmd='$(LIBTOOL) --mode=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)'
86676: ;;
86677: *)
86678: suffix=la
86679: link_cmd='$(LIBTOOL) --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)'
86680: ;;
86681: esac
86682:
86683: if test "x" = "xyes"; then
86684: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/simplexml.$suffix"
86685: else
86686: PHP_MODULES="$PHP_MODULES \$(phplibdir)/simplexml.$suffix"
86687: fi
86688:
86689: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_simplexml"
86690:
86691: cat >>Makefile.objects<<EOF
86692: \$(phplibdir)/simplexml.$suffix: $ext_builddir/simplexml.$suffix
86693: \$(LIBTOOL) --mode=install cp $ext_builddir/simplexml.$suffix \$(phplibdir)
86694:
86695: $ext_builddir/simplexml.$suffix: \$(shared_objects_simplexml) \$(SIMPLEXML_SHARED_DEPENDENCIES)
86696: $link_cmd
86697:
86698: EOF
86699:
86700: ;;
86701: esac
86702:
86703: cat >>confdefs.h <<_ACEOF
86704: #define COMPILE_DL_SIMPLEXML 1
86705: _ACEOF
86706:
86707: fi
86708: fi
86709:
86710: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
86711: PHP_SIMPLEXML_SHARED=no
86712:
86713:
86714: case ext/simplexml in
86715: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
86716: /*) ac_srcdir=`echo "ext/simplexml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
86717: *) ac_srcdir="$abs_srcdir/ext/simplexml/"; ac_bdir="ext/simplexml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
86718: esac
86719:
86720:
86721:
86722: b_c_pre=$php_c_pre
86723: b_cxx_pre=$php_cxx_pre
86724: b_c_meta=$php_c_meta
86725: b_cxx_meta=$php_cxx_meta
86726: b_c_post=$php_c_post
86727: b_cxx_post=$php_cxx_post
86728: b_lo=$php_lo
86729:
86730:
86731: old_IFS=$IFS
86732: for ac_src in simplexml.c sxe.c; do
86733:
86734: IFS=.
86735: set $ac_src
86736: ac_obj=$1
86737: IFS=$old_IFS
86738:
86739: PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
86740:
86741: case $ac_src in
86742: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
86743: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
86744: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
86745: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
86746: esac
86747:
86748: cat >>Makefile.objects<<EOF
86749: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
86750: $ac_comp
86751: EOF
86752: done
86753:
86754:
86755:
86756:
86757: case ext/simplexml in
86758: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
86759: /*) ac_srcdir=`echo "ext/simplexml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
86760: *) ac_srcdir="$abs_srcdir/ext/simplexml/"; ac_bdir="ext/simplexml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
86761: esac
86762:
86763:
86764:
86765: b_c_pre=$php_c_pre
86766: b_cxx_pre=$php_cxx_pre
86767: b_c_meta=$php_c_meta
86768: b_cxx_meta=$php_cxx_meta
86769: b_c_post=$php_c_post
86770: b_cxx_post=$php_cxx_post
86771: b_lo=$php_lo
86772:
86773:
86774: old_IFS=$IFS
86775: for ac_src in simplexml.c sxe.c; do
86776:
86777: IFS=.
86778: set $ac_src
86779: ac_obj=$1
86780: IFS=$old_IFS
86781:
86782: PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo"
86783:
86784: case $ac_src in
86785: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
86786: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
86787: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
86788: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
86789: esac
86790:
86791: cat >>Makefile.objects<<EOF
86792: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
86793: $ac_comp
86794: EOF
86795: done
86796:
86797:
86798:
86799:
86800: case ext/simplexml in
86801: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
86802: /*) ac_srcdir=`echo "ext/simplexml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
86803: *) ac_srcdir="$abs_srcdir/ext/simplexml/"; ac_bdir="ext/simplexml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
86804: esac
86805:
86806:
86807:
86808: b_c_pre=$php_c_pre
86809: b_cxx_pre=$php_cxx_pre
86810: b_c_meta=$php_c_meta
86811: b_cxx_meta=$php_cxx_meta
86812: b_c_post=$php_c_post
86813: b_cxx_post=$php_cxx_post
86814: b_lo=$php_lo
86815:
86816:
86817: old_IFS=$IFS
86818: for ac_src in simplexml.c sxe.c; do
86819:
86820: IFS=.
86821: set $ac_src
86822: ac_obj=$1
86823: IFS=$old_IFS
86824:
86825: PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo"
86826:
86827: case $ac_src in
86828: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
86829: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
86830: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
86831: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
86832: esac
86833:
86834: cat >>Makefile.objects<<EOF
86835: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
86836: $ac_comp
86837: EOF
86838: done
86839:
86840:
86841: EXT_CLI_STATIC="$EXT_CLI_STATIC simplexml"
86842: fi
86843:
86844:
86845: BUILD_DIR="$BUILD_DIR $ext_builddir"
86846:
86847:
86848:
86849: if test "$ext_builddir" = "."; then
86850: PHP_PECL_EXTENSION=simplexml
86851:
86852: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
86853:
86854: fi
86855:
86856:
86857: PHP_VAR_SUBST="$PHP_VAR_SUBST SIMPLEXML_SHARED_LIBADD"
86858:
86859:
86860: else
86861: as_fn_error $? "libxml2 version 2.6.11 or greater required." "$LINENO" 5
86862: fi
86863: else
86864: as_fn_error $? "xml2-config not found. Please check your libxml2 installation." "$LINENO" 5
86865:
86866: fi
86867:
86868:
86869: am_i_shared=$PHP_SIMPLEXML_SHARED
86870: is_it_shared=$PHP_LIBXML_SHARED
86871: is_it_enabled=$PHP_LIBXML
86872: if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
86873: as_fn_error $? "
86874: You've configured extension simplexml to build statically, but it
86875: depends on extension libxml, which you've configured to build shared.
86876: You either need to build simplexml shared or build libxml statically for the
86877: build to be successful.
86878: " "$LINENO" 5
86879: fi
86880:
86881:
86882: am_i_shared=$PHP_SIMPLEXML_SHARED
86883: is_it_shared=$PHP_SPL_SHARED
86884: is_it_enabled=$PHP_SPL
86885: if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
86886: as_fn_error $? "
86887: You've configured extension simplexml to build statically, but it
86888: depends on extension spl, which you've configured to build shared.
86889: You either need to build simplexml shared or build spl statically for the
86890: build to be successful.
86891: " "$LINENO" 5
86892: fi
86893:
86894: fi
86895:
86896:
86897:
86898: php_with_snmp=no
86899:
86900: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SNMP support" >&5
86901: $as_echo_n "checking for SNMP support... " >&6; }
86902:
86903: # Check whether --with-snmp was given.
86904: if test "${with_snmp+set}" = set; then :
86905: withval=$with_snmp; PHP_SNMP=$withval
86906: else
86907:
86908: PHP_SNMP=no
86909: test "$PHP_ENABLE_ALL" && PHP_SNMP=$PHP_ENABLE_ALL
86910:
86911: fi
86912:
86913:
86914:
86915: ext_output="yes, shared"
86916: ext_shared=yes
86917: case $PHP_SNMP in
86918: shared,*)
86919: PHP_SNMP=`echo "$PHP_SNMP"|$SED 's/^shared,//'`
86920: ;;
86921: shared)
86922: PHP_SNMP=yes
86923: ;;
86924: no)
86925: ext_output=no
86926: ext_shared=no
86927: ;;
86928: *)
86929: ext_output=yes
86930: ext_shared=no
86931: ;;
86932: esac
86933:
86934:
86935:
86936: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
86937: $as_echo "$ext_output" >&6; }
86938:
86939:
86940:
86941:
86942:
86943: php_with_openssl_dir=no
86944:
86945: { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL dir for SNMP" >&5
86946: $as_echo_n "checking OpenSSL dir for SNMP... " >&6; }
86947:
86948: # Check whether --with-openssl-dir was given.
86949: if test "${with_openssl_dir+set}" = set; then :
86950: withval=$with_openssl_dir; PHP_OPENSSL_DIR=$withval
86951: else
86952:
86953: PHP_OPENSSL_DIR=no
86954:
86955:
86956: fi
86957:
86958:
86959: ext_output=$PHP_OPENSSL_DIR
86960: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
86961: $as_echo "$ext_output" >&6; }
86962:
86963:
86964:
86965:
86966:
86967: php_enable_ucd_snmp_hack=no
86968:
86969: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable UCD SNMP hack" >&5
86970: $as_echo_n "checking whether to enable UCD SNMP hack... " >&6; }
86971: # Check whether --enable-ucd-snmp-hack was given.
86972: if test "${enable_ucd_snmp_hack+set}" = set; then :
86973: enableval=$enable_ucd_snmp_hack; PHP_UCD_SNMP_HACK=$enableval
86974: else
86975:
86976: PHP_UCD_SNMP_HACK=no
86977:
86978:
86979: fi
86980:
86981:
86982: ext_output=$PHP_UCD_SNMP_HACK
86983: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
86984: $as_echo "$ext_output" >&6; }
86985:
86986:
86987:
86988:
86989: if test "$PHP_SNMP" != "no"; then
86990:
86991: if test "$PHP_SNMP" = "yes"; then
86992: # Extract the first word of "net-snmp-config", so it can be a program name with args.
86993: set dummy net-snmp-config; ac_word=$2
86994: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
86995: $as_echo_n "checking for $ac_word... " >&6; }
86996: if ${ac_cv_path_SNMP_CONFIG+:} false; then :
86997: $as_echo_n "(cached) " >&6
86998: else
86999: case $SNMP_CONFIG in
87000: [\\/]* | ?:[\\/]*)
87001: ac_cv_path_SNMP_CONFIG="$SNMP_CONFIG" # Let the user override the test with a path.
87002: ;;
87003: *)
87004: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
87005: as_dummy="/usr/local/bin:$PATH"
87006: for as_dir in $as_dummy
87007: do
87008: IFS=$as_save_IFS
87009: test -z "$as_dir" && as_dir=.
87010: for ac_exec_ext in '' $ac_executable_extensions; do
87011: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
87012: ac_cv_path_SNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
87013: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
87014: break 2
87015: fi
87016: done
87017: done
87018: IFS=$as_save_IFS
87019:
87020: ;;
87021: esac
87022: fi
87023: SNMP_CONFIG=$ac_cv_path_SNMP_CONFIG
87024: if test -n "$SNMP_CONFIG"; then
87025: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMP_CONFIG" >&5
87026: $as_echo "$SNMP_CONFIG" >&6; }
87027: else
87028: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
87029: $as_echo "no" >&6; }
87030: fi
87031:
87032:
87033: else
87034: SNMP_CONFIG="$PHP_SNMP/bin/net-snmp-config"
87035: fi
87036:
87037: if test -x "$SNMP_CONFIG"; then
87038: SNMP_LIBS=`$SNMP_CONFIG --netsnmp-libs`
87039: SNMP_LIBS="$SNMP_LIBS `$SNMP_CONFIG --external-libs`"
87040: SNMP_PREFIX=`$SNMP_CONFIG --prefix`
87041:
87042: if test -n "$SNMP_LIBS" && test -n "$SNMP_PREFIX"; then
87043:
87044: if test "${SNMP_PREFIX}/include" != "/usr/include"; then
87045:
87046: if test -z "${SNMP_PREFIX}/include" || echo "${SNMP_PREFIX}/include" | grep '^/' >/dev/null ; then
87047: ai_p=${SNMP_PREFIX}/include
87048: else
87049:
87050: ep_dir="`echo $SNMP_PREFIX/include|$SED 's%/*[^/][^/]*/*$%%'`"
87051:
87052: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
87053: ai_p="$ep_realdir/`basename \"${SNMP_PREFIX}/include\"`"
87054: fi
87055:
87056:
87057:
87058: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
87059:
87060: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
87061: if test -n "$unique" && test "`eval $cmd`" = "" ; then
87062: eval "INCLUDEPATH$unique=set"
87063:
87064: if test ""; then
87065: INCLUDES="-I$ai_p $INCLUDES"
87066: else
87067: INCLUDES="$INCLUDES -I$ai_p"
87068: fi
87069:
87070: fi
87071:
87072: fi
87073:
87074:
87075: for ac_i in $SNMP_LIBS; do
87076: case $ac_i in
87077: -pthread)
87078: if test "$ext_shared" = "yes"; then
87079: SNMP_SHARED_LIBADD="$SNMP_SHARED_LIBADD -pthread"
87080: else
87081:
87082:
87083: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
87084:
87085: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
87086: if test -n "$unique" && test "`eval $cmd`" = "" ; then
87087: eval "EXTRA_LDFLAGS$unique=set"
87088: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
87089: fi
87090:
87091: fi
87092: ;;
87093: -l*)
87094: ac_ii=`echo $ac_i|cut -c 3-`
87095:
87096:
87097: case $ac_ii in
87098: c|c_r|pthread*) ;;
87099: *)
87100: if test "$ext_shared" = "yes"; then
87101: SNMP_SHARED_LIBADD="$SNMP_SHARED_LIBADD -l$ac_ii"
87102: else
87103:
87104:
87105: case $ac_ii in
87106: c|c_r|pthread*) ;;
87107: *)
87108: LIBS="$LIBS -l$ac_ii"
87109: ;;
87110: esac
87111:
87112:
87113: fi
87114: ;;
87115: esac
87116:
87117:
87118: ;;
87119: -L*)
87120: ac_ii=`echo $ac_i|cut -c 3-`
87121:
87122: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
87123:
87124: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
87125: ai_p=$ac_ii
87126: else
87127:
87128: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
87129:
87130: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
87131: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
87132: fi
87133:
87134:
87135: if test "$ext_shared" = "yes"; then
87136: SNMP_SHARED_LIBADD="-L$ai_p $SNMP_SHARED_LIBADD"
87137: test -n "$ld_runpath_switch" && SNMP_SHARED_LIBADD="$ld_runpath_switch$ai_p $SNMP_SHARED_LIBADD"
87138: else
87139:
87140:
87141:
87142: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
87143:
87144: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
87145: if test -n "$unique" && test "`eval $cmd`" = "" ; then
87146: eval "LIBPATH$unique=set"
87147:
87148: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
87149: LDFLAGS="$LDFLAGS -L$ai_p"
87150: PHP_RPATHS="$PHP_RPATHS $ai_p"
87151:
87152: fi
87153:
87154:
87155: fi
87156:
87157: fi
87158:
87159: ;;
87160: esac
87161: done
87162:
87163:
87164: $as_echo "#define HAVE_NET_SNMP 1" >>confdefs.h
87165:
87166: SNMP_LIBNAME=netsnmp
87167: else
87168: as_fn_error $? "Could not find the required paths. Please check your net-snmp installation." "$LINENO" 5
87169: fi
87170: else
87171:
87172:
87173: if test "$PHP_SNMP" = "yes"; then
87174: for i in /usr/include /usr/local/include; do
87175: test -f $i/snmp.h && SNMP_INCDIR=$i
87176: test -f $i/ucd-snmp/snmp.h && SNMP_INCDIR=$i/ucd-snmp
87177: test -f $i/snmp/snmp.h && SNMP_INCDIR=$i/snmp
87178: test -f $i/snmp/include/ucd-snmp/snmp.h && SNMP_INCDIR=$i/snmp/include/ucd-snmp
87179: done
87180: for i in /usr/$PHP_LIBDIR /usr/snmp/lib /usr/local/$PHP_LIBDIR /usr/local/lib /usr/local/snmp/lib; do
87181: test -f $i/libsnmp.a || test -f $i/libsnmp.$SHLIB_SUFFIX_NAME && SNMP_LIBDIR=$i
87182: done
87183: else
87184: SNMP_INCDIR=$PHP_SNMP/include
87185: test -d $PHP_SNMP/include/ucd-snmp && SNMP_INCDIR=$PHP_SNMP/include/ucd-snmp
87186: SNMP_LIBDIR=$PHP_SNMP/lib
87187: fi
87188:
87189: if test -z "$SNMP_INCDIR"; then
87190: as_fn_error $? "snmp.h not found. Check your SNMP installation." "$LINENO" 5
87191: elif test -z "$SNMP_LIBDIR"; then
87192: as_fn_error $? "libsnmp not found. Check your SNMP installation." "$LINENO" 5
87193: fi
87194:
87195: old_CPPFLAGS=$CPPFLAGS
87196: CPPFLAGS=-I$SNMP_INCDIR
87197: for ac_header in default_store.h
87198: do :
87199: ac_fn_c_check_header_mongrel "$LINENO" "default_store.h" "ac_cv_header_default_store_h" "$ac_includes_default"
87200: if test "x$ac_cv_header_default_store_h" = xyes; then :
87201: cat >>confdefs.h <<_ACEOF
87202: #define HAVE_DEFAULT_STORE_H 1
87203: _ACEOF
87204:
87205: fi
87206:
87207: done
87208:
87209: if test "$ac_cv_header_default_store_h" = "yes"; then
87210: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL support in SNMP libraries" >&5
87211: $as_echo_n "checking for OpenSSL support in SNMP libraries... " >&6; }
87212: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
87213: /* end confdefs.h. */
87214:
87215: #include <ucd-snmp-config.h>
87216: #if USE_OPENSSL
87217: yes
87218: #endif
87219:
87220: _ACEOF
87221: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
87222: $EGREP "yes" >/dev/null 2>&1; then :
87223:
87224: SNMP_SSL=yes
87225:
87226: else
87227:
87228: SNMP_SSL=no
87229:
87230: fi
87231: rm -f conftest*
87232:
87233: fi
87234: CPPFLAGS=$old_CPPFLAGS
87235: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMP_SSL" >&5
87236: $as_echo "$SNMP_SSL" >&6; }
87237:
87238: if test "$SNMP_SSL" = "yes"; then
87239: if test "$PHP_OPENSSL_DIR" != "no"; then
87240: PHP_OPENSSL=$PHP_OPENSSL_DIR
87241: fi
87242:
87243: if test "$PHP_OPENSSL" = "no"; then
87244: as_fn_error $? "The UCD-SNMP in this system is built with SSL support.
87245:
87246: Add --with-openssl-dir=DIR to your configure line." "$LINENO" 5
87247: else
87248:
87249: found_openssl=no
87250: unset OPENSSL_INCDIR
87251: unset OPENSSL_LIBDIR
87252:
87253: test -z "$PHP_OPENSSL" && PHP_OPENSSL=no
87254: test -z "$PHP_IMAP_SSL" && PHP_IMAP_SSL=no
87255:
87256: if test -n "$PHP_OPENSSL" && test "$PHP_OPENSSL" != "no"; then
87257: PHP_OPENSSL_DIR=$PHP_OPENSSL
87258: elif test -n "$PHP_IMAP_SSL" && test "$PHP_IMAP_SSL" != "no"; then
87259: PHP_OPENSSL_DIR=$PHP_IMAP_SSL
87260: fi
87261:
87262: if test -z "$PKG_CONFIG"; then
87263: # Extract the first word of "pkg-config", so it can be a program name with args.
87264: set dummy pkg-config; ac_word=$2
87265: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
87266: $as_echo_n "checking for $ac_word... " >&6; }
87267: if ${ac_cv_path_PKG_CONFIG+:} false; then :
87268: $as_echo_n "(cached) " >&6
87269: else
87270: case $PKG_CONFIG in
87271: [\\/]* | ?:[\\/]*)
87272: ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
87273: ;;
87274: *)
87275: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
87276: for as_dir in $PATH
87277: do
87278: IFS=$as_save_IFS
87279: test -z "$as_dir" && as_dir=.
87280: for ac_exec_ext in '' $ac_executable_extensions; do
87281: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
87282: ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
87283: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
87284: break 2
87285: fi
87286: done
87287: done
87288: IFS=$as_save_IFS
87289:
87290: test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
87291: ;;
87292: esac
87293: fi
87294: PKG_CONFIG=$ac_cv_path_PKG_CONFIG
87295: if test -n "$PKG_CONFIG"; then
87296: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
87297: $as_echo "$PKG_CONFIG" >&6; }
87298: else
87299: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
87300: $as_echo "no" >&6; }
87301: fi
87302:
87303:
87304: fi
87305:
87306: if test "$PHP_OPENSSL_DIR" = "yes" && test -x "$PKG_CONFIG" && $PKG_CONFIG --exists openssl; then
87307: if $PKG_CONFIG --atleast-version=0.9.6 openssl; then
87308: found_openssl=yes
87309: OPENSSL_LIBS=`$PKG_CONFIG --libs openssl`
87310: OPENSSL_INCS=`$PKG_CONFIG --cflags-only-I openssl`
87311: OPENSSL_INCDIR=`$PKG_CONFIG --variable=includedir openssl`
87312: else
87313: as_fn_error $? "OpenSSL version 0.9.6 or greater required." "$LINENO" 5
87314: fi
87315:
87316: if test -n "$OPENSSL_LIBS" && test -n "$OPENSSL_INCS"; then
87317:
87318: for ac_i in $OPENSSL_LIBS; do
87319: case $ac_i in
87320: -pthread)
87321: if test "$ext_shared" = "yes"; then
87322: SNMP_SHARED_LIBADD="$SNMP_SHARED_LIBADD -pthread"
87323: else
87324:
87325:
87326: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
87327:
87328: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
87329: if test -n "$unique" && test "`eval $cmd`" = "" ; then
87330: eval "EXTRA_LDFLAGS$unique=set"
87331: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
87332: fi
87333:
87334: fi
87335: ;;
87336: -l*)
87337: ac_ii=`echo $ac_i|cut -c 3-`
87338:
87339:
87340: case $ac_ii in
87341: c|c_r|pthread*) ;;
87342: *)
87343: if test "$ext_shared" = "yes"; then
87344: SNMP_SHARED_LIBADD="$SNMP_SHARED_LIBADD -l$ac_ii"
87345: else
87346:
87347:
87348: case $ac_ii in
87349: c|c_r|pthread*) ;;
87350: *)
87351: LIBS="$LIBS -l$ac_ii"
87352: ;;
87353: esac
87354:
87355:
87356: fi
87357: ;;
87358: esac
87359:
87360:
87361: ;;
87362: -L*)
87363: ac_ii=`echo $ac_i|cut -c 3-`
87364:
87365: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
87366:
87367: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
87368: ai_p=$ac_ii
87369: else
87370:
87371: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
87372:
87373: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
87374: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
87375: fi
87376:
87377:
87378: if test "$ext_shared" = "yes"; then
87379: SNMP_SHARED_LIBADD="-L$ai_p $SNMP_SHARED_LIBADD"
87380: test -n "$ld_runpath_switch" && SNMP_SHARED_LIBADD="$ld_runpath_switch$ai_p $SNMP_SHARED_LIBADD"
87381: else
87382:
87383:
87384:
87385: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
87386:
87387: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
87388: if test -n "$unique" && test "`eval $cmd`" = "" ; then
87389: eval "LIBPATH$unique=set"
87390:
87391: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
87392: LDFLAGS="$LDFLAGS -L$ai_p"
87393: PHP_RPATHS="$PHP_RPATHS $ai_p"
87394:
87395: fi
87396:
87397:
87398: fi
87399:
87400: fi
87401:
87402: ;;
87403: esac
87404: done
87405:
87406:
87407: for ac_i in $OPENSSL_INCS; do
87408: case $ac_i in
87409: -I*)
87410: ac_ii=`echo $ac_i|cut -c 3-`
87411:
87412: if test "$ac_ii" != "/usr/include"; then
87413:
87414: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
87415: ai_p=$ac_ii
87416: else
87417:
87418: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
87419:
87420: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
87421: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
87422: fi
87423:
87424:
87425:
87426: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
87427:
87428: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
87429: if test -n "$unique" && test "`eval $cmd`" = "" ; then
87430: eval "INCLUDEPATH$unique=set"
87431:
87432: if test ""; then
87433: INCLUDES="-I$ai_p $INCLUDES"
87434: else
87435: INCLUDES="$INCLUDES -I$ai_p"
87436: fi
87437:
87438: fi
87439:
87440: fi
87441:
87442: ;;
87443: esac
87444: done
87445:
87446: fi
87447: fi
87448:
87449: if test "$found_openssl" = "no"; then
87450:
87451: if test "$PHP_OPENSSL_DIR" = "yes"; then
87452: PHP_OPENSSL_DIR="/usr/local/ssl /usr/local /usr /usr/local/openssl"
87453: fi
87454:
87455: for i in $PHP_OPENSSL_DIR; do
87456: if test -r $i/include/openssl/evp.h; then
87457: OPENSSL_INCDIR=$i/include
87458: fi
87459: if test -r $i/$PHP_LIBDIR/libssl.a -o -r $i/$PHP_LIBDIR/libssl.$SHLIB_SUFFIX_NAME; then
87460: OPENSSL_LIBDIR=$i/$PHP_LIBDIR
87461: fi
87462: test -n "$OPENSSL_INCDIR" && test -n "$OPENSSL_LIBDIR" && break
87463: done
87464:
87465: if test -z "$OPENSSL_INCDIR"; then
87466: as_fn_error $? "Cannot find OpenSSL's <evp.h>" "$LINENO" 5
87467: fi
87468:
87469: if test -z "$OPENSSL_LIBDIR"; then
87470: as_fn_error $? "Cannot find OpenSSL's libraries" "$LINENO" 5
87471: fi
87472:
87473: old_CPPFLAGS=$CPPFLAGS
87474: CPPFLAGS=-I$OPENSSL_INCDIR
87475: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version" >&5
87476: $as_echo_n "checking for OpenSSL version... " >&6; }
87477: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
87478: /* end confdefs.h. */
87479:
87480: #include <openssl/opensslv.h>
87481: #if OPENSSL_VERSION_NUMBER >= 0x0090600fL
87482: yes
87483: #endif
87484:
87485: _ACEOF
87486: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
87487: $EGREP "yes" >/dev/null 2>&1; then :
87488:
87489: { $as_echo "$as_me:${as_lineno-$LINENO}: result: >= 0.9.6" >&5
87490: $as_echo ">= 0.9.6" >&6; }
87491:
87492: else
87493:
87494: as_fn_error $? "OpenSSL version 0.9.6 or greater required." "$LINENO" 5
87495:
87496: fi
87497: rm -f conftest*
87498:
87499: CPPFLAGS=$old_CPPFLAGS
87500:
87501:
87502: if test "$OPENSSL_INCDIR" != "/usr/include"; then
87503:
87504: if test -z "$OPENSSL_INCDIR" || echo "$OPENSSL_INCDIR" | grep '^/' >/dev/null ; then
87505: ai_p=$OPENSSL_INCDIR
87506: else
87507:
87508: ep_dir="`echo $OPENSSL_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`"
87509:
87510: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
87511: ai_p="$ep_realdir/`basename \"$OPENSSL_INCDIR\"`"
87512: fi
87513:
87514:
87515:
87516: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
87517:
87518: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
87519: if test -n "$unique" && test "`eval $cmd`" = "" ; then
87520: eval "INCLUDEPATH$unique=set"
87521:
87522: if test ""; then
87523: INCLUDES="-I$ai_p $INCLUDES"
87524: else
87525: INCLUDES="$INCLUDES -I$ai_p"
87526: fi
87527:
87528: fi
87529:
87530: fi
87531:
87532:
87533:
87534: save_old_LDFLAGS=$LDFLAGS
87535: ac_stuff="
87536: -L$OPENSSL_LIBDIR
87537: "
87538:
87539: save_ext_shared=$ext_shared
87540: ext_shared=yes
87541:
87542: for ac_i in $ac_stuff; do
87543: case $ac_i in
87544: -pthread)
87545: if test "$ext_shared" = "yes"; then
87546: LDFLAGS="$LDFLAGS -pthread"
87547: else
87548:
87549:
87550: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
87551:
87552: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
87553: if test -n "$unique" && test "`eval $cmd`" = "" ; then
87554: eval "EXTRA_LDFLAGS$unique=set"
87555: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
87556: fi
87557:
87558: fi
87559: ;;
87560: -l*)
87561: ac_ii=`echo $ac_i|cut -c 3-`
87562:
87563:
87564: case $ac_ii in
87565: c|c_r|pthread*) ;;
87566: *)
87567: if test "$ext_shared" = "yes"; then
87568: LDFLAGS="$LDFLAGS -l$ac_ii"
87569: else
87570:
87571:
87572: case $ac_ii in
87573: c|c_r|pthread*) ;;
87574: *)
87575: LIBS="$LIBS -l$ac_ii"
87576: ;;
87577: esac
87578:
87579:
87580: fi
87581: ;;
87582: esac
87583:
87584:
87585: ;;
87586: -L*)
87587: ac_ii=`echo $ac_i|cut -c 3-`
87588:
87589: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
87590:
87591: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
87592: ai_p=$ac_ii
87593: else
87594:
87595: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
87596:
87597: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
87598: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
87599: fi
87600:
87601:
87602: if test "$ext_shared" = "yes"; then
87603: LDFLAGS="-L$ai_p $LDFLAGS"
87604: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
87605: else
87606:
87607:
87608:
87609: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
87610:
87611: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
87612: if test -n "$unique" && test "`eval $cmd`" = "" ; then
87613: eval "LIBPATH$unique=set"
87614:
87615: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
87616: LDFLAGS="$LDFLAGS -L$ai_p"
87617: PHP_RPATHS="$PHP_RPATHS $ai_p"
87618:
87619: fi
87620:
87621:
87622: fi
87623:
87624: fi
87625:
87626: ;;
87627: esac
87628: done
87629:
87630: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_free in -lcrypto" >&5
87631: $as_echo_n "checking for CRYPTO_free in -lcrypto... " >&6; }
87632: if ${ac_cv_lib_crypto_CRYPTO_free+:} false; then :
87633: $as_echo_n "(cached) " >&6
87634: else
87635: ac_check_lib_save_LIBS=$LIBS
87636: LIBS="-lcrypto $LIBS"
87637: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
87638: /* end confdefs.h. */
87639:
87640: /* Override any GCC internal prototype to avoid an error.
87641: Use char because int might match the return type of a GCC
87642: builtin and then its argument prototype would still apply. */
87643: #ifdef __cplusplus
87644: extern "C"
87645: #endif
87646: char CRYPTO_free ();
87647: int
87648: main ()
87649: {
87650: return CRYPTO_free ();
87651: ;
87652: return 0;
87653: }
87654: _ACEOF
87655: if ac_fn_c_try_link "$LINENO"; then :
87656: ac_cv_lib_crypto_CRYPTO_free=yes
87657: else
87658: ac_cv_lib_crypto_CRYPTO_free=no
87659: fi
87660: rm -f core conftest.err conftest.$ac_objext \
87661: conftest$ac_exeext conftest.$ac_ext
87662: LIBS=$ac_check_lib_save_LIBS
87663: fi
87664: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_free" >&5
87665: $as_echo "$ac_cv_lib_crypto_CRYPTO_free" >&6; }
87666: if test "x$ac_cv_lib_crypto_CRYPTO_free" = xyes; then :
87667:
87668: LDFLAGS=$save_old_LDFLAGS
87669: ext_shared=$save_ext_shared
87670:
87671:
87672:
87673: case crypto in
87674: c|c_r|pthread*) ;;
87675: *)
87676: if test "$ext_shared" = "yes"; then
87677: SNMP_SHARED_LIBADD="-lcrypto $SNMP_SHARED_LIBADD"
87678: else
87679:
87680:
87681: case crypto in
87682: c|c_r|pthread*) ;;
87683: *)
87684: LIBS="-lcrypto $LIBS"
87685: ;;
87686: esac
87687:
87688:
87689: fi
87690: ;;
87691: esac
87692:
87693:
87694:
87695:
87696: else
87697:
87698: LDFLAGS=$save_old_LDFLAGS
87699: ext_shared=$save_ext_shared
87700: unset ac_cv_lib_crypto_CRYPTO_free
87701:
87702: as_fn_error $? "libcrypto not found!" "$LINENO" 5
87703:
87704:
87705: fi
87706:
87707:
87708: old_LIBS=$LIBS
87709: LIBS="$LIBS -lcrypto"
87710:
87711: save_old_LDFLAGS=$LDFLAGS
87712: ac_stuff="
87713: -L$OPENSSL_LIBDIR
87714: "
87715:
87716: save_ext_shared=$ext_shared
87717: ext_shared=yes
87718:
87719: for ac_i in $ac_stuff; do
87720: case $ac_i in
87721: -pthread)
87722: if test "$ext_shared" = "yes"; then
87723: LDFLAGS="$LDFLAGS -pthread"
87724: else
87725:
87726:
87727: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
87728:
87729: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
87730: if test -n "$unique" && test "`eval $cmd`" = "" ; then
87731: eval "EXTRA_LDFLAGS$unique=set"
87732: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
87733: fi
87734:
87735: fi
87736: ;;
87737: -l*)
87738: ac_ii=`echo $ac_i|cut -c 3-`
87739:
87740:
87741: case $ac_ii in
87742: c|c_r|pthread*) ;;
87743: *)
87744: if test "$ext_shared" = "yes"; then
87745: LDFLAGS="$LDFLAGS -l$ac_ii"
87746: else
87747:
87748:
87749: case $ac_ii in
87750: c|c_r|pthread*) ;;
87751: *)
87752: LIBS="$LIBS -l$ac_ii"
87753: ;;
87754: esac
87755:
87756:
87757: fi
87758: ;;
87759: esac
87760:
87761:
87762: ;;
87763: -L*)
87764: ac_ii=`echo $ac_i|cut -c 3-`
87765:
87766: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
87767:
87768: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
87769: ai_p=$ac_ii
87770: else
87771:
87772: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
87773:
87774: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
87775: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
87776: fi
87777:
87778:
87779: if test "$ext_shared" = "yes"; then
87780: LDFLAGS="-L$ai_p $LDFLAGS"
87781: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
87782: else
87783:
87784:
87785:
87786: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
87787:
87788: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
87789: if test -n "$unique" && test "`eval $cmd`" = "" ; then
87790: eval "LIBPATH$unique=set"
87791:
87792: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
87793: LDFLAGS="$LDFLAGS -L$ai_p"
87794: PHP_RPATHS="$PHP_RPATHS $ai_p"
87795:
87796: fi
87797:
87798:
87799: fi
87800:
87801: fi
87802:
87803: ;;
87804: esac
87805: done
87806:
87807: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_CTX_set_ssl_version in -lssl" >&5
87808: $as_echo_n "checking for SSL_CTX_set_ssl_version in -lssl... " >&6; }
87809: if ${ac_cv_lib_ssl_SSL_CTX_set_ssl_version+:} false; then :
87810: $as_echo_n "(cached) " >&6
87811: else
87812: ac_check_lib_save_LIBS=$LIBS
87813: LIBS="-lssl $LIBS"
87814: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
87815: /* end confdefs.h. */
87816:
87817: /* Override any GCC internal prototype to avoid an error.
87818: Use char because int might match the return type of a GCC
87819: builtin and then its argument prototype would still apply. */
87820: #ifdef __cplusplus
87821: extern "C"
87822: #endif
87823: char SSL_CTX_set_ssl_version ();
87824: int
87825: main ()
87826: {
87827: return SSL_CTX_set_ssl_version ();
87828: ;
87829: return 0;
87830: }
87831: _ACEOF
87832: if ac_fn_c_try_link "$LINENO"; then :
87833: ac_cv_lib_ssl_SSL_CTX_set_ssl_version=yes
87834: else
87835: ac_cv_lib_ssl_SSL_CTX_set_ssl_version=no
87836: fi
87837: rm -f core conftest.err conftest.$ac_objext \
87838: conftest$ac_exeext conftest.$ac_ext
87839: LIBS=$ac_check_lib_save_LIBS
87840: fi
87841: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_CTX_set_ssl_version" >&5
87842: $as_echo "$ac_cv_lib_ssl_SSL_CTX_set_ssl_version" >&6; }
87843: if test "x$ac_cv_lib_ssl_SSL_CTX_set_ssl_version" = xyes; then :
87844:
87845: LDFLAGS=$save_old_LDFLAGS
87846: ext_shared=$save_ext_shared
87847:
87848: found_openssl=yes
87849:
87850:
87851: else
87852:
87853: LDFLAGS=$save_old_LDFLAGS
87854: ext_shared=$save_ext_shared
87855: unset ac_cv_lib_ssl_SSL_CTX_set_ssl_version
87856:
87857: as_fn_error $? "libssl not found!" "$LINENO" 5
87858:
87859:
87860: fi
87861:
87862: LIBS=$old_LIBS
87863:
87864:
87865: case ssl in
87866: c|c_r|pthread*) ;;
87867: *)
87868: if test "$ext_shared" = "yes"; then
87869: SNMP_SHARED_LIBADD="-lssl $SNMP_SHARED_LIBADD"
87870: else
87871:
87872:
87873: case ssl in
87874: c|c_r|pthread*) ;;
87875: *)
87876: LIBS="-lssl $LIBS"
87877: ;;
87878: esac
87879:
87880:
87881: fi
87882: ;;
87883: esac
87884:
87885:
87886:
87887:
87888: case crypto in
87889: c|c_r|pthread*) ;;
87890: *)
87891: if test "$ext_shared" = "yes"; then
87892: SNMP_SHARED_LIBADD="-lcrypto $SNMP_SHARED_LIBADD"
87893: else
87894:
87895:
87896: case crypto in
87897: c|c_r|pthread*) ;;
87898: *)
87899: LIBS="-lcrypto $LIBS"
87900: ;;
87901: esac
87902:
87903:
87904: fi
87905: ;;
87906: esac
87907:
87908:
87909:
87910:
87911: if test "$OPENSSL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$OPENSSL_LIBDIR" != "/usr/lib"; then
87912:
87913: if test -z "$OPENSSL_LIBDIR" || echo "$OPENSSL_LIBDIR" | grep '^/' >/dev/null ; then
87914: ai_p=$OPENSSL_LIBDIR
87915: else
87916:
87917: ep_dir="`echo $OPENSSL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
87918:
87919: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
87920: ai_p="$ep_realdir/`basename \"$OPENSSL_LIBDIR\"`"
87921: fi
87922:
87923:
87924: if test "$ext_shared" = "yes"; then
87925: SNMP_SHARED_LIBADD="-L$ai_p $SNMP_SHARED_LIBADD"
87926: test -n "$ld_runpath_switch" && SNMP_SHARED_LIBADD="$ld_runpath_switch$ai_p $SNMP_SHARED_LIBADD"
87927: else
87928:
87929:
87930:
87931: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
87932:
87933: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
87934: if test -n "$unique" && test "`eval $cmd`" = "" ; then
87935: eval "LIBPATH$unique=set"
87936:
87937: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
87938: LDFLAGS="$LDFLAGS -L$ai_p"
87939: PHP_RPATHS="$PHP_RPATHS $ai_p"
87940:
87941: fi
87942:
87943:
87944: fi
87945:
87946: fi
87947:
87948: fi
87949:
87950: if test "$found_openssl" = "yes"; then
87951: OPENSSL_INCDIR_OPT=-I$OPENSSL_INCDIR
87952:
87953:
87954: :
87955: else
87956: as_fn_error $? "SNMP: OpenSSL check failed. Please check config.log for more information." "$LINENO" 5
87957:
87958: fi
87959:
87960: fi
87961: fi
87962:
87963: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_read in -lkstat" >&5
87964: $as_echo_n "checking for kstat_read in -lkstat... " >&6; }
87965: if ${ac_cv_lib_kstat_kstat_read+:} false; then :
87966: $as_echo_n "(cached) " >&6
87967: else
87968: ac_check_lib_save_LIBS=$LIBS
87969: LIBS="-lkstat $LIBS"
87970: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
87971: /* end confdefs.h. */
87972:
87973: /* Override any GCC internal prototype to avoid an error.
87974: Use char because int might match the return type of a GCC
87975: builtin and then its argument prototype would still apply. */
87976: #ifdef __cplusplus
87977: extern "C"
87978: #endif
87979: char kstat_read ();
87980: int
87981: main ()
87982: {
87983: return kstat_read ();
87984: ;
87985: return 0;
87986: }
87987: _ACEOF
87988: if ac_fn_c_try_link "$LINENO"; then :
87989: ac_cv_lib_kstat_kstat_read=yes
87990: else
87991: ac_cv_lib_kstat_kstat_read=no
87992: fi
87993: rm -f core conftest.err conftest.$ac_objext \
87994: conftest$ac_exeext conftest.$ac_ext
87995: LIBS=$ac_check_lib_save_LIBS
87996: fi
87997: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_read" >&5
87998: $as_echo "$ac_cv_lib_kstat_kstat_read" >&6; }
87999: if test "x$ac_cv_lib_kstat_kstat_read" = xyes; then :
88000:
88001:
88002: case kstat in
88003: c|c_r|pthread*) ;;
88004: *)
88005: if test "$ext_shared" = "yes"; then
88006: SNMP_SHARED_LIBADD="-lkstat $SNMP_SHARED_LIBADD"
88007: else
88008:
88009:
88010: case kstat in
88011: c|c_r|pthread*) ;;
88012: *)
88013: LIBS="-lkstat $LIBS"
88014: ;;
88015: esac
88016:
88017:
88018: fi
88019: ;;
88020: esac
88021:
88022:
88023: fi
88024:
88025:
88026: if test "$SNMP_INCDIR" != "/usr/include"; then
88027:
88028: if test -z "$SNMP_INCDIR" || echo "$SNMP_INCDIR" | grep '^/' >/dev/null ; then
88029: ai_p=$SNMP_INCDIR
88030: else
88031:
88032: ep_dir="`echo $SNMP_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`"
88033:
88034: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
88035: ai_p="$ep_realdir/`basename \"$SNMP_INCDIR\"`"
88036: fi
88037:
88038:
88039:
88040: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
88041:
88042: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
88043: if test -n "$unique" && test "`eval $cmd`" = "" ; then
88044: eval "INCLUDEPATH$unique=set"
88045:
88046: if test ""; then
88047: INCLUDES="-I$ai_p $INCLUDES"
88048: else
88049: INCLUDES="$INCLUDES -I$ai_p"
88050: fi
88051:
88052: fi
88053:
88054: fi
88055:
88056:
88057:
88058: if test "$ext_shared" = "yes"; then
88059: SNMP_SHARED_LIBADD="-lsnmp $SNMP_SHARED_LIBADD"
88060: if test -n "$SNMP_LIBDIR"; then
88061:
88062: if test "$SNMP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$SNMP_LIBDIR" != "/usr/lib"; then
88063:
88064: if test -z "$SNMP_LIBDIR" || echo "$SNMP_LIBDIR" | grep '^/' >/dev/null ; then
88065: ai_p=$SNMP_LIBDIR
88066: else
88067:
88068: ep_dir="`echo $SNMP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
88069:
88070: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
88071: ai_p="$ep_realdir/`basename \"$SNMP_LIBDIR\"`"
88072: fi
88073:
88074:
88075: if test "$ext_shared" = "yes"; then
88076: SNMP_SHARED_LIBADD="-L$ai_p $SNMP_SHARED_LIBADD"
88077: test -n "$ld_runpath_switch" && SNMP_SHARED_LIBADD="$ld_runpath_switch$ai_p $SNMP_SHARED_LIBADD"
88078: else
88079:
88080:
88081:
88082: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
88083:
88084: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
88085: if test -n "$unique" && test "`eval $cmd`" = "" ; then
88086: eval "LIBPATH$unique=set"
88087:
88088: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
88089: LDFLAGS="$LDFLAGS -L$ai_p"
88090: PHP_RPATHS="$PHP_RPATHS $ai_p"
88091:
88092: fi
88093:
88094:
88095: fi
88096:
88097: fi
88098:
88099: fi
88100: else
88101:
88102:
88103: if test -n "$SNMP_LIBDIR"; then
88104:
88105: if test "$SNMP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$SNMP_LIBDIR" != "/usr/lib"; then
88106:
88107: if test -z "$SNMP_LIBDIR" || echo "$SNMP_LIBDIR" | grep '^/' >/dev/null ; then
88108: ai_p=$SNMP_LIBDIR
88109: else
88110:
88111: ep_dir="`echo $SNMP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
88112:
88113: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
88114: ai_p="$ep_realdir/`basename \"$SNMP_LIBDIR\"`"
88115: fi
88116:
88117:
88118:
88119:
88120:
88121: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
88122:
88123: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
88124: if test -n "$unique" && test "`eval $cmd`" = "" ; then
88125: eval "LIBPATH$unique=set"
88126:
88127: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
88128: LDFLAGS="$LDFLAGS -L$ai_p"
88129: PHP_RPATHS="$PHP_RPATHS $ai_p"
88130:
88131: fi
88132:
88133:
88134:
88135: fi
88136:
88137: fi
88138:
88139:
88140: case snmp in
88141: c|c_r|pthread*) ;;
88142: *)
88143: LIBS="-lsnmp $LIBS"
88144: ;;
88145: esac
88146:
88147:
88148:
88149:
88150: fi
88151:
88152:
88153: SNMP_LIBNAME=snmp
88154: fi
88155:
88156:
88157: save_old_LDFLAGS=$LDFLAGS
88158: ac_stuff="
88159: $SNMP_SHARED_LIBADD
88160: "
88161:
88162: save_ext_shared=$ext_shared
88163: ext_shared=yes
88164:
88165: for ac_i in $ac_stuff; do
88166: case $ac_i in
88167: -pthread)
88168: if test "$ext_shared" = "yes"; then
88169: LDFLAGS="$LDFLAGS -pthread"
88170: else
88171:
88172:
88173: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
88174:
88175: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
88176: if test -n "$unique" && test "`eval $cmd`" = "" ; then
88177: eval "EXTRA_LDFLAGS$unique=set"
88178: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
88179: fi
88180:
88181: fi
88182: ;;
88183: -l*)
88184: ac_ii=`echo $ac_i|cut -c 3-`
88185:
88186:
88187: case $ac_ii in
88188: c|c_r|pthread*) ;;
88189: *)
88190: if test "$ext_shared" = "yes"; then
88191: LDFLAGS="$LDFLAGS -l$ac_ii"
88192: else
88193:
88194:
88195: case $ac_ii in
88196: c|c_r|pthread*) ;;
88197: *)
88198: LIBS="$LIBS -l$ac_ii"
88199: ;;
88200: esac
88201:
88202:
88203: fi
88204: ;;
88205: esac
88206:
88207:
88208: ;;
88209: -L*)
88210: ac_ii=`echo $ac_i|cut -c 3-`
88211:
88212: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
88213:
88214: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
88215: ai_p=$ac_ii
88216: else
88217:
88218: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
88219:
88220: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
88221: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
88222: fi
88223:
88224:
88225: if test "$ext_shared" = "yes"; then
88226: LDFLAGS="-L$ai_p $LDFLAGS"
88227: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
88228: else
88229:
88230:
88231:
88232: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
88233:
88234: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
88235: if test -n "$unique" && test "`eval $cmd`" = "" ; then
88236: eval "LIBPATH$unique=set"
88237:
88238: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
88239: LDFLAGS="$LDFLAGS -L$ai_p"
88240: PHP_RPATHS="$PHP_RPATHS $ai_p"
88241:
88242: fi
88243:
88244:
88245: fi
88246:
88247: fi
88248:
88249: ;;
88250: esac
88251: done
88252:
88253: as_ac_Lib=`$as_echo "ac_cv_lib_$SNMP_LIBNAME''_snmp_parse_oid" | $as_tr_sh`
88254: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snmp_parse_oid in -l$SNMP_LIBNAME" >&5
88255: $as_echo_n "checking for snmp_parse_oid in -l$SNMP_LIBNAME... " >&6; }
88256: if eval \${$as_ac_Lib+:} false; then :
88257: $as_echo_n "(cached) " >&6
88258: else
88259: ac_check_lib_save_LIBS=$LIBS
88260: LIBS="-l$SNMP_LIBNAME $LIBS"
88261: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
88262: /* end confdefs.h. */
88263:
88264: /* Override any GCC internal prototype to avoid an error.
88265: Use char because int might match the return type of a GCC
88266: builtin and then its argument prototype would still apply. */
88267: #ifdef __cplusplus
88268: extern "C"
88269: #endif
88270: char snmp_parse_oid ();
88271: int
88272: main ()
88273: {
88274: return snmp_parse_oid ();
88275: ;
88276: return 0;
88277: }
88278: _ACEOF
88279: if ac_fn_c_try_link "$LINENO"; then :
88280: eval "$as_ac_Lib=yes"
88281: else
88282: eval "$as_ac_Lib=no"
88283: fi
88284: rm -f core conftest.err conftest.$ac_objext \
88285: conftest$ac_exeext conftest.$ac_ext
88286: LIBS=$ac_check_lib_save_LIBS
88287: fi
88288: eval ac_res=\$$as_ac_Lib
88289: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
88290: $as_echo "$ac_res" >&6; }
88291: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
88292:
88293: LDFLAGS=$save_old_LDFLAGS
88294: ext_shared=$save_ext_shared
88295:
88296:
88297: $as_echo "#define HAVE_SNMP_PARSE_OID 1" >>confdefs.h
88298:
88299:
88300:
88301: else
88302:
88303: LDFLAGS=$save_old_LDFLAGS
88304: ext_shared=$save_ext_shared
88305: unset ac_cv_lib_$SNMP_LIBNAME_snmp_parse_oid
88306:
88307:
88308: fi
88309:
88310:
88311:
88312: save_old_LDFLAGS=$LDFLAGS
88313: ac_stuff="
88314: $SNMP_SHARED_LIBADD
88315: "
88316:
88317: save_ext_shared=$ext_shared
88318: ext_shared=yes
88319:
88320: for ac_i in $ac_stuff; do
88321: case $ac_i in
88322: -pthread)
88323: if test "$ext_shared" = "yes"; then
88324: LDFLAGS="$LDFLAGS -pthread"
88325: else
88326:
88327:
88328: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
88329:
88330: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
88331: if test -n "$unique" && test "`eval $cmd`" = "" ; then
88332: eval "EXTRA_LDFLAGS$unique=set"
88333: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
88334: fi
88335:
88336: fi
88337: ;;
88338: -l*)
88339: ac_ii=`echo $ac_i|cut -c 3-`
88340:
88341:
88342: case $ac_ii in
88343: c|c_r|pthread*) ;;
88344: *)
88345: if test "$ext_shared" = "yes"; then
88346: LDFLAGS="$LDFLAGS -l$ac_ii"
88347: else
88348:
88349:
88350: case $ac_ii in
88351: c|c_r|pthread*) ;;
88352: *)
88353: LIBS="$LIBS -l$ac_ii"
88354: ;;
88355: esac
88356:
88357:
88358: fi
88359: ;;
88360: esac
88361:
88362:
88363: ;;
88364: -L*)
88365: ac_ii=`echo $ac_i|cut -c 3-`
88366:
88367: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
88368:
88369: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
88370: ai_p=$ac_ii
88371: else
88372:
88373: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
88374:
88375: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
88376: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
88377: fi
88378:
88379:
88380: if test "$ext_shared" = "yes"; then
88381: LDFLAGS="-L$ai_p $LDFLAGS"
88382: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
88383: else
88384:
88385:
88386:
88387: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
88388:
88389: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
88390: if test -n "$unique" && test "`eval $cmd`" = "" ; then
88391: eval "LIBPATH$unique=set"
88392:
88393: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
88394: LDFLAGS="$LDFLAGS -L$ai_p"
88395: PHP_RPATHS="$PHP_RPATHS $ai_p"
88396:
88397: fi
88398:
88399:
88400: fi
88401:
88402: fi
88403:
88404: ;;
88405: esac
88406: done
88407:
88408: as_ac_Lib=`$as_echo "ac_cv_lib_$SNMP_LIBNAME''_init_snmp" | $as_tr_sh`
88409: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for init_snmp in -l$SNMP_LIBNAME" >&5
88410: $as_echo_n "checking for init_snmp in -l$SNMP_LIBNAME... " >&6; }
88411: if eval \${$as_ac_Lib+:} false; then :
88412: $as_echo_n "(cached) " >&6
88413: else
88414: ac_check_lib_save_LIBS=$LIBS
88415: LIBS="-l$SNMP_LIBNAME $LIBS"
88416: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
88417: /* end confdefs.h. */
88418:
88419: /* Override any GCC internal prototype to avoid an error.
88420: Use char because int might match the return type of a GCC
88421: builtin and then its argument prototype would still apply. */
88422: #ifdef __cplusplus
88423: extern "C"
88424: #endif
88425: char init_snmp ();
88426: int
88427: main ()
88428: {
88429: return init_snmp ();
88430: ;
88431: return 0;
88432: }
88433: _ACEOF
88434: if ac_fn_c_try_link "$LINENO"; then :
88435: eval "$as_ac_Lib=yes"
88436: else
88437: eval "$as_ac_Lib=no"
88438: fi
88439: rm -f core conftest.err conftest.$ac_objext \
88440: conftest$ac_exeext conftest.$ac_ext
88441: LIBS=$ac_check_lib_save_LIBS
88442: fi
88443: eval ac_res=\$$as_ac_Lib
88444: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
88445: $as_echo "$ac_res" >&6; }
88446: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
88447:
88448: LDFLAGS=$save_old_LDFLAGS
88449: ext_shared=$save_ext_shared
88450:
88451:
88452: $as_echo "#define HAVE_SNMP 1" >>confdefs.h
88453:
88454:
88455:
88456: else
88457:
88458: LDFLAGS=$save_old_LDFLAGS
88459: ext_shared=$save_ext_shared
88460: unset ac_cv_lib_$SNMP_LIBNAME_init_snmp
88461:
88462: as_fn_error $? "SNMP sanity check failed. Please check config.log for more information." "$LINENO" 5
88463:
88464:
88465: fi
88466:
88467:
88468: if test "$PHP_UCD_SNMP_HACK" = "yes" ; then
88469:
88470: $as_echo "#define UCD_SNMP_HACK 1" >>confdefs.h
88471:
88472: fi
88473:
88474:
88475: ext_builddir=ext/snmp
88476: ext_srcdir=$abs_srcdir/ext/snmp
88477:
88478: ac_extra=
88479:
88480: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
88481: PHP_SNMP_SHARED=no
88482:
88483:
88484: case ext/snmp in
88485: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
88486: /*) ac_srcdir=`echo "ext/snmp"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
88487: *) ac_srcdir="$abs_srcdir/ext/snmp/"; ac_bdir="ext/snmp/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
88488: esac
88489:
88490:
88491:
88492: b_c_pre=$php_c_pre
88493: b_cxx_pre=$php_cxx_pre
88494: b_c_meta=$php_c_meta
88495: b_cxx_meta=$php_cxx_meta
88496: b_c_post=$php_c_post
88497: b_cxx_post=$php_cxx_post
88498: b_lo=$php_lo
88499:
88500:
88501: old_IFS=$IFS
88502: for ac_src in snmp.c; do
88503:
88504: IFS=.
88505: set $ac_src
88506: ac_obj=$1
88507: IFS=$old_IFS
88508:
88509: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
88510:
88511: case $ac_src in
88512: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
88513: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
88514: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
88515: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
88516: esac
88517:
88518: cat >>Makefile.objects<<EOF
88519: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
88520: $ac_comp
88521: EOF
88522: done
88523:
88524:
88525: EXT_STATIC="$EXT_STATIC snmp"
88526: if test "$ext_shared" != "nocli"; then
88527: EXT_CLI_STATIC="$EXT_CLI_STATIC snmp"
88528: fi
88529: else
88530: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
88531: PHP_SNMP_SHARED=yes
88532:
88533: case ext/snmp in
88534: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
88535: /*) ac_srcdir=`echo "ext/snmp"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
88536: *) ac_srcdir="$abs_srcdir/ext/snmp/"; ac_bdir="ext/snmp/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
88537: esac
88538:
88539:
88540:
88541: b_c_pre=$shared_c_pre
88542: b_cxx_pre=$shared_cxx_pre
88543: b_c_meta=$shared_c_meta
88544: b_cxx_meta=$shared_cxx_meta
88545: b_c_post=$shared_c_post
88546: b_cxx_post=$shared_cxx_post
88547: b_lo=$shared_lo
88548:
88549:
88550: old_IFS=$IFS
88551: for ac_src in snmp.c; do
88552:
88553: IFS=.
88554: set $ac_src
88555: ac_obj=$1
88556: IFS=$old_IFS
88557:
88558: shared_objects_snmp="$shared_objects_snmp $ac_bdir$ac_obj.lo"
88559:
88560: case $ac_src in
88561: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
88562: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
88563: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
88564: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
88565: esac
88566:
88567: cat >>Makefile.objects<<EOF
88568: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
88569: $ac_comp
88570: EOF
88571: done
88572:
88573: case $host_alias in
88574: *netware*)
88575:
88576: install_modules="install-modules"
88577:
88578: case $host_alias in
88579: *aix*)
88580: suffix=so
88581: 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'
88582: ;;
88583: *netware*)
88584: suffix=nlm
88585: link_cmd='$(LIBTOOL) --mode=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)'
88586: ;;
88587: *)
88588: suffix=la
88589: link_cmd='$(LIBTOOL) --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)'
88590: ;;
88591: esac
88592:
88593: if test "x" = "xyes"; then
88594: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpsnmp.$suffix"
88595: else
88596: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpsnmp.$suffix"
88597: fi
88598:
88599: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_snmp"
88600:
88601: cat >>Makefile.objects<<EOF
88602: \$(phplibdir)/phpsnmp.$suffix: $ext_builddir/phpsnmp.$suffix
88603: \$(LIBTOOL) --mode=install cp $ext_builddir/phpsnmp.$suffix \$(phplibdir)
88604:
88605: $ext_builddir/phpsnmp.$suffix: \$(shared_objects_snmp) \$(PHPSNMP_SHARED_DEPENDENCIES)
88606: $link_cmd
88607:
88608: EOF
88609:
88610: ;;
88611: *)
88612:
88613: install_modules="install-modules"
88614:
88615: case $host_alias in
88616: *aix*)
88617: suffix=so
88618: 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'
88619: ;;
88620: *netware*)
88621: suffix=nlm
88622: link_cmd='$(LIBTOOL) --mode=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)'
88623: ;;
88624: *)
88625: suffix=la
88626: link_cmd='$(LIBTOOL) --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)'
88627: ;;
88628: esac
88629:
88630: if test "x" = "xyes"; then
88631: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/snmp.$suffix"
88632: else
88633: PHP_MODULES="$PHP_MODULES \$(phplibdir)/snmp.$suffix"
88634: fi
88635:
88636: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_snmp"
88637:
88638: cat >>Makefile.objects<<EOF
88639: \$(phplibdir)/snmp.$suffix: $ext_builddir/snmp.$suffix
88640: \$(LIBTOOL) --mode=install cp $ext_builddir/snmp.$suffix \$(phplibdir)
88641:
88642: $ext_builddir/snmp.$suffix: \$(shared_objects_snmp) \$(SNMP_SHARED_DEPENDENCIES)
88643: $link_cmd
88644:
88645: EOF
88646:
88647: ;;
88648: esac
88649:
88650: cat >>confdefs.h <<_ACEOF
88651: #define COMPILE_DL_SNMP 1
88652: _ACEOF
88653:
88654: fi
88655: fi
88656:
88657: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
88658: PHP_SNMP_SHARED=no
88659:
88660:
88661: case ext/snmp in
88662: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
88663: /*) ac_srcdir=`echo "ext/snmp"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
88664: *) ac_srcdir="$abs_srcdir/ext/snmp/"; ac_bdir="ext/snmp/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
88665: esac
88666:
88667:
88668:
88669: b_c_pre=$php_c_pre
88670: b_cxx_pre=$php_cxx_pre
88671: b_c_meta=$php_c_meta
88672: b_cxx_meta=$php_cxx_meta
88673: b_c_post=$php_c_post
88674: b_cxx_post=$php_cxx_post
88675: b_lo=$php_lo
88676:
88677:
88678: old_IFS=$IFS
88679: for ac_src in snmp.c; do
88680:
88681: IFS=.
88682: set $ac_src
88683: ac_obj=$1
88684: IFS=$old_IFS
88685:
88686: PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
88687:
88688: case $ac_src in
88689: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
88690: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
88691: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
88692: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
88693: esac
88694:
88695: cat >>Makefile.objects<<EOF
88696: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
88697: $ac_comp
88698: EOF
88699: done
88700:
88701:
88702:
88703:
88704: case ext/snmp in
88705: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
88706: /*) ac_srcdir=`echo "ext/snmp"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
88707: *) ac_srcdir="$abs_srcdir/ext/snmp/"; ac_bdir="ext/snmp/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
88708: esac
88709:
88710:
88711:
88712: b_c_pre=$php_c_pre
88713: b_cxx_pre=$php_cxx_pre
88714: b_c_meta=$php_c_meta
88715: b_cxx_meta=$php_cxx_meta
88716: b_c_post=$php_c_post
88717: b_cxx_post=$php_cxx_post
88718: b_lo=$php_lo
88719:
88720:
88721: old_IFS=$IFS
88722: for ac_src in snmp.c; do
88723:
88724: IFS=.
88725: set $ac_src
88726: ac_obj=$1
88727: IFS=$old_IFS
88728:
88729: PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo"
88730:
88731: case $ac_src in
88732: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
88733: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
88734: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
88735: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
88736: esac
88737:
88738: cat >>Makefile.objects<<EOF
88739: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
88740: $ac_comp
88741: EOF
88742: done
88743:
88744:
88745:
88746:
88747: case ext/snmp in
88748: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
88749: /*) ac_srcdir=`echo "ext/snmp"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
88750: *) ac_srcdir="$abs_srcdir/ext/snmp/"; ac_bdir="ext/snmp/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
88751: esac
88752:
88753:
88754:
88755: b_c_pre=$php_c_pre
88756: b_cxx_pre=$php_cxx_pre
88757: b_c_meta=$php_c_meta
88758: b_cxx_meta=$php_cxx_meta
88759: b_c_post=$php_c_post
88760: b_cxx_post=$php_cxx_post
88761: b_lo=$php_lo
88762:
88763:
88764: old_IFS=$IFS
88765: for ac_src in snmp.c; do
88766:
88767: IFS=.
88768: set $ac_src
88769: ac_obj=$1
88770: IFS=$old_IFS
88771:
88772: PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo"
88773:
88774: case $ac_src in
88775: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
88776: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
88777: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
88778: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
88779: esac
88780:
88781: cat >>Makefile.objects<<EOF
88782: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
88783: $ac_comp
88784: EOF
88785: done
88786:
88787:
88788: EXT_CLI_STATIC="$EXT_CLI_STATIC snmp"
88789: fi
88790:
88791:
88792: BUILD_DIR="$BUILD_DIR $ext_builddir"
88793:
88794:
88795:
88796: if test "$ext_builddir" = "."; then
88797: PHP_PECL_EXTENSION=snmp
88798:
88799: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
88800:
88801: fi
88802:
88803:
88804: PHP_VAR_SUBST="$PHP_VAR_SUBST SNMP_SHARED_LIBADD"
88805:
88806: fi
88807:
88808:
88809:
88810: php_enable_soap=no
88811:
88812: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable SOAP support" >&5
88813: $as_echo_n "checking whether to enable SOAP support... " >&6; }
88814: # Check whether --enable-soap was given.
88815: if test "${enable_soap+set}" = set; then :
88816: enableval=$enable_soap; PHP_SOAP=$enableval
88817: else
88818:
88819: PHP_SOAP=no
88820: test "$PHP_ENABLE_ALL" && PHP_SOAP=$PHP_ENABLE_ALL
88821:
88822: fi
88823:
88824:
88825:
88826: ext_output="yes, shared"
88827: ext_shared=yes
88828: case $PHP_SOAP in
88829: shared,*)
88830: PHP_SOAP=`echo "$PHP_SOAP"|$SED 's/^shared,//'`
88831: ;;
88832: shared)
88833: PHP_SOAP=yes
88834: ;;
88835: no)
88836: ext_output=no
88837: ext_shared=no
88838: ;;
88839: *)
88840: ext_output=yes
88841: ext_shared=no
88842: ;;
88843: esac
88844:
88845:
88846:
88847: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
88848: $as_echo "$ext_output" >&6; }
88849:
88850:
88851:
88852:
88853: if test -z "$PHP_LIBXML_DIR"; then
88854:
88855: php_with_libxml_dir=no
88856:
88857: { $as_echo "$as_me:${as_lineno-$LINENO}: checking libxml2 install dir" >&5
88858: $as_echo_n "checking libxml2 install dir... " >&6; }
88859:
88860: # Check whether --with-libxml-dir was given.
88861: if test "${with_libxml_dir+set}" = set; then :
88862: withval=$with_libxml_dir; PHP_LIBXML_DIR=$withval
88863: else
88864:
88865: PHP_LIBXML_DIR=no
88866:
88867:
88868: fi
88869:
88870:
88871: ext_output=$PHP_LIBXML_DIR
88872: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
88873: $as_echo "$ext_output" >&6; }
88874:
88875:
88876:
88877: fi
88878:
88879: if test "$PHP_SOAP" != "no"; then
88880:
88881: if test "$PHP_LIBXML" = "no"; then
88882: as_fn_error $? "SOAP extension requires LIBXML extension, add --enable-libxml" "$LINENO" 5
88883: fi
88884:
88885:
88886: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xml2-config path" >&5
88887: $as_echo_n "checking for xml2-config path... " >&6; }
88888: if ${ac_cv_php_xml2_config_path+:} false; then :
88889: $as_echo_n "(cached) " >&6
88890: else
88891:
88892: for i in $PHP_LIBXML_DIR /usr/local /usr; do
88893: if test -x "$i/bin/xml2-config"; then
88894: ac_cv_php_xml2_config_path="$i/bin/xml2-config"
88895: break
88896: fi
88897: done
88898:
88899: fi
88900: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_php_xml2_config_path" >&5
88901: $as_echo "$ac_cv_php_xml2_config_path" >&6; }
88902:
88903: if test -x "$ac_cv_php_xml2_config_path"; then
88904: XML2_CONFIG="$ac_cv_php_xml2_config_path"
88905: libxml_full_version=`$XML2_CONFIG --version`
88906: ac_IFS=$IFS
88907: IFS="."
88908: set $libxml_full_version
88909: IFS=$ac_IFS
88910: LIBXML_VERSION=`expr $1 \* 1000000 + $2 \* 1000 + $3`
88911: if test "$LIBXML_VERSION" -ge "2006011"; then
88912: LIBXML_LIBS=`$XML2_CONFIG --libs`
88913: LIBXML_INCS=`$XML2_CONFIG --cflags`
88914:
88915: for ac_i in $LIBXML_LIBS; do
88916: case $ac_i in
88917: -pthread)
88918: if test "$ext_shared" = "yes"; then
88919: SOAP_SHARED_LIBADD="$SOAP_SHARED_LIBADD -pthread"
88920: else
88921:
88922:
88923: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
88924:
88925: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
88926: if test -n "$unique" && test "`eval $cmd`" = "" ; then
88927: eval "EXTRA_LDFLAGS$unique=set"
88928: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
88929: fi
88930:
88931: fi
88932: ;;
88933: -l*)
88934: ac_ii=`echo $ac_i|cut -c 3-`
88935:
88936:
88937: case $ac_ii in
88938: c|c_r|pthread*) ;;
88939: *)
88940: if test "$ext_shared" = "yes"; then
88941: SOAP_SHARED_LIBADD="$SOAP_SHARED_LIBADD -l$ac_ii"
88942: else
88943:
88944:
88945: case $ac_ii in
88946: c|c_r|pthread*) ;;
88947: *)
88948: LIBS="$LIBS -l$ac_ii"
88949: ;;
88950: esac
88951:
88952:
88953: fi
88954: ;;
88955: esac
88956:
88957:
88958: ;;
88959: -L*)
88960: ac_ii=`echo $ac_i|cut -c 3-`
88961:
88962: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
88963:
88964: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
88965: ai_p=$ac_ii
88966: else
88967:
88968: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
88969:
88970: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
88971: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
88972: fi
88973:
88974:
88975: if test "$ext_shared" = "yes"; then
88976: SOAP_SHARED_LIBADD="-L$ai_p $SOAP_SHARED_LIBADD"
88977: test -n "$ld_runpath_switch" && SOAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $SOAP_SHARED_LIBADD"
88978: else
88979:
88980:
88981:
88982: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
88983:
88984: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
88985: if test -n "$unique" && test "`eval $cmd`" = "" ; then
88986: eval "LIBPATH$unique=set"
88987:
88988: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
88989: LDFLAGS="$LDFLAGS -L$ai_p"
88990: PHP_RPATHS="$PHP_RPATHS $ai_p"
88991:
88992: fi
88993:
88994:
88995: fi
88996:
88997: fi
88998:
88999: ;;
89000: esac
89001: done
89002:
89003:
89004: for ac_i in $LIBXML_INCS; do
89005: case $ac_i in
89006: -I*)
89007: ac_ii=`echo $ac_i|cut -c 3-`
89008:
89009: if test "$ac_ii" != "/usr/include"; then
89010:
89011: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
89012: ai_p=$ac_ii
89013: else
89014:
89015: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
89016:
89017: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
89018: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
89019: fi
89020:
89021:
89022:
89023: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
89024:
89025: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
89026: if test -n "$unique" && test "`eval $cmd`" = "" ; then
89027: eval "INCLUDEPATH$unique=set"
89028:
89029: if test ""; then
89030: INCLUDES="-I$ai_p $INCLUDES"
89031: else
89032: INCLUDES="$INCLUDES -I$ai_p"
89033: fi
89034:
89035: fi
89036:
89037: fi
89038:
89039: ;;
89040: esac
89041: done
89042:
89043:
89044: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libxml build works" >&5
89045: $as_echo_n "checking whether libxml build works... " >&6; }
89046: if ${php_cv_libxml_build_works+:} false; then :
89047: $as_echo_n "(cached) " >&6
89048: else
89049:
89050:
89051: old_LIBS=$LIBS
89052: LIBS="
89053: $SOAP_SHARED_LIBADD
89054: $LIBS"
89055: if test "$cross_compiling" = yes; then :
89056:
89057: LIBS=$old_LIBS
89058:
89059: else
89060: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
89061: /* end confdefs.h. */
89062:
89063:
89064: char xmlInitParser();
89065: int main() {
89066: xmlInitParser();
89067: return 0;
89068: }
89069:
89070: _ACEOF
89071: if ac_fn_c_try_run "$LINENO"; then :
89072:
89073: LIBS=$old_LIBS
89074:
89075: php_cv_libxml_build_works=yes
89076:
89077:
89078: else
89079:
89080: LIBS=$old_LIBS
89081:
89082: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
89083: $as_echo "no" >&6; }
89084: as_fn_error $? "build test failed. Please check the config.log for details." "$LINENO" 5
89085:
89086:
89087: fi
89088: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
89089: conftest.$ac_objext conftest.beam conftest.$ac_ext
89090: fi
89091:
89092:
89093:
89094: fi
89095: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_libxml_build_works" >&5
89096: $as_echo "$php_cv_libxml_build_works" >&6; }
89097: if test "$php_cv_libxml_build_works" = "yes"; then
89098:
89099: $as_echo "#define HAVE_LIBXML 1" >>confdefs.h
89100:
89101: fi
89102:
89103:
89104: $as_echo "#define HAVE_SOAP 1" >>confdefs.h
89105:
89106:
89107: ext_builddir=ext/soap
89108: ext_srcdir=$abs_srcdir/ext/soap
89109:
89110: ac_extra=
89111:
89112: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
89113: PHP_SOAP_SHARED=no
89114:
89115:
89116: case ext/soap in
89117: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
89118: /*) ac_srcdir=`echo "ext/soap"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
89119: *) ac_srcdir="$abs_srcdir/ext/soap/"; ac_bdir="ext/soap/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
89120: esac
89121:
89122:
89123:
89124: b_c_pre=$php_c_pre
89125: b_cxx_pre=$php_cxx_pre
89126: b_c_meta=$php_c_meta
89127: b_cxx_meta=$php_cxx_meta
89128: b_c_post=$php_c_post
89129: b_cxx_post=$php_cxx_post
89130: b_lo=$php_lo
89131:
89132:
89133: old_IFS=$IFS
89134: 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
89135:
89136: IFS=.
89137: set $ac_src
89138: ac_obj=$1
89139: IFS=$old_IFS
89140:
89141: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
89142:
89143: case $ac_src in
89144: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
89145: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
89146: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
89147: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
89148: esac
89149:
89150: cat >>Makefile.objects<<EOF
89151: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
89152: $ac_comp
89153: EOF
89154: done
89155:
89156:
89157: EXT_STATIC="$EXT_STATIC soap"
89158: if test "$ext_shared" != "nocli"; then
89159: EXT_CLI_STATIC="$EXT_CLI_STATIC soap"
89160: fi
89161: else
89162: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
89163: PHP_SOAP_SHARED=yes
89164:
89165: case ext/soap in
89166: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
89167: /*) ac_srcdir=`echo "ext/soap"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
89168: *) ac_srcdir="$abs_srcdir/ext/soap/"; ac_bdir="ext/soap/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
89169: esac
89170:
89171:
89172:
89173: b_c_pre=$shared_c_pre
89174: b_cxx_pre=$shared_cxx_pre
89175: b_c_meta=$shared_c_meta
89176: b_cxx_meta=$shared_cxx_meta
89177: b_c_post=$shared_c_post
89178: b_cxx_post=$shared_cxx_post
89179: b_lo=$shared_lo
89180:
89181:
89182: old_IFS=$IFS
89183: 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
89184:
89185: IFS=.
89186: set $ac_src
89187: ac_obj=$1
89188: IFS=$old_IFS
89189:
89190: shared_objects_soap="$shared_objects_soap $ac_bdir$ac_obj.lo"
89191:
89192: case $ac_src in
89193: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
89194: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
89195: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
89196: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
89197: esac
89198:
89199: cat >>Makefile.objects<<EOF
89200: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
89201: $ac_comp
89202: EOF
89203: done
89204:
89205: case $host_alias in
89206: *netware*)
89207:
89208: install_modules="install-modules"
89209:
89210: case $host_alias in
89211: *aix*)
89212: suffix=so
89213: 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'
89214: ;;
89215: *netware*)
89216: suffix=nlm
89217: link_cmd='$(LIBTOOL) --mode=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)'
89218: ;;
89219: *)
89220: suffix=la
89221: link_cmd='$(LIBTOOL) --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)'
89222: ;;
89223: esac
89224:
89225: if test "x" = "xyes"; then
89226: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpsoap.$suffix"
89227: else
89228: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpsoap.$suffix"
89229: fi
89230:
89231: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_soap"
89232:
89233: cat >>Makefile.objects<<EOF
89234: \$(phplibdir)/phpsoap.$suffix: $ext_builddir/phpsoap.$suffix
89235: \$(LIBTOOL) --mode=install cp $ext_builddir/phpsoap.$suffix \$(phplibdir)
89236:
89237: $ext_builddir/phpsoap.$suffix: \$(shared_objects_soap) \$(PHPSOAP_SHARED_DEPENDENCIES)
89238: $link_cmd
89239:
89240: EOF
89241:
89242: ;;
89243: *)
89244:
89245: install_modules="install-modules"
89246:
89247: case $host_alias in
89248: *aix*)
89249: suffix=so
89250: 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'
89251: ;;
89252: *netware*)
89253: suffix=nlm
89254: link_cmd='$(LIBTOOL) --mode=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)'
89255: ;;
89256: *)
89257: suffix=la
89258: link_cmd='$(LIBTOOL) --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)'
89259: ;;
89260: esac
89261:
89262: if test "x" = "xyes"; then
89263: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/soap.$suffix"
89264: else
89265: PHP_MODULES="$PHP_MODULES \$(phplibdir)/soap.$suffix"
89266: fi
89267:
89268: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_soap"
89269:
89270: cat >>Makefile.objects<<EOF
89271: \$(phplibdir)/soap.$suffix: $ext_builddir/soap.$suffix
89272: \$(LIBTOOL) --mode=install cp $ext_builddir/soap.$suffix \$(phplibdir)
89273:
89274: $ext_builddir/soap.$suffix: \$(shared_objects_soap) \$(SOAP_SHARED_DEPENDENCIES)
89275: $link_cmd
89276:
89277: EOF
89278:
89279: ;;
89280: esac
89281:
89282: cat >>confdefs.h <<_ACEOF
89283: #define COMPILE_DL_SOAP 1
89284: _ACEOF
89285:
89286: fi
89287: fi
89288:
89289: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
89290: PHP_SOAP_SHARED=no
89291:
89292:
89293: case ext/soap in
89294: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
89295: /*) ac_srcdir=`echo "ext/soap"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
89296: *) ac_srcdir="$abs_srcdir/ext/soap/"; ac_bdir="ext/soap/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
89297: esac
89298:
89299:
89300:
89301: b_c_pre=$php_c_pre
89302: b_cxx_pre=$php_cxx_pre
89303: b_c_meta=$php_c_meta
89304: b_cxx_meta=$php_cxx_meta
89305: b_c_post=$php_c_post
89306: b_cxx_post=$php_cxx_post
89307: b_lo=$php_lo
89308:
89309:
89310: old_IFS=$IFS
89311: 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
89312:
89313: IFS=.
89314: set $ac_src
89315: ac_obj=$1
89316: IFS=$old_IFS
89317:
89318: PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
89319:
89320: case $ac_src in
89321: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
89322: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
89323: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
89324: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
89325: esac
89326:
89327: cat >>Makefile.objects<<EOF
89328: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
89329: $ac_comp
89330: EOF
89331: done
89332:
89333:
89334:
89335:
89336: case ext/soap in
89337: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
89338: /*) ac_srcdir=`echo "ext/soap"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
89339: *) ac_srcdir="$abs_srcdir/ext/soap/"; ac_bdir="ext/soap/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
89340: esac
89341:
89342:
89343:
89344: b_c_pre=$php_c_pre
89345: b_cxx_pre=$php_cxx_pre
89346: b_c_meta=$php_c_meta
89347: b_cxx_meta=$php_cxx_meta
89348: b_c_post=$php_c_post
89349: b_cxx_post=$php_cxx_post
89350: b_lo=$php_lo
89351:
89352:
89353: old_IFS=$IFS
89354: 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
89355:
89356: IFS=.
89357: set $ac_src
89358: ac_obj=$1
89359: IFS=$old_IFS
89360:
89361: PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo"
89362:
89363: case $ac_src in
89364: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
89365: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
89366: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
89367: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
89368: esac
89369:
89370: cat >>Makefile.objects<<EOF
89371: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
89372: $ac_comp
89373: EOF
89374: done
89375:
89376:
89377:
89378:
89379: case ext/soap in
89380: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
89381: /*) ac_srcdir=`echo "ext/soap"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
89382: *) ac_srcdir="$abs_srcdir/ext/soap/"; ac_bdir="ext/soap/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
89383: esac
89384:
89385:
89386:
89387: b_c_pre=$php_c_pre
89388: b_cxx_pre=$php_cxx_pre
89389: b_c_meta=$php_c_meta
89390: b_cxx_meta=$php_cxx_meta
89391: b_c_post=$php_c_post
89392: b_cxx_post=$php_cxx_post
89393: b_lo=$php_lo
89394:
89395:
89396: old_IFS=$IFS
89397: 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
89398:
89399: IFS=.
89400: set $ac_src
89401: ac_obj=$1
89402: IFS=$old_IFS
89403:
89404: PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo"
89405:
89406: case $ac_src in
89407: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
89408: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
89409: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
89410: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
89411: esac
89412:
89413: cat >>Makefile.objects<<EOF
89414: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
89415: $ac_comp
89416: EOF
89417: done
89418:
89419:
89420: EXT_CLI_STATIC="$EXT_CLI_STATIC soap"
89421: fi
89422:
89423:
89424: BUILD_DIR="$BUILD_DIR $ext_builddir"
89425:
89426:
89427:
89428: if test "$ext_builddir" = "."; then
89429: PHP_PECL_EXTENSION=soap
89430:
89431: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
89432:
89433: fi
89434:
89435:
89436: PHP_VAR_SUBST="$PHP_VAR_SUBST SOAP_SHARED_LIBADD"
89437:
89438:
89439: else
89440: as_fn_error $? "libxml2 version 2.6.11 or greater required." "$LINENO" 5
89441: fi
89442: else
89443: as_fn_error $? "xml2-config not found. Please check your libxml2 installation." "$LINENO" 5
89444:
89445: fi
89446:
89447: fi
89448:
89449:
89450:
89451: php_enable_sockets=no
89452:
89453: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable sockets support" >&5
89454: $as_echo_n "checking whether to enable sockets support... " >&6; }
89455: # Check whether --enable-sockets was given.
89456: if test "${enable_sockets+set}" = set; then :
89457: enableval=$enable_sockets; PHP_SOCKETS=$enableval
89458: else
89459:
89460: PHP_SOCKETS=no
89461: test "$PHP_ENABLE_ALL" && PHP_SOCKETS=$PHP_ENABLE_ALL
89462:
89463: fi
89464:
89465:
89466:
89467: ext_output="yes, shared"
89468: ext_shared=yes
89469: case $PHP_SOCKETS in
89470: shared,*)
89471: PHP_SOCKETS=`echo "$PHP_SOCKETS"|$SED 's/^shared,//'`
89472: ;;
89473: shared)
89474: PHP_SOCKETS=yes
89475: ;;
89476: no)
89477: ext_output=no
89478: ext_shared=no
89479: ;;
89480: *)
89481: ext_output=yes
89482: ext_shared=no
89483: ;;
89484: esac
89485:
89486:
89487:
89488: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
89489: $as_echo "$ext_output" >&6; }
89490:
89491:
89492:
89493:
89494: if test "$PHP_SOCKETS" != "no"; then
89495: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct cmsghdr" >&5
89496: $as_echo_n "checking for struct cmsghdr... " >&6; }
89497: if ${ac_cv_cmsghdr+:} false; then :
89498: $as_echo_n "(cached) " >&6
89499: else
89500:
89501: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
89502: /* end confdefs.h. */
89503:
89504: #include <sys/types.h>
89505: #include <sys/socket.h>
89506: int
89507: main ()
89508: {
89509: struct cmsghdr s; s
89510: ;
89511: return 0;
89512: }
89513: _ACEOF
89514: if ac_fn_c_try_compile "$LINENO"; then :
89515: ac_cv_cmsghdr=yes
89516: else
89517: ac_cv_cmsghdr=no
89518: fi
89519: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
89520:
89521: fi
89522: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cmsghdr" >&5
89523: $as_echo "$ac_cv_cmsghdr" >&6; }
89524:
89525: if test "$ac_cv_cmsghdr" = yes; then
89526:
89527: $as_echo "#define HAVE_CMSGHDR 1" >>confdefs.h
89528:
89529: fi
89530:
89531: for ac_func in hstrerror socketpair
89532: do :
89533: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
89534: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
89535: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
89536: cat >>confdefs.h <<_ACEOF
89537: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
89538: _ACEOF
89539:
89540: fi
89541: done
89542:
89543: for ac_header in netdb.h netinet/tcp.h sys/un.h errno.h
89544: do :
89545: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
89546: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
89547: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
89548: cat >>confdefs.h <<_ACEOF
89549: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
89550: _ACEOF
89551:
89552: fi
89553:
89554: done
89555:
89556: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
89557: /* end confdefs.h. */
89558:
89559: #include <sys/types.h>
89560: #include <sys/socket.h>
89561:
89562: int
89563: main ()
89564: {
89565: static struct msghdr tp; int n = (int) tp.msg_flags; return n
89566: ;
89567: return 0;
89568: }
89569: _ACEOF
89570: if ac_fn_c_try_compile "$LINENO"; then :
89571:
89572: else
89573:
89574: $as_echo "#define MISSING_MSGHDR_MSGFLAGS 1" >>confdefs.h
89575:
89576:
89577: fi
89578: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
89579:
89580: $as_echo "#define HAVE_SOCKETS 1" >>confdefs.h
89581:
89582:
89583:
89584: ext_builddir=ext/sockets
89585: ext_srcdir=$abs_srcdir/ext/sockets
89586:
89587: ac_extra=
89588:
89589: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
89590: PHP_SOCKETS_SHARED=no
89591:
89592:
89593: case ext/sockets in
89594: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
89595: /*) ac_srcdir=`echo "ext/sockets"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
89596: *) ac_srcdir="$abs_srcdir/ext/sockets/"; ac_bdir="ext/sockets/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
89597: esac
89598:
89599:
89600:
89601: b_c_pre=$php_c_pre
89602: b_cxx_pre=$php_cxx_pre
89603: b_c_meta=$php_c_meta
89604: b_cxx_meta=$php_cxx_meta
89605: b_c_post=$php_c_post
89606: b_cxx_post=$php_cxx_post
89607: b_lo=$php_lo
89608:
89609:
89610: old_IFS=$IFS
89611: for ac_src in sockets.c; do
89612:
89613: IFS=.
89614: set $ac_src
89615: ac_obj=$1
89616: IFS=$old_IFS
89617:
89618: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
89619:
89620: case $ac_src in
89621: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
89622: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
89623: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
89624: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
89625: esac
89626:
89627: cat >>Makefile.objects<<EOF
89628: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
89629: $ac_comp
89630: EOF
89631: done
89632:
89633:
89634: EXT_STATIC="$EXT_STATIC sockets"
89635: if test "$ext_shared" != "nocli"; then
89636: EXT_CLI_STATIC="$EXT_CLI_STATIC sockets"
89637: fi
89638: else
89639: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
89640: PHP_SOCKETS_SHARED=yes
89641:
89642: case ext/sockets in
89643: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
89644: /*) ac_srcdir=`echo "ext/sockets"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
89645: *) ac_srcdir="$abs_srcdir/ext/sockets/"; ac_bdir="ext/sockets/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
89646: esac
89647:
89648:
89649:
89650: b_c_pre=$shared_c_pre
89651: b_cxx_pre=$shared_cxx_pre
89652: b_c_meta=$shared_c_meta
89653: b_cxx_meta=$shared_cxx_meta
89654: b_c_post=$shared_c_post
89655: b_cxx_post=$shared_cxx_post
89656: b_lo=$shared_lo
89657:
89658:
89659: old_IFS=$IFS
89660: for ac_src in sockets.c; do
89661:
89662: IFS=.
89663: set $ac_src
89664: ac_obj=$1
89665: IFS=$old_IFS
89666:
89667: shared_objects_sockets="$shared_objects_sockets $ac_bdir$ac_obj.lo"
89668:
89669: case $ac_src in
89670: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
89671: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
89672: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
89673: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
89674: esac
89675:
89676: cat >>Makefile.objects<<EOF
89677: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
89678: $ac_comp
89679: EOF
89680: done
89681:
89682: case $host_alias in
89683: *netware*)
89684:
89685: install_modules="install-modules"
89686:
89687: case $host_alias in
89688: *aix*)
89689: suffix=so
89690: 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'
89691: ;;
89692: *netware*)
89693: suffix=nlm
89694: link_cmd='$(LIBTOOL) --mode=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)'
89695: ;;
89696: *)
89697: suffix=la
89698: link_cmd='$(LIBTOOL) --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)'
89699: ;;
89700: esac
89701:
89702: if test "x" = "xyes"; then
89703: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpsockets.$suffix"
89704: else
89705: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpsockets.$suffix"
89706: fi
89707:
89708: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_sockets"
89709:
89710: cat >>Makefile.objects<<EOF
89711: \$(phplibdir)/phpsockets.$suffix: $ext_builddir/phpsockets.$suffix
89712: \$(LIBTOOL) --mode=install cp $ext_builddir/phpsockets.$suffix \$(phplibdir)
89713:
89714: $ext_builddir/phpsockets.$suffix: \$(shared_objects_sockets) \$(PHPSOCKETS_SHARED_DEPENDENCIES)
89715: $link_cmd
89716:
89717: EOF
89718:
89719: ;;
89720: *)
89721:
89722: install_modules="install-modules"
89723:
89724: case $host_alias in
89725: *aix*)
89726: suffix=so
89727: 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'
89728: ;;
89729: *netware*)
89730: suffix=nlm
89731: link_cmd='$(LIBTOOL) --mode=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)'
89732: ;;
89733: *)
89734: suffix=la
89735: link_cmd='$(LIBTOOL) --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)'
89736: ;;
89737: esac
89738:
89739: if test "x" = "xyes"; then
89740: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/sockets.$suffix"
89741: else
89742: PHP_MODULES="$PHP_MODULES \$(phplibdir)/sockets.$suffix"
89743: fi
89744:
89745: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_sockets"
89746:
89747: cat >>Makefile.objects<<EOF
89748: \$(phplibdir)/sockets.$suffix: $ext_builddir/sockets.$suffix
89749: \$(LIBTOOL) --mode=install cp $ext_builddir/sockets.$suffix \$(phplibdir)
89750:
89751: $ext_builddir/sockets.$suffix: \$(shared_objects_sockets) \$(SOCKETS_SHARED_DEPENDENCIES)
89752: $link_cmd
89753:
89754: EOF
89755:
89756: ;;
89757: esac
89758:
89759: cat >>confdefs.h <<_ACEOF
89760: #define COMPILE_DL_SOCKETS 1
89761: _ACEOF
89762:
89763: fi
89764: fi
89765:
89766: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
89767: PHP_SOCKETS_SHARED=no
89768:
89769:
89770: case ext/sockets in
89771: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
89772: /*) ac_srcdir=`echo "ext/sockets"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
89773: *) ac_srcdir="$abs_srcdir/ext/sockets/"; ac_bdir="ext/sockets/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
89774: esac
89775:
89776:
89777:
89778: b_c_pre=$php_c_pre
89779: b_cxx_pre=$php_cxx_pre
89780: b_c_meta=$php_c_meta
89781: b_cxx_meta=$php_cxx_meta
89782: b_c_post=$php_c_post
89783: b_cxx_post=$php_cxx_post
89784: b_lo=$php_lo
89785:
89786:
89787: old_IFS=$IFS
89788: for ac_src in sockets.c; do
89789:
89790: IFS=.
89791: set $ac_src
89792: ac_obj=$1
89793: IFS=$old_IFS
89794:
89795: PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
89796:
89797: case $ac_src in
89798: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
89799: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
89800: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
89801: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
89802: esac
89803:
89804: cat >>Makefile.objects<<EOF
89805: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
89806: $ac_comp
89807: EOF
89808: done
89809:
89810:
89811:
89812:
89813: case ext/sockets in
89814: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
89815: /*) ac_srcdir=`echo "ext/sockets"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
89816: *) ac_srcdir="$abs_srcdir/ext/sockets/"; ac_bdir="ext/sockets/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
89817: esac
89818:
89819:
89820:
89821: b_c_pre=$php_c_pre
89822: b_cxx_pre=$php_cxx_pre
89823: b_c_meta=$php_c_meta
89824: b_cxx_meta=$php_cxx_meta
89825: b_c_post=$php_c_post
89826: b_cxx_post=$php_cxx_post
89827: b_lo=$php_lo
89828:
89829:
89830: old_IFS=$IFS
89831: for ac_src in sockets.c; do
89832:
89833: IFS=.
89834: set $ac_src
89835: ac_obj=$1
89836: IFS=$old_IFS
89837:
89838: PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo"
89839:
89840: case $ac_src in
89841: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
89842: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
89843: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
89844: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
89845: esac
89846:
89847: cat >>Makefile.objects<<EOF
89848: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
89849: $ac_comp
89850: EOF
89851: done
89852:
89853:
89854:
89855:
89856: case ext/sockets in
89857: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
89858: /*) ac_srcdir=`echo "ext/sockets"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
89859: *) ac_srcdir="$abs_srcdir/ext/sockets/"; ac_bdir="ext/sockets/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
89860: esac
89861:
89862:
89863:
89864: b_c_pre=$php_c_pre
89865: b_cxx_pre=$php_cxx_pre
89866: b_c_meta=$php_c_meta
89867: b_cxx_meta=$php_cxx_meta
89868: b_c_post=$php_c_post
89869: b_cxx_post=$php_cxx_post
89870: b_lo=$php_lo
89871:
89872:
89873: old_IFS=$IFS
89874: for ac_src in sockets.c; do
89875:
89876: IFS=.
89877: set $ac_src
89878: ac_obj=$1
89879: IFS=$old_IFS
89880:
89881: PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo"
89882:
89883: case $ac_src in
89884: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
89885: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
89886: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
89887: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
89888: esac
89889:
89890: cat >>Makefile.objects<<EOF
89891: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
89892: $ac_comp
89893: EOF
89894: done
89895:
89896:
89897: EXT_CLI_STATIC="$EXT_CLI_STATIC sockets"
89898: fi
89899:
89900:
89901: BUILD_DIR="$BUILD_DIR $ext_builddir"
89902:
89903:
89904:
89905: if test "$ext_builddir" = "."; then
89906: PHP_PECL_EXTENSION=sockets
89907:
89908: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
89909:
89910: fi
89911:
89912:
89913:
89914: header_path=ext/sockets/
89915: for header_file in php_sockets.h; do
89916: hp_hf="$header_path/$header_file"
89917:
89918:
89919: unique=`echo $hp_hf|$SED 's/[^a-zA-Z0-9]/_/g'`
89920:
89921: cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
89922: if test -n "$unique" && test "`eval $cmd`" = "" ; then
89923: eval "INSTALLHEADERS$unique=set"
89924:
89925: INSTALL_HEADERS="$INSTALL_HEADERS $hp_hf"
89926:
89927: fi
89928:
89929: done
89930:
89931:
89932: fi
89933:
89934:
89935: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether zend_object_value is packed" >&5
89936: $as_echo_n "checking whether zend_object_value is packed... " >&6; }
89937: old_CPPFLAGS=$CPPFLAGS
89938: CPPFLAGS="$INCLUDES -I$abs_srcdir $CPPFLAGS"
89939: if test "$cross_compiling" = yes; then :
89940:
89941: ac_result=0
89942: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
89943: $as_echo "no" >&6; }
89944:
89945: else
89946: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
89947: /* end confdefs.h. */
89948:
89949: #include "Zend/zend_types.h"
89950: int main(int argc, char **argv) {
89951: return ((sizeof(zend_object_handle) + sizeof(zend_object_handlers*)) == sizeof(zend_object_value)) ? 0 : 1;
89952: }
89953:
89954: _ACEOF
89955: if ac_fn_c_try_run "$LINENO"; then :
89956:
89957: ac_result=1
89958: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
89959: $as_echo "yes" >&6; }
89960:
89961: else
89962:
89963: ac_result=0
89964: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
89965: $as_echo "no" >&6; }
89966:
89967: fi
89968: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
89969: conftest.$ac_objext conftest.beam conftest.$ac_ext
89970: fi
89971:
89972: CPPFLAGS=$old_CPPFLAGS
89973:
89974: cat >>confdefs.h <<_ACEOF
89975: #define HAVE_PACKED_OBJECT_VALUE $ac_result
89976: _ACEOF
89977:
89978:
89979: $as_echo "#define HAVE_SPL 1" >>confdefs.h
89980:
89981:
89982: ext_builddir=ext/spl
89983: ext_srcdir=$abs_srcdir/ext/spl
89984:
89985: ac_extra=
89986:
89987: if test "no" != "shared" && test "no" != "yes" && test "" != "cli"; then
89988: PHP_SPL_SHARED=no
89989:
89990:
89991: case ext/spl in
89992: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
89993: /*) ac_srcdir=`echo "ext/spl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
89994: *) ac_srcdir="$abs_srcdir/ext/spl/"; ac_bdir="ext/spl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
89995: esac
89996:
89997:
89998:
89999: b_c_pre=$php_c_pre
90000: b_cxx_pre=$php_cxx_pre
90001: b_c_meta=$php_c_meta
90002: b_cxx_meta=$php_cxx_meta
90003: b_c_post=$php_c_post
90004: b_cxx_post=$php_cxx_post
90005: b_lo=$php_lo
90006:
90007:
90008: old_IFS=$IFS
90009: 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
90010:
90011: IFS=.
90012: set $ac_src
90013: ac_obj=$1
90014: IFS=$old_IFS
90015:
90016: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
90017:
90018: case $ac_src in
90019: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
90020: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
90021: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
90022: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
90023: esac
90024:
90025: cat >>Makefile.objects<<EOF
90026: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
90027: $ac_comp
90028: EOF
90029: done
90030:
90031:
90032: EXT_STATIC="$EXT_STATIC spl"
90033: if test "no" != "nocli"; then
90034: EXT_CLI_STATIC="$EXT_CLI_STATIC spl"
90035: fi
90036: else
90037: if test "no" = "shared" || test "no" = "yes"; then
90038: PHP_SPL_SHARED=yes
90039:
90040: case ext/spl in
90041: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
90042: /*) ac_srcdir=`echo "ext/spl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
90043: *) ac_srcdir="$abs_srcdir/ext/spl/"; ac_bdir="ext/spl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
90044: esac
90045:
90046:
90047:
90048: b_c_pre=$shared_c_pre
90049: b_cxx_pre=$shared_cxx_pre
90050: b_c_meta=$shared_c_meta
90051: b_cxx_meta=$shared_cxx_meta
90052: b_c_post=$shared_c_post
90053: b_cxx_post=$shared_cxx_post
90054: b_lo=$shared_lo
90055:
90056:
90057: old_IFS=$IFS
90058: 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
90059:
90060: IFS=.
90061: set $ac_src
90062: ac_obj=$1
90063: IFS=$old_IFS
90064:
90065: shared_objects_spl="$shared_objects_spl $ac_bdir$ac_obj.lo"
90066:
90067: case $ac_src in
90068: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
90069: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
90070: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
90071: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
90072: esac
90073:
90074: cat >>Makefile.objects<<EOF
90075: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
90076: $ac_comp
90077: EOF
90078: done
90079:
90080: case $host_alias in
90081: *netware*)
90082:
90083: install_modules="install-modules"
90084:
90085: case $host_alias in
90086: *aix*)
90087: suffix=so
90088: 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'
90089: ;;
90090: *netware*)
90091: suffix=nlm
90092: link_cmd='$(LIBTOOL) --mode=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)'
90093: ;;
90094: *)
90095: suffix=la
90096: link_cmd='$(LIBTOOL) --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)'
90097: ;;
90098: esac
90099:
90100: if test "x" = "xyes"; then
90101: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpspl.$suffix"
90102: else
90103: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpspl.$suffix"
90104: fi
90105:
90106: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_spl"
90107:
90108: cat >>Makefile.objects<<EOF
90109: \$(phplibdir)/phpspl.$suffix: $ext_builddir/phpspl.$suffix
90110: \$(LIBTOOL) --mode=install cp $ext_builddir/phpspl.$suffix \$(phplibdir)
90111:
90112: $ext_builddir/phpspl.$suffix: \$(shared_objects_spl) \$(PHPSPL_SHARED_DEPENDENCIES)
90113: $link_cmd
90114:
90115: EOF
90116:
90117: ;;
90118: *)
90119:
90120: install_modules="install-modules"
90121:
90122: case $host_alias in
90123: *aix*)
90124: suffix=so
90125: 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'
90126: ;;
90127: *netware*)
90128: suffix=nlm
90129: link_cmd='$(LIBTOOL) --mode=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)'
90130: ;;
90131: *)
90132: suffix=la
90133: link_cmd='$(LIBTOOL) --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)'
90134: ;;
90135: esac
90136:
90137: if test "x" = "xyes"; then
90138: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/spl.$suffix"
90139: else
90140: PHP_MODULES="$PHP_MODULES \$(phplibdir)/spl.$suffix"
90141: fi
90142:
90143: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_spl"
90144:
90145: cat >>Makefile.objects<<EOF
90146: \$(phplibdir)/spl.$suffix: $ext_builddir/spl.$suffix
90147: \$(LIBTOOL) --mode=install cp $ext_builddir/spl.$suffix \$(phplibdir)
90148:
90149: $ext_builddir/spl.$suffix: \$(shared_objects_spl) \$(SPL_SHARED_DEPENDENCIES)
90150: $link_cmd
90151:
90152: EOF
90153:
90154: ;;
90155: esac
90156:
90157: cat >>confdefs.h <<_ACEOF
90158: #define COMPILE_DL_SPL 1
90159: _ACEOF
90160:
90161: fi
90162: fi
90163:
90164: if test "no" != "shared" && test "no" != "yes" && test "" = "cli"; then
90165: PHP_SPL_SHARED=no
90166:
90167:
90168: case ext/spl in
90169: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
90170: /*) ac_srcdir=`echo "ext/spl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
90171: *) ac_srcdir="$abs_srcdir/ext/spl/"; ac_bdir="ext/spl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
90172: esac
90173:
90174:
90175:
90176: b_c_pre=$php_c_pre
90177: b_cxx_pre=$php_cxx_pre
90178: b_c_meta=$php_c_meta
90179: b_cxx_meta=$php_cxx_meta
90180: b_c_post=$php_c_post
90181: b_cxx_post=$php_cxx_post
90182: b_lo=$php_lo
90183:
90184:
90185: old_IFS=$IFS
90186: 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
90187:
90188: IFS=.
90189: set $ac_src
90190: ac_obj=$1
90191: IFS=$old_IFS
90192:
90193: PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
90194:
90195: case $ac_src in
90196: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
90197: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
90198: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
90199: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
90200: esac
90201:
90202: cat >>Makefile.objects<<EOF
90203: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
90204: $ac_comp
90205: EOF
90206: done
90207:
90208:
90209:
90210:
90211: case ext/spl in
90212: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
90213: /*) ac_srcdir=`echo "ext/spl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
90214: *) ac_srcdir="$abs_srcdir/ext/spl/"; ac_bdir="ext/spl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
90215: esac
90216:
90217:
90218:
90219: b_c_pre=$php_c_pre
90220: b_cxx_pre=$php_cxx_pre
90221: b_c_meta=$php_c_meta
90222: b_cxx_meta=$php_cxx_meta
90223: b_c_post=$php_c_post
90224: b_cxx_post=$php_cxx_post
90225: b_lo=$php_lo
90226:
90227:
90228: old_IFS=$IFS
90229: 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
90230:
90231: IFS=.
90232: set $ac_src
90233: ac_obj=$1
90234: IFS=$old_IFS
90235:
90236: PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo"
90237:
90238: case $ac_src in
90239: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
90240: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
90241: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
90242: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
90243: esac
90244:
90245: cat >>Makefile.objects<<EOF
90246: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
90247: $ac_comp
90248: EOF
90249: done
90250:
90251:
90252:
90253:
90254: case ext/spl in
90255: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
90256: /*) ac_srcdir=`echo "ext/spl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
90257: *) ac_srcdir="$abs_srcdir/ext/spl/"; ac_bdir="ext/spl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
90258: esac
90259:
90260:
90261:
90262: b_c_pre=$php_c_pre
90263: b_cxx_pre=$php_cxx_pre
90264: b_c_meta=$php_c_meta
90265: b_cxx_meta=$php_cxx_meta
90266: b_c_post=$php_c_post
90267: b_cxx_post=$php_cxx_post
90268: b_lo=$php_lo
90269:
90270:
90271: old_IFS=$IFS
90272: 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
90273:
90274: IFS=.
90275: set $ac_src
90276: ac_obj=$1
90277: IFS=$old_IFS
90278:
90279: PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo"
90280:
90281: case $ac_src in
90282: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
90283: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
90284: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
90285: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
90286: esac
90287:
90288: cat >>Makefile.objects<<EOF
90289: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
90290: $ac_comp
90291: EOF
90292: done
90293:
90294:
90295: EXT_CLI_STATIC="$EXT_CLI_STATIC spl"
90296: fi
90297:
90298:
90299: BUILD_DIR="$BUILD_DIR $ext_builddir"
90300:
90301:
90302:
90303: if test "$ext_builddir" = "."; then
90304: PHP_PECL_EXTENSION=spl
90305:
90306: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
90307:
90308: fi
90309:
90310:
90311:
90312: header_path=ext/spl
90313: 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
90314: hp_hf="$header_path/$header_file"
90315:
90316:
90317: unique=`echo $hp_hf|$SED 's/[^a-zA-Z0-9]/_/g'`
90318:
90319: cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
90320: if test -n "$unique" && test "`eval $cmd`" = "" ; then
90321: eval "INSTALLHEADERS$unique=set"
90322:
90323: INSTALL_HEADERS="$INSTALL_HEADERS $hp_hf"
90324:
90325: fi
90326:
90327: done
90328:
90329:
90330:
90331: am_i_shared=$PHP_SPL_SHARED
90332: is_it_shared=$PHP_PCRE_SHARED
90333: is_it_enabled=$PHP_PCRE
90334: if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
90335: as_fn_error $? "
90336: You've configured extension spl to build statically, but it
90337: depends on extension pcre, which you've configured to build shared.
90338: You either need to build spl shared or build pcre statically for the
90339: build to be successful.
90340: " "$LINENO" 5
90341: fi
90342:
90343:
90344:
90345:
90346: php_with_sqlite=yes
90347:
90348: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite support" >&5
90349: $as_echo_n "checking for sqlite support... " >&6; }
90350:
90351: # Check whether --with-sqlite was given.
90352: if test "${with_sqlite+set}" = set; then :
90353: withval=$with_sqlite; PHP_SQLITE=$withval
90354: else
90355:
90356: PHP_SQLITE=yes
90357: test "$PHP_ENABLE_ALL" && PHP_SQLITE=$PHP_ENABLE_ALL
90358:
90359: fi
90360:
90361:
90362:
90363: ext_output="yes, shared"
90364: ext_shared=yes
90365: case $PHP_SQLITE in
90366: shared,*)
90367: PHP_SQLITE=`echo "$PHP_SQLITE"|$SED 's/^shared,//'`
90368: ;;
90369: shared)
90370: PHP_SQLITE=yes
90371: ;;
90372: no)
90373: ext_output=no
90374: ext_shared=no
90375: ;;
90376: *)
90377: ext_output=yes
90378: ext_shared=no
90379: ;;
90380: esac
90381:
90382:
90383:
90384: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
90385: $as_echo "$ext_output" >&6; }
90386:
90387:
90388:
90389:
90390:
90391: php_enable_sqlite_utf8=no
90392:
90393: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable UTF-8 support in sqlite (default: ISO-8859-1)" >&5
90394: $as_echo_n "checking whether to enable UTF-8 support in sqlite (default: ISO-8859-1)... " >&6; }
90395: # Check whether --enable-sqlite-utf8 was given.
90396: if test "${enable_sqlite_utf8+set}" = set; then :
90397: enableval=$enable_sqlite_utf8; PHP_SQLITE_UTF8=$enableval
90398: else
90399:
90400: PHP_SQLITE_UTF8=no
90401:
90402:
90403: fi
90404:
90405:
90406: ext_output=$PHP_SQLITE_UTF8
90407: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
90408: $as_echo "$ext_output" >&6; }
90409:
90410:
90411:
90412:
90413:
90414:
90415:
90416:
90417:
90418: if test "$PHP_SQLITE" != "no"; then
90419: if test "$PHP_PDO" != "no"; then
90420:
90421: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5
90422: $as_echo_n "checking for PDO includes... " >&6; }
90423: if ${pdo_inc_path+:} false; then :
90424: $as_echo_n "(cached) " >&6
90425: else
90426:
90427: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5
90428: $as_echo_n "checking for PDO includes... " >&6; }
90429: if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then
90430: pdo_inc_path=$abs_srcdir/ext
90431: elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then
90432: pdo_inc_path=$abs_srcdir/ext
90433: elif test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then
90434: pdo_inc_path=$prefix/include/php/ext
90435: fi
90436:
90437: fi
90438: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pdo_inc_path" >&5
90439: $as_echo "$pdo_inc_path" >&6; }
90440: if test -n "$pdo_inc_path"; then
90441: :
90442: else
90443: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find php_pdo_driver.h." >&5
90444: $as_echo "$as_me: WARNING: Cannot find php_pdo_driver.h." >&2;}
90445: fi
90446:
90447: if test -n "$pdo_inc_path"; then
90448:
90449: $as_echo "#define PHP_SQLITE2_HAVE_PDO 1" >>confdefs.h
90450:
90451: pdo_inc_path="-I$pdo_inc_path"
90452: fi
90453: fi
90454:
90455: if test "$PHP_SQLITE" != "yes"; then
90456: SEARCH_PATH="/usr/local /usr"
90457: SEARCH_FOR="/include/sqlite.h"
90458: if test -r $PHP_SQLITE/; then # path given as parameter
90459: SQLITE_DIR=$PHP_SQLITE
90460: else # search default path list
90461: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite files in default path" >&5
90462: $as_echo_n "checking for sqlite files in default path... " >&6; }
90463: for i in $SEARCH_PATH ; do
90464: if test -r $i/$SEARCH_FOR; then
90465: SQLITE_DIR=$i
90466: { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $i" >&5
90467: $as_echo "found in $i" >&6; }
90468: fi
90469: done
90470: fi
90471:
90472: if test -z "$SQLITE_DIR"; then
90473: { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
90474: $as_echo "not found" >&6; }
90475: as_fn_error $? "Please reinstall the sqlite distribution from http://www.sqlite.org" "$LINENO" 5
90476: fi
90477:
90478:
90479: save_old_LDFLAGS=$LDFLAGS
90480: ac_stuff="
90481: -L$SQLITE_DIR/$PHP_LIBDIR -lm
90482: "
90483:
90484: save_ext_shared=$ext_shared
90485: ext_shared=yes
90486:
90487: for ac_i in $ac_stuff; do
90488: case $ac_i in
90489: -pthread)
90490: if test "$ext_shared" = "yes"; then
90491: LDFLAGS="$LDFLAGS -pthread"
90492: else
90493:
90494:
90495: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
90496:
90497: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
90498: if test -n "$unique" && test "`eval $cmd`" = "" ; then
90499: eval "EXTRA_LDFLAGS$unique=set"
90500: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
90501: fi
90502:
90503: fi
90504: ;;
90505: -l*)
90506: ac_ii=`echo $ac_i|cut -c 3-`
90507:
90508:
90509: case $ac_ii in
90510: c|c_r|pthread*) ;;
90511: *)
90512: if test "$ext_shared" = "yes"; then
90513: LDFLAGS="$LDFLAGS -l$ac_ii"
90514: else
90515:
90516:
90517: case $ac_ii in
90518: c|c_r|pthread*) ;;
90519: *)
90520: LIBS="$LIBS -l$ac_ii"
90521: ;;
90522: esac
90523:
90524:
90525: fi
90526: ;;
90527: esac
90528:
90529:
90530: ;;
90531: -L*)
90532: ac_ii=`echo $ac_i|cut -c 3-`
90533:
90534: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
90535:
90536: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
90537: ai_p=$ac_ii
90538: else
90539:
90540: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
90541:
90542: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
90543: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
90544: fi
90545:
90546:
90547: if test "$ext_shared" = "yes"; then
90548: LDFLAGS="-L$ai_p $LDFLAGS"
90549: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
90550: else
90551:
90552:
90553:
90554: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
90555:
90556: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
90557: if test -n "$unique" && test "`eval $cmd`" = "" ; then
90558: eval "LIBPATH$unique=set"
90559:
90560: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
90561: LDFLAGS="$LDFLAGS -L$ai_p"
90562: PHP_RPATHS="$PHP_RPATHS $ai_p"
90563:
90564: fi
90565:
90566:
90567: fi
90568:
90569: fi
90570:
90571: ;;
90572: esac
90573: done
90574:
90575: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite_open in -lsqlite" >&5
90576: $as_echo_n "checking for sqlite_open in -lsqlite... " >&6; }
90577: if ${ac_cv_lib_sqlite_sqlite_open+:} false; then :
90578: $as_echo_n "(cached) " >&6
90579: else
90580: ac_check_lib_save_LIBS=$LIBS
90581: LIBS="-lsqlite $LIBS"
90582: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
90583: /* end confdefs.h. */
90584:
90585: /* Override any GCC internal prototype to avoid an error.
90586: Use char because int might match the return type of a GCC
90587: builtin and then its argument prototype would still apply. */
90588: #ifdef __cplusplus
90589: extern "C"
90590: #endif
90591: char sqlite_open ();
90592: int
90593: main ()
90594: {
90595: return sqlite_open ();
90596: ;
90597: return 0;
90598: }
90599: _ACEOF
90600: if ac_fn_c_try_link "$LINENO"; then :
90601: ac_cv_lib_sqlite_sqlite_open=yes
90602: else
90603: ac_cv_lib_sqlite_sqlite_open=no
90604: fi
90605: rm -f core conftest.err conftest.$ac_objext \
90606: conftest$ac_exeext conftest.$ac_ext
90607: LIBS=$ac_check_lib_save_LIBS
90608: fi
90609: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite_sqlite_open" >&5
90610: $as_echo "$ac_cv_lib_sqlite_sqlite_open" >&6; }
90611: if test "x$ac_cv_lib_sqlite_sqlite_open" = xyes; then :
90612:
90613: LDFLAGS=$save_old_LDFLAGS
90614: ext_shared=$save_ext_shared
90615:
90616:
90617:
90618: if test "$ext_shared" = "yes"; then
90619: SQLITE_SHARED_LIBADD="-lsqlite $SQLITE_SHARED_LIBADD"
90620: if test -n "$SQLITE_DIR/$PHP_LIBDIR"; then
90621:
90622: if test "$SQLITE_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$SQLITE_DIR/$PHP_LIBDIR" != "/usr/lib"; then
90623:
90624: if test -z "$SQLITE_DIR/$PHP_LIBDIR" || echo "$SQLITE_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
90625: ai_p=$SQLITE_DIR/$PHP_LIBDIR
90626: else
90627:
90628: ep_dir="`echo $SQLITE_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
90629:
90630: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
90631: ai_p="$ep_realdir/`basename \"$SQLITE_DIR/$PHP_LIBDIR\"`"
90632: fi
90633:
90634:
90635: if test "$ext_shared" = "yes"; then
90636: SQLITE_SHARED_LIBADD="-L$ai_p $SQLITE_SHARED_LIBADD"
90637: test -n "$ld_runpath_switch" && SQLITE_SHARED_LIBADD="$ld_runpath_switch$ai_p $SQLITE_SHARED_LIBADD"
90638: else
90639:
90640:
90641:
90642: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
90643:
90644: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
90645: if test -n "$unique" && test "`eval $cmd`" = "" ; then
90646: eval "LIBPATH$unique=set"
90647:
90648: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
90649: LDFLAGS="$LDFLAGS -L$ai_p"
90650: PHP_RPATHS="$PHP_RPATHS $ai_p"
90651:
90652: fi
90653:
90654:
90655: fi
90656:
90657: fi
90658:
90659: fi
90660: else
90661:
90662:
90663: if test -n "$SQLITE_DIR/$PHP_LIBDIR"; then
90664:
90665: if test "$SQLITE_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$SQLITE_DIR/$PHP_LIBDIR" != "/usr/lib"; then
90666:
90667: if test -z "$SQLITE_DIR/$PHP_LIBDIR" || echo "$SQLITE_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
90668: ai_p=$SQLITE_DIR/$PHP_LIBDIR
90669: else
90670:
90671: ep_dir="`echo $SQLITE_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
90672:
90673: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
90674: ai_p="$ep_realdir/`basename \"$SQLITE_DIR/$PHP_LIBDIR\"`"
90675: fi
90676:
90677:
90678:
90679:
90680:
90681: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
90682:
90683: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
90684: if test -n "$unique" && test "`eval $cmd`" = "" ; then
90685: eval "LIBPATH$unique=set"
90686:
90687: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
90688: LDFLAGS="$LDFLAGS -L$ai_p"
90689: PHP_RPATHS="$PHP_RPATHS $ai_p"
90690:
90691: fi
90692:
90693:
90694:
90695: fi
90696:
90697: fi
90698:
90699:
90700: case sqlite in
90701: c|c_r|pthread*) ;;
90702: *)
90703: LIBS="-lsqlite $LIBS"
90704: ;;
90705: esac
90706:
90707:
90708:
90709:
90710: fi
90711:
90712:
90713:
90714: if test "$SQLITE_DIR/include" != "/usr/include"; then
90715:
90716: if test -z "$SQLITE_DIR/include" || echo "$SQLITE_DIR/include" | grep '^/' >/dev/null ; then
90717: ai_p=$SQLITE_DIR/include
90718: else
90719:
90720: ep_dir="`echo $SQLITE_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
90721:
90722: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
90723: ai_p="$ep_realdir/`basename \"$SQLITE_DIR/include\"`"
90724: fi
90725:
90726:
90727:
90728: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
90729:
90730: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
90731: if test -n "$unique" && test "`eval $cmd`" = "" ; then
90732: eval "INCLUDEPATH$unique=set"
90733:
90734: if test ""; then
90735: INCLUDES="-I$ai_p $INCLUDES"
90736: else
90737: INCLUDES="$INCLUDES -I$ai_p"
90738: fi
90739:
90740: fi
90741:
90742: fi
90743:
90744:
90745:
90746: else
90747:
90748: LDFLAGS=$save_old_LDFLAGS
90749: ext_shared=$save_ext_shared
90750: unset ac_cv_lib_sqlite_sqlite_open
90751:
90752: as_fn_error $? "wrong sqlite lib version or lib not found" "$LINENO" 5
90753:
90754:
90755: fi
90756:
90757: SQLITE_MODULE_TYPE=external
90758: PHP_SQLITE_CFLAGS=$pdo_inc_path
90759: sqlite_extra_sources="libsqlite/src/encode.c"
90760: else
90761: # use bundled library
90762:
90763: # we only support certain lemon versions
90764: lemon_version_list="1.0"
90765:
90766: # Extract the first word of "lemon", so it can be a program name with args.
90767: set dummy lemon; ac_word=$2
90768: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
90769: $as_echo_n "checking for $ac_word... " >&6; }
90770: if ${ac_cv_prog_LEMON+:} false; then :
90771: $as_echo_n "(cached) " >&6
90772: else
90773: if test -n "$LEMON"; then
90774: ac_cv_prog_LEMON="$LEMON" # Let the user override the test.
90775: else
90776: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
90777: for as_dir in $PATH
90778: do
90779: IFS=$as_save_IFS
90780: test -z "$as_dir" && as_dir=.
90781: for ac_exec_ext in '' $ac_executable_extensions; do
90782: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
90783: ac_cv_prog_LEMON="lemon"
90784: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
90785: break 2
90786: fi
90787: done
90788: done
90789: IFS=$as_save_IFS
90790:
90791: fi
90792: fi
90793: LEMON=$ac_cv_prog_LEMON
90794: if test -n "$LEMON"; then
90795: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEMON" >&5
90796: $as_echo "$LEMON" >&6; }
90797: else
90798: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
90799: $as_echo "no" >&6; }
90800: fi
90801:
90802:
90803: if test "$LEMON"; then
90804: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lemon version" >&5
90805: $as_echo_n "checking for lemon version... " >&6; }
90806: if ${php_cv_lemon_version+:} false; then :
90807: $as_echo_n "(cached) " >&6
90808: else
90809:
90810: lemon_version=`$LEMON -x 2>/dev/null | $SED -e 's/^.* //'`
90811: php_cv_lemon_version=invalid
90812: for lemon_check_version in $lemon_version_list; do
90813: if test "$lemon_version" = "$lemon_check_version"; then
90814: php_cv_lemon_version="$lemon_check_version (ok)"
90815: fi
90816: done
90817:
90818: fi
90819: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_lemon_version" >&5
90820: $as_echo "$php_cv_lemon_version" >&6; }
90821: else
90822: lemon_version=none
90823: fi
90824: case $php_cv_lemon_version in
90825: ""|invalid)
90826: lemon_msg="lemon versions supported for regeneration of libsqlite parsers: $lemon_version_list (found: $lemon_version)."
90827: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $lemon_msg" >&5
90828: $as_echo "$as_me: WARNING: $lemon_msg" >&2;}
90829: LEMON="exit 0;"
90830: ;;
90831: esac
90832:
90833: PHP_VAR_SUBST="$PHP_VAR_SUBST LEMON"
90834:
90835:
90836: SQLITE_MODULE_TYPE=builtin
90837: PHP_SQLITE_CFLAGS="-I@ext_srcdir@/libsqlite/src -I@ext_builddir@/libsqlite/src $pdo_inc_path"
90838: sqlite_extra_sources="libsqlite/src/opcodes.c \
90839: libsqlite/src/parse.c libsqlite/src/encode.c \
90840: libsqlite/src/auth.c libsqlite/src/btree.c libsqlite/src/build.c \
90841: libsqlite/src/delete.c libsqlite/src/expr.c libsqlite/src/func.c \
90842: libsqlite/src/hash.c libsqlite/src/insert.c libsqlite/src/main.c \
90843: libsqlite/src/os.c libsqlite/src/pager.c \
90844: libsqlite/src/printf.c libsqlite/src/random.c \
90845: libsqlite/src/select.c libsqlite/src/table.c libsqlite/src/tokenize.c \
90846: libsqlite/src/update.c libsqlite/src/util.c libsqlite/src/vdbe.c \
90847: libsqlite/src/attach.c libsqlite/src/btree_rb.c libsqlite/src/pragma.c \
90848: libsqlite/src/vacuum.c libsqlite/src/copy.c \
90849: libsqlite/src/vdbeaux.c libsqlite/src/date.c \
90850: libsqlite/src/where.c libsqlite/src/trigger.c"
90851: fi
90852: sqlite_sources="sqlite.c sess_sqlite.c pdo_sqlite2.c $sqlite_extra_sources"
90853:
90854: ext_builddir=ext/sqlite
90855: ext_srcdir=$abs_srcdir/ext/sqlite
90856:
90857: ac_extra=`echo "$PHP_SQLITE_CFLAGS"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
90858:
90859: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
90860: PHP_SQLITE_SHARED=no
90861:
90862:
90863: case ext/sqlite in
90864: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
90865: /*) ac_srcdir=`echo "ext/sqlite"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
90866: *) ac_srcdir="$abs_srcdir/ext/sqlite/"; ac_bdir="ext/sqlite/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
90867: esac
90868:
90869:
90870:
90871: b_c_pre=$php_c_pre
90872: b_cxx_pre=$php_cxx_pre
90873: b_c_meta=$php_c_meta
90874: b_cxx_meta=$php_cxx_meta
90875: b_c_post=$php_c_post
90876: b_cxx_post=$php_cxx_post
90877: b_lo=$php_lo
90878:
90879:
90880: old_IFS=$IFS
90881: for ac_src in $sqlite_sources; do
90882:
90883: IFS=.
90884: set $ac_src
90885: ac_obj=$1
90886: IFS=$old_IFS
90887:
90888: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
90889:
90890: case $ac_src in
90891: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
90892: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
90893: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
90894: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
90895: esac
90896:
90897: cat >>Makefile.objects<<EOF
90898: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
90899: $ac_comp
90900: EOF
90901: done
90902:
90903:
90904: EXT_STATIC="$EXT_STATIC sqlite"
90905: if test "$ext_shared" != "nocli"; then
90906: EXT_CLI_STATIC="$EXT_CLI_STATIC sqlite"
90907: fi
90908: else
90909: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
90910: PHP_SQLITE_SHARED=yes
90911:
90912: case ext/sqlite in
90913: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
90914: /*) ac_srcdir=`echo "ext/sqlite"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
90915: *) ac_srcdir="$abs_srcdir/ext/sqlite/"; ac_bdir="ext/sqlite/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
90916: esac
90917:
90918:
90919:
90920: b_c_pre=$shared_c_pre
90921: b_cxx_pre=$shared_cxx_pre
90922: b_c_meta=$shared_c_meta
90923: b_cxx_meta=$shared_cxx_meta
90924: b_c_post=$shared_c_post
90925: b_cxx_post=$shared_cxx_post
90926: b_lo=$shared_lo
90927:
90928:
90929: old_IFS=$IFS
90930: for ac_src in $sqlite_sources; do
90931:
90932: IFS=.
90933: set $ac_src
90934: ac_obj=$1
90935: IFS=$old_IFS
90936:
90937: shared_objects_sqlite="$shared_objects_sqlite $ac_bdir$ac_obj.lo"
90938:
90939: case $ac_src in
90940: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
90941: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
90942: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
90943: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
90944: esac
90945:
90946: cat >>Makefile.objects<<EOF
90947: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
90948: $ac_comp
90949: EOF
90950: done
90951:
90952: case $host_alias in
90953: *netware*)
90954:
90955: install_modules="install-modules"
90956:
90957: case $host_alias in
90958: *aix*)
90959: suffix=so
90960: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpsqlite.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sqlite) $(PHPSQLITE_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpsqlite.so '$ext_builddir'/phpsqlite.so'
90961: ;;
90962: *netware*)
90963: suffix=nlm
90964: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sqlite) -L$(top_builddir)/netware -lphp5lib $(SQLITE_SHARED_LIBADD)'
90965: ;;
90966: *)
90967: suffix=la
90968: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sqlite) $(PHPSQLITE_SHARED_LIBADD)'
90969: ;;
90970: esac
90971:
90972: if test "x" = "xyes"; then
90973: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpsqlite.$suffix"
90974: else
90975: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpsqlite.$suffix"
90976: fi
90977:
90978: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_sqlite"
90979:
90980: cat >>Makefile.objects<<EOF
90981: \$(phplibdir)/phpsqlite.$suffix: $ext_builddir/phpsqlite.$suffix
90982: \$(LIBTOOL) --mode=install cp $ext_builddir/phpsqlite.$suffix \$(phplibdir)
90983:
90984: $ext_builddir/phpsqlite.$suffix: \$(shared_objects_sqlite) \$(PHPSQLITE_SHARED_DEPENDENCIES)
90985: $link_cmd
90986:
90987: EOF
90988:
90989: ;;
90990: *)
90991:
90992: install_modules="install-modules"
90993:
90994: case $host_alias in
90995: *aix*)
90996: suffix=so
90997: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/sqlite.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sqlite) $(SQLITE_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/sqlite.so '$ext_builddir'/sqlite.so'
90998: ;;
90999: *netware*)
91000: suffix=nlm
91001: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sqlite) -L$(top_builddir)/netware -lphp5lib $(ITE_SHARED_LIBADD)'
91002: ;;
91003: *)
91004: suffix=la
91005: link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_sqlite) $(SQLITE_SHARED_LIBADD)'
91006: ;;
91007: esac
91008:
91009: if test "x" = "xyes"; then
91010: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/sqlite.$suffix"
91011: else
91012: PHP_MODULES="$PHP_MODULES \$(phplibdir)/sqlite.$suffix"
91013: fi
91014:
91015: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_sqlite"
91016:
91017: cat >>Makefile.objects<<EOF
91018: \$(phplibdir)/sqlite.$suffix: $ext_builddir/sqlite.$suffix
91019: \$(LIBTOOL) --mode=install cp $ext_builddir/sqlite.$suffix \$(phplibdir)
91020:
91021: $ext_builddir/sqlite.$suffix: \$(shared_objects_sqlite) \$(SQLITE_SHARED_DEPENDENCIES)
91022: $link_cmd
91023:
91024: EOF
91025:
91026: ;;
91027: esac
91028:
91029: cat >>confdefs.h <<_ACEOF
91030: #define COMPILE_DL_SQLITE 1
91031: _ACEOF
91032:
91033: fi
91034: fi
91035:
91036: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
91037: PHP_SQLITE_SHARED=no
91038:
91039:
91040: case ext/sqlite in
91041: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
91042: /*) ac_srcdir=`echo "ext/sqlite"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
91043: *) ac_srcdir="$abs_srcdir/ext/sqlite/"; ac_bdir="ext/sqlite/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
91044: esac
91045:
91046:
91047:
91048: b_c_pre=$php_c_pre
91049: b_cxx_pre=$php_cxx_pre
91050: b_c_meta=$php_c_meta
91051: b_cxx_meta=$php_cxx_meta
91052: b_c_post=$php_c_post
91053: b_cxx_post=$php_cxx_post
91054: b_lo=$php_lo
91055:
91056:
91057: old_IFS=$IFS
91058: for ac_src in $sqlite_sources; do
91059:
91060: IFS=.
91061: set $ac_src
91062: ac_obj=$1
91063: IFS=$old_IFS
91064:
91065: PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
91066:
91067: case $ac_src in
91068: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
91069: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
91070: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
91071: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
91072: esac
91073:
91074: cat >>Makefile.objects<<EOF
91075: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
91076: $ac_comp
91077: EOF
91078: done
91079:
91080:
91081:
91082:
91083: case ext/sqlite in
91084: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
91085: /*) ac_srcdir=`echo "ext/sqlite"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
91086: *) ac_srcdir="$abs_srcdir/ext/sqlite/"; ac_bdir="ext/sqlite/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
91087: esac
91088:
91089:
91090:
91091: b_c_pre=$php_c_pre
91092: b_cxx_pre=$php_cxx_pre
91093: b_c_meta=$php_c_meta
91094: b_cxx_meta=$php_cxx_meta
91095: b_c_post=$php_c_post
91096: b_cxx_post=$php_cxx_post
91097: b_lo=$php_lo
91098:
91099:
91100: old_IFS=$IFS
91101: for ac_src in $sqlite_sources; do
91102:
91103: IFS=.
91104: set $ac_src
91105: ac_obj=$1
91106: IFS=$old_IFS
91107:
91108: PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo"
91109:
91110: case $ac_src in
91111: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
91112: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
91113: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
91114: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
91115: esac
91116:
91117: cat >>Makefile.objects<<EOF
91118: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
91119: $ac_comp
91120: EOF
91121: done
91122:
91123:
91124:
91125:
91126: case ext/sqlite in
91127: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
91128: /*) ac_srcdir=`echo "ext/sqlite"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
91129: *) ac_srcdir="$abs_srcdir/ext/sqlite/"; ac_bdir="ext/sqlite/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
91130: esac
91131:
91132:
91133:
91134: b_c_pre=$php_c_pre
91135: b_cxx_pre=$php_cxx_pre
91136: b_c_meta=$php_c_meta
91137: b_cxx_meta=$php_cxx_meta
91138: b_c_post=$php_c_post
91139: b_cxx_post=$php_cxx_post
91140: b_lo=$php_lo
91141:
91142:
91143: old_IFS=$IFS
91144: for ac_src in $sqlite_sources; do
91145:
91146: IFS=.
91147: set $ac_src
91148: ac_obj=$1
91149: IFS=$old_IFS
91150:
91151: PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo"
91152:
91153: case $ac_src in
91154: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
91155: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
91156: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
91157: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
91158: esac
91159:
91160: cat >>Makefile.objects<<EOF
91161: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
91162: $ac_comp
91163: EOF
91164: done
91165:
91166:
91167: EXT_CLI_STATIC="$EXT_CLI_STATIC sqlite"
91168: fi
91169:
91170:
91171: BUILD_DIR="$BUILD_DIR $ext_builddir"
91172:
91173:
91174:
91175: if test "$ext_builddir" = "."; then
91176: PHP_PECL_EXTENSION=sqlite
91177:
91178: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
91179:
91180: fi
91181:
91182:
91183: am_i_shared=$PHP_SQLITE_SHARED
91184: is_it_shared=$PHP_SPL_SHARED
91185: is_it_enabled=$PHP_SPL
91186: if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
91187: as_fn_error $? "
91188: You've configured extension sqlite to build statically, but it
91189: depends on extension spl, which you've configured to build shared.
91190: You either need to build sqlite shared or build spl statically for the
91191: build to be successful.
91192: " "$LINENO" 5
91193: fi
91194:
91195:
91196: am_i_shared=$PHP_SQLITE_SHARED
91197: is_it_shared=$PHP_PDO_SHARED
91198: is_it_enabled=$PHP_PDO
91199: if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
91200: as_fn_error $? "
91201: You've configured extension sqlite to build statically, but it
91202: depends on extension pdo, which you've configured to build shared.
91203: You either need to build sqlite shared or build pdo statically for the
91204: build to be successful.
91205: " "$LINENO" 5
91206: fi
91207:
91208:
91209:
91210: src=$ext_srcdir/Makefile.frag
91211: ac_srcdir=$ext_srcdir
91212: ac_builddir=$ext_builddir
91213: test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments
91214:
91215:
91216: PHP_VAR_SUBST="$PHP_VAR_SUBST SQLITE_SHARED_LIBADD"
91217:
91218:
91219:
91220: for header_file in $ext_builddir/libsqlite/src/sqlite.h; do
91221:
91222:
91223: unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
91224:
91225: cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
91226: if test -n "$unique" && test "`eval $cmd`" = "" ; then
91227: eval "INSTALLHEADERS$unique=set"
91228:
91229: INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
91230:
91231: fi
91232:
91233: done
91234:
91235:
91236:
91237: if test "$SQLITE_MODULE_TYPE" = "builtin"; then
91238:
91239:
91240: $php_shtool mkdir -p $ext_builddir/libsqlite/src
91241:
91242:
91243: # The cast to long int works around a bug in the HP C Compiler
91244: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
91245: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
91246: # This bug is HP SR number 8606223364.
91247: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char *" >&5
91248: $as_echo_n "checking size of char *... " >&6; }
91249: if ${ac_cv_sizeof_char_p+:} false; then :
91250: $as_echo_n "(cached) " >&6
91251: else
91252: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char *))" "ac_cv_sizeof_char_p" "$ac_includes_default"; then :
91253:
91254: else
91255: if test "$ac_cv_type_char_p" = yes; then
91256: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
91257: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
91258: as_fn_error 77 "cannot compute sizeof (char *)
91259: See \`config.log' for more details" "$LINENO" 5; }
91260: else
91261: ac_cv_sizeof_char_p=0
91262: fi
91263: fi
91264:
91265: fi
91266: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char_p" >&5
91267: $as_echo "$ac_cv_sizeof_char_p" >&6; }
91268:
91269:
91270:
91271: cat >>confdefs.h <<_ACEOF
91272: #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
91273: _ACEOF
91274:
91275:
91276:
91277: $as_echo "#define SQLITE_PTR_SZ SIZEOF_CHAR_P" >>confdefs.h
91278:
91279: if test "$PHP_SQLITE_UTF8" = "yes"; then
91280: SQLITE_ENCODING="UTF8"
91281:
91282: $as_echo "#define SQLITE_UTF8 1" >>confdefs.h
91283:
91284: else
91285: SQLITE_ENCODING="ISO8859"
91286: fi
91287:
91288: PHP_VAR_SUBST="$PHP_VAR_SUBST SQLITE_ENCODING"
91289:
91290:
91291: SQLITE_VERSION=`cat $ext_srcdir/libsqlite/VERSION`
91292:
91293: PHP_VAR_SUBST="$PHP_VAR_SUBST SQLITE_VERSION"
91294:
91295:
91296: sed -e s/--VERS--/$SQLITE_VERSION/ -e s/--ENCODING--/$SQLITE_ENCODING/ $ext_srcdir/libsqlite/src/sqlite.h.in > $ext_builddir/libsqlite/src/sqlite.h
91297:
91298: if test "$ext_shared" = "no" || test "$ext_srcdir" != "$abs_srcdir"; then
91299: echo '#include <php_config.h>' > $ext_builddir/libsqlite/src/config.h
91300: else
91301: echo "#include \"$abs_builddir/config.h\"" > $ext_builddir/libsqlite/src/config.h
91302: fi
91303:
91304: cat >> $ext_builddir/libsqlite/src/config.h <<EOF
91305: #if ZTS
91306: # define THREADSAFE 1
91307: #endif
91308: #if !ZEND_DEBUG
91309: # define NDEBUG
91310: #endif
91311: EOF
91312: fi
91313:
91314: for ac_func in usleep nanosleep
91315: do :
91316: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
91317: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
91318: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
91319: cat >>confdefs.h <<_ACEOF
91320: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
91321: _ACEOF
91322:
91323: fi
91324: done
91325:
91326: for ac_header in time.h
91327: do :
91328: ac_fn_c_check_header_mongrel "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
91329: if test "x$ac_cv_header_time_h" = xyes; then :
91330: cat >>confdefs.h <<_ACEOF
91331: #define HAVE_TIME_H 1
91332: _ACEOF
91333:
91334: fi
91335:
91336: done
91337:
91338: fi
91339:
91340:
91341:
91342: for ac_func in fork CreateProcess
91343: do :
91344: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
91345: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
91346: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
91347: cat >>confdefs.h <<_ACEOF
91348: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
91349: _ACEOF
91350:
91351: php_can_support_proc_open=yes
91352: break
91353:
91354: else
91355:
91356: php_can_support_proc_open=no
91357:
91358: fi
91359: done
91360:
91361: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your OS can spawn processes with inherited handles" >&5
91362: $as_echo_n "checking if your OS can spawn processes with inherited handles... " >&6; }
91363: if test "$php_can_support_proc_open" = "yes"; then
91364: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
91365: $as_echo "yes" >&6; }
91366:
91367: $as_echo "#define PHP_CAN_SUPPORT_PROC_OPEN 1" >>confdefs.h
91368:
91369: else
91370: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
91371: $as_echo "no" >&6; }
91372: fi
91373:
91374: if test "$PHP_SAPI" = "cgi" || test "$PHP_SAPI" = "cli" || test "$PHP_SAPI" = "embed"; then
91375:
91376: $as_echo "#define ENABLE_CHROOT_FUNC 1" >>confdefs.h
91377:
91378: fi
91379:
91380:
91381: unset ac_cv_func_res_nsearch
91382: unset ac_cv_func___res_nsearch
91383: unset found
91384:
91385: ac_fn_c_check_func "$LINENO" "res_nsearch" "ac_cv_func_res_nsearch"
91386: if test "x$ac_cv_func_res_nsearch" = xyes; then :
91387: found=yes
91388: else
91389: ac_fn_c_check_func "$LINENO" "__res_nsearch" "ac_cv_func___res_nsearch"
91390: if test "x$ac_cv_func___res_nsearch" = xyes; then :
91391: found=yes
91392: else
91393: found=no
91394: fi
91395:
91396: fi
91397:
91398:
91399: case $found in
91400: yes)
91401:
91402: $as_echo "#define HAVE_RES_NSEARCH 1" >>confdefs.h
91403:
91404: ac_cv_func_res_nsearch=yes
91405: ;;
91406:
91407: *)
91408:
91409: unset ac_cv_lib_resolv_res_nsearch
91410: unset ac_cv_lib_resolv___res_nsearch
91411: unset found
91412: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_nsearch in -lresolv" >&5
91413: $as_echo_n "checking for res_nsearch in -lresolv... " >&6; }
91414: if ${ac_cv_lib_resolv_res_nsearch+:} false; then :
91415: $as_echo_n "(cached) " >&6
91416: else
91417: ac_check_lib_save_LIBS=$LIBS
91418: LIBS="-lresolv $LIBS"
91419: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
91420: /* end confdefs.h. */
91421:
91422: /* Override any GCC internal prototype to avoid an error.
91423: Use char because int might match the return type of a GCC
91424: builtin and then its argument prototype would still apply. */
91425: #ifdef __cplusplus
91426: extern "C"
91427: #endif
91428: char res_nsearch ();
91429: int
91430: main ()
91431: {
91432: return res_nsearch ();
91433: ;
91434: return 0;
91435: }
91436: _ACEOF
91437: if ac_fn_c_try_link "$LINENO"; then :
91438: ac_cv_lib_resolv_res_nsearch=yes
91439: else
91440: ac_cv_lib_resolv_res_nsearch=no
91441: fi
91442: rm -f core conftest.err conftest.$ac_objext \
91443: conftest$ac_exeext conftest.$ac_ext
91444: LIBS=$ac_check_lib_save_LIBS
91445: fi
91446: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_nsearch" >&5
91447: $as_echo "$ac_cv_lib_resolv_res_nsearch" >&6; }
91448: if test "x$ac_cv_lib_resolv_res_nsearch" = xyes; then :
91449: found=yes
91450: else
91451:
91452: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_nsearch in -lresolv" >&5
91453: $as_echo_n "checking for __res_nsearch in -lresolv... " >&6; }
91454: if ${ac_cv_lib_resolv___res_nsearch+:} false; then :
91455: $as_echo_n "(cached) " >&6
91456: else
91457: ac_check_lib_save_LIBS=$LIBS
91458: LIBS="-lresolv $LIBS"
91459: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
91460: /* end confdefs.h. */
91461:
91462: /* Override any GCC internal prototype to avoid an error.
91463: Use char because int might match the return type of a GCC
91464: builtin and then its argument prototype would still apply. */
91465: #ifdef __cplusplus
91466: extern "C"
91467: #endif
91468: char __res_nsearch ();
91469: int
91470: main ()
91471: {
91472: return __res_nsearch ();
91473: ;
91474: return 0;
91475: }
91476: _ACEOF
91477: if ac_fn_c_try_link "$LINENO"; then :
91478: ac_cv_lib_resolv___res_nsearch=yes
91479: else
91480: ac_cv_lib_resolv___res_nsearch=no
91481: fi
91482: rm -f core conftest.err conftest.$ac_objext \
91483: conftest$ac_exeext conftest.$ac_ext
91484: LIBS=$ac_check_lib_save_LIBS
91485: fi
91486: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_nsearch" >&5
91487: $as_echo "$ac_cv_lib_resolv___res_nsearch" >&6; }
91488: if test "x$ac_cv_lib_resolv___res_nsearch" = xyes; then :
91489: found=yes
91490: else
91491: found=no
91492: fi
91493:
91494:
91495: fi
91496:
91497:
91498: if test "$found" = "yes"; then
91499: ac_libs=$LIBS
91500: LIBS="$LIBS -lresolv"
91501: if test "$cross_compiling" = yes; then :
91502: found=no
91503: else
91504: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
91505: /* end confdefs.h. */
91506: main() { return (0); }
91507: _ACEOF
91508: if ac_fn_c_try_run "$LINENO"; then :
91509: found=yes
91510: else
91511: found=no
91512: fi
91513: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
91514: conftest.$ac_objext conftest.beam conftest.$ac_ext
91515: fi
91516:
91517: LIBS=$ac_libs
91518: fi
91519:
91520: if test "$found" = "yes"; then
91521:
91522:
91523: case resolv in
91524: c|c_r|pthread*) ;;
91525: *)
91526: LIBS="-lresolv $LIBS"
91527: ;;
91528: esac
91529:
91530:
91531:
91532: $as_echo "#define HAVE_RES_NSEARCH 1" >>confdefs.h
91533:
91534:
91535: $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
91536:
91537: ac_cv_func_res_nsearch=yes
91538: else
91539:
91540:
91541: unset ac_cv_lib_bind_res_nsearch
91542: unset ac_cv_lib_bind___res_nsearch
91543: unset found
91544: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_nsearch in -lbind" >&5
91545: $as_echo_n "checking for res_nsearch in -lbind... " >&6; }
91546: if ${ac_cv_lib_bind_res_nsearch+:} false; then :
91547: $as_echo_n "(cached) " >&6
91548: else
91549: ac_check_lib_save_LIBS=$LIBS
91550: LIBS="-lbind $LIBS"
91551: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
91552: /* end confdefs.h. */
91553:
91554: /* Override any GCC internal prototype to avoid an error.
91555: Use char because int might match the return type of a GCC
91556: builtin and then its argument prototype would still apply. */
91557: #ifdef __cplusplus
91558: extern "C"
91559: #endif
91560: char res_nsearch ();
91561: int
91562: main ()
91563: {
91564: return res_nsearch ();
91565: ;
91566: return 0;
91567: }
91568: _ACEOF
91569: if ac_fn_c_try_link "$LINENO"; then :
91570: ac_cv_lib_bind_res_nsearch=yes
91571: else
91572: ac_cv_lib_bind_res_nsearch=no
91573: fi
91574: rm -f core conftest.err conftest.$ac_objext \
91575: conftest$ac_exeext conftest.$ac_ext
91576: LIBS=$ac_check_lib_save_LIBS
91577: fi
91578: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_res_nsearch" >&5
91579: $as_echo "$ac_cv_lib_bind_res_nsearch" >&6; }
91580: if test "x$ac_cv_lib_bind_res_nsearch" = xyes; then :
91581: found=yes
91582: else
91583:
91584: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_nsearch in -lbind" >&5
91585: $as_echo_n "checking for __res_nsearch in -lbind... " >&6; }
91586: if ${ac_cv_lib_bind___res_nsearch+:} false; then :
91587: $as_echo_n "(cached) " >&6
91588: else
91589: ac_check_lib_save_LIBS=$LIBS
91590: LIBS="-lbind $LIBS"
91591: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
91592: /* end confdefs.h. */
91593:
91594: /* Override any GCC internal prototype to avoid an error.
91595: Use char because int might match the return type of a GCC
91596: builtin and then its argument prototype would still apply. */
91597: #ifdef __cplusplus
91598: extern "C"
91599: #endif
91600: char __res_nsearch ();
91601: int
91602: main ()
91603: {
91604: return __res_nsearch ();
91605: ;
91606: return 0;
91607: }
91608: _ACEOF
91609: if ac_fn_c_try_link "$LINENO"; then :
91610: ac_cv_lib_bind___res_nsearch=yes
91611: else
91612: ac_cv_lib_bind___res_nsearch=no
91613: fi
91614: rm -f core conftest.err conftest.$ac_objext \
91615: conftest$ac_exeext conftest.$ac_ext
91616: LIBS=$ac_check_lib_save_LIBS
91617: fi
91618: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind___res_nsearch" >&5
91619: $as_echo "$ac_cv_lib_bind___res_nsearch" >&6; }
91620: if test "x$ac_cv_lib_bind___res_nsearch" = xyes; then :
91621: found=yes
91622: else
91623: found=no
91624: fi
91625:
91626:
91627: fi
91628:
91629:
91630: if test "$found" = "yes"; then
91631: ac_libs=$LIBS
91632: LIBS="$LIBS -lbind"
91633: if test "$cross_compiling" = yes; then :
91634: found=no
91635: else
91636: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
91637: /* end confdefs.h. */
91638: main() { return (0); }
91639: _ACEOF
91640: if ac_fn_c_try_run "$LINENO"; then :
91641: found=yes
91642: else
91643: found=no
91644: fi
91645: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
91646: conftest.$ac_objext conftest.beam conftest.$ac_ext
91647: fi
91648:
91649: LIBS=$ac_libs
91650: fi
91651:
91652: if test "$found" = "yes"; then
91653:
91654:
91655: case bind in
91656: c|c_r|pthread*) ;;
91657: *)
91658: LIBS="-lbind $LIBS"
91659: ;;
91660: esac
91661:
91662:
91663:
91664: $as_echo "#define HAVE_RES_NSEARCH 1" >>confdefs.h
91665:
91666:
91667: $as_echo "#define HAVE_LIBBIND 1" >>confdefs.h
91668:
91669: ac_cv_func_res_nsearch=yes
91670: else
91671:
91672:
91673: unset ac_cv_lib_socket_res_nsearch
91674: unset ac_cv_lib_socket___res_nsearch
91675: unset found
91676: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_nsearch in -lsocket" >&5
91677: $as_echo_n "checking for res_nsearch in -lsocket... " >&6; }
91678: if ${ac_cv_lib_socket_res_nsearch+:} false; then :
91679: $as_echo_n "(cached) " >&6
91680: else
91681: ac_check_lib_save_LIBS=$LIBS
91682: LIBS="-lsocket $LIBS"
91683: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
91684: /* end confdefs.h. */
91685:
91686: /* Override any GCC internal prototype to avoid an error.
91687: Use char because int might match the return type of a GCC
91688: builtin and then its argument prototype would still apply. */
91689: #ifdef __cplusplus
91690: extern "C"
91691: #endif
91692: char res_nsearch ();
91693: int
91694: main ()
91695: {
91696: return res_nsearch ();
91697: ;
91698: return 0;
91699: }
91700: _ACEOF
91701: if ac_fn_c_try_link "$LINENO"; then :
91702: ac_cv_lib_socket_res_nsearch=yes
91703: else
91704: ac_cv_lib_socket_res_nsearch=no
91705: fi
91706: rm -f core conftest.err conftest.$ac_objext \
91707: conftest$ac_exeext conftest.$ac_ext
91708: LIBS=$ac_check_lib_save_LIBS
91709: fi
91710: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_res_nsearch" >&5
91711: $as_echo "$ac_cv_lib_socket_res_nsearch" >&6; }
91712: if test "x$ac_cv_lib_socket_res_nsearch" = xyes; then :
91713: found=yes
91714: else
91715:
91716: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_nsearch in -lsocket" >&5
91717: $as_echo_n "checking for __res_nsearch in -lsocket... " >&6; }
91718: if ${ac_cv_lib_socket___res_nsearch+:} false; then :
91719: $as_echo_n "(cached) " >&6
91720: else
91721: ac_check_lib_save_LIBS=$LIBS
91722: LIBS="-lsocket $LIBS"
91723: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
91724: /* end confdefs.h. */
91725:
91726: /* Override any GCC internal prototype to avoid an error.
91727: Use char because int might match the return type of a GCC
91728: builtin and then its argument prototype would still apply. */
91729: #ifdef __cplusplus
91730: extern "C"
91731: #endif
91732: char __res_nsearch ();
91733: int
91734: main ()
91735: {
91736: return __res_nsearch ();
91737: ;
91738: return 0;
91739: }
91740: _ACEOF
91741: if ac_fn_c_try_link "$LINENO"; then :
91742: ac_cv_lib_socket___res_nsearch=yes
91743: else
91744: ac_cv_lib_socket___res_nsearch=no
91745: fi
91746: rm -f core conftest.err conftest.$ac_objext \
91747: conftest$ac_exeext conftest.$ac_ext
91748: LIBS=$ac_check_lib_save_LIBS
91749: fi
91750: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___res_nsearch" >&5
91751: $as_echo "$ac_cv_lib_socket___res_nsearch" >&6; }
91752: if test "x$ac_cv_lib_socket___res_nsearch" = xyes; then :
91753: found=yes
91754: else
91755: found=no
91756: fi
91757:
91758:
91759: fi
91760:
91761:
91762: if test "$found" = "yes"; then
91763: ac_libs=$LIBS
91764: LIBS="$LIBS -lsocket"
91765: if test "$cross_compiling" = yes; then :
91766: found=no
91767: else
91768: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
91769: /* end confdefs.h. */
91770: main() { return (0); }
91771: _ACEOF
91772: if ac_fn_c_try_run "$LINENO"; then :
91773: found=yes
91774: else
91775: found=no
91776: fi
91777: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
91778: conftest.$ac_objext conftest.beam conftest.$ac_ext
91779: fi
91780:
91781: LIBS=$ac_libs
91782: fi
91783:
91784: if test "$found" = "yes"; then
91785:
91786:
91787: case socket in
91788: c|c_r|pthread*) ;;
91789: *)
91790: LIBS="-lsocket $LIBS"
91791: ;;
91792: esac
91793:
91794:
91795:
91796: $as_echo "#define HAVE_RES_NSEARCH 1" >>confdefs.h
91797:
91798:
91799: $as_echo "#define HAVE_LIBSOCKET 1" >>confdefs.h
91800:
91801: ac_cv_func_res_nsearch=yes
91802: else
91803:
91804: :
91805:
91806: fi
91807:
91808:
91809: fi
91810:
91811:
91812: fi
91813:
91814: ;;
91815:
91816: esac
91817:
91818:
91819: unset ac_cv_func_dns_search
91820: unset ac_cv_func___dns_search
91821: unset found
91822:
91823: ac_fn_c_check_func "$LINENO" "dns_search" "ac_cv_func_dns_search"
91824: if test "x$ac_cv_func_dns_search" = xyes; then :
91825: found=yes
91826: else
91827: ac_fn_c_check_func "$LINENO" "__dns_search" "ac_cv_func___dns_search"
91828: if test "x$ac_cv_func___dns_search" = xyes; then :
91829: found=yes
91830: else
91831: found=no
91832: fi
91833:
91834: fi
91835:
91836:
91837: case $found in
91838: yes)
91839:
91840: $as_echo "#define HAVE_DNS_SEARCH 1" >>confdefs.h
91841:
91842: ac_cv_func_dns_search=yes
91843: ;;
91844:
91845: *)
91846:
91847: unset ac_cv_lib_resolv_dns_search
91848: unset ac_cv_lib_resolv___dns_search
91849: unset found
91850: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dns_search in -lresolv" >&5
91851: $as_echo_n "checking for dns_search in -lresolv... " >&6; }
91852: if ${ac_cv_lib_resolv_dns_search+:} false; then :
91853: $as_echo_n "(cached) " >&6
91854: else
91855: ac_check_lib_save_LIBS=$LIBS
91856: LIBS="-lresolv $LIBS"
91857: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
91858: /* end confdefs.h. */
91859:
91860: /* Override any GCC internal prototype to avoid an error.
91861: Use char because int might match the return type of a GCC
91862: builtin and then its argument prototype would still apply. */
91863: #ifdef __cplusplus
91864: extern "C"
91865: #endif
91866: char dns_search ();
91867: int
91868: main ()
91869: {
91870: return dns_search ();
91871: ;
91872: return 0;
91873: }
91874: _ACEOF
91875: if ac_fn_c_try_link "$LINENO"; then :
91876: ac_cv_lib_resolv_dns_search=yes
91877: else
91878: ac_cv_lib_resolv_dns_search=no
91879: fi
91880: rm -f core conftest.err conftest.$ac_objext \
91881: conftest$ac_exeext conftest.$ac_ext
91882: LIBS=$ac_check_lib_save_LIBS
91883: fi
91884: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_dns_search" >&5
91885: $as_echo "$ac_cv_lib_resolv_dns_search" >&6; }
91886: if test "x$ac_cv_lib_resolv_dns_search" = xyes; then :
91887: found=yes
91888: else
91889:
91890: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dns_search in -lresolv" >&5
91891: $as_echo_n "checking for __dns_search in -lresolv... " >&6; }
91892: if ${ac_cv_lib_resolv___dns_search+:} false; then :
91893: $as_echo_n "(cached) " >&6
91894: else
91895: ac_check_lib_save_LIBS=$LIBS
91896: LIBS="-lresolv $LIBS"
91897: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
91898: /* end confdefs.h. */
91899:
91900: /* Override any GCC internal prototype to avoid an error.
91901: Use char because int might match the return type of a GCC
91902: builtin and then its argument prototype would still apply. */
91903: #ifdef __cplusplus
91904: extern "C"
91905: #endif
91906: char __dns_search ();
91907: int
91908: main ()
91909: {
91910: return __dns_search ();
91911: ;
91912: return 0;
91913: }
91914: _ACEOF
91915: if ac_fn_c_try_link "$LINENO"; then :
91916: ac_cv_lib_resolv___dns_search=yes
91917: else
91918: ac_cv_lib_resolv___dns_search=no
91919: fi
91920: rm -f core conftest.err conftest.$ac_objext \
91921: conftest$ac_exeext conftest.$ac_ext
91922: LIBS=$ac_check_lib_save_LIBS
91923: fi
91924: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___dns_search" >&5
91925: $as_echo "$ac_cv_lib_resolv___dns_search" >&6; }
91926: if test "x$ac_cv_lib_resolv___dns_search" = xyes; then :
91927: found=yes
91928: else
91929: found=no
91930: fi
91931:
91932:
91933: fi
91934:
91935:
91936: if test "$found" = "yes"; then
91937: ac_libs=$LIBS
91938: LIBS="$LIBS -lresolv"
91939: if test "$cross_compiling" = yes; then :
91940: found=no
91941: else
91942: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
91943: /* end confdefs.h. */
91944: main() { return (0); }
91945: _ACEOF
91946: if ac_fn_c_try_run "$LINENO"; then :
91947: found=yes
91948: else
91949: found=no
91950: fi
91951: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
91952: conftest.$ac_objext conftest.beam conftest.$ac_ext
91953: fi
91954:
91955: LIBS=$ac_libs
91956: fi
91957:
91958: if test "$found" = "yes"; then
91959:
91960:
91961: case resolv in
91962: c|c_r|pthread*) ;;
91963: *)
91964: LIBS="-lresolv $LIBS"
91965: ;;
91966: esac
91967:
91968:
91969:
91970: $as_echo "#define HAVE_DNS_SEARCH 1" >>confdefs.h
91971:
91972:
91973: $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
91974:
91975: ac_cv_func_dns_search=yes
91976: else
91977:
91978:
91979: unset ac_cv_lib_bind_dns_search
91980: unset ac_cv_lib_bind___dns_search
91981: unset found
91982: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dns_search in -lbind" >&5
91983: $as_echo_n "checking for dns_search in -lbind... " >&6; }
91984: if ${ac_cv_lib_bind_dns_search+:} false; then :
91985: $as_echo_n "(cached) " >&6
91986: else
91987: ac_check_lib_save_LIBS=$LIBS
91988: LIBS="-lbind $LIBS"
91989: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
91990: /* end confdefs.h. */
91991:
91992: /* Override any GCC internal prototype to avoid an error.
91993: Use char because int might match the return type of a GCC
91994: builtin and then its argument prototype would still apply. */
91995: #ifdef __cplusplus
91996: extern "C"
91997: #endif
91998: char dns_search ();
91999: int
92000: main ()
92001: {
92002: return dns_search ();
92003: ;
92004: return 0;
92005: }
92006: _ACEOF
92007: if ac_fn_c_try_link "$LINENO"; then :
92008: ac_cv_lib_bind_dns_search=yes
92009: else
92010: ac_cv_lib_bind_dns_search=no
92011: fi
92012: rm -f core conftest.err conftest.$ac_objext \
92013: conftest$ac_exeext conftest.$ac_ext
92014: LIBS=$ac_check_lib_save_LIBS
92015: fi
92016: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_dns_search" >&5
92017: $as_echo "$ac_cv_lib_bind_dns_search" >&6; }
92018: if test "x$ac_cv_lib_bind_dns_search" = xyes; then :
92019: found=yes
92020: else
92021:
92022: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dns_search in -lbind" >&5
92023: $as_echo_n "checking for __dns_search in -lbind... " >&6; }
92024: if ${ac_cv_lib_bind___dns_search+:} false; then :
92025: $as_echo_n "(cached) " >&6
92026: else
92027: ac_check_lib_save_LIBS=$LIBS
92028: LIBS="-lbind $LIBS"
92029: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
92030: /* end confdefs.h. */
92031:
92032: /* Override any GCC internal prototype to avoid an error.
92033: Use char because int might match the return type of a GCC
92034: builtin and then its argument prototype would still apply. */
92035: #ifdef __cplusplus
92036: extern "C"
92037: #endif
92038: char __dns_search ();
92039: int
92040: main ()
92041: {
92042: return __dns_search ();
92043: ;
92044: return 0;
92045: }
92046: _ACEOF
92047: if ac_fn_c_try_link "$LINENO"; then :
92048: ac_cv_lib_bind___dns_search=yes
92049: else
92050: ac_cv_lib_bind___dns_search=no
92051: fi
92052: rm -f core conftest.err conftest.$ac_objext \
92053: conftest$ac_exeext conftest.$ac_ext
92054: LIBS=$ac_check_lib_save_LIBS
92055: fi
92056: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind___dns_search" >&5
92057: $as_echo "$ac_cv_lib_bind___dns_search" >&6; }
92058: if test "x$ac_cv_lib_bind___dns_search" = xyes; then :
92059: found=yes
92060: else
92061: found=no
92062: fi
92063:
92064:
92065: fi
92066:
92067:
92068: if test "$found" = "yes"; then
92069: ac_libs=$LIBS
92070: LIBS="$LIBS -lbind"
92071: if test "$cross_compiling" = yes; then :
92072: found=no
92073: else
92074: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
92075: /* end confdefs.h. */
92076: main() { return (0); }
92077: _ACEOF
92078: if ac_fn_c_try_run "$LINENO"; then :
92079: found=yes
92080: else
92081: found=no
92082: fi
92083: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
92084: conftest.$ac_objext conftest.beam conftest.$ac_ext
92085: fi
92086:
92087: LIBS=$ac_libs
92088: fi
92089:
92090: if test "$found" = "yes"; then
92091:
92092:
92093: case bind in
92094: c|c_r|pthread*) ;;
92095: *)
92096: LIBS="-lbind $LIBS"
92097: ;;
92098: esac
92099:
92100:
92101:
92102: $as_echo "#define HAVE_DNS_SEARCH 1" >>confdefs.h
92103:
92104:
92105: $as_echo "#define HAVE_LIBBIND 1" >>confdefs.h
92106:
92107: ac_cv_func_dns_search=yes
92108: else
92109:
92110:
92111: unset ac_cv_lib_socket_dns_search
92112: unset ac_cv_lib_socket___dns_search
92113: unset found
92114: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dns_search in -lsocket" >&5
92115: $as_echo_n "checking for dns_search in -lsocket... " >&6; }
92116: if ${ac_cv_lib_socket_dns_search+:} false; then :
92117: $as_echo_n "(cached) " >&6
92118: else
92119: ac_check_lib_save_LIBS=$LIBS
92120: LIBS="-lsocket $LIBS"
92121: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
92122: /* end confdefs.h. */
92123:
92124: /* Override any GCC internal prototype to avoid an error.
92125: Use char because int might match the return type of a GCC
92126: builtin and then its argument prototype would still apply. */
92127: #ifdef __cplusplus
92128: extern "C"
92129: #endif
92130: char dns_search ();
92131: int
92132: main ()
92133: {
92134: return dns_search ();
92135: ;
92136: return 0;
92137: }
92138: _ACEOF
92139: if ac_fn_c_try_link "$LINENO"; then :
92140: ac_cv_lib_socket_dns_search=yes
92141: else
92142: ac_cv_lib_socket_dns_search=no
92143: fi
92144: rm -f core conftest.err conftest.$ac_objext \
92145: conftest$ac_exeext conftest.$ac_ext
92146: LIBS=$ac_check_lib_save_LIBS
92147: fi
92148: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_dns_search" >&5
92149: $as_echo "$ac_cv_lib_socket_dns_search" >&6; }
92150: if test "x$ac_cv_lib_socket_dns_search" = xyes; then :
92151: found=yes
92152: else
92153:
92154: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dns_search in -lsocket" >&5
92155: $as_echo_n "checking for __dns_search in -lsocket... " >&6; }
92156: if ${ac_cv_lib_socket___dns_search+:} false; then :
92157: $as_echo_n "(cached) " >&6
92158: else
92159: ac_check_lib_save_LIBS=$LIBS
92160: LIBS="-lsocket $LIBS"
92161: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
92162: /* end confdefs.h. */
92163:
92164: /* Override any GCC internal prototype to avoid an error.
92165: Use char because int might match the return type of a GCC
92166: builtin and then its argument prototype would still apply. */
92167: #ifdef __cplusplus
92168: extern "C"
92169: #endif
92170: char __dns_search ();
92171: int
92172: main ()
92173: {
92174: return __dns_search ();
92175: ;
92176: return 0;
92177: }
92178: _ACEOF
92179: if ac_fn_c_try_link "$LINENO"; then :
92180: ac_cv_lib_socket___dns_search=yes
92181: else
92182: ac_cv_lib_socket___dns_search=no
92183: fi
92184: rm -f core conftest.err conftest.$ac_objext \
92185: conftest$ac_exeext conftest.$ac_ext
92186: LIBS=$ac_check_lib_save_LIBS
92187: fi
92188: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___dns_search" >&5
92189: $as_echo "$ac_cv_lib_socket___dns_search" >&6; }
92190: if test "x$ac_cv_lib_socket___dns_search" = xyes; then :
92191: found=yes
92192: else
92193: found=no
92194: fi
92195:
92196:
92197: fi
92198:
92199:
92200: if test "$found" = "yes"; then
92201: ac_libs=$LIBS
92202: LIBS="$LIBS -lsocket"
92203: if test "$cross_compiling" = yes; then :
92204: found=no
92205: else
92206: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
92207: /* end confdefs.h. */
92208: main() { return (0); }
92209: _ACEOF
92210: if ac_fn_c_try_run "$LINENO"; then :
92211: found=yes
92212: else
92213: found=no
92214: fi
92215: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
92216: conftest.$ac_objext conftest.beam conftest.$ac_ext
92217: fi
92218:
92219: LIBS=$ac_libs
92220: fi
92221:
92222: if test "$found" = "yes"; then
92223:
92224:
92225: case socket in
92226: c|c_r|pthread*) ;;
92227: *)
92228: LIBS="-lsocket $LIBS"
92229: ;;
92230: esac
92231:
92232:
92233:
92234: $as_echo "#define HAVE_DNS_SEARCH 1" >>confdefs.h
92235:
92236:
92237: $as_echo "#define HAVE_LIBSOCKET 1" >>confdefs.h
92238:
92239: ac_cv_func_dns_search=yes
92240: else
92241:
92242: :
92243:
92244: fi
92245:
92246:
92247: fi
92248:
92249:
92250: fi
92251:
92252: ;;
92253:
92254: esac
92255:
92256:
92257: unset ac_cv_func_dn_expand
92258: unset ac_cv_func___dn_expand
92259: unset found
92260:
92261: ac_fn_c_check_func "$LINENO" "dn_expand" "ac_cv_func_dn_expand"
92262: if test "x$ac_cv_func_dn_expand" = xyes; then :
92263: found=yes
92264: else
92265: ac_fn_c_check_func "$LINENO" "__dn_expand" "ac_cv_func___dn_expand"
92266: if test "x$ac_cv_func___dn_expand" = xyes; then :
92267: found=yes
92268: else
92269: found=no
92270: fi
92271:
92272: fi
92273:
92274:
92275: case $found in
92276: yes)
92277:
92278: $as_echo "#define HAVE_DN_EXPAND 1" >>confdefs.h
92279:
92280: ac_cv_func_dn_expand=yes
92281: ;;
92282:
92283: *)
92284:
92285: unset ac_cv_lib_resolv_dn_expand
92286: unset ac_cv_lib_resolv___dn_expand
92287: unset found
92288: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dn_expand in -lresolv" >&5
92289: $as_echo_n "checking for dn_expand in -lresolv... " >&6; }
92290: if ${ac_cv_lib_resolv_dn_expand+:} false; then :
92291: $as_echo_n "(cached) " >&6
92292: else
92293: ac_check_lib_save_LIBS=$LIBS
92294: LIBS="-lresolv $LIBS"
92295: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
92296: /* end confdefs.h. */
92297:
92298: /* Override any GCC internal prototype to avoid an error.
92299: Use char because int might match the return type of a GCC
92300: builtin and then its argument prototype would still apply. */
92301: #ifdef __cplusplus
92302: extern "C"
92303: #endif
92304: char dn_expand ();
92305: int
92306: main ()
92307: {
92308: return dn_expand ();
92309: ;
92310: return 0;
92311: }
92312: _ACEOF
92313: if ac_fn_c_try_link "$LINENO"; then :
92314: ac_cv_lib_resolv_dn_expand=yes
92315: else
92316: ac_cv_lib_resolv_dn_expand=no
92317: fi
92318: rm -f core conftest.err conftest.$ac_objext \
92319: conftest$ac_exeext conftest.$ac_ext
92320: LIBS=$ac_check_lib_save_LIBS
92321: fi
92322: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_dn_expand" >&5
92323: $as_echo "$ac_cv_lib_resolv_dn_expand" >&6; }
92324: if test "x$ac_cv_lib_resolv_dn_expand" = xyes; then :
92325: found=yes
92326: else
92327:
92328: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dn_expand in -lresolv" >&5
92329: $as_echo_n "checking for __dn_expand in -lresolv... " >&6; }
92330: if ${ac_cv_lib_resolv___dn_expand+:} false; then :
92331: $as_echo_n "(cached) " >&6
92332: else
92333: ac_check_lib_save_LIBS=$LIBS
92334: LIBS="-lresolv $LIBS"
92335: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
92336: /* end confdefs.h. */
92337:
92338: /* Override any GCC internal prototype to avoid an error.
92339: Use char because int might match the return type of a GCC
92340: builtin and then its argument prototype would still apply. */
92341: #ifdef __cplusplus
92342: extern "C"
92343: #endif
92344: char __dn_expand ();
92345: int
92346: main ()
92347: {
92348: return __dn_expand ();
92349: ;
92350: return 0;
92351: }
92352: _ACEOF
92353: if ac_fn_c_try_link "$LINENO"; then :
92354: ac_cv_lib_resolv___dn_expand=yes
92355: else
92356: ac_cv_lib_resolv___dn_expand=no
92357: fi
92358: rm -f core conftest.err conftest.$ac_objext \
92359: conftest$ac_exeext conftest.$ac_ext
92360: LIBS=$ac_check_lib_save_LIBS
92361: fi
92362: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___dn_expand" >&5
92363: $as_echo "$ac_cv_lib_resolv___dn_expand" >&6; }
92364: if test "x$ac_cv_lib_resolv___dn_expand" = xyes; then :
92365: found=yes
92366: else
92367: found=no
92368: fi
92369:
92370:
92371: fi
92372:
92373:
92374: if test "$found" = "yes"; then
92375: ac_libs=$LIBS
92376: LIBS="$LIBS -lresolv"
92377: if test "$cross_compiling" = yes; then :
92378: found=no
92379: else
92380: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
92381: /* end confdefs.h. */
92382: main() { return (0); }
92383: _ACEOF
92384: if ac_fn_c_try_run "$LINENO"; then :
92385: found=yes
92386: else
92387: found=no
92388: fi
92389: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
92390: conftest.$ac_objext conftest.beam conftest.$ac_ext
92391: fi
92392:
92393: LIBS=$ac_libs
92394: fi
92395:
92396: if test "$found" = "yes"; then
92397:
92398:
92399: case resolv in
92400: c|c_r|pthread*) ;;
92401: *)
92402: LIBS="-lresolv $LIBS"
92403: ;;
92404: esac
92405:
92406:
92407:
92408: $as_echo "#define HAVE_DN_EXPAND 1" >>confdefs.h
92409:
92410:
92411: $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
92412:
92413: ac_cv_func_dn_expand=yes
92414: else
92415:
92416:
92417: unset ac_cv_lib_bind_dn_expand
92418: unset ac_cv_lib_bind___dn_expand
92419: unset found
92420: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dn_expand in -lbind" >&5
92421: $as_echo_n "checking for dn_expand in -lbind... " >&6; }
92422: if ${ac_cv_lib_bind_dn_expand+:} false; then :
92423: $as_echo_n "(cached) " >&6
92424: else
92425: ac_check_lib_save_LIBS=$LIBS
92426: LIBS="-lbind $LIBS"
92427: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
92428: /* end confdefs.h. */
92429:
92430: /* Override any GCC internal prototype to avoid an error.
92431: Use char because int might match the return type of a GCC
92432: builtin and then its argument prototype would still apply. */
92433: #ifdef __cplusplus
92434: extern "C"
92435: #endif
92436: char dn_expand ();
92437: int
92438: main ()
92439: {
92440: return dn_expand ();
92441: ;
92442: return 0;
92443: }
92444: _ACEOF
92445: if ac_fn_c_try_link "$LINENO"; then :
92446: ac_cv_lib_bind_dn_expand=yes
92447: else
92448: ac_cv_lib_bind_dn_expand=no
92449: fi
92450: rm -f core conftest.err conftest.$ac_objext \
92451: conftest$ac_exeext conftest.$ac_ext
92452: LIBS=$ac_check_lib_save_LIBS
92453: fi
92454: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_dn_expand" >&5
92455: $as_echo "$ac_cv_lib_bind_dn_expand" >&6; }
92456: if test "x$ac_cv_lib_bind_dn_expand" = xyes; then :
92457: found=yes
92458: else
92459:
92460: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dn_expand in -lbind" >&5
92461: $as_echo_n "checking for __dn_expand in -lbind... " >&6; }
92462: if ${ac_cv_lib_bind___dn_expand+:} false; then :
92463: $as_echo_n "(cached) " >&6
92464: else
92465: ac_check_lib_save_LIBS=$LIBS
92466: LIBS="-lbind $LIBS"
92467: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
92468: /* end confdefs.h. */
92469:
92470: /* Override any GCC internal prototype to avoid an error.
92471: Use char because int might match the return type of a GCC
92472: builtin and then its argument prototype would still apply. */
92473: #ifdef __cplusplus
92474: extern "C"
92475: #endif
92476: char __dn_expand ();
92477: int
92478: main ()
92479: {
92480: return __dn_expand ();
92481: ;
92482: return 0;
92483: }
92484: _ACEOF
92485: if ac_fn_c_try_link "$LINENO"; then :
92486: ac_cv_lib_bind___dn_expand=yes
92487: else
92488: ac_cv_lib_bind___dn_expand=no
92489: fi
92490: rm -f core conftest.err conftest.$ac_objext \
92491: conftest$ac_exeext conftest.$ac_ext
92492: LIBS=$ac_check_lib_save_LIBS
92493: fi
92494: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind___dn_expand" >&5
92495: $as_echo "$ac_cv_lib_bind___dn_expand" >&6; }
92496: if test "x$ac_cv_lib_bind___dn_expand" = xyes; then :
92497: found=yes
92498: else
92499: found=no
92500: fi
92501:
92502:
92503: fi
92504:
92505:
92506: if test "$found" = "yes"; then
92507: ac_libs=$LIBS
92508: LIBS="$LIBS -lbind"
92509: if test "$cross_compiling" = yes; then :
92510: found=no
92511: else
92512: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
92513: /* end confdefs.h. */
92514: main() { return (0); }
92515: _ACEOF
92516: if ac_fn_c_try_run "$LINENO"; then :
92517: found=yes
92518: else
92519: found=no
92520: fi
92521: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
92522: conftest.$ac_objext conftest.beam conftest.$ac_ext
92523: fi
92524:
92525: LIBS=$ac_libs
92526: fi
92527:
92528: if test "$found" = "yes"; then
92529:
92530:
92531: case bind in
92532: c|c_r|pthread*) ;;
92533: *)
92534: LIBS="-lbind $LIBS"
92535: ;;
92536: esac
92537:
92538:
92539:
92540: $as_echo "#define HAVE_DN_EXPAND 1" >>confdefs.h
92541:
92542:
92543: $as_echo "#define HAVE_LIBBIND 1" >>confdefs.h
92544:
92545: ac_cv_func_dn_expand=yes
92546: else
92547:
92548:
92549: unset ac_cv_lib_socket_dn_expand
92550: unset ac_cv_lib_socket___dn_expand
92551: unset found
92552: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dn_expand in -lsocket" >&5
92553: $as_echo_n "checking for dn_expand in -lsocket... " >&6; }
92554: if ${ac_cv_lib_socket_dn_expand+:} false; then :
92555: $as_echo_n "(cached) " >&6
92556: else
92557: ac_check_lib_save_LIBS=$LIBS
92558: LIBS="-lsocket $LIBS"
92559: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
92560: /* end confdefs.h. */
92561:
92562: /* Override any GCC internal prototype to avoid an error.
92563: Use char because int might match the return type of a GCC
92564: builtin and then its argument prototype would still apply. */
92565: #ifdef __cplusplus
92566: extern "C"
92567: #endif
92568: char dn_expand ();
92569: int
92570: main ()
92571: {
92572: return dn_expand ();
92573: ;
92574: return 0;
92575: }
92576: _ACEOF
92577: if ac_fn_c_try_link "$LINENO"; then :
92578: ac_cv_lib_socket_dn_expand=yes
92579: else
92580: ac_cv_lib_socket_dn_expand=no
92581: fi
92582: rm -f core conftest.err conftest.$ac_objext \
92583: conftest$ac_exeext conftest.$ac_ext
92584: LIBS=$ac_check_lib_save_LIBS
92585: fi
92586: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_dn_expand" >&5
92587: $as_echo "$ac_cv_lib_socket_dn_expand" >&6; }
92588: if test "x$ac_cv_lib_socket_dn_expand" = xyes; then :
92589: found=yes
92590: else
92591:
92592: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dn_expand in -lsocket" >&5
92593: $as_echo_n "checking for __dn_expand in -lsocket... " >&6; }
92594: if ${ac_cv_lib_socket___dn_expand+:} false; then :
92595: $as_echo_n "(cached) " >&6
92596: else
92597: ac_check_lib_save_LIBS=$LIBS
92598: LIBS="-lsocket $LIBS"
92599: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
92600: /* end confdefs.h. */
92601:
92602: /* Override any GCC internal prototype to avoid an error.
92603: Use char because int might match the return type of a GCC
92604: builtin and then its argument prototype would still apply. */
92605: #ifdef __cplusplus
92606: extern "C"
92607: #endif
92608: char __dn_expand ();
92609: int
92610: main ()
92611: {
92612: return __dn_expand ();
92613: ;
92614: return 0;
92615: }
92616: _ACEOF
92617: if ac_fn_c_try_link "$LINENO"; then :
92618: ac_cv_lib_socket___dn_expand=yes
92619: else
92620: ac_cv_lib_socket___dn_expand=no
92621: fi
92622: rm -f core conftest.err conftest.$ac_objext \
92623: conftest$ac_exeext conftest.$ac_ext
92624: LIBS=$ac_check_lib_save_LIBS
92625: fi
92626: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___dn_expand" >&5
92627: $as_echo "$ac_cv_lib_socket___dn_expand" >&6; }
92628: if test "x$ac_cv_lib_socket___dn_expand" = xyes; then :
92629: found=yes
92630: else
92631: found=no
92632: fi
92633:
92634:
92635: fi
92636:
92637:
92638: if test "$found" = "yes"; then
92639: ac_libs=$LIBS
92640: LIBS="$LIBS -lsocket"
92641: if test "$cross_compiling" = yes; then :
92642: found=no
92643: else
92644: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
92645: /* end confdefs.h. */
92646: main() { return (0); }
92647: _ACEOF
92648: if ac_fn_c_try_run "$LINENO"; then :
92649: found=yes
92650: else
92651: found=no
92652: fi
92653: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
92654: conftest.$ac_objext conftest.beam conftest.$ac_ext
92655: fi
92656:
92657: LIBS=$ac_libs
92658: fi
92659:
92660: if test "$found" = "yes"; then
92661:
92662:
92663: case socket in
92664: c|c_r|pthread*) ;;
92665: *)
92666: LIBS="-lsocket $LIBS"
92667: ;;
92668: esac
92669:
92670:
92671:
92672: $as_echo "#define HAVE_DN_EXPAND 1" >>confdefs.h
92673:
92674:
92675: $as_echo "#define HAVE_LIBSOCKET 1" >>confdefs.h
92676:
92677: ac_cv_func_dn_expand=yes
92678: else
92679:
92680: :
92681:
92682: fi
92683:
92684:
92685: fi
92686:
92687:
92688: fi
92689:
92690: ;;
92691:
92692: esac
92693:
92694:
92695: unset ac_cv_func_dn_skipname
92696: unset ac_cv_func___dn_skipname
92697: unset found
92698:
92699: ac_fn_c_check_func "$LINENO" "dn_skipname" "ac_cv_func_dn_skipname"
92700: if test "x$ac_cv_func_dn_skipname" = xyes; then :
92701: found=yes
92702: else
92703: ac_fn_c_check_func "$LINENO" "__dn_skipname" "ac_cv_func___dn_skipname"
92704: if test "x$ac_cv_func___dn_skipname" = xyes; then :
92705: found=yes
92706: else
92707: found=no
92708: fi
92709:
92710: fi
92711:
92712:
92713: case $found in
92714: yes)
92715:
92716: $as_echo "#define HAVE_DN_SKIPNAME 1" >>confdefs.h
92717:
92718: ac_cv_func_dn_skipname=yes
92719: ;;
92720:
92721: *)
92722:
92723: unset ac_cv_lib_resolv_dn_skipname
92724: unset ac_cv_lib_resolv___dn_skipname
92725: unset found
92726: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dn_skipname in -lresolv" >&5
92727: $as_echo_n "checking for dn_skipname in -lresolv... " >&6; }
92728: if ${ac_cv_lib_resolv_dn_skipname+:} false; then :
92729: $as_echo_n "(cached) " >&6
92730: else
92731: ac_check_lib_save_LIBS=$LIBS
92732: LIBS="-lresolv $LIBS"
92733: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
92734: /* end confdefs.h. */
92735:
92736: /* Override any GCC internal prototype to avoid an error.
92737: Use char because int might match the return type of a GCC
92738: builtin and then its argument prototype would still apply. */
92739: #ifdef __cplusplus
92740: extern "C"
92741: #endif
92742: char dn_skipname ();
92743: int
92744: main ()
92745: {
92746: return dn_skipname ();
92747: ;
92748: return 0;
92749: }
92750: _ACEOF
92751: if ac_fn_c_try_link "$LINENO"; then :
92752: ac_cv_lib_resolv_dn_skipname=yes
92753: else
92754: ac_cv_lib_resolv_dn_skipname=no
92755: fi
92756: rm -f core conftest.err conftest.$ac_objext \
92757: conftest$ac_exeext conftest.$ac_ext
92758: LIBS=$ac_check_lib_save_LIBS
92759: fi
92760: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_dn_skipname" >&5
92761: $as_echo "$ac_cv_lib_resolv_dn_skipname" >&6; }
92762: if test "x$ac_cv_lib_resolv_dn_skipname" = xyes; then :
92763: found=yes
92764: else
92765:
92766: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dn_skipname in -lresolv" >&5
92767: $as_echo_n "checking for __dn_skipname in -lresolv... " >&6; }
92768: if ${ac_cv_lib_resolv___dn_skipname+:} false; then :
92769: $as_echo_n "(cached) " >&6
92770: else
92771: ac_check_lib_save_LIBS=$LIBS
92772: LIBS="-lresolv $LIBS"
92773: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
92774: /* end confdefs.h. */
92775:
92776: /* Override any GCC internal prototype to avoid an error.
92777: Use char because int might match the return type of a GCC
92778: builtin and then its argument prototype would still apply. */
92779: #ifdef __cplusplus
92780: extern "C"
92781: #endif
92782: char __dn_skipname ();
92783: int
92784: main ()
92785: {
92786: return __dn_skipname ();
92787: ;
92788: return 0;
92789: }
92790: _ACEOF
92791: if ac_fn_c_try_link "$LINENO"; then :
92792: ac_cv_lib_resolv___dn_skipname=yes
92793: else
92794: ac_cv_lib_resolv___dn_skipname=no
92795: fi
92796: rm -f core conftest.err conftest.$ac_objext \
92797: conftest$ac_exeext conftest.$ac_ext
92798: LIBS=$ac_check_lib_save_LIBS
92799: fi
92800: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___dn_skipname" >&5
92801: $as_echo "$ac_cv_lib_resolv___dn_skipname" >&6; }
92802: if test "x$ac_cv_lib_resolv___dn_skipname" = xyes; then :
92803: found=yes
92804: else
92805: found=no
92806: fi
92807:
92808:
92809: fi
92810:
92811:
92812: if test "$found" = "yes"; then
92813: ac_libs=$LIBS
92814: LIBS="$LIBS -lresolv"
92815: if test "$cross_compiling" = yes; then :
92816: found=no
92817: else
92818: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
92819: /* end confdefs.h. */
92820: main() { return (0); }
92821: _ACEOF
92822: if ac_fn_c_try_run "$LINENO"; then :
92823: found=yes
92824: else
92825: found=no
92826: fi
92827: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
92828: conftest.$ac_objext conftest.beam conftest.$ac_ext
92829: fi
92830:
92831: LIBS=$ac_libs
92832: fi
92833:
92834: if test "$found" = "yes"; then
92835:
92836:
92837: case resolv in
92838: c|c_r|pthread*) ;;
92839: *)
92840: LIBS="-lresolv $LIBS"
92841: ;;
92842: esac
92843:
92844:
92845:
92846: $as_echo "#define HAVE_DN_SKIPNAME 1" >>confdefs.h
92847:
92848:
92849: $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
92850:
92851: ac_cv_func_dn_skipname=yes
92852: else
92853:
92854:
92855: unset ac_cv_lib_bind_dn_skipname
92856: unset ac_cv_lib_bind___dn_skipname
92857: unset found
92858: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dn_skipname in -lbind" >&5
92859: $as_echo_n "checking for dn_skipname in -lbind... " >&6; }
92860: if ${ac_cv_lib_bind_dn_skipname+:} false; then :
92861: $as_echo_n "(cached) " >&6
92862: else
92863: ac_check_lib_save_LIBS=$LIBS
92864: LIBS="-lbind $LIBS"
92865: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
92866: /* end confdefs.h. */
92867:
92868: /* Override any GCC internal prototype to avoid an error.
92869: Use char because int might match the return type of a GCC
92870: builtin and then its argument prototype would still apply. */
92871: #ifdef __cplusplus
92872: extern "C"
92873: #endif
92874: char dn_skipname ();
92875: int
92876: main ()
92877: {
92878: return dn_skipname ();
92879: ;
92880: return 0;
92881: }
92882: _ACEOF
92883: if ac_fn_c_try_link "$LINENO"; then :
92884: ac_cv_lib_bind_dn_skipname=yes
92885: else
92886: ac_cv_lib_bind_dn_skipname=no
92887: fi
92888: rm -f core conftest.err conftest.$ac_objext \
92889: conftest$ac_exeext conftest.$ac_ext
92890: LIBS=$ac_check_lib_save_LIBS
92891: fi
92892: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_dn_skipname" >&5
92893: $as_echo "$ac_cv_lib_bind_dn_skipname" >&6; }
92894: if test "x$ac_cv_lib_bind_dn_skipname" = xyes; then :
92895: found=yes
92896: else
92897:
92898: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dn_skipname in -lbind" >&5
92899: $as_echo_n "checking for __dn_skipname in -lbind... " >&6; }
92900: if ${ac_cv_lib_bind___dn_skipname+:} false; then :
92901: $as_echo_n "(cached) " >&6
92902: else
92903: ac_check_lib_save_LIBS=$LIBS
92904: LIBS="-lbind $LIBS"
92905: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
92906: /* end confdefs.h. */
92907:
92908: /* Override any GCC internal prototype to avoid an error.
92909: Use char because int might match the return type of a GCC
92910: builtin and then its argument prototype would still apply. */
92911: #ifdef __cplusplus
92912: extern "C"
92913: #endif
92914: char __dn_skipname ();
92915: int
92916: main ()
92917: {
92918: return __dn_skipname ();
92919: ;
92920: return 0;
92921: }
92922: _ACEOF
92923: if ac_fn_c_try_link "$LINENO"; then :
92924: ac_cv_lib_bind___dn_skipname=yes
92925: else
92926: ac_cv_lib_bind___dn_skipname=no
92927: fi
92928: rm -f core conftest.err conftest.$ac_objext \
92929: conftest$ac_exeext conftest.$ac_ext
92930: LIBS=$ac_check_lib_save_LIBS
92931: fi
92932: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind___dn_skipname" >&5
92933: $as_echo "$ac_cv_lib_bind___dn_skipname" >&6; }
92934: if test "x$ac_cv_lib_bind___dn_skipname" = xyes; then :
92935: found=yes
92936: else
92937: found=no
92938: fi
92939:
92940:
92941: fi
92942:
92943:
92944: if test "$found" = "yes"; then
92945: ac_libs=$LIBS
92946: LIBS="$LIBS -lbind"
92947: if test "$cross_compiling" = yes; then :
92948: found=no
92949: else
92950: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
92951: /* end confdefs.h. */
92952: main() { return (0); }
92953: _ACEOF
92954: if ac_fn_c_try_run "$LINENO"; then :
92955: found=yes
92956: else
92957: found=no
92958: fi
92959: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
92960: conftest.$ac_objext conftest.beam conftest.$ac_ext
92961: fi
92962:
92963: LIBS=$ac_libs
92964: fi
92965:
92966: if test "$found" = "yes"; then
92967:
92968:
92969: case bind in
92970: c|c_r|pthread*) ;;
92971: *)
92972: LIBS="-lbind $LIBS"
92973: ;;
92974: esac
92975:
92976:
92977:
92978: $as_echo "#define HAVE_DN_SKIPNAME 1" >>confdefs.h
92979:
92980:
92981: $as_echo "#define HAVE_LIBBIND 1" >>confdefs.h
92982:
92983: ac_cv_func_dn_skipname=yes
92984: else
92985:
92986:
92987: unset ac_cv_lib_socket_dn_skipname
92988: unset ac_cv_lib_socket___dn_skipname
92989: unset found
92990: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dn_skipname in -lsocket" >&5
92991: $as_echo_n "checking for dn_skipname in -lsocket... " >&6; }
92992: if ${ac_cv_lib_socket_dn_skipname+:} false; then :
92993: $as_echo_n "(cached) " >&6
92994: else
92995: ac_check_lib_save_LIBS=$LIBS
92996: LIBS="-lsocket $LIBS"
92997: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
92998: /* end confdefs.h. */
92999:
93000: /* Override any GCC internal prototype to avoid an error.
93001: Use char because int might match the return type of a GCC
93002: builtin and then its argument prototype would still apply. */
93003: #ifdef __cplusplus
93004: extern "C"
93005: #endif
93006: char dn_skipname ();
93007: int
93008: main ()
93009: {
93010: return dn_skipname ();
93011: ;
93012: return 0;
93013: }
93014: _ACEOF
93015: if ac_fn_c_try_link "$LINENO"; then :
93016: ac_cv_lib_socket_dn_skipname=yes
93017: else
93018: ac_cv_lib_socket_dn_skipname=no
93019: fi
93020: rm -f core conftest.err conftest.$ac_objext \
93021: conftest$ac_exeext conftest.$ac_ext
93022: LIBS=$ac_check_lib_save_LIBS
93023: fi
93024: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_dn_skipname" >&5
93025: $as_echo "$ac_cv_lib_socket_dn_skipname" >&6; }
93026: if test "x$ac_cv_lib_socket_dn_skipname" = xyes; then :
93027: found=yes
93028: else
93029:
93030: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dn_skipname in -lsocket" >&5
93031: $as_echo_n "checking for __dn_skipname in -lsocket... " >&6; }
93032: if ${ac_cv_lib_socket___dn_skipname+:} false; then :
93033: $as_echo_n "(cached) " >&6
93034: else
93035: ac_check_lib_save_LIBS=$LIBS
93036: LIBS="-lsocket $LIBS"
93037: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
93038: /* end confdefs.h. */
93039:
93040: /* Override any GCC internal prototype to avoid an error.
93041: Use char because int might match the return type of a GCC
93042: builtin and then its argument prototype would still apply. */
93043: #ifdef __cplusplus
93044: extern "C"
93045: #endif
93046: char __dn_skipname ();
93047: int
93048: main ()
93049: {
93050: return __dn_skipname ();
93051: ;
93052: return 0;
93053: }
93054: _ACEOF
93055: if ac_fn_c_try_link "$LINENO"; then :
93056: ac_cv_lib_socket___dn_skipname=yes
93057: else
93058: ac_cv_lib_socket___dn_skipname=no
93059: fi
93060: rm -f core conftest.err conftest.$ac_objext \
93061: conftest$ac_exeext conftest.$ac_ext
93062: LIBS=$ac_check_lib_save_LIBS
93063: fi
93064: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___dn_skipname" >&5
93065: $as_echo "$ac_cv_lib_socket___dn_skipname" >&6; }
93066: if test "x$ac_cv_lib_socket___dn_skipname" = xyes; then :
93067: found=yes
93068: else
93069: found=no
93070: fi
93071:
93072:
93073: fi
93074:
93075:
93076: if test "$found" = "yes"; then
93077: ac_libs=$LIBS
93078: LIBS="$LIBS -lsocket"
93079: if test "$cross_compiling" = yes; then :
93080: found=no
93081: else
93082: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
93083: /* end confdefs.h. */
93084: main() { return (0); }
93085: _ACEOF
93086: if ac_fn_c_try_run "$LINENO"; then :
93087: found=yes
93088: else
93089: found=no
93090: fi
93091: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
93092: conftest.$ac_objext conftest.beam conftest.$ac_ext
93093: fi
93094:
93095: LIBS=$ac_libs
93096: fi
93097:
93098: if test "$found" = "yes"; then
93099:
93100:
93101: case socket in
93102: c|c_r|pthread*) ;;
93103: *)
93104: LIBS="-lsocket $LIBS"
93105: ;;
93106: esac
93107:
93108:
93109:
93110: $as_echo "#define HAVE_DN_SKIPNAME 1" >>confdefs.h
93111:
93112:
93113: $as_echo "#define HAVE_LIBSOCKET 1" >>confdefs.h
93114:
93115: ac_cv_func_dn_skipname=yes
93116: else
93117:
93118: :
93119:
93120: fi
93121:
93122:
93123: fi
93124:
93125:
93126: fi
93127:
93128: ;;
93129:
93130: esac
93131:
93132:
93133:
93134:
93135: unset ac_cv_func_res_search
93136: unset ac_cv_func___res_search
93137: unset found
93138:
93139: ac_fn_c_check_func "$LINENO" "res_search" "ac_cv_func_res_search"
93140: if test "x$ac_cv_func_res_search" = xyes; then :
93141: found=yes
93142: else
93143: ac_fn_c_check_func "$LINENO" "__res_search" "ac_cv_func___res_search"
93144: if test "x$ac_cv_func___res_search" = xyes; then :
93145: found=yes
93146: else
93147: found=no
93148: fi
93149:
93150: fi
93151:
93152:
93153: case $found in
93154: yes)
93155:
93156: $as_echo "#define HAVE_RES_SEARCH 1" >>confdefs.h
93157:
93158: ac_cv_func_res_search=yes
93159: ;;
93160:
93161: *)
93162:
93163: unset ac_cv_lib_resolv_res_search
93164: unset ac_cv_lib_resolv___res_search
93165: unset found
93166: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_search in -lresolv" >&5
93167: $as_echo_n "checking for res_search in -lresolv... " >&6; }
93168: if ${ac_cv_lib_resolv_res_search+:} false; then :
93169: $as_echo_n "(cached) " >&6
93170: else
93171: ac_check_lib_save_LIBS=$LIBS
93172: LIBS="-lresolv $LIBS"
93173: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
93174: /* end confdefs.h. */
93175:
93176: /* Override any GCC internal prototype to avoid an error.
93177: Use char because int might match the return type of a GCC
93178: builtin and then its argument prototype would still apply. */
93179: #ifdef __cplusplus
93180: extern "C"
93181: #endif
93182: char res_search ();
93183: int
93184: main ()
93185: {
93186: return res_search ();
93187: ;
93188: return 0;
93189: }
93190: _ACEOF
93191: if ac_fn_c_try_link "$LINENO"; then :
93192: ac_cv_lib_resolv_res_search=yes
93193: else
93194: ac_cv_lib_resolv_res_search=no
93195: fi
93196: rm -f core conftest.err conftest.$ac_objext \
93197: conftest$ac_exeext conftest.$ac_ext
93198: LIBS=$ac_check_lib_save_LIBS
93199: fi
93200: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_search" >&5
93201: $as_echo "$ac_cv_lib_resolv_res_search" >&6; }
93202: if test "x$ac_cv_lib_resolv_res_search" = xyes; then :
93203: found=yes
93204: else
93205:
93206: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_search in -lresolv" >&5
93207: $as_echo_n "checking for __res_search in -lresolv... " >&6; }
93208: if ${ac_cv_lib_resolv___res_search+:} false; then :
93209: $as_echo_n "(cached) " >&6
93210: else
93211: ac_check_lib_save_LIBS=$LIBS
93212: LIBS="-lresolv $LIBS"
93213: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
93214: /* end confdefs.h. */
93215:
93216: /* Override any GCC internal prototype to avoid an error.
93217: Use char because int might match the return type of a GCC
93218: builtin and then its argument prototype would still apply. */
93219: #ifdef __cplusplus
93220: extern "C"
93221: #endif
93222: char __res_search ();
93223: int
93224: main ()
93225: {
93226: return __res_search ();
93227: ;
93228: return 0;
93229: }
93230: _ACEOF
93231: if ac_fn_c_try_link "$LINENO"; then :
93232: ac_cv_lib_resolv___res_search=yes
93233: else
93234: ac_cv_lib_resolv___res_search=no
93235: fi
93236: rm -f core conftest.err conftest.$ac_objext \
93237: conftest$ac_exeext conftest.$ac_ext
93238: LIBS=$ac_check_lib_save_LIBS
93239: fi
93240: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_search" >&5
93241: $as_echo "$ac_cv_lib_resolv___res_search" >&6; }
93242: if test "x$ac_cv_lib_resolv___res_search" = xyes; then :
93243: found=yes
93244: else
93245: found=no
93246: fi
93247:
93248:
93249: fi
93250:
93251:
93252: if test "$found" = "yes"; then
93253: ac_libs=$LIBS
93254: LIBS="$LIBS -lresolv"
93255: if test "$cross_compiling" = yes; then :
93256: found=no
93257: else
93258: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
93259: /* end confdefs.h. */
93260: main() { return (0); }
93261: _ACEOF
93262: if ac_fn_c_try_run "$LINENO"; then :
93263: found=yes
93264: else
93265: found=no
93266: fi
93267: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
93268: conftest.$ac_objext conftest.beam conftest.$ac_ext
93269: fi
93270:
93271: LIBS=$ac_libs
93272: fi
93273:
93274: if test "$found" = "yes"; then
93275:
93276:
93277: case resolv in
93278: c|c_r|pthread*) ;;
93279: *)
93280: LIBS="-lresolv $LIBS"
93281: ;;
93282: esac
93283:
93284:
93285:
93286: $as_echo "#define HAVE_RES_SEARCH 1" >>confdefs.h
93287:
93288:
93289: $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
93290:
93291: ac_cv_func_res_search=yes
93292: else
93293:
93294:
93295: unset ac_cv_lib_bind_res_search
93296: unset ac_cv_lib_bind___res_search
93297: unset found
93298: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_search in -lbind" >&5
93299: $as_echo_n "checking for res_search in -lbind... " >&6; }
93300: if ${ac_cv_lib_bind_res_search+:} false; then :
93301: $as_echo_n "(cached) " >&6
93302: else
93303: ac_check_lib_save_LIBS=$LIBS
93304: LIBS="-lbind $LIBS"
93305: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
93306: /* end confdefs.h. */
93307:
93308: /* Override any GCC internal prototype to avoid an error.
93309: Use char because int might match the return type of a GCC
93310: builtin and then its argument prototype would still apply. */
93311: #ifdef __cplusplus
93312: extern "C"
93313: #endif
93314: char res_search ();
93315: int
93316: main ()
93317: {
93318: return res_search ();
93319: ;
93320: return 0;
93321: }
93322: _ACEOF
93323: if ac_fn_c_try_link "$LINENO"; then :
93324: ac_cv_lib_bind_res_search=yes
93325: else
93326: ac_cv_lib_bind_res_search=no
93327: fi
93328: rm -f core conftest.err conftest.$ac_objext \
93329: conftest$ac_exeext conftest.$ac_ext
93330: LIBS=$ac_check_lib_save_LIBS
93331: fi
93332: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_res_search" >&5
93333: $as_echo "$ac_cv_lib_bind_res_search" >&6; }
93334: if test "x$ac_cv_lib_bind_res_search" = xyes; then :
93335: found=yes
93336: else
93337:
93338: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_search in -lbind" >&5
93339: $as_echo_n "checking for __res_search in -lbind... " >&6; }
93340: if ${ac_cv_lib_bind___res_search+:} false; then :
93341: $as_echo_n "(cached) " >&6
93342: else
93343: ac_check_lib_save_LIBS=$LIBS
93344: LIBS="-lbind $LIBS"
93345: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
93346: /* end confdefs.h. */
93347:
93348: /* Override any GCC internal prototype to avoid an error.
93349: Use char because int might match the return type of a GCC
93350: builtin and then its argument prototype would still apply. */
93351: #ifdef __cplusplus
93352: extern "C"
93353: #endif
93354: char __res_search ();
93355: int
93356: main ()
93357: {
93358: return __res_search ();
93359: ;
93360: return 0;
93361: }
93362: _ACEOF
93363: if ac_fn_c_try_link "$LINENO"; then :
93364: ac_cv_lib_bind___res_search=yes
93365: else
93366: ac_cv_lib_bind___res_search=no
93367: fi
93368: rm -f core conftest.err conftest.$ac_objext \
93369: conftest$ac_exeext conftest.$ac_ext
93370: LIBS=$ac_check_lib_save_LIBS
93371: fi
93372: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind___res_search" >&5
93373: $as_echo "$ac_cv_lib_bind___res_search" >&6; }
93374: if test "x$ac_cv_lib_bind___res_search" = xyes; then :
93375: found=yes
93376: else
93377: found=no
93378: fi
93379:
93380:
93381: fi
93382:
93383:
93384: if test "$found" = "yes"; then
93385: ac_libs=$LIBS
93386: LIBS="$LIBS -lbind"
93387: if test "$cross_compiling" = yes; then :
93388: found=no
93389: else
93390: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
93391: /* end confdefs.h. */
93392: main() { return (0); }
93393: _ACEOF
93394: if ac_fn_c_try_run "$LINENO"; then :
93395: found=yes
93396: else
93397: found=no
93398: fi
93399: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
93400: conftest.$ac_objext conftest.beam conftest.$ac_ext
93401: fi
93402:
93403: LIBS=$ac_libs
93404: fi
93405:
93406: if test "$found" = "yes"; then
93407:
93408:
93409: case bind in
93410: c|c_r|pthread*) ;;
93411: *)
93412: LIBS="-lbind $LIBS"
93413: ;;
93414: esac
93415:
93416:
93417:
93418: $as_echo "#define HAVE_RES_SEARCH 1" >>confdefs.h
93419:
93420:
93421: $as_echo "#define HAVE_LIBBIND 1" >>confdefs.h
93422:
93423: ac_cv_func_res_search=yes
93424: else
93425:
93426:
93427: unset ac_cv_lib_socket_res_search
93428: unset ac_cv_lib_socket___res_search
93429: unset found
93430: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_search in -lsocket" >&5
93431: $as_echo_n "checking for res_search in -lsocket... " >&6; }
93432: if ${ac_cv_lib_socket_res_search+:} false; then :
93433: $as_echo_n "(cached) " >&6
93434: else
93435: ac_check_lib_save_LIBS=$LIBS
93436: LIBS="-lsocket $LIBS"
93437: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
93438: /* end confdefs.h. */
93439:
93440: /* Override any GCC internal prototype to avoid an error.
93441: Use char because int might match the return type of a GCC
93442: builtin and then its argument prototype would still apply. */
93443: #ifdef __cplusplus
93444: extern "C"
93445: #endif
93446: char res_search ();
93447: int
93448: main ()
93449: {
93450: return res_search ();
93451: ;
93452: return 0;
93453: }
93454: _ACEOF
93455: if ac_fn_c_try_link "$LINENO"; then :
93456: ac_cv_lib_socket_res_search=yes
93457: else
93458: ac_cv_lib_socket_res_search=no
93459: fi
93460: rm -f core conftest.err conftest.$ac_objext \
93461: conftest$ac_exeext conftest.$ac_ext
93462: LIBS=$ac_check_lib_save_LIBS
93463: fi
93464: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_res_search" >&5
93465: $as_echo "$ac_cv_lib_socket_res_search" >&6; }
93466: if test "x$ac_cv_lib_socket_res_search" = xyes; then :
93467: found=yes
93468: else
93469:
93470: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_search in -lsocket" >&5
93471: $as_echo_n "checking for __res_search in -lsocket... " >&6; }
93472: if ${ac_cv_lib_socket___res_search+:} false; then :
93473: $as_echo_n "(cached) " >&6
93474: else
93475: ac_check_lib_save_LIBS=$LIBS
93476: LIBS="-lsocket $LIBS"
93477: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
93478: /* end confdefs.h. */
93479:
93480: /* Override any GCC internal prototype to avoid an error.
93481: Use char because int might match the return type of a GCC
93482: builtin and then its argument prototype would still apply. */
93483: #ifdef __cplusplus
93484: extern "C"
93485: #endif
93486: char __res_search ();
93487: int
93488: main ()
93489: {
93490: return __res_search ();
93491: ;
93492: return 0;
93493: }
93494: _ACEOF
93495: if ac_fn_c_try_link "$LINENO"; then :
93496: ac_cv_lib_socket___res_search=yes
93497: else
93498: ac_cv_lib_socket___res_search=no
93499: fi
93500: rm -f core conftest.err conftest.$ac_objext \
93501: conftest$ac_exeext conftest.$ac_ext
93502: LIBS=$ac_check_lib_save_LIBS
93503: fi
93504: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___res_search" >&5
93505: $as_echo "$ac_cv_lib_socket___res_search" >&6; }
93506: if test "x$ac_cv_lib_socket___res_search" = xyes; then :
93507: found=yes
93508: else
93509: found=no
93510: fi
93511:
93512:
93513: fi
93514:
93515:
93516: if test "$found" = "yes"; then
93517: ac_libs=$LIBS
93518: LIBS="$LIBS -lsocket"
93519: if test "$cross_compiling" = yes; then :
93520: found=no
93521: else
93522: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
93523: /* end confdefs.h. */
93524: main() { return (0); }
93525: _ACEOF
93526: if ac_fn_c_try_run "$LINENO"; then :
93527: found=yes
93528: else
93529: found=no
93530: fi
93531: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
93532: conftest.$ac_objext conftest.beam conftest.$ac_ext
93533: fi
93534:
93535: LIBS=$ac_libs
93536: fi
93537:
93538: if test "$found" = "yes"; then
93539:
93540:
93541: case socket in
93542: c|c_r|pthread*) ;;
93543: *)
93544: LIBS="-lsocket $LIBS"
93545: ;;
93546: esac
93547:
93548:
93549:
93550: $as_echo "#define HAVE_RES_SEARCH 1" >>confdefs.h
93551:
93552:
93553: $as_echo "#define HAVE_LIBSOCKET 1" >>confdefs.h
93554:
93555: ac_cv_func_res_search=yes
93556: else
93557:
93558: :
93559:
93560: fi
93561:
93562:
93563: fi
93564:
93565:
93566: fi
93567:
93568: ;;
93569:
93570: esac
93571:
93572:
93573: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether atof() accepts NAN" >&5
93574: $as_echo_n "checking whether atof() accepts NAN... " >&6; }
93575: if ${ac_cv_atof_accept_nan+:} false; then :
93576: $as_echo_n "(cached) " >&6
93577: else
93578:
93579: if test "$cross_compiling" = yes; then :
93580:
93581: ac_cv_atof_accept_nan=no
93582:
93583: else
93584: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
93585: /* end confdefs.h. */
93586:
93587: #include <math.h>
93588: #include <stdlib.h>
93589:
93590: #ifdef HAVE_ISNAN
93591: #define zend_isnan(a) isnan(a)
93592: #elif defined(HAVE_FPCLASS)
93593: #define zend_isnan(a) ((fpclass(a) == FP_SNAN) || (fpclass(a) == FP_QNAN))
93594: #else
93595: #define zend_isnan(a) 0
93596: #endif
93597:
93598: int main(int argc, char** argv)
93599: {
93600: return zend_isnan(atof("NAN")) ? 0 : 1;
93601: }
93602:
93603: _ACEOF
93604: if ac_fn_c_try_run "$LINENO"; then :
93605:
93606: ac_cv_atof_accept_nan=yes
93607:
93608: else
93609:
93610: ac_cv_atof_accept_nan=no
93611:
93612: fi
93613: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
93614: conftest.$ac_objext conftest.beam conftest.$ac_ext
93615: fi
93616:
93617: fi
93618: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_atof_accept_nan" >&5
93619: $as_echo "$ac_cv_atof_accept_nan" >&6; }
93620: if test "$ac_cv_atof_accept_nan" = "yes"; then
93621:
93622: $as_echo "#define HAVE_ATOF_ACCEPTS_NAN 1" >>confdefs.h
93623:
93624: fi
93625:
93626: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether atof() accepts INF" >&5
93627: $as_echo_n "checking whether atof() accepts INF... " >&6; }
93628: if ${ac_cv_atof_accept_inf+:} false; then :
93629: $as_echo_n "(cached) " >&6
93630: else
93631:
93632: if test "$cross_compiling" = yes; then :
93633:
93634: ac_cv_atof_accept_inf=no
93635:
93636: else
93637: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
93638: /* end confdefs.h. */
93639:
93640: #include <math.h>
93641: #include <stdlib.h>
93642:
93643: #ifdef HAVE_ISINF
93644: #define zend_isinf(a) isinf(a)
93645: #elif defined(INFINITY)
93646: /* Might not work, but is required by ISO C99 */
93647: #define zend_isinf(a) (((a)==INFINITY)?1:0)
93648: #elif defined(HAVE_FPCLASS)
93649: #define zend_isinf(a) ((fpclass(a) == FP_PINF) || (fpclass(a) == FP_NINF))
93650: #else
93651: #define zend_isinf(a) 0
93652: #endif
93653:
93654: int main(int argc, char** argv)
93655: {
93656: return zend_isinf(atof("INF")) && zend_isinf(atof("-INF")) ? 0 : 1;
93657: }
93658:
93659: _ACEOF
93660: if ac_fn_c_try_run "$LINENO"; then :
93661:
93662: ac_cv_atof_accept_inf=yes
93663:
93664: else
93665:
93666: ac_cv_atof_accept_inf=no
93667:
93668: fi
93669: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
93670: conftest.$ac_objext conftest.beam conftest.$ac_ext
93671: fi
93672:
93673: fi
93674: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_atof_accept_inf" >&5
93675: $as_echo "$ac_cv_atof_accept_inf" >&6; }
93676: if test "$ac_cv_atof_accept_inf" = "yes"; then
93677:
93678: $as_echo "#define HAVE_ATOF_ACCEPTS_INF 1" >>confdefs.h
93679:
93680: fi
93681:
93682: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL == INF" >&5
93683: $as_echo_n "checking whether HUGE_VAL == INF... " >&6; }
93684: if ${ac_cv_huge_val_inf+:} false; then :
93685: $as_echo_n "(cached) " >&6
93686: else
93687:
93688: if test "$cross_compiling" = yes; then :
93689:
93690: ac_cv_huge_val_inf=yes
93691:
93692: else
93693: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
93694: /* end confdefs.h. */
93695:
93696: #include <math.h>
93697: #include <stdlib.h>
93698:
93699: #ifdef HAVE_ISINF
93700: #define zend_isinf(a) isinf(a)
93701: #elif defined(INFINITY)
93702: /* Might not work, but is required by ISO C99 */
93703: #define zend_isinf(a) (((a)==INFINITY)?1:0)
93704: #elif defined(HAVE_FPCLASS)
93705: #define zend_isinf(a) ((fpclass(a) == FP_PINF) || (fpclass(a) == FP_NINF))
93706: #else
93707: #define zend_isinf(a) 0
93708: #endif
93709:
93710: int main(int argc, char** argv)
93711: {
93712: return zend_isinf(HUGE_VAL) ? 0 : 1;
93713: }
93714:
93715: _ACEOF
93716: if ac_fn_c_try_run "$LINENO"; then :
93717:
93718: ac_cv_huge_val_inf=yes
93719:
93720: else
93721:
93722: ac_cv_huge_val_inf=no
93723:
93724: fi
93725: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
93726: conftest.$ac_objext conftest.beam conftest.$ac_ext
93727: fi
93728:
93729: fi
93730: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_huge_val_inf" >&5
93731: $as_echo "$ac_cv_huge_val_inf" >&6; }
93732: if test "$ac_cv_huge_val_inf" = "yes"; then
93733:
93734: $as_echo "#define HAVE_HUGE_VAL_INF 1" >>confdefs.h
93735:
93736: fi
93737:
93738: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL + -HUGEVAL == NAN" >&5
93739: $as_echo_n "checking whether HUGE_VAL + -HUGEVAL == NAN... " >&6; }
93740: if ${ac_cv_huge_val_nan+:} false; then :
93741: $as_echo_n "(cached) " >&6
93742: else
93743:
93744: if test "$cross_compiling" = yes; then :
93745:
93746: ac_cv_huge_val_nan=yes
93747:
93748: else
93749: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
93750: /* end confdefs.h. */
93751:
93752: #include <math.h>
93753: #include <stdlib.h>
93754:
93755: #ifdef HAVE_ISNAN
93756: #define zend_isnan(a) isnan(a)
93757: #elif defined(HAVE_FPCLASS)
93758: #define zend_isnan(a) ((fpclass(a) == FP_SNAN) || (fpclass(a) == FP_QNAN))
93759: #else
93760: #define zend_isnan(a) 0
93761: #endif
93762:
93763: int main(int argc, char** argv)
93764: {
93765: #if defined(__sparc__) && !(__GNUC__ >= 3)
93766: /* prevent bug #27830 */
93767: return 1;
93768: #else
93769: return zend_isnan(HUGE_VAL + -HUGE_VAL) ? 0 : 1;
93770: #endif
93771: }
93772:
93773: _ACEOF
93774: if ac_fn_c_try_run "$LINENO"; then :
93775:
93776: ac_cv_huge_val_nan=yes
93777:
93778: else
93779:
93780: ac_cv_huge_val_nan=no
93781:
93782: fi
93783: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
93784: conftest.$ac_objext conftest.beam conftest.$ac_ext
93785: fi
93786:
93787: fi
93788: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_huge_val_nan" >&5
93789: $as_echo "$ac_cv_huge_val_nan" >&6; }
93790: if test "$ac_cv_huge_val_nan" = "yes"; then
93791:
93792: $as_echo "#define HAVE_HUGE_VAL_NAN 1" >>confdefs.h
93793:
93794: fi
93795:
93796: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strptime() declaration fails" >&5
93797: $as_echo_n "checking whether strptime() declaration fails... " >&6; }
93798: if ${ac_cv_strptime_decl_fails+:} false; then :
93799: $as_echo_n "(cached) " >&6
93800: else
93801:
93802: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
93803: /* end confdefs.h. */
93804:
93805: #include <time.h>
93806:
93807: int
93808: main ()
93809: {
93810:
93811: #ifndef HAVE_STRPTIME
93812: #error no strptime() on this platform
93813: #else
93814: /* use invalid strptime() declaration to see if it fails to compile */
93815: int strptime(const char *s, const char *format, struct tm *tm);
93816: #endif
93817:
93818: ;
93819: return 0;
93820: }
93821: _ACEOF
93822: if ac_fn_c_try_compile "$LINENO"; then :
93823:
93824: ac_cv_strptime_decl_fails=no
93825:
93826: else
93827:
93828: ac_cv_strptime_decl_fails=yes
93829:
93830: fi
93831: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
93832: fi
93833: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_strptime_decl_fails" >&5
93834: $as_echo "$ac_cv_strptime_decl_fails" >&6; }
93835: if test "$ac_cv_strptime_decl_fails" = "yes"; then
93836:
93837: $as_echo "#define HAVE_STRPTIME_DECL_FAILS 1" >>confdefs.h
93838:
93839: fi
93840:
93841: for ac_header in wchar.h
93842: do :
93843: ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
93844: if test "x$ac_cv_header_wchar_h" = xyes; then :
93845: cat >>confdefs.h <<_ACEOF
93846: #define HAVE_WCHAR_H 1
93847: _ACEOF
93848:
93849: fi
93850:
93851: done
93852:
93853: for ac_func in mblen
93854: do :
93855: ac_fn_c_check_func "$LINENO" "mblen" "ac_cv_func_mblen"
93856: if test "x$ac_cv_func_mblen" = xyes; then :
93857: cat >>confdefs.h <<_ACEOF
93858: #define HAVE_MBLEN 1
93859: _ACEOF
93860:
93861: fi
93862: done
93863:
93864: for ac_func in mbrlen mbsinit
93865: do :
93866: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
93867: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
93868: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
93869: cat >>confdefs.h <<_ACEOF
93870: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
93871: _ACEOF
93872:
93873: fi
93874: done
93875:
93876: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
93877: $as_echo_n "checking for mbstate_t... " >&6; }
93878: if ${ac_cv_type_mbstate_t+:} false; then :
93879: $as_echo_n "(cached) " >&6
93880: else
93881:
93882: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
93883: /* end confdefs.h. */
93884:
93885: #ifdef HAVE_WCHAR_H
93886: # include <wchar.h>
93887: #endif
93888:
93889: int
93890: main ()
93891: {
93892:
93893: int __tmp__() { mbstate_t a; }
93894:
93895: ;
93896: return 0;
93897: }
93898: _ACEOF
93899: if ac_fn_c_try_compile "$LINENO"; then :
93900:
93901: ac_cv_type_mbstate_t=yes
93902:
93903: else
93904:
93905: ac_cv_type_mbstate_t=no
93906:
93907: fi
93908: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
93909: fi
93910: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
93911: $as_echo "$ac_cv_type_mbstate_t" >&6; }
93912: if test "$ac_cv_type_mbstate_t" = "yes"; then
93913:
93914: $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
93915:
93916: fi
93917:
93918: for ac_header in atomic.h
93919: do :
93920: ac_fn_c_check_header_mongrel "$LINENO" "atomic.h" "ac_cv_header_atomic_h" "$ac_includes_default"
93921: if test "x$ac_cv_header_atomic_h" = xyes; then :
93922: cat >>confdefs.h <<_ACEOF
93923: #define HAVE_ATOMIC_H 1
93924: _ACEOF
93925:
93926: fi
93927:
93928: done
93929:
93930:
93931:
93932: ext_builddir=ext/standard
93933: ext_srcdir=$abs_srcdir/ext/standard
93934:
93935: ac_extra=
93936:
93937: if test "" != "shared" && test "" != "yes" && test "" != "cli"; then
93938: PHP_STANDARD_SHARED=no
93939:
93940:
93941: case ext/standard in
93942: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
93943: /*) ac_srcdir=`echo "ext/standard"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
93944: *) ac_srcdir="$abs_srcdir/ext/standard/"; ac_bdir="ext/standard/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
93945: esac
93946:
93947:
93948:
93949: b_c_pre=$php_c_pre
93950: b_cxx_pre=$php_cxx_pre
93951: b_c_meta=$php_c_meta
93952: b_cxx_meta=$php_cxx_meta
93953: b_c_post=$php_c_post
93954: b_cxx_post=$php_cxx_post
93955: b_lo=$php_lo
93956:
93957:
93958: old_IFS=$IFS
93959: for ac_src in array.c base64.c basic_functions.c browscap.c crc32.c crypt.c \
93960: cyr_convert.c datetime.c dir.c dl.c dns.c exec.c file.c filestat.c \
93961: flock_compat.c formatted_print.c fsock.c head.c html.c image.c \
93962: info.c iptc.c lcg.c link.c mail.c math.c md5.c metaphone.c \
93963: microtime.c pack.c pageinfo.c quot_print.c rand.c \
93964: soundex.c string.c scanf.c syslog.c type.c uniqid.c url.c \
93965: var.c versioning.c assert.c strnatcmp.c levenshtein.c \
93966: incomplete_class.c url_scanner_ex.c ftp_fopen_wrapper.c \
93967: http_fopen_wrapper.c php_fopen_wrapper.c credits.c css.c \
93968: var_unserializer.c ftok.c sha1.c user_filters.c uuencode.c \
93969: filters.c proc_open.c streamsfuncs.c http.c; do
93970:
93971: IFS=.
93972: set $ac_src
93973: ac_obj=$1
93974: IFS=$old_IFS
93975:
93976: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
93977:
93978: case $ac_src in
93979: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
93980: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
93981: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
93982: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
93983: esac
93984:
93985: cat >>Makefile.objects<<EOF
93986: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
93987: $ac_comp
93988: EOF
93989: done
93990:
93991:
93992: EXT_STATIC="$EXT_STATIC standard"
93993: if test "" != "nocli"; then
93994: EXT_CLI_STATIC="$EXT_CLI_STATIC standard"
93995: fi
93996: else
93997: if test "" = "shared" || test "" = "yes"; then
93998: PHP_STANDARD_SHARED=yes
93999:
94000: case ext/standard in
94001: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
94002: /*) ac_srcdir=`echo "ext/standard"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
94003: *) ac_srcdir="$abs_srcdir/ext/standard/"; ac_bdir="ext/standard/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
94004: esac
94005:
94006:
94007:
94008: b_c_pre=$shared_c_pre
94009: b_cxx_pre=$shared_cxx_pre
94010: b_c_meta=$shared_c_meta
94011: b_cxx_meta=$shared_cxx_meta
94012: b_c_post=$shared_c_post
94013: b_cxx_post=$shared_cxx_post
94014: b_lo=$shared_lo
94015:
94016:
94017: old_IFS=$IFS
94018: for ac_src in array.c base64.c basic_functions.c browscap.c crc32.c crypt.c \
94019: cyr_convert.c datetime.c dir.c dl.c dns.c exec.c file.c filestat.c \
94020: flock_compat.c formatted_print.c fsock.c head.c html.c image.c \
94021: info.c iptc.c lcg.c link.c mail.c math.c md5.c metaphone.c \
94022: microtime.c pack.c pageinfo.c quot_print.c rand.c \
94023: soundex.c string.c scanf.c syslog.c type.c uniqid.c url.c \
94024: var.c versioning.c assert.c strnatcmp.c levenshtein.c \
94025: incomplete_class.c url_scanner_ex.c ftp_fopen_wrapper.c \
94026: http_fopen_wrapper.c php_fopen_wrapper.c credits.c css.c \
94027: var_unserializer.c ftok.c sha1.c user_filters.c uuencode.c \
94028: filters.c proc_open.c streamsfuncs.c http.c; do
94029:
94030: IFS=.
94031: set $ac_src
94032: ac_obj=$1
94033: IFS=$old_IFS
94034:
94035: shared_objects_standard="$shared_objects_standard $ac_bdir$ac_obj.lo"
94036:
94037: case $ac_src in
94038: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
94039: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
94040: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
94041: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
94042: esac
94043:
94044: cat >>Makefile.objects<<EOF
94045: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
94046: $ac_comp
94047: EOF
94048: done
94049:
94050: case $host_alias in
94051: *netware*)
94052:
94053: install_modules="install-modules"
94054:
94055: case $host_alias in
94056: *aix*)
94057: suffix=so
94058: 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'
94059: ;;
94060: *netware*)
94061: suffix=nlm
94062: link_cmd='$(LIBTOOL) --mode=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)'
94063: ;;
94064: *)
94065: suffix=la
94066: link_cmd='$(LIBTOOL) --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)'
94067: ;;
94068: esac
94069:
94070: if test "x" = "xyes"; then
94071: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpstandard.$suffix"
94072: else
94073: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpstandard.$suffix"
94074: fi
94075:
94076: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_standard"
94077:
94078: cat >>Makefile.objects<<EOF
94079: \$(phplibdir)/phpstandard.$suffix: $ext_builddir/phpstandard.$suffix
94080: \$(LIBTOOL) --mode=install cp $ext_builddir/phpstandard.$suffix \$(phplibdir)
94081:
94082: $ext_builddir/phpstandard.$suffix: \$(shared_objects_standard) \$(PHPSTANDARD_SHARED_DEPENDENCIES)
94083: $link_cmd
94084:
94085: EOF
94086:
94087: ;;
94088: *)
94089:
94090: install_modules="install-modules"
94091:
94092: case $host_alias in
94093: *aix*)
94094: suffix=so
94095: 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'
94096: ;;
94097: *netware*)
94098: suffix=nlm
94099: link_cmd='$(LIBTOOL) --mode=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)'
94100: ;;
94101: *)
94102: suffix=la
94103: link_cmd='$(LIBTOOL) --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)'
94104: ;;
94105: esac
94106:
94107: if test "x" = "xyes"; then
94108: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/standard.$suffix"
94109: else
94110: PHP_MODULES="$PHP_MODULES \$(phplibdir)/standard.$suffix"
94111: fi
94112:
94113: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_standard"
94114:
94115: cat >>Makefile.objects<<EOF
94116: \$(phplibdir)/standard.$suffix: $ext_builddir/standard.$suffix
94117: \$(LIBTOOL) --mode=install cp $ext_builddir/standard.$suffix \$(phplibdir)
94118:
94119: $ext_builddir/standard.$suffix: \$(shared_objects_standard) \$(STANDARD_SHARED_DEPENDENCIES)
94120: $link_cmd
94121:
94122: EOF
94123:
94124: ;;
94125: esac
94126:
94127: cat >>confdefs.h <<_ACEOF
94128: #define COMPILE_DL_STANDARD 1
94129: _ACEOF
94130:
94131: fi
94132: fi
94133:
94134: if test "" != "shared" && test "" != "yes" && test "" = "cli"; then
94135: PHP_STANDARD_SHARED=no
94136:
94137:
94138: case ext/standard in
94139: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
94140: /*) ac_srcdir=`echo "ext/standard"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
94141: *) ac_srcdir="$abs_srcdir/ext/standard/"; ac_bdir="ext/standard/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
94142: esac
94143:
94144:
94145:
94146: b_c_pre=$php_c_pre
94147: b_cxx_pre=$php_cxx_pre
94148: b_c_meta=$php_c_meta
94149: b_cxx_meta=$php_cxx_meta
94150: b_c_post=$php_c_post
94151: b_cxx_post=$php_cxx_post
94152: b_lo=$php_lo
94153:
94154:
94155: old_IFS=$IFS
94156: for ac_src in array.c base64.c basic_functions.c browscap.c crc32.c crypt.c \
94157: cyr_convert.c datetime.c dir.c dl.c dns.c exec.c file.c filestat.c \
94158: flock_compat.c formatted_print.c fsock.c head.c html.c image.c \
94159: info.c iptc.c lcg.c link.c mail.c math.c md5.c metaphone.c \
94160: microtime.c pack.c pageinfo.c quot_print.c rand.c \
94161: soundex.c string.c scanf.c syslog.c type.c uniqid.c url.c \
94162: var.c versioning.c assert.c strnatcmp.c levenshtein.c \
94163: incomplete_class.c url_scanner_ex.c ftp_fopen_wrapper.c \
94164: http_fopen_wrapper.c php_fopen_wrapper.c credits.c css.c \
94165: var_unserializer.c ftok.c sha1.c user_filters.c uuencode.c \
94166: filters.c proc_open.c streamsfuncs.c http.c; do
94167:
94168: IFS=.
94169: set $ac_src
94170: ac_obj=$1
94171: IFS=$old_IFS
94172:
94173: PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
94174:
94175: case $ac_src in
94176: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
94177: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
94178: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
94179: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
94180: esac
94181:
94182: cat >>Makefile.objects<<EOF
94183: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
94184: $ac_comp
94185: EOF
94186: done
94187:
94188:
94189:
94190:
94191: case ext/standard in
94192: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
94193: /*) ac_srcdir=`echo "ext/standard"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
94194: *) ac_srcdir="$abs_srcdir/ext/standard/"; ac_bdir="ext/standard/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
94195: esac
94196:
94197:
94198:
94199: b_c_pre=$php_c_pre
94200: b_cxx_pre=$php_cxx_pre
94201: b_c_meta=$php_c_meta
94202: b_cxx_meta=$php_cxx_meta
94203: b_c_post=$php_c_post
94204: b_cxx_post=$php_cxx_post
94205: b_lo=$php_lo
94206:
94207:
94208: old_IFS=$IFS
94209: for ac_src in array.c base64.c basic_functions.c browscap.c crc32.c crypt.c \
94210: cyr_convert.c datetime.c dir.c dl.c dns.c exec.c file.c filestat.c \
94211: flock_compat.c formatted_print.c fsock.c head.c html.c image.c \
94212: info.c iptc.c lcg.c link.c mail.c math.c md5.c metaphone.c \
94213: microtime.c pack.c pageinfo.c quot_print.c rand.c \
94214: soundex.c string.c scanf.c syslog.c type.c uniqid.c url.c \
94215: var.c versioning.c assert.c strnatcmp.c levenshtein.c \
94216: incomplete_class.c url_scanner_ex.c ftp_fopen_wrapper.c \
94217: http_fopen_wrapper.c php_fopen_wrapper.c credits.c css.c \
94218: var_unserializer.c ftok.c sha1.c user_filters.c uuencode.c \
94219: filters.c proc_open.c streamsfuncs.c http.c; do
94220:
94221: IFS=.
94222: set $ac_src
94223: ac_obj=$1
94224: IFS=$old_IFS
94225:
94226: PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo"
94227:
94228: case $ac_src in
94229: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
94230: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
94231: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
94232: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
94233: esac
94234:
94235: cat >>Makefile.objects<<EOF
94236: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
94237: $ac_comp
94238: EOF
94239: done
94240:
94241:
94242:
94243:
94244: case ext/standard in
94245: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
94246: /*) ac_srcdir=`echo "ext/standard"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
94247: *) ac_srcdir="$abs_srcdir/ext/standard/"; ac_bdir="ext/standard/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
94248: esac
94249:
94250:
94251:
94252: b_c_pre=$php_c_pre
94253: b_cxx_pre=$php_cxx_pre
94254: b_c_meta=$php_c_meta
94255: b_cxx_meta=$php_cxx_meta
94256: b_c_post=$php_c_post
94257: b_cxx_post=$php_cxx_post
94258: b_lo=$php_lo
94259:
94260:
94261: old_IFS=$IFS
94262: for ac_src in array.c base64.c basic_functions.c browscap.c crc32.c crypt.c \
94263: cyr_convert.c datetime.c dir.c dl.c dns.c exec.c file.c filestat.c \
94264: flock_compat.c formatted_print.c fsock.c head.c html.c image.c \
94265: info.c iptc.c lcg.c link.c mail.c math.c md5.c metaphone.c \
94266: microtime.c pack.c pageinfo.c quot_print.c rand.c \
94267: soundex.c string.c scanf.c syslog.c type.c uniqid.c url.c \
94268: var.c versioning.c assert.c strnatcmp.c levenshtein.c \
94269: incomplete_class.c url_scanner_ex.c ftp_fopen_wrapper.c \
94270: http_fopen_wrapper.c php_fopen_wrapper.c credits.c css.c \
94271: var_unserializer.c ftok.c sha1.c user_filters.c uuencode.c \
94272: filters.c proc_open.c streamsfuncs.c http.c; do
94273:
94274: IFS=.
94275: set $ac_src
94276: ac_obj=$1
94277: IFS=$old_IFS
94278:
94279: PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo"
94280:
94281: case $ac_src in
94282: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
94283: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
94284: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
94285: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
94286: esac
94287:
94288: cat >>Makefile.objects<<EOF
94289: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
94290: $ac_comp
94291: EOF
94292: done
94293:
94294:
94295: EXT_CLI_STATIC="$EXT_CLI_STATIC standard"
94296: fi
94297:
94298:
94299: BUILD_DIR="$BUILD_DIR $ext_builddir"
94300:
94301:
94302:
94303: if test "$ext_builddir" = "."; then
94304: PHP_PECL_EXTENSION=standard
94305:
94306: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
94307:
94308: fi
94309:
94310:
94311:
94312: src=$ext_srcdir/Makefile.frag
94313: ac_srcdir=$ext_srcdir
94314: ac_builddir=$ext_builddir
94315: test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments
94316:
94317:
94318:
94319: for header_file in ext/standard/; do
94320:
94321:
94322: unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
94323:
94324: cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
94325: if test -n "$unique" && test "`eval $cmd`" = "" ; then
94326: eval "INSTALLHEADERS$unique=set"
94327:
94328: INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
94329:
94330: fi
94331:
94332: done
94333:
94334:
94335:
94336:
94337:
94338: php_with_sybase_ct=no
94339:
94340: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Sybase-CT support" >&5
94341: $as_echo_n "checking for Sybase-CT support... " >&6; }
94342:
94343: # Check whether --with-sybase-ct was given.
94344: if test "${with_sybase_ct+set}" = set; then :
94345: withval=$with_sybase_ct; PHP_SYBASE_CT=$withval
94346: else
94347:
94348: PHP_SYBASE_CT=no
94349: test "$PHP_ENABLE_ALL" && PHP_SYBASE_CT=$PHP_ENABLE_ALL
94350:
94351: fi
94352:
94353:
94354:
94355: ext_output="yes, shared"
94356: ext_shared=yes
94357: case $PHP_SYBASE_CT in
94358: shared,*)
94359: PHP_SYBASE_CT=`echo "$PHP_SYBASE_CT"|$SED 's/^shared,//'`
94360: ;;
94361: shared)
94362: PHP_SYBASE_CT=yes
94363: ;;
94364: no)
94365: ext_output=no
94366: ext_shared=no
94367: ;;
94368: *)
94369: ext_output=yes
94370: ext_shared=no
94371: ;;
94372: esac
94373:
94374:
94375:
94376: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
94377: $as_echo "$ext_output" >&6; }
94378:
94379:
94380:
94381:
94382: if test "$PHP_SYBASE_CT" != "no"; then
94383:
94384: if test "$PHP_SYBASE" && test "$PHP_SYBASE" != "no" && test "$ext_shared" = "no"; then
94385: as_fn_error $? "You can not use both --with-sybase and --with-sybase-ct in same build!" "$LINENO" 5
94386: fi
94387:
94388:
94389: $as_echo "#define HAVE_SYBASE_CT 1" >>confdefs.h
94390:
94391:
94392: ext_builddir=ext/sybase_ct
94393: ext_srcdir=$abs_srcdir/ext/sybase_ct
94394:
94395: ac_extra=
94396:
94397: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
94398: PHP_SYBASE_CT_SHARED=no
94399:
94400:
94401: case ext/sybase_ct in
94402: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
94403: /*) ac_srcdir=`echo "ext/sybase_ct"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
94404: *) ac_srcdir="$abs_srcdir/ext/sybase_ct/"; ac_bdir="ext/sybase_ct/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
94405: esac
94406:
94407:
94408:
94409: b_c_pre=$php_c_pre
94410: b_cxx_pre=$php_cxx_pre
94411: b_c_meta=$php_c_meta
94412: b_cxx_meta=$php_cxx_meta
94413: b_c_post=$php_c_post
94414: b_cxx_post=$php_cxx_post
94415: b_lo=$php_lo
94416:
94417:
94418: old_IFS=$IFS
94419: for ac_src in php_sybase_ct.c; do
94420:
94421: IFS=.
94422: set $ac_src
94423: ac_obj=$1
94424: IFS=$old_IFS
94425:
94426: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
94427:
94428: case $ac_src in
94429: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
94430: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
94431: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
94432: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
94433: esac
94434:
94435: cat >>Makefile.objects<<EOF
94436: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
94437: $ac_comp
94438: EOF
94439: done
94440:
94441:
94442: EXT_STATIC="$EXT_STATIC sybase_ct"
94443: if test "$ext_shared" != "nocli"; then
94444: EXT_CLI_STATIC="$EXT_CLI_STATIC sybase_ct"
94445: fi
94446: else
94447: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
94448: PHP_SYBASE_CT_SHARED=yes
94449:
94450: case ext/sybase_ct in
94451: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
94452: /*) ac_srcdir=`echo "ext/sybase_ct"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
94453: *) ac_srcdir="$abs_srcdir/ext/sybase_ct/"; ac_bdir="ext/sybase_ct/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
94454: esac
94455:
94456:
94457:
94458: b_c_pre=$shared_c_pre
94459: b_cxx_pre=$shared_cxx_pre
94460: b_c_meta=$shared_c_meta
94461: b_cxx_meta=$shared_cxx_meta
94462: b_c_post=$shared_c_post
94463: b_cxx_post=$shared_cxx_post
94464: b_lo=$shared_lo
94465:
94466:
94467: old_IFS=$IFS
94468: for ac_src in php_sybase_ct.c; do
94469:
94470: IFS=.
94471: set $ac_src
94472: ac_obj=$1
94473: IFS=$old_IFS
94474:
94475: shared_objects_sybase_ct="$shared_objects_sybase_ct $ac_bdir$ac_obj.lo"
94476:
94477: case $ac_src in
94478: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
94479: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
94480: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
94481: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
94482: esac
94483:
94484: cat >>Makefile.objects<<EOF
94485: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
94486: $ac_comp
94487: EOF
94488: done
94489:
94490: case $host_alias in
94491: *netware*)
94492:
94493: install_modules="install-modules"
94494:
94495: case $host_alias in
94496: *aix*)
94497: suffix=so
94498: 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'
94499: ;;
94500: *netware*)
94501: suffix=nlm
94502: link_cmd='$(LIBTOOL) --mode=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)'
94503: ;;
94504: *)
94505: suffix=la
94506: link_cmd='$(LIBTOOL) --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)'
94507: ;;
94508: esac
94509:
94510: if test "x" = "xyes"; then
94511: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpsybase_ct.$suffix"
94512: else
94513: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpsybase_ct.$suffix"
94514: fi
94515:
94516: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_sybase_ct"
94517:
94518: cat >>Makefile.objects<<EOF
94519: \$(phplibdir)/phpsybase_ct.$suffix: $ext_builddir/phpsybase_ct.$suffix
94520: \$(LIBTOOL) --mode=install cp $ext_builddir/phpsybase_ct.$suffix \$(phplibdir)
94521:
94522: $ext_builddir/phpsybase_ct.$suffix: \$(shared_objects_sybase_ct) \$(PHPSYBASE_CT_SHARED_DEPENDENCIES)
94523: $link_cmd
94524:
94525: EOF
94526:
94527: ;;
94528: *)
94529:
94530: install_modules="install-modules"
94531:
94532: case $host_alias in
94533: *aix*)
94534: suffix=so
94535: 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'
94536: ;;
94537: *netware*)
94538: suffix=nlm
94539: link_cmd='$(LIBTOOL) --mode=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)'
94540: ;;
94541: *)
94542: suffix=la
94543: link_cmd='$(LIBTOOL) --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)'
94544: ;;
94545: esac
94546:
94547: if test "x" = "xyes"; then
94548: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/sybase_ct.$suffix"
94549: else
94550: PHP_MODULES="$PHP_MODULES \$(phplibdir)/sybase_ct.$suffix"
94551: fi
94552:
94553: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_sybase_ct"
94554:
94555: cat >>Makefile.objects<<EOF
94556: \$(phplibdir)/sybase_ct.$suffix: $ext_builddir/sybase_ct.$suffix
94557: \$(LIBTOOL) --mode=install cp $ext_builddir/sybase_ct.$suffix \$(phplibdir)
94558:
94559: $ext_builddir/sybase_ct.$suffix: \$(shared_objects_sybase_ct) \$(SYBASE_CT_SHARED_DEPENDENCIES)
94560: $link_cmd
94561:
94562: EOF
94563:
94564: ;;
94565: esac
94566:
94567: cat >>confdefs.h <<_ACEOF
94568: #define COMPILE_DL_SYBASE_CT 1
94569: _ACEOF
94570:
94571: fi
94572: fi
94573:
94574: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
94575: PHP_SYBASE_CT_SHARED=no
94576:
94577:
94578: case ext/sybase_ct in
94579: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
94580: /*) ac_srcdir=`echo "ext/sybase_ct"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
94581: *) ac_srcdir="$abs_srcdir/ext/sybase_ct/"; ac_bdir="ext/sybase_ct/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
94582: esac
94583:
94584:
94585:
94586: b_c_pre=$php_c_pre
94587: b_cxx_pre=$php_cxx_pre
94588: b_c_meta=$php_c_meta
94589: b_cxx_meta=$php_cxx_meta
94590: b_c_post=$php_c_post
94591: b_cxx_post=$php_cxx_post
94592: b_lo=$php_lo
94593:
94594:
94595: old_IFS=$IFS
94596: for ac_src in php_sybase_ct.c; do
94597:
94598: IFS=.
94599: set $ac_src
94600: ac_obj=$1
94601: IFS=$old_IFS
94602:
94603: PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
94604:
94605: case $ac_src in
94606: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
94607: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
94608: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
94609: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
94610: esac
94611:
94612: cat >>Makefile.objects<<EOF
94613: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
94614: $ac_comp
94615: EOF
94616: done
94617:
94618:
94619:
94620:
94621: case ext/sybase_ct in
94622: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
94623: /*) ac_srcdir=`echo "ext/sybase_ct"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
94624: *) ac_srcdir="$abs_srcdir/ext/sybase_ct/"; ac_bdir="ext/sybase_ct/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
94625: esac
94626:
94627:
94628:
94629: b_c_pre=$php_c_pre
94630: b_cxx_pre=$php_cxx_pre
94631: b_c_meta=$php_c_meta
94632: b_cxx_meta=$php_cxx_meta
94633: b_c_post=$php_c_post
94634: b_cxx_post=$php_cxx_post
94635: b_lo=$php_lo
94636:
94637:
94638: old_IFS=$IFS
94639: for ac_src in php_sybase_ct.c; do
94640:
94641: IFS=.
94642: set $ac_src
94643: ac_obj=$1
94644: IFS=$old_IFS
94645:
94646: PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo"
94647:
94648: case $ac_src in
94649: *.c) ac_comp="$b_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: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
94651: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
94652: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
94653: esac
94654:
94655: cat >>Makefile.objects<<EOF
94656: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
94657: $ac_comp
94658: EOF
94659: done
94660:
94661:
94662:
94663:
94664: case ext/sybase_ct in
94665: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
94666: /*) ac_srcdir=`echo "ext/sybase_ct"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
94667: *) ac_srcdir="$abs_srcdir/ext/sybase_ct/"; ac_bdir="ext/sybase_ct/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
94668: esac
94669:
94670:
94671:
94672: b_c_pre=$php_c_pre
94673: b_cxx_pre=$php_cxx_pre
94674: b_c_meta=$php_c_meta
94675: b_cxx_meta=$php_cxx_meta
94676: b_c_post=$php_c_post
94677: b_cxx_post=$php_cxx_post
94678: b_lo=$php_lo
94679:
94680:
94681: old_IFS=$IFS
94682: for ac_src in php_sybase_ct.c; do
94683:
94684: IFS=.
94685: set $ac_src
94686: ac_obj=$1
94687: IFS=$old_IFS
94688:
94689: PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo"
94690:
94691: case $ac_src in
94692: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
94693: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
94694: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
94695: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
94696: esac
94697:
94698: cat >>Makefile.objects<<EOF
94699: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
94700: $ac_comp
94701: EOF
94702: done
94703:
94704:
94705: EXT_CLI_STATIC="$EXT_CLI_STATIC sybase_ct"
94706: fi
94707:
94708:
94709: BUILD_DIR="$BUILD_DIR $ext_builddir"
94710:
94711:
94712:
94713: if test "$ext_builddir" = "."; then
94714: PHP_PECL_EXTENSION=sybase_ct
94715:
94716: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
94717:
94718: fi
94719:
94720:
94721: PHP_VAR_SUBST="$PHP_VAR_SUBST SYBASE_CT_SHARED_LIBADD"
94722:
94723:
94724: if test "$PHP_SYBASE_CT" = "yes"; then
94725: SYBASE_CT_INCDIR=/home/sybase/include
94726: SYBASE_CT_LIBDIR=/home/sybase/lib
94727: else
94728: SYBASE_CT_INCDIR=$PHP_SYBASE_CT/include
94729: SYBASE_CT_LIBDIR=$PHP_SYBASE_CT/lib
94730: fi
94731:
94732: # The cast to long int works around a bug in the HP C Compiler
94733: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
94734: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
94735: # This bug is HP SR number 8606223364.
94736: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
94737: $as_echo_n "checking size of long int... " >&6; }
94738: if ${ac_cv_sizeof_long_int+:} false; then :
94739: $as_echo_n "(cached) " >&6
94740: else
94741: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
94742:
94743: else
94744: if test "$ac_cv_type_long_int" = yes; then
94745: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
94746: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
94747: as_fn_error 77 "cannot compute sizeof (long int)
94748: See \`config.log' for more details" "$LINENO" 5; }
94749: else
94750: ac_cv_sizeof_long_int=0
94751: fi
94752: fi
94753:
94754: fi
94755: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
94756: $as_echo "$ac_cv_sizeof_long_int" >&6; }
94757:
94758:
94759:
94760: cat >>confdefs.h <<_ACEOF
94761: #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
94762: _ACEOF
94763:
94764:
94765: { $as_echo "$as_me:${as_lineno-$LINENO}: checking checking if we're on a 64-bit platform" >&5
94766: $as_echo_n "checking checking if we're on a 64-bit platform... " >&6; }
94767: if test "$ac_cv_sizeof_long_int" = "4"; then
94768: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
94769: $as_echo "no" >&6; }
94770: PHP_SYBASE_64=no
94771: else
94772: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
94773: $as_echo "yes" >&6; }
94774: PHP_SYBASE_64=yes
94775: fi
94776:
94777:
94778: { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for ctpublic.h" >&5
94779: $as_echo_n "checking Checking for ctpublic.h... " >&6; }
94780: if test -f $SYBASE_CT_INCDIR/ctpublic.h; then
94781: { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $SYBASE_CT_INCDIR" >&5
94782: $as_echo "found in $SYBASE_CT_INCDIR" >&6; }
94783:
94784: if test "$SYBASE_CT_INCDIR" != "/usr/include"; then
94785:
94786: if test -z "$SYBASE_CT_INCDIR" || echo "$SYBASE_CT_INCDIR" | grep '^/' >/dev/null ; then
94787: ai_p=$SYBASE_CT_INCDIR
94788: else
94789:
94790: ep_dir="`echo $SYBASE_CT_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`"
94791:
94792: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
94793: ai_p="$ep_realdir/`basename \"$SYBASE_CT_INCDIR\"`"
94794: fi
94795:
94796:
94797:
94798: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
94799:
94800: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
94801: if test -n "$unique" && test "`eval $cmd`" = "" ; then
94802: eval "INCLUDEPATH$unique=set"
94803:
94804: if test ""; then
94805: INCLUDES="-I$ai_p $INCLUDES"
94806: else
94807: INCLUDES="$INCLUDES -I$ai_p"
94808: fi
94809:
94810: fi
94811:
94812: fi
94813:
94814: else
94815: as_fn_error $? "ctpublic.h missing!" "$LINENO" 5
94816: fi
94817:
94818: { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking Sybase libdir" >&5
94819: $as_echo_n "checking Checking Sybase libdir... " >&6; }
94820: { $as_echo "$as_me:${as_lineno-$LINENO}: result: Have $SYBASE_CT_LIBDIR" >&5
94821: $as_echo "Have $SYBASE_CT_LIBDIR" >&6; }
94822:
94823: { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for Sybase platform libraries" >&5
94824: $as_echo_n "checking Checking for Sybase platform libraries... " >&6; }
94825:
94826:
94827: if test "$SYBASE_CT_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$SYBASE_CT_LIBDIR" != "/usr/lib"; then
94828:
94829: if test -z "$SYBASE_CT_LIBDIR" || echo "$SYBASE_CT_LIBDIR" | grep '^/' >/dev/null ; then
94830: ai_p=$SYBASE_CT_LIBDIR
94831: else
94832:
94833: ep_dir="`echo $SYBASE_CT_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
94834:
94835: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
94836: ai_p="$ep_realdir/`basename \"$SYBASE_CT_LIBDIR\"`"
94837: fi
94838:
94839:
94840: if test "$ext_shared" = "yes"; then
94841: SYBASE_CT_SHARED_LIBADD="-L$ai_p $SYBASE_CT_SHARED_LIBADD"
94842: test -n "$ld_runpath_switch" && SYBASE_CT_SHARED_LIBADD="$ld_runpath_switch$ai_p $SYBASE_CT_SHARED_LIBADD"
94843: else
94844:
94845:
94846:
94847: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
94848:
94849: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
94850: if test -n "$unique" && test "`eval $cmd`" = "" ; then
94851: eval "LIBPATH$unique=set"
94852:
94853: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
94854: LDFLAGS="$LDFLAGS -L$ai_p"
94855: PHP_RPATHS="$PHP_RPATHS $ai_p"
94856:
94857: fi
94858:
94859:
94860: fi
94861:
94862: fi
94863:
94864: if test -f $SYBASE_CT_INCDIR/tds.h || test -f $SYBASE_CT_INCDIR/tds_sysdep_public.h; then
94865:
94866:
94867: case ct in
94868: c|c_r|pthread*) ;;
94869: *)
94870: if test "$ext_shared" = "yes"; then
94871: SYBASE_CT_SHARED_LIBADD="-lct $SYBASE_CT_SHARED_LIBADD"
94872: else
94873:
94874:
94875: case ct in
94876: c|c_r|pthread*) ;;
94877: *)
94878: LIBS="-lct $LIBS"
94879: ;;
94880: esac
94881:
94882:
94883: fi
94884: ;;
94885: esac
94886:
94887:
94888: SYBASE_CT_LIBS="-L$SYBASE_CT_LIBDIR -lct"
94889: { $as_echo "$as_me:${as_lineno-$LINENO}: result: FreeTDS: $SYBASE_CT_LIBS" >&5
94890: $as_echo "FreeTDS: $SYBASE_CT_LIBS" >&6; }
94891: elif test -f $SYBASE_CT_LIBDIR/libsybct64.so && test $PHP_SYBASE_64 = "yes"; then
94892:
94893:
94894: case sybcs64 in
94895: c|c_r|pthread*) ;;
94896: *)
94897: if test "$ext_shared" = "yes"; then
94898: SYBASE_CT_SHARED_LIBADD="-lsybcs64 $SYBASE_CT_SHARED_LIBADD"
94899: else
94900:
94901:
94902: case sybcs64 in
94903: c|c_r|pthread*) ;;
94904: *)
94905: LIBS="-lsybcs64 $LIBS"
94906: ;;
94907: esac
94908:
94909:
94910: fi
94911: ;;
94912: esac
94913:
94914:
94915:
94916:
94917: case sybct64 in
94918: c|c_r|pthread*) ;;
94919: *)
94920: if test "$ext_shared" = "yes"; then
94921: SYBASE_CT_SHARED_LIBADD="-lsybct64 $SYBASE_CT_SHARED_LIBADD"
94922: else
94923:
94924:
94925: case sybct64 in
94926: c|c_r|pthread*) ;;
94927: *)
94928: LIBS="-lsybct64 $LIBS"
94929: ;;
94930: esac
94931:
94932:
94933: fi
94934: ;;
94935: esac
94936:
94937:
94938:
94939:
94940: case sybcomn64 in
94941: c|c_r|pthread*) ;;
94942: *)
94943: if test "$ext_shared" = "yes"; then
94944: SYBASE_CT_SHARED_LIBADD="-lsybcomn64 $SYBASE_CT_SHARED_LIBADD"
94945: else
94946:
94947:
94948: case sybcomn64 in
94949: c|c_r|pthread*) ;;
94950: *)
94951: LIBS="-lsybcomn64 $LIBS"
94952: ;;
94953: esac
94954:
94955:
94956: fi
94957: ;;
94958: esac
94959:
94960:
94961:
94962:
94963: case sybintl64 in
94964: c|c_r|pthread*) ;;
94965: *)
94966: if test "$ext_shared" = "yes"; then
94967: SYBASE_CT_SHARED_LIBADD="-lsybintl64 $SYBASE_CT_SHARED_LIBADD"
94968: else
94969:
94970:
94971: case sybintl64 in
94972: c|c_r|pthread*) ;;
94973: *)
94974: LIBS="-lsybintl64 $LIBS"
94975: ;;
94976: esac
94977:
94978:
94979: fi
94980: ;;
94981: esac
94982:
94983:
94984:
94985: ac_solid_uname_s=`uname -s 2>/dev/null`
94986: case $ac_solid_uname_s in
94987: *OSF*) ;; # Tru64/DEC OSF does NOT use the SYB_LP64 define
94988: *) CFLAGS="${CFLAGS} -DSYB_LP64" ;; #
94989: esac
94990: SYBASE_CT_LIBS="-L$SYBASE_CT_LIBDIR -lsybcs64 -lsybct64 -lsybcomn64 -lsybintl64"
94991: { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sybase64: $SYBASE_CT_LIBS" >&5
94992: $as_echo "Sybase64: $SYBASE_CT_LIBS" >&6; }
94993:
94994:
94995: save_old_LDFLAGS=$LDFLAGS
94996: ac_stuff="
94997: $SYBASE_CT_LIBS
94998: "
94999:
95000: save_ext_shared=$ext_shared
95001: ext_shared=yes
95002:
95003: for ac_i in $ac_stuff; do
95004: case $ac_i in
95005: -pthread)
95006: if test "$ext_shared" = "yes"; then
95007: LDFLAGS="$LDFLAGS -pthread"
95008: else
95009:
95010:
95011: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
95012:
95013: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
95014: if test -n "$unique" && test "`eval $cmd`" = "" ; then
95015: eval "EXTRA_LDFLAGS$unique=set"
95016: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
95017: fi
95018:
95019: fi
95020: ;;
95021: -l*)
95022: ac_ii=`echo $ac_i|cut -c 3-`
95023:
95024:
95025: case $ac_ii in
95026: c|c_r|pthread*) ;;
95027: *)
95028: if test "$ext_shared" = "yes"; then
95029: LDFLAGS="$LDFLAGS -l$ac_ii"
95030: else
95031:
95032:
95033: case $ac_ii in
95034: c|c_r|pthread*) ;;
95035: *)
95036: LIBS="$LIBS -l$ac_ii"
95037: ;;
95038: esac
95039:
95040:
95041: fi
95042: ;;
95043: esac
95044:
95045:
95046: ;;
95047: -L*)
95048: ac_ii=`echo $ac_i|cut -c 3-`
95049:
95050: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
95051:
95052: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
95053: ai_p=$ac_ii
95054: else
95055:
95056: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
95057:
95058: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
95059: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
95060: fi
95061:
95062:
95063: if test "$ext_shared" = "yes"; then
95064: LDFLAGS="-L$ai_p $LDFLAGS"
95065: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
95066: else
95067:
95068:
95069:
95070: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
95071:
95072: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
95073: if test -n "$unique" && test "`eval $cmd`" = "" ; then
95074: eval "LIBPATH$unique=set"
95075:
95076: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
95077: LDFLAGS="$LDFLAGS -L$ai_p"
95078: PHP_RPATHS="$PHP_RPATHS $ai_p"
95079:
95080: fi
95081:
95082:
95083: fi
95084:
95085: fi
95086:
95087: ;;
95088: esac
95089: done
95090:
95091: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netg_errstr in -lsybtcl64" >&5
95092: $as_echo_n "checking for netg_errstr in -lsybtcl64... " >&6; }
95093: if ${ac_cv_lib_sybtcl64_netg_errstr+:} false; then :
95094: $as_echo_n "(cached) " >&6
95095: else
95096: ac_check_lib_save_LIBS=$LIBS
95097: LIBS="-lsybtcl64 $LIBS"
95098: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
95099: /* end confdefs.h. */
95100:
95101: /* Override any GCC internal prototype to avoid an error.
95102: Use char because int might match the return type of a GCC
95103: builtin and then its argument prototype would still apply. */
95104: #ifdef __cplusplus
95105: extern "C"
95106: #endif
95107: char netg_errstr ();
95108: int
95109: main ()
95110: {
95111: return netg_errstr ();
95112: ;
95113: return 0;
95114: }
95115: _ACEOF
95116: if ac_fn_c_try_link "$LINENO"; then :
95117: ac_cv_lib_sybtcl64_netg_errstr=yes
95118: else
95119: ac_cv_lib_sybtcl64_netg_errstr=no
95120: fi
95121: rm -f core conftest.err conftest.$ac_objext \
95122: conftest$ac_exeext conftest.$ac_ext
95123: LIBS=$ac_check_lib_save_LIBS
95124: fi
95125: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sybtcl64_netg_errstr" >&5
95126: $as_echo "$ac_cv_lib_sybtcl64_netg_errstr" >&6; }
95127: if test "x$ac_cv_lib_sybtcl64_netg_errstr" = xyes; then :
95128:
95129: LDFLAGS=$save_old_LDFLAGS
95130: ext_shared=$save_ext_shared
95131:
95132:
95133:
95134: case sybtcl64 in
95135: c|c_r|pthread*) ;;
95136: *)
95137: if test "$ext_shared" = "yes"; then
95138: SYBASE_CT_SHARED_LIBADD="-lsybtcl64 $SYBASE_CT_SHARED_LIBADD"
95139: else
95140:
95141:
95142: case sybtcl64 in
95143: c|c_r|pthread*) ;;
95144: *)
95145: LIBS="-lsybtcl64 $LIBS"
95146: ;;
95147: esac
95148:
95149:
95150: fi
95151: ;;
95152: esac
95153:
95154:
95155:
95156:
95157: else
95158:
95159: LDFLAGS=$save_old_LDFLAGS
95160: ext_shared=$save_ext_shared
95161: unset ac_cv_lib_sybtcl64_netg_errstr
95162:
95163:
95164:
95165: case sybtcl64 in
95166: c|c_r|pthread*) ;;
95167: *)
95168: if test "$ext_shared" = "yes"; then
95169: SYBASE_CT_SHARED_LIBADD="-lsybtcl64 $SYBASE_CT_SHARED_LIBADD"
95170: else
95171:
95172:
95173: case sybtcl64 in
95174: c|c_r|pthread*) ;;
95175: *)
95176: LIBS="-lsybtcl64 $LIBS"
95177: ;;
95178: esac
95179:
95180:
95181: fi
95182: ;;
95183: esac
95184:
95185:
95186:
95187:
95188: fi
95189:
95190:
95191:
95192: save_old_LDFLAGS=$LDFLAGS
95193: ac_stuff="-L$SYBASE_CT_LIBDIR"
95194:
95195: save_ext_shared=$ext_shared
95196: ext_shared=yes
95197:
95198: for ac_i in $ac_stuff; do
95199: case $ac_i in
95200: -pthread)
95201: if test "$ext_shared" = "yes"; then
95202: LDFLAGS="$LDFLAGS -pthread"
95203: else
95204:
95205:
95206: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
95207:
95208: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
95209: if test -n "$unique" && test "`eval $cmd`" = "" ; then
95210: eval "EXTRA_LDFLAGS$unique=set"
95211: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
95212: fi
95213:
95214: fi
95215: ;;
95216: -l*)
95217: ac_ii=`echo $ac_i|cut -c 3-`
95218:
95219:
95220: case $ac_ii in
95221: c|c_r|pthread*) ;;
95222: *)
95223: if test "$ext_shared" = "yes"; then
95224: LDFLAGS="$LDFLAGS -l$ac_ii"
95225: else
95226:
95227:
95228: case $ac_ii in
95229: c|c_r|pthread*) ;;
95230: *)
95231: LIBS="$LIBS -l$ac_ii"
95232: ;;
95233: esac
95234:
95235:
95236: fi
95237: ;;
95238: esac
95239:
95240:
95241: ;;
95242: -L*)
95243: ac_ii=`echo $ac_i|cut -c 3-`
95244:
95245: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
95246:
95247: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
95248: ai_p=$ac_ii
95249: else
95250:
95251: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
95252:
95253: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
95254: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
95255: fi
95256:
95257:
95258: if test "$ext_shared" = "yes"; then
95259: LDFLAGS="-L$ai_p $LDFLAGS"
95260: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
95261: else
95262:
95263:
95264:
95265: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
95266:
95267: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
95268: if test -n "$unique" && test "`eval $cmd`" = "" ; then
95269: eval "LIBPATH$unique=set"
95270:
95271: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
95272: LDFLAGS="$LDFLAGS -L$ai_p"
95273: PHP_RPATHS="$PHP_RPATHS $ai_p"
95274:
95275: fi
95276:
95277:
95278: fi
95279:
95280: fi
95281:
95282: ;;
95283: esac
95284: done
95285:
95286: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for insck__getVdate in -linsck64" >&5
95287: $as_echo_n "checking for insck__getVdate in -linsck64... " >&6; }
95288: if ${ac_cv_lib_insck64_insck__getVdate+:} false; then :
95289: $as_echo_n "(cached) " >&6
95290: else
95291: ac_check_lib_save_LIBS=$LIBS
95292: LIBS="-linsck64 $LIBS"
95293: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
95294: /* end confdefs.h. */
95295:
95296: /* Override any GCC internal prototype to avoid an error.
95297: Use char because int might match the return type of a GCC
95298: builtin and then its argument prototype would still apply. */
95299: #ifdef __cplusplus
95300: extern "C"
95301: #endif
95302: char insck__getVdate ();
95303: int
95304: main ()
95305: {
95306: return insck__getVdate ();
95307: ;
95308: return 0;
95309: }
95310: _ACEOF
95311: if ac_fn_c_try_link "$LINENO"; then :
95312: ac_cv_lib_insck64_insck__getVdate=yes
95313: else
95314: ac_cv_lib_insck64_insck__getVdate=no
95315: fi
95316: rm -f core conftest.err conftest.$ac_objext \
95317: conftest$ac_exeext conftest.$ac_ext
95318: LIBS=$ac_check_lib_save_LIBS
95319: fi
95320: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_insck64_insck__getVdate" >&5
95321: $as_echo "$ac_cv_lib_insck64_insck__getVdate" >&6; }
95322: if test "x$ac_cv_lib_insck64_insck__getVdate" = xyes; then :
95323:
95324: LDFLAGS=$save_old_LDFLAGS
95325: ext_shared=$save_ext_shared
95326:
95327:
95328: case insck64 in
95329: c|c_r|pthread*) ;;
95330: *)
95331: if test "$ext_shared" = "yes"; then
95332: SYBASE_CT_SHARED_LIBADD="-linsck64 $SYBASE_CT_SHARED_LIBADD"
95333: else
95334:
95335:
95336: case insck64 in
95337: c|c_r|pthread*) ;;
95338: *)
95339: LIBS="-linsck64 $LIBS"
95340: ;;
95341: esac
95342:
95343:
95344: fi
95345: ;;
95346: esac
95347:
95348:
95349:
95350: else
95351:
95352: LDFLAGS=$save_old_LDFLAGS
95353: ext_shared=$save_ext_shared
95354: unset ac_cv_lib_insck64_insck__getVdate
95355:
95356:
95357: fi
95358:
95359:
95360: save_old_LDFLAGS=$LDFLAGS
95361: ac_stuff="-L$SYBASE_CT_LIBDIR"
95362:
95363: save_ext_shared=$ext_shared
95364: ext_shared=yes
95365:
95366: for ac_i in $ac_stuff; do
95367: case $ac_i in
95368: -pthread)
95369: if test "$ext_shared" = "yes"; then
95370: LDFLAGS="$LDFLAGS -pthread"
95371: else
95372:
95373:
95374: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
95375:
95376: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
95377: if test -n "$unique" && test "`eval $cmd`" = "" ; then
95378: eval "EXTRA_LDFLAGS$unique=set"
95379: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
95380: fi
95381:
95382: fi
95383: ;;
95384: -l*)
95385: ac_ii=`echo $ac_i|cut -c 3-`
95386:
95387:
95388: case $ac_ii in
95389: c|c_r|pthread*) ;;
95390: *)
95391: if test "$ext_shared" = "yes"; then
95392: LDFLAGS="$LDFLAGS -l$ac_ii"
95393: else
95394:
95395:
95396: case $ac_ii in
95397: c|c_r|pthread*) ;;
95398: *)
95399: LIBS="$LIBS -l$ac_ii"
95400: ;;
95401: esac
95402:
95403:
95404: fi
95405: ;;
95406: esac
95407:
95408:
95409: ;;
95410: -L*)
95411: ac_ii=`echo $ac_i|cut -c 3-`
95412:
95413: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
95414:
95415: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
95416: ai_p=$ac_ii
95417: else
95418:
95419: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
95420:
95421: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
95422: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
95423: fi
95424:
95425:
95426: if test "$ext_shared" = "yes"; then
95427: LDFLAGS="-L$ai_p $LDFLAGS"
95428: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
95429: else
95430:
95431:
95432:
95433: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
95434:
95435: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
95436: if test -n "$unique" && test "`eval $cmd`" = "" ; then
95437: eval "LIBPATH$unique=set"
95438:
95439: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
95440: LDFLAGS="$LDFLAGS -L$ai_p"
95441: PHP_RPATHS="$PHP_RPATHS $ai_p"
95442:
95443: fi
95444:
95445:
95446: fi
95447:
95448: fi
95449:
95450: ;;
95451: esac
95452: done
95453:
95454: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bsd_tcp in -linsck64" >&5
95455: $as_echo_n "checking for bsd_tcp in -linsck64... " >&6; }
95456: if ${ac_cv_lib_insck64_bsd_tcp+:} false; then :
95457: $as_echo_n "(cached) " >&6
95458: else
95459: ac_check_lib_save_LIBS=$LIBS
95460: LIBS="-linsck64 $LIBS"
95461: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
95462: /* end confdefs.h. */
95463:
95464: /* Override any GCC internal prototype to avoid an error.
95465: Use char because int might match the return type of a GCC
95466: builtin and then its argument prototype would still apply. */
95467: #ifdef __cplusplus
95468: extern "C"
95469: #endif
95470: char bsd_tcp ();
95471: int
95472: main ()
95473: {
95474: return bsd_tcp ();
95475: ;
95476: return 0;
95477: }
95478: _ACEOF
95479: if ac_fn_c_try_link "$LINENO"; then :
95480: ac_cv_lib_insck64_bsd_tcp=yes
95481: else
95482: ac_cv_lib_insck64_bsd_tcp=no
95483: fi
95484: rm -f core conftest.err conftest.$ac_objext \
95485: conftest$ac_exeext conftest.$ac_ext
95486: LIBS=$ac_check_lib_save_LIBS
95487: fi
95488: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_insck64_bsd_tcp" >&5
95489: $as_echo "$ac_cv_lib_insck64_bsd_tcp" >&6; }
95490: if test "x$ac_cv_lib_insck64_bsd_tcp" = xyes; then :
95491:
95492: LDFLAGS=$save_old_LDFLAGS
95493: ext_shared=$save_ext_shared
95494:
95495:
95496: case insck64 in
95497: c|c_r|pthread*) ;;
95498: *)
95499: if test "$ext_shared" = "yes"; then
95500: SYBASE_CT_SHARED_LIBADD="-linsck64 $SYBASE_CT_SHARED_LIBADD"
95501: else
95502:
95503:
95504: case insck64 in
95505: c|c_r|pthread*) ;;
95506: *)
95507: LIBS="-linsck64 $LIBS"
95508: ;;
95509: esac
95510:
95511:
95512: fi
95513: ;;
95514: esac
95515:
95516:
95517:
95518: else
95519:
95520: LDFLAGS=$save_old_LDFLAGS
95521: ext_shared=$save_ext_shared
95522: unset ac_cv_lib_insck64_bsd_tcp
95523:
95524:
95525: fi
95526:
95527: elif test -f $SYBASE_CT_LIBDIR/libsybct.so; then
95528:
95529:
95530: case sybcs in
95531: c|c_r|pthread*) ;;
95532: *)
95533: if test "$ext_shared" = "yes"; then
95534: SYBASE_CT_SHARED_LIBADD="-lsybcs $SYBASE_CT_SHARED_LIBADD"
95535: else
95536:
95537:
95538: case sybcs in
95539: c|c_r|pthread*) ;;
95540: *)
95541: LIBS="-lsybcs $LIBS"
95542: ;;
95543: esac
95544:
95545:
95546: fi
95547: ;;
95548: esac
95549:
95550:
95551:
95552:
95553: case sybct in
95554: c|c_r|pthread*) ;;
95555: *)
95556: if test "$ext_shared" = "yes"; then
95557: SYBASE_CT_SHARED_LIBADD="-lsybct $SYBASE_CT_SHARED_LIBADD"
95558: else
95559:
95560:
95561: case sybct in
95562: c|c_r|pthread*) ;;
95563: *)
95564: LIBS="-lsybct $LIBS"
95565: ;;
95566: esac
95567:
95568:
95569: fi
95570: ;;
95571: esac
95572:
95573:
95574:
95575:
95576: case sybcomn in
95577: c|c_r|pthread*) ;;
95578: *)
95579: if test "$ext_shared" = "yes"; then
95580: SYBASE_CT_SHARED_LIBADD="-lsybcomn $SYBASE_CT_SHARED_LIBADD"
95581: else
95582:
95583:
95584: case sybcomn in
95585: c|c_r|pthread*) ;;
95586: *)
95587: LIBS="-lsybcomn $LIBS"
95588: ;;
95589: esac
95590:
95591:
95592: fi
95593: ;;
95594: esac
95595:
95596:
95597:
95598:
95599: case sybintl in
95600: c|c_r|pthread*) ;;
95601: *)
95602: if test "$ext_shared" = "yes"; then
95603: SYBASE_CT_SHARED_LIBADD="-lsybintl $SYBASE_CT_SHARED_LIBADD"
95604: else
95605:
95606:
95607: case sybintl in
95608: c|c_r|pthread*) ;;
95609: *)
95610: LIBS="-lsybintl $LIBS"
95611: ;;
95612: esac
95613:
95614:
95615: fi
95616: ;;
95617: esac
95618:
95619:
95620:
95621: SYBASE_CT_LIBS="-L$SYBASE_CT_LIBDIR -lsybcs -lsybct -lsybcomn -lsybintl"
95622: { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sybase32 syb-prefix: $SYBASE_CT_LIBS" >&5
95623: $as_echo "Sybase32 syb-prefix: $SYBASE_CT_LIBS" >&6; }
95624:
95625:
95626: save_old_LDFLAGS=$LDFLAGS
95627: ac_stuff="
95628: $SYBASE_CT_LIBS
95629: "
95630:
95631: save_ext_shared=$ext_shared
95632: ext_shared=yes
95633:
95634: for ac_i in $ac_stuff; do
95635: case $ac_i in
95636: -pthread)
95637: if test "$ext_shared" = "yes"; then
95638: LDFLAGS="$LDFLAGS -pthread"
95639: else
95640:
95641:
95642: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
95643:
95644: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
95645: if test -n "$unique" && test "`eval $cmd`" = "" ; then
95646: eval "EXTRA_LDFLAGS$unique=set"
95647: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
95648: fi
95649:
95650: fi
95651: ;;
95652: -l*)
95653: ac_ii=`echo $ac_i|cut -c 3-`
95654:
95655:
95656: case $ac_ii in
95657: c|c_r|pthread*) ;;
95658: *)
95659: if test "$ext_shared" = "yes"; then
95660: LDFLAGS="$LDFLAGS -l$ac_ii"
95661: else
95662:
95663:
95664: case $ac_ii in
95665: c|c_r|pthread*) ;;
95666: *)
95667: LIBS="$LIBS -l$ac_ii"
95668: ;;
95669: esac
95670:
95671:
95672: fi
95673: ;;
95674: esac
95675:
95676:
95677: ;;
95678: -L*)
95679: ac_ii=`echo $ac_i|cut -c 3-`
95680:
95681: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
95682:
95683: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
95684: ai_p=$ac_ii
95685: else
95686:
95687: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
95688:
95689: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
95690: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
95691: fi
95692:
95693:
95694: if test "$ext_shared" = "yes"; then
95695: LDFLAGS="-L$ai_p $LDFLAGS"
95696: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
95697: else
95698:
95699:
95700:
95701: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
95702:
95703: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
95704: if test -n "$unique" && test "`eval $cmd`" = "" ; then
95705: eval "LIBPATH$unique=set"
95706:
95707: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
95708: LDFLAGS="$LDFLAGS -L$ai_p"
95709: PHP_RPATHS="$PHP_RPATHS $ai_p"
95710:
95711: fi
95712:
95713:
95714: fi
95715:
95716: fi
95717:
95718: ;;
95719: esac
95720: done
95721:
95722: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netg_errstr in -lsybtcl" >&5
95723: $as_echo_n "checking for netg_errstr in -lsybtcl... " >&6; }
95724: if ${ac_cv_lib_sybtcl_netg_errstr+:} false; then :
95725: $as_echo_n "(cached) " >&6
95726: else
95727: ac_check_lib_save_LIBS=$LIBS
95728: LIBS="-lsybtcl $LIBS"
95729: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
95730: /* end confdefs.h. */
95731:
95732: /* Override any GCC internal prototype to avoid an error.
95733: Use char because int might match the return type of a GCC
95734: builtin and then its argument prototype would still apply. */
95735: #ifdef __cplusplus
95736: extern "C"
95737: #endif
95738: char netg_errstr ();
95739: int
95740: main ()
95741: {
95742: return netg_errstr ();
95743: ;
95744: return 0;
95745: }
95746: _ACEOF
95747: if ac_fn_c_try_link "$LINENO"; then :
95748: ac_cv_lib_sybtcl_netg_errstr=yes
95749: else
95750: ac_cv_lib_sybtcl_netg_errstr=no
95751: fi
95752: rm -f core conftest.err conftest.$ac_objext \
95753: conftest$ac_exeext conftest.$ac_ext
95754: LIBS=$ac_check_lib_save_LIBS
95755: fi
95756: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sybtcl_netg_errstr" >&5
95757: $as_echo "$ac_cv_lib_sybtcl_netg_errstr" >&6; }
95758: if test "x$ac_cv_lib_sybtcl_netg_errstr" = xyes; then :
95759:
95760: LDFLAGS=$save_old_LDFLAGS
95761: ext_shared=$save_ext_shared
95762:
95763:
95764:
95765: case sybtcl in
95766: c|c_r|pthread*) ;;
95767: *)
95768: if test "$ext_shared" = "yes"; then
95769: SYBASE_CT_SHARED_LIBADD="-lsybtcl $SYBASE_CT_SHARED_LIBADD"
95770: else
95771:
95772:
95773: case sybtcl in
95774: c|c_r|pthread*) ;;
95775: *)
95776: LIBS="-lsybtcl $LIBS"
95777: ;;
95778: esac
95779:
95780:
95781: fi
95782: ;;
95783: esac
95784:
95785:
95786:
95787:
95788: else
95789:
95790: LDFLAGS=$save_old_LDFLAGS
95791: ext_shared=$save_ext_shared
95792: unset ac_cv_lib_sybtcl_netg_errstr
95793:
95794:
95795:
95796: case sybtcl in
95797: c|c_r|pthread*) ;;
95798: *)
95799: if test "$ext_shared" = "yes"; then
95800: SYBASE_CT_SHARED_LIBADD="-lsybtcl $SYBASE_CT_SHARED_LIBADD"
95801: else
95802:
95803:
95804: case sybtcl in
95805: c|c_r|pthread*) ;;
95806: *)
95807: LIBS="-lsybtcl $LIBS"
95808: ;;
95809: esac
95810:
95811:
95812: fi
95813: ;;
95814: esac
95815:
95816:
95817:
95818:
95819: fi
95820:
95821:
95822:
95823: save_old_LDFLAGS=$LDFLAGS
95824: ac_stuff="-L$SYBASE_CT_LIBDIR"
95825:
95826: save_ext_shared=$ext_shared
95827: ext_shared=yes
95828:
95829: for ac_i in $ac_stuff; do
95830: case $ac_i in
95831: -pthread)
95832: if test "$ext_shared" = "yes"; then
95833: LDFLAGS="$LDFLAGS -pthread"
95834: else
95835:
95836:
95837: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
95838:
95839: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
95840: if test -n "$unique" && test "`eval $cmd`" = "" ; then
95841: eval "EXTRA_LDFLAGS$unique=set"
95842: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
95843: fi
95844:
95845: fi
95846: ;;
95847: -l*)
95848: ac_ii=`echo $ac_i|cut -c 3-`
95849:
95850:
95851: case $ac_ii in
95852: c|c_r|pthread*) ;;
95853: *)
95854: if test "$ext_shared" = "yes"; then
95855: LDFLAGS="$LDFLAGS -l$ac_ii"
95856: else
95857:
95858:
95859: case $ac_ii in
95860: c|c_r|pthread*) ;;
95861: *)
95862: LIBS="$LIBS -l$ac_ii"
95863: ;;
95864: esac
95865:
95866:
95867: fi
95868: ;;
95869: esac
95870:
95871:
95872: ;;
95873: -L*)
95874: ac_ii=`echo $ac_i|cut -c 3-`
95875:
95876: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
95877:
95878: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
95879: ai_p=$ac_ii
95880: else
95881:
95882: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
95883:
95884: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
95885: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
95886: fi
95887:
95888:
95889: if test "$ext_shared" = "yes"; then
95890: LDFLAGS="-L$ai_p $LDFLAGS"
95891: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
95892: else
95893:
95894:
95895:
95896: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
95897:
95898: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
95899: if test -n "$unique" && test "`eval $cmd`" = "" ; then
95900: eval "LIBPATH$unique=set"
95901:
95902: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
95903: LDFLAGS="$LDFLAGS -L$ai_p"
95904: PHP_RPATHS="$PHP_RPATHS $ai_p"
95905:
95906: fi
95907:
95908:
95909: fi
95910:
95911: fi
95912:
95913: ;;
95914: esac
95915: done
95916:
95917: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for insck__getVdate in -linsck" >&5
95918: $as_echo_n "checking for insck__getVdate in -linsck... " >&6; }
95919: if ${ac_cv_lib_insck_insck__getVdate+:} false; then :
95920: $as_echo_n "(cached) " >&6
95921: else
95922: ac_check_lib_save_LIBS=$LIBS
95923: LIBS="-linsck $LIBS"
95924: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
95925: /* end confdefs.h. */
95926:
95927: /* Override any GCC internal prototype to avoid an error.
95928: Use char because int might match the return type of a GCC
95929: builtin and then its argument prototype would still apply. */
95930: #ifdef __cplusplus
95931: extern "C"
95932: #endif
95933: char insck__getVdate ();
95934: int
95935: main ()
95936: {
95937: return insck__getVdate ();
95938: ;
95939: return 0;
95940: }
95941: _ACEOF
95942: if ac_fn_c_try_link "$LINENO"; then :
95943: ac_cv_lib_insck_insck__getVdate=yes
95944: else
95945: ac_cv_lib_insck_insck__getVdate=no
95946: fi
95947: rm -f core conftest.err conftest.$ac_objext \
95948: conftest$ac_exeext conftest.$ac_ext
95949: LIBS=$ac_check_lib_save_LIBS
95950: fi
95951: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_insck_insck__getVdate" >&5
95952: $as_echo "$ac_cv_lib_insck_insck__getVdate" >&6; }
95953: if test "x$ac_cv_lib_insck_insck__getVdate" = xyes; then :
95954:
95955: LDFLAGS=$save_old_LDFLAGS
95956: ext_shared=$save_ext_shared
95957:
95958:
95959: case insck in
95960: c|c_r|pthread*) ;;
95961: *)
95962: if test "$ext_shared" = "yes"; then
95963: SYBASE_CT_SHARED_LIBADD="-linsck $SYBASE_CT_SHARED_LIBADD"
95964: else
95965:
95966:
95967: case insck in
95968: c|c_r|pthread*) ;;
95969: *)
95970: LIBS="-linsck $LIBS"
95971: ;;
95972: esac
95973:
95974:
95975: fi
95976: ;;
95977: esac
95978:
95979:
95980:
95981: else
95982:
95983: LDFLAGS=$save_old_LDFLAGS
95984: ext_shared=$save_ext_shared
95985: unset ac_cv_lib_insck_insck__getVdate
95986:
95987:
95988: fi
95989:
95990:
95991: save_old_LDFLAGS=$LDFLAGS
95992: ac_stuff="-L$SYBASE_CT_LIBDIR"
95993:
95994: save_ext_shared=$ext_shared
95995: ext_shared=yes
95996:
95997: for ac_i in $ac_stuff; do
95998: case $ac_i in
95999: -pthread)
96000: if test "$ext_shared" = "yes"; then
96001: LDFLAGS="$LDFLAGS -pthread"
96002: else
96003:
96004:
96005: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
96006:
96007: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
96008: if test -n "$unique" && test "`eval $cmd`" = "" ; then
96009: eval "EXTRA_LDFLAGS$unique=set"
96010: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
96011: fi
96012:
96013: fi
96014: ;;
96015: -l*)
96016: ac_ii=`echo $ac_i|cut -c 3-`
96017:
96018:
96019: case $ac_ii in
96020: c|c_r|pthread*) ;;
96021: *)
96022: if test "$ext_shared" = "yes"; then
96023: LDFLAGS="$LDFLAGS -l$ac_ii"
96024: else
96025:
96026:
96027: case $ac_ii in
96028: c|c_r|pthread*) ;;
96029: *)
96030: LIBS="$LIBS -l$ac_ii"
96031: ;;
96032: esac
96033:
96034:
96035: fi
96036: ;;
96037: esac
96038:
96039:
96040: ;;
96041: -L*)
96042: ac_ii=`echo $ac_i|cut -c 3-`
96043:
96044: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
96045:
96046: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
96047: ai_p=$ac_ii
96048: else
96049:
96050: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
96051:
96052: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
96053: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
96054: fi
96055:
96056:
96057: if test "$ext_shared" = "yes"; then
96058: LDFLAGS="-L$ai_p $LDFLAGS"
96059: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
96060: else
96061:
96062:
96063:
96064: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
96065:
96066: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
96067: if test -n "$unique" && test "`eval $cmd`" = "" ; then
96068: eval "LIBPATH$unique=set"
96069:
96070: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
96071: LDFLAGS="$LDFLAGS -L$ai_p"
96072: PHP_RPATHS="$PHP_RPATHS $ai_p"
96073:
96074: fi
96075:
96076:
96077: fi
96078:
96079: fi
96080:
96081: ;;
96082: esac
96083: done
96084:
96085: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bsd_tcp in -linsck" >&5
96086: $as_echo_n "checking for bsd_tcp in -linsck... " >&6; }
96087: if ${ac_cv_lib_insck_bsd_tcp+:} false; then :
96088: $as_echo_n "(cached) " >&6
96089: else
96090: ac_check_lib_save_LIBS=$LIBS
96091: LIBS="-linsck $LIBS"
96092: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
96093: /* end confdefs.h. */
96094:
96095: /* Override any GCC internal prototype to avoid an error.
96096: Use char because int might match the return type of a GCC
96097: builtin and then its argument prototype would still apply. */
96098: #ifdef __cplusplus
96099: extern "C"
96100: #endif
96101: char bsd_tcp ();
96102: int
96103: main ()
96104: {
96105: return bsd_tcp ();
96106: ;
96107: return 0;
96108: }
96109: _ACEOF
96110: if ac_fn_c_try_link "$LINENO"; then :
96111: ac_cv_lib_insck_bsd_tcp=yes
96112: else
96113: ac_cv_lib_insck_bsd_tcp=no
96114: fi
96115: rm -f core conftest.err conftest.$ac_objext \
96116: conftest$ac_exeext conftest.$ac_ext
96117: LIBS=$ac_check_lib_save_LIBS
96118: fi
96119: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_insck_bsd_tcp" >&5
96120: $as_echo "$ac_cv_lib_insck_bsd_tcp" >&6; }
96121: if test "x$ac_cv_lib_insck_bsd_tcp" = xyes; then :
96122:
96123: LDFLAGS=$save_old_LDFLAGS
96124: ext_shared=$save_ext_shared
96125:
96126:
96127: case insck in
96128: c|c_r|pthread*) ;;
96129: *)
96130: if test "$ext_shared" = "yes"; then
96131: SYBASE_CT_SHARED_LIBADD="-linsck $SYBASE_CT_SHARED_LIBADD"
96132: else
96133:
96134:
96135: case insck in
96136: c|c_r|pthread*) ;;
96137: *)
96138: LIBS="-linsck $LIBS"
96139: ;;
96140: esac
96141:
96142:
96143: fi
96144: ;;
96145: esac
96146:
96147:
96148:
96149: else
96150:
96151: LDFLAGS=$save_old_LDFLAGS
96152: ext_shared=$save_ext_shared
96153: unset ac_cv_lib_insck_bsd_tcp
96154:
96155:
96156: fi
96157:
96158: else
96159:
96160:
96161: case cs in
96162: c|c_r|pthread*) ;;
96163: *)
96164: if test "$ext_shared" = "yes"; then
96165: SYBASE_CT_SHARED_LIBADD="-lcs $SYBASE_CT_SHARED_LIBADD"
96166: else
96167:
96168:
96169: case cs in
96170: c|c_r|pthread*) ;;
96171: *)
96172: LIBS="-lcs $LIBS"
96173: ;;
96174: esac
96175:
96176:
96177: fi
96178: ;;
96179: esac
96180:
96181:
96182:
96183:
96184: case ct in
96185: c|c_r|pthread*) ;;
96186: *)
96187: if test "$ext_shared" = "yes"; then
96188: SYBASE_CT_SHARED_LIBADD="-lct $SYBASE_CT_SHARED_LIBADD"
96189: else
96190:
96191:
96192: case ct in
96193: c|c_r|pthread*) ;;
96194: *)
96195: LIBS="-lct $LIBS"
96196: ;;
96197: esac
96198:
96199:
96200: fi
96201: ;;
96202: esac
96203:
96204:
96205:
96206:
96207: case comn in
96208: c|c_r|pthread*) ;;
96209: *)
96210: if test "$ext_shared" = "yes"; then
96211: SYBASE_CT_SHARED_LIBADD="-lcomn $SYBASE_CT_SHARED_LIBADD"
96212: else
96213:
96214:
96215: case comn in
96216: c|c_r|pthread*) ;;
96217: *)
96218: LIBS="-lcomn $LIBS"
96219: ;;
96220: esac
96221:
96222:
96223: fi
96224: ;;
96225: esac
96226:
96227:
96228:
96229:
96230: case intl in
96231: c|c_r|pthread*) ;;
96232: *)
96233: if test "$ext_shared" = "yes"; then
96234: SYBASE_CT_SHARED_LIBADD="-lintl $SYBASE_CT_SHARED_LIBADD"
96235: else
96236:
96237:
96238: case intl in
96239: c|c_r|pthread*) ;;
96240: *)
96241: LIBS="-lintl $LIBS"
96242: ;;
96243: esac
96244:
96245:
96246: fi
96247: ;;
96248: esac
96249:
96250:
96251:
96252: SYBASE_CT_LIBS="-L$SYBASE_CT_LIBDIR -lcs -lct -lcomn -lintl"
96253: { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sybase32 default: $SYBASE_CT_LIBS" >&5
96254: $as_echo "Sybase32 default: $SYBASE_CT_LIBS" >&6; }
96255:
96256:
96257: save_old_LDFLAGS=$LDFLAGS
96258: ac_stuff="
96259: $SYBASE_CT_LIBS
96260: "
96261:
96262: save_ext_shared=$ext_shared
96263: ext_shared=yes
96264:
96265: for ac_i in $ac_stuff; do
96266: case $ac_i in
96267: -pthread)
96268: if test "$ext_shared" = "yes"; then
96269: LDFLAGS="$LDFLAGS -pthread"
96270: else
96271:
96272:
96273: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
96274:
96275: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
96276: if test -n "$unique" && test "`eval $cmd`" = "" ; then
96277: eval "EXTRA_LDFLAGS$unique=set"
96278: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
96279: fi
96280:
96281: fi
96282: ;;
96283: -l*)
96284: ac_ii=`echo $ac_i|cut -c 3-`
96285:
96286:
96287: case $ac_ii in
96288: c|c_r|pthread*) ;;
96289: *)
96290: if test "$ext_shared" = "yes"; then
96291: LDFLAGS="$LDFLAGS -l$ac_ii"
96292: else
96293:
96294:
96295: case $ac_ii in
96296: c|c_r|pthread*) ;;
96297: *)
96298: LIBS="$LIBS -l$ac_ii"
96299: ;;
96300: esac
96301:
96302:
96303: fi
96304: ;;
96305: esac
96306:
96307:
96308: ;;
96309: -L*)
96310: ac_ii=`echo $ac_i|cut -c 3-`
96311:
96312: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
96313:
96314: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
96315: ai_p=$ac_ii
96316: else
96317:
96318: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
96319:
96320: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
96321: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
96322: fi
96323:
96324:
96325: if test "$ext_shared" = "yes"; then
96326: LDFLAGS="-L$ai_p $LDFLAGS"
96327: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
96328: else
96329:
96330:
96331:
96332: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
96333:
96334: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
96335: if test -n "$unique" && test "`eval $cmd`" = "" ; then
96336: eval "LIBPATH$unique=set"
96337:
96338: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
96339: LDFLAGS="$LDFLAGS -L$ai_p"
96340: PHP_RPATHS="$PHP_RPATHS $ai_p"
96341:
96342: fi
96343:
96344:
96345: fi
96346:
96347: fi
96348:
96349: ;;
96350: esac
96351: done
96352:
96353: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netg_errstr in -ltcl" >&5
96354: $as_echo_n "checking for netg_errstr in -ltcl... " >&6; }
96355: if ${ac_cv_lib_tcl_netg_errstr+:} false; then :
96356: $as_echo_n "(cached) " >&6
96357: else
96358: ac_check_lib_save_LIBS=$LIBS
96359: LIBS="-ltcl $LIBS"
96360: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
96361: /* end confdefs.h. */
96362:
96363: /* Override any GCC internal prototype to avoid an error.
96364: Use char because int might match the return type of a GCC
96365: builtin and then its argument prototype would still apply. */
96366: #ifdef __cplusplus
96367: extern "C"
96368: #endif
96369: char netg_errstr ();
96370: int
96371: main ()
96372: {
96373: return netg_errstr ();
96374: ;
96375: return 0;
96376: }
96377: _ACEOF
96378: if ac_fn_c_try_link "$LINENO"; then :
96379: ac_cv_lib_tcl_netg_errstr=yes
96380: else
96381: ac_cv_lib_tcl_netg_errstr=no
96382: fi
96383: rm -f core conftest.err conftest.$ac_objext \
96384: conftest$ac_exeext conftest.$ac_ext
96385: LIBS=$ac_check_lib_save_LIBS
96386: fi
96387: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tcl_netg_errstr" >&5
96388: $as_echo "$ac_cv_lib_tcl_netg_errstr" >&6; }
96389: if test "x$ac_cv_lib_tcl_netg_errstr" = xyes; then :
96390:
96391: LDFLAGS=$save_old_LDFLAGS
96392: ext_shared=$save_ext_shared
96393:
96394:
96395:
96396: case tcl in
96397: c|c_r|pthread*) ;;
96398: *)
96399: if test "$ext_shared" = "yes"; then
96400: SYBASE_CT_SHARED_LIBADD="-ltcl $SYBASE_CT_SHARED_LIBADD"
96401: else
96402:
96403:
96404: case tcl in
96405: c|c_r|pthread*) ;;
96406: *)
96407: LIBS="-ltcl $LIBS"
96408: ;;
96409: esac
96410:
96411:
96412: fi
96413: ;;
96414: esac
96415:
96416:
96417:
96418:
96419: else
96420:
96421: LDFLAGS=$save_old_LDFLAGS
96422: ext_shared=$save_ext_shared
96423: unset ac_cv_lib_tcl_netg_errstr
96424:
96425:
96426:
96427: case sybtcl in
96428: c|c_r|pthread*) ;;
96429: *)
96430: if test "$ext_shared" = "yes"; then
96431: SYBASE_CT_SHARED_LIBADD="-lsybtcl $SYBASE_CT_SHARED_LIBADD"
96432: else
96433:
96434:
96435: case sybtcl in
96436: c|c_r|pthread*) ;;
96437: *)
96438: LIBS="-lsybtcl $LIBS"
96439: ;;
96440: esac
96441:
96442:
96443: fi
96444: ;;
96445: esac
96446:
96447:
96448:
96449:
96450: fi
96451:
96452:
96453:
96454: save_old_LDFLAGS=$LDFLAGS
96455: ac_stuff="-L$SYBASE_CT_LIBDIR"
96456:
96457: save_ext_shared=$ext_shared
96458: ext_shared=yes
96459:
96460: for ac_i in $ac_stuff; do
96461: case $ac_i in
96462: -pthread)
96463: if test "$ext_shared" = "yes"; then
96464: LDFLAGS="$LDFLAGS -pthread"
96465: else
96466:
96467:
96468: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
96469:
96470: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
96471: if test -n "$unique" && test "`eval $cmd`" = "" ; then
96472: eval "EXTRA_LDFLAGS$unique=set"
96473: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
96474: fi
96475:
96476: fi
96477: ;;
96478: -l*)
96479: ac_ii=`echo $ac_i|cut -c 3-`
96480:
96481:
96482: case $ac_ii in
96483: c|c_r|pthread*) ;;
96484: *)
96485: if test "$ext_shared" = "yes"; then
96486: LDFLAGS="$LDFLAGS -l$ac_ii"
96487: else
96488:
96489:
96490: case $ac_ii in
96491: c|c_r|pthread*) ;;
96492: *)
96493: LIBS="$LIBS -l$ac_ii"
96494: ;;
96495: esac
96496:
96497:
96498: fi
96499: ;;
96500: esac
96501:
96502:
96503: ;;
96504: -L*)
96505: ac_ii=`echo $ac_i|cut -c 3-`
96506:
96507: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
96508:
96509: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
96510: ai_p=$ac_ii
96511: else
96512:
96513: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
96514:
96515: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
96516: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
96517: fi
96518:
96519:
96520: if test "$ext_shared" = "yes"; then
96521: LDFLAGS="-L$ai_p $LDFLAGS"
96522: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
96523: else
96524:
96525:
96526:
96527: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
96528:
96529: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
96530: if test -n "$unique" && test "`eval $cmd`" = "" ; then
96531: eval "LIBPATH$unique=set"
96532:
96533: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
96534: LDFLAGS="$LDFLAGS -L$ai_p"
96535: PHP_RPATHS="$PHP_RPATHS $ai_p"
96536:
96537: fi
96538:
96539:
96540: fi
96541:
96542: fi
96543:
96544: ;;
96545: esac
96546: done
96547:
96548: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for insck__getVdate in -linsck" >&5
96549: $as_echo_n "checking for insck__getVdate in -linsck... " >&6; }
96550: if ${ac_cv_lib_insck_insck__getVdate+:} false; then :
96551: $as_echo_n "(cached) " >&6
96552: else
96553: ac_check_lib_save_LIBS=$LIBS
96554: LIBS="-linsck $LIBS"
96555: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
96556: /* end confdefs.h. */
96557:
96558: /* Override any GCC internal prototype to avoid an error.
96559: Use char because int might match the return type of a GCC
96560: builtin and then its argument prototype would still apply. */
96561: #ifdef __cplusplus
96562: extern "C"
96563: #endif
96564: char insck__getVdate ();
96565: int
96566: main ()
96567: {
96568: return insck__getVdate ();
96569: ;
96570: return 0;
96571: }
96572: _ACEOF
96573: if ac_fn_c_try_link "$LINENO"; then :
96574: ac_cv_lib_insck_insck__getVdate=yes
96575: else
96576: ac_cv_lib_insck_insck__getVdate=no
96577: fi
96578: rm -f core conftest.err conftest.$ac_objext \
96579: conftest$ac_exeext conftest.$ac_ext
96580: LIBS=$ac_check_lib_save_LIBS
96581: fi
96582: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_insck_insck__getVdate" >&5
96583: $as_echo "$ac_cv_lib_insck_insck__getVdate" >&6; }
96584: if test "x$ac_cv_lib_insck_insck__getVdate" = xyes; then :
96585:
96586: LDFLAGS=$save_old_LDFLAGS
96587: ext_shared=$save_ext_shared
96588:
96589:
96590: case insck in
96591: c|c_r|pthread*) ;;
96592: *)
96593: if test "$ext_shared" = "yes"; then
96594: SYBASE_CT_SHARED_LIBADD="-linsck $SYBASE_CT_SHARED_LIBADD"
96595: else
96596:
96597:
96598: case insck in
96599: c|c_r|pthread*) ;;
96600: *)
96601: LIBS="-linsck $LIBS"
96602: ;;
96603: esac
96604:
96605:
96606: fi
96607: ;;
96608: esac
96609:
96610:
96611:
96612: else
96613:
96614: LDFLAGS=$save_old_LDFLAGS
96615: ext_shared=$save_ext_shared
96616: unset ac_cv_lib_insck_insck__getVdate
96617:
96618:
96619: fi
96620:
96621:
96622: save_old_LDFLAGS=$LDFLAGS
96623: ac_stuff="-L$SYBASE_CT_LIBDIR"
96624:
96625: save_ext_shared=$ext_shared
96626: ext_shared=yes
96627:
96628: for ac_i in $ac_stuff; do
96629: case $ac_i in
96630: -pthread)
96631: if test "$ext_shared" = "yes"; then
96632: LDFLAGS="$LDFLAGS -pthread"
96633: else
96634:
96635:
96636: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
96637:
96638: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
96639: if test -n "$unique" && test "`eval $cmd`" = "" ; then
96640: eval "EXTRA_LDFLAGS$unique=set"
96641: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
96642: fi
96643:
96644: fi
96645: ;;
96646: -l*)
96647: ac_ii=`echo $ac_i|cut -c 3-`
96648:
96649:
96650: case $ac_ii in
96651: c|c_r|pthread*) ;;
96652: *)
96653: if test "$ext_shared" = "yes"; then
96654: LDFLAGS="$LDFLAGS -l$ac_ii"
96655: else
96656:
96657:
96658: case $ac_ii in
96659: c|c_r|pthread*) ;;
96660: *)
96661: LIBS="$LIBS -l$ac_ii"
96662: ;;
96663: esac
96664:
96665:
96666: fi
96667: ;;
96668: esac
96669:
96670:
96671: ;;
96672: -L*)
96673: ac_ii=`echo $ac_i|cut -c 3-`
96674:
96675: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
96676:
96677: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
96678: ai_p=$ac_ii
96679: else
96680:
96681: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
96682:
96683: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
96684: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
96685: fi
96686:
96687:
96688: if test "$ext_shared" = "yes"; then
96689: LDFLAGS="-L$ai_p $LDFLAGS"
96690: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
96691: else
96692:
96693:
96694:
96695: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
96696:
96697: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
96698: if test -n "$unique" && test "`eval $cmd`" = "" ; then
96699: eval "LIBPATH$unique=set"
96700:
96701: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
96702: LDFLAGS="$LDFLAGS -L$ai_p"
96703: PHP_RPATHS="$PHP_RPATHS $ai_p"
96704:
96705: fi
96706:
96707:
96708: fi
96709:
96710: fi
96711:
96712: ;;
96713: esac
96714: done
96715:
96716: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bsd_tcp in -linsck" >&5
96717: $as_echo_n "checking for bsd_tcp in -linsck... " >&6; }
96718: if ${ac_cv_lib_insck_bsd_tcp+:} false; then :
96719: $as_echo_n "(cached) " >&6
96720: else
96721: ac_check_lib_save_LIBS=$LIBS
96722: LIBS="-linsck $LIBS"
96723: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
96724: /* end confdefs.h. */
96725:
96726: /* Override any GCC internal prototype to avoid an error.
96727: Use char because int might match the return type of a GCC
96728: builtin and then its argument prototype would still apply. */
96729: #ifdef __cplusplus
96730: extern "C"
96731: #endif
96732: char bsd_tcp ();
96733: int
96734: main ()
96735: {
96736: return bsd_tcp ();
96737: ;
96738: return 0;
96739: }
96740: _ACEOF
96741: if ac_fn_c_try_link "$LINENO"; then :
96742: ac_cv_lib_insck_bsd_tcp=yes
96743: else
96744: ac_cv_lib_insck_bsd_tcp=no
96745: fi
96746: rm -f core conftest.err conftest.$ac_objext \
96747: conftest$ac_exeext conftest.$ac_ext
96748: LIBS=$ac_check_lib_save_LIBS
96749: fi
96750: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_insck_bsd_tcp" >&5
96751: $as_echo "$ac_cv_lib_insck_bsd_tcp" >&6; }
96752: if test "x$ac_cv_lib_insck_bsd_tcp" = xyes; then :
96753:
96754: LDFLAGS=$save_old_LDFLAGS
96755: ext_shared=$save_ext_shared
96756:
96757:
96758: case insck in
96759: c|c_r|pthread*) ;;
96760: *)
96761: if test "$ext_shared" = "yes"; then
96762: SYBASE_CT_SHARED_LIBADD="-linsck $SYBASE_CT_SHARED_LIBADD"
96763: else
96764:
96765:
96766: case insck in
96767: c|c_r|pthread*) ;;
96768: *)
96769: LIBS="-linsck $LIBS"
96770: ;;
96771: esac
96772:
96773:
96774: fi
96775: ;;
96776: esac
96777:
96778:
96779:
96780: else
96781:
96782: LDFLAGS=$save_old_LDFLAGS
96783: ext_shared=$save_ext_shared
96784: unset ac_cv_lib_insck_bsd_tcp
96785:
96786:
96787: fi
96788:
96789: fi
96790: fi
96791:
96792:
96793:
96794: php_enable_sysvmsg=no
96795:
96796: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable System V IPC support" >&5
96797: $as_echo_n "checking whether to enable System V IPC support... " >&6; }
96798: # Check whether --enable-sysvmsg was given.
96799: if test "${enable_sysvmsg+set}" = set; then :
96800: enableval=$enable_sysvmsg; PHP_SYSVMSG=$enableval
96801: else
96802:
96803: PHP_SYSVMSG=no
96804: test "$PHP_ENABLE_ALL" && PHP_SYSVMSG=$PHP_ENABLE_ALL
96805:
96806: fi
96807:
96808:
96809:
96810: ext_output="yes, shared"
96811: ext_shared=yes
96812: case $PHP_SYSVMSG in
96813: shared,*)
96814: PHP_SYSVMSG=`echo "$PHP_SYSVMSG"|$SED 's/^shared,//'`
96815: ;;
96816: shared)
96817: PHP_SYSVMSG=yes
96818: ;;
96819: no)
96820: ext_output=no
96821: ext_shared=no
96822: ;;
96823: *)
96824: ext_output=yes
96825: ext_shared=no
96826: ;;
96827: esac
96828:
96829:
96830:
96831: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
96832: $as_echo "$ext_output" >&6; }
96833:
96834:
96835:
96836:
96837: if test "$PHP_SYSVMSG" != "no"; then
96838: ac_fn_c_check_header_mongrel "$LINENO" "sys/msg.h" "ac_cv_header_sys_msg_h" "$ac_includes_default"
96839: if test "x$ac_cv_header_sys_msg_h" = xyes; then :
96840:
96841: else
96842: as_fn_error $? "Cannot enable System V IPC support, sys/msg.h is missing" "$LINENO" 5
96843:
96844: fi
96845:
96846:
96847:
96848:
96849: $as_echo "#define HAVE_SYSVMSG 1" >>confdefs.h
96850:
96851:
96852: ext_builddir=ext/sysvmsg
96853: ext_srcdir=$abs_srcdir/ext/sysvmsg
96854:
96855: ac_extra=
96856:
96857: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
96858: PHP_SYSVMSG_SHARED=no
96859:
96860:
96861: case ext/sysvmsg in
96862: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
96863: /*) ac_srcdir=`echo "ext/sysvmsg"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
96864: *) ac_srcdir="$abs_srcdir/ext/sysvmsg/"; ac_bdir="ext/sysvmsg/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
96865: esac
96866:
96867:
96868:
96869: b_c_pre=$php_c_pre
96870: b_cxx_pre=$php_cxx_pre
96871: b_c_meta=$php_c_meta
96872: b_cxx_meta=$php_cxx_meta
96873: b_c_post=$php_c_post
96874: b_cxx_post=$php_cxx_post
96875: b_lo=$php_lo
96876:
96877:
96878: old_IFS=$IFS
96879: for ac_src in sysvmsg.c; do
96880:
96881: IFS=.
96882: set $ac_src
96883: ac_obj=$1
96884: IFS=$old_IFS
96885:
96886: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
96887:
96888: case $ac_src in
96889: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
96890: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
96891: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
96892: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
96893: esac
96894:
96895: cat >>Makefile.objects<<EOF
96896: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
96897: $ac_comp
96898: EOF
96899: done
96900:
96901:
96902: EXT_STATIC="$EXT_STATIC sysvmsg"
96903: if test "$ext_shared" != "nocli"; then
96904: EXT_CLI_STATIC="$EXT_CLI_STATIC sysvmsg"
96905: fi
96906: else
96907: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
96908: PHP_SYSVMSG_SHARED=yes
96909:
96910: case ext/sysvmsg in
96911: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
96912: /*) ac_srcdir=`echo "ext/sysvmsg"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
96913: *) ac_srcdir="$abs_srcdir/ext/sysvmsg/"; ac_bdir="ext/sysvmsg/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
96914: esac
96915:
96916:
96917:
96918: b_c_pre=$shared_c_pre
96919: b_cxx_pre=$shared_cxx_pre
96920: b_c_meta=$shared_c_meta
96921: b_cxx_meta=$shared_cxx_meta
96922: b_c_post=$shared_c_post
96923: b_cxx_post=$shared_cxx_post
96924: b_lo=$shared_lo
96925:
96926:
96927: old_IFS=$IFS
96928: for ac_src in sysvmsg.c; do
96929:
96930: IFS=.
96931: set $ac_src
96932: ac_obj=$1
96933: IFS=$old_IFS
96934:
96935: shared_objects_sysvmsg="$shared_objects_sysvmsg $ac_bdir$ac_obj.lo"
96936:
96937: case $ac_src in
96938: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
96939: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
96940: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
96941: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
96942: esac
96943:
96944: cat >>Makefile.objects<<EOF
96945: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
96946: $ac_comp
96947: EOF
96948: done
96949:
96950: case $host_alias in
96951: *netware*)
96952:
96953: install_modules="install-modules"
96954:
96955: case $host_alias in
96956: *aix*)
96957: suffix=so
96958: 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'
96959: ;;
96960: *netware*)
96961: suffix=nlm
96962: link_cmd='$(LIBTOOL) --mode=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)'
96963: ;;
96964: *)
96965: suffix=la
96966: link_cmd='$(LIBTOOL) --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)'
96967: ;;
96968: esac
96969:
96970: if test "x" = "xyes"; then
96971: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpsysvmsg.$suffix"
96972: else
96973: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpsysvmsg.$suffix"
96974: fi
96975:
96976: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_sysvmsg"
96977:
96978: cat >>Makefile.objects<<EOF
96979: \$(phplibdir)/phpsysvmsg.$suffix: $ext_builddir/phpsysvmsg.$suffix
96980: \$(LIBTOOL) --mode=install cp $ext_builddir/phpsysvmsg.$suffix \$(phplibdir)
96981:
96982: $ext_builddir/phpsysvmsg.$suffix: \$(shared_objects_sysvmsg) \$(PHPSYSVMSG_SHARED_DEPENDENCIES)
96983: $link_cmd
96984:
96985: EOF
96986:
96987: ;;
96988: *)
96989:
96990: install_modules="install-modules"
96991:
96992: case $host_alias in
96993: *aix*)
96994: suffix=so
96995: 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'
96996: ;;
96997: *netware*)
96998: suffix=nlm
96999: link_cmd='$(LIBTOOL) --mode=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)'
97000: ;;
97001: *)
97002: suffix=la
97003: link_cmd='$(LIBTOOL) --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)'
97004: ;;
97005: esac
97006:
97007: if test "x" = "xyes"; then
97008: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/sysvmsg.$suffix"
97009: else
97010: PHP_MODULES="$PHP_MODULES \$(phplibdir)/sysvmsg.$suffix"
97011: fi
97012:
97013: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_sysvmsg"
97014:
97015: cat >>Makefile.objects<<EOF
97016: \$(phplibdir)/sysvmsg.$suffix: $ext_builddir/sysvmsg.$suffix
97017: \$(LIBTOOL) --mode=install cp $ext_builddir/sysvmsg.$suffix \$(phplibdir)
97018:
97019: $ext_builddir/sysvmsg.$suffix: \$(shared_objects_sysvmsg) \$(SYSVMSG_SHARED_DEPENDENCIES)
97020: $link_cmd
97021:
97022: EOF
97023:
97024: ;;
97025: esac
97026:
97027: cat >>confdefs.h <<_ACEOF
97028: #define COMPILE_DL_SYSVMSG 1
97029: _ACEOF
97030:
97031: fi
97032: fi
97033:
97034: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
97035: PHP_SYSVMSG_SHARED=no
97036:
97037:
97038: case ext/sysvmsg in
97039: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
97040: /*) ac_srcdir=`echo "ext/sysvmsg"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
97041: *) ac_srcdir="$abs_srcdir/ext/sysvmsg/"; ac_bdir="ext/sysvmsg/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
97042: esac
97043:
97044:
97045:
97046: b_c_pre=$php_c_pre
97047: b_cxx_pre=$php_cxx_pre
97048: b_c_meta=$php_c_meta
97049: b_cxx_meta=$php_cxx_meta
97050: b_c_post=$php_c_post
97051: b_cxx_post=$php_cxx_post
97052: b_lo=$php_lo
97053:
97054:
97055: old_IFS=$IFS
97056: for ac_src in sysvmsg.c; do
97057:
97058: IFS=.
97059: set $ac_src
97060: ac_obj=$1
97061: IFS=$old_IFS
97062:
97063: PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
97064:
97065: case $ac_src in
97066: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
97067: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
97068: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
97069: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
97070: esac
97071:
97072: cat >>Makefile.objects<<EOF
97073: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
97074: $ac_comp
97075: EOF
97076: done
97077:
97078:
97079:
97080:
97081: case ext/sysvmsg in
97082: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
97083: /*) ac_srcdir=`echo "ext/sysvmsg"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
97084: *) ac_srcdir="$abs_srcdir/ext/sysvmsg/"; ac_bdir="ext/sysvmsg/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
97085: esac
97086:
97087:
97088:
97089: b_c_pre=$php_c_pre
97090: b_cxx_pre=$php_cxx_pre
97091: b_c_meta=$php_c_meta
97092: b_cxx_meta=$php_cxx_meta
97093: b_c_post=$php_c_post
97094: b_cxx_post=$php_cxx_post
97095: b_lo=$php_lo
97096:
97097:
97098: old_IFS=$IFS
97099: for ac_src in sysvmsg.c; do
97100:
97101: IFS=.
97102: set $ac_src
97103: ac_obj=$1
97104: IFS=$old_IFS
97105:
97106: PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo"
97107:
97108: case $ac_src in
97109: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
97110: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
97111: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
97112: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
97113: esac
97114:
97115: cat >>Makefile.objects<<EOF
97116: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
97117: $ac_comp
97118: EOF
97119: done
97120:
97121:
97122:
97123:
97124: case ext/sysvmsg in
97125: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
97126: /*) ac_srcdir=`echo "ext/sysvmsg"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
97127: *) ac_srcdir="$abs_srcdir/ext/sysvmsg/"; ac_bdir="ext/sysvmsg/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
97128: esac
97129:
97130:
97131:
97132: b_c_pre=$php_c_pre
97133: b_cxx_pre=$php_cxx_pre
97134: b_c_meta=$php_c_meta
97135: b_cxx_meta=$php_cxx_meta
97136: b_c_post=$php_c_post
97137: b_cxx_post=$php_cxx_post
97138: b_lo=$php_lo
97139:
97140:
97141: old_IFS=$IFS
97142: for ac_src in sysvmsg.c; do
97143:
97144: IFS=.
97145: set $ac_src
97146: ac_obj=$1
97147: IFS=$old_IFS
97148:
97149: PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo"
97150:
97151: case $ac_src in
97152: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
97153: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
97154: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
97155: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
97156: esac
97157:
97158: cat >>Makefile.objects<<EOF
97159: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
97160: $ac_comp
97161: EOF
97162: done
97163:
97164:
97165: EXT_CLI_STATIC="$EXT_CLI_STATIC sysvmsg"
97166: fi
97167:
97168:
97169: BUILD_DIR="$BUILD_DIR $ext_builddir"
97170:
97171:
97172:
97173: if test "$ext_builddir" = "."; then
97174: PHP_PECL_EXTENSION=sysvmsg
97175:
97176: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
97177:
97178: fi
97179:
97180: fi
97181:
97182:
97183:
97184: php_enable_sysvsem=no
97185:
97186: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable System V semaphore support" >&5
97187: $as_echo_n "checking whether to enable System V semaphore support... " >&6; }
97188: # Check whether --enable-sysvsem was given.
97189: if test "${enable_sysvsem+set}" = set; then :
97190: enableval=$enable_sysvsem; PHP_SYSVSEM=$enableval
97191: else
97192:
97193: PHP_SYSVSEM=no
97194: test "$PHP_ENABLE_ALL" && PHP_SYSVSEM=$PHP_ENABLE_ALL
97195:
97196: fi
97197:
97198:
97199:
97200: ext_output="yes, shared"
97201: ext_shared=yes
97202: case $PHP_SYSVSEM in
97203: shared,*)
97204: PHP_SYSVSEM=`echo "$PHP_SYSVSEM"|$SED 's/^shared,//'`
97205: ;;
97206: shared)
97207: PHP_SYSVSEM=yes
97208: ;;
97209: no)
97210: ext_output=no
97211: ext_shared=no
97212: ;;
97213: *)
97214: ext_output=yes
97215: ext_shared=no
97216: ;;
97217: esac
97218:
97219:
97220:
97221: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
97222: $as_echo "$ext_output" >&6; }
97223:
97224:
97225:
97226:
97227: if test "$PHP_SYSVSEM" != "no"; then
97228:
97229: ext_builddir=ext/sysvsem
97230: ext_srcdir=$abs_srcdir/ext/sysvsem
97231:
97232: ac_extra=
97233:
97234: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
97235: PHP_SYSVSEM_SHARED=no
97236:
97237:
97238: case ext/sysvsem in
97239: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
97240: /*) ac_srcdir=`echo "ext/sysvsem"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
97241: *) ac_srcdir="$abs_srcdir/ext/sysvsem/"; ac_bdir="ext/sysvsem/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
97242: esac
97243:
97244:
97245:
97246: b_c_pre=$php_c_pre
97247: b_cxx_pre=$php_cxx_pre
97248: b_c_meta=$php_c_meta
97249: b_cxx_meta=$php_cxx_meta
97250: b_c_post=$php_c_post
97251: b_cxx_post=$php_cxx_post
97252: b_lo=$php_lo
97253:
97254:
97255: old_IFS=$IFS
97256: for ac_src in sysvsem.c; do
97257:
97258: IFS=.
97259: set $ac_src
97260: ac_obj=$1
97261: IFS=$old_IFS
97262:
97263: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
97264:
97265: case $ac_src in
97266: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
97267: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
97268: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
97269: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
97270: esac
97271:
97272: cat >>Makefile.objects<<EOF
97273: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
97274: $ac_comp
97275: EOF
97276: done
97277:
97278:
97279: EXT_STATIC="$EXT_STATIC sysvsem"
97280: if test "$ext_shared" != "nocli"; then
97281: EXT_CLI_STATIC="$EXT_CLI_STATIC sysvsem"
97282: fi
97283: else
97284: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
97285: PHP_SYSVSEM_SHARED=yes
97286:
97287: case ext/sysvsem in
97288: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
97289: /*) ac_srcdir=`echo "ext/sysvsem"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
97290: *) ac_srcdir="$abs_srcdir/ext/sysvsem/"; ac_bdir="ext/sysvsem/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
97291: esac
97292:
97293:
97294:
97295: b_c_pre=$shared_c_pre
97296: b_cxx_pre=$shared_cxx_pre
97297: b_c_meta=$shared_c_meta
97298: b_cxx_meta=$shared_cxx_meta
97299: b_c_post=$shared_c_post
97300: b_cxx_post=$shared_cxx_post
97301: b_lo=$shared_lo
97302:
97303:
97304: old_IFS=$IFS
97305: for ac_src in sysvsem.c; do
97306:
97307: IFS=.
97308: set $ac_src
97309: ac_obj=$1
97310: IFS=$old_IFS
97311:
97312: shared_objects_sysvsem="$shared_objects_sysvsem $ac_bdir$ac_obj.lo"
97313:
97314: case $ac_src in
97315: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
97316: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
97317: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
97318: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
97319: esac
97320:
97321: cat >>Makefile.objects<<EOF
97322: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
97323: $ac_comp
97324: EOF
97325: done
97326:
97327: case $host_alias in
97328: *netware*)
97329:
97330: install_modules="install-modules"
97331:
97332: case $host_alias in
97333: *aix*)
97334: suffix=so
97335: 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'
97336: ;;
97337: *netware*)
97338: suffix=nlm
97339: link_cmd='$(LIBTOOL) --mode=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)'
97340: ;;
97341: *)
97342: suffix=la
97343: link_cmd='$(LIBTOOL) --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)'
97344: ;;
97345: esac
97346:
97347: if test "x" = "xyes"; then
97348: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpsysvsem.$suffix"
97349: else
97350: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpsysvsem.$suffix"
97351: fi
97352:
97353: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_sysvsem"
97354:
97355: cat >>Makefile.objects<<EOF
97356: \$(phplibdir)/phpsysvsem.$suffix: $ext_builddir/phpsysvsem.$suffix
97357: \$(LIBTOOL) --mode=install cp $ext_builddir/phpsysvsem.$suffix \$(phplibdir)
97358:
97359: $ext_builddir/phpsysvsem.$suffix: \$(shared_objects_sysvsem) \$(PHPSYSVSEM_SHARED_DEPENDENCIES)
97360: $link_cmd
97361:
97362: EOF
97363:
97364: ;;
97365: *)
97366:
97367: install_modules="install-modules"
97368:
97369: case $host_alias in
97370: *aix*)
97371: suffix=so
97372: 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'
97373: ;;
97374: *netware*)
97375: suffix=nlm
97376: link_cmd='$(LIBTOOL) --mode=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)'
97377: ;;
97378: *)
97379: suffix=la
97380: link_cmd='$(LIBTOOL) --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)'
97381: ;;
97382: esac
97383:
97384: if test "x" = "xyes"; then
97385: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/sysvsem.$suffix"
97386: else
97387: PHP_MODULES="$PHP_MODULES \$(phplibdir)/sysvsem.$suffix"
97388: fi
97389:
97390: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_sysvsem"
97391:
97392: cat >>Makefile.objects<<EOF
97393: \$(phplibdir)/sysvsem.$suffix: $ext_builddir/sysvsem.$suffix
97394: \$(LIBTOOL) --mode=install cp $ext_builddir/sysvsem.$suffix \$(phplibdir)
97395:
97396: $ext_builddir/sysvsem.$suffix: \$(shared_objects_sysvsem) \$(SYSVSEM_SHARED_DEPENDENCIES)
97397: $link_cmd
97398:
97399: EOF
97400:
97401: ;;
97402: esac
97403:
97404: cat >>confdefs.h <<_ACEOF
97405: #define COMPILE_DL_SYSVSEM 1
97406: _ACEOF
97407:
97408: fi
97409: fi
97410:
97411: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
97412: PHP_SYSVSEM_SHARED=no
97413:
97414:
97415: case ext/sysvsem in
97416: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
97417: /*) ac_srcdir=`echo "ext/sysvsem"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
97418: *) ac_srcdir="$abs_srcdir/ext/sysvsem/"; ac_bdir="ext/sysvsem/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
97419: esac
97420:
97421:
97422:
97423: b_c_pre=$php_c_pre
97424: b_cxx_pre=$php_cxx_pre
97425: b_c_meta=$php_c_meta
97426: b_cxx_meta=$php_cxx_meta
97427: b_c_post=$php_c_post
97428: b_cxx_post=$php_cxx_post
97429: b_lo=$php_lo
97430:
97431:
97432: old_IFS=$IFS
97433: for ac_src in sysvsem.c; do
97434:
97435: IFS=.
97436: set $ac_src
97437: ac_obj=$1
97438: IFS=$old_IFS
97439:
97440: PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
97441:
97442: case $ac_src in
97443: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
97444: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
97445: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
97446: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
97447: esac
97448:
97449: cat >>Makefile.objects<<EOF
97450: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
97451: $ac_comp
97452: EOF
97453: done
97454:
97455:
97456:
97457:
97458: case ext/sysvsem in
97459: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
97460: /*) ac_srcdir=`echo "ext/sysvsem"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
97461: *) ac_srcdir="$abs_srcdir/ext/sysvsem/"; ac_bdir="ext/sysvsem/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
97462: esac
97463:
97464:
97465:
97466: b_c_pre=$php_c_pre
97467: b_cxx_pre=$php_cxx_pre
97468: b_c_meta=$php_c_meta
97469: b_cxx_meta=$php_cxx_meta
97470: b_c_post=$php_c_post
97471: b_cxx_post=$php_cxx_post
97472: b_lo=$php_lo
97473:
97474:
97475: old_IFS=$IFS
97476: for ac_src in sysvsem.c; do
97477:
97478: IFS=.
97479: set $ac_src
97480: ac_obj=$1
97481: IFS=$old_IFS
97482:
97483: PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo"
97484:
97485: case $ac_src in
97486: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
97487: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
97488: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
97489: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
97490: esac
97491:
97492: cat >>Makefile.objects<<EOF
97493: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
97494: $ac_comp
97495: EOF
97496: done
97497:
97498:
97499:
97500:
97501: case ext/sysvsem in
97502: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
97503: /*) ac_srcdir=`echo "ext/sysvsem"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
97504: *) ac_srcdir="$abs_srcdir/ext/sysvsem/"; ac_bdir="ext/sysvsem/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
97505: esac
97506:
97507:
97508:
97509: b_c_pre=$php_c_pre
97510: b_cxx_pre=$php_cxx_pre
97511: b_c_meta=$php_c_meta
97512: b_cxx_meta=$php_cxx_meta
97513: b_c_post=$php_c_post
97514: b_cxx_post=$php_cxx_post
97515: b_lo=$php_lo
97516:
97517:
97518: old_IFS=$IFS
97519: for ac_src in sysvsem.c; do
97520:
97521: IFS=.
97522: set $ac_src
97523: ac_obj=$1
97524: IFS=$old_IFS
97525:
97526: PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo"
97527:
97528: case $ac_src in
97529: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
97530: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
97531: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
97532: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
97533: esac
97534:
97535: cat >>Makefile.objects<<EOF
97536: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
97537: $ac_comp
97538: EOF
97539: done
97540:
97541:
97542: EXT_CLI_STATIC="$EXT_CLI_STATIC sysvsem"
97543: fi
97544:
97545:
97546: BUILD_DIR="$BUILD_DIR $ext_builddir"
97547:
97548:
97549:
97550: if test "$ext_builddir" = "."; then
97551: PHP_PECL_EXTENSION=sysvsem
97552:
97553: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
97554:
97555: fi
97556:
97557:
97558: $as_echo "#define HAVE_SYSVSEM 1" >>confdefs.h
97559:
97560: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for union semun" >&5
97561: $as_echo_n "checking for union semun... " >&6; }
97562: if ${php_cv_semun+:} false; then :
97563: $as_echo_n "(cached) " >&6
97564: else
97565: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
97566: /* end confdefs.h. */
97567:
97568: #include <sys/types.h>
97569: #include <sys/ipc.h>
97570: #include <sys/sem.h>
97571:
97572: int
97573: main ()
97574: {
97575: union semun x;
97576: ;
97577: return 0;
97578: }
97579: _ACEOF
97580: if ac_fn_c_try_compile "$LINENO"; then :
97581:
97582: php_cv_semun=yes
97583:
97584: else
97585:
97586: php_cv_semun=no
97587:
97588: fi
97589: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
97590:
97591: fi
97592: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_semun" >&5
97593: $as_echo "$php_cv_semun" >&6; }
97594: if test "$php_cv_semun" = "yes"; then
97595:
97596: $as_echo "#define HAVE_SEMUN 1" >>confdefs.h
97597:
97598: else
97599:
97600: $as_echo "#define HAVE_SEMUN 0" >>confdefs.h
97601:
97602: fi
97603: fi
97604:
97605:
97606:
97607: php_enable_sysvshm=no
97608:
97609: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable System V shared memory support" >&5
97610: $as_echo_n "checking whether to enable System V shared memory support... " >&6; }
97611: # Check whether --enable-sysvshm was given.
97612: if test "${enable_sysvshm+set}" = set; then :
97613: enableval=$enable_sysvshm; PHP_SYSVSHM=$enableval
97614: else
97615:
97616: PHP_SYSVSHM=no
97617: test "$PHP_ENABLE_ALL" && PHP_SYSVSHM=$PHP_ENABLE_ALL
97618:
97619: fi
97620:
97621:
97622:
97623: ext_output="yes, shared"
97624: ext_shared=yes
97625: case $PHP_SYSVSHM in
97626: shared,*)
97627: PHP_SYSVSHM=`echo "$PHP_SYSVSHM"|$SED 's/^shared,//'`
97628: ;;
97629: shared)
97630: PHP_SYSVSHM=yes
97631: ;;
97632: no)
97633: ext_output=no
97634: ext_shared=no
97635: ;;
97636: *)
97637: ext_output=yes
97638: ext_shared=no
97639: ;;
97640: esac
97641:
97642:
97643:
97644: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
97645: $as_echo "$ext_output" >&6; }
97646:
97647:
97648:
97649:
97650: if test "$PHP_SYSVSHM" != "no"; then
97651:
97652: $as_echo "#define HAVE_SYSVSHM 1" >>confdefs.h
97653:
97654:
97655: ext_builddir=ext/sysvshm
97656: ext_srcdir=$abs_srcdir/ext/sysvshm
97657:
97658: ac_extra=
97659:
97660: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
97661: PHP_SYSVSHM_SHARED=no
97662:
97663:
97664: case ext/sysvshm in
97665: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
97666: /*) ac_srcdir=`echo "ext/sysvshm"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
97667: *) ac_srcdir="$abs_srcdir/ext/sysvshm/"; ac_bdir="ext/sysvshm/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
97668: esac
97669:
97670:
97671:
97672: b_c_pre=$php_c_pre
97673: b_cxx_pre=$php_cxx_pre
97674: b_c_meta=$php_c_meta
97675: b_cxx_meta=$php_cxx_meta
97676: b_c_post=$php_c_post
97677: b_cxx_post=$php_cxx_post
97678: b_lo=$php_lo
97679:
97680:
97681: old_IFS=$IFS
97682: for ac_src in sysvshm.c; do
97683:
97684: IFS=.
97685: set $ac_src
97686: ac_obj=$1
97687: IFS=$old_IFS
97688:
97689: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
97690:
97691: case $ac_src in
97692: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
97693: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
97694: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
97695: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
97696: esac
97697:
97698: cat >>Makefile.objects<<EOF
97699: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
97700: $ac_comp
97701: EOF
97702: done
97703:
97704:
97705: EXT_STATIC="$EXT_STATIC sysvshm"
97706: if test "$ext_shared" != "nocli"; then
97707: EXT_CLI_STATIC="$EXT_CLI_STATIC sysvshm"
97708: fi
97709: else
97710: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
97711: PHP_SYSVSHM_SHARED=yes
97712:
97713: case ext/sysvshm in
97714: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
97715: /*) ac_srcdir=`echo "ext/sysvshm"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
97716: *) ac_srcdir="$abs_srcdir/ext/sysvshm/"; ac_bdir="ext/sysvshm/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
97717: esac
97718:
97719:
97720:
97721: b_c_pre=$shared_c_pre
97722: b_cxx_pre=$shared_cxx_pre
97723: b_c_meta=$shared_c_meta
97724: b_cxx_meta=$shared_cxx_meta
97725: b_c_post=$shared_c_post
97726: b_cxx_post=$shared_cxx_post
97727: b_lo=$shared_lo
97728:
97729:
97730: old_IFS=$IFS
97731: for ac_src in sysvshm.c; do
97732:
97733: IFS=.
97734: set $ac_src
97735: ac_obj=$1
97736: IFS=$old_IFS
97737:
97738: shared_objects_sysvshm="$shared_objects_sysvshm $ac_bdir$ac_obj.lo"
97739:
97740: case $ac_src in
97741: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
97742: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
97743: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
97744: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
97745: esac
97746:
97747: cat >>Makefile.objects<<EOF
97748: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
97749: $ac_comp
97750: EOF
97751: done
97752:
97753: case $host_alias in
97754: *netware*)
97755:
97756: install_modules="install-modules"
97757:
97758: case $host_alias in
97759: *aix*)
97760: suffix=so
97761: 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'
97762: ;;
97763: *netware*)
97764: suffix=nlm
97765: link_cmd='$(LIBTOOL) --mode=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)'
97766: ;;
97767: *)
97768: suffix=la
97769: link_cmd='$(LIBTOOL) --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)'
97770: ;;
97771: esac
97772:
97773: if test "x" = "xyes"; then
97774: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpsysvshm.$suffix"
97775: else
97776: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpsysvshm.$suffix"
97777: fi
97778:
97779: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_sysvshm"
97780:
97781: cat >>Makefile.objects<<EOF
97782: \$(phplibdir)/phpsysvshm.$suffix: $ext_builddir/phpsysvshm.$suffix
97783: \$(LIBTOOL) --mode=install cp $ext_builddir/phpsysvshm.$suffix \$(phplibdir)
97784:
97785: $ext_builddir/phpsysvshm.$suffix: \$(shared_objects_sysvshm) \$(PHPSYSVSHM_SHARED_DEPENDENCIES)
97786: $link_cmd
97787:
97788: EOF
97789:
97790: ;;
97791: *)
97792:
97793: install_modules="install-modules"
97794:
97795: case $host_alias in
97796: *aix*)
97797: suffix=so
97798: 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'
97799: ;;
97800: *netware*)
97801: suffix=nlm
97802: link_cmd='$(LIBTOOL) --mode=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)'
97803: ;;
97804: *)
97805: suffix=la
97806: link_cmd='$(LIBTOOL) --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)'
97807: ;;
97808: esac
97809:
97810: if test "x" = "xyes"; then
97811: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/sysvshm.$suffix"
97812: else
97813: PHP_MODULES="$PHP_MODULES \$(phplibdir)/sysvshm.$suffix"
97814: fi
97815:
97816: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_sysvshm"
97817:
97818: cat >>Makefile.objects<<EOF
97819: \$(phplibdir)/sysvshm.$suffix: $ext_builddir/sysvshm.$suffix
97820: \$(LIBTOOL) --mode=install cp $ext_builddir/sysvshm.$suffix \$(phplibdir)
97821:
97822: $ext_builddir/sysvshm.$suffix: \$(shared_objects_sysvshm) \$(SYSVSHM_SHARED_DEPENDENCIES)
97823: $link_cmd
97824:
97825: EOF
97826:
97827: ;;
97828: esac
97829:
97830: cat >>confdefs.h <<_ACEOF
97831: #define COMPILE_DL_SYSVSHM 1
97832: _ACEOF
97833:
97834: fi
97835: fi
97836:
97837: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
97838: PHP_SYSVSHM_SHARED=no
97839:
97840:
97841: case ext/sysvshm in
97842: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
97843: /*) ac_srcdir=`echo "ext/sysvshm"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
97844: *) ac_srcdir="$abs_srcdir/ext/sysvshm/"; ac_bdir="ext/sysvshm/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
97845: esac
97846:
97847:
97848:
97849: b_c_pre=$php_c_pre
97850: b_cxx_pre=$php_cxx_pre
97851: b_c_meta=$php_c_meta
97852: b_cxx_meta=$php_cxx_meta
97853: b_c_post=$php_c_post
97854: b_cxx_post=$php_cxx_post
97855: b_lo=$php_lo
97856:
97857:
97858: old_IFS=$IFS
97859: for ac_src in sysvshm.c; do
97860:
97861: IFS=.
97862: set $ac_src
97863: ac_obj=$1
97864: IFS=$old_IFS
97865:
97866: PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
97867:
97868: case $ac_src in
97869: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
97870: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
97871: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
97872: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
97873: esac
97874:
97875: cat >>Makefile.objects<<EOF
97876: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
97877: $ac_comp
97878: EOF
97879: done
97880:
97881:
97882:
97883:
97884: case ext/sysvshm in
97885: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
97886: /*) ac_srcdir=`echo "ext/sysvshm"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
97887: *) ac_srcdir="$abs_srcdir/ext/sysvshm/"; ac_bdir="ext/sysvshm/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
97888: esac
97889:
97890:
97891:
97892: b_c_pre=$php_c_pre
97893: b_cxx_pre=$php_cxx_pre
97894: b_c_meta=$php_c_meta
97895: b_cxx_meta=$php_cxx_meta
97896: b_c_post=$php_c_post
97897: b_cxx_post=$php_cxx_post
97898: b_lo=$php_lo
97899:
97900:
97901: old_IFS=$IFS
97902: for ac_src in sysvshm.c; do
97903:
97904: IFS=.
97905: set $ac_src
97906: ac_obj=$1
97907: IFS=$old_IFS
97908:
97909: PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo"
97910:
97911: case $ac_src in
97912: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
97913: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
97914: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
97915: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
97916: esac
97917:
97918: cat >>Makefile.objects<<EOF
97919: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
97920: $ac_comp
97921: EOF
97922: done
97923:
97924:
97925:
97926:
97927: case ext/sysvshm in
97928: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
97929: /*) ac_srcdir=`echo "ext/sysvshm"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
97930: *) ac_srcdir="$abs_srcdir/ext/sysvshm/"; ac_bdir="ext/sysvshm/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
97931: esac
97932:
97933:
97934:
97935: b_c_pre=$php_c_pre
97936: b_cxx_pre=$php_cxx_pre
97937: b_c_meta=$php_c_meta
97938: b_cxx_meta=$php_cxx_meta
97939: b_c_post=$php_c_post
97940: b_cxx_post=$php_cxx_post
97941: b_lo=$php_lo
97942:
97943:
97944: old_IFS=$IFS
97945: for ac_src in sysvshm.c; do
97946:
97947: IFS=.
97948: set $ac_src
97949: ac_obj=$1
97950: IFS=$old_IFS
97951:
97952: PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo"
97953:
97954: case $ac_src in
97955: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
97956: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
97957: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
97958: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
97959: esac
97960:
97961: cat >>Makefile.objects<<EOF
97962: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
97963: $ac_comp
97964: EOF
97965: done
97966:
97967:
97968: EXT_CLI_STATIC="$EXT_CLI_STATIC sysvshm"
97969: fi
97970:
97971:
97972: BUILD_DIR="$BUILD_DIR $ext_builddir"
97973:
97974:
97975:
97976: if test "$ext_builddir" = "."; then
97977: PHP_PECL_EXTENSION=sysvshm
97978:
97979: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
97980:
97981: fi
97982:
97983: fi
97984:
97985:
97986:
97987: php_with_tidy=no
97988:
97989: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIDY support" >&5
97990: $as_echo_n "checking for TIDY support... " >&6; }
97991:
97992: # Check whether --with-tidy was given.
97993: if test "${with_tidy+set}" = set; then :
97994: withval=$with_tidy; PHP_TIDY=$withval
97995: else
97996:
97997: PHP_TIDY=no
97998: test "$PHP_ENABLE_ALL" && PHP_TIDY=$PHP_ENABLE_ALL
97999:
98000: fi
98001:
98002:
98003:
98004: ext_output="yes, shared"
98005: ext_shared=yes
98006: case $PHP_TIDY in
98007: shared,*)
98008: PHP_TIDY=`echo "$PHP_TIDY"|$SED 's/^shared,//'`
98009: ;;
98010: shared)
98011: PHP_TIDY=yes
98012: ;;
98013: no)
98014: ext_output=no
98015: ext_shared=no
98016: ;;
98017: *)
98018: ext_output=yes
98019: ext_shared=no
98020: ;;
98021: esac
98022:
98023:
98024:
98025: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
98026: $as_echo "$ext_output" >&6; }
98027:
98028:
98029:
98030:
98031: if test "$PHP_TIDY" != "no"; then
98032:
98033: if test "$PHP_TIDY" != "yes"; then
98034: TIDY_SEARCH_DIRS=$PHP_TIDY
98035: else
98036: TIDY_SEARCH_DIRS="/usr/local /usr"
98037: fi
98038:
98039: for i in $TIDY_SEARCH_DIRS; do
98040: if test -f $i/include/tidy/tidy.h; then
98041: TIDY_DIR=$i
98042: TIDY_INCDIR=$i/include/tidy
98043: elif test -f $i/include/tidy.h; then
98044: TIDY_DIR=$i
98045: TIDY_INCDIR=$i/include
98046: fi
98047: done
98048:
98049: if test -z "$TIDY_DIR"; then
98050: as_fn_error $? "Cannot find libtidy" "$LINENO" 5
98051: fi
98052:
98053: TIDY_LIBDIR=$TIDY_DIR/$PHP_LIBDIR
98054:
98055:
98056:
98057: if test "$ext_shared" = "yes"; then
98058: TIDY_SHARED_LIBADD="-ltidy $TIDY_SHARED_LIBADD"
98059: if test -n "$TIDY_LIBDIR"; then
98060:
98061: if test "$TIDY_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$TIDY_LIBDIR" != "/usr/lib"; then
98062:
98063: if test -z "$TIDY_LIBDIR" || echo "$TIDY_LIBDIR" | grep '^/' >/dev/null ; then
98064: ai_p=$TIDY_LIBDIR
98065: else
98066:
98067: ep_dir="`echo $TIDY_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
98068:
98069: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
98070: ai_p="$ep_realdir/`basename \"$TIDY_LIBDIR\"`"
98071: fi
98072:
98073:
98074: if test "$ext_shared" = "yes"; then
98075: TIDY_SHARED_LIBADD="-L$ai_p $TIDY_SHARED_LIBADD"
98076: test -n "$ld_runpath_switch" && TIDY_SHARED_LIBADD="$ld_runpath_switch$ai_p $TIDY_SHARED_LIBADD"
98077: else
98078:
98079:
98080:
98081: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
98082:
98083: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
98084: if test -n "$unique" && test "`eval $cmd`" = "" ; then
98085: eval "LIBPATH$unique=set"
98086:
98087: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
98088: LDFLAGS="$LDFLAGS -L$ai_p"
98089: PHP_RPATHS="$PHP_RPATHS $ai_p"
98090:
98091: fi
98092:
98093:
98094: fi
98095:
98096: fi
98097:
98098: fi
98099: else
98100:
98101:
98102: if test -n "$TIDY_LIBDIR"; then
98103:
98104: if test "$TIDY_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$TIDY_LIBDIR" != "/usr/lib"; then
98105:
98106: if test -z "$TIDY_LIBDIR" || echo "$TIDY_LIBDIR" | grep '^/' >/dev/null ; then
98107: ai_p=$TIDY_LIBDIR
98108: else
98109:
98110: ep_dir="`echo $TIDY_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
98111:
98112: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
98113: ai_p="$ep_realdir/`basename \"$TIDY_LIBDIR\"`"
98114: fi
98115:
98116:
98117:
98118:
98119:
98120: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
98121:
98122: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
98123: if test -n "$unique" && test "`eval $cmd`" = "" ; then
98124: eval "LIBPATH$unique=set"
98125:
98126: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
98127: LDFLAGS="$LDFLAGS -L$ai_p"
98128: PHP_RPATHS="$PHP_RPATHS $ai_p"
98129:
98130: fi
98131:
98132:
98133:
98134: fi
98135:
98136: fi
98137:
98138:
98139: case tidy in
98140: c|c_r|pthread*) ;;
98141: *)
98142: LIBS="-ltidy $LIBS"
98143: ;;
98144: esac
98145:
98146:
98147:
98148:
98149: fi
98150:
98151:
98152:
98153: if test "$TIDY_INCDIR" != "/usr/include"; then
98154:
98155: if test -z "$TIDY_INCDIR" || echo "$TIDY_INCDIR" | grep '^/' >/dev/null ; then
98156: ai_p=$TIDY_INCDIR
98157: else
98158:
98159: ep_dir="`echo $TIDY_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`"
98160:
98161: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
98162: ai_p="$ep_realdir/`basename \"$TIDY_INCDIR\"`"
98163: fi
98164:
98165:
98166:
98167: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
98168:
98169: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
98170: if test -n "$unique" && test "`eval $cmd`" = "" ; then
98171: eval "INCLUDEPATH$unique=set"
98172:
98173: if test ""; then
98174: INCLUDES="-I$ai_p $INCLUDES"
98175: else
98176: INCLUDES="$INCLUDES -I$ai_p"
98177: fi
98178:
98179: fi
98180:
98181: fi
98182:
98183:
98184:
98185: save_old_LDFLAGS=$LDFLAGS
98186: ac_stuff=""
98187:
98188: save_ext_shared=$ext_shared
98189: ext_shared=yes
98190:
98191: for ac_i in $ac_stuff; do
98192: case $ac_i in
98193: -pthread)
98194: if test "$ext_shared" = "yes"; then
98195: LDFLAGS="$LDFLAGS -pthread"
98196: else
98197:
98198:
98199: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
98200:
98201: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
98202: if test -n "$unique" && test "`eval $cmd`" = "" ; then
98203: eval "EXTRA_LDFLAGS$unique=set"
98204: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
98205: fi
98206:
98207: fi
98208: ;;
98209: -l*)
98210: ac_ii=`echo $ac_i|cut -c 3-`
98211:
98212:
98213: case $ac_ii in
98214: c|c_r|pthread*) ;;
98215: *)
98216: if test "$ext_shared" = "yes"; then
98217: LDFLAGS="$LDFLAGS -l$ac_ii"
98218: else
98219:
98220:
98221: case $ac_ii in
98222: c|c_r|pthread*) ;;
98223: *)
98224: LIBS="$LIBS -l$ac_ii"
98225: ;;
98226: esac
98227:
98228:
98229: fi
98230: ;;
98231: esac
98232:
98233:
98234: ;;
98235: -L*)
98236: ac_ii=`echo $ac_i|cut -c 3-`
98237:
98238: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
98239:
98240: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
98241: ai_p=$ac_ii
98242: else
98243:
98244: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
98245:
98246: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
98247: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
98248: fi
98249:
98250:
98251: if test "$ext_shared" = "yes"; then
98252: LDFLAGS="-L$ai_p $LDFLAGS"
98253: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
98254: else
98255:
98256:
98257:
98258: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
98259:
98260: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
98261: if test -n "$unique" && test "`eval $cmd`" = "" ; then
98262: eval "LIBPATH$unique=set"
98263:
98264: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
98265: LDFLAGS="$LDFLAGS -L$ai_p"
98266: PHP_RPATHS="$PHP_RPATHS $ai_p"
98267:
98268: fi
98269:
98270:
98271: fi
98272:
98273: fi
98274:
98275: ;;
98276: esac
98277: done
98278:
98279: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tidyOptGetDoc in -ltidy" >&5
98280: $as_echo_n "checking for tidyOptGetDoc in -ltidy... " >&6; }
98281: if ${ac_cv_lib_tidy_tidyOptGetDoc+:} false; then :
98282: $as_echo_n "(cached) " >&6
98283: else
98284: ac_check_lib_save_LIBS=$LIBS
98285: LIBS="-ltidy $LIBS"
98286: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
98287: /* end confdefs.h. */
98288:
98289: /* Override any GCC internal prototype to avoid an error.
98290: Use char because int might match the return type of a GCC
98291: builtin and then its argument prototype would still apply. */
98292: #ifdef __cplusplus
98293: extern "C"
98294: #endif
98295: char tidyOptGetDoc ();
98296: int
98297: main ()
98298: {
98299: return tidyOptGetDoc ();
98300: ;
98301: return 0;
98302: }
98303: _ACEOF
98304: if ac_fn_c_try_link "$LINENO"; then :
98305: ac_cv_lib_tidy_tidyOptGetDoc=yes
98306: else
98307: ac_cv_lib_tidy_tidyOptGetDoc=no
98308: fi
98309: rm -f core conftest.err conftest.$ac_objext \
98310: conftest$ac_exeext conftest.$ac_ext
98311: LIBS=$ac_check_lib_save_LIBS
98312: fi
98313: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tidy_tidyOptGetDoc" >&5
98314: $as_echo "$ac_cv_lib_tidy_tidyOptGetDoc" >&6; }
98315: if test "x$ac_cv_lib_tidy_tidyOptGetDoc" = xyes; then :
98316:
98317: LDFLAGS=$save_old_LDFLAGS
98318: ext_shared=$save_ext_shared
98319:
98320:
98321: $as_echo "#define HAVE_TIDYOPTGETDOC 1" >>confdefs.h
98322:
98323:
98324:
98325: else
98326:
98327: LDFLAGS=$save_old_LDFLAGS
98328: ext_shared=$save_ext_shared
98329: unset ac_cv_lib_tidy_tidyOptGetDoc
98330:
98331:
98332: fi
98333:
98334:
98335:
98336:
98337: ext_builddir=ext/tidy
98338: ext_srcdir=$abs_srcdir/ext/tidy
98339:
98340: ac_extra=
98341:
98342: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
98343: PHP_TIDY_SHARED=no
98344:
98345:
98346: case ext/tidy in
98347: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
98348: /*) ac_srcdir=`echo "ext/tidy"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
98349: *) ac_srcdir="$abs_srcdir/ext/tidy/"; ac_bdir="ext/tidy/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
98350: esac
98351:
98352:
98353:
98354: b_c_pre=$php_c_pre
98355: b_cxx_pre=$php_cxx_pre
98356: b_c_meta=$php_c_meta
98357: b_cxx_meta=$php_cxx_meta
98358: b_c_post=$php_c_post
98359: b_cxx_post=$php_cxx_post
98360: b_lo=$php_lo
98361:
98362:
98363: old_IFS=$IFS
98364: for ac_src in tidy.c; do
98365:
98366: IFS=.
98367: set $ac_src
98368: ac_obj=$1
98369: IFS=$old_IFS
98370:
98371: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
98372:
98373: case $ac_src in
98374: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
98375: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
98376: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
98377: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
98378: esac
98379:
98380: cat >>Makefile.objects<<EOF
98381: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
98382: $ac_comp
98383: EOF
98384: done
98385:
98386:
98387: EXT_STATIC="$EXT_STATIC tidy"
98388: if test "$ext_shared" != "nocli"; then
98389: EXT_CLI_STATIC="$EXT_CLI_STATIC tidy"
98390: fi
98391: else
98392: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
98393: PHP_TIDY_SHARED=yes
98394:
98395: case ext/tidy in
98396: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
98397: /*) ac_srcdir=`echo "ext/tidy"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
98398: *) ac_srcdir="$abs_srcdir/ext/tidy/"; ac_bdir="ext/tidy/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
98399: esac
98400:
98401:
98402:
98403: b_c_pre=$shared_c_pre
98404: b_cxx_pre=$shared_cxx_pre
98405: b_c_meta=$shared_c_meta
98406: b_cxx_meta=$shared_cxx_meta
98407: b_c_post=$shared_c_post
98408: b_cxx_post=$shared_cxx_post
98409: b_lo=$shared_lo
98410:
98411:
98412: old_IFS=$IFS
98413: for ac_src in tidy.c; do
98414:
98415: IFS=.
98416: set $ac_src
98417: ac_obj=$1
98418: IFS=$old_IFS
98419:
98420: shared_objects_tidy="$shared_objects_tidy $ac_bdir$ac_obj.lo"
98421:
98422: case $ac_src in
98423: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
98424: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
98425: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
98426: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
98427: esac
98428:
98429: cat >>Makefile.objects<<EOF
98430: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
98431: $ac_comp
98432: EOF
98433: done
98434:
98435: case $host_alias in
98436: *netware*)
98437:
98438: install_modules="install-modules"
98439:
98440: case $host_alias in
98441: *aix*)
98442: suffix=so
98443: 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'
98444: ;;
98445: *netware*)
98446: suffix=nlm
98447: link_cmd='$(LIBTOOL) --mode=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)'
98448: ;;
98449: *)
98450: suffix=la
98451: link_cmd='$(LIBTOOL) --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)'
98452: ;;
98453: esac
98454:
98455: if test "x" = "xyes"; then
98456: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phptidy.$suffix"
98457: else
98458: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phptidy.$suffix"
98459: fi
98460:
98461: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_tidy"
98462:
98463: cat >>Makefile.objects<<EOF
98464: \$(phplibdir)/phptidy.$suffix: $ext_builddir/phptidy.$suffix
98465: \$(LIBTOOL) --mode=install cp $ext_builddir/phptidy.$suffix \$(phplibdir)
98466:
98467: $ext_builddir/phptidy.$suffix: \$(shared_objects_tidy) \$(PHPTIDY_SHARED_DEPENDENCIES)
98468: $link_cmd
98469:
98470: EOF
98471:
98472: ;;
98473: *)
98474:
98475: install_modules="install-modules"
98476:
98477: case $host_alias in
98478: *aix*)
98479: suffix=so
98480: 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'
98481: ;;
98482: *netware*)
98483: suffix=nlm
98484: link_cmd='$(LIBTOOL) --mode=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)'
98485: ;;
98486: *)
98487: suffix=la
98488: link_cmd='$(LIBTOOL) --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)'
98489: ;;
98490: esac
98491:
98492: if test "x" = "xyes"; then
98493: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/tidy.$suffix"
98494: else
98495: PHP_MODULES="$PHP_MODULES \$(phplibdir)/tidy.$suffix"
98496: fi
98497:
98498: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_tidy"
98499:
98500: cat >>Makefile.objects<<EOF
98501: \$(phplibdir)/tidy.$suffix: $ext_builddir/tidy.$suffix
98502: \$(LIBTOOL) --mode=install cp $ext_builddir/tidy.$suffix \$(phplibdir)
98503:
98504: $ext_builddir/tidy.$suffix: \$(shared_objects_tidy) \$(TIDY_SHARED_DEPENDENCIES)
98505: $link_cmd
98506:
98507: EOF
98508:
98509: ;;
98510: esac
98511:
98512: cat >>confdefs.h <<_ACEOF
98513: #define COMPILE_DL_TIDY 1
98514: _ACEOF
98515:
98516: fi
98517: fi
98518:
98519: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
98520: PHP_TIDY_SHARED=no
98521:
98522:
98523: case ext/tidy in
98524: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
98525: /*) ac_srcdir=`echo "ext/tidy"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
98526: *) ac_srcdir="$abs_srcdir/ext/tidy/"; ac_bdir="ext/tidy/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
98527: esac
98528:
98529:
98530:
98531: b_c_pre=$php_c_pre
98532: b_cxx_pre=$php_cxx_pre
98533: b_c_meta=$php_c_meta
98534: b_cxx_meta=$php_cxx_meta
98535: b_c_post=$php_c_post
98536: b_cxx_post=$php_cxx_post
98537: b_lo=$php_lo
98538:
98539:
98540: old_IFS=$IFS
98541: for ac_src in tidy.c; do
98542:
98543: IFS=.
98544: set $ac_src
98545: ac_obj=$1
98546: IFS=$old_IFS
98547:
98548: PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
98549:
98550: case $ac_src in
98551: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
98552: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
98553: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
98554: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
98555: esac
98556:
98557: cat >>Makefile.objects<<EOF
98558: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
98559: $ac_comp
98560: EOF
98561: done
98562:
98563:
98564:
98565:
98566: case ext/tidy in
98567: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
98568: /*) ac_srcdir=`echo "ext/tidy"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
98569: *) ac_srcdir="$abs_srcdir/ext/tidy/"; ac_bdir="ext/tidy/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
98570: esac
98571:
98572:
98573:
98574: b_c_pre=$php_c_pre
98575: b_cxx_pre=$php_cxx_pre
98576: b_c_meta=$php_c_meta
98577: b_cxx_meta=$php_cxx_meta
98578: b_c_post=$php_c_post
98579: b_cxx_post=$php_cxx_post
98580: b_lo=$php_lo
98581:
98582:
98583: old_IFS=$IFS
98584: for ac_src in tidy.c; do
98585:
98586: IFS=.
98587: set $ac_src
98588: ac_obj=$1
98589: IFS=$old_IFS
98590:
98591: PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo"
98592:
98593: case $ac_src in
98594: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
98595: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
98596: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
98597: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
98598: esac
98599:
98600: cat >>Makefile.objects<<EOF
98601: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
98602: $ac_comp
98603: EOF
98604: done
98605:
98606:
98607:
98608:
98609: case ext/tidy in
98610: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
98611: /*) ac_srcdir=`echo "ext/tidy"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
98612: *) ac_srcdir="$abs_srcdir/ext/tidy/"; ac_bdir="ext/tidy/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
98613: esac
98614:
98615:
98616:
98617: b_c_pre=$php_c_pre
98618: b_cxx_pre=$php_cxx_pre
98619: b_c_meta=$php_c_meta
98620: b_cxx_meta=$php_cxx_meta
98621: b_c_post=$php_c_post
98622: b_cxx_post=$php_cxx_post
98623: b_lo=$php_lo
98624:
98625:
98626: old_IFS=$IFS
98627: for ac_src in tidy.c; do
98628:
98629: IFS=.
98630: set $ac_src
98631: ac_obj=$1
98632: IFS=$old_IFS
98633:
98634: PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo"
98635:
98636: case $ac_src in
98637: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
98638: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
98639: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
98640: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
98641: esac
98642:
98643: cat >>Makefile.objects<<EOF
98644: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
98645: $ac_comp
98646: EOF
98647: done
98648:
98649:
98650: EXT_CLI_STATIC="$EXT_CLI_STATIC tidy"
98651: fi
98652:
98653:
98654: BUILD_DIR="$BUILD_DIR $ext_builddir"
98655:
98656:
98657:
98658: if test "$ext_builddir" = "."; then
98659: PHP_PECL_EXTENSION=tidy
98660:
98661: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
98662:
98663: fi
98664:
98665:
98666: PHP_VAR_SUBST="$PHP_VAR_SUBST TIDY_SHARED_LIBADD"
98667:
98668:
98669: $as_echo "#define HAVE_TIDY 1" >>confdefs.h
98670:
98671: fi
98672:
98673:
98674:
98675:
98676: php_enable_tokenizer=yes
98677:
98678: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable tokenizer support" >&5
98679: $as_echo_n "checking whether to enable tokenizer support... " >&6; }
98680: # Check whether --enable-tokenizer was given.
98681: if test "${enable_tokenizer+set}" = set; then :
98682: enableval=$enable_tokenizer; PHP_TOKENIZER=$enableval
98683: else
98684:
98685: PHP_TOKENIZER=yes
98686: test "$PHP_ENABLE_ALL" && PHP_TOKENIZER=$PHP_ENABLE_ALL
98687:
98688: fi
98689:
98690:
98691:
98692: ext_output="yes, shared"
98693: ext_shared=yes
98694: case $PHP_TOKENIZER in
98695: shared,*)
98696: PHP_TOKENIZER=`echo "$PHP_TOKENIZER"|$SED 's/^shared,//'`
98697: ;;
98698: shared)
98699: PHP_TOKENIZER=yes
98700: ;;
98701: no)
98702: ext_output=no
98703: ext_shared=no
98704: ;;
98705: *)
98706: ext_output=yes
98707: ext_shared=no
98708: ;;
98709: esac
98710:
98711:
98712:
98713: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
98714: $as_echo "$ext_output" >&6; }
98715:
98716:
98717:
98718:
98719: if test "$PHP_TOKENIZER" != "no"; then
98720:
98721: ext_builddir=ext/tokenizer
98722: ext_srcdir=$abs_srcdir/ext/tokenizer
98723:
98724: ac_extra=
98725:
98726: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
98727: PHP_TOKENIZER_SHARED=no
98728:
98729:
98730: case ext/tokenizer in
98731: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
98732: /*) ac_srcdir=`echo "ext/tokenizer"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
98733: *) ac_srcdir="$abs_srcdir/ext/tokenizer/"; ac_bdir="ext/tokenizer/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
98734: esac
98735:
98736:
98737:
98738: b_c_pre=$php_c_pre
98739: b_cxx_pre=$php_cxx_pre
98740: b_c_meta=$php_c_meta
98741: b_cxx_meta=$php_cxx_meta
98742: b_c_post=$php_c_post
98743: b_cxx_post=$php_cxx_post
98744: b_lo=$php_lo
98745:
98746:
98747: old_IFS=$IFS
98748: for ac_src in tokenizer.c tokenizer_data.c; do
98749:
98750: IFS=.
98751: set $ac_src
98752: ac_obj=$1
98753: IFS=$old_IFS
98754:
98755: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
98756:
98757: case $ac_src in
98758: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
98759: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
98760: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
98761: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
98762: esac
98763:
98764: cat >>Makefile.objects<<EOF
98765: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
98766: $ac_comp
98767: EOF
98768: done
98769:
98770:
98771: EXT_STATIC="$EXT_STATIC tokenizer"
98772: if test "$ext_shared" != "nocli"; then
98773: EXT_CLI_STATIC="$EXT_CLI_STATIC tokenizer"
98774: fi
98775: else
98776: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
98777: PHP_TOKENIZER_SHARED=yes
98778:
98779: case ext/tokenizer in
98780: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
98781: /*) ac_srcdir=`echo "ext/tokenizer"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
98782: *) ac_srcdir="$abs_srcdir/ext/tokenizer/"; ac_bdir="ext/tokenizer/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
98783: esac
98784:
98785:
98786:
98787: b_c_pre=$shared_c_pre
98788: b_cxx_pre=$shared_cxx_pre
98789: b_c_meta=$shared_c_meta
98790: b_cxx_meta=$shared_cxx_meta
98791: b_c_post=$shared_c_post
98792: b_cxx_post=$shared_cxx_post
98793: b_lo=$shared_lo
98794:
98795:
98796: old_IFS=$IFS
98797: for ac_src in tokenizer.c tokenizer_data.c; do
98798:
98799: IFS=.
98800: set $ac_src
98801: ac_obj=$1
98802: IFS=$old_IFS
98803:
98804: shared_objects_tokenizer="$shared_objects_tokenizer $ac_bdir$ac_obj.lo"
98805:
98806: case $ac_src in
98807: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
98808: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
98809: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
98810: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
98811: esac
98812:
98813: cat >>Makefile.objects<<EOF
98814: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
98815: $ac_comp
98816: EOF
98817: done
98818:
98819: case $host_alias in
98820: *netware*)
98821:
98822: install_modules="install-modules"
98823:
98824: case $host_alias in
98825: *aix*)
98826: suffix=so
98827: 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'
98828: ;;
98829: *netware*)
98830: suffix=nlm
98831: link_cmd='$(LIBTOOL) --mode=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)'
98832: ;;
98833: *)
98834: suffix=la
98835: link_cmd='$(LIBTOOL) --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)'
98836: ;;
98837: esac
98838:
98839: if test "x" = "xyes"; then
98840: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phptokenizer.$suffix"
98841: else
98842: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phptokenizer.$suffix"
98843: fi
98844:
98845: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_tokenizer"
98846:
98847: cat >>Makefile.objects<<EOF
98848: \$(phplibdir)/phptokenizer.$suffix: $ext_builddir/phptokenizer.$suffix
98849: \$(LIBTOOL) --mode=install cp $ext_builddir/phptokenizer.$suffix \$(phplibdir)
98850:
98851: $ext_builddir/phptokenizer.$suffix: \$(shared_objects_tokenizer) \$(PHPTOKENIZER_SHARED_DEPENDENCIES)
98852: $link_cmd
98853:
98854: EOF
98855:
98856: ;;
98857: *)
98858:
98859: install_modules="install-modules"
98860:
98861: case $host_alias in
98862: *aix*)
98863: suffix=so
98864: 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'
98865: ;;
98866: *netware*)
98867: suffix=nlm
98868: link_cmd='$(LIBTOOL) --mode=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)'
98869: ;;
98870: *)
98871: suffix=la
98872: link_cmd='$(LIBTOOL) --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)'
98873: ;;
98874: esac
98875:
98876: if test "x" = "xyes"; then
98877: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/tokenizer.$suffix"
98878: else
98879: PHP_MODULES="$PHP_MODULES \$(phplibdir)/tokenizer.$suffix"
98880: fi
98881:
98882: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_tokenizer"
98883:
98884: cat >>Makefile.objects<<EOF
98885: \$(phplibdir)/tokenizer.$suffix: $ext_builddir/tokenizer.$suffix
98886: \$(LIBTOOL) --mode=install cp $ext_builddir/tokenizer.$suffix \$(phplibdir)
98887:
98888: $ext_builddir/tokenizer.$suffix: \$(shared_objects_tokenizer) \$(TOKENIZER_SHARED_DEPENDENCIES)
98889: $link_cmd
98890:
98891: EOF
98892:
98893: ;;
98894: esac
98895:
98896: cat >>confdefs.h <<_ACEOF
98897: #define COMPILE_DL_TOKENIZER 1
98898: _ACEOF
98899:
98900: fi
98901: fi
98902:
98903: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
98904: PHP_TOKENIZER_SHARED=no
98905:
98906:
98907: case ext/tokenizer in
98908: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
98909: /*) ac_srcdir=`echo "ext/tokenizer"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
98910: *) ac_srcdir="$abs_srcdir/ext/tokenizer/"; ac_bdir="ext/tokenizer/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
98911: esac
98912:
98913:
98914:
98915: b_c_pre=$php_c_pre
98916: b_cxx_pre=$php_cxx_pre
98917: b_c_meta=$php_c_meta
98918: b_cxx_meta=$php_cxx_meta
98919: b_c_post=$php_c_post
98920: b_cxx_post=$php_cxx_post
98921: b_lo=$php_lo
98922:
98923:
98924: old_IFS=$IFS
98925: for ac_src in tokenizer.c tokenizer_data.c; do
98926:
98927: IFS=.
98928: set $ac_src
98929: ac_obj=$1
98930: IFS=$old_IFS
98931:
98932: PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
98933:
98934: case $ac_src in
98935: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
98936: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
98937: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
98938: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
98939: esac
98940:
98941: cat >>Makefile.objects<<EOF
98942: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
98943: $ac_comp
98944: EOF
98945: done
98946:
98947:
98948:
98949:
98950: case ext/tokenizer in
98951: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
98952: /*) ac_srcdir=`echo "ext/tokenizer"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
98953: *) ac_srcdir="$abs_srcdir/ext/tokenizer/"; ac_bdir="ext/tokenizer/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
98954: esac
98955:
98956:
98957:
98958: b_c_pre=$php_c_pre
98959: b_cxx_pre=$php_cxx_pre
98960: b_c_meta=$php_c_meta
98961: b_cxx_meta=$php_cxx_meta
98962: b_c_post=$php_c_post
98963: b_cxx_post=$php_cxx_post
98964: b_lo=$php_lo
98965:
98966:
98967: old_IFS=$IFS
98968: for ac_src in tokenizer.c tokenizer_data.c; do
98969:
98970: IFS=.
98971: set $ac_src
98972: ac_obj=$1
98973: IFS=$old_IFS
98974:
98975: PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo"
98976:
98977: case $ac_src in
98978: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
98979: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
98980: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
98981: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
98982: esac
98983:
98984: cat >>Makefile.objects<<EOF
98985: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
98986: $ac_comp
98987: EOF
98988: done
98989:
98990:
98991:
98992:
98993: case ext/tokenizer in
98994: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
98995: /*) ac_srcdir=`echo "ext/tokenizer"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
98996: *) ac_srcdir="$abs_srcdir/ext/tokenizer/"; ac_bdir="ext/tokenizer/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
98997: esac
98998:
98999:
99000:
99001: b_c_pre=$php_c_pre
99002: b_cxx_pre=$php_cxx_pre
99003: b_c_meta=$php_c_meta
99004: b_cxx_meta=$php_cxx_meta
99005: b_c_post=$php_c_post
99006: b_cxx_post=$php_cxx_post
99007: b_lo=$php_lo
99008:
99009:
99010: old_IFS=$IFS
99011: for ac_src in tokenizer.c tokenizer_data.c; do
99012:
99013: IFS=.
99014: set $ac_src
99015: ac_obj=$1
99016: IFS=$old_IFS
99017:
99018: PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo"
99019:
99020: case $ac_src in
99021: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
99022: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
99023: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
99024: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
99025: esac
99026:
99027: cat >>Makefile.objects<<EOF
99028: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
99029: $ac_comp
99030: EOF
99031: done
99032:
99033:
99034: EXT_CLI_STATIC="$EXT_CLI_STATIC tokenizer"
99035: fi
99036:
99037:
99038: BUILD_DIR="$BUILD_DIR $ext_builddir"
99039:
99040:
99041:
99042: if test "$ext_builddir" = "."; then
99043: PHP_PECL_EXTENSION=tokenizer
99044:
99045: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
99046:
99047: fi
99048:
99049:
99050: src=$ext_srcdir/Makefile.frag
99051: ac_srcdir=$ext_srcdir
99052: ac_builddir=$ext_builddir
99053: test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments
99054:
99055: fi
99056:
99057:
99058:
99059: php_enable_wddx=no
99060:
99061: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable WDDX support" >&5
99062: $as_echo_n "checking whether to enable WDDX support... " >&6; }
99063: # Check whether --enable-wddx was given.
99064: if test "${enable_wddx+set}" = set; then :
99065: enableval=$enable_wddx; PHP_WDDX=$enableval
99066: else
99067:
99068: PHP_WDDX=no
99069: test "$PHP_ENABLE_ALL" && PHP_WDDX=$PHP_ENABLE_ALL
99070:
99071: fi
99072:
99073:
99074:
99075: ext_output="yes, shared"
99076: ext_shared=yes
99077: case $PHP_WDDX in
99078: shared,*)
99079: PHP_WDDX=`echo "$PHP_WDDX"|$SED 's/^shared,//'`
99080: ;;
99081: shared)
99082: PHP_WDDX=yes
99083: ;;
99084: no)
99085: ext_output=no
99086: ext_shared=no
99087: ;;
99088: *)
99089: ext_output=yes
99090: ext_shared=no
99091: ;;
99092: esac
99093:
99094:
99095:
99096: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
99097: $as_echo "$ext_output" >&6; }
99098:
99099:
99100:
99101:
99102: if test -z "$PHP_LIBXML_DIR"; then
99103:
99104: php_with_libxml_dir=no
99105:
99106: { $as_echo "$as_me:${as_lineno-$LINENO}: checking libxml2 install dir" >&5
99107: $as_echo_n "checking libxml2 install dir... " >&6; }
99108:
99109: # Check whether --with-libxml-dir was given.
99110: if test "${with_libxml_dir+set}" = set; then :
99111: withval=$with_libxml_dir; PHP_LIBXML_DIR=$withval
99112: else
99113:
99114: PHP_LIBXML_DIR=no
99115:
99116:
99117: fi
99118:
99119:
99120: ext_output=$PHP_LIBXML_DIR
99121: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
99122: $as_echo "$ext_output" >&6; }
99123:
99124:
99125:
99126: fi
99127:
99128:
99129: php_with_libexpat_dir=no
99130:
99131: { $as_echo "$as_me:${as_lineno-$LINENO}: checking libexpat dir for WDDX" >&5
99132: $as_echo_n "checking libexpat dir for WDDX... " >&6; }
99133:
99134: # Check whether --with-libexpat-dir was given.
99135: if test "${with_libexpat_dir+set}" = set; then :
99136: withval=$with_libexpat_dir; PHP_LIBEXPAT_DIR=$withval
99137: else
99138:
99139: PHP_LIBEXPAT_DIR=no
99140:
99141:
99142: fi
99143:
99144:
99145: ext_output=$PHP_LIBEXPAT_DIR
99146: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
99147: $as_echo "$ext_output" >&6; }
99148:
99149:
99150:
99151:
99152: if test "$PHP_WDDX" != "no"; then
99153:
99154: if test "$PHP_LIBEXPAT_DIR" = "no"; then
99155: if test "$PHP_LIBXML" = "no"; then
99156: as_fn_error $? "WDDX extension requires LIBXML extension, add --enable-libxml" "$LINENO" 5
99157: fi
99158:
99159:
99160: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xml2-config path" >&5
99161: $as_echo_n "checking for xml2-config path... " >&6; }
99162: if ${ac_cv_php_xml2_config_path+:} false; then :
99163: $as_echo_n "(cached) " >&6
99164: else
99165:
99166: for i in $PHP_LIBXML_DIR /usr/local /usr; do
99167: if test -x "$i/bin/xml2-config"; then
99168: ac_cv_php_xml2_config_path="$i/bin/xml2-config"
99169: break
99170: fi
99171: done
99172:
99173: fi
99174: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_php_xml2_config_path" >&5
99175: $as_echo "$ac_cv_php_xml2_config_path" >&6; }
99176:
99177: if test -x "$ac_cv_php_xml2_config_path"; then
99178: XML2_CONFIG="$ac_cv_php_xml2_config_path"
99179: libxml_full_version=`$XML2_CONFIG --version`
99180: ac_IFS=$IFS
99181: IFS="."
99182: set $libxml_full_version
99183: IFS=$ac_IFS
99184: LIBXML_VERSION=`expr $1 \* 1000000 + $2 \* 1000 + $3`
99185: if test "$LIBXML_VERSION" -ge "2006011"; then
99186: LIBXML_LIBS=`$XML2_CONFIG --libs`
99187: LIBXML_INCS=`$XML2_CONFIG --cflags`
99188:
99189: for ac_i in $LIBXML_LIBS; do
99190: case $ac_i in
99191: -pthread)
99192: if test "$ext_shared" = "yes"; then
99193: WDDX_SHARED_LIBADD="$WDDX_SHARED_LIBADD -pthread"
99194: else
99195:
99196:
99197: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
99198:
99199: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
99200: if test -n "$unique" && test "`eval $cmd`" = "" ; then
99201: eval "EXTRA_LDFLAGS$unique=set"
99202: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
99203: fi
99204:
99205: fi
99206: ;;
99207: -l*)
99208: ac_ii=`echo $ac_i|cut -c 3-`
99209:
99210:
99211: case $ac_ii in
99212: c|c_r|pthread*) ;;
99213: *)
99214: if test "$ext_shared" = "yes"; then
99215: WDDX_SHARED_LIBADD="$WDDX_SHARED_LIBADD -l$ac_ii"
99216: else
99217:
99218:
99219: case $ac_ii in
99220: c|c_r|pthread*) ;;
99221: *)
99222: LIBS="$LIBS -l$ac_ii"
99223: ;;
99224: esac
99225:
99226:
99227: fi
99228: ;;
99229: esac
99230:
99231:
99232: ;;
99233: -L*)
99234: ac_ii=`echo $ac_i|cut -c 3-`
99235:
99236: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
99237:
99238: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
99239: ai_p=$ac_ii
99240: else
99241:
99242: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
99243:
99244: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
99245: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
99246: fi
99247:
99248:
99249: if test "$ext_shared" = "yes"; then
99250: WDDX_SHARED_LIBADD="-L$ai_p $WDDX_SHARED_LIBADD"
99251: test -n "$ld_runpath_switch" && WDDX_SHARED_LIBADD="$ld_runpath_switch$ai_p $WDDX_SHARED_LIBADD"
99252: else
99253:
99254:
99255:
99256: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
99257:
99258: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
99259: if test -n "$unique" && test "`eval $cmd`" = "" ; then
99260: eval "LIBPATH$unique=set"
99261:
99262: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
99263: LDFLAGS="$LDFLAGS -L$ai_p"
99264: PHP_RPATHS="$PHP_RPATHS $ai_p"
99265:
99266: fi
99267:
99268:
99269: fi
99270:
99271: fi
99272:
99273: ;;
99274: esac
99275: done
99276:
99277:
99278: for ac_i in $LIBXML_INCS; do
99279: case $ac_i in
99280: -I*)
99281: ac_ii=`echo $ac_i|cut -c 3-`
99282:
99283: if test "$ac_ii" != "/usr/include"; then
99284:
99285: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
99286: ai_p=$ac_ii
99287: else
99288:
99289: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
99290:
99291: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
99292: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
99293: fi
99294:
99295:
99296:
99297: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
99298:
99299: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
99300: if test -n "$unique" && test "`eval $cmd`" = "" ; then
99301: eval "INCLUDEPATH$unique=set"
99302:
99303: if test ""; then
99304: INCLUDES="-I$ai_p $INCLUDES"
99305: else
99306: INCLUDES="$INCLUDES -I$ai_p"
99307: fi
99308:
99309: fi
99310:
99311: fi
99312:
99313: ;;
99314: esac
99315: done
99316:
99317:
99318: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libxml build works" >&5
99319: $as_echo_n "checking whether libxml build works... " >&6; }
99320: if ${php_cv_libxml_build_works+:} false; then :
99321: $as_echo_n "(cached) " >&6
99322: else
99323:
99324:
99325: old_LIBS=$LIBS
99326: LIBS="
99327: $WDDX_SHARED_LIBADD
99328: $LIBS"
99329: if test "$cross_compiling" = yes; then :
99330:
99331: LIBS=$old_LIBS
99332:
99333: else
99334: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
99335: /* end confdefs.h. */
99336:
99337:
99338: char xmlInitParser();
99339: int main() {
99340: xmlInitParser();
99341: return 0;
99342: }
99343:
99344: _ACEOF
99345: if ac_fn_c_try_run "$LINENO"; then :
99346:
99347: LIBS=$old_LIBS
99348:
99349: php_cv_libxml_build_works=yes
99350:
99351:
99352: else
99353:
99354: LIBS=$old_LIBS
99355:
99356: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
99357: $as_echo "no" >&6; }
99358: as_fn_error $? "build test failed. Please check the config.log for details." "$LINENO" 5
99359:
99360:
99361: fi
99362: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
99363: conftest.$ac_objext conftest.beam conftest.$ac_ext
99364: fi
99365:
99366:
99367:
99368: fi
99369: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_libxml_build_works" >&5
99370: $as_echo "$php_cv_libxml_build_works" >&6; }
99371: if test "$php_cv_libxml_build_works" = "yes"; then
99372:
99373: $as_echo "#define HAVE_LIBXML 1" >>confdefs.h
99374:
99375: fi
99376:
99377: if test "$PHP_XML" = "no"; then
99378:
99379:
99380: case ext/xml in
99381: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
99382: /*) ac_srcdir=`echo "ext/xml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
99383: *) ac_srcdir="$abs_srcdir/ext/xml/"; ac_bdir="ext/xml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
99384: esac
99385:
99386:
99387:
99388: b_c_pre=$php_c_pre
99389: b_cxx_pre=$php_cxx_pre
99390: b_c_meta=$php_c_meta
99391: b_cxx_meta=$php_cxx_meta
99392: b_c_post=$php_c_post
99393: b_cxx_post=$php_cxx_post
99394: b_lo=$php_lo
99395:
99396:
99397: old_IFS=$IFS
99398: for ac_src in compat.c; do
99399:
99400: IFS=.
99401: set $ac_src
99402: ac_obj=$1
99403: IFS=$old_IFS
99404:
99405: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
99406:
99407: case $ac_src in
99408: *.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" ;;
99409: *.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" ;;
99410: *.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" ;;
99411: *.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" ;;
99412: esac
99413:
99414: cat >>Makefile.objects<<EOF
99415: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
99416: $ac_comp
99417: EOF
99418: done
99419:
99420:
99421:
99422:
99423: BUILD_DIR="$BUILD_DIR ext/xml"
99424:
99425:
99426: fi
99427:
99428: else
99429: as_fn_error $? "libxml2 version 2.6.11 or greater required." "$LINENO" 5
99430: fi
99431: else
99432: as_fn_error $? "xml2-config not found. Use --with-libxml-dir=<DIR>" "$LINENO" 5
99433:
99434: fi
99435:
99436: fi
99437:
99438: if test "$PHP_LIBEXPAT_DIR" != "no"; then
99439: for i in $PHP_XML $PHP_LIBEXPAT_DIR /usr /usr/local; do
99440: if test -f "$i/$PHP_LIBDIR/libexpat.a" || test -f "$i/$PHP_LIBDIR/libexpat.$SHLIB_SUFFIX_NAME"; then
99441: EXPAT_DIR=$i
99442: break
99443: fi
99444: done
99445:
99446: if test -z "$EXPAT_DIR"; then
99447: as_fn_error $? "not found. Please reinstall the expat distribution." "$LINENO" 5
99448: fi
99449:
99450:
99451: if test "$EXPAT_DIR/include" != "/usr/include"; then
99452:
99453: if test -z "$EXPAT_DIR/include" || echo "$EXPAT_DIR/include" | grep '^/' >/dev/null ; then
99454: ai_p=$EXPAT_DIR/include
99455: else
99456:
99457: ep_dir="`echo $EXPAT_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
99458:
99459: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
99460: ai_p="$ep_realdir/`basename \"$EXPAT_DIR/include\"`"
99461: fi
99462:
99463:
99464:
99465: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
99466:
99467: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
99468: if test -n "$unique" && test "`eval $cmd`" = "" ; then
99469: eval "INCLUDEPATH$unique=set"
99470:
99471: if test ""; then
99472: INCLUDES="-I$ai_p $INCLUDES"
99473: else
99474: INCLUDES="$INCLUDES -I$ai_p"
99475: fi
99476:
99477: fi
99478:
99479: fi
99480:
99481:
99482:
99483: if test "$ext_shared" = "yes"; then
99484: WDDX_SHARED_LIBADD="-lexpat $WDDX_SHARED_LIBADD"
99485: if test -n "$EXPAT_DIR/$PHP_LIBDIR"; then
99486:
99487: if test "$EXPAT_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$EXPAT_DIR/$PHP_LIBDIR" != "/usr/lib"; then
99488:
99489: if test -z "$EXPAT_DIR/$PHP_LIBDIR" || echo "$EXPAT_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
99490: ai_p=$EXPAT_DIR/$PHP_LIBDIR
99491: else
99492:
99493: ep_dir="`echo $EXPAT_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
99494:
99495: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
99496: ai_p="$ep_realdir/`basename \"$EXPAT_DIR/$PHP_LIBDIR\"`"
99497: fi
99498:
99499:
99500: if test "$ext_shared" = "yes"; then
99501: WDDX_SHARED_LIBADD="-L$ai_p $WDDX_SHARED_LIBADD"
99502: test -n "$ld_runpath_switch" && WDDX_SHARED_LIBADD="$ld_runpath_switch$ai_p $WDDX_SHARED_LIBADD"
99503: else
99504:
99505:
99506:
99507: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
99508:
99509: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
99510: if test -n "$unique" && test "`eval $cmd`" = "" ; then
99511: eval "LIBPATH$unique=set"
99512:
99513: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
99514: LDFLAGS="$LDFLAGS -L$ai_p"
99515: PHP_RPATHS="$PHP_RPATHS $ai_p"
99516:
99517: fi
99518:
99519:
99520: fi
99521:
99522: fi
99523:
99524: fi
99525: else
99526:
99527:
99528: if test -n "$EXPAT_DIR/$PHP_LIBDIR"; then
99529:
99530: if test "$EXPAT_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$EXPAT_DIR/$PHP_LIBDIR" != "/usr/lib"; then
99531:
99532: if test -z "$EXPAT_DIR/$PHP_LIBDIR" || echo "$EXPAT_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
99533: ai_p=$EXPAT_DIR/$PHP_LIBDIR
99534: else
99535:
99536: ep_dir="`echo $EXPAT_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
99537:
99538: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
99539: ai_p="$ep_realdir/`basename \"$EXPAT_DIR/$PHP_LIBDIR\"`"
99540: fi
99541:
99542:
99543:
99544:
99545:
99546: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
99547:
99548: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
99549: if test -n "$unique" && test "`eval $cmd`" = "" ; then
99550: eval "LIBPATH$unique=set"
99551:
99552: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
99553: LDFLAGS="$LDFLAGS -L$ai_p"
99554: PHP_RPATHS="$PHP_RPATHS $ai_p"
99555:
99556: fi
99557:
99558:
99559:
99560: fi
99561:
99562: fi
99563:
99564:
99565: case expat in
99566: c|c_r|pthread*) ;;
99567: *)
99568: LIBS="-lexpat $LIBS"
99569: ;;
99570: esac
99571:
99572:
99573:
99574:
99575: fi
99576:
99577:
99578:
99579: $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
99580:
99581: fi
99582:
99583:
99584: $as_echo "#define HAVE_WDDX 1" >>confdefs.h
99585:
99586:
99587: ext_builddir=ext/wddx
99588: ext_srcdir=$abs_srcdir/ext/wddx
99589:
99590: ac_extra=
99591:
99592: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
99593: PHP_WDDX_SHARED=no
99594:
99595:
99596: case ext/wddx in
99597: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
99598: /*) ac_srcdir=`echo "ext/wddx"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
99599: *) ac_srcdir="$abs_srcdir/ext/wddx/"; ac_bdir="ext/wddx/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
99600: esac
99601:
99602:
99603:
99604: b_c_pre=$php_c_pre
99605: b_cxx_pre=$php_cxx_pre
99606: b_c_meta=$php_c_meta
99607: b_cxx_meta=$php_cxx_meta
99608: b_c_post=$php_c_post
99609: b_cxx_post=$php_cxx_post
99610: b_lo=$php_lo
99611:
99612:
99613: old_IFS=$IFS
99614: for ac_src in wddx.c; do
99615:
99616: IFS=.
99617: set $ac_src
99618: ac_obj=$1
99619: IFS=$old_IFS
99620:
99621: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
99622:
99623: case $ac_src in
99624: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
99625: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
99626: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
99627: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
99628: esac
99629:
99630: cat >>Makefile.objects<<EOF
99631: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
99632: $ac_comp
99633: EOF
99634: done
99635:
99636:
99637: EXT_STATIC="$EXT_STATIC wddx"
99638: if test "$ext_shared" != "nocli"; then
99639: EXT_CLI_STATIC="$EXT_CLI_STATIC wddx"
99640: fi
99641: else
99642: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
99643: PHP_WDDX_SHARED=yes
99644:
99645: case ext/wddx in
99646: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
99647: /*) ac_srcdir=`echo "ext/wddx"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
99648: *) ac_srcdir="$abs_srcdir/ext/wddx/"; ac_bdir="ext/wddx/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
99649: esac
99650:
99651:
99652:
99653: b_c_pre=$shared_c_pre
99654: b_cxx_pre=$shared_cxx_pre
99655: b_c_meta=$shared_c_meta
99656: b_cxx_meta=$shared_cxx_meta
99657: b_c_post=$shared_c_post
99658: b_cxx_post=$shared_cxx_post
99659: b_lo=$shared_lo
99660:
99661:
99662: old_IFS=$IFS
99663: for ac_src in wddx.c; do
99664:
99665: IFS=.
99666: set $ac_src
99667: ac_obj=$1
99668: IFS=$old_IFS
99669:
99670: shared_objects_wddx="$shared_objects_wddx $ac_bdir$ac_obj.lo"
99671:
99672: case $ac_src in
99673: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
99674: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
99675: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
99676: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
99677: esac
99678:
99679: cat >>Makefile.objects<<EOF
99680: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
99681: $ac_comp
99682: EOF
99683: done
99684:
99685: case $host_alias in
99686: *netware*)
99687:
99688: install_modules="install-modules"
99689:
99690: case $host_alias in
99691: *aix*)
99692: suffix=so
99693: 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'
99694: ;;
99695: *netware*)
99696: suffix=nlm
99697: link_cmd='$(LIBTOOL) --mode=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)'
99698: ;;
99699: *)
99700: suffix=la
99701: link_cmd='$(LIBTOOL) --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)'
99702: ;;
99703: esac
99704:
99705: if test "x" = "xyes"; then
99706: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpwddx.$suffix"
99707: else
99708: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpwddx.$suffix"
99709: fi
99710:
99711: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_wddx"
99712:
99713: cat >>Makefile.objects<<EOF
99714: \$(phplibdir)/phpwddx.$suffix: $ext_builddir/phpwddx.$suffix
99715: \$(LIBTOOL) --mode=install cp $ext_builddir/phpwddx.$suffix \$(phplibdir)
99716:
99717: $ext_builddir/phpwddx.$suffix: \$(shared_objects_wddx) \$(PHPWDDX_SHARED_DEPENDENCIES)
99718: $link_cmd
99719:
99720: EOF
99721:
99722: ;;
99723: *)
99724:
99725: install_modules="install-modules"
99726:
99727: case $host_alias in
99728: *aix*)
99729: suffix=so
99730: 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'
99731: ;;
99732: *netware*)
99733: suffix=nlm
99734: link_cmd='$(LIBTOOL) --mode=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)'
99735: ;;
99736: *)
99737: suffix=la
99738: link_cmd='$(LIBTOOL) --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)'
99739: ;;
99740: esac
99741:
99742: if test "x" = "xyes"; then
99743: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/wddx.$suffix"
99744: else
99745: PHP_MODULES="$PHP_MODULES \$(phplibdir)/wddx.$suffix"
99746: fi
99747:
99748: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_wddx"
99749:
99750: cat >>Makefile.objects<<EOF
99751: \$(phplibdir)/wddx.$suffix: $ext_builddir/wddx.$suffix
99752: \$(LIBTOOL) --mode=install cp $ext_builddir/wddx.$suffix \$(phplibdir)
99753:
99754: $ext_builddir/wddx.$suffix: \$(shared_objects_wddx) \$(WDDX_SHARED_DEPENDENCIES)
99755: $link_cmd
99756:
99757: EOF
99758:
99759: ;;
99760: esac
99761:
99762: cat >>confdefs.h <<_ACEOF
99763: #define COMPILE_DL_WDDX 1
99764: _ACEOF
99765:
99766: fi
99767: fi
99768:
99769: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
99770: PHP_WDDX_SHARED=no
99771:
99772:
99773: case ext/wddx in
99774: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
99775: /*) ac_srcdir=`echo "ext/wddx"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
99776: *) ac_srcdir="$abs_srcdir/ext/wddx/"; ac_bdir="ext/wddx/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
99777: esac
99778:
99779:
99780:
99781: b_c_pre=$php_c_pre
99782: b_cxx_pre=$php_cxx_pre
99783: b_c_meta=$php_c_meta
99784: b_cxx_meta=$php_cxx_meta
99785: b_c_post=$php_c_post
99786: b_cxx_post=$php_cxx_post
99787: b_lo=$php_lo
99788:
99789:
99790: old_IFS=$IFS
99791: for ac_src in wddx.c; do
99792:
99793: IFS=.
99794: set $ac_src
99795: ac_obj=$1
99796: IFS=$old_IFS
99797:
99798: PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
99799:
99800: case $ac_src in
99801: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
99802: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
99803: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
99804: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
99805: esac
99806:
99807: cat >>Makefile.objects<<EOF
99808: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
99809: $ac_comp
99810: EOF
99811: done
99812:
99813:
99814:
99815:
99816: case ext/wddx in
99817: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
99818: /*) ac_srcdir=`echo "ext/wddx"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
99819: *) ac_srcdir="$abs_srcdir/ext/wddx/"; ac_bdir="ext/wddx/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
99820: esac
99821:
99822:
99823:
99824: b_c_pre=$php_c_pre
99825: b_cxx_pre=$php_cxx_pre
99826: b_c_meta=$php_c_meta
99827: b_cxx_meta=$php_cxx_meta
99828: b_c_post=$php_c_post
99829: b_cxx_post=$php_cxx_post
99830: b_lo=$php_lo
99831:
99832:
99833: old_IFS=$IFS
99834: for ac_src in wddx.c; do
99835:
99836: IFS=.
99837: set $ac_src
99838: ac_obj=$1
99839: IFS=$old_IFS
99840:
99841: PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo"
99842:
99843: case $ac_src in
99844: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
99845: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
99846: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
99847: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
99848: esac
99849:
99850: cat >>Makefile.objects<<EOF
99851: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
99852: $ac_comp
99853: EOF
99854: done
99855:
99856:
99857:
99858:
99859: case ext/wddx in
99860: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
99861: /*) ac_srcdir=`echo "ext/wddx"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
99862: *) ac_srcdir="$abs_srcdir/ext/wddx/"; ac_bdir="ext/wddx/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
99863: esac
99864:
99865:
99866:
99867: b_c_pre=$php_c_pre
99868: b_cxx_pre=$php_cxx_pre
99869: b_c_meta=$php_c_meta
99870: b_cxx_meta=$php_cxx_meta
99871: b_c_post=$php_c_post
99872: b_cxx_post=$php_cxx_post
99873: b_lo=$php_lo
99874:
99875:
99876: old_IFS=$IFS
99877: for ac_src in wddx.c; do
99878:
99879: IFS=.
99880: set $ac_src
99881: ac_obj=$1
99882: IFS=$old_IFS
99883:
99884: PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo"
99885:
99886: case $ac_src in
99887: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
99888: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
99889: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
99890: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
99891: esac
99892:
99893: cat >>Makefile.objects<<EOF
99894: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
99895: $ac_comp
99896: EOF
99897: done
99898:
99899:
99900: EXT_CLI_STATIC="$EXT_CLI_STATIC wddx"
99901: fi
99902:
99903:
99904: BUILD_DIR="$BUILD_DIR $ext_builddir"
99905:
99906:
99907:
99908: if test "$ext_builddir" = "."; then
99909: PHP_PECL_EXTENSION=wddx
99910:
99911: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
99912:
99913: fi
99914:
99915:
99916: am_i_shared=$PHP_WDDX_SHARED
99917: is_it_shared=$PHP_LIBXML_SHARED
99918: is_it_enabled=$PHP_LIBXML
99919: if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
99920: as_fn_error $? "
99921: You've configured extension wddx to build statically, but it
99922: depends on extension libxml, which you've configured to build shared.
99923: You either need to build wddx shared or build libxml statically for the
99924: build to be successful.
99925: " "$LINENO" 5
99926: fi
99927:
99928:
99929: PHP_VAR_SUBST="$PHP_VAR_SUBST XMLRPC_SHARED_LIBADD"
99930:
99931: fi
99932:
99933:
99934:
99935: php_enable_xml=yes
99936:
99937: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable XML support" >&5
99938: $as_echo_n "checking whether to enable XML support... " >&6; }
99939: # Check whether --enable-xml was given.
99940: if test "${enable_xml+set}" = set; then :
99941: enableval=$enable_xml; PHP_XML=$enableval
99942: else
99943:
99944: PHP_XML=yes
99945: test "$PHP_ENABLE_ALL" && PHP_XML=$PHP_ENABLE_ALL
99946:
99947: fi
99948:
99949:
99950:
99951: ext_output="yes, shared"
99952: ext_shared=yes
99953: case $PHP_XML in
99954: shared,*)
99955: PHP_XML=`echo "$PHP_XML"|$SED 's/^shared,//'`
99956: ;;
99957: shared)
99958: PHP_XML=yes
99959: ;;
99960: no)
99961: ext_output=no
99962: ext_shared=no
99963: ;;
99964: *)
99965: ext_output=yes
99966: ext_shared=no
99967: ;;
99968: esac
99969:
99970:
99971:
99972: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
99973: $as_echo "$ext_output" >&6; }
99974:
99975:
99976:
99977:
99978: if test -z "$PHP_LIBXML_DIR"; then
99979:
99980: php_with_libxml_dir=no
99981:
99982: { $as_echo "$as_me:${as_lineno-$LINENO}: checking libxml2 install dir" >&5
99983: $as_echo_n "checking libxml2 install dir... " >&6; }
99984:
99985: # Check whether --with-libxml-dir was given.
99986: if test "${with_libxml_dir+set}" = set; then :
99987: withval=$with_libxml_dir; PHP_LIBXML_DIR=$withval
99988: else
99989:
99990: PHP_LIBXML_DIR=no
99991:
99992:
99993: fi
99994:
99995:
99996: ext_output=$PHP_LIBXML_DIR
99997: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
99998: $as_echo "$ext_output" >&6; }
99999:
100000:
100001:
100002: fi
100003:
100004:
100005: php_with_libexpat_dir=no
100006:
100007: { $as_echo "$as_me:${as_lineno-$LINENO}: checking libexpat install dir" >&5
100008: $as_echo_n "checking libexpat install dir... " >&6; }
100009:
100010: # Check whether --with-libexpat-dir was given.
100011: if test "${with_libexpat_dir+set}" = set; then :
100012: withval=$with_libexpat_dir; PHP_LIBEXPAT_DIR=$withval
100013: else
100014:
100015: PHP_LIBEXPAT_DIR=no
100016:
100017:
100018: fi
100019:
100020:
100021: ext_output=$PHP_LIBEXPAT_DIR
100022: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
100023: $as_echo "$ext_output" >&6; }
100024:
100025:
100026:
100027:
100028: if test "$PHP_XML" != "no"; then
100029:
100030: if test "$PHP_LIBEXPAT_DIR" = "no"; then
100031:
100032: if test "$PHP_LIBXML" = "no"; then
100033: as_fn_error $? "XML extension requires LIBXML extension, add --enable-libxml" "$LINENO" 5
100034: fi
100035:
100036:
100037: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xml2-config path" >&5
100038: $as_echo_n "checking for xml2-config path... " >&6; }
100039: if ${ac_cv_php_xml2_config_path+:} false; then :
100040: $as_echo_n "(cached) " >&6
100041: else
100042:
100043: for i in $PHP_LIBXML_DIR /usr/local /usr; do
100044: if test -x "$i/bin/xml2-config"; then
100045: ac_cv_php_xml2_config_path="$i/bin/xml2-config"
100046: break
100047: fi
100048: done
100049:
100050: fi
100051: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_php_xml2_config_path" >&5
100052: $as_echo "$ac_cv_php_xml2_config_path" >&6; }
100053:
100054: if test -x "$ac_cv_php_xml2_config_path"; then
100055: XML2_CONFIG="$ac_cv_php_xml2_config_path"
100056: libxml_full_version=`$XML2_CONFIG --version`
100057: ac_IFS=$IFS
100058: IFS="."
100059: set $libxml_full_version
100060: IFS=$ac_IFS
100061: LIBXML_VERSION=`expr $1 \* 1000000 + $2 \* 1000 + $3`
100062: if test "$LIBXML_VERSION" -ge "2006011"; then
100063: LIBXML_LIBS=`$XML2_CONFIG --libs`
100064: LIBXML_INCS=`$XML2_CONFIG --cflags`
100065:
100066: for ac_i in $LIBXML_LIBS; do
100067: case $ac_i in
100068: -pthread)
100069: if test "$ext_shared" = "yes"; then
100070: XML_SHARED_LIBADD="$XML_SHARED_LIBADD -pthread"
100071: else
100072:
100073:
100074: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
100075:
100076: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
100077: if test -n "$unique" && test "`eval $cmd`" = "" ; then
100078: eval "EXTRA_LDFLAGS$unique=set"
100079: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
100080: fi
100081:
100082: fi
100083: ;;
100084: -l*)
100085: ac_ii=`echo $ac_i|cut -c 3-`
100086:
100087:
100088: case $ac_ii in
100089: c|c_r|pthread*) ;;
100090: *)
100091: if test "$ext_shared" = "yes"; then
100092: XML_SHARED_LIBADD="$XML_SHARED_LIBADD -l$ac_ii"
100093: else
100094:
100095:
100096: case $ac_ii in
100097: c|c_r|pthread*) ;;
100098: *)
100099: LIBS="$LIBS -l$ac_ii"
100100: ;;
100101: esac
100102:
100103:
100104: fi
100105: ;;
100106: esac
100107:
100108:
100109: ;;
100110: -L*)
100111: ac_ii=`echo $ac_i|cut -c 3-`
100112:
100113: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
100114:
100115: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
100116: ai_p=$ac_ii
100117: else
100118:
100119: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
100120:
100121: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
100122: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
100123: fi
100124:
100125:
100126: if test "$ext_shared" = "yes"; then
100127: XML_SHARED_LIBADD="-L$ai_p $XML_SHARED_LIBADD"
100128: test -n "$ld_runpath_switch" && XML_SHARED_LIBADD="$ld_runpath_switch$ai_p $XML_SHARED_LIBADD"
100129: else
100130:
100131:
100132:
100133: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
100134:
100135: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
100136: if test -n "$unique" && test "`eval $cmd`" = "" ; then
100137: eval "LIBPATH$unique=set"
100138:
100139: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
100140: LDFLAGS="$LDFLAGS -L$ai_p"
100141: PHP_RPATHS="$PHP_RPATHS $ai_p"
100142:
100143: fi
100144:
100145:
100146: fi
100147:
100148: fi
100149:
100150: ;;
100151: esac
100152: done
100153:
100154:
100155: for ac_i in $LIBXML_INCS; do
100156: case $ac_i in
100157: -I*)
100158: ac_ii=`echo $ac_i|cut -c 3-`
100159:
100160: if test "$ac_ii" != "/usr/include"; then
100161:
100162: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
100163: ai_p=$ac_ii
100164: else
100165:
100166: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
100167:
100168: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
100169: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
100170: fi
100171:
100172:
100173:
100174: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
100175:
100176: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
100177: if test -n "$unique" && test "`eval $cmd`" = "" ; then
100178: eval "INCLUDEPATH$unique=set"
100179:
100180: if test ""; then
100181: INCLUDES="-I$ai_p $INCLUDES"
100182: else
100183: INCLUDES="$INCLUDES -I$ai_p"
100184: fi
100185:
100186: fi
100187:
100188: fi
100189:
100190: ;;
100191: esac
100192: done
100193:
100194:
100195: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libxml build works" >&5
100196: $as_echo_n "checking whether libxml build works... " >&6; }
100197: if ${php_cv_libxml_build_works+:} false; then :
100198: $as_echo_n "(cached) " >&6
100199: else
100200:
100201:
100202: old_LIBS=$LIBS
100203: LIBS="
100204: $XML_SHARED_LIBADD
100205: $LIBS"
100206: if test "$cross_compiling" = yes; then :
100207:
100208: LIBS=$old_LIBS
100209:
100210: else
100211: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
100212: /* end confdefs.h. */
100213:
100214:
100215: char xmlInitParser();
100216: int main() {
100217: xmlInitParser();
100218: return 0;
100219: }
100220:
100221: _ACEOF
100222: if ac_fn_c_try_run "$LINENO"; then :
100223:
100224: LIBS=$old_LIBS
100225:
100226: php_cv_libxml_build_works=yes
100227:
100228:
100229: else
100230:
100231: LIBS=$old_LIBS
100232:
100233: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
100234: $as_echo "no" >&6; }
100235: as_fn_error $? "build test failed. Please check the config.log for details." "$LINENO" 5
100236:
100237:
100238: fi
100239: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
100240: conftest.$ac_objext conftest.beam conftest.$ac_ext
100241: fi
100242:
100243:
100244:
100245: fi
100246: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_libxml_build_works" >&5
100247: $as_echo "$php_cv_libxml_build_works" >&6; }
100248: if test "$php_cv_libxml_build_works" = "yes"; then
100249:
100250: $as_echo "#define HAVE_LIBXML 1" >>confdefs.h
100251:
100252: fi
100253:
100254: xml_extra_sources="compat.c"
100255:
100256: am_i_shared=$PHP_XML_SHARED
100257: is_it_shared=$PHP_LIBXML_SHARED
100258: is_it_enabled=$PHP_LIBXML
100259: if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
100260: as_fn_error $? "
100261: You've configured extension xml to build statically, but it
100262: depends on extension libxml, which you've configured to build shared.
100263: You either need to build xml shared or build libxml statically for the
100264: build to be successful.
100265: " "$LINENO" 5
100266: fi
100267:
100268:
100269: else
100270: as_fn_error $? "libxml2 version 2.6.11 or greater required." "$LINENO" 5
100271: fi
100272: else
100273: as_fn_error $? "xml2-config not found. Use --with-libxml-dir=<DIR>" "$LINENO" 5
100274:
100275: fi
100276:
100277: fi
100278:
100279: if test "$PHP_LIBEXPAT_DIR" != "no"; then
100280: for i in $PHP_XML $PHP_LIBEXPAT_DIR /usr /usr/local; do
100281: if test -f "$i/$PHP_LIBDIR/libexpat.a" || test -f "$i/$PHP_LIBDIR/libexpat.$SHLIB_SUFFIX_NAME"; then
100282: EXPAT_DIR=$i
100283: break
100284: fi
100285: done
100286:
100287: if test -z "$EXPAT_DIR"; then
100288: as_fn_error $? "not found. Please reinstall the expat distribution." "$LINENO" 5
100289: fi
100290:
100291:
100292: if test "$EXPAT_DIR/include" != "/usr/include"; then
100293:
100294: if test -z "$EXPAT_DIR/include" || echo "$EXPAT_DIR/include" | grep '^/' >/dev/null ; then
100295: ai_p=$EXPAT_DIR/include
100296: else
100297:
100298: ep_dir="`echo $EXPAT_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
100299:
100300: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
100301: ai_p="$ep_realdir/`basename \"$EXPAT_DIR/include\"`"
100302: fi
100303:
100304:
100305:
100306: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
100307:
100308: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
100309: if test -n "$unique" && test "`eval $cmd`" = "" ; then
100310: eval "INCLUDEPATH$unique=set"
100311:
100312: if test ""; then
100313: INCLUDES="-I$ai_p $INCLUDES"
100314: else
100315: INCLUDES="$INCLUDES -I$ai_p"
100316: fi
100317:
100318: fi
100319:
100320: fi
100321:
100322:
100323:
100324: if test "$ext_shared" = "yes"; then
100325: XML_SHARED_LIBADD="-lexpat $XML_SHARED_LIBADD"
100326: if test -n "$EXPAT_DIR/$PHP_LIBDIR"; then
100327:
100328: if test "$EXPAT_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$EXPAT_DIR/$PHP_LIBDIR" != "/usr/lib"; then
100329:
100330: if test -z "$EXPAT_DIR/$PHP_LIBDIR" || echo "$EXPAT_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
100331: ai_p=$EXPAT_DIR/$PHP_LIBDIR
100332: else
100333:
100334: ep_dir="`echo $EXPAT_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
100335:
100336: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
100337: ai_p="$ep_realdir/`basename \"$EXPAT_DIR/$PHP_LIBDIR\"`"
100338: fi
100339:
100340:
100341: if test "$ext_shared" = "yes"; then
100342: XML_SHARED_LIBADD="-L$ai_p $XML_SHARED_LIBADD"
100343: test -n "$ld_runpath_switch" && XML_SHARED_LIBADD="$ld_runpath_switch$ai_p $XML_SHARED_LIBADD"
100344: else
100345:
100346:
100347:
100348: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
100349:
100350: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
100351: if test -n "$unique" && test "`eval $cmd`" = "" ; then
100352: eval "LIBPATH$unique=set"
100353:
100354: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
100355: LDFLAGS="$LDFLAGS -L$ai_p"
100356: PHP_RPATHS="$PHP_RPATHS $ai_p"
100357:
100358: fi
100359:
100360:
100361: fi
100362:
100363: fi
100364:
100365: fi
100366: else
100367:
100368:
100369: if test -n "$EXPAT_DIR/$PHP_LIBDIR"; then
100370:
100371: if test "$EXPAT_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$EXPAT_DIR/$PHP_LIBDIR" != "/usr/lib"; then
100372:
100373: if test -z "$EXPAT_DIR/$PHP_LIBDIR" || echo "$EXPAT_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
100374: ai_p=$EXPAT_DIR/$PHP_LIBDIR
100375: else
100376:
100377: ep_dir="`echo $EXPAT_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
100378:
100379: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
100380: ai_p="$ep_realdir/`basename \"$EXPAT_DIR/$PHP_LIBDIR\"`"
100381: fi
100382:
100383:
100384:
100385:
100386:
100387: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
100388:
100389: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
100390: if test -n "$unique" && test "`eval $cmd`" = "" ; then
100391: eval "LIBPATH$unique=set"
100392:
100393: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
100394: LDFLAGS="$LDFLAGS -L$ai_p"
100395: PHP_RPATHS="$PHP_RPATHS $ai_p"
100396:
100397: fi
100398:
100399:
100400:
100401: fi
100402:
100403: fi
100404:
100405:
100406: case expat in
100407: c|c_r|pthread*) ;;
100408: *)
100409: LIBS="-lexpat $LIBS"
100410: ;;
100411: esac
100412:
100413:
100414:
100415:
100416: fi
100417:
100418:
100419:
100420: $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
100421:
100422: fi
100423:
100424:
100425: ext_builddir=ext/xml
100426: ext_srcdir=$abs_srcdir/ext/xml
100427:
100428: ac_extra=
100429:
100430: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
100431: PHP_XML_SHARED=no
100432:
100433:
100434: case ext/xml in
100435: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
100436: /*) ac_srcdir=`echo "ext/xml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
100437: *) ac_srcdir="$abs_srcdir/ext/xml/"; ac_bdir="ext/xml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
100438: esac
100439:
100440:
100441:
100442: b_c_pre=$php_c_pre
100443: b_cxx_pre=$php_cxx_pre
100444: b_c_meta=$php_c_meta
100445: b_cxx_meta=$php_cxx_meta
100446: b_c_post=$php_c_post
100447: b_cxx_post=$php_cxx_post
100448: b_lo=$php_lo
100449:
100450:
100451: old_IFS=$IFS
100452: for ac_src in xml.c $xml_extra_sources; do
100453:
100454: IFS=.
100455: set $ac_src
100456: ac_obj=$1
100457: IFS=$old_IFS
100458:
100459: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
100460:
100461: case $ac_src in
100462: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100463: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100464: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100465: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
100466: esac
100467:
100468: cat >>Makefile.objects<<EOF
100469: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
100470: $ac_comp
100471: EOF
100472: done
100473:
100474:
100475: EXT_STATIC="$EXT_STATIC xml"
100476: if test "$ext_shared" != "nocli"; then
100477: EXT_CLI_STATIC="$EXT_CLI_STATIC xml"
100478: fi
100479: else
100480: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
100481: PHP_XML_SHARED=yes
100482:
100483: case ext/xml in
100484: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
100485: /*) ac_srcdir=`echo "ext/xml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
100486: *) ac_srcdir="$abs_srcdir/ext/xml/"; ac_bdir="ext/xml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
100487: esac
100488:
100489:
100490:
100491: b_c_pre=$shared_c_pre
100492: b_cxx_pre=$shared_cxx_pre
100493: b_c_meta=$shared_c_meta
100494: b_cxx_meta=$shared_cxx_meta
100495: b_c_post=$shared_c_post
100496: b_cxx_post=$shared_cxx_post
100497: b_lo=$shared_lo
100498:
100499:
100500: old_IFS=$IFS
100501: for ac_src in xml.c $xml_extra_sources; do
100502:
100503: IFS=.
100504: set $ac_src
100505: ac_obj=$1
100506: IFS=$old_IFS
100507:
100508: shared_objects_xml="$shared_objects_xml $ac_bdir$ac_obj.lo"
100509:
100510: case $ac_src in
100511: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100512: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100513: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100514: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
100515: esac
100516:
100517: cat >>Makefile.objects<<EOF
100518: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
100519: $ac_comp
100520: EOF
100521: done
100522:
100523: case $host_alias in
100524: *netware*)
100525:
100526: install_modules="install-modules"
100527:
100528: case $host_alias in
100529: *aix*)
100530: suffix=so
100531: 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'
100532: ;;
100533: *netware*)
100534: suffix=nlm
100535: link_cmd='$(LIBTOOL) --mode=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)'
100536: ;;
100537: *)
100538: suffix=la
100539: link_cmd='$(LIBTOOL) --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)'
100540: ;;
100541: esac
100542:
100543: if test "x" = "xyes"; then
100544: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpxml.$suffix"
100545: else
100546: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpxml.$suffix"
100547: fi
100548:
100549: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_xml"
100550:
100551: cat >>Makefile.objects<<EOF
100552: \$(phplibdir)/phpxml.$suffix: $ext_builddir/phpxml.$suffix
100553: \$(LIBTOOL) --mode=install cp $ext_builddir/phpxml.$suffix \$(phplibdir)
100554:
100555: $ext_builddir/phpxml.$suffix: \$(shared_objects_xml) \$(PHPXML_SHARED_DEPENDENCIES)
100556: $link_cmd
100557:
100558: EOF
100559:
100560: ;;
100561: *)
100562:
100563: install_modules="install-modules"
100564:
100565: case $host_alias in
100566: *aix*)
100567: suffix=so
100568: 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'
100569: ;;
100570: *netware*)
100571: suffix=nlm
100572: link_cmd='$(LIBTOOL) --mode=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)'
100573: ;;
100574: *)
100575: suffix=la
100576: link_cmd='$(LIBTOOL) --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)'
100577: ;;
100578: esac
100579:
100580: if test "x" = "xyes"; then
100581: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/xml.$suffix"
100582: else
100583: PHP_MODULES="$PHP_MODULES \$(phplibdir)/xml.$suffix"
100584: fi
100585:
100586: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_xml"
100587:
100588: cat >>Makefile.objects<<EOF
100589: \$(phplibdir)/xml.$suffix: $ext_builddir/xml.$suffix
100590: \$(LIBTOOL) --mode=install cp $ext_builddir/xml.$suffix \$(phplibdir)
100591:
100592: $ext_builddir/xml.$suffix: \$(shared_objects_xml) \$(XML_SHARED_DEPENDENCIES)
100593: $link_cmd
100594:
100595: EOF
100596:
100597: ;;
100598: esac
100599:
100600: cat >>confdefs.h <<_ACEOF
100601: #define COMPILE_DL_XML 1
100602: _ACEOF
100603:
100604: fi
100605: fi
100606:
100607: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
100608: PHP_XML_SHARED=no
100609:
100610:
100611: case ext/xml in
100612: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
100613: /*) ac_srcdir=`echo "ext/xml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
100614: *) ac_srcdir="$abs_srcdir/ext/xml/"; ac_bdir="ext/xml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
100615: esac
100616:
100617:
100618:
100619: b_c_pre=$php_c_pre
100620: b_cxx_pre=$php_cxx_pre
100621: b_c_meta=$php_c_meta
100622: b_cxx_meta=$php_cxx_meta
100623: b_c_post=$php_c_post
100624: b_cxx_post=$php_cxx_post
100625: b_lo=$php_lo
100626:
100627:
100628: old_IFS=$IFS
100629: for ac_src in xml.c $xml_extra_sources; do
100630:
100631: IFS=.
100632: set $ac_src
100633: ac_obj=$1
100634: IFS=$old_IFS
100635:
100636: PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
100637:
100638: case $ac_src in
100639: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100640: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100641: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100642: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
100643: esac
100644:
100645: cat >>Makefile.objects<<EOF
100646: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
100647: $ac_comp
100648: EOF
100649: done
100650:
100651:
100652:
100653:
100654: case ext/xml in
100655: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
100656: /*) ac_srcdir=`echo "ext/xml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
100657: *) ac_srcdir="$abs_srcdir/ext/xml/"; ac_bdir="ext/xml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
100658: esac
100659:
100660:
100661:
100662: b_c_pre=$php_c_pre
100663: b_cxx_pre=$php_cxx_pre
100664: b_c_meta=$php_c_meta
100665: b_cxx_meta=$php_cxx_meta
100666: b_c_post=$php_c_post
100667: b_cxx_post=$php_cxx_post
100668: b_lo=$php_lo
100669:
100670:
100671: old_IFS=$IFS
100672: for ac_src in xml.c $xml_extra_sources; do
100673:
100674: IFS=.
100675: set $ac_src
100676: ac_obj=$1
100677: IFS=$old_IFS
100678:
100679: PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo"
100680:
100681: case $ac_src in
100682: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100683: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100684: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100685: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
100686: esac
100687:
100688: cat >>Makefile.objects<<EOF
100689: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
100690: $ac_comp
100691: EOF
100692: done
100693:
100694:
100695:
100696:
100697: case ext/xml in
100698: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
100699: /*) ac_srcdir=`echo "ext/xml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
100700: *) ac_srcdir="$abs_srcdir/ext/xml/"; ac_bdir="ext/xml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
100701: esac
100702:
100703:
100704:
100705: b_c_pre=$php_c_pre
100706: b_cxx_pre=$php_cxx_pre
100707: b_c_meta=$php_c_meta
100708: b_cxx_meta=$php_cxx_meta
100709: b_c_post=$php_c_post
100710: b_cxx_post=$php_cxx_post
100711: b_lo=$php_lo
100712:
100713:
100714: old_IFS=$IFS
100715: for ac_src in xml.c $xml_extra_sources; do
100716:
100717: IFS=.
100718: set $ac_src
100719: ac_obj=$1
100720: IFS=$old_IFS
100721:
100722: PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo"
100723:
100724: case $ac_src in
100725: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100726: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100727: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
100728: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
100729: esac
100730:
100731: cat >>Makefile.objects<<EOF
100732: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
100733: $ac_comp
100734: EOF
100735: done
100736:
100737:
100738: EXT_CLI_STATIC="$EXT_CLI_STATIC xml"
100739: fi
100740:
100741:
100742: BUILD_DIR="$BUILD_DIR $ext_builddir"
100743:
100744:
100745:
100746: if test "$ext_builddir" = "."; then
100747: PHP_PECL_EXTENSION=xml
100748:
100749: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
100750:
100751: fi
100752:
100753:
100754: PHP_VAR_SUBST="$PHP_VAR_SUBST XML_SHARED_LIBADD"
100755:
100756:
100757:
100758: for header_file in ext/xml/; do
100759:
100760:
100761: unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
100762:
100763: cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
100764: if test -n "$unique" && test "`eval $cmd`" = "" ; then
100765: eval "INSTALLHEADERS$unique=set"
100766:
100767: INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
100768:
100769: fi
100770:
100771: done
100772:
100773:
100774:
100775: $as_echo "#define HAVE_XML 1" >>confdefs.h
100776:
100777: fi
100778:
100779:
100780:
100781: php_enable_xmlreader=yes
100782:
100783: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable XMLReader support" >&5
100784: $as_echo_n "checking whether to enable XMLReader support... " >&6; }
100785: # Check whether --enable-xmlreader was given.
100786: if test "${enable_xmlreader+set}" = set; then :
100787: enableval=$enable_xmlreader; PHP_XMLREADER=$enableval
100788: else
100789:
100790: PHP_XMLREADER=yes
100791: test "$PHP_ENABLE_ALL" && PHP_XMLREADER=$PHP_ENABLE_ALL
100792:
100793: fi
100794:
100795:
100796:
100797: ext_output="yes, shared"
100798: ext_shared=yes
100799: case $PHP_XMLREADER in
100800: shared,*)
100801: PHP_XMLREADER=`echo "$PHP_XMLREADER"|$SED 's/^shared,//'`
100802: ;;
100803: shared)
100804: PHP_XMLREADER=yes
100805: ;;
100806: no)
100807: ext_output=no
100808: ext_shared=no
100809: ;;
100810: *)
100811: ext_output=yes
100812: ext_shared=no
100813: ;;
100814: esac
100815:
100816:
100817:
100818: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
100819: $as_echo "$ext_output" >&6; }
100820:
100821:
100822:
100823:
100824: if test -z "$PHP_LIBXML_DIR"; then
100825:
100826: php_with_libxml_dir=no
100827:
100828: { $as_echo "$as_me:${as_lineno-$LINENO}: checking libxml2 install dir" >&5
100829: $as_echo_n "checking libxml2 install dir... " >&6; }
100830:
100831: # Check whether --with-libxml-dir was given.
100832: if test "${with_libxml_dir+set}" = set; then :
100833: withval=$with_libxml_dir; PHP_LIBXML_DIR=$withval
100834: else
100835:
100836: PHP_LIBXML_DIR=no
100837:
100838:
100839: fi
100840:
100841:
100842: ext_output=$PHP_LIBXML_DIR
100843: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
100844: $as_echo "$ext_output" >&6; }
100845:
100846:
100847:
100848: fi
100849:
100850: if test "$PHP_XMLREADER" != "no"; then
100851:
100852: if test "$PHP_LIBXML" = "no"; then
100853: as_fn_error $? "XMLReader extension requires LIBXML extension, add --enable-libxml" "$LINENO" 5
100854: fi
100855:
100856:
100857: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xml2-config path" >&5
100858: $as_echo_n "checking for xml2-config path... " >&6; }
100859: if ${ac_cv_php_xml2_config_path+:} false; then :
100860: $as_echo_n "(cached) " >&6
100861: else
100862:
100863: for i in $PHP_LIBXML_DIR /usr/local /usr; do
100864: if test -x "$i/bin/xml2-config"; then
100865: ac_cv_php_xml2_config_path="$i/bin/xml2-config"
100866: break
100867: fi
100868: done
100869:
100870: fi
100871: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_php_xml2_config_path" >&5
100872: $as_echo "$ac_cv_php_xml2_config_path" >&6; }
100873:
100874: if test -x "$ac_cv_php_xml2_config_path"; then
100875: XML2_CONFIG="$ac_cv_php_xml2_config_path"
100876: libxml_full_version=`$XML2_CONFIG --version`
100877: ac_IFS=$IFS
100878: IFS="."
100879: set $libxml_full_version
100880: IFS=$ac_IFS
100881: LIBXML_VERSION=`expr $1 \* 1000000 + $2 \* 1000 + $3`
100882: if test "$LIBXML_VERSION" -ge "2006011"; then
100883: LIBXML_LIBS=`$XML2_CONFIG --libs`
100884: LIBXML_INCS=`$XML2_CONFIG --cflags`
100885:
100886: for ac_i in $LIBXML_LIBS; do
100887: case $ac_i in
100888: -pthread)
100889: if test "$ext_shared" = "yes"; then
100890: XMLREADER_SHARED_LIBADD="$XMLREADER_SHARED_LIBADD -pthread"
100891: else
100892:
100893:
100894: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
100895:
100896: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
100897: if test -n "$unique" && test "`eval $cmd`" = "" ; then
100898: eval "EXTRA_LDFLAGS$unique=set"
100899: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
100900: fi
100901:
100902: fi
100903: ;;
100904: -l*)
100905: ac_ii=`echo $ac_i|cut -c 3-`
100906:
100907:
100908: case $ac_ii in
100909: c|c_r|pthread*) ;;
100910: *)
100911: if test "$ext_shared" = "yes"; then
100912: XMLREADER_SHARED_LIBADD="$XMLREADER_SHARED_LIBADD -l$ac_ii"
100913: else
100914:
100915:
100916: case $ac_ii in
100917: c|c_r|pthread*) ;;
100918: *)
100919: LIBS="$LIBS -l$ac_ii"
100920: ;;
100921: esac
100922:
100923:
100924: fi
100925: ;;
100926: esac
100927:
100928:
100929: ;;
100930: -L*)
100931: ac_ii=`echo $ac_i|cut -c 3-`
100932:
100933: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
100934:
100935: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
100936: ai_p=$ac_ii
100937: else
100938:
100939: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
100940:
100941: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
100942: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
100943: fi
100944:
100945:
100946: if test "$ext_shared" = "yes"; then
100947: XMLREADER_SHARED_LIBADD="-L$ai_p $XMLREADER_SHARED_LIBADD"
100948: test -n "$ld_runpath_switch" && XMLREADER_SHARED_LIBADD="$ld_runpath_switch$ai_p $XMLREADER_SHARED_LIBADD"
100949: else
100950:
100951:
100952:
100953: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
100954:
100955: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
100956: if test -n "$unique" && test "`eval $cmd`" = "" ; then
100957: eval "LIBPATH$unique=set"
100958:
100959: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
100960: LDFLAGS="$LDFLAGS -L$ai_p"
100961: PHP_RPATHS="$PHP_RPATHS $ai_p"
100962:
100963: fi
100964:
100965:
100966: fi
100967:
100968: fi
100969:
100970: ;;
100971: esac
100972: done
100973:
100974:
100975: for ac_i in $LIBXML_INCS; do
100976: case $ac_i in
100977: -I*)
100978: ac_ii=`echo $ac_i|cut -c 3-`
100979:
100980: if test "$ac_ii" != "/usr/include"; then
100981:
100982: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
100983: ai_p=$ac_ii
100984: else
100985:
100986: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
100987:
100988: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
100989: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
100990: fi
100991:
100992:
100993:
100994: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
100995:
100996: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
100997: if test -n "$unique" && test "`eval $cmd`" = "" ; then
100998: eval "INCLUDEPATH$unique=set"
100999:
101000: if test ""; then
101001: INCLUDES="-I$ai_p $INCLUDES"
101002: else
101003: INCLUDES="$INCLUDES -I$ai_p"
101004: fi
101005:
101006: fi
101007:
101008: fi
101009:
101010: ;;
101011: esac
101012: done
101013:
101014:
101015: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libxml build works" >&5
101016: $as_echo_n "checking whether libxml build works... " >&6; }
101017: if ${php_cv_libxml_build_works+:} false; then :
101018: $as_echo_n "(cached) " >&6
101019: else
101020:
101021:
101022: old_LIBS=$LIBS
101023: LIBS="
101024: $XMLREADER_SHARED_LIBADD
101025: $LIBS"
101026: if test "$cross_compiling" = yes; then :
101027:
101028: LIBS=$old_LIBS
101029:
101030: else
101031: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
101032: /* end confdefs.h. */
101033:
101034:
101035: char xmlInitParser();
101036: int main() {
101037: xmlInitParser();
101038: return 0;
101039: }
101040:
101041: _ACEOF
101042: if ac_fn_c_try_run "$LINENO"; then :
101043:
101044: LIBS=$old_LIBS
101045:
101046: php_cv_libxml_build_works=yes
101047:
101048:
101049: else
101050:
101051: LIBS=$old_LIBS
101052:
101053: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
101054: $as_echo "no" >&6; }
101055: as_fn_error $? "build test failed. Please check the config.log for details." "$LINENO" 5
101056:
101057:
101058: fi
101059: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
101060: conftest.$ac_objext conftest.beam conftest.$ac_ext
101061: fi
101062:
101063:
101064:
101065: fi
101066: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_libxml_build_works" >&5
101067: $as_echo "$php_cv_libxml_build_works" >&6; }
101068: if test "$php_cv_libxml_build_works" = "yes"; then
101069:
101070: $as_echo "#define HAVE_LIBXML 1" >>confdefs.h
101071:
101072: fi
101073:
101074:
101075: $as_echo "#define HAVE_XMLREADER 1" >>confdefs.h
101076:
101077:
101078: ext_builddir=ext/xmlreader
101079: ext_srcdir=$abs_srcdir/ext/xmlreader
101080:
101081: ac_extra=
101082:
101083: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
101084: PHP_XMLREADER_SHARED=no
101085:
101086:
101087: case ext/xmlreader in
101088: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
101089: /*) ac_srcdir=`echo "ext/xmlreader"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
101090: *) ac_srcdir="$abs_srcdir/ext/xmlreader/"; ac_bdir="ext/xmlreader/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
101091: esac
101092:
101093:
101094:
101095: b_c_pre=$php_c_pre
101096: b_cxx_pre=$php_cxx_pre
101097: b_c_meta=$php_c_meta
101098: b_cxx_meta=$php_cxx_meta
101099: b_c_post=$php_c_post
101100: b_cxx_post=$php_cxx_post
101101: b_lo=$php_lo
101102:
101103:
101104: old_IFS=$IFS
101105: for ac_src in php_xmlreader.c; do
101106:
101107: IFS=.
101108: set $ac_src
101109: ac_obj=$1
101110: IFS=$old_IFS
101111:
101112: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
101113:
101114: case $ac_src in
101115: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
101116: *.s) ac_comp="$b_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: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
101119: esac
101120:
101121: cat >>Makefile.objects<<EOF
101122: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
101123: $ac_comp
101124: EOF
101125: done
101126:
101127:
101128: EXT_STATIC="$EXT_STATIC xmlreader"
101129: if test "$ext_shared" != "nocli"; then
101130: EXT_CLI_STATIC="$EXT_CLI_STATIC xmlreader"
101131: fi
101132: else
101133: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
101134: PHP_XMLREADER_SHARED=yes
101135:
101136: case ext/xmlreader in
101137: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
101138: /*) ac_srcdir=`echo "ext/xmlreader"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
101139: *) ac_srcdir="$abs_srcdir/ext/xmlreader/"; ac_bdir="ext/xmlreader/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
101140: esac
101141:
101142:
101143:
101144: b_c_pre=$shared_c_pre
101145: b_cxx_pre=$shared_cxx_pre
101146: b_c_meta=$shared_c_meta
101147: b_cxx_meta=$shared_cxx_meta
101148: b_c_post=$shared_c_post
101149: b_cxx_post=$shared_cxx_post
101150: b_lo=$shared_lo
101151:
101152:
101153: old_IFS=$IFS
101154: for ac_src in php_xmlreader.c; do
101155:
101156: IFS=.
101157: set $ac_src
101158: ac_obj=$1
101159: IFS=$old_IFS
101160:
101161: shared_objects_xmlreader="$shared_objects_xmlreader $ac_bdir$ac_obj.lo"
101162:
101163: case $ac_src in
101164: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
101165: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
101166: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
101167: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
101168: esac
101169:
101170: cat >>Makefile.objects<<EOF
101171: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
101172: $ac_comp
101173: EOF
101174: done
101175:
101176: case $host_alias in
101177: *netware*)
101178:
101179: install_modules="install-modules"
101180:
101181: case $host_alias in
101182: *aix*)
101183: suffix=so
101184: 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'
101185: ;;
101186: *netware*)
101187: suffix=nlm
101188: link_cmd='$(LIBTOOL) --mode=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)'
101189: ;;
101190: *)
101191: suffix=la
101192: link_cmd='$(LIBTOOL) --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)'
101193: ;;
101194: esac
101195:
101196: if test "x" = "xyes"; then
101197: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpxmlreader.$suffix"
101198: else
101199: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpxmlreader.$suffix"
101200: fi
101201:
101202: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_xmlreader"
101203:
101204: cat >>Makefile.objects<<EOF
101205: \$(phplibdir)/phpxmlreader.$suffix: $ext_builddir/phpxmlreader.$suffix
101206: \$(LIBTOOL) --mode=install cp $ext_builddir/phpxmlreader.$suffix \$(phplibdir)
101207:
101208: $ext_builddir/phpxmlreader.$suffix: \$(shared_objects_xmlreader) \$(PHPXMLREADER_SHARED_DEPENDENCIES)
101209: $link_cmd
101210:
101211: EOF
101212:
101213: ;;
101214: *)
101215:
101216: install_modules="install-modules"
101217:
101218: case $host_alias in
101219: *aix*)
101220: suffix=so
101221: 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'
101222: ;;
101223: *netware*)
101224: suffix=nlm
101225: link_cmd='$(LIBTOOL) --mode=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)'
101226: ;;
101227: *)
101228: suffix=la
101229: link_cmd='$(LIBTOOL) --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)'
101230: ;;
101231: esac
101232:
101233: if test "x" = "xyes"; then
101234: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/xmlreader.$suffix"
101235: else
101236: PHP_MODULES="$PHP_MODULES \$(phplibdir)/xmlreader.$suffix"
101237: fi
101238:
101239: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_xmlreader"
101240:
101241: cat >>Makefile.objects<<EOF
101242: \$(phplibdir)/xmlreader.$suffix: $ext_builddir/xmlreader.$suffix
101243: \$(LIBTOOL) --mode=install cp $ext_builddir/xmlreader.$suffix \$(phplibdir)
101244:
101245: $ext_builddir/xmlreader.$suffix: \$(shared_objects_xmlreader) \$(XMLREADER_SHARED_DEPENDENCIES)
101246: $link_cmd
101247:
101248: EOF
101249:
101250: ;;
101251: esac
101252:
101253: cat >>confdefs.h <<_ACEOF
101254: #define COMPILE_DL_XMLREADER 1
101255: _ACEOF
101256:
101257: fi
101258: fi
101259:
101260: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
101261: PHP_XMLREADER_SHARED=no
101262:
101263:
101264: case ext/xmlreader in
101265: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
101266: /*) ac_srcdir=`echo "ext/xmlreader"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
101267: *) ac_srcdir="$abs_srcdir/ext/xmlreader/"; ac_bdir="ext/xmlreader/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
101268: esac
101269:
101270:
101271:
101272: b_c_pre=$php_c_pre
101273: b_cxx_pre=$php_cxx_pre
101274: b_c_meta=$php_c_meta
101275: b_cxx_meta=$php_cxx_meta
101276: b_c_post=$php_c_post
101277: b_cxx_post=$php_cxx_post
101278: b_lo=$php_lo
101279:
101280:
101281: old_IFS=$IFS
101282: for ac_src in php_xmlreader.c; do
101283:
101284: IFS=.
101285: set $ac_src
101286: ac_obj=$1
101287: IFS=$old_IFS
101288:
101289: PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
101290:
101291: case $ac_src in
101292: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
101293: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
101294: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
101295: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
101296: esac
101297:
101298: cat >>Makefile.objects<<EOF
101299: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
101300: $ac_comp
101301: EOF
101302: done
101303:
101304:
101305:
101306:
101307: case ext/xmlreader in
101308: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
101309: /*) ac_srcdir=`echo "ext/xmlreader"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
101310: *) ac_srcdir="$abs_srcdir/ext/xmlreader/"; ac_bdir="ext/xmlreader/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
101311: esac
101312:
101313:
101314:
101315: b_c_pre=$php_c_pre
101316: b_cxx_pre=$php_cxx_pre
101317: b_c_meta=$php_c_meta
101318: b_cxx_meta=$php_cxx_meta
101319: b_c_post=$php_c_post
101320: b_cxx_post=$php_cxx_post
101321: b_lo=$php_lo
101322:
101323:
101324: old_IFS=$IFS
101325: for ac_src in php_xmlreader.c; do
101326:
101327: IFS=.
101328: set $ac_src
101329: ac_obj=$1
101330: IFS=$old_IFS
101331:
101332: PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo"
101333:
101334: case $ac_src in
101335: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
101336: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
101337: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
101338: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
101339: esac
101340:
101341: cat >>Makefile.objects<<EOF
101342: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
101343: $ac_comp
101344: EOF
101345: done
101346:
101347:
101348:
101349:
101350: case ext/xmlreader in
101351: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
101352: /*) ac_srcdir=`echo "ext/xmlreader"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
101353: *) ac_srcdir="$abs_srcdir/ext/xmlreader/"; ac_bdir="ext/xmlreader/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
101354: esac
101355:
101356:
101357:
101358: b_c_pre=$php_c_pre
101359: b_cxx_pre=$php_cxx_pre
101360: b_c_meta=$php_c_meta
101361: b_cxx_meta=$php_cxx_meta
101362: b_c_post=$php_c_post
101363: b_cxx_post=$php_cxx_post
101364: b_lo=$php_lo
101365:
101366:
101367: old_IFS=$IFS
101368: for ac_src in php_xmlreader.c; do
101369:
101370: IFS=.
101371: set $ac_src
101372: ac_obj=$1
101373: IFS=$old_IFS
101374:
101375: PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo"
101376:
101377: case $ac_src in
101378: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
101379: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
101380: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
101381: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
101382: esac
101383:
101384: cat >>Makefile.objects<<EOF
101385: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
101386: $ac_comp
101387: EOF
101388: done
101389:
101390:
101391: EXT_CLI_STATIC="$EXT_CLI_STATIC xmlreader"
101392: fi
101393:
101394:
101395: BUILD_DIR="$BUILD_DIR $ext_builddir"
101396:
101397:
101398:
101399: if test "$ext_builddir" = "."; then
101400: PHP_PECL_EXTENSION=xmlreader
101401:
101402: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
101403:
101404: fi
101405:
101406:
101407: am_i_shared=$PHP_XMLREADER_SHARED
101408: is_it_shared=$PHP_DOM_SHARED
101409: is_it_enabled=$PHP_DOM
101410: if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
101411: as_fn_error $? "
101412: You've configured extension xmlreader to build statically, but it
101413: depends on extension dom, which you've configured to build shared.
101414: You either need to build xmlreader shared or build dom statically for the
101415: build to be successful.
101416: " "$LINENO" 5
101417: fi
101418:
101419:
101420: PHP_VAR_SUBST="$PHP_VAR_SUBST XMLREADER_SHARED_LIBADD"
101421:
101422:
101423: else
101424: as_fn_error $? "libxml2 version 2.6.11 or greater required." "$LINENO" 5
101425: fi
101426: else
101427: as_fn_error $? "xml2-config not found. Please check your libxml2 installation." "$LINENO" 5
101428:
101429: fi
101430:
101431: fi
101432:
101433:
101434: # Local macros for automake & autoconf
101435:
101436:
101437:
101438:
101439:
101440:
101441:
101442:
101443:
101444:
101445:
101446:
101447:
101448: php_with_xmlrpc=no
101449:
101450: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XMLRPC-EPI support" >&5
101451: $as_echo_n "checking for XMLRPC-EPI support... " >&6; }
101452:
101453: # Check whether --with-xmlrpc was given.
101454: if test "${with_xmlrpc+set}" = set; then :
101455: withval=$with_xmlrpc; PHP_XMLRPC=$withval
101456: else
101457:
101458: PHP_XMLRPC=no
101459: test "$PHP_ENABLE_ALL" && PHP_XMLRPC=$PHP_ENABLE_ALL
101460:
101461: fi
101462:
101463:
101464:
101465: ext_output="yes, shared"
101466: ext_shared=yes
101467: case $PHP_XMLRPC in
101468: shared,*)
101469: PHP_XMLRPC=`echo "$PHP_XMLRPC"|$SED 's/^shared,//'`
101470: ;;
101471: shared)
101472: PHP_XMLRPC=yes
101473: ;;
101474: no)
101475: ext_output=no
101476: ext_shared=no
101477: ;;
101478: *)
101479: ext_output=yes
101480: ext_shared=no
101481: ;;
101482: esac
101483:
101484:
101485:
101486: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
101487: $as_echo "$ext_output" >&6; }
101488:
101489:
101490:
101491:
101492: if test -z "$PHP_LIBXML_DIR"; then
101493:
101494: php_with_libxml_dir=no
101495:
101496: { $as_echo "$as_me:${as_lineno-$LINENO}: checking libxml2 install dir" >&5
101497: $as_echo_n "checking libxml2 install dir... " >&6; }
101498:
101499: # Check whether --with-libxml-dir was given.
101500: if test "${with_libxml_dir+set}" = set; then :
101501: withval=$with_libxml_dir; PHP_LIBXML_DIR=$withval
101502: else
101503:
101504: PHP_LIBXML_DIR=no
101505:
101506:
101507: fi
101508:
101509:
101510: ext_output=$PHP_LIBXML_DIR
101511: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
101512: $as_echo "$ext_output" >&6; }
101513:
101514:
101515:
101516: fi
101517:
101518:
101519: php_with_libexpat_dir=no
101520:
101521: { $as_echo "$as_me:${as_lineno-$LINENO}: checking libexpat dir for XMLRPC-EPI" >&5
101522: $as_echo_n "checking libexpat dir for XMLRPC-EPI... " >&6; }
101523:
101524: # Check whether --with-libexpat-dir was given.
101525: if test "${with_libexpat_dir+set}" = set; then :
101526: withval=$with_libexpat_dir; PHP_LIBEXPAT_DIR=$withval
101527: else
101528:
101529: PHP_LIBEXPAT_DIR=no
101530:
101531:
101532: fi
101533:
101534:
101535: ext_output=$PHP_LIBEXPAT_DIR
101536: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
101537: $as_echo "$ext_output" >&6; }
101538:
101539:
101540:
101541:
101542:
101543: php_with_iconv_dir=no
101544:
101545: { $as_echo "$as_me:${as_lineno-$LINENO}: checking iconv dir for XMLRPC-EPI" >&5
101546: $as_echo_n "checking iconv dir for XMLRPC-EPI... " >&6; }
101547:
101548: # Check whether --with-iconv-dir was given.
101549: if test "${with_iconv_dir+set}" = set; then :
101550: withval=$with_iconv_dir; PHP_ICONV_DIR=$withval
101551: else
101552:
101553: PHP_ICONV_DIR=no
101554:
101555:
101556: fi
101557:
101558:
101559: ext_output=$PHP_ICONV_DIR
101560: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
101561: $as_echo "$ext_output" >&6; }
101562:
101563:
101564:
101565:
101566: if test "$PHP_XMLRPC" != "no"; then
101567:
101568:
101569: am_i_shared=$PHP_XMLRPC_SHARED
101570: is_it_shared=$PHP_LIBXML_SHARED
101571: is_it_enabled=$PHP_LIBXML
101572: if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
101573: as_fn_error $? "
101574: You've configured extension xmlrpc to build statically, but it
101575: depends on extension libxml, which you've configured to build shared.
101576: You either need to build xmlrpc shared or build libxml statically for the
101577: build to be successful.
101578: " "$LINENO" 5
101579: fi
101580:
101581:
101582: PHP_VAR_SUBST="$PHP_VAR_SUBST XMLRPC_SHARED_LIBADD"
101583:
101584:
101585: $as_echo "#define HAVE_XMLRPC 1" >>confdefs.h
101586:
101587:
101588: if test "$PHP_LIBEXPAT_DIR" = "no"; then
101589:
101590: if test "$PHP_LIBXML" = "no"; then
101591: as_fn_error $? "XML-RPC extension requires LIBXML extension, add --enable-libxml" "$LINENO" 5
101592: fi
101593:
101594:
101595: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xml2-config path" >&5
101596: $as_echo_n "checking for xml2-config path... " >&6; }
101597: if ${ac_cv_php_xml2_config_path+:} false; then :
101598: $as_echo_n "(cached) " >&6
101599: else
101600:
101601: for i in $PHP_LIBXML_DIR /usr/local /usr; do
101602: if test -x "$i/bin/xml2-config"; then
101603: ac_cv_php_xml2_config_path="$i/bin/xml2-config"
101604: break
101605: fi
101606: done
101607:
101608: fi
101609: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_php_xml2_config_path" >&5
101610: $as_echo "$ac_cv_php_xml2_config_path" >&6; }
101611:
101612: if test -x "$ac_cv_php_xml2_config_path"; then
101613: XML2_CONFIG="$ac_cv_php_xml2_config_path"
101614: libxml_full_version=`$XML2_CONFIG --version`
101615: ac_IFS=$IFS
101616: IFS="."
101617: set $libxml_full_version
101618: IFS=$ac_IFS
101619: LIBXML_VERSION=`expr $1 \* 1000000 + $2 \* 1000 + $3`
101620: if test "$LIBXML_VERSION" -ge "2006011"; then
101621: LIBXML_LIBS=`$XML2_CONFIG --libs`
101622: LIBXML_INCS=`$XML2_CONFIG --cflags`
101623:
101624: for ac_i in $LIBXML_LIBS; do
101625: case $ac_i in
101626: -pthread)
101627: if test "$ext_shared" = "yes"; then
101628: XMLRPC_SHARED_LIBADD="$XMLRPC_SHARED_LIBADD -pthread"
101629: else
101630:
101631:
101632: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
101633:
101634: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
101635: if test -n "$unique" && test "`eval $cmd`" = "" ; then
101636: eval "EXTRA_LDFLAGS$unique=set"
101637: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
101638: fi
101639:
101640: fi
101641: ;;
101642: -l*)
101643: ac_ii=`echo $ac_i|cut -c 3-`
101644:
101645:
101646: case $ac_ii in
101647: c|c_r|pthread*) ;;
101648: *)
101649: if test "$ext_shared" = "yes"; then
101650: XMLRPC_SHARED_LIBADD="$XMLRPC_SHARED_LIBADD -l$ac_ii"
101651: else
101652:
101653:
101654: case $ac_ii in
101655: c|c_r|pthread*) ;;
101656: *)
101657: LIBS="$LIBS -l$ac_ii"
101658: ;;
101659: esac
101660:
101661:
101662: fi
101663: ;;
101664: esac
101665:
101666:
101667: ;;
101668: -L*)
101669: ac_ii=`echo $ac_i|cut -c 3-`
101670:
101671: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
101672:
101673: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
101674: ai_p=$ac_ii
101675: else
101676:
101677: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
101678:
101679: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
101680: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
101681: fi
101682:
101683:
101684: if test "$ext_shared" = "yes"; then
101685: XMLRPC_SHARED_LIBADD="-L$ai_p $XMLRPC_SHARED_LIBADD"
101686: test -n "$ld_runpath_switch" && XMLRPC_SHARED_LIBADD="$ld_runpath_switch$ai_p $XMLRPC_SHARED_LIBADD"
101687: else
101688:
101689:
101690:
101691: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
101692:
101693: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
101694: if test -n "$unique" && test "`eval $cmd`" = "" ; then
101695: eval "LIBPATH$unique=set"
101696:
101697: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
101698: LDFLAGS="$LDFLAGS -L$ai_p"
101699: PHP_RPATHS="$PHP_RPATHS $ai_p"
101700:
101701: fi
101702:
101703:
101704: fi
101705:
101706: fi
101707:
101708: ;;
101709: esac
101710: done
101711:
101712:
101713: for ac_i in $LIBXML_INCS; do
101714: case $ac_i in
101715: -I*)
101716: ac_ii=`echo $ac_i|cut -c 3-`
101717:
101718: if test "$ac_ii" != "/usr/include"; then
101719:
101720: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
101721: ai_p=$ac_ii
101722: else
101723:
101724: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
101725:
101726: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
101727: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
101728: fi
101729:
101730:
101731:
101732: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
101733:
101734: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
101735: if test -n "$unique" && test "`eval $cmd`" = "" ; then
101736: eval "INCLUDEPATH$unique=set"
101737:
101738: if test ""; then
101739: INCLUDES="-I$ai_p $INCLUDES"
101740: else
101741: INCLUDES="$INCLUDES -I$ai_p"
101742: fi
101743:
101744: fi
101745:
101746: fi
101747:
101748: ;;
101749: esac
101750: done
101751:
101752:
101753: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libxml build works" >&5
101754: $as_echo_n "checking whether libxml build works... " >&6; }
101755: if ${php_cv_libxml_build_works+:} false; then :
101756: $as_echo_n "(cached) " >&6
101757: else
101758:
101759:
101760: old_LIBS=$LIBS
101761: LIBS="
101762: $XMLRPC_SHARED_LIBADD
101763: $LIBS"
101764: if test "$cross_compiling" = yes; then :
101765:
101766: LIBS=$old_LIBS
101767:
101768: else
101769: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
101770: /* end confdefs.h. */
101771:
101772:
101773: char xmlInitParser();
101774: int main() {
101775: xmlInitParser();
101776: return 0;
101777: }
101778:
101779: _ACEOF
101780: if ac_fn_c_try_run "$LINENO"; then :
101781:
101782: LIBS=$old_LIBS
101783:
101784: php_cv_libxml_build_works=yes
101785:
101786:
101787: else
101788:
101789: LIBS=$old_LIBS
101790:
101791: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
101792: $as_echo "no" >&6; }
101793: as_fn_error $? "build test failed. Please check the config.log for details." "$LINENO" 5
101794:
101795:
101796: fi
101797: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
101798: conftest.$ac_objext conftest.beam conftest.$ac_ext
101799: fi
101800:
101801:
101802:
101803: fi
101804: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_libxml_build_works" >&5
101805: $as_echo "$php_cv_libxml_build_works" >&6; }
101806: if test "$php_cv_libxml_build_works" = "yes"; then
101807:
101808: $as_echo "#define HAVE_LIBXML 1" >>confdefs.h
101809:
101810: fi
101811:
101812: if test "$PHP_XML" = "no"; then
101813:
101814:
101815: case ext/xml in
101816: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
101817: /*) ac_srcdir=`echo "ext/xml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
101818: *) ac_srcdir="$abs_srcdir/ext/xml/"; ac_bdir="ext/xml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
101819: esac
101820:
101821:
101822:
101823: b_c_pre=$php_c_pre
101824: b_cxx_pre=$php_cxx_pre
101825: b_c_meta=$php_c_meta
101826: b_cxx_meta=$php_cxx_meta
101827: b_c_post=$php_c_post
101828: b_cxx_post=$php_cxx_post
101829: b_lo=$php_lo
101830:
101831:
101832: old_IFS=$IFS
101833: for ac_src in compat.c; do
101834:
101835: IFS=.
101836: set $ac_src
101837: ac_obj=$1
101838: IFS=$old_IFS
101839:
101840: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
101841:
101842: case $ac_src in
101843: *.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" ;;
101844: *.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" ;;
101845: *.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" ;;
101846: *.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" ;;
101847: esac
101848:
101849: cat >>Makefile.objects<<EOF
101850: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
101851: $ac_comp
101852: EOF
101853: done
101854:
101855:
101856:
101857:
101858: BUILD_DIR="$BUILD_DIR ext/xml"
101859:
101860:
101861: fi
101862:
101863: else
101864: as_fn_error $? "libxml2 version 2.6.11 or greater required." "$LINENO" 5
101865: fi
101866: else
101867: as_fn_error $? "xml2-config not found. Use --with-libxml-dir=<DIR>" "$LINENO" 5
101868:
101869: fi
101870:
101871: else
101872: testval=no
101873: for i in $PHP_LIBEXPAT_DIR $XMLRPC_DIR /usr/local /usr; do
101874: if test -f $i/$PHP_LIBDIR/libexpat.a || test -f $i/$PHP_LIBDIR/libexpat.$SHLIB_SUFFIX_NAME; then
101875:
101876: $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
101877:
101878:
101879:
101880: if test "$ext_shared" = "yes"; then
101881: XMLRPC_SHARED_LIBADD="-lexpat $XMLRPC_SHARED_LIBADD"
101882: if test -n "$i/$PHP_LIBDIR"; then
101883:
101884: if test "$i/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$i/$PHP_LIBDIR" != "/usr/lib"; then
101885:
101886: if test -z "$i/$PHP_LIBDIR" || echo "$i/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
101887: ai_p=$i/$PHP_LIBDIR
101888: else
101889:
101890: ep_dir="`echo $i/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
101891:
101892: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
101893: ai_p="$ep_realdir/`basename \"$i/$PHP_LIBDIR\"`"
101894: fi
101895:
101896:
101897: if test "$ext_shared" = "yes"; then
101898: XMLRPC_SHARED_LIBADD="-L$ai_p $XMLRPC_SHARED_LIBADD"
101899: test -n "$ld_runpath_switch" && XMLRPC_SHARED_LIBADD="$ld_runpath_switch$ai_p $XMLRPC_SHARED_LIBADD"
101900: else
101901:
101902:
101903:
101904: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
101905:
101906: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
101907: if test -n "$unique" && test "`eval $cmd`" = "" ; then
101908: eval "LIBPATH$unique=set"
101909:
101910: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
101911: LDFLAGS="$LDFLAGS -L$ai_p"
101912: PHP_RPATHS="$PHP_RPATHS $ai_p"
101913:
101914: fi
101915:
101916:
101917: fi
101918:
101919: fi
101920:
101921: fi
101922: else
101923:
101924:
101925: if test -n "$i/$PHP_LIBDIR"; then
101926:
101927: if test "$i/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$i/$PHP_LIBDIR" != "/usr/lib"; then
101928:
101929: if test -z "$i/$PHP_LIBDIR" || echo "$i/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
101930: ai_p=$i/$PHP_LIBDIR
101931: else
101932:
101933: ep_dir="`echo $i/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
101934:
101935: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
101936: ai_p="$ep_realdir/`basename \"$i/$PHP_LIBDIR\"`"
101937: fi
101938:
101939:
101940:
101941:
101942:
101943: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
101944:
101945: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
101946: if test -n "$unique" && test "`eval $cmd`" = "" ; then
101947: eval "LIBPATH$unique=set"
101948:
101949: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
101950: LDFLAGS="$LDFLAGS -L$ai_p"
101951: PHP_RPATHS="$PHP_RPATHS $ai_p"
101952:
101953: fi
101954:
101955:
101956:
101957: fi
101958:
101959: fi
101960:
101961:
101962: case expat in
101963: c|c_r|pthread*) ;;
101964: *)
101965: LIBS="-lexpat $LIBS"
101966: ;;
101967: esac
101968:
101969:
101970:
101971:
101972: fi
101973:
101974:
101975:
101976: if test "$i/include" != "/usr/include"; then
101977:
101978: if test -z "$i/include" || echo "$i/include" | grep '^/' >/dev/null ; then
101979: ai_p=$i/include
101980: else
101981:
101982: ep_dir="`echo $i/include|$SED 's%/*[^/][^/]*/*$%%'`"
101983:
101984: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
101985: ai_p="$ep_realdir/`basename \"$i/include\"`"
101986: fi
101987:
101988:
101989:
101990: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
101991:
101992: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
101993: if test -n "$unique" && test "`eval $cmd`" = "" ; then
101994: eval "INCLUDEPATH$unique=set"
101995:
101996: if test ""; then
101997: INCLUDES="-I$ai_p $INCLUDES"
101998: else
101999: INCLUDES="$INCLUDES -I$ai_p"
102000: fi
102001:
102002: fi
102003:
102004: fi
102005:
102006: testval=yes
102007: break
102008: fi
102009: done
102010:
102011: if test "$testval" = "no"; then
102012: as_fn_error $? "XML-RPC support requires libexpat. Use --with-libexpat-dir=<DIR> (deprecated!)" "$LINENO" 5
102013: fi
102014: fi
102015:
102016: if test "$PHP_ICONV_SHARED" = "yes" || test "$PHP_ICONV" = "no"; then
102017:
102018: if test "$PHP_ICONV_DIR" != "no"; then
102019: PHP_ICONV=$PHP_ICONV_DIR
102020: fi
102021:
102022: if test -z "$PHP_ICONV" || test "$PHP_ICONV" = "no"; then
102023: PHP_ICONV=yes
102024: fi
102025:
102026:
102027: found_iconv=no
102028: unset ICONV_DIR
102029:
102030: # Create the directories for a VPATH build:
102031: $php_shtool mkdir -p ext/iconv
102032:
102033: echo > ext/iconv/php_have_bsd_iconv.h
102034: echo > ext/iconv/php_have_ibm_iconv.h
102035: echo > ext/iconv/php_have_glibc_iconv.h
102036: echo > ext/iconv/php_have_libiconv.h
102037: echo > ext/iconv/php_have_iconv.h
102038: echo > ext/iconv/php_php_iconv_impl.h
102039: echo > ext/iconv/php_iconv_aliased_libiconv.h
102040: echo > ext/iconv/php_php_iconv_h_path.h
102041: echo > ext/iconv/php_iconv_supports_errno.h
102042:
102043: if test "$PHP_ICONV" = "yes"; then
102044: ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
102045: if test "x$ac_cv_func_iconv" = xyes; then :
102046:
102047: found_iconv=yes
102048:
102049: else
102050:
102051: ac_fn_c_check_func "$LINENO" "libiconv" "ac_cv_func_libiconv"
102052: if test "x$ac_cv_func_libiconv" = xyes; then :
102053:
102054:
102055: echo "#define HAVE_LIBICONV 1" > ext/iconv/php_have_libiconv.h
102056:
102057:
102058: $as_echo "#define HAVE_LIBICONV 1" >>confdefs.h
102059:
102060: found_iconv=yes
102061:
102062: fi
102063:
102064:
102065: fi
102066:
102067: fi
102068:
102069: if test "$found_iconv" = "no"; then
102070:
102071: for i in $PHP_ICONV /usr/local /usr; do
102072: if test -r $i/include/giconv.h; then
102073:
102074: $as_echo "#define HAVE_GICONV_H 1" >>confdefs.h
102075:
102076: ICONV_DIR=$i
102077: iconv_lib_name=giconv
102078: break
102079: elif test -r $i/include/iconv.h; then
102080: ICONV_DIR=$i
102081: iconv_lib_name=iconv
102082: break
102083: fi
102084: done
102085:
102086: if test -z "$ICONV_DIR"; then
102087: as_fn_error $? "Please specify the install prefix of iconv with --with-iconv=<DIR>" "$LINENO" 5
102088: fi
102089:
102090: if test -f $ICONV_DIR/$PHP_LIBDIR/lib$iconv_lib_name.a ||
102091: test -f $ICONV_DIR/$PHP_LIBDIR/lib$iconv_lib_name.$SHLIB_SUFFIX_NAME
102092: then
102093:
102094: save_old_LDFLAGS=$LDFLAGS
102095: ac_stuff="
102096: -L$ICONV_DIR/$PHP_LIBDIR
102097: "
102098:
102099: save_ext_shared=$ext_shared
102100: ext_shared=yes
102101:
102102: for ac_i in $ac_stuff; do
102103: case $ac_i in
102104: -pthread)
102105: if test "$ext_shared" = "yes"; then
102106: LDFLAGS="$LDFLAGS -pthread"
102107: else
102108:
102109:
102110: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
102111:
102112: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
102113: if test -n "$unique" && test "`eval $cmd`" = "" ; then
102114: eval "EXTRA_LDFLAGS$unique=set"
102115: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
102116: fi
102117:
102118: fi
102119: ;;
102120: -l*)
102121: ac_ii=`echo $ac_i|cut -c 3-`
102122:
102123:
102124: case $ac_ii in
102125: c|c_r|pthread*) ;;
102126: *)
102127: if test "$ext_shared" = "yes"; then
102128: LDFLAGS="$LDFLAGS -l$ac_ii"
102129: else
102130:
102131:
102132: case $ac_ii in
102133: c|c_r|pthread*) ;;
102134: *)
102135: LIBS="$LIBS -l$ac_ii"
102136: ;;
102137: esac
102138:
102139:
102140: fi
102141: ;;
102142: esac
102143:
102144:
102145: ;;
102146: -L*)
102147: ac_ii=`echo $ac_i|cut -c 3-`
102148:
102149: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
102150:
102151: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
102152: ai_p=$ac_ii
102153: else
102154:
102155: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
102156:
102157: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
102158: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
102159: fi
102160:
102161:
102162: if test "$ext_shared" = "yes"; then
102163: LDFLAGS="-L$ai_p $LDFLAGS"
102164: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
102165: else
102166:
102167:
102168:
102169: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
102170:
102171: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
102172: if test -n "$unique" && test "`eval $cmd`" = "" ; then
102173: eval "LIBPATH$unique=set"
102174:
102175: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
102176: LDFLAGS="$LDFLAGS -L$ai_p"
102177: PHP_RPATHS="$PHP_RPATHS $ai_p"
102178:
102179: fi
102180:
102181:
102182: fi
102183:
102184: fi
102185:
102186: ;;
102187: esac
102188: done
102189:
102190: as_ac_Lib=`$as_echo "ac_cv_lib_$iconv_lib_name''_libiconv" | $as_tr_sh`
102191: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiconv in -l$iconv_lib_name" >&5
102192: $as_echo_n "checking for libiconv in -l$iconv_lib_name... " >&6; }
102193: if eval \${$as_ac_Lib+:} false; then :
102194: $as_echo_n "(cached) " >&6
102195: else
102196: ac_check_lib_save_LIBS=$LIBS
102197: LIBS="-l$iconv_lib_name $LIBS"
102198: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
102199: /* end confdefs.h. */
102200:
102201: /* Override any GCC internal prototype to avoid an error.
102202: Use char because int might match the return type of a GCC
102203: builtin and then its argument prototype would still apply. */
102204: #ifdef __cplusplus
102205: extern "C"
102206: #endif
102207: char libiconv ();
102208: int
102209: main ()
102210: {
102211: return libiconv ();
102212: ;
102213: return 0;
102214: }
102215: _ACEOF
102216: if ac_fn_c_try_link "$LINENO"; then :
102217: eval "$as_ac_Lib=yes"
102218: else
102219: eval "$as_ac_Lib=no"
102220: fi
102221: rm -f core conftest.err conftest.$ac_objext \
102222: conftest$ac_exeext conftest.$ac_ext
102223: LIBS=$ac_check_lib_save_LIBS
102224: fi
102225: eval ac_res=\$$as_ac_Lib
102226: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
102227: $as_echo "$ac_res" >&6; }
102228: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
102229:
102230: LDFLAGS=$save_old_LDFLAGS
102231: ext_shared=$save_ext_shared
102232:
102233: found_iconv=yes
102234:
102235: echo "#define HAVE_LIBICONV 1" > ext/iconv/php_have_libiconv.h
102236:
102237:
102238: $as_echo "#define HAVE_LIBICONV 1" >>confdefs.h
102239:
102240:
102241: echo "#define ICONV_ALIASED_LIBICONV 1" > ext/iconv/php_iconv_aliased_libiconv.h
102242:
102243:
102244: $as_echo "#define ICONV_ALIASED_LIBICONV 1" >>confdefs.h
102245:
102246:
102247:
102248: else
102249:
102250: LDFLAGS=$save_old_LDFLAGS
102251: ext_shared=$save_ext_shared
102252: unset ac_cv_lib_$iconv_lib_name_libiconv
102253:
102254:
102255: save_old_LDFLAGS=$LDFLAGS
102256: ac_stuff="
102257: -L$ICONV_DIR/$PHP_LIBDIR
102258: "
102259:
102260: save_ext_shared=$ext_shared
102261: ext_shared=yes
102262:
102263: for ac_i in $ac_stuff; do
102264: case $ac_i in
102265: -pthread)
102266: if test "$ext_shared" = "yes"; then
102267: LDFLAGS="$LDFLAGS -pthread"
102268: else
102269:
102270:
102271: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
102272:
102273: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
102274: if test -n "$unique" && test "`eval $cmd`" = "" ; then
102275: eval "EXTRA_LDFLAGS$unique=set"
102276: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
102277: fi
102278:
102279: fi
102280: ;;
102281: -l*)
102282: ac_ii=`echo $ac_i|cut -c 3-`
102283:
102284:
102285: case $ac_ii in
102286: c|c_r|pthread*) ;;
102287: *)
102288: if test "$ext_shared" = "yes"; then
102289: LDFLAGS="$LDFLAGS -l$ac_ii"
102290: else
102291:
102292:
102293: case $ac_ii in
102294: c|c_r|pthread*) ;;
102295: *)
102296: LIBS="$LIBS -l$ac_ii"
102297: ;;
102298: esac
102299:
102300:
102301: fi
102302: ;;
102303: esac
102304:
102305:
102306: ;;
102307: -L*)
102308: ac_ii=`echo $ac_i|cut -c 3-`
102309:
102310: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
102311:
102312: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
102313: ai_p=$ac_ii
102314: else
102315:
102316: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
102317:
102318: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
102319: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
102320: fi
102321:
102322:
102323: if test "$ext_shared" = "yes"; then
102324: LDFLAGS="-L$ai_p $LDFLAGS"
102325: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
102326: else
102327:
102328:
102329:
102330: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
102331:
102332: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
102333: if test -n "$unique" && test "`eval $cmd`" = "" ; then
102334: eval "LIBPATH$unique=set"
102335:
102336: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
102337: LDFLAGS="$LDFLAGS -L$ai_p"
102338: PHP_RPATHS="$PHP_RPATHS $ai_p"
102339:
102340: fi
102341:
102342:
102343: fi
102344:
102345: fi
102346:
102347: ;;
102348: esac
102349: done
102350:
102351: as_ac_Lib=`$as_echo "ac_cv_lib_$iconv_lib_name''_iconv" | $as_tr_sh`
102352: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv in -l$iconv_lib_name" >&5
102353: $as_echo_n "checking for iconv in -l$iconv_lib_name... " >&6; }
102354: if eval \${$as_ac_Lib+:} false; then :
102355: $as_echo_n "(cached) " >&6
102356: else
102357: ac_check_lib_save_LIBS=$LIBS
102358: LIBS="-l$iconv_lib_name $LIBS"
102359: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
102360: /* end confdefs.h. */
102361:
102362: /* Override any GCC internal prototype to avoid an error.
102363: Use char because int might match the return type of a GCC
102364: builtin and then its argument prototype would still apply. */
102365: #ifdef __cplusplus
102366: extern "C"
102367: #endif
102368: char iconv ();
102369: int
102370: main ()
102371: {
102372: return iconv ();
102373: ;
102374: return 0;
102375: }
102376: _ACEOF
102377: if ac_fn_c_try_link "$LINENO"; then :
102378: eval "$as_ac_Lib=yes"
102379: else
102380: eval "$as_ac_Lib=no"
102381: fi
102382: rm -f core conftest.err conftest.$ac_objext \
102383: conftest$ac_exeext conftest.$ac_ext
102384: LIBS=$ac_check_lib_save_LIBS
102385: fi
102386: eval ac_res=\$$as_ac_Lib
102387: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
102388: $as_echo "$ac_res" >&6; }
102389: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
102390:
102391: LDFLAGS=$save_old_LDFLAGS
102392: ext_shared=$save_ext_shared
102393:
102394: found_iconv=yes
102395:
102396:
102397: else
102398:
102399: LDFLAGS=$save_old_LDFLAGS
102400: ext_shared=$save_ext_shared
102401: unset ac_cv_lib_$iconv_lib_name_iconv
102402:
102403:
102404: fi
102405:
102406:
102407:
102408: fi
102409:
102410: fi
102411: fi
102412:
102413: if test "$found_iconv" = "yes"; then
102414:
102415: echo "#define HAVE_ICONV 1" > ext/iconv/php_have_iconv.h
102416:
102417:
102418: $as_echo "#define HAVE_ICONV 1" >>confdefs.h
102419:
102420: if test -n "$ICONV_DIR"; then
102421:
102422:
102423: if test "$ext_shared" = "yes"; then
102424: XMLRPC_SHARED_LIBADD="-l$iconv_lib_name $XMLRPC_SHARED_LIBADD"
102425: if test -n "$ICONV_DIR/$PHP_LIBDIR"; then
102426:
102427: if test "$ICONV_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$ICONV_DIR/$PHP_LIBDIR" != "/usr/lib"; then
102428:
102429: if test -z "$ICONV_DIR/$PHP_LIBDIR" || echo "$ICONV_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
102430: ai_p=$ICONV_DIR/$PHP_LIBDIR
102431: else
102432:
102433: ep_dir="`echo $ICONV_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
102434:
102435: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
102436: ai_p="$ep_realdir/`basename \"$ICONV_DIR/$PHP_LIBDIR\"`"
102437: fi
102438:
102439:
102440: if test "$ext_shared" = "yes"; then
102441: XMLRPC_SHARED_LIBADD="-L$ai_p $XMLRPC_SHARED_LIBADD"
102442: test -n "$ld_runpath_switch" && XMLRPC_SHARED_LIBADD="$ld_runpath_switch$ai_p $XMLRPC_SHARED_LIBADD"
102443: else
102444:
102445:
102446:
102447: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
102448:
102449: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
102450: if test -n "$unique" && test "`eval $cmd`" = "" ; then
102451: eval "LIBPATH$unique=set"
102452:
102453: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
102454: LDFLAGS="$LDFLAGS -L$ai_p"
102455: PHP_RPATHS="$PHP_RPATHS $ai_p"
102456:
102457: fi
102458:
102459:
102460: fi
102461:
102462: fi
102463:
102464: fi
102465: else
102466:
102467:
102468: if test -n "$ICONV_DIR/$PHP_LIBDIR"; then
102469:
102470: if test "$ICONV_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$ICONV_DIR/$PHP_LIBDIR" != "/usr/lib"; then
102471:
102472: if test -z "$ICONV_DIR/$PHP_LIBDIR" || echo "$ICONV_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
102473: ai_p=$ICONV_DIR/$PHP_LIBDIR
102474: else
102475:
102476: ep_dir="`echo $ICONV_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
102477:
102478: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
102479: ai_p="$ep_realdir/`basename \"$ICONV_DIR/$PHP_LIBDIR\"`"
102480: fi
102481:
102482:
102483:
102484:
102485:
102486: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
102487:
102488: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
102489: if test -n "$unique" && test "`eval $cmd`" = "" ; then
102490: eval "LIBPATH$unique=set"
102491:
102492: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
102493: LDFLAGS="$LDFLAGS -L$ai_p"
102494: PHP_RPATHS="$PHP_RPATHS $ai_p"
102495:
102496: fi
102497:
102498:
102499:
102500: fi
102501:
102502: fi
102503:
102504:
102505: case $iconv_lib_name in
102506: c|c_r|pthread*) ;;
102507: *)
102508: LIBS="-l$iconv_lib_name $LIBS"
102509: ;;
102510: esac
102511:
102512:
102513:
102514:
102515: fi
102516:
102517:
102518:
102519: if test "$ICONV_DIR/include" != "/usr/include"; then
102520:
102521: if test -z "$ICONV_DIR/include" || echo "$ICONV_DIR/include" | grep '^/' >/dev/null ; then
102522: ai_p=$ICONV_DIR/include
102523: else
102524:
102525: ep_dir="`echo $ICONV_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
102526:
102527: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
102528: ai_p="$ep_realdir/`basename \"$ICONV_DIR/include\"`"
102529: fi
102530:
102531:
102532:
102533: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
102534:
102535: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
102536: if test -n "$unique" && test "`eval $cmd`" = "" ; then
102537: eval "INCLUDEPATH$unique=set"
102538:
102539: if test ""; then
102540: INCLUDES="-I$ai_p $INCLUDES"
102541: else
102542: INCLUDES="$INCLUDES -I$ai_p"
102543: fi
102544:
102545: fi
102546:
102547: fi
102548:
102549: fi
102550:
102551: else
102552: as_fn_error $? "iconv not found, in order to build xmlrpc you need the iconv library" "$LINENO" 5
102553:
102554: fi
102555:
102556: fi
102557: fi
102558:
102559: if test "$PHP_XMLRPC" = "yes"; then
102560: if test -n "$ac_tool_prefix"; then
102561: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
102562: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
102563: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
102564: $as_echo_n "checking for $ac_word... " >&6; }
102565: if ${ac_cv_prog_RANLIB+:} false; then :
102566: $as_echo_n "(cached) " >&6
102567: else
102568: if test -n "$RANLIB"; then
102569: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
102570: else
102571: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102572: for as_dir in $PATH
102573: do
102574: IFS=$as_save_IFS
102575: test -z "$as_dir" && as_dir=.
102576: for ac_exec_ext in '' $ac_executable_extensions; do
102577: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
102578: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
102579: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
102580: break 2
102581: fi
102582: done
102583: done
102584: IFS=$as_save_IFS
102585:
102586: fi
102587: fi
102588: RANLIB=$ac_cv_prog_RANLIB
102589: if test -n "$RANLIB"; then
102590: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
102591: $as_echo "$RANLIB" >&6; }
102592: else
102593: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
102594: $as_echo "no" >&6; }
102595: fi
102596:
102597:
102598: fi
102599: if test -z "$ac_cv_prog_RANLIB"; then
102600: ac_ct_RANLIB=$RANLIB
102601: # Extract the first word of "ranlib", so it can be a program name with args.
102602: set dummy ranlib; ac_word=$2
102603: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
102604: $as_echo_n "checking for $ac_word... " >&6; }
102605: if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
102606: $as_echo_n "(cached) " >&6
102607: else
102608: if test -n "$ac_ct_RANLIB"; then
102609: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
102610: else
102611: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102612: for as_dir in $PATH
102613: do
102614: IFS=$as_save_IFS
102615: test -z "$as_dir" && as_dir=.
102616: for ac_exec_ext in '' $ac_executable_extensions; do
102617: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
102618: ac_cv_prog_ac_ct_RANLIB="ranlib"
102619: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
102620: break 2
102621: fi
102622: done
102623: done
102624: IFS=$as_save_IFS
102625:
102626: fi
102627: fi
102628: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
102629: if test -n "$ac_ct_RANLIB"; then
102630: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
102631: $as_echo "$ac_ct_RANLIB" >&6; }
102632: else
102633: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
102634: $as_echo "no" >&6; }
102635: fi
102636:
102637: if test "x$ac_ct_RANLIB" = x; then
102638: RANLIB=":"
102639: else
102640: case $cross_compiling:$ac_tool_warned in
102641: yes:)
102642: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
102643: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
102644: ac_tool_warned=yes ;;
102645: esac
102646: RANLIB=$ac_ct_RANLIB
102647: fi
102648: else
102649: RANLIB="$ac_cv_prog_RANLIB"
102650: fi
102651:
102652: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
102653: $as_echo_n "checking for inline... " >&6; }
102654: if ${ac_cv_c_inline+:} false; then :
102655: $as_echo_n "(cached) " >&6
102656: else
102657: ac_cv_c_inline=no
102658: for ac_kw in inline __inline__ __inline; do
102659: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
102660: /* end confdefs.h. */
102661: #ifndef __cplusplus
102662: typedef int foo_t;
102663: static $ac_kw foo_t static_foo () {return 0; }
102664: $ac_kw foo_t foo () {return 0; }
102665: #endif
102666:
102667: _ACEOF
102668: if ac_fn_c_try_compile "$LINENO"; then :
102669: ac_cv_c_inline=$ac_kw
102670: fi
102671: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
102672: test "$ac_cv_c_inline" != no && break
102673: done
102674:
102675: fi
102676: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
102677: $as_echo "$ac_cv_c_inline" >&6; }
102678:
102679: case $ac_cv_c_inline in
102680: inline | yes) ;;
102681: *)
102682: case $ac_cv_c_inline in
102683: no) ac_val=;;
102684: *) ac_val=$ac_cv_c_inline;;
102685: esac
102686: cat >>confdefs.h <<_ACEOF
102687: #ifndef __cplusplus
102688: #define inline $ac_val
102689: #endif
102690: _ACEOF
102691: ;;
102692: esac
102693:
102694:
102695:
102696:
102697:
102698:
102699:
102700:
102701: $as_echo "#define UNDEF_THREADS_HACK /**/" >>confdefs.h
102702:
102703:
102704:
102705: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
102706: $as_echo_n "checking for ANSI C header files... " >&6; }
102707: if ${ac_cv_header_stdc+:} false; then :
102708: $as_echo_n "(cached) " >&6
102709: else
102710: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
102711: /* end confdefs.h. */
102712: #include <stdlib.h>
102713: #include <stdarg.h>
102714: #include <string.h>
102715: #include <float.h>
102716:
102717: int
102718: main ()
102719: {
102720:
102721: ;
102722: return 0;
102723: }
102724: _ACEOF
102725: if ac_fn_c_try_compile "$LINENO"; then :
102726: ac_cv_header_stdc=yes
102727: else
102728: ac_cv_header_stdc=no
102729: fi
102730: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
102731:
102732: if test $ac_cv_header_stdc = yes; then
102733: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
102734: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
102735: /* end confdefs.h. */
102736: #include <string.h>
102737:
102738: _ACEOF
102739: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
102740: $EGREP "memchr" >/dev/null 2>&1; then :
102741:
102742: else
102743: ac_cv_header_stdc=no
102744: fi
102745: rm -f conftest*
102746:
102747: fi
102748:
102749: if test $ac_cv_header_stdc = yes; then
102750: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
102751: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
102752: /* end confdefs.h. */
102753: #include <stdlib.h>
102754:
102755: _ACEOF
102756: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
102757: $EGREP "free" >/dev/null 2>&1; then :
102758:
102759: else
102760: ac_cv_header_stdc=no
102761: fi
102762: rm -f conftest*
102763:
102764: fi
102765:
102766: if test $ac_cv_header_stdc = yes; then
102767: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
102768: if test "$cross_compiling" = yes; then :
102769: :
102770: else
102771: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
102772: /* end confdefs.h. */
102773: #include <ctype.h>
102774: #include <stdlib.h>
102775: #if ((' ' & 0x0FF) == 0x020)
102776: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
102777: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
102778: #else
102779: # define ISLOWER(c) \
102780: (('a' <= (c) && (c) <= 'i') \
102781: || ('j' <= (c) && (c) <= 'r') \
102782: || ('s' <= (c) && (c) <= 'z'))
102783: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
102784: #endif
102785:
102786: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
102787: int
102788: main ()
102789: {
102790: int i;
102791: for (i = 0; i < 256; i++)
102792: if (XOR (islower (i), ISLOWER (i))
102793: || toupper (i) != TOUPPER (i))
102794: return 2;
102795: return 0;
102796: }
102797: _ACEOF
102798: if ac_fn_c_try_run "$LINENO"; then :
102799:
102800: else
102801: ac_cv_header_stdc=no
102802: fi
102803: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
102804: conftest.$ac_objext conftest.beam conftest.$ac_ext
102805: fi
102806:
102807: fi
102808: fi
102809: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
102810: $as_echo "$ac_cv_header_stdc" >&6; }
102811: if test $ac_cv_header_stdc = yes; then
102812:
102813: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
102814:
102815: fi
102816:
102817: for ac_header in xmlparse.h xmltok.h stdlib.h strings.h string.h
102818: do :
102819: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
102820: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
102821: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
102822: cat >>confdefs.h <<_ACEOF
102823: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
102824: _ACEOF
102825:
102826: fi
102827:
102828: done
102829:
102830:
102831:
102832:
102833:
102834:
102835: # The cast to long int works around a bug in the HP C Compiler
102836: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
102837: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
102838: # This bug is HP SR number 8606223364.
102839: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
102840: $as_echo_n "checking size of char... " >&6; }
102841: if ${ac_cv_sizeof_char+:} false; then :
102842: $as_echo_n "(cached) " >&6
102843: else
102844: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
102845:
102846: else
102847: if test "$ac_cv_type_char" = yes; then
102848: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
102849: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
102850: as_fn_error 77 "cannot compute sizeof (char)
102851: See \`config.log' for more details" "$LINENO" 5; }
102852: else
102853: ac_cv_sizeof_char=0
102854: fi
102855: fi
102856:
102857: fi
102858: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
102859: $as_echo "$ac_cv_sizeof_char" >&6; }
102860:
102861:
102862:
102863: cat >>confdefs.h <<_ACEOF
102864: #define SIZEOF_CHAR $ac_cv_sizeof_char
102865: _ACEOF
102866:
102867:
102868:
102869: # The cast to long int works around a bug in the HP C Compiler
102870: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
102871: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
102872: # This bug is HP SR number 8606223364.
102873: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
102874: $as_echo_n "checking size of int... " >&6; }
102875: if ${ac_cv_sizeof_int+:} false; then :
102876: $as_echo_n "(cached) " >&6
102877: else
102878: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
102879:
102880: else
102881: if test "$ac_cv_type_int" = yes; then
102882: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
102883: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
102884: as_fn_error 77 "cannot compute sizeof (int)
102885: See \`config.log' for more details" "$LINENO" 5; }
102886: else
102887: ac_cv_sizeof_int=0
102888: fi
102889: fi
102890:
102891: fi
102892: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
102893: $as_echo "$ac_cv_sizeof_int" >&6; }
102894:
102895:
102896:
102897: cat >>confdefs.h <<_ACEOF
102898: #define SIZEOF_INT $ac_cv_sizeof_int
102899: _ACEOF
102900:
102901:
102902: # The cast to long int works around a bug in the HP C Compiler
102903: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
102904: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
102905: # This bug is HP SR number 8606223364.
102906: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
102907: $as_echo_n "checking size of long... " >&6; }
102908: if ${ac_cv_sizeof_long+:} false; then :
102909: $as_echo_n "(cached) " >&6
102910: else
102911: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
102912:
102913: else
102914: if test "$ac_cv_type_long" = yes; then
102915: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
102916: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
102917: as_fn_error 77 "cannot compute sizeof (long)
102918: See \`config.log' for more details" "$LINENO" 5; }
102919: else
102920: ac_cv_sizeof_long=0
102921: fi
102922: fi
102923:
102924: fi
102925: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
102926: $as_echo "$ac_cv_sizeof_long" >&6; }
102927:
102928:
102929:
102930: cat >>confdefs.h <<_ACEOF
102931: #define SIZEOF_LONG $ac_cv_sizeof_long
102932: _ACEOF
102933:
102934:
102935: # The cast to long int works around a bug in the HP C Compiler
102936: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
102937: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
102938: # This bug is HP SR number 8606223364.
102939: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
102940: $as_echo_n "checking size of long long... " >&6; }
102941: if ${ac_cv_sizeof_long_long+:} false; then :
102942: $as_echo_n "(cached) " >&6
102943: else
102944: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
102945:
102946: else
102947: if test "$ac_cv_type_long_long" = yes; then
102948: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
102949: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
102950: as_fn_error 77 "cannot compute sizeof (long long)
102951: See \`config.log' for more details" "$LINENO" 5; }
102952: else
102953: ac_cv_sizeof_long_long=0
102954: fi
102955: fi
102956:
102957: fi
102958: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
102959: $as_echo "$ac_cv_sizeof_long_long" >&6; }
102960:
102961:
102962:
102963: cat >>confdefs.h <<_ACEOF
102964: #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
102965: _ACEOF
102966:
102967:
102968: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
102969: if test "x$ac_cv_type_size_t" = xyes; then :
102970:
102971: else
102972:
102973: cat >>confdefs.h <<_ACEOF
102974: #define size_t unsigned int
102975: _ACEOF
102976:
102977: fi
102978:
102979: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
102980: $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
102981: if ${ac_cv_header_time+:} false; then :
102982: $as_echo_n "(cached) " >&6
102983: else
102984: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
102985: /* end confdefs.h. */
102986: #include <sys/types.h>
102987: #include <sys/time.h>
102988: #include <time.h>
102989:
102990: int
102991: main ()
102992: {
102993: if ((struct tm *) 0)
102994: return 0;
102995: ;
102996: return 0;
102997: }
102998: _ACEOF
102999: if ac_fn_c_try_compile "$LINENO"; then :
103000: ac_cv_header_time=yes
103001: else
103002: ac_cv_header_time=no
103003: fi
103004: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
103005: fi
103006: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
103007: $as_echo "$ac_cv_header_time" >&6; }
103008: if test $ac_cv_header_time = yes; then
103009:
103010: $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
103011:
103012: fi
103013:
103014: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
103015: $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
103016: if ${ac_cv_type_uid_t+:} false; then :
103017: $as_echo_n "(cached) " >&6
103018: else
103019: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
103020: /* end confdefs.h. */
103021: #include <sys/types.h>
103022:
103023: _ACEOF
103024: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
103025: $EGREP "uid_t" >/dev/null 2>&1; then :
103026: ac_cv_type_uid_t=yes
103027: else
103028: ac_cv_type_uid_t=no
103029: fi
103030: rm -f conftest*
103031:
103032: fi
103033: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
103034: $as_echo "$ac_cv_type_uid_t" >&6; }
103035: if test $ac_cv_type_uid_t = no; then
103036:
103037: $as_echo "#define uid_t int" >>confdefs.h
103038:
103039:
103040: $as_echo "#define gid_t int" >>confdefs.h
103041:
103042: fi
103043:
103044:
103045:
103046:
103047:
103048:
103049: # Standard XMLRPC list
103050: for ac_func in \
103051: strtoul strtoull snprintf \
103052: strstr strpbrk strerror\
103053: memcpy memmove
103054: do :
103055: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
103056: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
103057: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
103058: cat >>confdefs.h <<_ACEOF
103059: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
103060: _ACEOF
103061:
103062: fi
103063: done
103064:
103065:
103066:
103067:
103068:
103069: ext_builddir=ext/xmlrpc
103070: ext_srcdir=$abs_srcdir/ext/xmlrpc
103071:
103072: ac_extra=`echo "-I@ext_srcdir@/libxmlrpc -DVERSION="0.50""|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
103073:
103074: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
103075: PHP_XMLRPC_SHARED=no
103076:
103077:
103078: case ext/xmlrpc in
103079: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
103080: /*) ac_srcdir=`echo "ext/xmlrpc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
103081: *) ac_srcdir="$abs_srcdir/ext/xmlrpc/"; ac_bdir="ext/xmlrpc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
103082: esac
103083:
103084:
103085:
103086: b_c_pre=$php_c_pre
103087: b_cxx_pre=$php_cxx_pre
103088: b_c_meta=$php_c_meta
103089: b_cxx_meta=$php_cxx_meta
103090: b_c_post=$php_c_post
103091: b_cxx_post=$php_cxx_post
103092: b_lo=$php_lo
103093:
103094:
103095: old_IFS=$IFS
103096: for ac_src in xmlrpc-epi-php.c libxmlrpc/base64.c \
103097: libxmlrpc/simplestring.c libxmlrpc/xml_to_dandarpc.c \
103098: libxmlrpc/xmlrpc_introspection.c libxmlrpc/encodings.c \
103099: libxmlrpc/system_methods.c libxmlrpc/xml_to_xmlrpc.c \
103100: libxmlrpc/queue.c libxmlrpc/xml_element.c libxmlrpc/xmlrpc.c \
103101: libxmlrpc/xml_to_soap.c; do
103102:
103103: IFS=.
103104: set $ac_src
103105: ac_obj=$1
103106: IFS=$old_IFS
103107:
103108: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
103109:
103110: case $ac_src in
103111: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
103112: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
103113: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
103114: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
103115: esac
103116:
103117: cat >>Makefile.objects<<EOF
103118: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
103119: $ac_comp
103120: EOF
103121: done
103122:
103123:
103124: EXT_STATIC="$EXT_STATIC xmlrpc"
103125: if test "$ext_shared" != "nocli"; then
103126: EXT_CLI_STATIC="$EXT_CLI_STATIC xmlrpc"
103127: fi
103128: else
103129: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
103130: PHP_XMLRPC_SHARED=yes
103131:
103132: case ext/xmlrpc in
103133: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
103134: /*) ac_srcdir=`echo "ext/xmlrpc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
103135: *) ac_srcdir="$abs_srcdir/ext/xmlrpc/"; ac_bdir="ext/xmlrpc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
103136: esac
103137:
103138:
103139:
103140: b_c_pre=$shared_c_pre
103141: b_cxx_pre=$shared_cxx_pre
103142: b_c_meta=$shared_c_meta
103143: b_cxx_meta=$shared_cxx_meta
103144: b_c_post=$shared_c_post
103145: b_cxx_post=$shared_cxx_post
103146: b_lo=$shared_lo
103147:
103148:
103149: old_IFS=$IFS
103150: for ac_src in xmlrpc-epi-php.c libxmlrpc/base64.c \
103151: libxmlrpc/simplestring.c libxmlrpc/xml_to_dandarpc.c \
103152: libxmlrpc/xmlrpc_introspection.c libxmlrpc/encodings.c \
103153: libxmlrpc/system_methods.c libxmlrpc/xml_to_xmlrpc.c \
103154: libxmlrpc/queue.c libxmlrpc/xml_element.c libxmlrpc/xmlrpc.c \
103155: libxmlrpc/xml_to_soap.c; do
103156:
103157: IFS=.
103158: set $ac_src
103159: ac_obj=$1
103160: IFS=$old_IFS
103161:
103162: shared_objects_xmlrpc="$shared_objects_xmlrpc $ac_bdir$ac_obj.lo"
103163:
103164: case $ac_src in
103165: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
103166: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
103167: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
103168: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
103169: esac
103170:
103171: cat >>Makefile.objects<<EOF
103172: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
103173: $ac_comp
103174: EOF
103175: done
103176:
103177: case $host_alias in
103178: *netware*)
103179:
103180: install_modules="install-modules"
103181:
103182: case $host_alias in
103183: *aix*)
103184: suffix=so
103185: 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'
103186: ;;
103187: *netware*)
103188: suffix=nlm
103189: link_cmd='$(LIBTOOL) --mode=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)'
103190: ;;
103191: *)
103192: suffix=la
103193: link_cmd='$(LIBTOOL) --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)'
103194: ;;
103195: esac
103196:
103197: if test "x" = "xyes"; then
103198: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpxmlrpc.$suffix"
103199: else
103200: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpxmlrpc.$suffix"
103201: fi
103202:
103203: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_xmlrpc"
103204:
103205: cat >>Makefile.objects<<EOF
103206: \$(phplibdir)/phpxmlrpc.$suffix: $ext_builddir/phpxmlrpc.$suffix
103207: \$(LIBTOOL) --mode=install cp $ext_builddir/phpxmlrpc.$suffix \$(phplibdir)
103208:
103209: $ext_builddir/phpxmlrpc.$suffix: \$(shared_objects_xmlrpc) \$(PHPXMLRPC_SHARED_DEPENDENCIES)
103210: $link_cmd
103211:
103212: EOF
103213:
103214: ;;
103215: *)
103216:
103217: install_modules="install-modules"
103218:
103219: case $host_alias in
103220: *aix*)
103221: suffix=so
103222: 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'
103223: ;;
103224: *netware*)
103225: suffix=nlm
103226: link_cmd='$(LIBTOOL) --mode=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)'
103227: ;;
103228: *)
103229: suffix=la
103230: link_cmd='$(LIBTOOL) --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)'
103231: ;;
103232: esac
103233:
103234: if test "x" = "xyes"; then
103235: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/xmlrpc.$suffix"
103236: else
103237: PHP_MODULES="$PHP_MODULES \$(phplibdir)/xmlrpc.$suffix"
103238: fi
103239:
103240: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_xmlrpc"
103241:
103242: cat >>Makefile.objects<<EOF
103243: \$(phplibdir)/xmlrpc.$suffix: $ext_builddir/xmlrpc.$suffix
103244: \$(LIBTOOL) --mode=install cp $ext_builddir/xmlrpc.$suffix \$(phplibdir)
103245:
103246: $ext_builddir/xmlrpc.$suffix: \$(shared_objects_xmlrpc) \$(XMLRPC_SHARED_DEPENDENCIES)
103247: $link_cmd
103248:
103249: EOF
103250:
103251: ;;
103252: esac
103253:
103254: cat >>confdefs.h <<_ACEOF
103255: #define COMPILE_DL_XMLRPC 1
103256: _ACEOF
103257:
103258: fi
103259: fi
103260:
103261: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
103262: PHP_XMLRPC_SHARED=no
103263:
103264:
103265: case ext/xmlrpc in
103266: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
103267: /*) ac_srcdir=`echo "ext/xmlrpc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
103268: *) ac_srcdir="$abs_srcdir/ext/xmlrpc/"; ac_bdir="ext/xmlrpc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
103269: esac
103270:
103271:
103272:
103273: b_c_pre=$php_c_pre
103274: b_cxx_pre=$php_cxx_pre
103275: b_c_meta=$php_c_meta
103276: b_cxx_meta=$php_cxx_meta
103277: b_c_post=$php_c_post
103278: b_cxx_post=$php_cxx_post
103279: b_lo=$php_lo
103280:
103281:
103282: old_IFS=$IFS
103283: for ac_src in xmlrpc-epi-php.c libxmlrpc/base64.c \
103284: libxmlrpc/simplestring.c libxmlrpc/xml_to_dandarpc.c \
103285: libxmlrpc/xmlrpc_introspection.c libxmlrpc/encodings.c \
103286: libxmlrpc/system_methods.c libxmlrpc/xml_to_xmlrpc.c \
103287: libxmlrpc/queue.c libxmlrpc/xml_element.c libxmlrpc/xmlrpc.c \
103288: libxmlrpc/xml_to_soap.c; do
103289:
103290: IFS=.
103291: set $ac_src
103292: ac_obj=$1
103293: IFS=$old_IFS
103294:
103295: PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
103296:
103297: case $ac_src in
103298: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
103299: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
103300: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
103301: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
103302: esac
103303:
103304: cat >>Makefile.objects<<EOF
103305: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
103306: $ac_comp
103307: EOF
103308: done
103309:
103310:
103311:
103312:
103313: case ext/xmlrpc in
103314: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
103315: /*) ac_srcdir=`echo "ext/xmlrpc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
103316: *) ac_srcdir="$abs_srcdir/ext/xmlrpc/"; ac_bdir="ext/xmlrpc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
103317: esac
103318:
103319:
103320:
103321: b_c_pre=$php_c_pre
103322: b_cxx_pre=$php_cxx_pre
103323: b_c_meta=$php_c_meta
103324: b_cxx_meta=$php_cxx_meta
103325: b_c_post=$php_c_post
103326: b_cxx_post=$php_cxx_post
103327: b_lo=$php_lo
103328:
103329:
103330: old_IFS=$IFS
103331: for ac_src in xmlrpc-epi-php.c libxmlrpc/base64.c \
103332: libxmlrpc/simplestring.c libxmlrpc/xml_to_dandarpc.c \
103333: libxmlrpc/xmlrpc_introspection.c libxmlrpc/encodings.c \
103334: libxmlrpc/system_methods.c libxmlrpc/xml_to_xmlrpc.c \
103335: libxmlrpc/queue.c libxmlrpc/xml_element.c libxmlrpc/xmlrpc.c \
103336: libxmlrpc/xml_to_soap.c; do
103337:
103338: IFS=.
103339: set $ac_src
103340: ac_obj=$1
103341: IFS=$old_IFS
103342:
103343: PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo"
103344:
103345: case $ac_src in
103346: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
103347: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
103348: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
103349: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
103350: esac
103351:
103352: cat >>Makefile.objects<<EOF
103353: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
103354: $ac_comp
103355: EOF
103356: done
103357:
103358:
103359:
103360:
103361: case ext/xmlrpc in
103362: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
103363: /*) ac_srcdir=`echo "ext/xmlrpc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
103364: *) ac_srcdir="$abs_srcdir/ext/xmlrpc/"; ac_bdir="ext/xmlrpc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
103365: esac
103366:
103367:
103368:
103369: b_c_pre=$php_c_pre
103370: b_cxx_pre=$php_cxx_pre
103371: b_c_meta=$php_c_meta
103372: b_cxx_meta=$php_cxx_meta
103373: b_c_post=$php_c_post
103374: b_cxx_post=$php_cxx_post
103375: b_lo=$php_lo
103376:
103377:
103378: old_IFS=$IFS
103379: for ac_src in xmlrpc-epi-php.c libxmlrpc/base64.c \
103380: libxmlrpc/simplestring.c libxmlrpc/xml_to_dandarpc.c \
103381: libxmlrpc/xmlrpc_introspection.c libxmlrpc/encodings.c \
103382: libxmlrpc/system_methods.c libxmlrpc/xml_to_xmlrpc.c \
103383: libxmlrpc/queue.c libxmlrpc/xml_element.c libxmlrpc/xmlrpc.c \
103384: libxmlrpc/xml_to_soap.c; do
103385:
103386: IFS=.
103387: set $ac_src
103388: ac_obj=$1
103389: IFS=$old_IFS
103390:
103391: PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo"
103392:
103393: case $ac_src in
103394: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
103395: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
103396: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
103397: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
103398: esac
103399:
103400: cat >>Makefile.objects<<EOF
103401: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
103402: $ac_comp
103403: EOF
103404: done
103405:
103406:
103407: EXT_CLI_STATIC="$EXT_CLI_STATIC xmlrpc"
103408: fi
103409:
103410:
103411: BUILD_DIR="$BUILD_DIR $ext_builddir"
103412:
103413:
103414:
103415: if test "$ext_builddir" = "."; then
103416: PHP_PECL_EXTENSION=xmlrpc
103417:
103418: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
103419:
103420: fi
103421:
103422:
103423:
103424: BUILD_DIR="$BUILD_DIR $ext_builddir/libxmlrpc"
103425:
103426:
103427: XMLRPC_MODULE_TYPE=builtin
103428:
103429: elif test "$PHP_XMLRPC" != "no"; then
103430:
103431: if test -r $PHP_XMLRPC/include/xmlrpc.h; then
103432: XMLRPC_DIR=$PHP_XMLRPC/include
103433: elif test -r $PHP_XMLRPC/include/xmlrpc-epi/xmlrpc.h; then
103434: XMLRPC_DIR=$PHP_XMLRPC/include/xmlrpc-epi
103435: else
103436: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XMLRPC-EPI in default path" >&5
103437: $as_echo_n "checking for XMLRPC-EPI in default path... " >&6; }
103438: for i in /usr/local /usr; do
103439: if test -r $i/include/xmlrpc.h; then
103440: XMLRPC_DIR=$i/include
103441: { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $i" >&5
103442: $as_echo "found in $i" >&6; }
103443: break
103444: fi
103445: done
103446: fi
103447:
103448: if test -z "$XMLRPC_DIR"; then
103449: { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
103450: $as_echo "not found" >&6; }
103451: as_fn_error $? "Please reinstall the XMLRPC-EPI distribution" "$LINENO" 5
103452: fi
103453:
103454:
103455: if test "$XMLRPC_DIR" != "/usr/include"; then
103456:
103457: if test -z "$XMLRPC_DIR" || echo "$XMLRPC_DIR" | grep '^/' >/dev/null ; then
103458: ai_p=$XMLRPC_DIR
103459: else
103460:
103461: ep_dir="`echo $XMLRPC_DIR|$SED 's%/*[^/][^/]*/*$%%'`"
103462:
103463: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
103464: ai_p="$ep_realdir/`basename \"$XMLRPC_DIR\"`"
103465: fi
103466:
103467:
103468:
103469: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
103470:
103471: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
103472: if test -n "$unique" && test "`eval $cmd`" = "" ; then
103473: eval "INCLUDEPATH$unique=set"
103474:
103475: if test ""; then
103476: INCLUDES="-I$ai_p $INCLUDES"
103477: else
103478: INCLUDES="$INCLUDES -I$ai_p"
103479: fi
103480:
103481: fi
103482:
103483: fi
103484:
103485:
103486:
103487: if test "$ext_shared" = "yes"; then
103488: XMLRPC_SHARED_LIBADD="-lxmlrpc $XMLRPC_SHARED_LIBADD"
103489: if test -n "$XMLRPC_DIR/$PHP_LIBDIR"; then
103490:
103491: if test "$XMLRPC_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$XMLRPC_DIR/$PHP_LIBDIR" != "/usr/lib"; then
103492:
103493: if test -z "$XMLRPC_DIR/$PHP_LIBDIR" || echo "$XMLRPC_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
103494: ai_p=$XMLRPC_DIR/$PHP_LIBDIR
103495: else
103496:
103497: ep_dir="`echo $XMLRPC_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
103498:
103499: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
103500: ai_p="$ep_realdir/`basename \"$XMLRPC_DIR/$PHP_LIBDIR\"`"
103501: fi
103502:
103503:
103504: if test "$ext_shared" = "yes"; then
103505: XMLRPC_SHARED_LIBADD="-L$ai_p $XMLRPC_SHARED_LIBADD"
103506: test -n "$ld_runpath_switch" && XMLRPC_SHARED_LIBADD="$ld_runpath_switch$ai_p $XMLRPC_SHARED_LIBADD"
103507: else
103508:
103509:
103510:
103511: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
103512:
103513: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
103514: if test -n "$unique" && test "`eval $cmd`" = "" ; then
103515: eval "LIBPATH$unique=set"
103516:
103517: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
103518: LDFLAGS="$LDFLAGS -L$ai_p"
103519: PHP_RPATHS="$PHP_RPATHS $ai_p"
103520:
103521: fi
103522:
103523:
103524: fi
103525:
103526: fi
103527:
103528: fi
103529: else
103530:
103531:
103532: if test -n "$XMLRPC_DIR/$PHP_LIBDIR"; then
103533:
103534: if test "$XMLRPC_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$XMLRPC_DIR/$PHP_LIBDIR" != "/usr/lib"; then
103535:
103536: if test -z "$XMLRPC_DIR/$PHP_LIBDIR" || echo "$XMLRPC_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
103537: ai_p=$XMLRPC_DIR/$PHP_LIBDIR
103538: else
103539:
103540: ep_dir="`echo $XMLRPC_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
103541:
103542: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
103543: ai_p="$ep_realdir/`basename \"$XMLRPC_DIR/$PHP_LIBDIR\"`"
103544: fi
103545:
103546:
103547:
103548:
103549:
103550: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
103551:
103552: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
103553: if test -n "$unique" && test "`eval $cmd`" = "" ; then
103554: eval "LIBPATH$unique=set"
103555:
103556: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
103557: LDFLAGS="$LDFLAGS -L$ai_p"
103558: PHP_RPATHS="$PHP_RPATHS $ai_p"
103559:
103560: fi
103561:
103562:
103563:
103564: fi
103565:
103566: fi
103567:
103568:
103569: case xmlrpc in
103570: c|c_r|pthread*) ;;
103571: *)
103572: LIBS="-lxmlrpc $LIBS"
103573: ;;
103574: esac
103575:
103576:
103577:
103578:
103579: fi
103580:
103581:
103582:
103583: ext_builddir=ext/xmlrpc
103584: ext_srcdir=$abs_srcdir/ext/xmlrpc
103585:
103586: ac_extra=
103587:
103588: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
103589: PHP_XMLRPC_SHARED=no
103590:
103591:
103592: case ext/xmlrpc in
103593: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
103594: /*) ac_srcdir=`echo "ext/xmlrpc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
103595: *) ac_srcdir="$abs_srcdir/ext/xmlrpc/"; ac_bdir="ext/xmlrpc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
103596: esac
103597:
103598:
103599:
103600: b_c_pre=$php_c_pre
103601: b_cxx_pre=$php_cxx_pre
103602: b_c_meta=$php_c_meta
103603: b_cxx_meta=$php_cxx_meta
103604: b_c_post=$php_c_post
103605: b_cxx_post=$php_cxx_post
103606: b_lo=$php_lo
103607:
103608:
103609: old_IFS=$IFS
103610: for ac_src in xmlrpc-epi-php.c; do
103611:
103612: IFS=.
103613: set $ac_src
103614: ac_obj=$1
103615: IFS=$old_IFS
103616:
103617: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
103618:
103619: case $ac_src in
103620: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
103621: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
103622: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
103623: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
103624: esac
103625:
103626: cat >>Makefile.objects<<EOF
103627: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
103628: $ac_comp
103629: EOF
103630: done
103631:
103632:
103633: EXT_STATIC="$EXT_STATIC xmlrpc"
103634: if test "$ext_shared" != "nocli"; then
103635: EXT_CLI_STATIC="$EXT_CLI_STATIC xmlrpc"
103636: fi
103637: else
103638: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
103639: PHP_XMLRPC_SHARED=yes
103640:
103641: case ext/xmlrpc in
103642: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
103643: /*) ac_srcdir=`echo "ext/xmlrpc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
103644: *) ac_srcdir="$abs_srcdir/ext/xmlrpc/"; ac_bdir="ext/xmlrpc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
103645: esac
103646:
103647:
103648:
103649: b_c_pre=$shared_c_pre
103650: b_cxx_pre=$shared_cxx_pre
103651: b_c_meta=$shared_c_meta
103652: b_cxx_meta=$shared_cxx_meta
103653: b_c_post=$shared_c_post
103654: b_cxx_post=$shared_cxx_post
103655: b_lo=$shared_lo
103656:
103657:
103658: old_IFS=$IFS
103659: for ac_src in xmlrpc-epi-php.c; do
103660:
103661: IFS=.
103662: set $ac_src
103663: ac_obj=$1
103664: IFS=$old_IFS
103665:
103666: shared_objects_xmlrpc="$shared_objects_xmlrpc $ac_bdir$ac_obj.lo"
103667:
103668: case $ac_src in
103669: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
103670: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
103671: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
103672: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
103673: esac
103674:
103675: cat >>Makefile.objects<<EOF
103676: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
103677: $ac_comp
103678: EOF
103679: done
103680:
103681: case $host_alias in
103682: *netware*)
103683:
103684: install_modules="install-modules"
103685:
103686: case $host_alias in
103687: *aix*)
103688: suffix=so
103689: 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'
103690: ;;
103691: *netware*)
103692: suffix=nlm
103693: link_cmd='$(LIBTOOL) --mode=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)'
103694: ;;
103695: *)
103696: suffix=la
103697: link_cmd='$(LIBTOOL) --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)'
103698: ;;
103699: esac
103700:
103701: if test "x" = "xyes"; then
103702: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpxmlrpc.$suffix"
103703: else
103704: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpxmlrpc.$suffix"
103705: fi
103706:
103707: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_xmlrpc"
103708:
103709: cat >>Makefile.objects<<EOF
103710: \$(phplibdir)/phpxmlrpc.$suffix: $ext_builddir/phpxmlrpc.$suffix
103711: \$(LIBTOOL) --mode=install cp $ext_builddir/phpxmlrpc.$suffix \$(phplibdir)
103712:
103713: $ext_builddir/phpxmlrpc.$suffix: \$(shared_objects_xmlrpc) \$(PHPXMLRPC_SHARED_DEPENDENCIES)
103714: $link_cmd
103715:
103716: EOF
103717:
103718: ;;
103719: *)
103720:
103721: install_modules="install-modules"
103722:
103723: case $host_alias in
103724: *aix*)
103725: suffix=so
103726: 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'
103727: ;;
103728: *netware*)
103729: suffix=nlm
103730: link_cmd='$(LIBTOOL) --mode=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)'
103731: ;;
103732: *)
103733: suffix=la
103734: link_cmd='$(LIBTOOL) --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)'
103735: ;;
103736: esac
103737:
103738: if test "x" = "xyes"; then
103739: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/xmlrpc.$suffix"
103740: else
103741: PHP_MODULES="$PHP_MODULES \$(phplibdir)/xmlrpc.$suffix"
103742: fi
103743:
103744: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_xmlrpc"
103745:
103746: cat >>Makefile.objects<<EOF
103747: \$(phplibdir)/xmlrpc.$suffix: $ext_builddir/xmlrpc.$suffix
103748: \$(LIBTOOL) --mode=install cp $ext_builddir/xmlrpc.$suffix \$(phplibdir)
103749:
103750: $ext_builddir/xmlrpc.$suffix: \$(shared_objects_xmlrpc) \$(XMLRPC_SHARED_DEPENDENCIES)
103751: $link_cmd
103752:
103753: EOF
103754:
103755: ;;
103756: esac
103757:
103758: cat >>confdefs.h <<_ACEOF
103759: #define COMPILE_DL_XMLRPC 1
103760: _ACEOF
103761:
103762: fi
103763: fi
103764:
103765: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
103766: PHP_XMLRPC_SHARED=no
103767:
103768:
103769: case ext/xmlrpc in
103770: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
103771: /*) ac_srcdir=`echo "ext/xmlrpc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
103772: *) ac_srcdir="$abs_srcdir/ext/xmlrpc/"; ac_bdir="ext/xmlrpc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
103773: esac
103774:
103775:
103776:
103777: b_c_pre=$php_c_pre
103778: b_cxx_pre=$php_cxx_pre
103779: b_c_meta=$php_c_meta
103780: b_cxx_meta=$php_cxx_meta
103781: b_c_post=$php_c_post
103782: b_cxx_post=$php_cxx_post
103783: b_lo=$php_lo
103784:
103785:
103786: old_IFS=$IFS
103787: for ac_src in xmlrpc-epi-php.c; do
103788:
103789: IFS=.
103790: set $ac_src
103791: ac_obj=$1
103792: IFS=$old_IFS
103793:
103794: PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
103795:
103796: case $ac_src in
103797: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
103798: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
103799: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
103800: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
103801: esac
103802:
103803: cat >>Makefile.objects<<EOF
103804: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
103805: $ac_comp
103806: EOF
103807: done
103808:
103809:
103810:
103811:
103812: case ext/xmlrpc in
103813: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
103814: /*) ac_srcdir=`echo "ext/xmlrpc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
103815: *) ac_srcdir="$abs_srcdir/ext/xmlrpc/"; ac_bdir="ext/xmlrpc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
103816: esac
103817:
103818:
103819:
103820: b_c_pre=$php_c_pre
103821: b_cxx_pre=$php_cxx_pre
103822: b_c_meta=$php_c_meta
103823: b_cxx_meta=$php_cxx_meta
103824: b_c_post=$php_c_post
103825: b_cxx_post=$php_cxx_post
103826: b_lo=$php_lo
103827:
103828:
103829: old_IFS=$IFS
103830: for ac_src in xmlrpc-epi-php.c; do
103831:
103832: IFS=.
103833: set $ac_src
103834: ac_obj=$1
103835: IFS=$old_IFS
103836:
103837: PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo"
103838:
103839: case $ac_src in
103840: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
103841: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
103842: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
103843: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
103844: esac
103845:
103846: cat >>Makefile.objects<<EOF
103847: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
103848: $ac_comp
103849: EOF
103850: done
103851:
103852:
103853:
103854:
103855: case ext/xmlrpc in
103856: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
103857: /*) ac_srcdir=`echo "ext/xmlrpc"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
103858: *) ac_srcdir="$abs_srcdir/ext/xmlrpc/"; ac_bdir="ext/xmlrpc/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
103859: esac
103860:
103861:
103862:
103863: b_c_pre=$php_c_pre
103864: b_cxx_pre=$php_cxx_pre
103865: b_c_meta=$php_c_meta
103866: b_cxx_meta=$php_cxx_meta
103867: b_c_post=$php_c_post
103868: b_cxx_post=$php_cxx_post
103869: b_lo=$php_lo
103870:
103871:
103872: old_IFS=$IFS
103873: for ac_src in xmlrpc-epi-php.c; do
103874:
103875: IFS=.
103876: set $ac_src
103877: ac_obj=$1
103878: IFS=$old_IFS
103879:
103880: PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo"
103881:
103882: case $ac_src in
103883: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
103884: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
103885: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
103886: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
103887: esac
103888:
103889: cat >>Makefile.objects<<EOF
103890: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
103891: $ac_comp
103892: EOF
103893: done
103894:
103895:
103896: EXT_CLI_STATIC="$EXT_CLI_STATIC xmlrpc"
103897: fi
103898:
103899:
103900: BUILD_DIR="$BUILD_DIR $ext_builddir"
103901:
103902:
103903:
103904: if test "$ext_builddir" = "."; then
103905: PHP_PECL_EXTENSION=xmlrpc
103906:
103907: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
103908:
103909: fi
103910:
103911: XMLRPC_MODULE_TYPE=external
103912: fi
103913:
103914:
103915:
103916: php_enable_xmlwriter=yes
103917:
103918: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable XMLWriter support" >&5
103919: $as_echo_n "checking whether to enable XMLWriter support... " >&6; }
103920: # Check whether --enable-xmlwriter was given.
103921: if test "${enable_xmlwriter+set}" = set; then :
103922: enableval=$enable_xmlwriter; PHP_XMLWRITER=$enableval
103923: else
103924:
103925: PHP_XMLWRITER=yes
103926: test "$PHP_ENABLE_ALL" && PHP_XMLWRITER=$PHP_ENABLE_ALL
103927:
103928: fi
103929:
103930:
103931:
103932: ext_output="yes, shared"
103933: ext_shared=yes
103934: case $PHP_XMLWRITER in
103935: shared,*)
103936: PHP_XMLWRITER=`echo "$PHP_XMLWRITER"|$SED 's/^shared,//'`
103937: ;;
103938: shared)
103939: PHP_XMLWRITER=yes
103940: ;;
103941: no)
103942: ext_output=no
103943: ext_shared=no
103944: ;;
103945: *)
103946: ext_output=yes
103947: ext_shared=no
103948: ;;
103949: esac
103950:
103951:
103952:
103953: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
103954: $as_echo "$ext_output" >&6; }
103955:
103956:
103957:
103958:
103959: if test -z "$PHP_LIBXML_DIR"; then
103960:
103961: php_with_libxml_dir=no
103962:
103963: { $as_echo "$as_me:${as_lineno-$LINENO}: checking libxml2 install dir" >&5
103964: $as_echo_n "checking libxml2 install dir... " >&6; }
103965:
103966: # Check whether --with-libxml-dir was given.
103967: if test "${with_libxml_dir+set}" = set; then :
103968: withval=$with_libxml_dir; PHP_LIBXML_DIR=$withval
103969: else
103970:
103971: PHP_LIBXML_DIR=no
103972:
103973:
103974: fi
103975:
103976:
103977: ext_output=$PHP_LIBXML_DIR
103978: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
103979: $as_echo "$ext_output" >&6; }
103980:
103981:
103982:
103983: fi
103984:
103985: if test "$PHP_XMLWRITER" != "no"; then
103986:
103987: if test "$PHP_LIBXML" = "no"; then
103988: as_fn_error $? "XMLWriter extension requires LIBXML extension, add --enable-libxml" "$LINENO" 5
103989: fi
103990:
103991:
103992: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xml2-config path" >&5
103993: $as_echo_n "checking for xml2-config path... " >&6; }
103994: if ${ac_cv_php_xml2_config_path+:} false; then :
103995: $as_echo_n "(cached) " >&6
103996: else
103997:
103998: for i in $PHP_LIBXML_DIR /usr/local /usr; do
103999: if test -x "$i/bin/xml2-config"; then
104000: ac_cv_php_xml2_config_path="$i/bin/xml2-config"
104001: break
104002: fi
104003: done
104004:
104005: fi
104006: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_php_xml2_config_path" >&5
104007: $as_echo "$ac_cv_php_xml2_config_path" >&6; }
104008:
104009: if test -x "$ac_cv_php_xml2_config_path"; then
104010: XML2_CONFIG="$ac_cv_php_xml2_config_path"
104011: libxml_full_version=`$XML2_CONFIG --version`
104012: ac_IFS=$IFS
104013: IFS="."
104014: set $libxml_full_version
104015: IFS=$ac_IFS
104016: LIBXML_VERSION=`expr $1 \* 1000000 + $2 \* 1000 + $3`
104017: if test "$LIBXML_VERSION" -ge "2006011"; then
104018: LIBXML_LIBS=`$XML2_CONFIG --libs`
104019: LIBXML_INCS=`$XML2_CONFIG --cflags`
104020:
104021: for ac_i in $LIBXML_LIBS; do
104022: case $ac_i in
104023: -pthread)
104024: if test "$ext_shared" = "yes"; then
104025: XMLWRITER_SHARED_LIBADD="$XMLWRITER_SHARED_LIBADD -pthread"
104026: else
104027:
104028:
104029: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
104030:
104031: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
104032: if test -n "$unique" && test "`eval $cmd`" = "" ; then
104033: eval "EXTRA_LDFLAGS$unique=set"
104034: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
104035: fi
104036:
104037: fi
104038: ;;
104039: -l*)
104040: ac_ii=`echo $ac_i|cut -c 3-`
104041:
104042:
104043: case $ac_ii in
104044: c|c_r|pthread*) ;;
104045: *)
104046: if test "$ext_shared" = "yes"; then
104047: XMLWRITER_SHARED_LIBADD="$XMLWRITER_SHARED_LIBADD -l$ac_ii"
104048: else
104049:
104050:
104051: case $ac_ii in
104052: c|c_r|pthread*) ;;
104053: *)
104054: LIBS="$LIBS -l$ac_ii"
104055: ;;
104056: esac
104057:
104058:
104059: fi
104060: ;;
104061: esac
104062:
104063:
104064: ;;
104065: -L*)
104066: ac_ii=`echo $ac_i|cut -c 3-`
104067:
104068: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
104069:
104070: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
104071: ai_p=$ac_ii
104072: else
104073:
104074: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
104075:
104076: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
104077: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
104078: fi
104079:
104080:
104081: if test "$ext_shared" = "yes"; then
104082: XMLWRITER_SHARED_LIBADD="-L$ai_p $XMLWRITER_SHARED_LIBADD"
104083: test -n "$ld_runpath_switch" && XMLWRITER_SHARED_LIBADD="$ld_runpath_switch$ai_p $XMLWRITER_SHARED_LIBADD"
104084: else
104085:
104086:
104087:
104088: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
104089:
104090: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
104091: if test -n "$unique" && test "`eval $cmd`" = "" ; then
104092: eval "LIBPATH$unique=set"
104093:
104094: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
104095: LDFLAGS="$LDFLAGS -L$ai_p"
104096: PHP_RPATHS="$PHP_RPATHS $ai_p"
104097:
104098: fi
104099:
104100:
104101: fi
104102:
104103: fi
104104:
104105: ;;
104106: esac
104107: done
104108:
104109:
104110: for ac_i in $LIBXML_INCS; do
104111: case $ac_i in
104112: -I*)
104113: ac_ii=`echo $ac_i|cut -c 3-`
104114:
104115: if test "$ac_ii" != "/usr/include"; then
104116:
104117: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
104118: ai_p=$ac_ii
104119: else
104120:
104121: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
104122:
104123: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
104124: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
104125: fi
104126:
104127:
104128:
104129: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
104130:
104131: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
104132: if test -n "$unique" && test "`eval $cmd`" = "" ; then
104133: eval "INCLUDEPATH$unique=set"
104134:
104135: if test ""; then
104136: INCLUDES="-I$ai_p $INCLUDES"
104137: else
104138: INCLUDES="$INCLUDES -I$ai_p"
104139: fi
104140:
104141: fi
104142:
104143: fi
104144:
104145: ;;
104146: esac
104147: done
104148:
104149:
104150: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libxml build works" >&5
104151: $as_echo_n "checking whether libxml build works... " >&6; }
104152: if ${php_cv_libxml_build_works+:} false; then :
104153: $as_echo_n "(cached) " >&6
104154: else
104155:
104156:
104157: old_LIBS=$LIBS
104158: LIBS="
104159: $XMLWRITER_SHARED_LIBADD
104160: $LIBS"
104161: if test "$cross_compiling" = yes; then :
104162:
104163: LIBS=$old_LIBS
104164:
104165: else
104166: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
104167: /* end confdefs.h. */
104168:
104169:
104170: char xmlInitParser();
104171: int main() {
104172: xmlInitParser();
104173: return 0;
104174: }
104175:
104176: _ACEOF
104177: if ac_fn_c_try_run "$LINENO"; then :
104178:
104179: LIBS=$old_LIBS
104180:
104181: php_cv_libxml_build_works=yes
104182:
104183:
104184: else
104185:
104186: LIBS=$old_LIBS
104187:
104188: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
104189: $as_echo "no" >&6; }
104190: as_fn_error $? "build test failed. Please check the config.log for details." "$LINENO" 5
104191:
104192:
104193: fi
104194: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
104195: conftest.$ac_objext conftest.beam conftest.$ac_ext
104196: fi
104197:
104198:
104199:
104200: fi
104201: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_libxml_build_works" >&5
104202: $as_echo "$php_cv_libxml_build_works" >&6; }
104203: if test "$php_cv_libxml_build_works" = "yes"; then
104204:
104205: $as_echo "#define HAVE_LIBXML 1" >>confdefs.h
104206:
104207: fi
104208:
104209:
104210: $as_echo "#define HAVE_XMLWRITER 1" >>confdefs.h
104211:
104212:
104213: ext_builddir=ext/xmlwriter
104214: ext_srcdir=$abs_srcdir/ext/xmlwriter
104215:
104216: ac_extra=
104217:
104218: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
104219: PHP_XMLWRITER_SHARED=no
104220:
104221:
104222: case ext/xmlwriter in
104223: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
104224: /*) ac_srcdir=`echo "ext/xmlwriter"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
104225: *) ac_srcdir="$abs_srcdir/ext/xmlwriter/"; ac_bdir="ext/xmlwriter/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
104226: esac
104227:
104228:
104229:
104230: b_c_pre=$php_c_pre
104231: b_cxx_pre=$php_cxx_pre
104232: b_c_meta=$php_c_meta
104233: b_cxx_meta=$php_cxx_meta
104234: b_c_post=$php_c_post
104235: b_cxx_post=$php_cxx_post
104236: b_lo=$php_lo
104237:
104238:
104239: old_IFS=$IFS
104240: for ac_src in php_xmlwriter.c; do
104241:
104242: IFS=.
104243: set $ac_src
104244: ac_obj=$1
104245: IFS=$old_IFS
104246:
104247: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
104248:
104249: case $ac_src in
104250: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
104251: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
104252: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
104253: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
104254: esac
104255:
104256: cat >>Makefile.objects<<EOF
104257: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
104258: $ac_comp
104259: EOF
104260: done
104261:
104262:
104263: EXT_STATIC="$EXT_STATIC xmlwriter"
104264: if test "$ext_shared" != "nocli"; then
104265: EXT_CLI_STATIC="$EXT_CLI_STATIC xmlwriter"
104266: fi
104267: else
104268: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
104269: PHP_XMLWRITER_SHARED=yes
104270:
104271: case ext/xmlwriter in
104272: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
104273: /*) ac_srcdir=`echo "ext/xmlwriter"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
104274: *) ac_srcdir="$abs_srcdir/ext/xmlwriter/"; ac_bdir="ext/xmlwriter/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
104275: esac
104276:
104277:
104278:
104279: b_c_pre=$shared_c_pre
104280: b_cxx_pre=$shared_cxx_pre
104281: b_c_meta=$shared_c_meta
104282: b_cxx_meta=$shared_cxx_meta
104283: b_c_post=$shared_c_post
104284: b_cxx_post=$shared_cxx_post
104285: b_lo=$shared_lo
104286:
104287:
104288: old_IFS=$IFS
104289: for ac_src in php_xmlwriter.c; do
104290:
104291: IFS=.
104292: set $ac_src
104293: ac_obj=$1
104294: IFS=$old_IFS
104295:
104296: shared_objects_xmlwriter="$shared_objects_xmlwriter $ac_bdir$ac_obj.lo"
104297:
104298: case $ac_src in
104299: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
104300: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
104301: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
104302: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
104303: esac
104304:
104305: cat >>Makefile.objects<<EOF
104306: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
104307: $ac_comp
104308: EOF
104309: done
104310:
104311: case $host_alias in
104312: *netware*)
104313:
104314: install_modules="install-modules"
104315:
104316: case $host_alias in
104317: *aix*)
104318: suffix=so
104319: 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'
104320: ;;
104321: *netware*)
104322: suffix=nlm
104323: link_cmd='$(LIBTOOL) --mode=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)'
104324: ;;
104325: *)
104326: suffix=la
104327: link_cmd='$(LIBTOOL) --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)'
104328: ;;
104329: esac
104330:
104331: if test "x" = "xyes"; then
104332: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpxmlwriter.$suffix"
104333: else
104334: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpxmlwriter.$suffix"
104335: fi
104336:
104337: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_xmlwriter"
104338:
104339: cat >>Makefile.objects<<EOF
104340: \$(phplibdir)/phpxmlwriter.$suffix: $ext_builddir/phpxmlwriter.$suffix
104341: \$(LIBTOOL) --mode=install cp $ext_builddir/phpxmlwriter.$suffix \$(phplibdir)
104342:
104343: $ext_builddir/phpxmlwriter.$suffix: \$(shared_objects_xmlwriter) \$(PHPXMLWRITER_SHARED_DEPENDENCIES)
104344: $link_cmd
104345:
104346: EOF
104347:
104348: ;;
104349: *)
104350:
104351: install_modules="install-modules"
104352:
104353: case $host_alias in
104354: *aix*)
104355: suffix=so
104356: 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'
104357: ;;
104358: *netware*)
104359: suffix=nlm
104360: link_cmd='$(LIBTOOL) --mode=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)'
104361: ;;
104362: *)
104363: suffix=la
104364: link_cmd='$(LIBTOOL) --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)'
104365: ;;
104366: esac
104367:
104368: if test "x" = "xyes"; then
104369: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/xmlwriter.$suffix"
104370: else
104371: PHP_MODULES="$PHP_MODULES \$(phplibdir)/xmlwriter.$suffix"
104372: fi
104373:
104374: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_xmlwriter"
104375:
104376: cat >>Makefile.objects<<EOF
104377: \$(phplibdir)/xmlwriter.$suffix: $ext_builddir/xmlwriter.$suffix
104378: \$(LIBTOOL) --mode=install cp $ext_builddir/xmlwriter.$suffix \$(phplibdir)
104379:
104380: $ext_builddir/xmlwriter.$suffix: \$(shared_objects_xmlwriter) \$(XMLWRITER_SHARED_DEPENDENCIES)
104381: $link_cmd
104382:
104383: EOF
104384:
104385: ;;
104386: esac
104387:
104388: cat >>confdefs.h <<_ACEOF
104389: #define COMPILE_DL_XMLWRITER 1
104390: _ACEOF
104391:
104392: fi
104393: fi
104394:
104395: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
104396: PHP_XMLWRITER_SHARED=no
104397:
104398:
104399: case ext/xmlwriter in
104400: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
104401: /*) ac_srcdir=`echo "ext/xmlwriter"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
104402: *) ac_srcdir="$abs_srcdir/ext/xmlwriter/"; ac_bdir="ext/xmlwriter/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
104403: esac
104404:
104405:
104406:
104407: b_c_pre=$php_c_pre
104408: b_cxx_pre=$php_cxx_pre
104409: b_c_meta=$php_c_meta
104410: b_cxx_meta=$php_cxx_meta
104411: b_c_post=$php_c_post
104412: b_cxx_post=$php_cxx_post
104413: b_lo=$php_lo
104414:
104415:
104416: old_IFS=$IFS
104417: for ac_src in php_xmlwriter.c; do
104418:
104419: IFS=.
104420: set $ac_src
104421: ac_obj=$1
104422: IFS=$old_IFS
104423:
104424: PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
104425:
104426: case $ac_src in
104427: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
104428: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
104429: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
104430: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
104431: esac
104432:
104433: cat >>Makefile.objects<<EOF
104434: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
104435: $ac_comp
104436: EOF
104437: done
104438:
104439:
104440:
104441:
104442: case ext/xmlwriter in
104443: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
104444: /*) ac_srcdir=`echo "ext/xmlwriter"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
104445: *) ac_srcdir="$abs_srcdir/ext/xmlwriter/"; ac_bdir="ext/xmlwriter/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
104446: esac
104447:
104448:
104449:
104450: b_c_pre=$php_c_pre
104451: b_cxx_pre=$php_cxx_pre
104452: b_c_meta=$php_c_meta
104453: b_cxx_meta=$php_cxx_meta
104454: b_c_post=$php_c_post
104455: b_cxx_post=$php_cxx_post
104456: b_lo=$php_lo
104457:
104458:
104459: old_IFS=$IFS
104460: for ac_src in php_xmlwriter.c; do
104461:
104462: IFS=.
104463: set $ac_src
104464: ac_obj=$1
104465: IFS=$old_IFS
104466:
104467: PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo"
104468:
104469: case $ac_src in
104470: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
104471: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
104472: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
104473: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
104474: esac
104475:
104476: cat >>Makefile.objects<<EOF
104477: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
104478: $ac_comp
104479: EOF
104480: done
104481:
104482:
104483:
104484:
104485: case ext/xmlwriter in
104486: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
104487: /*) ac_srcdir=`echo "ext/xmlwriter"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
104488: *) ac_srcdir="$abs_srcdir/ext/xmlwriter/"; ac_bdir="ext/xmlwriter/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
104489: esac
104490:
104491:
104492:
104493: b_c_pre=$php_c_pre
104494: b_cxx_pre=$php_cxx_pre
104495: b_c_meta=$php_c_meta
104496: b_cxx_meta=$php_cxx_meta
104497: b_c_post=$php_c_post
104498: b_cxx_post=$php_cxx_post
104499: b_lo=$php_lo
104500:
104501:
104502: old_IFS=$IFS
104503: for ac_src in php_xmlwriter.c; do
104504:
104505: IFS=.
104506: set $ac_src
104507: ac_obj=$1
104508: IFS=$old_IFS
104509:
104510: PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo"
104511:
104512: case $ac_src in
104513: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
104514: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
104515: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
104516: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
104517: esac
104518:
104519: cat >>Makefile.objects<<EOF
104520: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
104521: $ac_comp
104522: EOF
104523: done
104524:
104525:
104526: EXT_CLI_STATIC="$EXT_CLI_STATIC xmlwriter"
104527: fi
104528:
104529:
104530: BUILD_DIR="$BUILD_DIR $ext_builddir"
104531:
104532:
104533:
104534: if test "$ext_builddir" = "."; then
104535: PHP_PECL_EXTENSION=xmlwriter
104536:
104537: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
104538:
104539: fi
104540:
104541:
104542: PHP_VAR_SUBST="$PHP_VAR_SUBST XMLWRITER_SHARED_LIBADD"
104543:
104544:
104545: else
104546: as_fn_error $? "libxml2 version 2.6.11 or greater required." "$LINENO" 5
104547: fi
104548: else
104549: as_fn_error $? "xml2-config not found. Please check your libxml2 installation." "$LINENO" 5
104550:
104551: fi
104552:
104553: fi
104554:
104555:
104556:
104557: php_with_xsl=no
104558:
104559: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XSL support" >&5
104560: $as_echo_n "checking for XSL support... " >&6; }
104561:
104562: # Check whether --with-xsl was given.
104563: if test "${with_xsl+set}" = set; then :
104564: withval=$with_xsl; PHP_XSL=$withval
104565: else
104566:
104567: PHP_XSL=no
104568: test "$PHP_ENABLE_ALL" && PHP_XSL=$PHP_ENABLE_ALL
104569:
104570: fi
104571:
104572:
104573:
104574: ext_output="yes, shared"
104575: ext_shared=yes
104576: case $PHP_XSL in
104577: shared,*)
104578: PHP_XSL=`echo "$PHP_XSL"|$SED 's/^shared,//'`
104579: ;;
104580: shared)
104581: PHP_XSL=yes
104582: ;;
104583: no)
104584: ext_output=no
104585: ext_shared=no
104586: ;;
104587: *)
104588: ext_output=yes
104589: ext_shared=no
104590: ;;
104591: esac
104592:
104593:
104594:
104595: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
104596: $as_echo "$ext_output" >&6; }
104597:
104598:
104599:
104600:
104601: if test "$PHP_XSL" != "no"; then
104602:
104603: if test "$PHP_LIBXML" = "no"; then
104604: as_fn_error $? "XSL extension requires LIBXML extension, add --enable-libxml" "$LINENO" 5
104605: fi
104606:
104607: if test "$PHP_DOM" = "no"; then
104608: as_fn_error $? "XSL extension requires DOM extension, add --enable-dom" "$LINENO" 5
104609: fi
104610:
104611: for i in $PHP_XSL /usr/local /usr; do
104612: if test -x "$i/bin/xslt-config"; then
104613: XSLT_CONFIG=$i/bin/xslt-config
104614: break
104615: fi
104616: done
104617:
104618: if test -z "$XSLT_CONFIG"; then
104619: as_fn_error $? "xslt-config not found. Please reinstall the libxslt >= 1.1.0 distribution" "$LINENO" 5
104620: else
104621: libxslt_full_version=`$XSLT_CONFIG --version`
104622: ac_IFS=$IFS
104623: IFS="."
104624: set $libxslt_full_version
104625: IFS=$ac_IFS
104626: LIBXSLT_VERSION=`expr $1 \* 1000000 + $2 \* 1000 + $3`
104627: if test "$LIBXSLT_VERSION" -ge "1001000"; then
104628: XSL_LIBS=`$XSLT_CONFIG --libs`
104629: XSL_INCS=`$XSLT_CONFIG --cflags`
104630:
104631: for ac_i in $XSL_LIBS; do
104632: case $ac_i in
104633: -pthread)
104634: if test "$ext_shared" = "yes"; then
104635: XSL_SHARED_LIBADD="$XSL_SHARED_LIBADD -pthread"
104636: else
104637:
104638:
104639: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
104640:
104641: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
104642: if test -n "$unique" && test "`eval $cmd`" = "" ; then
104643: eval "EXTRA_LDFLAGS$unique=set"
104644: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
104645: fi
104646:
104647: fi
104648: ;;
104649: -l*)
104650: ac_ii=`echo $ac_i|cut -c 3-`
104651:
104652:
104653: case $ac_ii in
104654: c|c_r|pthread*) ;;
104655: *)
104656: if test "$ext_shared" = "yes"; then
104657: XSL_SHARED_LIBADD="$XSL_SHARED_LIBADD -l$ac_ii"
104658: else
104659:
104660:
104661: case $ac_ii in
104662: c|c_r|pthread*) ;;
104663: *)
104664: LIBS="$LIBS -l$ac_ii"
104665: ;;
104666: esac
104667:
104668:
104669: fi
104670: ;;
104671: esac
104672:
104673:
104674: ;;
104675: -L*)
104676: ac_ii=`echo $ac_i|cut -c 3-`
104677:
104678: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
104679:
104680: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
104681: ai_p=$ac_ii
104682: else
104683:
104684: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
104685:
104686: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
104687: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
104688: fi
104689:
104690:
104691: if test "$ext_shared" = "yes"; then
104692: XSL_SHARED_LIBADD="-L$ai_p $XSL_SHARED_LIBADD"
104693: test -n "$ld_runpath_switch" && XSL_SHARED_LIBADD="$ld_runpath_switch$ai_p $XSL_SHARED_LIBADD"
104694: else
104695:
104696:
104697:
104698: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
104699:
104700: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
104701: if test -n "$unique" && test "`eval $cmd`" = "" ; then
104702: eval "LIBPATH$unique=set"
104703:
104704: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
104705: LDFLAGS="$LDFLAGS -L$ai_p"
104706: PHP_RPATHS="$PHP_RPATHS $ai_p"
104707:
104708: fi
104709:
104710:
104711: fi
104712:
104713: fi
104714:
104715: ;;
104716: esac
104717: done
104718:
104719:
104720: for ac_i in $XSL_INCS; do
104721: case $ac_i in
104722: -I*)
104723: ac_ii=`echo $ac_i|cut -c 3-`
104724:
104725: if test "$ac_ii" != "/usr/include"; then
104726:
104727: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
104728: ai_p=$ac_ii
104729: else
104730:
104731: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
104732:
104733: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
104734: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
104735: fi
104736:
104737:
104738:
104739: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
104740:
104741: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
104742: if test -n "$unique" && test "`eval $cmd`" = "" ; then
104743: eval "INCLUDEPATH$unique=set"
104744:
104745: if test ""; then
104746: INCLUDES="-I$ai_p $INCLUDES"
104747: else
104748: INCLUDES="$INCLUDES -I$ai_p"
104749: fi
104750:
104751: fi
104752:
104753: fi
104754:
104755: ;;
104756: esac
104757: done
104758:
104759:
104760: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXSLT support" >&5
104761: $as_echo_n "checking for EXSLT support... " >&6; }
104762: for i in $PHP_XSL /usr/local /usr; do
104763: if test -r "$i/include/libexslt/exslt.h"; then
104764: PHP_XSL_EXSL_DIR=$i
104765: break
104766: fi
104767: done
104768: if test -z "$PHP_XSL_EXSL_DIR"; then
104769: { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
104770: $as_echo "not found" >&6; }
104771: else
104772: { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
104773: $as_echo "found" >&6; }
104774:
104775:
104776: if test "$ext_shared" = "yes"; then
104777: XSL_SHARED_LIBADD="-lexslt $XSL_SHARED_LIBADD"
104778: if test -n "$PHP_XSL_EXSL_DIR/$PHP_LIBDIR"; then
104779:
104780: if test "$PHP_XSL_EXSL_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_XSL_EXSL_DIR/$PHP_LIBDIR" != "/usr/lib"; then
104781:
104782: if test -z "$PHP_XSL_EXSL_DIR/$PHP_LIBDIR" || echo "$PHP_XSL_EXSL_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
104783: ai_p=$PHP_XSL_EXSL_DIR/$PHP_LIBDIR
104784: else
104785:
104786: ep_dir="`echo $PHP_XSL_EXSL_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
104787:
104788: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
104789: ai_p="$ep_realdir/`basename \"$PHP_XSL_EXSL_DIR/$PHP_LIBDIR\"`"
104790: fi
104791:
104792:
104793: if test "$ext_shared" = "yes"; then
104794: XSL_SHARED_LIBADD="-L$ai_p $XSL_SHARED_LIBADD"
104795: test -n "$ld_runpath_switch" && XSL_SHARED_LIBADD="$ld_runpath_switch$ai_p $XSL_SHARED_LIBADD"
104796: else
104797:
104798:
104799:
104800: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
104801:
104802: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
104803: if test -n "$unique" && test "`eval $cmd`" = "" ; then
104804: eval "LIBPATH$unique=set"
104805:
104806: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
104807: LDFLAGS="$LDFLAGS -L$ai_p"
104808: PHP_RPATHS="$PHP_RPATHS $ai_p"
104809:
104810: fi
104811:
104812:
104813: fi
104814:
104815: fi
104816:
104817: fi
104818: else
104819:
104820:
104821: if test -n "$PHP_XSL_EXSL_DIR/$PHP_LIBDIR"; then
104822:
104823: if test "$PHP_XSL_EXSL_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_XSL_EXSL_DIR/$PHP_LIBDIR" != "/usr/lib"; then
104824:
104825: if test -z "$PHP_XSL_EXSL_DIR/$PHP_LIBDIR" || echo "$PHP_XSL_EXSL_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
104826: ai_p=$PHP_XSL_EXSL_DIR/$PHP_LIBDIR
104827: else
104828:
104829: ep_dir="`echo $PHP_XSL_EXSL_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
104830:
104831: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
104832: ai_p="$ep_realdir/`basename \"$PHP_XSL_EXSL_DIR/$PHP_LIBDIR\"`"
104833: fi
104834:
104835:
104836:
104837:
104838:
104839: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
104840:
104841: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
104842: if test -n "$unique" && test "`eval $cmd`" = "" ; then
104843: eval "LIBPATH$unique=set"
104844:
104845: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
104846: LDFLAGS="$LDFLAGS -L$ai_p"
104847: PHP_RPATHS="$PHP_RPATHS $ai_p"
104848:
104849: fi
104850:
104851:
104852:
104853: fi
104854:
104855: fi
104856:
104857:
104858: case exslt in
104859: c|c_r|pthread*) ;;
104860: *)
104861: LIBS="-lexslt $LIBS"
104862: ;;
104863: esac
104864:
104865:
104866:
104867:
104868: fi
104869:
104870:
104871:
104872: if test "$PHP_XSL_EXSL_DIR/include" != "/usr/include"; then
104873:
104874: if test -z "$PHP_XSL_EXSL_DIR/include" || echo "$PHP_XSL_EXSL_DIR/include" | grep '^/' >/dev/null ; then
104875: ai_p=$PHP_XSL_EXSL_DIR/include
104876: else
104877:
104878: ep_dir="`echo $PHP_XSL_EXSL_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
104879:
104880: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
104881: ai_p="$ep_realdir/`basename \"$PHP_XSL_EXSL_DIR/include\"`"
104882: fi
104883:
104884:
104885:
104886: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
104887:
104888: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
104889: if test -n "$unique" && test "`eval $cmd`" = "" ; then
104890: eval "INCLUDEPATH$unique=set"
104891:
104892: if test ""; then
104893: INCLUDES="-I$ai_p $INCLUDES"
104894: else
104895: INCLUDES="$INCLUDES -I$ai_p"
104896: fi
104897:
104898: fi
104899:
104900: fi
104901:
104902:
104903: $as_echo "#define HAVE_XSL_EXSLT 1" >>confdefs.h
104904:
104905: fi
104906: else
104907: as_fn_error $? "libxslt version 1.1.0 or greater required." "$LINENO" 5
104908: fi
104909:
104910:
104911: fi
104912:
104913:
104914: $as_echo "#define HAVE_XSL 1" >>confdefs.h
104915:
104916:
104917: ext_builddir=ext/xsl
104918: ext_srcdir=$abs_srcdir/ext/xsl
104919:
104920: ac_extra=
104921:
104922: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
104923: PHP_XSL_SHARED=no
104924:
104925:
104926: case ext/xsl in
104927: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
104928: /*) ac_srcdir=`echo "ext/xsl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
104929: *) ac_srcdir="$abs_srcdir/ext/xsl/"; ac_bdir="ext/xsl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
104930: esac
104931:
104932:
104933:
104934: b_c_pre=$php_c_pre
104935: b_cxx_pre=$php_cxx_pre
104936: b_c_meta=$php_c_meta
104937: b_cxx_meta=$php_cxx_meta
104938: b_c_post=$php_c_post
104939: b_cxx_post=$php_cxx_post
104940: b_lo=$php_lo
104941:
104942:
104943: old_IFS=$IFS
104944: for ac_src in php_xsl.c xsltprocessor.c; do
104945:
104946: IFS=.
104947: set $ac_src
104948: ac_obj=$1
104949: IFS=$old_IFS
104950:
104951: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
104952:
104953: case $ac_src in
104954: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
104955: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
104956: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
104957: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
104958: esac
104959:
104960: cat >>Makefile.objects<<EOF
104961: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
104962: $ac_comp
104963: EOF
104964: done
104965:
104966:
104967: EXT_STATIC="$EXT_STATIC xsl"
104968: if test "$ext_shared" != "nocli"; then
104969: EXT_CLI_STATIC="$EXT_CLI_STATIC xsl"
104970: fi
104971: else
104972: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
104973: PHP_XSL_SHARED=yes
104974:
104975: case ext/xsl in
104976: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
104977: /*) ac_srcdir=`echo "ext/xsl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
104978: *) ac_srcdir="$abs_srcdir/ext/xsl/"; ac_bdir="ext/xsl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
104979: esac
104980:
104981:
104982:
104983: b_c_pre=$shared_c_pre
104984: b_cxx_pre=$shared_cxx_pre
104985: b_c_meta=$shared_c_meta
104986: b_cxx_meta=$shared_cxx_meta
104987: b_c_post=$shared_c_post
104988: b_cxx_post=$shared_cxx_post
104989: b_lo=$shared_lo
104990:
104991:
104992: old_IFS=$IFS
104993: for ac_src in php_xsl.c xsltprocessor.c; do
104994:
104995: IFS=.
104996: set $ac_src
104997: ac_obj=$1
104998: IFS=$old_IFS
104999:
105000: shared_objects_xsl="$shared_objects_xsl $ac_bdir$ac_obj.lo"
105001:
105002: case $ac_src in
105003: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
105004: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
105005: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
105006: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
105007: esac
105008:
105009: cat >>Makefile.objects<<EOF
105010: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
105011: $ac_comp
105012: EOF
105013: done
105014:
105015: case $host_alias in
105016: *netware*)
105017:
105018: install_modules="install-modules"
105019:
105020: case $host_alias in
105021: *aix*)
105022: suffix=so
105023: 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'
105024: ;;
105025: *netware*)
105026: suffix=nlm
105027: link_cmd='$(LIBTOOL) --mode=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)'
105028: ;;
105029: *)
105030: suffix=la
105031: link_cmd='$(LIBTOOL) --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)'
105032: ;;
105033: esac
105034:
105035: if test "x" = "xyes"; then
105036: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpxsl.$suffix"
105037: else
105038: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpxsl.$suffix"
105039: fi
105040:
105041: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_xsl"
105042:
105043: cat >>Makefile.objects<<EOF
105044: \$(phplibdir)/phpxsl.$suffix: $ext_builddir/phpxsl.$suffix
105045: \$(LIBTOOL) --mode=install cp $ext_builddir/phpxsl.$suffix \$(phplibdir)
105046:
105047: $ext_builddir/phpxsl.$suffix: \$(shared_objects_xsl) \$(PHPXSL_SHARED_DEPENDENCIES)
105048: $link_cmd
105049:
105050: EOF
105051:
105052: ;;
105053: *)
105054:
105055: install_modules="install-modules"
105056:
105057: case $host_alias in
105058: *aix*)
105059: suffix=so
105060: 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'
105061: ;;
105062: *netware*)
105063: suffix=nlm
105064: link_cmd='$(LIBTOOL) --mode=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)'
105065: ;;
105066: *)
105067: suffix=la
105068: link_cmd='$(LIBTOOL) --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)'
105069: ;;
105070: esac
105071:
105072: if test "x" = "xyes"; then
105073: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/xsl.$suffix"
105074: else
105075: PHP_MODULES="$PHP_MODULES \$(phplibdir)/xsl.$suffix"
105076: fi
105077:
105078: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_xsl"
105079:
105080: cat >>Makefile.objects<<EOF
105081: \$(phplibdir)/xsl.$suffix: $ext_builddir/xsl.$suffix
105082: \$(LIBTOOL) --mode=install cp $ext_builddir/xsl.$suffix \$(phplibdir)
105083:
105084: $ext_builddir/xsl.$suffix: \$(shared_objects_xsl) \$(XSL_SHARED_DEPENDENCIES)
105085: $link_cmd
105086:
105087: EOF
105088:
105089: ;;
105090: esac
105091:
105092: cat >>confdefs.h <<_ACEOF
105093: #define COMPILE_DL_XSL 1
105094: _ACEOF
105095:
105096: fi
105097: fi
105098:
105099: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
105100: PHP_XSL_SHARED=no
105101:
105102:
105103: case ext/xsl in
105104: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
105105: /*) ac_srcdir=`echo "ext/xsl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
105106: *) ac_srcdir="$abs_srcdir/ext/xsl/"; ac_bdir="ext/xsl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
105107: esac
105108:
105109:
105110:
105111: b_c_pre=$php_c_pre
105112: b_cxx_pre=$php_cxx_pre
105113: b_c_meta=$php_c_meta
105114: b_cxx_meta=$php_cxx_meta
105115: b_c_post=$php_c_post
105116: b_cxx_post=$php_cxx_post
105117: b_lo=$php_lo
105118:
105119:
105120: old_IFS=$IFS
105121: for ac_src in php_xsl.c xsltprocessor.c; do
105122:
105123: IFS=.
105124: set $ac_src
105125: ac_obj=$1
105126: IFS=$old_IFS
105127:
105128: PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
105129:
105130: case $ac_src in
105131: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
105132: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
105133: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
105134: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
105135: esac
105136:
105137: cat >>Makefile.objects<<EOF
105138: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
105139: $ac_comp
105140: EOF
105141: done
105142:
105143:
105144:
105145:
105146: case ext/xsl in
105147: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
105148: /*) ac_srcdir=`echo "ext/xsl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
105149: *) ac_srcdir="$abs_srcdir/ext/xsl/"; ac_bdir="ext/xsl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
105150: esac
105151:
105152:
105153:
105154: b_c_pre=$php_c_pre
105155: b_cxx_pre=$php_cxx_pre
105156: b_c_meta=$php_c_meta
105157: b_cxx_meta=$php_cxx_meta
105158: b_c_post=$php_c_post
105159: b_cxx_post=$php_cxx_post
105160: b_lo=$php_lo
105161:
105162:
105163: old_IFS=$IFS
105164: for ac_src in php_xsl.c xsltprocessor.c; do
105165:
105166: IFS=.
105167: set $ac_src
105168: ac_obj=$1
105169: IFS=$old_IFS
105170:
105171: PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo"
105172:
105173: case $ac_src in
105174: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
105175: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
105176: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
105177: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
105178: esac
105179:
105180: cat >>Makefile.objects<<EOF
105181: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
105182: $ac_comp
105183: EOF
105184: done
105185:
105186:
105187:
105188:
105189: case ext/xsl in
105190: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
105191: /*) ac_srcdir=`echo "ext/xsl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
105192: *) ac_srcdir="$abs_srcdir/ext/xsl/"; ac_bdir="ext/xsl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
105193: esac
105194:
105195:
105196:
105197: b_c_pre=$php_c_pre
105198: b_cxx_pre=$php_cxx_pre
105199: b_c_meta=$php_c_meta
105200: b_cxx_meta=$php_cxx_meta
105201: b_c_post=$php_c_post
105202: b_cxx_post=$php_cxx_post
105203: b_lo=$php_lo
105204:
105205:
105206: old_IFS=$IFS
105207: for ac_src in php_xsl.c xsltprocessor.c; do
105208:
105209: IFS=.
105210: set $ac_src
105211: ac_obj=$1
105212: IFS=$old_IFS
105213:
105214: PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo"
105215:
105216: case $ac_src in
105217: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
105218: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
105219: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
105220: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
105221: esac
105222:
105223: cat >>Makefile.objects<<EOF
105224: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
105225: $ac_comp
105226: EOF
105227: done
105228:
105229:
105230: EXT_CLI_STATIC="$EXT_CLI_STATIC xsl"
105231: fi
105232:
105233:
105234: BUILD_DIR="$BUILD_DIR $ext_builddir"
105235:
105236:
105237:
105238: if test "$ext_builddir" = "."; then
105239: PHP_PECL_EXTENSION=xsl
105240:
105241: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
105242:
105243: fi
105244:
105245:
105246: PHP_VAR_SUBST="$PHP_VAR_SUBST XSL_SHARED_LIBADD"
105247:
105248:
105249: am_i_shared=$PHP_XSL_SHARED
105250: is_it_shared=$PHP_LIBXML_SHARED
105251: is_it_enabled=$PHP_LIBXML
105252: if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
105253: as_fn_error $? "
105254: You've configured extension xsl to build statically, but it
105255: depends on extension libxml, which you've configured to build shared.
105256: You either need to build xsl shared or build libxml statically for the
105257: build to be successful.
105258: " "$LINENO" 5
105259: fi
105260:
105261: fi
105262:
105263:
105264:
105265: php_enable_zip=no
105266:
105267: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zip archive read/writesupport" >&5
105268: $as_echo_n "checking for zip archive read/writesupport... " >&6; }
105269: # Check whether --enable-zip was given.
105270: if test "${enable_zip+set}" = set; then :
105271: enableval=$enable_zip; PHP_ZIP=$enableval
105272: else
105273:
105274: PHP_ZIP=no
105275: test "$PHP_ENABLE_ALL" && PHP_ZIP=$PHP_ENABLE_ALL
105276:
105277: fi
105278:
105279:
105280:
105281: ext_output="yes, shared"
105282: ext_shared=yes
105283: case $PHP_ZIP in
105284: shared,*)
105285: PHP_ZIP=`echo "$PHP_ZIP"|$SED 's/^shared,//'`
105286: ;;
105287: shared)
105288: PHP_ZIP=yes
105289: ;;
105290: no)
105291: ext_output=no
105292: ext_shared=no
105293: ;;
105294: *)
105295: ext_output=yes
105296: ext_shared=no
105297: ;;
105298: esac
105299:
105300:
105301:
105302: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
105303: $as_echo "$ext_output" >&6; }
105304:
105305:
105306:
105307:
105308: if test -z "$PHP_ZLIB_DIR"; then
105309:
105310: php_with_zlib_dir=no
105311:
105312: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the location of libz" >&5
105313: $as_echo_n "checking for the location of libz... " >&6; }
105314:
105315: # Check whether --with-zlib-dir was given.
105316: if test "${with_zlib_dir+set}" = set; then :
105317: withval=$with_zlib_dir; PHP_ZLIB_DIR=$withval
105318: else
105319:
105320: PHP_ZLIB_DIR=no
105321:
105322:
105323: fi
105324:
105325:
105326: ext_output=$PHP_ZLIB_DIR
105327: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
105328: $as_echo "$ext_output" >&6; }
105329:
105330:
105331:
105332: fi
105333:
105334:
105335: php_with_pcre_dir=no
105336:
105337: { $as_echo "$as_me:${as_lineno-$LINENO}: checking pcre install prefix" >&5
105338: $as_echo_n "checking pcre install prefix... " >&6; }
105339:
105340: # Check whether --with-pcre-dir was given.
105341: if test "${with_pcre_dir+set}" = set; then :
105342: withval=$with_pcre_dir; PHP_PCRE_DIR=$withval
105343: else
105344:
105345: PHP_PCRE_DIR=no
105346:
105347:
105348: fi
105349:
105350:
105351: ext_output=$PHP_PCRE_DIR
105352: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
105353: $as_echo "$ext_output" >&6; }
105354:
105355:
105356:
105357:
105358: if test "$PHP_ZIP" != "no"; then
105359:
105360: if test "$PHP_ZLIB_DIR" != "no" && test "$PHP_ZLIB_DIR" != "yes"; then
105361: if test -f "$PHP_ZLIB_DIR/include/zlib/zlib.h"; then
105362: PHP_ZLIB_DIR="$PHP_ZLIB_DIR"
105363: PHP_ZLIB_INCDIR="$PHP_ZLIB_DIR/include/zlib"
105364: elif test -f "$PHP_ZLIB_DIR/include/zlib.h"; then
105365: PHP_ZLIB_DIR="$PHP_ZLIB_DIR"
105366: PHP_ZLIB_INCDIR="$PHP_ZLIB_DIR/include"
105367: else
105368: as_fn_error $? "Can not find zlib headers under \"$PHP_ZLIB_DIR\"" "$LINENO" 5
105369: fi
105370: else
105371: for i in /usr/local /usr; do
105372: if test -f "$i/include/zlib/zlib.h"; then
105373: PHP_ZLIB_DIR="$i"
105374: PHP_ZLIB_INCDIR="$i/include/zlib"
105375: elif test -f "$i/include/zlib.h"; then
105376: PHP_ZLIB_DIR="$i"
105377: PHP_ZLIB_INCDIR="$i/include"
105378: fi
105379: done
105380: fi
105381:
105382: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the location of zlib" >&5
105383: $as_echo_n "checking for the location of zlib... " >&6; }
105384: if test "$PHP_ZLIB_DIR" = "no"; then
105385: as_fn_error $? "zip support requires ZLIB. Use --with-zlib-dir=<DIR> to specify prefix where ZLIB include and library are located" "$LINENO" 5
105386: else
105387: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_ZLIB_DIR" >&5
105388: $as_echo "$PHP_ZLIB_DIR" >&6; }
105389:
105390:
105391: if test "$ext_shared" = "yes"; then
105392: ZIP_SHARED_LIBADD="-lz $ZIP_SHARED_LIBADD"
105393: if test -n "$PHP_ZLIB_DIR/$PHP_LIBDIR"; then
105394:
105395: if test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/lib"; then
105396:
105397: if test -z "$PHP_ZLIB_DIR/$PHP_LIBDIR" || echo "$PHP_ZLIB_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
105398: ai_p=$PHP_ZLIB_DIR/$PHP_LIBDIR
105399: else
105400:
105401: ep_dir="`echo $PHP_ZLIB_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
105402:
105403: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
105404: ai_p="$ep_realdir/`basename \"$PHP_ZLIB_DIR/$PHP_LIBDIR\"`"
105405: fi
105406:
105407:
105408: if test "$ext_shared" = "yes"; then
105409: ZIP_SHARED_LIBADD="-L$ai_p $ZIP_SHARED_LIBADD"
105410: test -n "$ld_runpath_switch" && ZIP_SHARED_LIBADD="$ld_runpath_switch$ai_p $ZIP_SHARED_LIBADD"
105411: else
105412:
105413:
105414:
105415: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
105416:
105417: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
105418: if test -n "$unique" && test "`eval $cmd`" = "" ; then
105419: eval "LIBPATH$unique=set"
105420:
105421: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
105422: LDFLAGS="$LDFLAGS -L$ai_p"
105423: PHP_RPATHS="$PHP_RPATHS $ai_p"
105424:
105425: fi
105426:
105427:
105428: fi
105429:
105430: fi
105431:
105432: fi
105433: else
105434:
105435:
105436: if test -n "$PHP_ZLIB_DIR/$PHP_LIBDIR"; then
105437:
105438: if test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/lib"; then
105439:
105440: if test -z "$PHP_ZLIB_DIR/$PHP_LIBDIR" || echo "$PHP_ZLIB_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
105441: ai_p=$PHP_ZLIB_DIR/$PHP_LIBDIR
105442: else
105443:
105444: ep_dir="`echo $PHP_ZLIB_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`"
105445:
105446: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
105447: ai_p="$ep_realdir/`basename \"$PHP_ZLIB_DIR/$PHP_LIBDIR\"`"
105448: fi
105449:
105450:
105451:
105452:
105453:
105454: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
105455:
105456: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
105457: if test -n "$unique" && test "`eval $cmd`" = "" ; then
105458: eval "LIBPATH$unique=set"
105459:
105460: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
105461: LDFLAGS="$LDFLAGS -L$ai_p"
105462: PHP_RPATHS="$PHP_RPATHS $ai_p"
105463:
105464: fi
105465:
105466:
105467:
105468: fi
105469:
105470: fi
105471:
105472:
105473: case z in
105474: c|c_r|pthread*) ;;
105475: *)
105476: LIBS="-lz $LIBS"
105477: ;;
105478: esac
105479:
105480:
105481:
105482:
105483: fi
105484:
105485:
105486:
105487: if test "$PHP_ZLIB_INCDIR" != "/usr/include"; then
105488:
105489: if test -z "$PHP_ZLIB_INCDIR" || echo "$PHP_ZLIB_INCDIR" | grep '^/' >/dev/null ; then
105490: ai_p=$PHP_ZLIB_INCDIR
105491: else
105492:
105493: ep_dir="`echo $PHP_ZLIB_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`"
105494:
105495: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
105496: ai_p="$ep_realdir/`basename \"$PHP_ZLIB_INCDIR\"`"
105497: fi
105498:
105499:
105500:
105501: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
105502:
105503: cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
105504: if test -n "$unique" && test "`eval $cmd`" = "" ; then
105505: eval "INCLUDEPATH$unique=set"
105506:
105507: if test ""; then
105508: INCLUDES="-I$ai_p $INCLUDES"
105509: else
105510: INCLUDES="$INCLUDES -I$ai_p"
105511: fi
105512:
105513: fi
105514:
105515: fi
105516:
105517: fi
105518:
105519: old_CPPFLAGS=$CPPFLAGS
105520: CPPFLAGS=$INCLUDES
105521: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
105522: /* end confdefs.h. */
105523:
105524: #include <main/php_config.h>
105525: #if defined(HAVE_BUNDLED_PCRE) && !defined(COMPILE_DL_PCRE)
105526: yes
105527: #endif
105528:
105529: _ACEOF
105530: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
105531: $EGREP "yes" >/dev/null 2>&1; then :
105532:
105533: PHP_PCRE_REGEX=yes
105534:
105535: else
105536:
105537: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
105538: /* end confdefs.h. */
105539:
105540: #include <main/php_config.h>
105541: #if defined(HAVE_PCRE) && !defined(COMPILE_DL_PCRE)
105542: yes
105543: #endif
105544:
105545: _ACEOF
105546: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
105547: $EGREP "yes" >/dev/null 2>&1; then :
105548:
105549: PHP_PCRE_REGEX=pecl
105550:
105551: else
105552:
105553: PHP_PCRE_REGEX=no
105554:
105555: fi
105556: rm -f conftest*
105557:
105558:
105559: fi
105560: rm -f conftest*
105561:
105562: CPPFLAGS=$old_CPPFLAGS
105563:
105564: PHP_ZIP_SOURCES="$PHP_ZIP_SOURCES lib/zip_add.c lib/zip_error.c lib/zip_fclose.c \
105565: lib/zip_fread.c lib/zip_open.c lib/zip_source_filep.c \
105566: lib/zip_strerror.c lib/zip_close.c lib/zip_error_get.c \
105567: lib/zip_file_error_get.c lib/zip_free.c lib/zip_rename.c \
105568: lib/zip_source_free.c lib/zip_unchange_all.c lib/zip_delete.c \
105569: lib/zip_error_get_sys_type.c lib/zip_file_get_offset.c \
105570: lib/zip_get_name.c lib/zip_replace.c lib/zip_source_function.c \
105571: lib/zip_unchange.c lib/zip_dirent.c lib/zip_error_strerror.c \
105572: lib/zip_filerange_crc.c lib/zip_file_strerror.c lib/zip_get_num_files.c \
105573: lib/zip_get_archive_flag.c lib/zip_set_archive_flag.c \
105574: lib/zip_set_name.c lib/zip_source_zip.c lib/zip_unchange_data.c \
105575: lib/zip_entry_free.c lib/zip_error_to_str.c lib/zip_fopen.c \
105576: lib/zip_name_locate.c lib/zip_source_buffer.c lib/zip_stat.c \
105577: lib/zip_entry_new.c lib/zip_err_str.c lib/zip_fopen_index.c \
105578: lib/zip_get_archive_comment.c lib/zip_get_file_comment.c \
105579: lib/zip_new.c lib/zip_source_file.c lib/zip_stat_index.c \
105580: lib/zip_set_archive_comment.c lib/zip_set_file_comment.c \
105581: lib/zip_unchange_archive.c lib/zip_memdup.c lib/zip_stat_init.c lib/zip_add_dir.c \
105582: lib/zip_error_clear.c lib/zip_file_error_clear.c"
105583:
105584:
105585: $as_echo "#define HAVE_ZIP 1" >>confdefs.h
105586:
105587:
105588: ext_builddir=ext/zip
105589: ext_srcdir=$abs_srcdir/ext/zip
105590:
105591: ac_extra=
105592:
105593: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
105594: PHP_ZIP_SHARED=no
105595:
105596:
105597: case ext/zip in
105598: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
105599: /*) ac_srcdir=`echo "ext/zip"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
105600: *) ac_srcdir="$abs_srcdir/ext/zip/"; ac_bdir="ext/zip/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
105601: esac
105602:
105603:
105604:
105605: b_c_pre=$php_c_pre
105606: b_cxx_pre=$php_cxx_pre
105607: b_c_meta=$php_c_meta
105608: b_cxx_meta=$php_cxx_meta
105609: b_c_post=$php_c_post
105610: b_cxx_post=$php_cxx_post
105611: b_lo=$php_lo
105612:
105613:
105614: old_IFS=$IFS
105615: for ac_src in php_zip.c zip_stream.c $PHP_ZIP_SOURCES; do
105616:
105617: IFS=.
105618: set $ac_src
105619: ac_obj=$1
105620: IFS=$old_IFS
105621:
105622: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
105623:
105624: case $ac_src in
105625: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
105626: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
105627: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
105628: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
105629: esac
105630:
105631: cat >>Makefile.objects<<EOF
105632: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
105633: $ac_comp
105634: EOF
105635: done
105636:
105637:
105638: EXT_STATIC="$EXT_STATIC zip"
105639: if test "$ext_shared" != "nocli"; then
105640: EXT_CLI_STATIC="$EXT_CLI_STATIC zip"
105641: fi
105642: else
105643: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
105644: PHP_ZIP_SHARED=yes
105645:
105646: case ext/zip in
105647: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
105648: /*) ac_srcdir=`echo "ext/zip"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
105649: *) ac_srcdir="$abs_srcdir/ext/zip/"; ac_bdir="ext/zip/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
105650: esac
105651:
105652:
105653:
105654: b_c_pre=$shared_c_pre
105655: b_cxx_pre=$shared_cxx_pre
105656: b_c_meta=$shared_c_meta
105657: b_cxx_meta=$shared_cxx_meta
105658: b_c_post=$shared_c_post
105659: b_cxx_post=$shared_cxx_post
105660: b_lo=$shared_lo
105661:
105662:
105663: old_IFS=$IFS
105664: for ac_src in php_zip.c zip_stream.c $PHP_ZIP_SOURCES; do
105665:
105666: IFS=.
105667: set $ac_src
105668: ac_obj=$1
105669: IFS=$old_IFS
105670:
105671: shared_objects_zip="$shared_objects_zip $ac_bdir$ac_obj.lo"
105672:
105673: case $ac_src in
105674: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
105675: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
105676: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
105677: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
105678: esac
105679:
105680: cat >>Makefile.objects<<EOF
105681: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
105682: $ac_comp
105683: EOF
105684: done
105685:
105686: case $host_alias in
105687: *netware*)
105688:
105689: install_modules="install-modules"
105690:
105691: case $host_alias in
105692: *aix*)
105693: suffix=so
105694: 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'
105695: ;;
105696: *netware*)
105697: suffix=nlm
105698: link_cmd='$(LIBTOOL) --mode=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)'
105699: ;;
105700: *)
105701: suffix=la
105702: link_cmd='$(LIBTOOL) --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)'
105703: ;;
105704: esac
105705:
105706: if test "x" = "xyes"; then
105707: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpzip.$suffix"
105708: else
105709: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpzip.$suffix"
105710: fi
105711:
105712: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_zip"
105713:
105714: cat >>Makefile.objects<<EOF
105715: \$(phplibdir)/phpzip.$suffix: $ext_builddir/phpzip.$suffix
105716: \$(LIBTOOL) --mode=install cp $ext_builddir/phpzip.$suffix \$(phplibdir)
105717:
105718: $ext_builddir/phpzip.$suffix: \$(shared_objects_zip) \$(PHPZIP_SHARED_DEPENDENCIES)
105719: $link_cmd
105720:
105721: EOF
105722:
105723: ;;
105724: *)
105725:
105726: install_modules="install-modules"
105727:
105728: case $host_alias in
105729: *aix*)
105730: suffix=so
105731: 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'
105732: ;;
105733: *netware*)
105734: suffix=nlm
105735: link_cmd='$(LIBTOOL) --mode=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)'
105736: ;;
105737: *)
105738: suffix=la
105739: link_cmd='$(LIBTOOL) --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)'
105740: ;;
105741: esac
105742:
105743: if test "x" = "xyes"; then
105744: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/zip.$suffix"
105745: else
105746: PHP_MODULES="$PHP_MODULES \$(phplibdir)/zip.$suffix"
105747: fi
105748:
105749: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_zip"
105750:
105751: cat >>Makefile.objects<<EOF
105752: \$(phplibdir)/zip.$suffix: $ext_builddir/zip.$suffix
105753: \$(LIBTOOL) --mode=install cp $ext_builddir/zip.$suffix \$(phplibdir)
105754:
105755: $ext_builddir/zip.$suffix: \$(shared_objects_zip) \$(ZIP_SHARED_DEPENDENCIES)
105756: $link_cmd
105757:
105758: EOF
105759:
105760: ;;
105761: esac
105762:
105763: cat >>confdefs.h <<_ACEOF
105764: #define COMPILE_DL_ZIP 1
105765: _ACEOF
105766:
105767: fi
105768: fi
105769:
105770: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
105771: PHP_ZIP_SHARED=no
105772:
105773:
105774: case ext/zip in
105775: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
105776: /*) ac_srcdir=`echo "ext/zip"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
105777: *) ac_srcdir="$abs_srcdir/ext/zip/"; ac_bdir="ext/zip/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
105778: esac
105779:
105780:
105781:
105782: b_c_pre=$php_c_pre
105783: b_cxx_pre=$php_cxx_pre
105784: b_c_meta=$php_c_meta
105785: b_cxx_meta=$php_cxx_meta
105786: b_c_post=$php_c_post
105787: b_cxx_post=$php_cxx_post
105788: b_lo=$php_lo
105789:
105790:
105791: old_IFS=$IFS
105792: for ac_src in php_zip.c zip_stream.c $PHP_ZIP_SOURCES; do
105793:
105794: IFS=.
105795: set $ac_src
105796: ac_obj=$1
105797: IFS=$old_IFS
105798:
105799: PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
105800:
105801: case $ac_src in
105802: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
105803: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
105804: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
105805: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
105806: esac
105807:
105808: cat >>Makefile.objects<<EOF
105809: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
105810: $ac_comp
105811: EOF
105812: done
105813:
105814:
105815:
105816:
105817: case ext/zip in
105818: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
105819: /*) ac_srcdir=`echo "ext/zip"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
105820: *) ac_srcdir="$abs_srcdir/ext/zip/"; ac_bdir="ext/zip/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
105821: esac
105822:
105823:
105824:
105825: b_c_pre=$php_c_pre
105826: b_cxx_pre=$php_cxx_pre
105827: b_c_meta=$php_c_meta
105828: b_cxx_meta=$php_cxx_meta
105829: b_c_post=$php_c_post
105830: b_cxx_post=$php_cxx_post
105831: b_lo=$php_lo
105832:
105833:
105834: old_IFS=$IFS
105835: for ac_src in php_zip.c zip_stream.c $PHP_ZIP_SOURCES; do
105836:
105837: IFS=.
105838: set $ac_src
105839: ac_obj=$1
105840: IFS=$old_IFS
105841:
105842: PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo"
105843:
105844: case $ac_src in
105845: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
105846: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
105847: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
105848: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
105849: esac
105850:
105851: cat >>Makefile.objects<<EOF
105852: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
105853: $ac_comp
105854: EOF
105855: done
105856:
105857:
105858:
105859:
105860: case ext/zip in
105861: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
105862: /*) ac_srcdir=`echo "ext/zip"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
105863: *) ac_srcdir="$abs_srcdir/ext/zip/"; ac_bdir="ext/zip/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
105864: esac
105865:
105866:
105867:
105868: b_c_pre=$php_c_pre
105869: b_cxx_pre=$php_cxx_pre
105870: b_c_meta=$php_c_meta
105871: b_cxx_meta=$php_cxx_meta
105872: b_c_post=$php_c_post
105873: b_cxx_post=$php_cxx_post
105874: b_lo=$php_lo
105875:
105876:
105877: old_IFS=$IFS
105878: for ac_src in php_zip.c zip_stream.c $PHP_ZIP_SOURCES; do
105879:
105880: IFS=.
105881: set $ac_src
105882: ac_obj=$1
105883: IFS=$old_IFS
105884:
105885: PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo"
105886:
105887: case $ac_src in
105888: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
105889: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
105890: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
105891: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
105892: esac
105893:
105894: cat >>Makefile.objects<<EOF
105895: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
105896: $ac_comp
105897: EOF
105898: done
105899:
105900:
105901: EXT_CLI_STATIC="$EXT_CLI_STATIC zip"
105902: fi
105903:
105904:
105905: BUILD_DIR="$BUILD_DIR $ext_builddir"
105906:
105907:
105908:
105909: if test "$ext_builddir" = "."; then
105910: PHP_PECL_EXTENSION=zip
105911:
105912: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
105913:
105914: fi
105915:
105916:
105917:
105918: $php_shtool mkdir -p $ext_builddir/lib
105919:
105920:
105921:
105922: PHP_VAR_SUBST="$PHP_VAR_SUBST ZIP_SHARED_LIBADD"
105923:
105924:
105925:
105926: src=$ext_srcdir/Makefile.frag
105927: ac_srcdir=$ext_srcdir
105928: ac_builddir=$ext_builddir
105929: test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments
105930:
105931: fi
105932:
105933:
105934:
105935: php_enable_mysqlnd=no
105936:
105937: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mysqlnd" >&5
105938: $as_echo_n "checking whether to enable mysqlnd... " >&6; }
105939: # Check whether --enable-mysqlnd was given.
105940: if test "${enable_mysqlnd+set}" = set; then :
105941: enableval=$enable_mysqlnd; PHP_MYSQLND=$enableval
105942: else
105943:
105944: PHP_MYSQLND=no
105945: test "$PHP_ENABLE_ALL" && PHP_MYSQLND=$PHP_ENABLE_ALL
105946:
105947: fi
105948:
105949:
105950:
105951: ext_output="yes, shared"
105952: ext_shared=yes
105953: case $PHP_MYSQLND in
105954: shared,*)
105955: PHP_MYSQLND=`echo "$PHP_MYSQLND"|$SED 's/^shared,//'`
105956: ;;
105957: shared)
105958: PHP_MYSQLND=yes
105959: ;;
105960: no)
105961: ext_output=no
105962: ext_shared=no
105963: ;;
105964: *)
105965: ext_output=yes
105966: ext_shared=no
105967: ;;
105968: esac
105969:
105970:
105971:
105972: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
105973: $as_echo "$ext_output" >&6; }
105974:
105975:
105976:
105977:
105978:
105979: php_enable_mysqlnd_compression_support=yes
105980:
105981: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable compressed protocol support in mysqlnd" >&5
105982: $as_echo_n "checking whether to disable compressed protocol support in mysqlnd... " >&6; }
105983: # Check whether --enable-mysqlnd_compression_support was given.
105984: if test "${enable_mysqlnd_compression_support+set}" = set; then :
105985: enableval=$enable_mysqlnd_compression_support; PHP_MYSQLND_COMPRESSION_SUPPORT=$enableval
105986: else
105987:
105988: PHP_MYSQLND_COMPRESSION_SUPPORT=yes
105989:
105990:
105991: fi
105992:
105993:
105994: ext_output=$PHP_MYSQLND_COMPRESSION_SUPPORT
105995: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
105996: $as_echo "$ext_output" >&6; }
105997:
105998:
105999:
106000:
106001: if test -z "$PHP_ZLIB_DIR"; then
106002:
106003: php_with_zlib_dir=no
106004:
106005: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the location of libz" >&5
106006: $as_echo_n "checking for the location of libz... " >&6; }
106007:
106008: # Check whether --with-zlib-dir was given.
106009: if test "${with_zlib_dir+set}" = set; then :
106010: withval=$with_zlib_dir; PHP_ZLIB_DIR=$withval
106011: else
106012:
106013: PHP_ZLIB_DIR=no
106014:
106015:
106016: fi
106017:
106018:
106019: ext_output=$PHP_ZLIB_DIR
106020: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
106021: $as_echo "$ext_output" >&6; }
106022:
106023:
106024:
106025: fi
106026:
106027: if test "$PHP_MYSQLND" != "no" || test "$PHP_MYSQLND_ENABLED" = "yes"; then
106028: mysqlnd_ps_sources="mysqlnd_ps.c mysqlnd_ps_codec.c"
106029: mysqlnd_base_sources="mysqlnd.c mysqlnd_charset.c mysqlnd_wireprotocol.c \
106030: mysqlnd_loaddata.c mysqlnd_net.c mysqlnd_statistics.c \
106031: mysqlnd_result.c mysqlnd_result_meta.c mysqlnd_debug.c\
106032: mysqlnd_block_alloc.c php_mysqlnd.c"
106033:
106034:
106035: if test "$PHP_MYSQLND_COMPRESSION_SUPPORT" != "no"; then
106036:
106037: $as_echo "#define MYSQLND_COMPRESSION_WANTED 1" >>confdefs.h
106038:
106039: fi
106040:
106041: $as_echo "#define MYSQLND_SSL_SUPPORTED 1" >>confdefs.h
106042:
106043:
106044: mysqlnd_sources="$mysqlnd_base_sources $mysqlnd_ps_sources"
106045:
106046: ext_builddir=ext/mysqlnd
106047: ext_srcdir=$abs_srcdir/ext/mysqlnd
106048:
106049: ac_extra=
106050:
106051: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
106052: PHP_MYSQLND_SHARED=no
106053:
106054:
106055: case ext/mysqlnd in
106056: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
106057: /*) ac_srcdir=`echo "ext/mysqlnd"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
106058: *) ac_srcdir="$abs_srcdir/ext/mysqlnd/"; ac_bdir="ext/mysqlnd/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
106059: esac
106060:
106061:
106062:
106063: b_c_pre=$php_c_pre
106064: b_cxx_pre=$php_cxx_pre
106065: b_c_meta=$php_c_meta
106066: b_cxx_meta=$php_cxx_meta
106067: b_c_post=$php_c_post
106068: b_cxx_post=$php_cxx_post
106069: b_lo=$php_lo
106070:
106071:
106072: old_IFS=$IFS
106073: for ac_src in $mysqlnd_sources; do
106074:
106075: IFS=.
106076: set $ac_src
106077: ac_obj=$1
106078: IFS=$old_IFS
106079:
106080: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
106081:
106082: case $ac_src in
106083: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
106084: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
106085: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
106086: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
106087: esac
106088:
106089: cat >>Makefile.objects<<EOF
106090: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
106091: $ac_comp
106092: EOF
106093: done
106094:
106095:
106096: EXT_STATIC="$EXT_STATIC mysqlnd"
106097: if test "$ext_shared" != "nocli"; then
106098: EXT_CLI_STATIC="$EXT_CLI_STATIC mysqlnd"
106099: fi
106100: else
106101: if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
106102: PHP_MYSQLND_SHARED=yes
106103:
106104: case ext/mysqlnd in
106105: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
106106: /*) ac_srcdir=`echo "ext/mysqlnd"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
106107: *) ac_srcdir="$abs_srcdir/ext/mysqlnd/"; ac_bdir="ext/mysqlnd/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
106108: esac
106109:
106110:
106111:
106112: b_c_pre=$shared_c_pre
106113: b_cxx_pre=$shared_cxx_pre
106114: b_c_meta=$shared_c_meta
106115: b_cxx_meta=$shared_cxx_meta
106116: b_c_post=$shared_c_post
106117: b_cxx_post=$shared_cxx_post
106118: b_lo=$shared_lo
106119:
106120:
106121: old_IFS=$IFS
106122: for ac_src in $mysqlnd_sources; do
106123:
106124: IFS=.
106125: set $ac_src
106126: ac_obj=$1
106127: IFS=$old_IFS
106128:
106129: shared_objects_mysqlnd="$shared_objects_mysqlnd $ac_bdir$ac_obj.lo"
106130:
106131: case $ac_src in
106132: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
106133: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
106134: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
106135: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
106136: esac
106137:
106138: cat >>Makefile.objects<<EOF
106139: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
106140: $ac_comp
106141: EOF
106142: done
106143:
106144: case $host_alias in
106145: *netware*)
106146:
106147: install_modules="install-modules"
106148:
106149: case $host_alias in
106150: *aix*)
106151: suffix=so
106152: 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'
106153: ;;
106154: *netware*)
106155: suffix=nlm
106156: link_cmd='$(LIBTOOL) --mode=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)'
106157: ;;
106158: *)
106159: suffix=la
106160: link_cmd='$(LIBTOOL) --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)'
106161: ;;
106162: esac
106163:
106164: if test "x" = "xyes"; then
106165: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpmysqlnd.$suffix"
106166: else
106167: PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpmysqlnd.$suffix"
106168: fi
106169:
106170: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_mysqlnd"
106171:
106172: cat >>Makefile.objects<<EOF
106173: \$(phplibdir)/phpmysqlnd.$suffix: $ext_builddir/phpmysqlnd.$suffix
106174: \$(LIBTOOL) --mode=install cp $ext_builddir/phpmysqlnd.$suffix \$(phplibdir)
106175:
106176: $ext_builddir/phpmysqlnd.$suffix: \$(shared_objects_mysqlnd) \$(PHPMYSQLND_SHARED_DEPENDENCIES)
106177: $link_cmd
106178:
106179: EOF
106180:
106181: ;;
106182: *)
106183:
106184: install_modules="install-modules"
106185:
106186: case $host_alias in
106187: *aix*)
106188: suffix=so
106189: 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'
106190: ;;
106191: *netware*)
106192: suffix=nlm
106193: link_cmd='$(LIBTOOL) --mode=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)'
106194: ;;
106195: *)
106196: suffix=la
106197: link_cmd='$(LIBTOOL) --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)'
106198: ;;
106199: esac
106200:
106201: if test "x" = "xyes"; then
106202: PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/mysqlnd.$suffix"
106203: else
106204: PHP_MODULES="$PHP_MODULES \$(phplibdir)/mysqlnd.$suffix"
106205: fi
106206:
106207: PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_mysqlnd"
106208:
106209: cat >>Makefile.objects<<EOF
106210: \$(phplibdir)/mysqlnd.$suffix: $ext_builddir/mysqlnd.$suffix
106211: \$(LIBTOOL) --mode=install cp $ext_builddir/mysqlnd.$suffix \$(phplibdir)
106212:
106213: $ext_builddir/mysqlnd.$suffix: \$(shared_objects_mysqlnd) \$(MYSQLND_SHARED_DEPENDENCIES)
106214: $link_cmd
106215:
106216: EOF
106217:
106218: ;;
106219: esac
106220:
106221: cat >>confdefs.h <<_ACEOF
106222: #define COMPILE_DL_MYSQLND 1
106223: _ACEOF
106224:
106225: fi
106226: fi
106227:
106228: if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
106229: PHP_MYSQLND_SHARED=no
106230:
106231:
106232: case ext/mysqlnd in
106233: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
106234: /*) ac_srcdir=`echo "ext/mysqlnd"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
106235: *) ac_srcdir="$abs_srcdir/ext/mysqlnd/"; ac_bdir="ext/mysqlnd/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
106236: esac
106237:
106238:
106239:
106240: b_c_pre=$php_c_pre
106241: b_cxx_pre=$php_cxx_pre
106242: b_c_meta=$php_c_meta
106243: b_cxx_meta=$php_cxx_meta
106244: b_c_post=$php_c_post
106245: b_cxx_post=$php_cxx_post
106246: b_lo=$php_lo
106247:
106248:
106249: old_IFS=$IFS
106250: for ac_src in $mysqlnd_sources; do
106251:
106252: IFS=.
106253: set $ac_src
106254: ac_obj=$1
106255: IFS=$old_IFS
106256:
106257: PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
106258:
106259: case $ac_src in
106260: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
106261: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
106262: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
106263: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
106264: esac
106265:
106266: cat >>Makefile.objects<<EOF
106267: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
106268: $ac_comp
106269: EOF
106270: done
106271:
106272:
106273:
106274:
106275: case ext/mysqlnd in
106276: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
106277: /*) ac_srcdir=`echo "ext/mysqlnd"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
106278: *) ac_srcdir="$abs_srcdir/ext/mysqlnd/"; ac_bdir="ext/mysqlnd/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
106279: esac
106280:
106281:
106282:
106283: b_c_pre=$php_c_pre
106284: b_cxx_pre=$php_cxx_pre
106285: b_c_meta=$php_c_meta
106286: b_cxx_meta=$php_cxx_meta
106287: b_c_post=$php_c_post
106288: b_cxx_post=$php_cxx_post
106289: b_lo=$php_lo
106290:
106291:
106292: old_IFS=$IFS
106293: for ac_src in $mysqlnd_sources; do
106294:
106295: IFS=.
106296: set $ac_src
106297: ac_obj=$1
106298: IFS=$old_IFS
106299:
106300: PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo"
106301:
106302: case $ac_src in
106303: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
106304: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
106305: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
106306: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
106307: esac
106308:
106309: cat >>Makefile.objects<<EOF
106310: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
106311: $ac_comp
106312: EOF
106313: done
106314:
106315:
106316:
106317:
106318: case ext/mysqlnd in
106319: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
106320: /*) ac_srcdir=`echo "ext/mysqlnd"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
106321: *) ac_srcdir="$abs_srcdir/ext/mysqlnd/"; ac_bdir="ext/mysqlnd/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
106322: esac
106323:
106324:
106325:
106326: b_c_pre=$php_c_pre
106327: b_cxx_pre=$php_cxx_pre
106328: b_c_meta=$php_c_meta
106329: b_cxx_meta=$php_cxx_meta
106330: b_c_post=$php_c_post
106331: b_cxx_post=$php_cxx_post
106332: b_lo=$php_lo
106333:
106334:
106335: old_IFS=$IFS
106336: for ac_src in $mysqlnd_sources; do
106337:
106338: IFS=.
106339: set $ac_src
106340: ac_obj=$1
106341: IFS=$old_IFS
106342:
106343: PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo"
106344:
106345: case $ac_src in
106346: *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
106347: *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
106348: *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
106349: *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
106350: esac
106351:
106352: cat >>Makefile.objects<<EOF
106353: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
106354: $ac_comp
106355: EOF
106356: done
106357:
106358:
106359: EXT_CLI_STATIC="$EXT_CLI_STATIC mysqlnd"
106360: fi
106361:
106362:
106363: BUILD_DIR="$BUILD_DIR $ext_builddir"
106364:
106365:
106366:
106367: if test "$ext_builddir" = "."; then
106368: PHP_PECL_EXTENSION=mysqlnd
106369:
106370: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
106371:
106372: fi
106373:
106374:
106375:
106376: $php_shtool mkdir -p ext/mysqlnd
106377:
106378:
106379:
106380:
106381: for header_file in ext/mysqlnd/; do
106382:
106383:
106384: unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
106385:
106386: cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
106387: if test -n "$unique" && test "`eval $cmd`" = "" ; then
106388: eval "INSTALLHEADERS$unique=set"
106389:
106390: INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
106391:
106392: fi
106393:
106394: done
106395:
106396:
106397: fi
106398:
106399: if test "$PHP_MYSQLND" != "no" || test "$PHP_MYSQLND_ENABLED" = "yes" || test "$PHP_MYSQLI" != "no"; then
106400:
106401:
106402: $php_shtool mkdir -p ext/mysqlnd
106403:
106404:
106405:
106406:
106407: 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
106408: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $php_typename exists" >&5
106409: $as_echo_n "checking whether $php_typename exists... " >&6; }
106410:
106411: php_cache_value=php_cv_sizeof_$php_typename
106412: if eval \${php_cv_sizeof_$php_typename+:} false; then :
106413: $as_echo_n "(cached) " >&6
106414: else
106415:
106416: old_LIBS=$LIBS
106417: LIBS=
106418: old_LDFLAGS=$LDFLAGS
106419: LDFLAGS=
106420: if test "$cross_compiling" = yes; then :
106421:
106422: eval $php_cache_value=0
106423:
106424: else
106425: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
106426: /* end confdefs.h. */
106427: #include <stdio.h>
106428: #if STDC_HEADERS
106429: #include <stdlib.h>
106430: #include <stddef.h>
106431: #endif
106432: #ifdef HAVE_INTTYPES_H
106433: #include <inttypes.h>
106434: #endif
106435: #ifdef HAVE_UNISTD_H
106436: #include <unistd.h>
106437: #endif
106438: #ifdef HAVE_SYS_TYPES_H
106439: #include <sys/types.h>
106440: #endif
106441: #ifdef HAVE_STDINT_H
106442: #include <stdint.h>
106443: #endif
106444:
106445:
106446: int main()
106447: {
106448: FILE *fp = fopen("conftestval", "w");
106449: if (!fp) return(1);
106450: fprintf(fp, "%d\n", sizeof($php_typename));
106451: return(0);
106452: }
106453:
106454: _ACEOF
106455: if ac_fn_c_try_run "$LINENO"; then :
106456:
106457: eval $php_cache_value=`cat conftestval`
106458:
106459: else
106460:
106461: eval $php_cache_value=0
106462:
106463: fi
106464: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
106465: conftest.$ac_objext conftest.beam conftest.$ac_ext
106466: fi
106467:
106468: LDFLAGS=$old_LDFLAGS
106469: LIBS=$old_LIBS
106470:
106471: fi
106472:
106473: if eval test "\$$php_cache_value" != "0"; then
106474:
106475:
106476: php_def_have_what=HAVE_`echo $php_typename | tr 'abcdefghijklmnopqrstuvwxyz-' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_' `
106477: echo "#define $php_def_have_what 1" >> ext/mysqlnd/php_mysqlnd_config.h
106478:
106479:
106480: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
106481: $as_echo "yes" >&6; }
106482:
106483: else
106484: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
106485: $as_echo "no" >&6; }
106486:
106487: fi
106488:
106489: done
106490:
106491: fi
106492:
106493:
106494: if test "$PHP_RECODE" != "no"; then
106495: test "$PHP_IMAP" != "no" && recode_conflict="$recode_conflict imap"
106496:
106497: if test -n "$MYSQL_LIBNAME"; then
106498:
106499: save_old_LDFLAGS=$LDFLAGS
106500: ac_stuff=""
106501:
106502: save_ext_shared=$ext_shared
106503: ext_shared=yes
106504:
106505: for ac_i in $ac_stuff; do
106506: case $ac_i in
106507: -pthread)
106508: if test "$ext_shared" = "yes"; then
106509: LDFLAGS="$LDFLAGS -pthread"
106510: else
106511:
106512:
106513: unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
106514:
106515: cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
106516: if test -n "$unique" && test "`eval $cmd`" = "" ; then
106517: eval "EXTRA_LDFLAGS$unique=set"
106518: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
106519: fi
106520:
106521: fi
106522: ;;
106523: -l*)
106524: ac_ii=`echo $ac_i|cut -c 3-`
106525:
106526:
106527: case $ac_ii in
106528: c|c_r|pthread*) ;;
106529: *)
106530: if test "$ext_shared" = "yes"; then
106531: LDFLAGS="$LDFLAGS -l$ac_ii"
106532: else
106533:
106534:
106535: case $ac_ii in
106536: c|c_r|pthread*) ;;
106537: *)
106538: LIBS="$LIBS -l$ac_ii"
106539: ;;
106540: esac
106541:
106542:
106543: fi
106544: ;;
106545: esac
106546:
106547:
106548: ;;
106549: -L*)
106550: ac_ii=`echo $ac_i|cut -c 3-`
106551:
106552: if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
106553:
106554: if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
106555: ai_p=$ac_ii
106556: else
106557:
106558: ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
106559:
106560: ep_realdir="`(cd \"$ep_dir\" && pwd)`"
106561: ai_p="$ep_realdir/`basename \"$ac_ii\"`"
106562: fi
106563:
106564:
106565: if test "$ext_shared" = "yes"; then
106566: LDFLAGS="-L$ai_p $LDFLAGS"
106567: test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
106568: else
106569:
106570:
106571:
106572: unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
106573:
106574: cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
106575: if test -n "$unique" && test "`eval $cmd`" = "" ; then
106576: eval "LIBPATH$unique=set"
106577:
106578: test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
106579: LDFLAGS="$LDFLAGS -L$ai_p"
106580: PHP_RPATHS="$PHP_RPATHS $ai_p"
106581:
106582: fi
106583:
106584:
106585: fi
106586:
106587: fi
106588:
106589: ;;
106590: esac
106591: done
106592:
106593: as_ac_Lib=`$as_echo "ac_cv_lib_$MYSQL_LIBNAME''_hash_insert" | $as_tr_sh`
106594: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hash_insert in -l$MYSQL_LIBNAME" >&5
106595: $as_echo_n "checking for hash_insert in -l$MYSQL_LIBNAME... " >&6; }
106596: if eval \${$as_ac_Lib+:} false; then :
106597: $as_echo_n "(cached) " >&6
106598: else
106599: ac_check_lib_save_LIBS=$LIBS
106600: LIBS="-l$MYSQL_LIBNAME $LIBS"
106601: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
106602: /* end confdefs.h. */
106603:
106604: /* Override any GCC internal prototype to avoid an error.
106605: Use char because int might match the return type of a GCC
106606: builtin and then its argument prototype would still apply. */
106607: #ifdef __cplusplus
106608: extern "C"
106609: #endif
106610: char hash_insert ();
106611: int
106612: main ()
106613: {
106614: return hash_insert ();
106615: ;
106616: return 0;
106617: }
106618: _ACEOF
106619: if ac_fn_c_try_link "$LINENO"; then :
106620: eval "$as_ac_Lib=yes"
106621: else
106622: eval "$as_ac_Lib=no"
106623: fi
106624: rm -f core conftest.err conftest.$ac_objext \
106625: conftest$ac_exeext conftest.$ac_ext
106626: LIBS=$ac_check_lib_save_LIBS
106627: fi
106628: eval ac_res=\$$as_ac_Lib
106629: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
106630: $as_echo "$ac_res" >&6; }
106631: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
106632:
106633: LDFLAGS=$save_old_LDFLAGS
106634: ext_shared=$save_ext_shared
106635:
106636: recode_conflict="$recode_conflict mysql"
106637:
106638:
106639: else
106640:
106641: LDFLAGS=$save_old_LDFLAGS
106642: ext_shared=$save_ext_shared
106643: unset ac_cv_lib_$MYSQL_LIBNAME_hash_insert
106644:
106645:
106646: fi
106647:
106648: fi
106649:
106650: if test -n "$recode_conflict"; then
106651: as_fn_error $? "recode extension can not be configured together with:$recode_conflict" "$LINENO" 5
106652: fi
106653: fi
106654:
106655:
106656:
106657:
106658: enable_shared=yes
106659: enable_static=yes
106660:
106661: case $php_build_target in
106662: program|static)
106663: standard_libtool_flag='-prefer-non-pic -static'
106664: if test -z "$PHP_MODULES" && test -z "$PHP_ZEND_EX"; then
106665: enable_shared=no
106666: fi
106667: ;;
106668: shared)
106669: enable_static=no
106670: case $with_pic in
106671: yes)
106672: standard_libtool_flag='-prefer-pic'
106673: ;;
106674: no)
106675: standard_libtool_flag='-prefer-non-pic'
106676: ;;
106677: esac
106678: EXTRA_LDFLAGS="$EXTRA_LDFLAGS -avoid-version -module"
106679: ;;
106680: esac
106681:
106682: EXTRA_LIBS="$EXTRA_LIBS $DLIBS $LIBS"
106683:
106684: if test "$ac_cv_lib_crypt_crypt" = "yes"; then
106685: EXTRA_LIBS="-lcrypt $EXTRA_LIBS -lcrypt"
106686: fi
106687:
106688: unset LIBS LDFLAGS
106689:
106690:
106691:
106692: # Check whether --enable- was given.
106693: if test "${enable_+set}" = set; then :
106694: enableval=$enable_;
106695: fi
106696:
106697:
106698:
106699: { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
106700: $as_echo "" >&6; }
106701: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Configuring PEAR${T_ME}" >&5
106702: $as_echo "${T_MD}Configuring PEAR${T_ME}" >&6; }
106703:
106704:
106705: # compatibility
106706: if test -z "$with_pear" && test "$enable_pear" = "no"; then
106707: with_pear=no
106708: fi
106709:
106710: # If CLI is disabled -> disable PEAR
106711: if test "$PHP_CLI" = "no"; then
106712: with_pear=no
106713: fi
106714:
106715:
106716: php_with_pear=DEFAULT
106717:
106718: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install PEAR" >&5
106719: $as_echo_n "checking whether to install PEAR... " >&6; }
106720:
106721: # Check whether --with-pear was given.
106722: if test "${with_pear+set}" = set; then :
106723: withval=$with_pear; PHP_PEAR=$withval
106724: else
106725:
106726: PHP_PEAR=DEFAULT
106727: test "$PHP_ENABLE_ALL" && PHP_PEAR=$PHP_ENABLE_ALL
106728:
106729: fi
106730:
106731:
106732:
106733: ext_output="yes, shared"
106734: ext_shared=yes
106735: case $PHP_PEAR in
106736: shared,*)
106737: PHP_PEAR=`echo "$PHP_PEAR"|$SED 's/^shared,//'`
106738: ;;
106739: shared)
106740: PHP_PEAR=yes
106741: ;;
106742: no)
106743: ext_output=no
106744: ext_shared=no
106745: ;;
106746: *)
106747: ext_output=yes
106748: ext_shared=no
106749: ;;
106750: esac
106751:
106752:
106753:
106754: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
106755: $as_echo "$ext_output" >&6; }
106756:
106757:
106758:
106759:
106760: if test "$PHP_PEAR" != "no"; then
106761:
106762: if test "$PHP_XML" = "no"; then
106763: pear_error_msg="$pear_error_msg
106764: PEAR requires XML to be enabled. Add --enable-xml to the configure line. (or --without-pear)"
106765: fi
106766:
106767:
106768: if test "$pear_error_msg"; then
106769: as_fn_error $? "$pear_error_msg" "$LINENO" 5
106770: fi
106771:
106772: install_pear="install-pear"
106773: PEAR_INSTALLDIR=$PHP_PEAR
106774:
106775: if test "$PHP_PEAR" = "DEFAULT" || test "$PHP_PEAR" = "yes"; then
106776: case $PHP_LAYOUT in
106777: GNU) PEAR_INSTALLDIR=$datadir/pear;;
106778: *) PEAR_INSTALLDIR=$libdir/php;;
106779: esac
106780: fi
106781:
106782:
106783: src=$abs_srcdir/pear/Makefile.frag
106784: ac_srcdir=$abs_srcdir/pear
106785: ac_builddir=pear
106786: test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments
106787:
106788: fi
106789:
106790:
106791:
106792:
106793: # Check whether --enable- was given.
106794: if test "${enable_+set}" = set; then :
106795: enableval=$enable_;
106796: fi
106797:
106798:
106799:
106800: { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
106801: $as_echo "" >&6; }
106802: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Configuring Zend${T_ME}" >&5
106803: $as_echo "${T_MD}Configuring Zend${T_ME}" >&6; }
106804:
106805:
106806:
106807:
106808:
106809:
106810:
106811:
106812:
106813:
106814: # we only support certain bison versions
106815: 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"
106816:
106817: # for standalone build of Zend Engine
106818: test -z "$SED" && SED=sed
106819:
106820: bison_version=none
106821: if test "$YACC"; then
106822: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison version" >&5
106823: $as_echo_n "checking for bison version... " >&6; }
106824: if ${php_cv_bison_version+:} false; then :
106825: $as_echo_n "(cached) " >&6
106826: else
106827:
106828: bison_version_vars=`bison --version 2> /dev/null | grep 'GNU Bison' | cut -d ' ' -f 4 | $SED -e 's/\./ /' | tr -d a-z`
106829: php_cv_bison_version=invalid
106830: if test -n "$bison_version_vars"; then
106831: set $bison_version_vars
106832: bison_version="${1}.${2}"
106833: for bison_check_version in $bison_version_list; do
106834: if test "$bison_version" = "$bison_check_version"; then
106835: php_cv_bison_version="$bison_check_version (ok)"
106836: break
106837: fi
106838: done
106839: fi
106840:
106841: fi
106842: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_bison_version" >&5
106843: $as_echo "$php_cv_bison_version" >&6; }
106844: fi
106845: case $php_cv_bison_version in
106846: ""|invalid)
106847: bison_msg="bison versions supported for regeneration of the Zend/PHP parsers: $bison_version_list (found: $bison_version)."
106848: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $bison_msg" >&5
106849: $as_echo "$as_me: WARNING: $bison_msg" >&2;}
106850: YACC="exit 0;"
106851: ;;
106852: esac
106853:
106854:
106855: if test "$CC" = "gcc" -a "$ac_cv_prog_cc_g" = "yes" -a \
106856: "`uname -sv`" = "AIX 4"; then
106857: CFLAGS=`echo $CFLAGS | sed -e 's/-g//'`
106858: fi
106859:
106860: if test "$ac_cv_c_compiler_gnu" = "yes" -a "`uname -s`" = "Rhapsody"; then
106861: CPPFLAGS="$CPPFLAGS -traditional-cpp"
106862: fi
106863:
106864: for ac_header in inttypes.h \
106865: stdint.h \
106866: limits.h \
106867: malloc.h \
106868: string.h \
106869: unistd.h \
106870: stdarg.h \
106871: sys/types.h \
106872: sys/time.h \
106873: signal.h \
106874: unix.h \
106875: stdlib.h \
106876: dlfcn.h
106877: do :
106878: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
106879: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
106880: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
106881: cat >>confdefs.h <<_ACEOF
106882: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
106883: _ACEOF
106884:
106885: fi
106886:
106887: done
106888:
106889:
106890: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
106891: if test "x$ac_cv_type_size_t" = xyes; then :
106892:
106893: else
106894:
106895: cat >>confdefs.h <<_ACEOF
106896: #define size_t unsigned int
106897: _ACEOF
106898:
106899: fi
106900:
106901: { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
106902: $as_echo_n "checking return type of signal handlers... " >&6; }
106903: if ${ac_cv_type_signal+:} false; then :
106904: $as_echo_n "(cached) " >&6
106905: else
106906: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
106907: /* end confdefs.h. */
106908: #include <sys/types.h>
106909: #include <signal.h>
106910:
106911: int
106912: main ()
106913: {
106914: return *(signal (0, 0)) (0) == 1;
106915: ;
106916: return 0;
106917: }
106918: _ACEOF
106919: if ac_fn_c_try_compile "$LINENO"; then :
106920: ac_cv_type_signal=int
106921: else
106922: ac_cv_type_signal=void
106923: fi
106924: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
106925: fi
106926: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
106927: $as_echo "$ac_cv_type_signal" >&6; }
106928:
106929: cat >>confdefs.h <<_ACEOF
106930: #define RETSIGTYPE $ac_cv_type_signal
106931: _ACEOF
106932:
106933:
106934:
106935:
106936:
106937:
106938:
106939: ac_fn_c_check_type "$LINENO" "uint" "ac_cv_type_uint" "$ac_includes_default"
106940: if test "x$ac_cv_type_uint" = xyes; then :
106941:
106942: else
106943:
106944: cat >>confdefs.h <<_ACEOF
106945: #define uint unsigned int
106946: _ACEOF
106947:
106948: fi
106949:
106950: ac_fn_c_check_type "$LINENO" "ulong" "ac_cv_type_ulong" "$ac_includes_default"
106951: if test "x$ac_cv_type_ulong" = xyes; then :
106952:
106953: else
106954:
106955: cat >>confdefs.h <<_ACEOF
106956: #define ulong unsigned long
106957: _ACEOF
106958:
106959: fi
106960:
106961:
106962:
106963: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int32_t" >&5
106964: $as_echo_n "checking for int32_t... " >&6; }
106965: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
106966: /* end confdefs.h. */
106967:
106968: #if HAVE_SYS_TYPES_H
106969: #include <sys/types.h>
106970: #endif
106971: #if HAVE_INTTYPES_H
106972: #include <inttypes.h>
106973: #elif HAVE_STDINT_H
106974: #include <stdint.h>
106975: #endif
106976: int
106977: main ()
106978: {
106979: if ((int32_t *) 0)
106980: return 0;
106981: if (sizeof (int32_t))
106982: return 0;
106983:
106984: ;
106985: return 0;
106986: }
106987: _ACEOF
106988: if ac_fn_c_try_compile "$LINENO"; then :
106989:
106990:
106991: cat >>confdefs.h <<_ACEOF
106992: #define HAVE_INT32_T 1
106993: _ACEOF
106994:
106995: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
106996: $as_echo "yes" >&6; }
106997:
106998: else
106999: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
107000: $as_echo "no" >&6; }
107001:
107002: fi
107003: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
107004:
107005: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint32_t" >&5
107006: $as_echo_n "checking for uint32_t... " >&6; }
107007: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
107008: /* end confdefs.h. */
107009:
107010: #if HAVE_SYS_TYPES_H
107011: #include <sys/types.h>
107012: #endif
107013: #if HAVE_INTTYPES_H
107014: #include <inttypes.h>
107015: #elif HAVE_STDINT_H
107016: #include <stdint.h>
107017: #endif
107018: int
107019: main ()
107020: {
107021: if ((uint32_t *) 0)
107022: return 0;
107023: if (sizeof (uint32_t))
107024: return 0;
107025:
107026: ;
107027: return 0;
107028: }
107029: _ACEOF
107030: if ac_fn_c_try_compile "$LINENO"; then :
107031:
107032:
107033: cat >>confdefs.h <<_ACEOF
107034: #define HAVE_UINT32_T 1
107035: _ACEOF
107036:
107037: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
107038: $as_echo "yes" >&6; }
107039:
107040: else
107041: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
107042: $as_echo "no" >&6; }
107043:
107044: fi
107045: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
107046:
107047: for ac_func in vprintf
107048: do :
107049: ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
107050: if test "x$ac_cv_func_vprintf" = xyes; then :
107051: cat >>confdefs.h <<_ACEOF
107052: #define HAVE_VPRINTF 1
107053: _ACEOF
107054:
107055: ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
107056: if test "x$ac_cv_func__doprnt" = xyes; then :
107057:
107058: $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
107059:
107060: fi
107061:
107062: fi
107063: done
107064:
107065:
107066: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
107067: $as_echo_n "checking for working memcmp... " >&6; }
107068: if ${ac_cv_func_memcmp_working+:} false; then :
107069: $as_echo_n "(cached) " >&6
107070: else
107071: if test "$cross_compiling" = yes; then :
107072: ac_cv_func_memcmp_working=no
107073: else
107074: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
107075: /* end confdefs.h. */
107076: $ac_includes_default
107077: int
107078: main ()
107079: {
107080:
107081: /* Some versions of memcmp are not 8-bit clean. */
107082: char c0 = '\100', c1 = '\200', c2 = '\201';
107083: if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
107084: return 1;
107085:
107086: /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
107087: or more and with at least one buffer not starting on a 4-byte boundary.
107088: William Lewis provided this test program. */
107089: {
107090: char foo[21];
107091: char bar[21];
107092: int i;
107093: for (i = 0; i < 4; i++)
107094: {
107095: char *a = foo + i;
107096: char *b = bar + i;
107097: strcpy (a, "--------01111111");
107098: strcpy (b, "--------10000000");
107099: if (memcmp (a, b, 16) >= 0)
107100: return 1;
107101: }
107102: return 0;
107103: }
107104:
107105: ;
107106: return 0;
107107: }
107108: _ACEOF
107109: if ac_fn_c_try_run "$LINENO"; then :
107110: ac_cv_func_memcmp_working=yes
107111: else
107112: ac_cv_func_memcmp_working=no
107113: fi
107114: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
107115: conftest.$ac_objext conftest.beam conftest.$ac_ext
107116: fi
107117:
107118: fi
107119: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
107120: $as_echo "$ac_cv_func_memcmp_working" >&6; }
107121: test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
107122: *" memcmp.$ac_objext "* ) ;;
107123: *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
107124: ;;
107125: esac
107126:
107127:
107128: # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
107129: # for constant arguments. Useless!
107130: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
107131: $as_echo_n "checking for working alloca.h... " >&6; }
107132: if ${ac_cv_working_alloca_h+:} false; then :
107133: $as_echo_n "(cached) " >&6
107134: else
107135: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
107136: /* end confdefs.h. */
107137: #include <alloca.h>
107138: int
107139: main ()
107140: {
107141: char *p = (char *) alloca (2 * sizeof (int));
107142: if (p) return 0;
107143: ;
107144: return 0;
107145: }
107146: _ACEOF
107147: if ac_fn_c_try_link "$LINENO"; then :
107148: ac_cv_working_alloca_h=yes
107149: else
107150: ac_cv_working_alloca_h=no
107151: fi
107152: rm -f core conftest.err conftest.$ac_objext \
107153: conftest$ac_exeext conftest.$ac_ext
107154: fi
107155: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
107156: $as_echo "$ac_cv_working_alloca_h" >&6; }
107157: if test $ac_cv_working_alloca_h = yes; then
107158:
107159: $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
107160:
107161: fi
107162:
107163: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
107164: $as_echo_n "checking for alloca... " >&6; }
107165: if ${ac_cv_func_alloca_works+:} false; then :
107166: $as_echo_n "(cached) " >&6
107167: else
107168: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
107169: /* end confdefs.h. */
107170: #ifdef __GNUC__
107171: # define alloca __builtin_alloca
107172: #else
107173: # ifdef _MSC_VER
107174: # include <malloc.h>
107175: # define alloca _alloca
107176: # else
107177: # ifdef HAVE_ALLOCA_H
107178: # include <alloca.h>
107179: # else
107180: # ifdef _AIX
107181: #pragma alloca
107182: # else
107183: # ifndef alloca /* predefined by HP cc +Olibcalls */
107184: void *alloca (size_t);
107185: # endif
107186: # endif
107187: # endif
107188: # endif
107189: #endif
107190:
107191: int
107192: main ()
107193: {
107194: char *p = (char *) alloca (1);
107195: if (p) return 0;
107196: ;
107197: return 0;
107198: }
107199: _ACEOF
107200: if ac_fn_c_try_link "$LINENO"; then :
107201: ac_cv_func_alloca_works=yes
107202: else
107203: ac_cv_func_alloca_works=no
107204: fi
107205: rm -f core conftest.err conftest.$ac_objext \
107206: conftest$ac_exeext conftest.$ac_ext
107207: fi
107208: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
107209: $as_echo "$ac_cv_func_alloca_works" >&6; }
107210:
107211: if test $ac_cv_func_alloca_works = yes; then
107212:
107213: $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
107214:
107215: else
107216: # The SVR3 libPW and SVR4 libucb both contain incompatible functions
107217: # that cause trouble. Some versions do not even contain alloca or
107218: # contain a buggy version. If you still want to use their alloca,
107219: # use ar to extract alloca.o from them instead of compiling alloca.c.
107220:
107221: ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
107222:
107223: $as_echo "#define C_ALLOCA 1" >>confdefs.h
107224:
107225:
107226: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
107227: $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
107228: if ${ac_cv_os_cray+:} false; then :
107229: $as_echo_n "(cached) " >&6
107230: else
107231: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
107232: /* end confdefs.h. */
107233: #if defined CRAY && ! defined CRAY2
107234: webecray
107235: #else
107236: wenotbecray
107237: #endif
107238:
107239: _ACEOF
107240: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
107241: $EGREP "webecray" >/dev/null 2>&1; then :
107242: ac_cv_os_cray=yes
107243: else
107244: ac_cv_os_cray=no
107245: fi
107246: rm -f conftest*
107247:
107248: fi
107249: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
107250: $as_echo "$ac_cv_os_cray" >&6; }
107251: if test $ac_cv_os_cray = yes; then
107252: for ac_func in _getb67 GETB67 getb67; do
107253: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
107254: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
107255: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
107256:
107257: cat >>confdefs.h <<_ACEOF
107258: #define CRAY_STACKSEG_END $ac_func
107259: _ACEOF
107260:
107261: break
107262: fi
107263:
107264: done
107265: fi
107266:
107267: { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
107268: $as_echo_n "checking stack direction for C alloca... " >&6; }
107269: if ${ac_cv_c_stack_direction+:} false; then :
107270: $as_echo_n "(cached) " >&6
107271: else
107272: if test "$cross_compiling" = yes; then :
107273: ac_cv_c_stack_direction=0
107274: else
107275: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
107276: /* end confdefs.h. */
107277: $ac_includes_default
107278: int
107279: find_stack_direction ()
107280: {
107281: static char *addr = 0;
107282: auto char dummy;
107283: if (addr == 0)
107284: {
107285: addr = &dummy;
107286: return find_stack_direction ();
107287: }
107288: else
107289: return (&dummy > addr) ? 1 : -1;
107290: }
107291:
107292: int
107293: main ()
107294: {
107295: return find_stack_direction () < 0;
107296: }
107297: _ACEOF
107298: if ac_fn_c_try_run "$LINENO"; then :
107299: ac_cv_c_stack_direction=1
107300: else
107301: ac_cv_c_stack_direction=-1
107302: fi
107303: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
107304: conftest.$ac_objext conftest.beam conftest.$ac_ext
107305: fi
107306:
107307: fi
107308: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
107309: $as_echo "$ac_cv_c_stack_direction" >&6; }
107310: cat >>confdefs.h <<_ACEOF
107311: #define STACK_DIRECTION $ac_cv_c_stack_direction
107312: _ACEOF
107313:
107314:
107315: fi
107316:
107317: for ac_func in memcpy strdup getpid kill strtod strtol finite fpclass sigsetjmp
107318: do :
107319: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
107320: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
107321: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
107322: cat >>confdefs.h <<_ACEOF
107323: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
107324: _ACEOF
107325:
107326: fi
107327: done
107328:
107329:
107330: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sprintf is broken" >&5
107331: $as_echo_n "checking whether sprintf is broken... " >&6; }
107332: if ${ac_cv_broken_sprintf+:} false; then :
107333: $as_echo_n "(cached) " >&6
107334: else
107335:
107336: if test "$cross_compiling" = yes; then :
107337:
107338: ac_cv_broken_sprintf=no
107339:
107340: else
107341: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
107342: /* end confdefs.h. */
107343: main() {char buf[20];exit(sprintf(buf,"testing 123")!=11); }
107344: _ACEOF
107345: if ac_fn_c_try_run "$LINENO"; then :
107346:
107347: ac_cv_broken_sprintf=no
107348:
107349: else
107350:
107351: ac_cv_broken_sprintf=yes
107352:
107353: fi
107354: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
107355: conftest.$ac_objext conftest.beam conftest.$ac_ext
107356: fi
107357:
107358:
107359: fi
107360: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_sprintf" >&5
107361: $as_echo "$ac_cv_broken_sprintf" >&6; }
107362: if test "$ac_cv_broken_sprintf" = "yes"; then
107363: ac_result=1
107364: else
107365: ac_result=0
107366: fi
107367:
107368: cat >>confdefs.h <<_ACEOF
107369: #define ZEND_BROKEN_SPRINTF $ac_result
107370: _ACEOF
107371:
107372:
107373:
107374: for ac_func in finite isfinite isinf isnan
107375: do :
107376: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
107377: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
107378: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
107379: cat >>confdefs.h <<_ACEOF
107380: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
107381: _ACEOF
107382:
107383: fi
107384: done
107385:
107386:
107387:
107388: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fp_except is defined" >&5
107389: $as_echo_n "checking whether fp_except is defined... " >&6; }
107390: if ${ac_cv_type_fp_except+:} false; then :
107391: $as_echo_n "(cached) " >&6
107392: else
107393:
107394: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
107395: /* end confdefs.h. */
107396:
107397: #include <floatingpoint.h>
107398:
107399: int
107400: main ()
107401: {
107402:
107403: fp_except x = (fp_except) 0;
107404:
107405: ;
107406: return 0;
107407: }
107408: _ACEOF
107409: if ac_fn_c_try_compile "$LINENO"; then :
107410:
107411: ac_cv_type_fp_except=yes
107412:
107413: else
107414:
107415: ac_cv_type_fp_except=no
107416:
107417: fi
107418: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
107419: fi
107420: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_fp_except" >&5
107421: $as_echo "$ac_cv_type_fp_except" >&6; }
107422: if test "$ac_cv_type_fp_except" = "yes"; then
107423:
107424: $as_echo "#define HAVE_FP_EXCEPT 1" >>confdefs.h
107425:
107426: fi
107427:
107428:
107429:
107430: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable _FPU_SETCW" >&5
107431: $as_echo_n "checking for usable _FPU_SETCW... " >&6; }
107432: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
107433: /* end confdefs.h. */
107434:
107435: #include <fpu_control.h>
107436:
107437: int
107438: main ()
107439: {
107440:
107441: fpu_control_t fpu_oldcw, fpu_cw;
107442: volatile double result;
107443: double a = 2877.0;
107444: volatile double b = 1000000.0;
107445:
107446: _FPU_GETCW(fpu_oldcw);
107447: fpu_cw = (fpu_oldcw & ~_FPU_EXTENDED & ~_FPU_SINGLE) | _FPU_DOUBLE;
107448: _FPU_SETCW(fpu_cw);
107449: result = a / b;
107450: _FPU_SETCW(fpu_oldcw);
107451:
107452: ;
107453: return 0;
107454: }
107455: _ACEOF
107456: if ac_fn_c_try_link "$LINENO"; then :
107457: ac_cfp_have__fpu_setcw=yes
107458: else
107459: ac_cfp_have__fpu_setcw=no
107460: fi
107461: rm -f core conftest.err conftest.$ac_objext \
107462: conftest$ac_exeext conftest.$ac_ext
107463: if test "$ac_cfp_have__fpu_setcw" = "yes" ; then
107464:
107465: $as_echo "#define HAVE__FPU_SETCW 1" >>confdefs.h
107466:
107467: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
107468: $as_echo "yes" >&6; }
107469: else
107470: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
107471: $as_echo "no" >&6; }
107472: fi
107473:
107474: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable fpsetprec" >&5
107475: $as_echo_n "checking for usable fpsetprec... " >&6; }
107476: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
107477: /* end confdefs.h. */
107478:
107479: #include <machine/ieeefp.h>
107480:
107481: int
107482: main ()
107483: {
107484:
107485: fp_prec_t fpu_oldprec;
107486: volatile double result;
107487: double a = 2877.0;
107488: volatile double b = 1000000.0;
107489:
107490: fpu_oldprec = fpgetprec();
107491: fpsetprec(FP_PD);
107492: result = a / b;
107493: fpsetprec(fpu_oldprec);
107494:
107495: ;
107496: return 0;
107497: }
107498: _ACEOF
107499: if ac_fn_c_try_link "$LINENO"; then :
107500: ac_cfp_have_fpsetprec=yes
107501: else
107502: ac_cfp_have_fpsetprec=no
107503: fi
107504: rm -f core conftest.err conftest.$ac_objext \
107505: conftest$ac_exeext conftest.$ac_ext
107506: if test "$ac_cfp_have_fpsetprec" = "yes" ; then
107507:
107508: $as_echo "#define HAVE_FPSETPREC 1" >>confdefs.h
107509:
107510: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
107511: $as_echo "yes" >&6; }
107512: else
107513: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
107514: $as_echo "no" >&6; }
107515: fi
107516:
107517: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable _controlfp" >&5
107518: $as_echo_n "checking for usable _controlfp... " >&6; }
107519: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
107520: /* end confdefs.h. */
107521:
107522: #include <float.h>
107523:
107524: int
107525: main ()
107526: {
107527:
107528: unsigned int fpu_oldcw;
107529: volatile double result;
107530: double a = 2877.0;
107531: volatile double b = 1000000.0;
107532:
107533: fpu_oldcw = _controlfp(0, 0);
107534: _controlfp(_PC_53, _MCW_PC);
107535: result = a / b;
107536: _controlfp(fpu_oldcw, _MCW_PC);
107537:
107538: ;
107539: return 0;
107540: }
107541: _ACEOF
107542: if ac_fn_c_try_link "$LINENO"; then :
107543: ac_cfp_have__controlfp=yes
107544: else
107545: ac_cfp_have__controlfp=no
107546: fi
107547: rm -f core conftest.err conftest.$ac_objext \
107548: conftest$ac_exeext conftest.$ac_ext
107549: if test "$ac_cfp_have__controlfp" = "yes" ; then
107550:
107551: $as_echo "#define HAVE__CONTROLFP 1" >>confdefs.h
107552:
107553: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
107554: $as_echo "yes" >&6; }
107555: else
107556: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
107557: $as_echo "no" >&6; }
107558: fi
107559:
107560: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable _controlfp_s" >&5
107561: $as_echo_n "checking for usable _controlfp_s... " >&6; }
107562: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
107563: /* end confdefs.h. */
107564:
107565: #include <float.h>
107566:
107567: int
107568: main ()
107569: {
107570:
107571: unsigned int fpu_oldcw, fpu_cw;
107572: volatile double result;
107573: double a = 2877.0;
107574: volatile double b = 1000000.0;
107575:
107576: _controlfp_s(&fpu_cw, 0, 0);
107577: fpu_oldcw = fpu_cw;
107578: _controlfp_s(&fpu_cw, _PC_53, _MCW_PC);
107579: result = a / b;
107580: _controlfp_s(&fpu_cw, fpu_oldcw, _MCW_PC);
107581:
107582: ;
107583: return 0;
107584: }
107585: _ACEOF
107586: if ac_fn_c_try_link "$LINENO"; then :
107587: ac_cfp_have__controlfp_s=yes
107588: else
107589: ac_cfp_have__controlfp_s=no
107590: fi
107591: rm -f core conftest.err conftest.$ac_objext \
107592: conftest$ac_exeext conftest.$ac_ext
107593: if test "$ac_cfp_have__controlfp_s" = "yes" ; then
107594:
107595: $as_echo "#define HAVE__CONTROLFP_S 1" >>confdefs.h
107596:
107597: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
107598: $as_echo "yes" >&6; }
107599: else
107600: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
107601: $as_echo "no" >&6; }
107602: fi
107603:
107604: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FPU control word can be manipulated by inline assembler" >&5
107605: $as_echo_n "checking whether FPU control word can be manipulated by inline assembler... " >&6; }
107606: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
107607: /* end confdefs.h. */
107608:
107609: /* nothing */
107610:
107611: int
107612: main ()
107613: {
107614:
107615: unsigned int oldcw, cw;
107616: volatile double result;
107617: double a = 2877.0;
107618: volatile double b = 1000000.0;
107619:
107620: __asm__ __volatile__ ("fnstcw %0" : "=m" (*&oldcw));
107621: cw = (oldcw & ~0x0 & ~0x300) | 0x200;
107622: __asm__ __volatile__ ("fldcw %0" : : "m" (*&cw));
107623:
107624: result = a / b;
107625:
107626: __asm__ __volatile__ ("fldcw %0" : : "m" (*&oldcw));
107627:
107628: ;
107629: return 0;
107630: }
107631: _ACEOF
107632: if ac_fn_c_try_link "$LINENO"; then :
107633: ac_cfp_have_fpu_inline_asm_x86=yes
107634: else
107635: ac_cfp_have_fpu_inline_asm_x86=no
107636: fi
107637: rm -f core conftest.err conftest.$ac_objext \
107638: conftest$ac_exeext conftest.$ac_ext
107639: if test "$ac_cfp_have_fpu_inline_asm_x86" = "yes" ; then
107640:
107641: $as_echo "#define HAVE_FPU_INLINE_ASM_X86 1" >>confdefs.h
107642:
107643: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
107644: $as_echo "yes" >&6; }
107645: else
107646: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
107647: $as_echo "no" >&6; }
107648: fi
107649:
107650:
107651: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether double cast to long preserves least significant bits" >&5
107652: $as_echo_n "checking whether double cast to long preserves least significant bits... " >&6; }
107653:
107654: if test "$cross_compiling" = yes; then :
107655:
107656: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
107657: $as_echo "no" >&6; }
107658:
107659: else
107660: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
107661: /* end confdefs.h. */
107662:
107663: #include <limits.h>
107664:
107665: int main()
107666: {
107667: if (sizeof(long) == 4) {
107668: double d = (double) LONG_MIN * LONG_MIN + 2e9;
107669:
107670: if ((long) d == 2e9 && (long) -d == -2e9) {
107671: exit(0);
107672: }
107673: } else if (sizeof(long) == 8) {
107674: double correct = 18e18 - ((double) LONG_MIN * -2); /* Subtract ULONG_MAX + 1 */
107675:
107676: if ((long) 18e18 == correct) { /* On 64-bit, only check between LONG_MAX and ULONG_MAX */
107677: exit(0);
107678: }
107679: }
107680: exit(1);
107681: }
107682:
107683: _ACEOF
107684: if ac_fn_c_try_run "$LINENO"; then :
107685:
107686:
107687: $as_echo "#define ZEND_DVAL_TO_LVAL_CAST_OK 1" >>confdefs.h
107688:
107689: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
107690: $as_echo "yes" >&6; }
107691:
107692: else
107693:
107694: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
107695: $as_echo "no" >&6; }
107696:
107697: fi
107698: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
107699: conftest.$ac_objext conftest.beam conftest.$ac_ext
107700: fi
107701:
107702:
107703:
107704: for ac_header in dlfcn.h
107705: do :
107706: ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
107707: if test "x$ac_cv_header_dlfcn_h" = xyes; then :
107708: cat >>confdefs.h <<_ACEOF
107709: #define HAVE_DLFCN_H 1
107710: _ACEOF
107711:
107712: fi
107713:
107714: done
107715:
107716:
107717: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dlsym() requires a leading underscore in symbol names" >&5
107718: $as_echo_n "checking whether dlsym() requires a leading underscore in symbol names... " >&6; }
107719: if test "$cross_compiling" = yes; then :
107720:
107721: else
107722: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
107723: lt_status=$lt_dlunknown
107724: cat > conftest.$ac_ext <<EOF
107725: #line 107725 "configure"
107726: #include "confdefs.h"
107727:
107728: #if HAVE_DLFCN_H
107729: #include <dlfcn.h>
107730: #endif
107731:
107732: #include <stdio.h>
107733:
107734: #ifdef RTLD_GLOBAL
107735: # define LT_DLGLOBAL RTLD_GLOBAL
107736: #else
107737: # ifdef DL_GLOBAL
107738: # define LT_DLGLOBAL DL_GLOBAL
107739: # else
107740: # define LT_DLGLOBAL 0
107741: # endif
107742: #endif
107743:
107744: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
107745: find out it does not work in some platform. */
107746: #ifndef LT_DLLAZY_OR_NOW
107747: # ifdef RTLD_LAZY
107748: # define LT_DLLAZY_OR_NOW RTLD_LAZY
107749: # else
107750: # ifdef DL_LAZY
107751: # define LT_DLLAZY_OR_NOW DL_LAZY
107752: # else
107753: # ifdef RTLD_NOW
107754: # define LT_DLLAZY_OR_NOW RTLD_NOW
107755: # else
107756: # ifdef DL_NOW
107757: # define LT_DLLAZY_OR_NOW DL_NOW
107758: # else
107759: # define LT_DLLAZY_OR_NOW 0
107760: # endif
107761: # endif
107762: # endif
107763: # endif
107764: #endif
107765:
107766: #ifdef __cplusplus
107767: extern "C" void exit (int);
107768: #endif
107769:
107770: void fnord() { int i=42;}
107771: int main ()
107772: {
107773: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
107774: int status = $lt_dlunknown;
107775:
107776: if (self)
107777: {
107778: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
107779: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
107780: /* dlclose (self); */
107781: }
107782: else
107783: puts (dlerror ());
107784:
107785: exit (status);
107786: }
107787: EOF
107788: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
107789: (eval $ac_link) 2>&5
107790: ac_status=$?
107791: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
107792: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
107793: (./conftest; exit; ) >&5 2>/dev/null
107794: lt_status=$?
107795: case x$lt_status in
107796: x$lt_dlno_uscore)
107797: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
107798: $as_echo "no" >&6; }
107799: ;;
107800: x$lt_dlneed_uscore)
107801: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
107802: $as_echo "yes" >&6; }
107803:
107804: $as_echo "#define DLSYM_NEEDS_UNDERSCORE 1" >>confdefs.h
107805:
107806: ;;
107807: x$lt_dlunknown|x*)
107808: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
107809: $as_echo "no" >&6; }
107810: ;;
107811: esac
107812: else :
107813: # compilation failed
107814:
107815: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
107816: $as_echo "no" >&6; }
107817:
107818: fi
107819: fi
107820: rm -fr conftest*
107821:
107822:
107823:
107824:
107825:
107826: # Check whether --with-zend-vm was given.
107827: if test "${with_zend_vm+set}" = set; then :
107828: withval=$with_zend_vm;
107829: PHP_ZEND_VM=$withval
107830:
107831: else
107832:
107833: PHP_ZEND_VM=CALL
107834:
107835: fi
107836:
107837:
107838: # Check whether --enable-maintainer-zts was given.
107839: if test "${enable_maintainer_zts+set}" = set; then :
107840: enableval=$enable_maintainer_zts;
107841: ZEND_MAINTAINER_ZTS=$enableval
107842:
107843: else
107844:
107845: ZEND_MAINTAINER_ZTS=no
107846:
107847: fi
107848:
107849:
107850: # Check whether --enable-inline-optimization was given.
107851: if test "${enable_inline_optimization+set}" = set; then :
107852: enableval=$enable_inline_optimization;
107853: ZEND_INLINE_OPTIMIZATION=$enableval
107854:
107855: else
107856:
107857: ZEND_INLINE_OPTIMIZATION=yes
107858:
107859: fi
107860:
107861:
107862: # Check whether --enable-zend-multibyte was given.
107863: if test "${enable_zend_multibyte+set}" = set; then :
107864: enableval=$enable_zend_multibyte;
107865: ZEND_MULTIBYTE=$enableval
107866:
107867: else
107868:
107869: ZEND_MULTIBYTE=no
107870:
107871: fi
107872:
107873:
107874: { $as_echo "$as_me:${as_lineno-$LINENO}: checking virtual machine dispatch method" >&5
107875: $as_echo_n "checking virtual machine dispatch method... " >&6; }
107876: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_ZEND_VM" >&5
107877: $as_echo "$PHP_ZEND_VM" >&6; }
107878:
107879: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable thread-safety" >&5
107880: $as_echo_n "checking whether to enable thread-safety... " >&6; }
107881: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZEND_MAINTAINER_ZTS" >&5
107882: $as_echo "$ZEND_MAINTAINER_ZTS" >&6; }
107883:
107884: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable inline optimization for GCC" >&5
107885: $as_echo_n "checking whether to enable inline optimization for GCC... " >&6; }
107886: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZEND_INLINE_OPTIMIZATION" >&5
107887: $as_echo "$ZEND_INLINE_OPTIMIZATION" >&6; }
107888:
107889: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Zend debugging" >&5
107890: $as_echo_n "checking whether to enable Zend debugging... " >&6; }
107891: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZEND_DEBUG" >&5
107892: $as_echo "$ZEND_DEBUG" >&6; }
107893:
107894: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Zend multibyte" >&5
107895: $as_echo_n "checking whether to enable Zend multibyte... " >&6; }
107896: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZEND_MULTIBYTE" >&5
107897: $as_echo "$ZEND_MULTIBYTE" >&6; }
107898:
107899: case $PHP_ZEND_VM in
107900: SWITCH)
107901:
107902: $as_echo "#define ZEND_VM_KIND ZEND_VM_KIND_SWITCH" >>confdefs.h
107903:
107904: ;;
107905: GOTO)
107906:
107907: $as_echo "#define ZEND_VM_KIND ZEND_VM_KIND_GOTO" >>confdefs.h
107908:
107909: ;;
107910: *)
107911: PHP_ZEND_VM=CALL
107912:
107913: $as_echo "#define ZEND_VM_KIND ZEND_VM_KIND_CALL" >>confdefs.h
107914:
107915: ;;
107916: esac
107917:
107918: if test "$ZEND_DEBUG" = "yes"; then
107919:
107920: $as_echo "#define ZEND_DEBUG 1" >>confdefs.h
107921:
107922: echo " $CFLAGS" | grep ' -g' >/dev/null || DEBUG_CFLAGS="-g"
107923: if test "$CFLAGS" = "-g -O2"; then
107924: CFLAGS=-g
107925: fi
107926: test -n "$GCC" && DEBUG_CFLAGS="$DEBUG_CFLAGS -Wall"
107927: test -n "$GCC" && test "$USE_MAINTAINER_MODE" = "yes" && \
107928: DEBUG_CFLAGS="$DEBUG_CFLAGS -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations"
107929: else
107930:
107931: $as_echo "#define ZEND_DEBUG 0" >>confdefs.h
107932:
107933: fi
107934:
107935: test -n "$DEBUG_CFLAGS" && CFLAGS="$CFLAGS $DEBUG_CFLAGS"
107936:
107937: if test "$ZEND_MAINTAINER_ZTS" = "yes"; then
107938:
107939: $as_echo "#define ZTS 1" >>confdefs.h
107940:
107941: CFLAGS="$CFLAGS -DZTS"
107942:
107943:
107944:
107945: fi
107946:
107947: if test "$ZEND_MULTIBYTE" = "yes"; then
107948:
107949: $as_echo "#define ZEND_MULTIBYTE 1" >>confdefs.h
107950:
107951: fi
107952:
107953:
107954: if test -n "$GCC" && test "$ZEND_INLINE_OPTIMIZATION" != "yes"; then
107955: INLINE_CFLAGS=`echo $ac_n "$CFLAGS $ac_c" | sed s/-O[0-9s]*//`
107956: else
107957: INLINE_CFLAGS="$CFLAGS"
107958: fi
107959:
107960:
107961: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
107962: $as_echo_n "checking for inline... " >&6; }
107963: if ${ac_cv_c_inline+:} false; then :
107964: $as_echo_n "(cached) " >&6
107965: else
107966: ac_cv_c_inline=no
107967: for ac_kw in inline __inline__ __inline; do
107968: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
107969: /* end confdefs.h. */
107970: #ifndef __cplusplus
107971: typedef int foo_t;
107972: static $ac_kw foo_t static_foo () {return 0; }
107973: $ac_kw foo_t foo () {return 0; }
107974: #endif
107975:
107976: _ACEOF
107977: if ac_fn_c_try_compile "$LINENO"; then :
107978: ac_cv_c_inline=$ac_kw
107979: fi
107980: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
107981: test "$ac_cv_c_inline" != no && break
107982: done
107983:
107984: fi
107985: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
107986: $as_echo "$ac_cv_c_inline" >&6; }
107987:
107988: case $ac_cv_c_inline in
107989: inline | yes) ;;
107990: *)
107991: case $ac_cv_c_inline in
107992: no) ac_val=;;
107993: *) ac_val=$ac_cv_c_inline;;
107994: esac
107995: cat >>confdefs.h <<_ACEOF
107996: #ifndef __cplusplus
107997: #define inline $ac_val
107998: #endif
107999: _ACEOF
108000: ;;
108001: esac
108002:
108003:
108004:
108005:
108006: { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system is Darwin" >&5
108007: $as_echo_n "checking target system is Darwin... " >&6; }
108008: if echo "$target" | grep "darwin" > /dev/null; then
108009:
108010: $as_echo "#define DARWIN 1" >>confdefs.h
108011:
108012: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
108013: $as_echo "yes" >&6; }
108014: else
108015: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
108016: $as_echo "no" >&6; }
108017: fi
108018:
108019: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MM alignment and log values" >&5
108020: $as_echo_n "checking for MM alignment and log values... " >&6; }
108021:
108022: if test "$cross_compiling" = yes; then :
108023:
108024: LIBZEND_MM_ALIGN=8
108025:
108026: else
108027: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
108028: /* end confdefs.h. */
108029:
108030: #include <stdio.h>
108031:
108032: typedef union _mm_align_test {
108033: void *ptr;
108034: double dbl;
108035: long lng;
108036: } mm_align_test;
108037:
108038: #if (defined (__GNUC__) && __GNUC__ >= 2)
108039: #define ZEND_MM_ALIGNMENT (__alignof__ (mm_align_test))
108040: #else
108041: #define ZEND_MM_ALIGNMENT (sizeof(mm_align_test))
108042: #endif
108043:
108044: int main()
108045: {
108046: int i = ZEND_MM_ALIGNMENT;
108047: int zeros = 0;
108048: FILE *fp;
108049:
108050: while (i & ~0x1) {
108051: zeros++;
108052: i = i >> 1;
108053: }
108054:
108055: fp = fopen("conftest.zend", "w");
108056: fprintf(fp, "%d %d\n", ZEND_MM_ALIGNMENT, zeros);
108057: fclose(fp);
108058:
108059: exit(0);
108060: }
108061:
108062: _ACEOF
108063: if ac_fn_c_try_run "$LINENO"; then :
108064:
108065: LIBZEND_MM_ALIGN=`cat conftest.zend | cut -d ' ' -f 1`
108066: LIBZEND_MM_ALIGN_LOG2=`cat conftest.zend | cut -d ' ' -f 2`
108067:
108068: cat >>confdefs.h <<_ACEOF
108069: #define ZEND_MM_ALIGNMENT $LIBZEND_MM_ALIGN
108070: _ACEOF
108071:
108072:
108073: cat >>confdefs.h <<_ACEOF
108074: #define ZEND_MM_ALIGNMENT_LOG2 $LIBZEND_MM_ALIGN_LOG2
108075: _ACEOF
108076:
108077:
108078: fi
108079: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
108080: conftest.$ac_objext conftest.beam conftest.$ac_ext
108081: fi
108082:
108083:
108084: { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
108085: $as_echo "done" >&6; }
108086:
108087: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory allocation using mmap(MAP_ANON)" >&5
108088: $as_echo_n "checking for memory allocation using mmap(MAP_ANON)... " >&6; }
108089:
108090: if test "$cross_compiling" = yes; then :
108091:
108092: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
108093: $as_echo "no" >&6; }
108094:
108095: else
108096: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
108097: /* end confdefs.h. */
108098:
108099: #include <sys/types.h>
108100: #include <sys/stat.h>
108101: #include <fcntl.h>
108102: #include <sys/mman.h>
108103: #include <stdlib.h>
108104: #include <stdio.h>
108105: #ifndef MAP_ANON
108106: # ifdef MAP_ANONYMOUS
108107: # define MAP_ANON MAP_ANONYMOUS
108108: # endif
108109: #endif
108110: #ifndef MREMAP_MAYMOVE
108111: # define MREMAP_MAYMOVE 0
108112: #endif
108113: #ifndef MAP_FAILED
108114: # define MAP_FAILED ((void*)-1)
108115: #endif
108116:
108117: #define SEG_SIZE (256*1024)
108118:
108119: int main()
108120: {
108121: void *seg = mmap(NULL, SEG_SIZE, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANON, -1, 0);
108122: if (seg == MAP_FAILED) {
108123: return 1;
108124: }
108125: if (munmap(seg, SEG_SIZE) != 0) {
108126: return 2;
108127: }
108128: return 0;
108129: }
108130:
108131: _ACEOF
108132: if ac_fn_c_try_run "$LINENO"; then :
108133:
108134:
108135: $as_echo "#define HAVE_MEM_MMAP_ANON 1" >>confdefs.h
108136:
108137: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
108138: $as_echo "yes" >&6; }
108139:
108140: else
108141:
108142: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
108143: $as_echo "no" >&6; }
108144:
108145: fi
108146: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
108147: conftest.$ac_objext conftest.beam conftest.$ac_ext
108148: fi
108149:
108150:
108151: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory allocation using mmap(\"/dev/zero\")" >&5
108152: $as_echo_n "checking for memory allocation using mmap(\"/dev/zero\")... " >&6; }
108153:
108154: if test "$cross_compiling" = yes; then :
108155:
108156: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
108157: $as_echo "no" >&6; }
108158:
108159: else
108160: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
108161: /* end confdefs.h. */
108162:
108163: #include <sys/types.h>
108164: #include <sys/stat.h>
108165: #include <fcntl.h>
108166: #include <sys/mman.h>
108167: #include <stdlib.h>
108168: #include <stdio.h>
108169: #ifndef MAP_ANON
108170: # ifdef MAP_ANONYMOUS
108171: # define MAP_ANON MAP_ANONYMOUS
108172: # endif
108173: #endif
108174: #ifndef MREMAP_MAYMOVE
108175: # define MREMAP_MAYMOVE 0
108176: #endif
108177: #ifndef MAP_FAILED
108178: # define MAP_FAILED ((void*)-1)
108179: #endif
108180:
108181: #define SEG_SIZE (256*1024)
108182:
108183: int main()
108184: {
108185: int fd;
108186: void *seg;
108187:
108188: fd = open("/dev/zero", O_RDWR, S_IRUSR | S_IWUSR);
108189: if (fd < 0) {
108190: return 1;
108191: }
108192: seg = mmap(NULL, SEG_SIZE, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0);
108193: if (seg == MAP_FAILED) {
108194: return 2;
108195: }
108196: if (munmap(seg, SEG_SIZE) != 0) {
108197: return 3;
108198: }
108199: if (close(fd) != 0) {
108200: return 4;
108201: }
108202: return 0;
108203: }
108204:
108205: _ACEOF
108206: if ac_fn_c_try_run "$LINENO"; then :
108207:
108208:
108209: $as_echo "#define HAVE_MEM_MMAP_ZERO 1" >>confdefs.h
108210:
108211: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
108212: $as_echo "yes" >&6; }
108213:
108214: else
108215:
108216: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
108217: $as_echo "no" >&6; }
108218:
108219: fi
108220: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
108221: conftest.$ac_objext conftest.beam conftest.$ac_ext
108222: fi
108223:
108224:
108225: for ac_func in mremap
108226: do :
108227: ac_fn_c_check_func "$LINENO" "mremap" "ac_cv_func_mremap"
108228: if test "x$ac_cv_func_mremap" = xyes; then :
108229: cat >>confdefs.h <<_ACEOF
108230: #define HAVE_MREMAP 1
108231: _ACEOF
108232:
108233: fi
108234: done
108235:
108236:
108237:
108238:
108239: if test "$ZEND_MAINTAINER_ZTS" = "yes"; then
108240:
108241: $as_echo "#define ZTS 1" >>confdefs.h
108242:
108243: PHP_THREAD_SAFETY=yes
108244: else
108245: PHP_THREAD_SAFETY=no
108246: fi
108247:
108248: INCLUDES="$INCLUDES -I\$(top_builddir)/TSRM"
108249: INCLUDES="$INCLUDES -I\$(top_builddir)/Zend"
108250:
108251: if test "$abs_srcdir" != "$abs_builddir"; then
108252: INCLUDES="$INCLUDES -I\$(top_srcdir)/main -I\$(top_srcdir)/Zend"
108253: INCLUDES="$INCLUDES -I\$(top_srcdir)/TSRM -I\$(top_builddir)/"
108254: fi
108255:
108256: ZEND_EXTRA_LIBS="$LIBS"
108257: unset LIBS LDFLAGS
108258:
108259:
108260: # Check whether --enable- was given.
108261: if test "${enable_+set}" = set; then :
108262: enableval=$enable_;
108263: fi
108264:
108265:
108266:
108267: { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
108268: $as_echo "" >&6; }
108269: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Configuring TSRM${T_ME}" >&5
108270: $as_echo "${T_MD}Configuring TSRM${T_ME}" >&6; }
108271:
108272:
108273:
108274:
108275: for ac_header in stdarg.h
108276: do :
108277: ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
108278: if test "x$ac_cv_header_stdarg_h" = xyes; then :
108279: cat >>confdefs.h <<_ACEOF
108280: #define HAVE_STDARG_H 1
108281: _ACEOF
108282:
108283: fi
108284:
108285: done
108286:
108287:
108288:
108289: if test "$PHP_THREAD_SAFETY" = "yes"; then
108290:
108291:
108292:
108293:
108294: # Check whether --with-tsrm-pth was given.
108295: if test "${with_tsrm_pth+set}" = set; then :
108296: withval=$with_tsrm_pth;
108297: TSRM_PTH=$withval
108298:
108299: else
108300:
108301: TSRM_PTH=no
108302:
108303: fi
108304:
108305:
108306:
108307: # Check whether --with-tsrm-st was given.
108308: if test "${with_tsrm_st+set}" = set; then :
108309: withval=$with_tsrm_st;
108310: TSRM_ST=$withval
108311:
108312: else
108313:
108314: TSRM_ST=no
108315:
108316: fi
108317:
108318:
108319:
108320: # Check whether --with-tsrm-pthreads was given.
108321: if test "${with_tsrm_pthreads+set}" = set; then :
108322: withval=$with_tsrm_pthreads;
108323: TSRM_PTHREADS=$withval
108324:
108325: else
108326:
108327: TSRM_PTHREADS=yes
108328:
108329: fi
108330:
108331:
108332: test "$TSRM_PTH" = "yes" && TSRM_PTH=pth-config
108333:
108334: if test "$TSRM_PTH" != "no"; then
108335:
108336:
108337: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU Pth" >&5
108338: $as_echo_n "checking for GNU Pth... " >&6; }
108339: PTH_PREFIX="`$TSRM_PTH --prefix`"
108340: if test -z "$PTH_PREFIX"; then
108341: { $as_echo "$as_me:${as_lineno-$LINENO}: result: Please check your Pth installation" >&5
108342: $as_echo "Please check your Pth installation" >&6; }
108343: fi
108344:
108345: CPPFLAGS="$CPPFLAGS `$TSRM_PTH --cflags`"
108346: LDFLAGS="$LDFLAGS `$TSRM_PTH --ldflags`"
108347: LIBS="$LIBS `$TSRM_PTH --libs`"
108348:
108349:
108350: $as_echo "#define GNUPTH 1" >>confdefs.h
108351:
108352: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - installed in $PTH_PREFIX" >&5
108353: $as_echo "yes - installed in $PTH_PREFIX" >&6; }
108354:
108355:
108356: elif test "$TSRM_ST" != "no"; then
108357:
108358: if test -r "$TSRM_ST/include/st.h"; then
108359: CPPFLAGS="$CPPFLAGS -I$TSRM_ST/include"
108360: LDFLAGS="$LDFLAGS -L$TSRM_ST/lib"
108361: elif test -r "$TSRM_ST/st.h"; then
108362: CPPFLAGS="$CPPFLAGS -I$TSRM_ST"
108363: LDFLAGS="$LDFLAGS -L$TSRM_ST"
108364: fi
108365: for ac_header in st.h
108366: do :
108367: ac_fn_c_check_header_mongrel "$LINENO" "st.h" "ac_cv_header_st_h" "$ac_includes_default"
108368: if test "x$ac_cv_header_st_h" = xyes; then :
108369: cat >>confdefs.h <<_ACEOF
108370: #define HAVE_ST_H 1
108371: _ACEOF
108372:
108373: else
108374:
108375: 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
108376:
108377: fi
108378:
108379: done
108380:
108381: LIBS="$LIBS -lst"
108382: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SGI's State Threads" >&5
108383: $as_echo_n "checking for SGI's State Threads... " >&6; }
108384: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
108385: $as_echo "yes" >&6; }
108386:
108387: $as_echo "#define TSRM_ST 1" >>confdefs.h
108388:
108389:
108390: elif test "$TSRM_PTHREADS" != "no"; then
108391:
108392:
108393:
108394:
108395: if test "$beos_threads" = "1"; then
108396: pthreads_working="yes"
108397: ac_cv_pthreads_cflags=""
108398: else
108399: save_CFLAGS=$CFLAGS
108400: save_LIBS=$LIBS
108401:
108402: if test -n "$ac_cv_pthreads_lib"; then
108403: LIBS="$LIBS -l$ac_cv_pthreads_lib"
108404: fi
108405:
108406: if test -n "$ac_cv_pthreads_cflags"; then
108407: CFLAGS="$CFLAGS $ac_cv_pthreads_cflags"
108408: fi
108409:
108410:
108411: if test "$cross_compiling" = yes; then :
108412:
108413: pthreads_working=no
108414: case $host_alias in
108415: *netware*)
108416: pthreads_working=yes
108417: esac
108418:
108419:
108420: else
108421: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
108422: /* end confdefs.h. */
108423:
108424: #include <pthread.h>
108425: #include <stddef.h>
108426:
108427: void *thread_routine(void *data) {
108428: return data;
108429: }
108430:
108431: int main() {
108432: pthread_t thd;
108433: pthread_mutexattr_t mattr;
108434: int data = 1;
108435: pthread_mutexattr_init(&mattr);
108436: return 0;
108437: }
108438: _ACEOF
108439: if ac_fn_c_try_run "$LINENO"; then :
108440:
108441: pthreads_working=yes
108442:
108443: else
108444:
108445: pthreads_working=no
108446:
108447: fi
108448: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
108449: conftest.$ac_objext conftest.beam conftest.$ac_ext
108450: fi
108451:
108452: LIBS=$save_LIBS
108453: CFLAGS=$save_CFLAGS
108454:
108455: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads_cflags" >&5
108456: $as_echo_n "checking for pthreads_cflags... " >&6; }
108457: if ${ac_cv_pthreads_cflags+:} false; then :
108458: $as_echo_n "(cached) " >&6
108459: else
108460:
108461: ac_cv_pthreads_cflags=
108462: if test "$pthreads_working" != "yes"; then
108463: for flag in -kthread -pthread -pthreads -mthreads -Kthread -threads -mt -qthreaded; do
108464: ac_save=$CFLAGS
108465: CFLAGS="$CFLAGS $flag"
108466:
108467: if test "$cross_compiling" = yes; then :
108468:
108469: pthreads_working=no
108470: case $host_alias in
108471: *netware*)
108472: pthreads_working=yes
108473: esac
108474:
108475:
108476: else
108477: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
108478: /* end confdefs.h. */
108479:
108480: #include <pthread.h>
108481: #include <stddef.h>
108482:
108483: void *thread_routine(void *data) {
108484: return data;
108485: }
108486:
108487: int main() {
108488: pthread_t thd;
108489: pthread_mutexattr_t mattr;
108490: int data = 1;
108491: pthread_mutexattr_init(&mattr);
108492: return 0;
108493: }
108494: _ACEOF
108495: if ac_fn_c_try_run "$LINENO"; then :
108496:
108497: pthreads_working=yes
108498:
108499: else
108500:
108501: pthreads_working=no
108502:
108503: fi
108504: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
108505: conftest.$ac_objext conftest.beam conftest.$ac_ext
108506: fi
108507:
108508: CFLAGS=$ac_save
108509: if test "$pthreads_working" = "yes"; then
108510: ac_cv_pthreads_cflags=$flag
108511: break
108512: fi
108513: done
108514: fi
108515: fi
108516:
108517: fi
108518: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthreads_cflags" >&5
108519: $as_echo "$ac_cv_pthreads_cflags" >&6; }
108520:
108521: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads_lib" >&5
108522: $as_echo_n "checking for pthreads_lib... " >&6; }
108523: if ${ac_cv_pthreads_lib+:} false; then :
108524: $as_echo_n "(cached) " >&6
108525: else
108526:
108527: ac_cv_pthreads_lib=
108528: if test "$pthreads_working" != "yes"; then
108529: for lib in pthread pthreads c_r; do
108530: ac_save=$LIBS
108531: LIBS="$LIBS -l$lib"
108532:
108533: if test "$cross_compiling" = yes; then :
108534:
108535: pthreads_working=no
108536: case $host_alias in
108537: *netware*)
108538: pthreads_working=yes
108539: esac
108540:
108541:
108542: else
108543: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
108544: /* end confdefs.h. */
108545:
108546: #include <pthread.h>
108547: #include <stddef.h>
108548:
108549: void *thread_routine(void *data) {
108550: return data;
108551: }
108552:
108553: int main() {
108554: pthread_t thd;
108555: pthread_mutexattr_t mattr;
108556: int data = 1;
108557: pthread_mutexattr_init(&mattr);
108558: return 0;
108559: }
108560: _ACEOF
108561: if ac_fn_c_try_run "$LINENO"; then :
108562:
108563: pthreads_working=yes
108564:
108565: else
108566:
108567: pthreads_working=no
108568:
108569: fi
108570: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
108571: conftest.$ac_objext conftest.beam conftest.$ac_ext
108572: fi
108573:
108574: LIBS=$ac_save
108575: if test "$pthreads_working" = "yes"; then
108576: ac_cv_pthreads_lib=$lib
108577: break
108578: fi
108579: done
108580: fi
108581:
108582: fi
108583: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthreads_lib" >&5
108584: $as_echo "$ac_cv_pthreads_lib" >&6; }
108585:
108586: if test "$pthreads_working" = "yes"; then
108587: threads_result="POSIX-Threads found"
108588: else
108589: threads_result="POSIX-Threads not found"
108590: fi
108591:
108592:
108593: if test "$beos_threads" = "1"; then
108594:
108595: $as_echo "#define BETHREADS 1" >>confdefs.h
108596:
108597: else
108598: if test "$pthreads_working" != "yes"; then
108599: as_fn_error $? "Your system seems to lack POSIX threads." "$LINENO" 5
108600: fi
108601:
108602:
108603: $as_echo "#define PTHREADS 1" >>confdefs.h
108604:
108605:
108606: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX threads" >&5
108607: $as_echo_n "checking for POSIX threads... " >&6; }
108608: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
108609: $as_echo "yes" >&6; }
108610: fi
108611:
108612: fi
108613:
108614:
108615: fi
108616:
108617: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LDFLAGS"
108618: EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $LDFLAGS"
108619: EXTRA_LIBS="$EXTRA_LIBS $LIBS"
108620: unset LIBS LDFLAGS
108621:
108622: test "$prefix" = "NONE" && prefix=/usr/local
108623: test "$exec_prefix" = "NONE" && exec_prefix='${prefix}'
108624: test "$program_prefix" = "NONE" && program_prefix=
108625: test "$program_suffix" = "NONE" && program_suffix=
108626:
108627: case $libdir in
108628: '${exec_prefix}/lib')
108629: libdir=$libdir/php
108630: ;;
108631: esac
108632: case $datadir in
108633: '${prefix}/share')
108634: datadir=$datadir/php
108635: ;;
108636: esac
108637:
108638: phplibdir=`pwd`/modules
108639: $php_shtool mkdir -p $phplibdir
108640: phptempdir=`pwd`/libs
108641:
108642: old_exec_prefix=$exec_prefix
108643: old_libdir=$libdir
108644: old_datadir=$datadir
108645: exec_prefix=`eval echo $exec_prefix`
108646: libdir=`eval echo $libdir`
108647: datadir=`eval echo $datadir`
108648:
108649:
108650: ZEND_MODULE_API_NO=`$EGREP '#define ZEND_MODULE_API_NO ' $srcdir/Zend/zend_modules.h|$SED 's/#define ZEND_MODULE_API_NO //'`
108651:
108652: if test -z "$EXTENSION_DIR"; then
108653: extbasedir=$ZEND_MODULE_API_NO
108654: if test "$oldstyleextdir" = "yes"; then
108655: if test "$PHP_DEBUG" = "1"; then
108656: part1=debug
108657: else
108658: part1=no-debug
108659: fi
108660: if test "$enable_maintainer_zts" = "yes"; then
108661: part2=zts
108662: else
108663: part2=non-zts
108664: fi
108665: extbasedir=$part1-$part2-$extbasedir
108666: EXTENSION_DIR=$libdir/extensions/$extbasedir
108667: else
108668: if test "$enable_maintainer_zts" = "yes"; then
108669: extbasedir=$extbasedir-zts
108670: fi
108671:
108672: if test "$PHP_DEBUG" = "1"; then
108673: extbasedir=$extbasedir-debug
108674: fi
108675: EXTENSION_DIR=$libdir/$extbasedir
108676: fi
108677: fi
108678:
108679: case $PHP_LAYOUT in
108680: GNU)
108681: datarootdir=$prefix/share
108682: ;;
108683: *)
108684: datarootdir=$prefix/php
108685: ;;
108686: esac
108687:
108688: EXPANDED_PEAR_INSTALLDIR=`eval echo $PEAR_INSTALLDIR`
108689: EXPANDED_EXTENSION_DIR=`eval echo $EXTENSION_DIR`
108690: EXPANDED_LOCALSTATEDIR=`eval echo $localstatedir`
108691: EXPANDED_BINDIR=`eval echo $bindir`
108692: EXPANDED_SBINDIR=`eval echo $sbindir`
108693: EXPANDED_MANDIR=`eval echo $mandir`
108694: EXPANDED_LIBDIR=$libdir
108695: EXPANDED_SYSCONFDIR=`eval echo $sysconfdir`
108696: EXPANDED_DATADIR=$datadir
108697: EXPANDED_PHP_CONFIG_FILE_PATH=`eval echo "$PHP_CONFIG_FILE_PATH"`
108698: EXPANDED_PHP_CONFIG_FILE_SCAN_DIR=`eval echo "$PHP_CONFIG_FILE_SCAN_DIR"`
108699: INCLUDE_PATH=.:${prefix}/share/pear
108700:
108701: exec_prefix=$old_exec_prefix
108702: libdir=$old_libdir
108703: datadir=$old_datadir
108704:
108705:
108706:
108707:
108708:
108709:
108710:
108711:
108712:
108713:
108714:
108715:
108716:
108717:
108718: if test -n "$php_ldflags_add_usr_lib"; then
108719: PHP_RPATHS="$PHP_RPATHS /usr/lib"
108720: fi
108721:
108722:
108723: OLD_RPATHS=$PHP_RPATHS
108724: unset PHP_RPATHS
108725:
108726: for i in $OLD_RPATHS; do
108727: PHP_LDFLAGS="$PHP_LDFLAGS -L$i"
108728: PHP_RPATHS="$PHP_RPATHS -R $i"
108729: NATIVE_RPATHS="$NATIVE_RPATHS $ld_runpath_switch$i"
108730: done
108731:
108732: if test "$PHP_RPATH" = "no"; then
108733: unset PHP_RPATHS
108734: unset NATIVE_RPATHS
108735: fi
108736:
108737:
108738: if test -z "$php_ldflags_add_usr_lib"; then
108739:
108740: unset ac_new_flags
108741: for i in $PHP_LDFLAGS; do
108742: case $i in
108743: -L/usr/$PHP_LIBDIR|-L/usr/$PHP_LIBDIR/) ;;
108744: *) ac_new_flags="$ac_new_flags $i" ;;
108745: esac
108746: done
108747: PHP_LDFLAGS=$ac_new_flags
108748:
108749:
108750: unset ac_new_flags
108751: for i in $LDFLAGS; do
108752: case $i in
108753: -L/usr/$PHP_LIBDIR|-L/usr/$PHP_LIBDIR/) ;;
108754: *) ac_new_flags="$ac_new_flags $i" ;;
108755: esac
108756: done
108757: LDFLAGS=$ac_new_flags
108758:
108759: fi
108760:
108761: EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PHP_LDFLAGS"
108762: EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $PHP_LDFLAGS"
108763:
108764: PHP_BUILD_DATE=`date '+%Y-%m-%d'`
108765:
108766: cat >>confdefs.h <<_ACEOF
108767: #define PHP_BUILD_DATE "$PHP_BUILD_DATE"
108768: _ACEOF
108769:
108770:
108771: case $host_alias in
108772: *netware*)
108773: PHP_OS="NetWare"
108774: PHP_UNAME="NetWare"
108775:
108776: cat >>confdefs.h <<_ACEOF
108777: #define PHP_OS "$PHP_OS"
108778: _ACEOF
108779:
108780:
108781: cat >>confdefs.h <<_ACEOF
108782: #define PHP_UNAME "$PHP_UNAME"
108783: _ACEOF
108784:
108785: ;;
108786: *)
108787: PHP_UNAME=`uname -a | xargs`
108788:
108789: cat >>confdefs.h <<_ACEOF
108790: #define PHP_UNAME "$PHP_UNAME"
108791: _ACEOF
108792:
108793: PHP_OS=`uname | xargs`
108794:
108795: cat >>confdefs.h <<_ACEOF
108796: #define PHP_OS "$PHP_OS"
108797: _ACEOF
108798:
108799: ;;
108800: esac
108801:
108802: if test "$PHP_CLI" != "no"; then
108803: PHP_CLI_TARGET="\$(SAPI_CLI_PATH)"
108804: PHP_INSTALL_CLI_TARGET="install-cli"
108805:
108806:
108807: case sapi/cli in
108808: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
108809: /*) ac_srcdir=`echo "sapi/cli"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
108810: *) ac_srcdir="$abs_srcdir/sapi/cli/"; ac_bdir="sapi/cli/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
108811: esac
108812:
108813:
108814:
108815: b_c_pre=$php_c_pre
108816: b_cxx_pre=$php_cxx_pre
108817: b_c_meta=$php_c_meta
108818: b_cxx_meta=$php_cxx_meta
108819: b_c_post=$php_c_post
108820: b_cxx_post=$php_cxx_post
108821: b_lo=$php_lo
108822:
108823:
108824: old_IFS=$IFS
108825: for ac_src in php_cli.c php_cli_readline.c; do
108826:
108827: IFS=.
108828: set $ac_src
108829: ac_obj=$1
108830: IFS=$old_IFS
108831:
108832: PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
108833:
108834: case $ac_src in
108835: *.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" ;;
108836: *.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" ;;
108837: *.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" ;;
108838: *.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" ;;
108839: esac
108840:
108841: cat >>Makefile.objects<<EOF
108842: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
108843: $ac_comp
108844: EOF
108845: done
108846:
108847:
108848: PHP_INSTALLED_SAPIS="cli $PHP_SAPI"
108849: PHP_EXECUTABLE="\$(top_builddir)/\$(SAPI_CLI_PATH)"
108850: else
108851: PHP_INSTALLED_SAPIS="$PHP_SAPI"
108852: fi
108853:
108854:
108855:
108856: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_INSTALLED_SAPIS"
108857:
108858:
108859:
108860:
108861:
108862: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_EXECUTABLE"
108863:
108864:
108865: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_CLI_TARGET"
108866:
108867:
108868: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_SAPI_OBJS"
108869:
108870:
108871: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_CLI_OBJS"
108872:
108873:
108874: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_GLOBAL_OBJS"
108875:
108876:
108877:
108878: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_MODULES"
108879:
108880:
108881: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_ZEND_EX"
108882:
108883:
108884:
108885: PHP_VAR_SUBST="$PHP_VAR_SUBST EXT_LIBS"
108886:
108887:
108888:
108889:
108890: PHP_VAR_SUBST="$PHP_VAR_SUBST abs_builddir"
108891:
108892:
108893:
108894:
108895:
108896: PHP_VAR_SUBST="$PHP_VAR_SUBST abs_srcdir"
108897:
108898:
108899:
108900:
108901:
108902: PHP_VAR_SUBST="$PHP_VAR_SUBST php_abs_top_builddir"
108903:
108904:
108905:
108906:
108907:
108908: PHP_VAR_SUBST="$PHP_VAR_SUBST php_abs_top_srcdir"
108909:
108910:
108911:
108912:
108913:
108914: PHP_VAR_SUBST="$PHP_VAR_SUBST bindir"
108915:
108916:
108917: PHP_VAR_SUBST="$PHP_VAR_SUBST sbindir"
108918:
108919:
108920: PHP_VAR_SUBST="$PHP_VAR_SUBST exec_prefix"
108921:
108922:
108923:
108924: PHP_VAR_SUBST="$PHP_VAR_SUBST program_prefix"
108925:
108926:
108927:
108928:
108929:
108930: PHP_VAR_SUBST="$PHP_VAR_SUBST program_suffix"
108931:
108932:
108933:
108934:
108935: PHP_VAR_SUBST="$PHP_VAR_SUBST includedir"
108936:
108937:
108938: PHP_VAR_SUBST="$PHP_VAR_SUBST libdir"
108939:
108940:
108941: PHP_VAR_SUBST="$PHP_VAR_SUBST mandir"
108942:
108943:
108944: PHP_VAR_SUBST="$PHP_VAR_SUBST phplibdir"
108945:
108946:
108947: PHP_VAR_SUBST="$PHP_VAR_SUBST phptempdir"
108948:
108949:
108950: PHP_VAR_SUBST="$PHP_VAR_SUBST prefix"
108951:
108952:
108953: PHP_VAR_SUBST="$PHP_VAR_SUBST localstatedir"
108954:
108955:
108956: PHP_VAR_SUBST="$PHP_VAR_SUBST datadir"
108957:
108958:
108959: PHP_VAR_SUBST="$PHP_VAR_SUBST datarootdir"
108960:
108961:
108962: PHP_VAR_SUBST="$PHP_VAR_SUBST sysconfdir"
108963:
108964:
108965:
108966: PHP_VAR_SUBST="$PHP_VAR_SUBST EXEEXT"
108967:
108968:
108969: PHP_VAR_SUBST="$PHP_VAR_SUBST CC"
108970:
108971:
108972: PHP_VAR_SUBST="$PHP_VAR_SUBST CFLAGS"
108973:
108974:
108975: PHP_VAR_SUBST="$PHP_VAR_SUBST CFLAGS_CLEAN"
108976:
108977:
108978: PHP_VAR_SUBST="$PHP_VAR_SUBST CPP"
108979:
108980:
108981: PHP_VAR_SUBST="$PHP_VAR_SUBST CPPFLAGS"
108982:
108983:
108984: PHP_VAR_SUBST="$PHP_VAR_SUBST CXX"
108985:
108986:
108987: PHP_VAR_SUBST="$PHP_VAR_SUBST CXXFLAGS"
108988:
108989:
108990: PHP_VAR_SUBST="$PHP_VAR_SUBST CXXFLAGS_CLEAN"
108991:
108992:
108993:
108994: PHP_VAR_SUBST="$PHP_VAR_SUBST DEBUG_CFLAGS"
108995:
108996:
108997:
108998:
108999:
109000: PHP_VAR_SUBST="$PHP_VAR_SUBST EXTENSION_DIR"
109001:
109002:
109003:
109004:
109005:
109006: PHP_VAR_SUBST="$PHP_VAR_SUBST EXTRA_LDFLAGS"
109007:
109008:
109009:
109010:
109011:
109012: PHP_VAR_SUBST="$PHP_VAR_SUBST EXTRA_LDFLAGS_PROGRAM"
109013:
109014:
109015:
109016:
109017:
109018: PHP_VAR_SUBST="$PHP_VAR_SUBST EXTRA_LIBS"
109019:
109020:
109021:
109022:
109023:
109024: PHP_VAR_SUBST="$PHP_VAR_SUBST ZEND_EXTRA_LIBS"
109025:
109026:
109027:
109028:
109029:
109030: PHP_VAR_SUBST="$PHP_VAR_SUBST INCLUDES"
109031:
109032:
109033:
109034:
109035:
109036: PHP_VAR_SUBST="$PHP_VAR_SUBST EXTRA_INCLUDES"
109037:
109038:
109039:
109040:
109041:
109042: PHP_VAR_SUBST="$PHP_VAR_SUBST INCLUDE_PATH"
109043:
109044:
109045:
109046:
109047:
109048: PHP_VAR_SUBST="$PHP_VAR_SUBST INSTALL_IT"
109049:
109050:
109051:
109052:
109053: PHP_VAR_SUBST="$PHP_VAR_SUBST LFLAGS"
109054:
109055:
109056: PHP_VAR_SUBST="$PHP_VAR_SUBST LIBTOOL"
109057:
109058:
109059: PHP_VAR_SUBST="$PHP_VAR_SUBST LN_S"
109060:
109061:
109062:
109063: PHP_VAR_SUBST="$PHP_VAR_SUBST NATIVE_RPATHS"
109064:
109065:
109066:
109067:
109068:
109069: PHP_VAR_SUBST="$PHP_VAR_SUBST PEAR_INSTALLDIR"
109070:
109071:
109072:
109073:
109074: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_BUILD_DATE"
109075:
109076:
109077:
109078: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_LDFLAGS"
109079:
109080:
109081:
109082:
109083:
109084: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_LIBS"
109085:
109086:
109087:
109088:
109089: PHP_VAR_SUBST="$PHP_VAR_SUBST OVERALL_TARGET"
109090:
109091:
109092: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_RPATHS"
109093:
109094:
109095: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_SAPI"
109096:
109097:
109098:
109099: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_VERSION"
109100:
109101:
109102:
109103:
109104:
109105: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_VERSION_ID"
109106:
109107:
109108:
109109:
109110: PHP_VAR_SUBST="$PHP_VAR_SUBST SHELL"
109111:
109112:
109113: PHP_VAR_SUBST="$PHP_VAR_SUBST SHARED_LIBTOOL"
109114:
109115:
109116: PHP_VAR_SUBST="$PHP_VAR_SUBST WARNING_LEVEL"
109117:
109118:
109119: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_FRAMEWORKS"
109120:
109121:
109122: PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_FRAMEWORKPATH"
109123:
109124:
109125: PHP_VAR_SUBST="$PHP_VAR_SUBST INSTALL_HEADERS"
109126:
109127:
109128: old_CC=$CC
109129:
109130: if test "$PHP_THREAD_SAFETY" = "yes" && test -n "$ac_cv_pthreads_cflags"; then
109131: CXXFLAGS="$CXXFLAGS $ac_cv_pthreads_cflags"
109132: INLINE_CFLAGS="$INLINE_CFLAGS $ac_cv_pthreads_cflags"
109133: cat >meta_ccld<<EOF
109134: #! /bin/sh
109135: exec $CC $ac_cv_pthreads_cflags \$@
109136: EOF
109137: CC="$abs_builddir/meta_ccld"
109138: chmod +x meta_ccld
109139: fi
109140:
109141: if test "$PHP_THREAD_SAFETY" = "yes" && test "$PHP_MYSQL" = "yes"; then
109142: CPPFLAGS="$CPPFLAGS -DTHREAD=1"
109143: fi
109144:
109145: ZEND_EXT_TYPE="zend_extension"
109146:
109147: PHP_VAR_SUBST="$PHP_VAR_SUBST ZEND_EXT_TYPE"
109148:
109149:
109150:
109151:
109152: # Check whether --enable- was given.
109153: if test "${enable_+set}" = set; then :
109154: enableval=$enable_;
109155: fi
109156:
109157:
109158:
109159: { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
109160: $as_echo "" >&6; }
109161: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Configuring libtool${T_ME}" >&5
109162: $as_echo "${T_MD}Configuring libtool${T_ME}" >&6; }
109163:
109164:
109165: LDFLAGS="$LDFLAGS $PHP_AIX_LDFLAGS"
109166:
109167: case $host_alias in
109168: *darwin9*|*darwin10*)
109169: ac_cv_exeext=
109170: ;;
109171: esac
109172:
109173:
109174: # Check whether --enable-shared was given.
109175: if test "${enable_shared+set}" = set; then :
109176: enableval=$enable_shared; p=${PACKAGE-default}
109177: case $enableval in
109178: yes) enable_shared=yes ;;
109179: no) enable_shared=no ;;
109180: *)
109181: enable_shared=no
109182: # Look at the argument we got. We use all the common list separators.
109183: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
109184: for pkg in $enableval; do
109185: IFS="$lt_save_ifs"
109186: if test "X$pkg" = "X$p"; then
109187: enable_shared=yes
109188: fi
109189: done
109190: IFS="$lt_save_ifs"
109191: ;;
109192: esac
109193: else
109194: enable_shared=yes
109195: fi
109196:
109197:
109198: # Check whether --enable-static was given.
109199: if test "${enable_static+set}" = set; then :
109200: enableval=$enable_static; p=${PACKAGE-default}
109201: case $enableval in
109202: yes) enable_static=yes ;;
109203: no) enable_static=no ;;
109204: *)
109205: enable_static=no
109206: # Look at the argument we got. We use all the common list separators.
109207: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
109208: for pkg in $enableval; do
109209: IFS="$lt_save_ifs"
109210: if test "X$pkg" = "X$p"; then
109211: enable_static=yes
109212: fi
109213: done
109214: IFS="$lt_save_ifs"
109215: ;;
109216: esac
109217: else
109218: enable_static=yes
109219: fi
109220:
109221:
109222: # Check whether --enable-fast-install was given.
109223: if test "${enable_fast_install+set}" = set; then :
109224: enableval=$enable_fast_install; p=${PACKAGE-default}
109225: case $enableval in
109226: yes) enable_fast_install=yes ;;
109227: no) enable_fast_install=no ;;
109228: *)
109229: enable_fast_install=no
109230: # Look at the argument we got. We use all the common list separators.
109231: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
109232: for pkg in $enableval; do
109233: IFS="$lt_save_ifs"
109234: if test "X$pkg" = "X$p"; then
109235: enable_fast_install=yes
109236: fi
109237: done
109238: IFS="$lt_save_ifs"
109239: ;;
109240: esac
109241: else
109242: enable_fast_install=yes
109243: fi
109244:
109245:
109246:
109247: # Check whether --with-gnu-ld was given.
109248: if test "${with_gnu_ld+set}" = set; then :
109249: withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
109250: else
109251: with_gnu_ld=no
109252: fi
109253:
109254: ac_prog=ld
109255: if test "$GCC" = yes; then
109256: # Check if gcc -print-prog-name=ld gives a path.
109257: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
109258: $as_echo_n "checking for ld used by $CC... " >&6; }
109259: case $host in
109260: *-*-mingw*)
109261: # gcc leaves a trailing carriage return which upsets mingw
109262: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
109263: *)
109264: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
109265: esac
109266: case $ac_prog in
109267: # Accept absolute paths.
109268: [\\/]* | ?:[\\/]*)
109269: re_direlt='/[^/][^/]*/\.\./'
109270: # Canonicalize the pathname of ld
109271: ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
109272: while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
109273: ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
109274: done
109275: test -z "$LD" && LD="$ac_prog"
109276: ;;
109277: "")
109278: # If it fails, then pretend we aren't using GCC.
109279: ac_prog=ld
109280: ;;
109281: *)
109282: # If it is relative, then search for the first ld in PATH.
109283: with_gnu_ld=unknown
109284: ;;
109285: esac
109286: elif test "$with_gnu_ld" = yes; then
109287: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
109288: $as_echo_n "checking for GNU ld... " >&6; }
109289: else
109290: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
109291: $as_echo_n "checking for non-GNU ld... " >&6; }
109292: fi
109293: if ${lt_cv_path_LD+:} false; then :
109294: $as_echo_n "(cached) " >&6
109295: else
109296: if test -z "$LD"; then
109297: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
109298: for ac_dir in $PATH; do
109299: IFS="$lt_save_ifs"
109300: test -z "$ac_dir" && ac_dir=.
109301: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
109302: lt_cv_path_LD="$ac_dir/$ac_prog"
109303: # Check to see if the program is GNU ld. I'd rather use --version,
109304: # but apparently some variants of GNU ld only accept -v.
109305: # Break only if it was the GNU/non-GNU ld that we prefer.
109306: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
109307: *GNU* | *'with BFD'*)
109308: test "$with_gnu_ld" != no && break
109309: ;;
109310: *)
109311: test "$with_gnu_ld" != yes && break
109312: ;;
109313: esac
109314: fi
109315: done
109316: IFS="$lt_save_ifs"
109317: else
109318: lt_cv_path_LD="$LD" # Let the user override the test with a path.
109319: fi
109320: fi
109321:
109322: LD="$lt_cv_path_LD"
109323: if test -n "$LD"; then
109324: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
109325: $as_echo "$LD" >&6; }
109326: else
109327: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
109328: $as_echo "no" >&6; }
109329: fi
109330: test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
109331: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
109332: $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
109333: if ${lt_cv_prog_gnu_ld+:} false; then :
109334: $as_echo_n "(cached) " >&6
109335: else
109336: # I'd rather use --version here, but apparently some GNU lds only accept -v.
109337: case `$LD -v 2>&1 </dev/null` in
109338: *GNU* | *'with BFD'*)
109339: lt_cv_prog_gnu_ld=yes
109340: ;;
109341: *)
109342: lt_cv_prog_gnu_ld=no
109343: ;;
109344: esac
109345: fi
109346: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
109347: $as_echo "$lt_cv_prog_gnu_ld" >&6; }
109348: with_gnu_ld=$lt_cv_prog_gnu_ld
109349:
109350:
109351: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
109352: $as_echo_n "checking for $LD option to reload object files... " >&6; }
109353: if ${lt_cv_ld_reload_flag+:} false; then :
109354: $as_echo_n "(cached) " >&6
109355: else
109356: lt_cv_ld_reload_flag='-r'
109357: fi
109358: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
109359: $as_echo "$lt_cv_ld_reload_flag" >&6; }
109360: reload_flag=$lt_cv_ld_reload_flag
109361: case $reload_flag in
109362: "" | " "*) ;;
109363: *) reload_flag=" $reload_flag" ;;
109364: esac
109365: reload_cmds='$LD$reload_flag -o $output$reload_objs'
109366: case $host_os in
109367: darwin*)
109368: if test "$GCC" = yes; then
109369: reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
109370: else
109371: reload_cmds='$LD$reload_flag -o $output$reload_objs'
109372: fi
109373: ;;
109374: esac
109375:
109376: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
109377: $as_echo_n "checking for BSD-compatible nm... " >&6; }
109378: if ${lt_cv_path_NM+:} false; then :
109379: $as_echo_n "(cached) " >&6
109380: else
109381: if test -n "$NM"; then
109382: # Let the user override the test.
109383: lt_cv_path_NM="$NM"
109384: else
109385: lt_nm_to_check="${ac_tool_prefix}nm"
109386: if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
109387: lt_nm_to_check="$lt_nm_to_check nm"
109388: fi
109389: for lt_tmp_nm in $lt_nm_to_check; do
109390: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
109391: for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
109392: IFS="$lt_save_ifs"
109393: test -z "$ac_dir" && ac_dir=.
109394: tmp_nm="$ac_dir/$lt_tmp_nm"
109395: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
109396: # Check to see if the nm accepts a BSD-compat flag.
109397: # Adding the `sed 1q' prevents false positives on HP-UX, which says:
109398: # nm: unknown option "B" ignored
109399: # Tru64's nm complains that /dev/null is an invalid object file
109400: case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
109401: */dev/null* | *'Invalid file or object type'*)
109402: lt_cv_path_NM="$tmp_nm -B"
109403: break
109404: ;;
109405: *)
109406: case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
109407: */dev/null*)
109408: lt_cv_path_NM="$tmp_nm -p"
109409: break
109410: ;;
109411: *)
109412: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
109413: continue # so that we can try to find one that supports BSD flags
109414: ;;
109415: esac
109416: ;;
109417: esac
109418: fi
109419: done
109420: IFS="$lt_save_ifs"
109421: done
109422: test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
109423: fi
109424: fi
109425: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
109426: $as_echo "$lt_cv_path_NM" >&6; }
109427: NM="$lt_cv_path_NM"
109428:
109429: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
109430: $as_echo_n "checking how to recognize dependent libraries... " >&6; }
109431: if ${lt_cv_deplibs_check_method+:} false; then :
109432: $as_echo_n "(cached) " >&6
109433: else
109434: lt_cv_file_magic_cmd='$MAGIC_CMD'
109435: lt_cv_file_magic_test_file=
109436: lt_cv_deplibs_check_method='unknown'
109437: # Need to set the preceding variable on all platforms that support
109438: # interlibrary dependencies.
109439: # 'none' -- dependencies not supported.
109440: # `unknown' -- same as none, but documents that we really don't know.
109441: # 'pass_all' -- all dependencies passed with no checks.
109442: # 'test_compile' -- check by making test program.
109443: # 'file_magic [[regex]]' -- check by looking for files in library path
109444: # which responds to the $file_magic_cmd with a given extended regex.
109445: # If you have `file' or equivalent on your system and you're not sure
109446: # whether `pass_all' will *always* work, you probably want this one.
109447:
109448: case $host_os in
109449: aix[4-9]*)
109450: lt_cv_deplibs_check_method=pass_all
109451: ;;
109452:
109453: beos*)
109454: lt_cv_deplibs_check_method=pass_all
109455: ;;
109456:
109457: bsdi[45]*)
109458: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
109459: lt_cv_file_magic_cmd='/usr/bin/file -L'
109460: lt_cv_file_magic_test_file=/shlib/libc.so
109461: ;;
109462:
109463: cygwin*)
109464: # func_win32_libid is a shell function defined in ltmain.sh
109465: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
109466: lt_cv_file_magic_cmd='func_win32_libid'
109467: ;;
109468:
109469: mingw* | pw32*)
109470: # Base MSYS/MinGW do not provide the 'file' command needed by
109471: # func_win32_libid shell function, so use a weaker test based on 'objdump',
109472: # unless we find 'file', for example because we are cross-compiling.
109473: if ( file / ) >/dev/null 2>&1; then
109474: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
109475: lt_cv_file_magic_cmd='func_win32_libid'
109476: else
109477: lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
109478: lt_cv_file_magic_cmd='$OBJDUMP -f'
109479: fi
109480: ;;
109481:
109482: darwin* | rhapsody*)
109483: lt_cv_deplibs_check_method=pass_all
109484: ;;
109485:
109486: freebsd* | dragonfly*)
109487: if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
109488: case $host_cpu in
109489: i*86 )
109490: # Not sure whether the presence of OpenBSD here was a mistake.
109491: # Let's accept both of them until this is cleared up.
109492: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
109493: lt_cv_file_magic_cmd=/usr/bin/file
109494: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
109495: ;;
109496: esac
109497: else
109498: lt_cv_deplibs_check_method=pass_all
109499: fi
109500: ;;
109501:
109502: gnu*)
109503: lt_cv_deplibs_check_method=pass_all
109504: ;;
109505:
109506: hpux10.20* | hpux11*)
109507: lt_cv_file_magic_cmd=/usr/bin/file
109508: case $host_cpu in
109509: ia64*)
109510: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
109511: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
109512: ;;
109513: hppa*64*)
109514: 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]'
109515: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
109516: ;;
109517: *)
109518: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
109519: lt_cv_file_magic_test_file=/usr/lib/libc.sl
109520: ;;
109521: esac
109522: ;;
109523:
109524: interix[3-9]*)
109525: # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
109526: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
109527: ;;
109528:
109529: irix5* | irix6* | nonstopux*)
109530: case $LD in
109531: *-32|*"-32 ") libmagic=32-bit;;
109532: *-n32|*"-n32 ") libmagic=N32;;
109533: *-64|*"-64 ") libmagic=64-bit;;
109534: *) libmagic=never-match;;
109535: esac
109536: lt_cv_deplibs_check_method=pass_all
109537: ;;
109538:
109539: # This must be Linux ELF.
109540: linux* | k*bsd*-gnu)
109541: lt_cv_deplibs_check_method=pass_all
109542: ;;
109543:
109544: netbsd*)
109545: if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
109546: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
109547: else
109548: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
109549: fi
109550: ;;
109551:
109552: newos6*)
109553: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
109554: lt_cv_file_magic_cmd=/usr/bin/file
109555: lt_cv_file_magic_test_file=/usr/lib/libnls.so
109556: ;;
109557:
109558: nto-qnx*)
109559: lt_cv_deplibs_check_method=unknown
109560: ;;
109561:
109562: openbsd*)
109563: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
109564: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
109565: else
109566: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
109567: fi
109568: ;;
109569:
109570: osf3* | osf4* | osf5*)
109571: lt_cv_deplibs_check_method=pass_all
109572: ;;
109573:
109574: rdos*)
109575: lt_cv_deplibs_check_method=pass_all
109576: ;;
109577:
109578: solaris*)
109579: lt_cv_deplibs_check_method=pass_all
109580: ;;
109581:
109582: sysv4 | sysv4.3*)
109583: case $host_vendor in
109584: motorola)
109585: 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]'
109586: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
109587: ;;
109588: ncr)
109589: lt_cv_deplibs_check_method=pass_all
109590: ;;
109591: sequent)
109592: lt_cv_file_magic_cmd='/bin/file'
109593: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
109594: ;;
109595: sni)
109596: lt_cv_file_magic_cmd='/bin/file'
109597: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
109598: lt_cv_file_magic_test_file=/lib/libc.so
109599: ;;
109600: siemens)
109601: lt_cv_deplibs_check_method=pass_all
109602: ;;
109603: pc)
109604: lt_cv_deplibs_check_method=pass_all
109605: ;;
109606: esac
109607: ;;
109608:
109609: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
109610: lt_cv_deplibs_check_method=pass_all
109611: ;;
109612: esac
109613:
109614: fi
109615: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
109616: $as_echo "$lt_cv_deplibs_check_method" >&6; }
109617: file_magic_cmd=$lt_cv_file_magic_cmd
109618: deplibs_check_method=$lt_cv_deplibs_check_method
109619: test -z "$deplibs_check_method" && deplibs_check_method=unknown
109620:
109621:
109622:
109623:
109624: # If no C compiler was specified, use CC.
109625: LTCC=${LTCC-"$CC"}
109626:
109627: # If no C compiler flags were specified, use CFLAGS.
109628: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
109629:
109630: # Allow CC to be a program name with arguments.
109631: compiler=$CC
109632:
109633: #AC_ARG_ENABLE([libtool-lock],
109634: #[ --disable-libtool-lock avoid locking (might break parallel builds)])
109635: #test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
109636:
109637: # Some flags need to be propagated to the compiler or linker for good
109638: # libtool support.
109639: case $host in
109640: ia64-*-hpux*)
109641: # Find out which ABI we are using.
109642: echo 'int i;' > conftest.$ac_ext
109643: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
109644: (eval $ac_compile) 2>&5
109645: ac_status=$?
109646: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
109647: test $ac_status = 0; }; then
109648: case `/usr/bin/file conftest.$ac_objext` in
109649: *ELF-32*)
109650: HPUX_IA64_MODE="32"
109651: ;;
109652: *ELF-64*)
109653: HPUX_IA64_MODE="64"
109654: ;;
109655: esac
109656: fi
109657: rm -rf conftest*
109658: ;;
109659: *-*-irix6*)
109660: # Find out which ABI we are using.
109661: echo '#line 109661 "configure"' > conftest.$ac_ext
109662: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
109663: (eval $ac_compile) 2>&5
109664: ac_status=$?
109665: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
109666: test $ac_status = 0; }; then
109667: if test "$lt_cv_prog_gnu_ld" = yes; then
109668: case `/usr/bin/file conftest.$ac_objext` in
109669: *32-bit*)
109670: LD="${LD-ld} -melf32bsmip"
109671: ;;
109672: *N32*)
109673: LD="${LD-ld} -melf32bmipn32"
109674: ;;
109675: *64-bit*)
109676: LD="${LD-ld} -melf64bmip"
109677: ;;
109678: esac
109679: else
109680: case `/usr/bin/file conftest.$ac_objext` in
109681: *32-bit*)
109682: LD="${LD-ld} -32"
109683: ;;
109684: *N32*)
109685: LD="${LD-ld} -n32"
109686: ;;
109687: *64-bit*)
109688: LD="${LD-ld} -64"
109689: ;;
109690: esac
109691: fi
109692: fi
109693: rm -rf conftest*
109694: ;;
109695:
109696: x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
109697: s390*-*linux*|sparc*-*linux*)
109698: # Find out which ABI we are using.
109699: echo 'int i;' > conftest.$ac_ext
109700: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
109701: (eval $ac_compile) 2>&5
109702: ac_status=$?
109703: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
109704: test $ac_status = 0; }; then
109705: case `/usr/bin/file conftest.o` in
109706: *32-bit*)
109707: case $host in
109708: x86_64-*kfreebsd*-gnu)
109709: LD="${LD-ld} -m elf_i386_fbsd"
109710: ;;
109711: x86_64-*linux*)
109712: LD="${LD-ld} -m elf_i386"
109713: ;;
109714: ppc64-*linux*|powerpc64-*linux*)
109715: LD="${LD-ld} -m elf32ppclinux"
109716: ;;
109717: s390x-*linux*)
109718: LD="${LD-ld} -m elf_s390"
109719: ;;
109720: sparc64-*linux*)
109721: LD="${LD-ld} -m elf32_sparc"
109722: ;;
109723: esac
109724: ;;
109725: *64-bit*)
109726: case $host in
109727: x86_64-*kfreebsd*-gnu)
109728: LD="${LD-ld} -m elf_x86_64_fbsd"
109729: ;;
109730: x86_64-*linux*)
109731: LD="${LD-ld} -m elf_x86_64"
109732: ;;
109733: ppc*-*linux*|powerpc*-*linux*)
109734: LD="${LD-ld} -m elf64ppc"
109735: ;;
109736: s390*-*linux*)
109737: LD="${LD-ld} -m elf64_s390"
109738: ;;
109739: sparc*-*linux*)
109740: LD="${LD-ld} -m elf64_sparc"
109741: ;;
109742: esac
109743: ;;
109744: esac
109745: fi
109746: rm -rf conftest*
109747: ;;
109748:
109749: *-*-sco3.2v5*)
109750: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
109751: SAVE_CFLAGS="$CFLAGS"
109752: CFLAGS="$CFLAGS -belf"
109753: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
109754: $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
109755: if ${lt_cv_cc_needs_belf+:} false; then :
109756: $as_echo_n "(cached) " >&6
109757: else
109758:
109759: ac_ext=c
109760: ac_cpp='$CPP $CPPFLAGS'
109761: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
109762: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
109763: ac_compiler_gnu=$ac_cv_c_compiler_gnu
109764:
109765: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
109766: /* end confdefs.h. */
109767:
109768: int
109769: main ()
109770: {
109771:
109772: ;
109773: return 0;
109774: }
109775: _ACEOF
109776: if ac_fn_c_try_link "$LINENO"; then :
109777: lt_cv_cc_needs_belf=yes
109778: else
109779: lt_cv_cc_needs_belf=no
109780: fi
109781: rm -f core conftest.err conftest.$ac_objext \
109782: conftest$ac_exeext conftest.$ac_ext
109783: ac_ext=c
109784: ac_cpp='$CPP $CPPFLAGS'
109785: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
109786: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
109787: ac_compiler_gnu=$ac_cv_c_compiler_gnu
109788:
109789: fi
109790: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
109791: $as_echo "$lt_cv_cc_needs_belf" >&6; }
109792: if test x"$lt_cv_cc_needs_belf" != x"yes"; then
109793: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
109794: CFLAGS="$SAVE_CFLAGS"
109795: fi
109796: ;;
109797: sparc*-*solaris*)
109798: # Find out which ABI we are using.
109799: echo 'int i;' > conftest.$ac_ext
109800: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
109801: (eval $ac_compile) 2>&5
109802: ac_status=$?
109803: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
109804: test $ac_status = 0; }; then
109805: case `/usr/bin/file conftest.o` in
109806: *64-bit*)
109807: case $lt_cv_prog_gnu_ld in
109808: yes*) LD="${LD-ld} -m elf64_sparc" ;;
109809: *)
109810: if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
109811: LD="${LD-ld} -64"
109812: fi
109813: ;;
109814: esac
109815: ;;
109816: esac
109817: fi
109818: rm -rf conftest*
109819: ;;
109820:
109821:
109822: esac
109823:
109824: need_locks="$enable_libtool_lock"
109825:
109826:
109827:
109828:
109829: if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
109830: ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
109831: (test "X$CXX" != "Xg++"))) ; then
109832: ac_ext=cpp
109833: ac_cpp='$CXXCPP $CPPFLAGS'
109834: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
109835: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
109836: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
109837: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
109838: $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
109839: if test -z "$CXXCPP"; then
109840: if ${ac_cv_prog_CXXCPP+:} false; then :
109841: $as_echo_n "(cached) " >&6
109842: else
109843: # Double quotes because CXXCPP needs to be expanded
109844: for CXXCPP in "$CXX -E" "/lib/cpp"
109845: do
109846: ac_preproc_ok=false
109847: for ac_cxx_preproc_warn_flag in '' yes
109848: do
109849: # Use a header file that comes with gcc, so configuring glibc
109850: # with a fresh cross-compiler works.
109851: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
109852: # <limits.h> exists even on freestanding compilers.
109853: # On the NeXT, cc -E runs the code through the compiler's parser,
109854: # not just through cpp. "Syntax error" is here to catch this case.
109855: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
109856: /* end confdefs.h. */
109857: #ifdef __STDC__
109858: # include <limits.h>
109859: #else
109860: # include <assert.h>
109861: #endif
109862: Syntax error
109863: _ACEOF
109864: if ac_fn_cxx_try_cpp "$LINENO"; then :
109865:
109866: else
109867: # Broken: fails on valid input.
109868: continue
109869: fi
109870: rm -f conftest.err conftest.i conftest.$ac_ext
109871:
109872: # OK, works on sane cases. Now check whether nonexistent headers
109873: # can be detected and how.
109874: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
109875: /* end confdefs.h. */
109876: #include <ac_nonexistent.h>
109877: _ACEOF
109878: if ac_fn_cxx_try_cpp "$LINENO"; then :
109879: # Broken: success on invalid input.
109880: continue
109881: else
109882: # Passes both tests.
109883: ac_preproc_ok=:
109884: break
109885: fi
109886: rm -f conftest.err conftest.i conftest.$ac_ext
109887:
109888: done
109889: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
109890: rm -f conftest.i conftest.err conftest.$ac_ext
109891: if $ac_preproc_ok; then :
109892: break
109893: fi
109894:
109895: done
109896: ac_cv_prog_CXXCPP=$CXXCPP
109897:
109898: fi
109899: CXXCPP=$ac_cv_prog_CXXCPP
109900: else
109901: ac_cv_prog_CXXCPP=$CXXCPP
109902: fi
109903: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
109904: $as_echo "$CXXCPP" >&6; }
109905: ac_preproc_ok=false
109906: for ac_cxx_preproc_warn_flag in '' yes
109907: do
109908: # Use a header file that comes with gcc, so configuring glibc
109909: # with a fresh cross-compiler works.
109910: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
109911: # <limits.h> exists even on freestanding compilers.
109912: # On the NeXT, cc -E runs the code through the compiler's parser,
109913: # not just through cpp. "Syntax error" is here to catch this case.
109914: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
109915: /* end confdefs.h. */
109916: #ifdef __STDC__
109917: # include <limits.h>
109918: #else
109919: # include <assert.h>
109920: #endif
109921: Syntax error
109922: _ACEOF
109923: if ac_fn_cxx_try_cpp "$LINENO"; then :
109924:
109925: else
109926: # Broken: fails on valid input.
109927: continue
109928: fi
109929: rm -f conftest.err conftest.i conftest.$ac_ext
109930:
109931: # OK, works on sane cases. Now check whether nonexistent headers
109932: # can be detected and how.
109933: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
109934: /* end confdefs.h. */
109935: #include <ac_nonexistent.h>
109936: _ACEOF
109937: if ac_fn_cxx_try_cpp "$LINENO"; then :
109938: # Broken: success on invalid input.
109939: continue
109940: else
109941: # Passes both tests.
109942: ac_preproc_ok=:
109943: break
109944: fi
109945: rm -f conftest.err conftest.i conftest.$ac_ext
109946:
109947: done
109948: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
109949: rm -f conftest.i conftest.err conftest.$ac_ext
109950: if $ac_preproc_ok; then :
109951:
109952: else
109953: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
109954: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
109955: as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
109956: See \`config.log' for more details" "$LINENO" 5; }
109957: fi
109958:
109959: ac_ext=cpp
109960: ac_cpp='$CXXCPP $CPPFLAGS'
109961: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
109962: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
109963: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
109964:
109965: fi
109966:
109967:
109968: # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
109969: # find the maximum length of command line arguments
109970: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
109971: $as_echo_n "checking the maximum length of command line arguments... " >&6; }
109972: if ${lt_cv_sys_max_cmd_len+:} false; then :
109973: $as_echo_n "(cached) " >&6
109974: else
109975: i=0
109976: teststring="ABCD"
109977:
109978: case $build_os in
109979: msdosdjgpp*)
109980: # On DJGPP, this test can blow up pretty badly due to problems in libc
109981: # (any single argument exceeding 2000 bytes causes a buffer overrun
109982: # during glob expansion). Even if it were fixed, the result of this
109983: # check would be larger than it should be.
109984: lt_cv_sys_max_cmd_len=12288; # 12K is about right
109985: ;;
109986:
109987: gnu*)
109988: # Under GNU Hurd, this test is not required because there is
109989: # no limit to the length of command line arguments.
109990: # Libtool will interpret -1 as no limit whatsoever
109991: lt_cv_sys_max_cmd_len=-1;
109992: ;;
109993:
109994: cygwin* | mingw*)
109995: # On Win9x/ME, this test blows up -- it succeeds, but takes
109996: # about 5 minutes as the teststring grows exponentially.
109997: # Worse, since 9x/ME are not pre-emptively multitasking,
109998: # you end up with a "frozen" computer, even though with patience
109999: # the test eventually succeeds (with a max line length of 256k).
110000: # Instead, let's just punt: use the minimum linelength reported by
110001: # all of the supported platforms: 8192 (on NT/2K/XP).
110002: lt_cv_sys_max_cmd_len=8192;
110003: ;;
110004:
110005: amigaos*)
110006: # On AmigaOS with pdksh, this test takes hours, literally.
110007: # So we just punt and use a minimum line length of 8192.
110008: lt_cv_sys_max_cmd_len=8192;
110009: ;;
110010:
110011: netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
110012: # This has been around since 386BSD, at least. Likely further.
110013: if test -x /sbin/sysctl; then
110014: lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
110015: elif test -x /usr/sbin/sysctl; then
110016: lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
110017: else
110018: lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
110019: fi
110020: # And add a safety zone
110021: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
110022: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
110023: ;;
110024:
110025: interix*)
110026: # We know the value 262144 and hardcode it with a safety zone (like BSD)
110027: lt_cv_sys_max_cmd_len=196608
110028: ;;
110029:
110030: osf*)
110031: # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
110032: # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
110033: # nice to cause kernel panics so lets avoid the loop below.
110034: # First set a reasonable default.
110035: lt_cv_sys_max_cmd_len=16384
110036: #
110037: if test -x /sbin/sysconfig; then
110038: case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
110039: *1*) lt_cv_sys_max_cmd_len=-1 ;;
110040: esac
110041: fi
110042: ;;
110043: sco3.2v5*)
110044: lt_cv_sys_max_cmd_len=102400
110045: ;;
110046: sysv5* | sco5v6* | sysv4.2uw2*)
110047: kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
110048: if test -n "$kargmax"; then
110049: lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
110050: else
110051: lt_cv_sys_max_cmd_len=32768
110052: fi
110053: ;;
110054: *)
110055: lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
110056: if test -n "$lt_cv_sys_max_cmd_len"; then
110057: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
110058: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
110059: else
110060: SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
110061: while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
110062: = "XX$teststring") >/dev/null 2>&1 &&
110063: new_result=`expr "X$teststring" : ".*" 2>&1` &&
110064: lt_cv_sys_max_cmd_len=$new_result &&
110065: test $i != 17 # 1/2 MB should be enough
110066: do
110067: i=`expr $i + 1`
110068: teststring=$teststring$teststring
110069: done
110070: teststring=
110071: # Add a significant safety factor because C++ compilers can tack on massive
110072: # amounts of additional arguments before passing them to the linker.
110073: # It appears as though 1/2 is a usable value.
110074: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
110075: fi
110076: ;;
110077: esac
110078:
110079: fi
110080:
110081: if test -n $lt_cv_sys_max_cmd_len ; then
110082: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
110083: $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
110084: else
110085: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
110086: $as_echo "none" >&6; }
110087: fi
110088:
110089:
110090:
110091:
110092:
110093: # Check for command to grab the raw symbol name followed by C symbol from nm.
110094: { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
110095: $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
110096: if ${lt_cv_sys_global_symbol_pipe+:} false; then :
110097: $as_echo_n "(cached) " >&6
110098: else
110099:
110100: # These are sane defaults that work on at least a few old systems.
110101: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
110102:
110103: # Character class describing NM global symbol codes.
110104: symcode='[BCDEGRST]'
110105:
110106: # Regexp to match symbols that can be accessed directly from C.
110107: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
110108:
110109: # Transform an extracted symbol line into a proper C declaration
110110: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
110111:
110112: # Transform an extracted symbol line into symbol name and symbol address
110113: 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'"
110114:
110115: # Define system-specific variables.
110116: case $host_os in
110117: aix*)
110118: symcode='[BCDT]'
110119: ;;
110120: cygwin* | mingw* | pw32*)
110121: symcode='[ABCDGISTW]'
110122: ;;
110123: hpux*) # Its linker distinguishes data from code symbols
110124: if test "$host_cpu" = ia64; then
110125: symcode='[ABCDEGRST]'
110126: fi
110127: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
110128: 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'"
110129: ;;
110130: linux* | k*bsd*-gnu)
110131: if test "$host_cpu" = ia64; then
110132: symcode='[ABCDGIRSTW]'
110133: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
110134: 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'"
110135: fi
110136: ;;
110137: irix* | nonstopux*)
110138: symcode='[BCDEGRST]'
110139: ;;
110140: osf*)
110141: symcode='[BCDEGQRST]'
110142: ;;
110143: solaris*)
110144: symcode='[BDRT]'
110145: ;;
110146: sco3.2v5*)
110147: symcode='[DT]'
110148: ;;
110149: sysv4.2uw2*)
110150: symcode='[DT]'
110151: ;;
110152: sysv5* | sco5v6* | unixware* | OpenUNIX*)
110153: symcode='[ABDT]'
110154: ;;
110155: sysv4)
110156: symcode='[DFNSTU]'
110157: ;;
110158: esac
110159:
110160: # Handle CRLF in mingw tool chain
110161: opt_cr=
110162: case $build_os in
110163: mingw*)
110164: opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
110165: ;;
110166: esac
110167:
110168: # If we're using GNU nm, then use its standard symbol codes.
110169: case `$NM -V 2>&1` in
110170: *GNU* | *'with BFD'*)
110171: symcode='[ABCDGIRSTW]' ;;
110172: esac
110173:
110174: # Try without a prefix undercore, then with it.
110175: for ac_symprfx in "" "_"; do
110176:
110177: # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
110178: symxfrm="\\1 $ac_symprfx\\2 \\2"
110179:
110180: # Write the raw and C identifiers.
110181: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
110182:
110183: # Check to see that the pipe works correctly.
110184: pipe_works=no
110185:
110186: rm -f conftest*
110187: cat > conftest.$ac_ext <<EOF
110188: #ifdef __cplusplus
110189: extern "C" {
110190: #endif
110191: char nm_test_var;
110192: void nm_test_func(){}
110193: #ifdef __cplusplus
110194: }
110195: #endif
110196: int main(){nm_test_var='a';nm_test_func();return(0);}
110197: EOF
110198:
110199: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
110200: (eval $ac_compile) 2>&5
110201: ac_status=$?
110202: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
110203: test $ac_status = 0; }; then
110204: # Now try to grab the symbols.
110205: nlist=conftest.nm
110206: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
110207: (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
110208: ac_status=$?
110209: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
110210: test $ac_status = 0; } && test -s "$nlist"; then
110211: # Try sorting and uniquifying the output.
110212: if sort "$nlist" | uniq > "$nlist"T; then
110213: mv -f "$nlist"T "$nlist"
110214: else
110215: rm -f "$nlist"T
110216: fi
110217:
110218: # Make sure that we snagged all the symbols we need.
110219: if grep ' nm_test_var$' "$nlist" >/dev/null; then
110220: if grep ' nm_test_func$' "$nlist" >/dev/null; then
110221: cat <<EOF > conftest.$ac_ext
110222: #ifdef __cplusplus
110223: extern "C" {
110224: #endif
110225:
110226: EOF
110227: # Now generate the symbol file.
110228: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
110229:
110230: cat <<EOF >> conftest.$ac_ext
110231: #if defined (__STDC__) && __STDC__
110232: # define lt_ptr_t void *
110233: #else
110234: # define lt_ptr_t char *
110235: # define const
110236: #endif
110237:
110238: /* The mapping between symbol names and symbols. */
110239: const struct {
110240: const char *name;
110241: lt_ptr_t address;
110242: }
110243: lt_preloaded_symbols[] =
110244: {
110245: EOF
110246: $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
110247: cat <<\EOF >> conftest.$ac_ext
110248: {0, (lt_ptr_t) 0}
110249: };
110250:
110251: #ifdef __cplusplus
110252: }
110253: #endif
110254: EOF
110255: # Now try linking the two files.
110256: mv conftest.$ac_objext conftstm.$ac_objext
110257: lt_save_LIBS="$LIBS"
110258: lt_save_CFLAGS="$CFLAGS"
110259: LIBS="conftstm.$ac_objext"
110260: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
110261: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
110262: (eval $ac_link) 2>&5
110263: ac_status=$?
110264: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
110265: test $ac_status = 0; } && test -s conftest${ac_exeext}; then
110266: pipe_works=yes
110267: fi
110268: LIBS="$lt_save_LIBS"
110269: CFLAGS="$lt_save_CFLAGS"
110270: else
110271: echo "cannot find nm_test_func in $nlist" >&5
110272: fi
110273: else
110274: echo "cannot find nm_test_var in $nlist" >&5
110275: fi
110276: else
110277: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
110278: fi
110279: else
110280: echo "$progname: failed program was:" >&5
110281: cat conftest.$ac_ext >&5
110282: fi
110283: rm -rf conftest* conftst*
110284:
110285: # Do not use the global_symbol_pipe unless it works.
110286: if test "$pipe_works" = yes; then
110287: break
110288: else
110289: lt_cv_sys_global_symbol_pipe=
110290: fi
110291: done
110292:
110293: fi
110294:
110295: if test -z "$lt_cv_sys_global_symbol_pipe"; then
110296: lt_cv_sys_global_symbol_to_cdecl=
110297: fi
110298: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
110299: { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
110300: $as_echo "failed" >&6; }
110301: else
110302: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
110303: $as_echo "ok" >&6; }
110304: fi
110305:
110306: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
110307: $as_echo_n "checking for objdir... " >&6; }
110308: if ${lt_cv_objdir+:} false; then :
110309: $as_echo_n "(cached) " >&6
110310: else
110311: rm -f .libs 2>/dev/null
110312: mkdir .libs 2>/dev/null
110313: if test -d .libs; then
110314: lt_cv_objdir=.libs
110315: else
110316: # MS-DOS does not allow filenames that begin with a dot.
110317: lt_cv_objdir=_libs
110318: fi
110319: rmdir .libs 2>/dev/null
110320: fi
110321: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
110322: $as_echo "$lt_cv_objdir" >&6; }
110323: objdir=$lt_cv_objdir
110324:
110325:
110326:
110327:
110328:
110329: case $host_os in
110330: aix3*)
110331: # AIX sometimes has problems with the GCC collect2 program. For some
110332: # reason, if we set the COLLECT_NAMES environment variable, the problems
110333: # vanish in a puff of smoke.
110334: if test "X${COLLECT_NAMES+set}" != Xset; then
110335: COLLECT_NAMES=
110336: export COLLECT_NAMES
110337: fi
110338: ;;
110339: esac
110340:
110341: # Sed substitution that helps us do robust quoting. It backslashifies
110342: # metacharacters that are still active within double-quoted strings.
110343: Xsed='sed -e 1s/^X//'
110344: sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
110345:
110346: # Same as above, but do not quote variable references.
110347: double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
110348:
110349: # Sed substitution to delay expansion of an escaped shell variable in a
110350: # double_quote_subst'ed string.
110351: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
110352:
110353: # Sed substitution to avoid accidental globbing in evaled expressions
110354: no_glob_subst='s/\*/\\\*/g'
110355:
110356: # Constants:
110357: rm="rm -f"
110358:
110359: # Global variables:
110360: default_ofile=libtool
110361: can_build_shared=yes
110362:
110363: # All known linkers require a `.a' archive for static linking (except MSVC,
110364: # which needs '.lib').
110365: libext=a
110366: ltmain="$ac_aux_dir/ltmain.sh"
110367: ofile="$default_ofile"
110368: with_gnu_ld="$lt_cv_prog_gnu_ld"
110369:
110370: if test -n "$ac_tool_prefix"; then
110371: # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
110372: set dummy ${ac_tool_prefix}ar; ac_word=$2
110373: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
110374: $as_echo_n "checking for $ac_word... " >&6; }
110375: if ${ac_cv_prog_AR+:} false; then :
110376: $as_echo_n "(cached) " >&6
110377: else
110378: if test -n "$AR"; then
110379: ac_cv_prog_AR="$AR" # Let the user override the test.
110380: else
110381: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110382: for as_dir in $PATH
110383: do
110384: IFS=$as_save_IFS
110385: test -z "$as_dir" && as_dir=.
110386: for ac_exec_ext in '' $ac_executable_extensions; do
110387: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
110388: ac_cv_prog_AR="${ac_tool_prefix}ar"
110389: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
110390: break 2
110391: fi
110392: done
110393: done
110394: IFS=$as_save_IFS
110395:
110396: fi
110397: fi
110398: AR=$ac_cv_prog_AR
110399: if test -n "$AR"; then
110400: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
110401: $as_echo "$AR" >&6; }
110402: else
110403: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
110404: $as_echo "no" >&6; }
110405: fi
110406:
110407:
110408: fi
110409: if test -z "$ac_cv_prog_AR"; then
110410: ac_ct_AR=$AR
110411: # Extract the first word of "ar", so it can be a program name with args.
110412: set dummy ar; ac_word=$2
110413: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
110414: $as_echo_n "checking for $ac_word... " >&6; }
110415: if ${ac_cv_prog_ac_ct_AR+:} false; then :
110416: $as_echo_n "(cached) " >&6
110417: else
110418: if test -n "$ac_ct_AR"; then
110419: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
110420: else
110421: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110422: for as_dir in $PATH
110423: do
110424: IFS=$as_save_IFS
110425: test -z "$as_dir" && as_dir=.
110426: for ac_exec_ext in '' $ac_executable_extensions; do
110427: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
110428: ac_cv_prog_ac_ct_AR="ar"
110429: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
110430: break 2
110431: fi
110432: done
110433: done
110434: IFS=$as_save_IFS
110435:
110436: fi
110437: fi
110438: ac_ct_AR=$ac_cv_prog_ac_ct_AR
110439: if test -n "$ac_ct_AR"; then
110440: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
110441: $as_echo "$ac_ct_AR" >&6; }
110442: else
110443: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
110444: $as_echo "no" >&6; }
110445: fi
110446:
110447: if test "x$ac_ct_AR" = x; then
110448: AR="false"
110449: else
110450: case $cross_compiling:$ac_tool_warned in
110451: yes:)
110452: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
110453: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
110454: ac_tool_warned=yes ;;
110455: esac
110456: AR=$ac_ct_AR
110457: fi
110458: else
110459: AR="$ac_cv_prog_AR"
110460: fi
110461:
110462: if test -n "$ac_tool_prefix"; then
110463: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
110464: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
110465: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
110466: $as_echo_n "checking for $ac_word... " >&6; }
110467: if ${ac_cv_prog_RANLIB+:} false; then :
110468: $as_echo_n "(cached) " >&6
110469: else
110470: if test -n "$RANLIB"; then
110471: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
110472: else
110473: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110474: for as_dir in $PATH
110475: do
110476: IFS=$as_save_IFS
110477: test -z "$as_dir" && as_dir=.
110478: for ac_exec_ext in '' $ac_executable_extensions; do
110479: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
110480: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
110481: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
110482: break 2
110483: fi
110484: done
110485: done
110486: IFS=$as_save_IFS
110487:
110488: fi
110489: fi
110490: RANLIB=$ac_cv_prog_RANLIB
110491: if test -n "$RANLIB"; then
110492: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
110493: $as_echo "$RANLIB" >&6; }
110494: else
110495: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
110496: $as_echo "no" >&6; }
110497: fi
110498:
110499:
110500: fi
110501: if test -z "$ac_cv_prog_RANLIB"; then
110502: ac_ct_RANLIB=$RANLIB
110503: # Extract the first word of "ranlib", so it can be a program name with args.
110504: set dummy ranlib; ac_word=$2
110505: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
110506: $as_echo_n "checking for $ac_word... " >&6; }
110507: if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
110508: $as_echo_n "(cached) " >&6
110509: else
110510: if test -n "$ac_ct_RANLIB"; then
110511: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
110512: else
110513: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110514: for as_dir in $PATH
110515: do
110516: IFS=$as_save_IFS
110517: test -z "$as_dir" && as_dir=.
110518: for ac_exec_ext in '' $ac_executable_extensions; do
110519: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
110520: ac_cv_prog_ac_ct_RANLIB="ranlib"
110521: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
110522: break 2
110523: fi
110524: done
110525: done
110526: IFS=$as_save_IFS
110527:
110528: fi
110529: fi
110530: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
110531: if test -n "$ac_ct_RANLIB"; then
110532: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
110533: $as_echo "$ac_ct_RANLIB" >&6; }
110534: else
110535: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
110536: $as_echo "no" >&6; }
110537: fi
110538:
110539: if test "x$ac_ct_RANLIB" = x; then
110540: RANLIB=":"
110541: else
110542: case $cross_compiling:$ac_tool_warned in
110543: yes:)
110544: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
110545: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
110546: ac_tool_warned=yes ;;
110547: esac
110548: RANLIB=$ac_ct_RANLIB
110549: fi
110550: else
110551: RANLIB="$ac_cv_prog_RANLIB"
110552: fi
110553:
110554: if test -n "$ac_tool_prefix"; then
110555: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
110556: set dummy ${ac_tool_prefix}strip; ac_word=$2
110557: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
110558: $as_echo_n "checking for $ac_word... " >&6; }
110559: if ${ac_cv_prog_STRIP+:} false; then :
110560: $as_echo_n "(cached) " >&6
110561: else
110562: if test -n "$STRIP"; then
110563: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
110564: else
110565: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110566: for as_dir in $PATH
110567: do
110568: IFS=$as_save_IFS
110569: test -z "$as_dir" && as_dir=.
110570: for ac_exec_ext in '' $ac_executable_extensions; do
110571: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
110572: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
110573: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
110574: break 2
110575: fi
110576: done
110577: done
110578: IFS=$as_save_IFS
110579:
110580: fi
110581: fi
110582: STRIP=$ac_cv_prog_STRIP
110583: if test -n "$STRIP"; then
110584: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
110585: $as_echo "$STRIP" >&6; }
110586: else
110587: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
110588: $as_echo "no" >&6; }
110589: fi
110590:
110591:
110592: fi
110593: if test -z "$ac_cv_prog_STRIP"; then
110594: ac_ct_STRIP=$STRIP
110595: # Extract the first word of "strip", so it can be a program name with args.
110596: set dummy strip; ac_word=$2
110597: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
110598: $as_echo_n "checking for $ac_word... " >&6; }
110599: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
110600: $as_echo_n "(cached) " >&6
110601: else
110602: if test -n "$ac_ct_STRIP"; then
110603: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
110604: else
110605: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110606: for as_dir in $PATH
110607: do
110608: IFS=$as_save_IFS
110609: test -z "$as_dir" && as_dir=.
110610: for ac_exec_ext in '' $ac_executable_extensions; do
110611: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
110612: ac_cv_prog_ac_ct_STRIP="strip"
110613: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
110614: break 2
110615: fi
110616: done
110617: done
110618: IFS=$as_save_IFS
110619:
110620: fi
110621: fi
110622: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
110623: if test -n "$ac_ct_STRIP"; then
110624: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
110625: $as_echo "$ac_ct_STRIP" >&6; }
110626: else
110627: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
110628: $as_echo "no" >&6; }
110629: fi
110630:
110631: if test "x$ac_ct_STRIP" = x; then
110632: STRIP=":"
110633: else
110634: case $cross_compiling:$ac_tool_warned in
110635: yes:)
110636: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
110637: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
110638: ac_tool_warned=yes ;;
110639: esac
110640: STRIP=$ac_ct_STRIP
110641: fi
110642: else
110643: STRIP="$ac_cv_prog_STRIP"
110644: fi
110645:
110646:
110647: old_CC="$CC"
110648: old_CFLAGS="$CFLAGS"
110649:
110650: # Set sane defaults for various variables
110651: test -z "$AR" && AR=ar
110652: test -z "$AR_FLAGS" && AR_FLAGS=cru
110653: test -z "$AS" && AS=as
110654: test -z "$CC" && CC=cc
110655: test -z "$LTCC" && LTCC=$CC
110656: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
110657: test -z "$DLLTOOL" && DLLTOOL=dlltool
110658: test -z "$LD" && LD=ld
110659: test -z "$LN_S" && LN_S="ln -s"
110660: test -z "$MAGIC_CMD" && MAGIC_CMD=file
110661: test -z "$NM" && NM=nm
110662: test -z "$SED" && SED=sed
110663: test -z "$OBJDUMP" && OBJDUMP=objdump
110664: test -z "$RANLIB" && RANLIB=:
110665: test -z "$STRIP" && STRIP=:
110666: test -z "$ac_objext" && ac_objext=o
110667:
110668: # Determine commands to create old-style static archives.
110669: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
110670: old_postinstall_cmds='chmod 644 $oldlib'
110671: old_postuninstall_cmds=
110672:
110673: if test -n "$RANLIB"; then
110674: case $host_os in
110675: openbsd*)
110676: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
110677: ;;
110678: *)
110679: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
110680: ;;
110681: esac
110682: old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
110683: fi
110684:
110685: for cc_temp in $compiler""; do
110686: case $cc_temp in
110687: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
110688: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
110689: \-*) ;;
110690: *) break;;
110691: esac
110692: done
110693: cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
110694:
110695:
110696: # Only perform the check for file, if the check method requires it
110697: case $deplibs_check_method in
110698: file_magic*)
110699: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
110700: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
110701: $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
110702: if ${lt_cv_path_MAGIC_CMD+:} false; then :
110703: $as_echo_n "(cached) " >&6
110704: else
110705: case $MAGIC_CMD in
110706: [\\/*] | ?:[\\/]*)
110707: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
110708: ;;
110709: *)
110710: lt_save_MAGIC_CMD="$MAGIC_CMD"
110711: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
110712: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
110713: for ac_dir in $ac_dummy; do
110714: IFS="$lt_save_ifs"
110715: test -z "$ac_dir" && ac_dir=.
110716: if test -f $ac_dir/${ac_tool_prefix}file; then
110717: lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
110718: if test -n "$file_magic_test_file"; then
110719: case $deplibs_check_method in
110720: "file_magic "*)
110721: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
110722: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
110723: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
110724: $EGREP "$file_magic_regex" > /dev/null; then
110725: :
110726: else
110727: cat <<EOF 1>&2
110728:
110729: *** Warning: the command libtool uses to detect shared libraries,
110730: *** $file_magic_cmd, produces output that libtool cannot recognize.
110731: *** The result is that libtool may fail to recognize shared libraries
110732: *** as such. This will affect the creation of libtool libraries that
110733: *** depend on shared libraries, but programs linked with such libtool
110734: *** libraries will work regardless of this problem. Nevertheless, you
110735: *** may want to report the problem to your system manager and/or to
110736: *** bug-libtool@gnu.org
110737:
110738: EOF
110739: fi ;;
110740: esac
110741: fi
110742: break
110743: fi
110744: done
110745: IFS="$lt_save_ifs"
110746: MAGIC_CMD="$lt_save_MAGIC_CMD"
110747: ;;
110748: esac
110749: fi
110750:
110751: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
110752: if test -n "$MAGIC_CMD"; then
110753: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
110754: $as_echo "$MAGIC_CMD" >&6; }
110755: else
110756: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
110757: $as_echo "no" >&6; }
110758: fi
110759:
110760: if test -z "$lt_cv_path_MAGIC_CMD"; then
110761: if test -n "$ac_tool_prefix"; then
110762: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
110763: $as_echo_n "checking for file... " >&6; }
110764: if ${lt_cv_path_MAGIC_CMD+:} false; then :
110765: $as_echo_n "(cached) " >&6
110766: else
110767: case $MAGIC_CMD in
110768: [\\/*] | ?:[\\/]*)
110769: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
110770: ;;
110771: *)
110772: lt_save_MAGIC_CMD="$MAGIC_CMD"
110773: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
110774: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
110775: for ac_dir in $ac_dummy; do
110776: IFS="$lt_save_ifs"
110777: test -z "$ac_dir" && ac_dir=.
110778: if test -f $ac_dir/file; then
110779: lt_cv_path_MAGIC_CMD="$ac_dir/file"
110780: if test -n "$file_magic_test_file"; then
110781: case $deplibs_check_method in
110782: "file_magic "*)
110783: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
110784: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
110785: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
110786: $EGREP "$file_magic_regex" > /dev/null; then
110787: :
110788: else
110789: cat <<EOF 1>&2
110790:
110791: *** Warning: the command libtool uses to detect shared libraries,
110792: *** $file_magic_cmd, produces output that libtool cannot recognize.
110793: *** The result is that libtool may fail to recognize shared libraries
110794: *** as such. This will affect the creation of libtool libraries that
110795: *** depend on shared libraries, but programs linked with such libtool
110796: *** libraries will work regardless of this problem. Nevertheless, you
110797: *** may want to report the problem to your system manager and/or to
110798: *** bug-libtool@gnu.org
110799:
110800: EOF
110801: fi ;;
110802: esac
110803: fi
110804: break
110805: fi
110806: done
110807: IFS="$lt_save_ifs"
110808: MAGIC_CMD="$lt_save_MAGIC_CMD"
110809: ;;
110810: esac
110811: fi
110812:
110813: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
110814: if test -n "$MAGIC_CMD"; then
110815: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
110816: $as_echo "$MAGIC_CMD" >&6; }
110817: else
110818: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
110819: $as_echo "no" >&6; }
110820: fi
110821:
110822: else
110823: MAGIC_CMD=:
110824: fi
110825: fi
110826:
110827: fi
110828: ;;
110829: esac
110830:
110831:
110832: case $host_os in
110833: rhapsody* | darwin*)
110834: if test -n "$ac_tool_prefix"; then
110835: # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
110836: set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
110837: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
110838: $as_echo_n "checking for $ac_word... " >&6; }
110839: if ${ac_cv_prog_DSYMUTIL+:} false; then :
110840: $as_echo_n "(cached) " >&6
110841: else
110842: if test -n "$DSYMUTIL"; then
110843: ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
110844: else
110845: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110846: for as_dir in $PATH
110847: do
110848: IFS=$as_save_IFS
110849: test -z "$as_dir" && as_dir=.
110850: for ac_exec_ext in '' $ac_executable_extensions; do
110851: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
110852: ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
110853: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
110854: break 2
110855: fi
110856: done
110857: done
110858: IFS=$as_save_IFS
110859:
110860: fi
110861: fi
110862: DSYMUTIL=$ac_cv_prog_DSYMUTIL
110863: if test -n "$DSYMUTIL"; then
110864: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
110865: $as_echo "$DSYMUTIL" >&6; }
110866: else
110867: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
110868: $as_echo "no" >&6; }
110869: fi
110870:
110871:
110872: fi
110873: if test -z "$ac_cv_prog_DSYMUTIL"; then
110874: ac_ct_DSYMUTIL=$DSYMUTIL
110875: # Extract the first word of "dsymutil", so it can be a program name with args.
110876: set dummy dsymutil; ac_word=$2
110877: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
110878: $as_echo_n "checking for $ac_word... " >&6; }
110879: if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
110880: $as_echo_n "(cached) " >&6
110881: else
110882: if test -n "$ac_ct_DSYMUTIL"; then
110883: ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
110884: else
110885: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110886: for as_dir in $PATH
110887: do
110888: IFS=$as_save_IFS
110889: test -z "$as_dir" && as_dir=.
110890: for ac_exec_ext in '' $ac_executable_extensions; do
110891: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
110892: ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
110893: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
110894: break 2
110895: fi
110896: done
110897: done
110898: IFS=$as_save_IFS
110899:
110900: fi
110901: fi
110902: ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
110903: if test -n "$ac_ct_DSYMUTIL"; then
110904: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
110905: $as_echo "$ac_ct_DSYMUTIL" >&6; }
110906: else
110907: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
110908: $as_echo "no" >&6; }
110909: fi
110910:
110911: if test "x$ac_ct_DSYMUTIL" = x; then
110912: DSYMUTIL=":"
110913: else
110914: case $cross_compiling:$ac_tool_warned in
110915: yes:)
110916: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
110917: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
110918: ac_tool_warned=yes ;;
110919: esac
110920: DSYMUTIL=$ac_ct_DSYMUTIL
110921: fi
110922: else
110923: DSYMUTIL="$ac_cv_prog_DSYMUTIL"
110924: fi
110925:
110926: if test -n "$ac_tool_prefix"; then
110927: # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
110928: set dummy ${ac_tool_prefix}nmedit; ac_word=$2
110929: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
110930: $as_echo_n "checking for $ac_word... " >&6; }
110931: if ${ac_cv_prog_NMEDIT+:} false; then :
110932: $as_echo_n "(cached) " >&6
110933: else
110934: if test -n "$NMEDIT"; then
110935: ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
110936: else
110937: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110938: for as_dir in $PATH
110939: do
110940: IFS=$as_save_IFS
110941: test -z "$as_dir" && as_dir=.
110942: for ac_exec_ext in '' $ac_executable_extensions; do
110943: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
110944: ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
110945: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
110946: break 2
110947: fi
110948: done
110949: done
110950: IFS=$as_save_IFS
110951:
110952: fi
110953: fi
110954: NMEDIT=$ac_cv_prog_NMEDIT
110955: if test -n "$NMEDIT"; then
110956: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
110957: $as_echo "$NMEDIT" >&6; }
110958: else
110959: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
110960: $as_echo "no" >&6; }
110961: fi
110962:
110963:
110964: fi
110965: if test -z "$ac_cv_prog_NMEDIT"; then
110966: ac_ct_NMEDIT=$NMEDIT
110967: # Extract the first word of "nmedit", so it can be a program name with args.
110968: set dummy nmedit; ac_word=$2
110969: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
110970: $as_echo_n "checking for $ac_word... " >&6; }
110971: if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
110972: $as_echo_n "(cached) " >&6
110973: else
110974: if test -n "$ac_ct_NMEDIT"; then
110975: ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
110976: else
110977: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110978: for as_dir in $PATH
110979: do
110980: IFS=$as_save_IFS
110981: test -z "$as_dir" && as_dir=.
110982: for ac_exec_ext in '' $ac_executable_extensions; do
110983: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
110984: ac_cv_prog_ac_ct_NMEDIT="nmedit"
110985: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
110986: break 2
110987: fi
110988: done
110989: done
110990: IFS=$as_save_IFS
110991:
110992: fi
110993: fi
110994: ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
110995: if test -n "$ac_ct_NMEDIT"; then
110996: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
110997: $as_echo "$ac_ct_NMEDIT" >&6; }
110998: else
110999: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
111000: $as_echo "no" >&6; }
111001: fi
111002:
111003: if test "x$ac_ct_NMEDIT" = x; then
111004: NMEDIT=":"
111005: else
111006: case $cross_compiling:$ac_tool_warned in
111007: yes:)
111008: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
111009: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
111010: ac_tool_warned=yes ;;
111011: esac
111012: NMEDIT=$ac_ct_NMEDIT
111013: fi
111014: else
111015: NMEDIT="$ac_cv_prog_NMEDIT"
111016: fi
111017:
111018:
111019: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
111020: $as_echo_n "checking for -single_module linker flag... " >&6; }
111021: if ${lt_cv_apple_cc_single_mod+:} false; then :
111022: $as_echo_n "(cached) " >&6
111023: else
111024: lt_cv_apple_cc_single_mod=no
111025: if test -z "${LT_MULTI_MODULE}"; then
111026: # By default we will add the -single_module flag. You can override
111027: # by either setting the environment variable LT_MULTI_MODULE
111028: # non-empty at configure time, or by adding -multi_module to the
111029: # link flags.
111030: echo "int foo(void){return 1;}" > conftest.c
111031: $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
111032: -dynamiclib ${wl}-single_module conftest.c
111033: if test -f libconftest.dylib; then
111034: lt_cv_apple_cc_single_mod=yes
111035: rm -rf libconftest.dylib*
111036: fi
111037: rm conftest.c
111038: fi
111039: fi
111040: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
111041: $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
111042: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
111043: $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
111044: if ${lt_cv_ld_exported_symbols_list+:} false; then :
111045: $as_echo_n "(cached) " >&6
111046: else
111047: lt_cv_ld_exported_symbols_list=no
111048: save_LDFLAGS=$LDFLAGS
111049: echo "_main" > conftest.sym
111050: LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
111051:
111052: cat > conftest.$ac_ext <<EOF
111053: #line 111053 "configure"
111054: #include "confdefs.h"
111055: int main() {
111056: ; return 0; }
111057: EOF
111058: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
111059: (eval $ac_link) 2>&5
111060: ac_status=$?
111061: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
111062: test $ac_status = 0; } && test -s conftest${ac_exeext}; then
111063: lt_cv_ld_exported_symbols_list=yes
111064: rm -rf conftest*
111065: else
111066: echo "configure: failed program was:" >&5
111067: cat conftest.$ac_ext >&6
111068: lt_cv_ld_exported_symbols_list=no
111069: rm -rf conftest*
111070: fi
111071: rm -f conftest*
111072: LDFLAGS="$save_LDFLAGS"
111073:
111074: fi
111075: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
111076: $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
111077: case $host_os in
111078: rhapsody* | darwin1.[0123])
111079: _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
111080: darwin1.*)
111081: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
111082: darwin*)
111083: # if running on 10.5 or later, the deployment target defaults
111084: # to the OS version, if on x86, and 10.4, the deployment
111085: # target defaults to 10.4. Don't you love it?
111086: case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
111087: 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
111088: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
111089: 10.[012]*)
111090: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
111091: 10.*)
111092: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
111093: esac
111094: ;;
111095: esac
111096: if test "$lt_cv_apple_cc_single_mod" = "yes"; then
111097: _lt_dar_single_mod='$single_module'
111098: fi
111099: if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
111100: _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
111101: else
111102: _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
111103: fi
111104: if test "$DSYMUTIL" != ":"; then
111105: _lt_dsymutil="~$DSYMUTIL \$lib || :"
111106: else
111107: _lt_dsymutil=
111108: fi
111109: ;;
111110: esac
111111:
111112:
111113: enable_dlopen=no
111114: enable_win32_dll=no
111115:
111116: # Check whether --enable-libtool-lock was given.
111117: if test "${enable_libtool_lock+set}" = set; then :
111118: enableval=$enable_libtool_lock;
111119: fi
111120:
111121: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
111122:
111123:
111124: # Check whether --with-pic was given.
111125: if test "${with_pic+set}" = set; then :
111126: withval=$with_pic; pic_mode="$withval"
111127: else
111128: pic_mode=default
111129: fi
111130:
111131: test -z "$pic_mode" && pic_mode=default
111132:
111133: # Use C for the default configuration in the libtool script
111134: tagname=
111135: lt_save_CC="$CC"
111136:
111137: ac_ext=c
111138: ac_cpp='$CPP $CPPFLAGS'
111139: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
111140: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
111141: ac_compiler_gnu=$ac_cv_c_compiler_gnu
111142:
111143:
111144: # Source file extension for C test sources.
111145: ac_ext=c
111146:
111147: # Object file extension for compiled C test sources.
111148: objext=o
111149: objext=$objext
111150:
111151: # Code to be used in simple compile tests
111152: lt_simple_compile_test_code="int some_variable = 0;"
111153:
111154: # Code to be used in simple link tests
111155: lt_simple_link_test_code='int main(){return(0);}'
111156:
111157:
111158: # If no C compiler was specified, use CC.
111159: LTCC=${LTCC-"$CC"}
111160:
111161: # If no C compiler flags were specified, use CFLAGS.
111162: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
111163:
111164: # Allow CC to be a program name with arguments.
111165: compiler=$CC
111166:
111167:
111168: # save warnings/boilerplate of simple test code
111169: ac_outfile=conftest.$ac_objext
111170: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
111171: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
111172: _lt_compiler_boilerplate=`cat conftest.err`
111173: $rm conftest*
111174:
111175: ac_outfile=conftest.$ac_objext
111176: echo "$lt_simple_link_test_code" >conftest.$ac_ext
111177: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
111178: _lt_linker_boilerplate=`cat conftest.err`
111179: $rm -r conftest*
111180:
111181:
111182: ## CAVEAT EMPTOR:
111183: ## There is no encapsulation within the following macros, do not change
111184: ## the running order or otherwise move them around unless you know exactly
111185: ## what you are doing...
111186:
111187: lt_prog_compiler_no_builtin_flag=
111188:
111189: if test "$GCC" = yes; then
111190: lt_prog_compiler_no_builtin_flag=' -fno-builtin'
111191:
111192:
111193: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
111194: $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
111195: if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
111196: $as_echo_n "(cached) " >&6
111197: else
111198: lt_cv_prog_compiler_rtti_exceptions=no
111199: ac_outfile=conftest.$ac_objext
111200: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
111201: lt_compiler_flag="-fno-rtti -fno-exceptions"
111202: # Insert the option either (1) after the last *FLAGS variable, or
111203: # (2) before a word containing "conftest.", or (3) at the end.
111204: # Note that $ac_compile itself does not contain backslashes and begins
111205: # with a dollar sign (not a hyphen), so the echo should work correctly.
111206: # The option is referenced via a variable to avoid confusing sed.
111207: lt_compile=`echo "$ac_compile" | $SED \
111208: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
111209: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
111210: -e 's:$: $lt_compiler_flag:'`
111211: (eval echo "\"configure:111211: $lt_compile\"" >&5)
111212: (eval "$lt_compile" 2>conftest.err)
111213: ac_status=$?
111214: cat conftest.err >&5
111215: echo "configure:111215: \$? = $ac_status" >&5
111216: if (exit $ac_status) && test -s "$ac_outfile"; then
111217: # The compiler can only warn and ignore the option if not recognized
111218: # So say no if there are warnings other than the usual output.
111219: $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
111220: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
111221: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
111222: lt_cv_prog_compiler_rtti_exceptions=yes
111223: fi
111224: fi
111225: $rm conftest*
111226:
111227: fi
111228: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
111229: $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
111230:
111231: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
111232: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
111233: else
111234: :
111235: fi
111236:
111237: fi
111238:
111239: lt_prog_compiler_wl=
111240: lt_prog_compiler_pic=
111241: lt_prog_compiler_static=
111242:
111243: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
111244: $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
111245:
111246: if test "$GCC" = yes; then
111247: lt_prog_compiler_wl='-Wl,'
111248: lt_prog_compiler_static='-static'
111249:
111250: case $host_os in
111251: aix*)
111252: # All AIX code is PIC.
111253: if test "$host_cpu" = ia64; then
111254: # AIX 5 now supports IA64 processor
111255: lt_prog_compiler_static='-Bstatic'
111256: fi
111257: ;;
111258:
111259: amigaos*)
111260: # FIXME: we need at least 68020 code to build shared libraries, but
111261: # adding the `-m68020' flag to GCC prevents building anything better,
111262: # like `-m68040'.
111263: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
111264: ;;
111265:
111266: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
111267: # PIC is the default for these OSes.
111268: ;;
111269:
111270: mingw* | cygwin* | pw32* | os2*)
111271: # This hack is so that the source file can tell whether it is being
111272: # built for inclusion in a dll (and should export symbols for example).
111273: # Although the cygwin gcc ignores -fPIC, still need this for old-style
111274: # (--disable-auto-import) libraries
111275: lt_prog_compiler_pic='-DDLL_EXPORT'
111276: ;;
111277:
111278: darwin* | rhapsody*)
111279: # PIC is the default on this platform
111280: # Common symbols not allowed in MH_DYLIB files
111281: lt_prog_compiler_pic='-fno-common'
111282: ;;
111283:
111284: interix[3-9]*)
111285: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
111286: # Instead, we relocate shared libraries at runtime.
111287: ;;
111288:
111289: msdosdjgpp*)
111290: # Just because we use GCC doesn't mean we suddenly get shared libraries
111291: # on systems that don't support them.
111292: lt_prog_compiler_can_build_shared=no
111293: enable_shared=no
111294: ;;
111295:
111296: sysv4*MP*)
111297: if test -d /usr/nec; then
111298: lt_prog_compiler_pic=-Kconform_pic
111299: fi
111300: ;;
111301:
111302: hpux*)
111303: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
111304: # not for PA HP-UX.
111305: case $host_cpu in
111306: hppa*64*|ia64*)
111307: # +Z the default
111308: ;;
111309: *)
111310: lt_prog_compiler_pic='-fPIC'
111311: ;;
111312: esac
111313: ;;
111314:
111315: *)
111316: lt_prog_compiler_pic='-fPIC'
111317: ;;
111318: esac
111319: else
111320: # PORTME Check for flag to pass linker flags through the system compiler.
111321: case $host_os in
111322: aix*)
111323: lt_prog_compiler_wl='-Wl,'
111324: if test "$host_cpu" = ia64; then
111325: # AIX 5 now supports IA64 processor
111326: lt_prog_compiler_static='-Bstatic'
111327: else
111328: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
111329: fi
111330: ;;
111331: darwin*)
111332: # PIC is the default on this platform
111333: # Common symbols not allowed in MH_DYLIB files
111334: case $cc_basename in
111335: xlc*)
111336: lt_prog_compiler_pic='-qnocommon'
111337: lt_prog_compiler_wl='-Wl,'
111338: ;;
111339: esac
111340: ;;
111341:
111342: mingw* | cygwin* | pw32* | os2*)
111343: # This hack is so that the source file can tell whether it is being
111344: # built for inclusion in a dll (and should export symbols for example).
111345: lt_prog_compiler_pic='-DDLL_EXPORT'
111346: ;;
111347:
111348: hpux9* | hpux10* | hpux11*)
111349: lt_prog_compiler_wl='-Wl,'
111350: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
111351: # not for PA HP-UX.
111352: case $host_cpu in
111353: hppa*64*|ia64*)
111354: # +Z the default
111355: ;;
111356: *)
111357: lt_prog_compiler_pic='+Z'
111358: ;;
111359: esac
111360: # Is there a better lt_prog_compiler_static that works with the bundled CC?
111361: lt_prog_compiler_static='${wl}-a ${wl}archive'
111362: ;;
111363:
111364: irix5* | irix6* | nonstopux*)
111365: lt_prog_compiler_wl='-Wl,'
111366: # PIC (with -KPIC) is the default.
111367: lt_prog_compiler_static='-non_shared'
111368: ;;
111369:
111370: newsos6)
111371: lt_prog_compiler_pic='-KPIC'
111372: lt_prog_compiler_static='-Bstatic'
111373: ;;
111374:
111375: linux* | k*bsd*-gnu)
111376: case $cc_basename in
111377: # old Intel for x86_64 which still supported -KPIC.
111378: ecc*)
111379: lt_prog_compiler_wl='-Wl,'
111380: lt_prog_compiler_pic='-KPIC'
111381: lt_prog_compiler_static='-static'
111382: ;;
111383: # icc used to be incompatible with GCC.
111384: # ICC 10 doesn't accept -KPIC any more.
111385: icc*)
111386: lt_prog_compiler_wl='-Wl,'
111387: lt_prog_compiler_pic='-fPIC'
111388: lt_prog_compiler_static='-static'
111389: ;;
111390: pgcc* | pgf77* | pgf90* | pgf95*)
111391: # Portland Group compilers (*not* the Pentium gcc compiler,
111392: # which looks to be a dead project)
111393: lt_prog_compiler_wl='-Wl,'
111394: lt_prog_compiler_pic='-fpic'
111395: lt_prog_compiler_static='-Bstatic'
111396: ;;
111397: ccc*)
111398: lt_prog_compiler_wl='-Wl,'
111399: # All Alpha code is PIC.
111400: lt_prog_compiler_static='-non_shared'
111401: ;;
111402: *)
111403: case `$CC -V 2>&1 | sed 5q` in
111404: *Sun\ C*)
111405: # Sun C 5.9
111406: lt_prog_compiler_pic='-KPIC'
111407: lt_prog_compiler_static='-Bstatic'
111408: lt_prog_compiler_wl='-Wl,'
111409: ;;
111410: *Sun\ F*)
111411: # Sun Fortran 8.3 passes all unrecognized flags to the linker
111412: lt_prog_compiler_pic='-KPIC'
111413: lt_prog_compiler_static='-Bstatic'
111414: lt_prog_compiler_wl=''
111415: ;;
111416: esac
111417: ;;
111418: esac
111419: ;;
111420:
111421: osf3* | osf4* | osf5*)
111422: lt_prog_compiler_wl='-Wl,'
111423: # All OSF/1 code is PIC.
111424: lt_prog_compiler_static='-non_shared'
111425: ;;
111426:
111427: rdos*)
111428: lt_prog_compiler_static='-non_shared'
111429: ;;
111430:
111431: solaris*)
111432: lt_prog_compiler_pic='-KPIC'
111433: lt_prog_compiler_static='-Bstatic'
111434: case $cc_basename in
111435: f77* | f90* | f95*)
111436: lt_prog_compiler_wl='-Qoption ld ';;
111437: *)
111438: lt_prog_compiler_wl='-Wl,';;
111439: esac
111440: ;;
111441:
111442: sunos4*)
111443: lt_prog_compiler_wl='-Qoption ld '
111444: lt_prog_compiler_pic='-PIC'
111445: lt_prog_compiler_static='-Bstatic'
111446: ;;
111447:
111448: sysv4 | sysv4.2uw2* | sysv4.3*)
111449: lt_prog_compiler_wl='-Wl,'
111450: lt_prog_compiler_pic='-KPIC'
111451: lt_prog_compiler_static='-Bstatic'
111452: ;;
111453:
111454: sysv4*MP*)
111455: if test -d /usr/nec ;then
111456: lt_prog_compiler_pic='-Kconform_pic'
111457: lt_prog_compiler_static='-Bstatic'
111458: fi
111459: ;;
111460:
111461: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
111462: lt_prog_compiler_wl='-Wl,'
111463: lt_prog_compiler_pic='-KPIC'
111464: lt_prog_compiler_static='-Bstatic'
111465: ;;
111466:
111467: unicos*)
111468: lt_prog_compiler_wl='-Wl,'
111469: lt_prog_compiler_can_build_shared=no
111470: ;;
111471:
111472: uts4*)
111473: lt_prog_compiler_pic='-pic'
111474: lt_prog_compiler_static='-Bstatic'
111475: ;;
111476:
111477: *)
111478: lt_prog_compiler_can_build_shared=no
111479: ;;
111480: esac
111481: fi
111482:
111483: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
111484: $as_echo "$lt_prog_compiler_pic" >&6; }
111485:
111486: #
111487: # Check to make sure the PIC flag actually works.
111488: #
111489: if test -n "$lt_prog_compiler_pic"; then
111490:
111491: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
111492: $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
111493: if ${lt_cv_prog_compiler_pic_works+:} false; then :
111494: $as_echo_n "(cached) " >&6
111495: else
111496: lt_cv_prog_compiler_pic_works=no
111497: ac_outfile=conftest.$ac_objext
111498: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
111499: lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
111500: # Insert the option either (1) after the last *FLAGS variable, or
111501: # (2) before a word containing "conftest.", or (3) at the end.
111502: # Note that $ac_compile itself does not contain backslashes and begins
111503: # with a dollar sign (not a hyphen), so the echo should work correctly.
111504: # The option is referenced via a variable to avoid confusing sed.
111505: lt_compile=`echo "$ac_compile" | $SED \
111506: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
111507: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
111508: -e 's:$: $lt_compiler_flag:'`
111509: (eval echo "\"configure:111509: $lt_compile\"" >&5)
111510: (eval "$lt_compile" 2>conftest.err)
111511: ac_status=$?
111512: cat conftest.err >&5
111513: echo "configure:111513: \$? = $ac_status" >&5
111514: if (exit $ac_status) && test -s "$ac_outfile"; then
111515: # The compiler can only warn and ignore the option if not recognized
111516: # So say no if there are warnings other than the usual output.
111517: $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
111518: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
111519: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
111520: lt_cv_prog_compiler_pic_works=yes
111521: fi
111522: fi
111523: $rm conftest*
111524:
111525: fi
111526: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
111527: $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
111528:
111529: if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
111530: case $lt_prog_compiler_pic in
111531: "" | " "*) ;;
111532: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
111533: esac
111534: else
111535: lt_prog_compiler_pic=
111536: lt_prog_compiler_can_build_shared=no
111537: fi
111538:
111539: fi
111540: case $host_os in
111541: # For platforms which do not support PIC, -DPIC is meaningless:
111542: *djgpp*)
111543: lt_prog_compiler_pic=
111544: ;;
111545: *)
111546: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
111547: ;;
111548: esac
111549:
111550: #
111551: # Check to make sure the static flag actually works.
111552: #
111553: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
111554: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
111555: $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
111556: if ${lt_cv_prog_compiler_static_works+:} false; then :
111557: $as_echo_n "(cached) " >&6
111558: else
111559: lt_cv_prog_compiler_static_works=no
111560: save_LDFLAGS="$LDFLAGS"
111561: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
111562: echo "$lt_simple_link_test_code" > conftest.$ac_ext
111563: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
111564: # The linker can only warn and ignore the option if not recognized
111565: # So say no if there are warnings
111566: if test -s conftest.err; then
111567: # Append any errors to the config.log.
111568: cat conftest.err 1>&5
111569: $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
111570: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
111571: if diff conftest.exp conftest.er2 >/dev/null; then
111572: lt_cv_prog_compiler_static_works=yes
111573: fi
111574: else
111575: lt_cv_prog_compiler_static_works=yes
111576: fi
111577: fi
111578: $rm -r conftest*
111579: LDFLAGS="$save_LDFLAGS"
111580:
111581: fi
111582: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
111583: $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
111584:
111585: if test x"$lt_cv_prog_compiler_static_works" = xyes; then
111586: :
111587: else
111588: lt_prog_compiler_static=
111589: fi
111590:
111591:
111592: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
111593: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
111594: if ${lt_cv_prog_compiler_c_o+:} false; then :
111595: $as_echo_n "(cached) " >&6
111596: else
111597: lt_cv_prog_compiler_c_o=no
111598: $rm -r conftest 2>/dev/null
111599: mkdir conftest
111600: cd conftest
111601: mkdir out
111602: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
111603:
111604: lt_compiler_flag="-o out/conftest2.$ac_objext"
111605: # Insert the option either (1) after the last *FLAGS variable, or
111606: # (2) before a word containing "conftest.", or (3) at the end.
111607: # Note that $ac_compile itself does not contain backslashes and begins
111608: # with a dollar sign (not a hyphen), so the echo should work correctly.
111609: lt_compile=`echo "$ac_compile" | $SED \
111610: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
111611: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
111612: -e 's:$: $lt_compiler_flag:'`
111613: (eval echo "\"configure:111613: $lt_compile\"" >&5)
111614: (eval "$lt_compile" 2>out/conftest.err)
111615: ac_status=$?
111616: cat out/conftest.err >&5
111617: echo "configure:111617: \$? = $ac_status" >&5
111618: if (exit $ac_status) && test -s out/conftest2.$ac_objext
111619: then
111620: # The compiler can only warn and ignore the option if not recognized
111621: # So say no if there are warnings
111622: $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
111623: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
111624: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
111625: lt_cv_prog_compiler_c_o=yes
111626: fi
111627: fi
111628: chmod u+w . 2>&5
111629: $rm conftest*
111630: # SGI C++ compiler will create directory out/ii_files/ for
111631: # template instantiation
111632: test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
111633: $rm out/* && rmdir out
111634: cd ..
111635: rmdir conftest
111636: $rm conftest*
111637:
111638: fi
111639: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
111640: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
111641:
111642:
111643: hard_links="nottested"
111644: if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
111645: # do not overwrite the value of need_locks provided by the user
111646: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
111647: $as_echo_n "checking if we can lock with hard links... " >&6; }
111648: hard_links=yes
111649: $rm conftest*
111650: ln conftest.a conftest.b 2>/dev/null && hard_links=no
111651: touch conftest.a
111652: ln conftest.a conftest.b 2>&5 || hard_links=no
111653: ln conftest.a conftest.b 2>/dev/null && hard_links=no
111654: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
111655: $as_echo "$hard_links" >&6; }
111656: if test "$hard_links" = no; then
111657: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
111658: $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
111659: need_locks=warn
111660: fi
111661: else
111662: need_locks=no
111663: fi
111664:
111665: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
111666: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
111667:
111668: runpath_var=
111669: allow_undefined_flag=
111670: enable_shared_with_static_runtimes=no
111671: archive_cmds=
111672: archive_expsym_cmds=
111673: old_archive_From_new_cmds=
111674: old_archive_from_expsyms_cmds=
111675: export_dynamic_flag_spec=
111676: whole_archive_flag_spec=
111677: thread_safe_flag_spec=
111678: hardcode_libdir_flag_spec=
111679: hardcode_libdir_flag_spec_ld=
111680: hardcode_libdir_separator=
111681: hardcode_direct=no
111682: hardcode_minus_L=no
111683: hardcode_shlibpath_var=unsupported
111684: link_all_deplibs=unknown
111685: hardcode_automatic=no
111686: module_cmds=
111687: module_expsym_cmds=
111688: always_export_symbols=no
111689: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
111690: # include_expsyms should be a list of space-separated symbols to be *always*
111691: # included in the symbol list
111692: include_expsyms=
111693: # exclude_expsyms can be an extended regexp of symbols to exclude
111694: # it will be wrapped by ` (' and `)$', so one must not match beginning or
111695: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
111696: # as well as any symbol that contains `d'.
111697: exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
111698: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
111699: # platforms (ab)use it in PIC code, but their linkers get confused if
111700: # the symbol is explicitly referenced. Since portable code cannot
111701: # rely on this symbol name, it's probably fine to never include it in
111702: # preloaded symbol tables.
111703: # Exclude shared library initialization/finalization symbols.
111704: extract_expsyms_cmds=
111705: # Just being paranoid about ensuring that cc_basename is set.
111706: for cc_temp in $compiler""; do
111707: case $cc_temp in
111708: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
111709: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
111710: \-*) ;;
111711: *) break;;
111712: esac
111713: done
111714: cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
111715:
111716: case $host_os in
111717: cygwin* | mingw* | pw32*)
111718: # FIXME: the MSVC++ port hasn't been tested in a loooong time
111719: # When not using gcc, we currently assume that we are using
111720: # Microsoft Visual C++.
111721: if test "$GCC" != yes; then
111722: with_gnu_ld=no
111723: fi
111724: ;;
111725: interix*)
111726: # we just hope/assume this is gcc and not c89 (= MSVC++)
111727: with_gnu_ld=yes
111728: ;;
111729: openbsd*)
111730: with_gnu_ld=no
111731: ;;
111732: esac
111733:
111734: ld_shlibs=yes
111735: if test "$with_gnu_ld" = yes; then
111736: # If archive_cmds runs LD, not CC, wlarc should be empty
111737: wlarc='${wl}'
111738:
111739: # Set some defaults for GNU ld with shared library support. These
111740: # are reset later if shared libraries are not supported. Putting them
111741: # here allows them to be overridden if necessary.
111742: runpath_var=LD_RUN_PATH
111743: hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
111744: export_dynamic_flag_spec='${wl}--export-dynamic'
111745: # ancient GNU ld didn't support --whole-archive et. al.
111746: if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
111747: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
111748: else
111749: whole_archive_flag_spec=
111750: fi
111751: supports_anon_versioning=no
111752: case `$LD -v 2>/dev/null` in
111753: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
111754: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
111755: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
111756: *\ 2.11.*) ;; # other 2.11 versions
111757: *) supports_anon_versioning=yes ;;
111758: esac
111759:
111760: # See if GNU ld supports shared libraries.
111761: case $host_os in
111762: aix[3-9]*)
111763: # On AIX/PPC, the GNU linker is very broken
111764: if test "$host_cpu" != ia64; then
111765: ld_shlibs=no
111766: cat <<EOF 1>&2
111767:
111768: *** Warning: the GNU linker, at least up to release 2.9.1, is reported
111769: *** to be unable to reliably create shared libraries on AIX.
111770: *** Therefore, libtool is disabling shared libraries support. If you
111771: *** really care for shared libraries, you may want to modify your PATH
111772: *** so that a non-GNU linker is found, and then restart.
111773:
111774: EOF
111775: fi
111776: ;;
111777:
111778: amigaos*)
111779: 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)'
111780: hardcode_libdir_flag_spec='-L$libdir'
111781: hardcode_minus_L=yes
111782:
111783: # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
111784: # that the semantics of dynamic libraries on AmigaOS, at least up
111785: # to version 4, is to share data among multiple programs linked
111786: # with the same dynamic library. Since this doesn't match the
111787: # behavior of shared libraries on other platforms, we can't use
111788: # them.
111789: ld_shlibs=no
111790: ;;
111791:
111792: beos*)
111793: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
111794: allow_undefined_flag=unsupported
111795: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
111796: # support --undefined. This deserves some investigation. FIXME
111797: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
111798: else
111799: ld_shlibs=no
111800: fi
111801: ;;
111802:
111803: cygwin* | mingw* | pw32*)
111804: # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
111805: # as there is no search path for DLLs.
111806: hardcode_libdir_flag_spec='-L$libdir'
111807: allow_undefined_flag=unsupported
111808: always_export_symbols=no
111809: enable_shared_with_static_runtimes=yes
111810: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
111811:
111812: if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
111813: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
111814: # If the export-symbols file already is a .def file (1st line
111815: # is EXPORTS), use it as is; otherwise, prepend...
111816: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
111817: cp $export_symbols $output_objdir/$soname.def;
111818: else
111819: echo EXPORTS > $output_objdir/$soname.def;
111820: cat $export_symbols >> $output_objdir/$soname.def;
111821: fi~
111822: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
111823: else
111824: ld_shlibs=no
111825: fi
111826: ;;
111827:
111828: interix[3-9]*)
111829: hardcode_direct=no
111830: hardcode_shlibpath_var=no
111831: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
111832: export_dynamic_flag_spec='${wl}-E'
111833: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
111834: # Instead, shared libraries are loaded at an image base (0x10000000 by
111835: # default) and relocated if they conflict, which is a slow very memory
111836: # consuming and fragmenting process. To avoid this, we pick a random,
111837: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
111838: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
111839: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
111840: 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'
111841: ;;
111842:
111843: gnu* | linux* | k*bsd*-gnu)
111844: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
111845: tmp_addflag=
111846: case $cc_basename,$host_cpu in
111847: pgcc*) # Portland Group C compiler
111848: 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'
111849: tmp_addflag=' $pic_flag'
111850: ;;
111851: pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
111852: 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'
111853: tmp_addflag=' $pic_flag -Mnomain' ;;
111854: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
111855: tmp_addflag=' -i_dynamic' ;;
111856: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
111857: tmp_addflag=' -i_dynamic -nofor_main' ;;
111858: ifc* | ifort*) # Intel Fortran compiler
111859: tmp_addflag=' -nofor_main' ;;
111860: esac
111861: case `$CC -V 2>&1 | sed 5q` in
111862: *Sun\ C*) # Sun C 5.9
111863: 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'
111864: tmp_sharedflag='-G' ;;
111865: *Sun\ F*) # Sun Fortran 8.3
111866: tmp_sharedflag='-G' ;;
111867: *)
111868: tmp_sharedflag='-shared' ;;
111869: esac
111870: archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
111871:
111872: if test $supports_anon_versioning = yes; then
111873: archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
111874: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
111875: $echo "local: *; };" >> $output_objdir/$libname.ver~
111876: $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
111877: fi
111878: else
111879: ld_shlibs=no
111880: fi
111881: ;;
111882:
111883: netbsd*)
111884: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
111885: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
111886: wlarc=
111887: else
111888: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
111889: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
111890: fi
111891: ;;
111892:
111893: solaris*)
111894: if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
111895: ld_shlibs=no
111896: cat <<EOF 1>&2
111897:
111898: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
111899: *** create shared libraries on Solaris systems. Therefore, libtool
111900: *** is disabling shared libraries support. We urge you to upgrade GNU
111901: *** binutils to release 2.9.1 or newer. Another option is to modify
111902: *** your PATH or compiler configuration so that the native linker is
111903: *** used, and then restart.
111904:
111905: EOF
111906: elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
111907: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
111908: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
111909: else
111910: ld_shlibs=no
111911: fi
111912: ;;
111913:
111914: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
111915: case `$LD -v 2>&1` in
111916: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
111917: ld_shlibs=no
111918: cat <<_LT_EOF 1>&2
111919:
111920: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
111921: *** reliably create shared libraries on SCO systems. Therefore, libtool
111922: *** is disabling shared libraries support. We urge you to upgrade GNU
111923: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
111924: *** your PATH or compiler configuration so that the native linker is
111925: *** used, and then restart.
111926:
111927: _LT_EOF
111928: ;;
111929: *)
111930: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
111931: hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
111932: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
111933: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
111934: else
111935: ld_shlibs=no
111936: fi
111937: ;;
111938: esac
111939: ;;
111940:
111941: sunos4*)
111942: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
111943: wlarc=
111944: hardcode_direct=yes
111945: hardcode_shlibpath_var=no
111946: ;;
111947:
111948: *)
111949: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
111950: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
111951: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
111952: else
111953: ld_shlibs=no
111954: fi
111955: ;;
111956: esac
111957:
111958: if test "$ld_shlibs" = no; then
111959: runpath_var=
111960: hardcode_libdir_flag_spec=
111961: export_dynamic_flag_spec=
111962: whole_archive_flag_spec=
111963: fi
111964: else
111965: # PORTME fill in a description of your system's linker (not GNU ld)
111966: case $host_os in
111967: aix3*)
111968: allow_undefined_flag=unsupported
111969: always_export_symbols=yes
111970: 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'
111971: # Note: this linker hardcodes the directories in LIBPATH if there
111972: # are no directories specified by -L.
111973: hardcode_minus_L=yes
111974: if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
111975: # Neither direct hardcoding nor static linking is supported with a
111976: # broken collect2.
111977: hardcode_direct=unsupported
111978: fi
111979: ;;
111980:
111981: aix[4-9]*)
111982: if test "$host_cpu" = ia64; then
111983: # On IA64, the linker does run time linking by default, so we don't
111984: # have to do anything special.
111985: aix_use_runtimelinking=no
111986: exp_sym_flag='-Bexport'
111987: no_entry_flag=""
111988: else
111989: # If we're using GNU nm, then we don't want the "-C" option.
111990: # -C means demangle to AIX nm, but means don't demangle with GNU nm
111991: if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
111992: 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'
111993: else
111994: 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'
111995: fi
111996: aix_use_runtimelinking=no
111997:
111998: # Test if we are trying to use run time linking or normal
111999: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
112000: # need to do runtime linking.
112001: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
112002: for ld_flag in $LDFLAGS; do
112003: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
112004: aix_use_runtimelinking=yes
112005: break
112006: fi
112007: done
112008: ;;
112009: esac
112010:
112011: exp_sym_flag='-bexport'
112012: no_entry_flag='-bnoentry'
112013: fi
112014:
112015: # When large executables or shared objects are built, AIX ld can
112016: # have problems creating the table of contents. If linking a library
112017: # or program results in "error TOC overflow" add -mminimal-toc to
112018: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
112019: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
112020:
112021: archive_cmds=''
112022: hardcode_direct=yes
112023: hardcode_libdir_separator=':'
112024: link_all_deplibs=yes
112025:
112026: if test "$GCC" = yes; then
112027: case $host_os in aix4.[012]|aix4.[012].*)
112028: # We only want to do this on AIX 4.2 and lower, the check
112029: # below for broken collect2 doesn't work under 4.3+
112030: collect2name=`${CC} -print-prog-name=collect2`
112031: if test -f "$collect2name" && \
112032: strings "$collect2name" | grep resolve_lib_name >/dev/null
112033: then
112034: # We have reworked collect2
112035: :
112036: else
112037: # We have old collect2
112038: hardcode_direct=unsupported
112039: # It fails to find uninstalled libraries when the uninstalled
112040: # path is not listed in the libpath. Setting hardcode_minus_L
112041: # to unsupported forces relinking
112042: hardcode_minus_L=yes
112043: hardcode_libdir_flag_spec='-L$libdir'
112044: hardcode_libdir_separator=
112045: fi
112046: ;;
112047: esac
112048: shared_flag='-shared'
112049: if test "$aix_use_runtimelinking" = yes; then
112050: shared_flag="$shared_flag "'${wl}-G'
112051: fi
112052: else
112053: # not using gcc
112054: if test "$host_cpu" = ia64; then
112055: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
112056: # chokes on -Wl,-G. The following line is correct:
112057: shared_flag='-G'
112058: else
112059: if test "$aix_use_runtimelinking" = yes; then
112060: shared_flag='${wl}-G'
112061: else
112062: shared_flag='${wl}-bM:SRE'
112063: fi
112064: fi
112065: fi
112066:
112067: # It seems that -bexpall does not export symbols beginning with
112068: # underscore (_), so it is better to generate a list of symbols to export.
112069: always_export_symbols=yes
112070: if test "$aix_use_runtimelinking" = yes; then
112071: # Warning - without using the other runtime loading flags (-brtl),
112072: # -berok will link without error, but may produce a broken library.
112073: allow_undefined_flag='-berok'
112074: # Determine the default libpath from the value encoded in an empty executable.
112075:
112076: cat > conftest.$ac_ext <<EOF
112077: #line 112077 "configure"
112078: #include "confdefs.h"
112079: int main() {
112080: ; return 0; }
112081: EOF
112082: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
112083: (eval $ac_link) 2>&5
112084: ac_status=$?
112085: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
112086: test $ac_status = 0; } && test -s conftest${ac_exeext}; then
112087:
112088: lt_aix_libpath_sed='
112089: /Import File Strings/,/^$/ {
112090: /^0/ {
112091: s/^0 *\(.*\)$/\1/
112092: p
112093: }
112094: }'
112095: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
112096: # Check for a 64-bit object if we didn't find anything.
112097: if test -z "$aix_libpath"; then
112098: aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
112099: fi
112100: rm -rf conftest*
112101: else
112102: echo "configure: failed program was:" >&5
112103: cat conftest.$ac_ext >&6
112104: fi
112105: rm -f conftest*
112106: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
112107:
112108: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
112109: 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"
112110: else
112111: if test "$host_cpu" = ia64; then
112112: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
112113: allow_undefined_flag="-z nodefs"
112114: 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"
112115: else
112116: # Determine the default libpath from the value encoded in an empty executable.
112117:
112118: cat > conftest.$ac_ext <<EOF
112119: #line 112119 "configure"
112120: #include "confdefs.h"
112121: int main() {
112122: ; return 0; }
112123: EOF
112124: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
112125: (eval $ac_link) 2>&5
112126: ac_status=$?
112127: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
112128: test $ac_status = 0; } && test -s conftest${ac_exeext}; then
112129:
112130: lt_aix_libpath_sed='
112131: /Import File Strings/,/^$/ {
112132: /^0/ {
112133: s/^0 *\(.*\)$/\1/
112134: p
112135: }
112136: }'
112137: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
112138: # Check for a 64-bit object if we didn't find anything.
112139: if test -z "$aix_libpath"; then
112140: aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
112141: fi
112142: rm -rf conftest*
112143: else
112144: echo "configure: failed program was:" >&5
112145: cat conftest.$ac_ext >&6
112146: fi
112147: rm -f conftest*
112148: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
112149:
112150: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
112151: # Warning - without using the other run time loading flags,
112152: # -berok will link without error, but may produce a broken library.
112153: no_undefined_flag=' ${wl}-bernotok'
112154: allow_undefined_flag=' ${wl}-berok'
112155: # Exported symbols can be pulled into shared objects from archives
112156: whole_archive_flag_spec='$convenience'
112157: archive_cmds_need_lc=yes
112158: # This is similar to how AIX traditionally builds its shared libraries.
112159: 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'
112160: fi
112161: fi
112162: ;;
112163:
112164: amigaos*)
112165: 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)'
112166: hardcode_libdir_flag_spec='-L$libdir'
112167: hardcode_minus_L=yes
112168: # see comment about different semantics on the GNU ld section
112169: ld_shlibs=no
112170: ;;
112171:
112172: bsdi[45]*)
112173: export_dynamic_flag_spec=-rdynamic
112174: ;;
112175:
112176: cygwin* | mingw* | pw32*)
112177: # When not using gcc, we currently assume that we are using
112178: # Microsoft Visual C++.
112179: # hardcode_libdir_flag_spec is actually meaningless, as there is
112180: # no search path for DLLs.
112181: hardcode_libdir_flag_spec=' '
112182: allow_undefined_flag=unsupported
112183: # Tell ltmain to make .lib files, not .a files.
112184: libext=lib
112185: # Tell ltmain to make .dll files, not .so files.
112186: shrext_cmds=".dll"
112187: # FIXME: Setting linknames here is a bad hack.
112188: archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
112189: # The linker will automatically build a .lib file if we build a DLL.
112190: old_archive_From_new_cmds='true'
112191: # FIXME: Should let the user specify the lib program.
112192: old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
112193: fix_srcfile_path='`cygpath -w "$srcfile"`'
112194: enable_shared_with_static_runtimes=yes
112195: ;;
112196:
112197: darwin* | rhapsody*)
112198: case $host_os in
112199: rhapsody* | darwin1.[012])
112200: allow_undefined_flag='${wl}-undefined ${wl}suppress'
112201: ;;
112202: *) # Darwin 1.3 on
112203: if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
112204: allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
112205: else
112206: case ${MACOSX_DEPLOYMENT_TARGET} in
112207: 10.[012])
112208: allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
112209: ;;
112210: 10.*)
112211: allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
112212: ;;
112213: esac
112214: fi
112215: ;;
112216: esac
112217: archive_cmds_need_lc=no
112218: hardcode_direct=no
112219: hardcode_automatic=yes
112220: hardcode_shlibpath_var=unsupported
112221: whole_archive_flag_spec=''
112222: link_all_deplibs=yes
112223: if test "$GCC" = yes ; then
112224: output_verbose_link_cmd='echo'
112225: archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
112226: module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
112227: 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}"
112228: 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}"
112229: else
112230: case $cc_basename in
112231: xlc*)
112232: output_verbose_link_cmd='echo'
112233: archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
112234: module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
112235: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
112236: 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}'
112237: 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}'
112238: ;;
112239: *)
112240: ld_shlibs=no
112241: ;;
112242: esac
112243: fi
112244: ;;
112245:
112246: dgux*)
112247: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
112248: hardcode_libdir_flag_spec='-L$libdir'
112249: hardcode_shlibpath_var=no
112250: ;;
112251:
112252: freebsd1.*)
112253: ld_shlibs=no
112254: ;;
112255:
112256: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
112257: # support. Future versions do this automatically, but an explicit c++rt0.o
112258: # does not break anything, and helps significantly (at the cost of a little
112259: # extra space).
112260: freebsd2.2*)
112261: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
112262: hardcode_libdir_flag_spec='-R$libdir'
112263: hardcode_direct=yes
112264: hardcode_shlibpath_var=no
112265: ;;
112266:
112267: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
112268: freebsd2*)
112269: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
112270: hardcode_direct=yes
112271: hardcode_minus_L=yes
112272: hardcode_shlibpath_var=no
112273: ;;
112274:
112275: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
112276: freebsd* | dragonfly*)
112277: archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
112278: hardcode_libdir_flag_spec='-R$libdir'
112279: hardcode_direct=yes
112280: hardcode_shlibpath_var=no
112281: ;;
112282:
112283: hpux9*)
112284: if test "$GCC" = yes; then
112285: 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'
112286: else
112287: 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'
112288: fi
112289: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
112290: hardcode_libdir_separator=:
112291: hardcode_direct=yes
112292:
112293: # hardcode_minus_L: Not really in the search PATH,
112294: # but as the default location of the library.
112295: hardcode_minus_L=yes
112296: export_dynamic_flag_spec='${wl}-E'
112297: ;;
112298:
112299: hpux10*)
112300: if test "$GCC" = yes -a "$with_gnu_ld" = no; then
112301: archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
112302: else
112303: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
112304: fi
112305: if test "$with_gnu_ld" = no; then
112306: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
112307: hardcode_libdir_separator=:
112308:
112309: hardcode_direct=yes
112310: export_dynamic_flag_spec='${wl}-E'
112311:
112312: # hardcode_minus_L: Not really in the search PATH,
112313: # but as the default location of the library.
112314: hardcode_minus_L=yes
112315: fi
112316: ;;
112317:
112318: hpux11*)
112319: if test "$GCC" = yes -a "$with_gnu_ld" = no; then
112320: case $host_cpu in
112321: hppa*64*)
112322: archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
112323: ;;
112324: ia64*)
112325: archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
112326: ;;
112327: *)
112328: archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
112329: ;;
112330: esac
112331: else
112332: case $host_cpu in
112333: hppa*64*)
112334: archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
112335: ;;
112336: ia64*)
112337: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
112338: ;;
112339: *)
112340: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
112341: ;;
112342: esac
112343: fi
112344: if test "$with_gnu_ld" = no; then
112345: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
112346: hardcode_libdir_separator=:
112347:
112348: case $host_cpu in
112349: hppa*64*|ia64*)
112350: hardcode_libdir_flag_spec_ld='+b $libdir'
112351: hardcode_direct=no
112352: hardcode_shlibpath_var=no
112353: ;;
112354: *)
112355: hardcode_direct=yes
112356: export_dynamic_flag_spec='${wl}-E'
112357:
112358: # hardcode_minus_L: Not really in the search PATH,
112359: # but as the default location of the library.
112360: hardcode_minus_L=yes
112361: ;;
112362: esac
112363: fi
112364: ;;
112365:
112366: irix5* | irix6* | nonstopux*)
112367: if test "$GCC" = yes; then
112368: 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'
112369: else
112370: 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'
112371: hardcode_libdir_flag_spec_ld='-rpath $libdir'
112372: fi
112373: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
112374: hardcode_libdir_separator=:
112375: link_all_deplibs=yes
112376: ;;
112377:
112378: netbsd*)
112379: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
112380: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
112381: else
112382: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
112383: fi
112384: hardcode_libdir_flag_spec='-R$libdir'
112385: hardcode_direct=yes
112386: hardcode_shlibpath_var=no
112387: ;;
112388:
112389: newsos6)
112390: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
112391: hardcode_direct=yes
112392: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
112393: hardcode_libdir_separator=:
112394: hardcode_shlibpath_var=no
112395: ;;
112396:
112397: openbsd*)
112398: if test -f /usr/libexec/ld.so; then
112399: hardcode_direct=yes
112400: hardcode_shlibpath_var=no
112401: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
112402: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
112403: archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
112404: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
112405: export_dynamic_flag_spec='${wl}-E'
112406: else
112407: case $host_os in
112408: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
112409: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
112410: hardcode_libdir_flag_spec='-R$libdir'
112411: ;;
112412: *)
112413: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
112414: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
112415: ;;
112416: esac
112417: fi
112418: else
112419: ld_shlibs=no
112420: fi
112421: ;;
112422:
112423: os2*)
112424: hardcode_libdir_flag_spec='-L$libdir'
112425: hardcode_minus_L=yes
112426: allow_undefined_flag=unsupported
112427: 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'
112428: old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
112429: ;;
112430:
112431: osf3*)
112432: if test "$GCC" = yes; then
112433: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
112434: 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'
112435: else
112436: allow_undefined_flag=' -expect_unresolved \*'
112437: 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'
112438: fi
112439: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
112440: hardcode_libdir_separator=:
112441: ;;
112442:
112443: osf4* | osf5*) # as osf3* with the addition of -msym flag
112444: if test "$GCC" = yes; then
112445: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
112446: 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'
112447: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
112448: else
112449: allow_undefined_flag=' -expect_unresolved \*'
112450: 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'
112451: archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
112452: $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'
112453:
112454: # Both c and cxx compiler support -rpath directly
112455: hardcode_libdir_flag_spec='-rpath $libdir'
112456: fi
112457: hardcode_libdir_separator=:
112458: ;;
112459:
112460: solaris*)
112461: no_undefined_flag=' -z text'
112462: if test "$GCC" = yes; then
112463: wlarc='${wl}'
112464: archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
112465: archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
112466: $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
112467: else
112468: wlarc=''
112469: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
112470: archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
112471: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
112472: fi
112473: hardcode_libdir_flag_spec='-R$libdir'
112474: hardcode_shlibpath_var=no
112475: case $host_os in
112476: solaris2.[0-5] | solaris2.[0-5].*) ;;
112477: *)
112478: # The compiler driver will combine and reorder linker options,
112479: # but understands `-z linker_flag'. GCC discards it without `$wl',
112480: # but is careful enough not to reorder.
112481: # Supported since Solaris 2.6 (maybe 2.5.1?)
112482: if test "$GCC" = yes; then
112483: whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
112484: else
112485: whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
112486: fi
112487: ;;
112488: esac
112489: link_all_deplibs=yes
112490: ;;
112491:
112492: sunos4*)
112493: if test "x$host_vendor" = xsequent; then
112494: # Use $CC to link under sequent, because it throws in some extra .o
112495: # files that make .init and .fini sections work.
112496: archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
112497: else
112498: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
112499: fi
112500: hardcode_libdir_flag_spec='-L$libdir'
112501: hardcode_direct=yes
112502: hardcode_minus_L=yes
112503: hardcode_shlibpath_var=no
112504: ;;
112505:
112506: sysv4)
112507: case $host_vendor in
112508: sni)
112509: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
112510: hardcode_direct=yes # is this really true???
112511: ;;
112512: siemens)
112513: ## LD is ld it makes a PLAMLIB
112514: ## CC just makes a GrossModule.
112515: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
112516: reload_cmds='$CC -r -o $output$reload_objs'
112517: hardcode_direct=no
112518: ;;
112519: motorola)
112520: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
112521: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
112522: ;;
112523: esac
112524: runpath_var='LD_RUN_PATH'
112525: hardcode_shlibpath_var=no
112526: ;;
112527:
112528: sysv4.3*)
112529: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
112530: hardcode_shlibpath_var=no
112531: export_dynamic_flag_spec='-Bexport'
112532: ;;
112533:
112534: sysv4*MP*)
112535: if test -d /usr/nec; then
112536: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
112537: hardcode_shlibpath_var=no
112538: runpath_var=LD_RUN_PATH
112539: hardcode_runpath_var=yes
112540: ld_shlibs=yes
112541: fi
112542: ;;
112543:
112544: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
112545: no_undefined_flag='${wl}-z,text'
112546: archive_cmds_need_lc=no
112547: hardcode_shlibpath_var=no
112548: runpath_var='LD_RUN_PATH'
112549:
112550: if test "$GCC" = yes; then
112551: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
112552: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
112553: else
112554: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
112555: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
112556: fi
112557: ;;
112558:
112559: sysv5* | sco3.2v5* | sco5v6*)
112560: # Note: We can NOT use -z defs as we might desire, because we do not
112561: # link with -lc, and that would cause any symbols used from libc to
112562: # always be unresolved, which means just about no library would
112563: # ever link correctly. If we're not using GNU ld we use -z text
112564: # though, which does catch some bad symbols but isn't as heavy-handed
112565: # as -z defs.
112566: no_undefined_flag='${wl}-z,text'
112567: allow_undefined_flag='${wl}-z,nodefs'
112568: archive_cmds_need_lc=no
112569: hardcode_shlibpath_var=no
112570: hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
112571: hardcode_libdir_separator=':'
112572: link_all_deplibs=yes
112573: export_dynamic_flag_spec='${wl}-Bexport'
112574: runpath_var='LD_RUN_PATH'
112575:
112576: if test "$GCC" = yes; then
112577: archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
112578: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
112579: else
112580: archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
112581: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
112582: fi
112583: ;;
112584:
112585: uts4*)
112586: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
112587: hardcode_libdir_flag_spec='-L$libdir'
112588: hardcode_shlibpath_var=no
112589: ;;
112590:
112591: *)
112592: ld_shlibs=no
112593: ;;
112594: esac
112595: fi
112596:
112597: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
112598: $as_echo "$ld_shlibs" >&6; }
112599: test "$ld_shlibs" = no && can_build_shared=no
112600:
112601: #
112602: # Do we need to explicitly link libc?
112603: #
112604: case "x$archive_cmds_need_lc" in
112605: x|xyes)
112606: # Assume -lc should be added
112607: archive_cmds_need_lc=yes
112608:
112609: if test "$enable_shared" = yes && test "$GCC" = yes; then
112610: case $archive_cmds in
112611: *'~'*)
112612: # FIXME: we may have to deal with multi-command sequences.
112613: ;;
112614: '$CC '*)
112615: # Test whether the compiler implicitly links with -lc since on some
112616: # systems, -lgcc has to come before -lc. If gcc already passes -lc
112617: # to ld, don't add -lc before -lgcc.
112618: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
112619: $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
112620: $rm conftest*
112621: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
112622:
112623: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
112624: (eval $ac_compile) 2>&5
112625: ac_status=$?
112626: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
112627: test $ac_status = 0; } 2>conftest.err; then
112628: soname=conftest
112629: lib=conftest
112630: libobjs=conftest.$ac_objext
112631: deplibs=
112632: wl=$lt_prog_compiler_wl
112633: pic_flag=$lt_prog_compiler_pic
112634: compiler_flags=-v
112635: linker_flags=-v
112636: verstring=
112637: output_objdir=.
112638: libname=conftest
112639: lt_save_allow_undefined_flag=$allow_undefined_flag
112640: allow_undefined_flag=
112641: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
112642: (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
112643: ac_status=$?
112644: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
112645: test $ac_status = 0; }
112646: then
112647: archive_cmds_need_lc=no
112648: else
112649: archive_cmds_need_lc=yes
112650: fi
112651: allow_undefined_flag=$lt_save_allow_undefined_flag
112652: else
112653: cat conftest.err 1>&5
112654: fi
112655: $rm conftest*
112656: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
112657: $as_echo "$archive_cmds_need_lc" >&6; }
112658: ;;
112659: esac
112660: fi
112661: ;;
112662: esac
112663:
112664: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
112665: $as_echo_n "checking dynamic linker characteristics... " >&6; }
112666: library_names_spec=
112667: libname_spec='lib$name'
112668: soname_spec=
112669: shrext_cmds=".so"
112670: postinstall_cmds=
112671: postuninstall_cmds=
112672: finish_cmds=
112673: finish_eval=
112674: shlibpath_var=
112675: shlibpath_overrides_runpath=unknown
112676: version_type=none
112677: dynamic_linker="$host_os ld.so"
112678: sys_lib_dlsearch_path_spec="/lib /usr/lib"
112679:
112680: if test "$GCC" = yes; then
112681: case $host_os in
112682: darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
112683: *) lt_awk_arg="/^libraries:/" ;;
112684: esac
112685: lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
112686: if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
112687: # if the path contains ";" then we assume it to be the separator
112688: # otherwise default to the standard path separator (i.e. ":") - it is
112689: # assumed that no part of a normal pathname contains ";" but that should
112690: # okay in the real world where ";" in dirpaths is itself problematic.
112691: lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
112692: else
112693: lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
112694: fi
112695: # Ok, now we have the path, separated by spaces, we can step through it
112696: # and add multilib dir if necessary.
112697: lt_tmp_lt_search_path_spec=
112698: lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
112699: for lt_sys_path in $lt_search_path_spec; do
112700: if test -d "$lt_sys_path/$lt_multi_os_dir"; then
112701: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
112702: else
112703: test -d "$lt_sys_path" && \
112704: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
112705: fi
112706: done
112707: lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
112708: BEGIN {RS=" "; FS="/|\n";} {
112709: lt_foo="";
112710: lt_count=0;
112711: for (lt_i = NF; lt_i > 0; lt_i--) {
112712: if ($lt_i != "" && $lt_i != ".") {
112713: if ($lt_i == "..") {
112714: lt_count++;
112715: } else {
112716: if (lt_count == 0) {
112717: lt_foo="/" $lt_i lt_foo;
112718: } else {
112719: lt_count--;
112720: }
112721: }
112722: }
112723: }
112724: if (lt_foo != "") { lt_freq[lt_foo]++; }
112725: if (lt_freq[lt_foo] == 1) { print lt_foo; }
112726: }'`
112727: sys_lib_search_path_spec=`echo $lt_search_path_spec`
112728: else
112729: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
112730: fi
112731: need_lib_prefix=unknown
112732: hardcode_into_libs=no
112733:
112734: # when you set need_version to no, make sure it does not cause -set_version
112735: # flags to be left without arguments
112736: need_version=unknown
112737:
112738: case $host_os in
112739: aix3*)
112740: version_type=linux
112741: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
112742: shlibpath_var=LIBPATH
112743:
112744: # AIX 3 has no versioning support, so we append a major version to the name.
112745: soname_spec='${libname}${release}${shared_ext}$major'
112746: ;;
112747:
112748: aix[4-9]*)
112749: version_type=linux
112750: need_lib_prefix=no
112751: need_version=no
112752: hardcode_into_libs=yes
112753: if test "$host_cpu" = ia64; then
112754: # AIX 5 supports IA64
112755: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
112756: shlibpath_var=LD_LIBRARY_PATH
112757: else
112758: # With GCC up to 2.95.x, collect2 would create an import file
112759: # for dependence libraries. The import file would start with
112760: # the line `#! .'. This would cause the generated library to
112761: # depend on `.', always an invalid library. This was fixed in
112762: # development snapshots of GCC prior to 3.0.
112763: case $host_os in
112764: aix4 | aix4.[01] | aix4.[01].*)
112765: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
112766: echo ' yes '
112767: echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
112768: :
112769: else
112770: can_build_shared=no
112771: fi
112772: ;;
112773: esac
112774: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
112775: # soname into executable. Probably we can add versioning support to
112776: # collect2, so additional links can be useful in future.
112777: if test "$aix_use_runtimelinking" = yes; then
112778: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
112779: # instead of lib<name>.a to let people know that these are not
112780: # typical AIX shared libraries.
112781: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
112782: else
112783: # We preserve .a as extension for shared libraries through AIX4.2
112784: # and later when we are not doing run time linking.
112785: library_names_spec='${libname}${release}.a $libname.a'
112786: soname_spec='${libname}${release}${shared_ext}$major'
112787: fi
112788: shlibpath_var=LIBPATH
112789: fi
112790: ;;
112791:
112792: amigaos*)
112793: library_names_spec='$libname.ixlibrary $libname.a'
112794: # Create ${libname}_ixlibrary.a entries in /sys/libs.
112795: 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'
112796: ;;
112797:
112798: beos*)
112799: library_names_spec='${libname}${shared_ext}'
112800: dynamic_linker="$host_os ld.so"
112801: shlibpath_var=LIBRARY_PATH
112802: ;;
112803:
112804: bsdi[45]*)
112805: version_type=linux
112806: need_version=no
112807: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
112808: soname_spec='${libname}${release}${shared_ext}$major'
112809: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
112810: shlibpath_var=LD_LIBRARY_PATH
112811: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
112812: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
112813: # the default ld.so.conf also contains /usr/contrib/lib and
112814: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
112815: # libtool to hard-code these into programs
112816: ;;
112817:
112818: cygwin* | mingw* | pw32*)
112819: version_type=windows
112820: shrext_cmds=".dll"
112821: need_version=no
112822: need_lib_prefix=no
112823:
112824: case $GCC,$host_os in
112825: yes,cygwin* | yes,mingw* | yes,pw32*)
112826: library_names_spec='$libname.dll.a'
112827: # DLL is installed to $(libdir)/../bin by postinstall_cmds
112828: postinstall_cmds='base_file=`basename \${file}`~
112829: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
112830: dldir=$destdir/`dirname \$dlpath`~
112831: test -d \$dldir || mkdir -p \$dldir~
112832: $install_prog $dir/$dlname \$dldir/$dlname~
112833: chmod a+x \$dldir/$dlname'
112834: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
112835: dlpath=$dir/\$dldll~
112836: $rm \$dlpath'
112837: shlibpath_overrides_runpath=yes
112838:
112839: case $host_os in
112840: cygwin*)
112841: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
112842: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
112843: sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
112844: ;;
112845: mingw*)
112846: # MinGW DLLs use traditional 'lib' prefix
112847: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
112848: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
112849: if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
112850: # It is most probably a Windows format PATH printed by
112851: # mingw gcc, but we are running on Cygwin. Gcc prints its search
112852: # path with ; separators, and with drive letters. We can handle the
112853: # drive letters (cygwin fileutils understands them), so leave them,
112854: # especially as we might pass files found there to a mingw objdump,
112855: # which wouldn't understand a cygwinified path. Ahh.
112856: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
112857: else
112858: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
112859: fi
112860: ;;
112861: pw32*)
112862: # pw32 DLLs use 'pw' prefix rather than 'lib'
112863: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
112864: ;;
112865: esac
112866: ;;
112867:
112868: *)
112869: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
112870: ;;
112871: esac
112872: dynamic_linker='Win32 ld.exe'
112873: # FIXME: first we should search . and the directory the executable is in
112874: shlibpath_var=PATH
112875: ;;
112876:
112877: darwin* | rhapsody*)
112878: dynamic_linker="$host_os dyld"
112879: version_type=darwin
112880: need_lib_prefix=no
112881: need_version=no
112882: library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
112883: soname_spec='${libname}${release}${major}$shared_ext'
112884: shlibpath_overrides_runpath=yes
112885: shlibpath_var=DYLD_LIBRARY_PATH
112886: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
112887:
112888: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
112889: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
112890: ;;
112891:
112892: dgux*)
112893: version_type=linux
112894: need_lib_prefix=no
112895: need_version=no
112896: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
112897: soname_spec='${libname}${release}${shared_ext}$major'
112898: shlibpath_var=LD_LIBRARY_PATH
112899: ;;
112900:
112901: freebsd1.*)
112902: dynamic_linker=no
112903: ;;
112904:
112905: freebsd* | dragonfly*)
112906: # DragonFly does not have aout. When/if they implement a new
112907: # versioning mechanism, adjust this.
112908: if test -x /usr/bin/objformat; then
112909: objformat=`/usr/bin/objformat`
112910: else
112911: case $host_os in
112912: freebsd[123].*) objformat=aout ;;
112913: *) objformat=elf ;;
112914: esac
112915: fi
112916: version_type=freebsd-$objformat
112917: case $version_type in
112918: freebsd-elf*)
112919: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
112920: need_version=no
112921: need_lib_prefix=no
112922: ;;
112923: freebsd-*)
112924: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
112925: need_version=yes
112926: ;;
112927: esac
112928: shlibpath_var=LD_LIBRARY_PATH
112929: case $host_os in
112930: freebsd2*)
112931: shlibpath_overrides_runpath=yes
112932: ;;
112933: freebsd3.[01]* | freebsdelf3.[01]*)
112934: shlibpath_overrides_runpath=yes
112935: hardcode_into_libs=yes
112936: ;;
112937: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
112938: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
112939: shlibpath_overrides_runpath=no
112940: hardcode_into_libs=yes
112941: ;;
112942: *) # from 4.6 on, and DragonFly
112943: shlibpath_overrides_runpath=yes
112944: hardcode_into_libs=yes
112945: ;;
112946: esac
112947: ;;
112948:
112949: gnu*)
112950: version_type=linux
112951: need_lib_prefix=no
112952: need_version=no
112953: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
112954: soname_spec='${libname}${release}${shared_ext}$major'
112955: shlibpath_var=LD_LIBRARY_PATH
112956: hardcode_into_libs=yes
112957: ;;
112958:
112959: hpux9* | hpux10* | hpux11*)
112960: # Give a soname corresponding to the major version so that dld.sl refuses to
112961: # link against other versions.
112962: version_type=sunos
112963: need_lib_prefix=no
112964: need_version=no
112965: case $host_cpu in
112966: ia64*)
112967: shrext_cmds='.so'
112968: hardcode_into_libs=yes
112969: dynamic_linker="$host_os dld.so"
112970: shlibpath_var=LD_LIBRARY_PATH
112971: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
112972: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
112973: soname_spec='${libname}${release}${shared_ext}$major'
112974: if test "X$HPUX_IA64_MODE" = X32; then
112975: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
112976: else
112977: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
112978: fi
112979: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
112980: ;;
112981: hppa*64*)
112982: shrext_cmds='.sl'
112983: hardcode_into_libs=yes
112984: dynamic_linker="$host_os dld.sl"
112985: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
112986: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
112987: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
112988: soname_spec='${libname}${release}${shared_ext}$major'
112989: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
112990: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
112991: ;;
112992: *)
112993: shrext_cmds='.sl'
112994: dynamic_linker="$host_os dld.sl"
112995: shlibpath_var=SHLIB_PATH
112996: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
112997: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
112998: soname_spec='${libname}${release}${shared_ext}$major'
112999: ;;
113000: esac
113001: # HP-UX runs *really* slowly unless shared libraries are mode 555.
113002: postinstall_cmds='chmod 555 $lib'
113003: ;;
113004:
113005: interix[3-9]*)
113006: version_type=linux
113007: need_lib_prefix=no
113008: need_version=no
113009: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
113010: soname_spec='${libname}${release}${shared_ext}$major'
113011: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
113012: shlibpath_var=LD_LIBRARY_PATH
113013: shlibpath_overrides_runpath=no
113014: hardcode_into_libs=yes
113015: ;;
113016:
113017: irix5* | irix6* | nonstopux*)
113018: case $host_os in
113019: nonstopux*) version_type=nonstopux ;;
113020: *)
113021: if test "$lt_cv_prog_gnu_ld" = yes; then
113022: version_type=linux
113023: else
113024: version_type=irix
113025: fi ;;
113026: esac
113027: need_lib_prefix=no
113028: need_version=no
113029: soname_spec='${libname}${release}${shared_ext}$major'
113030: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
113031: case $host_os in
113032: irix5* | nonstopux*)
113033: libsuff= shlibsuff=
113034: ;;
113035: *)
113036: case $LD in # libtool.m4 will add one of these switches to LD
113037: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
113038: libsuff= shlibsuff= libmagic=32-bit;;
113039: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
113040: libsuff=32 shlibsuff=N32 libmagic=N32;;
113041: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
113042: libsuff=64 shlibsuff=64 libmagic=64-bit;;
113043: *) libsuff= shlibsuff= libmagic=never-match;;
113044: esac
113045: ;;
113046: esac
113047: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
113048: shlibpath_overrides_runpath=no
113049: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
113050: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
113051: hardcode_into_libs=yes
113052: ;;
113053:
113054: # No shared lib support for Linux oldld, aout, or coff.
113055: linux*oldld* | linux*aout* | linux*coff*)
113056: dynamic_linker=no
113057: ;;
113058:
113059: # This must be Linux ELF.
113060: linux* | k*bsd*-gnu)
113061: version_type=linux
113062: need_lib_prefix=no
113063: need_version=no
113064: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
113065: soname_spec='${libname}${release}${shared_ext}$major'
113066: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
113067: shlibpath_var=LD_LIBRARY_PATH
113068: shlibpath_overrides_runpath=no
113069: # This implies no fast_install, which is unacceptable.
113070: # Some rework will be needed to allow for fast_install
113071: # before this can be enabled.
113072: hardcode_into_libs=yes
113073:
113074: # Append ld.so.conf contents to the search path
113075: if test -f /etc/ld.so.conf; then
113076: 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' ' '`
113077: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
113078: fi
113079:
113080: # We used to test for /lib/ld.so.1 and disable shared libraries on
113081: # powerpc, because MkLinux only supported shared libraries with the
113082: # GNU dynamic linker. Since this was broken with cross compilers,
113083: # most powerpc-linux boxes support dynamic linking these days and
113084: # people can always --disable-shared, the test was removed, and we
113085: # assume the GNU/Linux dynamic linker is in use.
113086: dynamic_linker='GNU/Linux ld.so'
113087: ;;
113088:
113089: netbsd*)
113090: version_type=sunos
113091: need_lib_prefix=no
113092: need_version=no
113093: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
113094: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
113095: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
113096: dynamic_linker='NetBSD (a.out) ld.so'
113097: else
113098: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
113099: soname_spec='${libname}${release}${shared_ext}$major'
113100: dynamic_linker='NetBSD ld.elf_so'
113101: fi
113102: shlibpath_var=LD_LIBRARY_PATH
113103: shlibpath_overrides_runpath=yes
113104: hardcode_into_libs=yes
113105: ;;
113106:
113107: newsos6)
113108: version_type=linux
113109: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
113110: shlibpath_var=LD_LIBRARY_PATH
113111: shlibpath_overrides_runpath=yes
113112: ;;
113113:
113114: nto-qnx*)
113115: version_type=linux
113116: need_lib_prefix=no
113117: need_version=no
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: shlibpath_var=LD_LIBRARY_PATH
113121: shlibpath_overrides_runpath=yes
113122: ;;
113123:
113124: openbsd*)
113125: version_type=sunos
113126: sys_lib_dlsearch_path_spec="/usr/lib"
113127: need_lib_prefix=no
113128: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
113129: case $host_os in
113130: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
113131: *) need_version=no ;;
113132: esac
113133: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
113134: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
113135: shlibpath_var=LD_LIBRARY_PATH
113136: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
113137: case $host_os in
113138: openbsd2.[89] | openbsd2.[89].*)
113139: shlibpath_overrides_runpath=no
113140: ;;
113141: *)
113142: shlibpath_overrides_runpath=yes
113143: ;;
113144: esac
113145: else
113146: shlibpath_overrides_runpath=yes
113147: fi
113148: ;;
113149:
113150: os2*)
113151: libname_spec='$name'
113152: shrext_cmds=".dll"
113153: need_lib_prefix=no
113154: library_names_spec='$libname${shared_ext} $libname.a'
113155: dynamic_linker='OS/2 ld.exe'
113156: shlibpath_var=LIBPATH
113157: ;;
113158:
113159: osf3* | osf4* | osf5*)
113160: version_type=osf
113161: need_lib_prefix=no
113162: need_version=no
113163: soname_spec='${libname}${release}${shared_ext}$major'
113164: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
113165: shlibpath_var=LD_LIBRARY_PATH
113166: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
113167: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
113168: ;;
113169:
113170: rdos*)
113171: dynamic_linker=no
113172: ;;
113173:
113174: solaris*)
113175: version_type=linux
113176: need_lib_prefix=no
113177: need_version=no
113178: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
113179: soname_spec='${libname}${release}${shared_ext}$major'
113180: shlibpath_var=LD_LIBRARY_PATH
113181: shlibpath_overrides_runpath=yes
113182: hardcode_into_libs=yes
113183: # ldd complains unless libraries are executable
113184: postinstall_cmds='chmod +x $lib'
113185: ;;
113186:
113187: sunos4*)
113188: version_type=sunos
113189: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
113190: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
113191: shlibpath_var=LD_LIBRARY_PATH
113192: shlibpath_overrides_runpath=yes
113193: if test "$with_gnu_ld" = yes; then
113194: need_lib_prefix=no
113195: fi
113196: need_version=yes
113197: ;;
113198:
113199: sysv4 | sysv4.3*)
113200: version_type=linux
113201: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
113202: soname_spec='${libname}${release}${shared_ext}$major'
113203: shlibpath_var=LD_LIBRARY_PATH
113204: case $host_vendor in
113205: sni)
113206: shlibpath_overrides_runpath=no
113207: need_lib_prefix=no
113208: export_dynamic_flag_spec='${wl}-Blargedynsym'
113209: runpath_var=LD_RUN_PATH
113210: ;;
113211: siemens)
113212: need_lib_prefix=no
113213: ;;
113214: motorola)
113215: need_lib_prefix=no
113216: need_version=no
113217: shlibpath_overrides_runpath=no
113218: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
113219: ;;
113220: esac
113221: ;;
113222:
113223: sysv4*MP*)
113224: if test -d /usr/nec ;then
113225: version_type=linux
113226: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
113227: soname_spec='$libname${shared_ext}.$major'
113228: shlibpath_var=LD_LIBRARY_PATH
113229: fi
113230: ;;
113231:
113232: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
113233: version_type=freebsd-elf
113234: need_lib_prefix=no
113235: need_version=no
113236: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
113237: soname_spec='${libname}${release}${shared_ext}$major'
113238: shlibpath_var=LD_LIBRARY_PATH
113239: hardcode_into_libs=yes
113240: if test "$with_gnu_ld" = yes; then
113241: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
113242: shlibpath_overrides_runpath=no
113243: else
113244: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
113245: shlibpath_overrides_runpath=yes
113246: case $host_os in
113247: sco3.2v5*)
113248: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
113249: ;;
113250: esac
113251: fi
113252: sys_lib_dlsearch_path_spec='/usr/lib'
113253: ;;
113254:
113255: uts4*)
113256: version_type=linux
113257: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
113258: soname_spec='${libname}${release}${shared_ext}$major'
113259: shlibpath_var=LD_LIBRARY_PATH
113260: ;;
113261:
113262: *)
113263: dynamic_linker=no
113264: ;;
113265: esac
113266: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
113267: $as_echo "$dynamic_linker" >&6; }
113268: test "$dynamic_linker" = no && can_build_shared=no
113269:
113270: if ${lt_cv_sys_lib_search_path_spec+:} false; then :
113271: $as_echo_n "(cached) " >&6
113272: else
113273: lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
113274: fi
113275:
113276: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
113277: if ${lt_cv_sys_lib_dlsearch_path_spec+:} false; then :
113278: $as_echo_n "(cached) " >&6
113279: else
113280: lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
113281: fi
113282:
113283: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
113284:
113285: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
113286: if test "$GCC" = yes; then
113287: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
113288: fi
113289:
113290: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
113291: $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
113292: hardcode_action=
113293: if test -n "$hardcode_libdir_flag_spec" || \
113294: test -n "$runpath_var" || \
113295: test "X$hardcode_automatic" = "Xyes" ; then
113296:
113297: # We can hardcode non-existant directories.
113298: if test "$hardcode_direct" != no &&
113299: # If the only mechanism to avoid hardcoding is shlibpath_var, we
113300: # have to relink, otherwise we might link with an installed library
113301: # when we should be linking with a yet-to-be-installed one
113302: ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
113303: test "$hardcode_minus_L" != no; then
113304: # Linking always hardcodes the temporary library directory.
113305: hardcode_action=relink
113306: else
113307: # We can link without hardcoding, and we can hardcode nonexisting dirs.
113308: hardcode_action=immediate
113309: fi
113310: else
113311: # We cannot hardcode anything, or else we can only hardcode existing
113312: # directories.
113313: hardcode_action=unsupported
113314: fi
113315: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
113316: $as_echo "$hardcode_action" >&6; }
113317:
113318: if test "$hardcode_action" = relink; then
113319: # Fast installation is not supported
113320: enable_fast_install=no
113321: elif test "$shlibpath_overrides_runpath" = yes ||
113322: test "$enable_shared" = no; then
113323: # Fast installation is not necessary
113324: enable_fast_install=needless
113325: fi
113326:
113327: striplib=
113328: old_striplib=
113329: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
113330: $as_echo_n "checking whether stripping libraries is possible... " >&6; }
113331: if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
113332: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
113333: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
113334: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
113335: $as_echo "yes" >&6; }
113336: else
113337: # FIXME - insert some real tests, host_os isn't really good enough
113338: case $host_os in
113339: darwin*)
113340: if test -n "$STRIP" ; then
113341: striplib="$STRIP -x"
113342: old_striplib="$STRIP -S"
113343: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
113344: $as_echo "yes" >&6; }
113345: else
113346: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
113347: $as_echo "no" >&6; }
113348: fi
113349: ;;
113350: *)
113351: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
113352: $as_echo "no" >&6; }
113353: ;;
113354: esac
113355: fi
113356:
113357: if test "x$enable_dlopen" != xyes; then
113358: enable_dlopen=unknown
113359: enable_dlopen_self=unknown
113360: enable_dlopen_self_static=unknown
113361: else
113362: lt_cv_dlopen=no
113363: lt_cv_dlopen_libs=
113364:
113365: case $host_os in
113366: beos*)
113367: lt_cv_dlopen="load_add_on"
113368: lt_cv_dlopen_libs=
113369: lt_cv_dlopen_self=yes
113370: ;;
113371:
113372: mingw* | pw32*)
113373: lt_cv_dlopen="LoadLibrary"
113374: lt_cv_dlopen_libs=
113375: ;;
113376:
113377: cygwin*)
113378: lt_cv_dlopen="dlopen"
113379: lt_cv_dlopen_libs=
113380: ;;
113381:
113382: darwin*)
113383: # if libdl is installed we need to link against it
113384: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
113385: $as_echo_n "checking for dlopen in -ldl... " >&6; }
113386: if ${ac_cv_lib_dl_dlopen+:} false; then :
113387: $as_echo_n "(cached) " >&6
113388: else
113389: ac_check_lib_save_LIBS=$LIBS
113390: LIBS="-ldl $LIBS"
113391: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
113392: /* end confdefs.h. */
113393:
113394: /* Override any GCC internal prototype to avoid an error.
113395: Use char because int might match the return type of a GCC
113396: builtin and then its argument prototype would still apply. */
113397: #ifdef __cplusplus
113398: extern "C"
113399: #endif
113400: char dlopen ();
113401: int
113402: main ()
113403: {
113404: return dlopen ();
113405: ;
113406: return 0;
113407: }
113408: _ACEOF
113409: if ac_fn_c_try_link "$LINENO"; then :
113410: ac_cv_lib_dl_dlopen=yes
113411: else
113412: ac_cv_lib_dl_dlopen=no
113413: fi
113414: rm -f core conftest.err conftest.$ac_objext \
113415: conftest$ac_exeext conftest.$ac_ext
113416: LIBS=$ac_check_lib_save_LIBS
113417: fi
113418: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
113419: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
113420: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
113421: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
113422: else
113423:
113424: lt_cv_dlopen="dyld"
113425: lt_cv_dlopen_libs=
113426: lt_cv_dlopen_self=yes
113427:
113428: fi
113429:
113430: ;;
113431:
113432: *)
113433: ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
113434: if test "x$ac_cv_func_shl_load" = xyes; then :
113435: lt_cv_dlopen="shl_load"
113436: else
113437: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
113438: $as_echo_n "checking for shl_load in -ldld... " >&6; }
113439: if ${ac_cv_lib_dld_shl_load+:} false; then :
113440: $as_echo_n "(cached) " >&6
113441: else
113442: ac_check_lib_save_LIBS=$LIBS
113443: LIBS="-ldld $LIBS"
113444: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
113445: /* end confdefs.h. */
113446:
113447: /* Override any GCC internal prototype to avoid an error.
113448: Use char because int might match the return type of a GCC
113449: builtin and then its argument prototype would still apply. */
113450: #ifdef __cplusplus
113451: extern "C"
113452: #endif
113453: char shl_load ();
113454: int
113455: main ()
113456: {
113457: return shl_load ();
113458: ;
113459: return 0;
113460: }
113461: _ACEOF
113462: if ac_fn_c_try_link "$LINENO"; then :
113463: ac_cv_lib_dld_shl_load=yes
113464: else
113465: ac_cv_lib_dld_shl_load=no
113466: fi
113467: rm -f core conftest.err conftest.$ac_objext \
113468: conftest$ac_exeext conftest.$ac_ext
113469: LIBS=$ac_check_lib_save_LIBS
113470: fi
113471: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
113472: $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
113473: if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
113474: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
113475: else
113476: ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
113477: if test "x$ac_cv_func_dlopen" = xyes; then :
113478: lt_cv_dlopen="dlopen"
113479: else
113480: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
113481: $as_echo_n "checking for dlopen in -ldl... " >&6; }
113482: if ${ac_cv_lib_dl_dlopen+:} false; then :
113483: $as_echo_n "(cached) " >&6
113484: else
113485: ac_check_lib_save_LIBS=$LIBS
113486: LIBS="-ldl $LIBS"
113487: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
113488: /* end confdefs.h. */
113489:
113490: /* Override any GCC internal prototype to avoid an error.
113491: Use char because int might match the return type of a GCC
113492: builtin and then its argument prototype would still apply. */
113493: #ifdef __cplusplus
113494: extern "C"
113495: #endif
113496: char dlopen ();
113497: int
113498: main ()
113499: {
113500: return dlopen ();
113501: ;
113502: return 0;
113503: }
113504: _ACEOF
113505: if ac_fn_c_try_link "$LINENO"; then :
113506: ac_cv_lib_dl_dlopen=yes
113507: else
113508: ac_cv_lib_dl_dlopen=no
113509: fi
113510: rm -f core conftest.err conftest.$ac_objext \
113511: conftest$ac_exeext conftest.$ac_ext
113512: LIBS=$ac_check_lib_save_LIBS
113513: fi
113514: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
113515: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
113516: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
113517: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
113518: else
113519: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
113520: $as_echo_n "checking for dlopen in -lsvld... " >&6; }
113521: if ${ac_cv_lib_svld_dlopen+:} false; then :
113522: $as_echo_n "(cached) " >&6
113523: else
113524: ac_check_lib_save_LIBS=$LIBS
113525: LIBS="-lsvld $LIBS"
113526: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
113527: /* end confdefs.h. */
113528:
113529: /* Override any GCC internal prototype to avoid an error.
113530: Use char because int might match the return type of a GCC
113531: builtin and then its argument prototype would still apply. */
113532: #ifdef __cplusplus
113533: extern "C"
113534: #endif
113535: char dlopen ();
113536: int
113537: main ()
113538: {
113539: return dlopen ();
113540: ;
113541: return 0;
113542: }
113543: _ACEOF
113544: if ac_fn_c_try_link "$LINENO"; then :
113545: ac_cv_lib_svld_dlopen=yes
113546: else
113547: ac_cv_lib_svld_dlopen=no
113548: fi
113549: rm -f core conftest.err conftest.$ac_objext \
113550: conftest$ac_exeext conftest.$ac_ext
113551: LIBS=$ac_check_lib_save_LIBS
113552: fi
113553: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
113554: $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
113555: if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
113556: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
113557: else
113558: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
113559: $as_echo_n "checking for dld_link in -ldld... " >&6; }
113560: if ${ac_cv_lib_dld_dld_link+:} false; then :
113561: $as_echo_n "(cached) " >&6
113562: else
113563: ac_check_lib_save_LIBS=$LIBS
113564: LIBS="-ldld $LIBS"
113565: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
113566: /* end confdefs.h. */
113567:
113568: /* Override any GCC internal prototype to avoid an error.
113569: Use char because int might match the return type of a GCC
113570: builtin and then its argument prototype would still apply. */
113571: #ifdef __cplusplus
113572: extern "C"
113573: #endif
113574: char dld_link ();
113575: int
113576: main ()
113577: {
113578: return dld_link ();
113579: ;
113580: return 0;
113581: }
113582: _ACEOF
113583: if ac_fn_c_try_link "$LINENO"; then :
113584: ac_cv_lib_dld_dld_link=yes
113585: else
113586: ac_cv_lib_dld_dld_link=no
113587: fi
113588: rm -f core conftest.err conftest.$ac_objext \
113589: conftest$ac_exeext conftest.$ac_ext
113590: LIBS=$ac_check_lib_save_LIBS
113591: fi
113592: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
113593: $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
113594: if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
113595: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
113596: fi
113597:
113598:
113599: fi
113600:
113601:
113602: fi
113603:
113604:
113605: fi
113606:
113607:
113608: fi
113609:
113610:
113611: fi
113612:
113613: ;;
113614: esac
113615:
113616: if test "x$lt_cv_dlopen" != xno; then
113617: enable_dlopen=yes
113618: else
113619: enable_dlopen=no
113620: fi
113621:
113622: case $lt_cv_dlopen in
113623: dlopen)
113624: save_CPPFLAGS="$CPPFLAGS"
113625: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
113626:
113627: save_LDFLAGS="$LDFLAGS"
113628: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
113629:
113630: save_LIBS="$LIBS"
113631: LIBS="$lt_cv_dlopen_libs $LIBS"
113632:
113633: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
113634: $as_echo_n "checking whether a program can dlopen itself... " >&6; }
113635: if ${lt_cv_dlopen_self+:} false; then :
113636: $as_echo_n "(cached) " >&6
113637: else
113638: if test "$cross_compiling" = yes; then :
113639: lt_cv_dlopen_self=cross
113640: else
113641: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
113642: lt_status=$lt_dlunknown
113643: cat > conftest.$ac_ext <<EOF
113644: #line 113644 "configure"
113645: #include "confdefs.h"
113646:
113647: #if HAVE_DLFCN_H
113648: #include <dlfcn.h>
113649: #endif
113650:
113651: #include <stdio.h>
113652:
113653: #ifdef RTLD_GLOBAL
113654: # define LT_DLGLOBAL RTLD_GLOBAL
113655: #else
113656: # ifdef DL_GLOBAL
113657: # define LT_DLGLOBAL DL_GLOBAL
113658: # else
113659: # define LT_DLGLOBAL 0
113660: # endif
113661: #endif
113662:
113663: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
113664: find out it does not work in some platform. */
113665: #ifndef LT_DLLAZY_OR_NOW
113666: # ifdef RTLD_LAZY
113667: # define LT_DLLAZY_OR_NOW RTLD_LAZY
113668: # else
113669: # ifdef DL_LAZY
113670: # define LT_DLLAZY_OR_NOW DL_LAZY
113671: # else
113672: # ifdef RTLD_NOW
113673: # define LT_DLLAZY_OR_NOW RTLD_NOW
113674: # else
113675: # ifdef DL_NOW
113676: # define LT_DLLAZY_OR_NOW DL_NOW
113677: # else
113678: # define LT_DLLAZY_OR_NOW 0
113679: # endif
113680: # endif
113681: # endif
113682: # endif
113683: #endif
113684:
113685: #ifdef __cplusplus
113686: extern "C" void exit (int);
113687: #endif
113688:
113689: void fnord() { int i=42;}
113690: int main ()
113691: {
113692: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
113693: int status = $lt_dlunknown;
113694:
113695: if (self)
113696: {
113697: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
113698: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
113699: /* dlclose (self); */
113700: }
113701: else
113702: puts (dlerror ());
113703:
113704: exit (status);
113705: }
113706: EOF
113707: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
113708: (eval $ac_link) 2>&5
113709: ac_status=$?
113710: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
113711: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
113712: (./conftest; exit; ) >&5 2>/dev/null
113713: lt_status=$?
113714: case x$lt_status in
113715: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
113716: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
113717: x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
113718: esac
113719: else :
113720: # compilation failed
113721: lt_cv_dlopen_self=no
113722: fi
113723: fi
113724: rm -fr conftest*
113725:
113726:
113727: fi
113728: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
113729: $as_echo "$lt_cv_dlopen_self" >&6; }
113730:
113731: if test "x$lt_cv_dlopen_self" = xyes; then
113732: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
113733: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
113734: $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
113735: if ${lt_cv_dlopen_self_static+:} false; then :
113736: $as_echo_n "(cached) " >&6
113737: else
113738: if test "$cross_compiling" = yes; then :
113739: lt_cv_dlopen_self_static=cross
113740: else
113741: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
113742: lt_status=$lt_dlunknown
113743: cat > conftest.$ac_ext <<EOF
113744: #line 113744 "configure"
113745: #include "confdefs.h"
113746:
113747: #if HAVE_DLFCN_H
113748: #include <dlfcn.h>
113749: #endif
113750:
113751: #include <stdio.h>
113752:
113753: #ifdef RTLD_GLOBAL
113754: # define LT_DLGLOBAL RTLD_GLOBAL
113755: #else
113756: # ifdef DL_GLOBAL
113757: # define LT_DLGLOBAL DL_GLOBAL
113758: # else
113759: # define LT_DLGLOBAL 0
113760: # endif
113761: #endif
113762:
113763: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
113764: find out it does not work in some platform. */
113765: #ifndef LT_DLLAZY_OR_NOW
113766: # ifdef RTLD_LAZY
113767: # define LT_DLLAZY_OR_NOW RTLD_LAZY
113768: # else
113769: # ifdef DL_LAZY
113770: # define LT_DLLAZY_OR_NOW DL_LAZY
113771: # else
113772: # ifdef RTLD_NOW
113773: # define LT_DLLAZY_OR_NOW RTLD_NOW
113774: # else
113775: # ifdef DL_NOW
113776: # define LT_DLLAZY_OR_NOW DL_NOW
113777: # else
113778: # define LT_DLLAZY_OR_NOW 0
113779: # endif
113780: # endif
113781: # endif
113782: # endif
113783: #endif
113784:
113785: #ifdef __cplusplus
113786: extern "C" void exit (int);
113787: #endif
113788:
113789: void fnord() { int i=42;}
113790: int main ()
113791: {
113792: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
113793: int status = $lt_dlunknown;
113794:
113795: if (self)
113796: {
113797: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
113798: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
113799: /* dlclose (self); */
113800: }
113801: else
113802: puts (dlerror ());
113803:
113804: exit (status);
113805: }
113806: EOF
113807: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
113808: (eval $ac_link) 2>&5
113809: ac_status=$?
113810: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
113811: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
113812: (./conftest; exit; ) >&5 2>/dev/null
113813: lt_status=$?
113814: case x$lt_status in
113815: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
113816: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
113817: x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
113818: esac
113819: else :
113820: # compilation failed
113821: lt_cv_dlopen_self_static=no
113822: fi
113823: fi
113824: rm -fr conftest*
113825:
113826:
113827: fi
113828: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
113829: $as_echo "$lt_cv_dlopen_self_static" >&6; }
113830: fi
113831:
113832: CPPFLAGS="$save_CPPFLAGS"
113833: LDFLAGS="$save_LDFLAGS"
113834: LIBS="$save_LIBS"
113835: ;;
113836: esac
113837:
113838: case $lt_cv_dlopen_self in
113839: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
113840: *) enable_dlopen_self=unknown ;;
113841: esac
113842:
113843: case $lt_cv_dlopen_self_static in
113844: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
113845: *) enable_dlopen_self_static=unknown ;;
113846: esac
113847: fi
113848:
113849:
113850: # Report which library types will actually be built
113851: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
113852: $as_echo_n "checking if libtool supports shared libraries... " >&6; }
113853: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
113854: $as_echo "$can_build_shared" >&6; }
113855:
113856: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
113857: $as_echo_n "checking whether to build shared libraries... " >&6; }
113858: test "$can_build_shared" = "no" && enable_shared=no
113859:
113860: # On AIX, shared libraries and static libraries use the same namespace, and
113861: # are all built from PIC.
113862: case $host_os in
113863: aix3*)
113864: test "$enable_shared" = yes && enable_static=no
113865: if test -n "$RANLIB"; then
113866: archive_cmds="$archive_cmds~\$RANLIB \$lib"
113867: postinstall_cmds='$RANLIB $lib'
113868: fi
113869: ;;
113870:
113871: aix[4-9]*)
113872: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
113873: test "$enable_shared" = yes && enable_static=no
113874: fi
113875: ;;
113876: esac
113877: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
113878: $as_echo "$enable_shared" >&6; }
113879:
113880: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
113881: $as_echo_n "checking whether to build static libraries... " >&6; }
113882: # Make sure either enable_shared or enable_static is yes.
113883: test "$enable_shared" = yes || enable_static=yes
113884: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
113885: $as_echo "$enable_static" >&6; }
113886:
113887: # The else clause should only fire when bootstrapping the
113888: # libtool distribution, otherwise you forgot to ship ltmain.sh
113889: # with your package, and you will get complaints that there are
113890: # no rules to generate ltmain.sh.
113891: if test -f "$ltmain"; then
113892: # See if we are running on zsh, and set the options which allow our commands through
113893: # without removal of \ escapes.
113894: if test -n "${ZSH_VERSION+set}" ; then
113895: setopt NO_GLOB_SUBST
113896: fi
113897: # Now quote all the things that may contain metacharacters while being
113898: # careful not to overquote the AC_SUBSTed values. We take copies of the
113899: # variables and quote the copies for generation of the libtool script.
113900: for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
113901: SED SHELL STRIP \
113902: libname_spec library_names_spec soname_spec extract_expsyms_cmds \
113903: old_striplib striplib file_magic_cmd finish_cmds finish_eval \
113904: deplibs_check_method reload_flag reload_cmds need_locks \
113905: lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
113906: lt_cv_sys_global_symbol_to_c_name_address \
113907: sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
113908: old_postinstall_cmds old_postuninstall_cmds \
113909: compiler \
113910: CC \
113911: LD \
113912: lt_prog_compiler_wl \
113913: lt_prog_compiler_pic \
113914: lt_prog_compiler_static \
113915: lt_prog_compiler_no_builtin_flag \
113916: export_dynamic_flag_spec \
113917: thread_safe_flag_spec \
113918: whole_archive_flag_spec \
113919: enable_shared_with_static_runtimes \
113920: old_archive_cmds \
113921: old_archive_from_new_cmds \
113922: predep_objects \
113923: postdep_objects \
113924: predeps \
113925: postdeps \
113926: compiler_lib_search_path \
113927: compiler_lib_search_dirs \
113928: archive_cmds \
113929: archive_expsym_cmds \
113930: postinstall_cmds \
113931: postuninstall_cmds \
113932: old_archive_from_expsyms_cmds \
113933: allow_undefined_flag \
113934: no_undefined_flag \
113935: export_symbols_cmds \
113936: hardcode_libdir_flag_spec \
113937: hardcode_libdir_flag_spec_ld \
113938: hardcode_libdir_separator \
113939: hardcode_automatic \
113940: module_cmds \
113941: module_expsym_cmds \
113942: lt_cv_prog_compiler_c_o \
113943: fix_srcfile_path \
113944: exclude_expsyms \
113945: include_expsyms; do
113946:
113947: case $var in
113948: old_archive_cmds | \
113949: old_archive_from_new_cmds | \
113950: archive_cmds | \
113951: archive_expsym_cmds | \
113952: module_cmds | \
113953: module_expsym_cmds | \
113954: old_archive_from_expsyms_cmds | \
113955: export_symbols_cmds | \
113956: extract_expsyms_cmds | reload_cmds | finish_cmds | \
113957: postinstall_cmds | postuninstall_cmds | \
113958: old_postinstall_cmds | old_postuninstall_cmds | \
113959: sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
113960: # Double-quote double-evaled strings.
113961: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
113962: ;;
113963: *)
113964: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
113965: ;;
113966: esac
113967: done
113968:
113969: case $lt_echo in
113970: *'\$0 --fallback-echo"')
113971: lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
113972: ;;
113973: esac
113974:
113975: cfgfile="${ofile}T"
113976: trap "$rm \"$cfgfile\"; exit 1" 1 2 15
113977: $rm -f "$cfgfile"
113978: { $as_echo "$as_me:${as_lineno-$LINENO}: result:
113979: creating $ofile" >&5
113980: $as_echo "
113981: creating $ofile" >&6; }
113982:
113983: cat <<__EOF__ >> "$cfgfile"
113984: #! $SHELL
113985:
113986: # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
113987: # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
113988: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
113989: #
113990: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
113991: # Free Software Foundation, Inc.
113992: #
113993: # This file is part of GNU Libtool:
113994: # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
113995: #
113996: # This program is free software; you can redistribute it and/or modify
113997: # it under the terms of the GNU General Public License as published by
113998: # the Free Software Foundation; either version 2 of the License, or
113999: # (at your option) any later version.
114000: #
114001: # This program is distributed in the hope that it will be useful, but
114002: # WITHOUT ANY WARRANTY; without even the implied warranty of
114003: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
114004: # General Public License for more details.
114005: #
114006: # You should have received a copy of the GNU General Public License
114007: # along with this program; if not, write to the Free Software
114008: # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
114009: #
114010: # As a special exception to the GNU General Public License, if you
114011: # distribute this file as part of a program that contains a
114012: # configuration script generated by Autoconf, you may include it under
114013: # the same distribution terms that you use for the rest of that program.
114014:
114015: # A sed program that does not truncate output.
114016: SED=$lt_SED
114017:
114018: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
114019: Xsed="$SED -e 1s/^X//"
114020:
114021: # The HP-UX ksh and POSIX shell print the target directory to stdout
114022: # if CDPATH is set.
114023: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
114024:
114025: # The names of the tagged configurations supported by this script.
114026: available_tags=
114027:
114028: # ### BEGIN LIBTOOL CONFIG
114029:
114030: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
114031:
114032: # Shell to use when invoking shell scripts.
114033: SHELL=$lt_SHELL
114034:
114035: # Whether or not to build shared libraries.
114036: build_libtool_libs=$enable_shared
114037:
114038: # Whether or not to build static libraries.
114039: build_old_libs=$enable_static
114040:
114041: # Whether or not to add -lc for building shared libraries.
114042: build_libtool_need_lc=$archive_cmds_need_lc
114043:
114044: # Whether or not to disallow shared libs when runtime libs are static
114045: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
114046:
114047: # Whether or not to optimize for fast installation.
114048: fast_install=$enable_fast_install
114049:
114050: # The host system.
114051: host_alias=$host_alias
114052: host=$host
114053: host_os=$host_os
114054:
114055: # The build system.
114056: build_alias=$build_alias
114057: build=$build
114058: build_os=$build_os
114059:
114060: # An echo program that does not interpret backslashes.
114061: echo=$lt_echo
114062:
114063: # The archiver.
114064: AR=$lt_AR
114065: AR_FLAGS=$lt_AR_FLAGS
114066:
114067: # A C compiler.
114068: LTCC=$lt_LTCC
114069:
114070: # LTCC compiler flags.
114071: LTCFLAGS=$lt_LTCFLAGS
114072:
114073: # A language-specific compiler.
114074: CC=$lt_compiler
114075:
114076: # Is the compiler the GNU C compiler?
114077: with_gcc=$GCC
114078:
114079: # An ERE matcher.
114080: EGREP=$lt_EGREP
114081:
114082: # The linker used to build libraries.
114083: LD=$lt_LD
114084:
114085: # Whether we need hard or soft links.
114086: LN_S=$lt_LN_S
114087:
114088: # A BSD-compatible nm program.
114089: NM=$lt_NM
114090:
114091: # A symbol stripping program
114092: STRIP=$lt_STRIP
114093:
114094: # Used to examine libraries when file_magic_cmd begins "file"
114095: MAGIC_CMD=$MAGIC_CMD
114096:
114097: # Used on cygwin: DLL creation program.
114098: DLLTOOL="$DLLTOOL"
114099:
114100: # Used on cygwin: object dumper.
114101: OBJDUMP="$OBJDUMP"
114102:
114103: # Used on cygwin: assembler.
114104: AS="$AS"
114105:
114106: # The name of the directory that contains temporary libtool files.
114107: objdir=$objdir
114108:
114109: # How to create reloadable object files.
114110: reload_flag=$lt_reload_flag
114111: reload_cmds=$lt_reload_cmds
114112:
114113: # How to pass a linker flag through the compiler.
114114: wl=$lt_lt_prog_compiler_wl
114115:
114116: # Object file suffix (normally "o").
114117: objext="$ac_objext"
114118:
114119: # Old archive suffix (normally "a").
114120: libext="$libext"
114121:
114122: # Shared library suffix (normally ".so").
114123: shrext_cmds='$shrext_cmds'
114124:
114125: # Executable file suffix (normally "").
114126: exeext="$exeext"
114127:
114128: # Additional compiler flags for building library objects.
114129: pic_flag=$lt_lt_prog_compiler_pic
114130: pic_mode=$pic_mode
114131:
114132: # What is the maximum length of a command?
114133: max_cmd_len=$lt_cv_sys_max_cmd_len
114134:
114135: # Does compiler simultaneously support -c and -o options?
114136: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
114137:
114138: # Must we lock files when doing compilation?
114139: need_locks=$lt_need_locks
114140:
114141: # Do we need the lib prefix for modules?
114142: need_lib_prefix=$need_lib_prefix
114143:
114144: # Do we need a version for libraries?
114145: need_version=$need_version
114146:
114147: # Whether dlopen is supported.
114148: dlopen_support=$enable_dlopen
114149:
114150: # Whether dlopen of programs is supported.
114151: dlopen_self=$enable_dlopen_self
114152:
114153: # Whether dlopen of statically linked programs is supported.
114154: dlopen_self_static=$enable_dlopen_self_static
114155:
114156: # Compiler flag to prevent dynamic linking.
114157: link_static_flag=$lt_lt_prog_compiler_static
114158:
114159: # Compiler flag to turn off builtin functions.
114160: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
114161:
114162: # Compiler flag to allow reflexive dlopens.
114163: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
114164:
114165: # Compiler flag to generate shared objects directly from archives.
114166: whole_archive_flag_spec=$lt_whole_archive_flag_spec
114167:
114168: # Compiler flag to generate thread-safe objects.
114169: thread_safe_flag_spec=$lt_thread_safe_flag_spec
114170:
114171: # Library versioning type.
114172: version_type=$version_type
114173:
114174: # Format of library name prefix.
114175: libname_spec=$lt_libname_spec
114176:
114177: # List of archive names. First name is the real one, the rest are links.
114178: # The last name is the one that the linker finds with -lNAME.
114179: library_names_spec=$lt_library_names_spec
114180:
114181: # The coded name of the library, if different from the real name.
114182: soname_spec=$lt_soname_spec
114183:
114184: # Commands used to build and install an old-style archive.
114185: RANLIB=$lt_RANLIB
114186: old_archive_cmds=$lt_old_archive_cmds
114187: old_postinstall_cmds=$lt_old_postinstall_cmds
114188: old_postuninstall_cmds=$lt_old_postuninstall_cmds
114189:
114190: # Create an old-style archive from a shared archive.
114191: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
114192:
114193: # Create a temporary old-style archive to link instead of a shared archive.
114194: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
114195:
114196: # Commands used to build and install a shared archive.
114197: archive_cmds=$lt_archive_cmds
114198: archive_expsym_cmds=$lt_archive_expsym_cmds
114199: postinstall_cmds=$lt_postinstall_cmds
114200: postuninstall_cmds=$lt_postuninstall_cmds
114201:
114202: # Commands used to build a loadable module (assumed same as above if empty)
114203: module_cmds=$lt_module_cmds
114204: module_expsym_cmds=$lt_module_expsym_cmds
114205:
114206: # Commands to strip libraries.
114207: old_striplib=$lt_old_striplib
114208: striplib=$lt_striplib
114209:
114210: # Dependencies to place before the objects being linked to create a
114211: # shared library.
114212: predep_objects=$lt_predep_objects
114213:
114214: # Dependencies to place after the objects being linked to create a
114215: # shared library.
114216: postdep_objects=$lt_postdep_objects
114217:
114218: # Dependencies to place before the objects being linked to create a
114219: # shared library.
114220: predeps=$lt_predeps
114221:
114222: # Dependencies to place after the objects being linked to create a
114223: # shared library.
114224: postdeps=$lt_postdeps
114225:
114226: # The directories searched by this compiler when creating a shared
114227: # library
114228: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
114229:
114230: # The library search path used internally by the compiler when linking
114231: # a shared library.
114232: compiler_lib_search_path=$lt_compiler_lib_search_path
114233:
114234: # Method to check whether dependent libraries are shared objects.
114235: deplibs_check_method=$lt_deplibs_check_method
114236:
114237: # Command to use when deplibs_check_method == file_magic.
114238: file_magic_cmd=$lt_file_magic_cmd
114239:
114240: # Flag that allows shared libraries with undefined symbols to be built.
114241: allow_undefined_flag=$lt_allow_undefined_flag
114242:
114243: # Flag that forces no undefined symbols.
114244: no_undefined_flag=$lt_no_undefined_flag
114245:
114246: # Commands used to finish a libtool library installation in a directory.
114247: finish_cmds=$lt_finish_cmds
114248:
114249: # Same as above, but a single script fragment to be evaled but not shown.
114250: finish_eval=$lt_finish_eval
114251:
114252: # Take the output of nm and produce a listing of raw symbols and C names.
114253: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
114254:
114255: # Transform the output of nm in a proper C declaration
114256: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
114257:
114258: # Transform the output of nm in a C name address pair
114259: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
114260:
114261: # This is the shared library runtime path variable.
114262: runpath_var=$runpath_var
114263:
114264: # This is the shared library path variable.
114265: shlibpath_var=$shlibpath_var
114266:
114267: # Is shlibpath searched before the hard-coded library search path?
114268: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
114269:
114270: # How to hardcode a shared library path into an executable.
114271: hardcode_action=$hardcode_action
114272:
114273: # Whether we should hardcode library paths into libraries.
114274: hardcode_into_libs=$hardcode_into_libs
114275:
114276: # Flag to hardcode \$libdir into a binary during linking.
114277: # This must work even if \$libdir does not exist.
114278: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
114279:
114280: # If ld is used when linking, flag to hardcode \$libdir into
114281: # a binary during linking. This must work even if \$libdir does
114282: # not exist.
114283: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
114284:
114285: # Whether we need a single -rpath flag with a separated argument.
114286: hardcode_libdir_separator=$lt_hardcode_libdir_separator
114287:
114288: # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
114289: # resulting binary.
114290: hardcode_direct=$hardcode_direct
114291:
114292: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
114293: # resulting binary.
114294: hardcode_minus_L=$hardcode_minus_L
114295:
114296: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
114297: # the resulting binary.
114298: hardcode_shlibpath_var=$hardcode_shlibpath_var
114299:
114300: # Set to yes if building a shared library automatically hardcodes DIR into the library
114301: # and all subsequent libraries and executables linked against it.
114302: hardcode_automatic=$hardcode_automatic
114303:
114304: # Variables whose values should be saved in libtool wrapper scripts and
114305: # restored at relink time.
114306: variables_saved_for_relink="$variables_saved_for_relink"
114307:
114308: # Whether libtool must link a program against all its dependency libraries.
114309: link_all_deplibs=$link_all_deplibs
114310:
114311: # Compile-time system search path for libraries
114312: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
114313:
114314: # Run-time system search path for libraries
114315: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
114316:
114317: # Fix the shell variable \$srcfile for the compiler.
114318: fix_srcfile_path=$lt_fix_srcfile_path
114319:
114320: # Set to yes if exported symbols are required.
114321: always_export_symbols=$always_export_symbols
114322:
114323: # The commands to list exported symbols.
114324: export_symbols_cmds=$lt_export_symbols_cmds
114325:
114326: # The commands to extract the exported symbol list from a shared archive.
114327: extract_expsyms_cmds=$lt_extract_expsyms_cmds
114328:
114329: # Symbols that should not be listed in the preloaded symbols.
114330: exclude_expsyms=$lt_exclude_expsyms
114331:
114332: # Symbols that must always be exported.
114333: include_expsyms=$lt_include_expsyms
114334:
114335: # ### END LIBTOOL CONFIG
114336:
114337: __EOF__
114338:
114339:
114340: case $host_os in
114341: aix3*)
114342: cat <<\EOF >> "$cfgfile"
114343:
114344: # AIX sometimes has problems with the GCC collect2 program. For some
114345: # reason, if we set the COLLECT_NAMES environment variable, the problems
114346: # vanish in a puff of smoke.
114347: if test "X${COLLECT_NAMES+set}" != Xset; then
114348: COLLECT_NAMES=
114349: export COLLECT_NAMES
114350: fi
114351: EOF
114352: ;;
114353: esac
114354:
114355: # We use sed instead of cat because bash on DJGPP gets confused if
114356: # if finds mixed CR/LF and LF-only lines. Since sed operates in
114357: # text mode, it properly converts lines to CR/LF. This bash problem
114358: # is reportedly fixed, but why not run on old versions too?
114359: sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
114360:
114361: mv -f "$cfgfile" "$ofile" || \
114362: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
114363: chmod +x "$ofile"
114364:
114365: else
114366: # If there is no Makefile yet, we rely on a make rule to execute
114367: # `config.status --recheck' to rerun these tests and create the
114368: # libtool script then.
114369: ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
114370: if test -f "$ltmain_in"; then
114371: test -f Makefile && make "$ltmain"
114372: fi
114373: fi
114374:
114375:
114376: ac_ext=c
114377: ac_cpp='$CPP $CPPFLAGS'
114378: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
114379: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
114380: ac_compiler_gnu=$ac_cv_c_compiler_gnu
114381:
114382: CC="$lt_save_CC"
114383:
114384:
114385: # Check whether --with-tags was given.
114386: if test "${with_tags+set}" = set; then :
114387: withval=$with_tags; tagnames="$withval"
114388: fi
114389:
114390:
114391: if test -f "$ltmain" && test -n "$tagnames"; then
114392: if test ! -f "${ofile}"; then
114393: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
114394: $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
114395: fi
114396:
114397: if test -z "$LTCC"; then
114398: eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
114399: if test -z "$LTCC"; then
114400: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
114401: $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
114402: else
114403: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
114404: $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
114405: fi
114406: fi
114407: if test -z "$LTCFLAGS"; then
114408: eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
114409: fi
114410:
114411: # Extract list of available tagged configurations in $ofile.
114412: # Note that this assumes the entire list is on one line.
114413: available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
114414:
114415: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
114416: for tagname in $tagnames; do
114417: IFS="$lt_save_ifs"
114418: # Check whether tagname contains only valid characters
114419: case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
114420: "") ;;
114421: *) as_fn_error $? "invalid tag name: $tagname" "$LINENO" 5
114422: ;;
114423: esac
114424:
114425: if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
114426: then
114427: as_fn_error $? "tag name \"$tagname\" already exists" "$LINENO" 5
114428: fi
114429:
114430: # Update the list of available tags.
114431: if test -n "$tagname"; then
114432: echo appending configuration tag \"$tagname\" to $ofile
114433:
114434: case $tagname in
114435: CXX)
114436: if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
114437: ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
114438: (test "X$CXX" != "Xg++"))) ; then
114439:
114440: ac_ext=cpp
114441: ac_cpp='$CXXCPP $CPPFLAGS'
114442: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
114443: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
114444: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
114445:
114446:
114447:
114448:
114449: archive_cmds_need_lc_CXX=no
114450: allow_undefined_flag_CXX=
114451: always_export_symbols_CXX=no
114452: archive_expsym_cmds_CXX=
114453: export_dynamic_flag_spec_CXX=
114454: hardcode_direct_CXX=no
114455: hardcode_libdir_flag_spec_CXX=
114456: hardcode_libdir_flag_spec_ld_CXX=
114457: hardcode_libdir_separator_CXX=
114458: hardcode_minus_L_CXX=no
114459: hardcode_shlibpath_var_CXX=unsupported
114460: hardcode_automatic_CXX=no
114461: module_cmds_CXX=
114462: module_expsym_cmds_CXX=
114463: link_all_deplibs_CXX=unknown
114464: old_archive_cmds_CXX=$old_archive_cmds
114465: no_undefined_flag_CXX=
114466: whole_archive_flag_spec_CXX=
114467: enable_shared_with_static_runtimes_CXX=no
114468:
114469: # Dependencies to place before and after the object being linked:
114470: predep_objects_CXX=
114471: postdep_objects_CXX=
114472: predeps_CXX=
114473: postdeps_CXX=
114474: compiler_lib_search_path_CXX=
114475: compiler_lib_search_dirs_CXX=
114476:
114477: # Source file extension for C++ test sources.
114478: ac_ext=cpp
114479:
114480: # Object file extension for compiled C++ test sources.
114481: objext=o
114482: objext_CXX=$objext
114483:
114484: # Code to be used in simple compile tests
114485: lt_simple_compile_test_code="int some_variable = 0;"
114486:
114487: # Code to be used in simple link tests
114488: lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
114489:
114490: # ltmain only uses $CC for tagged configurations so make sure $CC is set.
114491:
114492: # If no C compiler was specified, use CC.
114493: LTCC=${LTCC-"$CC"}
114494:
114495: # If no C compiler flags were specified, use CFLAGS.
114496: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
114497:
114498: # Allow CC to be a program name with arguments.
114499: compiler=$CC
114500:
114501:
114502: # save warnings/boilerplate of simple test code
114503: ac_outfile=conftest.$ac_objext
114504: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
114505: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
114506: _lt_compiler_boilerplate=`cat conftest.err`
114507: $rm conftest*
114508:
114509: ac_outfile=conftest.$ac_objext
114510: echo "$lt_simple_link_test_code" >conftest.$ac_ext
114511: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
114512: _lt_linker_boilerplate=`cat conftest.err`
114513: $rm -r conftest*
114514:
114515:
114516: # Allow CC to be a program name with arguments.
114517: lt_save_CC=$CC
114518: lt_save_LD=$LD
114519: lt_save_GCC=$GCC
114520: GCC=$GXX
114521: lt_save_with_gnu_ld=$with_gnu_ld
114522: lt_save_path_LD=$lt_cv_path_LD
114523: if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
114524: lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
114525: else
114526: unset lt_cv_prog_gnu_ld
114527: fi
114528: if test -n "${lt_cv_path_LDCXX+set}"; then
114529: lt_cv_path_LD=$lt_cv_path_LDCXX
114530: else
114531: unset lt_cv_path_LD
114532: fi
114533: test -z "${LDCXX+set}" || LD=$LDCXX
114534: CC=${CXX-"c++"}
114535: compiler=$CC
114536: compiler_CXX=$CC
114537: for cc_temp in $compiler""; do
114538: case $cc_temp in
114539: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
114540: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
114541: \-*) ;;
114542: *) break;;
114543: esac
114544: done
114545: cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
114546:
114547:
114548: # We don't want -fno-exception wen compiling C++ code, so set the
114549: # no_builtin_flag separately
114550: if test "$GXX" = yes; then
114551: lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
114552: else
114553: lt_prog_compiler_no_builtin_flag_CXX=
114554: fi
114555:
114556: if test "$GXX" = yes; then
114557: # Set up default GNU C++ configuration
114558:
114559:
114560: # Check whether --with-gnu-ld was given.
114561: if test "${with_gnu_ld+set}" = set; then :
114562: withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
114563: else
114564: with_gnu_ld=no
114565: fi
114566:
114567: ac_prog=ld
114568: if test "$GCC" = yes; then
114569: # Check if gcc -print-prog-name=ld gives a path.
114570: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
114571: $as_echo_n "checking for ld used by $CC... " >&6; }
114572: case $host in
114573: *-*-mingw*)
114574: # gcc leaves a trailing carriage return which upsets mingw
114575: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
114576: *)
114577: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
114578: esac
114579: case $ac_prog in
114580: # Accept absolute paths.
114581: [\\/]* | ?:[\\/]*)
114582: re_direlt='/[^/][^/]*/\.\./'
114583: # Canonicalize the pathname of ld
114584: ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
114585: while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
114586: ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
114587: done
114588: test -z "$LD" && LD="$ac_prog"
114589: ;;
114590: "")
114591: # If it fails, then pretend we aren't using GCC.
114592: ac_prog=ld
114593: ;;
114594: *)
114595: # If it is relative, then search for the first ld in PATH.
114596: with_gnu_ld=unknown
114597: ;;
114598: esac
114599: elif test "$with_gnu_ld" = yes; then
114600: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
114601: $as_echo_n "checking for GNU ld... " >&6; }
114602: else
114603: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
114604: $as_echo_n "checking for non-GNU ld... " >&6; }
114605: fi
114606: if ${lt_cv_path_LD+:} false; then :
114607: $as_echo_n "(cached) " >&6
114608: else
114609: if test -z "$LD"; then
114610: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
114611: for ac_dir in $PATH; do
114612: IFS="$lt_save_ifs"
114613: test -z "$ac_dir" && ac_dir=.
114614: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
114615: lt_cv_path_LD="$ac_dir/$ac_prog"
114616: # Check to see if the program is GNU ld. I'd rather use --version,
114617: # but apparently some variants of GNU ld only accept -v.
114618: # Break only if it was the GNU/non-GNU ld that we prefer.
114619: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
114620: *GNU* | *'with BFD'*)
114621: test "$with_gnu_ld" != no && break
114622: ;;
114623: *)
114624: test "$with_gnu_ld" != yes && break
114625: ;;
114626: esac
114627: fi
114628: done
114629: IFS="$lt_save_ifs"
114630: else
114631: lt_cv_path_LD="$LD" # Let the user override the test with a path.
114632: fi
114633: fi
114634:
114635: LD="$lt_cv_path_LD"
114636: if test -n "$LD"; then
114637: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
114638: $as_echo "$LD" >&6; }
114639: else
114640: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
114641: $as_echo "no" >&6; }
114642: fi
114643: test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
114644: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
114645: $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
114646: if ${lt_cv_prog_gnu_ld+:} false; then :
114647: $as_echo_n "(cached) " >&6
114648: else
114649: # I'd rather use --version here, but apparently some GNU lds only accept -v.
114650: case `$LD -v 2>&1 </dev/null` in
114651: *GNU* | *'with BFD'*)
114652: lt_cv_prog_gnu_ld=yes
114653: ;;
114654: *)
114655: lt_cv_prog_gnu_ld=no
114656: ;;
114657: esac
114658: fi
114659: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
114660: $as_echo "$lt_cv_prog_gnu_ld" >&6; }
114661: with_gnu_ld=$lt_cv_prog_gnu_ld
114662:
114663:
114664:
114665: # Check if GNU C++ uses GNU ld as the underlying linker, since the
114666: # archiving commands below assume that GNU ld is being used.
114667: if test "$with_gnu_ld" = yes; then
114668: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
114669: 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'
114670:
114671: hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
114672: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
114673:
114674: # If archive_cmds runs LD, not CC, wlarc should be empty
114675: # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
114676: # investigate it a little bit more. (MM)
114677: wlarc='${wl}'
114678:
114679: # ancient GNU ld didn't support --whole-archive et. al.
114680: if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
114681: grep 'no-whole-archive' > /dev/null; then
114682: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
114683: else
114684: whole_archive_flag_spec_CXX=
114685: fi
114686: else
114687: with_gnu_ld=no
114688: wlarc=
114689:
114690: # A generic and very simple default shared library creation
114691: # command for GNU C++ for the case where it uses the native
114692: # linker, instead of GNU ld. If possible, this setting should
114693: # overridden to take advantage of the native linker features on
114694: # the platform it is being used on.
114695: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
114696: fi
114697:
114698: # Commands to make compiler produce verbose output that lists
114699: # what "hidden" libraries, object files and flags are used when
114700: # linking a shared library.
114701: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
114702:
114703: else
114704: GXX=no
114705: with_gnu_ld=no
114706: wlarc=
114707: fi
114708:
114709: # PORTME: fill in a description of your system's C++ link characteristics
114710: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
114711: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
114712: ld_shlibs_CXX=yes
114713: case $host_os in
114714: aix3*)
114715: # FIXME: insert proper C++ library support
114716: ld_shlibs_CXX=no
114717: ;;
114718: aix[4-9]*)
114719: if test "$host_cpu" = ia64; then
114720: # On IA64, the linker does run time linking by default, so we don't
114721: # have to do anything special.
114722: aix_use_runtimelinking=no
114723: exp_sym_flag='-Bexport'
114724: no_entry_flag=""
114725: else
114726: aix_use_runtimelinking=no
114727:
114728: # Test if we are trying to use run time linking or normal
114729: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
114730: # need to do runtime linking.
114731: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
114732: for ld_flag in $LDFLAGS; do
114733: case $ld_flag in
114734: *-brtl*)
114735: aix_use_runtimelinking=yes
114736: break
114737: ;;
114738: esac
114739: done
114740: ;;
114741: esac
114742:
114743: exp_sym_flag='-bexport'
114744: no_entry_flag='-bnoentry'
114745: fi
114746:
114747: # When large executables or shared objects are built, AIX ld can
114748: # have problems creating the table of contents. If linking a library
114749: # or program results in "error TOC overflow" add -mminimal-toc to
114750: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
114751: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
114752:
114753: archive_cmds_CXX=''
114754: hardcode_direct_CXX=yes
114755: hardcode_libdir_separator_CXX=':'
114756: link_all_deplibs_CXX=yes
114757:
114758: if test "$GXX" = yes; then
114759: case $host_os in aix4.[012]|aix4.[012].*)
114760: # We only want to do this on AIX 4.2 and lower, the check
114761: # below for broken collect2 doesn't work under 4.3+
114762: collect2name=`${CC} -print-prog-name=collect2`
114763: if test -f "$collect2name" && \
114764: strings "$collect2name" | grep resolve_lib_name >/dev/null
114765: then
114766: # We have reworked collect2
114767: :
114768: else
114769: # We have old collect2
114770: hardcode_direct_CXX=unsupported
114771: # It fails to find uninstalled libraries when the uninstalled
114772: # path is not listed in the libpath. Setting hardcode_minus_L
114773: # to unsupported forces relinking
114774: hardcode_minus_L_CXX=yes
114775: hardcode_libdir_flag_spec_CXX='-L$libdir'
114776: hardcode_libdir_separator_CXX=
114777: fi
114778: ;;
114779: esac
114780: shared_flag='-shared'
114781: if test "$aix_use_runtimelinking" = yes; then
114782: shared_flag="$shared_flag "'${wl}-G'
114783: fi
114784: else
114785: # not using gcc
114786: if test "$host_cpu" = ia64; then
114787: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
114788: # chokes on -Wl,-G. The following line is correct:
114789: shared_flag='-G'
114790: else
114791: if test "$aix_use_runtimelinking" = yes; then
114792: shared_flag='${wl}-G'
114793: else
114794: shared_flag='${wl}-bM:SRE'
114795: fi
114796: fi
114797: fi
114798:
114799: # It seems that -bexpall does not export symbols beginning with
114800: # underscore (_), so it is better to generate a list of symbols to export.
114801: always_export_symbols_CXX=yes
114802: if test "$aix_use_runtimelinking" = yes; then
114803: # Warning - without using the other runtime loading flags (-brtl),
114804: # -berok will link without error, but may produce a broken library.
114805: allow_undefined_flag_CXX='-berok'
114806: # Determine the default libpath from the value encoded in an empty executable.
114807:
114808: cat > conftest.$ac_ext <<EOF
114809: #line 114809 "configure"
114810: #include "confdefs.h"
114811: int main() {
114812: ; return 0; }
114813: EOF
114814: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
114815: (eval $ac_link) 2>&5
114816: ac_status=$?
114817: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
114818: test $ac_status = 0; } && test -s conftest${ac_exeext}; then
114819:
114820: lt_aix_libpath_sed='
114821: /Import File Strings/,/^$/ {
114822: /^0/ {
114823: s/^0 *\(.*\)$/\1/
114824: p
114825: }
114826: }'
114827: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
114828: # Check for a 64-bit object if we didn't find anything.
114829: if test -z "$aix_libpath"; then
114830: aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
114831: fi
114832: rm -rf conftest*
114833: else
114834: echo "configure: failed program was:" >&5
114835: cat conftest.$ac_ext >&6
114836: fi
114837: rm -f conftest*
114838: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
114839:
114840: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
114841:
114842: 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"
114843: else
114844: if test "$host_cpu" = ia64; then
114845: hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
114846: allow_undefined_flag_CXX="-z nodefs"
114847: 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"
114848: else
114849: # Determine the default libpath from the value encoded in an empty executable.
114850:
114851: cat > conftest.$ac_ext <<EOF
114852: #line 114852 "configure"
114853: #include "confdefs.h"
114854: int main() {
114855: ; return 0; }
114856: EOF
114857: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
114858: (eval $ac_link) 2>&5
114859: ac_status=$?
114860: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
114861: test $ac_status = 0; } && test -s conftest${ac_exeext}; then
114862:
114863: lt_aix_libpath_sed='
114864: /Import File Strings/,/^$/ {
114865: /^0/ {
114866: s/^0 *\(.*\)$/\1/
114867: p
114868: }
114869: }'
114870: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
114871: # Check for a 64-bit object if we didn't find anything.
114872: if test -z "$aix_libpath"; then
114873: aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
114874: fi
114875: rm -rf conftest*
114876: else
114877: echo "configure: failed program was:" >&5
114878: cat conftest.$ac_ext >&6
114879: fi
114880: rm -f conftest*
114881: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
114882:
114883: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
114884: # Warning - without using the other run time loading flags,
114885: # -berok will link without error, but may produce a broken library.
114886: no_undefined_flag_CXX=' ${wl}-bernotok'
114887: allow_undefined_flag_CXX=' ${wl}-berok'
114888: # Exported symbols can be pulled into shared objects from archives
114889: whole_archive_flag_spec_CXX='$convenience'
114890: archive_cmds_need_lc_CXX=yes
114891: # This is similar to how AIX traditionally builds its shared libraries.
114892: 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'
114893: fi
114894: fi
114895: ;;
114896:
114897: beos*)
114898: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
114899: allow_undefined_flag_CXX=unsupported
114900: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
114901: # support --undefined. This deserves some investigation. FIXME
114902: archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
114903: else
114904: ld_shlibs_CXX=no
114905: fi
114906: ;;
114907:
114908: chorus*)
114909: case $cc_basename in
114910: *)
114911: # FIXME: insert proper C++ library support
114912: ld_shlibs_CXX=no
114913: ;;
114914: esac
114915: ;;
114916:
114917: cygwin* | mingw* | pw32*)
114918: # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
114919: # as there is no search path for DLLs.
114920: hardcode_libdir_flag_spec_CXX='-L$libdir'
114921: allow_undefined_flag_CXX=unsupported
114922: always_export_symbols_CXX=no
114923: enable_shared_with_static_runtimes_CXX=yes
114924:
114925: if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
114926: 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'
114927: # If the export-symbols file already is a .def file (1st line
114928: # is EXPORTS), use it as is; otherwise, prepend...
114929: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
114930: cp $export_symbols $output_objdir/$soname.def;
114931: else
114932: echo EXPORTS > $output_objdir/$soname.def;
114933: cat $export_symbols >> $output_objdir/$soname.def;
114934: fi~
114935: $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'
114936: else
114937: ld_shlibs_CXX=no
114938: fi
114939: ;;
114940: darwin* | rhapsody*)
114941: archive_cmds_need_lc_CXX=no
114942: hardcode_direct_CXX=no
114943: hardcode_automatic_CXX=yes
114944: hardcode_shlibpath_var_CXX=unsupported
114945: whole_archive_flag_spec_CXX=''
114946: link_all_deplibs_CXX=yes
114947: allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
114948: if test "$GXX" = yes ; then
114949: output_verbose_link_cmd='echo'
114950: 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}"
114951: module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
114952: 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}"
114953: 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}"
114954: if test "$lt_cv_apple_cc_single_mod" != "yes"; then
114955: 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}"
114956: 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}"
114957: fi
114958: else
114959: case $cc_basename in
114960: xlc*)
114961: output_verbose_link_cmd='echo'
114962: 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'
114963: module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
114964: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
114965: 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}'
114966: 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}'
114967: ;;
114968: *)
114969: ld_shlibs_CXX=no
114970: ;;
114971: esac
114972: fi
114973: ;;
114974:
114975: dgux*)
114976: case $cc_basename in
114977: ec++*)
114978: # FIXME: insert proper C++ library support
114979: ld_shlibs_CXX=no
114980: ;;
114981: ghcx*)
114982: # Green Hills C++ Compiler
114983: # FIXME: insert proper C++ library support
114984: ld_shlibs_CXX=no
114985: ;;
114986: *)
114987: # FIXME: insert proper C++ library support
114988: ld_shlibs_CXX=no
114989: ;;
114990: esac
114991: ;;
114992: freebsd[12].*)
114993: # C++ shared libraries reported to be fairly broken before switch to ELF
114994: ld_shlibs_CXX=no
114995: ;;
114996: freebsd-elf*)
114997: archive_cmds_need_lc_CXX=no
114998: ;;
114999: freebsd* | dragonfly*)
115000: # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
115001: # conventions
115002: ld_shlibs_CXX=yes
115003: ;;
115004: gnu*)
115005: ;;
115006: hpux9*)
115007: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
115008: hardcode_libdir_separator_CXX=:
115009: export_dynamic_flag_spec_CXX='${wl}-E'
115010: hardcode_direct_CXX=yes
115011: hardcode_minus_L_CXX=yes # Not in the search PATH,
115012: # but as the default
115013: # location of the library.
115014:
115015: case $cc_basename in
115016: CC*)
115017: # FIXME: insert proper C++ library support
115018: ld_shlibs_CXX=no
115019: ;;
115020: aCC*)
115021: 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'
115022: # Commands to make compiler produce verbose output that lists
115023: # what "hidden" libraries, object files and flags are used when
115024: # linking a shared library.
115025: #
115026: # There doesn't appear to be a way to prevent this compiler from
115027: # explicitly linking system object files so we need to strip them
115028: # from the output so that they don't get included in the library
115029: # dependencies.
115030: 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'
115031: ;;
115032: *)
115033: if test "$GXX" = yes; then
115034: 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'
115035: else
115036: # FIXME: insert proper C++ library support
115037: ld_shlibs_CXX=no
115038: fi
115039: ;;
115040: esac
115041: ;;
115042: hpux10*|hpux11*)
115043: if test $with_gnu_ld = no; then
115044: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
115045: hardcode_libdir_separator_CXX=:
115046:
115047: case $host_cpu in
115048: hppa*64*|ia64*) ;;
115049: *)
115050: export_dynamic_flag_spec_CXX='${wl}-E'
115051: ;;
115052: esac
115053: fi
115054: case $host_cpu in
115055: hppa*64*|ia64*)
115056: hardcode_direct_CXX=no
115057: hardcode_shlibpath_var_CXX=no
115058: ;;
115059: *)
115060: hardcode_direct_CXX=yes
115061: hardcode_minus_L_CXX=yes # Not in the search PATH,
115062: # but as the default
115063: # location of the library.
115064: ;;
115065: esac
115066:
115067: case $cc_basename in
115068: CC*)
115069: # FIXME: insert proper C++ library support
115070: ld_shlibs_CXX=no
115071: ;;
115072: aCC*)
115073: case $host_cpu in
115074: hppa*64*)
115075: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
115076: ;;
115077: ia64*)
115078: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
115079: ;;
115080: *)
115081: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
115082: ;;
115083: esac
115084: # Commands to make compiler produce verbose output that lists
115085: # what "hidden" libraries, object files and flags are used when
115086: # linking a shared library.
115087: #
115088: # There doesn't appear to be a way to prevent this compiler from
115089: # explicitly linking system object files so we need to strip them
115090: # from the output so that they don't get included in the library
115091: # dependencies.
115092: 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'
115093: ;;
115094: *)
115095: if test "$GXX" = yes; then
115096: if test $with_gnu_ld = no; then
115097: case $host_cpu in
115098: hppa*64*)
115099: archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
115100: ;;
115101: ia64*)
115102: archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
115103: ;;
115104: *)
115105: 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'
115106: ;;
115107: esac
115108: fi
115109: else
115110: # FIXME: insert proper C++ library support
115111: ld_shlibs_CXX=no
115112: fi
115113: ;;
115114: esac
115115: ;;
115116: interix[3-9]*)
115117: hardcode_direct_CXX=no
115118: hardcode_shlibpath_var_CXX=no
115119: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
115120: export_dynamic_flag_spec_CXX='${wl}-E'
115121: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
115122: # Instead, shared libraries are loaded at an image base (0x10000000 by
115123: # default) and relocated if they conflict, which is a slow very memory
115124: # consuming and fragmenting process. To avoid this, we pick a random,
115125: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
115126: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
115127: 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'
115128: 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'
115129: ;;
115130: irix5* | irix6*)
115131: case $cc_basename in
115132: CC*)
115133: # SGI C++
115134: 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'
115135:
115136: # Archives containing C++ object files must be created using
115137: # "CC -ar", where "CC" is the IRIX C++ compiler. This is
115138: # necessary to make sure instantiated templates are included
115139: # in the archive.
115140: old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
115141: ;;
115142: *)
115143: if test "$GXX" = yes; then
115144: if test "$with_gnu_ld" = no; then
115145: 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'
115146: else
115147: 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'
115148: fi
115149: fi
115150: link_all_deplibs_CXX=yes
115151: ;;
115152: esac
115153: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
115154: hardcode_libdir_separator_CXX=:
115155: ;;
115156: linux* | k*bsd*-gnu)
115157: case $cc_basename in
115158: KCC*)
115159: # Kuck and Associates, Inc. (KAI) C++ Compiler
115160:
115161: # KCC will only create a shared library if the output file
115162: # ends with ".so" (or ".sl" for HP-UX), so rename the library
115163: # to its proper name (with version) after linking.
115164: 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'
115165: 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'
115166: # Commands to make compiler produce verbose output that lists
115167: # what "hidden" libraries, object files and flags are used when
115168: # linking a shared library.
115169: #
115170: # There doesn't appear to be a way to prevent this compiler from
115171: # explicitly linking system object files so we need to strip them
115172: # from the output so that they don't get included in the library
115173: # dependencies.
115174: 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'
115175:
115176: hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
115177: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
115178:
115179: # Archives containing C++ object files must be created using
115180: # "CC -Bstatic", where "CC" is the KAI C++ compiler.
115181: old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
115182: ;;
115183: icpc*)
115184: # Intel C++
115185: with_gnu_ld=yes
115186: # version 8.0 and above of icpc choke on multiply defined symbols
115187: # if we add $predep_objects and $postdep_objects, however 7.1 and
115188: # earlier do not add the objects themselves.
115189: case `$CC -V 2>&1` in
115190: *"Version 7."*)
115191: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
115192: 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'
115193: ;;
115194: *) # Version 8.0 or newer
115195: tmp_idyn=
115196: case $host_cpu in
115197: ia64*) tmp_idyn=' -i_dynamic';;
115198: esac
115199: archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
115200: 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'
115201: ;;
115202: esac
115203: archive_cmds_need_lc_CXX=no
115204: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
115205: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
115206: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
115207: ;;
115208: pgCC* | pgcpp*)
115209: # Portland Group C++ compiler
115210: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
115211: 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'
115212:
115213: hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
115214: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
115215: 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'
115216: ;;
115217: cxx*)
115218: # Compaq C++
115219: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
115220: 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'
115221:
115222: runpath_var=LD_RUN_PATH
115223: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
115224: hardcode_libdir_separator_CXX=:
115225:
115226: # Commands to make compiler produce verbose output that lists
115227: # what "hidden" libraries, object files and flags are used when
115228: # linking a shared library.
115229: #
115230: # There doesn't appear to be a way to prevent this compiler from
115231: # explicitly linking system object files so we need to strip them
115232: # from the output so that they don't get included in the library
115233: # dependencies.
115234: 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'
115235: ;;
115236: *)
115237: case `$CC -V 2>&1 | sed 5q` in
115238: *Sun\ C*)
115239: # Sun C++ 5.9
115240: no_undefined_flag_CXX=' -zdefs'
115241: archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
115242: 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'
115243: hardcode_libdir_flag_spec_CXX='-R$libdir'
115244: 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'
115245:
115246: # Not sure whether something based on
115247: # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
115248: # would be better.
115249: output_verbose_link_cmd='echo'
115250:
115251: # Archives containing C++ object files must be created using
115252: # "CC -xar", where "CC" is the Sun C++ compiler. This is
115253: # necessary to make sure instantiated templates are included
115254: # in the archive.
115255: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
115256: ;;
115257: esac
115258: ;;
115259: esac
115260: ;;
115261: lynxos*)
115262: # FIXME: insert proper C++ library support
115263: ld_shlibs_CXX=no
115264: ;;
115265: m88k*)
115266: # FIXME: insert proper C++ library support
115267: ld_shlibs_CXX=no
115268: ;;
115269: mvs*)
115270: case $cc_basename in
115271: cxx*)
115272: # FIXME: insert proper C++ library support
115273: ld_shlibs_CXX=no
115274: ;;
115275: *)
115276: # FIXME: insert proper C++ library support
115277: ld_shlibs_CXX=no
115278: ;;
115279: esac
115280: ;;
115281: netbsd*)
115282: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
115283: archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
115284: wlarc=
115285: hardcode_libdir_flag_spec_CXX='-R$libdir'
115286: hardcode_direct_CXX=yes
115287: hardcode_shlibpath_var_CXX=no
115288: fi
115289: # Workaround some broken pre-1.5 toolchains
115290: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
115291: ;;
115292: openbsd2*)
115293: # C++ shared libraries are fairly broken
115294: ld_shlibs_CXX=no
115295: ;;
115296: openbsd*)
115297: if test -f /usr/libexec/ld.so; then
115298: hardcode_direct_CXX=yes
115299: hardcode_shlibpath_var_CXX=no
115300: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
115301: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
115302: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
115303: archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
115304: export_dynamic_flag_spec_CXX='${wl}-E'
115305: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
115306: fi
115307: output_verbose_link_cmd='echo'
115308: else
115309: ld_shlibs_CXX=no
115310: fi
115311: ;;
115312: osf3*)
115313: case $cc_basename in
115314: KCC*)
115315: # Kuck and Associates, Inc. (KAI) C++ Compiler
115316:
115317: # KCC will only create a shared library if the output file
115318: # ends with ".so" (or ".sl" for HP-UX), so rename the library
115319: # to its proper name (with version) after linking.
115320: 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'
115321:
115322: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
115323: hardcode_libdir_separator_CXX=:
115324:
115325: # Archives containing C++ object files must be created using
115326: # "CC -Bstatic", where "CC" is the KAI C++ compiler.
115327: old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
115328:
115329: ;;
115330: RCC*)
115331: # Rational C++ 2.4.1
115332: # FIXME: insert proper C++ library support
115333: ld_shlibs_CXX=no
115334: ;;
115335: cxx*)
115336: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
115337: 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'
115338:
115339: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
115340: hardcode_libdir_separator_CXX=:
115341:
115342: # Commands to make compiler produce verbose output that lists
115343: # what "hidden" libraries, object files and flags are used when
115344: # linking a shared library.
115345: #
115346: # There doesn't appear to be a way to prevent this compiler from
115347: # explicitly linking system object files so we need to strip them
115348: # from the output so that they don't get included in the library
115349: # dependencies.
115350: 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'
115351: ;;
115352: *)
115353: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
115354: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
115355: 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'
115356:
115357: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
115358: hardcode_libdir_separator_CXX=:
115359:
115360: # Commands to make compiler produce verbose output that lists
115361: # what "hidden" libraries, object files and flags are used when
115362: # linking a shared library.
115363: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
115364:
115365: else
115366: # FIXME: insert proper C++ library support
115367: ld_shlibs_CXX=no
115368: fi
115369: ;;
115370: esac
115371: ;;
115372: osf4* | osf5*)
115373: case $cc_basename in
115374: KCC*)
115375: # Kuck and Associates, Inc. (KAI) C++ Compiler
115376:
115377: # KCC will only create a shared library if the output file
115378: # ends with ".so" (or ".sl" for HP-UX), so rename the library
115379: # to its proper name (with version) after linking.
115380: 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'
115381:
115382: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
115383: hardcode_libdir_separator_CXX=:
115384:
115385: # Archives containing C++ object files must be created using
115386: # the KAI C++ compiler.
115387: old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
115388: ;;
115389: RCC*)
115390: # Rational C++ 2.4.1
115391: # FIXME: insert proper C++ library support
115392: ld_shlibs_CXX=no
115393: ;;
115394: cxx*)
115395: allow_undefined_flag_CXX=' -expect_unresolved \*'
115396: 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'
115397: archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
115398: echo "-hidden">> $lib.exp~
115399: $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~
115400: $rm $lib.exp'
115401:
115402: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
115403: hardcode_libdir_separator_CXX=:
115404:
115405: # Commands to make compiler produce verbose output that lists
115406: # what "hidden" libraries, object files and flags are used when
115407: # linking a shared library.
115408: #
115409: # There doesn't appear to be a way to prevent this compiler from
115410: # explicitly linking system object files so we need to strip them
115411: # from the output so that they don't get included in the library
115412: # dependencies.
115413: 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'
115414: ;;
115415: *)
115416: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
115417: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
115418: 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'
115419:
115420: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
115421: hardcode_libdir_separator_CXX=:
115422:
115423: # Commands to make compiler produce verbose output that lists
115424: # what "hidden" libraries, object files and flags are used when
115425: # linking a shared library.
115426: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
115427:
115428: else
115429: # FIXME: insert proper C++ library support
115430: ld_shlibs_CXX=no
115431: fi
115432: ;;
115433: esac
115434: ;;
115435: psos*)
115436: # FIXME: insert proper C++ library support
115437: ld_shlibs_CXX=no
115438: ;;
115439: sunos4*)
115440: case $cc_basename in
115441: CC*)
115442: # Sun C++ 4.x
115443: # FIXME: insert proper C++ library support
115444: ld_shlibs_CXX=no
115445: ;;
115446: lcc*)
115447: # Lucid
115448: # FIXME: insert proper C++ library support
115449: ld_shlibs_CXX=no
115450: ;;
115451: *)
115452: # FIXME: insert proper C++ library support
115453: ld_shlibs_CXX=no
115454: ;;
115455: esac
115456: ;;
115457: solaris*)
115458: case $cc_basename in
115459: CC*)
115460: # Sun C++ 4.2, 5.x and Centerline C++
115461: archive_cmds_need_lc_CXX=yes
115462: no_undefined_flag_CXX=' -zdefs'
115463: archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
115464: archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
115465: $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'
115466:
115467: hardcode_libdir_flag_spec_CXX='-R$libdir'
115468: hardcode_shlibpath_var_CXX=no
115469: case $host_os in
115470: solaris2.[0-5] | solaris2.[0-5].*) ;;
115471: *)
115472: # The compiler driver will combine and reorder linker options,
115473: # but understands `-z linker_flag'.
115474: # Supported since Solaris 2.6 (maybe 2.5.1?)
115475: whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
115476: ;;
115477: esac
115478: link_all_deplibs_CXX=yes
115479:
115480: output_verbose_link_cmd='echo'
115481:
115482: # Archives containing C++ object files must be created using
115483: # "CC -xar", where "CC" is the Sun C++ compiler. This is
115484: # necessary to make sure instantiated templates are included
115485: # in the archive.
115486: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
115487: ;;
115488: gcx*)
115489: # Green Hills C++ Compiler
115490: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
115491:
115492: # The C++ compiler must be used to create the archive.
115493: old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
115494: ;;
115495: *)
115496: # GNU C++ compiler with Solaris linker
115497: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
115498: no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
115499: if $CC --version | grep -v '^2\.7' > /dev/null; then
115500: archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
115501: archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
115502: $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
115503:
115504: # Commands to make compiler produce verbose output that lists
115505: # what "hidden" libraries, object files and flags are used when
115506: # linking a shared library.
115507: output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
115508: else
115509: # g++ 2.7 appears to require `-G' NOT `-shared' on this
115510: # platform.
115511: archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
115512: archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
115513: $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
115514:
115515: # Commands to make compiler produce verbose output that lists
115516: # what "hidden" libraries, object files and flags are used when
115517: # linking a shared library.
115518: output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
115519: fi
115520:
115521: hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
115522: case $host_os in
115523: solaris2.[0-5] | solaris2.[0-5].*) ;;
115524: *)
115525: whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
115526: ;;
115527: esac
115528: fi
115529: ;;
115530: esac
115531: ;;
115532: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
115533: no_undefined_flag_CXX='${wl}-z,text'
115534: archive_cmds_need_lc_CXX=no
115535: hardcode_shlibpath_var_CXX=no
115536: runpath_var='LD_RUN_PATH'
115537:
115538: case $cc_basename in
115539: CC*)
115540: archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
115541: archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
115542: ;;
115543: *)
115544: archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
115545: archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
115546: ;;
115547: esac
115548: ;;
115549: sysv5* | sco3.2v5* | sco5v6*)
115550: # Note: We can NOT use -z defs as we might desire, because we do not
115551: # link with -lc, and that would cause any symbols used from libc to
115552: # always be unresolved, which means just about no library would
115553: # ever link correctly. If we're not using GNU ld we use -z text
115554: # though, which does catch some bad symbols but isn't as heavy-handed
115555: # as -z defs.
115556: # For security reasons, it is highly recommended that you always
115557: # use absolute paths for naming shared libraries, and exclude the
115558: # DT_RUNPATH tag from executables and libraries. But doing so
115559: # requires that you compile everything twice, which is a pain.
115560: # So that behaviour is only enabled if SCOABSPATH is set to a
115561: # non-empty value in the environment. Most likely only useful for
115562: # creating official distributions of packages.
115563: # This is a hack until libtool officially supports absolute path
115564: # names for shared libraries.
115565: no_undefined_flag_CXX='${wl}-z,text'
115566: allow_undefined_flag_CXX='${wl}-z,nodefs'
115567: archive_cmds_need_lc_CXX=no
115568: hardcode_shlibpath_var_CXX=no
115569: hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
115570: hardcode_libdir_separator_CXX=':'
115571: link_all_deplibs_CXX=yes
115572: export_dynamic_flag_spec_CXX='${wl}-Bexport'
115573: runpath_var='LD_RUN_PATH'
115574:
115575: case $cc_basename in
115576: CC*)
115577: archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
115578: archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
115579: ;;
115580: *)
115581: archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
115582: archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
115583: ;;
115584: esac
115585: ;;
115586: tandem*)
115587: case $cc_basename in
115588: NCC*)
115589: # NonStop-UX NCC 3.20
115590: # FIXME: insert proper C++ library support
115591: ld_shlibs_CXX=no
115592: ;;
115593: *)
115594: # FIXME: insert proper C++ library support
115595: ld_shlibs_CXX=no
115596: ;;
115597: esac
115598: ;;
115599: vxworks*)
115600: # FIXME: insert proper C++ library support
115601: ld_shlibs_CXX=no
115602: ;;
115603: *)
115604: # FIXME: insert proper C++ library support
115605: ld_shlibs_CXX=no
115606: ;;
115607: esac
115608: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
115609: $as_echo "$ld_shlibs_CXX" >&6; }
115610: test "$ld_shlibs_CXX" = no && can_build_shared=no
115611:
115612: GCC_CXX="$GXX"
115613: LD_CXX="$LD"
115614:
115615: ## CAVEAT EMPTOR:
115616: ## There is no encapsulation within the following macros, do not change
115617: ## the running order or otherwise move them around unless you know exactly
115618: ## what you are doing...
115619: cat > conftest.$ac_ext <<EOF
115620: class Foo
115621: {
115622: public:
115623: Foo (void) { a = 0; }
115624: private:
115625: int a;
115626: };
115627: EOF
115628:
115629: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
115630: (eval $ac_compile) 2>&5
115631: ac_status=$?
115632: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
115633: test $ac_status = 0; }; then
115634: # Parse the compiler output and extract the necessary
115635: # objects, libraries and library flags.
115636:
115637: # Sentinel used to keep track of whether or not we are before
115638: # the conftest object file.
115639: pre_test_object_deps_done=no
115640:
115641: # The `*' in the case matches for architectures that use `case' in
115642: # $output_verbose_cmd can trigger glob expansion during the loop
115643: # eval without this substitution.
115644: output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
115645:
115646: for p in `eval $output_verbose_link_cmd`; do
115647: case $p in
115648:
115649: -L* | -R* | -l*)
115650: # Some compilers place space between "-{L,R}" and the path.
115651: # Remove the space.
115652: if test $p = "-L" \
115653: || test $p = "-R"; then
115654: prev=$p
115655: continue
115656: else
115657: prev=
115658: fi
115659:
115660: if test "$pre_test_object_deps_done" = no; then
115661: case $p in
115662: -L* | -R*)
115663: # Internal compiler library paths should come after those
115664: # provided the user. The postdeps already come after the
115665: # user supplied libs so there is no need to process them.
115666: if test -z "$compiler_lib_search_path_CXX"; then
115667: compiler_lib_search_path_CXX="${prev}${p}"
115668: else
115669: compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
115670: fi
115671: ;;
115672: # The "-l" case would never come before the object being
115673: # linked, so don't bother handling this case.
115674: esac
115675: else
115676: if test -z "$postdeps_CXX"; then
115677: postdeps_CXX="${prev}${p}"
115678: else
115679: postdeps_CXX="${postdeps_CXX} ${prev}${p}"
115680: fi
115681: fi
115682: ;;
115683:
115684: *.$objext)
115685: # This assumes that the test object file only shows up
115686: # once in the compiler output.
115687: if test "$p" = "conftest.$objext"; then
115688: pre_test_object_deps_done=yes
115689: continue
115690: fi
115691:
115692: if test "$pre_test_object_deps_done" = no; then
115693: if test -z "$predep_objects_CXX"; then
115694: predep_objects_CXX="$p"
115695: else
115696: predep_objects_CXX="$predep_objects_CXX $p"
115697: fi
115698: else
115699: if test -z "$postdep_objects_CXX"; then
115700: postdep_objects_CXX="$p"
115701: else
115702: postdep_objects_CXX="$postdep_objects_CXX $p"
115703: fi
115704: fi
115705: ;;
115706:
115707: *) ;; # Ignore the rest.
115708:
115709: esac
115710: done
115711:
115712: # Clean up.
115713: rm -f a.out a.exe
115714: else
115715: echo "libtool.m4: error: problem compiling CXX test program"
115716: fi
115717:
115718: $rm -f confest.$objext
115719:
115720: compiler_lib_search_dirs_CXX=
115721: if test -n "$compiler_lib_search_path_CXX"; then
115722: compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
115723: fi
115724:
115725: # PORTME: override above test on systems where it is broken
115726: case $host_os in
115727: interix[3-9]*)
115728: # Interix 3.5 installs completely hosed .la files for C++, so rather than
115729: # hack all around it, let's just trust "g++" to DTRT.
115730: predep_objects_CXX=
115731: postdep_objects_CXX=
115732: postdeps_CXX=
115733: ;;
115734:
115735: linux*)
115736: case `$CC -V 2>&1 | sed 5q` in
115737: *Sun\ C*)
115738: # Sun C++ 5.9
115739: #
115740: # The more standards-conforming stlport4 library is
115741: # incompatible with the Cstd library. Avoid specifying
115742: # it if it's in CXXFLAGS. Ignore libCrun as
115743: # -library=stlport4 depends on it.
115744: case " $CXX $CXXFLAGS " in
115745: *" -library=stlport4 "*)
115746: solaris_use_stlport4=yes
115747: ;;
115748: esac
115749: if test "$solaris_use_stlport4" != yes; then
115750: postdeps_CXX='-library=Cstd -library=Crun'
115751: fi
115752: ;;
115753: esac
115754: ;;
115755:
115756: solaris*)
115757: case $cc_basename in
115758: CC*)
115759: # The more standards-conforming stlport4 library is
115760: # incompatible with the Cstd library. Avoid specifying
115761: # it if it's in CXXFLAGS. Ignore libCrun as
115762: # -library=stlport4 depends on it.
115763: case " $CXX $CXXFLAGS " in
115764: *" -library=stlport4 "*)
115765: solaris_use_stlport4=yes
115766: ;;
115767: esac
115768:
115769: # Adding this requires a known-good setup of shared libraries for
115770: # Sun compiler versions before 5.6, else PIC objects from an old
115771: # archive will be linked into the output, leading to subtle bugs.
115772: if test "$solaris_use_stlport4" != yes; then
115773: postdeps_CXX='-library=Cstd -library=Crun'
115774: fi
115775: ;;
115776: esac
115777: ;;
115778: esac
115779:
115780: case " $postdeps_CXX " in
115781: *" -lc "*) archive_cmds_need_lc_CXX=no ;;
115782: esac
115783:
115784: lt_prog_compiler_wl_CXX=
115785: lt_prog_compiler_pic_CXX=
115786: lt_prog_compiler_static_CXX=
115787:
115788: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
115789: $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
115790:
115791: # C++ specific cases for pic, static, wl, etc.
115792: if test "$GXX" = yes; then
115793: lt_prog_compiler_wl_CXX='-Wl,'
115794: lt_prog_compiler_static_CXX='-static'
115795:
115796: case $host_os in
115797: aix*)
115798: # All AIX code is PIC.
115799: if test "$host_cpu" = ia64; then
115800: # AIX 5 now supports IA64 processor
115801: lt_prog_compiler_static_CXX='-Bstatic'
115802: fi
115803: ;;
115804: amigaos*)
115805: # FIXME: we need at least 68020 code to build shared libraries, but
115806: # adding the `-m68020' flag to GCC prevents building anything better,
115807: # like `-m68040'.
115808: lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
115809: ;;
115810: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
115811: # PIC is the default for these OSes.
115812: ;;
115813: mingw* | cygwin* | os2* | pw32*)
115814: # This hack is so that the source file can tell whether it is being
115815: # built for inclusion in a dll (and should export symbols for example).
115816: # Although the cygwin gcc ignores -fPIC, still need this for old-style
115817: # (--disable-auto-import) libraries
115818: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
115819: ;;
115820: darwin* | rhapsody*)
115821: # PIC is the default on this platform
115822: # Common symbols not allowed in MH_DYLIB files
115823: lt_prog_compiler_pic_CXX='-fno-common'
115824: ;;
115825: *djgpp*)
115826: # DJGPP does not support shared libraries at all
115827: lt_prog_compiler_pic_CXX=
115828: ;;
115829: interix[3-9]*)
115830: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
115831: # Instead, we relocate shared libraries at runtime.
115832: ;;
115833: sysv4*MP*)
115834: if test -d /usr/nec; then
115835: lt_prog_compiler_pic_CXX=-Kconform_pic
115836: fi
115837: ;;
115838: hpux*)
115839: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
115840: # not for PA HP-UX.
115841: case $host_cpu in
115842: hppa*64*|ia64*)
115843: ;;
115844: *)
115845: lt_prog_compiler_pic_CXX='-fPIC'
115846: ;;
115847: esac
115848: ;;
115849: *)
115850: lt_prog_compiler_pic_CXX='-fPIC'
115851: ;;
115852: esac
115853: else
115854: case $host_os in
115855: aix[4-9]*)
115856: # All AIX code is PIC.
115857: if test "$host_cpu" = ia64; then
115858: # AIX 5 now supports IA64 processor
115859: lt_prog_compiler_static_CXX='-Bstatic'
115860: else
115861: lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
115862: fi
115863: ;;
115864: chorus*)
115865: case $cc_basename in
115866: cxch68*)
115867: # Green Hills C++ Compiler
115868: # _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"
115869: ;;
115870: esac
115871: ;;
115872: darwin*)
115873: # PIC is the default on this platform
115874: # Common symbols not allowed in MH_DYLIB files
115875: case $cc_basename in
115876: xlc*)
115877: lt_prog_compiler_pic_CXX='-qnocommon'
115878: lt_prog_compiler_wl_CXX='-Wl,'
115879: ;;
115880: esac
115881: ;;
115882: dgux*)
115883: case $cc_basename in
115884: ec++*)
115885: lt_prog_compiler_pic_CXX='-KPIC'
115886: ;;
115887: ghcx*)
115888: # Green Hills C++ Compiler
115889: lt_prog_compiler_pic_CXX='-pic'
115890: ;;
115891: *)
115892: ;;
115893: esac
115894: ;;
115895: freebsd* | dragonfly*)
115896: # FreeBSD uses GNU C++
115897: ;;
115898: hpux9* | hpux10* | hpux11*)
115899: case $cc_basename in
115900: CC*)
115901: lt_prog_compiler_wl_CXX='-Wl,'
115902: lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
115903: if test "$host_cpu" != ia64; then
115904: lt_prog_compiler_pic_CXX='+Z'
115905: fi
115906: ;;
115907: aCC*)
115908: lt_prog_compiler_wl_CXX='-Wl,'
115909: lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
115910: case $host_cpu in
115911: hppa*64*|ia64*)
115912: # +Z the default
115913: ;;
115914: *)
115915: lt_prog_compiler_pic_CXX='+Z'
115916: ;;
115917: esac
115918: ;;
115919: *)
115920: ;;
115921: esac
115922: ;;
115923: interix*)
115924: # This is c89, which is MS Visual C++ (no shared libs)
115925: # Anyone wants to do a port?
115926: ;;
115927: irix5* | irix6* | nonstopux*)
115928: case $cc_basename in
115929: CC*)
115930: lt_prog_compiler_wl_CXX='-Wl,'
115931: lt_prog_compiler_static_CXX='-non_shared'
115932: # CC pic flag -KPIC is the default.
115933: ;;
115934: *)
115935: ;;
115936: esac
115937: ;;
115938: linux* | k*bsd*-gnu)
115939: case $cc_basename in
115940: KCC*)
115941: # KAI C++ Compiler
115942: lt_prog_compiler_wl_CXX='--backend -Wl,'
115943: lt_prog_compiler_pic_CXX='-fPIC'
115944: ;;
115945: ecpc*)
115946: # old Intel C++ for x86_64 which still supported -KPIC.
115947: lt_prog_compiler_wl_CXX='-Wl,'
115948: lt_prog_compiler_pic_CXX='-KPIC'
115949: lt_prog_compiler_static_CXX='-static'
115950: ;;
115951: icpc*)
115952: # Intel C++, used to be incompatible with GCC.
115953: lt_prog_compiler_wl_CXX='-Wl,'
115954: lt_prog_compiler_pic_CXX='-fPIC'
115955: lt_prog_compiler_static_CXX='-static'
115956: ;;
115957: pgCC* | pgcpp*)
115958: # Portland Group C++ compiler.
115959: lt_prog_compiler_wl_CXX='-Wl,'
115960: lt_prog_compiler_pic_CXX='-fpic'
115961: lt_prog_compiler_static_CXX='-Bstatic'
115962: ;;
115963: cxx*)
115964: # Compaq C++
115965: # Make sure the PIC flag is empty. It appears that all Alpha
115966: # Linux and Compaq Tru64 Unix objects are PIC.
115967: lt_prog_compiler_pic_CXX=
115968: lt_prog_compiler_static_CXX='-non_shared'
115969: ;;
115970: *)
115971: case `$CC -V 2>&1 | sed 5q` in
115972: *Sun\ C*)
115973: # Sun C++ 5.9
115974: lt_prog_compiler_pic_CXX='-KPIC'
115975: lt_prog_compiler_static_CXX='-Bstatic'
115976: lt_prog_compiler_wl_CXX='-Qoption ld '
115977: ;;
115978: esac
115979: ;;
115980: esac
115981: ;;
115982: lynxos*)
115983: ;;
115984: m88k*)
115985: ;;
115986: mvs*)
115987: case $cc_basename in
115988: cxx*)
115989: lt_prog_compiler_pic_CXX='-W c,exportall'
115990: ;;
115991: *)
115992: ;;
115993: esac
115994: ;;
115995: netbsd*)
115996: ;;
115997: osf3* | osf4* | osf5*)
115998: case $cc_basename in
115999: KCC*)
116000: lt_prog_compiler_wl_CXX='--backend -Wl,'
116001: ;;
116002: RCC*)
116003: # Rational C++ 2.4.1
116004: lt_prog_compiler_pic_CXX='-pic'
116005: ;;
116006: cxx*)
116007: # Digital/Compaq C++
116008: lt_prog_compiler_wl_CXX='-Wl,'
116009: # Make sure the PIC flag is empty. It appears that all Alpha
116010: # Linux and Compaq Tru64 Unix objects are PIC.
116011: lt_prog_compiler_pic_CXX=
116012: lt_prog_compiler_static_CXX='-non_shared'
116013: ;;
116014: *)
116015: ;;
116016: esac
116017: ;;
116018: psos*)
116019: ;;
116020: solaris*)
116021: case $cc_basename in
116022: CC*)
116023: # Sun C++ 4.2, 5.x and Centerline C++
116024: lt_prog_compiler_pic_CXX='-KPIC'
116025: lt_prog_compiler_static_CXX='-Bstatic'
116026: lt_prog_compiler_wl_CXX='-Qoption ld '
116027: ;;
116028: gcx*)
116029: # Green Hills C++ Compiler
116030: lt_prog_compiler_pic_CXX='-PIC'
116031: ;;
116032: *)
116033: ;;
116034: esac
116035: ;;
116036: sunos4*)
116037: case $cc_basename in
116038: CC*)
116039: # Sun C++ 4.x
116040: lt_prog_compiler_pic_CXX='-pic'
116041: lt_prog_compiler_static_CXX='-Bstatic'
116042: ;;
116043: lcc*)
116044: # Lucid
116045: lt_prog_compiler_pic_CXX='-pic'
116046: ;;
116047: *)
116048: ;;
116049: esac
116050: ;;
116051: tandem*)
116052: case $cc_basename in
116053: NCC*)
116054: # NonStop-UX NCC 3.20
116055: lt_prog_compiler_pic_CXX='-KPIC'
116056: ;;
116057: *)
116058: ;;
116059: esac
116060: ;;
116061: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
116062: case $cc_basename in
116063: CC*)
116064: lt_prog_compiler_wl_CXX='-Wl,'
116065: lt_prog_compiler_pic_CXX='-KPIC'
116066: lt_prog_compiler_static_CXX='-Bstatic'
116067: ;;
116068: esac
116069: ;;
116070: vxworks*)
116071: ;;
116072: *)
116073: lt_prog_compiler_can_build_shared_CXX=no
116074: ;;
116075: esac
116076: fi
116077:
116078: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
116079: $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
116080:
116081: #
116082: # Check to make sure the PIC flag actually works.
116083: #
116084: if test -n "$lt_prog_compiler_pic_CXX"; then
116085:
116086: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
116087: $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
116088: if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
116089: $as_echo_n "(cached) " >&6
116090: else
116091: lt_cv_prog_compiler_pic_works_CXX=no
116092: ac_outfile=conftest.$ac_objext
116093: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
116094: lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
116095: # Insert the option either (1) after the last *FLAGS variable, or
116096: # (2) before a word containing "conftest.", or (3) at the end.
116097: # Note that $ac_compile itself does not contain backslashes and begins
116098: # with a dollar sign (not a hyphen), so the echo should work correctly.
116099: # The option is referenced via a variable to avoid confusing sed.
116100: lt_compile=`echo "$ac_compile" | $SED \
116101: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
116102: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
116103: -e 's:$: $lt_compiler_flag:'`
116104: (eval echo "\"configure:116104: $lt_compile\"" >&5)
116105: (eval "$lt_compile" 2>conftest.err)
116106: ac_status=$?
116107: cat conftest.err >&5
116108: echo "configure:116108: \$? = $ac_status" >&5
116109: if (exit $ac_status) && test -s "$ac_outfile"; then
116110: # The compiler can only warn and ignore the option if not recognized
116111: # So say no if there are warnings other than the usual output.
116112: $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
116113: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
116114: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
116115: lt_cv_prog_compiler_pic_works_CXX=yes
116116: fi
116117: fi
116118: $rm conftest*
116119:
116120: fi
116121: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
116122: $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
116123:
116124: if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
116125: case $lt_prog_compiler_pic_CXX in
116126: "" | " "*) ;;
116127: *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
116128: esac
116129: else
116130: lt_prog_compiler_pic_CXX=
116131: lt_prog_compiler_can_build_shared_CXX=no
116132: fi
116133:
116134: fi
116135: case $host_os in
116136: # For platforms which do not support PIC, -DPIC is meaningless:
116137: *djgpp*)
116138: lt_prog_compiler_pic_CXX=
116139: ;;
116140: *)
116141: lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
116142: ;;
116143: esac
116144:
116145: #
116146: # Check to make sure the static flag actually works.
116147: #
116148: wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
116149: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
116150: $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
116151: if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
116152: $as_echo_n "(cached) " >&6
116153: else
116154: lt_cv_prog_compiler_static_works_CXX=no
116155: save_LDFLAGS="$LDFLAGS"
116156: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
116157: echo "$lt_simple_link_test_code" > conftest.$ac_ext
116158: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
116159: # The linker can only warn and ignore the option if not recognized
116160: # So say no if there are warnings
116161: if test -s conftest.err; then
116162: # Append any errors to the config.log.
116163: cat conftest.err 1>&5
116164: $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
116165: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
116166: if diff conftest.exp conftest.er2 >/dev/null; then
116167: lt_cv_prog_compiler_static_works_CXX=yes
116168: fi
116169: else
116170: lt_cv_prog_compiler_static_works_CXX=yes
116171: fi
116172: fi
116173: $rm -r conftest*
116174: LDFLAGS="$save_LDFLAGS"
116175:
116176: fi
116177: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
116178: $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
116179:
116180: if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
116181: :
116182: else
116183: lt_prog_compiler_static_CXX=
116184: fi
116185:
116186:
116187: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
116188: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
116189: if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
116190: $as_echo_n "(cached) " >&6
116191: else
116192: lt_cv_prog_compiler_c_o_CXX=no
116193: $rm -r conftest 2>/dev/null
116194: mkdir conftest
116195: cd conftest
116196: mkdir out
116197: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
116198:
116199: lt_compiler_flag="-o out/conftest2.$ac_objext"
116200: # Insert the option either (1) after the last *FLAGS variable, or
116201: # (2) before a word containing "conftest.", or (3) at the end.
116202: # Note that $ac_compile itself does not contain backslashes and begins
116203: # with a dollar sign (not a hyphen), so the echo should work correctly.
116204: lt_compile=`echo "$ac_compile" | $SED \
116205: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
116206: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
116207: -e 's:$: $lt_compiler_flag:'`
116208: (eval echo "\"configure:116208: $lt_compile\"" >&5)
116209: (eval "$lt_compile" 2>out/conftest.err)
116210: ac_status=$?
116211: cat out/conftest.err >&5
116212: echo "configure:116212: \$? = $ac_status" >&5
116213: if (exit $ac_status) && test -s out/conftest2.$ac_objext
116214: then
116215: # The compiler can only warn and ignore the option if not recognized
116216: # So say no if there are warnings
116217: $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
116218: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
116219: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
116220: lt_cv_prog_compiler_c_o_CXX=yes
116221: fi
116222: fi
116223: chmod u+w . 2>&5
116224: $rm conftest*
116225: # SGI C++ compiler will create directory out/ii_files/ for
116226: # template instantiation
116227: test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
116228: $rm out/* && rmdir out
116229: cd ..
116230: rmdir conftest
116231: $rm conftest*
116232:
116233: fi
116234: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
116235: $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
116236:
116237:
116238: hard_links="nottested"
116239: if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
116240: # do not overwrite the value of need_locks provided by the user
116241: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
116242: $as_echo_n "checking if we can lock with hard links... " >&6; }
116243: hard_links=yes
116244: $rm conftest*
116245: ln conftest.a conftest.b 2>/dev/null && hard_links=no
116246: touch conftest.a
116247: ln conftest.a conftest.b 2>&5 || hard_links=no
116248: ln conftest.a conftest.b 2>/dev/null && hard_links=no
116249: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
116250: $as_echo "$hard_links" >&6; }
116251: if test "$hard_links" = no; then
116252: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
116253: $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
116254: need_locks=warn
116255: fi
116256: else
116257: need_locks=no
116258: fi
116259:
116260: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
116261: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
116262:
116263: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
116264: case $host_os in
116265: aix[4-9]*)
116266: # If we're using GNU nm, then we don't want the "-C" option.
116267: # -C means demangle to AIX nm, but means don't demangle with GNU nm
116268: if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
116269: 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'
116270: else
116271: 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'
116272: fi
116273: ;;
116274: pw32*)
116275: export_symbols_cmds_CXX="$ltdll_cmds"
116276: ;;
116277: cygwin* | mingw*)
116278: 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'
116279: ;;
116280: *)
116281: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
116282: ;;
116283: esac
116284: exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
116285:
116286: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
116287: $as_echo "$ld_shlibs_CXX" >&6; }
116288: test "$ld_shlibs_CXX" = no && can_build_shared=no
116289:
116290: #
116291: # Do we need to explicitly link libc?
116292: #
116293: case "x$archive_cmds_need_lc_CXX" in
116294: x|xyes)
116295: # Assume -lc should be added
116296: archive_cmds_need_lc_CXX=yes
116297:
116298: if test "$enable_shared" = yes && test "$GCC" = yes; then
116299: case $archive_cmds_CXX in
116300: *'~'*)
116301: # FIXME: we may have to deal with multi-command sequences.
116302: ;;
116303: '$CC '*)
116304: # Test whether the compiler implicitly links with -lc since on some
116305: # systems, -lgcc has to come before -lc. If gcc already passes -lc
116306: # to ld, don't add -lc before -lgcc.
116307: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
116308: $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
116309: $rm conftest*
116310: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
116311:
116312: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
116313: (eval $ac_compile) 2>&5
116314: ac_status=$?
116315: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
116316: test $ac_status = 0; } 2>conftest.err; then
116317: soname=conftest
116318: lib=conftest
116319: libobjs=conftest.$ac_objext
116320: deplibs=
116321: wl=$lt_prog_compiler_wl_CXX
116322: pic_flag=$lt_prog_compiler_pic_CXX
116323: compiler_flags=-v
116324: linker_flags=-v
116325: verstring=
116326: output_objdir=.
116327: libname=conftest
116328: lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
116329: allow_undefined_flag_CXX=
116330: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
116331: (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
116332: ac_status=$?
116333: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
116334: test $ac_status = 0; }
116335: then
116336: archive_cmds_need_lc_CXX=no
116337: else
116338: archive_cmds_need_lc_CXX=yes
116339: fi
116340: allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
116341: else
116342: cat conftest.err 1>&5
116343: fi
116344: $rm conftest*
116345: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
116346: $as_echo "$archive_cmds_need_lc_CXX" >&6; }
116347: ;;
116348: esac
116349: fi
116350: ;;
116351: esac
116352:
116353: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
116354: $as_echo_n "checking dynamic linker characteristics... " >&6; }
116355: library_names_spec=
116356: libname_spec='lib$name'
116357: soname_spec=
116358: shrext_cmds=".so"
116359: postinstall_cmds=
116360: postuninstall_cmds=
116361: finish_cmds=
116362: finish_eval=
116363: shlibpath_var=
116364: shlibpath_overrides_runpath=unknown
116365: version_type=none
116366: dynamic_linker="$host_os ld.so"
116367: sys_lib_dlsearch_path_spec="/lib /usr/lib"
116368:
116369: need_lib_prefix=unknown
116370: hardcode_into_libs=no
116371:
116372: # when you set need_version to no, make sure it does not cause -set_version
116373: # flags to be left without arguments
116374: need_version=unknown
116375:
116376: case $host_os in
116377: aix3*)
116378: version_type=linux
116379: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
116380: shlibpath_var=LIBPATH
116381:
116382: # AIX 3 has no versioning support, so we append a major version to the name.
116383: soname_spec='${libname}${release}${shared_ext}$major'
116384: ;;
116385:
116386: aix[4-9]*)
116387: version_type=linux
116388: need_lib_prefix=no
116389: need_version=no
116390: hardcode_into_libs=yes
116391: if test "$host_cpu" = ia64; then
116392: # AIX 5 supports IA64
116393: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
116394: shlibpath_var=LD_LIBRARY_PATH
116395: else
116396: # With GCC up to 2.95.x, collect2 would create an import file
116397: # for dependence libraries. The import file would start with
116398: # the line `#! .'. This would cause the generated library to
116399: # depend on `.', always an invalid library. This was fixed in
116400: # development snapshots of GCC prior to 3.0.
116401: case $host_os in
116402: aix4 | aix4.[01] | aix4.[01].*)
116403: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
116404: echo ' yes '
116405: echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
116406: :
116407: else
116408: can_build_shared=no
116409: fi
116410: ;;
116411: esac
116412: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
116413: # soname into executable. Probably we can add versioning support to
116414: # collect2, so additional links can be useful in future.
116415: if test "$aix_use_runtimelinking" = yes; then
116416: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
116417: # instead of lib<name>.a to let people know that these are not
116418: # typical AIX shared libraries.
116419: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
116420: else
116421: # We preserve .a as extension for shared libraries through AIX4.2
116422: # and later when we are not doing run time linking.
116423: library_names_spec='${libname}${release}.a $libname.a'
116424: soname_spec='${libname}${release}${shared_ext}$major'
116425: fi
116426: shlibpath_var=LIBPATH
116427: fi
116428: ;;
116429:
116430: amigaos*)
116431: library_names_spec='$libname.ixlibrary $libname.a'
116432: # Create ${libname}_ixlibrary.a entries in /sys/libs.
116433: 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'
116434: ;;
116435:
116436: beos*)
116437: library_names_spec='${libname}${shared_ext}'
116438: dynamic_linker="$host_os ld.so"
116439: shlibpath_var=LIBRARY_PATH
116440: ;;
116441:
116442: bsdi[45]*)
116443: version_type=linux
116444: need_version=no
116445: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
116446: soname_spec='${libname}${release}${shared_ext}$major'
116447: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
116448: shlibpath_var=LD_LIBRARY_PATH
116449: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
116450: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
116451: # the default ld.so.conf also contains /usr/contrib/lib and
116452: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
116453: # libtool to hard-code these into programs
116454: ;;
116455:
116456: cygwin* | mingw* | pw32*)
116457: version_type=windows
116458: shrext_cmds=".dll"
116459: need_version=no
116460: need_lib_prefix=no
116461:
116462: case $GCC,$host_os in
116463: yes,cygwin* | yes,mingw* | yes,pw32*)
116464: library_names_spec='$libname.dll.a'
116465: # DLL is installed to $(libdir)/../bin by postinstall_cmds
116466: postinstall_cmds='base_file=`basename \${file}`~
116467: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
116468: dldir=$destdir/`dirname \$dlpath`~
116469: test -d \$dldir || mkdir -p \$dldir~
116470: $install_prog $dir/$dlname \$dldir/$dlname~
116471: chmod a+x \$dldir/$dlname'
116472: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
116473: dlpath=$dir/\$dldll~
116474: $rm \$dlpath'
116475: shlibpath_overrides_runpath=yes
116476:
116477: case $host_os in
116478: cygwin*)
116479: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
116480: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
116481: sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
116482: ;;
116483: mingw*)
116484: # MinGW DLLs use traditional 'lib' prefix
116485: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
116486: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
116487: if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
116488: # It is most probably a Windows format PATH printed by
116489: # mingw gcc, but we are running on Cygwin. Gcc prints its search
116490: # path with ; separators, and with drive letters. We can handle the
116491: # drive letters (cygwin fileutils understands them), so leave them,
116492: # especially as we might pass files found there to a mingw objdump,
116493: # which wouldn't understand a cygwinified path. Ahh.
116494: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
116495: else
116496: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
116497: fi
116498: ;;
116499: pw32*)
116500: # pw32 DLLs use 'pw' prefix rather than 'lib'
116501: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
116502: ;;
116503: esac
116504: ;;
116505:
116506: *)
116507: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
116508: ;;
116509: esac
116510: dynamic_linker='Win32 ld.exe'
116511: # FIXME: first we should search . and the directory the executable is in
116512: shlibpath_var=PATH
116513: ;;
116514:
116515: darwin* | rhapsody*)
116516: dynamic_linker="$host_os dyld"
116517: version_type=darwin
116518: need_lib_prefix=no
116519: need_version=no
116520: library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
116521: soname_spec='${libname}${release}${major}$shared_ext'
116522: shlibpath_overrides_runpath=yes
116523: shlibpath_var=DYLD_LIBRARY_PATH
116524: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
116525:
116526: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
116527: ;;
116528:
116529: dgux*)
116530: version_type=linux
116531: need_lib_prefix=no
116532: need_version=no
116533: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
116534: soname_spec='${libname}${release}${shared_ext}$major'
116535: shlibpath_var=LD_LIBRARY_PATH
116536: ;;
116537:
116538: freebsd1.*)
116539: dynamic_linker=no
116540: ;;
116541:
116542: freebsd* | dragonfly*)
116543: # DragonFly does not have aout. When/if they implement a new
116544: # versioning mechanism, adjust this.
116545: if test -x /usr/bin/objformat; then
116546: objformat=`/usr/bin/objformat`
116547: else
116548: case $host_os in
116549: freebsd[123].*) objformat=aout ;;
116550: *) objformat=elf ;;
116551: esac
116552: fi
116553: version_type=freebsd-$objformat
116554: case $version_type in
116555: freebsd-elf*)
116556: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
116557: need_version=no
116558: need_lib_prefix=no
116559: ;;
116560: freebsd-*)
116561: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
116562: need_version=yes
116563: ;;
116564: esac
116565: shlibpath_var=LD_LIBRARY_PATH
116566: case $host_os in
116567: freebsd2*)
116568: shlibpath_overrides_runpath=yes
116569: ;;
116570: freebsd3.[01]* | freebsdelf3.[01]*)
116571: shlibpath_overrides_runpath=yes
116572: hardcode_into_libs=yes
116573: ;;
116574: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
116575: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
116576: shlibpath_overrides_runpath=no
116577: hardcode_into_libs=yes
116578: ;;
116579: *) # from 4.6 on, and DragonFly
116580: shlibpath_overrides_runpath=yes
116581: hardcode_into_libs=yes
116582: ;;
116583: esac
116584: ;;
116585:
116586: gnu*)
116587: version_type=linux
116588: need_lib_prefix=no
116589: need_version=no
116590: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
116591: soname_spec='${libname}${release}${shared_ext}$major'
116592: shlibpath_var=LD_LIBRARY_PATH
116593: hardcode_into_libs=yes
116594: ;;
116595:
116596: hpux9* | hpux10* | hpux11*)
116597: # Give a soname corresponding to the major version so that dld.sl refuses to
116598: # link against other versions.
116599: version_type=sunos
116600: need_lib_prefix=no
116601: need_version=no
116602: case $host_cpu in
116603: ia64*)
116604: shrext_cmds='.so'
116605: hardcode_into_libs=yes
116606: dynamic_linker="$host_os dld.so"
116607: shlibpath_var=LD_LIBRARY_PATH
116608: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
116609: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
116610: soname_spec='${libname}${release}${shared_ext}$major'
116611: if test "X$HPUX_IA64_MODE" = X32; then
116612: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
116613: else
116614: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
116615: fi
116616: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
116617: ;;
116618: hppa*64*)
116619: shrext_cmds='.sl'
116620: hardcode_into_libs=yes
116621: dynamic_linker="$host_os dld.sl"
116622: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
116623: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
116624: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
116625: soname_spec='${libname}${release}${shared_ext}$major'
116626: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
116627: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
116628: ;;
116629: *)
116630: shrext_cmds='.sl'
116631: dynamic_linker="$host_os dld.sl"
116632: shlibpath_var=SHLIB_PATH
116633: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
116634: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
116635: soname_spec='${libname}${release}${shared_ext}$major'
116636: ;;
116637: esac
116638: # HP-UX runs *really* slowly unless shared libraries are mode 555.
116639: postinstall_cmds='chmod 555 $lib'
116640: ;;
116641:
116642: interix[3-9]*)
116643: version_type=linux
116644: need_lib_prefix=no
116645: need_version=no
116646: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
116647: soname_spec='${libname}${release}${shared_ext}$major'
116648: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
116649: shlibpath_var=LD_LIBRARY_PATH
116650: shlibpath_overrides_runpath=no
116651: hardcode_into_libs=yes
116652: ;;
116653:
116654: irix5* | irix6* | nonstopux*)
116655: case $host_os in
116656: nonstopux*) version_type=nonstopux ;;
116657: *)
116658: if test "$lt_cv_prog_gnu_ld" = yes; then
116659: version_type=linux
116660: else
116661: version_type=irix
116662: fi ;;
116663: esac
116664: need_lib_prefix=no
116665: need_version=no
116666: soname_spec='${libname}${release}${shared_ext}$major'
116667: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
116668: case $host_os in
116669: irix5* | nonstopux*)
116670: libsuff= shlibsuff=
116671: ;;
116672: *)
116673: case $LD in # libtool.m4 will add one of these switches to LD
116674: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
116675: libsuff= shlibsuff= libmagic=32-bit;;
116676: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
116677: libsuff=32 shlibsuff=N32 libmagic=N32;;
116678: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
116679: libsuff=64 shlibsuff=64 libmagic=64-bit;;
116680: *) libsuff= shlibsuff= libmagic=never-match;;
116681: esac
116682: ;;
116683: esac
116684: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
116685: shlibpath_overrides_runpath=no
116686: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
116687: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
116688: hardcode_into_libs=yes
116689: ;;
116690:
116691: # No shared lib support for Linux oldld, aout, or coff.
116692: linux*oldld* | linux*aout* | linux*coff*)
116693: dynamic_linker=no
116694: ;;
116695:
116696: # This must be Linux ELF.
116697: linux* | k*bsd*-gnu)
116698: version_type=linux
116699: need_lib_prefix=no
116700: need_version=no
116701: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
116702: soname_spec='${libname}${release}${shared_ext}$major'
116703: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
116704: shlibpath_var=LD_LIBRARY_PATH
116705: shlibpath_overrides_runpath=no
116706: # This implies no fast_install, which is unacceptable.
116707: # Some rework will be needed to allow for fast_install
116708: # before this can be enabled.
116709: hardcode_into_libs=yes
116710:
116711: # Append ld.so.conf contents to the search path
116712: if test -f /etc/ld.so.conf; then
116713: 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' ' '`
116714: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
116715: fi
116716:
116717: # We used to test for /lib/ld.so.1 and disable shared libraries on
116718: # powerpc, because MkLinux only supported shared libraries with the
116719: # GNU dynamic linker. Since this was broken with cross compilers,
116720: # most powerpc-linux boxes support dynamic linking these days and
116721: # people can always --disable-shared, the test was removed, and we
116722: # assume the GNU/Linux dynamic linker is in use.
116723: dynamic_linker='GNU/Linux ld.so'
116724: ;;
116725:
116726: netbsd*)
116727: version_type=sunos
116728: need_lib_prefix=no
116729: need_version=no
116730: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
116731: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
116732: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
116733: dynamic_linker='NetBSD (a.out) ld.so'
116734: else
116735: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
116736: soname_spec='${libname}${release}${shared_ext}$major'
116737: dynamic_linker='NetBSD ld.elf_so'
116738: fi
116739: shlibpath_var=LD_LIBRARY_PATH
116740: shlibpath_overrides_runpath=yes
116741: hardcode_into_libs=yes
116742: ;;
116743:
116744: newsos6)
116745: version_type=linux
116746: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
116747: shlibpath_var=LD_LIBRARY_PATH
116748: shlibpath_overrides_runpath=yes
116749: ;;
116750:
116751: nto-qnx*)
116752: version_type=linux
116753: need_lib_prefix=no
116754: need_version=no
116755: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
116756: soname_spec='${libname}${release}${shared_ext}$major'
116757: shlibpath_var=LD_LIBRARY_PATH
116758: shlibpath_overrides_runpath=yes
116759: ;;
116760:
116761: openbsd*)
116762: version_type=sunos
116763: sys_lib_dlsearch_path_spec="/usr/lib"
116764: need_lib_prefix=no
116765: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
116766: case $host_os in
116767: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
116768: *) need_version=no ;;
116769: esac
116770: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
116771: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
116772: shlibpath_var=LD_LIBRARY_PATH
116773: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
116774: case $host_os in
116775: openbsd2.[89] | openbsd2.[89].*)
116776: shlibpath_overrides_runpath=no
116777: ;;
116778: *)
116779: shlibpath_overrides_runpath=yes
116780: ;;
116781: esac
116782: else
116783: shlibpath_overrides_runpath=yes
116784: fi
116785: ;;
116786:
116787: os2*)
116788: libname_spec='$name'
116789: shrext_cmds=".dll"
116790: need_lib_prefix=no
116791: library_names_spec='$libname${shared_ext} $libname.a'
116792: dynamic_linker='OS/2 ld.exe'
116793: shlibpath_var=LIBPATH
116794: ;;
116795:
116796: osf3* | osf4* | osf5*)
116797: version_type=osf
116798: need_lib_prefix=no
116799: need_version=no
116800: soname_spec='${libname}${release}${shared_ext}$major'
116801: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
116802: shlibpath_var=LD_LIBRARY_PATH
116803: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
116804: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
116805: ;;
116806:
116807: rdos*)
116808: dynamic_linker=no
116809: ;;
116810:
116811: solaris*)
116812: version_type=linux
116813: need_lib_prefix=no
116814: need_version=no
116815: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
116816: soname_spec='${libname}${release}${shared_ext}$major'
116817: shlibpath_var=LD_LIBRARY_PATH
116818: shlibpath_overrides_runpath=yes
116819: hardcode_into_libs=yes
116820: # ldd complains unless libraries are executable
116821: postinstall_cmds='chmod +x $lib'
116822: ;;
116823:
116824: sunos4*)
116825: version_type=sunos
116826: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
116827: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
116828: shlibpath_var=LD_LIBRARY_PATH
116829: shlibpath_overrides_runpath=yes
116830: if test "$with_gnu_ld" = yes; then
116831: need_lib_prefix=no
116832: fi
116833: need_version=yes
116834: ;;
116835:
116836: sysv4 | sysv4.3*)
116837: version_type=linux
116838: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
116839: soname_spec='${libname}${release}${shared_ext}$major'
116840: shlibpath_var=LD_LIBRARY_PATH
116841: case $host_vendor in
116842: sni)
116843: shlibpath_overrides_runpath=no
116844: need_lib_prefix=no
116845: export_dynamic_flag_spec='${wl}-Blargedynsym'
116846: runpath_var=LD_RUN_PATH
116847: ;;
116848: siemens)
116849: need_lib_prefix=no
116850: ;;
116851: motorola)
116852: need_lib_prefix=no
116853: need_version=no
116854: shlibpath_overrides_runpath=no
116855: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
116856: ;;
116857: esac
116858: ;;
116859:
116860: sysv4*MP*)
116861: if test -d /usr/nec ;then
116862: version_type=linux
116863: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
116864: soname_spec='$libname${shared_ext}.$major'
116865: shlibpath_var=LD_LIBRARY_PATH
116866: fi
116867: ;;
116868:
116869: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
116870: version_type=freebsd-elf
116871: need_lib_prefix=no
116872: need_version=no
116873: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
116874: soname_spec='${libname}${release}${shared_ext}$major'
116875: shlibpath_var=LD_LIBRARY_PATH
116876: hardcode_into_libs=yes
116877: if test "$with_gnu_ld" = yes; then
116878: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
116879: shlibpath_overrides_runpath=no
116880: else
116881: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
116882: shlibpath_overrides_runpath=yes
116883: case $host_os in
116884: sco3.2v5*)
116885: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
116886: ;;
116887: esac
116888: fi
116889: sys_lib_dlsearch_path_spec='/usr/lib'
116890: ;;
116891:
116892: uts4*)
116893: version_type=linux
116894: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
116895: soname_spec='${libname}${release}${shared_ext}$major'
116896: shlibpath_var=LD_LIBRARY_PATH
116897: ;;
116898:
116899: *)
116900: dynamic_linker=no
116901: ;;
116902: esac
116903: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
116904: $as_echo "$dynamic_linker" >&6; }
116905: test "$dynamic_linker" = no && can_build_shared=no
116906:
116907: if ${lt_cv_sys_lib_search_path_spec+:} false; then :
116908: $as_echo_n "(cached) " >&6
116909: else
116910: lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
116911: fi
116912:
116913: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
116914: if ${lt_cv_sys_lib_dlsearch_path_spec+:} false; then :
116915: $as_echo_n "(cached) " >&6
116916: else
116917: lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
116918: fi
116919:
116920: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
116921:
116922: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
116923: if test "$GCC" = yes; then
116924: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
116925: fi
116926:
116927: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
116928: $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
116929: hardcode_action_CXX=
116930: if test -n "$hardcode_libdir_flag_spec_CXX" || \
116931: test -n "$runpath_var_CXX" || \
116932: test "X$hardcode_automatic_CXX" = "Xyes" ; then
116933:
116934: # We can hardcode non-existant directories.
116935: if test "$hardcode_direct_CXX" != no &&
116936: # If the only mechanism to avoid hardcoding is shlibpath_var, we
116937: # have to relink, otherwise we might link with an installed library
116938: # when we should be linking with a yet-to-be-installed one
116939: ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
116940: test "$hardcode_minus_L_CXX" != no; then
116941: # Linking always hardcodes the temporary library directory.
116942: hardcode_action_CXX=relink
116943: else
116944: # We can link without hardcoding, and we can hardcode nonexisting dirs.
116945: hardcode_action_CXX=immediate
116946: fi
116947: else
116948: # We cannot hardcode anything, or else we can only hardcode existing
116949: # directories.
116950: hardcode_action_CXX=unsupported
116951: fi
116952: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
116953: $as_echo "$hardcode_action_CXX" >&6; }
116954:
116955: if test "$hardcode_action_CXX" = relink; then
116956: # Fast installation is not supported
116957: enable_fast_install=no
116958: elif test "$shlibpath_overrides_runpath" = yes ||
116959: test "$enable_shared" = no; then
116960: # Fast installation is not necessary
116961: enable_fast_install=needless
116962: fi
116963:
116964:
116965: # The else clause should only fire when bootstrapping the
116966: # libtool distribution, otherwise you forgot to ship ltmain.sh
116967: # with your package, and you will get complaints that there are
116968: # no rules to generate ltmain.sh.
116969: if test -f "$ltmain"; then
116970: # See if we are running on zsh, and set the options which allow our commands through
116971: # without removal of \ escapes.
116972: if test -n "${ZSH_VERSION+set}" ; then
116973: setopt NO_GLOB_SUBST
116974: fi
116975: # Now quote all the things that may contain metacharacters while being
116976: # careful not to overquote the AC_SUBSTed values. We take copies of the
116977: # variables and quote the copies for generation of the libtool script.
116978: for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
116979: SED SHELL STRIP \
116980: libname_spec library_names_spec soname_spec extract_expsyms_cmds \
116981: old_striplib striplib file_magic_cmd finish_cmds finish_eval \
116982: deplibs_check_method reload_flag reload_cmds need_locks \
116983: lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
116984: lt_cv_sys_global_symbol_to_c_name_address \
116985: sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
116986: old_postinstall_cmds old_postuninstall_cmds \
116987: compiler_CXX \
116988: CC_CXX \
116989: LD_CXX \
116990: lt_prog_compiler_wl_CXX \
116991: lt_prog_compiler_pic_CXX \
116992: lt_prog_compiler_static_CXX \
116993: lt_prog_compiler_no_builtin_flag_CXX \
116994: export_dynamic_flag_spec_CXX \
116995: thread_safe_flag_spec_CXX \
116996: whole_archive_flag_spec_CXX \
116997: enable_shared_with_static_runtimes_CXX \
116998: old_archive_cmds_CXX \
116999: old_archive_from_new_cmds_CXX \
117000: predep_objects_CXX \
117001: postdep_objects_CXX \
117002: predeps_CXX \
117003: postdeps_CXX \
117004: compiler_lib_search_path_CXX \
117005: compiler_lib_search_dirs_CXX \
117006: archive_cmds_CXX \
117007: archive_expsym_cmds_CXX \
117008: postinstall_cmds_CXX \
117009: postuninstall_cmds_CXX \
117010: old_archive_from_expsyms_cmds_CXX \
117011: allow_undefined_flag_CXX \
117012: no_undefined_flag_CXX \
117013: export_symbols_cmds_CXX \
117014: hardcode_libdir_flag_spec_CXX \
117015: hardcode_libdir_flag_spec_ld_CXX \
117016: hardcode_libdir_separator_CXX \
117017: hardcode_automatic_CXX \
117018: module_cmds_CXX \
117019: module_expsym_cmds_CXX \
117020: lt_cv_prog_compiler_c_o_CXX \
117021: fix_srcfile_path_CXX \
117022: exclude_expsyms_CXX \
117023: include_expsyms_CXX; do
117024:
117025: case $var in
117026: old_archive_cmds_CXX | \
117027: old_archive_from_new_cmds_CXX | \
117028: archive_cmds_CXX | \
117029: archive_expsym_cmds_CXX | \
117030: module_cmds_CXX | \
117031: module_expsym_cmds_CXX | \
117032: old_archive_from_expsyms_cmds_CXX | \
117033: export_symbols_cmds_CXX | \
117034: extract_expsyms_cmds | reload_cmds | finish_cmds | \
117035: postinstall_cmds | postuninstall_cmds | \
117036: old_postinstall_cmds | old_postuninstall_cmds | \
117037: sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
117038: # Double-quote double-evaled strings.
117039: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
117040: ;;
117041: *)
117042: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
117043: ;;
117044: esac
117045: done
117046:
117047: case $lt_echo in
117048: *'\$0 --fallback-echo"')
117049: lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
117050: ;;
117051: esac
117052:
117053: cfgfile="$ofile"
117054:
117055: cat <<__EOF__ >> "$cfgfile"
117056: # ### BEGIN LIBTOOL TAG CONFIG: $tagname
117057:
117058: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
117059:
117060: # Shell to use when invoking shell scripts.
117061: SHELL=$lt_SHELL
117062:
117063: # Whether or not to build shared libraries.
117064: build_libtool_libs=$enable_shared
117065:
117066: # Whether or not to build static libraries.
117067: build_old_libs=$enable_static
117068:
117069: # Whether or not to add -lc for building shared libraries.
117070: build_libtool_need_lc=$archive_cmds_need_lc_CXX
117071:
117072: # Whether or not to disallow shared libs when runtime libs are static
117073: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
117074:
117075: # Whether or not to optimize for fast installation.
117076: fast_install=$enable_fast_install
117077:
117078: # The host system.
117079: host_alias=$host_alias
117080: host=$host
117081: host_os=$host_os
117082:
117083: # The build system.
117084: build_alias=$build_alias
117085: build=$build
117086: build_os=$build_os
117087:
117088: # An echo program that does not interpret backslashes.
117089: echo=$lt_echo
117090:
117091: # The archiver.
117092: AR=$lt_AR
117093: AR_FLAGS=$lt_AR_FLAGS
117094:
117095: # A C compiler.
117096: LTCC=$lt_LTCC
117097:
117098: # LTCC compiler flags.
117099: LTCFLAGS=$lt_LTCFLAGS
117100:
117101: # A language-specific compiler.
117102: CC=$lt_compiler_CXX
117103:
117104: # Is the compiler the GNU C compiler?
117105: with_gcc=$GCC_CXX
117106:
117107: # An ERE matcher.
117108: EGREP=$lt_EGREP
117109:
117110: # The linker used to build libraries.
117111: LD=$lt_LD_CXX
117112:
117113: # Whether we need hard or soft links.
117114: LN_S=$lt_LN_S
117115:
117116: # A BSD-compatible nm program.
117117: NM=$lt_NM
117118:
117119: # A symbol stripping program
117120: STRIP=$lt_STRIP
117121:
117122: # Used to examine libraries when file_magic_cmd begins "file"
117123: MAGIC_CMD=$MAGIC_CMD
117124:
117125: # Used on cygwin: DLL creation program.
117126: DLLTOOL="$DLLTOOL"
117127:
117128: # Used on cygwin: object dumper.
117129: OBJDUMP="$OBJDUMP"
117130:
117131: # Used on cygwin: assembler.
117132: AS="$AS"
117133:
117134: # The name of the directory that contains temporary libtool files.
117135: objdir=$objdir
117136:
117137: # How to create reloadable object files.
117138: reload_flag=$lt_reload_flag
117139: reload_cmds=$lt_reload_cmds
117140:
117141: # How to pass a linker flag through the compiler.
117142: wl=$lt_lt_prog_compiler_wl_CXX
117143:
117144: # Object file suffix (normally "o").
117145: objext="$ac_objext"
117146:
117147: # Old archive suffix (normally "a").
117148: libext="$libext"
117149:
117150: # Shared library suffix (normally ".so").
117151: shrext_cmds='$shrext_cmds'
117152:
117153: # Executable file suffix (normally "").
117154: exeext="$exeext"
117155:
117156: # Additional compiler flags for building library objects.
117157: pic_flag=$lt_lt_prog_compiler_pic_CXX
117158: pic_mode=$pic_mode
117159:
117160: # What is the maximum length of a command?
117161: max_cmd_len=$lt_cv_sys_max_cmd_len
117162:
117163: # Does compiler simultaneously support -c and -o options?
117164: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
117165:
117166: # Must we lock files when doing compilation?
117167: need_locks=$lt_need_locks
117168:
117169: # Do we need the lib prefix for modules?
117170: need_lib_prefix=$need_lib_prefix
117171:
117172: # Do we need a version for libraries?
117173: need_version=$need_version
117174:
117175: # Whether dlopen is supported.
117176: dlopen_support=$enable_dlopen
117177:
117178: # Whether dlopen of programs is supported.
117179: dlopen_self=$enable_dlopen_self
117180:
117181: # Whether dlopen of statically linked programs is supported.
117182: dlopen_self_static=$enable_dlopen_self_static
117183:
117184: # Compiler flag to prevent dynamic linking.
117185: link_static_flag=$lt_lt_prog_compiler_static_CXX
117186:
117187: # Compiler flag to turn off builtin functions.
117188: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
117189:
117190: # Compiler flag to allow reflexive dlopens.
117191: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
117192:
117193: # Compiler flag to generate shared objects directly from archives.
117194: whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
117195:
117196: # Compiler flag to generate thread-safe objects.
117197: thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
117198:
117199: # Library versioning type.
117200: version_type=$version_type
117201:
117202: # Format of library name prefix.
117203: libname_spec=$lt_libname_spec
117204:
117205: # List of archive names. First name is the real one, the rest are links.
117206: # The last name is the one that the linker finds with -lNAME.
117207: library_names_spec=$lt_library_names_spec
117208:
117209: # The coded name of the library, if different from the real name.
117210: soname_spec=$lt_soname_spec
117211:
117212: # Commands used to build and install an old-style archive.
117213: RANLIB=$lt_RANLIB
117214: old_archive_cmds=$lt_old_archive_cmds_CXX
117215: old_postinstall_cmds=$lt_old_postinstall_cmds
117216: old_postuninstall_cmds=$lt_old_postuninstall_cmds
117217:
117218: # Create an old-style archive from a shared archive.
117219: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
117220:
117221: # Create a temporary old-style archive to link instead of a shared archive.
117222: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
117223:
117224: # Commands used to build and install a shared archive.
117225: archive_cmds=$lt_archive_cmds_CXX
117226: archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
117227: postinstall_cmds=$lt_postinstall_cmds
117228: postuninstall_cmds=$lt_postuninstall_cmds
117229:
117230: # Commands used to build a loadable module (assumed same as above if empty)
117231: module_cmds=$lt_module_cmds_CXX
117232: module_expsym_cmds=$lt_module_expsym_cmds_CXX
117233:
117234: # Commands to strip libraries.
117235: old_striplib=$lt_old_striplib
117236: striplib=$lt_striplib
117237:
117238: # Dependencies to place before the objects being linked to create a
117239: # shared library.
117240: predep_objects=$lt_predep_objects_CXX
117241:
117242: # Dependencies to place after the objects being linked to create a
117243: # shared library.
117244: postdep_objects=$lt_postdep_objects_CXX
117245:
117246: # Dependencies to place before the objects being linked to create a
117247: # shared library.
117248: predeps=$lt_predeps_CXX
117249:
117250: # Dependencies to place after the objects being linked to create a
117251: # shared library.
117252: postdeps=$lt_postdeps_CXX
117253:
117254: # The directories searched by this compiler when creating a shared
117255: # library
117256: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
117257:
117258: # The library search path used internally by the compiler when linking
117259: # a shared library.
117260: compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
117261:
117262: # Method to check whether dependent libraries are shared objects.
117263: deplibs_check_method=$lt_deplibs_check_method
117264:
117265: # Command to use when deplibs_check_method == file_magic.
117266: file_magic_cmd=$lt_file_magic_cmd
117267:
117268: # Flag that allows shared libraries with undefined symbols to be built.
117269: allow_undefined_flag=$lt_allow_undefined_flag_CXX
117270:
117271: # Flag that forces no undefined symbols.
117272: no_undefined_flag=$lt_no_undefined_flag_CXX
117273:
117274: # Commands used to finish a libtool library installation in a directory.
117275: finish_cmds=$lt_finish_cmds
117276:
117277: # Same as above, but a single script fragment to be evaled but not shown.
117278: finish_eval=$lt_finish_eval
117279:
117280: # Take the output of nm and produce a listing of raw symbols and C names.
117281: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
117282:
117283: # Transform the output of nm in a proper C declaration
117284: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
117285:
117286: # Transform the output of nm in a C name address pair
117287: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
117288:
117289: # This is the shared library runtime path variable.
117290: runpath_var=$runpath_var
117291:
117292: # This is the shared library path variable.
117293: shlibpath_var=$shlibpath_var
117294:
117295: # Is shlibpath searched before the hard-coded library search path?
117296: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
117297:
117298: # How to hardcode a shared library path into an executable.
117299: hardcode_action=$hardcode_action_CXX
117300:
117301: # Whether we should hardcode library paths into libraries.
117302: hardcode_into_libs=$hardcode_into_libs
117303:
117304: # Flag to hardcode \$libdir into a binary during linking.
117305: # This must work even if \$libdir does not exist.
117306: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
117307:
117308: # If ld is used when linking, flag to hardcode \$libdir into
117309: # a binary during linking. This must work even if \$libdir does
117310: # not exist.
117311: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
117312:
117313: # Whether we need a single -rpath flag with a separated argument.
117314: hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
117315:
117316: # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
117317: # resulting binary.
117318: hardcode_direct=$hardcode_direct_CXX
117319:
117320: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
117321: # resulting binary.
117322: hardcode_minus_L=$hardcode_minus_L_CXX
117323:
117324: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
117325: # the resulting binary.
117326: hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
117327:
117328: # Set to yes if building a shared library automatically hardcodes DIR into the library
117329: # and all subsequent libraries and executables linked against it.
117330: hardcode_automatic=$hardcode_automatic_CXX
117331:
117332: # Variables whose values should be saved in libtool wrapper scripts and
117333: # restored at relink time.
117334: variables_saved_for_relink="$variables_saved_for_relink"
117335:
117336: # Whether libtool must link a program against all its dependency libraries.
117337: link_all_deplibs=$link_all_deplibs_CXX
117338:
117339: # Compile-time system search path for libraries
117340: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
117341:
117342: # Run-time system search path for libraries
117343: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
117344:
117345: # Fix the shell variable \$srcfile for the compiler.
117346: fix_srcfile_path=$lt_fix_srcfile_path
117347:
117348: # Set to yes if exported symbols are required.
117349: always_export_symbols=$always_export_symbols_CXX
117350:
117351: # The commands to list exported symbols.
117352: export_symbols_cmds=$lt_export_symbols_cmds_CXX
117353:
117354: # The commands to extract the exported symbol list from a shared archive.
117355: extract_expsyms_cmds=$lt_extract_expsyms_cmds
117356:
117357: # Symbols that should not be listed in the preloaded symbols.
117358: exclude_expsyms=$lt_exclude_expsyms_CXX
117359:
117360: # Symbols that must always be exported.
117361: include_expsyms=$lt_include_expsyms_CXX
117362:
117363: # ### END LIBTOOL TAG CONFIG: $tagname
117364:
117365: __EOF__
117366:
117367:
117368: else
117369: # If there is no Makefile yet, we rely on a make rule to execute
117370: # `config.status --recheck' to rerun these tests and create the
117371: # libtool script then.
117372: ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
117373: if test -f "$ltmain_in"; then
117374: test -f Makefile && make "$ltmain"
117375: fi
117376: fi
117377:
117378:
117379: ac_ext=c
117380: ac_cpp='$CPP $CPPFLAGS'
117381: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
117382: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
117383: ac_compiler_gnu=$ac_cv_c_compiler_gnu
117384:
117385: CC=$lt_save_CC
117386: LDCXX=$LD
117387: LD=$lt_save_LD
117388: GCC=$lt_save_GCC
117389: with_gnu_ldcxx=$with_gnu_ld
117390: with_gnu_ld=$lt_save_with_gnu_ld
117391: lt_cv_path_LDCXX=$lt_cv_path_LD
117392: lt_cv_path_LD=$lt_save_path_LD
117393: lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
117394: lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
117395:
117396: else
117397: tagname=""
117398: fi
117399: ;;
117400:
117401: *)
117402: as_fn_error $? "Unsupported tag name: $tagname" "$LINENO" 5
117403: ;;
117404: esac
117405:
117406: # Append the new tag name to the list of available tags.
117407: if test -n "$tagname" ; then
117408: available_tags="$available_tags $tagname"
117409: fi
117410: fi
117411: done
117412: IFS="$lt_save_ifs"
117413:
117414: # Now substitute the updated list of available tags.
117415: if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
117416: mv "${ofile}T" "$ofile"
117417: chmod +x "$ofile"
117418: else
117419: rm -f "${ofile}T"
117420: as_fn_error $? "unable to update list of available tagged configurations." "$LINENO" 5
117421: fi
117422: fi
117423:
117424:
117425:
117426: # This can be used to rebuild libtool when needed
117427: LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
117428:
117429: # Always use our own libtool.
117430: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
117431:
117432: # Prevent multiple expansion
117433:
117434:
117435:
117436:
117437:
117438:
117439:
117440:
117441:
117442:
117443:
117444: if test "$enable_debug" != "yes"; then
117445:
117446: if test -z "$LIBTOOL"; then
117447: LIBTOOL='$(SHELL) $(top_builddir)/libtool --silent'
117448: else
117449: LIBTOOL="$LIBTOOL --silent"
117450: fi
117451:
117452: fi
117453:
117454:
117455: if test -z "$LIBTOOL"; then
117456: LIBTOOL='$(SHELL) $(top_builddir)/libtool --preserve-dup-deps'
117457: else
117458: LIBTOOL="$LIBTOOL --preserve-dup-deps"
117459: fi
117460:
117461:
117462: test -z "$PHP_COMPILE" && PHP_COMPILE='$(LIBTOOL) --mode=compile $(COMPILE) -c $<'
117463: test -z "$CXX_PHP_COMPILE" && CXX_PHP_COMPILE='$(LIBTOOL) --mode=compile $(CXX_COMPILE) -c $<'
117464: SHARED_LIBTOOL='$(LIBTOOL)'
117465:
117466: CC=$old_CC
117467:
117468:
117469: { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
117470: $as_echo "" >&6; }
117471: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Generating files${T_ME}" >&5
117472: $as_echo "${T_MD}Generating files${T_ME}" >&6; }
117473:
117474:
117475: CXXFLAGS_CLEAN=$CXXFLAGS
117476: CFLAGS_CLEAN=$CFLAGS
117477: CFLAGS="\$(CFLAGS_CLEAN) $standard_libtool_flag"
117478: INLINE_CFLAGS="$INLINE_CFLAGS $standard_libtool_flag"
117479: CXXFLAGS="$CXXFLAGS $standard_libtool_flag"
117480:
117481: if test "$PHP_PHAR" != "no" && test "$PHP_CLI" != "no"; then
117482: pharcmd=pharcmd
117483: pharcmd_install=install-pharcmd
117484: else
117485: pharcmd=
117486: pharcmd_install=
117487: fi;
117488:
117489: all_targets="$lcov_target \$(OVERALL_TARGET) \$(PHP_MODULES) \$(PHP_ZEND_EX) \$(PHP_CLI_TARGET) \$(PHP_CGI_TARGET) \$(PHP_FPM_TARGET) $pharcmd"
117490: install_targets="$PHP_INSTALL_CLI_TARGET $PHP_INSTALL_CGI_TARGET $install_modules install-build install-headers install-programs $install_pear $pharcmd_install"
117491:
117492: case $PHP_SAPI in
117493: apache|apache2handler|apache2filter)
117494: install_targets="install-sapi $install_targets"
117495: ;;
117496: esac
117497:
117498:
117499: PHP_VAR_SUBST="$PHP_VAR_SUBST all_targets"
117500:
117501:
117502: PHP_VAR_SUBST="$PHP_VAR_SUBST install_targets"
117503:
117504:
117505:
117506:
117507: for header_file in Zend/ TSRM/ main/ main/streams/; do
117508:
117509:
117510: unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
117511:
117512: cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
117513: if test -n "$unique" && test "`eval $cmd`" = "" ; then
117514: eval "INSTALLHEADERS$unique=set"
117515:
117516: INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
117517:
117518: fi
117519:
117520: done
117521:
117522:
117523:
117524:
117525:
117526: case TSRM in
117527: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
117528: /*) ac_srcdir=`echo "TSRM"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
117529: *) ac_srcdir="$abs_srcdir/TSRM/"; ac_bdir="TSRM/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
117530: esac
117531:
117532:
117533:
117534: b_c_pre=$php_c_pre
117535: b_cxx_pre=$php_cxx_pre
117536: b_c_meta=$php_c_meta
117537: b_cxx_meta=$php_cxx_meta
117538: b_c_post=$php_c_post
117539: b_cxx_post=$php_cxx_post
117540: b_lo=$php_lo
117541:
117542:
117543: old_IFS=$IFS
117544: for ac_src in TSRM.c tsrm_strtok_r.c tsrm_virtual_cwd.c; do
117545:
117546: IFS=.
117547: set $ac_src
117548: ac_obj=$1
117549: IFS=$old_IFS
117550:
117551: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
117552:
117553: case $ac_src in
117554: *.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" ;;
117555: *.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" ;;
117556: *.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" ;;
117557: *.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" ;;
117558: esac
117559:
117560: cat >>Makefile.objects<<EOF
117561: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
117562: $ac_comp
117563: EOF
117564: done
117565:
117566:
117567:
117568:
117569:
117570: case main in
117571: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
117572: /*) ac_srcdir=`echo "main"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
117573: *) ac_srcdir="$abs_srcdir/main/"; ac_bdir="main/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
117574: esac
117575:
117576:
117577:
117578: b_c_pre=$php_c_pre
117579: b_cxx_pre=$php_cxx_pre
117580: b_c_meta=$php_c_meta
117581: b_cxx_meta=$php_cxx_meta
117582: b_c_post=$php_c_post
117583: b_cxx_post=$php_cxx_post
117584: b_lo=$php_lo
117585:
117586:
117587: old_IFS=$IFS
117588: for ac_src in main.c snprintf.c spprintf.c php_sprintf.c \
117589: safe_mode.c fopen_wrappers.c alloca.c php_scandir.c \
117590: php_ini.c SAPI.c rfc1867.c php_content_types.c strlcpy.c \
117591: strlcat.c mergesort.c reentrancy.c php_variables.c php_ticks.c \
117592: network.c php_open_temporary_file.c php_logos.c \
117593: output.c getopt.c suhosin_patch.c ; do
117594:
117595: IFS=.
117596: set $ac_src
117597: ac_obj=$1
117598: IFS=$old_IFS
117599:
117600: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
117601:
117602: case $ac_src in
117603: *.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" ;;
117604: *.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" ;;
117605: *.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" ;;
117606: *.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" ;;
117607: esac
117608:
117609: cat >>Makefile.objects<<EOF
117610: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
117611: $ac_comp
117612: EOF
117613: done
117614:
117615:
117616:
117617:
117618:
117619: case main/streams in
117620: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
117621: /*) ac_srcdir=`echo "main/streams"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
117622: *) ac_srcdir="$abs_srcdir/main/streams/"; ac_bdir="main/streams/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
117623: esac
117624:
117625:
117626:
117627: b_c_pre=$php_c_pre
117628: b_cxx_pre=$php_cxx_pre
117629: b_c_meta=$php_c_meta
117630: b_cxx_meta=$php_cxx_meta
117631: b_c_post=$php_c_post
117632: b_cxx_post=$php_cxx_post
117633: b_lo=$php_lo
117634:
117635:
117636: old_IFS=$IFS
117637: for ac_src in streams.c cast.c memory.c filter.c \
117638: plain_wrapper.c userspace.c transports.c xp_socket.c mmap.c \
117639: glob_wrapper.c; do
117640:
117641: IFS=.
117642: set $ac_src
117643: ac_obj=$1
117644: IFS=$old_IFS
117645:
117646: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
117647:
117648: case $ac_src in
117649: *.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" ;;
117650: *.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" ;;
117651: *.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" ;;
117652: *.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" ;;
117653: esac
117654:
117655: cat >>Makefile.objects<<EOF
117656: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
117657: $ac_comp
117658: EOF
117659: done
117660:
117661:
117662:
117663:
117664:
117665: case /main in
117666: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
117667: /*) ac_srcdir=`echo "/main"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
117668: *) ac_srcdir="$abs_srcdir//main/"; ac_bdir="/main/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
117669: esac
117670:
117671:
117672:
117673: b_c_pre=$php_c_pre
117674: b_cxx_pre=$php_cxx_pre
117675: b_c_meta=$php_c_meta
117676: b_cxx_meta=$php_cxx_meta
117677: b_c_post=$php_c_post
117678: b_cxx_post=$php_cxx_post
117679: b_lo=$php_lo
117680:
117681:
117682: old_IFS=$IFS
117683: for ac_src in internal_functions.c; do
117684:
117685: IFS=.
117686: set $ac_src
117687: ac_obj=$1
117688: IFS=$old_IFS
117689:
117690: PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
117691:
117692: case $ac_src in
117693: *.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" ;;
117694: *.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" ;;
117695: *.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" ;;
117696: *.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" ;;
117697: esac
117698:
117699: cat >>Makefile.objects<<EOF
117700: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
117701: $ac_comp
117702: EOF
117703: done
117704:
117705:
117706:
117707: case $host_alias in
117708: *netware*)
117709:
117710:
117711: BUILD_DIR="$BUILD_DIR win32"
117712:
117713:
117714:
117715:
117716: BUILD_DIR="$BUILD_DIR netware"
117717:
117718:
117719: ;;
117720: *)
117721:
117722:
117723: case /main in
117724: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
117725: /*) ac_srcdir=`echo "/main"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
117726: *) ac_srcdir="$abs_srcdir//main/"; ac_bdir="/main/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
117727: esac
117728:
117729:
117730:
117731: b_c_pre=$php_c_pre
117732: b_cxx_pre=$php_cxx_pre
117733: b_c_meta=$php_c_meta
117734: b_cxx_meta=$php_cxx_meta
117735: b_c_post=$php_c_post
117736: b_cxx_post=$php_cxx_post
117737: b_lo=$php_lo
117738:
117739:
117740: old_IFS=$IFS
117741: for ac_src in internal_functions_cli.c; do
117742:
117743: IFS=.
117744: set $ac_src
117745: ac_obj=$1
117746: IFS=$old_IFS
117747:
117748: PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
117749:
117750: case $ac_src in
117751: *.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" ;;
117752: *.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" ;;
117753: *.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" ;;
117754: *.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" ;;
117755: esac
117756:
117757: cat >>Makefile.objects<<EOF
117758: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
117759: $ac_comp
117760: EOF
117761: done
117762:
117763:
117764: ;;
117765: esac
117766:
117767:
117768:
117769: case Zend in
117770: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
117771: /*) ac_srcdir=`echo "Zend"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
117772: *) ac_srcdir="$abs_srcdir/Zend/"; ac_bdir="Zend/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
117773: esac
117774:
117775:
117776:
117777: b_c_pre=$php_c_pre
117778: b_cxx_pre=$php_cxx_pre
117779: b_c_meta=$php_c_meta
117780: b_cxx_meta=$php_cxx_meta
117781: b_c_post=$php_c_post
117782: b_cxx_post=$php_cxx_post
117783: b_lo=$php_lo
117784:
117785:
117786: old_IFS=$IFS
117787: for ac_src in \
117788: zend_language_parser.c zend_language_scanner.c \
117789: zend_ini_parser.c zend_ini_scanner.c \
117790: zend_alloc.c zend_compile.c zend_constants.c zend_dynamic_array.c \
117791: zend_execute_API.c zend_highlight.c zend_llist.c \
117792: zend_opcode.c zend_operators.c zend_ptr_stack.c zend_stack.c \
117793: zend_variables.c zend.c zend_API.c zend_extensions.c zend_hash.c \
117794: zend_list.c zend_indent.c zend_builtin_functions.c zend_sprintf.c \
117795: zend_ini.c zend_qsort.c zend_multibyte.c zend_ts_hash.c zend_stream.c \
117796: zend_iterators.c zend_interfaces.c zend_exceptions.c zend_strtod.c zend_gc.c \
117797: zend_closures.c zend_float.c zend_canary.c zend_alloc_canary.c ; do
117798:
117799: IFS=.
117800: set $ac_src
117801: ac_obj=$1
117802: IFS=$old_IFS
117803:
117804: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
117805:
117806: case $ac_src in
117807: *.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" ;;
117808: *.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" ;;
117809: *.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" ;;
117810: *.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" ;;
117811: esac
117812:
117813: cat >>Makefile.objects<<EOF
117814: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
117815: $ac_comp
117816: EOF
117817: done
117818:
117819:
117820:
117821: if test -r "$abs_srcdir/Zend/zend_objects.c"; then
117822:
117823:
117824: case Zend in
117825: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
117826: /*) ac_srcdir=`echo "Zend"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
117827: *) ac_srcdir="$abs_srcdir/Zend/"; ac_bdir="Zend/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
117828: esac
117829:
117830:
117831:
117832: b_c_pre=$php_c_pre
117833: b_cxx_pre=$php_cxx_pre
117834: b_c_meta=$php_c_meta
117835: b_cxx_meta=$php_cxx_meta
117836: b_c_post=$php_c_post
117837: b_cxx_post=$php_cxx_post
117838: b_lo=$php_lo
117839:
117840:
117841: old_IFS=$IFS
117842: for ac_src in zend_objects.c zend_object_handlers.c zend_objects_API.c zend_default_classes.c; do
117843:
117844: IFS=.
117845: set $ac_src
117846: ac_obj=$1
117847: IFS=$old_IFS
117848:
117849: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
117850:
117851: case $ac_src in
117852: *.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" ;;
117853: *.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" ;;
117854: *.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" ;;
117855: *.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" ;;
117856: esac
117857:
117858: cat >>Makefile.objects<<EOF
117859: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
117860: $ac_comp
117861: EOF
117862: done
117863:
117864:
117865: fi
117866:
117867: if test -n "$GCC" && test "$ZEND_INLINE_OPTIMIZATION" != "yes"; then
117868: flag=-O0
117869: else
117870: flag=
117871: fi
117872:
117873:
117874: case Zend in
117875: "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
117876: /*) ac_srcdir=`echo "Zend"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
117877: *) ac_srcdir="$abs_srcdir/Zend/"; ac_bdir="Zend/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
117878: esac
117879:
117880:
117881:
117882: b_c_pre=$php_c_pre
117883: b_cxx_pre=$php_cxx_pre
117884: b_c_meta=$php_c_meta
117885: b_cxx_meta=$php_cxx_meta
117886: b_c_post=$php_c_post
117887: b_cxx_post=$php_cxx_post
117888: b_lo=$php_lo
117889:
117890:
117891: old_IFS=$IFS
117892: for ac_src in zend_execute.c; do
117893:
117894: IFS=.
117895: set $ac_src
117896: ac_obj=$1
117897: IFS=$old_IFS
117898:
117899: PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
117900:
117901: case $ac_src in
117902: *.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" ;;
117903: *.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" ;;
117904: *.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" ;;
117905: *.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" ;;
117906: esac
117907:
117908: cat >>Makefile.objects<<EOF
117909: $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
117910: $ac_comp
117911: EOF
117912: done
117913:
117914:
117915:
117916:
117917: BUILD_DIR="$BUILD_DIR main main/streams"
117918:
117919:
117920:
117921:
117922: BUILD_DIR="$BUILD_DIR sapi/$PHP_SAPI sapi/cli"
117923:
117924:
117925:
117926:
117927: BUILD_DIR="$BUILD_DIR TSRM"
117928:
117929:
117930:
117931:
117932: BUILD_DIR="$BUILD_DIR Zend"
117933:
117934:
117935:
117936:
117937: src=$abs_srcdir/scripts/Makefile.frag
117938: ac_srcdir=$abs_srcdir/scripts
117939: ac_builddir=scripts
117940: test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments
117941:
117942:
117943: src=$abs_srcdir/Makefile.frag
117944: ac_srcdir=$abs_srcdir/Zend
117945: ac_builddir=Zend
117946: test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments
117947:
117948:
117949: src=$abs_srcdir/Zend/Makefile.frag
117950: ac_srcdir=$abs_srcdir/Zend
117951: ac_builddir=Zend
117952: test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments
117953:
117954:
117955:
117956: $php_shtool mkdir -p $BUILD_DIR
117957:
117958:
117959: cat >Makefile <<EOF
117960: srcdir = $abs_srcdir
117961: builddir = $abs_builddir
117962: top_srcdir = $abs_srcdir
117963: top_builddir = $abs_builddir
117964: EOF
117965: for i in $PHP_VAR_SUBST; do
117966: eval echo "$i = \$$i" >> Makefile
117967: done
117968:
117969: cat $abs_srcdir/Makefile.global Makefile.fragments Makefile.objects >> Makefile
117970:
117971:
117972:
117973: $as_echo "#define HAVE_BUILD_DEFS_H 1" >>confdefs.h
117974:
117975:
117976: $php_shtool mkdir -p pear/scripts
117977: $php_shtool mkdir -p scripts
117978: $php_shtool mkdir -p scripts/man1
117979:
117980: ALL_OUTPUT_FILES="php5.spec main/build-defs.h \
117981: scripts/phpize scripts/man1/phpize.1 \
117982: scripts/php-config scripts/man1/php-config.1 \
117983: $PHP_OUTPUT_FILES"
117984:
117985:
117986: for arg in $ac_configure_args; do
117987: case $arg in
117988: --with-*)
117989: arg_name="`echo $arg | $SED -e 's/--with-/with-/g' -e 's/=.*//g'`"
117990: ;;
117991: --without-*)
117992: arg_name="`echo $arg | $SED -e 's/--without-/with-/g' -e 's/=.*//g'`"
117993: ;;
117994: --enable-*)
117995: arg_name="`echo $arg | $SED -e 's/--enable-/enable-/g' -e 's/=.*//g'`"
117996: ;;
117997: --disable-*)
117998: arg_name="`echo $arg | $SED -e 's/--disable-/enable-/g' -e 's/=.*//g'`"
117999: ;;
118000: *)
118001: continue
118002: ;;
118003: esac
118004: case $arg_name in
118005: # Allow --disable-all / --enable-all
118006: enable-all);;
118007:
118008: # Allow certain libtool options
118009: enable-libtool-lock | with-pic | with-tags | enable-shared | enable-static | enable-fast-install | with-gnu-ld);;
118010:
118011: # Allow certain TSRM options
118012: with-tsrm-pth | with-tsrm-st | with-tsrm-pthreads);;
118013:
118014: # Allow certain Zend options
118015: with-zend-vm | enable-maintainer-zts | enable-inline-optimization);;
118016:
118017: # All the rest must be set using the PHP_ARG_* macros
118018: # PHP_ARG_* macros set php_enable_<arg_name> or php_with_<arg_name>
118019: *)
118020: # Options that exist before PHP 6
118021: if test "$PHP_MAJOR_VERSION" -lt "6"; then
118022: case $arg_name in
118023: enable-zend-multibyte) continue;;
118024: esac
118025: fi
118026:
118027: is_arg_set=php_`echo $arg_name | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ-' 'abcdefghijklmnopqrstuvwxyz_'`
118028: if eval test "x\$$is_arg_set" = "x"; then
118029: PHP_UNKNOWN_CONFIGURE_OPTIONS="$PHP_UNKNOWN_CONFIGURE_OPTIONS
118030: $arg"
118031: fi
118032: ;;
118033: esac
118034: done
118035:
118036:
118037: ac_config_files="$ac_config_files $ALL_OUTPUT_FILES"
118038:
118039: ac_config_commands="$ac_config_commands default"
118040:
118041: cat >confcache <<\_ACEOF
118042: # This file is a shell script that caches the results of configure
118043: # tests run on this system so they can be shared between configure
118044: # scripts and configure runs, see configure's option --config-cache.
118045: # It is not useful on other systems. If it contains results you don't
118046: # want to keep, you may remove or edit it.
118047: #
118048: # config.status only pays attention to the cache file if you give it
118049: # the --recheck option to rerun configure.
118050: #
118051: # `ac_cv_env_foo' variables (set or unset) will be overridden when
118052: # loading this file, other *unset* `ac_cv_foo' will be assigned the
118053: # following values.
118054:
118055: _ACEOF
118056:
118057: # The following way of writing the cache mishandles newlines in values,
118058: # but we know of no workaround that is simple, portable, and efficient.
118059: # So, we kill variables containing newlines.
118060: # Ultrix sh set writes to stderr and can't be redirected directly,
118061: # and sets the high bit in the cache file unless we assign to the vars.
118062: (
118063: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
118064: eval ac_val=\$$ac_var
118065: case $ac_val in #(
118066: *${as_nl}*)
118067: case $ac_var in #(
118068: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
118069: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
118070: esac
118071: case $ac_var in #(
118072: _ | IFS | as_nl) ;; #(
118073: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
118074: *) { eval $ac_var=; unset $ac_var;} ;;
118075: esac ;;
118076: esac
118077: done
118078:
118079: (set) 2>&1 |
118080: case $as_nl`(ac_space=' '; set) 2>&1` in #(
118081: *${as_nl}ac_space=\ *)
118082: # `set' does not quote correctly, so add quotes: double-quote
118083: # substitution turns \\\\ into \\, and sed turns \\ into \.
118084: sed -n \
118085: "s/'/'\\\\''/g;
118086: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
118087: ;; #(
118088: *)
118089: # `set' quotes correctly as required by POSIX, so do not add quotes.
118090: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
118091: ;;
118092: esac |
118093: sort
118094: ) |
118095: sed '
118096: /^ac_cv_env_/b end
118097: t clear
118098: :clear
118099: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
118100: t end
118101: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
118102: :end' >>confcache
118103: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
118104: if test -w "$cache_file"; then
118105: if test "x$cache_file" != "x/dev/null"; then
118106: { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
118107: $as_echo "$as_me: updating cache $cache_file" >&6;}
118108: if test ! -f "$cache_file" || test -h "$cache_file"; then
118109: cat confcache >"$cache_file"
118110: else
118111: case $cache_file in #(
118112: */* | ?:*)
118113: mv -f confcache "$cache_file"$$ &&
118114: mv -f "$cache_file"$$ "$cache_file" ;; #(
118115: *)
118116: mv -f confcache "$cache_file" ;;
118117: esac
118118: fi
118119: fi
118120: else
118121: { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
118122: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
118123: fi
118124: fi
118125: rm -f confcache
118126:
118127: test "x$prefix" = xNONE && prefix=$ac_default_prefix
118128: # Let make expand exec_prefix.
118129: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
118130:
118131: DEFS=-DHAVE_CONFIG_H
118132:
118133: ac_libobjs=
118134: ac_ltlibobjs=
118135: U=
118136: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
118137: # 1. Remove the extension, and $U if already installed.
118138: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
118139: ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
118140: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
118141: # will be set to the directory where LIBOBJS objects are built.
118142: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
118143: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
118144: done
118145: LIBOBJS=$ac_libobjs
118146:
118147: LTLIBOBJS=$ac_ltlibobjs
118148:
118149:
118150:
118151: : "${CONFIG_STATUS=./config.status}"
118152: ac_write_fail=0
118153: ac_clean_files_save=$ac_clean_files
118154: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
118155: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
118156: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
118157: as_write_fail=0
118158: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
118159: #! $SHELL
118160: # Generated by $as_me.
118161: # Run this file to recreate the current configuration.
118162: # Compiler output produced by configure, useful for debugging
118163: # configure, is in config.log if it exists.
118164:
118165: debug=false
118166: ac_cs_recheck=false
118167: ac_cs_silent=false
118168:
118169: SHELL=\${CONFIG_SHELL-$SHELL}
118170: export SHELL
118171: _ASEOF
118172: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
118173: ## -------------------- ##
118174: ## M4sh Initialization. ##
118175: ## -------------------- ##
118176:
118177: # Be more Bourne compatible
118178: DUALCASE=1; export DUALCASE # for MKS sh
118179: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
118180: emulate sh
118181: NULLCMD=:
118182: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
118183: # is contrary to our usage. Disable this feature.
118184: alias -g '${1+"$@"}'='"$@"'
118185: setopt NO_GLOB_SUBST
118186: else
118187: case `(set -o) 2>/dev/null` in #(
118188: *posix*) :
118189: set -o posix ;; #(
118190: *) :
118191: ;;
118192: esac
118193: fi
118194:
118195:
118196: as_nl='
118197: '
118198: export as_nl
118199: # Printing a long string crashes Solaris 7 /usr/bin/printf.
118200: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
118201: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
118202: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
118203: # Prefer a ksh shell builtin over an external printf program on Solaris,
118204: # but without wasting forks for bash or zsh.
118205: if test -z "$BASH_VERSION$ZSH_VERSION" \
118206: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
118207: as_echo='print -r --'
118208: as_echo_n='print -rn --'
118209: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
118210: as_echo='printf %s\n'
118211: as_echo_n='printf %s'
118212: else
118213: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
118214: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
118215: as_echo_n='/usr/ucb/echo -n'
118216: else
118217: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
118218: as_echo_n_body='eval
118219: arg=$1;
118220: case $arg in #(
118221: *"$as_nl"*)
118222: expr "X$arg" : "X\\(.*\\)$as_nl";
118223: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
118224: esac;
118225: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
118226: '
118227: export as_echo_n_body
118228: as_echo_n='sh -c $as_echo_n_body as_echo'
118229: fi
118230: export as_echo_body
118231: as_echo='sh -c $as_echo_body as_echo'
118232: fi
118233:
118234: # The user is always right.
118235: if test "${PATH_SEPARATOR+set}" != set; then
118236: PATH_SEPARATOR=:
118237: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
118238: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
118239: PATH_SEPARATOR=';'
118240: }
118241: fi
118242:
118243:
118244: # IFS
118245: # We need space, tab and new line, in precisely that order. Quoting is
118246: # there to prevent editors from complaining about space-tab.
118247: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
118248: # splitting by setting IFS to empty value.)
118249: IFS=" "" $as_nl"
118250:
118251: # Find who we are. Look in the path if we contain no directory separator.
118252: as_myself=
118253: case $0 in #((
118254: *[\\/]* ) as_myself=$0 ;;
118255: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118256: for as_dir in $PATH
118257: do
118258: IFS=$as_save_IFS
118259: test -z "$as_dir" && as_dir=.
118260: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118261: done
118262: IFS=$as_save_IFS
118263:
118264: ;;
118265: esac
118266: # We did not find ourselves, most probably we were run as `sh COMMAND'
118267: # in which case we are not to be found in the path.
118268: if test "x$as_myself" = x; then
118269: as_myself=$0
118270: fi
118271: if test ! -f "$as_myself"; then
118272: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118273: exit 1
118274: fi
118275:
118276: # Unset variables that we do not need and which cause bugs (e.g. in
118277: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118278: # suppresses any "Segmentation fault" message there. '((' could
118279: # trigger a bug in pdksh 5.2.14.
118280: for as_var in BASH_ENV ENV MAIL MAILPATH
118281: do eval test x\${$as_var+set} = xset \
118282: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
118283: done
118284: PS1='$ '
118285: PS2='> '
118286: PS4='+ '
118287:
118288: # NLS nuisances.
118289: LC_ALL=C
118290: export LC_ALL
118291: LANGUAGE=C
118292: export LANGUAGE
118293:
118294: # CDPATH.
118295: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
118296:
118297:
118298: # as_fn_error STATUS ERROR [LINENO LOG_FD]
118299: # ----------------------------------------
118300: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
118301: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
118302: # script with STATUS, using 1 if that was 0.
118303: as_fn_error ()
118304: {
118305: as_status=$1; test $as_status -eq 0 && as_status=1
118306: if test "$4"; then
118307: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
118308: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
118309: fi
118310: $as_echo "$as_me: error: $2" >&2
118311: as_fn_exit $as_status
118312: } # as_fn_error
118313:
118314:
118315: # as_fn_set_status STATUS
118316: # -----------------------
118317: # Set $? to STATUS, without forking.
118318: as_fn_set_status ()
118319: {
118320: return $1
118321: } # as_fn_set_status
118322:
118323: # as_fn_exit STATUS
118324: # -----------------
118325: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
118326: as_fn_exit ()
118327: {
118328: set +e
118329: as_fn_set_status $1
118330: exit $1
118331: } # as_fn_exit
118332:
118333: # as_fn_unset VAR
118334: # ---------------
118335: # Portably unset VAR.
118336: as_fn_unset ()
118337: {
118338: { eval $1=; unset $1;}
118339: }
118340: as_unset=as_fn_unset
118341: # as_fn_append VAR VALUE
118342: # ----------------------
118343: # Append the text in VALUE to the end of the definition contained in VAR. Take
118344: # advantage of any shell optimizations that allow amortized linear growth over
118345: # repeated appends, instead of the typical quadratic growth present in naive
118346: # implementations.
118347: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
118348: eval 'as_fn_append ()
118349: {
118350: eval $1+=\$2
118351: }'
118352: else
118353: as_fn_append ()
118354: {
118355: eval $1=\$$1\$2
118356: }
118357: fi # as_fn_append
118358:
118359: # as_fn_arith ARG...
118360: # ------------------
118361: # Perform arithmetic evaluation on the ARGs, and store the result in the
118362: # global $as_val. Take advantage of shells that can avoid forks. The arguments
118363: # must be portable across $(()) and expr.
118364: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
118365: eval 'as_fn_arith ()
118366: {
118367: as_val=$(( $* ))
118368: }'
118369: else
118370: as_fn_arith ()
118371: {
118372: as_val=`expr "$@" || test $? -eq 1`
118373: }
118374: fi # as_fn_arith
118375:
118376:
118377: if expr a : '\(a\)' >/dev/null 2>&1 &&
118378: test "X`expr 00001 : '.*\(...\)'`" = X001; then
118379: as_expr=expr
118380: else
118381: as_expr=false
118382: fi
118383:
118384: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
118385: as_basename=basename
118386: else
118387: as_basename=false
118388: fi
118389:
118390: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
118391: as_dirname=dirname
118392: else
118393: as_dirname=false
118394: fi
118395:
118396: as_me=`$as_basename -- "$0" ||
118397: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
118398: X"$0" : 'X\(//\)$' \| \
118399: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
118400: $as_echo X/"$0" |
118401: sed '/^.*\/\([^/][^/]*\)\/*$/{
118402: s//\1/
118403: q
118404: }
118405: /^X\/\(\/\/\)$/{
118406: s//\1/
118407: q
118408: }
118409: /^X\/\(\/\).*/{
118410: s//\1/
118411: q
118412: }
118413: s/.*/./; q'`
118414:
118415: # Avoid depending upon Character Ranges.
118416: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
118417: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
118418: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
118419: as_cr_digits='0123456789'
118420: as_cr_alnum=$as_cr_Letters$as_cr_digits
118421:
118422: ECHO_C= ECHO_N= ECHO_T=
118423: case `echo -n x` in #(((((
118424: -n*)
118425: case `echo 'xy\c'` in
118426: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
118427: xy) ECHO_C='\c';;
118428: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
118429: ECHO_T=' ';;
118430: esac;;
118431: *)
118432: ECHO_N='-n';;
118433: esac
118434:
118435: rm -f conf$$ conf$$.exe conf$$.file
118436: if test -d conf$$.dir; then
118437: rm -f conf$$.dir/conf$$.file
118438: else
118439: rm -f conf$$.dir
118440: mkdir conf$$.dir 2>/dev/null
118441: fi
118442: if (echo >conf$$.file) 2>/dev/null; then
118443: if ln -s conf$$.file conf$$ 2>/dev/null; then
118444: as_ln_s='ln -s'
118445: # ... but there are two gotchas:
118446: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
118447: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
118448: # In both cases, we have to default to `cp -p'.
118449: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
118450: as_ln_s='cp -p'
118451: elif ln conf$$.file conf$$ 2>/dev/null; then
118452: as_ln_s=ln
118453: else
118454: as_ln_s='cp -p'
118455: fi
118456: else
118457: as_ln_s='cp -p'
118458: fi
118459: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
118460: rmdir conf$$.dir 2>/dev/null
118461:
118462:
118463: # as_fn_mkdir_p
118464: # -------------
118465: # Create "$as_dir" as a directory, including parents if necessary.
118466: as_fn_mkdir_p ()
118467: {
118468:
118469: case $as_dir in #(
118470: -*) as_dir=./$as_dir;;
118471: esac
118472: test -d "$as_dir" || eval $as_mkdir_p || {
118473: as_dirs=
118474: while :; do
118475: case $as_dir in #(
118476: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
118477: *) as_qdir=$as_dir;;
118478: esac
118479: as_dirs="'$as_qdir' $as_dirs"
118480: as_dir=`$as_dirname -- "$as_dir" ||
118481: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
118482: X"$as_dir" : 'X\(//\)[^/]' \| \
118483: X"$as_dir" : 'X\(//\)$' \| \
118484: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
118485: $as_echo X"$as_dir" |
118486: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
118487: s//\1/
118488: q
118489: }
118490: /^X\(\/\/\)[^/].*/{
118491: s//\1/
118492: q
118493: }
118494: /^X\(\/\/\)$/{
118495: s//\1/
118496: q
118497: }
118498: /^X\(\/\).*/{
118499: s//\1/
118500: q
118501: }
118502: s/.*/./; q'`
118503: test -d "$as_dir" && break
118504: done
118505: test -z "$as_dirs" || eval "mkdir $as_dirs"
118506: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
118507:
118508:
118509: } # as_fn_mkdir_p
118510: if mkdir -p . 2>/dev/null; then
118511: as_mkdir_p='mkdir -p "$as_dir"'
118512: else
118513: test -d ./-p && rmdir ./-p
118514: as_mkdir_p=false
118515: fi
118516:
118517: if test -x / >/dev/null 2>&1; then
118518: as_test_x='test -x'
118519: else
118520: if ls -dL / >/dev/null 2>&1; then
118521: as_ls_L_option=L
118522: else
118523: as_ls_L_option=
118524: fi
118525: as_test_x='
118526: eval sh -c '\''
118527: if test -d "$1"; then
118528: test -d "$1/.";
118529: else
118530: case $1 in #(
118531: -*)set "./$1";;
118532: esac;
118533: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
118534: ???[sx]*):;;*)false;;esac;fi
118535: '\'' sh
118536: '
118537: fi
118538: as_executable_p=$as_test_x
118539:
118540: # Sed expression to map a string onto a valid CPP name.
118541: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
118542:
118543: # Sed expression to map a string onto a valid variable name.
118544: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
118545:
118546:
118547: exec 6>&1
118548: ## ----------------------------------- ##
118549: ## Main body of $CONFIG_STATUS script. ##
118550: ## ----------------------------------- ##
118551: _ASEOF
118552: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
118553:
118554: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
118555: # Save the log message, to keep $0 and so on meaningful, and to
118556: # report actual input values of CONFIG_FILES etc. instead of their
118557: # values after options handling.
118558: ac_log="
118559: This file was extended by $as_me, which was
118560: generated by GNU Autoconf 2.68. Invocation command line was
118561:
118562: CONFIG_FILES = $CONFIG_FILES
118563: CONFIG_HEADERS = $CONFIG_HEADERS
118564: CONFIG_LINKS = $CONFIG_LINKS
118565: CONFIG_COMMANDS = $CONFIG_COMMANDS
118566: $ $0 $@
118567:
118568: on `(hostname || uname -n) 2>/dev/null | sed 1q`
118569: "
118570:
118571: _ACEOF
118572:
118573: case $ac_config_files in *"
118574: "*) set x $ac_config_files; shift; ac_config_files=$*;;
118575: esac
118576:
118577: case $ac_config_headers in *"
118578: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
118579: esac
118580:
118581:
118582: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
118583: # Files that config.status was made for.
118584: config_files="$ac_config_files"
118585: config_headers="$ac_config_headers"
118586: config_commands="$ac_config_commands"
118587:
118588: _ACEOF
118589:
118590: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
118591: ac_cs_usage="\
118592: \`$as_me' instantiates files and other configuration actions
118593: from templates according to the current configuration. Unless the files
118594: and actions are specified as TAGs, all are instantiated by default.
118595:
118596: Usage: $0 [OPTION]... [TAG]...
118597:
118598: -h, --help print this help, then exit
118599: -V, --version print version number and configuration settings, then exit
118600: --config print configuration, then exit
118601: -q, --quiet, --silent
118602: do not print progress messages
118603: -d, --debug don't remove temporary files
118604: --recheck update $as_me by reconfiguring in the same conditions
118605: --file=FILE[:TEMPLATE]
118606: instantiate the configuration file FILE
118607: --header=FILE[:TEMPLATE]
118608: instantiate the configuration header FILE
118609:
118610: Configuration files:
118611: $config_files
118612:
118613: Configuration headers:
118614: $config_headers
118615:
118616: Configuration commands:
118617: $config_commands
118618:
118619: Report bugs to the package provider."
118620:
118621: _ACEOF
118622: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
118623: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
118624: ac_cs_version="\\
118625: config.status
118626: configured by $0, generated by GNU Autoconf 2.68,
118627: with options \\"\$ac_cs_config\\"
118628:
118629: Copyright (C) 2010 Free Software Foundation, Inc.
118630: This config.status script is free software; the Free Software Foundation
118631: gives unlimited permission to copy, distribute and modify it."
118632:
118633: ac_pwd='$ac_pwd'
118634: srcdir='$srcdir'
118635: test -n "\$AWK" || AWK=awk
118636: _ACEOF
118637:
118638: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
118639: # The default lists apply if the user does not specify any file.
118640: ac_need_defaults=:
118641: while test $# != 0
118642: do
118643: case $1 in
118644: --*=?*)
118645: ac_option=`expr "X$1" : 'X\([^=]*\)='`
118646: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
118647: ac_shift=:
118648: ;;
118649: --*=)
118650: ac_option=`expr "X$1" : 'X\([^=]*\)='`
118651: ac_optarg=
118652: ac_shift=:
118653: ;;
118654: *)
118655: ac_option=$1
118656: ac_optarg=$2
118657: ac_shift=shift
118658: ;;
118659: esac
118660:
118661: case $ac_option in
118662: # Handling of the options.
118663: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
118664: ac_cs_recheck=: ;;
118665: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
118666: $as_echo "$ac_cs_version"; exit ;;
118667: --config | --confi | --conf | --con | --co | --c )
118668: $as_echo "$ac_cs_config"; exit ;;
118669: --debug | --debu | --deb | --de | --d | -d )
118670: debug=: ;;
118671: --file | --fil | --fi | --f )
118672: $ac_shift
118673: case $ac_optarg in
118674: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
118675: '') as_fn_error $? "missing file argument" ;;
118676: esac
118677: as_fn_append CONFIG_FILES " '$ac_optarg'"
118678: ac_need_defaults=false;;
118679: --header | --heade | --head | --hea )
118680: $ac_shift
118681: case $ac_optarg in
118682: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
118683: esac
118684: as_fn_append CONFIG_HEADERS " '$ac_optarg'"
118685: ac_need_defaults=false;;
118686: --he | --h)
118687: # Conflict between --help and --header
118688: as_fn_error $? "ambiguous option: \`$1'
118689: Try \`$0 --help' for more information.";;
118690: --help | --hel | -h )
118691: $as_echo "$ac_cs_usage"; exit ;;
118692: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
118693: | -silent | --silent | --silen | --sile | --sil | --si | --s)
118694: ac_cs_silent=: ;;
118695:
118696: # This is an error.
118697: -*) as_fn_error $? "unrecognized option: \`$1'
118698: Try \`$0 --help' for more information." ;;
118699:
118700: *) as_fn_append ac_config_targets " $1"
118701: ac_need_defaults=false ;;
118702:
118703: esac
118704: shift
118705: done
118706:
118707: ac_configure_extra_args=
118708:
118709: if $ac_cs_silent; then
118710: exec 6>/dev/null
118711: ac_configure_extra_args="$ac_configure_extra_args --silent"
118712: fi
118713:
118714: _ACEOF
118715: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
118716: if \$ac_cs_recheck; then
118717: set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
118718: shift
118719: \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
118720: CONFIG_SHELL='$SHELL'
118721: export CONFIG_SHELL
118722: exec "\$@"
118723: fi
118724:
118725: _ACEOF
118726: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
118727: exec 5>>config.log
118728: {
118729: echo
118730: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
118731: ## Running $as_me. ##
118732: _ASBOX
118733: $as_echo "$ac_log"
118734: } >&5
118735:
118736: _ACEOF
118737: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
118738: #
118739: # INIT-COMMANDS
118740: #
118741:
118742:
118743: if test "\$CONFIG_FILES" = "$ALL_OUTPUT_FILES" || test "\$CONFIG_FILES" = " $ALL_OUTPUT_FILES" || test -z "\$CONFIG_FILES"; then
118744: REDO_ALL=yes
118745: fi
118746:
118747: ################################################################
118748: # Create configuration headers
118749: #
118750:
118751: test -d TSRM || $php_shtool mkdir TSRM
118752: echo '#include <../main/php_config.h>' > TSRM/tsrm_config.h
118753:
118754: test -d Zend || $php_shtool mkdir Zend
118755:
118756: cat >Zend/zend_config.h <<FEO
118757: #include <../main/php_config.h>
118758: #if defined(APACHE) && defined(PHP_API_VERSION)
118759: #undef HAVE_DLFCN_H
118760: #endif
118761: FEO
118762:
118763: # run this only when generating all the files?
118764: if test -n "\$REDO_ALL"; then
118765: # Hacking while airborne considered harmful.
118766: #
118767: echo "creating main/internal_functions.c"
118768: extensions="$EXT_STATIC"
118769: sh $srcdir/build/genif.sh $srcdir/main/internal_functions.c.in $srcdir "$EXTRA_MODULE_PTRS" $AWK \$extensions > main/internal_functions.c
118770:
118771: echo "creating main/internal_functions_cli.c"
118772: cli_extensions="$EXT_CLI_STATIC"
118773: sh $srcdir/build/genif.sh $srcdir/main/internal_functions.c.in $srcdir "$EXTRA_MODULE_PTRS" $AWK \$cli_extensions > main/internal_functions_cli.c
118774:
118775: if test "$UNAME" = "FreeBSD" && test "$PHP_SAPI" = "apache2filter" && test "$TSRM_PTH" != "pth-config" ; then
118776: echo "+--------------------------------------------------------------------+"
118777: echo "| *** WARNING *** |"
118778: echo "| |"
118779: echo "| In order to build PHP as a Apache2 module on FreeBSD, you have to |"
118780: echo "| add --with-tsrm-pth to your ./configure line. Therefore you need |"
118781: echo "| to install gnu-pth from /usr/ports/devel/pth. |"
118782: fi
118783:
118784: if test -n "$PHP_APXS_BROKEN"; then
118785: echo "+--------------------------------------------------------------------+"
118786: echo "| WARNING: Your $APXS script is most likely broken."
118787: echo "| |"
118788: echo "| Please go read http://www.php.net/faq.build#faq.build.apxs |"
118789: echo "| and make the changes described there and try again. |"
118790: fi
118791:
118792: if test -n "$DEBUG_LOG"; then
118793: rm -f config.cache
118794: cat <<X
118795: +--------------------------------------------------------------------+
118796: | *** ATTENTION *** |
118797: | |
118798: | Something is likely to be messed up here, because the configure |
118799: | script was not able to detect a simple feature on your platform. |
118800: | This is often caused by incorrect configuration parameters. Please |
118801: | see the file debug.log for error messages. |
118802: | |
118803: | If you are unable to fix this, send the file debug.log to the |
118804: | php-install@lists.php.net mailing list and include appropiate |
118805: | information about your setup. |
118806: X
118807: fi
118808:
118809: # Warn about linking Apache with libpthread if oci8 extension is enabled on linux.
118810: if test "$PHP_OCI8" != "no"; then
118811: if test "$PHP_SAPI" = "apache"; then
118812: if test `uname` = "Linux"; then
118813: cat <<X
118814: +--------------------------------------------------------------------+
118815: | *** WARNING *** |
118816: | |
118817: | Please check that your Apache (httpd) is linked with libpthread. |
118818: | If not, you have to recompile Apache with pthread. For more |
118819: | details, see this page: http://www.php.net/manual/ref.oci8.php |
118820: X
118821: fi
118822: fi
118823:
118824: if test "$PHP_SIGCHILD" != "yes"; then
118825: if test "$PHP_OCI8_INSTANT_CLIENT" = "no"; then
118826: cat <<X
118827: +--------------------------------------------------------------------+
118828: | Notice: |
118829: | If you encounter <defunc> processes when using a local Oracle |
118830: | database, set the value BEQUEATH_DETACH=YES in Oracle Net's |
118831: | sqlnet.ora file on the PHP host, or set the environment variable |
118832: | BEQUEATH_DETACH to YES before starting Apache. If the problem |
118833: | still occurs, then recompile PHP and specify --enable-sigchild |
118834: | when configuring. |
118835: X
118836: fi
118837: fi
118838: fi
118839:
118840: cat <<X
118841: +--------------------------------------------------------------------+
118842: | License: |
118843: | This software is subject to the PHP License, available in this |
118844: | distribution in the file LICENSE. By continuing this installation |
118845: | process, you are bound by the terms of this license agreement. |
118846: | If you do not agree with the terms of this license, you must abort |
118847: | the installation process at this point. |
118848: +--------------------------------------------------------------------+
118849:
118850: Thank you for using PHP.
118851:
118852: X
118853:
118854: # Output unknown configure options
118855: if test "$PHP_UNKNOWN_CONFIGURE_OPTIONS"; then
118856: echo "Notice: Following unknown configure options were used:
118857: $PHP_UNKNOWN_CONFIGURE_OPTIONS
118858:
118859: Check '$0 --help' for available options
118860: "
118861: fi
118862:
118863: fi
118864:
118865:
118866: _ACEOF
118867:
118868: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
118869:
118870: # Handling of arguments.
118871: for ac_config_target in $ac_config_targets
118872: do
118873: case $ac_config_target in
118874: "main/php_config.h") CONFIG_HEADERS="$CONFIG_HEADERS main/php_config.h" ;;
118875: "$ALL_OUTPUT_FILES") CONFIG_FILES="$CONFIG_FILES $ALL_OUTPUT_FILES" ;;
118876: "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
118877:
118878: *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
118879: esac
118880: done
118881:
118882:
118883: # If the user did not use the arguments to specify the items to instantiate,
118884: # then the envvar interface is used. Set only those that are not.
118885: # We use the long form for the default assignment because of an extremely
118886: # bizarre bug on SunOS 4.1.3.
118887: if $ac_need_defaults; then
118888: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
118889: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
118890: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
118891: fi
118892:
118893: # Have a temporary directory for convenience. Make it in the build tree
118894: # simply because there is no reason against having it here, and in addition,
118895: # creating and moving files from /tmp can sometimes cause problems.
118896: # Hook for its removal unless debugging.
118897: # Note that there is a small window in which the directory will not be cleaned:
118898: # after its creation but before its name has been assigned to `$tmp'.
118899: $debug ||
118900: {
118901: tmp= ac_tmp=
118902: trap 'exit_status=$?
118903: : "${ac_tmp:=$tmp}"
118904: { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
118905: ' 0
118906: trap 'as_fn_exit 1' 1 2 13 15
118907: }
118908: # Create a (secure) tmp directory for tmp files.
118909:
118910: {
118911: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
118912: test -d "$tmp"
118913: } ||
118914: {
118915: tmp=./conf$$-$RANDOM
118916: (umask 077 && mkdir "$tmp")
118917: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
118918: ac_tmp=$tmp
118919:
118920: # Set up the scripts for CONFIG_FILES section.
118921: # No need to generate them if there are no CONFIG_FILES.
118922: # This happens for instance with `./config.status config.h'.
118923: if test -n "$CONFIG_FILES"; then
118924:
118925:
118926: ac_cr=`echo X | tr X '\015'`
118927: # On cygwin, bash can eat \r inside `` if the user requested igncr.
118928: # But we know of no other shell where ac_cr would be empty at this
118929: # point, so we can use a bashism as a fallback.
118930: if test "x$ac_cr" = x; then
118931: eval ac_cr=\$\'\\r\'
118932: fi
118933: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
118934: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
118935: ac_cs_awk_cr='\\r'
118936: else
118937: ac_cs_awk_cr=$ac_cr
118938: fi
118939:
118940: echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
118941: _ACEOF
118942:
118943:
118944: {
118945: echo "cat >conf$$subs.awk <<_ACEOF" &&
118946: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
118947: echo "_ACEOF"
118948: } >conf$$subs.sh ||
118949: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
118950: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
118951: ac_delim='%!_!# '
118952: for ac_last_try in false false false false false :; do
118953: . ./conf$$subs.sh ||
118954: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
118955:
118956: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
118957: if test $ac_delim_n = $ac_delim_num; then
118958: break
118959: elif $ac_last_try; then
118960: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
118961: else
118962: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
118963: fi
118964: done
118965: rm -f conf$$subs.sh
118966:
118967: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
118968: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
118969: _ACEOF
118970: sed -n '
118971: h
118972: s/^/S["/; s/!.*/"]=/
118973: p
118974: g
118975: s/^[^!]*!//
118976: :repl
118977: t repl
118978: s/'"$ac_delim"'$//
118979: t delim
118980: :nl
118981: h
118982: s/\(.\{148\}\)..*/\1/
118983: t more1
118984: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
118985: p
118986: n
118987: b repl
118988: :more1
118989: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
118990: p
118991: g
118992: s/.\{148\}//
118993: t nl
118994: :delim
118995: h
118996: s/\(.\{148\}\)..*/\1/
118997: t more2
118998: s/["\\]/\\&/g; s/^/"/; s/$/"/
118999: p
119000: b
119001: :more2
119002: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
119003: p
119004: g
119005: s/.\{148\}//
119006: t delim
119007: ' <conf$$subs.awk | sed '
119008: /^[^""]/{
119009: N
119010: s/\n//
119011: }
119012: ' >>$CONFIG_STATUS || ac_write_fail=1
119013: rm -f conf$$subs.awk
119014: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
119015: _ACAWK
119016: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
119017: for (key in S) S_is_set[key] = 1
119018: FS = ""
119019:
119020: }
119021: {
119022: line = $ 0
119023: nfields = split(line, field, "@")
119024: substed = 0
119025: len = length(field[1])
119026: for (i = 2; i < nfields; i++) {
119027: key = field[i]
119028: keylen = length(key)
119029: if (S_is_set[key]) {
119030: value = S[key]
119031: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
119032: len += length(value) + length(field[++i])
119033: substed = 1
119034: } else
119035: len += 1 + keylen
119036: }
119037:
119038: print line
119039: }
119040:
119041: _ACAWK
119042: _ACEOF
119043: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
119044: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
119045: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
119046: else
119047: cat
119048: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
119049: || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
119050: _ACEOF
119051:
119052: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
119053: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
119054: # trailing colons and then remove the whole line if VPATH becomes empty
119055: # (actually we leave an empty line to preserve line numbers).
119056: if test "x$srcdir" = x.; then
119057: ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
119058: h
119059: s///
119060: s/^/:/
119061: s/[ ]*$/:/
119062: s/:\$(srcdir):/:/g
119063: s/:\${srcdir}:/:/g
119064: s/:@srcdir@:/:/g
119065: s/^:*//
119066: s/:*$//
119067: x
119068: s/\(=[ ]*\).*/\1/
119069: G
119070: s/\n//
119071: s/^[^=]*=[ ]*$//
119072: }'
119073: fi
119074:
119075: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
119076: fi # test -n "$CONFIG_FILES"
119077:
119078: # Set up the scripts for CONFIG_HEADERS section.
119079: # No need to generate them if there are no CONFIG_HEADERS.
119080: # This happens for instance with `./config.status Makefile'.
119081: if test -n "$CONFIG_HEADERS"; then
119082: cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
119083: BEGIN {
119084: _ACEOF
119085:
119086: # Transform confdefs.h into an awk script `defines.awk', embedded as
119087: # here-document in config.status, that substitutes the proper values into
119088: # config.h.in to produce config.h.
119089:
119090: # Create a delimiter string that does not exist in confdefs.h, to ease
119091: # handling of long lines.
119092: ac_delim='%!_!# '
119093: for ac_last_try in false false :; do
119094: ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
119095: if test -z "$ac_tt"; then
119096: break
119097: elif $ac_last_try; then
119098: as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
119099: else
119100: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
119101: fi
119102: done
119103:
119104: # For the awk script, D is an array of macro values keyed by name,
119105: # likewise P contains macro parameters if any. Preserve backslash
119106: # newline sequences.
119107:
119108: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
119109: sed -n '
119110: s/.\{148\}/&'"$ac_delim"'/g
119111: t rset
119112: :rset
119113: s/^[ ]*#[ ]*define[ ][ ]*/ /
119114: t def
119115: d
119116: :def
119117: s/\\$//
119118: t bsnl
119119: s/["\\]/\\&/g
119120: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
119121: D["\1"]=" \3"/p
119122: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
119123: d
119124: :bsnl
119125: s/["\\]/\\&/g
119126: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
119127: D["\1"]=" \3\\\\\\n"\\/p
119128: t cont
119129: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
119130: t cont
119131: d
119132: :cont
119133: n
119134: s/.\{148\}/&'"$ac_delim"'/g
119135: t clear
119136: :clear
119137: s/\\$//
119138: t bsnlc
119139: s/["\\]/\\&/g; s/^/"/; s/$/"/p
119140: d
119141: :bsnlc
119142: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
119143: b cont
119144: ' <confdefs.h | sed '
119145: s/'"$ac_delim"'/"\\\
119146: "/g' >>$CONFIG_STATUS || ac_write_fail=1
119147:
119148: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
119149: for (key in D) D_is_set[key] = 1
119150: FS = ""
119151: }
119152: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
119153: line = \$ 0
119154: split(line, arg, " ")
119155: if (arg[1] == "#") {
119156: defundef = arg[2]
119157: mac1 = arg[3]
119158: } else {
119159: defundef = substr(arg[1], 2)
119160: mac1 = arg[2]
119161: }
119162: split(mac1, mac2, "(") #)
119163: macro = mac2[1]
119164: prefix = substr(line, 1, index(line, defundef) - 1)
119165: if (D_is_set[macro]) {
119166: # Preserve the white space surrounding the "#".
119167: print prefix "define", macro P[macro] D[macro]
119168: next
119169: } else {
119170: # Replace #undef with comments. This is necessary, for example,
119171: # in the case of _POSIX_SOURCE, which is predefined and required
119172: # on some systems where configure will not decide to define it.
119173: if (defundef == "undef") {
119174: print "/*", prefix defundef, macro, "*/"
119175: next
119176: }
119177: }
119178: }
119179: { print }
119180: _ACAWK
119181: _ACEOF
119182: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
119183: as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
119184: fi # test -n "$CONFIG_HEADERS"
119185:
119186:
119187: eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
119188: shift
119189: for ac_tag
119190: do
119191: case $ac_tag in
119192: :[FHLC]) ac_mode=$ac_tag; continue;;
119193: esac
119194: case $ac_mode$ac_tag in
119195: :[FHL]*:*);;
119196: :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
119197: :[FH]-) ac_tag=-:-;;
119198: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
119199: esac
119200: ac_save_IFS=$IFS
119201: IFS=:
119202: set x $ac_tag
119203: IFS=$ac_save_IFS
119204: shift
119205: ac_file=$1
119206: shift
119207:
119208: case $ac_mode in
119209: :L) ac_source=$1;;
119210: :[FH])
119211: ac_file_inputs=
119212: for ac_f
119213: do
119214: case $ac_f in
119215: -) ac_f="$ac_tmp/stdin";;
119216: *) # Look for the file first in the build tree, then in the source tree
119217: # (if the path is not absolute). The absolute path cannot be DOS-style,
119218: # because $ac_f cannot contain `:'.
119219: test -f "$ac_f" ||
119220: case $ac_f in
119221: [\\/$]*) false;;
119222: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
119223: esac ||
119224: as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
119225: esac
119226: case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
119227: as_fn_append ac_file_inputs " '$ac_f'"
119228: done
119229:
119230: # Let's still pretend it is `configure' which instantiates (i.e., don't
119231: # use $as_me), people would be surprised to read:
119232: # /* config.h. Generated by config.status. */
119233: configure_input='Generated from '`
119234: $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
119235: `' by configure.'
119236: if test x"$ac_file" != x-; then
119237: configure_input="$ac_file. $configure_input"
119238: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
119239: $as_echo "$as_me: creating $ac_file" >&6;}
119240: fi
119241: # Neutralize special characters interpreted by sed in replacement strings.
119242: case $configure_input in #(
119243: *\&* | *\|* | *\\* )
119244: ac_sed_conf_input=`$as_echo "$configure_input" |
119245: sed 's/[\\\\&|]/\\\\&/g'`;; #(
119246: *) ac_sed_conf_input=$configure_input;;
119247: esac
119248:
119249: case $ac_tag in
119250: *:-:* | *:-) cat >"$ac_tmp/stdin" \
119251: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
119252: esac
119253: ;;
119254: esac
119255:
119256: ac_dir=`$as_dirname -- "$ac_file" ||
119257: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
119258: X"$ac_file" : 'X\(//\)[^/]' \| \
119259: X"$ac_file" : 'X\(//\)$' \| \
119260: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
119261: $as_echo X"$ac_file" |
119262: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
119263: s//\1/
119264: q
119265: }
119266: /^X\(\/\/\)[^/].*/{
119267: s//\1/
119268: q
119269: }
119270: /^X\(\/\/\)$/{
119271: s//\1/
119272: q
119273: }
119274: /^X\(\/\).*/{
119275: s//\1/
119276: q
119277: }
119278: s/.*/./; q'`
119279: as_dir="$ac_dir"; as_fn_mkdir_p
119280: ac_builddir=.
119281:
119282: case "$ac_dir" in
119283: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
119284: *)
119285: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
119286: # A ".." for each directory in $ac_dir_suffix.
119287: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
119288: case $ac_top_builddir_sub in
119289: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
119290: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
119291: esac ;;
119292: esac
119293: ac_abs_top_builddir=$ac_pwd
119294: ac_abs_builddir=$ac_pwd$ac_dir_suffix
119295: # for backward compatibility:
119296: ac_top_builddir=$ac_top_build_prefix
119297:
119298: case $srcdir in
119299: .) # We are building in place.
119300: ac_srcdir=.
119301: ac_top_srcdir=$ac_top_builddir_sub
119302: ac_abs_top_srcdir=$ac_pwd ;;
119303: [\\/]* | ?:[\\/]* ) # Absolute name.
119304: ac_srcdir=$srcdir$ac_dir_suffix;
119305: ac_top_srcdir=$srcdir
119306: ac_abs_top_srcdir=$srcdir ;;
119307: *) # Relative name.
119308: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
119309: ac_top_srcdir=$ac_top_build_prefix$srcdir
119310: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
119311: esac
119312: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
119313:
119314:
119315: case $ac_mode in
119316: :F)
119317: #
119318: # CONFIG_FILE
119319: #
119320:
119321: _ACEOF
119322:
119323: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
119324: # If the template does not know about datarootdir, expand it.
119325: # FIXME: This hack should be removed a few years after 2.60.
119326: ac_datarootdir_hack=; ac_datarootdir_seen=
119327: ac_sed_dataroot='
119328: /datarootdir/ {
119329: p
119330: q
119331: }
119332: /@datadir@/p
119333: /@docdir@/p
119334: /@infodir@/p
119335: /@localedir@/p
119336: /@mandir@/p'
119337: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
119338: *datarootdir*) ac_datarootdir_seen=yes;;
119339: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
119340: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
119341: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
119342: _ACEOF
119343: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
119344: ac_datarootdir_hack='
119345: s&@datadir@&$datadir&g
119346: s&@docdir@&$docdir&g
119347: s&@infodir@&$infodir&g
119348: s&@localedir@&$localedir&g
119349: s&@mandir@&$mandir&g
119350: s&\\\${datarootdir}&$datarootdir&g' ;;
119351: esac
119352: _ACEOF
119353:
119354: # Neutralize VPATH when `$srcdir' = `.'.
119355: # Shell code in configure.ac might set extrasub.
119356: # FIXME: do we really want to maintain this feature?
119357: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
119358: ac_sed_extra="$ac_vpsub
119359: $extrasub
119360: _ACEOF
119361: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
119362: :t
119363: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
119364: s|@configure_input@|$ac_sed_conf_input|;t t
119365: s&@top_builddir@&$ac_top_builddir_sub&;t t
119366: s&@top_build_prefix@&$ac_top_build_prefix&;t t
119367: s&@srcdir@&$ac_srcdir&;t t
119368: s&@abs_srcdir@&$ac_abs_srcdir&;t t
119369: s&@top_srcdir@&$ac_top_srcdir&;t t
119370: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
119371: s&@builddir@&$ac_builddir&;t t
119372: s&@abs_builddir@&$ac_abs_builddir&;t t
119373: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
119374: $ac_datarootdir_hack
119375: "
119376: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
119377: >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
119378:
119379: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
119380: { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
119381: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
119382: "$ac_tmp/out"`; test -z "$ac_out"; } &&
119383: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
119384: which seems to be undefined. Please make sure it is defined" >&5
119385: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
119386: which seems to be undefined. Please make sure it is defined" >&2;}
119387:
119388: rm -f "$ac_tmp/stdin"
119389: case $ac_file in
119390: -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
119391: *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
119392: esac \
119393: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
119394: ;;
119395: :H)
119396: #
119397: # CONFIG_HEADER
119398: #
119399: if test x"$ac_file" != x-; then
119400: {
119401: $as_echo "/* $configure_input */" \
119402: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
119403: } >"$ac_tmp/config.h" \
119404: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
119405: if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
119406: { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
119407: $as_echo "$as_me: $ac_file is unchanged" >&6;}
119408: else
119409: rm -f "$ac_file"
119410: mv "$ac_tmp/config.h" "$ac_file" \
119411: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
119412: fi
119413: else
119414: $as_echo "/* $configure_input */" \
119415: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
119416: || as_fn_error $? "could not create -" "$LINENO" 5
119417: fi
119418: ;;
119419:
119420: :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
119421: $as_echo "$as_me: executing $ac_file commands" >&6;}
119422: ;;
119423: esac
119424:
119425: done # for ac_tag
119426:
119427:
119428: as_fn_exit 0
119429: _ACEOF
119430: ac_clean_files=$ac_clean_files_save
119431:
119432: test $ac_write_fail = 0 ||
119433: as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
119434:
119435:
119436: # configure is writing to config.log, and then calls config.status.
119437: # config.status does its own redirection, appending to config.log.
119438: # Unfortunately, on DOS this fails, as config.log is still kept open
119439: # by configure, so config.status won't be able to write to it; its
119440: # output is simply discarded. So we exec the FD to /dev/null,
119441: # effectively closing config.log, so it can be properly (re)opened and
119442: # appended to by config.status. When coming back to configure, we
119443: # need to make the FD available again.
119444: if test "$no_create" != yes; then
119445: ac_cs_success=:
119446: ac_config_status_args=
119447: test "$silent" = yes &&
119448: ac_config_status_args="$ac_config_status_args --quiet"
119449: exec 5>/dev/null
119450: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
119451: exec 5>>config.log
119452: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
119453: # would make configure fail if this is the last instruction.
119454: $ac_cs_success || as_fn_exit 1
119455: fi
119456: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
119457: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
119458: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
119459: fi
119460:
119461:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>