drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1 | #! /bin/sh |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 2 | # Guess values for system-dependent variables and create Makefiles. |
drh | 2fca705 | 2016-01-11 12:52:55 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.69 for sqlite 3.11.0. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 4 | # |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5 | # |
| 6 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
| 7 | # |
| 8 | # |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9 | # This configure script is free software; the Free Software Foundation |
| 10 | # gives unlimited permission to copy, distribute and modify it. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11 | ## -------------------- ## |
| 12 | ## M4sh Initialization. ## |
| 13 | ## -------------------- ## |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 14 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 15 | # Be more Bourne compatible |
| 16 | DUALCASE=1; export DUALCASE # for MKS sh |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18 | emulate sh |
| 19 | NULLCMD=: |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21 | # is contrary to our usage. Disable this feature. |
| 22 | alias -g '${1+"$@"}'='"$@"' |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 23 | setopt NO_GLOB_SUBST |
| 24 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 25 | case `(set -o) 2>/dev/null` in #( |
| 26 | *posix*) : |
| 27 | set -o posix ;; #( |
| 28 | *) : |
| 29 | ;; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 30 | esac |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 31 | fi |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 32 | |
| 33 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 34 | as_nl=' |
| 35 | ' |
| 36 | export as_nl |
| 37 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 41 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 42 | # but without wasting forks for bash or zsh. |
| 43 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 44 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 45 | as_echo='print -r --' |
| 46 | as_echo_n='print -rn --' |
| 47 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 48 | as_echo='printf %s\n' |
| 49 | as_echo_n='printf %s' |
| 50 | else |
| 51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 53 | as_echo_n='/usr/ucb/echo -n' |
| 54 | else |
| 55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 56 | as_echo_n_body='eval |
| 57 | arg=$1; |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 58 | case $arg in #( |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 59 | *"$as_nl"*) |
| 60 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 62 | esac; |
| 63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 64 | ' |
| 65 | export as_echo_n_body |
| 66 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 67 | fi |
| 68 | export as_echo_body |
| 69 | as_echo='sh -c $as_echo_body as_echo' |
| 70 | fi |
| 71 | |
| 72 | # The user is always right. |
| 73 | if test "${PATH_SEPARATOR+set}" != set; then |
| 74 | PATH_SEPARATOR=: |
| 75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 77 | PATH_SEPARATOR=';' |
| 78 | } |
| 79 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 80 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 81 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 82 | # IFS |
| 83 | # We need space, tab and new line, in precisely that order. Quoting is |
| 84 | # there to prevent editors from complaining about space-tab. |
| 85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 86 | # splitting by setting IFS to empty value.) |
| 87 | IFS=" "" $as_nl" |
| 88 | |
| 89 | # Find who we are. Look in the path if we contain no directory separator. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 90 | as_myself= |
| 91 | case $0 in #(( |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 92 | *[\\/]* ) as_myself=$0 ;; |
| 93 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 94 | for as_dir in $PATH |
| 95 | do |
| 96 | IFS=$as_save_IFS |
| 97 | test -z "$as_dir" && as_dir=. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 98 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 99 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 100 | IFS=$as_save_IFS |
| 101 | |
| 102 | ;; |
| 103 | esac |
| 104 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 105 | # in which case we are not to be found in the path. |
| 106 | if test "x$as_myself" = x; then |
| 107 | as_myself=$0 |
| 108 | fi |
| 109 | if test ! -f "$as_myself"; then |
| 110 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 111 | exit 1 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 112 | fi |
| 113 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 114 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 115 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 116 | # suppresses any "Segmentation fault" message there. '((' could |
| 117 | # trigger a bug in pdksh 5.2.14. |
| 118 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 119 | do eval test x\${$as_var+set} = xset \ |
| 120 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 121 | done |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 122 | PS1='$ ' |
| 123 | PS2='> ' |
| 124 | PS4='+ ' |
| 125 | |
| 126 | # NLS nuisances. |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 127 | LC_ALL=C |
| 128 | export LC_ALL |
| 129 | LANGUAGE=C |
| 130 | export LANGUAGE |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 131 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 132 | # CDPATH. |
| 133 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 134 | |
| 135 | # Use a proper internal environment variable to ensure we don't fall |
| 136 | # into an infinite loop, continuously re-executing ourselves. |
| 137 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
| 138 | _as_can_reexec=no; export _as_can_reexec; |
| 139 | # We cannot yet assume a decent shell, so we have to provide a |
| 140 | # neutralization value for shells without unset; and this also |
| 141 | # works around shells that cannot unset nonexistent variables. |
| 142 | # Preserve -v and -x to the replacement shell. |
| 143 | BASH_ENV=/dev/null |
| 144 | ENV=/dev/null |
| 145 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 146 | case $- in # (((( |
| 147 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 148 | *v* ) as_opts=-v ;; |
| 149 | *x* ) as_opts=-x ;; |
| 150 | * ) as_opts= ;; |
| 151 | esac |
| 152 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 153 | # Admittedly, this is quite paranoid, since all the known shells bail |
| 154 | # out after a failed `exec'. |
| 155 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 156 | as_fn_exit 255 |
| 157 | fi |
| 158 | # We don't want this to propagate to other subprocesses. |
| 159 | { _as_can_reexec=; unset _as_can_reexec;} |
| 160 | if test "x$CONFIG_SHELL" = x; then |
| 161 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
| 162 | emulate sh |
| 163 | NULLCMD=: |
| 164 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 165 | # is contrary to our usage. Disable this feature. |
| 166 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 167 | setopt NO_GLOB_SUBST |
| 168 | else |
| 169 | case \`(set -o) 2>/dev/null\` in #( |
| 170 | *posix*) : |
| 171 | set -o posix ;; #( |
| 172 | *) : |
| 173 | ;; |
| 174 | esac |
| 175 | fi |
| 176 | " |
| 177 | as_required="as_fn_return () { (exit \$1); } |
| 178 | as_fn_success () { as_fn_return 0; } |
| 179 | as_fn_failure () { as_fn_return 1; } |
| 180 | as_fn_ret_success () { return 0; } |
| 181 | as_fn_ret_failure () { return 1; } |
| 182 | |
| 183 | exitcode=0 |
| 184 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
| 185 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
| 186 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
| 187 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
| 188 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
| 189 | |
| 190 | else |
| 191 | exitcode=1; echo positional parameters were not saved. |
| 192 | fi |
| 193 | test x\$exitcode = x0 || exit 1 |
| 194 | test -x / || exit 1" |
| 195 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
| 196 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
| 197 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
| 198 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
| 199 | test \$(( 1 + 1 )) = 2 || exit 1" |
| 200 | if (eval "$as_required") 2>/dev/null; then : |
| 201 | as_have_required=yes |
| 202 | else |
| 203 | as_have_required=no |
| 204 | fi |
| 205 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
| 206 | |
| 207 | else |
| 208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 209 | as_found=false |
| 210 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 211 | do |
| 212 | IFS=$as_save_IFS |
| 213 | test -z "$as_dir" && as_dir=. |
| 214 | as_found=: |
| 215 | case $as_dir in #( |
| 216 | /*) |
| 217 | for as_base in sh bash ksh sh5; do |
| 218 | # Try only shells that exist, to save several forks. |
| 219 | as_shell=$as_dir/$as_base |
| 220 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 221 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 222 | CONFIG_SHELL=$as_shell as_have_required=yes |
| 223 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 224 | break 2 |
| 225 | fi |
| 226 | fi |
| 227 | done;; |
| 228 | esac |
| 229 | as_found=false |
| 230 | done |
| 231 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 232 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
| 233 | CONFIG_SHELL=$SHELL as_have_required=yes |
| 234 | fi; } |
| 235 | IFS=$as_save_IFS |
| 236 | |
| 237 | |
| 238 | if test "x$CONFIG_SHELL" != x; then : |
| 239 | export CONFIG_SHELL |
| 240 | # We cannot yet assume a decent shell, so we have to provide a |
| 241 | # neutralization value for shells without unset; and this also |
| 242 | # works around shells that cannot unset nonexistent variables. |
| 243 | # Preserve -v and -x to the replacement shell. |
| 244 | BASH_ENV=/dev/null |
| 245 | ENV=/dev/null |
| 246 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 247 | case $- in # (((( |
| 248 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 249 | *v* ) as_opts=-v ;; |
| 250 | *x* ) as_opts=-x ;; |
| 251 | * ) as_opts= ;; |
| 252 | esac |
| 253 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 254 | # Admittedly, this is quite paranoid, since all the known shells bail |
| 255 | # out after a failed `exec'. |
| 256 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 257 | exit 255 |
| 258 | fi |
| 259 | |
| 260 | if test x$as_have_required = xno; then : |
| 261 | $as_echo "$0: This script requires a shell more modern than all" |
| 262 | $as_echo "$0: the shells that I found on your system." |
| 263 | if test x${ZSH_VERSION+set} = xset ; then |
| 264 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 265 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
| 266 | else |
| 267 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
| 268 | $0: including any error possibly output before this |
| 269 | $0: message. Then install a modern shell, or manually run |
| 270 | $0: the script under such a shell if you do have one." |
| 271 | fi |
| 272 | exit 1 |
| 273 | fi |
| 274 | fi |
| 275 | fi |
| 276 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 277 | export SHELL |
| 278 | # Unset more variables known to interfere with behavior of common tools. |
| 279 | CLICOLOR_FORCE= GREP_OPTIONS= |
| 280 | unset CLICOLOR_FORCE GREP_OPTIONS |
| 281 | |
| 282 | ## --------------------- ## |
| 283 | ## M4sh Shell Functions. ## |
| 284 | ## --------------------- ## |
| 285 | # as_fn_unset VAR |
| 286 | # --------------- |
| 287 | # Portably unset VAR. |
| 288 | as_fn_unset () |
| 289 | { |
| 290 | { eval $1=; unset $1;} |
| 291 | } |
| 292 | as_unset=as_fn_unset |
| 293 | |
| 294 | # as_fn_set_status STATUS |
| 295 | # ----------------------- |
| 296 | # Set $? to STATUS, without forking. |
| 297 | as_fn_set_status () |
| 298 | { |
| 299 | return $1 |
| 300 | } # as_fn_set_status |
| 301 | |
| 302 | # as_fn_exit STATUS |
| 303 | # ----------------- |
| 304 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 305 | as_fn_exit () |
| 306 | { |
| 307 | set +e |
| 308 | as_fn_set_status $1 |
| 309 | exit $1 |
| 310 | } # as_fn_exit |
| 311 | |
| 312 | # as_fn_mkdir_p |
| 313 | # ------------- |
| 314 | # Create "$as_dir" as a directory, including parents if necessary. |
| 315 | as_fn_mkdir_p () |
| 316 | { |
| 317 | |
| 318 | case $as_dir in #( |
| 319 | -*) as_dir=./$as_dir;; |
| 320 | esac |
| 321 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 322 | as_dirs= |
| 323 | while :; do |
| 324 | case $as_dir in #( |
| 325 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 326 | *) as_qdir=$as_dir;; |
| 327 | esac |
| 328 | as_dirs="'$as_qdir' $as_dirs" |
| 329 | as_dir=`$as_dirname -- "$as_dir" || |
| 330 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 331 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 332 | X"$as_dir" : 'X\(//\)$' \| \ |
| 333 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 334 | $as_echo X"$as_dir" | |
| 335 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 336 | s//\1/ |
| 337 | q |
| 338 | } |
| 339 | /^X\(\/\/\)[^/].*/{ |
| 340 | s//\1/ |
| 341 | q |
| 342 | } |
| 343 | /^X\(\/\/\)$/{ |
| 344 | s//\1/ |
| 345 | q |
| 346 | } |
| 347 | /^X\(\/\).*/{ |
| 348 | s//\1/ |
| 349 | q |
| 350 | } |
| 351 | s/.*/./; q'` |
| 352 | test -d "$as_dir" && break |
| 353 | done |
| 354 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 355 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 356 | |
| 357 | |
| 358 | } # as_fn_mkdir_p |
| 359 | |
| 360 | # as_fn_executable_p FILE |
| 361 | # ----------------------- |
| 362 | # Test if FILE is an executable regular file. |
| 363 | as_fn_executable_p () |
| 364 | { |
| 365 | test -f "$1" && test -x "$1" |
| 366 | } # as_fn_executable_p |
| 367 | # as_fn_append VAR VALUE |
| 368 | # ---------------------- |
| 369 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 370 | # advantage of any shell optimizations that allow amortized linear growth over |
| 371 | # repeated appends, instead of the typical quadratic growth present in naive |
| 372 | # implementations. |
| 373 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 374 | eval 'as_fn_append () |
| 375 | { |
| 376 | eval $1+=\$2 |
| 377 | }' |
| 378 | else |
| 379 | as_fn_append () |
| 380 | { |
| 381 | eval $1=\$$1\$2 |
| 382 | } |
| 383 | fi # as_fn_append |
| 384 | |
| 385 | # as_fn_arith ARG... |
| 386 | # ------------------ |
| 387 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 388 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 389 | # must be portable across $(()) and expr. |
| 390 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 391 | eval 'as_fn_arith () |
| 392 | { |
| 393 | as_val=$(( $* )) |
| 394 | }' |
| 395 | else |
| 396 | as_fn_arith () |
| 397 | { |
| 398 | as_val=`expr "$@" || test $? -eq 1` |
| 399 | } |
| 400 | fi # as_fn_arith |
| 401 | |
| 402 | |
| 403 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 404 | # ---------------------------------------- |
| 405 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 406 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 407 | # script with STATUS, using 1 if that was 0. |
| 408 | as_fn_error () |
| 409 | { |
| 410 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 411 | if test "$4"; then |
| 412 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 413 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 414 | fi |
| 415 | $as_echo "$as_me: error: $2" >&2 |
| 416 | as_fn_exit $as_status |
| 417 | } # as_fn_error |
| 418 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 419 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 420 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 421 | as_expr=expr |
| 422 | else |
| 423 | as_expr=false |
| 424 | fi |
| 425 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 426 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 427 | as_basename=basename |
| 428 | else |
| 429 | as_basename=false |
| 430 | fi |
| 431 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 432 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 433 | as_dirname=dirname |
| 434 | else |
| 435 | as_dirname=false |
| 436 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 437 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 438 | as_me=`$as_basename -- "$0" || |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 439 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 440 | X"$0" : 'X\(//\)$' \| \ |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 441 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 442 | $as_echo X/"$0" | |
| 443 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 444 | s//\1/ |
| 445 | q |
| 446 | } |
| 447 | /^X\/\(\/\/\)$/{ |
| 448 | s//\1/ |
| 449 | q |
| 450 | } |
| 451 | /^X\/\(\/\).*/{ |
| 452 | s//\1/ |
| 453 | q |
| 454 | } |
| 455 | s/.*/./; q'` |
| 456 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 457 | # Avoid depending upon Character Ranges. |
| 458 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 459 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 460 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 461 | as_cr_digits='0123456789' |
| 462 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 463 | |
| 464 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 465 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
| 466 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
| 467 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
| 468 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
| 469 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 470 | sed -n ' |
| 471 | p |
| 472 | /[$]LINENO/= |
| 473 | ' <$as_myself | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 474 | sed ' |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 475 | s/[$]LINENO.*/&-/ |
| 476 | t lineno |
| 477 | b |
| 478 | :lineno |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 479 | N |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 480 | :loop |
| 481 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 482 | t loop |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 483 | s/-\n.*// |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 484 | ' >$as_me.lineno && |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 485 | chmod +x "$as_me.lineno" || |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 486 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 487 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 488 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
| 489 | # already done that, so ensure we don't try to do so again and fall |
| 490 | # in an infinite loop. This has already happened in practice. |
| 491 | _as_can_reexec=no; export _as_can_reexec |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 492 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 493 | # (the dirname of $[0] is not the place where we might find the |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 494 | # original and so on. Autoconf is especially sensitive to this). |
| 495 | . "./$as_me.lineno" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 496 | # Exit status is that of the last command. |
| 497 | exit |
| 498 | } |
| 499 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 500 | ECHO_C= ECHO_N= ECHO_T= |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 501 | case `echo -n x` in #((((( |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 502 | -n*) |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 503 | case `echo 'xy\c'` in |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 504 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 505 | xy) ECHO_C='\c';; |
| 506 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 507 | ECHO_T=' ';; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 508 | esac;; |
| 509 | *) |
| 510 | ECHO_N='-n';; |
| 511 | esac |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 512 | |
| 513 | rm -f conf$$ conf$$.exe conf$$.file |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 514 | if test -d conf$$.dir; then |
| 515 | rm -f conf$$.dir/conf$$.file |
| 516 | else |
| 517 | rm -f conf$$.dir |
| 518 | mkdir conf$$.dir 2>/dev/null |
| 519 | fi |
| 520 | if (echo >conf$$.file) 2>/dev/null; then |
| 521 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 522 | as_ln_s='ln -s' |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 523 | # ... but there are two gotchas: |
| 524 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 525 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 526 | # In both cases, we have to default to `cp -pR'. |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 527 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 528 | as_ln_s='cp -pR' |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 529 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 530 | as_ln_s=ln |
| 531 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 532 | as_ln_s='cp -pR' |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 533 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 534 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 535 | as_ln_s='cp -pR' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 536 | fi |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 537 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 538 | rmdir conf$$.dir 2>/dev/null |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 539 | |
| 540 | if mkdir -p . 2>/dev/null; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 541 | as_mkdir_p='mkdir -p "$as_dir"' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 542 | else |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 543 | test -d ./-p && rmdir ./-p |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 544 | as_mkdir_p=false |
| 545 | fi |
| 546 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 547 | as_test_x='test -x' |
| 548 | as_executable_p=as_fn_executable_p |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 549 | |
| 550 | # Sed expression to map a string onto a valid CPP name. |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 551 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 552 | |
| 553 | # Sed expression to map a string onto a valid variable name. |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 554 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 555 | |
| 556 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 557 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 558 | # Check that we are running under the correct shell. |
| 559 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 560 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 561 | case X$lt_ECHO in |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 562 | X*--fallback-echo) |
| 563 | # Remove one level of quotation (which was required for Make). |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 564 | ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 565 | ;; |
| 566 | esac |
| 567 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 568 | ECHO=${lt_ECHO-echo} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 569 | if test "X$1" = X--no-reexec; then |
| 570 | # Discard the --no-reexec flag, and continue. |
| 571 | shift |
| 572 | elif test "X$1" = X--fallback-echo; then |
| 573 | # Avoid inline document here, it may be left over |
| 574 | : |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 575 | elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then |
| 576 | # Yippee, $ECHO works! |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 577 | : |
| 578 | else |
| 579 | # Restart under the correct shell. |
| 580 | exec $SHELL "$0" --no-reexec ${1+"$@"} |
| 581 | fi |
| 582 | |
| 583 | if test "X$1" = X--fallback-echo; then |
| 584 | # used as fallback echo |
| 585 | shift |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 586 | cat <<_LT_EOF |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 587 | $* |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 588 | _LT_EOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 589 | exit 0 |
| 590 | fi |
| 591 | |
| 592 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 593 | # if CDPATH is set. |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 594 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 595 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 596 | if test -z "$lt_ECHO"; then |
| 597 | if test "X${echo_test_string+set}" != Xset; then |
| 598 | # find a string as large as possible, as long as the shell can cope with it |
| 599 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
| 600 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
| 601 | if { echo_test_string=`eval $cmd`; } 2>/dev/null && |
| 602 | { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null |
| 603 | then |
| 604 | break |
| 605 | fi |
| 606 | done |
| 607 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 608 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 609 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && |
| 610 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && |
| 611 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 612 | : |
| 613 | else |
| 614 | # The Solaris, AIX, and Digital Unix default echo programs unquote |
| 615 | # backslashes. This makes it impossible to quote backslashes using |
| 616 | # echo "$something" | sed 's/\\/\\\\/g' |
| 617 | # |
| 618 | # So, first we look for a working echo in the user's PATH. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 619 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 620 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 621 | for dir in $PATH /usr/ucb; do |
| 622 | IFS="$lt_save_ifs" |
| 623 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
| 624 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
| 625 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
| 626 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 627 | ECHO="$dir/echo" |
| 628 | break |
| 629 | fi |
| 630 | done |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 631 | IFS="$lt_save_ifs" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 632 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 633 | if test "X$ECHO" = Xecho; then |
| 634 | # We didn't find a better echo, so look for alternatives. |
| 635 | if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && |
| 636 | echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && |
| 637 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 638 | # This shell has a builtin print -r that does the trick. |
| 639 | ECHO='print -r' |
| 640 | elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && |
| 641 | test "X$CONFIG_SHELL" != X/bin/ksh; then |
| 642 | # If we have ksh, try running configure again with it. |
| 643 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
| 644 | export ORIGINAL_CONFIG_SHELL |
| 645 | CONFIG_SHELL=/bin/ksh |
| 646 | export CONFIG_SHELL |
| 647 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 648 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 649 | # Try using printf. |
| 650 | ECHO='printf %s\n' |
| 651 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && |
| 652 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && |
| 653 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 654 | # Cool, printf works |
| 655 | : |
| 656 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 657 | test "X$echo_testing_string" = 'X\t' && |
| 658 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 659 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 660 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
| 661 | export CONFIG_SHELL |
| 662 | SHELL="$CONFIG_SHELL" |
| 663 | export SHELL |
| 664 | ECHO="$CONFIG_SHELL $0 --fallback-echo" |
| 665 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 666 | test "X$echo_testing_string" = 'X\t' && |
| 667 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 668 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 669 | ECHO="$CONFIG_SHELL $0 --fallback-echo" |
| 670 | else |
| 671 | # maybe with a smaller string... |
| 672 | prev=: |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 673 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 674 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
| 675 | if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null |
| 676 | then |
| 677 | break |
| 678 | fi |
| 679 | prev="$cmd" |
| 680 | done |
| 681 | |
| 682 | if test "$prev" != 'sed 50q "$0"'; then |
| 683 | echo_test_string=`eval $prev` |
| 684 | export echo_test_string |
| 685 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} |
| 686 | else |
| 687 | # Oops. We lost completely, so just stick with echo. |
| 688 | ECHO=echo |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 689 | fi |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 690 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 691 | fi |
| 692 | fi |
| 693 | fi |
| 694 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 695 | |
| 696 | # Copy echo and quote the copy suitably for passing to libtool from |
| 697 | # the Makefile, instead of quoting the original, which is used later. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 698 | lt_ECHO=$ECHO |
| 699 | if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
| 700 | lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 701 | fi |
| 702 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 703 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 704 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 705 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 706 | test -n "$DJDIR" || exec 7<&0 </dev/null |
| 707 | exec 6>&1 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 708 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 709 | # Name of the host. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 710 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 711 | # so uname gets run too. |
| 712 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 713 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 714 | # |
| 715 | # Initializations. |
| 716 | # |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 717 | ac_default_prefix=/usr/local |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 718 | ac_clean_files= |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 719 | ac_config_libobj_dir=. |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 720 | LIBOBJS= |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 721 | cross_compiling=no |
| 722 | subdirs= |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 723 | MFLAGS= |
| 724 | MAKEFLAGS= |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 725 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 726 | # Identity of this package. |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 727 | PACKAGE_NAME='sqlite' |
| 728 | PACKAGE_TARNAME='sqlite' |
drh | 2fca705 | 2016-01-11 12:52:55 +0000 | [diff] [blame] | 729 | PACKAGE_VERSION='3.11.0' |
| 730 | PACKAGE_STRING='sqlite 3.11.0' |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 731 | PACKAGE_BUGREPORT='' |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 732 | PACKAGE_URL='' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 733 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 734 | # Factoring default headers for most tests. |
| 735 | ac_includes_default="\ |
| 736 | #include <stdio.h> |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 737 | #ifdef HAVE_SYS_TYPES_H |
danielk1977 | 33a1478 | 2008-08-04 14:50:05 +0000 | [diff] [blame] | 738 | # include <sys/types.h> |
| 739 | #endif |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 740 | #ifdef HAVE_SYS_STAT_H |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 741 | # include <sys/stat.h> |
| 742 | #endif |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 743 | #ifdef STDC_HEADERS |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 744 | # include <stdlib.h> |
| 745 | # include <stddef.h> |
| 746 | #else |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 747 | # ifdef HAVE_STDLIB_H |
danielk1977 | 33a1478 | 2008-08-04 14:50:05 +0000 | [diff] [blame] | 748 | # include <stdlib.h> |
| 749 | # endif |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 750 | #endif |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 751 | #ifdef HAVE_STRING_H |
| 752 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 753 | # include <memory.h> |
| 754 | # endif |
| 755 | # include <string.h> |
| 756 | #endif |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 757 | #ifdef HAVE_STRINGS_H |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 758 | # include <strings.h> |
| 759 | #endif |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 760 | #ifdef HAVE_INTTYPES_H |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 761 | # include <inttypes.h> |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 762 | #endif |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 763 | #ifdef HAVE_STDINT_H |
| 764 | # include <stdint.h> |
| 765 | #endif |
| 766 | #ifdef HAVE_UNISTD_H |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 767 | # include <unistd.h> |
| 768 | #endif" |
| 769 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 770 | ac_subst_vars='LTLIBOBJS |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 771 | LIBOBJS |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 772 | BUILD_CFLAGS |
| 773 | USE_GCOV |
| 774 | OPT_FEATURE_FLAGS |
| 775 | USE_AMALGAMATION |
| 776 | TARGET_DEBUG |
drh | e44b835 | 2015-10-30 14:25:57 +0000 | [diff] [blame] | 777 | TARGET_HAVE_EDITLINE |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 778 | TARGET_HAVE_READLINE |
| 779 | TARGET_READLINE_INC |
| 780 | TARGET_READLINE_LIBS |
| 781 | HAVE_TCL |
| 782 | TCL_SHLIB_SUFFIX |
| 783 | TCL_STUB_LIB_SPEC |
| 784 | TCL_STUB_LIB_FLAG |
| 785 | TCL_STUB_LIB_FILE |
| 786 | TCL_LIB_SPEC |
| 787 | TCL_LIB_FLAG |
| 788 | TCL_LIB_FILE |
| 789 | TCL_INCLUDE_SPEC |
| 790 | TCL_SRC_DIR |
| 791 | TCL_BIN_DIR |
| 792 | TCL_VERSION |
| 793 | TARGET_EXEEXT |
| 794 | SQLITE_OS_WIN |
| 795 | SQLITE_OS_UNIX |
| 796 | BUILD_EXEEXT |
| 797 | TEMP_STORE |
| 798 | ALLOWRELEASE |
| 799 | SQLITE_THREADSAFE |
| 800 | BUILD_CC |
| 801 | VERSION_NUMBER |
| 802 | RELEASE |
| 803 | VERSION |
| 804 | program_prefix |
| 805 | TCLLIBDIR |
| 806 | TCLSH_CMD |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 807 | INSTALL_DATA |
| 808 | INSTALL_SCRIPT |
| 809 | INSTALL_PROGRAM |
| 810 | CPP |
| 811 | OTOOL64 |
| 812 | OTOOL |
| 813 | LIPO |
| 814 | NMEDIT |
| 815 | DSYMUTIL |
| 816 | lt_ECHO |
| 817 | RANLIB |
| 818 | STRIP |
| 819 | AR |
| 820 | OBJDUMP |
| 821 | LN_S |
| 822 | NM |
| 823 | ac_ct_DUMPBIN |
| 824 | DUMPBIN |
| 825 | LD |
| 826 | FGREP |
| 827 | EGREP |
| 828 | GREP |
| 829 | SED |
| 830 | OBJEXT |
| 831 | EXEEXT |
| 832 | ac_ct_CC |
| 833 | CPPFLAGS |
| 834 | LDFLAGS |
| 835 | CFLAGS |
| 836 | CC |
| 837 | host_os |
| 838 | host_vendor |
| 839 | host_cpu |
| 840 | host |
| 841 | build_os |
| 842 | build_vendor |
| 843 | build_cpu |
| 844 | build |
| 845 | LIBTOOL |
| 846 | target_alias |
| 847 | host_alias |
| 848 | build_alias |
| 849 | LIBS |
| 850 | ECHO_T |
| 851 | ECHO_N |
| 852 | ECHO_C |
| 853 | DEFS |
| 854 | mandir |
| 855 | localedir |
| 856 | libdir |
| 857 | psdir |
| 858 | pdfdir |
| 859 | dvidir |
| 860 | htmldir |
| 861 | infodir |
| 862 | docdir |
| 863 | oldincludedir |
| 864 | includedir |
| 865 | localstatedir |
| 866 | sharedstatedir |
| 867 | sysconfdir |
| 868 | datadir |
| 869 | datarootdir |
| 870 | libexecdir |
| 871 | sbindir |
| 872 | bindir |
| 873 | program_transform_name |
| 874 | prefix |
| 875 | exec_prefix |
| 876 | PACKAGE_URL |
| 877 | PACKAGE_BUGREPORT |
| 878 | PACKAGE_STRING |
| 879 | PACKAGE_VERSION |
| 880 | PACKAGE_TARNAME |
| 881 | PACKAGE_NAME |
| 882 | PATH_SEPARATOR |
| 883 | SHELL' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 884 | ac_subst_files='' |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 885 | ac_user_opts=' |
| 886 | enable_option_checking |
| 887 | enable_shared |
| 888 | enable_static |
| 889 | with_pic |
| 890 | enable_fast_install |
| 891 | with_gnu_ld |
| 892 | enable_libtool_lock |
| 893 | enable_largefile |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 894 | enable_threadsafe |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 895 | enable_releasemode |
| 896 | enable_tempstore |
| 897 | enable_tcl |
| 898 | with_tcl |
drh | e44b835 | 2015-10-30 14:25:57 +0000 | [diff] [blame] | 899 | enable_editline |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 900 | enable_readline |
| 901 | with_readline_lib |
| 902 | with_readline_inc |
| 903 | enable_debug |
| 904 | enable_amalgamation |
| 905 | enable_load_extension |
drh | ce1d9f5 | 2015-10-09 12:48:33 +0000 | [diff] [blame] | 906 | enable_fts3 |
| 907 | enable_fts4 |
| 908 | enable_fts5 |
| 909 | enable_json1 |
| 910 | enable_rtree |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 911 | enable_gcov |
| 912 | ' |
| 913 | ac_precious_vars='build_alias |
| 914 | host_alias |
| 915 | target_alias |
| 916 | CC |
| 917 | CFLAGS |
| 918 | LDFLAGS |
| 919 | LIBS |
| 920 | CPPFLAGS |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 921 | CPP |
| 922 | TCLLIBDIR' |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 923 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 924 | |
| 925 | # Initialize some variables set by options. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 926 | ac_init_help= |
| 927 | ac_init_version=false |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 928 | ac_unrecognized_opts= |
| 929 | ac_unrecognized_sep= |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 930 | # The variables have the same names as the options, with |
| 931 | # dashes changed to underlines. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 932 | cache_file=/dev/null |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 933 | exec_prefix=NONE |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 934 | no_create= |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 935 | no_recursion= |
| 936 | prefix=NONE |
| 937 | program_prefix=NONE |
| 938 | program_suffix=NONE |
| 939 | program_transform_name=s,x,x, |
| 940 | silent= |
| 941 | site= |
| 942 | srcdir= |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 943 | verbose= |
| 944 | x_includes=NONE |
| 945 | x_libraries=NONE |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 946 | |
| 947 | # Installation directory options. |
| 948 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 949 | # and all the variables that are supposed to be based on exec_prefix |
| 950 | # by default will actually change. |
| 951 | # Use braces instead of parens because sh, perl, etc. also accept them. |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 952 | # (The list follows the same order as the GNU Coding Standards.) |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 953 | bindir='${exec_prefix}/bin' |
| 954 | sbindir='${exec_prefix}/sbin' |
| 955 | libexecdir='${exec_prefix}/libexec' |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 956 | datarootdir='${prefix}/share' |
| 957 | datadir='${datarootdir}' |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 958 | sysconfdir='${prefix}/etc' |
| 959 | sharedstatedir='${prefix}/com' |
| 960 | localstatedir='${prefix}/var' |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 961 | includedir='${prefix}/include' |
| 962 | oldincludedir='/usr/include' |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 963 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 964 | infodir='${datarootdir}/info' |
| 965 | htmldir='${docdir}' |
| 966 | dvidir='${docdir}' |
| 967 | pdfdir='${docdir}' |
| 968 | psdir='${docdir}' |
| 969 | libdir='${exec_prefix}/lib' |
| 970 | localedir='${datarootdir}/locale' |
| 971 | mandir='${datarootdir}/man' |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 972 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 973 | ac_prev= |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 974 | ac_dashdash= |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 975 | for ac_option |
| 976 | do |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 977 | # If the previous option needs an argument, assign it. |
| 978 | if test -n "$ac_prev"; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 979 | eval $ac_prev=\$ac_option |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 980 | ac_prev= |
| 981 | continue |
| 982 | fi |
| 983 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 984 | case $ac_option in |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 985 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 986 | *=) ac_optarg= ;; |
| 987 | *) ac_optarg=yes ;; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 988 | esac |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 989 | |
| 990 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 991 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 992 | case $ac_dashdash$ac_option in |
| 993 | --) |
| 994 | ac_dashdash=yes ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 995 | |
| 996 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 997 | ac_prev=bindir ;; |
| 998 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 999 | bindir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1000 | |
| 1001 | -build | --build | --buil | --bui | --bu) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1002 | ac_prev=build_alias ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1003 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1004 | build_alias=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1005 | |
| 1006 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 1007 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 1008 | ac_prev=cache_file ;; |
| 1009 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 1010 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1011 | cache_file=$ac_optarg ;; |
| 1012 | |
| 1013 | --config-cache | -C) |
| 1014 | cache_file=config.cache ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1015 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1016 | -datadir | --datadir | --datadi | --datad) |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1017 | ac_prev=datadir ;; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1018 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1019 | datadir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1020 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1021 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 1022 | | --dataroo | --dataro | --datar) |
| 1023 | ac_prev=datarootdir ;; |
| 1024 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 1025 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 1026 | datarootdir=$ac_optarg ;; |
| 1027 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1028 | -disable-* | --disable-*) |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1029 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1030 | # Reject names that are not valid shell variable names. |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1031 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 1032 | as_fn_error $? "invalid feature name: $ac_useropt" |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1033 | ac_useropt_orig=$ac_useropt |
| 1034 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1035 | case $ac_user_opts in |
| 1036 | *" |
| 1037 | "enable_$ac_useropt" |
| 1038 | "*) ;; |
| 1039 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 1040 | ac_unrecognized_sep=', ';; |
| 1041 | esac |
| 1042 | eval enable_$ac_useropt=no ;; |
| 1043 | |
| 1044 | -docdir | --docdir | --docdi | --doc | --do) |
| 1045 | ac_prev=docdir ;; |
| 1046 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 1047 | docdir=$ac_optarg ;; |
| 1048 | |
| 1049 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 1050 | ac_prev=dvidir ;; |
| 1051 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 1052 | dvidir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1053 | |
| 1054 | -enable-* | --enable-*) |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1055 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1056 | # Reject names that are not valid shell variable names. |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1057 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 1058 | as_fn_error $? "invalid feature name: $ac_useropt" |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1059 | ac_useropt_orig=$ac_useropt |
| 1060 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1061 | case $ac_user_opts in |
| 1062 | *" |
| 1063 | "enable_$ac_useropt" |
| 1064 | "*) ;; |
| 1065 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 1066 | ac_unrecognized_sep=', ';; |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 1067 | esac |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1068 | eval enable_$ac_useropt=\$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1069 | |
| 1070 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 1071 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 1072 | | --exec | --exe | --ex) |
| 1073 | ac_prev=exec_prefix ;; |
| 1074 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 1075 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 1076 | | --exec=* | --exe=* | --ex=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1077 | exec_prefix=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1078 | |
| 1079 | -gas | --gas | --ga | --g) |
| 1080 | # Obsolete; use --with-gas. |
| 1081 | with_gas=yes ;; |
| 1082 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1083 | -help | --help | --hel | --he | -h) |
| 1084 | ac_init_help=long ;; |
| 1085 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 1086 | ac_init_help=recursive ;; |
| 1087 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 1088 | ac_init_help=short ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1089 | |
| 1090 | -host | --host | --hos | --ho) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1091 | ac_prev=host_alias ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1092 | -host=* | --host=* | --hos=* | --ho=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1093 | host_alias=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1094 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1095 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1096 | ac_prev=htmldir ;; |
| 1097 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1098 | | --ht=*) |
| 1099 | htmldir=$ac_optarg ;; |
| 1100 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1101 | -includedir | --includedir | --includedi | --included | --include \ |
| 1102 | | --includ | --inclu | --incl | --inc) |
| 1103 | ac_prev=includedir ;; |
| 1104 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1105 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1106 | includedir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1107 | |
| 1108 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1109 | ac_prev=infodir ;; |
| 1110 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1111 | infodir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1112 | |
| 1113 | -libdir | --libdir | --libdi | --libd) |
| 1114 | ac_prev=libdir ;; |
| 1115 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1116 | libdir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1117 | |
| 1118 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1119 | | --libexe | --libex | --libe) |
| 1120 | ac_prev=libexecdir ;; |
| 1121 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1122 | | --libexe=* | --libex=* | --libe=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1123 | libexecdir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1124 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1125 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1126 | ac_prev=localedir ;; |
| 1127 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1128 | localedir=$ac_optarg ;; |
| 1129 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1130 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1131 | | --localstate | --localstat | --localsta | --localst | --locals) |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1132 | ac_prev=localstatedir ;; |
| 1133 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1134 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1135 | localstatedir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1136 | |
| 1137 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1138 | ac_prev=mandir ;; |
| 1139 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1140 | mandir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1141 | |
| 1142 | -nfp | --nfp | --nf) |
| 1143 | # Obsolete; use --without-fp. |
| 1144 | with_fp=no ;; |
| 1145 | |
| 1146 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1147 | | --no-cr | --no-c | -n) |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1148 | no_create=yes ;; |
| 1149 | |
| 1150 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1151 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1152 | no_recursion=yes ;; |
| 1153 | |
| 1154 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1155 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1156 | | --oldin | --oldi | --old | --ol | --o) |
| 1157 | ac_prev=oldincludedir ;; |
| 1158 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1159 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1160 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1161 | oldincludedir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1162 | |
| 1163 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1164 | ac_prev=prefix ;; |
| 1165 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1166 | prefix=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1167 | |
| 1168 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1169 | | --program-pre | --program-pr | --program-p) |
| 1170 | ac_prev=program_prefix ;; |
| 1171 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1172 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1173 | program_prefix=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1174 | |
| 1175 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1176 | | --program-suf | --program-su | --program-s) |
| 1177 | ac_prev=program_suffix ;; |
| 1178 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1179 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1180 | program_suffix=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1181 | |
| 1182 | -program-transform-name | --program-transform-name \ |
| 1183 | | --program-transform-nam | --program-transform-na \ |
| 1184 | | --program-transform-n | --program-transform- \ |
| 1185 | | --program-transform | --program-transfor \ |
| 1186 | | --program-transfo | --program-transf \ |
| 1187 | | --program-trans | --program-tran \ |
| 1188 | | --progr-tra | --program-tr | --program-t) |
| 1189 | ac_prev=program_transform_name ;; |
| 1190 | -program-transform-name=* | --program-transform-name=* \ |
| 1191 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1192 | | --program-transform-n=* | --program-transform-=* \ |
| 1193 | | --program-transform=* | --program-transfor=* \ |
| 1194 | | --program-transfo=* | --program-transf=* \ |
| 1195 | | --program-trans=* | --program-tran=* \ |
| 1196 | | --progr-tra=* | --program-tr=* | --program-t=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1197 | program_transform_name=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1198 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1199 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1200 | ac_prev=pdfdir ;; |
| 1201 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1202 | pdfdir=$ac_optarg ;; |
| 1203 | |
| 1204 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1205 | ac_prev=psdir ;; |
| 1206 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1207 | psdir=$ac_optarg ;; |
| 1208 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1209 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1210 | | -silent | --silent | --silen | --sile | --sil) |
| 1211 | silent=yes ;; |
| 1212 | |
| 1213 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1214 | ac_prev=sbindir ;; |
| 1215 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1216 | | --sbi=* | --sb=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1217 | sbindir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1218 | |
| 1219 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1220 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1221 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1222 | | --sha | --sh) |
| 1223 | ac_prev=sharedstatedir ;; |
| 1224 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1225 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1226 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1227 | | --sha=* | --sh=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1228 | sharedstatedir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1229 | |
| 1230 | -site | --site | --sit) |
| 1231 | ac_prev=site ;; |
| 1232 | -site=* | --site=* | --sit=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1233 | site=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1234 | |
| 1235 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1236 | ac_prev=srcdir ;; |
| 1237 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1238 | srcdir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1239 | |
| 1240 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1241 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1242 | ac_prev=sysconfdir ;; |
| 1243 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1244 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1245 | sysconfdir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1246 | |
| 1247 | -target | --target | --targe | --targ | --tar | --ta | --t) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1248 | ac_prev=target_alias ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1249 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1250 | target_alias=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1251 | |
| 1252 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1253 | verbose=yes ;; |
| 1254 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1255 | -version | --version | --versio | --versi | --vers | -V) |
| 1256 | ac_init_version=: ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1257 | |
| 1258 | -with-* | --with-*) |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1259 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1260 | # Reject names that are not valid shell variable names. |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1261 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 1262 | as_fn_error $? "invalid package name: $ac_useropt" |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1263 | ac_useropt_orig=$ac_useropt |
| 1264 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1265 | case $ac_user_opts in |
| 1266 | *" |
| 1267 | "with_$ac_useropt" |
| 1268 | "*) ;; |
| 1269 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1270 | ac_unrecognized_sep=', ';; |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 1271 | esac |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1272 | eval with_$ac_useropt=\$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1273 | |
| 1274 | -without-* | --without-*) |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1275 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1276 | # Reject names that are not valid shell variable names. |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1277 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 1278 | as_fn_error $? "invalid package name: $ac_useropt" |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1279 | ac_useropt_orig=$ac_useropt |
| 1280 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1281 | case $ac_user_opts in |
| 1282 | *" |
| 1283 | "with_$ac_useropt" |
| 1284 | "*) ;; |
| 1285 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1286 | ac_unrecognized_sep=', ';; |
| 1287 | esac |
| 1288 | eval with_$ac_useropt=no ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1289 | |
| 1290 | --x) |
| 1291 | # Obsolete; use --with-x. |
| 1292 | with_x=yes ;; |
| 1293 | |
| 1294 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1295 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1296 | ac_prev=x_includes ;; |
| 1297 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1298 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1299 | x_includes=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1300 | |
| 1301 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1302 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1303 | ac_prev=x_libraries ;; |
| 1304 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1305 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1306 | x_libraries=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1307 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 1308 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
| 1309 | Try \`$0 --help' for more information" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1310 | ;; |
| 1311 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1312 | *=*) |
| 1313 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1314 | # Reject names that are not valid shell variable names. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 1315 | case $ac_envvar in #( |
| 1316 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
| 1317 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
| 1318 | esac |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1319 | eval $ac_envvar=\$ac_optarg |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1320 | export $ac_envvar ;; |
| 1321 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1322 | *) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1323 | # FIXME: should be removed in autoconf 3.0. |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1324 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1325 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1326 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 1327 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1328 | ;; |
| 1329 | |
| 1330 | esac |
| 1331 | done |
| 1332 | |
| 1333 | if test -n "$ac_prev"; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1334 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 1335 | as_fn_error $? "missing argument to $ac_option" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1336 | fi |
| 1337 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1338 | if test -n "$ac_unrecognized_opts"; then |
| 1339 | case $enable_option_checking in |
| 1340 | no) ;; |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 1341 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
| 1342 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 1343 | esac |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1344 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1345 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1346 | # Check all directory arguments for consistency. |
| 1347 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1348 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1349 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1350 | libdir localedir mandir |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1351 | do |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1352 | eval ac_val=\$$ac_var |
| 1353 | # Remove trailing slashes. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1354 | case $ac_val in |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1355 | */ ) |
| 1356 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1357 | eval $ac_var=\$ac_val;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1358 | esac |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1359 | # Be sure to have absolute directory names. |
| 1360 | case $ac_val in |
| 1361 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1362 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
| 1363 | esac |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 1364 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1365 | done |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1366 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1367 | # There might be people who depend on the old broken behavior: `$host' |
| 1368 | # used to hold the argument of --host etc. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1369 | # FIXME: To remove some day. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1370 | build=$build_alias |
| 1371 | host=$host_alias |
| 1372 | target=$target_alias |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1373 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1374 | # FIXME: To remove some day. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1375 | if test "x$host_alias" != x; then |
| 1376 | if test "x$build_alias" = x; then |
| 1377 | cross_compiling=maybe |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1378 | elif test "x$build_alias" != "x$host_alias"; then |
| 1379 | cross_compiling=yes |
| 1380 | fi |
| 1381 | fi |
| 1382 | |
| 1383 | ac_tool_prefix= |
| 1384 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1385 | |
| 1386 | test "$silent" = yes && exec 6>/dev/null |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1387 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1388 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1389 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1390 | ac_ls_di=`ls -di .` && |
| 1391 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 1392 | as_fn_error $? "working directory cannot be determined" |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1393 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 1394 | as_fn_error $? "pwd does not report name of working directory" |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1395 | |
| 1396 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1397 | # Find the source files, if location was not specified. |
| 1398 | if test -z "$srcdir"; then |
| 1399 | ac_srcdir_defaulted=yes |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1400 | # Try the directory containing this script, then the parent directory. |
| 1401 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1402 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1403 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1404 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1405 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1406 | $as_echo X"$as_myself" | |
| 1407 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1408 | s//\1/ |
| 1409 | q |
| 1410 | } |
| 1411 | /^X\(\/\/\)[^/].*/{ |
| 1412 | s//\1/ |
| 1413 | q |
| 1414 | } |
| 1415 | /^X\(\/\/\)$/{ |
| 1416 | s//\1/ |
| 1417 | q |
| 1418 | } |
| 1419 | /^X\(\/\).*/{ |
| 1420 | s//\1/ |
| 1421 | q |
| 1422 | } |
| 1423 | s/.*/./; q'` |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1424 | srcdir=$ac_confdir |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1425 | if test ! -r "$srcdir/$ac_unique_file"; then |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1426 | srcdir=.. |
| 1427 | fi |
| 1428 | else |
| 1429 | ac_srcdir_defaulted=no |
| 1430 | fi |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1431 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1432 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 1433 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1434 | fi |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1435 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1436 | ac_abs_confdir=`( |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 1437 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1438 | pwd)` |
| 1439 | # When building in place, set srcdir=. |
| 1440 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1441 | srcdir=. |
| 1442 | fi |
| 1443 | # Remove unnecessary trailing slashes from srcdir. |
| 1444 | # Double slashes in file names in object file debugging info |
| 1445 | # mess up M-x gdb in Emacs. |
| 1446 | case $srcdir in |
| 1447 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1448 | esac |
| 1449 | for ac_var in $ac_precious_vars; do |
| 1450 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1451 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1452 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1453 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1454 | done |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1455 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1456 | # |
| 1457 | # Report the --help message. |
| 1458 | # |
| 1459 | if test "$ac_init_help" = "long"; then |
| 1460 | # Omit some internal or obsolete options to make the list less imposing. |
| 1461 | # This message is too long to be a string in the A/UX 3.1 sh. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1462 | cat <<_ACEOF |
drh | 2fca705 | 2016-01-11 12:52:55 +0000 | [diff] [blame] | 1463 | \`configure' configures sqlite 3.11.0 to adapt to many kinds of systems. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1464 | |
| 1465 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1466 | |
| 1467 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1468 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1469 | |
| 1470 | Defaults for the options are specified in brackets. |
| 1471 | |
| 1472 | Configuration: |
| 1473 | -h, --help display this help and exit |
| 1474 | --help=short display options specific to this package |
| 1475 | --help=recursive display the short help of all the included packages |
| 1476 | -V, --version display version information and exit |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 1477 | -q, --quiet, --silent do not print \`checking ...' messages |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1478 | --cache-file=FILE cache test results in FILE [disabled] |
| 1479 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1480 | -n, --no-create do not create output files |
| 1481 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1482 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1483 | Installation directories: |
| 1484 | --prefix=PREFIX install architecture-independent files in PREFIX |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1485 | [$ac_default_prefix] |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1486 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1487 | [PREFIX] |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1488 | |
| 1489 | By default, \`make install' will install all the files in |
| 1490 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1491 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1492 | for instance \`--prefix=\$HOME'. |
| 1493 | |
| 1494 | For better control, use the options below. |
| 1495 | |
| 1496 | Fine tuning of the installation directories: |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1497 | --bindir=DIR user executables [EPREFIX/bin] |
| 1498 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1499 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1500 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1501 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1502 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1503 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1504 | --includedir=DIR C header files [PREFIX/include] |
| 1505 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1506 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1507 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1508 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1509 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1510 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1511 | --docdir=DIR documentation root [DATAROOTDIR/doc/sqlite] |
| 1512 | --htmldir=DIR html documentation [DOCDIR] |
| 1513 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1514 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1515 | --psdir=DIR ps documentation [DOCDIR] |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1516 | _ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1517 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1518 | cat <<\_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1519 | |
| 1520 | System types: |
| 1521 | --build=BUILD configure for building on BUILD [guessed] |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1522 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1523 | _ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1524 | fi |
| 1525 | |
| 1526 | if test -n "$ac_init_help"; then |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 1527 | case $ac_init_help in |
drh | 2fca705 | 2016-01-11 12:52:55 +0000 | [diff] [blame] | 1528 | short | recursive ) echo "Configuration of sqlite 3.11.0:";; |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 1529 | esac |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1530 | cat <<\_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1531 | |
| 1532 | Optional Features: |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1533 | --disable-option-checking ignore unrecognized --enable/--with options |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1534 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1535 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1536 | --enable-shared[=PKGS] build shared libraries [default=yes] |
| 1537 | --enable-static[=PKGS] build static libraries [default=yes] |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 1538 | --enable-fast-install[=PKGS] |
| 1539 | optimize for fast installation [default=yes] |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1540 | --disable-libtool-lock avoid locking (might break parallel builds) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 1541 | --disable-largefile omit support for large files |
drh | 05c7e0b | 2015-01-10 14:27:17 +0000 | [diff] [blame] | 1542 | --disable-threadsafe Disable mutexing |
drh | 94e4f82 | 2006-02-15 02:00:25 +0000 | [diff] [blame] | 1543 | --enable-releasemode Support libtool link to release mode |
| 1544 | --enable-tempstore Use an in-ram database for temporary tables |
| 1545 | (never,no,yes,always) |
| 1546 | --disable-tcl do not build TCL extension |
drh | e44b835 | 2015-10-30 14:25:57 +0000 | [diff] [blame] | 1547 | --enable-editline enable BSD editline support |
| 1548 | --disable-readline disable readline support |
drh | 94e4f82 | 2006-02-15 02:00:25 +0000 | [diff] [blame] | 1549 | --enable-debug enable debugging & verbose explain |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1550 | --disable-amalgamation Disable the amalgamation and instead build all files |
mlcreech | 969b2cd | 2008-03-14 04:11:03 +0000 | [diff] [blame] | 1551 | separately |
drh | 05c7e0b | 2015-01-10 14:27:17 +0000 | [diff] [blame] | 1552 | --disable-load-extension |
| 1553 | Disable loading of external extensions |
drh | ce1d9f5 | 2015-10-09 12:48:33 +0000 | [diff] [blame] | 1554 | --enable-fts3 Enable the FTS3 extension |
| 1555 | --enable-fts4 Enable the FTS4 extension |
| 1556 | --enable-fts5 Enable the FTS5 extension |
| 1557 | --enable-json1 Enable the JSON1 extension |
| 1558 | --enable-rtree Enable the RTREE extension |
mlcreech | aac7b93 | 2008-04-01 02:45:22 +0000 | [diff] [blame] | 1559 | --enable-gcov Enable coverage testing using gcov |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1560 | |
| 1561 | Optional Packages: |
| 1562 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1563 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 1564 | --with-pic try to use only PIC/non-PIC objects [default=use |
| 1565 | both] |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 1566 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
drh | 94e4f82 | 2006-02-15 02:00:25 +0000 | [diff] [blame] | 1567 | --with-tcl=DIR directory containing tcl configuration |
| 1568 | (tclConfig.sh) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 1569 | --with-readline-lib specify readline library |
| 1570 | --with-readline-inc specify readline include paths |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1571 | |
| 1572 | Some influential environment variables: |
| 1573 | CC C compiler command |
| 1574 | CFLAGS C compiler flags |
| 1575 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1576 | nonstandard directory <lib dir> |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1577 | LIBS libraries to pass to the linker, e.g. -l<library> |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 1578 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1579 | you have headers in a nonstandard directory <include dir> |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1580 | CPP C preprocessor |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 1581 | TCLLIBDIR Where to install tcl plugin |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1582 | |
| 1583 | Use these variables to override the choices made by `configure' or to help |
| 1584 | it to find libraries and programs with nonstandard names/locations. |
| 1585 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 1586 | Report bugs to the package provider. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1587 | _ACEOF |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1588 | ac_status=$? |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1589 | fi |
| 1590 | |
| 1591 | if test "$ac_init_help" = "recursive"; then |
| 1592 | # If there are subdirs, report their specific --help. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1593 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1594 | test -d "$ac_dir" || |
| 1595 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1596 | continue |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1597 | ac_builddir=. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1598 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1599 | case "$ac_dir" in |
| 1600 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1601 | *) |
| 1602 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 1603 | # A ".." for each directory in $ac_dir_suffix. |
| 1604 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 1605 | case $ac_top_builddir_sub in |
| 1606 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1607 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1608 | esac ;; |
| 1609 | esac |
| 1610 | ac_abs_top_builddir=$ac_pwd |
| 1611 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1612 | # for backward compatibility: |
| 1613 | ac_top_builddir=$ac_top_build_prefix |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1614 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1615 | case $srcdir in |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1616 | .) # We are building in place. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1617 | ac_srcdir=. |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1618 | ac_top_srcdir=$ac_top_builddir_sub |
| 1619 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1620 | [\\/]* | ?:[\\/]* ) # Absolute name. |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1621 | ac_srcdir=$srcdir$ac_dir_suffix; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1622 | ac_top_srcdir=$srcdir |
| 1623 | ac_abs_top_srcdir=$srcdir ;; |
| 1624 | *) # Relative name. |
| 1625 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1626 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1627 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1628 | esac |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1629 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1630 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1631 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1632 | # Check for guested configure. |
| 1633 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1634 | echo && |
| 1635 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1636 | elif test -f "$ac_srcdir/configure"; then |
| 1637 | echo && |
| 1638 | $SHELL "$ac_srcdir/configure" --help=recursive |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1639 | else |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1640 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1641 | fi || ac_status=$? |
| 1642 | cd "$ac_pwd" || { ac_status=$?; break; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1643 | done |
| 1644 | fi |
| 1645 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1646 | test -n "$ac_init_help" && exit $ac_status |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1647 | if $ac_init_version; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1648 | cat <<\_ACEOF |
drh | 2fca705 | 2016-01-11 12:52:55 +0000 | [diff] [blame] | 1649 | sqlite configure 3.11.0 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 1650 | generated by GNU Autoconf 2.69 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1651 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 1652 | Copyright (C) 2012 Free Software Foundation, Inc. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1653 | This configure script is free software; the Free Software Foundation |
| 1654 | gives unlimited permission to copy, distribute and modify it. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1655 | _ACEOF |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1656 | exit |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1657 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 1658 | |
| 1659 | ## ------------------------ ## |
| 1660 | ## Autoconf initialization. ## |
| 1661 | ## ------------------------ ## |
| 1662 | |
| 1663 | # ac_fn_c_try_compile LINENO |
| 1664 | # -------------------------- |
| 1665 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1666 | ac_fn_c_try_compile () |
| 1667 | { |
| 1668 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1669 | rm -f conftest.$ac_objext |
| 1670 | if { { ac_try="$ac_compile" |
| 1671 | case "(($ac_try" in |
| 1672 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1673 | *) ac_try_echo=$ac_try;; |
| 1674 | esac |
| 1675 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1676 | $as_echo "$ac_try_echo"; } >&5 |
| 1677 | (eval "$ac_compile") 2>conftest.err |
| 1678 | ac_status=$? |
| 1679 | if test -s conftest.err; then |
| 1680 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1681 | cat conftest.er1 >&5 |
| 1682 | mv -f conftest.er1 conftest.err |
| 1683 | fi |
| 1684 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1685 | test $ac_status = 0; } && { |
| 1686 | test -z "$ac_c_werror_flag" || |
| 1687 | test ! -s conftest.err |
| 1688 | } && test -s conftest.$ac_objext; then : |
| 1689 | ac_retval=0 |
| 1690 | else |
| 1691 | $as_echo "$as_me: failed program was:" >&5 |
| 1692 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1693 | |
| 1694 | ac_retval=1 |
| 1695 | fi |
| 1696 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1697 | as_fn_set_status $ac_retval |
| 1698 | |
| 1699 | } # ac_fn_c_try_compile |
| 1700 | |
| 1701 | # ac_fn_c_try_link LINENO |
| 1702 | # ----------------------- |
| 1703 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1704 | ac_fn_c_try_link () |
| 1705 | { |
| 1706 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1707 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 1708 | if { { ac_try="$ac_link" |
| 1709 | case "(($ac_try" in |
| 1710 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1711 | *) ac_try_echo=$ac_try;; |
| 1712 | esac |
| 1713 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1714 | $as_echo "$ac_try_echo"; } >&5 |
| 1715 | (eval "$ac_link") 2>conftest.err |
| 1716 | ac_status=$? |
| 1717 | if test -s conftest.err; then |
| 1718 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1719 | cat conftest.er1 >&5 |
| 1720 | mv -f conftest.er1 conftest.err |
| 1721 | fi |
| 1722 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1723 | test $ac_status = 0; } && { |
| 1724 | test -z "$ac_c_werror_flag" || |
| 1725 | test ! -s conftest.err |
| 1726 | } && test -s conftest$ac_exeext && { |
| 1727 | test "$cross_compiling" = yes || |
| 1728 | test -x conftest$ac_exeext |
| 1729 | }; then : |
| 1730 | ac_retval=0 |
| 1731 | else |
| 1732 | $as_echo "$as_me: failed program was:" >&5 |
| 1733 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1734 | |
| 1735 | ac_retval=1 |
| 1736 | fi |
| 1737 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1738 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1739 | # interfere with the next link command; also delete a directory that is |
| 1740 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1741 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1742 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1743 | as_fn_set_status $ac_retval |
| 1744 | |
| 1745 | } # ac_fn_c_try_link |
| 1746 | |
| 1747 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1748 | # ------------------------------------------------------- |
| 1749 | # Tests whether HEADER exists and can be compiled using the include files in |
| 1750 | # INCLUDES, setting the cache variable VAR accordingly. |
| 1751 | ac_fn_c_check_header_compile () |
| 1752 | { |
| 1753 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1754 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1755 | $as_echo_n "checking for $2... " >&6; } |
| 1756 | if eval \${$3+:} false; then : |
| 1757 | $as_echo_n "(cached) " >&6 |
| 1758 | else |
| 1759 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1760 | /* end confdefs.h. */ |
| 1761 | $4 |
| 1762 | #include <$2> |
| 1763 | _ACEOF |
| 1764 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1765 | eval "$3=yes" |
| 1766 | else |
| 1767 | eval "$3=no" |
| 1768 | fi |
| 1769 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1770 | fi |
| 1771 | eval ac_res=\$$3 |
| 1772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1773 | $as_echo "$ac_res" >&6; } |
| 1774 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1775 | |
| 1776 | } # ac_fn_c_check_header_compile |
| 1777 | |
| 1778 | # ac_fn_c_try_cpp LINENO |
| 1779 | # ---------------------- |
| 1780 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1781 | ac_fn_c_try_cpp () |
| 1782 | { |
| 1783 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1784 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1785 | case "(($ac_try" in |
| 1786 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1787 | *) ac_try_echo=$ac_try;; |
| 1788 | esac |
| 1789 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1790 | $as_echo "$ac_try_echo"; } >&5 |
| 1791 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1792 | ac_status=$? |
| 1793 | if test -s conftest.err; then |
| 1794 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1795 | cat conftest.er1 >&5 |
| 1796 | mv -f conftest.er1 conftest.err |
| 1797 | fi |
| 1798 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1799 | test $ac_status = 0; } > conftest.i && { |
| 1800 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1801 | test ! -s conftest.err |
| 1802 | }; then : |
| 1803 | ac_retval=0 |
| 1804 | else |
| 1805 | $as_echo "$as_me: failed program was:" >&5 |
| 1806 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1807 | |
| 1808 | ac_retval=1 |
| 1809 | fi |
| 1810 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1811 | as_fn_set_status $ac_retval |
| 1812 | |
| 1813 | } # ac_fn_c_try_cpp |
| 1814 | |
| 1815 | # ac_fn_c_try_run LINENO |
| 1816 | # ---------------------- |
| 1817 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 1818 | # that executables *can* be run. |
| 1819 | ac_fn_c_try_run () |
| 1820 | { |
| 1821 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1822 | if { { ac_try="$ac_link" |
| 1823 | case "(($ac_try" in |
| 1824 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1825 | *) ac_try_echo=$ac_try;; |
| 1826 | esac |
| 1827 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1828 | $as_echo "$ac_try_echo"; } >&5 |
| 1829 | (eval "$ac_link") 2>&5 |
| 1830 | ac_status=$? |
| 1831 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1832 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1833 | { { case "(($ac_try" in |
| 1834 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1835 | *) ac_try_echo=$ac_try;; |
| 1836 | esac |
| 1837 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1838 | $as_echo "$ac_try_echo"; } >&5 |
| 1839 | (eval "$ac_try") 2>&5 |
| 1840 | ac_status=$? |
| 1841 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1842 | test $ac_status = 0; }; }; then : |
| 1843 | ac_retval=0 |
| 1844 | else |
| 1845 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 1846 | $as_echo "$as_me: failed program was:" >&5 |
| 1847 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1848 | |
| 1849 | ac_retval=$ac_status |
| 1850 | fi |
| 1851 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1852 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1853 | as_fn_set_status $ac_retval |
| 1854 | |
| 1855 | } # ac_fn_c_try_run |
| 1856 | |
| 1857 | # ac_fn_c_check_func LINENO FUNC VAR |
| 1858 | # ---------------------------------- |
| 1859 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 1860 | ac_fn_c_check_func () |
| 1861 | { |
| 1862 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1863 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1864 | $as_echo_n "checking for $2... " >&6; } |
| 1865 | if eval \${$3+:} false; then : |
| 1866 | $as_echo_n "(cached) " >&6 |
| 1867 | else |
| 1868 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1869 | /* end confdefs.h. */ |
| 1870 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 1871 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 1872 | #define $2 innocuous_$2 |
| 1873 | |
| 1874 | /* System header to define __stub macros and hopefully few prototypes, |
| 1875 | which can conflict with char $2 (); below. |
| 1876 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 1877 | <limits.h> exists even on freestanding compilers. */ |
| 1878 | |
| 1879 | #ifdef __STDC__ |
| 1880 | # include <limits.h> |
| 1881 | #else |
| 1882 | # include <assert.h> |
| 1883 | #endif |
| 1884 | |
| 1885 | #undef $2 |
| 1886 | |
| 1887 | /* Override any GCC internal prototype to avoid an error. |
| 1888 | Use char because int might match the return type of a GCC |
| 1889 | builtin and then its argument prototype would still apply. */ |
| 1890 | #ifdef __cplusplus |
| 1891 | extern "C" |
| 1892 | #endif |
| 1893 | char $2 (); |
| 1894 | /* The GNU C library defines this for functions which it implements |
| 1895 | to always fail with ENOSYS. Some functions are actually named |
| 1896 | something starting with __ and the normal name is an alias. */ |
| 1897 | #if defined __stub_$2 || defined __stub___$2 |
| 1898 | choke me |
| 1899 | #endif |
| 1900 | |
| 1901 | int |
| 1902 | main () |
| 1903 | { |
| 1904 | return $2 (); |
| 1905 | ; |
| 1906 | return 0; |
| 1907 | } |
| 1908 | _ACEOF |
| 1909 | if ac_fn_c_try_link "$LINENO"; then : |
| 1910 | eval "$3=yes" |
| 1911 | else |
| 1912 | eval "$3=no" |
| 1913 | fi |
| 1914 | rm -f core conftest.err conftest.$ac_objext \ |
| 1915 | conftest$ac_exeext conftest.$ac_ext |
| 1916 | fi |
| 1917 | eval ac_res=\$$3 |
| 1918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1919 | $as_echo "$ac_res" >&6; } |
| 1920 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1921 | |
| 1922 | } # ac_fn_c_check_func |
| 1923 | |
| 1924 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
| 1925 | # ------------------------------------------- |
| 1926 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
| 1927 | # variable VAR accordingly. |
| 1928 | ac_fn_c_check_type () |
| 1929 | { |
| 1930 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1932 | $as_echo_n "checking for $2... " >&6; } |
| 1933 | if eval \${$3+:} false; then : |
| 1934 | $as_echo_n "(cached) " >&6 |
| 1935 | else |
| 1936 | eval "$3=no" |
| 1937 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1938 | /* end confdefs.h. */ |
| 1939 | $4 |
| 1940 | int |
| 1941 | main () |
| 1942 | { |
| 1943 | if (sizeof ($2)) |
| 1944 | return 0; |
| 1945 | ; |
| 1946 | return 0; |
| 1947 | } |
| 1948 | _ACEOF |
| 1949 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1950 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1951 | /* end confdefs.h. */ |
| 1952 | $4 |
| 1953 | int |
| 1954 | main () |
| 1955 | { |
| 1956 | if (sizeof (($2))) |
| 1957 | return 0; |
| 1958 | ; |
| 1959 | return 0; |
| 1960 | } |
| 1961 | _ACEOF |
| 1962 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1963 | |
| 1964 | else |
| 1965 | eval "$3=yes" |
| 1966 | fi |
| 1967 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1968 | fi |
| 1969 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1970 | fi |
| 1971 | eval ac_res=\$$3 |
| 1972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1973 | $as_echo "$ac_res" >&6; } |
| 1974 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1975 | |
| 1976 | } # ac_fn_c_check_type |
| 1977 | |
| 1978 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 1979 | # ------------------------------------------------------- |
| 1980 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 1981 | # the include files in INCLUDES and setting the cache variable VAR |
| 1982 | # accordingly. |
| 1983 | ac_fn_c_check_header_mongrel () |
| 1984 | { |
| 1985 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1986 | if eval \${$3+:} false; then : |
| 1987 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1988 | $as_echo_n "checking for $2... " >&6; } |
| 1989 | if eval \${$3+:} false; then : |
| 1990 | $as_echo_n "(cached) " >&6 |
| 1991 | fi |
| 1992 | eval ac_res=\$$3 |
| 1993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1994 | $as_echo "$ac_res" >&6; } |
| 1995 | else |
| 1996 | # Is the header compilable? |
| 1997 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 1998 | $as_echo_n "checking $2 usability... " >&6; } |
| 1999 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2000 | /* end confdefs.h. */ |
| 2001 | $4 |
| 2002 | #include <$2> |
| 2003 | _ACEOF |
| 2004 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2005 | ac_header_compiler=yes |
| 2006 | else |
| 2007 | ac_header_compiler=no |
| 2008 | fi |
| 2009 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 2011 | $as_echo "$ac_header_compiler" >&6; } |
| 2012 | |
| 2013 | # Is the header present? |
| 2014 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 2015 | $as_echo_n "checking $2 presence... " >&6; } |
| 2016 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2017 | /* end confdefs.h. */ |
| 2018 | #include <$2> |
| 2019 | _ACEOF |
| 2020 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 2021 | ac_header_preproc=yes |
| 2022 | else |
| 2023 | ac_header_preproc=no |
| 2024 | fi |
| 2025 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 2026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 2027 | $as_echo "$ac_header_preproc" >&6; } |
| 2028 | |
| 2029 | # So? What about this header? |
| 2030 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
| 2031 | yes:no: ) |
| 2032 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 2033 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 2034 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 2035 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 2036 | ;; |
| 2037 | no:yes:* ) |
| 2038 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 2039 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 2040 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 2041 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 2042 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 2043 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 2044 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 2045 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 2046 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 2047 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 2048 | ;; |
| 2049 | esac |
| 2050 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2051 | $as_echo_n "checking for $2... " >&6; } |
| 2052 | if eval \${$3+:} false; then : |
| 2053 | $as_echo_n "(cached) " >&6 |
| 2054 | else |
| 2055 | eval "$3=\$ac_header_compiler" |
| 2056 | fi |
| 2057 | eval ac_res=\$$3 |
| 2058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2059 | $as_echo "$ac_res" >&6; } |
| 2060 | fi |
| 2061 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2062 | |
| 2063 | } # ac_fn_c_check_header_mongrel |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2064 | cat >config.log <<_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2065 | This file contains any messages produced by compilers while |
| 2066 | running configure, to aid debugging if configure makes a mistake. |
| 2067 | |
drh | 2fca705 | 2016-01-11 12:52:55 +0000 | [diff] [blame] | 2068 | It was created by sqlite $as_me 3.11.0, which was |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2069 | generated by GNU Autoconf 2.69. Invocation command line was |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2070 | |
| 2071 | $ $0 $@ |
| 2072 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2073 | _ACEOF |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2074 | exec 5>>config.log |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2075 | { |
| 2076 | cat <<_ASUNAME |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2077 | ## --------- ## |
| 2078 | ## Platform. ## |
| 2079 | ## --------- ## |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2080 | |
| 2081 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 2082 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 2083 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 2084 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 2085 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 2086 | |
| 2087 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 2088 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 2089 | |
| 2090 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 2091 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 2092 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2093 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2094 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 2095 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 2096 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 2097 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2098 | _ASUNAME |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2099 | |
| 2100 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2101 | for as_dir in $PATH |
| 2102 | do |
| 2103 | IFS=$as_save_IFS |
| 2104 | test -z "$as_dir" && as_dir=. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2105 | $as_echo "PATH: $as_dir" |
| 2106 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2107 | IFS=$as_save_IFS |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2108 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2109 | } >&5 |
| 2110 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2111 | cat >&5 <<_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2112 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2113 | |
| 2114 | ## ----------- ## |
| 2115 | ## Core tests. ## |
| 2116 | ## ----------- ## |
| 2117 | |
| 2118 | _ACEOF |
| 2119 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2120 | |
| 2121 | # Keep a trace of the command line. |
| 2122 | # Strip out --no-create and --no-recursion so they do not pile up. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2123 | # Strip out --silent because we don't want to record it for future runs. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2124 | # Also quote any args containing shell meta-characters. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2125 | # Make two passes to allow for proper duplicate-argument suppression. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2126 | ac_configure_args= |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2127 | ac_configure_args0= |
| 2128 | ac_configure_args1= |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2129 | ac_must_keep_next=false |
| 2130 | for ac_pass in 1 2 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2131 | do |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2132 | for ac_arg |
| 2133 | do |
| 2134 | case $ac_arg in |
| 2135 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 2136 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 2137 | | -silent | --silent | --silen | --sile | --sil) |
| 2138 | continue ;; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2139 | *\'*) |
| 2140 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2141 | esac |
| 2142 | case $ac_pass in |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2143 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2144 | 2) |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2145 | as_fn_append ac_configure_args1 " '$ac_arg'" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2146 | if test $ac_must_keep_next = true; then |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2147 | ac_must_keep_next=false # Got value, back to normal. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2148 | else |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2149 | case $ac_arg in |
| 2150 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 2151 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 2152 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 2153 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 2154 | case "$ac_configure_args0 " in |
| 2155 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 2156 | esac |
| 2157 | ;; |
| 2158 | -* ) ac_must_keep_next=true ;; |
| 2159 | esac |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2160 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2161 | as_fn_append ac_configure_args " '$ac_arg'" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2162 | ;; |
| 2163 | esac |
| 2164 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2165 | done |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2166 | { ac_configure_args0=; unset ac_configure_args0;} |
| 2167 | { ac_configure_args1=; unset ac_configure_args1;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2168 | |
| 2169 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 2170 | # config.log. We remove comments because anyway the quotes in there |
| 2171 | # would cause problems or look ugly. |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2172 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 2173 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2174 | trap 'exit_status=$? |
| 2175 | # Save into config.log some information that might help in debugging. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2176 | { |
| 2177 | echo |
| 2178 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2179 | $as_echo "## ---------------- ## |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2180 | ## Cache variables. ## |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2181 | ## ---------------- ##" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2182 | echo |
| 2183 | # The following way of writing the cache mishandles newlines in values, |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2184 | ( |
| 2185 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 2186 | eval ac_val=\$$ac_var |
| 2187 | case $ac_val in #( |
| 2188 | *${as_nl}*) |
| 2189 | case $ac_var in #( |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2190 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 2191 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2192 | esac |
| 2193 | case $ac_var in #( |
| 2194 | _ | IFS | as_nl) ;; #( |
| 2195 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2196 | *) { eval $ac_var=; unset $ac_var;} ;; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2197 | esac ;; |
| 2198 | esac |
| 2199 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2200 | (set) 2>&1 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2201 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2202 | *${as_nl}ac_space=\ *) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2203 | sed -n \ |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2204 | "s/'\''/'\''\\\\'\'''\''/g; |
| 2205 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2206 | ;; #( |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2207 | *) |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2208 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2209 | ;; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2210 | esac | |
| 2211 | sort |
| 2212 | ) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2213 | echo |
| 2214 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2215 | $as_echo "## ----------------- ## |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2216 | ## Output variables. ## |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2217 | ## ----------------- ##" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2218 | echo |
| 2219 | for ac_var in $ac_subst_vars |
| 2220 | do |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2221 | eval ac_val=\$$ac_var |
| 2222 | case $ac_val in |
| 2223 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 2224 | esac |
| 2225 | $as_echo "$ac_var='\''$ac_val'\''" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2226 | done | sort |
| 2227 | echo |
| 2228 | |
| 2229 | if test -n "$ac_subst_files"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2230 | $as_echo "## ------------------- ## |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2231 | ## File substitutions. ## |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2232 | ## ------------------- ##" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2233 | echo |
| 2234 | for ac_var in $ac_subst_files |
| 2235 | do |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2236 | eval ac_val=\$$ac_var |
| 2237 | case $ac_val in |
| 2238 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 2239 | esac |
| 2240 | $as_echo "$ac_var='\''$ac_val'\''" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2241 | done | sort |
| 2242 | echo |
| 2243 | fi |
| 2244 | |
| 2245 | if test -s confdefs.h; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2246 | $as_echo "## ----------- ## |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2247 | ## confdefs.h. ## |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2248 | ## ----------- ##" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2249 | echo |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2250 | cat confdefs.h |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2251 | echo |
| 2252 | fi |
| 2253 | test "$ac_signal" != 0 && |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2254 | $as_echo "$as_me: caught signal $ac_signal" |
| 2255 | $as_echo "$as_me: exit $exit_status" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2256 | } >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2257 | rm -f core *.core core.conftest.* && |
| 2258 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2259 | exit $exit_status |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2260 | ' 0 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2261 | for ac_signal in 1 2 13 15; do |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2262 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2263 | done |
| 2264 | ac_signal=0 |
| 2265 | |
| 2266 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2267 | rm -f -r conftest* confdefs.h |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2268 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2269 | $as_echo "/* confdefs.h */" > confdefs.h |
| 2270 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2271 | # Predefined preprocessor variables. |
| 2272 | |
| 2273 | cat >>confdefs.h <<_ACEOF |
| 2274 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 2275 | _ACEOF |
| 2276 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2277 | cat >>confdefs.h <<_ACEOF |
| 2278 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 2279 | _ACEOF |
| 2280 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2281 | cat >>confdefs.h <<_ACEOF |
| 2282 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 2283 | _ACEOF |
| 2284 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2285 | cat >>confdefs.h <<_ACEOF |
| 2286 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 2287 | _ACEOF |
| 2288 | |
dan | a9f39fd | 2011-08-12 16:34:42 +0000 | [diff] [blame] | 2289 | cat >>confdefs.h <<_ACEOF |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2290 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
dan | a9f39fd | 2011-08-12 16:34:42 +0000 | [diff] [blame] | 2291 | _ACEOF |
| 2292 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2293 | cat >>confdefs.h <<_ACEOF |
| 2294 | #define PACKAGE_URL "$PACKAGE_URL" |
| 2295 | _ACEOF |
| 2296 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2297 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2298 | # Let the site file select an alternate cache file if it wants to. |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2299 | # Prefer an explicitly selected file to automatically selected ones. |
| 2300 | ac_site_file1=NONE |
| 2301 | ac_site_file2=NONE |
| 2302 | if test -n "$CONFIG_SITE"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2303 | # We do not want a PATH search for config.site. |
| 2304 | case $CONFIG_SITE in #(( |
| 2305 | -*) ac_site_file1=./$CONFIG_SITE;; |
| 2306 | */*) ac_site_file1=$CONFIG_SITE;; |
| 2307 | *) ac_site_file1=./$CONFIG_SITE;; |
| 2308 | esac |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2309 | elif test "x$prefix" != xNONE; then |
| 2310 | ac_site_file1=$prefix/share/config.site |
| 2311 | ac_site_file2=$prefix/etc/config.site |
| 2312 | else |
| 2313 | ac_site_file1=$ac_default_prefix/share/config.site |
| 2314 | ac_site_file2=$ac_default_prefix/etc/config.site |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 2315 | fi |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2316 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
| 2317 | do |
| 2318 | test "x$ac_site_file" = xNONE && continue |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2319 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
| 2320 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2321 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2322 | sed 's/^/| /' "$ac_site_file" >&5 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2323 | . "$ac_site_file" \ |
| 2324 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2325 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2326 | as_fn_error $? "failed to load site script $ac_site_file |
| 2327 | See \`config.log' for more details" "$LINENO" 5; } |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 2328 | fi |
| 2329 | done |
| 2330 | |
| 2331 | if test -r "$cache_file"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2332 | # Some versions of bash will fail to source /dev/null (special files |
| 2333 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2334 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
| 2335 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2336 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2337 | case $cache_file in |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2338 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2339 | *) . "./$cache_file";; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2340 | esac |
| 2341 | fi |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 2342 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2343 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2344 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2345 | >$cache_file |
| 2346 | fi |
| 2347 | |
| 2348 | # Check that the precious variables saved in the cache have kept the same |
| 2349 | # value. |
| 2350 | ac_cache_corrupted=false |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2351 | for ac_var in $ac_precious_vars; do |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2352 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2353 | eval ac_new_set=\$ac_env_${ac_var}_set |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2354 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2355 | eval ac_new_val=\$ac_env_${ac_var}_value |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2356 | case $ac_old_set,$ac_new_set in |
| 2357 | set,) |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2358 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2359 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2360 | ac_cache_corrupted=: ;; |
| 2361 | ,set) |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2362 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2363 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2364 | ac_cache_corrupted=: ;; |
| 2365 | ,);; |
| 2366 | *) |
| 2367 | if test "x$ac_old_val" != "x$ac_new_val"; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2368 | # differences in whitespace do not lead to failure. |
| 2369 | ac_old_val_w=`echo x $ac_old_val` |
| 2370 | ac_new_val_w=`echo x $ac_new_val` |
| 2371 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2372 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2373 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 2374 | ac_cache_corrupted=: |
| 2375 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2376 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2377 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 2378 | eval $ac_var=\$ac_old_val |
| 2379 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2380 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2381 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2382 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2383 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2384 | fi;; |
| 2385 | esac |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2386 | # Pass precious variables to config.status. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2387 | if test "$ac_new_set" = set; then |
| 2388 | case $ac_new_val in |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2389 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2390 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2391 | esac |
| 2392 | case " $ac_configure_args " in |
| 2393 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2394 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2395 | esac |
| 2396 | fi |
| 2397 | done |
| 2398 | if $ac_cache_corrupted; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2399 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2400 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2401 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2402 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2403 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 2404 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2405 | ## -------------------- ## |
| 2406 | ## Main body of script. ## |
| 2407 | ## -------------------- ## |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2408 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 2409 | ac_ext=c |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 2410 | ac_cpp='$CPP $CPPFLAGS' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2411 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2412 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2413 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 2414 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2415 | |
| 2416 | |
drh | 0444610 | 2009-06-15 00:04:06 +0000 | [diff] [blame] | 2417 | sqlite_version_sanity_check=`cat $srcdir/VERSION | tr -d '\n'` |
vapier | faa68db | 2009-04-01 07:38:31 +0000 | [diff] [blame] | 2418 | if test "$PACKAGE_VERSION" != "$sqlite_version_sanity_check" ; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2419 | as_fn_error $? "configure script is out of date: |
vapier | faa68db | 2009-04-01 07:38:31 +0000 | [diff] [blame] | 2420 | configure \$PACKAGE_VERSION = $PACKAGE_VERSION |
| 2421 | top level VERSION file = $sqlite_version_sanity_check |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2422 | please regen with autoconf" "$LINENO" 5 |
vapier | faa68db | 2009-04-01 07:38:31 +0000 | [diff] [blame] | 2423 | fi |
| 2424 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 2425 | ######### |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2426 | # Programs needed |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 2427 | # |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 2428 | case `pwd` in |
| 2429 | *\ * | *\ *) |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2430 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2431 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 2432 | esac |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2433 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2434 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 2435 | |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 2436 | macro_version='2.2.6' |
| 2437 | macro_revision='1.3012' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2438 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2439 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2440 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2441 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 2442 | |
| 2443 | |
| 2444 | |
| 2445 | |
| 2446 | |
| 2447 | |
| 2448 | |
| 2449 | |
| 2450 | |
| 2451 | ltmain="$ac_aux_dir/ltmain.sh" |
| 2452 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2453 | ac_aux_dir= |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2454 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
drh | 0fe0c46 | 2011-09-22 00:56:38 +0000 | [diff] [blame] | 2455 | if test -f "$ac_dir/install-sh"; then |
| 2456 | ac_aux_dir=$ac_dir |
| 2457 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 2458 | break |
| 2459 | elif test -f "$ac_dir/install.sh"; then |
| 2460 | ac_aux_dir=$ac_dir |
| 2461 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 2462 | break |
| 2463 | elif test -f "$ac_dir/shtool"; then |
| 2464 | ac_aux_dir=$ac_dir |
| 2465 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 2466 | break |
| 2467 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2468 | done |
| 2469 | if test -z "$ac_aux_dir"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2470 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2471 | fi |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2472 | |
| 2473 | # These three variables are undocumented and unsupported, |
| 2474 | # and are intended to be withdrawn in a future Autoconf release. |
| 2475 | # They can cause serious problems if a builder's source tree is in a directory |
| 2476 | # whose full name contains unusual characters. |
| 2477 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 2478 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 2479 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 2480 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2481 | |
| 2482 | # Make sure we can run config.sub. |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2483 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2484 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2485 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2486 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2487 | $as_echo_n "checking build system type... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2488 | if ${ac_cv_build+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2489 | $as_echo_n "(cached) " >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2490 | else |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2491 | ac_build_alias=$build_alias |
| 2492 | test "x$ac_build_alias" = x && |
| 2493 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 2494 | test "x$ac_build_alias" = x && |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2495 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2496 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2497 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2498 | |
| 2499 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2501 | $as_echo "$ac_cv_build" >&6; } |
| 2502 | case $ac_cv_build in |
| 2503 | *-*-*) ;; |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2504 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2505 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2506 | build=$ac_cv_build |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2507 | ac_save_IFS=$IFS; IFS='-' |
| 2508 | set x $ac_cv_build |
| 2509 | shift |
| 2510 | build_cpu=$1 |
| 2511 | build_vendor=$2 |
| 2512 | shift; shift |
| 2513 | # Remember, the first character of IFS is used to create $*, |
| 2514 | # except with old shells: |
| 2515 | build_os=$* |
| 2516 | IFS=$ac_save_IFS |
| 2517 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2518 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2519 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2520 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2521 | $as_echo_n "checking host system type... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2522 | if ${ac_cv_host+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2523 | $as_echo_n "(cached) " >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2524 | else |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2525 | if test "x$host_alias" = x; then |
| 2526 | ac_cv_host=$ac_cv_build |
| 2527 | else |
| 2528 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2529 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2530 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2531 | |
| 2532 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2534 | $as_echo "$ac_cv_host" >&6; } |
| 2535 | case $ac_cv_host in |
| 2536 | *-*-*) ;; |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2537 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2538 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2539 | host=$ac_cv_host |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2540 | ac_save_IFS=$IFS; IFS='-' |
| 2541 | set x $ac_cv_host |
| 2542 | shift |
| 2543 | host_cpu=$1 |
| 2544 | host_vendor=$2 |
| 2545 | shift; shift |
| 2546 | # Remember, the first character of IFS is used to create $*, |
| 2547 | # except with old shells: |
| 2548 | host_os=$* |
| 2549 | IFS=$ac_save_IFS |
| 2550 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2551 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2552 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2553 | ac_ext=c |
| 2554 | ac_cpp='$CPP $CPPFLAGS' |
| 2555 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2556 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2557 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2558 | if test -n "$ac_tool_prefix"; then |
| 2559 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2560 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2561 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2562 | $as_echo_n "checking for $ac_word... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2563 | if ${ac_cv_prog_CC+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2564 | $as_echo_n "(cached) " >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2565 | else |
| 2566 | if test -n "$CC"; then |
| 2567 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2568 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2569 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2570 | for as_dir in $PATH |
| 2571 | do |
| 2572 | IFS=$as_save_IFS |
| 2573 | test -z "$as_dir" && as_dir=. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2574 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2575 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2576 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2577 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2578 | break 2 |
| 2579 | fi |
| 2580 | done |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2581 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2582 | IFS=$as_save_IFS |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2583 | |
| 2584 | fi |
| 2585 | fi |
| 2586 | CC=$ac_cv_prog_CC |
| 2587 | if test -n "$CC"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2589 | $as_echo "$CC" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2590 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2592 | $as_echo "no" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2593 | fi |
| 2594 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2595 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2596 | fi |
| 2597 | if test -z "$ac_cv_prog_CC"; then |
| 2598 | ac_ct_CC=$CC |
| 2599 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2600 | set dummy gcc; ac_word=$2 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2601 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2602 | $as_echo_n "checking for $ac_word... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2603 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2604 | $as_echo_n "(cached) " >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2605 | else |
| 2606 | if test -n "$ac_ct_CC"; then |
| 2607 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2608 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2609 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2610 | for as_dir in $PATH |
| 2611 | do |
| 2612 | IFS=$as_save_IFS |
| 2613 | test -z "$as_dir" && as_dir=. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2614 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2615 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2616 | ac_cv_prog_ac_ct_CC="gcc" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2617 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2618 | break 2 |
| 2619 | fi |
| 2620 | done |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2621 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2622 | IFS=$as_save_IFS |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2623 | |
| 2624 | fi |
| 2625 | fi |
| 2626 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2627 | if test -n "$ac_ct_CC"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2629 | $as_echo "$ac_ct_CC" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2630 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2632 | $as_echo "no" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2633 | fi |
| 2634 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2635 | if test "x$ac_ct_CC" = x; then |
| 2636 | CC="" |
| 2637 | else |
| 2638 | case $cross_compiling:$ac_tool_warned in |
| 2639 | yes:) |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2640 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2641 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2642 | ac_tool_warned=yes ;; |
| 2643 | esac |
| 2644 | CC=$ac_ct_CC |
| 2645 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2646 | else |
| 2647 | CC="$ac_cv_prog_CC" |
| 2648 | fi |
| 2649 | |
| 2650 | if test -z "$CC"; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2651 | if test -n "$ac_tool_prefix"; then |
| 2652 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2653 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2655 | $as_echo_n "checking for $ac_word... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2656 | if ${ac_cv_prog_CC+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2657 | $as_echo_n "(cached) " >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2658 | else |
| 2659 | if test -n "$CC"; then |
| 2660 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2661 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2662 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2663 | for as_dir in $PATH |
| 2664 | do |
| 2665 | IFS=$as_save_IFS |
| 2666 | test -z "$as_dir" && as_dir=. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2667 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2668 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2669 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2670 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2671 | break 2 |
| 2672 | fi |
| 2673 | done |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2674 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2675 | IFS=$as_save_IFS |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2676 | |
| 2677 | fi |
| 2678 | fi |
| 2679 | CC=$ac_cv_prog_CC |
| 2680 | if test -n "$CC"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2682 | $as_echo "$CC" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2683 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2685 | $as_echo "no" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2686 | fi |
| 2687 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2688 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2689 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2690 | fi |
| 2691 | if test -z "$CC"; then |
| 2692 | # Extract the first word of "cc", so it can be a program name with args. |
| 2693 | set dummy cc; ac_word=$2 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2694 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2695 | $as_echo_n "checking for $ac_word... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2696 | if ${ac_cv_prog_CC+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2697 | $as_echo_n "(cached) " >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2698 | else |
| 2699 | if test -n "$CC"; then |
| 2700 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2701 | else |
| 2702 | ac_prog_rejected=no |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2703 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2704 | for as_dir in $PATH |
| 2705 | do |
| 2706 | IFS=$as_save_IFS |
| 2707 | test -z "$as_dir" && as_dir=. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2708 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2709 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2710 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2711 | ac_prog_rejected=yes |
| 2712 | continue |
| 2713 | fi |
| 2714 | ac_cv_prog_CC="cc" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2715 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2716 | break 2 |
| 2717 | fi |
| 2718 | done |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2719 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2720 | IFS=$as_save_IFS |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2721 | |
| 2722 | if test $ac_prog_rejected = yes; then |
| 2723 | # We found a bogon in the path, so make sure we never use it. |
| 2724 | set dummy $ac_cv_prog_CC |
| 2725 | shift |
| 2726 | if test $# != 0; then |
| 2727 | # We chose a different compiler from the bogus one. |
| 2728 | # However, it has the same basename, so the bogon will be chosen |
| 2729 | # first if we set CC to just the basename; use the full file name. |
| 2730 | shift |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2731 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2732 | fi |
| 2733 | fi |
| 2734 | fi |
| 2735 | fi |
| 2736 | CC=$ac_cv_prog_CC |
| 2737 | if test -n "$CC"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2739 | $as_echo "$CC" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2740 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2742 | $as_echo "no" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2743 | fi |
| 2744 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2745 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2746 | fi |
| 2747 | if test -z "$CC"; then |
| 2748 | if test -n "$ac_tool_prefix"; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2749 | for ac_prog in cl.exe |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2750 | do |
| 2751 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2752 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2753 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2754 | $as_echo_n "checking for $ac_word... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2755 | if ${ac_cv_prog_CC+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2756 | $as_echo_n "(cached) " >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2757 | else |
| 2758 | if test -n "$CC"; then |
| 2759 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2760 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2761 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2762 | for as_dir in $PATH |
| 2763 | do |
| 2764 | IFS=$as_save_IFS |
| 2765 | test -z "$as_dir" && as_dir=. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2766 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2767 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2768 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2769 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2770 | break 2 |
| 2771 | fi |
| 2772 | done |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2773 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2774 | IFS=$as_save_IFS |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2775 | |
| 2776 | fi |
| 2777 | fi |
| 2778 | CC=$ac_cv_prog_CC |
| 2779 | if test -n "$CC"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2781 | $as_echo "$CC" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2782 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2784 | $as_echo "no" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2785 | fi |
| 2786 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2787 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2788 | test -n "$CC" && break |
| 2789 | done |
| 2790 | fi |
| 2791 | if test -z "$CC"; then |
| 2792 | ac_ct_CC=$CC |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2793 | for ac_prog in cl.exe |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2794 | do |
| 2795 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2796 | set dummy $ac_prog; ac_word=$2 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2798 | $as_echo_n "checking for $ac_word... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2799 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2800 | $as_echo_n "(cached) " >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2801 | else |
| 2802 | if test -n "$ac_ct_CC"; then |
| 2803 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2804 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2805 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2806 | for as_dir in $PATH |
| 2807 | do |
| 2808 | IFS=$as_save_IFS |
| 2809 | test -z "$as_dir" && as_dir=. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2810 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2811 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2812 | ac_cv_prog_ac_ct_CC="$ac_prog" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2813 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2814 | break 2 |
| 2815 | fi |
| 2816 | done |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2817 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2818 | IFS=$as_save_IFS |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2819 | |
| 2820 | fi |
| 2821 | fi |
| 2822 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2823 | if test -n "$ac_ct_CC"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2825 | $as_echo "$ac_ct_CC" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2826 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2828 | $as_echo "no" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2829 | fi |
| 2830 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2831 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2832 | test -n "$ac_ct_CC" && break |
| 2833 | done |
| 2834 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2835 | if test "x$ac_ct_CC" = x; then |
| 2836 | CC="" |
| 2837 | else |
| 2838 | case $cross_compiling:$ac_tool_warned in |
| 2839 | yes:) |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2840 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2841 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2842 | ac_tool_warned=yes ;; |
| 2843 | esac |
| 2844 | CC=$ac_ct_CC |
| 2845 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2846 | fi |
| 2847 | |
| 2848 | fi |
| 2849 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2850 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2851 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2852 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2853 | as_fn_error $? "no acceptable C compiler found in \$PATH |
| 2854 | See \`config.log' for more details" "$LINENO" 5; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2855 | |
| 2856 | # Provide some information about the compiler. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2857 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2858 | set X $ac_compile |
| 2859 | ac_compiler=$2 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2860 | for ac_option in --version -v -V -qversion; do |
| 2861 | { { ac_try="$ac_compiler $ac_option >&5" |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2862 | case "(($ac_try" in |
| 2863 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2864 | *) ac_try_echo=$ac_try;; |
| 2865 | esac |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2866 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2867 | $as_echo "$ac_try_echo"; } >&5 |
| 2868 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2869 | ac_status=$? |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2870 | if test -s conftest.err; then |
| 2871 | sed '10a\ |
| 2872 | ... rest of stderr output deleted ... |
| 2873 | 10q' conftest.err >conftest.er1 |
| 2874 | cat conftest.er1 >&5 |
| 2875 | fi |
| 2876 | rm -f conftest.er1 conftest.err |
| 2877 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2878 | test $ac_status = 0; } |
| 2879 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2880 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2881 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2882 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2883 | |
| 2884 | int |
| 2885 | main () |
| 2886 | { |
| 2887 | |
| 2888 | ; |
| 2889 | return 0; |
| 2890 | } |
| 2891 | _ACEOF |
| 2892 | ac_clean_files_save=$ac_clean_files |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2893 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2894 | # Try to create an executable without -o first, disregard a.out. |
| 2895 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2896 | # of exeext. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2897 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 2898 | $as_echo_n "checking whether the C compiler works... " >&6; } |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2899 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2900 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2901 | # The possible output files: |
| 2902 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 2903 | |
| 2904 | ac_rmfiles= |
| 2905 | for ac_file in $ac_files |
| 2906 | do |
| 2907 | case $ac_file in |
| 2908 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 2909 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2910 | esac |
| 2911 | done |
| 2912 | rm -f $ac_rmfiles |
| 2913 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2914 | if { { ac_try="$ac_link_default" |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2915 | case "(($ac_try" in |
| 2916 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2917 | *) ac_try_echo=$ac_try;; |
| 2918 | esac |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2919 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2920 | $as_echo "$ac_try_echo"; } >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2921 | (eval "$ac_link_default") 2>&5 |
| 2922 | ac_status=$? |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2923 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2924 | test $ac_status = 0; }; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2925 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2926 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2927 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2928 | # so that the user can short-circuit this test for compilers unknown to |
| 2929 | # Autoconf. |
| 2930 | for ac_file in $ac_files '' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2931 | do |
| 2932 | test -f "$ac_file" || continue |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2933 | case $ac_file in |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2934 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2935 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2936 | [ab].out ) |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2937 | # We found the default executable, but exeext='' is most |
| 2938 | # certainly right. |
| 2939 | break;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2940 | *.* ) |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2941 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2942 | then :; else |
| 2943 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2944 | fi |
| 2945 | # We set ac_cv_exeext here because the later test for it is not |
| 2946 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2947 | # argument, so we may need to know it at that point already. |
| 2948 | # Even if this section looks crufty: it has the advantage of |
| 2949 | # actually working. |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2950 | break;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2951 | * ) |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2952 | break;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2953 | esac |
| 2954 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2955 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2956 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2957 | else |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2958 | ac_file='' |
| 2959 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2960 | if test -z "$ac_file"; then : |
| 2961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2962 | $as_echo "no" >&6; } |
| 2963 | $as_echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2964 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2965 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2966 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2967 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2968 | as_fn_error 77 "C compiler cannot create executables |
| 2969 | See \`config.log' for more details" "$LINENO" 5; } |
| 2970 | else |
| 2971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2972 | $as_echo "yes" >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2973 | fi |
| 2974 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 2975 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 2976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 2977 | $as_echo "$ac_file" >&6; } |
| 2978 | ac_exeext=$ac_cv_exeext |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2979 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2980 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2981 | ac_clean_files=$ac_clean_files_save |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2982 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2983 | $as_echo_n "checking for suffix of executables... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2984 | if { { ac_try="$ac_link" |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2985 | case "(($ac_try" in |
| 2986 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2987 | *) ac_try_echo=$ac_try;; |
| 2988 | esac |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2989 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2990 | $as_echo "$ac_try_echo"; } >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2991 | (eval "$ac_link") 2>&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2992 | ac_status=$? |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2993 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2994 | test $ac_status = 0; }; then : |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2995 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2996 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2997 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2998 | # `rm'. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2999 | for ac_file in conftest.exe conftest conftest.*; do |
| 3000 | test -f "$ac_file" || continue |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3001 | case $ac_file in |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3002 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3003 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 3004 | break;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3005 | * ) break;; |
| 3006 | esac |
| 3007 | done |
| 3008 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3009 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3010 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3011 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
| 3012 | See \`config.log' for more details" "$LINENO" 5; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3013 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3014 | rm -f conftest conftest$ac_cv_exeext |
| 3015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3016 | $as_echo "$ac_cv_exeext" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3017 | |
| 3018 | rm -f conftest.$ac_ext |
| 3019 | EXEEXT=$ac_cv_exeext |
| 3020 | ac_exeext=$EXEEXT |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3021 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3022 | /* end confdefs.h. */ |
| 3023 | #include <stdio.h> |
| 3024 | int |
| 3025 | main () |
| 3026 | { |
| 3027 | FILE *f = fopen ("conftest.out", "w"); |
| 3028 | return ferror (f) || fclose (f) != 0; |
| 3029 | |
| 3030 | ; |
| 3031 | return 0; |
| 3032 | } |
| 3033 | _ACEOF |
| 3034 | ac_clean_files="$ac_clean_files conftest.out" |
| 3035 | # Check that the compiler produces executables we can run. If not, either |
| 3036 | # the compiler is broken, or we cross compile. |
| 3037 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 3038 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 3039 | if test "$cross_compiling" != yes; then |
| 3040 | { { ac_try="$ac_link" |
| 3041 | case "(($ac_try" in |
| 3042 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3043 | *) ac_try_echo=$ac_try;; |
| 3044 | esac |
| 3045 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3046 | $as_echo "$ac_try_echo"; } >&5 |
| 3047 | (eval "$ac_link") 2>&5 |
| 3048 | ac_status=$? |
| 3049 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3050 | test $ac_status = 0; } |
| 3051 | if { ac_try='./conftest$ac_cv_exeext' |
| 3052 | { { case "(($ac_try" in |
| 3053 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3054 | *) ac_try_echo=$ac_try;; |
| 3055 | esac |
| 3056 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3057 | $as_echo "$ac_try_echo"; } >&5 |
| 3058 | (eval "$ac_try") 2>&5 |
| 3059 | ac_status=$? |
| 3060 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3061 | test $ac_status = 0; }; }; then |
| 3062 | cross_compiling=no |
| 3063 | else |
| 3064 | if test "$cross_compiling" = maybe; then |
| 3065 | cross_compiling=yes |
| 3066 | else |
| 3067 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3068 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3069 | as_fn_error $? "cannot run C compiled programs. |
| 3070 | If you meant to cross compile, use \`--host'. |
| 3071 | See \`config.log' for more details" "$LINENO" 5; } |
| 3072 | fi |
| 3073 | fi |
| 3074 | fi |
| 3075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 3076 | $as_echo "$cross_compiling" >&6; } |
| 3077 | |
| 3078 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 3079 | ac_clean_files=$ac_clean_files_save |
| 3080 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3081 | $as_echo_n "checking for suffix of object files... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3082 | if ${ac_cv_objext+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3083 | $as_echo_n "(cached) " >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3084 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3085 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3086 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3087 | |
| 3088 | int |
| 3089 | main () |
| 3090 | { |
| 3091 | |
| 3092 | ; |
| 3093 | return 0; |
| 3094 | } |
| 3095 | _ACEOF |
| 3096 | rm -f conftest.o conftest.obj |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3097 | if { { ac_try="$ac_compile" |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3098 | case "(($ac_try" in |
| 3099 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3100 | *) ac_try_echo=$ac_try;; |
| 3101 | esac |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3102 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3103 | $as_echo "$ac_try_echo"; } >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3104 | (eval "$ac_compile") 2>&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3105 | ac_status=$? |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3106 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3107 | test $ac_status = 0; }; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3108 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 3109 | test -f "$ac_file" || continue; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3110 | case $ac_file in |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3111 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3112 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 3113 | break;; |
| 3114 | esac |
| 3115 | done |
| 3116 | else |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3117 | $as_echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3118 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3119 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3120 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3121 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3122 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
| 3123 | See \`config.log' for more details" "$LINENO" 5; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3124 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3125 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 3126 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3128 | $as_echo "$ac_cv_objext" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3129 | OBJEXT=$ac_cv_objext |
| 3130 | ac_objext=$OBJEXT |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3131 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3132 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3133 | if ${ac_cv_c_compiler_gnu+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3134 | $as_echo_n "(cached) " >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3135 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3136 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3137 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3138 | |
| 3139 | int |
| 3140 | main () |
| 3141 | { |
| 3142 | #ifndef __GNUC__ |
| 3143 | choke me |
| 3144 | #endif |
| 3145 | |
| 3146 | ; |
| 3147 | return 0; |
| 3148 | } |
| 3149 | _ACEOF |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3150 | if ac_fn_c_try_compile "$LINENO"; then : |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3151 | ac_compiler_gnu=yes |
| 3152 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3153 | ac_compiler_gnu=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3154 | fi |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3155 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3156 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3157 | |
| 3158 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3160 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 3161 | if test $ac_compiler_gnu = yes; then |
| 3162 | GCC=yes |
| 3163 | else |
| 3164 | GCC= |
| 3165 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3166 | ac_test_CFLAGS=${CFLAGS+set} |
| 3167 | ac_save_CFLAGS=$CFLAGS |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3169 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3170 | if ${ac_cv_prog_cc_g+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3171 | $as_echo_n "(cached) " >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3172 | else |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3173 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3174 | ac_c_werror_flag=yes |
| 3175 | ac_cv_prog_cc_g=no |
| 3176 | CFLAGS="-g" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3177 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3178 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3179 | |
| 3180 | int |
| 3181 | main () |
| 3182 | { |
| 3183 | |
| 3184 | ; |
| 3185 | return 0; |
| 3186 | } |
| 3187 | _ACEOF |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3188 | if ac_fn_c_try_compile "$LINENO"; then : |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3189 | ac_cv_prog_cc_g=yes |
| 3190 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3191 | CFLAGS="" |
| 3192 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3193 | /* end confdefs.h. */ |
| 3194 | |
| 3195 | int |
| 3196 | main () |
| 3197 | { |
| 3198 | |
| 3199 | ; |
| 3200 | return 0; |
| 3201 | } |
| 3202 | _ACEOF |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3203 | if ac_fn_c_try_compile "$LINENO"; then : |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3204 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3205 | else |
| 3206 | ac_c_werror_flag=$ac_save_c_werror_flag |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3207 | CFLAGS="-g" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3208 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3209 | /* end confdefs.h. */ |
| 3210 | |
| 3211 | int |
| 3212 | main () |
| 3213 | { |
| 3214 | |
| 3215 | ; |
| 3216 | return 0; |
| 3217 | } |
| 3218 | _ACEOF |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3219 | if ac_fn_c_try_compile "$LINENO"; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3220 | ac_cv_prog_cc_g=yes |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3221 | fi |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3222 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3223 | fi |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3224 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3225 | fi |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3226 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3227 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3228 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3230 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3231 | if test "$ac_test_CFLAGS" = set; then |
| 3232 | CFLAGS=$ac_save_CFLAGS |
| 3233 | elif test $ac_cv_prog_cc_g = yes; then |
| 3234 | if test "$GCC" = yes; then |
| 3235 | CFLAGS="-g -O2" |
| 3236 | else |
| 3237 | CFLAGS="-g" |
| 3238 | fi |
| 3239 | else |
| 3240 | if test "$GCC" = yes; then |
| 3241 | CFLAGS="-O2" |
| 3242 | else |
| 3243 | CFLAGS= |
| 3244 | fi |
| 3245 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3246 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3247 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3248 | if ${ac_cv_prog_cc_c89+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3249 | $as_echo_n "(cached) " >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3250 | else |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3251 | ac_cv_prog_cc_c89=no |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3252 | ac_save_CC=$CC |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3253 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3254 | /* end confdefs.h. */ |
| 3255 | #include <stdarg.h> |
| 3256 | #include <stdio.h> |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3257 | struct stat; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3258 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3259 | struct buf { int x; }; |
| 3260 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3261 | static char *e (p, i) |
| 3262 | char **p; |
| 3263 | int i; |
| 3264 | { |
| 3265 | return p[i]; |
| 3266 | } |
| 3267 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3268 | { |
| 3269 | char *s; |
| 3270 | va_list v; |
| 3271 | va_start (v,p); |
| 3272 | s = g (p, va_arg (v,int)); |
| 3273 | va_end (v); |
| 3274 | return s; |
| 3275 | } |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 3276 | |
| 3277 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3278 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3279 | These don't provoke an error unfortunately, instead are silently treated |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3280 | as 'x'. The following induces an error, until -std is added to get |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 3281 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3282 | array size at least. It's necessary to write '\x00'==0 to get something |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3283 | that's true only with -std. */ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 3284 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3285 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3286 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3287 | inside strings and character constants. */ |
| 3288 | #define FOO(x) 'x' |
| 3289 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3290 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3291 | int test (int i, double x); |
| 3292 | struct s1 {int (*f) (int a);}; |
| 3293 | struct s2 {int (*f) (double a);}; |
| 3294 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3295 | int argc; |
| 3296 | char **argv; |
| 3297 | int |
| 3298 | main () |
| 3299 | { |
| 3300 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3301 | ; |
| 3302 | return 0; |
| 3303 | } |
| 3304 | _ACEOF |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3305 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3306 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3307 | do |
| 3308 | CC="$ac_save_CC $ac_arg" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3309 | if ac_fn_c_try_compile "$LINENO"; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3310 | ac_cv_prog_cc_c89=$ac_arg |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3311 | fi |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3312 | rm -f core conftest.err conftest.$ac_objext |
| 3313 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3314 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3315 | rm -f conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3316 | CC=$ac_save_CC |
| 3317 | |
| 3318 | fi |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3319 | # AC_CACHE_VAL |
| 3320 | case "x$ac_cv_prog_cc_c89" in |
| 3321 | x) |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3323 | $as_echo "none needed" >&6; } ;; |
| 3324 | xno) |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3326 | $as_echo "unsupported" >&6; } ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3327 | *) |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3328 | CC="$CC $ac_cv_prog_cc_c89" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3330 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3331 | esac |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3332 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3333 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3334 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3335 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3336 | ac_ext=c |
| 3337 | ac_cpp='$CPP $CPPFLAGS' |
| 3338 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3339 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3340 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3341 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3342 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3343 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3344 | if ${ac_cv_path_SED+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3345 | $as_echo_n "(cached) " >&6 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3346 | else |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3347 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
| 3348 | for ac_i in 1 2 3 4 5 6 7; do |
| 3349 | ac_script="$ac_script$as_nl$ac_script" |
| 3350 | done |
| 3351 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3352 | { ac_script=; unset ac_script;} |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3353 | if test -z "$SED"; then |
| 3354 | ac_path_SED_found=false |
| 3355 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3356 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3357 | for as_dir in $PATH |
| 3358 | do |
| 3359 | IFS=$as_save_IFS |
| 3360 | test -z "$as_dir" && as_dir=. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3361 | for ac_prog in sed gsed; do |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3362 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3363 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3364 | as_fn_executable_p "$ac_path_SED" || continue |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3365 | # Check for GNU ac_path_SED and select it if it is found. |
| 3366 | # Check for GNU $ac_path_SED |
| 3367 | case `"$ac_path_SED" --version 2>&1` in |
| 3368 | *GNU*) |
| 3369 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; |
| 3370 | *) |
| 3371 | ac_count=0 |
| 3372 | $as_echo_n 0123456789 >"conftest.in" |
| 3373 | while : |
| 3374 | do |
| 3375 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3376 | mv "conftest.tmp" "conftest.in" |
| 3377 | cp "conftest.in" "conftest.nl" |
| 3378 | $as_echo '' >> "conftest.nl" |
| 3379 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3380 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3381 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3382 | if test $ac_count -gt ${ac_path_SED_max-0}; then |
| 3383 | # Best one so far, save it but keep looking for a better one |
| 3384 | ac_cv_path_SED="$ac_path_SED" |
| 3385 | ac_path_SED_max=$ac_count |
| 3386 | fi |
| 3387 | # 10*(2^10) chars as input seems more than enough |
| 3388 | test $ac_count -gt 10 && break |
| 3389 | done |
| 3390 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3391 | esac |
| 3392 | |
| 3393 | $ac_path_SED_found && break 3 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3394 | done |
| 3395 | done |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3396 | done |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3397 | IFS=$as_save_IFS |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3398 | if test -z "$ac_cv_path_SED"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3399 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3400 | fi |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3401 | else |
| 3402 | ac_cv_path_SED=$SED |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3403 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3404 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3405 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3407 | $as_echo "$ac_cv_path_SED" >&6; } |
| 3408 | SED="$ac_cv_path_SED" |
| 3409 | rm -f conftest.sed |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3410 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3411 | test -z "$SED" && SED=sed |
| 3412 | Xsed="$SED -e 1s/^X//" |
| 3413 | |
| 3414 | |
| 3415 | |
| 3416 | |
| 3417 | |
| 3418 | |
| 3419 | |
| 3420 | |
| 3421 | |
| 3422 | |
| 3423 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3424 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3425 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3426 | if ${ac_cv_path_GREP+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3427 | $as_echo_n "(cached) " >&6 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3428 | else |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3429 | if test -z "$GREP"; then |
| 3430 | ac_path_GREP_found=false |
| 3431 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3432 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3433 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3434 | do |
| 3435 | IFS=$as_save_IFS |
| 3436 | test -z "$as_dir" && as_dir=. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3437 | for ac_prog in grep ggrep; do |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3438 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3439 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3440 | as_fn_executable_p "$ac_path_GREP" || continue |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3441 | # Check for GNU ac_path_GREP and select it if it is found. |
| 3442 | # Check for GNU $ac_path_GREP |
| 3443 | case `"$ac_path_GREP" --version 2>&1` in |
| 3444 | *GNU*) |
| 3445 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3446 | *) |
| 3447 | ac_count=0 |
| 3448 | $as_echo_n 0123456789 >"conftest.in" |
| 3449 | while : |
| 3450 | do |
| 3451 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3452 | mv "conftest.tmp" "conftest.in" |
| 3453 | cp "conftest.in" "conftest.nl" |
| 3454 | $as_echo 'GREP' >> "conftest.nl" |
| 3455 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3456 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3457 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3458 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3459 | # Best one so far, save it but keep looking for a better one |
| 3460 | ac_cv_path_GREP="$ac_path_GREP" |
| 3461 | ac_path_GREP_max=$ac_count |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3462 | fi |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3463 | # 10*(2^10) chars as input seems more than enough |
| 3464 | test $ac_count -gt 10 && break |
| 3465 | done |
| 3466 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3467 | esac |
| 3468 | |
| 3469 | $ac_path_GREP_found && break 3 |
| 3470 | done |
| 3471 | done |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3472 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3473 | IFS=$as_save_IFS |
| 3474 | if test -z "$ac_cv_path_GREP"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3475 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3476 | fi |
| 3477 | else |
| 3478 | ac_cv_path_GREP=$GREP |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 3479 | fi |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3480 | |
| 3481 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3483 | $as_echo "$ac_cv_path_GREP" >&6; } |
| 3484 | GREP="$ac_cv_path_GREP" |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 3485 | |
| 3486 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3487 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3488 | $as_echo_n "checking for egrep... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3489 | if ${ac_cv_path_EGREP+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3490 | $as_echo_n "(cached) " >&6 |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 3491 | else |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3492 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3493 | then ac_cv_path_EGREP="$GREP -E" |
| 3494 | else |
| 3495 | if test -z "$EGREP"; then |
| 3496 | ac_path_EGREP_found=false |
| 3497 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3498 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3499 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3500 | do |
| 3501 | IFS=$as_save_IFS |
| 3502 | test -z "$as_dir" && as_dir=. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3503 | for ac_prog in egrep; do |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3504 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3505 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3506 | as_fn_executable_p "$ac_path_EGREP" || continue |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3507 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 3508 | # Check for GNU $ac_path_EGREP |
| 3509 | case `"$ac_path_EGREP" --version 2>&1` in |
| 3510 | *GNU*) |
| 3511 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3512 | *) |
| 3513 | ac_count=0 |
| 3514 | $as_echo_n 0123456789 >"conftest.in" |
| 3515 | while : |
| 3516 | do |
| 3517 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3518 | mv "conftest.tmp" "conftest.in" |
| 3519 | cp "conftest.in" "conftest.nl" |
| 3520 | $as_echo 'EGREP' >> "conftest.nl" |
| 3521 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3522 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3523 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3524 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3525 | # Best one so far, save it but keep looking for a better one |
| 3526 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 3527 | ac_path_EGREP_max=$ac_count |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 3528 | fi |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3529 | # 10*(2^10) chars as input seems more than enough |
| 3530 | test $ac_count -gt 10 && break |
| 3531 | done |
| 3532 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3533 | esac |
| 3534 | |
| 3535 | $ac_path_EGREP_found && break 3 |
| 3536 | done |
| 3537 | done |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3538 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3539 | IFS=$as_save_IFS |
| 3540 | if test -z "$ac_cv_path_EGREP"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3541 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3542 | fi |
| 3543 | else |
| 3544 | ac_cv_path_EGREP=$EGREP |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 3545 | fi |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3546 | |
| 3547 | fi |
| 3548 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3550 | $as_echo "$ac_cv_path_EGREP" >&6; } |
| 3551 | EGREP="$ac_cv_path_EGREP" |
| 3552 | |
| 3553 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3554 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3555 | $as_echo_n "checking for fgrep... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3556 | if ${ac_cv_path_FGREP+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3557 | $as_echo_n "(cached) " >&6 |
| 3558 | else |
| 3559 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
| 3560 | then ac_cv_path_FGREP="$GREP -F" |
| 3561 | else |
| 3562 | if test -z "$FGREP"; then |
| 3563 | ac_path_FGREP_found=false |
| 3564 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3565 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3566 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3567 | do |
| 3568 | IFS=$as_save_IFS |
| 3569 | test -z "$as_dir" && as_dir=. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3570 | for ac_prog in fgrep; do |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3571 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3572 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3573 | as_fn_executable_p "$ac_path_FGREP" || continue |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3574 | # Check for GNU ac_path_FGREP and select it if it is found. |
| 3575 | # Check for GNU $ac_path_FGREP |
| 3576 | case `"$ac_path_FGREP" --version 2>&1` in |
| 3577 | *GNU*) |
| 3578 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; |
| 3579 | *) |
| 3580 | ac_count=0 |
| 3581 | $as_echo_n 0123456789 >"conftest.in" |
| 3582 | while : |
| 3583 | do |
| 3584 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3585 | mv "conftest.tmp" "conftest.in" |
| 3586 | cp "conftest.in" "conftest.nl" |
| 3587 | $as_echo 'FGREP' >> "conftest.nl" |
| 3588 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3589 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3590 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3591 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then |
| 3592 | # Best one so far, save it but keep looking for a better one |
| 3593 | ac_cv_path_FGREP="$ac_path_FGREP" |
| 3594 | ac_path_FGREP_max=$ac_count |
| 3595 | fi |
| 3596 | # 10*(2^10) chars as input seems more than enough |
| 3597 | test $ac_count -gt 10 && break |
| 3598 | done |
| 3599 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3600 | esac |
| 3601 | |
| 3602 | $ac_path_FGREP_found && break 3 |
| 3603 | done |
| 3604 | done |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3605 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3606 | IFS=$as_save_IFS |
| 3607 | if test -z "$ac_cv_path_FGREP"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3608 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3609 | fi |
| 3610 | else |
| 3611 | ac_cv_path_FGREP=$FGREP |
| 3612 | fi |
| 3613 | |
| 3614 | fi |
| 3615 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3617 | $as_echo "$ac_cv_path_FGREP" >&6; } |
| 3618 | FGREP="$ac_cv_path_FGREP" |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3619 | |
| 3620 | |
| 3621 | test -z "$GREP" && GREP=grep |
| 3622 | |
| 3623 | |
| 3624 | |
| 3625 | |
| 3626 | |
| 3627 | |
| 3628 | |
| 3629 | |
| 3630 | |
| 3631 | |
| 3632 | |
| 3633 | |
| 3634 | |
| 3635 | |
| 3636 | |
| 3637 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3638 | |
| 3639 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3640 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3641 | # Check whether --with-gnu-ld was given. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3642 | if test "${with_gnu_ld+set}" = set; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3643 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3644 | else |
| 3645 | with_gnu_ld=no |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3646 | fi |
| 3647 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3648 | ac_prog=ld |
| 3649 | if test "$GCC" = yes; then |
| 3650 | # Check if gcc -print-prog-name=ld gives a path. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3651 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3652 | $as_echo_n "checking for ld used by $CC... " >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3653 | case $host in |
| 3654 | *-*-mingw*) |
| 3655 | # gcc leaves a trailing carriage return which upsets mingw |
| 3656 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 3657 | *) |
| 3658 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 3659 | esac |
| 3660 | case $ac_prog in |
| 3661 | # Accept absolute paths. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3662 | [\\/]* | ?:[\\/]*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3663 | re_direlt='/[^/][^/]*/\.\./' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3664 | # Canonicalize the pathname of ld |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3665 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
| 3666 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
| 3667 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3668 | done |
| 3669 | test -z "$LD" && LD="$ac_prog" |
| 3670 | ;; |
| 3671 | "") |
| 3672 | # If it fails, then pretend we aren't using GCC. |
| 3673 | ac_prog=ld |
| 3674 | ;; |
| 3675 | *) |
| 3676 | # If it is relative, then search for the first ld in PATH. |
| 3677 | with_gnu_ld=unknown |
| 3678 | ;; |
| 3679 | esac |
| 3680 | elif test "$with_gnu_ld" = yes; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3681 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3682 | $as_echo_n "checking for GNU ld... " >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3683 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3684 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3685 | $as_echo_n "checking for non-GNU ld... " >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3686 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3687 | if ${lt_cv_path_LD+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3688 | $as_echo_n "(cached) " >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3689 | else |
| 3690 | if test -z "$LD"; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3691 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3692 | for ac_dir in $PATH; do |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3693 | IFS="$lt_save_ifs" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3694 | test -z "$ac_dir" && ac_dir=. |
| 3695 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 3696 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 3697 | # Check to see if the program is GNU ld. I'd rather use --version, |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 3698 | # but apparently some variants of GNU ld only accept -v. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3699 | # Break only if it was the GNU/non-GNU ld that we prefer. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3700 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 3701 | *GNU* | *'with BFD'*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3702 | test "$with_gnu_ld" != no && break |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3703 | ;; |
| 3704 | *) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3705 | test "$with_gnu_ld" != yes && break |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3706 | ;; |
| 3707 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3708 | fi |
| 3709 | done |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3710 | IFS="$lt_save_ifs" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3711 | else |
| 3712 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 3713 | fi |
| 3714 | fi |
| 3715 | |
| 3716 | LD="$lt_cv_path_LD" |
| 3717 | if test -n "$LD"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3719 | $as_echo "$LD" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3720 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3722 | $as_echo "no" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3723 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3724 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
| 3725 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3726 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3727 | if ${lt_cv_prog_gnu_ld+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3728 | $as_echo_n "(cached) " >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3729 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 3730 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3731 | case `$LD -v 2>&1 </dev/null` in |
| 3732 | *GNU* | *'with BFD'*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3733 | lt_cv_prog_gnu_ld=yes |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3734 | ;; |
| 3735 | *) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3736 | lt_cv_prog_gnu_ld=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3737 | ;; |
| 3738 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3739 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3741 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3742 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 3743 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3744 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3745 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3746 | |
| 3747 | |
| 3748 | |
| 3749 | |
| 3750 | |
| 3751 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3753 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3754 | if ${lt_cv_path_NM+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3755 | $as_echo_n "(cached) " >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3756 | else |
| 3757 | if test -n "$NM"; then |
| 3758 | # Let the user override the test. |
| 3759 | lt_cv_path_NM="$NM" |
| 3760 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 3761 | lt_nm_to_check="${ac_tool_prefix}nm" |
| 3762 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 3763 | lt_nm_to_check="$lt_nm_to_check nm" |
| 3764 | fi |
| 3765 | for lt_tmp_nm in $lt_nm_to_check; do |
| 3766 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 3767 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 3768 | IFS="$lt_save_ifs" |
| 3769 | test -z "$ac_dir" && ac_dir=. |
| 3770 | tmp_nm="$ac_dir/$lt_tmp_nm" |
| 3771 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 3772 | # Check to see if the nm accepts a BSD-compat flag. |
| 3773 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 3774 | # nm: unknown option "B" ignored |
| 3775 | # Tru64's nm complains that /dev/null is an invalid object file |
| 3776 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 3777 | */dev/null* | *'Invalid file or object type'*) |
| 3778 | lt_cv_path_NM="$tmp_nm -B" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3779 | break |
| 3780 | ;; |
| 3781 | *) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 3782 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 3783 | */dev/null*) |
| 3784 | lt_cv_path_NM="$tmp_nm -p" |
| 3785 | break |
| 3786 | ;; |
| 3787 | *) |
| 3788 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 3789 | continue # so that we can try to find one that supports BSD flags |
| 3790 | ;; |
| 3791 | esac |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3792 | ;; |
| 3793 | esac |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 3794 | fi |
| 3795 | done |
| 3796 | IFS="$lt_save_ifs" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3797 | done |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3798 | : ${lt_cv_path_NM=no} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3799 | fi |
| 3800 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3802 | $as_echo "$lt_cv_path_NM" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3803 | if test "$lt_cv_path_NM" != "no"; then |
| 3804 | NM="$lt_cv_path_NM" |
| 3805 | else |
| 3806 | # Didn't find any BSD compatible name lister, look for dumpbin. |
| 3807 | if test -n "$ac_tool_prefix"; then |
| 3808 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" |
| 3809 | do |
| 3810 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3811 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3812 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3813 | $as_echo_n "checking for $ac_word... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3814 | if ${ac_cv_prog_DUMPBIN+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3815 | $as_echo_n "(cached) " >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3816 | else |
| 3817 | if test -n "$DUMPBIN"; then |
| 3818 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. |
| 3819 | else |
| 3820 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3821 | for as_dir in $PATH |
| 3822 | do |
| 3823 | IFS=$as_save_IFS |
| 3824 | test -z "$as_dir" && as_dir=. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3825 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3826 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3827 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3828 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3829 | break 2 |
| 3830 | fi |
| 3831 | done |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3832 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3833 | IFS=$as_save_IFS |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3834 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3835 | fi |
| 3836 | fi |
| 3837 | DUMPBIN=$ac_cv_prog_DUMPBIN |
| 3838 | if test -n "$DUMPBIN"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3840 | $as_echo "$DUMPBIN" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3841 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3843 | $as_echo "no" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3844 | fi |
| 3845 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3846 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3847 | test -n "$DUMPBIN" && break |
| 3848 | done |
| 3849 | fi |
| 3850 | if test -z "$DUMPBIN"; then |
| 3851 | ac_ct_DUMPBIN=$DUMPBIN |
| 3852 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" |
| 3853 | do |
| 3854 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3855 | set dummy $ac_prog; ac_word=$2 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3856 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3857 | $as_echo_n "checking for $ac_word... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3858 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3859 | $as_echo_n "(cached) " >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3860 | else |
| 3861 | if test -n "$ac_ct_DUMPBIN"; then |
| 3862 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. |
| 3863 | else |
| 3864 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3865 | for as_dir in $PATH |
| 3866 | do |
| 3867 | IFS=$as_save_IFS |
| 3868 | test -z "$as_dir" && as_dir=. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3869 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3870 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3871 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3872 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3873 | break 2 |
| 3874 | fi |
| 3875 | done |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3876 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3877 | IFS=$as_save_IFS |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3878 | |
| 3879 | fi |
| 3880 | fi |
| 3881 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
| 3882 | if test -n "$ac_ct_DUMPBIN"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3884 | $as_echo "$ac_ct_DUMPBIN" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3885 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3887 | $as_echo "no" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3888 | fi |
| 3889 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3890 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3891 | test -n "$ac_ct_DUMPBIN" && break |
| 3892 | done |
| 3893 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3894 | if test "x$ac_ct_DUMPBIN" = x; then |
| 3895 | DUMPBIN=":" |
| 3896 | else |
| 3897 | case $cross_compiling:$ac_tool_warned in |
| 3898 | yes:) |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3899 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3900 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3901 | ac_tool_warned=yes ;; |
| 3902 | esac |
| 3903 | DUMPBIN=$ac_ct_DUMPBIN |
| 3904 | fi |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3905 | fi |
| 3906 | |
| 3907 | |
| 3908 | if test "$DUMPBIN" != ":"; then |
| 3909 | NM="$DUMPBIN" |
| 3910 | fi |
| 3911 | fi |
| 3912 | test -z "$NM" && NM=nm |
| 3913 | |
| 3914 | |
| 3915 | |
| 3916 | |
| 3917 | |
| 3918 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3919 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3920 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3921 | if ${lt_cv_nm_interface+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3922 | $as_echo_n "(cached) " >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3923 | else |
| 3924 | lt_cv_nm_interface="BSD nm" |
| 3925 | echo "int some_variable = 0;" > conftest.$ac_ext |
drh | e44b835 | 2015-10-30 14:25:57 +0000 | [diff] [blame] | 3926 | (eval echo "\"\$as_me:3926: $ac_compile\"" >&5) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3927 | (eval "$ac_compile" 2>conftest.err) |
| 3928 | cat conftest.err >&5 |
drh | e44b835 | 2015-10-30 14:25:57 +0000 | [diff] [blame] | 3929 | (eval echo "\"\$as_me:3929: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3930 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
| 3931 | cat conftest.err >&5 |
drh | e44b835 | 2015-10-30 14:25:57 +0000 | [diff] [blame] | 3932 | (eval echo "\"\$as_me:3932: output\"" >&5) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3933 | cat conftest.out >&5 |
| 3934 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then |
| 3935 | lt_cv_nm_interface="MS dumpbin" |
| 3936 | fi |
| 3937 | rm -f conftest* |
| 3938 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3940 | $as_echo "$lt_cv_nm_interface" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3941 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3943 | $as_echo_n "checking whether ln -s works... " >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3944 | LN_S=$as_ln_s |
| 3945 | if test "$LN_S" = "ln -s"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3947 | $as_echo "yes" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3948 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3950 | $as_echo "no, using $LN_S" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3951 | fi |
| 3952 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3953 | # find the maximum length of command line arguments |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3954 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3955 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3956 | if ${lt_cv_sys_max_cmd_len+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3957 | $as_echo_n "(cached) " >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3958 | else |
| 3959 | i=0 |
| 3960 | teststring="ABCD" |
| 3961 | |
| 3962 | case $build_os in |
| 3963 | msdosdjgpp*) |
| 3964 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 3965 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 3966 | # during glob expansion). Even if it were fixed, the result of this |
| 3967 | # check would be larger than it should be. |
| 3968 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 3969 | ;; |
| 3970 | |
| 3971 | gnu*) |
| 3972 | # Under GNU Hurd, this test is not required because there is |
| 3973 | # no limit to the length of command line arguments. |
| 3974 | # Libtool will interpret -1 as no limit whatsoever |
| 3975 | lt_cv_sys_max_cmd_len=-1; |
| 3976 | ;; |
| 3977 | |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 3978 | cygwin* | mingw* | cegcc*) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3979 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 3980 | # about 5 minutes as the teststring grows exponentially. |
| 3981 | # Worse, since 9x/ME are not pre-emptively multitasking, |
| 3982 | # you end up with a "frozen" computer, even though with patience |
| 3983 | # the test eventually succeeds (with a max line length of 256k). |
| 3984 | # Instead, let's just punt: use the minimum linelength reported by |
| 3985 | # all of the supported platforms: 8192 (on NT/2K/XP). |
| 3986 | lt_cv_sys_max_cmd_len=8192; |
| 3987 | ;; |
| 3988 | |
| 3989 | amigaos*) |
| 3990 | # On AmigaOS with pdksh, this test takes hours, literally. |
| 3991 | # So we just punt and use a minimum line length of 8192. |
| 3992 | lt_cv_sys_max_cmd_len=8192; |
| 3993 | ;; |
| 3994 | |
| 3995 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
| 3996 | # This has been around since 386BSD, at least. Likely further. |
| 3997 | if test -x /sbin/sysctl; then |
| 3998 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 3999 | elif test -x /usr/sbin/sysctl; then |
| 4000 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 4001 | else |
| 4002 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
| 4003 | fi |
| 4004 | # And add a safety zone |
| 4005 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 4006 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 4007 | ;; |
| 4008 | |
| 4009 | interix*) |
| 4010 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
| 4011 | lt_cv_sys_max_cmd_len=196608 |
| 4012 | ;; |
| 4013 | |
| 4014 | osf*) |
| 4015 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
| 4016 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
| 4017 | # nice to cause kernel panics so lets avoid the loop below. |
| 4018 | # First set a reasonable default. |
| 4019 | lt_cv_sys_max_cmd_len=16384 |
| 4020 | # |
| 4021 | if test -x /sbin/sysconfig; then |
| 4022 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
| 4023 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
| 4024 | esac |
| 4025 | fi |
| 4026 | ;; |
| 4027 | sco3.2v5*) |
| 4028 | lt_cv_sys_max_cmd_len=102400 |
| 4029 | ;; |
| 4030 | sysv5* | sco5v6* | sysv4.2uw2*) |
| 4031 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
| 4032 | if test -n "$kargmax"; then |
| 4033 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
| 4034 | else |
| 4035 | lt_cv_sys_max_cmd_len=32768 |
| 4036 | fi |
| 4037 | ;; |
| 4038 | *) |
| 4039 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
| 4040 | if test -n "$lt_cv_sys_max_cmd_len"; then |
| 4041 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 4042 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 4043 | else |
| 4044 | # Make teststring a little bigger before we do anything with it. |
| 4045 | # a 1K string should be a reasonable start. |
| 4046 | for i in 1 2 3 4 5 6 7 8 ; do |
| 4047 | teststring=$teststring$teststring |
| 4048 | done |
| 4049 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 4050 | # If test is not a shell built-in, we'll probably end up computing a |
| 4051 | # maximum length that is only half of the actual maximum length, but |
| 4052 | # we can't tell. |
| 4053 | while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ |
| 4054 | = "XX$teststring$teststring"; } >/dev/null 2>&1 && |
| 4055 | test $i != 17 # 1/2 MB should be enough |
| 4056 | do |
| 4057 | i=`expr $i + 1` |
| 4058 | teststring=$teststring$teststring |
| 4059 | done |
| 4060 | # Only check the string length outside the loop. |
| 4061 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` |
| 4062 | teststring= |
| 4063 | # Add a significant safety factor because C++ compilers can tack on |
| 4064 | # massive amounts of additional arguments before passing them to the |
| 4065 | # linker. It appears as though 1/2 is a usable value. |
| 4066 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 4067 | fi |
| 4068 | ;; |
| 4069 | esac |
| 4070 | |
| 4071 | fi |
| 4072 | |
| 4073 | if test -n $lt_cv_sys_max_cmd_len ; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4075 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4076 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4078 | $as_echo "none" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4079 | fi |
| 4080 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 4081 | |
| 4082 | |
| 4083 | |
| 4084 | |
| 4085 | |
| 4086 | |
| 4087 | : ${CP="cp -f"} |
| 4088 | : ${MV="mv -f"} |
| 4089 | : ${RM="rm -f"} |
| 4090 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4091 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4092 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4093 | # Try some XSI features |
| 4094 | xsi_shell=no |
| 4095 | ( _lt_dummy="a/b/c" |
| 4096 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ |
| 4097 | = c,a/b,, \ |
| 4098 | && eval 'test $(( 1 + 1 )) -eq 2 \ |
| 4099 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ |
| 4100 | && xsi_shell=yes |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4102 | $as_echo "$xsi_shell" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4103 | |
| 4104 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4105 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4106 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4107 | lt_shell_append=no |
| 4108 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ |
| 4109 | >/dev/null 2>&1 \ |
| 4110 | && lt_shell_append=yes |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4112 | $as_echo "$lt_shell_append" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4113 | |
| 4114 | |
| 4115 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 4116 | lt_unset=unset |
| 4117 | else |
| 4118 | lt_unset=false |
| 4119 | fi |
| 4120 | |
| 4121 | |
| 4122 | |
| 4123 | |
| 4124 | |
| 4125 | # test EBCDIC or ASCII |
| 4126 | case `echo X|tr X '\101'` in |
| 4127 | A) # ASCII based system |
| 4128 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr |
| 4129 | lt_SP2NL='tr \040 \012' |
| 4130 | lt_NL2SP='tr \015\012 \040\040' |
| 4131 | ;; |
| 4132 | *) # EBCDIC based system |
| 4133 | lt_SP2NL='tr \100 \n' |
| 4134 | lt_NL2SP='tr \r\n \100\100' |
| 4135 | ;; |
| 4136 | esac |
| 4137 | |
| 4138 | |
| 4139 | |
| 4140 | |
| 4141 | |
| 4142 | |
| 4143 | |
| 4144 | |
| 4145 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4146 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4147 | $as_echo_n "checking for $LD option to reload object files... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4148 | if ${lt_cv_ld_reload_flag+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4149 | $as_echo_n "(cached) " >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4150 | else |
| 4151 | lt_cv_ld_reload_flag='-r' |
| 4152 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4154 | $as_echo "$lt_cv_ld_reload_flag" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4155 | reload_flag=$lt_cv_ld_reload_flag |
| 4156 | case $reload_flag in |
| 4157 | "" | " "*) ;; |
| 4158 | *) reload_flag=" $reload_flag" ;; |
| 4159 | esac |
| 4160 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 4161 | case $host_os in |
| 4162 | darwin*) |
| 4163 | if test "$GCC" = yes; then |
| 4164 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
| 4165 | else |
| 4166 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 4167 | fi |
| 4168 | ;; |
| 4169 | esac |
| 4170 | |
| 4171 | |
| 4172 | |
| 4173 | |
| 4174 | |
| 4175 | |
| 4176 | |
| 4177 | |
| 4178 | |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 4179 | if test -n "$ac_tool_prefix"; then |
| 4180 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
| 4181 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4182 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 4183 | $as_echo_n "checking for $ac_word... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4184 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 4185 | $as_echo_n "(cached) " >&6 |
| 4186 | else |
| 4187 | if test -n "$OBJDUMP"; then |
| 4188 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. |
| 4189 | else |
| 4190 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4191 | for as_dir in $PATH |
| 4192 | do |
| 4193 | IFS=$as_save_IFS |
| 4194 | test -z "$as_dir" && as_dir=. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4195 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4196 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 4197 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4198 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 4199 | break 2 |
| 4200 | fi |
| 4201 | done |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4202 | done |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 4203 | IFS=$as_save_IFS |
| 4204 | |
| 4205 | fi |
| 4206 | fi |
| 4207 | OBJDUMP=$ac_cv_prog_OBJDUMP |
| 4208 | if test -n "$OBJDUMP"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 4210 | $as_echo "$OBJDUMP" >&6; } |
| 4211 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 4213 | $as_echo "no" >&6; } |
| 4214 | fi |
| 4215 | |
| 4216 | |
| 4217 | fi |
| 4218 | if test -z "$ac_cv_prog_OBJDUMP"; then |
| 4219 | ac_ct_OBJDUMP=$OBJDUMP |
| 4220 | # Extract the first word of "objdump", so it can be a program name with args. |
| 4221 | set dummy objdump; ac_word=$2 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4222 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 4223 | $as_echo_n "checking for $ac_word... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4224 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 4225 | $as_echo_n "(cached) " >&6 |
| 4226 | else |
| 4227 | if test -n "$ac_ct_OBJDUMP"; then |
| 4228 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. |
| 4229 | else |
| 4230 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4231 | for as_dir in $PATH |
| 4232 | do |
| 4233 | IFS=$as_save_IFS |
| 4234 | test -z "$as_dir" && as_dir=. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4235 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4236 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 4237 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4238 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 4239 | break 2 |
| 4240 | fi |
| 4241 | done |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4242 | done |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 4243 | IFS=$as_save_IFS |
| 4244 | |
| 4245 | fi |
| 4246 | fi |
| 4247 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
| 4248 | if test -n "$ac_ct_OBJDUMP"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 4250 | $as_echo "$ac_ct_OBJDUMP" >&6; } |
| 4251 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 4253 | $as_echo "no" >&6; } |
| 4254 | fi |
| 4255 | |
| 4256 | if test "x$ac_ct_OBJDUMP" = x; then |
| 4257 | OBJDUMP="false" |
| 4258 | else |
| 4259 | case $cross_compiling:$ac_tool_warned in |
| 4260 | yes:) |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4261 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4262 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 4263 | ac_tool_warned=yes ;; |
| 4264 | esac |
| 4265 | OBJDUMP=$ac_ct_OBJDUMP |
| 4266 | fi |
| 4267 | else |
| 4268 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
| 4269 | fi |
| 4270 | |
| 4271 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 4272 | |
| 4273 | |
| 4274 | |
| 4275 | |
| 4276 | |
| 4277 | |
| 4278 | |
| 4279 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4280 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4281 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4282 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4283 | if ${lt_cv_deplibs_check_method+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4284 | $as_echo_n "(cached) " >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4285 | else |
| 4286 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 4287 | lt_cv_file_magic_test_file= |
| 4288 | lt_cv_deplibs_check_method='unknown' |
| 4289 | # Need to set the preceding variable on all platforms that support |
| 4290 | # interlibrary dependencies. |
| 4291 | # 'none' -- dependencies not supported. |
| 4292 | # `unknown' -- same as none, but documents that we really don't know. |
| 4293 | # 'pass_all' -- all dependencies passed with no checks. |
| 4294 | # 'test_compile' -- check by making test program. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4295 | # 'file_magic [[regex]]' -- check by looking for files in library path |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4296 | # which responds to the $file_magic_cmd with a given extended regex. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4297 | # If you have `file' or equivalent on your system and you're not sure |
| 4298 | # whether `pass_all' will *always* work, you probably want this one. |
| 4299 | |
| 4300 | case $host_os in |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4301 | aix[4-9]*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4302 | lt_cv_deplibs_check_method=pass_all |
| 4303 | ;; |
| 4304 | |
| 4305 | beos*) |
| 4306 | lt_cv_deplibs_check_method=pass_all |
| 4307 | ;; |
| 4308 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 4309 | bsdi[45]*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4310 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 4311 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 4312 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 4313 | ;; |
| 4314 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4315 | cygwin*) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 4316 | # func_win32_libid is a shell function defined in ltmain.sh |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4317 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 4318 | lt_cv_file_magic_cmd='func_win32_libid' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4319 | ;; |
| 4320 | |
| 4321 | mingw* | pw32*) |
| 4322 | # Base MSYS/MinGW do not provide the 'file' command needed by |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4323 | # func_win32_libid shell function, so use a weaker test based on 'objdump', |
| 4324 | # unless we find 'file', for example because we are cross-compiling. |
| 4325 | if ( file / ) >/dev/null 2>&1; then |
| 4326 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 4327 | lt_cv_file_magic_cmd='func_win32_libid' |
| 4328 | else |
| 4329 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
| 4330 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 4331 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4332 | ;; |
| 4333 | |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 4334 | cegcc) |
| 4335 | # use the weaker test based on 'objdump'. See mingw*. |
| 4336 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' |
| 4337 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 4338 | ;; |
| 4339 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4340 | darwin* | rhapsody*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4341 | lt_cv_deplibs_check_method=pass_all |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4342 | ;; |
| 4343 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4344 | freebsd* | dragonfly*) |
| 4345 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4346 | case $host_cpu in |
| 4347 | i*86 ) |
| 4348 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 4349 | # Let's accept both of them until this is cleared up. |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 4350 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4351 | lt_cv_file_magic_cmd=/usr/bin/file |
| 4352 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 4353 | ;; |
| 4354 | esac |
| 4355 | else |
| 4356 | lt_cv_deplibs_check_method=pass_all |
| 4357 | fi |
| 4358 | ;; |
| 4359 | |
| 4360 | gnu*) |
| 4361 | lt_cv_deplibs_check_method=pass_all |
| 4362 | ;; |
| 4363 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4364 | hpux10.20* | hpux11*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4365 | lt_cv_file_magic_cmd=/usr/bin/file |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 4366 | case $host_cpu in |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4367 | ia64*) |
| 4368 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 4369 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 4370 | ;; |
| 4371 | hppa*64*) |
| 4372 | 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]' |
| 4373 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 4374 | ;; |
| 4375 | *) |
| 4376 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
| 4377 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 4378 | ;; |
| 4379 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4380 | ;; |
| 4381 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4382 | interix[3-9]*) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 4383 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
| 4384 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
| 4385 | ;; |
| 4386 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4387 | irix5* | irix6* | nonstopux*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4388 | case $LD in |
| 4389 | *-32|*"-32 ") libmagic=32-bit;; |
| 4390 | *-n32|*"-n32 ") libmagic=N32;; |
| 4391 | *-64|*"-64 ") libmagic=64-bit;; |
| 4392 | *) libmagic=never-match;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4393 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4394 | lt_cv_deplibs_check_method=pass_all |
| 4395 | ;; |
| 4396 | |
| 4397 | # This must be Linux ELF. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4398 | linux* | k*bsd*-gnu) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4399 | lt_cv_deplibs_check_method=pass_all |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4400 | ;; |
| 4401 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 4402 | netbsd*) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4403 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4404 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4405 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4406 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4407 | fi |
| 4408 | ;; |
| 4409 | |
| 4410 | newos6*) |
| 4411 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 4412 | lt_cv_file_magic_cmd=/usr/bin/file |
| 4413 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 4414 | ;; |
| 4415 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4416 | *nto* | *qnx*) |
| 4417 | lt_cv_deplibs_check_method=pass_all |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4418 | ;; |
| 4419 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4420 | openbsd*) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4421 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 4422 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4423 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 4424 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4425 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4426 | ;; |
| 4427 | |
| 4428 | osf3* | osf4* | osf5*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4429 | lt_cv_deplibs_check_method=pass_all |
| 4430 | ;; |
| 4431 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4432 | rdos*) |
| 4433 | lt_cv_deplibs_check_method=pass_all |
| 4434 | ;; |
| 4435 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4436 | solaris*) |
| 4437 | lt_cv_deplibs_check_method=pass_all |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4438 | ;; |
| 4439 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4440 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 4441 | lt_cv_deplibs_check_method=pass_all |
| 4442 | ;; |
| 4443 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 4444 | sysv4 | sysv4.3*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4445 | case $host_vendor in |
| 4446 | motorola) |
| 4447 | 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]' |
| 4448 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 4449 | ;; |
| 4450 | ncr) |
| 4451 | lt_cv_deplibs_check_method=pass_all |
| 4452 | ;; |
| 4453 | sequent) |
| 4454 | lt_cv_file_magic_cmd='/bin/file' |
| 4455 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 4456 | ;; |
| 4457 | sni) |
| 4458 | lt_cv_file_magic_cmd='/bin/file' |
| 4459 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 4460 | lt_cv_file_magic_test_file=/lib/libc.so |
| 4461 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4462 | siemens) |
| 4463 | lt_cv_deplibs_check_method=pass_all |
| 4464 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 4465 | pc) |
| 4466 | lt_cv_deplibs_check_method=pass_all |
| 4467 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4468 | esac |
| 4469 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4470 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4471 | tpf*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4472 | lt_cv_deplibs_check_method=pass_all |
| 4473 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4474 | esac |
| 4475 | |
| 4476 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4478 | $as_echo "$lt_cv_deplibs_check_method" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4479 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 4480 | deplibs_check_method=$lt_cv_deplibs_check_method |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4481 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4482 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4483 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4484 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4485 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4486 | |
| 4487 | |
| 4488 | |
| 4489 | |
| 4490 | |
| 4491 | |
| 4492 | |
| 4493 | |
| 4494 | if test -n "$ac_tool_prefix"; then |
| 4495 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 4496 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4497 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4498 | $as_echo_n "checking for $ac_word... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4499 | if ${ac_cv_prog_AR+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4500 | $as_echo_n "(cached) " >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4501 | else |
| 4502 | if test -n "$AR"; then |
| 4503 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 4504 | else |
| 4505 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4506 | for as_dir in $PATH |
| 4507 | do |
| 4508 | IFS=$as_save_IFS |
| 4509 | test -z "$as_dir" && as_dir=. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4510 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4511 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4512 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4513 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4514 | break 2 |
| 4515 | fi |
| 4516 | done |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4517 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4518 | IFS=$as_save_IFS |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4519 | |
| 4520 | fi |
| 4521 | fi |
| 4522 | AR=$ac_cv_prog_AR |
| 4523 | if test -n "$AR"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4525 | $as_echo "$AR" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4526 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4528 | $as_echo "no" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4529 | fi |
| 4530 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4531 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4532 | fi |
| 4533 | if test -z "$ac_cv_prog_AR"; then |
| 4534 | ac_ct_AR=$AR |
| 4535 | # Extract the first word of "ar", so it can be a program name with args. |
| 4536 | set dummy ar; ac_word=$2 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4537 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4538 | $as_echo_n "checking for $ac_word... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4539 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4540 | $as_echo_n "(cached) " >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4541 | else |
| 4542 | if test -n "$ac_ct_AR"; then |
| 4543 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 4544 | else |
| 4545 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4546 | for as_dir in $PATH |
| 4547 | do |
| 4548 | IFS=$as_save_IFS |
| 4549 | test -z "$as_dir" && as_dir=. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4550 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4551 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4552 | ac_cv_prog_ac_ct_AR="ar" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4553 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4554 | break 2 |
| 4555 | fi |
| 4556 | done |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4557 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4558 | IFS=$as_save_IFS |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4559 | |
| 4560 | fi |
| 4561 | fi |
| 4562 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 4563 | if test -n "$ac_ct_AR"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4565 | $as_echo "$ac_ct_AR" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4566 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4568 | $as_echo "no" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4569 | fi |
| 4570 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4571 | if test "x$ac_ct_AR" = x; then |
| 4572 | AR="false" |
| 4573 | else |
| 4574 | case $cross_compiling:$ac_tool_warned in |
| 4575 | yes:) |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4576 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4577 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4578 | ac_tool_warned=yes ;; |
| 4579 | esac |
| 4580 | AR=$ac_ct_AR |
| 4581 | fi |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4582 | else |
| 4583 | AR="$ac_cv_prog_AR" |
| 4584 | fi |
| 4585 | |
| 4586 | test -z "$AR" && AR=ar |
| 4587 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
| 4588 | |
| 4589 | |
| 4590 | |
| 4591 | |
| 4592 | |
| 4593 | |
| 4594 | |
| 4595 | |
| 4596 | |
| 4597 | |
| 4598 | |
| 4599 | if test -n "$ac_tool_prefix"; then |
| 4600 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 4601 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4602 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4603 | $as_echo_n "checking for $ac_word... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4604 | if ${ac_cv_prog_STRIP+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4605 | $as_echo_n "(cached) " >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4606 | else |
| 4607 | if test -n "$STRIP"; then |
| 4608 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 4609 | else |
| 4610 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4611 | for as_dir in $PATH |
| 4612 | do |
| 4613 | IFS=$as_save_IFS |
| 4614 | test -z "$as_dir" && as_dir=. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4615 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4616 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4617 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4618 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4619 | break 2 |
| 4620 | fi |
| 4621 | done |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4622 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4623 | IFS=$as_save_IFS |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4624 | |
| 4625 | fi |
| 4626 | fi |
| 4627 | STRIP=$ac_cv_prog_STRIP |
| 4628 | if test -n "$STRIP"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4630 | $as_echo "$STRIP" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4631 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4633 | $as_echo "no" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4634 | fi |
| 4635 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4636 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4637 | fi |
| 4638 | if test -z "$ac_cv_prog_STRIP"; then |
| 4639 | ac_ct_STRIP=$STRIP |
| 4640 | # Extract the first word of "strip", so it can be a program name with args. |
| 4641 | set dummy strip; ac_word=$2 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4642 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4643 | $as_echo_n "checking for $ac_word... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4644 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4645 | $as_echo_n "(cached) " >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4646 | else |
| 4647 | if test -n "$ac_ct_STRIP"; then |
| 4648 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 4649 | else |
| 4650 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4651 | for as_dir in $PATH |
| 4652 | do |
| 4653 | IFS=$as_save_IFS |
| 4654 | test -z "$as_dir" && as_dir=. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4655 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4656 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4657 | ac_cv_prog_ac_ct_STRIP="strip" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4658 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4659 | break 2 |
| 4660 | fi |
| 4661 | done |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4662 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4663 | IFS=$as_save_IFS |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4664 | |
| 4665 | fi |
| 4666 | fi |
| 4667 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 4668 | if test -n "$ac_ct_STRIP"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4670 | $as_echo "$ac_ct_STRIP" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4671 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4673 | $as_echo "no" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4674 | fi |
| 4675 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4676 | if test "x$ac_ct_STRIP" = x; then |
| 4677 | STRIP=":" |
| 4678 | else |
| 4679 | case $cross_compiling:$ac_tool_warned in |
| 4680 | yes:) |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4681 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4682 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4683 | ac_tool_warned=yes ;; |
| 4684 | esac |
| 4685 | STRIP=$ac_ct_STRIP |
| 4686 | fi |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4687 | else |
| 4688 | STRIP="$ac_cv_prog_STRIP" |
| 4689 | fi |
| 4690 | |
| 4691 | test -z "$STRIP" && STRIP=: |
| 4692 | |
| 4693 | |
| 4694 | |
| 4695 | |
| 4696 | |
| 4697 | |
| 4698 | if test -n "$ac_tool_prefix"; then |
| 4699 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 4700 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4701 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4702 | $as_echo_n "checking for $ac_word... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4703 | if ${ac_cv_prog_RANLIB+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4704 | $as_echo_n "(cached) " >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4705 | else |
| 4706 | if test -n "$RANLIB"; then |
| 4707 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 4708 | else |
| 4709 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4710 | for as_dir in $PATH |
| 4711 | do |
| 4712 | IFS=$as_save_IFS |
| 4713 | test -z "$as_dir" && as_dir=. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4714 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4715 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4716 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4717 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4718 | break 2 |
| 4719 | fi |
| 4720 | done |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4721 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4722 | IFS=$as_save_IFS |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4723 | |
| 4724 | fi |
| 4725 | fi |
| 4726 | RANLIB=$ac_cv_prog_RANLIB |
| 4727 | if test -n "$RANLIB"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4729 | $as_echo "$RANLIB" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4730 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4732 | $as_echo "no" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4733 | fi |
| 4734 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4735 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4736 | fi |
| 4737 | if test -z "$ac_cv_prog_RANLIB"; then |
| 4738 | ac_ct_RANLIB=$RANLIB |
| 4739 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 4740 | set dummy ranlib; ac_word=$2 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4741 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4742 | $as_echo_n "checking for $ac_word... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4743 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4744 | $as_echo_n "(cached) " >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4745 | else |
| 4746 | if test -n "$ac_ct_RANLIB"; then |
| 4747 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 4748 | else |
| 4749 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4750 | for as_dir in $PATH |
| 4751 | do |
| 4752 | IFS=$as_save_IFS |
| 4753 | test -z "$as_dir" && as_dir=. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4754 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4755 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4756 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4757 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4758 | break 2 |
| 4759 | fi |
| 4760 | done |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4761 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4762 | IFS=$as_save_IFS |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4763 | |
| 4764 | fi |
| 4765 | fi |
| 4766 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 4767 | if test -n "$ac_ct_RANLIB"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4769 | $as_echo "$ac_ct_RANLIB" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4770 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4772 | $as_echo "no" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4773 | fi |
| 4774 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4775 | if test "x$ac_ct_RANLIB" = x; then |
| 4776 | RANLIB=":" |
| 4777 | else |
| 4778 | case $cross_compiling:$ac_tool_warned in |
| 4779 | yes:) |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4780 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4781 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4782 | ac_tool_warned=yes ;; |
| 4783 | esac |
| 4784 | RANLIB=$ac_ct_RANLIB |
| 4785 | fi |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4786 | else |
| 4787 | RANLIB="$ac_cv_prog_RANLIB" |
| 4788 | fi |
| 4789 | |
| 4790 | test -z "$RANLIB" && RANLIB=: |
| 4791 | |
| 4792 | |
| 4793 | |
| 4794 | |
| 4795 | |
| 4796 | |
| 4797 | # Determine commands to create old-style static archives. |
| 4798 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
| 4799 | old_postinstall_cmds='chmod 644 $oldlib' |
| 4800 | old_postuninstall_cmds= |
| 4801 | |
| 4802 | if test -n "$RANLIB"; then |
| 4803 | case $host_os in |
| 4804 | openbsd*) |
| 4805 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
| 4806 | ;; |
| 4807 | *) |
| 4808 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
| 4809 | ;; |
| 4810 | esac |
| 4811 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
| 4812 | fi |
| 4813 | |
| 4814 | |
| 4815 | |
| 4816 | |
| 4817 | |
| 4818 | |
| 4819 | |
| 4820 | |
| 4821 | |
| 4822 | |
| 4823 | |
| 4824 | |
| 4825 | |
| 4826 | |
| 4827 | |
| 4828 | |
| 4829 | |
| 4830 | |
| 4831 | |
| 4832 | |
| 4833 | |
| 4834 | |
| 4835 | |
| 4836 | |
| 4837 | |
| 4838 | |
| 4839 | |
| 4840 | |
| 4841 | |
| 4842 | |
| 4843 | |
| 4844 | |
| 4845 | |
| 4846 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4847 | # If no C compiler was specified, use CC. |
| 4848 | LTCC=${LTCC-"$CC"} |
| 4849 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 4850 | # If no C compiler flags were specified, use CFLAGS. |
| 4851 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 4852 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4853 | # Allow CC to be a program name with arguments. |
| 4854 | compiler=$CC |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4855 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4856 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4857 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4858 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4859 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4860 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4861 | $as_echo_n "(cached) " >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4862 | else |
| 4863 | |
| 4864 | # These are sane defaults that work on at least a few old systems. |
| 4865 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 4866 | |
| 4867 | # Character class describing NM global symbol codes. |
| 4868 | symcode='[BCDEGRST]' |
| 4869 | |
| 4870 | # Regexp to match symbols that can be accessed directly from C. |
| 4871 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 4872 | |
| 4873 | # Define system-specific variables. |
| 4874 | case $host_os in |
| 4875 | aix*) |
| 4876 | symcode='[BCDT]' |
| 4877 | ;; |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 4878 | cygwin* | mingw* | pw32* | cegcc*) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4879 | symcode='[ABCDGISTW]' |
| 4880 | ;; |
| 4881 | hpux*) |
| 4882 | if test "$host_cpu" = ia64; then |
| 4883 | symcode='[ABCDEGRST]' |
| 4884 | fi |
| 4885 | ;; |
| 4886 | irix* | nonstopux*) |
| 4887 | symcode='[BCDEGRST]' |
| 4888 | ;; |
| 4889 | osf*) |
| 4890 | symcode='[BCDEGQRST]' |
| 4891 | ;; |
| 4892 | solaris*) |
| 4893 | symcode='[BDRT]' |
| 4894 | ;; |
| 4895 | sco3.2v5*) |
| 4896 | symcode='[DT]' |
| 4897 | ;; |
| 4898 | sysv4.2uw2*) |
| 4899 | symcode='[DT]' |
| 4900 | ;; |
| 4901 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 4902 | symcode='[ABDT]' |
| 4903 | ;; |
| 4904 | sysv4) |
| 4905 | symcode='[DFNSTU]' |
| 4906 | ;; |
| 4907 | esac |
| 4908 | |
| 4909 | # If we're using GNU nm, then use its standard symbol codes. |
| 4910 | case `$NM -V 2>&1` in |
| 4911 | *GNU* | *'with BFD'*) |
| 4912 | symcode='[ABCDGIRSTW]' ;; |
| 4913 | esac |
| 4914 | |
| 4915 | # Transform an extracted symbol line into a proper C declaration. |
| 4916 | # Some systems (esp. on ia64) link data and code symbols differently, |
| 4917 | # so use this general approach. |
| 4918 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 4919 | |
| 4920 | # Transform an extracted symbol line into symbol name and symbol address |
| 4921 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" |
| 4922 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" |
| 4923 | |
| 4924 | # Handle CRLF in mingw tool chain |
| 4925 | opt_cr= |
| 4926 | case $build_os in |
| 4927 | mingw*) |
| 4928 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 4929 | ;; |
| 4930 | esac |
| 4931 | |
| 4932 | # Try without a prefix underscore, then with it. |
| 4933 | for ac_symprfx in "" "_"; do |
| 4934 | |
| 4935 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 4936 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 4937 | |
| 4938 | # Write the raw and C identifiers. |
| 4939 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 4940 | # Fake it for dumpbin and say T for any non-static function |
| 4941 | # and D for any global variable. |
| 4942 | # Also find C++ and __fastcall symbols from MSVC++, |
| 4943 | # which start with @ or ?. |
| 4944 | lt_cv_sys_global_symbol_pipe="$AWK '"\ |
| 4945 | " {last_section=section; section=\$ 3};"\ |
| 4946 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
| 4947 | " \$ 0!~/External *\|/{next};"\ |
| 4948 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ |
| 4949 | " {if(hide[section]) next};"\ |
| 4950 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ |
| 4951 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ |
| 4952 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ |
| 4953 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ |
| 4954 | " ' prfx=^$ac_symprfx" |
| 4955 | else |
| 4956 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
| 4957 | fi |
| 4958 | |
| 4959 | # Check to see that the pipe works correctly. |
| 4960 | pipe_works=no |
| 4961 | |
| 4962 | rm -f conftest* |
| 4963 | cat > conftest.$ac_ext <<_LT_EOF |
| 4964 | #ifdef __cplusplus |
| 4965 | extern "C" { |
| 4966 | #endif |
| 4967 | char nm_test_var; |
| 4968 | void nm_test_func(void); |
| 4969 | void nm_test_func(void){} |
| 4970 | #ifdef __cplusplus |
| 4971 | } |
| 4972 | #endif |
| 4973 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 4974 | _LT_EOF |
| 4975 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4976 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4977 | (eval $ac_compile) 2>&5 |
| 4978 | ac_status=$? |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4979 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4980 | test $ac_status = 0; }; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4981 | # Now try to grab the symbols. |
| 4982 | nlist=conftest.nm |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4983 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4984 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 4985 | ac_status=$? |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4986 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4987 | test $ac_status = 0; } && test -s "$nlist"; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4988 | # Try sorting and uniquifying the output. |
| 4989 | if sort "$nlist" | uniq > "$nlist"T; then |
| 4990 | mv -f "$nlist"T "$nlist" |
| 4991 | else |
| 4992 | rm -f "$nlist"T |
| 4993 | fi |
| 4994 | |
| 4995 | # Make sure that we snagged all the symbols we need. |
| 4996 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
| 4997 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then |
| 4998 | cat <<_LT_EOF > conftest.$ac_ext |
| 4999 | #ifdef __cplusplus |
| 5000 | extern "C" { |
| 5001 | #endif |
| 5002 | |
| 5003 | _LT_EOF |
| 5004 | # Now generate the symbol file. |
| 5005 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' |
| 5006 | |
| 5007 | cat <<_LT_EOF >> conftest.$ac_ext |
| 5008 | |
| 5009 | /* The mapping between symbol names and symbols. */ |
| 5010 | const struct { |
| 5011 | const char *name; |
| 5012 | void *address; |
| 5013 | } |
| 5014 | lt__PROGRAM__LTX_preloaded_symbols[] = |
| 5015 | { |
| 5016 | { "@PROGRAM@", (void *) 0 }, |
| 5017 | _LT_EOF |
| 5018 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
| 5019 | cat <<\_LT_EOF >> conftest.$ac_ext |
| 5020 | {0, (void *) 0} |
| 5021 | }; |
| 5022 | |
| 5023 | /* This works around a problem in FreeBSD linker */ |
| 5024 | #ifdef FREEBSD_WORKAROUND |
| 5025 | static const void *lt_preloaded_setup() { |
| 5026 | return lt__PROGRAM__LTX_preloaded_symbols; |
| 5027 | } |
| 5028 | #endif |
| 5029 | |
| 5030 | #ifdef __cplusplus |
| 5031 | } |
| 5032 | #endif |
| 5033 | _LT_EOF |
| 5034 | # Now try linking the two files. |
| 5035 | mv conftest.$ac_objext conftstm.$ac_objext |
| 5036 | lt_save_LIBS="$LIBS" |
| 5037 | lt_save_CFLAGS="$CFLAGS" |
| 5038 | LIBS="conftstm.$ac_objext" |
| 5039 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5040 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5041 | (eval $ac_link) 2>&5 |
| 5042 | ac_status=$? |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5043 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5044 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5045 | pipe_works=yes |
| 5046 | fi |
| 5047 | LIBS="$lt_save_LIBS" |
| 5048 | CFLAGS="$lt_save_CFLAGS" |
| 5049 | else |
| 5050 | echo "cannot find nm_test_func in $nlist" >&5 |
| 5051 | fi |
| 5052 | else |
| 5053 | echo "cannot find nm_test_var in $nlist" >&5 |
| 5054 | fi |
| 5055 | else |
| 5056 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 5057 | fi |
| 5058 | else |
| 5059 | echo "$progname: failed program was:" >&5 |
| 5060 | cat conftest.$ac_ext >&5 |
| 5061 | fi |
| 5062 | rm -rf conftest* conftst* |
| 5063 | |
| 5064 | # Do not use the global_symbol_pipe unless it works. |
| 5065 | if test "$pipe_works" = yes; then |
| 5066 | break |
| 5067 | else |
| 5068 | lt_cv_sys_global_symbol_pipe= |
| 5069 | fi |
| 5070 | done |
| 5071 | |
| 5072 | fi |
| 5073 | |
| 5074 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 5075 | lt_cv_sys_global_symbol_to_cdecl= |
| 5076 | fi |
| 5077 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5079 | $as_echo "failed" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5080 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5082 | $as_echo "ok" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5083 | fi |
| 5084 | |
| 5085 | |
| 5086 | |
| 5087 | |
| 5088 | |
| 5089 | |
| 5090 | |
| 5091 | |
| 5092 | |
| 5093 | |
| 5094 | |
| 5095 | |
| 5096 | |
| 5097 | |
| 5098 | |
| 5099 | |
| 5100 | |
| 5101 | |
| 5102 | |
| 5103 | |
| 5104 | |
| 5105 | |
| 5106 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5107 | # Check whether --enable-libtool-lock was given. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5108 | if test "${enable_libtool_lock+set}" = set; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5109 | enableval=$enable_libtool_lock; |
| 5110 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5111 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5112 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5113 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5114 | # Some flags need to be propagated to the compiler or linker for good |
| 5115 | # libtool support. |
| 5116 | case $host in |
| 5117 | ia64-*-hpux*) |
| 5118 | # Find out which ABI we are using. |
| 5119 | echo 'int i;' > conftest.$ac_ext |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5120 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5121 | (eval $ac_compile) 2>&5 |
| 5122 | ac_status=$? |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5123 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5124 | test $ac_status = 0; }; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5125 | case `/usr/bin/file conftest.$ac_objext` in |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5126 | *ELF-32*) |
| 5127 | HPUX_IA64_MODE="32" |
| 5128 | ;; |
| 5129 | *ELF-64*) |
| 5130 | HPUX_IA64_MODE="64" |
| 5131 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5132 | esac |
| 5133 | fi |
| 5134 | rm -rf conftest* |
| 5135 | ;; |
| 5136 | *-*-irix6*) |
| 5137 | # Find out which ABI we are using. |
drh | e44b835 | 2015-10-30 14:25:57 +0000 | [diff] [blame] | 5138 | echo '#line 5138 "configure"' > conftest.$ac_ext |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5139 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5140 | (eval $ac_compile) 2>&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5141 | ac_status=$? |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5142 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5143 | test $ac_status = 0; }; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5144 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 5145 | case `/usr/bin/file conftest.$ac_objext` in |
| 5146 | *32-bit*) |
| 5147 | LD="${LD-ld} -melf32bsmip" |
| 5148 | ;; |
| 5149 | *N32*) |
| 5150 | LD="${LD-ld} -melf32bmipn32" |
| 5151 | ;; |
| 5152 | *64-bit*) |
| 5153 | LD="${LD-ld} -melf64bmip" |
| 5154 | ;; |
| 5155 | esac |
| 5156 | else |
| 5157 | case `/usr/bin/file conftest.$ac_objext` in |
| 5158 | *32-bit*) |
| 5159 | LD="${LD-ld} -32" |
| 5160 | ;; |
| 5161 | *N32*) |
| 5162 | LD="${LD-ld} -n32" |
| 5163 | ;; |
| 5164 | *64-bit*) |
| 5165 | LD="${LD-ld} -64" |
| 5166 | ;; |
| 5167 | esac |
| 5168 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5169 | fi |
| 5170 | rm -rf conftest* |
| 5171 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5172 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5173 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ |
| 5174 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5175 | # Find out which ABI we are using. |
| 5176 | echo 'int i;' > conftest.$ac_ext |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5177 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5178 | (eval $ac_compile) 2>&5 |
| 5179 | ac_status=$? |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5180 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5181 | test $ac_status = 0; }; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 5182 | case `/usr/bin/file conftest.o` in |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5183 | *32-bit*) |
| 5184 | case $host in |
| 5185 | x86_64-*kfreebsd*-gnu) |
| 5186 | LD="${LD-ld} -m elf_i386_fbsd" |
| 5187 | ;; |
| 5188 | x86_64-*linux*) |
| 5189 | LD="${LD-ld} -m elf_i386" |
| 5190 | ;; |
| 5191 | ppc64-*linux*|powerpc64-*linux*) |
| 5192 | LD="${LD-ld} -m elf32ppclinux" |
| 5193 | ;; |
| 5194 | s390x-*linux*) |
| 5195 | LD="${LD-ld} -m elf_s390" |
| 5196 | ;; |
| 5197 | sparc64-*linux*) |
| 5198 | LD="${LD-ld} -m elf32_sparc" |
| 5199 | ;; |
| 5200 | esac |
| 5201 | ;; |
| 5202 | *64-bit*) |
| 5203 | case $host in |
| 5204 | x86_64-*kfreebsd*-gnu) |
| 5205 | LD="${LD-ld} -m elf_x86_64_fbsd" |
| 5206 | ;; |
| 5207 | x86_64-*linux*) |
| 5208 | LD="${LD-ld} -m elf_x86_64" |
| 5209 | ;; |
| 5210 | ppc*-*linux*|powerpc*-*linux*) |
| 5211 | LD="${LD-ld} -m elf64ppc" |
| 5212 | ;; |
| 5213 | s390*-*linux*|s390*-*tpf*) |
| 5214 | LD="${LD-ld} -m elf64_s390" |
| 5215 | ;; |
| 5216 | sparc*-*linux*) |
| 5217 | LD="${LD-ld} -m elf64_sparc" |
| 5218 | ;; |
| 5219 | esac |
| 5220 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5221 | esac |
| 5222 | fi |
| 5223 | rm -rf conftest* |
| 5224 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5225 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5226 | *-*-sco3.2v5*) |
| 5227 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 5228 | SAVE_CFLAGS="$CFLAGS" |
| 5229 | CFLAGS="$CFLAGS -belf" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5230 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5231 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5232 | if ${lt_cv_cc_needs_belf+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5233 | $as_echo_n "(cached) " >&6 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5234 | else |
| 5235 | ac_ext=c |
| 5236 | ac_cpp='$CPP $CPPFLAGS' |
| 5237 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5238 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5239 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5240 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5241 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5242 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5243 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5244 | int |
| 5245 | main () |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5246 | { |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5247 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5248 | ; |
| 5249 | return 0; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5250 | } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5251 | _ACEOF |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5252 | if ac_fn_c_try_link "$LINENO"; then : |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5253 | lt_cv_cc_needs_belf=yes |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5254 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5255 | lt_cv_cc_needs_belf=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5256 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5257 | rm -f core conftest.err conftest.$ac_objext \ |
| 5258 | conftest$ac_exeext conftest.$ac_ext |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5259 | ac_ext=c |
| 5260 | ac_cpp='$CPP $CPPFLAGS' |
| 5261 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5262 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5263 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5264 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5265 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5267 | $as_echo "$lt_cv_cc_needs_belf" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5268 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 5269 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 5270 | CFLAGS="$SAVE_CFLAGS" |
| 5271 | fi |
| 5272 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 5273 | sparc*-*solaris*) |
| 5274 | # Find out which ABI we are using. |
| 5275 | echo 'int i;' > conftest.$ac_ext |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5276 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 5277 | (eval $ac_compile) 2>&5 |
| 5278 | ac_status=$? |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5279 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5280 | test $ac_status = 0; }; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 5281 | case `/usr/bin/file conftest.o` in |
| 5282 | *64-bit*) |
| 5283 | case $lt_cv_prog_gnu_ld in |
| 5284 | yes*) LD="${LD-ld} -m elf64_sparc" ;; |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5285 | *) |
| 5286 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
| 5287 | LD="${LD-ld} -64" |
| 5288 | fi |
| 5289 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 5290 | esac |
| 5291 | ;; |
| 5292 | esac |
| 5293 | fi |
| 5294 | rm -rf conftest* |
| 5295 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5296 | esac |
| 5297 | |
| 5298 | need_locks="$enable_libtool_lock" |
| 5299 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5300 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5301 | case $host_os in |
| 5302 | rhapsody* | darwin*) |
| 5303 | if test -n "$ac_tool_prefix"; then |
| 5304 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. |
| 5305 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5306 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5307 | $as_echo_n "checking for $ac_word... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5308 | if ${ac_cv_prog_DSYMUTIL+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5309 | $as_echo_n "(cached) " >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5310 | else |
| 5311 | if test -n "$DSYMUTIL"; then |
| 5312 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. |
| 5313 | else |
| 5314 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5315 | for as_dir in $PATH |
| 5316 | do |
| 5317 | IFS=$as_save_IFS |
| 5318 | test -z "$as_dir" && as_dir=. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5319 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5320 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5321 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5322 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5323 | break 2 |
| 5324 | fi |
| 5325 | done |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5326 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5327 | IFS=$as_save_IFS |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5328 | |
| 5329 | fi |
| 5330 | fi |
| 5331 | DSYMUTIL=$ac_cv_prog_DSYMUTIL |
| 5332 | if test -n "$DSYMUTIL"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5334 | $as_echo "$DSYMUTIL" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5335 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5337 | $as_echo "no" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5338 | fi |
| 5339 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5340 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5341 | fi |
| 5342 | if test -z "$ac_cv_prog_DSYMUTIL"; then |
| 5343 | ac_ct_DSYMUTIL=$DSYMUTIL |
| 5344 | # Extract the first word of "dsymutil", so it can be a program name with args. |
| 5345 | set dummy dsymutil; ac_word=$2 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5346 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5347 | $as_echo_n "checking for $ac_word... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5348 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5349 | $as_echo_n "(cached) " >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5350 | else |
| 5351 | if test -n "$ac_ct_DSYMUTIL"; then |
| 5352 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. |
| 5353 | else |
| 5354 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5355 | for as_dir in $PATH |
| 5356 | do |
| 5357 | IFS=$as_save_IFS |
| 5358 | test -z "$as_dir" && as_dir=. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5359 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5360 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5361 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5362 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5363 | break 2 |
| 5364 | fi |
| 5365 | done |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5366 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5367 | IFS=$as_save_IFS |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5368 | |
| 5369 | fi |
| 5370 | fi |
| 5371 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
| 5372 | if test -n "$ac_ct_DSYMUTIL"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5374 | $as_echo "$ac_ct_DSYMUTIL" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5375 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5377 | $as_echo "no" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5378 | fi |
| 5379 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5380 | if test "x$ac_ct_DSYMUTIL" = x; then |
| 5381 | DSYMUTIL=":" |
| 5382 | else |
| 5383 | case $cross_compiling:$ac_tool_warned in |
| 5384 | yes:) |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5385 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5386 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5387 | ac_tool_warned=yes ;; |
| 5388 | esac |
| 5389 | DSYMUTIL=$ac_ct_DSYMUTIL |
| 5390 | fi |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5391 | else |
| 5392 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
| 5393 | fi |
| 5394 | |
| 5395 | if test -n "$ac_tool_prefix"; then |
| 5396 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. |
| 5397 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5398 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5399 | $as_echo_n "checking for $ac_word... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5400 | if ${ac_cv_prog_NMEDIT+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5401 | $as_echo_n "(cached) " >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5402 | else |
| 5403 | if test -n "$NMEDIT"; then |
| 5404 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. |
| 5405 | else |
| 5406 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5407 | for as_dir in $PATH |
| 5408 | do |
| 5409 | IFS=$as_save_IFS |
| 5410 | test -z "$as_dir" && as_dir=. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5411 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5412 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5413 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5414 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5415 | break 2 |
| 5416 | fi |
| 5417 | done |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5418 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5419 | IFS=$as_save_IFS |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5420 | |
| 5421 | fi |
| 5422 | fi |
| 5423 | NMEDIT=$ac_cv_prog_NMEDIT |
| 5424 | if test -n "$NMEDIT"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5426 | $as_echo "$NMEDIT" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5427 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5429 | $as_echo "no" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5430 | fi |
| 5431 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5432 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5433 | fi |
| 5434 | if test -z "$ac_cv_prog_NMEDIT"; then |
| 5435 | ac_ct_NMEDIT=$NMEDIT |
| 5436 | # Extract the first word of "nmedit", so it can be a program name with args. |
| 5437 | set dummy nmedit; ac_word=$2 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5438 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5439 | $as_echo_n "checking for $ac_word... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5440 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5441 | $as_echo_n "(cached) " >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5442 | else |
| 5443 | if test -n "$ac_ct_NMEDIT"; then |
| 5444 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. |
| 5445 | else |
| 5446 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5447 | for as_dir in $PATH |
| 5448 | do |
| 5449 | IFS=$as_save_IFS |
| 5450 | test -z "$as_dir" && as_dir=. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5451 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5452 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5453 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5454 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5455 | break 2 |
| 5456 | fi |
| 5457 | done |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5458 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5459 | IFS=$as_save_IFS |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5460 | |
| 5461 | fi |
| 5462 | fi |
| 5463 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
| 5464 | if test -n "$ac_ct_NMEDIT"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5466 | $as_echo "$ac_ct_NMEDIT" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5467 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5469 | $as_echo "no" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5470 | fi |
| 5471 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5472 | if test "x$ac_ct_NMEDIT" = x; then |
| 5473 | NMEDIT=":" |
| 5474 | else |
| 5475 | case $cross_compiling:$ac_tool_warned in |
| 5476 | yes:) |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5477 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5478 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5479 | ac_tool_warned=yes ;; |
| 5480 | esac |
| 5481 | NMEDIT=$ac_ct_NMEDIT |
| 5482 | fi |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5483 | else |
| 5484 | NMEDIT="$ac_cv_prog_NMEDIT" |
| 5485 | fi |
| 5486 | |
| 5487 | if test -n "$ac_tool_prefix"; then |
| 5488 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. |
| 5489 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5490 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5491 | $as_echo_n "checking for $ac_word... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5492 | if ${ac_cv_prog_LIPO+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5493 | $as_echo_n "(cached) " >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5494 | else |
| 5495 | if test -n "$LIPO"; then |
| 5496 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. |
| 5497 | else |
| 5498 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5499 | for as_dir in $PATH |
| 5500 | do |
| 5501 | IFS=$as_save_IFS |
| 5502 | test -z "$as_dir" && as_dir=. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5503 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5504 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5505 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5506 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5507 | break 2 |
| 5508 | fi |
| 5509 | done |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5510 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5511 | IFS=$as_save_IFS |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5512 | |
| 5513 | fi |
| 5514 | fi |
| 5515 | LIPO=$ac_cv_prog_LIPO |
| 5516 | if test -n "$LIPO"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5518 | $as_echo "$LIPO" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5519 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5521 | $as_echo "no" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5522 | fi |
| 5523 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5524 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5525 | fi |
| 5526 | if test -z "$ac_cv_prog_LIPO"; then |
| 5527 | ac_ct_LIPO=$LIPO |
| 5528 | # Extract the first word of "lipo", so it can be a program name with args. |
| 5529 | set dummy lipo; ac_word=$2 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5530 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5531 | $as_echo_n "checking for $ac_word... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5532 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5533 | $as_echo_n "(cached) " >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5534 | else |
| 5535 | if test -n "$ac_ct_LIPO"; then |
| 5536 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. |
| 5537 | else |
| 5538 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5539 | for as_dir in $PATH |
| 5540 | do |
| 5541 | IFS=$as_save_IFS |
| 5542 | test -z "$as_dir" && as_dir=. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5543 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5544 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5545 | ac_cv_prog_ac_ct_LIPO="lipo" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5546 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5547 | break 2 |
| 5548 | fi |
| 5549 | done |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5550 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5551 | IFS=$as_save_IFS |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5552 | |
| 5553 | fi |
| 5554 | fi |
| 5555 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO |
| 5556 | if test -n "$ac_ct_LIPO"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5558 | $as_echo "$ac_ct_LIPO" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5559 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5561 | $as_echo "no" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5562 | fi |
| 5563 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5564 | if test "x$ac_ct_LIPO" = x; then |
| 5565 | LIPO=":" |
| 5566 | else |
| 5567 | case $cross_compiling:$ac_tool_warned in |
| 5568 | yes:) |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5569 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5570 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5571 | ac_tool_warned=yes ;; |
| 5572 | esac |
| 5573 | LIPO=$ac_ct_LIPO |
| 5574 | fi |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5575 | else |
| 5576 | LIPO="$ac_cv_prog_LIPO" |
| 5577 | fi |
| 5578 | |
| 5579 | if test -n "$ac_tool_prefix"; then |
| 5580 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. |
| 5581 | set dummy ${ac_tool_prefix}otool; ac_word=$2 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5582 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5583 | $as_echo_n "checking for $ac_word... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5584 | if ${ac_cv_prog_OTOOL+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5585 | $as_echo_n "(cached) " >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5586 | else |
| 5587 | if test -n "$OTOOL"; then |
| 5588 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. |
| 5589 | else |
| 5590 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5591 | for as_dir in $PATH |
| 5592 | do |
| 5593 | IFS=$as_save_IFS |
| 5594 | test -z "$as_dir" && as_dir=. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5595 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5596 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5597 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5598 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5599 | break 2 |
| 5600 | fi |
| 5601 | done |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5602 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5603 | IFS=$as_save_IFS |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5604 | |
| 5605 | fi |
| 5606 | fi |
| 5607 | OTOOL=$ac_cv_prog_OTOOL |
| 5608 | if test -n "$OTOOL"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5610 | $as_echo "$OTOOL" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5611 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5613 | $as_echo "no" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5614 | fi |
| 5615 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5616 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5617 | fi |
| 5618 | if test -z "$ac_cv_prog_OTOOL"; then |
| 5619 | ac_ct_OTOOL=$OTOOL |
| 5620 | # Extract the first word of "otool", so it can be a program name with args. |
| 5621 | set dummy otool; ac_word=$2 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5622 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5623 | $as_echo_n "checking for $ac_word... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5624 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5625 | $as_echo_n "(cached) " >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5626 | else |
| 5627 | if test -n "$ac_ct_OTOOL"; then |
| 5628 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. |
| 5629 | else |
| 5630 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5631 | for as_dir in $PATH |
| 5632 | do |
| 5633 | IFS=$as_save_IFS |
| 5634 | test -z "$as_dir" && as_dir=. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5635 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5636 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5637 | ac_cv_prog_ac_ct_OTOOL="otool" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5638 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5639 | break 2 |
| 5640 | fi |
| 5641 | done |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5642 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5643 | IFS=$as_save_IFS |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5644 | |
| 5645 | fi |
| 5646 | fi |
| 5647 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL |
| 5648 | if test -n "$ac_ct_OTOOL"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5650 | $as_echo "$ac_ct_OTOOL" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5651 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5653 | $as_echo "no" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5654 | fi |
| 5655 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5656 | if test "x$ac_ct_OTOOL" = x; then |
| 5657 | OTOOL=":" |
| 5658 | else |
| 5659 | case $cross_compiling:$ac_tool_warned in |
| 5660 | yes:) |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5661 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5662 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5663 | ac_tool_warned=yes ;; |
| 5664 | esac |
| 5665 | OTOOL=$ac_ct_OTOOL |
| 5666 | fi |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5667 | else |
| 5668 | OTOOL="$ac_cv_prog_OTOOL" |
| 5669 | fi |
| 5670 | |
| 5671 | if test -n "$ac_tool_prefix"; then |
| 5672 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. |
| 5673 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5674 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5675 | $as_echo_n "checking for $ac_word... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5676 | if ${ac_cv_prog_OTOOL64+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5677 | $as_echo_n "(cached) " >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5678 | else |
| 5679 | if test -n "$OTOOL64"; then |
| 5680 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. |
| 5681 | else |
| 5682 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5683 | for as_dir in $PATH |
| 5684 | do |
| 5685 | IFS=$as_save_IFS |
| 5686 | test -z "$as_dir" && as_dir=. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5687 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5688 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5689 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5690 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5691 | break 2 |
| 5692 | fi |
| 5693 | done |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5694 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5695 | IFS=$as_save_IFS |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5696 | |
| 5697 | fi |
| 5698 | fi |
| 5699 | OTOOL64=$ac_cv_prog_OTOOL64 |
| 5700 | if test -n "$OTOOL64"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5702 | $as_echo "$OTOOL64" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5703 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5705 | $as_echo "no" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5706 | fi |
| 5707 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5708 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5709 | fi |
| 5710 | if test -z "$ac_cv_prog_OTOOL64"; then |
| 5711 | ac_ct_OTOOL64=$OTOOL64 |
| 5712 | # Extract the first word of "otool64", so it can be a program name with args. |
| 5713 | set dummy otool64; ac_word=$2 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5714 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5715 | $as_echo_n "checking for $ac_word... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5716 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5717 | $as_echo_n "(cached) " >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5718 | else |
| 5719 | if test -n "$ac_ct_OTOOL64"; then |
| 5720 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. |
| 5721 | else |
| 5722 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5723 | for as_dir in $PATH |
| 5724 | do |
| 5725 | IFS=$as_save_IFS |
| 5726 | test -z "$as_dir" && as_dir=. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5727 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5728 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5729 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5730 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5731 | break 2 |
| 5732 | fi |
| 5733 | done |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5734 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5735 | IFS=$as_save_IFS |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5736 | |
| 5737 | fi |
| 5738 | fi |
| 5739 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 |
| 5740 | if test -n "$ac_ct_OTOOL64"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5742 | $as_echo "$ac_ct_OTOOL64" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5743 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5745 | $as_echo "no" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5746 | fi |
| 5747 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5748 | if test "x$ac_ct_OTOOL64" = x; then |
| 5749 | OTOOL64=":" |
| 5750 | else |
| 5751 | case $cross_compiling:$ac_tool_warned in |
| 5752 | yes:) |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5753 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5754 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5755 | ac_tool_warned=yes ;; |
| 5756 | esac |
| 5757 | OTOOL64=$ac_ct_OTOOL64 |
| 5758 | fi |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5759 | else |
| 5760 | OTOOL64="$ac_cv_prog_OTOOL64" |
| 5761 | fi |
| 5762 | |
| 5763 | |
| 5764 | |
| 5765 | |
| 5766 | |
| 5767 | |
| 5768 | |
| 5769 | |
| 5770 | |
| 5771 | |
| 5772 | |
| 5773 | |
| 5774 | |
| 5775 | |
| 5776 | |
| 5777 | |
| 5778 | |
| 5779 | |
| 5780 | |
| 5781 | |
| 5782 | |
| 5783 | |
| 5784 | |
| 5785 | |
| 5786 | |
| 5787 | |
| 5788 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5789 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5790 | $as_echo_n "checking for -single_module linker flag... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5791 | if ${lt_cv_apple_cc_single_mod+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5792 | $as_echo_n "(cached) " >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5793 | else |
| 5794 | lt_cv_apple_cc_single_mod=no |
| 5795 | if test -z "${LT_MULTI_MODULE}"; then |
| 5796 | # By default we will add the -single_module flag. You can override |
| 5797 | # by either setting the environment variable LT_MULTI_MODULE |
| 5798 | # non-empty at configure time, or by adding -multi_module to the |
| 5799 | # link flags. |
| 5800 | rm -rf libconftest.dylib* |
| 5801 | echo "int foo(void){return 1;}" > conftest.c |
| 5802 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 5803 | -dynamiclib -Wl,-single_module conftest.c" >&5 |
| 5804 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 5805 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err |
| 5806 | _lt_result=$? |
| 5807 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then |
| 5808 | lt_cv_apple_cc_single_mod=yes |
| 5809 | else |
| 5810 | cat conftest.err >&5 |
| 5811 | fi |
| 5812 | rm -rf libconftest.dylib* |
| 5813 | rm -f conftest.* |
| 5814 | fi |
| 5815 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5817 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5818 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5819 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5820 | if ${lt_cv_ld_exported_symbols_list+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5821 | $as_echo_n "(cached) " >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5822 | else |
| 5823 | lt_cv_ld_exported_symbols_list=no |
| 5824 | save_LDFLAGS=$LDFLAGS |
| 5825 | echo "_main" > conftest.sym |
| 5826 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5827 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5828 | /* end confdefs.h. */ |
| 5829 | |
| 5830 | int |
| 5831 | main () |
| 5832 | { |
| 5833 | |
| 5834 | ; |
| 5835 | return 0; |
| 5836 | } |
| 5837 | _ACEOF |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5838 | if ac_fn_c_try_link "$LINENO"; then : |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5839 | lt_cv_ld_exported_symbols_list=yes |
| 5840 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5841 | lt_cv_ld_exported_symbols_list=no |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5842 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5843 | rm -f core conftest.err conftest.$ac_objext \ |
| 5844 | conftest$ac_exeext conftest.$ac_ext |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5845 | LDFLAGS="$save_LDFLAGS" |
| 5846 | |
| 5847 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5849 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5850 | case $host_os in |
| 5851 | rhapsody* | darwin1.[012]) |
| 5852 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
| 5853 | darwin1.*) |
| 5854 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
| 5855 | darwin*) # darwin 5.x on |
| 5856 | # if running on 10.5 or later, the deployment target defaults |
| 5857 | # to the OS version, if on x86, and 10.4, the deployment |
| 5858 | # target defaults to 10.4. Don't you love it? |
| 5859 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in |
| 5860 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) |
| 5861 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
| 5862 | 10.[012]*) |
| 5863 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
| 5864 | 10.*) |
| 5865 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
| 5866 | esac |
| 5867 | ;; |
| 5868 | esac |
| 5869 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then |
| 5870 | _lt_dar_single_mod='$single_module' |
| 5871 | fi |
| 5872 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then |
| 5873 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' |
| 5874 | else |
| 5875 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 5876 | fi |
| 5877 | if test "$DSYMUTIL" != ":"; then |
| 5878 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
| 5879 | else |
| 5880 | _lt_dsymutil= |
| 5881 | fi |
| 5882 | ;; |
| 5883 | esac |
| 5884 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5885 | ac_ext=c |
| 5886 | ac_cpp='$CPP $CPPFLAGS' |
| 5887 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5888 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5889 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5890 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5891 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5892 | # On Suns, sometimes $CPP names a directory. |
| 5893 | if test -n "$CPP" && test -d "$CPP"; then |
| 5894 | CPP= |
| 5895 | fi |
| 5896 | if test -z "$CPP"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5897 | if ${ac_cv_prog_CPP+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5898 | $as_echo_n "(cached) " >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5899 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5900 | # Double quotes because CPP needs to be expanded |
| 5901 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 5902 | do |
| 5903 | ac_preproc_ok=false |
| 5904 | for ac_c_preproc_warn_flag in '' yes |
| 5905 | do |
| 5906 | # Use a header file that comes with gcc, so configuring glibc |
| 5907 | # with a fresh cross-compiler works. |
| 5908 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5909 | # <limits.h> exists even on freestanding compilers. |
| 5910 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5911 | # not just through cpp. "Syntax error" is here to catch this case. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5912 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5913 | /* end confdefs.h. */ |
| 5914 | #ifdef __STDC__ |
| 5915 | # include <limits.h> |
| 5916 | #else |
| 5917 | # include <assert.h> |
| 5918 | #endif |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 5919 | Syntax error |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5920 | _ACEOF |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5921 | if ac_fn_c_try_cpp "$LINENO"; then : |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5922 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5923 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5924 | # Broken: fails on valid input. |
| 5925 | continue |
| 5926 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5927 | rm -f conftest.err conftest.i conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5928 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5929 | # OK, works on sane cases. Now check whether nonexistent headers |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5930 | # can be detected and how. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5931 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5932 | /* end confdefs.h. */ |
| 5933 | #include <ac_nonexistent.h> |
| 5934 | _ACEOF |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5935 | if ac_fn_c_try_cpp "$LINENO"; then : |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5936 | # Broken: success on invalid input. |
| 5937 | continue |
| 5938 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5939 | # Passes both tests. |
| 5940 | ac_preproc_ok=: |
| 5941 | break |
| 5942 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5943 | rm -f conftest.err conftest.i conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5944 | |
| 5945 | done |
| 5946 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5947 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 5948 | if $ac_preproc_ok; then : |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5949 | break |
| 5950 | fi |
| 5951 | |
| 5952 | done |
| 5953 | ac_cv_prog_CPP=$CPP |
| 5954 | |
| 5955 | fi |
| 5956 | CPP=$ac_cv_prog_CPP |
| 5957 | else |
| 5958 | ac_cv_prog_CPP=$CPP |
| 5959 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5961 | $as_echo "$CPP" >&6; } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5962 | ac_preproc_ok=false |
| 5963 | for ac_c_preproc_warn_flag in '' yes |
| 5964 | do |
| 5965 | # Use a header file that comes with gcc, so configuring glibc |
| 5966 | # with a fresh cross-compiler works. |
| 5967 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5968 | # <limits.h> exists even on freestanding compilers. |
| 5969 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5970 | # not just through cpp. "Syntax error" is here to catch this case. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5971 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5972 | /* end confdefs.h. */ |
| 5973 | #ifdef __STDC__ |
| 5974 | # include <limits.h> |
| 5975 | #else |
| 5976 | # include <assert.h> |
| 5977 | #endif |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 5978 | Syntax error |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5979 | _ACEOF |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5980 | if ac_fn_c_try_cpp "$LINENO"; then : |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5981 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5982 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5983 | # Broken: fails on valid input. |
| 5984 | continue |
| 5985 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5986 | rm -f conftest.err conftest.i conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5987 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5988 | # OK, works on sane cases. Now check whether nonexistent headers |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5989 | # can be detected and how. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5990 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5991 | /* end confdefs.h. */ |
| 5992 | #include <ac_nonexistent.h> |
| 5993 | _ACEOF |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5994 | if ac_fn_c_try_cpp "$LINENO"; then : |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5995 | # Broken: success on invalid input. |
| 5996 | continue |
| 5997 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5998 | # Passes both tests. |
| 5999 | ac_preproc_ok=: |
| 6000 | break |
| 6001 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6002 | rm -f conftest.err conftest.i conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6003 | |
| 6004 | done |
| 6005 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6006 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 6007 | if $ac_preproc_ok; then : |
| 6008 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6009 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6010 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6011 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 6012 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
| 6013 | See \`config.log' for more details" "$LINENO" 5; } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6014 | fi |
| 6015 | |
| 6016 | ac_ext=c |
| 6017 | ac_cpp='$CPP $CPPFLAGS' |
| 6018 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6019 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6020 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6021 | |
| 6022 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6023 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6024 | $as_echo_n "checking for ANSI C header files... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6025 | if ${ac_cv_header_stdc+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6026 | $as_echo_n "(cached) " >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6027 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6028 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6029 | /* end confdefs.h. */ |
| 6030 | #include <stdlib.h> |
| 6031 | #include <stdarg.h> |
| 6032 | #include <string.h> |
| 6033 | #include <float.h> |
| 6034 | |
| 6035 | int |
| 6036 | main () |
| 6037 | { |
| 6038 | |
| 6039 | ; |
| 6040 | return 0; |
| 6041 | } |
| 6042 | _ACEOF |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6043 | if ac_fn_c_try_compile "$LINENO"; then : |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6044 | ac_cv_header_stdc=yes |
| 6045 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6046 | ac_cv_header_stdc=no |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6047 | fi |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6048 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6049 | |
| 6050 | if test $ac_cv_header_stdc = yes; then |
| 6051 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6052 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6053 | /* end confdefs.h. */ |
| 6054 | #include <string.h> |
| 6055 | |
| 6056 | _ACEOF |
| 6057 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6058 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 6059 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6060 | else |
| 6061 | ac_cv_header_stdc=no |
| 6062 | fi |
| 6063 | rm -f conftest* |
| 6064 | |
| 6065 | fi |
| 6066 | |
| 6067 | if test $ac_cv_header_stdc = yes; then |
| 6068 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6069 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6070 | /* end confdefs.h. */ |
| 6071 | #include <stdlib.h> |
| 6072 | |
| 6073 | _ACEOF |
| 6074 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6075 | $EGREP "free" >/dev/null 2>&1; then : |
| 6076 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6077 | else |
| 6078 | ac_cv_header_stdc=no |
| 6079 | fi |
| 6080 | rm -f conftest* |
| 6081 | |
| 6082 | fi |
| 6083 | |
| 6084 | if test $ac_cv_header_stdc = yes; then |
| 6085 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6086 | if test "$cross_compiling" = yes; then : |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6087 | : |
| 6088 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6089 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6090 | /* end confdefs.h. */ |
| 6091 | #include <ctype.h> |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6092 | #include <stdlib.h> |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6093 | #if ((' ' & 0x0FF) == 0x020) |
| 6094 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 6095 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 6096 | #else |
| 6097 | # define ISLOWER(c) \ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 6098 | (('a' <= (c) && (c) <= 'i') \ |
| 6099 | || ('j' <= (c) && (c) <= 'r') \ |
| 6100 | || ('s' <= (c) && (c) <= 'z')) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6101 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 6102 | #endif |
| 6103 | |
| 6104 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 6105 | int |
| 6106 | main () |
| 6107 | { |
| 6108 | int i; |
| 6109 | for (i = 0; i < 256; i++) |
| 6110 | if (XOR (islower (i), ISLOWER (i)) |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 6111 | || toupper (i) != TOUPPER (i)) |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6112 | return 2; |
| 6113 | return 0; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6114 | } |
| 6115 | _ACEOF |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6116 | if ac_fn_c_try_run "$LINENO"; then : |
| 6117 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6118 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6119 | ac_cv_header_stdc=no |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6120 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6121 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 6122 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6123 | fi |
| 6124 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6125 | fi |
| 6126 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6128 | $as_echo "$ac_cv_header_stdc" >&6; } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6129 | if test $ac_cv_header_stdc = yes; then |
| 6130 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6131 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6132 | |
| 6133 | fi |
| 6134 | |
| 6135 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6136 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 6137 | inttypes.h stdint.h unistd.h |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6138 | do : |
| 6139 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6140 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 6141 | " |
| 6142 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6143 | cat >>confdefs.h <<_ACEOF |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6144 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6145 | _ACEOF |
| 6146 | |
| 6147 | fi |
| 6148 | |
| 6149 | done |
| 6150 | |
| 6151 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6152 | for ac_header in dlfcn.h |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6153 | do : |
| 6154 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default |
| 6155 | " |
| 6156 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6157 | cat >>confdefs.h <<_ACEOF |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6158 | #define HAVE_DLFCN_H 1 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6159 | _ACEOF |
| 6160 | |
| 6161 | fi |
| 6162 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6163 | done |
| 6164 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6165 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6166 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6167 | # Set options |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 6168 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6169 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6170 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6171 | enable_dlopen=no |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 6172 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6173 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6174 | enable_win32_dll=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6175 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6176 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6177 | # Check whether --enable-shared was given. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6178 | if test "${enable_shared+set}" = set; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6179 | enableval=$enable_shared; p=${PACKAGE-default} |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6180 | case $enableval in |
| 6181 | yes) enable_shared=yes ;; |
| 6182 | no) enable_shared=no ;; |
| 6183 | *) |
| 6184 | enable_shared=no |
| 6185 | # Look at the argument we got. We use all the common list separators. |
| 6186 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 6187 | for pkg in $enableval; do |
| 6188 | IFS="$lt_save_ifs" |
| 6189 | if test "X$pkg" = "X$p"; then |
| 6190 | enable_shared=yes |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6191 | fi |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6192 | done |
| 6193 | IFS="$lt_save_ifs" |
| 6194 | ;; |
| 6195 | esac |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6196 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6197 | enable_shared=yes |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6198 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6199 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6200 | |
| 6201 | |
| 6202 | |
| 6203 | |
| 6204 | |
| 6205 | |
| 6206 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6207 | |
| 6208 | # Check whether --enable-static was given. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6209 | if test "${enable_static+set}" = set; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6210 | enableval=$enable_static; p=${PACKAGE-default} |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6211 | case $enableval in |
| 6212 | yes) enable_static=yes ;; |
| 6213 | no) enable_static=no ;; |
| 6214 | *) |
| 6215 | enable_static=no |
| 6216 | # Look at the argument we got. We use all the common list separators. |
| 6217 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 6218 | for pkg in $enableval; do |
| 6219 | IFS="$lt_save_ifs" |
| 6220 | if test "X$pkg" = "X$p"; then |
| 6221 | enable_static=yes |
| 6222 | fi |
| 6223 | done |
| 6224 | IFS="$lt_save_ifs" |
| 6225 | ;; |
| 6226 | esac |
| 6227 | else |
| 6228 | enable_static=yes |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6229 | fi |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6230 | |
| 6231 | |
| 6232 | |
| 6233 | |
| 6234 | |
| 6235 | |
| 6236 | |
| 6237 | |
| 6238 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6239 | |
| 6240 | # Check whether --with-pic was given. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6241 | if test "${with_pic+set}" = set; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6242 | withval=$with_pic; pic_mode="$withval" |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6243 | else |
| 6244 | pic_mode=default |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6245 | fi |
| 6246 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6247 | |
| 6248 | test -z "$pic_mode" && pic_mode=default |
| 6249 | |
| 6250 | |
| 6251 | |
| 6252 | |
| 6253 | |
| 6254 | |
| 6255 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6256 | # Check whether --enable-fast-install was given. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6257 | if test "${enable_fast_install+set}" = set; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6258 | enableval=$enable_fast_install; p=${PACKAGE-default} |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6259 | case $enableval in |
| 6260 | yes) enable_fast_install=yes ;; |
| 6261 | no) enable_fast_install=no ;; |
| 6262 | *) |
| 6263 | enable_fast_install=no |
| 6264 | # Look at the argument we got. We use all the common list separators. |
| 6265 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 6266 | for pkg in $enableval; do |
| 6267 | IFS="$lt_save_ifs" |
| 6268 | if test "X$pkg" = "X$p"; then |
| 6269 | enable_fast_install=yes |
| 6270 | fi |
| 6271 | done |
| 6272 | IFS="$lt_save_ifs" |
| 6273 | ;; |
| 6274 | esac |
| 6275 | else |
| 6276 | enable_fast_install=yes |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6277 | fi |
| 6278 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6279 | |
| 6280 | |
| 6281 | |
| 6282 | |
| 6283 | |
| 6284 | |
| 6285 | |
| 6286 | |
| 6287 | |
| 6288 | |
| 6289 | # This can be used to rebuild libtool when needed |
| 6290 | LIBTOOL_DEPS="$ltmain" |
| 6291 | |
| 6292 | # Always use our own libtool. |
| 6293 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
| 6294 | |
| 6295 | |
| 6296 | |
| 6297 | |
| 6298 | |
| 6299 | |
| 6300 | |
| 6301 | |
| 6302 | |
| 6303 | |
| 6304 | |
| 6305 | |
| 6306 | |
| 6307 | |
| 6308 | |
| 6309 | |
| 6310 | |
| 6311 | |
| 6312 | |
| 6313 | |
| 6314 | |
| 6315 | |
| 6316 | |
| 6317 | |
| 6318 | |
| 6319 | test -z "$LN_S" && LN_S="ln -s" |
| 6320 | |
| 6321 | |
| 6322 | |
| 6323 | |
| 6324 | |
| 6325 | |
| 6326 | |
| 6327 | |
| 6328 | |
| 6329 | |
| 6330 | |
| 6331 | |
| 6332 | |
| 6333 | |
| 6334 | if test -n "${ZSH_VERSION+set}" ; then |
| 6335 | setopt NO_GLOB_SUBST |
| 6336 | fi |
| 6337 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6338 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6339 | $as_echo_n "checking for objdir... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6340 | if ${lt_cv_objdir+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6341 | $as_echo_n "(cached) " >&6 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6342 | else |
| 6343 | rm -f .libs 2>/dev/null |
| 6344 | mkdir .libs 2>/dev/null |
| 6345 | if test -d .libs; then |
| 6346 | lt_cv_objdir=.libs |
| 6347 | else |
| 6348 | # MS-DOS does not allow filenames that begin with a dot. |
| 6349 | lt_cv_objdir=_libs |
| 6350 | fi |
| 6351 | rmdir .libs 2>/dev/null |
| 6352 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6354 | $as_echo "$lt_cv_objdir" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6355 | objdir=$lt_cv_objdir |
| 6356 | |
| 6357 | |
| 6358 | |
| 6359 | |
| 6360 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6361 | cat >>confdefs.h <<_ACEOF |
| 6362 | #define LT_OBJDIR "$lt_cv_objdir/" |
| 6363 | _ACEOF |
| 6364 | |
| 6365 | |
| 6366 | |
| 6367 | |
| 6368 | |
| 6369 | |
| 6370 | |
| 6371 | |
| 6372 | |
| 6373 | |
| 6374 | |
| 6375 | |
| 6376 | |
| 6377 | |
| 6378 | |
| 6379 | |
| 6380 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6381 | case $host_os in |
| 6382 | aix3*) |
| 6383 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 6384 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 6385 | # vanish in a puff of smoke. |
| 6386 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 6387 | COLLECT_NAMES= |
| 6388 | export COLLECT_NAMES |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6389 | fi |
| 6390 | ;; |
| 6391 | esac |
| 6392 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6393 | # Sed substitution that helps us do robust quoting. It backslashifies |
| 6394 | # metacharacters that are still active within double-quoted strings. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6395 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6396 | |
| 6397 | # Same as above, but do not quote variable references. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6398 | double_quote_subst='s/\(["`\\]\)/\\\1/g' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6399 | |
| 6400 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 6401 | # double_quote_subst'ed string. |
| 6402 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 6403 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6404 | # Sed substitution to delay expansion of an escaped single quote. |
| 6405 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' |
| 6406 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6407 | # Sed substitution to avoid accidental globbing in evaled expressions |
| 6408 | no_glob_subst='s/\*/\\\*/g' |
| 6409 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6410 | # Global variables: |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6411 | ofile=libtool |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6412 | can_build_shared=yes |
| 6413 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6414 | # All known linkers require a `.a' archive for static linking (except MSVC, |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6415 | # which needs '.lib'). |
| 6416 | libext=a |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6417 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6418 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 6419 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6420 | old_CC="$CC" |
| 6421 | old_CFLAGS="$CFLAGS" |
| 6422 | |
| 6423 | # Set sane defaults for various variables |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6424 | test -z "$CC" && CC=cc |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6425 | test -z "$LTCC" && LTCC=$CC |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6426 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6427 | test -z "$LD" && LD=ld |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6428 | test -z "$ac_objext" && ac_objext=o |
| 6429 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6430 | for cc_temp in $compiler""; do |
| 6431 | case $cc_temp in |
| 6432 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 6433 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 6434 | \-*) ;; |
| 6435 | *) break;; |
| 6436 | esac |
| 6437 | done |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6438 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6439 | |
| 6440 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6441 | # Only perform the check for file, if the check method requires it |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6442 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6443 | case $deplibs_check_method in |
| 6444 | file_magic*) |
| 6445 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6446 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6447 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6448 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6449 | $as_echo_n "(cached) " >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6450 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6451 | case $MAGIC_CMD in |
| 6452 | [\\/*] | ?:[\\/]*) |
| 6453 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 6454 | ;; |
| 6455 | *) |
| 6456 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 6457 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 6458 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 6459 | for ac_dir in $ac_dummy; do |
| 6460 | IFS="$lt_save_ifs" |
| 6461 | test -z "$ac_dir" && ac_dir=. |
| 6462 | if test -f $ac_dir/${ac_tool_prefix}file; then |
| 6463 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 6464 | if test -n "$file_magic_test_file"; then |
| 6465 | case $deplibs_check_method in |
| 6466 | "file_magic "*) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6467 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6468 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 6469 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 6470 | $EGREP "$file_magic_regex" > /dev/null; then |
| 6471 | : |
| 6472 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6473 | cat <<_LT_EOF 1>&2 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6474 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6475 | *** Warning: the command libtool uses to detect shared libraries, |
| 6476 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 6477 | *** The result is that libtool may fail to recognize shared libraries |
| 6478 | *** as such. This will affect the creation of libtool libraries that |
| 6479 | *** depend on shared libraries, but programs linked with such libtool |
| 6480 | *** libraries will work regardless of this problem. Nevertheless, you |
| 6481 | *** may want to report the problem to your system manager and/or to |
| 6482 | *** bug-libtool@gnu.org |
| 6483 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6484 | _LT_EOF |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6485 | fi ;; |
| 6486 | esac |
| 6487 | fi |
| 6488 | break |
| 6489 | fi |
| 6490 | done |
| 6491 | IFS="$lt_save_ifs" |
| 6492 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 6493 | ;; |
| 6494 | esac |
| 6495 | fi |
| 6496 | |
| 6497 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 6498 | if test -n "$MAGIC_CMD"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6500 | $as_echo "$MAGIC_CMD" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6501 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6503 | $as_echo "no" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6504 | fi |
| 6505 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6506 | |
| 6507 | |
| 6508 | |
| 6509 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6510 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 6511 | if test -n "$ac_tool_prefix"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6512 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6513 | $as_echo_n "checking for file... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6514 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6515 | $as_echo_n "(cached) " >&6 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6516 | else |
| 6517 | case $MAGIC_CMD in |
| 6518 | [\\/*] | ?:[\\/]*) |
| 6519 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 6520 | ;; |
| 6521 | *) |
| 6522 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 6523 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 6524 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 6525 | for ac_dir in $ac_dummy; do |
| 6526 | IFS="$lt_save_ifs" |
| 6527 | test -z "$ac_dir" && ac_dir=. |
| 6528 | if test -f $ac_dir/file; then |
| 6529 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 6530 | if test -n "$file_magic_test_file"; then |
| 6531 | case $deplibs_check_method in |
| 6532 | "file_magic "*) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6533 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6534 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 6535 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 6536 | $EGREP "$file_magic_regex" > /dev/null; then |
| 6537 | : |
| 6538 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6539 | cat <<_LT_EOF 1>&2 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6540 | |
| 6541 | *** Warning: the command libtool uses to detect shared libraries, |
| 6542 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 6543 | *** The result is that libtool may fail to recognize shared libraries |
| 6544 | *** as such. This will affect the creation of libtool libraries that |
| 6545 | *** depend on shared libraries, but programs linked with such libtool |
| 6546 | *** libraries will work regardless of this problem. Nevertheless, you |
| 6547 | *** may want to report the problem to your system manager and/or to |
| 6548 | *** bug-libtool@gnu.org |
| 6549 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6550 | _LT_EOF |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6551 | fi ;; |
| 6552 | esac |
| 6553 | fi |
| 6554 | break |
| 6555 | fi |
| 6556 | done |
| 6557 | IFS="$lt_save_ifs" |
| 6558 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 6559 | ;; |
| 6560 | esac |
| 6561 | fi |
| 6562 | |
| 6563 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 6564 | if test -n "$MAGIC_CMD"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6566 | $as_echo "$MAGIC_CMD" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6567 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6569 | $as_echo "no" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6570 | fi |
| 6571 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6572 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6573 | else |
| 6574 | MAGIC_CMD=: |
| 6575 | fi |
| 6576 | fi |
| 6577 | |
| 6578 | fi |
| 6579 | ;; |
| 6580 | esac |
| 6581 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6582 | # Use C for the default configuration in the libtool script |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6583 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6584 | lt_save_CC="$CC" |
| 6585 | ac_ext=c |
| 6586 | ac_cpp='$CPP $CPPFLAGS' |
| 6587 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6588 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6589 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6590 | |
| 6591 | |
| 6592 | # Source file extension for C test sources. |
| 6593 | ac_ext=c |
| 6594 | |
| 6595 | # Object file extension for compiled C test sources. |
| 6596 | objext=o |
| 6597 | objext=$objext |
| 6598 | |
| 6599 | # Code to be used in simple compile tests |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6600 | lt_simple_compile_test_code="int some_variable = 0;" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6601 | |
| 6602 | # Code to be used in simple link tests |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6603 | lt_simple_link_test_code='int main(){return(0);}' |
| 6604 | |
| 6605 | |
| 6606 | |
| 6607 | |
| 6608 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6609 | |
| 6610 | |
| 6611 | # If no C compiler was specified, use CC. |
| 6612 | LTCC=${LTCC-"$CC"} |
| 6613 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6614 | # If no C compiler flags were specified, use CFLAGS. |
| 6615 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 6616 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6617 | # Allow CC to be a program name with arguments. |
| 6618 | compiler=$CC |
| 6619 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6620 | # Save the default compiler, since it gets overwritten when the other |
| 6621 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. |
| 6622 | compiler_DEFAULT=$CC |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6623 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6624 | # save warnings/boilerplate of simple test code |
| 6625 | ac_outfile=conftest.$ac_objext |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6626 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6627 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 6628 | _lt_compiler_boilerplate=`cat conftest.err` |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6629 | $RM conftest* |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6630 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6631 | ac_outfile=conftest.$ac_objext |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6632 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6633 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 6634 | _lt_linker_boilerplate=`cat conftest.err` |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6635 | $RM -r conftest* |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6636 | |
| 6637 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6638 | if test -n "$compiler"; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6639 | |
| 6640 | lt_prog_compiler_no_builtin_flag= |
| 6641 | |
| 6642 | if test "$GCC" = yes; then |
| 6643 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
| 6644 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6645 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6646 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6647 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6648 | $as_echo_n "(cached) " >&6 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6649 | else |
| 6650 | lt_cv_prog_compiler_rtti_exceptions=no |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6651 | ac_outfile=conftest.$ac_objext |
| 6652 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6653 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 6654 | # Insert the option either (1) after the last *FLAGS variable, or |
| 6655 | # (2) before a word containing "conftest.", or (3) at the end. |
| 6656 | # Note that $ac_compile itself does not contain backslashes and begins |
| 6657 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 6658 | # The option is referenced via a variable to avoid confusing sed. |
| 6659 | lt_compile=`echo "$ac_compile" | $SED \ |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6660 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6661 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 6662 | -e 's:$: $lt_compiler_flag:'` |
drh | e44b835 | 2015-10-30 14:25:57 +0000 | [diff] [blame] | 6663 | (eval echo "\"\$as_me:6663: $lt_compile\"" >&5) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6664 | (eval "$lt_compile" 2>conftest.err) |
| 6665 | ac_status=$? |
| 6666 | cat conftest.err >&5 |
drh | e44b835 | 2015-10-30 14:25:57 +0000 | [diff] [blame] | 6667 | echo "$as_me:6667: \$? = $ac_status" >&5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6668 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 6669 | # The compiler can only warn and ignore the option if not recognized |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6670 | # So say no if there are warnings other than the usual output. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6671 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6672 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 6673 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6674 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 6675 | fi |
| 6676 | fi |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6677 | $RM conftest* |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6678 | |
| 6679 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6681 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6682 | |
| 6683 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 6684 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 6685 | else |
| 6686 | : |
| 6687 | fi |
| 6688 | |
| 6689 | fi |
| 6690 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6691 | |
| 6692 | |
| 6693 | |
| 6694 | |
| 6695 | |
| 6696 | lt_prog_compiler_wl= |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6697 | lt_prog_compiler_pic= |
| 6698 | lt_prog_compiler_static= |
| 6699 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6700 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6701 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6702 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6703 | if test "$GCC" = yes; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6704 | lt_prog_compiler_wl='-Wl,' |
| 6705 | lt_prog_compiler_static='-static' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6706 | |
| 6707 | case $host_os in |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6708 | aix*) |
| 6709 | # All AIX code is PIC. |
| 6710 | if test "$host_cpu" = ia64; then |
| 6711 | # AIX 5 now supports IA64 processor |
| 6712 | lt_prog_compiler_static='-Bstatic' |
| 6713 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6714 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6715 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6716 | amigaos*) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6717 | case $host_cpu in |
| 6718 | powerpc) |
| 6719 | # see comment about AmigaOS4 .so support |
| 6720 | lt_prog_compiler_pic='-fPIC' |
| 6721 | ;; |
| 6722 | m68k) |
| 6723 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 6724 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 6725 | # like `-m68040'. |
| 6726 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
| 6727 | ;; |
| 6728 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6729 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6730 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6731 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6732 | # PIC is the default for these OSes. |
| 6733 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6734 | |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 6735 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6736 | # This hack is so that the source file can tell whether it is being |
| 6737 | # built for inclusion in a dll (and should export symbols for example). |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6738 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 6739 | # (--disable-auto-import) libraries |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6740 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 6741 | ;; |
| 6742 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6743 | darwin* | rhapsody*) |
| 6744 | # PIC is the default on this platform |
| 6745 | # Common symbols not allowed in MH_DYLIB files |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6746 | lt_prog_compiler_pic='-fno-common' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6747 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6748 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6749 | hpux*) |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 6750 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
| 6751 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
| 6752 | # sets the default TLS model and affects inlining. |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6753 | case $host_cpu in |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 6754 | hppa*64*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6755 | # +Z the default |
| 6756 | ;; |
| 6757 | *) |
| 6758 | lt_prog_compiler_pic='-fPIC' |
| 6759 | ;; |
| 6760 | esac |
| 6761 | ;; |
| 6762 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6763 | interix[3-9]*) |
| 6764 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 6765 | # Instead, we relocate shared libraries at runtime. |
| 6766 | ;; |
| 6767 | |
| 6768 | msdosdjgpp*) |
| 6769 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 6770 | # on systems that don't support them. |
| 6771 | lt_prog_compiler_can_build_shared=no |
| 6772 | enable_shared=no |
| 6773 | ;; |
| 6774 | |
| 6775 | *nto* | *qnx*) |
| 6776 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 6777 | # it will coredump. |
| 6778 | lt_prog_compiler_pic='-fPIC -shared' |
| 6779 | ;; |
| 6780 | |
| 6781 | sysv4*MP*) |
| 6782 | if test -d /usr/nec; then |
| 6783 | lt_prog_compiler_pic=-Kconform_pic |
| 6784 | fi |
| 6785 | ;; |
| 6786 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6787 | *) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6788 | lt_prog_compiler_pic='-fPIC' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6789 | ;; |
| 6790 | esac |
| 6791 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6792 | # PORTME Check for flag to pass linker flags through the system compiler. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6793 | case $host_os in |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6794 | aix*) |
| 6795 | lt_prog_compiler_wl='-Wl,' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6796 | if test "$host_cpu" = ia64; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6797 | # AIX 5 now supports IA64 processor |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6798 | lt_prog_compiler_static='-Bstatic' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6799 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6800 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6801 | fi |
| 6802 | ;; |
| 6803 | |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 6804 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6805 | # This hack is so that the source file can tell whether it is being |
| 6806 | # built for inclusion in a dll (and should export symbols for example). |
| 6807 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 6808 | ;; |
| 6809 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6810 | hpux9* | hpux10* | hpux11*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6811 | lt_prog_compiler_wl='-Wl,' |
| 6812 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 6813 | # not for PA HP-UX. |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6814 | case $host_cpu in |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6815 | hppa*64*|ia64*) |
| 6816 | # +Z the default |
| 6817 | ;; |
| 6818 | *) |
| 6819 | lt_prog_compiler_pic='+Z' |
| 6820 | ;; |
| 6821 | esac |
| 6822 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 6823 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6824 | ;; |
| 6825 | |
| 6826 | irix5* | irix6* | nonstopux*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6827 | lt_prog_compiler_wl='-Wl,' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6828 | # PIC (with -KPIC) is the default. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6829 | lt_prog_compiler_static='-non_shared' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6830 | ;; |
| 6831 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6832 | linux* | k*bsd*-gnu) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6833 | case $cc_basename in |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 6834 | # old Intel for x86_64 which still supported -KPIC. |
| 6835 | ecc*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6836 | lt_prog_compiler_wl='-Wl,' |
| 6837 | lt_prog_compiler_pic='-KPIC' |
| 6838 | lt_prog_compiler_static='-static' |
| 6839 | ;; |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 6840 | # icc used to be incompatible with GCC. |
| 6841 | # ICC 10 doesn't accept -KPIC any more. |
| 6842 | icc* | ifort*) |
| 6843 | lt_prog_compiler_wl='-Wl,' |
| 6844 | lt_prog_compiler_pic='-fPIC' |
| 6845 | lt_prog_compiler_static='-static' |
| 6846 | ;; |
| 6847 | # Lahey Fortran 8.1. |
| 6848 | lf95*) |
| 6849 | lt_prog_compiler_wl='-Wl,' |
| 6850 | lt_prog_compiler_pic='--shared' |
| 6851 | lt_prog_compiler_static='--static' |
| 6852 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6853 | pgcc* | pgf77* | pgf90* | pgf95*) |
| 6854 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 6855 | # which looks to be a dead project) |
| 6856 | lt_prog_compiler_wl='-Wl,' |
| 6857 | lt_prog_compiler_pic='-fpic' |
| 6858 | lt_prog_compiler_static='-Bstatic' |
| 6859 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6860 | ccc*) |
| 6861 | lt_prog_compiler_wl='-Wl,' |
| 6862 | # All Alpha code is PIC. |
| 6863 | lt_prog_compiler_static='-non_shared' |
| 6864 | ;; |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6865 | xl*) |
| 6866 | # IBM XL C 8.0/Fortran 10.1 on PPC |
| 6867 | lt_prog_compiler_wl='-Wl,' |
| 6868 | lt_prog_compiler_pic='-qpic' |
| 6869 | lt_prog_compiler_static='-qstaticlink' |
| 6870 | ;; |
| 6871 | *) |
| 6872 | case `$CC -V 2>&1 | sed 5q` in |
| 6873 | *Sun\ C*) |
| 6874 | # Sun C 5.9 |
| 6875 | lt_prog_compiler_pic='-KPIC' |
| 6876 | lt_prog_compiler_static='-Bstatic' |
| 6877 | lt_prog_compiler_wl='-Wl,' |
| 6878 | ;; |
| 6879 | *Sun\ F*) |
| 6880 | # Sun Fortran 8.3 passes all unrecognized flags to the linker |
| 6881 | lt_prog_compiler_pic='-KPIC' |
| 6882 | lt_prog_compiler_static='-Bstatic' |
| 6883 | lt_prog_compiler_wl='' |
| 6884 | ;; |
| 6885 | esac |
| 6886 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6887 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6888 | ;; |
| 6889 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6890 | newsos6) |
| 6891 | lt_prog_compiler_pic='-KPIC' |
| 6892 | lt_prog_compiler_static='-Bstatic' |
| 6893 | ;; |
| 6894 | |
| 6895 | *nto* | *qnx*) |
| 6896 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 6897 | # it will coredump. |
| 6898 | lt_prog_compiler_pic='-fPIC -shared' |
| 6899 | ;; |
| 6900 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6901 | osf3* | osf4* | osf5*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6902 | lt_prog_compiler_wl='-Wl,' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6903 | # All OSF/1 code is PIC. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6904 | lt_prog_compiler_static='-non_shared' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6905 | ;; |
| 6906 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6907 | rdos*) |
| 6908 | lt_prog_compiler_static='-non_shared' |
| 6909 | ;; |
| 6910 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6911 | solaris*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6912 | lt_prog_compiler_pic='-KPIC' |
| 6913 | lt_prog_compiler_static='-Bstatic' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6914 | case $cc_basename in |
| 6915 | f77* | f90* | f95*) |
| 6916 | lt_prog_compiler_wl='-Qoption ld ';; |
| 6917 | *) |
| 6918 | lt_prog_compiler_wl='-Wl,';; |
| 6919 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6920 | ;; |
| 6921 | |
| 6922 | sunos4*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6923 | lt_prog_compiler_wl='-Qoption ld ' |
| 6924 | lt_prog_compiler_pic='-PIC' |
| 6925 | lt_prog_compiler_static='-Bstatic' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6926 | ;; |
| 6927 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6928 | sysv4 | sysv4.2uw2* | sysv4.3*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6929 | lt_prog_compiler_wl='-Wl,' |
| 6930 | lt_prog_compiler_pic='-KPIC' |
| 6931 | lt_prog_compiler_static='-Bstatic' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6932 | ;; |
| 6933 | |
| 6934 | sysv4*MP*) |
| 6935 | if test -d /usr/nec ;then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6936 | lt_prog_compiler_pic='-Kconform_pic' |
| 6937 | lt_prog_compiler_static='-Bstatic' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6938 | fi |
| 6939 | ;; |
| 6940 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6941 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 6942 | lt_prog_compiler_wl='-Wl,' |
| 6943 | lt_prog_compiler_pic='-KPIC' |
| 6944 | lt_prog_compiler_static='-Bstatic' |
| 6945 | ;; |
| 6946 | |
| 6947 | unicos*) |
| 6948 | lt_prog_compiler_wl='-Wl,' |
| 6949 | lt_prog_compiler_can_build_shared=no |
| 6950 | ;; |
| 6951 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6952 | uts4*) |
| 6953 | lt_prog_compiler_pic='-pic' |
| 6954 | lt_prog_compiler_static='-Bstatic' |
| 6955 | ;; |
| 6956 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6957 | *) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6958 | lt_prog_compiler_can_build_shared=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6959 | ;; |
| 6960 | esac |
| 6961 | fi |
| 6962 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6963 | case $host_os in |
| 6964 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 6965 | *djgpp*) |
| 6966 | lt_prog_compiler_pic= |
| 6967 | ;; |
| 6968 | *) |
| 6969 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 6970 | ;; |
| 6971 | esac |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6973 | $as_echo "$lt_prog_compiler_pic" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6974 | |
| 6975 | |
| 6976 | |
| 6977 | |
| 6978 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6979 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6980 | # |
| 6981 | # Check to make sure the PIC flag actually works. |
| 6982 | # |
| 6983 | if test -n "$lt_prog_compiler_pic"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6984 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6985 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6986 | if ${lt_cv_prog_compiler_pic_works+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6987 | $as_echo_n "(cached) " >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6988 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6989 | lt_cv_prog_compiler_pic_works=no |
| 6990 | ac_outfile=conftest.$ac_objext |
| 6991 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6992 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
| 6993 | # Insert the option either (1) after the last *FLAGS variable, or |
| 6994 | # (2) before a word containing "conftest.", or (3) at the end. |
| 6995 | # Note that $ac_compile itself does not contain backslashes and begins |
| 6996 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 6997 | # The option is referenced via a variable to avoid confusing sed. |
| 6998 | lt_compile=`echo "$ac_compile" | $SED \ |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6999 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7000 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 7001 | -e 's:$: $lt_compiler_flag:'` |
drh | e44b835 | 2015-10-30 14:25:57 +0000 | [diff] [blame] | 7002 | (eval echo "\"\$as_me:7002: $lt_compile\"" >&5) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7003 | (eval "$lt_compile" 2>conftest.err) |
| 7004 | ac_status=$? |
| 7005 | cat conftest.err >&5 |
drh | e44b835 | 2015-10-30 14:25:57 +0000 | [diff] [blame] | 7006 | echo "$as_me:7006: \$? = $ac_status" >&5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7007 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 7008 | # The compiler can only warn and ignore the option if not recognized |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7009 | # So say no if there are warnings other than the usual output. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7010 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7011 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 7012 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7013 | lt_cv_prog_compiler_pic_works=yes |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7014 | fi |
| 7015 | fi |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7016 | $RM conftest* |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7017 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7018 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 7019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 7020 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7021 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7022 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7023 | case $lt_prog_compiler_pic in |
| 7024 | "" | " "*) ;; |
| 7025 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 7026 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7027 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7028 | lt_prog_compiler_pic= |
| 7029 | lt_prog_compiler_can_build_shared=no |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7030 | fi |
| 7031 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7032 | fi |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7033 | |
| 7034 | |
| 7035 | |
| 7036 | |
| 7037 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7038 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7039 | # |
| 7040 | # Check to make sure the static flag actually works. |
| 7041 | # |
| 7042 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 7043 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 7044 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 7045 | if ${lt_cv_prog_compiler_static_works+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 7046 | $as_echo_n "(cached) " >&6 |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7047 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7048 | lt_cv_prog_compiler_static_works=no |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7049 | save_LDFLAGS="$LDFLAGS" |
| 7050 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7051 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7052 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 7053 | # The linker can only warn and ignore the option if not recognized |
| 7054 | # So say no if there are warnings |
| 7055 | if test -s conftest.err; then |
| 7056 | # Append any errors to the config.log. |
| 7057 | cat conftest.err 1>&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7058 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7059 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 7060 | if diff conftest.exp conftest.er2 >/dev/null; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7061 | lt_cv_prog_compiler_static_works=yes |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7062 | fi |
| 7063 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7064 | lt_cv_prog_compiler_static_works=yes |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7065 | fi |
| 7066 | fi |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7067 | $RM -r conftest* |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7068 | LDFLAGS="$save_LDFLAGS" |
| 7069 | |
| 7070 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 7071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 7072 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7073 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7074 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7075 | : |
| 7076 | else |
| 7077 | lt_prog_compiler_static= |
| 7078 | fi |
| 7079 | |
| 7080 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7081 | |
| 7082 | |
| 7083 | |
| 7084 | |
| 7085 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 7086 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 7087 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 7088 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 7089 | $as_echo_n "(cached) " >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7090 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7091 | lt_cv_prog_compiler_c_o=no |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7092 | $RM -r conftest 2>/dev/null |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7093 | mkdir conftest |
| 7094 | cd conftest |
| 7095 | mkdir out |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7096 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7097 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7098 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 7099 | # Insert the option either (1) after the last *FLAGS variable, or |
| 7100 | # (2) before a word containing "conftest.", or (3) at the end. |
| 7101 | # Note that $ac_compile itself does not contain backslashes and begins |
| 7102 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 7103 | lt_compile=`echo "$ac_compile" | $SED \ |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7104 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7105 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 7106 | -e 's:$: $lt_compiler_flag:'` |
drh | e44b835 | 2015-10-30 14:25:57 +0000 | [diff] [blame] | 7107 | (eval echo "\"\$as_me:7107: $lt_compile\"" >&5) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7108 | (eval "$lt_compile" 2>out/conftest.err) |
| 7109 | ac_status=$? |
| 7110 | cat out/conftest.err >&5 |
drh | e44b835 | 2015-10-30 14:25:57 +0000 | [diff] [blame] | 7111 | echo "$as_me:7111: \$? = $ac_status" >&5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7112 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 7113 | then |
| 7114 | # The compiler can only warn and ignore the option if not recognized |
| 7115 | # So say no if there are warnings |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7116 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7117 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 7118 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7119 | lt_cv_prog_compiler_c_o=yes |
| 7120 | fi |
| 7121 | fi |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7122 | chmod u+w . 2>&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7123 | $RM conftest* |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7124 | # SGI C++ compiler will create directory out/ii_files/ for |
| 7125 | # template instantiation |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7126 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 7127 | $RM out/* && rmdir out |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7128 | cd .. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7129 | $RM -r conftest |
| 7130 | $RM conftest* |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7131 | |
| 7132 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 7133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 7134 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7135 | |
| 7136 | |
| 7137 | |
| 7138 | |
| 7139 | |
| 7140 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 7141 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 7142 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 7143 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 7144 | $as_echo_n "(cached) " >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7145 | else |
| 7146 | lt_cv_prog_compiler_c_o=no |
| 7147 | $RM -r conftest 2>/dev/null |
| 7148 | mkdir conftest |
| 7149 | cd conftest |
| 7150 | mkdir out |
| 7151 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 7152 | |
| 7153 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 7154 | # Insert the option either (1) after the last *FLAGS variable, or |
| 7155 | # (2) before a word containing "conftest.", or (3) at the end. |
| 7156 | # Note that $ac_compile itself does not contain backslashes and begins |
| 7157 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 7158 | lt_compile=`echo "$ac_compile" | $SED \ |
| 7159 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 7160 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 7161 | -e 's:$: $lt_compiler_flag:'` |
drh | e44b835 | 2015-10-30 14:25:57 +0000 | [diff] [blame] | 7162 | (eval echo "\"\$as_me:7162: $lt_compile\"" >&5) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7163 | (eval "$lt_compile" 2>out/conftest.err) |
| 7164 | ac_status=$? |
| 7165 | cat out/conftest.err >&5 |
drh | e44b835 | 2015-10-30 14:25:57 +0000 | [diff] [blame] | 7166 | echo "$as_me:7166: \$? = $ac_status" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7167 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 7168 | then |
| 7169 | # The compiler can only warn and ignore the option if not recognized |
| 7170 | # So say no if there are warnings |
| 7171 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 7172 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 7173 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 7174 | lt_cv_prog_compiler_c_o=yes |
| 7175 | fi |
| 7176 | fi |
| 7177 | chmod u+w . 2>&5 |
| 7178 | $RM conftest* |
| 7179 | # SGI C++ compiler will create directory out/ii_files/ for |
| 7180 | # template instantiation |
| 7181 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 7182 | $RM out/* && rmdir out |
| 7183 | cd .. |
| 7184 | $RM -r conftest |
| 7185 | $RM conftest* |
| 7186 | |
| 7187 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 7188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 7189 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7190 | |
| 7191 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7192 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7193 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7194 | hard_links="nottested" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7195 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7196 | # do not overwrite the value of need_locks provided by the user |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 7197 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 7198 | $as_echo_n "checking if we can lock with hard links... " >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7199 | hard_links=yes |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7200 | $RM conftest* |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7201 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 7202 | touch conftest.a |
| 7203 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 7204 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 7205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 7206 | $as_echo "$hard_links" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7207 | if test "$hard_links" = no; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 7208 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 7209 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7210 | need_locks=warn |
| 7211 | fi |
| 7212 | else |
| 7213 | need_locks=no |
| 7214 | fi |
| 7215 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7216 | |
| 7217 | |
| 7218 | |
| 7219 | |
| 7220 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 7221 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 7222 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7223 | |
| 7224 | runpath_var= |
| 7225 | allow_undefined_flag= |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7226 | always_export_symbols=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7227 | archive_cmds= |
| 7228 | archive_expsym_cmds= |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7229 | compiler_needs_object=no |
| 7230 | enable_shared_with_static_runtimes=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7231 | export_dynamic_flag_spec= |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7232 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 7233 | hardcode_automatic=no |
| 7234 | hardcode_direct=no |
| 7235 | hardcode_direct_absolute=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7236 | hardcode_libdir_flag_spec= |
| 7237 | hardcode_libdir_flag_spec_ld= |
| 7238 | hardcode_libdir_separator= |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7239 | hardcode_minus_L=no |
| 7240 | hardcode_shlibpath_var=unsupported |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7241 | inherit_rpath=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7242 | link_all_deplibs=unknown |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7243 | module_cmds= |
| 7244 | module_expsym_cmds= |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7245 | old_archive_from_new_cmds= |
| 7246 | old_archive_from_expsyms_cmds= |
| 7247 | thread_safe_flag_spec= |
| 7248 | whole_archive_flag_spec= |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7249 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 7250 | # included in the symbol list |
| 7251 | include_expsyms= |
| 7252 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 7253 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 7254 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 7255 | # as well as any symbol that contains `d'. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7256 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7257 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 7258 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 7259 | # the symbol is explicitly referenced. Since portable code cannot |
| 7260 | # rely on this symbol name, it's probably fine to never include it in |
| 7261 | # preloaded symbol tables. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7262 | # Exclude shared library initialization/finalization symbols. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7263 | extract_expsyms_cmds= |
| 7264 | |
| 7265 | case $host_os in |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 7266 | cygwin* | mingw* | pw32* | cegcc*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7267 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 7268 | # When not using gcc, we currently assume that we are using |
| 7269 | # Microsoft Visual C++. |
| 7270 | if test "$GCC" != yes; then |
| 7271 | with_gnu_ld=no |
| 7272 | fi |
| 7273 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7274 | interix*) |
| 7275 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 7276 | with_gnu_ld=yes |
| 7277 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7278 | openbsd*) |
| 7279 | with_gnu_ld=no |
| 7280 | ;; |
| 7281 | esac |
| 7282 | |
| 7283 | ld_shlibs=yes |
| 7284 | if test "$with_gnu_ld" = yes; then |
| 7285 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 7286 | wlarc='${wl}' |
| 7287 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7288 | # Set some defaults for GNU ld with shared library support. These |
| 7289 | # are reset later if shared libraries are not supported. Putting them |
| 7290 | # here allows them to be overridden if necessary. |
| 7291 | runpath_var=LD_RUN_PATH |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7292 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7293 | export_dynamic_flag_spec='${wl}--export-dynamic' |
| 7294 | # ancient GNU ld didn't support --whole-archive et. al. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7295 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then |
| 7296 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 7297 | else |
| 7298 | whole_archive_flag_spec= |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7299 | fi |
| 7300 | supports_anon_versioning=no |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7301 | case `$LD -v 2>&1` in |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7302 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 7303 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 7304 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 7305 | *\ 2.11.*) ;; # other 2.11 versions |
| 7306 | *) supports_anon_versioning=yes ;; |
| 7307 | esac |
| 7308 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7309 | # See if GNU ld supports shared libraries. |
| 7310 | case $host_os in |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7311 | aix[3-9]*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7312 | # On AIX/PPC, the GNU linker is very broken |
| 7313 | if test "$host_cpu" != ia64; then |
| 7314 | ld_shlibs=no |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7315 | cat <<_LT_EOF 1>&2 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7316 | |
| 7317 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 7318 | *** to be unable to reliably create shared libraries on AIX. |
| 7319 | *** Therefore, libtool is disabling shared libraries support. If you |
| 7320 | *** really care for shared libraries, you may want to modify your PATH |
| 7321 | *** so that a non-GNU linker is found, and then restart. |
| 7322 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7323 | _LT_EOF |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7324 | fi |
| 7325 | ;; |
| 7326 | |
| 7327 | amigaos*) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7328 | case $host_cpu in |
| 7329 | powerpc) |
| 7330 | # see comment about AmigaOS4 .so support |
| 7331 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 7332 | archive_expsym_cmds='' |
| 7333 | ;; |
| 7334 | m68k) |
| 7335 | 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)' |
| 7336 | hardcode_libdir_flag_spec='-L$libdir' |
| 7337 | hardcode_minus_L=yes |
| 7338 | ;; |
| 7339 | esac |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7340 | ;; |
| 7341 | |
| 7342 | beos*) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7343 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7344 | allow_undefined_flag=unsupported |
| 7345 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 7346 | # support --undefined. This deserves some investigation. FIXME |
| 7347 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 7348 | else |
| 7349 | ld_shlibs=no |
| 7350 | fi |
| 7351 | ;; |
| 7352 | |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 7353 | cygwin* | mingw* | pw32* | cegcc*) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7354 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7355 | # as there is no search path for DLLs. |
| 7356 | hardcode_libdir_flag_spec='-L$libdir' |
| 7357 | allow_undefined_flag=unsupported |
| 7358 | always_export_symbols=no |
| 7359 | enable_shared_with_static_runtimes=yes |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7360 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7361 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7362 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7363 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7364 | # If the export-symbols file already is a .def file (1st line |
| 7365 | # is EXPORTS), use it as is; otherwise, prepend... |
| 7366 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 7367 | cp $export_symbols $output_objdir/$soname.def; |
| 7368 | else |
| 7369 | echo EXPORTS > $output_objdir/$soname.def; |
| 7370 | cat $export_symbols >> $output_objdir/$soname.def; |
| 7371 | fi~ |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7372 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7373 | else |
| 7374 | ld_shlibs=no |
| 7375 | fi |
| 7376 | ;; |
| 7377 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7378 | interix[3-9]*) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7379 | hardcode_direct=no |
| 7380 | hardcode_shlibpath_var=no |
| 7381 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 7382 | export_dynamic_flag_spec='${wl}-E' |
| 7383 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 7384 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 7385 | # default) and relocated if they conflict, which is a slow very memory |
| 7386 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 7387 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 7388 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 7389 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 7390 | 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' |
| 7391 | ;; |
| 7392 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7393 | gnu* | linux* | tpf* | k*bsd*-gnu) |
| 7394 | tmp_diet=no |
| 7395 | if test "$host_os" = linux-dietlibc; then |
| 7396 | case $cc_basename in |
| 7397 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) |
| 7398 | esac |
| 7399 | fi |
| 7400 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ |
| 7401 | && test "$tmp_diet" = no |
| 7402 | then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7403 | tmp_addflag= |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7404 | tmp_sharedflag='-shared' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7405 | case $cc_basename,$host_cpu in |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7406 | pgcc*) # Portland Group C compiler |
| 7407 | 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' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7408 | tmp_addflag=' $pic_flag' |
| 7409 | ;; |
| 7410 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7411 | 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' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7412 | tmp_addflag=' $pic_flag -Mnomain' ;; |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7413 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7414 | tmp_addflag=' -i_dynamic' ;; |
| 7415 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 7416 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 7417 | ifc* | ifort*) # Intel Fortran compiler |
| 7418 | tmp_addflag=' -nofor_main' ;; |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 7419 | lf95*) # Lahey Fortran 8.1 |
| 7420 | whole_archive_flag_spec= |
| 7421 | tmp_sharedflag='--shared' ;; |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7422 | xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
| 7423 | tmp_sharedflag='-qmkshrobj' |
| 7424 | tmp_addflag= ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7425 | esac |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7426 | case `$CC -V 2>&1 | sed 5q` in |
| 7427 | *Sun\ C*) # Sun C 5.9 |
| 7428 | 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' |
| 7429 | compiler_needs_object=yes |
| 7430 | tmp_sharedflag='-G' ;; |
| 7431 | *Sun\ F*) # Sun Fortran 8.3 |
| 7432 | tmp_sharedflag='-G' ;; |
| 7433 | esac |
| 7434 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7435 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7436 | if test "x$supports_anon_versioning" = xyes; then |
| 7437 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 7438 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 7439 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 7440 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 7441 | fi |
| 7442 | |
| 7443 | case $cc_basename in |
| 7444 | xlf*) |
| 7445 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
| 7446 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' |
| 7447 | hardcode_libdir_flag_spec= |
| 7448 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
| 7449 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' |
| 7450 | if test "x$supports_anon_versioning" = xyes; then |
| 7451 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 7452 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 7453 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 7454 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' |
| 7455 | fi |
| 7456 | ;; |
| 7457 | esac |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7458 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7459 | ld_shlibs=no |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7460 | fi |
| 7461 | ;; |
| 7462 | |
| 7463 | netbsd*) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7464 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7465 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 7466 | wlarc= |
| 7467 | else |
| 7468 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 7469 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 7470 | fi |
| 7471 | ;; |
| 7472 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7473 | solaris*) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7474 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7475 | ld_shlibs=no |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7476 | cat <<_LT_EOF 1>&2 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7477 | |
| 7478 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 7479 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 7480 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 7481 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 7482 | *** your PATH or compiler configuration so that the native linker is |
| 7483 | *** used, and then restart. |
| 7484 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7485 | _LT_EOF |
| 7486 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7487 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 7488 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 7489 | else |
| 7490 | ld_shlibs=no |
| 7491 | fi |
| 7492 | ;; |
| 7493 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7494 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 7495 | case `$LD -v 2>&1` in |
| 7496 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 7497 | ld_shlibs=no |
| 7498 | cat <<_LT_EOF 1>&2 |
| 7499 | |
| 7500 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 7501 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 7502 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 7503 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 7504 | *** your PATH or compiler configuration so that the native linker is |
| 7505 | *** used, and then restart. |
| 7506 | |
| 7507 | _LT_EOF |
| 7508 | ;; |
| 7509 | *) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7510 | # For security reasons, it is highly recommended that you always |
| 7511 | # use absolute paths for naming shared libraries, and exclude the |
| 7512 | # DT_RUNPATH tag from executables and libraries. But doing so |
| 7513 | # requires that you compile everything twice, which is a pain. |
| 7514 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 7515 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 7516 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 7517 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7518 | else |
| 7519 | ld_shlibs=no |
| 7520 | fi |
| 7521 | ;; |
| 7522 | esac |
| 7523 | ;; |
| 7524 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7525 | sunos4*) |
| 7526 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 7527 | wlarc= |
| 7528 | hardcode_direct=yes |
| 7529 | hardcode_shlibpath_var=no |
| 7530 | ;; |
| 7531 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7532 | *) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7533 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7534 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 7535 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 7536 | else |
| 7537 | ld_shlibs=no |
| 7538 | fi |
| 7539 | ;; |
| 7540 | esac |
| 7541 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7542 | if test "$ld_shlibs" = no; then |
| 7543 | runpath_var= |
| 7544 | hardcode_libdir_flag_spec= |
| 7545 | export_dynamic_flag_spec= |
| 7546 | whole_archive_flag_spec= |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7547 | fi |
| 7548 | else |
| 7549 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 7550 | case $host_os in |
| 7551 | aix3*) |
| 7552 | allow_undefined_flag=unsupported |
| 7553 | always_export_symbols=yes |
| 7554 | 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' |
| 7555 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 7556 | # are no directories specified by -L. |
| 7557 | hardcode_minus_L=yes |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7558 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7559 | # Neither direct hardcoding nor static linking is supported with a |
| 7560 | # broken collect2. |
| 7561 | hardcode_direct=unsupported |
| 7562 | fi |
| 7563 | ;; |
| 7564 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7565 | aix[4-9]*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7566 | if test "$host_cpu" = ia64; then |
| 7567 | # On IA64, the linker does run time linking by default, so we don't |
| 7568 | # have to do anything special. |
| 7569 | aix_use_runtimelinking=no |
| 7570 | exp_sym_flag='-Bexport' |
| 7571 | no_entry_flag="" |
| 7572 | else |
| 7573 | # If we're using GNU nm, then we don't want the "-C" option. |
| 7574 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7575 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
| 7576 | 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' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7577 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7578 | 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' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7579 | fi |
| 7580 | aix_use_runtimelinking=no |
| 7581 | |
| 7582 | # Test if we are trying to use run time linking or normal |
| 7583 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 7584 | # need to do runtime linking. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7585 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7586 | for ld_flag in $LDFLAGS; do |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7587 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 7588 | aix_use_runtimelinking=yes |
| 7589 | break |
| 7590 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7591 | done |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7592 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7593 | esac |
| 7594 | |
| 7595 | exp_sym_flag='-bexport' |
| 7596 | no_entry_flag='-bnoentry' |
| 7597 | fi |
| 7598 | |
| 7599 | # When large executables or shared objects are built, AIX ld can |
| 7600 | # have problems creating the table of contents. If linking a library |
| 7601 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 7602 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 7603 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 7604 | |
| 7605 | archive_cmds='' |
| 7606 | hardcode_direct=yes |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7607 | hardcode_direct_absolute=yes |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7608 | hardcode_libdir_separator=':' |
| 7609 | link_all_deplibs=yes |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7610 | file_list_spec='${wl}-f,' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7611 | |
| 7612 | if test "$GCC" = yes; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7613 | case $host_os in aix4.[012]|aix4.[012].*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7614 | # We only want to do this on AIX 4.2 and lower, the check |
| 7615 | # below for broken collect2 doesn't work under 4.3+ |
| 7616 | collect2name=`${CC} -print-prog-name=collect2` |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7617 | if test -f "$collect2name" && |
| 7618 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7619 | then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7620 | # We have reworked collect2 |
| 7621 | : |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7622 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7623 | # We have old collect2 |
| 7624 | hardcode_direct=unsupported |
| 7625 | # It fails to find uninstalled libraries when the uninstalled |
| 7626 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 7627 | # to unsupported forces relinking |
| 7628 | hardcode_minus_L=yes |
| 7629 | hardcode_libdir_flag_spec='-L$libdir' |
| 7630 | hardcode_libdir_separator= |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7631 | fi |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7632 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7633 | esac |
| 7634 | shared_flag='-shared' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7635 | if test "$aix_use_runtimelinking" = yes; then |
| 7636 | shared_flag="$shared_flag "'${wl}-G' |
| 7637 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7638 | else |
| 7639 | # not using gcc |
| 7640 | if test "$host_cpu" = ia64; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7641 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 7642 | # chokes on -Wl,-G. The following line is correct: |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7643 | shared_flag='-G' |
| 7644 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7645 | if test "$aix_use_runtimelinking" = yes; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7646 | shared_flag='${wl}-G' |
| 7647 | else |
| 7648 | shared_flag='${wl}-bM:SRE' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7649 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7650 | fi |
| 7651 | fi |
| 7652 | |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 7653 | export_dynamic_flag_spec='${wl}-bexpall' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7654 | # It seems that -bexpall does not export symbols beginning with |
| 7655 | # underscore (_), so it is better to generate a list of symbols to export. |
| 7656 | always_export_symbols=yes |
| 7657 | if test "$aix_use_runtimelinking" = yes; then |
| 7658 | # Warning - without using the other runtime loading flags (-brtl), |
| 7659 | # -berok will link without error, but may produce a broken library. |
| 7660 | allow_undefined_flag='-berok' |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7661 | # Determine the default libpath from the value encoded in an |
| 7662 | # empty executable. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 7663 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7664 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7665 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7666 | int |
| 7667 | main () |
| 7668 | { |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7669 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7670 | ; |
| 7671 | return 0; |
| 7672 | } |
| 7673 | _ACEOF |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 7674 | if ac_fn_c_try_link "$LINENO"; then : |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7675 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7676 | lt_aix_libpath_sed=' |
| 7677 | /Import File Strings/,/^$/ { |
| 7678 | /^0/ { |
| 7679 | s/^0 *\(.*\)$/\1/ |
| 7680 | p |
| 7681 | } |
| 7682 | }' |
| 7683 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7684 | # Check for a 64-bit object if we didn't find anything. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7685 | if test -z "$aix_libpath"; then |
| 7686 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 7687 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7688 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 7689 | rm -f core conftest.err conftest.$ac_objext \ |
| 7690 | conftest$ac_exeext conftest.$ac_ext |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7691 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7692 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7693 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 7694 | 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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
| 7695 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7696 | if test "$host_cpu" = ia64; then |
| 7697 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 7698 | allow_undefined_flag="-z nodefs" |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7699 | 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" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7700 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7701 | # Determine the default libpath from the value encoded in an |
| 7702 | # empty executable. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 7703 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7704 | /* end confdefs.h. */ |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7705 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7706 | int |
| 7707 | main () |
| 7708 | { |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7709 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7710 | ; |
| 7711 | return 0; |
| 7712 | } |
| 7713 | _ACEOF |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 7714 | if ac_fn_c_try_link "$LINENO"; then : |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7715 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7716 | lt_aix_libpath_sed=' |
| 7717 | /Import File Strings/,/^$/ { |
| 7718 | /^0/ { |
| 7719 | s/^0 *\(.*\)$/\1/ |
| 7720 | p |
| 7721 | } |
| 7722 | }' |
| 7723 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7724 | # Check for a 64-bit object if we didn't find anything. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7725 | if test -z "$aix_libpath"; then |
| 7726 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 7727 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7728 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 7729 | rm -f core conftest.err conftest.$ac_objext \ |
| 7730 | conftest$ac_exeext conftest.$ac_ext |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7731 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7732 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7733 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 7734 | # Warning - without using the other run time loading flags, |
| 7735 | # -berok will link without error, but may produce a broken library. |
| 7736 | no_undefined_flag=' ${wl}-bernotok' |
| 7737 | allow_undefined_flag=' ${wl}-berok' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7738 | # Exported symbols can be pulled into shared objects from archives |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7739 | whole_archive_flag_spec='$convenience' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7740 | archive_cmds_need_lc=yes |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7741 | # This is similar to how AIX traditionally builds its shared libraries. |
| 7742 | 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' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7743 | fi |
| 7744 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7745 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7746 | |
| 7747 | amigaos*) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7748 | case $host_cpu in |
| 7749 | powerpc) |
| 7750 | # see comment about AmigaOS4 .so support |
| 7751 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 7752 | archive_expsym_cmds='' |
| 7753 | ;; |
| 7754 | m68k) |
| 7755 | 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)' |
| 7756 | hardcode_libdir_flag_spec='-L$libdir' |
| 7757 | hardcode_minus_L=yes |
| 7758 | ;; |
| 7759 | esac |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7760 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7761 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7762 | bsdi[45]*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7763 | export_dynamic_flag_spec=-rdynamic |
| 7764 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7765 | |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 7766 | cygwin* | mingw* | pw32* | cegcc*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7767 | # When not using gcc, we currently assume that we are using |
| 7768 | # Microsoft Visual C++. |
| 7769 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 7770 | # no search path for DLLs. |
| 7771 | hardcode_libdir_flag_spec=' ' |
| 7772 | allow_undefined_flag=unsupported |
| 7773 | # Tell ltmain to make .lib files, not .a files. |
| 7774 | libext=lib |
| 7775 | # Tell ltmain to make .dll files, not .so files. |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7776 | shrext_cmds=".dll" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7777 | # FIXME: Setting linknames here is a bad hack. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7778 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7779 | # The linker will automatically build a .lib file if we build a DLL. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7780 | old_archive_from_new_cmds='true' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7781 | # FIXME: Should let the user specify the lib program. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7782 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7783 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 7784 | enable_shared_with_static_runtimes=yes |
| 7785 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7786 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7787 | darwin* | rhapsody*) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7788 | |
| 7789 | |
| 7790 | archive_cmds_need_lc=no |
| 7791 | hardcode_direct=no |
| 7792 | hardcode_automatic=yes |
| 7793 | hardcode_shlibpath_var=unsupported |
| 7794 | whole_archive_flag_spec='' |
| 7795 | link_all_deplibs=yes |
| 7796 | allow_undefined_flag="$_lt_dar_allow_undefined" |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 7797 | case $cc_basename in |
| 7798 | ifort*) _lt_dar_can_shared=yes ;; |
| 7799 | *) _lt_dar_can_shared=$GCC ;; |
| 7800 | esac |
| 7801 | if test "$_lt_dar_can_shared" = "yes"; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7802 | output_verbose_link_cmd=echo |
| 7803 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
| 7804 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
| 7805 | 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}" |
| 7806 | 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}" |
| 7807 | |
| 7808 | else |
| 7809 | ld_shlibs=no |
| 7810 | fi |
| 7811 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7812 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7813 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7814 | dgux*) |
| 7815 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 7816 | hardcode_libdir_flag_spec='-L$libdir' |
| 7817 | hardcode_shlibpath_var=no |
| 7818 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7819 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7820 | freebsd1*) |
| 7821 | ld_shlibs=no |
| 7822 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7823 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7824 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 7825 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 7826 | # does not break anything, and helps significantly (at the cost of a little |
| 7827 | # extra space). |
| 7828 | freebsd2.2*) |
| 7829 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 7830 | hardcode_libdir_flag_spec='-R$libdir' |
| 7831 | hardcode_direct=yes |
| 7832 | hardcode_shlibpath_var=no |
| 7833 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7834 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7835 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 7836 | freebsd2*) |
| 7837 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 7838 | hardcode_direct=yes |
| 7839 | hardcode_minus_L=yes |
| 7840 | hardcode_shlibpath_var=no |
| 7841 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7842 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7843 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7844 | freebsd* | dragonfly*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7845 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 7846 | hardcode_libdir_flag_spec='-R$libdir' |
| 7847 | hardcode_direct=yes |
| 7848 | hardcode_shlibpath_var=no |
| 7849 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7850 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7851 | hpux9*) |
| 7852 | if test "$GCC" = yes; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7853 | 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' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7854 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7855 | 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' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7856 | fi |
| 7857 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 7858 | hardcode_libdir_separator=: |
| 7859 | hardcode_direct=yes |
| 7860 | |
| 7861 | # hardcode_minus_L: Not really in the search PATH, |
| 7862 | # but as the default location of the library. |
| 7863 | hardcode_minus_L=yes |
| 7864 | export_dynamic_flag_spec='${wl}-E' |
| 7865 | ;; |
| 7866 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7867 | hpux10*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7868 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7869 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 7870 | else |
| 7871 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 7872 | fi |
| 7873 | if test "$with_gnu_ld" = no; then |
| 7874 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7875 | hardcode_libdir_flag_spec_ld='+b $libdir' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7876 | hardcode_libdir_separator=: |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7877 | hardcode_direct=yes |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7878 | hardcode_direct_absolute=yes |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7879 | export_dynamic_flag_spec='${wl}-E' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7880 | # hardcode_minus_L: Not really in the search PATH, |
| 7881 | # but as the default location of the library. |
| 7882 | hardcode_minus_L=yes |
| 7883 | fi |
| 7884 | ;; |
| 7885 | |
| 7886 | hpux11*) |
| 7887 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 7888 | case $host_cpu in |
| 7889 | hppa*64*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7890 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 7891 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7892 | ia64*) |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 7893 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7894 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7895 | *) |
| 7896 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 7897 | ;; |
| 7898 | esac |
| 7899 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7900 | case $host_cpu in |
| 7901 | hppa*64*) |
| 7902 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 7903 | ;; |
| 7904 | ia64*) |
| 7905 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7906 | ;; |
| 7907 | *) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7908 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7909 | ;; |
| 7910 | esac |
| 7911 | fi |
| 7912 | if test "$with_gnu_ld" = no; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7913 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 7914 | hardcode_libdir_separator=: |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7915 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7916 | case $host_cpu in |
| 7917 | hppa*64*|ia64*) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7918 | hardcode_direct=no |
| 7919 | hardcode_shlibpath_var=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7920 | ;; |
| 7921 | *) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7922 | hardcode_direct=yes |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7923 | hardcode_direct_absolute=yes |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7924 | export_dynamic_flag_spec='${wl}-E' |
| 7925 | |
| 7926 | # hardcode_minus_L: Not really in the search PATH, |
| 7927 | # but as the default location of the library. |
| 7928 | hardcode_minus_L=yes |
| 7929 | ;; |
| 7930 | esac |
| 7931 | fi |
| 7932 | ;; |
| 7933 | |
| 7934 | irix5* | irix6* | nonstopux*) |
| 7935 | if test "$GCC" = yes; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7936 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 7937 | # Try to use the -exported_symbol ld option, if it does not |
| 7938 | # work, assume that -exports_file does not work either and |
| 7939 | # implicitly export all symbols. |
| 7940 | save_LDFLAGS="$LDFLAGS" |
| 7941 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 7942 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7943 | /* end confdefs.h. */ |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7944 | int foo(void) {} |
| 7945 | _ACEOF |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 7946 | if ac_fn_c_try_link "$LINENO"; then : |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7947 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' |
| 7948 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7949 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 7950 | rm -f core conftest.err conftest.$ac_objext \ |
| 7951 | conftest$ac_exeext conftest.$ac_ext |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7952 | LDFLAGS="$save_LDFLAGS" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7953 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7954 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' |
| 7955 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7956 | fi |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7957 | archive_cmds_need_lc='no' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7958 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 7959 | hardcode_libdir_separator=: |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7960 | inherit_rpath=yes |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7961 | link_all_deplibs=yes |
| 7962 | ;; |
| 7963 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7964 | netbsd*) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7965 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7966 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 7967 | else |
| 7968 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 7969 | fi |
| 7970 | hardcode_libdir_flag_spec='-R$libdir' |
| 7971 | hardcode_direct=yes |
| 7972 | hardcode_shlibpath_var=no |
| 7973 | ;; |
| 7974 | |
| 7975 | newsos6) |
| 7976 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 7977 | hardcode_direct=yes |
| 7978 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 7979 | hardcode_libdir_separator=: |
| 7980 | hardcode_shlibpath_var=no |
| 7981 | ;; |
| 7982 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7983 | *nto* | *qnx*) |
| 7984 | ;; |
| 7985 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7986 | openbsd*) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7987 | if test -f /usr/libexec/ld.so; then |
| 7988 | hardcode_direct=yes |
| 7989 | hardcode_shlibpath_var=no |
| 7990 | hardcode_direct_absolute=yes |
| 7991 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 7992 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 7993 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
| 7994 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 7995 | export_dynamic_flag_spec='${wl}-E' |
| 7996 | else |
| 7997 | case $host_os in |
| 7998 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 7999 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 8000 | hardcode_libdir_flag_spec='-R$libdir' |
| 8001 | ;; |
| 8002 | *) |
| 8003 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 8004 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 8005 | ;; |
| 8006 | esac |
| 8007 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8008 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8009 | ld_shlibs=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8010 | fi |
| 8011 | ;; |
| 8012 | |
| 8013 | os2*) |
| 8014 | hardcode_libdir_flag_spec='-L$libdir' |
| 8015 | hardcode_minus_L=yes |
| 8016 | allow_undefined_flag=unsupported |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8017 | 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' |
| 8018 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8019 | ;; |
| 8020 | |
| 8021 | osf3*) |
| 8022 | if test "$GCC" = yes; then |
| 8023 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8024 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8025 | else |
| 8026 | allow_undefined_flag=' -expect_unresolved \*' |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8027 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8028 | fi |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8029 | archive_cmds_need_lc='no' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8030 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 8031 | hardcode_libdir_separator=: |
| 8032 | ;; |
| 8033 | |
| 8034 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 8035 | if test "$GCC" = yes; then |
| 8036 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8037 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8038 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 8039 | else |
| 8040 | allow_undefined_flag=' -expect_unresolved \*' |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8041 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' |
| 8042 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ |
| 8043 | $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8044 | |
| 8045 | # Both c and cxx compiler support -rpath directly |
| 8046 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 8047 | fi |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8048 | archive_cmds_need_lc='no' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8049 | hardcode_libdir_separator=: |
| 8050 | ;; |
| 8051 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8052 | solaris*) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8053 | no_undefined_flag=' -z defs' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8054 | if test "$GCC" = yes; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8055 | wlarc='${wl}' |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8056 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8057 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 8058 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8059 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8060 | case `$CC -V 2>&1` in |
| 8061 | *"Compilers 5.0"*) |
| 8062 | wlarc='' |
| 8063 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8064 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 8065 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' |
| 8066 | ;; |
| 8067 | *) |
| 8068 | wlarc='${wl}' |
| 8069 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8070 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 8071 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
| 8072 | ;; |
| 8073 | esac |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8074 | fi |
| 8075 | hardcode_libdir_flag_spec='-R$libdir' |
| 8076 | hardcode_shlibpath_var=no |
| 8077 | case $host_os in |
| 8078 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8079 | *) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8080 | # The compiler driver will combine and reorder linker options, |
| 8081 | # but understands `-z linker_flag'. GCC discards it without `$wl', |
| 8082 | # but is careful enough not to reorder. |
| 8083 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 8084 | if test "$GCC" = yes; then |
| 8085 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
| 8086 | else |
| 8087 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' |
| 8088 | fi |
| 8089 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8090 | esac |
| 8091 | link_all_deplibs=yes |
| 8092 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8093 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8094 | sunos4*) |
| 8095 | if test "x$host_vendor" = xsequent; then |
| 8096 | # Use $CC to link under sequent, because it throws in some extra .o |
| 8097 | # files that make .init and .fini sections work. |
| 8098 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8099 | else |
| 8100 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 8101 | fi |
| 8102 | hardcode_libdir_flag_spec='-L$libdir' |
| 8103 | hardcode_direct=yes |
| 8104 | hardcode_minus_L=yes |
| 8105 | hardcode_shlibpath_var=no |
| 8106 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8107 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8108 | sysv4) |
| 8109 | case $host_vendor in |
| 8110 | sni) |
| 8111 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8112 | hardcode_direct=yes # is this really true??? |
| 8113 | ;; |
| 8114 | siemens) |
| 8115 | ## LD is ld it makes a PLAMLIB |
| 8116 | ## CC just makes a GrossModule. |
| 8117 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 8118 | reload_cmds='$CC -r -o $output$reload_objs' |
| 8119 | hardcode_direct=no |
| 8120 | ;; |
| 8121 | motorola) |
| 8122 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8123 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 8124 | ;; |
| 8125 | esac |
| 8126 | runpath_var='LD_RUN_PATH' |
| 8127 | hardcode_shlibpath_var=no |
| 8128 | ;; |
| 8129 | |
| 8130 | sysv4.3*) |
| 8131 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8132 | hardcode_shlibpath_var=no |
| 8133 | export_dynamic_flag_spec='-Bexport' |
| 8134 | ;; |
| 8135 | |
| 8136 | sysv4*MP*) |
| 8137 | if test -d /usr/nec; then |
| 8138 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8139 | hardcode_shlibpath_var=no |
| 8140 | runpath_var=LD_RUN_PATH |
| 8141 | hardcode_runpath_var=yes |
| 8142 | ld_shlibs=yes |
| 8143 | fi |
| 8144 | ;; |
| 8145 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8146 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8147 | no_undefined_flag='${wl}-z,text' |
| 8148 | archive_cmds_need_lc=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8149 | hardcode_shlibpath_var=no |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8150 | runpath_var='LD_RUN_PATH' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8151 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8152 | if test "$GCC" = yes; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8153 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8154 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8155 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8156 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8157 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8158 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8159 | ;; |
| 8160 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8161 | sysv5* | sco3.2v5* | sco5v6*) |
| 8162 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 8163 | # link with -lc, and that would cause any symbols used from libc to |
| 8164 | # always be unresolved, which means just about no library would |
| 8165 | # ever link correctly. If we're not using GNU ld we use -z text |
| 8166 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 8167 | # as -z defs. |
| 8168 | no_undefined_flag='${wl}-z,text' |
| 8169 | allow_undefined_flag='${wl}-z,nodefs' |
| 8170 | archive_cmds_need_lc=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8171 | hardcode_shlibpath_var=no |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8172 | hardcode_libdir_flag_spec='${wl}-R,$libdir' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8173 | hardcode_libdir_separator=':' |
| 8174 | link_all_deplibs=yes |
| 8175 | export_dynamic_flag_spec='${wl}-Bexport' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8176 | runpath_var='LD_RUN_PATH' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8177 | |
| 8178 | if test "$GCC" = yes; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8179 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8180 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8181 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8182 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8183 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8184 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8185 | ;; |
| 8186 | |
| 8187 | uts4*) |
| 8188 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8189 | hardcode_libdir_flag_spec='-L$libdir' |
| 8190 | hardcode_shlibpath_var=no |
| 8191 | ;; |
| 8192 | |
| 8193 | *) |
| 8194 | ld_shlibs=no |
| 8195 | ;; |
| 8196 | esac |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8197 | |
| 8198 | if test x$host_vendor = xsni; then |
| 8199 | case $host in |
| 8200 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 8201 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 8202 | ;; |
| 8203 | esac |
| 8204 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8205 | fi |
| 8206 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 8207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 8208 | $as_echo "$ld_shlibs" >&6; } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8209 | test "$ld_shlibs" = no && can_build_shared=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8210 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8211 | with_gnu_ld=$with_gnu_ld |
| 8212 | |
| 8213 | |
danielk1977 | 33a1478 | 2008-08-04 14:50:05 +0000 | [diff] [blame] | 8214 | |
| 8215 | |
| 8216 | |
| 8217 | |
| 8218 | |
| 8219 | |
| 8220 | |
| 8221 | |
| 8222 | |
| 8223 | |
| 8224 | |
| 8225 | |
| 8226 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8227 | # |
| 8228 | # Do we need to explicitly link libc? |
| 8229 | # |
| 8230 | case "x$archive_cmds_need_lc" in |
| 8231 | x|xyes) |
| 8232 | # Assume -lc should be added |
| 8233 | archive_cmds_need_lc=yes |
| 8234 | |
| 8235 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 8236 | case $archive_cmds in |
| 8237 | *'~'*) |
| 8238 | # FIXME: we may have to deal with multi-command sequences. |
| 8239 | ;; |
| 8240 | '$CC '*) |
| 8241 | # Test whether the compiler implicitly links with -lc since on some |
| 8242 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 8243 | # to ld, don't add -lc before -lgcc. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 8244 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 8245 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8246 | $RM conftest* |
| 8247 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8248 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 8249 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8250 | (eval $ac_compile) 2>&5 |
| 8251 | ac_status=$? |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 8252 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 8253 | test $ac_status = 0; } 2>conftest.err; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8254 | soname=conftest |
| 8255 | lib=conftest |
| 8256 | libobjs=conftest.$ac_objext |
| 8257 | deplibs= |
| 8258 | wl=$lt_prog_compiler_wl |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8259 | pic_flag=$lt_prog_compiler_pic |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8260 | compiler_flags=-v |
| 8261 | linker_flags=-v |
| 8262 | verstring= |
| 8263 | output_objdir=. |
| 8264 | libname=conftest |
| 8265 | lt_save_allow_undefined_flag=$allow_undefined_flag |
| 8266 | allow_undefined_flag= |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 8267 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8268 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8269 | ac_status=$? |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 8270 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 8271 | test $ac_status = 0; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8272 | then |
| 8273 | archive_cmds_need_lc=no |
| 8274 | else |
| 8275 | archive_cmds_need_lc=yes |
| 8276 | fi |
| 8277 | allow_undefined_flag=$lt_save_allow_undefined_flag |
| 8278 | else |
| 8279 | cat conftest.err 1>&5 |
| 8280 | fi |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8281 | $RM conftest* |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 8282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 8283 | $as_echo "$archive_cmds_need_lc" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8284 | ;; |
| 8285 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8286 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8287 | ;; |
| 8288 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8289 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8290 | |
danielk1977 | 33a1478 | 2008-08-04 14:50:05 +0000 | [diff] [blame] | 8291 | |
| 8292 | |
| 8293 | |
| 8294 | |
| 8295 | |
| 8296 | |
| 8297 | |
| 8298 | |
| 8299 | |
| 8300 | |
| 8301 | |
| 8302 | |
| 8303 | |
| 8304 | |
| 8305 | |
| 8306 | |
| 8307 | |
| 8308 | |
| 8309 | |
| 8310 | |
| 8311 | |
| 8312 | |
| 8313 | |
| 8314 | |
| 8315 | |
| 8316 | |
| 8317 | |
| 8318 | |
| 8319 | |
| 8320 | |
| 8321 | |
| 8322 | |
| 8323 | |
| 8324 | |
| 8325 | |
| 8326 | |
| 8327 | |
| 8328 | |
| 8329 | |
| 8330 | |
| 8331 | |
| 8332 | |
| 8333 | |
| 8334 | |
| 8335 | |
| 8336 | |
| 8337 | |
| 8338 | |
| 8339 | |
| 8340 | |
| 8341 | |
| 8342 | |
| 8343 | |
| 8344 | |
| 8345 | |
| 8346 | |
| 8347 | |
| 8348 | |
| 8349 | |
| 8350 | |
| 8351 | |
| 8352 | |
| 8353 | |
| 8354 | |
| 8355 | |
| 8356 | |
| 8357 | |
| 8358 | |
| 8359 | |
| 8360 | |
| 8361 | |
| 8362 | |
| 8363 | |
| 8364 | |
| 8365 | |
| 8366 | |
| 8367 | |
| 8368 | |
| 8369 | |
| 8370 | |
| 8371 | |
| 8372 | |
| 8373 | |
| 8374 | |
| 8375 | |
| 8376 | |
| 8377 | |
| 8378 | |
| 8379 | |
| 8380 | |
| 8381 | |
| 8382 | |
| 8383 | |
| 8384 | |
| 8385 | |
| 8386 | |
| 8387 | |
| 8388 | |
| 8389 | |
| 8390 | |
| 8391 | |
| 8392 | |
| 8393 | |
| 8394 | |
| 8395 | |
| 8396 | |
| 8397 | |
| 8398 | |
| 8399 | |
| 8400 | |
| 8401 | |
| 8402 | |
| 8403 | |
| 8404 | |
| 8405 | |
| 8406 | |
| 8407 | |
| 8408 | |
| 8409 | |
| 8410 | |
| 8411 | |
| 8412 | |
| 8413 | |
| 8414 | |
| 8415 | |
| 8416 | |
| 8417 | |
| 8418 | |
| 8419 | |
| 8420 | |
| 8421 | |
| 8422 | |
| 8423 | |
| 8424 | |
| 8425 | |
| 8426 | |
| 8427 | |
| 8428 | |
| 8429 | |
| 8430 | |
| 8431 | |
| 8432 | |
| 8433 | |
| 8434 | |
| 8435 | |
| 8436 | |
| 8437 | |
| 8438 | |
| 8439 | |
| 8440 | |
| 8441 | |
| 8442 | |
| 8443 | |
| 8444 | |
| 8445 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 8446 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 8447 | $as_echo_n "checking dynamic linker characteristics... " >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8448 | |
| 8449 | if test "$GCC" = yes; then |
| 8450 | case $host_os in |
| 8451 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; |
| 8452 | *) lt_awk_arg="/^libraries:/" ;; |
| 8453 | esac |
| 8454 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 8455 | if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then |
| 8456 | # if the path contains ";" then we assume it to be the separator |
| 8457 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 8458 | # assumed that no part of a normal pathname contains ";" but that should |
| 8459 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 8460 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` |
| 8461 | else |
| 8462 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 8463 | fi |
| 8464 | # Ok, now we have the path, separated by spaces, we can step through it |
| 8465 | # and add multilib dir if necessary. |
| 8466 | lt_tmp_lt_search_path_spec= |
| 8467 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
| 8468 | for lt_sys_path in $lt_search_path_spec; do |
| 8469 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then |
| 8470 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" |
| 8471 | else |
| 8472 | test -d "$lt_sys_path" && \ |
| 8473 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
| 8474 | fi |
| 8475 | done |
| 8476 | lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' |
| 8477 | BEGIN {RS=" "; FS="/|\n";} { |
| 8478 | lt_foo=""; |
| 8479 | lt_count=0; |
| 8480 | for (lt_i = NF; lt_i > 0; lt_i--) { |
| 8481 | if ($lt_i != "" && $lt_i != ".") { |
| 8482 | if ($lt_i == "..") { |
| 8483 | lt_count++; |
| 8484 | } else { |
| 8485 | if (lt_count == 0) { |
| 8486 | lt_foo="/" $lt_i lt_foo; |
| 8487 | } else { |
| 8488 | lt_count--; |
| 8489 | } |
| 8490 | } |
| 8491 | } |
| 8492 | } |
| 8493 | if (lt_foo != "") { lt_freq[lt_foo]++; } |
| 8494 | if (lt_freq[lt_foo] == 1) { print lt_foo; } |
| 8495 | }'` |
| 8496 | sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` |
| 8497 | else |
| 8498 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 8499 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8500 | library_names_spec= |
| 8501 | libname_spec='lib$name' |
| 8502 | soname_spec= |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8503 | shrext_cmds=".so" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8504 | postinstall_cmds= |
| 8505 | postuninstall_cmds= |
| 8506 | finish_cmds= |
| 8507 | finish_eval= |
| 8508 | shlibpath_var= |
| 8509 | shlibpath_overrides_runpath=unknown |
| 8510 | version_type=none |
| 8511 | dynamic_linker="$host_os ld.so" |
| 8512 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8513 | need_lib_prefix=unknown |
| 8514 | hardcode_into_libs=no |
| 8515 | |
| 8516 | # when you set need_version to no, make sure it does not cause -set_version |
| 8517 | # flags to be left without arguments |
| 8518 | need_version=unknown |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8519 | |
| 8520 | case $host_os in |
| 8521 | aix3*) |
| 8522 | version_type=linux |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8523 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8524 | shlibpath_var=LIBPATH |
| 8525 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8526 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 8527 | soname_spec='${libname}${release}${shared_ext}$major' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8528 | ;; |
| 8529 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8530 | aix[4-9]*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8531 | version_type=linux |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8532 | need_lib_prefix=no |
| 8533 | need_version=no |
| 8534 | hardcode_into_libs=yes |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8535 | if test "$host_cpu" = ia64; then |
| 8536 | # AIX 5 supports IA64 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8537 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8538 | shlibpath_var=LD_LIBRARY_PATH |
| 8539 | else |
| 8540 | # With GCC up to 2.95.x, collect2 would create an import file |
| 8541 | # for dependence libraries. The import file would start with |
| 8542 | # the line `#! .'. This would cause the generated library to |
| 8543 | # depend on `.', always an invalid library. This was fixed in |
| 8544 | # development snapshots of GCC prior to 3.0. |
| 8545 | case $host_os in |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8546 | aix4 | aix4.[01] | aix4.[01].*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8547 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 8548 | echo ' yes ' |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8549 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8550 | : |
| 8551 | else |
| 8552 | can_build_shared=no |
| 8553 | fi |
| 8554 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8555 | esac |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8556 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 8557 | # soname into executable. Probably we can add versioning support to |
| 8558 | # collect2, so additional links can be useful in future. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8559 | if test "$aix_use_runtimelinking" = yes; then |
| 8560 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 8561 | # instead of lib<name>.a to let people know that these are not |
| 8562 | # typical AIX shared libraries. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8563 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8564 | else |
| 8565 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 8566 | # and later when we are not doing run time linking. |
| 8567 | library_names_spec='${libname}${release}.a $libname.a' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8568 | soname_spec='${libname}${release}${shared_ext}$major' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8569 | fi |
| 8570 | shlibpath_var=LIBPATH |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8571 | fi |
| 8572 | ;; |
| 8573 | |
| 8574 | amigaos*) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8575 | case $host_cpu in |
| 8576 | powerpc) |
| 8577 | # Since July 2007 AmigaOS4 officially supports .so libraries. |
| 8578 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
| 8579 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8580 | ;; |
| 8581 | m68k) |
| 8582 | library_names_spec='$libname.ixlibrary $libname.a' |
| 8583 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 8584 | 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' |
| 8585 | ;; |
| 8586 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8587 | ;; |
| 8588 | |
| 8589 | beos*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8590 | library_names_spec='${libname}${shared_ext}' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8591 | dynamic_linker="$host_os ld.so" |
| 8592 | shlibpath_var=LIBRARY_PATH |
| 8593 | ;; |
| 8594 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8595 | bsdi[45]*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8596 | version_type=linux |
| 8597 | need_version=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8598 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8599 | soname_spec='${libname}${release}${shared_ext}$major' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8600 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 8601 | shlibpath_var=LD_LIBRARY_PATH |
| 8602 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 8603 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 8604 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 8605 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 8606 | # libtool to hard-code these into programs |
| 8607 | ;; |
| 8608 | |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 8609 | cygwin* | mingw* | pw32* | cegcc*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8610 | version_type=windows |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8611 | shrext_cmds=".dll" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8612 | need_version=no |
| 8613 | need_lib_prefix=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8614 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8615 | case $GCC,$host_os in |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 8616 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8617 | library_names_spec='$libname.dll.a' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8618 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 8619 | postinstall_cmds='base_file=`basename \${file}`~ |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8620 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8621 | dldir=$destdir/`dirname \$dlpath`~ |
| 8622 | test -d \$dldir || mkdir -p \$dldir~ |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8623 | $install_prog $dir/$dlname \$dldir/$dlname~ |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8624 | chmod a+x \$dldir/$dlname~ |
| 8625 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 8626 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
| 8627 | fi' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8628 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8629 | dlpath=$dir/\$dldll~ |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8630 | $RM \$dlpath' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8631 | shlibpath_overrides_runpath=yes |
| 8632 | |
| 8633 | case $host_os in |
| 8634 | cygwin*) |
| 8635 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 8636 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 8637 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 8638 | ;; |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 8639 | mingw* | cegcc*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8640 | # MinGW DLLs use traditional 'lib' prefix |
| 8641 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8642 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 8643 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8644 | # It is most probably a Windows format PATH printed by |
| 8645 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 8646 | # path with ; separators, and with drive letters. We can handle the |
| 8647 | # drive letters (cygwin fileutils understands them), so leave them, |
| 8648 | # especially as we might pass files found there to a mingw objdump, |
| 8649 | # which wouldn't understand a cygwinified path. Ahh. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8650 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8651 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8652 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8653 | fi |
| 8654 | ;; |
| 8655 | pw32*) |
| 8656 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8657 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8658 | ;; |
| 8659 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8660 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8661 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8662 | *) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8663 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8664 | ;; |
| 8665 | esac |
| 8666 | dynamic_linker='Win32 ld.exe' |
| 8667 | # FIXME: first we should search . and the directory the executable is in |
| 8668 | shlibpath_var=PATH |
| 8669 | ;; |
| 8670 | |
| 8671 | darwin* | rhapsody*) |
| 8672 | dynamic_linker="$host_os dyld" |
| 8673 | version_type=darwin |
| 8674 | need_lib_prefix=no |
| 8675 | need_version=no |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8676 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8677 | soname_spec='${libname}${release}${major}$shared_ext' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8678 | shlibpath_overrides_runpath=yes |
| 8679 | shlibpath_var=DYLD_LIBRARY_PATH |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8680 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8681 | |
| 8682 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8683 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 8684 | ;; |
| 8685 | |
| 8686 | dgux*) |
| 8687 | version_type=linux |
| 8688 | need_lib_prefix=no |
| 8689 | need_version=no |
| 8690 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 8691 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8692 | shlibpath_var=LD_LIBRARY_PATH |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8693 | ;; |
| 8694 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8695 | freebsd1*) |
| 8696 | dynamic_linker=no |
| 8697 | ;; |
| 8698 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8699 | freebsd* | dragonfly*) |
| 8700 | # DragonFly does not have aout. When/if they implement a new |
| 8701 | # versioning mechanism, adjust this. |
| 8702 | if test -x /usr/bin/objformat; then |
| 8703 | objformat=`/usr/bin/objformat` |
| 8704 | else |
| 8705 | case $host_os in |
| 8706 | freebsd[123]*) objformat=aout ;; |
| 8707 | *) objformat=elf ;; |
| 8708 | esac |
| 8709 | fi |
| 8710 | # Handle Gentoo/FreeBSD as it was Linux |
| 8711 | case $host_vendor in |
| 8712 | gentoo) |
| 8713 | version_type=linux ;; |
| 8714 | *) |
| 8715 | version_type=freebsd-$objformat ;; |
| 8716 | esac |
| 8717 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8718 | case $version_type in |
| 8719 | freebsd-elf*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8720 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8721 | need_version=no |
| 8722 | need_lib_prefix=no |
| 8723 | ;; |
| 8724 | freebsd-*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8725 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8726 | need_version=yes |
| 8727 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8728 | linux) |
| 8729 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 8730 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8731 | need_lib_prefix=no |
| 8732 | need_version=no |
| 8733 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8734 | esac |
| 8735 | shlibpath_var=LD_LIBRARY_PATH |
| 8736 | case $host_os in |
| 8737 | freebsd2*) |
| 8738 | shlibpath_overrides_runpath=yes |
| 8739 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8740 | freebsd3.[01]* | freebsdelf3.[01]*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8741 | shlibpath_overrides_runpath=yes |
| 8742 | hardcode_into_libs=yes |
| 8743 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8744 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 8745 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8746 | shlibpath_overrides_runpath=no |
| 8747 | hardcode_into_libs=yes |
| 8748 | ;; |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8749 | *) # from 4.6 on, and DragonFly |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8750 | shlibpath_overrides_runpath=yes |
| 8751 | hardcode_into_libs=yes |
| 8752 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8753 | esac |
| 8754 | ;; |
| 8755 | |
| 8756 | gnu*) |
| 8757 | version_type=linux |
| 8758 | need_lib_prefix=no |
| 8759 | need_version=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8760 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 8761 | soname_spec='${libname}${release}${shared_ext}$major' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8762 | shlibpath_var=LD_LIBRARY_PATH |
| 8763 | hardcode_into_libs=yes |
| 8764 | ;; |
| 8765 | |
| 8766 | hpux9* | hpux10* | hpux11*) |
| 8767 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 8768 | # link against other versions. |
| 8769 | version_type=sunos |
| 8770 | need_lib_prefix=no |
| 8771 | need_version=no |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8772 | case $host_cpu in |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8773 | ia64*) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8774 | shrext_cmds='.so' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8775 | hardcode_into_libs=yes |
| 8776 | dynamic_linker="$host_os dld.so" |
| 8777 | shlibpath_var=LD_LIBRARY_PATH |
| 8778 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 8779 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8780 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8781 | if test "X$HPUX_IA64_MODE" = X32; then |
| 8782 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 8783 | else |
| 8784 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 8785 | fi |
| 8786 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 8787 | ;; |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8788 | hppa*64*) |
| 8789 | shrext_cmds='.sl' |
| 8790 | hardcode_into_libs=yes |
| 8791 | dynamic_linker="$host_os dld.sl" |
| 8792 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 8793 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 8794 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8795 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8796 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 8797 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 8798 | ;; |
| 8799 | *) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8800 | shrext_cmds='.sl' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8801 | dynamic_linker="$host_os dld.sl" |
| 8802 | shlibpath_var=SHLIB_PATH |
| 8803 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 8804 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8805 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8806 | ;; |
| 8807 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8808 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 8809 | postinstall_cmds='chmod 555 $lib' |
| 8810 | ;; |
| 8811 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8812 | interix[3-9]*) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8813 | version_type=linux |
| 8814 | need_lib_prefix=no |
| 8815 | need_version=no |
| 8816 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 8817 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8818 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 8819 | shlibpath_var=LD_LIBRARY_PATH |
| 8820 | shlibpath_overrides_runpath=no |
| 8821 | hardcode_into_libs=yes |
| 8822 | ;; |
| 8823 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8824 | irix5* | irix6* | nonstopux*) |
| 8825 | case $host_os in |
| 8826 | nonstopux*) version_type=nonstopux ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8827 | *) |
| 8828 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 8829 | version_type=linux |
| 8830 | else |
| 8831 | version_type=irix |
| 8832 | fi ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8833 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8834 | need_lib_prefix=no |
| 8835 | need_version=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8836 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8837 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8838 | case $host_os in |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8839 | irix5* | nonstopux*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8840 | libsuff= shlibsuff= |
| 8841 | ;; |
| 8842 | *) |
| 8843 | case $LD in # libtool.m4 will add one of these switches to LD |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8844 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 8845 | libsuff= shlibsuff= libmagic=32-bit;; |
| 8846 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 8847 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 8848 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 8849 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8850 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 8851 | esac |
| 8852 | ;; |
| 8853 | esac |
| 8854 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 8855 | shlibpath_overrides_runpath=no |
| 8856 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 8857 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8858 | hardcode_into_libs=yes |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8859 | ;; |
| 8860 | |
| 8861 | # No shared lib support for Linux oldld, aout, or coff. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8862 | linux*oldld* | linux*aout* | linux*coff*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8863 | dynamic_linker=no |
| 8864 | ;; |
| 8865 | |
| 8866 | # This must be Linux ELF. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8867 | linux* | k*bsd*-gnu) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8868 | version_type=linux |
| 8869 | need_lib_prefix=no |
| 8870 | need_version=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8871 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8872 | soname_spec='${libname}${release}${shared_ext}$major' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8873 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 8874 | shlibpath_var=LD_LIBRARY_PATH |
| 8875 | shlibpath_overrides_runpath=no |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8876 | # Some binutils ld are patched to set DT_RUNPATH |
| 8877 | save_LDFLAGS=$LDFLAGS |
| 8878 | save_libdir=$libdir |
| 8879 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ |
| 8880 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 8881 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8882 | /* end confdefs.h. */ |
| 8883 | |
| 8884 | int |
| 8885 | main () |
| 8886 | { |
| 8887 | |
| 8888 | ; |
| 8889 | return 0; |
| 8890 | } |
| 8891 | _ACEOF |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 8892 | if ac_fn_c_try_link "$LINENO"; then : |
| 8893 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8894 | shlibpath_overrides_runpath=yes |
| 8895 | fi |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8896 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 8897 | rm -f core conftest.err conftest.$ac_objext \ |
| 8898 | conftest$ac_exeext conftest.$ac_ext |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8899 | LDFLAGS=$save_LDFLAGS |
| 8900 | libdir=$save_libdir |
| 8901 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8902 | # This implies no fast_install, which is unacceptable. |
| 8903 | # Some rework will be needed to allow for fast_install |
| 8904 | # before this can be enabled. |
| 8905 | hardcode_into_libs=yes |
| 8906 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8907 | # Append ld.so.conf contents to the search path |
| 8908 | if test -f /etc/ld.so.conf; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8909 | 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' ' '` |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8910 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8911 | fi |
| 8912 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8913 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 8914 | # powerpc, because MkLinux only supported shared libraries with the |
| 8915 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 8916 | # most powerpc-linux boxes support dynamic linking these days and |
| 8917 | # people can always --disable-shared, the test was removed, and we |
| 8918 | # assume the GNU/Linux dynamic linker is in use. |
| 8919 | dynamic_linker='GNU/Linux ld.so' |
| 8920 | ;; |
| 8921 | |
| 8922 | netbsd*) |
| 8923 | version_type=sunos |
| 8924 | need_lib_prefix=no |
| 8925 | need_version=no |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8926 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8927 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8928 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 8929 | dynamic_linker='NetBSD (a.out) ld.so' |
| 8930 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8931 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 8932 | soname_spec='${libname}${release}${shared_ext}$major' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8933 | dynamic_linker='NetBSD ld.elf_so' |
| 8934 | fi |
| 8935 | shlibpath_var=LD_LIBRARY_PATH |
| 8936 | shlibpath_overrides_runpath=yes |
| 8937 | hardcode_into_libs=yes |
| 8938 | ;; |
| 8939 | |
| 8940 | newsos6) |
| 8941 | version_type=linux |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8942 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8943 | shlibpath_var=LD_LIBRARY_PATH |
| 8944 | shlibpath_overrides_runpath=yes |
| 8945 | ;; |
| 8946 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8947 | *nto* | *qnx*) |
| 8948 | version_type=qnx |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8949 | need_lib_prefix=no |
| 8950 | need_version=no |
| 8951 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8952 | soname_spec='${libname}${release}${shared_ext}$major' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8953 | shlibpath_var=LD_LIBRARY_PATH |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8954 | shlibpath_overrides_runpath=no |
| 8955 | hardcode_into_libs=yes |
| 8956 | dynamic_linker='ldqnx.so' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8957 | ;; |
| 8958 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8959 | openbsd*) |
| 8960 | version_type=sunos |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8961 | sys_lib_dlsearch_path_spec="/usr/lib" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8962 | need_lib_prefix=no |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8963 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 8964 | case $host_os in |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8965 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 8966 | *) need_version=no ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8967 | esac |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8968 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 8969 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 8970 | shlibpath_var=LD_LIBRARY_PATH |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8971 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8972 | case $host_os in |
| 8973 | openbsd2.[89] | openbsd2.[89].*) |
| 8974 | shlibpath_overrides_runpath=no |
| 8975 | ;; |
| 8976 | *) |
| 8977 | shlibpath_overrides_runpath=yes |
| 8978 | ;; |
| 8979 | esac |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8980 | else |
| 8981 | shlibpath_overrides_runpath=yes |
| 8982 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8983 | ;; |
| 8984 | |
| 8985 | os2*) |
| 8986 | libname_spec='$name' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8987 | shrext_cmds=".dll" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8988 | need_lib_prefix=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8989 | library_names_spec='$libname${shared_ext} $libname.a' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8990 | dynamic_linker='OS/2 ld.exe' |
| 8991 | shlibpath_var=LIBPATH |
| 8992 | ;; |
| 8993 | |
| 8994 | osf3* | osf4* | osf5*) |
| 8995 | version_type=osf |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8996 | need_lib_prefix=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8997 | need_version=no |
| 8998 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8999 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9000 | shlibpath_var=LD_LIBRARY_PATH |
| 9001 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 9002 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 9003 | ;; |
| 9004 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9005 | rdos*) |
| 9006 | dynamic_linker=no |
| 9007 | ;; |
| 9008 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9009 | solaris*) |
| 9010 | version_type=linux |
| 9011 | need_lib_prefix=no |
| 9012 | need_version=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9013 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9014 | soname_spec='${libname}${release}${shared_ext}$major' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9015 | shlibpath_var=LD_LIBRARY_PATH |
| 9016 | shlibpath_overrides_runpath=yes |
| 9017 | hardcode_into_libs=yes |
| 9018 | # ldd complains unless libraries are executable |
| 9019 | postinstall_cmds='chmod +x $lib' |
| 9020 | ;; |
| 9021 | |
| 9022 | sunos4*) |
| 9023 | version_type=sunos |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9024 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9025 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 9026 | shlibpath_var=LD_LIBRARY_PATH |
| 9027 | shlibpath_overrides_runpath=yes |
| 9028 | if test "$with_gnu_ld" = yes; then |
| 9029 | need_lib_prefix=no |
| 9030 | fi |
| 9031 | need_version=yes |
| 9032 | ;; |
| 9033 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9034 | sysv4 | sysv4.3*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9035 | version_type=linux |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9036 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9037 | soname_spec='${libname}${release}${shared_ext}$major' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9038 | shlibpath_var=LD_LIBRARY_PATH |
| 9039 | case $host_vendor in |
| 9040 | sni) |
| 9041 | shlibpath_overrides_runpath=no |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9042 | need_lib_prefix=no |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9043 | runpath_var=LD_RUN_PATH |
| 9044 | ;; |
| 9045 | siemens) |
| 9046 | need_lib_prefix=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9047 | ;; |
| 9048 | motorola) |
| 9049 | need_lib_prefix=no |
| 9050 | need_version=no |
| 9051 | shlibpath_overrides_runpath=no |
| 9052 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 9053 | ;; |
| 9054 | esac |
| 9055 | ;; |
| 9056 | |
| 9057 | sysv4*MP*) |
| 9058 | if test -d /usr/nec ;then |
| 9059 | version_type=linux |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9060 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 9061 | soname_spec='$libname${shared_ext}.$major' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9062 | shlibpath_var=LD_LIBRARY_PATH |
| 9063 | fi |
| 9064 | ;; |
| 9065 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9066 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 9067 | version_type=freebsd-elf |
| 9068 | need_lib_prefix=no |
| 9069 | need_version=no |
| 9070 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9071 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9072 | shlibpath_var=LD_LIBRARY_PATH |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9073 | shlibpath_overrides_runpath=yes |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9074 | hardcode_into_libs=yes |
| 9075 | if test "$with_gnu_ld" = yes; then |
| 9076 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9077 | else |
| 9078 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9079 | case $host_os in |
| 9080 | sco3.2v5*) |
| 9081 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 9082 | ;; |
| 9083 | esac |
| 9084 | fi |
| 9085 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 9086 | ;; |
| 9087 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9088 | tpf*) |
| 9089 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
| 9090 | version_type=linux |
| 9091 | need_lib_prefix=no |
| 9092 | need_version=no |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 9093 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9094 | shlibpath_var=LD_LIBRARY_PATH |
| 9095 | shlibpath_overrides_runpath=no |
| 9096 | hardcode_into_libs=yes |
| 9097 | ;; |
| 9098 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9099 | uts4*) |
| 9100 | version_type=linux |
| 9101 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9102 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9103 | shlibpath_var=LD_LIBRARY_PATH |
| 9104 | ;; |
| 9105 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9106 | *) |
| 9107 | dynamic_linker=no |
| 9108 | ;; |
| 9109 | esac |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9111 | $as_echo "$dynamic_linker" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9112 | test "$dynamic_linker" = no && can_build_shared=no |
| 9113 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9114 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 9115 | if test "$GCC" = yes; then |
| 9116 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 9117 | fi |
| 9118 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9119 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
| 9120 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" |
| 9121 | fi |
| 9122 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
| 9123 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" |
| 9124 | fi |
| 9125 | |
| 9126 | |
| 9127 | |
| 9128 | |
| 9129 | |
| 9130 | |
| 9131 | |
| 9132 | |
| 9133 | |
| 9134 | |
| 9135 | |
| 9136 | |
| 9137 | |
| 9138 | |
| 9139 | |
| 9140 | |
| 9141 | |
| 9142 | |
| 9143 | |
| 9144 | |
| 9145 | |
| 9146 | |
| 9147 | |
| 9148 | |
| 9149 | |
| 9150 | |
| 9151 | |
| 9152 | |
| 9153 | |
| 9154 | |
| 9155 | |
| 9156 | |
| 9157 | |
| 9158 | |
| 9159 | |
| 9160 | |
| 9161 | |
| 9162 | |
| 9163 | |
| 9164 | |
| 9165 | |
| 9166 | |
| 9167 | |
| 9168 | |
| 9169 | |
| 9170 | |
| 9171 | |
| 9172 | |
| 9173 | |
| 9174 | |
| 9175 | |
| 9176 | |
| 9177 | |
| 9178 | |
| 9179 | |
| 9180 | |
| 9181 | |
| 9182 | |
| 9183 | |
| 9184 | |
| 9185 | |
| 9186 | |
| 9187 | |
| 9188 | |
| 9189 | |
| 9190 | |
| 9191 | |
| 9192 | |
| 9193 | |
| 9194 | |
| 9195 | |
| 9196 | |
| 9197 | |
| 9198 | |
| 9199 | |
| 9200 | |
| 9201 | |
| 9202 | |
| 9203 | |
| 9204 | |
| 9205 | |
| 9206 | |
| 9207 | |
| 9208 | |
| 9209 | |
| 9210 | |
| 9211 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9212 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9213 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9214 | hardcode_action= |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9215 | if test -n "$hardcode_libdir_flag_spec" || |
| 9216 | test -n "$runpath_var" || |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9217 | test "X$hardcode_automatic" = "Xyes" ; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9218 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9219 | # We can hardcode non-existent directories. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9220 | if test "$hardcode_direct" != no && |
| 9221 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 9222 | # have to relink, otherwise we might link with an installed library |
| 9223 | # when we should be linking with a yet-to-be-installed one |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9224 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9225 | test "$hardcode_minus_L" != no; then |
| 9226 | # Linking always hardcodes the temporary library directory. |
| 9227 | hardcode_action=relink |
| 9228 | else |
| 9229 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 9230 | hardcode_action=immediate |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9231 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9232 | else |
| 9233 | # We cannot hardcode anything, or else we can only hardcode existing |
| 9234 | # directories. |
| 9235 | hardcode_action=unsupported |
| 9236 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9238 | $as_echo "$hardcode_action" >&6; } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9239 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9240 | if test "$hardcode_action" = relink || |
| 9241 | test "$inherit_rpath" = yes; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9242 | # Fast installation is not supported |
| 9243 | enable_fast_install=no |
| 9244 | elif test "$shlibpath_overrides_runpath" = yes || |
| 9245 | test "$enable_shared" = no; then |
| 9246 | # Fast installation is not necessary |
| 9247 | enable_fast_install=needless |
| 9248 | fi |
| 9249 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9250 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9251 | |
| 9252 | |
| 9253 | |
| 9254 | |
| 9255 | if test "x$enable_dlopen" != xyes; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9256 | enable_dlopen=unknown |
| 9257 | enable_dlopen_self=unknown |
| 9258 | enable_dlopen_self_static=unknown |
| 9259 | else |
| 9260 | lt_cv_dlopen=no |
| 9261 | lt_cv_dlopen_libs= |
| 9262 | |
| 9263 | case $host_os in |
| 9264 | beos*) |
| 9265 | lt_cv_dlopen="load_add_on" |
| 9266 | lt_cv_dlopen_libs= |
| 9267 | lt_cv_dlopen_self=yes |
| 9268 | ;; |
| 9269 | |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 9270 | mingw* | pw32* | cegcc*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9271 | lt_cv_dlopen="LoadLibrary" |
| 9272 | lt_cv_dlopen_libs= |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9273 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9274 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9275 | cygwin*) |
| 9276 | lt_cv_dlopen="dlopen" |
| 9277 | lt_cv_dlopen_libs= |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9278 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9279 | |
| 9280 | darwin*) |
| 9281 | # if libdl is installed we need to link against it |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9282 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9283 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9284 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9285 | $as_echo_n "(cached) " >&6 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9286 | else |
| 9287 | ac_check_lib_save_LIBS=$LIBS |
| 9288 | LIBS="-ldl $LIBS" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9289 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9290 | /* end confdefs.h. */ |
| 9291 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9292 | /* Override any GCC internal prototype to avoid an error. |
| 9293 | Use char because int might match the return type of a GCC |
| 9294 | builtin and then its argument prototype would still apply. */ |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9295 | #ifdef __cplusplus |
| 9296 | extern "C" |
| 9297 | #endif |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9298 | char dlopen (); |
| 9299 | int |
| 9300 | main () |
| 9301 | { |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9302 | return dlopen (); |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9303 | ; |
| 9304 | return 0; |
| 9305 | } |
| 9306 | _ACEOF |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9307 | if ac_fn_c_try_link "$LINENO"; then : |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9308 | ac_cv_lib_dl_dlopen=yes |
| 9309 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9310 | ac_cv_lib_dl_dlopen=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9311 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9312 | rm -f core conftest.err conftest.$ac_objext \ |
| 9313 | conftest$ac_exeext conftest.$ac_ext |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9314 | LIBS=$ac_check_lib_save_LIBS |
| 9315 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9317 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9318 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9319 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 9320 | else |
| 9321 | |
| 9322 | lt_cv_dlopen="dyld" |
| 9323 | lt_cv_dlopen_libs= |
| 9324 | lt_cv_dlopen_self=yes |
| 9325 | |
| 9326 | fi |
| 9327 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9328 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9329 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9330 | *) |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9331 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
| 9332 | if test "x$ac_cv_func_shl_load" = xyes; then : |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9333 | lt_cv_dlopen="shl_load" |
| 9334 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9335 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9336 | $as_echo_n "checking for shl_load in -ldld... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9337 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9338 | $as_echo_n "(cached) " >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9339 | else |
| 9340 | ac_check_lib_save_LIBS=$LIBS |
| 9341 | LIBS="-ldld $LIBS" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9342 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9343 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9344 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9345 | /* Override any GCC internal prototype to avoid an error. |
| 9346 | Use char because int might match the return type of a GCC |
| 9347 | builtin and then its argument prototype would still apply. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9348 | #ifdef __cplusplus |
| 9349 | extern "C" |
| 9350 | #endif |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9351 | char shl_load (); |
| 9352 | int |
| 9353 | main () |
| 9354 | { |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9355 | return shl_load (); |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9356 | ; |
| 9357 | return 0; |
| 9358 | } |
| 9359 | _ACEOF |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9360 | if ac_fn_c_try_link "$LINENO"; then : |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9361 | ac_cv_lib_dld_shl_load=yes |
| 9362 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9363 | ac_cv_lib_dld_shl_load=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9364 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9365 | rm -f core conftest.err conftest.$ac_objext \ |
| 9366 | conftest$ac_exeext conftest.$ac_ext |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9367 | LIBS=$ac_check_lib_save_LIBS |
| 9368 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9370 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9371 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9372 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9373 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9374 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
| 9375 | if test "x$ac_cv_func_dlopen" = xyes; then : |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9376 | lt_cv_dlopen="dlopen" |
| 9377 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9378 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9379 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9380 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9381 | $as_echo_n "(cached) " >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9382 | else |
| 9383 | ac_check_lib_save_LIBS=$LIBS |
| 9384 | LIBS="-ldl $LIBS" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9385 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9386 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9387 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9388 | /* Override any GCC internal prototype to avoid an error. |
| 9389 | Use char because int might match the return type of a GCC |
| 9390 | builtin and then its argument prototype would still apply. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9391 | #ifdef __cplusplus |
| 9392 | extern "C" |
| 9393 | #endif |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9394 | char dlopen (); |
| 9395 | int |
| 9396 | main () |
| 9397 | { |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9398 | return dlopen (); |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9399 | ; |
| 9400 | return 0; |
| 9401 | } |
| 9402 | _ACEOF |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9403 | if ac_fn_c_try_link "$LINENO"; then : |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9404 | ac_cv_lib_dl_dlopen=yes |
| 9405 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9406 | ac_cv_lib_dl_dlopen=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9407 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9408 | rm -f core conftest.err conftest.$ac_objext \ |
| 9409 | conftest$ac_exeext conftest.$ac_ext |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9410 | LIBS=$ac_check_lib_save_LIBS |
| 9411 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9413 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9414 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9415 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 9416 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9417 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9418 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9419 | if ${ac_cv_lib_svld_dlopen+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9420 | $as_echo_n "(cached) " >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9421 | else |
| 9422 | ac_check_lib_save_LIBS=$LIBS |
| 9423 | LIBS="-lsvld $LIBS" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9424 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9425 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9426 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9427 | /* Override any GCC internal prototype to avoid an error. |
| 9428 | Use char because int might match the return type of a GCC |
| 9429 | builtin and then its argument prototype would still apply. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9430 | #ifdef __cplusplus |
| 9431 | extern "C" |
| 9432 | #endif |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9433 | char dlopen (); |
| 9434 | int |
| 9435 | main () |
| 9436 | { |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9437 | return dlopen (); |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9438 | ; |
| 9439 | return 0; |
| 9440 | } |
| 9441 | _ACEOF |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9442 | if ac_fn_c_try_link "$LINENO"; then : |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9443 | ac_cv_lib_svld_dlopen=yes |
| 9444 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9445 | ac_cv_lib_svld_dlopen=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9446 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9447 | rm -f core conftest.err conftest.$ac_objext \ |
| 9448 | conftest$ac_exeext conftest.$ac_ext |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9449 | LIBS=$ac_check_lib_save_LIBS |
| 9450 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9452 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9453 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9454 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9455 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9456 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9457 | $as_echo_n "checking for dld_link in -ldld... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9458 | if ${ac_cv_lib_dld_dld_link+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9459 | $as_echo_n "(cached) " >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9460 | else |
| 9461 | ac_check_lib_save_LIBS=$LIBS |
| 9462 | LIBS="-ldld $LIBS" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9463 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9464 | /* end confdefs.h. */ |
| 9465 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9466 | /* Override any GCC internal prototype to avoid an error. |
| 9467 | Use char because int might match the return type of a GCC |
| 9468 | builtin and then its argument prototype would still apply. */ |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9469 | #ifdef __cplusplus |
| 9470 | extern "C" |
| 9471 | #endif |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9472 | char dld_link (); |
| 9473 | int |
| 9474 | main () |
| 9475 | { |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9476 | return dld_link (); |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9477 | ; |
| 9478 | return 0; |
| 9479 | } |
| 9480 | _ACEOF |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9481 | if ac_fn_c_try_link "$LINENO"; then : |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9482 | ac_cv_lib_dld_dld_link=yes |
| 9483 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9484 | ac_cv_lib_dld_dld_link=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9485 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9486 | rm -f core conftest.err conftest.$ac_objext \ |
| 9487 | conftest$ac_exeext conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9488 | LIBS=$ac_check_lib_save_LIBS |
| 9489 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9491 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9492 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9493 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9494 | fi |
| 9495 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9496 | |
| 9497 | fi |
| 9498 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9499 | |
| 9500 | fi |
| 9501 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9502 | |
| 9503 | fi |
| 9504 | |
| 9505 | |
| 9506 | fi |
| 9507 | |
| 9508 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9509 | fi |
| 9510 | |
| 9511 | ;; |
| 9512 | esac |
| 9513 | |
| 9514 | if test "x$lt_cv_dlopen" != xno; then |
| 9515 | enable_dlopen=yes |
| 9516 | else |
| 9517 | enable_dlopen=no |
| 9518 | fi |
| 9519 | |
| 9520 | case $lt_cv_dlopen in |
| 9521 | dlopen) |
| 9522 | save_CPPFLAGS="$CPPFLAGS" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9523 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9524 | |
| 9525 | save_LDFLAGS="$LDFLAGS" |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9526 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9527 | |
| 9528 | save_LIBS="$LIBS" |
| 9529 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 9530 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9531 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9532 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9533 | if ${lt_cv_dlopen_self+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9534 | $as_echo_n "(cached) " >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9535 | else |
| 9536 | if test "$cross_compiling" = yes; then : |
| 9537 | lt_cv_dlopen_self=cross |
| 9538 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9539 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9540 | lt_status=$lt_dlunknown |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9541 | cat > conftest.$ac_ext <<_LT_EOF |
drh | e44b835 | 2015-10-30 14:25:57 +0000 | [diff] [blame] | 9542 | #line 9542 "configure" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9543 | #include "confdefs.h" |
| 9544 | |
| 9545 | #if HAVE_DLFCN_H |
| 9546 | #include <dlfcn.h> |
| 9547 | #endif |
| 9548 | |
| 9549 | #include <stdio.h> |
| 9550 | |
| 9551 | #ifdef RTLD_GLOBAL |
| 9552 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 9553 | #else |
| 9554 | # ifdef DL_GLOBAL |
| 9555 | # define LT_DLGLOBAL DL_GLOBAL |
| 9556 | # else |
| 9557 | # define LT_DLGLOBAL 0 |
| 9558 | # endif |
| 9559 | #endif |
| 9560 | |
| 9561 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 9562 | find out it does not work in some platform. */ |
| 9563 | #ifndef LT_DLLAZY_OR_NOW |
| 9564 | # ifdef RTLD_LAZY |
| 9565 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 9566 | # else |
| 9567 | # ifdef DL_LAZY |
| 9568 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 9569 | # else |
| 9570 | # ifdef RTLD_NOW |
| 9571 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 9572 | # else |
| 9573 | # ifdef DL_NOW |
| 9574 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 9575 | # else |
| 9576 | # define LT_DLLAZY_OR_NOW 0 |
| 9577 | # endif |
| 9578 | # endif |
| 9579 | # endif |
| 9580 | # endif |
| 9581 | #endif |
| 9582 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9583 | void fnord() { int i=42;} |
| 9584 | int main () |
| 9585 | { |
| 9586 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 9587 | int status = $lt_dlunknown; |
| 9588 | |
| 9589 | if (self) |
| 9590 | { |
| 9591 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 9592 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 9593 | /* dlclose (self); */ |
| 9594 | } |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9595 | else |
| 9596 | puts (dlerror ()); |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9597 | |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 9598 | return status; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9599 | } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9600 | _LT_EOF |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9601 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9602 | (eval $ac_link) 2>&5 |
| 9603 | ac_status=$? |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9604 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 9605 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9606 | (./conftest; exit; ) >&5 2>/dev/null |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9607 | lt_status=$? |
| 9608 | case x$lt_status in |
| 9609 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 9610 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9611 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9612 | esac |
| 9613 | else : |
| 9614 | # compilation failed |
| 9615 | lt_cv_dlopen_self=no |
| 9616 | fi |
| 9617 | fi |
| 9618 | rm -fr conftest* |
| 9619 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9620 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9621 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9623 | $as_echo "$lt_cv_dlopen_self" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9624 | |
| 9625 | if test "x$lt_cv_dlopen_self" = xyes; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9626 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9627 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9628 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9629 | if ${lt_cv_dlopen_self_static+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9630 | $as_echo_n "(cached) " >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9631 | else |
| 9632 | if test "$cross_compiling" = yes; then : |
| 9633 | lt_cv_dlopen_self_static=cross |
| 9634 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9635 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9636 | lt_status=$lt_dlunknown |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9637 | cat > conftest.$ac_ext <<_LT_EOF |
drh | e44b835 | 2015-10-30 14:25:57 +0000 | [diff] [blame] | 9638 | #line 9638 "configure" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9639 | #include "confdefs.h" |
| 9640 | |
| 9641 | #if HAVE_DLFCN_H |
| 9642 | #include <dlfcn.h> |
| 9643 | #endif |
| 9644 | |
| 9645 | #include <stdio.h> |
| 9646 | |
| 9647 | #ifdef RTLD_GLOBAL |
| 9648 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 9649 | #else |
| 9650 | # ifdef DL_GLOBAL |
| 9651 | # define LT_DLGLOBAL DL_GLOBAL |
| 9652 | # else |
| 9653 | # define LT_DLGLOBAL 0 |
| 9654 | # endif |
| 9655 | #endif |
| 9656 | |
| 9657 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 9658 | find out it does not work in some platform. */ |
| 9659 | #ifndef LT_DLLAZY_OR_NOW |
| 9660 | # ifdef RTLD_LAZY |
| 9661 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 9662 | # else |
| 9663 | # ifdef DL_LAZY |
| 9664 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 9665 | # else |
| 9666 | # ifdef RTLD_NOW |
| 9667 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 9668 | # else |
| 9669 | # ifdef DL_NOW |
| 9670 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 9671 | # else |
| 9672 | # define LT_DLLAZY_OR_NOW 0 |
| 9673 | # endif |
| 9674 | # endif |
| 9675 | # endif |
| 9676 | # endif |
| 9677 | #endif |
| 9678 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9679 | void fnord() { int i=42;} |
| 9680 | int main () |
| 9681 | { |
| 9682 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 9683 | int status = $lt_dlunknown; |
| 9684 | |
| 9685 | if (self) |
| 9686 | { |
| 9687 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 9688 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 9689 | /* dlclose (self); */ |
| 9690 | } |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9691 | else |
| 9692 | puts (dlerror ()); |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9693 | |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 9694 | return status; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9695 | } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9696 | _LT_EOF |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9697 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9698 | (eval $ac_link) 2>&5 |
| 9699 | ac_status=$? |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9700 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 9701 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9702 | (./conftest; exit; ) >&5 2>/dev/null |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9703 | lt_status=$? |
| 9704 | case x$lt_status in |
| 9705 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 9706 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9707 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9708 | esac |
| 9709 | else : |
| 9710 | # compilation failed |
| 9711 | lt_cv_dlopen_self_static=no |
| 9712 | fi |
| 9713 | fi |
| 9714 | rm -fr conftest* |
| 9715 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9716 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9717 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9719 | $as_echo "$lt_cv_dlopen_self_static" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9720 | fi |
| 9721 | |
| 9722 | CPPFLAGS="$save_CPPFLAGS" |
| 9723 | LDFLAGS="$save_LDFLAGS" |
| 9724 | LIBS="$save_LIBS" |
| 9725 | ;; |
| 9726 | esac |
| 9727 | |
| 9728 | case $lt_cv_dlopen_self in |
| 9729 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 9730 | *) enable_dlopen_self=unknown ;; |
| 9731 | esac |
| 9732 | |
| 9733 | case $lt_cv_dlopen_self_static in |
| 9734 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 9735 | *) enable_dlopen_self_static=unknown ;; |
| 9736 | esac |
| 9737 | fi |
| 9738 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9739 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9740 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9741 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9742 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9743 | |
| 9744 | |
| 9745 | |
| 9746 | |
| 9747 | |
| 9748 | |
| 9749 | |
| 9750 | |
| 9751 | |
| 9752 | |
| 9753 | |
| 9754 | |
| 9755 | striplib= |
| 9756 | old_striplib= |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9757 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9758 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9759 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
| 9760 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 9761 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9763 | $as_echo "yes" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9764 | else |
| 9765 | # FIXME - insert some real tests, host_os isn't really good enough |
| 9766 | case $host_os in |
| 9767 | darwin*) |
| 9768 | if test -n "$STRIP" ; then |
| 9769 | striplib="$STRIP -x" |
| 9770 | old_striplib="$STRIP -S" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9772 | $as_echo "yes" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9773 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9775 | $as_echo "no" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9776 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9777 | ;; |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9778 | *) |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9780 | $as_echo "no" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9781 | ;; |
| 9782 | esac |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9783 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9784 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9785 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9786 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9787 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9788 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9789 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9790 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9791 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9792 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9793 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9794 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9795 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9796 | # Report which library types will actually be built |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9798 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9800 | $as_echo "$can_build_shared" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9801 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9802 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9803 | $as_echo_n "checking whether to build shared libraries... " >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9804 | test "$can_build_shared" = "no" && enable_shared=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9805 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9806 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 9807 | # are all built from PIC. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9808 | case $host_os in |
| 9809 | aix3*) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9810 | test "$enable_shared" = yes && enable_static=no |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9811 | if test -n "$RANLIB"; then |
| 9812 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 9813 | postinstall_cmds='$RANLIB $lib' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9814 | fi |
| 9815 | ;; |
| 9816 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9817 | aix[4-9]*) |
| 9818 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 9819 | test "$enable_shared" = yes && enable_static=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9820 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9821 | ;; |
| 9822 | esac |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9824 | $as_echo "$enable_shared" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9825 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9826 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9827 | $as_echo_n "checking whether to build static libraries... " >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9828 | # Make sure either enable_shared or enable_static is yes. |
| 9829 | test "$enable_shared" = yes || enable_static=yes |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9831 | $as_echo "$enable_static" >&6; } |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9832 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9833 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9834 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9835 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9836 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9837 | ac_ext=c |
| 9838 | ac_cpp='$CPP $CPPFLAGS' |
| 9839 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 9840 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 9841 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 9842 | |
| 9843 | CC="$lt_save_CC" |
| 9844 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9845 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9846 | |
| 9847 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9848 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9849 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9850 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9851 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9852 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9853 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9854 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9855 | |
| 9856 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9857 | ac_config_commands="$ac_config_commands libtool" |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9858 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9859 | |
| 9860 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9861 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9862 | # Only expand once: |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9863 | |
| 9864 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9865 | # Find a good install program. We prefer a C program (faster), |
| 9866 | # so one script is as good as another. But avoid the broken or |
| 9867 | # incompatible versions: |
| 9868 | # SysV /etc/install, /usr/sbin/install |
| 9869 | # SunOS /usr/etc/install |
| 9870 | # IRIX /sbin/install |
| 9871 | # AIX /bin/install |
| 9872 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 9873 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 9874 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 9875 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 9876 | # OS/2's system install, which has a completely different semantic |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9877 | # ./install, which can be erroneously created by make from ./install.sh. |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9878 | # Reject install programs that cannot install multiple files. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9879 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9880 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9881 | if test -z "$INSTALL"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9882 | if ${ac_cv_path_install+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9883 | $as_echo_n "(cached) " >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9884 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9885 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9886 | for as_dir in $PATH |
| 9887 | do |
| 9888 | IFS=$as_save_IFS |
| 9889 | test -z "$as_dir" && as_dir=. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9890 | # Account for people who put trailing slashes in PATH elements. |
| 9891 | case $as_dir/ in #(( |
| 9892 | ./ | .// | /[cC]/* | \ |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9893 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9894 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9895 | /usr/ucb/* ) ;; |
| 9896 | *) |
| 9897 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 9898 | # Don't use installbsd from OSF since it installs stuff as root |
| 9899 | # by default. |
| 9900 | for ac_prog in ginstall scoinst install; do |
| 9901 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9902 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 9903 | if test $ac_prog = install && |
| 9904 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 9905 | # AIX install. It has an incompatible calling convention. |
| 9906 | : |
| 9907 | elif test $ac_prog = install && |
| 9908 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 9909 | # program-specific install script used by HP pwplus--don't use. |
| 9910 | : |
| 9911 | else |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9912 | rm -rf conftest.one conftest.two conftest.dir |
| 9913 | echo one > conftest.one |
| 9914 | echo two > conftest.two |
| 9915 | mkdir conftest.dir |
| 9916 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 9917 | test -s conftest.one && test -s conftest.two && |
| 9918 | test -s conftest.dir/conftest.one && |
| 9919 | test -s conftest.dir/conftest.two |
| 9920 | then |
| 9921 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 9922 | break 3 |
| 9923 | fi |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 9924 | fi |
| 9925 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9926 | done |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9927 | done |
| 9928 | ;; |
| 9929 | esac |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9930 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9931 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9932 | IFS=$as_save_IFS |
| 9933 | |
| 9934 | rm -rf conftest.one conftest.two conftest.dir |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9935 | |
| 9936 | fi |
| 9937 | if test "${ac_cv_path_install+set}" = set; then |
| 9938 | INSTALL=$ac_cv_path_install |
| 9939 | else |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9940 | # As a last resort, use the slow shell script. Don't cache a |
| 9941 | # value for INSTALL within a source directory, because that will |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9942 | # break other packages using the cache if that directory is |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9943 | # removed, or if the value is a relative name. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9944 | INSTALL=$ac_install_sh |
| 9945 | fi |
| 9946 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9948 | $as_echo "$INSTALL" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9949 | |
| 9950 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 9951 | # It thinks the first close brace ends the variable substitution. |
| 9952 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 9953 | |
| 9954 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 9955 | |
| 9956 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 9957 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9958 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9959 | ######### |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9960 | # Enable large file support (if special flags are necessary) |
| 9961 | # |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9962 | # Check whether --enable-largefile was given. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9963 | if test "${enable_largefile+set}" = set; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9964 | enableval=$enable_largefile; |
| 9965 | fi |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9966 | |
| 9967 | if test "$enable_largefile" != no; then |
| 9968 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9969 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9970 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9971 | if ${ac_cv_sys_largefile_CC+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9972 | $as_echo_n "(cached) " >&6 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 9973 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9974 | ac_cv_sys_largefile_CC=no |
| 9975 | if test "$GCC" != yes; then |
| 9976 | ac_save_CC=$CC |
| 9977 | while :; do |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9978 | # IRIX 6.2 and later do not support large files by default, |
| 9979 | # so use the C compiler's -n32 option if that helps. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9980 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9981 | /* end confdefs.h. */ |
| 9982 | #include <sys/types.h> |
| 9983 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 9984 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 9985 | since some C++ compilers masquerading as C compilers |
| 9986 | incorrectly reject 9223372036854775807. */ |
| 9987 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 9988 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 9989 | && LARGE_OFF_T % 2147483647 == 1) |
| 9990 | ? 1 : -1]; |
| 9991 | int |
| 9992 | main () |
| 9993 | { |
| 9994 | |
| 9995 | ; |
| 9996 | return 0; |
| 9997 | } |
| 9998 | _ACEOF |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9999 | if ac_fn_c_try_compile "$LINENO"; then : |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10000 | break |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10001 | fi |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10002 | rm -f core conftest.err conftest.$ac_objext |
| 10003 | CC="$CC -n32" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10004 | if ac_fn_c_try_compile "$LINENO"; then : |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10005 | ac_cv_sys_largefile_CC=' -n32'; break |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10006 | fi |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10007 | rm -f core conftest.err conftest.$ac_objext |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10008 | break |
| 10009 | done |
| 10010 | CC=$ac_save_CC |
| 10011 | rm -f conftest.$ac_ext |
| 10012 | fi |
| 10013 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10015 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10016 | if test "$ac_cv_sys_largefile_CC" != no; then |
| 10017 | CC=$CC$ac_cv_sys_largefile_CC |
| 10018 | fi |
| 10019 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10020 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10021 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10022 | if ${ac_cv_sys_file_offset_bits+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10023 | $as_echo_n "(cached) " >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10024 | else |
| 10025 | while :; do |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10026 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10027 | /* end confdefs.h. */ |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10028 | #include <sys/types.h> |
| 10029 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 10030 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 10031 | since some C++ compilers masquerading as C compilers |
| 10032 | incorrectly reject 9223372036854775807. */ |
| 10033 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 10034 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 10035 | && LARGE_OFF_T % 2147483647 == 1) |
| 10036 | ? 1 : -1]; |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10037 | int |
| 10038 | main () |
| 10039 | { |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10040 | |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10041 | ; |
| 10042 | return 0; |
| 10043 | } |
| 10044 | _ACEOF |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10045 | if ac_fn_c_try_compile "$LINENO"; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10046 | ac_cv_sys_file_offset_bits=no; break |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10047 | fi |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10048 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10049 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10050 | /* end confdefs.h. */ |
| 10051 | #define _FILE_OFFSET_BITS 64 |
| 10052 | #include <sys/types.h> |
| 10053 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 10054 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 10055 | since some C++ compilers masquerading as C compilers |
| 10056 | incorrectly reject 9223372036854775807. */ |
| 10057 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 10058 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 10059 | && LARGE_OFF_T % 2147483647 == 1) |
| 10060 | ? 1 : -1]; |
| 10061 | int |
| 10062 | main () |
| 10063 | { |
| 10064 | |
| 10065 | ; |
| 10066 | return 0; |
| 10067 | } |
| 10068 | _ACEOF |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10069 | if ac_fn_c_try_compile "$LINENO"; then : |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10070 | ac_cv_sys_file_offset_bits=64; break |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10071 | fi |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10072 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10073 | ac_cv_sys_file_offset_bits=unknown |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10074 | break |
| 10075 | done |
| 10076 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10078 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } |
| 10079 | case $ac_cv_sys_file_offset_bits in #( |
| 10080 | no | unknown) ;; |
| 10081 | *) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10082 | cat >>confdefs.h <<_ACEOF |
| 10083 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
| 10084 | _ACEOF |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10085 | ;; |
| 10086 | esac |
| 10087 | rm -rf conftest* |
| 10088 | if test $ac_cv_sys_file_offset_bits = unknown; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10089 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10090 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10091 | if ${ac_cv_sys_large_files+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10092 | $as_echo_n "(cached) " >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10093 | else |
| 10094 | while :; do |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10095 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10096 | /* end confdefs.h. */ |
| 10097 | #include <sys/types.h> |
| 10098 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 10099 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 10100 | since some C++ compilers masquerading as C compilers |
| 10101 | incorrectly reject 9223372036854775807. */ |
| 10102 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 10103 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 10104 | && LARGE_OFF_T % 2147483647 == 1) |
| 10105 | ? 1 : -1]; |
| 10106 | int |
| 10107 | main () |
| 10108 | { |
| 10109 | |
| 10110 | ; |
| 10111 | return 0; |
| 10112 | } |
| 10113 | _ACEOF |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10114 | if ac_fn_c_try_compile "$LINENO"; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10115 | ac_cv_sys_large_files=no; break |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10116 | fi |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10117 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10118 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10119 | /* end confdefs.h. */ |
| 10120 | #define _LARGE_FILES 1 |
| 10121 | #include <sys/types.h> |
| 10122 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 10123 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 10124 | since some C++ compilers masquerading as C compilers |
| 10125 | incorrectly reject 9223372036854775807. */ |
| 10126 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 10127 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 10128 | && LARGE_OFF_T % 2147483647 == 1) |
| 10129 | ? 1 : -1]; |
| 10130 | int |
| 10131 | main () |
| 10132 | { |
| 10133 | |
| 10134 | ; |
| 10135 | return 0; |
| 10136 | } |
| 10137 | _ACEOF |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10138 | if ac_fn_c_try_compile "$LINENO"; then : |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10139 | ac_cv_sys_large_files=1; break |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10140 | fi |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10141 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10142 | ac_cv_sys_large_files=unknown |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10143 | break |
| 10144 | done |
| 10145 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10147 | $as_echo "$ac_cv_sys_large_files" >&6; } |
| 10148 | case $ac_cv_sys_large_files in #( |
| 10149 | no | unknown) ;; |
| 10150 | *) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10151 | cat >>confdefs.h <<_ACEOF |
| 10152 | #define _LARGE_FILES $ac_cv_sys_large_files |
| 10153 | _ACEOF |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10154 | ;; |
| 10155 | esac |
| 10156 | rm -rf conftest* |
| 10157 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10158 | |
| 10159 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10160 | fi |
| 10161 | |
| 10162 | |
| 10163 | ######### |
| 10164 | # Check for needed/wanted data types |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10165 | ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default" |
| 10166 | if test "x$ac_cv_type_int8_t" = xyes; then : |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10167 | |
| 10168 | cat >>confdefs.h <<_ACEOF |
| 10169 | #define HAVE_INT8_T 1 |
| 10170 | _ACEOF |
| 10171 | |
| 10172 | |
| 10173 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10174 | ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default" |
| 10175 | if test "x$ac_cv_type_int16_t" = xyes; then : |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10176 | |
| 10177 | cat >>confdefs.h <<_ACEOF |
| 10178 | #define HAVE_INT16_T 1 |
| 10179 | _ACEOF |
| 10180 | |
| 10181 | |
| 10182 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10183 | ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default" |
| 10184 | if test "x$ac_cv_type_int32_t" = xyes; then : |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10185 | |
| 10186 | cat >>confdefs.h <<_ACEOF |
| 10187 | #define HAVE_INT32_T 1 |
| 10188 | _ACEOF |
| 10189 | |
| 10190 | |
| 10191 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10192 | ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default" |
| 10193 | if test "x$ac_cv_type_int64_t" = xyes; then : |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10194 | |
| 10195 | cat >>confdefs.h <<_ACEOF |
| 10196 | #define HAVE_INT64_T 1 |
| 10197 | _ACEOF |
| 10198 | |
| 10199 | |
| 10200 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10201 | ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" |
| 10202 | if test "x$ac_cv_type_intptr_t" = xyes; then : |
danielk1977 | 33a1478 | 2008-08-04 14:50:05 +0000 | [diff] [blame] | 10203 | |
| 10204 | cat >>confdefs.h <<_ACEOF |
| 10205 | #define HAVE_INTPTR_T 1 |
| 10206 | _ACEOF |
| 10207 | |
| 10208 | |
| 10209 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10210 | ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default" |
| 10211 | if test "x$ac_cv_type_uint8_t" = xyes; then : |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10212 | |
| 10213 | cat >>confdefs.h <<_ACEOF |
| 10214 | #define HAVE_UINT8_T 1 |
| 10215 | _ACEOF |
| 10216 | |
| 10217 | |
| 10218 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10219 | ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default" |
| 10220 | if test "x$ac_cv_type_uint16_t" = xyes; then : |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10221 | |
| 10222 | cat >>confdefs.h <<_ACEOF |
| 10223 | #define HAVE_UINT16_T 1 |
| 10224 | _ACEOF |
| 10225 | |
| 10226 | |
| 10227 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10228 | ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" |
| 10229 | if test "x$ac_cv_type_uint32_t" = xyes; then : |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10230 | |
| 10231 | cat >>confdefs.h <<_ACEOF |
| 10232 | #define HAVE_UINT32_T 1 |
| 10233 | _ACEOF |
| 10234 | |
| 10235 | |
| 10236 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10237 | ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default" |
| 10238 | if test "x$ac_cv_type_uint64_t" = xyes; then : |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10239 | |
| 10240 | cat >>confdefs.h <<_ACEOF |
| 10241 | #define HAVE_UINT64_T 1 |
| 10242 | _ACEOF |
| 10243 | |
| 10244 | |
| 10245 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10246 | ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" |
| 10247 | if test "x$ac_cv_type_uintptr_t" = xyes; then : |
danielk1977 | 33a1478 | 2008-08-04 14:50:05 +0000 | [diff] [blame] | 10248 | |
| 10249 | cat >>confdefs.h <<_ACEOF |
| 10250 | #define HAVE_UINTPTR_T 1 |
| 10251 | _ACEOF |
| 10252 | |
| 10253 | |
| 10254 | fi |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10255 | |
| 10256 | |
| 10257 | ######### |
| 10258 | # Check for needed/wanted headers |
drh | 86c5a93 | 2012-02-08 12:13:28 +0000 | [diff] [blame] | 10259 | for ac_header in sys/types.h stdlib.h stdint.h inttypes.h malloc.h |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10260 | do : |
| 10261 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10262 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 10263 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10264 | cat >>confdefs.h <<_ACEOF |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10265 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10266 | _ACEOF |
mlcreech | 8390bc3 | 2008-03-06 08:54:38 +0000 | [diff] [blame] | 10267 | |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10268 | fi |
| 10269 | |
| 10270 | done |
| 10271 | |
| 10272 | |
| 10273 | ######### |
mlcreech | 5b0a9eb | 2008-03-09 01:38:09 +0000 | [diff] [blame] | 10274 | # Figure out whether or not we have these functions |
| 10275 | # |
drh | 3931112 | 2015-01-15 17:38:35 +0000 | [diff] [blame] | 10276 | for ac_func in fdatasync gmtime_r isnan localtime_r localtime_s malloc_usable_size strchrnul usleep utime |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10277 | do : |
| 10278 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10279 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 10280 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
mlcreech | 5b0a9eb | 2008-03-09 01:38:09 +0000 | [diff] [blame] | 10281 | cat >>confdefs.h <<_ACEOF |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10282 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
mlcreech | 5b0a9eb | 2008-03-09 01:38:09 +0000 | [diff] [blame] | 10283 | _ACEOF |
| 10284 | |
| 10285 | fi |
| 10286 | done |
| 10287 | |
| 10288 | |
mlcreech | ab1c47b | 2008-03-09 02:51:10 +0000 | [diff] [blame] | 10289 | ######### |
mlcreech | f386811 | 2008-03-11 18:03:30 +0000 | [diff] [blame] | 10290 | # By default, we use the amalgamation (this may be changed below...) |
| 10291 | # |
| 10292 | USE_AMALGAMATION=1 |
| 10293 | |
| 10294 | ######### |
mlcreech | ab1c47b | 2008-03-09 02:51:10 +0000 | [diff] [blame] | 10295 | # See whether we can run specific tclsh versions known to work well; |
| 10296 | # if not, then we fall back to plain tclsh. |
| 10297 | # TODO: try other versions before falling back? |
| 10298 | # |
mistachkin | fe27b08 | 2013-08-28 18:06:26 +0000 | [diff] [blame] | 10299 | for ac_prog in tclsh8.6 tclsh8.5 tclsh |
mlcreech | ab1c47b | 2008-03-09 02:51:10 +0000 | [diff] [blame] | 10300 | do |
| 10301 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 10302 | set dummy $ac_prog; ac_word=$2 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10303 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10304 | $as_echo_n "checking for $ac_word... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10305 | if ${ac_cv_prog_TCLSH_CMD+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10306 | $as_echo_n "(cached) " >&6 |
mlcreech | ab1c47b | 2008-03-09 02:51:10 +0000 | [diff] [blame] | 10307 | else |
| 10308 | if test -n "$TCLSH_CMD"; then |
| 10309 | ac_cv_prog_TCLSH_CMD="$TCLSH_CMD" # Let the user override the test. |
| 10310 | else |
| 10311 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10312 | for as_dir in $PATH |
| 10313 | do |
| 10314 | IFS=$as_save_IFS |
| 10315 | test -z "$as_dir" && as_dir=. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10316 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10317 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
mlcreech | ab1c47b | 2008-03-09 02:51:10 +0000 | [diff] [blame] | 10318 | ac_cv_prog_TCLSH_CMD="$ac_prog" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10319 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | ab1c47b | 2008-03-09 02:51:10 +0000 | [diff] [blame] | 10320 | break 2 |
| 10321 | fi |
| 10322 | done |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10323 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10324 | IFS=$as_save_IFS |
mlcreech | ab1c47b | 2008-03-09 02:51:10 +0000 | [diff] [blame] | 10325 | |
| 10326 | fi |
| 10327 | fi |
| 10328 | TCLSH_CMD=$ac_cv_prog_TCLSH_CMD |
| 10329 | if test -n "$TCLSH_CMD"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH_CMD" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10331 | $as_echo "$TCLSH_CMD" >&6; } |
mlcreech | ab1c47b | 2008-03-09 02:51:10 +0000 | [diff] [blame] | 10332 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10334 | $as_echo "no" >&6; } |
mlcreech | ab1c47b | 2008-03-09 02:51:10 +0000 | [diff] [blame] | 10335 | fi |
| 10336 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10337 | |
mlcreech | ab1c47b | 2008-03-09 02:51:10 +0000 | [diff] [blame] | 10338 | test -n "$TCLSH_CMD" && break |
| 10339 | done |
mlcreech | f386811 | 2008-03-11 18:03:30 +0000 | [diff] [blame] | 10340 | test -n "$TCLSH_CMD" || TCLSH_CMD="none" |
mlcreech | ab1c47b | 2008-03-09 02:51:10 +0000 | [diff] [blame] | 10341 | |
mlcreech | f386811 | 2008-03-11 18:03:30 +0000 | [diff] [blame] | 10342 | if test "$TCLSH_CMD" = "none"; then |
| 10343 | # If we can't find a local tclsh, then building the amalgamation will fail. |
| 10344 | # We act as though --disable-amalgamation has been used. |
| 10345 | echo "Warning: can't find tclsh - defaulting to non-amalgamation build." |
| 10346 | USE_AMALGAMATION=0 |
| 10347 | TCLSH_CMD="tclsh" |
| 10348 | fi |
mlcreech | ab1c47b | 2008-03-09 02:51:10 +0000 | [diff] [blame] | 10349 | |
| 10350 | |
mlcreech | 5b0a9eb | 2008-03-09 01:38:09 +0000 | [diff] [blame] | 10351 | |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 10352 | if test "x${TCLLIBDIR+set}" != "xset" ; then |
| 10353 | TCLLIBDIR='$(libdir)' |
| 10354 | for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}` ; do |
| 10355 | TCLLIBDIR=$i |
| 10356 | break |
| 10357 | done |
| 10358 | TCLLIBDIR="${TCLLIBDIR}/sqlite3" |
| 10359 | fi |
| 10360 | |
| 10361 | |
mlcreech | 5b0a9eb | 2008-03-09 01:38:09 +0000 | [diff] [blame] | 10362 | ######### |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10363 | # Set up an appropriate program prefix |
| 10364 | # |
| 10365 | if test "$program_prefix" = "NONE"; then |
| 10366 | program_prefix="" |
| 10367 | fi |
| 10368 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10369 | |
drh | 4b2266a | 2004-11-27 15:52:16 +0000 | [diff] [blame] | 10370 | VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'` |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10371 | { $as_echo "$as_me:${as_lineno-$LINENO}: Version set to $VERSION" >&5 |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 10372 | $as_echo "$as_me: Version set to $VERSION" >&6;} |
drh | 4b2266a | 2004-11-27 15:52:16 +0000 | [diff] [blame] | 10373 | |
| 10374 | RELEASE=`cat $srcdir/VERSION` |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10375 | { $as_echo "$as_me:${as_lineno-$LINENO}: Release set to $RELEASE" >&5 |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 10376 | $as_echo "$as_me: Release set to $RELEASE" >&6;} |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10377 | |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 10378 | VERSION_NUMBER=`cat $srcdir/VERSION \ |
drh | 26d0e2a | 2005-07-06 13:51:27 +0000 | [diff] [blame] | 10379 | | sed 's/[^0-9]/ /g' \ |
danielk1977 | 99ba19e | 2005-02-05 07:33:34 +0000 | [diff] [blame] | 10380 | | awk '{printf "%d%03d%03d",$1,$2,$3}'` |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10381 | { $as_echo "$as_me:${as_lineno-$LINENO}: Version number set to $VERSION_NUMBER" >&5 |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 10382 | $as_echo "$as_me: Version number set to $VERSION_NUMBER" >&6;} |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10383 | |
drh | 26d0e2a | 2005-07-06 13:51:27 +0000 | [diff] [blame] | 10384 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10385 | ######### |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10386 | # Locate a compiler for the build machine. This compiler should |
| 10387 | # generate command-line programs that run on the build machine. |
| 10388 | # |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10389 | if test x"$cross_compiling" = xno; then |
| 10390 | BUILD_CC=$CC |
| 10391 | BUILD_CFLAGS=$CFLAGS |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10392 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10393 | if test "${BUILD_CC+set}" != set; then |
| 10394 | for ac_prog in gcc cc cl |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10395 | do |
| 10396 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 10397 | set dummy $ac_prog; ac_word=$2 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10398 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10399 | $as_echo_n "checking for $ac_word... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10400 | if ${ac_cv_prog_BUILD_CC+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10401 | $as_echo_n "(cached) " >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10402 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10403 | if test -n "$BUILD_CC"; then |
| 10404 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10405 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10406 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10407 | for as_dir in $PATH |
| 10408 | do |
| 10409 | IFS=$as_save_IFS |
| 10410 | test -z "$as_dir" && as_dir=. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10411 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10412 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10413 | ac_cv_prog_BUILD_CC="$ac_prog" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10414 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10415 | break 2 |
| 10416 | fi |
| 10417 | done |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10418 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10419 | IFS=$as_save_IFS |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10420 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10421 | fi |
| 10422 | fi |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10423 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 10424 | if test -n "$BUILD_CC"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10426 | $as_echo "$BUILD_CC" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10427 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10429 | $as_echo "no" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10430 | fi |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10431 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10432 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10433 | test -n "$BUILD_CC" && break |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10434 | done |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10435 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10436 | fi |
| 10437 | if test "${BUILD_CFLAGS+set}" != set; then |
| 10438 | BUILD_CFLAGS="-g" |
| 10439 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10440 | fi |
| 10441 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10442 | |
drh | 297ecf1 | 2001-04-05 15:57:13 +0000 | [diff] [blame] | 10443 | ########## |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 10444 | # Do we want to support multithreaded use of sqlite |
drh | 297ecf1 | 2001-04-05 15:57:13 +0000 | [diff] [blame] | 10445 | # |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10446 | # Check whether --enable-threadsafe was given. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10447 | if test "${enable_threadsafe+set}" = set; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10448 | enableval=$enable_threadsafe; |
drh | 297ecf1 | 2001-04-05 15:57:13 +0000 | [diff] [blame] | 10449 | else |
drh | 5a3032b | 2007-09-03 16:12:09 +0000 | [diff] [blame] | 10450 | enable_threadsafe=yes |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10451 | fi |
| 10452 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10453 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support threadsafe operation" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10454 | $as_echo_n "checking whether to support threadsafe operation... " >&6; } |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 10455 | if test "$enable_threadsafe" = "no"; then |
drh | 5a3032b | 2007-09-03 16:12:09 +0000 | [diff] [blame] | 10456 | SQLITE_THREADSAFE=0 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10458 | $as_echo "no" >&6; } |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 10459 | else |
drh | 5a3032b | 2007-09-03 16:12:09 +0000 | [diff] [blame] | 10460 | SQLITE_THREADSAFE=1 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10462 | $as_echo "yes" >&6; } |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 10463 | fi |
| 10464 | |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 10465 | |
drh | 5a3032b | 2007-09-03 16:12:09 +0000 | [diff] [blame] | 10466 | if test "$SQLITE_THREADSAFE" = "1"; then |
drh | ba60fbb | 2016-01-28 02:47:32 +0000 | [diff] [blame] | 10467 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5 |
| 10468 | $as_echo_n "checking for library containing pthread_create... " >&6; } |
| 10469 | if ${ac_cv_search_pthread_create+:} false; then : |
| 10470 | $as_echo_n "(cached) " >&6 |
| 10471 | else |
| 10472 | ac_func_search_save_LIBS=$LIBS |
| 10473 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10474 | /* end confdefs.h. */ |
| 10475 | |
| 10476 | /* Override any GCC internal prototype to avoid an error. |
| 10477 | Use char because int might match the return type of a GCC |
| 10478 | builtin and then its argument prototype would still apply. */ |
| 10479 | #ifdef __cplusplus |
| 10480 | extern "C" |
| 10481 | #endif |
| 10482 | char pthread_create (); |
| 10483 | int |
| 10484 | main () |
| 10485 | { |
| 10486 | return pthread_create (); |
| 10487 | ; |
| 10488 | return 0; |
| 10489 | } |
| 10490 | _ACEOF |
| 10491 | for ac_lib in '' pthread; do |
| 10492 | if test -z "$ac_lib"; then |
| 10493 | ac_res="none required" |
| 10494 | else |
| 10495 | ac_res=-l$ac_lib |
| 10496 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 10497 | fi |
| 10498 | if ac_fn_c_try_link "$LINENO"; then : |
| 10499 | ac_cv_search_pthread_create=$ac_res |
| 10500 | fi |
| 10501 | rm -f core conftest.err conftest.$ac_objext \ |
| 10502 | conftest$ac_exeext |
| 10503 | if ${ac_cv_search_pthread_create+:} false; then : |
| 10504 | break |
| 10505 | fi |
| 10506 | done |
| 10507 | if ${ac_cv_search_pthread_create+:} false; then : |
| 10508 | |
| 10509 | else |
| 10510 | ac_cv_search_pthread_create=no |
| 10511 | fi |
| 10512 | rm conftest.$ac_ext |
| 10513 | LIBS=$ac_func_search_save_LIBS |
| 10514 | fi |
| 10515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5 |
| 10516 | $as_echo "$ac_cv_search_pthread_create" >&6; } |
| 10517 | ac_res=$ac_cv_search_pthread_create |
| 10518 | if test "$ac_res" != no; then : |
| 10519 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 10520 | |
| 10521 | fi |
| 10522 | |
drh | 13c808a | 2016-01-13 21:23:48 +0000 | [diff] [blame] | 10523 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_mutexattr_init" >&5 |
| 10524 | $as_echo_n "checking for library containing pthread_mutexattr_init... " >&6; } |
| 10525 | if ${ac_cv_search_pthread_mutexattr_init+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10526 | $as_echo_n "(cached) " >&6 |
dougcurrie | 65623c7 | 2004-09-20 14:57:23 +0000 | [diff] [blame] | 10527 | else |
mlcreech | c658b0f | 2008-03-09 02:20:11 +0000 | [diff] [blame] | 10528 | ac_func_search_save_LIBS=$LIBS |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10529 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
dougcurrie | 65623c7 | 2004-09-20 14:57:23 +0000 | [diff] [blame] | 10530 | /* end confdefs.h. */ |
| 10531 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10532 | /* Override any GCC internal prototype to avoid an error. |
| 10533 | Use char because int might match the return type of a GCC |
| 10534 | builtin and then its argument prototype would still apply. */ |
dougcurrie | 65623c7 | 2004-09-20 14:57:23 +0000 | [diff] [blame] | 10535 | #ifdef __cplusplus |
| 10536 | extern "C" |
| 10537 | #endif |
drh | 13c808a | 2016-01-13 21:23:48 +0000 | [diff] [blame] | 10538 | char pthread_mutexattr_init (); |
dougcurrie | 65623c7 | 2004-09-20 14:57:23 +0000 | [diff] [blame] | 10539 | int |
| 10540 | main () |
| 10541 | { |
drh | 13c808a | 2016-01-13 21:23:48 +0000 | [diff] [blame] | 10542 | return pthread_mutexattr_init (); |
dougcurrie | 65623c7 | 2004-09-20 14:57:23 +0000 | [diff] [blame] | 10543 | ; |
| 10544 | return 0; |
| 10545 | } |
| 10546 | _ACEOF |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10547 | for ac_lib in '' pthread; do |
| 10548 | if test -z "$ac_lib"; then |
| 10549 | ac_res="none required" |
| 10550 | else |
| 10551 | ac_res=-l$ac_lib |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10552 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10553 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10554 | if ac_fn_c_try_link "$LINENO"; then : |
drh | 13c808a | 2016-01-13 21:23:48 +0000 | [diff] [blame] | 10555 | ac_cv_search_pthread_mutexattr_init=$ac_res |
mlcreech | c658b0f | 2008-03-09 02:20:11 +0000 | [diff] [blame] | 10556 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10557 | rm -f core conftest.err conftest.$ac_objext \ |
| 10558 | conftest$ac_exeext |
drh | 13c808a | 2016-01-13 21:23:48 +0000 | [diff] [blame] | 10559 | if ${ac_cv_search_pthread_mutexattr_init+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10560 | break |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10561 | fi |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10562 | done |
drh | 13c808a | 2016-01-13 21:23:48 +0000 | [diff] [blame] | 10563 | if ${ac_cv_search_pthread_mutexattr_init+:} false; then : |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10564 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10565 | else |
drh | 13c808a | 2016-01-13 21:23:48 +0000 | [diff] [blame] | 10566 | ac_cv_search_pthread_mutexattr_init=no |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10567 | fi |
| 10568 | rm conftest.$ac_ext |
mlcreech | c658b0f | 2008-03-09 02:20:11 +0000 | [diff] [blame] | 10569 | LIBS=$ac_func_search_save_LIBS |
| 10570 | fi |
drh | 13c808a | 2016-01-13 21:23:48 +0000 | [diff] [blame] | 10571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_mutexattr_init" >&5 |
| 10572 | $as_echo "$ac_cv_search_pthread_mutexattr_init" >&6; } |
| 10573 | ac_res=$ac_cv_search_pthread_mutexattr_init |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10574 | if test "$ac_res" != no; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10575 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
mlcreech | c658b0f | 2008-03-09 02:20:11 +0000 | [diff] [blame] | 10576 | |
dougcurrie | 65623c7 | 2004-09-20 14:57:23 +0000 | [diff] [blame] | 10577 | fi |
| 10578 | |
mlcreech | c658b0f | 2008-03-09 02:20:11 +0000 | [diff] [blame] | 10579 | fi |
dougcurrie | 65623c7 | 2004-09-20 14:57:23 +0000 | [diff] [blame] | 10580 | |
xdong | 28f79f7 | 2003-09-23 00:35:21 +0000 | [diff] [blame] | 10581 | ########## |
| 10582 | # Do we want to support release |
| 10583 | # |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10584 | # Check whether --enable-releasemode was given. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10585 | if test "${enable_releasemode+set}" = set; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10586 | enableval=$enable_releasemode; |
xdong | 28f79f7 | 2003-09-23 00:35:21 +0000 | [diff] [blame] | 10587 | else |
| 10588 | enable_releasemode=no |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10589 | fi |
| 10590 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10591 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support shared library linked as release mode or not" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10592 | $as_echo_n "checking whether to support shared library linked as release mode or not... " >&6; } |
xdong | 28f79f7 | 2003-09-23 00:35:21 +0000 | [diff] [blame] | 10593 | if test "$enable_releasemode" = "no"; then |
| 10594 | ALLOWRELEASE="" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10596 | $as_echo "no" >&6; } |
xdong | 28f79f7 | 2003-09-23 00:35:21 +0000 | [diff] [blame] | 10597 | else |
drh | 0b47d34 | 2007-11-27 14:50:06 +0000 | [diff] [blame] | 10598 | ALLOWRELEASE="-release `cat $srcdir/VERSION`" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10600 | $as_echo "yes" >&6; } |
xdong | 28f79f7 | 2003-09-23 00:35:21 +0000 | [diff] [blame] | 10601 | fi |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 10602 | |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 10603 | |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 10604 | ########## |
| 10605 | # Do we want temporary databases in memory |
| 10606 | # |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10607 | # Check whether --enable-tempstore was given. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10608 | if test "${enable_tempstore+set}" = set; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10609 | enableval=$enable_tempstore; |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 10610 | else |
drh | 54414bb | 2005-10-10 00:05:50 +0000 | [diff] [blame] | 10611 | enable_tempstore=no |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10612 | fi |
| 10613 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10614 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use an in-ram database for temporary tables" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10615 | $as_echo_n "checking whether to use an in-ram database for temporary tables... " >&6; } |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 10616 | case "$enable_tempstore" in |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 10617 | never ) |
paul | 2dc96f9 | 2003-04-20 11:46:34 +0000 | [diff] [blame] | 10618 | TEMP_STORE=0 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: never" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10620 | $as_echo "never" >&6; } |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 10621 | ;; |
| 10622 | no ) |
paul | 2dc96f9 | 2003-04-20 11:46:34 +0000 | [diff] [blame] | 10623 | TEMP_STORE=1 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10625 | $as_echo "no" >&6; } |
| 10626 | ;; |
| 10627 | yes ) |
| 10628 | TEMP_STORE=2 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10630 | $as_echo "yes" >&6; } |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 10631 | ;; |
| 10632 | always ) |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 10633 | TEMP_STORE=3 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: always" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10635 | $as_echo "always" >&6; } |
drh | 54414bb | 2005-10-10 00:05:50 +0000 | [diff] [blame] | 10636 | ;; |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 10637 | * ) |
drh | 54414bb | 2005-10-10 00:05:50 +0000 | [diff] [blame] | 10638 | TEMP_STORE=1 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10640 | $as_echo "no" >&6; } |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 10641 | ;; |
| 10642 | esac |
| 10643 | |
| 10644 | |
| 10645 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10646 | ########### |
| 10647 | # Lots of things are different if we are compiling for Windows using |
| 10648 | # the CYGWIN environment. So check for that special case and handle |
| 10649 | # things accordingly. |
| 10650 | # |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10651 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if executables have the .exe suffix" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10652 | $as_echo_n "checking if executables have the .exe suffix... " >&6; } |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10653 | if test "$config_BUILD_EXEEXT" = ".exe"; then |
| 10654 | CYGWIN=yes |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10656 | $as_echo "yes" >&6; } |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10657 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10659 | $as_echo "unknown" >&6; } |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10660 | fi |
| 10661 | if test "$CYGWIN" != "yes"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10662 | |
| 10663 | case $host_os in |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10664 | *cygwin* ) CYGWIN=yes;; |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 10665 | * ) CYGWIN=no;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10666 | esac |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10667 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10668 | fi |
| 10669 | if test "$CYGWIN" = "yes"; then |
| 10670 | BUILD_EXEEXT=.exe |
| 10671 | else |
dougcurrie | 6194a5f | 2003-12-19 20:09:51 +0000 | [diff] [blame] | 10672 | BUILD_EXEEXT=$EXEEXT |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10673 | fi |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10674 | if test x"$cross_compiling" = xno; then |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10675 | TARGET_EXEEXT=$BUILD_EXEEXT |
| 10676 | else |
| 10677 | TARGET_EXEEXT=$config_TARGET_EXEEXT |
| 10678 | fi |
| 10679 | if test "$TARGET_EXEEXT" = ".exe"; then |
mistachkin | fe27b08 | 2013-08-28 18:06:26 +0000 | [diff] [blame] | 10680 | SQLITE_OS_UNIX=0 |
| 10681 | SQLITE_OS_WIN=1 |
| 10682 | CFLAGS="$CFLAGS -DSQLITE_OS_WIN=1" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10683 | else |
danielk1977 | 29bafea | 2008-06-26 10:41:19 +0000 | [diff] [blame] | 10684 | SQLITE_OS_UNIX=1 |
| 10685 | SQLITE_OS_WIN=0 |
danielk1977 | 29bafea | 2008-06-26 10:41:19 +0000 | [diff] [blame] | 10686 | CFLAGS="$CFLAGS -DSQLITE_OS_UNIX=1" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10687 | fi |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10688 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10689 | |
| 10690 | |
| 10691 | |
| 10692 | |
| 10693 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10694 | ########## |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 10695 | # Figure out all the parameters needed to compile against Tcl. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10696 | # |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 10697 | # This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG |
| 10698 | # macros in the in the tcl.m4 file of the standard TCL distribution. |
| 10699 | # Those macros could not be used directly since we have to make some |
| 10700 | # minor changes to accomodate systems that do not have TCL installed. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10701 | # |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10702 | # Check whether --enable-tcl was given. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10703 | if test "${enable_tcl+set}" = set; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10704 | enableval=$enable_tcl; use_tcl=$enableval |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10705 | else |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 10706 | use_tcl=yes |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10707 | fi |
| 10708 | |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 10709 | if test "${use_tcl}" = "yes" ; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10710 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10711 | # Check whether --with-tcl was given. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10712 | if test "${with_tcl+set}" = set; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10713 | withval=$with_tcl; with_tclconfig=${withval} |
| 10714 | fi |
| 10715 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10717 | $as_echo_n "checking for Tcl configuration... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10718 | if ${ac_cv_c_tclconfig+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10719 | $as_echo_n "(cached) " >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10720 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10721 | |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 10722 | # First check to see if --with-tcl was specified. |
| 10723 | if test x"${with_tclconfig}" != x ; then |
| 10724 | if test -f "${with_tclconfig}/tclConfig.sh" ; then |
| 10725 | ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)` |
| 10726 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10727 | as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5 |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 10728 | fi |
| 10729 | fi |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 10730 | |
| 10731 | # Start autosearch by asking tclsh |
drh | e74f465 | 2012-08-15 16:06:54 +0000 | [diff] [blame] | 10732 | if test x"${ac_cv_c_tclconfig}" = x ; then |
| 10733 | if test x"$cross_compiling" = xno; then |
| 10734 | for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}` |
| 10735 | do |
| 10736 | if test -f "$i/tclConfig.sh" ; then |
| 10737 | ac_cv_c_tclconfig="$i" |
| 10738 | break |
| 10739 | fi |
| 10740 | done |
| 10741 | fi |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 10742 | fi |
| 10743 | |
drh | f960a64 | 2015-05-30 22:57:49 +0000 | [diff] [blame] | 10744 | # On ubuntu 14.10, $auto_path on tclsh is not quite correct. |
| 10745 | # So try again after applying corrections. |
| 10746 | if test x"${ac_cv_c_tclconfig}" = x ; then |
| 10747 | if test x"$cross_compiling" = xno; then |
| 10748 | for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD} | sed 's,/tcltk/tcl,/tcl,g'` |
| 10749 | do |
| 10750 | if test -f "$i/tclConfig.sh" ; then |
| 10751 | ac_cv_c_tclconfig="$i" |
| 10752 | break |
| 10753 | fi |
| 10754 | done |
| 10755 | fi |
| 10756 | fi |
| 10757 | |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 10758 | # then check for a private Tcl installation |
| 10759 | if test x"${ac_cv_c_tclconfig}" = x ; then |
| 10760 | for i in \ |
| 10761 | ../tcl \ |
| 10762 | `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ |
| 10763 | `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \ |
| 10764 | `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \ |
| 10765 | ../../tcl \ |
| 10766 | `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ |
| 10767 | `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \ |
| 10768 | `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \ |
| 10769 | ../../../tcl \ |
| 10770 | `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ |
| 10771 | `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \ |
| 10772 | `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` |
| 10773 | do |
| 10774 | if test -f "$i/unix/tclConfig.sh" ; then |
| 10775 | ac_cv_c_tclconfig=`(cd $i/unix; pwd)` |
| 10776 | break |
| 10777 | fi |
| 10778 | done |
| 10779 | fi |
| 10780 | |
| 10781 | # check in a few common install locations |
| 10782 | if test x"${ac_cv_c_tclconfig}" = x ; then |
| 10783 | for i in \ |
| 10784 | `ls -d ${libdir} 2>/dev/null` \ |
| 10785 | `ls -d /usr/local/lib 2>/dev/null` \ |
| 10786 | `ls -d /usr/contrib/lib 2>/dev/null` \ |
| 10787 | `ls -d /usr/lib 2>/dev/null` |
| 10788 | do |
| 10789 | if test -f "$i/tclConfig.sh" ; then |
| 10790 | ac_cv_c_tclconfig=`(cd $i; pwd)` |
| 10791 | break |
| 10792 | fi |
| 10793 | done |
| 10794 | fi |
| 10795 | |
| 10796 | # check in a few other private locations |
| 10797 | if test x"${ac_cv_c_tclconfig}" = x ; then |
| 10798 | for i in \ |
| 10799 | ${srcdir}/../tcl \ |
| 10800 | `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ |
| 10801 | `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \ |
| 10802 | `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` |
| 10803 | do |
| 10804 | if test -f "$i/unix/tclConfig.sh" ; then |
| 10805 | ac_cv_c_tclconfig=`(cd $i/unix; pwd)` |
| 10806 | break |
| 10807 | fi |
| 10808 | done |
| 10809 | fi |
| 10810 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10811 | fi |
| 10812 | |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 10813 | |
| 10814 | if test x"${ac_cv_c_tclconfig}" = x ; then |
| 10815 | use_tcl=no |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10816 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10817 | $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;} |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10818 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10819 | $as_echo "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;} |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10820 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10821 | $as_echo "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;} |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 10822 | else |
| 10823 | TCL_BIN_DIR=${ac_cv_c_tclconfig} |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $TCL_BIN_DIR/tclConfig.sh" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10825 | $as_echo "found $TCL_BIN_DIR/tclConfig.sh" >&6; } |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 10826 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10827 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10828 | $as_echo_n "checking for existence of $TCL_BIN_DIR/tclConfig.sh... " >&6; } |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 10829 | if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10831 | $as_echo "loading" >&6; } |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 10832 | . $TCL_BIN_DIR/tclConfig.sh |
| 10833 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: file not found" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10835 | $as_echo "file not found" >&6; } |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10836 | fi |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 10837 | |
| 10838 | # |
| 10839 | # If the TCL_BIN_DIR is the build directory (not the install directory), |
| 10840 | # then set the common variable name to the value of the build variables. |
| 10841 | # For example, the variable TCL_LIB_SPEC will be set to the value |
| 10842 | # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC |
| 10843 | # instead of TCL_BUILD_LIB_SPEC since it will work with both an |
| 10844 | # installed and uninstalled version of Tcl. |
| 10845 | # |
| 10846 | |
mlcreech | ab1c47b | 2008-03-09 02:51:10 +0000 | [diff] [blame] | 10847 | if test -f $TCL_BIN_DIR/Makefile ; then |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 10848 | TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC} |
| 10849 | TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC} |
| 10850 | TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH} |
| 10851 | fi |
| 10852 | |
| 10853 | # |
| 10854 | # eval is required to do the TCL_DBGX substitution |
| 10855 | # |
| 10856 | |
| 10857 | eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\"" |
| 10858 | eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\"" |
| 10859 | eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\"" |
| 10860 | |
| 10861 | eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\"" |
| 10862 | eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\"" |
| 10863 | eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\"" |
| 10864 | |
| 10865 | |
| 10866 | |
| 10867 | |
| 10868 | |
| 10869 | |
| 10870 | |
| 10871 | |
| 10872 | |
| 10873 | |
| 10874 | |
| 10875 | |
| 10876 | |
drh | d881ce8 | 2015-03-31 17:01:52 +0000 | [diff] [blame] | 10877 | |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 10878 | fi |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10879 | fi |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 10880 | if test "${use_tcl}" = "no" ; then |
| 10881 | HAVE_TCL="" |
| 10882 | else |
| 10883 | HAVE_TCL=1 |
drh | 6d31316 | 2000-09-21 13:01:35 +0000 | [diff] [blame] | 10884 | fi |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10885 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10886 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10887 | ########## |
| 10888 | # Figure out what C libraries are required to compile programs |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10889 | # that use "readline()" library. |
| 10890 | # |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10891 | TARGET_READLINE_LIBS="" |
| 10892 | TARGET_READLINE_INC="" |
| 10893 | TARGET_HAVE_READLINE=0 |
drh | e44b835 | 2015-10-30 14:25:57 +0000 | [diff] [blame] | 10894 | TARGET_HAVE_EDITLINE=0 |
| 10895 | # Check whether --enable-editline was given. |
| 10896 | if test "${enable_editline+set}" = set; then : |
| 10897 | enableval=$enable_editline; with_editline=$enableval |
| 10898 | else |
| 10899 | with_editline=auto |
| 10900 | fi |
| 10901 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10902 | # Check whether --enable-readline was given. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10903 | if test "${enable_readline+set}" = set; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10904 | enableval=$enable_readline; with_readline=$enableval |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10905 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10906 | with_readline=auto |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10907 | fi |
| 10908 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10909 | |
drh | e44b835 | 2015-10-30 14:25:57 +0000 | [diff] [blame] | 10910 | if test x"$with_editline" != xno; then |
| 10911 | sLIBS=$LIBS |
| 10912 | LIBS="" |
| 10913 | TARGET_HAVE_EDITLINE=1 |
| 10914 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5 |
| 10915 | $as_echo_n "checking for library containing readline... " >&6; } |
| 10916 | if ${ac_cv_search_readline+:} false; then : |
| 10917 | $as_echo_n "(cached) " >&6 |
| 10918 | else |
| 10919 | ac_func_search_save_LIBS=$LIBS |
| 10920 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10921 | /* end confdefs.h. */ |
| 10922 | |
| 10923 | /* Override any GCC internal prototype to avoid an error. |
| 10924 | Use char because int might match the return type of a GCC |
| 10925 | builtin and then its argument prototype would still apply. */ |
| 10926 | #ifdef __cplusplus |
| 10927 | extern "C" |
| 10928 | #endif |
| 10929 | char readline (); |
| 10930 | int |
| 10931 | main () |
| 10932 | { |
| 10933 | return readline (); |
| 10934 | ; |
| 10935 | return 0; |
| 10936 | } |
| 10937 | _ACEOF |
| 10938 | for ac_lib in '' edit; do |
| 10939 | if test -z "$ac_lib"; then |
| 10940 | ac_res="none required" |
| 10941 | else |
| 10942 | ac_res=-l$ac_lib |
| 10943 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 10944 | fi |
| 10945 | if ac_fn_c_try_link "$LINENO"; then : |
| 10946 | ac_cv_search_readline=$ac_res |
| 10947 | fi |
| 10948 | rm -f core conftest.err conftest.$ac_objext \ |
| 10949 | conftest$ac_exeext |
| 10950 | if ${ac_cv_search_readline+:} false; then : |
| 10951 | break |
| 10952 | fi |
| 10953 | done |
| 10954 | if ${ac_cv_search_readline+:} false; then : |
| 10955 | |
| 10956 | else |
| 10957 | ac_cv_search_readline=no |
| 10958 | fi |
| 10959 | rm conftest.$ac_ext |
| 10960 | LIBS=$ac_func_search_save_LIBS |
| 10961 | fi |
| 10962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_readline" >&5 |
| 10963 | $as_echo "$ac_cv_search_readline" >&6; } |
| 10964 | ac_res=$ac_cv_search_readline |
| 10965 | if test "$ac_res" != no; then : |
| 10966 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 10967 | with_readline=no |
| 10968 | else |
| 10969 | TARGET_HAVE_EDITLINE=0 |
| 10970 | fi |
| 10971 | |
| 10972 | TARGET_READLINE_LIBS=$LIBS |
| 10973 | LIBS=$sLIBS |
| 10974 | fi |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10975 | if test x"$with_readline" != xno; then |
| 10976 | found="yes" |
| 10977 | |
| 10978 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10979 | # Check whether --with-readline-lib was given. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10980 | if test "${with_readline_lib+set}" = set; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10981 | withval=$with_readline_lib; with_readline_lib=$withval |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10982 | else |
| 10983 | with_readline_lib="auto" |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10984 | fi |
| 10985 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10986 | if test "x$with_readline_lib" = xauto; then |
| 10987 | save_LIBS="$LIBS" |
| 10988 | LIBS="" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10989 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10990 | $as_echo_n "checking for library containing tgetent... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10991 | if ${ac_cv_search_tgetent+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10992 | $as_echo_n "(cached) " >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10993 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10994 | ac_func_search_save_LIBS=$LIBS |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10995 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 10996 | /* end confdefs.h. */ |
| 10997 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10998 | /* Override any GCC internal prototype to avoid an error. |
| 10999 | Use char because int might match the return type of a GCC |
| 11000 | builtin and then its argument prototype would still apply. */ |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 11001 | #ifdef __cplusplus |
| 11002 | extern "C" |
| 11003 | #endif |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 11004 | char tgetent (); |
| 11005 | int |
| 11006 | main () |
| 11007 | { |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11008 | return tgetent (); |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 11009 | ; |
| 11010 | return 0; |
| 11011 | } |
| 11012 | _ACEOF |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11013 | for ac_lib in '' readline ncurses curses termcap; do |
| 11014 | if test -z "$ac_lib"; then |
| 11015 | ac_res="none required" |
| 11016 | else |
| 11017 | ac_res=-l$ac_lib |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11018 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11019 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11020 | if ac_fn_c_try_link "$LINENO"; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11021 | ac_cv_search_tgetent=$ac_res |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 11022 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11023 | rm -f core conftest.err conftest.$ac_objext \ |
| 11024 | conftest$ac_exeext |
| 11025 | if ${ac_cv_search_tgetent+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11026 | break |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11027 | fi |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11028 | done |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11029 | if ${ac_cv_search_tgetent+:} false; then : |
| 11030 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11031 | else |
| 11032 | ac_cv_search_tgetent=no |
| 11033 | fi |
| 11034 | rm conftest.$ac_ext |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 11035 | LIBS=$ac_func_search_save_LIBS |
| 11036 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11038 | $as_echo "$ac_cv_search_tgetent" >&6; } |
| 11039 | ac_res=$ac_cv_search_tgetent |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11040 | if test "$ac_res" != no; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11041 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11042 | term_LIBS="$LIBS" |
| 11043 | else |
| 11044 | term_LIBS="" |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 11045 | fi |
| 11046 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11047 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11048 | $as_echo_n "checking for readline in -lreadline... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11049 | if ${ac_cv_lib_readline_readline+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11050 | $as_echo_n "(cached) " >&6 |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 11051 | else |
| 11052 | ac_check_lib_save_LIBS=$LIBS |
| 11053 | LIBS="-lreadline $LIBS" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11054 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11055 | /* end confdefs.h. */ |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11056 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11057 | /* Override any GCC internal prototype to avoid an error. |
| 11058 | Use char because int might match the return type of a GCC |
| 11059 | builtin and then its argument prototype would still apply. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11060 | #ifdef __cplusplus |
| 11061 | extern "C" |
| 11062 | #endif |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11063 | char readline (); |
| 11064 | int |
| 11065 | main () |
| 11066 | { |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11067 | return readline (); |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11068 | ; |
| 11069 | return 0; |
| 11070 | } |
| 11071 | _ACEOF |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11072 | if ac_fn_c_try_link "$LINENO"; then : |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 11073 | ac_cv_lib_readline_readline=yes |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11074 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11075 | ac_cv_lib_readline_readline=no |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11076 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11077 | rm -f core conftest.err conftest.$ac_objext \ |
| 11078 | conftest$ac_exeext conftest.$ac_ext |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 11079 | LIBS=$ac_check_lib_save_LIBS |
| 11080 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11082 | $as_echo "$ac_cv_lib_readline_readline" >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11083 | if test "x$ac_cv_lib_readline_readline" = xyes; then : |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11084 | TARGET_READLINE_LIBS="-lreadline" |
drh | f1878b4 | 2006-01-23 18:06:52 +0000 | [diff] [blame] | 11085 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11086 | found="no" |
| 11087 | fi |
drh | f1878b4 | 2006-01-23 18:06:52 +0000 | [diff] [blame] | 11088 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11089 | TARGET_READLINE_LIBS="$TARGET_READLINE_LIBS $term_LIBS" |
| 11090 | LIBS="$save_LIBS" |
| 11091 | else |
| 11092 | TARGET_READLINE_LIBS="$with_readline_lib" |
| 11093 | fi |
| 11094 | |
| 11095 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11096 | # Check whether --with-readline-inc was given. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11097 | if test "${with_readline_inc+set}" = set; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11098 | withval=$with_readline_inc; with_readline_inc=$withval |
drh | f1878b4 | 2006-01-23 18:06:52 +0000 | [diff] [blame] | 11099 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11100 | with_readline_inc="auto" |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11101 | fi |
| 11102 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11103 | if test "x$with_readline_inc" = xauto; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11104 | ac_fn_c_check_header_mongrel "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default" |
| 11105 | if test "x$ac_cv_header_readline_h" = xyes; then : |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11106 | found="yes" |
| 11107 | else |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11108 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11109 | found="no" |
| 11110 | if test "$cross_compiling" != yes; then |
| 11111 | for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do |
| 11112 | for subdir in include include/readline; do |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11113 | as_ac_File=`$as_echo "ac_cv_file_$dir/$subdir/readline.h" | $as_tr_sh` |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dir/$subdir/readline.h" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11115 | $as_echo_n "checking for $dir/$subdir/readline.h... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11116 | if eval \${$as_ac_File+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11117 | $as_echo_n "(cached) " >&6 |
xdong | 28f79f7 | 2003-09-23 00:35:21 +0000 | [diff] [blame] | 11118 | else |
| 11119 | test "$cross_compiling" = yes && |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11120 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11121 | if test -r "$dir/$subdir/readline.h"; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11122 | eval "$as_ac_File=yes" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11123 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11124 | eval "$as_ac_File=no" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11125 | fi |
| 11126 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11127 | eval ac_res=\$$as_ac_File |
| 11128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11129 | $as_echo "$ac_res" >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11130 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11131 | found=yes |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11132 | fi |
| 11133 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11134 | if test "$found" = "yes"; then |
| 11135 | TARGET_READLINE_INC="-I$dir/$subdir" |
| 11136 | break |
| 11137 | fi |
| 11138 | done |
| 11139 | test "$found" = "yes" && break |
| 11140 | done |
| 11141 | fi |
| 11142 | |
| 11143 | fi |
| 11144 | |
| 11145 | |
| 11146 | else |
| 11147 | TARGET_READLINE_INC="$with_readline_inc" |
| 11148 | fi |
| 11149 | |
| 11150 | if test x"$found" = xno; then |
| 11151 | TARGET_READLINE_LIBS="" |
| 11152 | TARGET_READLINE_INC="" |
| 11153 | TARGET_HAVE_READLINE=0 |
| 11154 | else |
| 11155 | TARGET_HAVE_READLINE=1 |
| 11156 | fi |
| 11157 | fi |
| 11158 | |
| 11159 | |
| 11160 | |
| 11161 | |
| 11162 | |
drh | e44b835 | 2015-10-30 14:25:57 +0000 | [diff] [blame] | 11163 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11164 | ########## |
| 11165 | # Figure out what C libraries are required to compile programs |
| 11166 | # that use "fdatasync()" function. |
| 11167 | # |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11169 | $as_echo_n "checking for library containing fdatasync... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11170 | if ${ac_cv_search_fdatasync+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11171 | $as_echo_n "(cached) " >&6 |
xdong | 28f79f7 | 2003-09-23 00:35:21 +0000 | [diff] [blame] | 11172 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11173 | ac_func_search_save_LIBS=$LIBS |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11174 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11175 | /* end confdefs.h. */ |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11176 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11177 | /* Override any GCC internal prototype to avoid an error. |
| 11178 | Use char because int might match the return type of a GCC |
| 11179 | builtin and then its argument prototype would still apply. */ |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11180 | #ifdef __cplusplus |
| 11181 | extern "C" |
| 11182 | #endif |
| 11183 | char fdatasync (); |
| 11184 | int |
| 11185 | main () |
| 11186 | { |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11187 | return fdatasync (); |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11188 | ; |
| 11189 | return 0; |
| 11190 | } |
| 11191 | _ACEOF |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11192 | for ac_lib in '' rt; do |
| 11193 | if test -z "$ac_lib"; then |
| 11194 | ac_res="none required" |
| 11195 | else |
| 11196 | ac_res=-l$ac_lib |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11197 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11198 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11199 | if ac_fn_c_try_link "$LINENO"; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11200 | ac_cv_search_fdatasync=$ac_res |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 11201 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11202 | rm -f core conftest.err conftest.$ac_objext \ |
| 11203 | conftest$ac_exeext |
| 11204 | if ${ac_cv_search_fdatasync+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11205 | break |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11206 | fi |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11207 | done |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11208 | if ${ac_cv_search_fdatasync+:} false; then : |
| 11209 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11210 | else |
| 11211 | ac_cv_search_fdatasync=no |
| 11212 | fi |
| 11213 | rm conftest.$ac_ext |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11214 | LIBS=$ac_func_search_save_LIBS |
| 11215 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11217 | $as_echo "$ac_cv_search_fdatasync" >&6; } |
| 11218 | ac_res=$ac_cv_search_fdatasync |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11219 | if test "$ac_res" != no; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11220 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11221 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11222 | fi |
| 11223 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11224 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11225 | ######### |
tpoindex | 9d9f76c | 2005-01-03 21:28:56 +0000 | [diff] [blame] | 11226 | # check for debug enabled |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11227 | # Check whether --enable-debug was given. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11228 | if test "${enable_debug+set}" = set; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11229 | enableval=$enable_debug; use_debug=$enableval |
tpoindex | 9d9f76c | 2005-01-03 21:28:56 +0000 | [diff] [blame] | 11230 | else |
| 11231 | use_debug=no |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11232 | fi |
| 11233 | |
tpoindex | 9d9f76c | 2005-01-03 21:28:56 +0000 | [diff] [blame] | 11234 | if test "${use_debug}" = "yes" ; then |
drh | eae3a0d | 2006-03-03 20:37:52 +0000 | [diff] [blame] | 11235 | TARGET_DEBUG="-DSQLITE_DEBUG=1" |
tpoindex | 9d9f76c | 2005-01-03 21:28:56 +0000 | [diff] [blame] | 11236 | else |
| 11237 | TARGET_DEBUG="-DNDEBUG" |
| 11238 | fi |
| 11239 | |
| 11240 | |
| 11241 | ######### |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 11242 | # See whether we should use the amalgamation to build |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11243 | # Check whether --enable-amalgamation was given. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11244 | if test "${enable_amalgamation+set}" = set; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11245 | enableval=$enable_amalgamation; use_amalgamation=$enableval |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 11246 | else |
| 11247 | use_amalgamation=yes |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11248 | fi |
| 11249 | |
mlcreech | f386811 | 2008-03-11 18:03:30 +0000 | [diff] [blame] | 11250 | if test "${use_amalgamation}" != "yes" ; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 11251 | USE_AMALGAMATION=0 |
| 11252 | fi |
| 11253 | |
| 11254 | |
| 11255 | ######### |
mlcreech | a4edab0 | 2008-03-06 04:14:17 +0000 | [diff] [blame] | 11256 | # See whether we should allow loadable extensions |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11257 | # Check whether --enable-load-extension was given. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11258 | if test "${enable_load_extension+set}" = set; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11259 | enableval=$enable_load_extension; use_loadextension=$enableval |
mlcreech | a4edab0 | 2008-03-06 04:14:17 +0000 | [diff] [blame] | 11260 | else |
drh | 05c7e0b | 2015-01-10 14:27:17 +0000 | [diff] [blame] | 11261 | use_loadextension=yes |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11262 | fi |
| 11263 | |
mlcreech | a4edab0 | 2008-03-06 04:14:17 +0000 | [diff] [blame] | 11264 | if test "${use_loadextension}" = "yes" ; then |
shane | fbedede | 2008-07-22 05:05:01 +0000 | [diff] [blame] | 11265 | OPT_FEATURE_FLAGS="" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11266 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 |
drh | dbe4b88 | 2011-06-20 18:00:17 +0000 | [diff] [blame] | 11267 | $as_echo_n "checking for library containing dlopen... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11268 | if ${ac_cv_search_dlopen+:} false; then : |
drh | dbe4b88 | 2011-06-20 18:00:17 +0000 | [diff] [blame] | 11269 | $as_echo_n "(cached) " >&6 |
| 11270 | else |
| 11271 | ac_func_search_save_LIBS=$LIBS |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11272 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
drh | dbe4b88 | 2011-06-20 18:00:17 +0000 | [diff] [blame] | 11273 | /* end confdefs.h. */ |
| 11274 | |
| 11275 | /* Override any GCC internal prototype to avoid an error. |
| 11276 | Use char because int might match the return type of a GCC |
| 11277 | builtin and then its argument prototype would still apply. */ |
| 11278 | #ifdef __cplusplus |
| 11279 | extern "C" |
| 11280 | #endif |
| 11281 | char dlopen (); |
| 11282 | int |
| 11283 | main () |
| 11284 | { |
| 11285 | return dlopen (); |
| 11286 | ; |
| 11287 | return 0; |
| 11288 | } |
| 11289 | _ACEOF |
| 11290 | for ac_lib in '' dl; do |
| 11291 | if test -z "$ac_lib"; then |
| 11292 | ac_res="none required" |
| 11293 | else |
| 11294 | ac_res=-l$ac_lib |
| 11295 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 11296 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11297 | if ac_fn_c_try_link "$LINENO"; then : |
drh | dbe4b88 | 2011-06-20 18:00:17 +0000 | [diff] [blame] | 11298 | ac_cv_search_dlopen=$ac_res |
drh | dbe4b88 | 2011-06-20 18:00:17 +0000 | [diff] [blame] | 11299 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11300 | rm -f core conftest.err conftest.$ac_objext \ |
| 11301 | conftest$ac_exeext |
| 11302 | if ${ac_cv_search_dlopen+:} false; then : |
drh | dbe4b88 | 2011-06-20 18:00:17 +0000 | [diff] [blame] | 11303 | break |
| 11304 | fi |
| 11305 | done |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11306 | if ${ac_cv_search_dlopen+:} false; then : |
| 11307 | |
drh | dbe4b88 | 2011-06-20 18:00:17 +0000 | [diff] [blame] | 11308 | else |
| 11309 | ac_cv_search_dlopen=no |
| 11310 | fi |
| 11311 | rm conftest.$ac_ext |
| 11312 | LIBS=$ac_func_search_save_LIBS |
| 11313 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 |
drh | dbe4b88 | 2011-06-20 18:00:17 +0000 | [diff] [blame] | 11315 | $as_echo "$ac_cv_search_dlopen" >&6; } |
| 11316 | ac_res=$ac_cv_search_dlopen |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11317 | if test "$ac_res" != no; then : |
drh | dbe4b88 | 2011-06-20 18:00:17 +0000 | [diff] [blame] | 11318 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 11319 | |
| 11320 | fi |
| 11321 | |
mlcreech | a4edab0 | 2008-03-06 04:14:17 +0000 | [diff] [blame] | 11322 | else |
shane | fbedede | 2008-07-22 05:05:01 +0000 | [diff] [blame] | 11323 | OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1" |
mlcreech | a4edab0 | 2008-03-06 04:14:17 +0000 | [diff] [blame] | 11324 | fi |
| 11325 | |
mlcreech | aac7b93 | 2008-04-01 02:45:22 +0000 | [diff] [blame] | 11326 | ######### |
drh | ce1d9f5 | 2015-10-09 12:48:33 +0000 | [diff] [blame] | 11327 | # See whether we should enable Full Text Search extensions |
| 11328 | # Check whether --enable-fts3 was given. |
| 11329 | if test "${enable_fts3+set}" = set; then : |
| 11330 | enableval=$enable_fts3; enable_fts3=yes |
| 11331 | else |
| 11332 | enable_fts3=no |
| 11333 | fi |
| 11334 | |
| 11335 | if test "${enable_fts3}" = "yes" ; then |
| 11336 | OPT_FEATURE_FLAGS+=" -DSQLITE_ENABLE_FTS3" |
| 11337 | fi |
| 11338 | # Check whether --enable-fts4 was given. |
| 11339 | if test "${enable_fts4+set}" = set; then : |
| 11340 | enableval=$enable_fts4; enable_fts4=yes |
| 11341 | else |
| 11342 | enable_fts4=no |
| 11343 | fi |
| 11344 | |
| 11345 | if test "${enable_fts4}" = "yes" ; then |
| 11346 | OPT_FEATURE_FLAGS+=" -DSQLITE_ENABLE_FTS4" |
| 11347 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5 |
| 11348 | $as_echo_n "checking for library containing log... " >&6; } |
| 11349 | if ${ac_cv_search_log+:} false; then : |
| 11350 | $as_echo_n "(cached) " >&6 |
| 11351 | else |
| 11352 | ac_func_search_save_LIBS=$LIBS |
| 11353 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11354 | /* end confdefs.h. */ |
| 11355 | |
| 11356 | /* Override any GCC internal prototype to avoid an error. |
| 11357 | Use char because int might match the return type of a GCC |
| 11358 | builtin and then its argument prototype would still apply. */ |
| 11359 | #ifdef __cplusplus |
| 11360 | extern "C" |
| 11361 | #endif |
| 11362 | char log (); |
| 11363 | int |
| 11364 | main () |
| 11365 | { |
| 11366 | return log (); |
| 11367 | ; |
| 11368 | return 0; |
| 11369 | } |
| 11370 | _ACEOF |
| 11371 | for ac_lib in '' m; do |
| 11372 | if test -z "$ac_lib"; then |
| 11373 | ac_res="none required" |
| 11374 | else |
| 11375 | ac_res=-l$ac_lib |
| 11376 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 11377 | fi |
| 11378 | if ac_fn_c_try_link "$LINENO"; then : |
| 11379 | ac_cv_search_log=$ac_res |
| 11380 | fi |
| 11381 | rm -f core conftest.err conftest.$ac_objext \ |
| 11382 | conftest$ac_exeext |
| 11383 | if ${ac_cv_search_log+:} false; then : |
| 11384 | break |
| 11385 | fi |
| 11386 | done |
| 11387 | if ${ac_cv_search_log+:} false; then : |
| 11388 | |
| 11389 | else |
| 11390 | ac_cv_search_log=no |
| 11391 | fi |
| 11392 | rm conftest.$ac_ext |
| 11393 | LIBS=$ac_func_search_save_LIBS |
| 11394 | fi |
| 11395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5 |
| 11396 | $as_echo "$ac_cv_search_log" >&6; } |
| 11397 | ac_res=$ac_cv_search_log |
| 11398 | if test "$ac_res" != no; then : |
| 11399 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 11400 | |
| 11401 | fi |
| 11402 | |
| 11403 | fi |
| 11404 | # Check whether --enable-fts5 was given. |
| 11405 | if test "${enable_fts5+set}" = set; then : |
| 11406 | enableval=$enable_fts5; enable_fts5=yes |
| 11407 | else |
| 11408 | enable_fts5=no |
| 11409 | fi |
| 11410 | |
| 11411 | if test "${enable_fts5}" = "yes" ; then |
| 11412 | OPT_FEATURE_FLAGS+=" -DSQLITE_ENABLE_FTS5" |
| 11413 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5 |
| 11414 | $as_echo_n "checking for library containing log... " >&6; } |
| 11415 | if ${ac_cv_search_log+:} false; then : |
| 11416 | $as_echo_n "(cached) " >&6 |
| 11417 | else |
| 11418 | ac_func_search_save_LIBS=$LIBS |
| 11419 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11420 | /* end confdefs.h. */ |
| 11421 | |
| 11422 | /* Override any GCC internal prototype to avoid an error. |
| 11423 | Use char because int might match the return type of a GCC |
| 11424 | builtin and then its argument prototype would still apply. */ |
| 11425 | #ifdef __cplusplus |
| 11426 | extern "C" |
| 11427 | #endif |
| 11428 | char log (); |
| 11429 | int |
| 11430 | main () |
| 11431 | { |
| 11432 | return log (); |
| 11433 | ; |
| 11434 | return 0; |
| 11435 | } |
| 11436 | _ACEOF |
| 11437 | for ac_lib in '' m; do |
| 11438 | if test -z "$ac_lib"; then |
| 11439 | ac_res="none required" |
| 11440 | else |
| 11441 | ac_res=-l$ac_lib |
| 11442 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 11443 | fi |
| 11444 | if ac_fn_c_try_link "$LINENO"; then : |
| 11445 | ac_cv_search_log=$ac_res |
| 11446 | fi |
| 11447 | rm -f core conftest.err conftest.$ac_objext \ |
| 11448 | conftest$ac_exeext |
| 11449 | if ${ac_cv_search_log+:} false; then : |
| 11450 | break |
| 11451 | fi |
| 11452 | done |
| 11453 | if ${ac_cv_search_log+:} false; then : |
| 11454 | |
| 11455 | else |
| 11456 | ac_cv_search_log=no |
| 11457 | fi |
| 11458 | rm conftest.$ac_ext |
| 11459 | LIBS=$ac_func_search_save_LIBS |
| 11460 | fi |
| 11461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5 |
| 11462 | $as_echo "$ac_cv_search_log" >&6; } |
| 11463 | ac_res=$ac_cv_search_log |
| 11464 | if test "$ac_res" != no; then : |
| 11465 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 11466 | |
| 11467 | fi |
| 11468 | |
| 11469 | fi |
| 11470 | |
| 11471 | ######### |
| 11472 | # See whether we should enable JSON1 |
| 11473 | # Check whether --enable-json1 was given. |
| 11474 | if test "${enable_json1+set}" = set; then : |
| 11475 | enableval=$enable_json1; enable_json1=yes |
| 11476 | else |
| 11477 | enable_json1=no |
| 11478 | fi |
| 11479 | |
| 11480 | if test "${enable_json1}" = "yes" ; then |
| 11481 | OPT_FEATURE_FLAGS+=" -DSQLITE_ENABLE_JSON1" |
| 11482 | fi |
| 11483 | |
| 11484 | ######### |
| 11485 | # See whether we should enable RTREE |
| 11486 | # Check whether --enable-rtree was given. |
| 11487 | if test "${enable_rtree+set}" = set; then : |
| 11488 | enableval=$enable_rtree; enable_rtree=yes |
| 11489 | else |
| 11490 | enable_rtree=no |
| 11491 | fi |
| 11492 | |
| 11493 | if test "${enable_rtree}" = "yes" ; then |
| 11494 | OPT_FEATURE_FLAGS+=" -DSQLITE_ENABLE_RTREE" |
| 11495 | fi |
| 11496 | |
| 11497 | ######### |
shane | b1cd730 | 2008-10-22 18:27:31 +0000 | [diff] [blame] | 11498 | # attempt to duplicate any OMITS and ENABLES into the $(OPT_FEATURE_FLAGS) parameter |
shane | fbedede | 2008-07-22 05:05:01 +0000 | [diff] [blame] | 11499 | for option in $CFLAGS $CPPFLAGS |
| 11500 | do |
| 11501 | case $option in |
danielk1977 | 33a1478 | 2008-08-04 14:50:05 +0000 | [diff] [blame] | 11502 | -DSQLITE_OMIT*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";; |
shane | b1cd730 | 2008-10-22 18:27:31 +0000 | [diff] [blame] | 11503 | -DSQLITE_ENABLE*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";; |
shane | fbedede | 2008-07-22 05:05:01 +0000 | [diff] [blame] | 11504 | esac |
| 11505 | done |
| 11506 | |
| 11507 | |
danielk1977 | 33a1478 | 2008-08-04 14:50:05 +0000 | [diff] [blame] | 11508 | |
shane | b1cd730 | 2008-10-22 18:27:31 +0000 | [diff] [blame] | 11509 | # attempt to remove any OMITS and ENABLES from the $(CFLAGS) parameter |
shane | fbedede | 2008-07-22 05:05:01 +0000 | [diff] [blame] | 11510 | ac_temp_CFLAGS="" |
| 11511 | for option in $CFLAGS |
| 11512 | do |
| 11513 | case $option in |
| 11514 | -DSQLITE_OMIT*) ;; |
shane | b1cd730 | 2008-10-22 18:27:31 +0000 | [diff] [blame] | 11515 | -DSQLITE_ENABLE*) ;; |
danielk1977 | 33a1478 | 2008-08-04 14:50:05 +0000 | [diff] [blame] | 11516 | *) ac_temp_CFLAGS="$ac_temp_CFLAGS $option";; |
shane | fbedede | 2008-07-22 05:05:01 +0000 | [diff] [blame] | 11517 | esac |
| 11518 | done |
| 11519 | CFLAGS=$ac_temp_CFLAGS |
| 11520 | |
| 11521 | |
shane | b1cd730 | 2008-10-22 18:27:31 +0000 | [diff] [blame] | 11522 | # attempt to remove any OMITS and ENABLES from the $(CPPFLAGS) parameter |
shane | fbedede | 2008-07-22 05:05:01 +0000 | [diff] [blame] | 11523 | ac_temp_CPPFLAGS="" |
| 11524 | for option in $CPPFLAGS |
| 11525 | do |
| 11526 | case $option in |
| 11527 | -DSQLITE_OMIT*) ;; |
shane | b1cd730 | 2008-10-22 18:27:31 +0000 | [diff] [blame] | 11528 | -DSQLITE_ENABLE*) ;; |
danielk1977 | 33a1478 | 2008-08-04 14:50:05 +0000 | [diff] [blame] | 11529 | *) ac_temp_CPPFLAGS="$ac_temp_CPPFLAGS $option";; |
shane | fbedede | 2008-07-22 05:05:01 +0000 | [diff] [blame] | 11530 | esac |
| 11531 | done |
| 11532 | CPPFLAGS=$ac_temp_CPPFLAGS |
| 11533 | |
danielk1977 | 33a1478 | 2008-08-04 14:50:05 +0000 | [diff] [blame] | 11534 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11535 | # attempt to remove any OMITS and ENABLES from the $(BUILD_CFLAGS) parameter |
shane | fbedede | 2008-07-22 05:05:01 +0000 | [diff] [blame] | 11536 | ac_temp_BUILD_CFLAGS="" |
| 11537 | for option in $BUILD_CFLAGS |
| 11538 | do |
| 11539 | case $option in |
| 11540 | -DSQLITE_OMIT*) ;; |
shane | b1cd730 | 2008-10-22 18:27:31 +0000 | [diff] [blame] | 11541 | -DSQLITE_ENABLE*) ;; |
danielk1977 | 33a1478 | 2008-08-04 14:50:05 +0000 | [diff] [blame] | 11542 | *) ac_temp_BUILD_CFLAGS="$ac_temp_BUILD_CFLAGS $option";; |
shane | fbedede | 2008-07-22 05:05:01 +0000 | [diff] [blame] | 11543 | esac |
| 11544 | done |
| 11545 | BUILD_CFLAGS=$ac_temp_BUILD_CFLAGS |
| 11546 | |
| 11547 | |
| 11548 | ######### |
| 11549 | # See whether we should use GCOV |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11550 | # Check whether --enable-gcov was given. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11551 | if test "${enable_gcov+set}" = set; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11552 | enableval=$enable_gcov; use_gcov=$enableval |
mlcreech | aac7b93 | 2008-04-01 02:45:22 +0000 | [diff] [blame] | 11553 | else |
| 11554 | use_gcov=no |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11555 | fi |
| 11556 | |
mlcreech | aac7b93 | 2008-04-01 02:45:22 +0000 | [diff] [blame] | 11557 | if test "${use_gcov}" = "yes" ; then |
| 11558 | USE_GCOV=1 |
| 11559 | else |
| 11560 | USE_GCOV=0 |
| 11561 | fi |
| 11562 | |
| 11563 | |
danielk1977 | 33a1478 | 2008-08-04 14:50:05 +0000 | [diff] [blame] | 11564 | |
drh | 2dfbbca | 2000-07-28 14:32:48 +0000 | [diff] [blame] | 11565 | ######### |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 11566 | # Output the config header |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11567 | ac_config_headers="$ac_config_headers config.h" |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 11568 | |
| 11569 | |
| 11570 | ######### |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11571 | # Generate the output files. |
| 11572 | # |
mlcreech | df59c7c | 2008-03-06 07:51:15 +0000 | [diff] [blame] | 11573 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11574 | ac_config_files="$ac_config_files Makefile sqlite3.pc" |
| 11575 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11576 | cat >confcache <<\_ACEOF |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11577 | # This file is a shell script that caches the results of configure |
| 11578 | # tests run on this system so they can be shared between configure |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11579 | # scripts and configure runs, see configure's option --config-cache. |
| 11580 | # It is not useful on other systems. If it contains results you don't |
| 11581 | # want to keep, you may remove or edit it. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11582 | # |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11583 | # config.status only pays attention to the cache file if you give it |
| 11584 | # the --recheck option to rerun configure. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11585 | # |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11586 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11587 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 11588 | # following values. |
| 11589 | |
| 11590 | _ACEOF |
| 11591 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11592 | # The following way of writing the cache mishandles newlines in values, |
| 11593 | # but we know of no workaround that is simple, portable, and efficient. |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11594 | # So, we kill variables containing newlines. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11595 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 11596 | # and sets the high bit in the cache file unless we assign to the vars. |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11597 | ( |
| 11598 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 11599 | eval ac_val=\$$ac_var |
| 11600 | case $ac_val in #( |
| 11601 | *${as_nl}*) |
| 11602 | case $ac_var in #( |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11603 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 11604 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11605 | esac |
| 11606 | case $ac_var in #( |
| 11607 | _ | IFS | as_nl) ;; #( |
| 11608 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11609 | *) { eval $ac_var=; unset $ac_var;} ;; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11610 | esac ;; |
| 11611 | esac |
| 11612 | done |
| 11613 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11614 | (set) 2>&1 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11615 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 11616 | *${as_nl}ac_space=\ *) |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11617 | # `set' does not quote correctly, so add quotes: double-quote |
| 11618 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11619 | sed -n \ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 11620 | "s/'/'\\\\''/g; |
| 11621 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11622 | ;; #( |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11623 | *) |
| 11624 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11625 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11626 | ;; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11627 | esac | |
| 11628 | sort |
| 11629 | ) | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11630 | sed ' |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11631 | /^ac_cv_env_/b end |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11632 | t clear |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11633 | :clear |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11634 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 11635 | t end |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11636 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 11637 | :end' >>confcache |
| 11638 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 11639 | if test -w "$cache_file"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11640 | if test "x$cache_file" != "x/dev/null"; then |
| 11641 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11642 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11643 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
| 11644 | cat confcache >"$cache_file" |
| 11645 | else |
| 11646 | case $cache_file in #( |
| 11647 | */* | ?:*) |
| 11648 | mv -f confcache "$cache_file"$$ && |
| 11649 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
| 11650 | *) |
| 11651 | mv -f confcache "$cache_file" ;; |
| 11652 | esac |
| 11653 | fi |
| 11654 | fi |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11655 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11656 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11657 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11658 | fi |
| 11659 | fi |
| 11660 | rm -f confcache |
| 11661 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11662 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 11663 | # Let make expand exec_prefix. |
| 11664 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 11665 | |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 11666 | DEFS=-DHAVE_CONFIG_H |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11667 | |
| 11668 | ac_libobjs= |
| 11669 | ac_ltlibobjs= |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11670 | U= |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11671 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 11672 | # 1. Remove the extension, and $U if already installed. |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11673 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 11674 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
| 11675 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 11676 | # will be set to the directory where LIBOBJS objects are built. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11677 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 11678 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11679 | done |
| 11680 | LIBOBJS=$ac_libobjs |
| 11681 | |
| 11682 | LTLIBOBJS=$ac_ltlibobjs |
| 11683 | |
| 11684 | |
| 11685 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11686 | : "${CONFIG_STATUS=./config.status}" |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11687 | ac_write_fail=0 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11688 | ac_clean_files_save=$ac_clean_files |
| 11689 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11690 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11691 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11692 | as_write_fail=0 |
| 11693 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11694 | #! $SHELL |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11695 | # Generated by $as_me. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11696 | # Run this file to recreate the current configuration. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11697 | # Compiler output produced by configure, useful for debugging |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11698 | # configure, is in config.log if it exists. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11699 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11700 | debug=false |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11701 | ac_cs_recheck=false |
| 11702 | ac_cs_silent=false |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 11703 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11704 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 11705 | export SHELL |
| 11706 | _ASEOF |
| 11707 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 11708 | ## -------------------- ## |
| 11709 | ## M4sh Initialization. ## |
| 11710 | ## -------------------- ## |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11711 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11712 | # Be more Bourne compatible |
| 11713 | DUALCASE=1; export DUALCASE # for MKS sh |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11714 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11715 | emulate sh |
| 11716 | NULLCMD=: |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11717 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11718 | # is contrary to our usage. Disable this feature. |
| 11719 | alias -g '${1+"$@"}'='"$@"' |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11720 | setopt NO_GLOB_SUBST |
| 11721 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11722 | case `(set -o) 2>/dev/null` in #( |
| 11723 | *posix*) : |
| 11724 | set -o posix ;; #( |
| 11725 | *) : |
| 11726 | ;; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11727 | esac |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11728 | fi |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11729 | |
| 11730 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11731 | as_nl=' |
| 11732 | ' |
| 11733 | export as_nl |
| 11734 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 11735 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 11736 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 11737 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11738 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 11739 | # but without wasting forks for bash or zsh. |
| 11740 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 11741 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 11742 | as_echo='print -r --' |
| 11743 | as_echo_n='print -rn --' |
| 11744 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11745 | as_echo='printf %s\n' |
| 11746 | as_echo_n='printf %s' |
| 11747 | else |
| 11748 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 11749 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 11750 | as_echo_n='/usr/ucb/echo -n' |
| 11751 | else |
| 11752 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 11753 | as_echo_n_body='eval |
| 11754 | arg=$1; |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11755 | case $arg in #( |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11756 | *"$as_nl"*) |
| 11757 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 11758 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 11759 | esac; |
| 11760 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 11761 | ' |
| 11762 | export as_echo_n_body |
| 11763 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 11764 | fi |
| 11765 | export as_echo_body |
| 11766 | as_echo='sh -c $as_echo_body as_echo' |
| 11767 | fi |
| 11768 | |
| 11769 | # The user is always right. |
| 11770 | if test "${PATH_SEPARATOR+set}" != set; then |
| 11771 | PATH_SEPARATOR=: |
| 11772 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 11773 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 11774 | PATH_SEPARATOR=';' |
| 11775 | } |
| 11776 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11777 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 11778 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11779 | # IFS |
| 11780 | # We need space, tab and new line, in precisely that order. Quoting is |
| 11781 | # there to prevent editors from complaining about space-tab. |
| 11782 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 11783 | # splitting by setting IFS to empty value.) |
| 11784 | IFS=" "" $as_nl" |
| 11785 | |
| 11786 | # Find who we are. Look in the path if we contain no directory separator. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11787 | as_myself= |
| 11788 | case $0 in #(( |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11789 | *[\\/]* ) as_myself=$0 ;; |
| 11790 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11791 | for as_dir in $PATH |
| 11792 | do |
| 11793 | IFS=$as_save_IFS |
| 11794 | test -z "$as_dir" && as_dir=. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11795 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 11796 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11797 | IFS=$as_save_IFS |
| 11798 | |
| 11799 | ;; |
| 11800 | esac |
| 11801 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 11802 | # in which case we are not to be found in the path. |
| 11803 | if test "x$as_myself" = x; then |
| 11804 | as_myself=$0 |
| 11805 | fi |
| 11806 | if test ! -f "$as_myself"; then |
| 11807 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11808 | exit 1 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11809 | fi |
| 11810 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11811 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 11812 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 11813 | # suppresses any "Segmentation fault" message there. '((' could |
| 11814 | # trigger a bug in pdksh 5.2.14. |
| 11815 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 11816 | do eval test x\${$as_var+set} = xset \ |
| 11817 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11818 | done |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 11819 | PS1='$ ' |
| 11820 | PS2='> ' |
| 11821 | PS4='+ ' |
| 11822 | |
| 11823 | # NLS nuisances. |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11824 | LC_ALL=C |
| 11825 | export LC_ALL |
| 11826 | LANGUAGE=C |
| 11827 | export LANGUAGE |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 11828 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11829 | # CDPATH. |
| 11830 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 11831 | |
| 11832 | |
| 11833 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 11834 | # ---------------------------------------- |
| 11835 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 11836 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 11837 | # script with STATUS, using 1 if that was 0. |
| 11838 | as_fn_error () |
| 11839 | { |
| 11840 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 11841 | if test "$4"; then |
| 11842 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 11843 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 11844 | fi |
| 11845 | $as_echo "$as_me: error: $2" >&2 |
| 11846 | as_fn_exit $as_status |
| 11847 | } # as_fn_error |
| 11848 | |
| 11849 | |
| 11850 | # as_fn_set_status STATUS |
| 11851 | # ----------------------- |
| 11852 | # Set $? to STATUS, without forking. |
| 11853 | as_fn_set_status () |
| 11854 | { |
| 11855 | return $1 |
| 11856 | } # as_fn_set_status |
| 11857 | |
| 11858 | # as_fn_exit STATUS |
| 11859 | # ----------------- |
| 11860 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 11861 | as_fn_exit () |
| 11862 | { |
| 11863 | set +e |
| 11864 | as_fn_set_status $1 |
| 11865 | exit $1 |
| 11866 | } # as_fn_exit |
| 11867 | |
| 11868 | # as_fn_unset VAR |
| 11869 | # --------------- |
| 11870 | # Portably unset VAR. |
| 11871 | as_fn_unset () |
| 11872 | { |
| 11873 | { eval $1=; unset $1;} |
| 11874 | } |
| 11875 | as_unset=as_fn_unset |
| 11876 | # as_fn_append VAR VALUE |
| 11877 | # ---------------------- |
| 11878 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 11879 | # advantage of any shell optimizations that allow amortized linear growth over |
| 11880 | # repeated appends, instead of the typical quadratic growth present in naive |
| 11881 | # implementations. |
| 11882 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 11883 | eval 'as_fn_append () |
| 11884 | { |
| 11885 | eval $1+=\$2 |
| 11886 | }' |
| 11887 | else |
| 11888 | as_fn_append () |
| 11889 | { |
| 11890 | eval $1=\$$1\$2 |
| 11891 | } |
| 11892 | fi # as_fn_append |
| 11893 | |
| 11894 | # as_fn_arith ARG... |
| 11895 | # ------------------ |
| 11896 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 11897 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 11898 | # must be portable across $(()) and expr. |
| 11899 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 11900 | eval 'as_fn_arith () |
| 11901 | { |
| 11902 | as_val=$(( $* )) |
| 11903 | }' |
| 11904 | else |
| 11905 | as_fn_arith () |
| 11906 | { |
| 11907 | as_val=`expr "$@" || test $? -eq 1` |
| 11908 | } |
| 11909 | fi # as_fn_arith |
| 11910 | |
| 11911 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11912 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 11913 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 11914 | as_expr=expr |
| 11915 | else |
| 11916 | as_expr=false |
| 11917 | fi |
| 11918 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11919 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 11920 | as_basename=basename |
| 11921 | else |
| 11922 | as_basename=false |
| 11923 | fi |
| 11924 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11925 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 11926 | as_dirname=dirname |
| 11927 | else |
| 11928 | as_dirname=false |
| 11929 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 11930 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11931 | as_me=`$as_basename -- "$0" || |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 11932 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 11933 | X"$0" : 'X\(//\)$' \| \ |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11934 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 11935 | $as_echo X/"$0" | |
| 11936 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 11937 | s//\1/ |
| 11938 | q |
| 11939 | } |
| 11940 | /^X\/\(\/\/\)$/{ |
| 11941 | s//\1/ |
| 11942 | q |
| 11943 | } |
| 11944 | /^X\/\(\/\).*/{ |
| 11945 | s//\1/ |
| 11946 | q |
| 11947 | } |
| 11948 | s/.*/./; q'` |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 11949 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11950 | # Avoid depending upon Character Ranges. |
| 11951 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 11952 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 11953 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 11954 | as_cr_digits='0123456789' |
| 11955 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11956 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11957 | ECHO_C= ECHO_N= ECHO_T= |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11958 | case `echo -n x` in #((((( |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11959 | -n*) |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11960 | case `echo 'xy\c'` in |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11961 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11962 | xy) ECHO_C='\c';; |
| 11963 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 11964 | ECHO_T=' ';; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11965 | esac;; |
| 11966 | *) |
| 11967 | ECHO_N='-n';; |
| 11968 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11969 | |
| 11970 | rm -f conf$$ conf$$.exe conf$$.file |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11971 | if test -d conf$$.dir; then |
| 11972 | rm -f conf$$.dir/conf$$.file |
| 11973 | else |
| 11974 | rm -f conf$$.dir |
| 11975 | mkdir conf$$.dir 2>/dev/null |
| 11976 | fi |
| 11977 | if (echo >conf$$.file) 2>/dev/null; then |
| 11978 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11979 | as_ln_s='ln -s' |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11980 | # ... but there are two gotchas: |
| 11981 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 11982 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11983 | # In both cases, we have to default to `cp -pR'. |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11984 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11985 | as_ln_s='cp -pR' |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11986 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 11987 | as_ln_s=ln |
| 11988 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11989 | as_ln_s='cp -pR' |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 11990 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11991 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11992 | as_ln_s='cp -pR' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11993 | fi |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11994 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 11995 | rmdir conf$$.dir 2>/dev/null |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11996 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11997 | |
| 11998 | # as_fn_mkdir_p |
| 11999 | # ------------- |
| 12000 | # Create "$as_dir" as a directory, including parents if necessary. |
| 12001 | as_fn_mkdir_p () |
| 12002 | { |
| 12003 | |
| 12004 | case $as_dir in #( |
| 12005 | -*) as_dir=./$as_dir;; |
| 12006 | esac |
| 12007 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 12008 | as_dirs= |
| 12009 | while :; do |
| 12010 | case $as_dir in #( |
| 12011 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 12012 | *) as_qdir=$as_dir;; |
| 12013 | esac |
| 12014 | as_dirs="'$as_qdir' $as_dirs" |
| 12015 | as_dir=`$as_dirname -- "$as_dir" || |
| 12016 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 12017 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 12018 | X"$as_dir" : 'X\(//\)$' \| \ |
| 12019 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 12020 | $as_echo X"$as_dir" | |
| 12021 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 12022 | s//\1/ |
| 12023 | q |
| 12024 | } |
| 12025 | /^X\(\/\/\)[^/].*/{ |
| 12026 | s//\1/ |
| 12027 | q |
| 12028 | } |
| 12029 | /^X\(\/\/\)$/{ |
| 12030 | s//\1/ |
| 12031 | q |
| 12032 | } |
| 12033 | /^X\(\/\).*/{ |
| 12034 | s//\1/ |
| 12035 | q |
| 12036 | } |
| 12037 | s/.*/./; q'` |
| 12038 | test -d "$as_dir" && break |
| 12039 | done |
| 12040 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 12041 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 12042 | |
| 12043 | |
| 12044 | } # as_fn_mkdir_p |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12045 | if mkdir -p . 2>/dev/null; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12046 | as_mkdir_p='mkdir -p "$as_dir"' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12047 | else |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 12048 | test -d ./-p && rmdir ./-p |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12049 | as_mkdir_p=false |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12050 | fi |
| 12051 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12052 | |
| 12053 | # as_fn_executable_p FILE |
| 12054 | # ----------------------- |
| 12055 | # Test if FILE is an executable regular file. |
| 12056 | as_fn_executable_p () |
| 12057 | { |
| 12058 | test -f "$1" && test -x "$1" |
| 12059 | } # as_fn_executable_p |
| 12060 | as_test_x='test -x' |
| 12061 | as_executable_p=as_fn_executable_p |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12062 | |
| 12063 | # Sed expression to map a string onto a valid CPP name. |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 12064 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12065 | |
| 12066 | # Sed expression to map a string onto a valid variable name. |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 12067 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12068 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12069 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12070 | exec 6>&1 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12071 | ## ----------------------------------- ## |
| 12072 | ## Main body of $CONFIG_STATUS script. ## |
| 12073 | ## ----------------------------------- ## |
| 12074 | _ASEOF |
| 12075 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12076 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12077 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 12078 | # Save the log message, to keep $0 and so on meaningful, and to |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12079 | # report actual input values of CONFIG_FILES etc. instead of their |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12080 | # values after options handling. |
| 12081 | ac_log=" |
drh | 2fca705 | 2016-01-11 12:52:55 +0000 | [diff] [blame] | 12082 | This file was extended by sqlite $as_me 3.11.0, which was |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12083 | generated by GNU Autoconf 2.69. Invocation command line was |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12084 | |
| 12085 | CONFIG_FILES = $CONFIG_FILES |
| 12086 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 12087 | CONFIG_LINKS = $CONFIG_LINKS |
| 12088 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 12089 | $ $0 $@ |
| 12090 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12091 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 12092 | " |
| 12093 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12094 | _ACEOF |
| 12095 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12096 | case $ac_config_files in *" |
| 12097 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 12098 | esac |
| 12099 | |
| 12100 | case $ac_config_headers in *" |
| 12101 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 12102 | esac |
| 12103 | |
| 12104 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12105 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12106 | # Files that config.status was made for. |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12107 | config_files="$ac_config_files" |
| 12108 | config_headers="$ac_config_headers" |
| 12109 | config_commands="$ac_config_commands" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12110 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12111 | _ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12112 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12113 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12114 | ac_cs_usage="\ |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12115 | \`$as_me' instantiates files and other configuration actions |
| 12116 | from templates according to the current configuration. Unless the files |
| 12117 | and actions are specified as TAGs, all are instantiated by default. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12118 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12119 | Usage: $0 [OPTION]... [TAG]... |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12120 | |
| 12121 | -h, --help print this help, then exit |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12122 | -V, --version print version number and configuration settings, then exit |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12123 | --config print configuration, then exit |
| 12124 | -q, --quiet, --silent |
| 12125 | do not print progress messages |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12126 | -d, --debug don't remove temporary files |
| 12127 | --recheck update $as_me by reconfiguring in the same conditions |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12128 | --file=FILE[:TEMPLATE] |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12129 | instantiate the configuration file FILE |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12130 | --header=FILE[:TEMPLATE] |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12131 | instantiate the configuration header FILE |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12132 | |
| 12133 | Configuration files: |
| 12134 | $config_files |
| 12135 | |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 12136 | Configuration headers: |
| 12137 | $config_headers |
| 12138 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 12139 | Configuration commands: |
| 12140 | $config_commands |
| 12141 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12142 | Report bugs to the package provider." |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12143 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 12144 | _ACEOF |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12145 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12146 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12147 | ac_cs_version="\\ |
drh | 2fca705 | 2016-01-11 12:52:55 +0000 | [diff] [blame] | 12148 | sqlite config.status 3.11.0 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12149 | configured by $0, generated by GNU Autoconf 2.69, |
| 12150 | with options \\"\$ac_cs_config\\" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12151 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12152 | Copyright (C) 2012 Free Software Foundation, Inc. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12153 | This config.status script is free software; the Free Software Foundation |
| 12154 | gives unlimited permission to copy, distribute and modify it." |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12155 | |
| 12156 | ac_pwd='$ac_pwd' |
| 12157 | srcdir='$srcdir' |
| 12158 | INSTALL='$INSTALL' |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12159 | test -n "\$AWK" || AWK=awk |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12160 | _ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12161 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12162 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 12163 | # The default lists apply if the user does not specify any file. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12164 | ac_need_defaults=: |
| 12165 | while test $# != 0 |
| 12166 | do |
| 12167 | case $1 in |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12168 | --*=?*) |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12169 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 12170 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12171 | ac_shift=: |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12172 | ;; |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12173 | --*=) |
| 12174 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 12175 | ac_optarg= |
| 12176 | ac_shift=: |
| 12177 | ;; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12178 | *) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12179 | ac_option=$1 |
| 12180 | ac_optarg=$2 |
| 12181 | ac_shift=shift |
| 12182 | ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12183 | esac |
| 12184 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12185 | case $ac_option in |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12186 | # Handling of the options. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12187 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12188 | ac_cs_recheck=: ;; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12189 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 12190 | $as_echo "$ac_cs_version"; exit ;; |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12191 | --config | --confi | --conf | --con | --co | --c ) |
| 12192 | $as_echo "$ac_cs_config"; exit ;; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12193 | --debug | --debu | --deb | --de | --d | -d ) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12194 | debug=: ;; |
| 12195 | --file | --fil | --fi | --f ) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12196 | $ac_shift |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12197 | case $ac_optarg in |
| 12198 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12199 | '') as_fn_error $? "missing file argument" ;; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12200 | esac |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12201 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12202 | ac_need_defaults=false;; |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 12203 | --header | --heade | --head | --hea ) |
| 12204 | $ac_shift |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12205 | case $ac_optarg in |
| 12206 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 12207 | esac |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12208 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 12209 | ac_need_defaults=false;; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12210 | --he | --h) |
| 12211 | # Conflict between --help and --header |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12212 | as_fn_error $? "ambiguous option: \`$1' |
| 12213 | Try \`$0 --help' for more information.";; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12214 | --help | --hel | -h ) |
| 12215 | $as_echo "$ac_cs_usage"; exit ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12216 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 12217 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 12218 | ac_cs_silent=: ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12219 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12220 | # This is an error. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12221 | -*) as_fn_error $? "unrecognized option: \`$1' |
| 12222 | Try \`$0 --help' for more information." ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12223 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12224 | *) as_fn_append ac_config_targets " $1" |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12225 | ac_need_defaults=false ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12226 | |
| 12227 | esac |
| 12228 | shift |
| 12229 | done |
| 12230 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12231 | ac_configure_extra_args= |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12232 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12233 | if $ac_cs_silent; then |
| 12234 | exec 6>/dev/null |
| 12235 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 12236 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12237 | |
| 12238 | _ACEOF |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12239 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12240 | if \$ac_cs_recheck; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12241 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12242 | shift |
| 12243 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 12244 | CONFIG_SHELL='$SHELL' |
| 12245 | export CONFIG_SHELL |
| 12246 | exec "\$@" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12247 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12248 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12249 | _ACEOF |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12250 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 12251 | exec 5>>config.log |
| 12252 | { |
| 12253 | echo |
| 12254 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 12255 | ## Running $as_me. ## |
| 12256 | _ASBOX |
| 12257 | $as_echo "$ac_log" |
| 12258 | } >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12259 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12260 | _ACEOF |
| 12261 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 12262 | # |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12263 | # INIT-COMMANDS |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 12264 | # |
| 12265 | |
| 12266 | |
| 12267 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 12268 | # if CDPATH is set. |
| 12269 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 12270 | |
| 12271 | sed_quote_subst='$sed_quote_subst' |
| 12272 | double_quote_subst='$double_quote_subst' |
| 12273 | delay_variable_subst='$delay_variable_subst' |
| 12274 | macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' |
| 12275 | macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' |
| 12276 | enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' |
| 12277 | enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' |
| 12278 | pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' |
| 12279 | enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' |
| 12280 | host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' |
| 12281 | host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' |
| 12282 | host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' |
| 12283 | build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' |
| 12284 | build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' |
| 12285 | build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' |
| 12286 | SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' |
| 12287 | Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' |
| 12288 | GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' |
| 12289 | EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' |
| 12290 | FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' |
| 12291 | LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' |
| 12292 | NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' |
| 12293 | LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' |
| 12294 | max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' |
| 12295 | ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' |
| 12296 | exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' |
| 12297 | lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' |
| 12298 | lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' |
| 12299 | lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' |
| 12300 | reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' |
| 12301 | reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 12302 | OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 12303 | deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' |
| 12304 | file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' |
| 12305 | AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' |
| 12306 | AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' |
| 12307 | STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' |
| 12308 | RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' |
| 12309 | old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 12310 | old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 12311 | old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 12312 | CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' |
| 12313 | CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' |
| 12314 | compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' |
| 12315 | GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' |
| 12316 | lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' |
| 12317 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' |
| 12318 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`' |
| 12319 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' |
| 12320 | objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' |
| 12321 | SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' |
| 12322 | ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' |
| 12323 | MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' |
| 12324 | lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' |
| 12325 | lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' |
| 12326 | lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' |
| 12327 | lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' |
| 12328 | lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' |
| 12329 | need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' |
| 12330 | DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' |
| 12331 | NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' |
| 12332 | LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' |
| 12333 | OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' |
| 12334 | OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' |
| 12335 | libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' |
| 12336 | shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 12337 | extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 12338 | archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' |
| 12339 | enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' |
| 12340 | export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 12341 | whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 12342 | compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' |
| 12343 | old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 12344 | old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 12345 | archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 12346 | archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 12347 | module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 12348 | module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 12349 | with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' |
| 12350 | allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' |
| 12351 | no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' |
| 12352 | hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 12353 | hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' |
| 12354 | hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' |
| 12355 | hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' |
| 12356 | hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' |
| 12357 | hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' |
| 12358 | hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' |
| 12359 | hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' |
| 12360 | inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' |
| 12361 | link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' |
| 12362 | fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' |
| 12363 | always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' |
| 12364 | export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 12365 | exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' |
| 12366 | include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' |
| 12367 | prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 12368 | file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 12369 | variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' |
| 12370 | need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' |
| 12371 | need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' |
| 12372 | version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' |
| 12373 | runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' |
| 12374 | shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' |
| 12375 | shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' |
| 12376 | libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 12377 | library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 12378 | soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 12379 | postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 12380 | postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 12381 | finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 12382 | finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' |
| 12383 | hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' |
| 12384 | sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 12385 | sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 12386 | hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' |
| 12387 | enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' |
| 12388 | enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' |
| 12389 | enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' |
| 12390 | old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' |
| 12391 | striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' |
| 12392 | |
| 12393 | LTCC='$LTCC' |
| 12394 | LTCFLAGS='$LTCFLAGS' |
| 12395 | compiler='$compiler_DEFAULT' |
| 12396 | |
| 12397 | # Quote evaled strings. |
| 12398 | for var in SED \ |
| 12399 | GREP \ |
| 12400 | EGREP \ |
| 12401 | FGREP \ |
| 12402 | LD \ |
| 12403 | NM \ |
| 12404 | LN_S \ |
| 12405 | lt_SP2NL \ |
| 12406 | lt_NL2SP \ |
| 12407 | reload_flag \ |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 12408 | OBJDUMP \ |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 12409 | deplibs_check_method \ |
| 12410 | file_magic_cmd \ |
| 12411 | AR \ |
| 12412 | AR_FLAGS \ |
| 12413 | STRIP \ |
| 12414 | RANLIB \ |
| 12415 | CC \ |
| 12416 | CFLAGS \ |
| 12417 | compiler \ |
| 12418 | lt_cv_sys_global_symbol_pipe \ |
| 12419 | lt_cv_sys_global_symbol_to_cdecl \ |
| 12420 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 12421 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
| 12422 | SHELL \ |
| 12423 | ECHO \ |
| 12424 | lt_prog_compiler_no_builtin_flag \ |
| 12425 | lt_prog_compiler_wl \ |
| 12426 | lt_prog_compiler_pic \ |
| 12427 | lt_prog_compiler_static \ |
| 12428 | lt_cv_prog_compiler_c_o \ |
| 12429 | need_locks \ |
| 12430 | DSYMUTIL \ |
| 12431 | NMEDIT \ |
| 12432 | LIPO \ |
| 12433 | OTOOL \ |
| 12434 | OTOOL64 \ |
| 12435 | shrext_cmds \ |
| 12436 | export_dynamic_flag_spec \ |
| 12437 | whole_archive_flag_spec \ |
| 12438 | compiler_needs_object \ |
| 12439 | with_gnu_ld \ |
| 12440 | allow_undefined_flag \ |
| 12441 | no_undefined_flag \ |
| 12442 | hardcode_libdir_flag_spec \ |
| 12443 | hardcode_libdir_flag_spec_ld \ |
| 12444 | hardcode_libdir_separator \ |
| 12445 | fix_srcfile_path \ |
| 12446 | exclude_expsyms \ |
| 12447 | include_expsyms \ |
| 12448 | file_list_spec \ |
| 12449 | variables_saved_for_relink \ |
| 12450 | libname_spec \ |
| 12451 | library_names_spec \ |
| 12452 | soname_spec \ |
| 12453 | finish_eval \ |
| 12454 | old_striplib \ |
| 12455 | striplib; do |
| 12456 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in |
| 12457 | *[\\\\\\\`\\"\\\$]*) |
| 12458 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
| 12459 | ;; |
| 12460 | *) |
| 12461 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 12462 | ;; |
| 12463 | esac |
| 12464 | done |
| 12465 | |
| 12466 | # Double-quote double-evaled strings. |
| 12467 | for var in reload_cmds \ |
| 12468 | old_postinstall_cmds \ |
| 12469 | old_postuninstall_cmds \ |
| 12470 | old_archive_cmds \ |
| 12471 | extract_expsyms_cmds \ |
| 12472 | old_archive_from_new_cmds \ |
| 12473 | old_archive_from_expsyms_cmds \ |
| 12474 | archive_cmds \ |
| 12475 | archive_expsym_cmds \ |
| 12476 | module_cmds \ |
| 12477 | module_expsym_cmds \ |
| 12478 | export_symbols_cmds \ |
| 12479 | prelink_cmds \ |
| 12480 | postinstall_cmds \ |
| 12481 | postuninstall_cmds \ |
| 12482 | finish_cmds \ |
| 12483 | sys_lib_search_path_spec \ |
| 12484 | sys_lib_dlsearch_path_spec; do |
| 12485 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in |
| 12486 | *[\\\\\\\`\\"\\\$]*) |
| 12487 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
| 12488 | ;; |
| 12489 | *) |
| 12490 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 12491 | ;; |
| 12492 | esac |
| 12493 | done |
| 12494 | |
| 12495 | # Fix-up fallback echo if it was mangled by the above quoting rules. |
| 12496 | case \$lt_ECHO in |
| 12497 | *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` |
| 12498 | ;; |
| 12499 | esac |
| 12500 | |
| 12501 | ac_aux_dir='$ac_aux_dir' |
| 12502 | xsi_shell='$xsi_shell' |
| 12503 | lt_shell_append='$lt_shell_append' |
| 12504 | |
| 12505 | # See if we are running on zsh, and set the options which allow our |
| 12506 | # commands through without removal of \ escapes INIT. |
| 12507 | if test -n "\${ZSH_VERSION+set}" ; then |
| 12508 | setopt NO_GLOB_SUBST |
| 12509 | fi |
| 12510 | |
| 12511 | |
| 12512 | PACKAGE='$PACKAGE' |
| 12513 | VERSION='$VERSION' |
| 12514 | TIMESTAMP='$TIMESTAMP' |
| 12515 | RM='$RM' |
| 12516 | ofile='$ofile' |
| 12517 | |
| 12518 | |
| 12519 | |
| 12520 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 12521 | _ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12522 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12523 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 12524 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12525 | # Handling of arguments. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12526 | for ac_config_target in $ac_config_targets |
| 12527 | do |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12528 | case $ac_config_target in |
| 12529 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
| 12530 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
| 12531 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 12532 | "sqlite3.pc") CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;; |
| 12533 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12534 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12535 | esac |
| 12536 | done |
| 12537 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12538 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12539 | # If the user did not use the arguments to specify the items to instantiate, |
| 12540 | # then the envvar interface is used. Set only those that are not. |
| 12541 | # We use the long form for the default assignment because of an extremely |
| 12542 | # bizarre bug on SunOS 4.1.3. |
| 12543 | if $ac_need_defaults; then |
| 12544 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 12545 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 12546 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12547 | fi |
| 12548 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12549 | # Have a temporary directory for convenience. Make it in the build tree |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12550 | # simply because there is no reason against having it here, and in addition, |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12551 | # creating and moving files from /tmp can sometimes cause problems. |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12552 | # Hook for its removal unless debugging. |
| 12553 | # Note that there is a small window in which the directory will not be cleaned: |
| 12554 | # after its creation but before its name has been assigned to `$tmp'. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12555 | $debug || |
| 12556 | { |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12557 | tmp= ac_tmp= |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12558 | trap 'exit_status=$? |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12559 | : "${ac_tmp:=$tmp}" |
| 12560 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12561 | ' 0 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12562 | trap 'as_fn_exit 1' 1 2 13 15 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12563 | } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12564 | # Create a (secure) tmp directory for tmp files. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12565 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12566 | { |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12567 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12568 | test -d "$tmp" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12569 | } || |
| 12570 | { |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12571 | tmp=./conf$$-$RANDOM |
| 12572 | (umask 077 && mkdir "$tmp") |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12573 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
| 12574 | ac_tmp=$tmp |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12575 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12576 | # Set up the scripts for CONFIG_FILES section. |
| 12577 | # No need to generate them if there are no CONFIG_FILES. |
| 12578 | # This happens for instance with `./config.status config.h'. |
| 12579 | if test -n "$CONFIG_FILES"; then |
| 12580 | |
| 12581 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12582 | ac_cr=`echo X | tr X '\015'` |
| 12583 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 12584 | # But we know of no other shell where ac_cr would be empty at this |
| 12585 | # point, so we can use a bashism as a fallback. |
| 12586 | if test "x$ac_cr" = x; then |
| 12587 | eval ac_cr=\$\'\\r\' |
| 12588 | fi |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12589 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 12590 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
drh | 0fe0c46 | 2011-09-22 00:56:38 +0000 | [diff] [blame] | 12591 | ac_cs_awk_cr='\\r' |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12592 | else |
| 12593 | ac_cs_awk_cr=$ac_cr |
| 12594 | fi |
| 12595 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12596 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12597 | _ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12598 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 12599 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12600 | { |
| 12601 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 12602 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 12603 | echo "_ACEOF" |
| 12604 | } >conf$$subs.sh || |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12605 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 12606 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12607 | ac_delim='%!_!# ' |
| 12608 | for ac_last_try in false false false false false :; do |
| 12609 | . ./conf$$subs.sh || |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12610 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 12611 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12612 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 12613 | if test $ac_delim_n = $ac_delim_num; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12614 | break |
| 12615 | elif $ac_last_try; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12616 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12617 | else |
| 12618 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12619 | fi |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12620 | done |
| 12621 | rm -f conf$$subs.sh |
| 12622 | |
| 12623 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12624 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12625 | _ACEOF |
| 12626 | sed -n ' |
| 12627 | h |
| 12628 | s/^/S["/; s/!.*/"]=/ |
| 12629 | p |
| 12630 | g |
| 12631 | s/^[^!]*!// |
| 12632 | :repl |
| 12633 | t repl |
| 12634 | s/'"$ac_delim"'$// |
| 12635 | t delim |
| 12636 | :nl |
| 12637 | h |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12638 | s/\(.\{148\}\)..*/\1/ |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12639 | t more1 |
| 12640 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 12641 | p |
| 12642 | n |
| 12643 | b repl |
| 12644 | :more1 |
| 12645 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 12646 | p |
| 12647 | g |
| 12648 | s/.\{148\}// |
| 12649 | t nl |
| 12650 | :delim |
| 12651 | h |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12652 | s/\(.\{148\}\)..*/\1/ |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12653 | t more2 |
| 12654 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 12655 | p |
| 12656 | b |
| 12657 | :more2 |
| 12658 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 12659 | p |
| 12660 | g |
| 12661 | s/.\{148\}// |
| 12662 | t delim |
| 12663 | ' <conf$$subs.awk | sed ' |
| 12664 | /^[^""]/{ |
| 12665 | N |
| 12666 | s/\n// |
| 12667 | } |
| 12668 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 12669 | rm -f conf$$subs.awk |
| 12670 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 12671 | _ACAWK |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12672 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12673 | for (key in S) S_is_set[key] = 1 |
| 12674 | FS = "" |
| 12675 | |
| 12676 | } |
| 12677 | { |
| 12678 | line = $ 0 |
| 12679 | nfields = split(line, field, "@") |
| 12680 | substed = 0 |
| 12681 | len = length(field[1]) |
| 12682 | for (i = 2; i < nfields; i++) { |
| 12683 | key = field[i] |
| 12684 | keylen = length(key) |
| 12685 | if (S_is_set[key]) { |
| 12686 | value = S[key] |
| 12687 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 12688 | len += length(value) + length(field[++i]) |
| 12689 | substed = 1 |
| 12690 | } else |
| 12691 | len += 1 + keylen |
| 12692 | } |
| 12693 | |
| 12694 | print line |
| 12695 | } |
| 12696 | |
| 12697 | _ACAWK |
| 12698 | _ACEOF |
| 12699 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 12700 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 12701 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 12702 | else |
| 12703 | cat |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12704 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
| 12705 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12706 | _ACEOF |
| 12707 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12708 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 12709 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12710 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 12711 | # (actually we leave an empty line to preserve line numbers). |
| 12712 | if test "x$srcdir" = x.; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12713 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 12714 | h |
| 12715 | s/// |
| 12716 | s/^/:/ |
| 12717 | s/[ ]*$/:/ |
| 12718 | s/:\$(srcdir):/:/g |
| 12719 | s/:\${srcdir}:/:/g |
| 12720 | s/:@srcdir@:/:/g |
| 12721 | s/^:*// |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12722 | s/:*$// |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12723 | x |
| 12724 | s/\(=[ ]*\).*/\1/ |
| 12725 | G |
| 12726 | s/\n// |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12727 | s/^[^=]*=[ ]*$// |
| 12728 | }' |
| 12729 | fi |
| 12730 | |
| 12731 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12732 | fi # test -n "$CONFIG_FILES" |
| 12733 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12734 | # Set up the scripts for CONFIG_HEADERS section. |
| 12735 | # No need to generate them if there are no CONFIG_HEADERS. |
| 12736 | # This happens for instance with `./config.status Makefile'. |
| 12737 | if test -n "$CONFIG_HEADERS"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12738 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12739 | BEGIN { |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 12740 | _ACEOF |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12741 | |
| 12742 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 12743 | # here-document in config.status, that substitutes the proper values into |
| 12744 | # config.h.in to produce config.h. |
| 12745 | |
| 12746 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 12747 | # handling of long lines. |
| 12748 | ac_delim='%!_!# ' |
| 12749 | for ac_last_try in false false :; do |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12750 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
| 12751 | if test -z "$ac_tt"; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12752 | break |
| 12753 | elif $ac_last_try; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12754 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12755 | else |
| 12756 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 12757 | fi |
| 12758 | done |
| 12759 | |
| 12760 | # For the awk script, D is an array of macro values keyed by name, |
| 12761 | # likewise P contains macro parameters if any. Preserve backslash |
| 12762 | # newline sequences. |
| 12763 | |
| 12764 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 12765 | sed -n ' |
| 12766 | s/.\{148\}/&'"$ac_delim"'/g |
| 12767 | t rset |
| 12768 | :rset |
| 12769 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 12770 | t def |
| 12771 | d |
| 12772 | :def |
| 12773 | s/\\$// |
| 12774 | t bsnl |
| 12775 | s/["\\]/\\&/g |
| 12776 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 12777 | D["\1"]=" \3"/p |
| 12778 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 12779 | d |
| 12780 | :bsnl |
| 12781 | s/["\\]/\\&/g |
| 12782 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 12783 | D["\1"]=" \3\\\\\\n"\\/p |
| 12784 | t cont |
| 12785 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 12786 | t cont |
| 12787 | d |
| 12788 | :cont |
| 12789 | n |
| 12790 | s/.\{148\}/&'"$ac_delim"'/g |
| 12791 | t clear |
| 12792 | :clear |
| 12793 | s/\\$// |
| 12794 | t bsnlc |
| 12795 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 12796 | d |
| 12797 | :bsnlc |
| 12798 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 12799 | b cont |
| 12800 | ' <confdefs.h | sed ' |
| 12801 | s/'"$ac_delim"'/"\\\ |
| 12802 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 12803 | |
| 12804 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 12805 | for (key in D) D_is_set[key] = 1 |
| 12806 | FS = "" |
| 12807 | } |
| 12808 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 12809 | line = \$ 0 |
| 12810 | split(line, arg, " ") |
| 12811 | if (arg[1] == "#") { |
| 12812 | defundef = arg[2] |
| 12813 | mac1 = arg[3] |
| 12814 | } else { |
| 12815 | defundef = substr(arg[1], 2) |
| 12816 | mac1 = arg[2] |
| 12817 | } |
| 12818 | split(mac1, mac2, "(") #) |
| 12819 | macro = mac2[1] |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12820 | prefix = substr(line, 1, index(line, defundef) - 1) |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12821 | if (D_is_set[macro]) { |
| 12822 | # Preserve the white space surrounding the "#". |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12823 | print prefix "define", macro P[macro] D[macro] |
| 12824 | next |
| 12825 | } else { |
| 12826 | # Replace #undef with comments. This is necessary, for example, |
| 12827 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 12828 | # on some systems where configure will not decide to define it. |
| 12829 | if (defundef == "undef") { |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12830 | print "/*", prefix defundef, macro, "*/" |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12831 | next |
| 12832 | } |
| 12833 | } |
| 12834 | } |
| 12835 | { print } |
| 12836 | _ACAWK |
| 12837 | _ACEOF |
| 12838 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12839 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12840 | fi # test -n "$CONFIG_HEADERS" |
| 12841 | |
| 12842 | |
| 12843 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
| 12844 | shift |
| 12845 | for ac_tag |
| 12846 | do |
| 12847 | case $ac_tag in |
| 12848 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 12849 | esac |
| 12850 | case $ac_mode$ac_tag in |
| 12851 | :[FHL]*:*);; |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12852 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12853 | :[FH]-) ac_tag=-:-;; |
| 12854 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 12855 | esac |
| 12856 | ac_save_IFS=$IFS |
| 12857 | IFS=: |
| 12858 | set x $ac_tag |
| 12859 | IFS=$ac_save_IFS |
| 12860 | shift |
| 12861 | ac_file=$1 |
| 12862 | shift |
| 12863 | |
| 12864 | case $ac_mode in |
| 12865 | :L) ac_source=$1;; |
| 12866 | :[FH]) |
| 12867 | ac_file_inputs= |
| 12868 | for ac_f |
| 12869 | do |
| 12870 | case $ac_f in |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12871 | -) ac_f="$ac_tmp/stdin";; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12872 | *) # Look for the file first in the build tree, then in the source tree |
| 12873 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 12874 | # because $ac_f cannot contain `:'. |
| 12875 | test -f "$ac_f" || |
| 12876 | case $ac_f in |
| 12877 | [\\/$]*) false;; |
| 12878 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 12879 | esac || |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12880 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12881 | esac |
| 12882 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12883 | as_fn_append ac_file_inputs " '$ac_f'" |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12884 | done |
| 12885 | |
| 12886 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 12887 | # use $as_me), people would be surprised to read: |
| 12888 | # /* config.h. Generated by config.status. */ |
| 12889 | configure_input='Generated from '` |
| 12890 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 12891 | `' by configure.' |
| 12892 | if test x"$ac_file" != x-; then |
| 12893 | configure_input="$ac_file. $configure_input" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12894 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12895 | $as_echo "$as_me: creating $ac_file" >&6;} |
| 12896 | fi |
| 12897 | # Neutralize special characters interpreted by sed in replacement strings. |
| 12898 | case $configure_input in #( |
| 12899 | *\&* | *\|* | *\\* ) |
| 12900 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 12901 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 12902 | *) ac_sed_conf_input=$configure_input;; |
| 12903 | esac |
| 12904 | |
| 12905 | case $ac_tag in |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12906 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
| 12907 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12908 | esac |
| 12909 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12910 | esac |
| 12911 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12912 | ac_dir=`$as_dirname -- "$ac_file" || |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12913 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 12914 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 12915 | X"$ac_file" : 'X\(//\)$' \| \ |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12916 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
| 12917 | $as_echo X"$ac_file" | |
| 12918 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 12919 | s//\1/ |
| 12920 | q |
| 12921 | } |
| 12922 | /^X\(\/\/\)[^/].*/{ |
| 12923 | s//\1/ |
| 12924 | q |
| 12925 | } |
| 12926 | /^X\(\/\/\)$/{ |
| 12927 | s//\1/ |
| 12928 | q |
| 12929 | } |
| 12930 | /^X\(\/\).*/{ |
| 12931 | s//\1/ |
| 12932 | q |
| 12933 | } |
| 12934 | s/.*/./; q'` |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12935 | as_dir="$ac_dir"; as_fn_mkdir_p |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12936 | ac_builddir=. |
| 12937 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12938 | case "$ac_dir" in |
| 12939 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 12940 | *) |
| 12941 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 12942 | # A ".." for each directory in $ac_dir_suffix. |
| 12943 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 12944 | case $ac_top_builddir_sub in |
| 12945 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 12946 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 12947 | esac ;; |
| 12948 | esac |
| 12949 | ac_abs_top_builddir=$ac_pwd |
| 12950 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 12951 | # for backward compatibility: |
| 12952 | ac_top_builddir=$ac_top_build_prefix |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12953 | |
| 12954 | case $srcdir in |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12955 | .) # We are building in place. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12956 | ac_srcdir=. |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12957 | ac_top_srcdir=$ac_top_builddir_sub |
| 12958 | ac_abs_top_srcdir=$ac_pwd ;; |
| 12959 | [\\/]* | ?:[\\/]* ) # Absolute name. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12960 | ac_srcdir=$srcdir$ac_dir_suffix; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12961 | ac_top_srcdir=$srcdir |
| 12962 | ac_abs_top_srcdir=$srcdir ;; |
| 12963 | *) # Relative name. |
| 12964 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 12965 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 12966 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12967 | esac |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12968 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 12969 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12970 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12971 | case $ac_mode in |
| 12972 | :F) |
| 12973 | # |
| 12974 | # CONFIG_FILE |
| 12975 | # |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12976 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12977 | case $INSTALL in |
| 12978 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12979 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12980 | esac |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 12981 | _ACEOF |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12982 | |
| 12983 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 12984 | # If the template does not know about datarootdir, expand it. |
| 12985 | # FIXME: This hack should be removed a few years after 2.60. |
| 12986 | ac_datarootdir_hack=; ac_datarootdir_seen= |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12987 | ac_sed_dataroot=' |
| 12988 | /datarootdir/ { |
| 12989 | p |
| 12990 | q |
| 12991 | } |
| 12992 | /@datadir@/p |
| 12993 | /@docdir@/p |
| 12994 | /@infodir@/p |
| 12995 | /@localedir@/p |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12996 | /@mandir@/p' |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12997 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
| 12998 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 12999 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 13000 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13001 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 13002 | _ACEOF |
| 13003 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 13004 | ac_datarootdir_hack=' |
| 13005 | s&@datadir@&$datadir&g |
| 13006 | s&@docdir@&$docdir&g |
| 13007 | s&@infodir@&$infodir&g |
| 13008 | s&@localedir@&$localedir&g |
| 13009 | s&@mandir@&$mandir&g |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 13010 | s&\\\${datarootdir}&$datarootdir&g' ;; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13011 | esac |
| 13012 | _ACEOF |
| 13013 | |
| 13014 | # Neutralize VPATH when `$srcdir' = `.'. |
| 13015 | # Shell code in configure.ac might set extrasub. |
| 13016 | # FIXME: do we really want to maintain this feature? |
| 13017 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 13018 | ac_sed_extra="$ac_vpsub |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13019 | $extrasub |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 13020 | _ACEOF |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13021 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13022 | :t |
| 13023 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13024 | s|@configure_input@|$ac_sed_conf_input|;t t |
| 13025 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 13026 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
| 13027 | s&@srcdir@&$ac_srcdir&;t t |
| 13028 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 13029 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 13030 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 13031 | s&@builddir@&$ac_builddir&;t t |
| 13032 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 13033 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 13034 | s&@INSTALL@&$ac_INSTALL&;t t |
| 13035 | $ac_datarootdir_hack |
| 13036 | " |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 13037 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
| 13038 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 13039 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13040 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 13041 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
| 13042 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
| 13043 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
| 13044 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 13045 | which seems to be undefined. Please make sure it is defined" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13046 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 13047 | which seems to be undefined. Please make sure it is defined" >&2;} |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 13048 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 13049 | rm -f "$ac_tmp/stdin" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 13050 | case $ac_file in |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 13051 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
| 13052 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13053 | esac \ |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 13054 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13055 | ;; |
| 13056 | :H) |
| 13057 | # |
| 13058 | # CONFIG_HEADER |
| 13059 | # |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 13060 | if test x"$ac_file" != x-; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13061 | { |
| 13062 | $as_echo "/* $configure_input */" \ |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 13063 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
| 13064 | } >"$ac_tmp/config.h" \ |
| 13065 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 13066 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
| 13067 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13068 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 13069 | else |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13070 | rm -f "$ac_file" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 13071 | mv "$ac_tmp/config.h" "$ac_file" \ |
| 13072 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 13073 | fi |
| 13074 | else |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13075 | $as_echo "/* $configure_input */" \ |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 13076 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
| 13077 | || as_fn_error $? "could not create -" "$LINENO" 5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 13078 | fi |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13079 | ;; |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 13080 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 13081 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13082 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
| 13083 | ;; |
| 13084 | esac |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 13085 | |
| 13086 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13087 | case $ac_file$ac_mode in |
| 13088 | "libtool":C) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 13089 | |
| 13090 | # See if we are running on zsh, and set the options which allow our |
| 13091 | # commands through without removal of \ escapes. |
| 13092 | if test -n "${ZSH_VERSION+set}" ; then |
| 13093 | setopt NO_GLOB_SUBST |
| 13094 | fi |
| 13095 | |
| 13096 | cfgfile="${ofile}T" |
| 13097 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 |
| 13098 | $RM "$cfgfile" |
| 13099 | |
| 13100 | cat <<_LT_EOF >> "$cfgfile" |
| 13101 | #! $SHELL |
| 13102 | |
| 13103 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
| 13104 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
| 13105 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 13106 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 13107 | # |
| 13108 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
| 13109 | # 2006, 2007, 2008 Free Software Foundation, Inc. |
| 13110 | # Written by Gordon Matzigkeit, 1996 |
| 13111 | # |
| 13112 | # This file is part of GNU Libtool. |
| 13113 | # |
| 13114 | # GNU Libtool is free software; you can redistribute it and/or |
| 13115 | # modify it under the terms of the GNU General Public License as |
| 13116 | # published by the Free Software Foundation; either version 2 of |
| 13117 | # the License, or (at your option) any later version. |
| 13118 | # |
| 13119 | # As a special exception to the GNU General Public License, |
| 13120 | # if you distribute this file as part of a program or library that |
| 13121 | # is built using GNU Libtool, you may include this file under the |
| 13122 | # same distribution terms that you use for the rest of that program. |
| 13123 | # |
| 13124 | # GNU Libtool is distributed in the hope that it will be useful, |
| 13125 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13126 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13127 | # GNU General Public License for more details. |
| 13128 | # |
| 13129 | # You should have received a copy of the GNU General Public License |
| 13130 | # along with GNU Libtool; see the file COPYING. If not, a copy |
| 13131 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or |
| 13132 | # obtained by writing to the Free Software Foundation, Inc., |
| 13133 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 13134 | |
| 13135 | |
| 13136 | # The names of the tagged configurations supported by this script. |
| 13137 | available_tags="" |
| 13138 | |
| 13139 | # ### BEGIN LIBTOOL CONFIG |
| 13140 | |
| 13141 | # Which release of libtool.m4 was used? |
| 13142 | macro_version=$macro_version |
| 13143 | macro_revision=$macro_revision |
| 13144 | |
| 13145 | # Whether or not to build shared libraries. |
| 13146 | build_libtool_libs=$enable_shared |
| 13147 | |
| 13148 | # Whether or not to build static libraries. |
| 13149 | build_old_libs=$enable_static |
| 13150 | |
| 13151 | # What type of objects to build. |
| 13152 | pic_mode=$pic_mode |
| 13153 | |
| 13154 | # Whether or not to optimize for fast installation. |
| 13155 | fast_install=$enable_fast_install |
| 13156 | |
| 13157 | # The host system. |
| 13158 | host_alias=$host_alias |
| 13159 | host=$host |
| 13160 | host_os=$host_os |
| 13161 | |
| 13162 | # The build system. |
| 13163 | build_alias=$build_alias |
| 13164 | build=$build |
| 13165 | build_os=$build_os |
| 13166 | |
| 13167 | # A sed program that does not truncate output. |
| 13168 | SED=$lt_SED |
| 13169 | |
| 13170 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
| 13171 | Xsed="\$SED -e 1s/^X//" |
| 13172 | |
| 13173 | # A grep program that handles long lines. |
| 13174 | GREP=$lt_GREP |
| 13175 | |
| 13176 | # An ERE matcher. |
| 13177 | EGREP=$lt_EGREP |
| 13178 | |
| 13179 | # A literal string matcher. |
| 13180 | FGREP=$lt_FGREP |
| 13181 | |
| 13182 | # A BSD- or MS-compatible name lister. |
| 13183 | NM=$lt_NM |
| 13184 | |
| 13185 | # Whether we need soft or hard links. |
| 13186 | LN_S=$lt_LN_S |
| 13187 | |
| 13188 | # What is the maximum length of a command? |
| 13189 | max_cmd_len=$max_cmd_len |
| 13190 | |
| 13191 | # Object file suffix (normally "o"). |
| 13192 | objext=$ac_objext |
| 13193 | |
| 13194 | # Executable file suffix (normally ""). |
| 13195 | exeext=$exeext |
| 13196 | |
| 13197 | # whether the shell understands "unset". |
| 13198 | lt_unset=$lt_unset |
| 13199 | |
| 13200 | # turn spaces into newlines. |
| 13201 | SP2NL=$lt_lt_SP2NL |
| 13202 | |
| 13203 | # turn newlines into spaces. |
| 13204 | NL2SP=$lt_lt_NL2SP |
| 13205 | |
| 13206 | # How to create reloadable object files. |
| 13207 | reload_flag=$lt_reload_flag |
| 13208 | reload_cmds=$lt_reload_cmds |
| 13209 | |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 13210 | # An object symbol dumper. |
| 13211 | OBJDUMP=$lt_OBJDUMP |
| 13212 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 13213 | # Method to check whether dependent libraries are shared objects. |
| 13214 | deplibs_check_method=$lt_deplibs_check_method |
| 13215 | |
| 13216 | # Command to use when deplibs_check_method == "file_magic". |
| 13217 | file_magic_cmd=$lt_file_magic_cmd |
| 13218 | |
| 13219 | # The archiver. |
| 13220 | AR=$lt_AR |
| 13221 | AR_FLAGS=$lt_AR_FLAGS |
| 13222 | |
| 13223 | # A symbol stripping program. |
| 13224 | STRIP=$lt_STRIP |
| 13225 | |
| 13226 | # Commands used to install an old-style archive. |
| 13227 | RANLIB=$lt_RANLIB |
| 13228 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 13229 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 13230 | |
| 13231 | # A C compiler. |
| 13232 | LTCC=$lt_CC |
| 13233 | |
| 13234 | # LTCC compiler flags. |
| 13235 | LTCFLAGS=$lt_CFLAGS |
| 13236 | |
| 13237 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 13238 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 13239 | |
| 13240 | # Transform the output of nm in a proper C declaration. |
| 13241 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 13242 | |
| 13243 | # Transform the output of nm in a C name address pair. |
| 13244 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 13245 | |
| 13246 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
| 13247 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix |
| 13248 | |
| 13249 | # The name of the directory that contains temporary libtool files. |
| 13250 | objdir=$objdir |
| 13251 | |
| 13252 | # Shell to use when invoking shell scripts. |
| 13253 | SHELL=$lt_SHELL |
| 13254 | |
| 13255 | # An echo program that does not interpret backslashes. |
| 13256 | ECHO=$lt_ECHO |
| 13257 | |
| 13258 | # Used to examine libraries when file_magic_cmd begins with "file". |
| 13259 | MAGIC_CMD=$MAGIC_CMD |
| 13260 | |
| 13261 | # Must we lock files when doing compilation? |
| 13262 | need_locks=$lt_need_locks |
| 13263 | |
| 13264 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
| 13265 | DSYMUTIL=$lt_DSYMUTIL |
| 13266 | |
| 13267 | # Tool to change global to local symbols on Mac OS X. |
| 13268 | NMEDIT=$lt_NMEDIT |
| 13269 | |
| 13270 | # Tool to manipulate fat objects and archives on Mac OS X. |
| 13271 | LIPO=$lt_LIPO |
| 13272 | |
| 13273 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. |
| 13274 | OTOOL=$lt_OTOOL |
| 13275 | |
| 13276 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. |
| 13277 | OTOOL64=$lt_OTOOL64 |
| 13278 | |
| 13279 | # Old archive suffix (normally "a"). |
| 13280 | libext=$libext |
| 13281 | |
| 13282 | # Shared library suffix (normally ".so"). |
| 13283 | shrext_cmds=$lt_shrext_cmds |
| 13284 | |
| 13285 | # The commands to extract the exported symbol list from a shared archive. |
| 13286 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 13287 | |
| 13288 | # Variables whose values should be saved in libtool wrapper scripts and |
| 13289 | # restored at link time. |
| 13290 | variables_saved_for_relink=$lt_variables_saved_for_relink |
| 13291 | |
| 13292 | # Do we need the "lib" prefix for modules? |
| 13293 | need_lib_prefix=$need_lib_prefix |
| 13294 | |
| 13295 | # Do we need a version for libraries? |
| 13296 | need_version=$need_version |
| 13297 | |
| 13298 | # Library versioning type. |
| 13299 | version_type=$version_type |
| 13300 | |
| 13301 | # Shared library runtime path variable. |
| 13302 | runpath_var=$runpath_var |
| 13303 | |
| 13304 | # Shared library path variable. |
| 13305 | shlibpath_var=$shlibpath_var |
| 13306 | |
| 13307 | # Is shlibpath searched before the hard-coded library search path? |
| 13308 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 13309 | |
| 13310 | # Format of library name prefix. |
| 13311 | libname_spec=$lt_libname_spec |
| 13312 | |
| 13313 | # List of archive names. First name is the real one, the rest are links. |
| 13314 | # The last name is the one that the linker finds with -lNAME |
| 13315 | library_names_spec=$lt_library_names_spec |
| 13316 | |
| 13317 | # The coded name of the library, if different from the real name. |
| 13318 | soname_spec=$lt_soname_spec |
| 13319 | |
| 13320 | # Command to use after installation of a shared archive. |
| 13321 | postinstall_cmds=$lt_postinstall_cmds |
| 13322 | |
| 13323 | # Command to use after uninstallation of a shared archive. |
| 13324 | postuninstall_cmds=$lt_postuninstall_cmds |
| 13325 | |
| 13326 | # Commands used to finish a libtool library installation in a directory. |
| 13327 | finish_cmds=$lt_finish_cmds |
| 13328 | |
| 13329 | # As "finish_cmds", except a single script fragment to be evaled but |
| 13330 | # not shown. |
| 13331 | finish_eval=$lt_finish_eval |
| 13332 | |
| 13333 | # Whether we should hardcode library paths into libraries. |
| 13334 | hardcode_into_libs=$hardcode_into_libs |
| 13335 | |
| 13336 | # Compile-time system search path for libraries. |
| 13337 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 13338 | |
| 13339 | # Run-time system search path for libraries. |
| 13340 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 13341 | |
| 13342 | # Whether dlopen is supported. |
| 13343 | dlopen_support=$enable_dlopen |
| 13344 | |
| 13345 | # Whether dlopen of programs is supported. |
| 13346 | dlopen_self=$enable_dlopen_self |
| 13347 | |
| 13348 | # Whether dlopen of statically linked programs is supported. |
| 13349 | dlopen_self_static=$enable_dlopen_self_static |
| 13350 | |
| 13351 | # Commands to strip libraries. |
| 13352 | old_striplib=$lt_old_striplib |
| 13353 | striplib=$lt_striplib |
| 13354 | |
| 13355 | |
| 13356 | # The linker used to build libraries. |
| 13357 | LD=$lt_LD |
| 13358 | |
| 13359 | # Commands used to build an old-style archive. |
| 13360 | old_archive_cmds=$lt_old_archive_cmds |
| 13361 | |
| 13362 | # A language specific compiler. |
| 13363 | CC=$lt_compiler |
| 13364 | |
| 13365 | # Is the compiler the GNU compiler? |
| 13366 | with_gcc=$GCC |
| 13367 | |
| 13368 | # Compiler flag to turn off builtin functions. |
| 13369 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
| 13370 | |
| 13371 | # How to pass a linker flag through the compiler. |
| 13372 | wl=$lt_lt_prog_compiler_wl |
| 13373 | |
| 13374 | # Additional compiler flags for building library objects. |
| 13375 | pic_flag=$lt_lt_prog_compiler_pic |
| 13376 | |
| 13377 | # Compiler flag to prevent dynamic linking. |
| 13378 | link_static_flag=$lt_lt_prog_compiler_static |
| 13379 | |
| 13380 | # Does compiler simultaneously support -c and -o options? |
| 13381 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
| 13382 | |
| 13383 | # Whether or not to add -lc for building shared libraries. |
| 13384 | build_libtool_need_lc=$archive_cmds_need_lc |
| 13385 | |
| 13386 | # Whether or not to disallow shared libs when runtime libs are static. |
| 13387 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
| 13388 | |
| 13389 | # Compiler flag to allow reflexive dlopens. |
| 13390 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 13391 | |
| 13392 | # Compiler flag to generate shared objects directly from archives. |
| 13393 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 13394 | |
| 13395 | # Whether the compiler copes with passing no objects directly. |
| 13396 | compiler_needs_object=$lt_compiler_needs_object |
| 13397 | |
| 13398 | # Create an old-style archive from a shared archive. |
| 13399 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 13400 | |
| 13401 | # Create a temporary old-style archive to link instead of a shared archive. |
| 13402 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 13403 | |
| 13404 | # Commands used to build a shared archive. |
| 13405 | archive_cmds=$lt_archive_cmds |
| 13406 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| 13407 | |
| 13408 | # Commands used to build a loadable module if different from building |
| 13409 | # a shared archive. |
| 13410 | module_cmds=$lt_module_cmds |
| 13411 | module_expsym_cmds=$lt_module_expsym_cmds |
| 13412 | |
| 13413 | # Whether we are building with GNU ld or not. |
| 13414 | with_gnu_ld=$lt_with_gnu_ld |
| 13415 | |
| 13416 | # Flag that allows shared libraries with undefined symbols to be built. |
| 13417 | allow_undefined_flag=$lt_allow_undefined_flag |
| 13418 | |
| 13419 | # Flag that enforces no undefined symbols. |
| 13420 | no_undefined_flag=$lt_no_undefined_flag |
| 13421 | |
| 13422 | # Flag to hardcode \$libdir into a binary during linking. |
| 13423 | # This must work even if \$libdir does not exist |
| 13424 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 13425 | |
| 13426 | # If ld is used when linking, flag to hardcode \$libdir into a binary |
| 13427 | # during linking. This must work even if \$libdir does not exist. |
| 13428 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
| 13429 | |
| 13430 | # Whether we need a single "-rpath" flag with a separated argument. |
| 13431 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 13432 | |
| 13433 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 13434 | # DIR into the resulting binary. |
| 13435 | hardcode_direct=$hardcode_direct |
| 13436 | |
| 13437 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 13438 | # DIR into the resulting binary and the resulting library dependency is |
| 13439 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the |
| 13440 | # library is relocated. |
| 13441 | hardcode_direct_absolute=$hardcode_direct_absolute |
| 13442 | |
| 13443 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
| 13444 | # into the resulting binary. |
| 13445 | hardcode_minus_L=$hardcode_minus_L |
| 13446 | |
| 13447 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
| 13448 | # into the resulting binary. |
| 13449 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 13450 | |
| 13451 | # Set to "yes" if building a shared library automatically hardcodes DIR |
| 13452 | # into the library and all subsequent libraries and executables linked |
| 13453 | # against it. |
| 13454 | hardcode_automatic=$hardcode_automatic |
| 13455 | |
| 13456 | # Set to yes if linker adds runtime paths of dependent libraries |
| 13457 | # to runtime path list. |
| 13458 | inherit_rpath=$inherit_rpath |
| 13459 | |
| 13460 | # Whether libtool must link a program against all its dependency libraries. |
| 13461 | link_all_deplibs=$link_all_deplibs |
| 13462 | |
| 13463 | # Fix the shell variable \$srcfile for the compiler. |
| 13464 | fix_srcfile_path=$lt_fix_srcfile_path |
| 13465 | |
| 13466 | # Set to "yes" if exported symbols are required. |
| 13467 | always_export_symbols=$always_export_symbols |
| 13468 | |
| 13469 | # The commands to list exported symbols. |
| 13470 | export_symbols_cmds=$lt_export_symbols_cmds |
| 13471 | |
| 13472 | # Symbols that should not be listed in the preloaded symbols. |
| 13473 | exclude_expsyms=$lt_exclude_expsyms |
| 13474 | |
| 13475 | # Symbols that must always be exported. |
| 13476 | include_expsyms=$lt_include_expsyms |
| 13477 | |
| 13478 | # Commands necessary for linking programs (against libraries) with templates. |
| 13479 | prelink_cmds=$lt_prelink_cmds |
| 13480 | |
| 13481 | # Specify filename containing input files. |
| 13482 | file_list_spec=$lt_file_list_spec |
| 13483 | |
| 13484 | # How to hardcode a shared library path into an executable. |
| 13485 | hardcode_action=$hardcode_action |
| 13486 | |
| 13487 | # ### END LIBTOOL CONFIG |
| 13488 | |
| 13489 | _LT_EOF |
| 13490 | |
| 13491 | case $host_os in |
| 13492 | aix3*) |
| 13493 | cat <<\_LT_EOF >> "$cfgfile" |
| 13494 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 13495 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 13496 | # vanish in a puff of smoke. |
| 13497 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 13498 | COLLECT_NAMES= |
| 13499 | export COLLECT_NAMES |
| 13500 | fi |
| 13501 | _LT_EOF |
| 13502 | ;; |
| 13503 | esac |
| 13504 | |
| 13505 | |
| 13506 | ltmain="$ac_aux_dir/ltmain.sh" |
| 13507 | |
| 13508 | |
| 13509 | # We use sed instead of cat because bash on DJGPP gets confused if |
| 13510 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 13511 | # text mode, it properly converts lines to CR/LF. This bash problem |
| 13512 | # is reportedly fixed, but why not run on old versions too? |
| 13513 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ |
| 13514 | || (rm -f "$cfgfile"; exit 1) |
| 13515 | |
| 13516 | case $xsi_shell in |
| 13517 | yes) |
| 13518 | cat << \_LT_EOF >> "$cfgfile" |
| 13519 | |
| 13520 | # func_dirname file append nondir_replacement |
| 13521 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, |
| 13522 | # otherwise set result to NONDIR_REPLACEMENT. |
| 13523 | func_dirname () |
| 13524 | { |
| 13525 | case ${1} in |
| 13526 | */*) func_dirname_result="${1%/*}${2}" ;; |
| 13527 | * ) func_dirname_result="${3}" ;; |
| 13528 | esac |
| 13529 | } |
| 13530 | |
| 13531 | # func_basename file |
| 13532 | func_basename () |
| 13533 | { |
| 13534 | func_basename_result="${1##*/}" |
| 13535 | } |
| 13536 | |
| 13537 | # func_dirname_and_basename file append nondir_replacement |
| 13538 | # perform func_basename and func_dirname in a single function |
| 13539 | # call: |
| 13540 | # dirname: Compute the dirname of FILE. If nonempty, |
| 13541 | # add APPEND to the result, otherwise set result |
| 13542 | # to NONDIR_REPLACEMENT. |
| 13543 | # value returned in "$func_dirname_result" |
| 13544 | # basename: Compute filename of FILE. |
| 13545 | # value retuned in "$func_basename_result" |
| 13546 | # Implementation must be kept synchronized with func_dirname |
| 13547 | # and func_basename. For efficiency, we do not delegate to |
| 13548 | # those functions but instead duplicate the functionality here. |
| 13549 | func_dirname_and_basename () |
| 13550 | { |
| 13551 | case ${1} in |
| 13552 | */*) func_dirname_result="${1%/*}${2}" ;; |
| 13553 | * ) func_dirname_result="${3}" ;; |
| 13554 | esac |
| 13555 | func_basename_result="${1##*/}" |
| 13556 | } |
| 13557 | |
| 13558 | # func_stripname prefix suffix name |
| 13559 | # strip PREFIX and SUFFIX off of NAME. |
| 13560 | # PREFIX and SUFFIX must not contain globbing or regex special |
| 13561 | # characters, hashes, percent signs, but SUFFIX may contain a leading |
| 13562 | # dot (in which case that matches only a dot). |
| 13563 | func_stripname () |
| 13564 | { |
| 13565 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are |
| 13566 | # positional parameters, so assign one to ordinary parameter first. |
| 13567 | func_stripname_result=${3} |
| 13568 | func_stripname_result=${func_stripname_result#"${1}"} |
| 13569 | func_stripname_result=${func_stripname_result%"${2}"} |
| 13570 | } |
| 13571 | |
| 13572 | # func_opt_split |
| 13573 | func_opt_split () |
| 13574 | { |
| 13575 | func_opt_split_opt=${1%%=*} |
| 13576 | func_opt_split_arg=${1#*=} |
| 13577 | } |
| 13578 | |
| 13579 | # func_lo2o object |
| 13580 | func_lo2o () |
| 13581 | { |
| 13582 | case ${1} in |
| 13583 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; |
| 13584 | *) func_lo2o_result=${1} ;; |
| 13585 | esac |
| 13586 | } |
| 13587 | |
| 13588 | # func_xform libobj-or-source |
| 13589 | func_xform () |
| 13590 | { |
| 13591 | func_xform_result=${1%.*}.lo |
| 13592 | } |
| 13593 | |
| 13594 | # func_arith arithmetic-term... |
| 13595 | func_arith () |
| 13596 | { |
| 13597 | func_arith_result=$(( $* )) |
| 13598 | } |
| 13599 | |
| 13600 | # func_len string |
| 13601 | # STRING may not start with a hyphen. |
| 13602 | func_len () |
| 13603 | { |
| 13604 | func_len_result=${#1} |
| 13605 | } |
| 13606 | |
| 13607 | _LT_EOF |
| 13608 | ;; |
| 13609 | *) # Bourne compatible functions. |
| 13610 | cat << \_LT_EOF >> "$cfgfile" |
| 13611 | |
| 13612 | # func_dirname file append nondir_replacement |
| 13613 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, |
| 13614 | # otherwise set result to NONDIR_REPLACEMENT. |
| 13615 | func_dirname () |
| 13616 | { |
| 13617 | # Extract subdirectory from the argument. |
| 13618 | func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` |
| 13619 | if test "X$func_dirname_result" = "X${1}"; then |
| 13620 | func_dirname_result="${3}" |
| 13621 | else |
| 13622 | func_dirname_result="$func_dirname_result${2}" |
| 13623 | fi |
| 13624 | } |
| 13625 | |
| 13626 | # func_basename file |
| 13627 | func_basename () |
| 13628 | { |
| 13629 | func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` |
| 13630 | } |
| 13631 | |
| 13632 | |
| 13633 | # func_stripname prefix suffix name |
| 13634 | # strip PREFIX and SUFFIX off of NAME. |
| 13635 | # PREFIX and SUFFIX must not contain globbing or regex special |
| 13636 | # characters, hashes, percent signs, but SUFFIX may contain a leading |
| 13637 | # dot (in which case that matches only a dot). |
| 13638 | # func_strip_suffix prefix name |
| 13639 | func_stripname () |
| 13640 | { |
| 13641 | case ${2} in |
| 13642 | .*) func_stripname_result=`$ECHO "X${3}" \ |
| 13643 | | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; |
| 13644 | *) func_stripname_result=`$ECHO "X${3}" \ |
| 13645 | | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; |
| 13646 | esac |
| 13647 | } |
| 13648 | |
| 13649 | # sed scripts: |
| 13650 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' |
| 13651 | my_sed_long_arg='1s/^-[^=]*=//' |
| 13652 | |
| 13653 | # func_opt_split |
| 13654 | func_opt_split () |
| 13655 | { |
| 13656 | func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` |
| 13657 | func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` |
| 13658 | } |
| 13659 | |
| 13660 | # func_lo2o object |
| 13661 | func_lo2o () |
| 13662 | { |
| 13663 | func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` |
| 13664 | } |
| 13665 | |
| 13666 | # func_xform libobj-or-source |
| 13667 | func_xform () |
| 13668 | { |
| 13669 | func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` |
| 13670 | } |
| 13671 | |
| 13672 | # func_arith arithmetic-term... |
| 13673 | func_arith () |
| 13674 | { |
| 13675 | func_arith_result=`expr "$@"` |
| 13676 | } |
| 13677 | |
| 13678 | # func_len string |
| 13679 | # STRING may not start with a hyphen. |
| 13680 | func_len () |
| 13681 | { |
| 13682 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` |
| 13683 | } |
| 13684 | |
| 13685 | _LT_EOF |
| 13686 | esac |
| 13687 | |
| 13688 | case $lt_shell_append in |
| 13689 | yes) |
| 13690 | cat << \_LT_EOF >> "$cfgfile" |
| 13691 | |
| 13692 | # func_append var value |
| 13693 | # Append VALUE to the end of shell variable VAR. |
| 13694 | func_append () |
| 13695 | { |
| 13696 | eval "$1+=\$2" |
| 13697 | } |
| 13698 | _LT_EOF |
| 13699 | ;; |
| 13700 | *) |
| 13701 | cat << \_LT_EOF >> "$cfgfile" |
| 13702 | |
| 13703 | # func_append var value |
| 13704 | # Append VALUE to the end of shell variable VAR. |
| 13705 | func_append () |
| 13706 | { |
| 13707 | eval "$1=\$$1\$2" |
| 13708 | } |
| 13709 | |
| 13710 | _LT_EOF |
| 13711 | ;; |
| 13712 | esac |
| 13713 | |
| 13714 | |
| 13715 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ |
| 13716 | || (rm -f "$cfgfile"; exit 1) |
| 13717 | |
| 13718 | mv -f "$cfgfile" "$ofile" || |
| 13719 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
| 13720 | chmod +x "$ofile" |
| 13721 | |
| 13722 | ;; |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 13723 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13724 | esac |
| 13725 | done # for ac_tag |
| 13726 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13727 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 13728 | as_fn_exit 0 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 13729 | _ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13730 | ac_clean_files=$ac_clean_files_save |
| 13731 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13732 | test $ac_write_fail = 0 || |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 13733 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13734 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 13735 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13736 | # configure is writing to config.log, and then calls config.status. |
| 13737 | # config.status does its own redirection, appending to config.log. |
| 13738 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 13739 | # by configure, so config.status won't be able to write to it; its |
| 13740 | # output is simply discarded. So we exec the FD to /dev/null, |
| 13741 | # effectively closing config.log, so it can be properly (re)opened and |
| 13742 | # appended to by config.status. When coming back to configure, we |
| 13743 | # need to make the FD available again. |
| 13744 | if test "$no_create" != yes; then |
| 13745 | ac_cs_success=: |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 13746 | ac_config_status_args= |
| 13747 | test "$silent" = yes && |
| 13748 | ac_config_status_args="$ac_config_status_args --quiet" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13749 | exec 5>/dev/null |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 13750 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13751 | exec 5>>config.log |
| 13752 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 13753 | # would make configure fail if this is the last instruction. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 13754 | $ac_cs_success || as_fn_exit 1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13755 | fi |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13756 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 13757 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 13758 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13759 | fi |
drh | bc7a22d | 2009-10-13 22:47:13 +0000 | [diff] [blame] | 13760 | |